SkillAegis/dist/assets/index-D2WYd2RY.js

1480 lines
711 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))d(m);new MutationObserver(m=>{for(const y of m)if(y.type==="childList")for(const C of y.addedNodes)C.tagName==="LINK"&&C.rel==="modulepreload"&&d(C)}).observe(document,{childList:!0,subtree:!0});function c(m){const y={};return m.integrity&&(y.integrity=m.integrity),m.referrerPolicy&&(y.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?y.credentials="include":m.crossOrigin==="anonymous"?y.credentials="omit":y.credentials="same-origin",y}function d(m){if(m.ep)return;m.ep=!0;const y=c(m);fetch(m.href,y)}})();/**
* @vue/shared v3.4.29
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function Zr(s,n){const c=new Set(s.split(","));return d=>c.has(d)}const Vt={},$i=[],Me=()=>{},Mh=()=>!1,Es=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&(s.charCodeAt(2)>122||s.charCodeAt(2)<97),Kr=s=>s.startsWith("onUpdate:"),he=Object.assign,Jr=(s,n)=>{const c=s.indexOf(n);c>-1&&s.splice(c,1)},Oh=Object.prototype.hasOwnProperty,Xt=(s,n)=>Oh.call(s,n),kt=Array.isArray,qi=s=>Ts(s)==="[object Map]",xl=s=>Ts(s)==="[object Set]",St=s=>typeof s=="function",le=s=>typeof s=="string",Di=s=>typeof s=="symbol",Zt=s=>s!==null&&typeof s=="object",ml=s=>(Zt(s)||St(s))&&St(s.then)&&St(s.catch),bl=Object.prototype.toString,Ts=s=>bl.call(s),Rh=s=>Ts(s).slice(8,-1),vl=s=>Ts(s)==="[object Object]",Qr=s=>le(s)&&s!=="NaN"&&s[0]!=="-"&&""+parseInt(s,10)===s,da=Zr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Is=s=>{const n=Object.create(null);return c=>n[c]||(n[c]=s(c))},zh=/-(\w)/g,Ue=Is(s=>s.replace(zh,(n,c)=>c?c.toUpperCase():"")),Fh=/\B([A-Z])/g,ta=Is(s=>s.replace(Fh,"-$1").toLowerCase()),Ms=Is(s=>s.charAt(0).toUpperCase()+s.slice(1)),Ks=Is(s=>s?`on${Ms(s)}`:""),bi=(s,n)=>!Object.is(s,n),Js=(s,...n)=>{for(let c=0;c<s.length;c++)s[c](...n)},yl=(s,n,c,d=!1)=>{Object.defineProperty(s,n,{configurable:!0,enumerable:!1,writable:d,value:c})},Nh=s=>{const n=parseFloat(s);return isNaN(n)?s:n};let Dn;const wl=()=>Dn||(Dn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function _a(s){if(kt(s)){const n={};for(let c=0;c<s.length;c++){const d=s[c],m=le(d)?Hh(d):_a(d);if(m)for(const y in m)n[y]=m[y]}return n}else if(le(s)||Zt(s))return s}const Xh=/;(?![^(]*\))/g,Yh=/:([^]+)/,Dh=/\/\*[^]*?\*\//g;function Hh(s){const n={};return s.replace(Dh,"").split(Xh).forEach(c=>{if(c){const d=c.split(Yh);d.length>1&&(n[d[0].trim()]=d[1].trim())}}),n}function ae(s){let n="";if(le(s))n=s;else if(kt(s))for(let c=0;c<s.length;c++){const d=ae(s[c]);d&&(n+=d+" ")}else if(Zt(s))for(const c in s)s[c]&&(n+=c+" ");return n.trim()}const Bh="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Wh=Zr(Bh);function kl(s){return!!s||s===""}const Wt=s=>le(s)?s:s==null?"":kt(s)||Zt(s)&&(s.toString===bl||!St(s.toString))?JSON.stringify(s,Al,2):String(s),Al=(s,n)=>n&&n.__v_isRef?Al(s,n.value):qi(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((c,[d,m],y)=>(c[Qs(d,y)+" =>"]=m,c),{})}:xl(n)?{[`Set(${n.size})`]:[...n.values()].map(c=>Qs(c))}:Di(n)?Qs(n):Zt(n)&&!kt(n)&&!vl(n)?String(n):n,Qs=(s,n="")=>{var c;return Di(s)?`Symbol(${(c=s.description)!=null?c:n})`:s};/**
* @vue/reactivity v3.4.29
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ne;class Vh{constructor(n=!1){this.detached=n,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ne,!n&&Ne&&(this.index=(Ne.scopes||(Ne.scopes=[])).push(this)-1)}get active(){return this._active}run(n){if(this._active){const c=Ne;try{return Ne=this,n()}finally{Ne=c}}}on(){Ne=this}off(){Ne=this.parent}stop(n){if(this._active){let c,d;for(c=0,d=this.effects.length;c<d;c++)this.effects[c].stop();for(c=0,d=this.cleanups.length;c<d;c++)this.cleanups[c]();if(this.scopes)for(c=0,d=this.scopes.length;c<d;c++)this.scopes[c].stop(!0);if(!this.detached&&this.parent&&!n){const m=this.parent.scopes.pop();m&&m!==this&&(this.parent.scopes[this.index]=m,m.index=this.index)}this.parent=void 0,this._active=!1}}}function Gh(s,n=Ne){n&&n.active&&n.effects.push(s)}function jh(){return Ne}let Ri;class tn{constructor(n,c,d,m){this.fn=n,this.trigger=c,this.scheduler=d,this.active=!0,this.deps=[],this._dirtyLevel=5,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Gh(this,m)}get dirty(){if(this._dirtyLevel===2)return!1;if(this._dirtyLevel===3||this._dirtyLevel===4){this._dirtyLevel=1,ki();for(let n=0;n<this._depsLength;n++){const c=this.deps[n];if(c.computed){if(c.computed.effect._dirtyLevel===2)return!0;if(Uh(c.computed),this._dirtyLevel>=5)break}}this._dirtyLevel===1&&(this._dirtyLevel=0),Ai()}return this._dirtyLevel>=5}set dirty(n){this._dirtyLevel=n?5:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let n=xi,c=Ri;try{return xi=!0,Ri=this,this._runnings++,Hn(this),this.fn()}finally{Bn(this),this._runnings--,Ri=c,xi=n}}stop(){this.active&&(Hn(this),Bn(this),this.onStop&&this.onStop(),this.active=!1)}}function Uh(s){return s.value}function Hn(s){s._trackId++,s._depsLength=0}function Bn(s){if(s.deps.length>s._depsLength){for(let n=s._depsLength;n<s.deps.length;n++)Sl(s.deps[n],s);s.deps.length=s._depsLength}}function Sl(s,n){const c=s.get(n);c!==void 0&&n._trackId!==c&&(s.delete(n),s.size===0&&s.cleanup())}let xi=!0,mr=0;const Cl=[];function ki(){Cl.push(xi),xi=!1}function Ai(){const s=Cl.pop();xi=s===void 0?!0:s}function en(){mr++}function an(){for(mr--;!mr&&br.length;)br.shift()()}function Pl(s,n,c){if(n.get(s)!==s._trackId){n.set(s,s._trackId);const d=s.deps[s._depsLength];d!==n?(d&&Sl(d,s),s.deps[s._depsLength++]=n):s._depsLength++}}const br=[];function Ll(s,n,c){en();for(const d of s.keys()){if(!s.computed&&d.computed&&s.get(d)===d._trackId&&d._runnings>0){d._dirtyLevel=2;continue}let m;d._dirtyLevel<n&&(m??(m=s.get(d)===d._trackId))&&(d._shouldSchedule||(d._shouldSchedule=d._dirtyLevel===0),d.computed&&d._dirtyLevel===2&&(d._shouldSchedule=!0),d._dirtyLevel=n),d._shouldSchedule&&(m??(m=s.get(d)===d._trackId))&&(d.trigger(),(!d._runnings||d.allowRecurse)&&d._dirtyLevel!==3&&(d._shouldSchedule=!1,d.scheduler&&br.push(d.scheduler)))}an()}const _l=(s,n)=>{const c=new Map;return c.cleanup=s,c.computed=n,c},ms=new WeakMap,zi=Symbol(""),vr=Symbol("");function Ce(s,n,c){if(xi&&Ri){let d=ms.get(s);d||ms.set(s,d=new Map);let m=d.get(c);m||d.set(c,m=_l(()=>d.delete(c))),Pl(Ri,m)}}function ei(s,n,c,d,m,y){const C=ms.get(s);if(!C)return;let L=[];if(n==="clear")L=[...C.values()];else if(c==="length"&&kt(s)){const M=Number(d);C.forEach((z,Y)=>{(Y==="length"||!Di(Y)&&Y>=M)&&L.push(z)})}else switch(c!==void 0&&L.push(C.get(c)),n){case"add":kt(s)?Qr(c)&&L.push(C.get("length")):(L.push(C.get(zi)),qi(s)&&L.push(C.get(vr)));break;case"delete":kt(s)||(L.push(C.get(zi)),qi(s)&&L.push(C.get(vr)));break;case"set":qi(s)&&L.push(C.get(zi));break}en();for(const M of L)M&&Ll(M,5);an()}function $h(s,n){const c=ms.get(s);return c&&c.get(n)}const qh=Zr("__proto__,__v_isRef,__isVue"),El=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(Di)),Wn=Zh();function Zh(){const s={};return["includes","indexOf","lastIndexOf"].forEach(n=>{s[n]=function(...c){const d=Dt(this);for(let y=0,C=this.length;y<C;y++)Ce(d,"get",y+"");const m=d[n](...c);return m===-1||m===!1?d[n](...c.map(Dt)):m}}),["push","pop","shift","unshift","splice"].forEach(n=>{s[n]=function(...c){ki(),en();const d=Dt(this)[n].apply(this,c);return an(),Ai(),d}}),s}function Kh(s){Di(s)||(s=String(s));const n=Dt(this);return Ce(n,"has",s),n.hasOwnProperty(s)}class Tl{constructor(n=!1,c=!1){this._isReadonly=n,this._isShallow=c}get(n,c,d){const m=this._isReadonly,y=this._isShallow;if(c==="__v_isReactive")return!m;if(c==="__v_isReadonly")return m;if(c==="__v_isShallow")return y;if(c==="__v_raw")return d===(m?y?hd:Rl:y?Ol:Ml).get(n)||Object.getPrototypeOf(n)===Object.getPrototypeOf(d)?n:void 0;const C=kt(n);if(!m){if(C&&Xt(Wn,c))return Reflect.get(Wn,c,d);if(c==="hasOwnProperty")return Kh}const L=Reflect.get(n,c,d);return(Di(c)?El.has(c):qh(c))||(m||Ce(n,"get",c),y)?L:ve(L)?C&&Qr(c)?L:L.value:Zt(L)?m?zl(L):Ea(L):L}}class Il extends Tl{constructor(n=!1){super(!1,n)}set(n,c,d,m){let y=n[c];if(!this._isShallow){const M=ba(y);if(!bs(d)&&!ba(d)&&(y=Dt(y),d=Dt(d)),!kt(n)&&ve(y)&&!ve(d))return M?!1:(y.value=d,!0)}const C=kt(n)&&Qr(c)?Number(c)<n.length:Xt(n,c),L=Reflect.set(n,c,d,m);return n===Dt(m)&&(C?bi(d,y)&&ei(n,"set",c,d):ei(n,"add",c,d)),L}deleteProperty(n,c){const d=Xt(n,c);n[c];const m=Reflect.deleteProperty(n,c);return m&&d&&ei(n,"delete",c,void 0),m}has(n,c){const d=Reflect.has(n,c);return(!Di(c)||!El.has(c))&&Ce(n,"has",c),d}ownKeys(n){return Ce(n,"iterate",kt(n)?"length":zi),Reflect.ownKeys(n)}}class Jh extends Tl{constructor(n=!1){super(!0,n)}set(n,c){return!0}deleteProperty(n,c){return!0}}const Qh=new Il,td=new Jh,ed=new Il(!0);const sn=s=>s,Os=s=>Reflect.getPrototypeOf(s);function Da(s,n,c=!1,d=!1){s=s.__v_raw;const m=Dt(s),y=Dt(n);c||(bi(n,y)&&Ce(m,"get",n),Ce(m,"get",y));const{has:C}=Os(m),L=d?sn:c?on:va;if(C.call(m,n))return L(s.get(n));if(C.call(m,y))return L(s.get(y));s!==m&&s.get(n)}function Ha(s,n=!1){const c=this.__v_raw,d=Dt(c),m=Dt(s);return n||(bi(s,m)&&Ce(d,"has",s),Ce(d,"has",m)),s===m?c.has(s):c.has(s)||c.has(m)}function Ba(s,n=!1){return s=s.__v_raw,!n&&Ce(Dt(s),"iterate",zi),Reflect.get(s,"size",s)}function Vn(s){s=Dt(s);const n=Dt(this);return Os(n).has.call(n,s)||(n.add(s),ei(n,"add",s,s)),this}function Gn(s,n){n=Dt(n);const c=Dt(this),{has:d,get:m}=Os(c);let y=d.call(c,s);y||(s=Dt(s),y=d.call(c,s));const C=m.call(c,s);return c.set(s,n),y?bi(n,C)&&ei(c,"set",s,n):ei(c,"add",s,n),this}function jn(s){const n=Dt(this),{has:c,get:d}=Os(n);let m=c.call(n,s);m||(s=Dt(s),m=c.call(n,s)),d&&d.call(n,s);const y=n.delete(s);return m&&ei(n,"delete",s,void 0),y}function Un(){const s=Dt(this),n=s.size!==0,c=s.clear();return n&&ei(s,"clear",void 0,void 0),c}function Wa(s,n){return function(d,m){const y=this,C=y.__v_raw,L=Dt(C),M=n?sn:s?on:va;return!s&&Ce(L,"iterate",zi),C.forEach((z,Y)=>d.call(m,M(z),M(Y),y))}}function Va(s,n,c){return function(...d){const m=this.__v_raw,y=Dt(m),C=qi(y),L=s==="entries"||s===Symbol.iterator&&C,M=s==="keys"&&C,z=m[s](...d),Y=c?sn:n?on:va;return!n&&Ce(y,"iterate",M?vr:zi),{next(){const{value:D,done:W}=z.next();return W?{value:D,done:W}:{value:L?[Y(D[0]),Y(D[1])]:Y(D),done:W}},[Symbol.iterator](){return this}}}}function hi(s){return function(...n){return s==="delete"?!1:s==="clear"?void 0:this}}function id(){const s={get(y){return Da(this,y)},get size(){return Ba(this)},has:Ha,add:Vn,set:Gn,delete:jn,clear:Un,forEach:Wa(!1,!1)},n={get(y){return Da(this,y,!1,!0)},get size(){return Ba(this)},has:Ha,add:Vn,set:Gn,delete:jn,clear:Un,forEach:Wa(!1,!0)},c={get(y){return Da(this,y,!0)},get size(){return Ba(this,!0)},has(y){return Ha.call(this,y,!0)},add:hi("add"),set:hi("set"),delete:hi("delete"),clear:hi("clear"),forEach:Wa(!0,!1)},d={get(y){return Da(this,y,!0,!0)},get size(){return Ba(this,!0)},has(y){return Ha.call(this,y,!0)},add:hi("add"),set:hi("set"),delete:hi("delete"),clear:hi("clear"),forEach:Wa(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(y=>{s[y]=Va(y,!1,!1),c[y]=Va(y,!0,!1),n[y]=Va(y,!1,!0),d[y]=Va(y,!0,!0)}),[s,c,n,d]}const[ad,sd,rd,nd]=id();function rn(s,n){const c=n?s?nd:rd:s?sd:ad;return(d,m,y)=>m==="__v_isReactive"?!s:m==="__v_isReadonly"?s:m==="__v_raw"?d:Reflect.get(Xt(c,m)&&m in d?c:d,m,y)}const od={get:rn(!1,!1)},ld={get:rn(!1,!0)},cd={get:rn(!0,!1)};const Ml=new WeakMap,Ol=new WeakMap,Rl=new WeakMap,hd=new WeakMap;function dd(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ud(s){return s.__v_skip||!Object.isExtensible(s)?0:dd(Rh(s))}function Ea(s){return ba(s)?s:nn(s,!1,Qh,od,Ml)}function fd(s){return nn(s,!1,ed,ld,Ol)}function zl(s){return nn(s,!0,td,cd,Rl)}function nn(s,n,c,d,m){if(!Zt(s)||s.__v_raw&&!(n&&s.__v_isReactive))return s;const y=m.get(s);if(y)return y;const C=ud(s);if(C===0)return s;const L=new Proxy(s,C===2?d:c);return m.set(s,L),L}function ua(s){return ba(s)?ua(s.__v_raw):!!(s&&s.__v_isReactive)}function ba(s){return!!(s&&s.__v_isReadonly)}function bs(s){return!!(s&&s.__v_isShallow)}function Fl(s){return s?!!s.__v_raw:!1}function Dt(s){const n=s&&s.__v_raw;return n?Dt(n):s}function gd(s){return Object.isExtensible(s)&&yl(s,"__v_skip",!0),s}const va=s=>Zt(s)?Ea(s):s,on=s=>Zt(s)?zl(s):s;class Nl{constructor(n,c,d,m){this.getter=n,this._setter=c,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new tn(()=>n(this._value),()=>ns(this,this.effect._dirtyLevel===3?3:4)),this.effect.computed=this,this.effect.active=this._cacheable=!m,this.__v_isReadonly=d}get value(){const n=Dt(this);return(!n._cacheable||n.effect.dirty)&&bi(n._value,n._value=n.effect.run())&&ns(n,5),Xl(n),n.effect._dirtyLevel>=2&&ns(n,3),n._value}set value(n){this._setter(n)}get _dirty(){return this.effect.dirty}set _dirty(n){this.effect.dirty=n}}function pd(s,n,c=!1){let d,m;const y=St(s);return y?(d=s,m=Me):(d=s.get,m=s.set),new Nl(d,m,y||!m,c)}function Xl(s){var n;xi&&Ri&&(s=Dt(s),Pl(Ri,(n=s.dep)!=null?n:s.dep=_l(()=>s.dep=void 0,s instanceof Nl?s:void 0)))}function ns(s,n=5,c,d){s=Dt(s);const m=s.dep;m&&Ll(m,n)}function ve(s){return!!(s&&s.__v_isRef===!0)}function Oe(s){return xd(s,!1)}function xd(s,n){return ve(s)?s:new md(s,n)}class md{constructor(n,c){this.__v_isShallow=c,this.dep=void 0,this.__v_isRef=!0,this._rawValue=c?n:Dt(n),this._value=c?n:va(n)}get value(){return Xl(this),this._value}set value(n){const c=this.__v_isShallow||bs(n)||ba(n);n=c?n:Dt(n),bi(n,this._rawValue)&&(this._rawValue,this._rawValue=n,this._value=c?n:va(n),ns(this,5))}}function ct(s){return ve(s)?s.value:s}const bd={get:(s,n,c)=>ct(Reflect.get(s,n,c)),set:(s,n,c,d)=>{const m=s[n];return ve(m)&&!ve(c)?(m.value=c,!0):Reflect.set(s,n,c,d)}};function Yl(s){return ua(s)?s:new Proxy(s,bd)}function vd(s){const n=kt(s)?new Array(s.length):{};for(const c in s)n[c]=wd(s,c);return n}class yd{constructor(n,c,d){this._object=n,this._key=c,this._defaultValue=d,this.__v_isRef=!0}get value(){const n=this._object[this._key];return n===void 0?this._defaultValue:n}set value(n){this._object[this._key]=n}get dep(){return $h(Dt(this._object),this._key)}}function wd(s,n,c){const d=s[n];return ve(d)?d:new yd(s,n,c)}/**
* @vue/runtime-core v3.4.29
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function mi(s,n,c,d){try{return d?s(...d):s()}catch(m){Rs(m,n,c)}}function He(s,n,c,d){if(St(s)){const m=mi(s,n,c,d);return m&&ml(m)&&m.catch(y=>{Rs(y,n,c)}),m}if(kt(s)){const m=[];for(let y=0;y<s.length;y++)m.push(He(s[y],n,c,d));return m}}function Rs(s,n,c,d=!0){const m=n?n.vnode:null;if(n){let y=n.parent;const C=n.proxy,L=`https://vuejs.org/error-reference/#runtime-${c}`;for(;y;){const z=y.ec;if(z){for(let Y=0;Y<z.length;Y++)if(z[Y](s,C,L)===!1)return}y=y.parent}const M=n.appContext.config.errorHandler;if(M){ki(),mi(M,null,10,[s,C,L]),Ai();return}}kd(s,c,m,d)}function kd(s,n,c,d=!0){console.error(s)}let ya=!1,yr=!1;const xe=[];let Ve=0;const Zi=[];let ui=null,Ii=0;const Dl=Promise.resolve();let ln=null;function Hl(s){const n=ln||Dl;return s?n.then(this?s.bind(this):s):n}function Ad(s){let n=Ve+1,c=xe.length;for(;n<c;){const d=n+c>>>1,m=xe[d],y=wa(m);y<s||y===s&&m.pre?n=d+1:c=d}return n}function cn(s){(!xe.length||!xe.includes(s,ya&&s.allowRecurse?Ve+1:Ve))&&(s.id==null?xe.push(s):xe.splice(Ad(s.id),0,s),Bl())}function Bl(){!ya&&!yr&&(yr=!0,ln=Dl.then(Vl))}function Sd(s){const n=xe.indexOf(s);n>Ve&&xe.splice(n,1)}function Cd(s){kt(s)?Zi.push(...s):(!ui||!ui.includes(s,s.allowRecurse?Ii+1:Ii))&&Zi.push(s),Bl()}function $n(s,n,c=ya?Ve+1:0){for(;c<xe.length;c++){const d=xe[c];if(d&&d.pre){if(s&&d.id!==s.uid)continue;xe.splice(c,1),c--,d()}}}function Wl(s){if(Zi.length){const n=[...new Set(Zi)].sort((c,d)=>wa(c)-wa(d));if(Zi.length=0,ui){ui.push(...n);return}for(ui=n,Ii=0;Ii<ui.length;Ii++){const c=ui[Ii];c.active!==!1&&c()}ui=null,Ii=0}}const wa=s=>s.id==null?1/0:s.id,Pd=(s,n)=>{const c=wa(s)-wa(n);if(c===0){if(s.pre&&!n.pre)return-1;if(n.pre&&!s.pre)return 1}return c};function Vl(s){yr=!1,ya=!0,xe.sort(Pd);try{for(Ve=0;Ve<xe.length;Ve++){const n=xe[Ve];n&&n.active!==!1&&mi(n,null,14)}}finally{Ve=0,xe.length=0,Wl(),ya=!1,ln=null,(xe.length||Zi.length)&&Vl()}}function Ld(s,n,...c){if(s.isUnmounted)return;const d=s.vnode.props||Vt;let m=c;const y=n.startsWith("update:"),C=y&&n.slice(7);if(C&&C in d){const Y=`${C==="modelValue"?"model":C}Modifiers`,{number:D,trim:W}=d[Y]||Vt;W&&(m=c.map(q=>le(q)?q.trim():q)),D&&(m=c.map(Nh))}let L,M=d[L=Ks(n)]||d[L=Ks(Ue(n))];!M&&y&&(M=d[L=Ks(ta(n))]),M&&He(M,s,6,m);const z=d[L+"Once"];if(z){if(!s.emitted)s.emitted={};else if(s.emitted[L])return;s.emitted[L]=!0,He(z,s,6,m)}}function Gl(s,n,c=!1){const d=n.emitsCache,m=d.get(s);if(m!==void 0)return m;const y=s.emits;let C={},L=!1;if(!St(s)){const M=z=>{const Y=Gl(z,n,!0);Y&&(L=!0,he(C,Y))};!c&&n.mixins.length&&n.mixins.forEach(M),s.extends&&M(s.extends),s.mixins&&s.mixins.forEach(M)}return!y&&!L?(Zt(s)&&d.set(s,null),null):(kt(y)?y.forEach(M=>C[M]=null):he(C,y),Zt(s)&&d.set(s,C),C)}function zs(s,n){return!s||!Es(n)?!1:(n=n.slice(2).replace(/Once$/,""),Xt(s,n[0].toLowerCase()+n.slice(1))||Xt(s,ta(n))||Xt(s,n))}let Se=null,jl=null;function vs(s){const n=Se;return Se=s,jl=s&&s.type.__scopeId||null,n}function Ul(s,n=Se,c){if(!n||s._n)return s;const d=(...m)=>{d._d&&oo(-1);const y=vs(n);let C;try{C=s(...m)}finally{vs(y),d._d&&oo(1)}return C};return d._n=!0,d._c=!0,d._d=!0,d}function tr(s){const{type:n,vnode:c,proxy:d,withProxy:m,propsOptions:[y],slots:C,attrs:L,emit:M,render:z,renderCache:Y,props:D,data:W,setupState:q,ctx:xt,inheritAttrs:nt}=s,Ot=vs(s);let et,R;try{if(c.shapeFlag&4){const ut=m||d,V=ut;et=We(z.call(V,ut,Y,D,q,W,xt)),R=L}else{const ut=n;et=We(ut.length>1?ut(D,{attrs:L,slots:C,emit:M}):ut(D,null)),R=n.props?L:_d(L)}}catch(ut){pa.length=0,Rs(ut,s,1),et=Et(Fi)}let ht=et;if(R&&nt!==!1){const ut=Object.keys(R),{shapeFlag:V}=ht;ut.length&&V&7&&(y&&ut.some(Kr)&&(R=Ed(R,y)),ht=Ji(ht,R,!1,!0))}return c.dirs&&(ht=Ji(ht,null,!1,!0),ht.dirs=ht.dirs?ht.dirs.concat(c.dirs):c.dirs),c.transition&&(ht.transition=c.transition),et=ht,vs(Ot),et}const _d=s=>{let n;for(const c in s)(c==="class"||c==="style"||Es(c))&&((n||(n={}))[c]=s[c]);return n},Ed=(s,n)=>{const c={};for(const d in s)(!Kr(d)||!(d.slice(9)in n))&&(c[d]=s[d]);return c};function Td(s,n,c){const{props:d,children:m,component:y}=s,{props:C,children:L,patchFlag:M}=n,z=y.emitsOptions;if(n.dirs||n.transition)return!0;if(c&&M>=0){if(M&1024)return!0;if(M&16)return d?qn(d,C,z):!!C;if(M&8){const Y=n.dynamicProps;for(let D=0;D<Y.length;D++){const W=Y[D];if(C[W]!==d[W]&&!zs(z,W))return!0}}}else return(m||L)&&(!L||!L.$stable)?!0:d===C?!1:d?C?qn(d,C,z):!0:!!C;return!1}function qn(s,n,c){const d=Object.keys(n);if(d.length!==Object.keys(s).length)return!0;for(let m=0;m<d.length;m++){const y=d[m];if(n[y]!==s[y]&&!zs(c,y))return!0}return!1}function Id({vnode:s,parent:n},c){for(;n;){const d=n.subTree;if(d.suspense&&d.suspense.activeBranch===s&&(d.el=s.el),d===s)(s=n.vnode).el=c,n=n.parent;else break}}const Md="components";function Od(s,n){return zd(Md,s,!0,n)||s}const Rd=Symbol.for("v-ndc");function zd(s,n,c=!0,d=!1){const m=Se||fe;if(m){const y=m.type;{const L=_u(y,!1);if(L&&(L===n||L===Ue(n)||L===Ms(Ue(n))))return y}const C=Zn(m[s]||y[s],n)||Zn(m.appContext[s],n);return!C&&d?y:C}}function Zn(s,n){return s&&(s[n]||s[Ue(n)]||s[Ms(Ue(n))])}const Fd=s=>s.__isSuspense;function Nd(s,n){n&&n.pendingBranch?kt(s)?n.effects.push(...s):n.effects.push(s):Cd(s)}function Fs(s,n,c=fe,d=!1){if(c){const m=c[s]||(c[s]=[]),y=n.__weh||(n.__weh=(...C)=>{ki();const L=Ia(c),M=He(n,c,s,C);return L(),Ai(),M});return d?m.unshift(y):m.push(y),y}}const ri=s=>(n,c=fe)=>{(!Xs||s==="sp")&&Fs(s,(...d)=>n(...d),c)},$l=ri("bm"),Ta=ri("m"),Xd=ri("bu"),Yd=ri("u"),ql=ri("bum"),Zl=ri("um"),Dd=ri("sp"),Hd=ri("rtg"),Bd=ri("rtc");function Wd(s,n=fe){Fs("ec",s,n)}function Kn(s,n){if(Se===null)return s;const c=Ys(Se),d=s.dirs||(s.dirs=[]);for(let m=0;m<n.length;m++){let[y,C,L,M=Vt]=n[m];y&&(St(y)&&(y={mounted:y,updated:y}),y.deep&&gi(C),d.push({dir:y,instance:c,value:C,oldValue:void 0,arg:L,modifiers:M}))}return s}function Ei(s,n,c,d){const m=s.dirs,y=n&&n.dirs;for(let C=0;C<m.length;C++){const L=m[C];y&&(L.oldValue=y[C].value);let M=L.dir[d];M&&(ki(),He(M,c,8,[s.el,L,s,n]),Ai())}}function pi(s,n,c,d){let m;const y=c;if(kt(s)||le(s)){m=new Array(s.length);for(let C=0,L=s.length;C<L;C++)m[C]=n(s[C],C,void 0,y)}else if(typeof s=="number"){m=new Array(s);for(let C=0;C<s;C++)m[C]=n(C+1,C,void 0,y)}else if(Zt(s))if(s[Symbol.iterator])m=Array.from(s,(C,L)=>n(C,L,void 0,y));else{const C=Object.keys(s);m=new Array(C.length);for(let L=0,M=C.length;L<M;L++){const z=C[L];m[L]=n(s[z],z,L,y)}}else m=[];return m}/*! #__NO_SIDE_EFFECTS__ */function Kl(s,n){return St(s)?he({name:s.name},n,{setup:s}):s}const os=s=>!!s.type.__asyncLoader,wr=s=>s?mc(s)?Ys(s):wr(s.parent):null,fa=he(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>s.props,$attrs:s=>s.attrs,$slots:s=>s.slots,$refs:s=>s.refs,$parent:s=>wr(s.parent),$root:s=>wr(s.root),$emit:s=>s.emit,$options:s=>hn(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,cn(s.update)}),$nextTick:s=>s.n||(s.n=Hl.bind(s.proxy)),$watch:s=>hu.bind(s)}),er=(s,n)=>s!==Vt&&!s.__isScriptSetup&&Xt(s,n),Vd={get({_:s},n){if(n==="__v_skip")return!0;const{ctx:c,setupState:d,data:m,props:y,accessCache:C,type:L,appContext:M}=s;let z;if(n[0]!=="$"){const q=C[n];if(q!==void 0)switch(q){case 1:return d[n];case 2:return m[n];case 4:return c[n];case 3:return y[n]}else{if(er(d,n))return C[n]=1,d[n];if(m!==Vt&&Xt(m,n))return C[n]=2,m[n];if((z=s.propsOptions[0])&&Xt(z,n))return C[n]=3,y[n];if(c!==Vt&&Xt(c,n))return C[n]=4,c[n];kr&&(C[n]=0)}}const Y=fa[n];let D,W;if(Y)return n==="$attrs"&&Ce(s.attrs,"get",""),Y(s);if((D=L.__cssModules)&&(D=D[n]))return D;if(c!==Vt&&Xt(c,n))return C[n]=4,c[n];if(W=M.config.globalProperties,Xt(W,n))return W[n]},set({_:s},n,c){const{data:d,setupState:m,ctx:y}=s;return er(m,n)?(m[n]=c,!0):d!==Vt&&Xt(d,n)?(d[n]=c,!0):Xt(s.props,n)||n[0]==="$"&&n.slice(1)in s?!1:(y[n]=c,!0)},has({_:{data:s,setupState:n,accessCache:c,ctx:d,appContext:m,propsOptions:y}},C){let L;return!!c[C]||s!==Vt&&Xt(s,C)||er(n,C)||(L=y[0])&&Xt(L,C)||Xt(d,C)||Xt(fa,C)||Xt(m.config.globalProperties,C)},defineProperty(s,n,c){return c.get!=null?s._.accessCache[n]=0:Xt(c,"value")&&this.set(s,n,c.value,null),Reflect.defineProperty(s,n,c)}};function Jn(s){return kt(s)?s.reduce((n,c)=>(n[c]=null,n),{}):s}let kr=!0;function Gd(s){const n=hn(s),c=s.proxy,d=s.ctx;kr=!1,n.beforeCreate&&Qn(n.beforeCreate,s,"bc");const{data:m,computed:y,methods:C,watch:L,provide:M,inject:z,created:Y,beforeMount:D,mounted:W,beforeUpdate:q,updated:xt,activated:nt,deactivated:Ot,beforeDestroy:et,beforeUnmount:R,destroyed:ht,unmounted:ut,render:V,renderTracked:it,renderTriggered:Mt,errorCaptured:$t,serverPrefetch:oe,expose:de,inheritAttrs:vt,components:Lt,directives:ge,filters:Tt}=n;if(z&&jd(z,d,null),C)for(const Yt in C){const Rt=C[Yt];St(Rt)&&(d[Yt]=Rt.bind(c))}if(m){const Yt=m.call(c,c);Zt(Yt)&&(s.data=Ea(Yt))}if(kr=!0,y)for(const Yt in y){const Rt=y[Yt],Le=St(Rt)?Rt.bind(c,c):St(Rt.get)?Rt.get.bind(c,c):Me,Si=!St(Rt)&&St(Rt.set)?Rt.set.bind(c):Me,qe=Pt({get:Le,set:Si});Object.defineProperty(d,Yt,{enumerable:!0,configurable:!0,get:()=>qe.value,set:Jt=>qe.value=Jt})}if(L)for(const Yt in L)Jl(L[Yt],d,c,Yt);if(M){const Yt=St(M)?M.call(c):M;Reflect.ownKeys(Yt).forEach(Rt=>{Jd(Rt,Yt[Rt])})}Y&&Qn(Y,s,"c");function Kt(Yt,Rt){kt(Rt)?Rt.forEach(Le=>Yt(Le.bind(c))):Rt&&Yt(Rt.bind(c))}if(Kt($l,D),Kt(Ta,W),Kt(Xd,q),Kt(Yd,xt),Kt(du,nt),Kt(uu,Ot),Kt(Wd,$t),Kt(Bd,it),Kt(Hd,Mt),Kt(ql,R),Kt(Zl,ut),Kt(Dd,oe),kt(de))if(de.length){const Yt=s.exposed||(s.exposed={});de.forEach(Rt=>{Object.defineProperty(Yt,Rt,{get:()=>c[Rt],set:Le=>c[Rt]=Le})})}else s.exposed||(s.exposed={});V&&s.render===Me&&(s.render=V),vt!=null&&(s.inheritAttrs=vt),Lt&&(s.components=Lt),ge&&(s.directives=ge)}function jd(s,n,c=Me){kt(s)&&(s=Ar(s));for(const d in s){const m=s[d];let y;Zt(m)?"default"in m?y=ls(m.from||d,m.default,!0):y=ls(m.from||d):y=ls(m),ve(y)?Object.defineProperty(n,d,{enumerable:!0,configurable:!0,get:()=>y.value,set:C=>y.value=C}):n[d]=y}}function Qn(s,n,c){He(kt(s)?s.map(d=>d.bind(n.proxy)):s.bind(n.proxy),n,c)}function Jl(s,n,c,d){const m=d.includes(".")?dc(c,d):()=>c[d];if(le(s)){const y=n[s];St(y)&&Ee(m,y)}else if(St(s))Ee(m,s.bind(c));else if(Zt(s))if(kt(s))s.forEach(y=>Jl(y,n,c,d));else{const y=St(s.handler)?s.handler.bind(c):n[s.handler];St(y)&&Ee(m,y,s)}}function hn(s){const n=s.type,{mixins:c,extends:d}=n,{mixins:m,optionsCache:y,config:{optionMergeStrategies:C}}=s.appContext,L=y.get(n);let M;return L?M=L:!m.length&&!c&&!d?M=n:(M={},m.length&&m.forEach(z=>ys(M,z,C,!0)),ys(M,n,C)),Zt(n)&&y.set(n,M),M}function ys(s,n,c,d=!1){const{mixins:m,extends:y}=n;y&&ys(s,y,c,!0),m&&m.forEach(C=>ys(s,C,c,!0));for(const C in n)if(!(d&&C==="expose")){const L=Ud[C]||c&&c[C];s[C]=L?L(s[C],n[C]):n[C]}return s}const Ud={data:to,props:eo,emits:eo,methods:la,computed:la,beforeCreate:be,created:be,beforeMount:be,mounted:be,beforeUpdate:be,updated:be,beforeDestroy:be,beforeUnmount:be,destroyed:be,unmounted:be,activated:be,deactivated:be,errorCaptured:be,serverPrefetch:be,components:la,directives:la,watch:qd,provide:to,inject:$d};function to(s,n){return n?s?function(){return he(St(s)?s.call(this,this):s,St(n)?n.call(this,this):n)}:n:s}function $d(s,n){return la(Ar(s),Ar(n))}function Ar(s){if(kt(s)){const n={};for(let c=0;c<s.length;c++)n[s[c]]=s[c];return n}return s}function be(s,n){return s?[...new Set([].concat(s,n))]:n}function la(s,n){return s?he(Object.create(null),s,n):n}function eo(s,n){return s?kt(s)&&kt(n)?[...new Set([...s,...n])]:he(Object.create(null),Jn(s),Jn(n??{})):n}function qd(s,n){if(!s)return n;if(!n)return s;const c=he(Object.create(null),s);for(const d in n)c[d]=be(s[d],n[d]);return c}function Ql(){return{app:null,config:{isNativeTag:Mh,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Zd=0;function Kd(s,n){return function(d,m=null){St(d)||(d=he({},d)),m!=null&&!Zt(m)&&(m=null);const y=Ql(),C=new WeakSet;let L=!1;const M=y.app={_uid:Zd++,_component:d,_props:m,_container:null,_context:y,_instance:null,version:Tu,get config(){return y.config},set config(z){},use(z,...Y){return C.has(z)||(z&&St(z.install)?(C.add(z),z.install(M,...Y)):St(z)&&(C.add(z),z(M,...Y))),M},mixin(z){return y.mixins.includes(z)||y.mixins.push(z),M},component(z,Y){return Y?(y.components[z]=Y,M):y.components[z]},directive(z,Y){return Y?(y.directives[z]=Y,M):y.directives[z]},mount(z,Y,D){if(!L){const W=Et(d,m);return W.appContext=y,D===!0?D="svg":D===!1&&(D=void 0),Y&&n?n(W,z):s(W,z,D),L=!0,M._container=z,z.__vue_app__=M,Ys(W.component)}},unmount(){L&&(s(null,M._container),delete M._container.__vue_app__)},provide(z,Y){return y.provides[z]=Y,M},runWithContext(z){const Y=ga;ga=M;try{return z()}finally{ga=Y}}};return M}}let ga=null;function Jd(s,n){if(fe){let c=fe.provides;const d=fe.parent&&fe.parent.provides;d===c&&(c=fe.provides=Object.create(d)),c[s]=n}}function ls(s,n,c=!1){const d=fe||Se;if(d||ga){const m=d?d.parent==null?d.vnode.appContext&&d.vnode.appContext.provides:d.parent.provides:ga._context.provides;if(m&&s in m)return m[s];if(arguments.length>1)return c&&St(n)?n.call(d&&d.proxy):n}}const tc={},ec=()=>Object.create(tc),ic=s=>Object.getPrototypeOf(s)===tc;function Qd(s,n,c,d=!1){const m={},y=ec();s.propsDefaults=Object.create(null),ac(s,n,m,y);for(const C in s.propsOptions[0])C in m||(m[C]=void 0);c?s.props=d?m:fd(m):s.type.props?s.props=m:s.props=y,s.attrs=y}function tu(s,n,c,d){const{props:m,attrs:y,vnode:{patchFlag:C}}=s,L=Dt(m),[M]=s.propsOptions;let z=!1;if((d||C>0)&&!(C&16)){if(C&8){const Y=s.vnode.dynamicProps;for(let D=0;D<Y.length;D++){let W=Y[D];if(zs(s.emitsOptions,W))continue;const q=n[W];if(M)if(Xt(y,W))q!==y[W]&&(y[W]=q,z=!0);else{const xt=Ue(W);m[xt]=Sr(M,L,xt,q,s,!1)}else q!==y[W]&&(y[W]=q,z=!0)}}}else{ac(s,n,m,y)&&(z=!0);let Y;for(const D in L)(!n||!Xt(n,D)&&((Y=ta(D))===D||!Xt(n,Y)))&&(M?c&&(c[D]!==void 0||c[Y]!==void 0)&&(m[D]=Sr(M,L,D,void 0,s,!0)):delete m[D]);if(y!==L)for(const D in y)(!n||!Xt(n,D))&&(delete y[D],z=!0)}z&&ei(s.attrs,"set","")}function ac(s,n,c,d){const[m,y]=s.propsOptions;let C=!1,L;if(n)for(let M in n){if(da(M))continue;const z=n[M];let Y;m&&Xt(m,Y=Ue(M))?!y||!y.includes(Y)?c[Y]=z:(L||(L={}))[Y]=z:zs(s.emitsOptions,M)||(!(M in d)||z!==d[M])&&(d[M]=z,C=!0)}if(y){const M=Dt(c),z=L||Vt;for(let Y=0;Y<y.length;Y++){const D=y[Y];c[D]=Sr(m,M,D,z[D],s,!Xt(z,D))}}return C}function Sr(s,n,c,d,m,y){const C=s[c];if(C!=null){const L=Xt(C,"default");if(L&&d===void 0){const M=C.default;if(C.type!==Function&&!C.skipFactory&&St(M)){const{propsDefaults:z}=m;if(c in z)d=z[c];else{const Y=Ia(m);d=z[c]=M.call(null,n),Y()}}else d=M}C[0]&&(y&&!L?d=!1:C[1]&&(d===""||d===ta(c))&&(d=!0))}return d}function sc(s,n,c=!1){const d=n.propsCache,m=d.get(s);if(m)return m;const y=s.props,C={},L=[];let M=!1;if(!St(s)){const Y=D=>{M=!0;const[W,q]=sc(D,n,!0);he(C,W),q&&L.push(...q)};!c&&n.mixins.length&&n.mixins.forEach(Y),s.extends&&Y(s.extends),s.mixins&&s.mixins.forEach(Y)}if(!y&&!M)return Zt(s)&&d.set(s,$i),$i;if(kt(y))for(let Y=0;Y<y.length;Y++){const D=Ue(y[Y]);io(D)&&(C[D]=Vt)}else if(y)for(const Y in y){const D=Ue(Y);if(io(D)){const W=y[Y],q=C[D]=kt(W)||St(W)?{type:W}:he({},W);if(q){const xt=ro(Boolean,q.type),nt=ro(String,q.type);q[0]=xt>-1,q[1]=nt<0||xt<nt,(xt>-1||Xt(q,"default"))&&L.push(D)}}}const z=[C,L];return Zt(s)&&d.set(s,z),z}function io(s){return s[0]!=="$"&&!da(s)}function ao(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function so(s,n){return ao(s)===ao(n)}function ro(s,n){return kt(n)?n.findIndex(c=>so(c,s)):St(n)&&so(n,s)?0:-1}const rc=s=>s[0]==="_"||s==="$stable",dn=s=>kt(s)?s.map(We):[We(s)],eu=(s,n,c)=>{if(n._n)return n;const d=Ul((...m)=>dn(n(...m)),c);return d._c=!1,d},nc=(s,n,c)=>{const d=s._ctx;for(const m in s){if(rc(m))continue;const y=s[m];if(St(y))n[m]=eu(m,y,d);else if(y!=null){const C=dn(y);n[m]=()=>C}}},oc=(s,n)=>{const c=dn(n);s.slots.default=()=>c},iu=(s,n)=>{const c=s.slots=ec();if(s.vnode.shapeFlag&32){const d=n._;d?(he(c,n),yl(c,"_",d,!0)):nc(n,c)}else n&&oc(s,n)},au=(s,n,c)=>{const{vnode:d,slots:m}=s;let y=!0,C=Vt;if(d.shapeFlag&32){const L=n._;L?c&&L===1?y=!1:(he(m,n),!c&&L===1&&delete m._):(y=!n.$stable,nc(n,m)),C=n}else n&&(oc(s,n),C={default:1});if(y)for(const L in m)!rc(L)&&C[L]==null&&delete m[L]};function Cr(s,n,c,d,m=!1){if(kt(s)){s.forEach((W,q)=>Cr(W,n&&(kt(n)?n[q]:n),c,d,m));return}if(os(d)&&!m)return;const y=d.shapeFlag&4?Ys(d.component):d.el,C=m?null:y,{i:L,r:M}=s,z=n&&n.r,Y=L.refs===Vt?L.refs={}:L.refs,D=L.setupState;if(z!=null&&z!==M&&(le(z)?(Y[z]=null,Xt(D,z)&&(D[z]=null)):ve(z)&&(z.value=null)),St(M))mi(M,L,12,[C,Y]);else{const W=le(M),q=ve(M);if(W||q){const xt=()=>{if(s.f){const nt=W?Xt(D,M)?D[M]:Y[M]:M.value;m?kt(nt)&&Jr(nt,y):kt(nt)?nt.includes(y)||nt.push(y):W?(Y[M]=[y],Xt(D,M)&&(D[M]=Y[M])):(M.value=[y],s.k&&(Y[s.k]=M.value))}else W?(Y[M]=C,Xt(D,M)&&(D[M]=C)):q&&(M.value=C,s.k&&(Y[s.k]=C))};C?(xt.id=-1,Ae(xt,c)):xt()}}}const Ae=Nd;function su(s){return ru(s)}function ru(s,n){const c=wl();c.__VUE__=!0;const{insert:d,remove:m,patchProp:y,createElement:C,createText:L,createComment:M,setText:z,setElementText:Y,parentNode:D,nextSibling:W,setScopeId:q=Me,insertStaticContent:xt}=s,nt=(X,H,U,Z=null,K=null,Q=null,rt=void 0,tt=null,at=!!H.dynamicChildren)=>{if(X===H)return;X&&!ra(X,H)&&(Z=Ci(X),Jt(X,K,Q,!0),X=null),H.patchFlag===-2&&(at=!1,H.dynamicChildren=null);const{type:J,ref:ot,shapeFlag:bt}=H;switch(J){case Ns:Ot(X,H,U,Z);break;case Fi:et(X,H,U,Z);break;case cs:X==null&&R(H,U,Z,rt);break;case jt:Lt(X,H,U,Z,K,Q,rt,tt,at);break;default:bt&1?V(X,H,U,Z,K,Q,rt,tt,at):bt&6?ge(X,H,U,Z,K,Q,rt,tt,at):(bt&64||bt&128)&&J.process(X,H,U,Z,K,Q,rt,tt,at,ze)}ot!=null&&K&&Cr(ot,X&&X.ref,Q,H||X,!H)},Ot=(X,H,U,Z)=>{if(X==null)d(H.el=L(H.children),U,Z);else{const K=H.el=X.el;H.children!==X.children&&z(K,H.children)}},et=(X,H,U,Z)=>{X==null?d(H.el=M(H.children||""),U,Z):H.el=X.el},R=(X,H,U,Z)=>{[X.el,X.anchor]=xt(X.children,H,U,Z,X.el,X.anchor)},ht=({el:X,anchor:H},U,Z)=>{let K;for(;X&&X!==H;)K=W(X),d(X,U,Z),X=K;d(H,U,Z)},ut=({el:X,anchor:H})=>{let U;for(;X&&X!==H;)U=W(X),m(X),X=U;m(H)},V=(X,H,U,Z,K,Q,rt,tt,at)=>{H.type==="svg"?rt="svg":H.type==="math"&&(rt="mathml"),X==null?it(H,U,Z,K,Q,rt,tt,at):oe(X,H,K,Q,rt,tt,at)},it=(X,H,U,Z,K,Q,rt,tt)=>{let at,J;const{props:ot,shapeFlag:bt,transition:pt,dirs:wt}=X;if(at=X.el=C(X.type,Q,ot&&ot.is,ot),bt&8?Y(at,X.children):bt&16&&$t(X.children,at,null,Z,K,ir(X,Q),rt,tt),wt&&Ei(X,null,Z,"created"),Mt(at,X,X.scopeId,rt,Z),ot){for(const Ht in ot)Ht!=="value"&&!da(Ht)&&y(at,Ht,null,ot[Ht],Q,X.children,Z,K,Qt);"value"in ot&&y(at,"value",null,ot.value,Q),(J=ot.onVnodeBeforeMount)&&Be(J,Z,X)}wt&&Ei(X,null,Z,"beforeMount");const _t=nu(K,pt);_t&&pt.beforeEnter(at),d(at,H,U),((J=ot&&ot.onVnodeMounted)||_t||wt)&&Ae(()=>{J&&Be(J,Z,X),_t&&pt.enter(at),wt&&Ei(X,null,Z,"mounted")},K)},Mt=(X,H,U,Z,K)=>{if(U&&q(X,U),Z)for(let Q=0;Q<Z.length;Q++)q(X,Z[Q]);if(K){let Q=K.subTree;if(H===Q){const rt=K.vnode;Mt(X,rt,rt.scopeId,rt.slotScopeIds,K.parent)}}},$t=(X,H,U,Z,K,Q,rt,tt,at=0)=>{for(let J=at;J<X.length;J++){const ot=X[J]=tt?fi(X[J]):We(X[J]);nt(null,ot,H,U,Z,K,Q,rt,tt)}},oe=(X,H,U,Z,K,Q,rt)=>{const tt=H.el=X.el;let{patchFlag:at,dynamicChildren:J,dirs:ot}=H;at|=X.patchFlag&16;const bt=X.props||Vt,pt=H.props||Vt;let wt;if(U&&Ti(U,!1),(wt=pt.onVnodeBeforeUpdate)&&Be(wt,U,H,X),ot&&Ei(H,X,U,"beforeUpdate"),U&&Ti(U,!0),J?de(X.dynamicChildren,J,tt,U,Z,ir(H,K),Q):rt||Rt(X,H,tt,null,U,Z,ir(H,K),Q,!1),at>0){if(at&16)vt(tt,H,bt,pt,U,Z,K);else if(at&2&&bt.class!==pt.class&&y(tt,"class",null,pt.class,K),at&4&&y(tt,"style",bt.style,pt.style,K),at&8){const _t=H.dynamicProps;for(let Ht=0;Ht<_t.length;Ht++){const Nt=_t[Ht],re=bt[Nt],ye=pt[Nt];(ye!==re||Nt==="value")&&y(tt,Nt,re,ye,K,X.children,U,Z,Qt)}}at&1&&X.children!==H.children&&Y(tt,H.children)}else!rt&&J==null&&vt(tt,H,bt,pt,U,Z,K);((wt=pt.onVnodeUpdated)||ot)&&Ae(()=>{wt&&Be(wt,U,H,X),ot&&Ei(H,X,U,"updated")},Z)},de=(X,H,U,Z,K,Q,rt)=>{for(let tt=0;tt<H.length;tt++){const at=X[tt],J=H[tt],ot=at.el&&(at.type===jt||!ra(at,J)||at.shapeFlag&70)?D(at.el):U;nt(at,J,ot,null,Z,K,Q,rt,!0)}},vt=(X,H,U,Z,K,Q,rt)=>{if(U!==Z){if(U!==Vt)for(const tt in U)!da(tt)&&!(tt in Z)&&y(X,tt,U[tt],null,rt,H.children,K,Q,Qt);for(const tt in Z){if(da(tt))continue;const at=Z[tt],J=U[tt];at!==J&&tt!=="value"&&y(X,tt,J,at,rt,H.children,K,Q,Qt)}"value"in Z&&y(X,"value",U.value,Z.value,rt)}},Lt=(X,H,U,Z,K,Q,rt,tt,at)=>{const J=H.el=X?X.el:L(""),ot=H.anchor=X?X.anchor:L("");let{patchFlag:bt,dynamicChildren:pt,slotScopeIds:wt}=H;wt&&(tt=tt?tt.concat(wt):wt),X==null?(d(J,U,Z),d(ot,U,Z),$t(H.children||[],U,ot,K,Q,rt,tt,at)):bt>0&&bt&64&&pt&&X.dynamicChildren?(de(X.dynamicChildren,pt,U,K,Q,rt,tt),(H.key!=null||K&&H===K.subTree)&&lc(X,H,!0)):Rt(X,H,U,ot,K,Q,rt,tt,at)},ge=(X,H,U,Z,K,Q,rt,tt,at)=>{H.slotScopeIds=tt,X==null?H.shapeFlag&512?K.ctx.activate(H,U,Z,rt,at):Tt(H,U,Z,K,Q,rt,at):Pe(X,H,at)},Tt=(X,H,U,Z,K,Q,rt)=>{const tt=X.component=ku(X,Z,K);if(uc(X)&&(tt.ctx.renderer=ze),Su(tt),tt.asyncDep){if(K&&K.registerDep(tt,Kt,rt),!X.el){const at=tt.subTree=Et(Fi);et(null,at,H,U)}}else Kt(tt,X,H,U,K,Q,rt)},Pe=(X,H,U)=>{const Z=H.component=X.component;if(Td(X,H,U))if(Z.asyncDep&&!Z.asyncResolved){Yt(Z,H,U);return}else Z.next=H,Sd(Z.update),Z.effect.dirty=!0,Z.update();else H.el=X.el,Z.vnode=H},Kt=(X,H,U,Z,K,Q,rt)=>{const tt=()=>{if(X.isMounted){let{next:ot,bu:bt,u:pt,parent:wt,vnode:_t}=X;{const ci=cc(X);if(ci){ot&&(ot.el=_t.el,Yt(X,ot,rt)),ci.asyncDep.then(()=>{X.isUnmounted||tt()});return}}let Ht=ot,Nt;Ti(X,!1),ot?(ot.el=_t.el,Yt(X,ot,rt)):ot=_t,bt&&Js(bt),(Nt=ot.props&&ot.props.onVnodeBeforeUpdate)&&Be(Nt,wt,ot,_t),Ti(X,!0);const re=tr(X),ye=X.subTree;X.subTree=re,nt(ye,re,D(ye.el),Ci(ye),X,K,Q),ot.el=re.el,Ht===null&&Id(X,re.el),pt&&Ae(pt,K),(Nt=ot.props&&ot.props.onVnodeUpdated)&&Ae(()=>Be(Nt,wt,ot,_t),K)}else{let ot;const{el:bt,props:pt}=H,{bm:wt,m:_t,parent:Ht}=X,Nt=os(H);if(Ti(X,!1),wt&&Js(wt),!Nt&&(ot=pt&&pt.onVnodeBeforeMount)&&Be(ot,Ht,H),Ti(X,!0),bt&&Ze){const re=()=>{X.subTree=tr(X),Ze(bt,X.subTree,X,K,null)};Nt?H.type.__asyncLoader().then(()=>!X.isUnmounted&&re()):re()}else{const re=X.subTree=tr(X);nt(null,re,U,Z,X,K,Q),H.el=re.el}if(_t&&Ae(_t,K),!Nt&&(ot=pt&&pt.onVnodeMounted)){const re=H;Ae(()=>Be(ot,Ht,re),K)}(H.shapeFlag&256||Ht&&os(Ht.vnode)&&Ht.vnode.shapeFlag&256)&&X.a&&Ae(X.a,K),X.isMounted=!0,H=U=Z=null}},at=X.effect=new tn(tt,Me,()=>cn(J),X.scope),J=X.update=()=>{at.dirty&&at.run()};J.id=X.uid,Ti(X,!0),J()},Yt=(X,H,U)=>{H.component=X;const Z=X.vnode.props;X.vnode=H,X.next=null,tu(X,H.props,Z,U),au(X,H.children,U),ki(),$n(X),Ai()},Rt=(X,H,U,Z,K,Q,rt,tt,at=!1)=>{const J=X&&X.children,ot=X?X.shapeFlag:0,bt=H.children,{patchFlag:pt,shapeFlag:wt}=H;if(pt>0){if(pt&128){Si(J,bt,U,Z,K,Q,rt,tt,at);return}else if(pt&256){Le(J,bt,U,Z,K,Q,rt,tt,at);return}}wt&8?(ot&16&&Qt(J,K,Q),bt!==J&&Y(U,bt)):ot&16?wt&16?Si(J,bt,U,Z,K,Q,rt,tt,at):Qt(J,K,Q,!0):(ot&8&&Y(U,""),wt&16&&$t(bt,U,Z,K,Q,rt,tt,at))},Le=(X,H,U,Z,K,Q,rt,tt,at)=>{X=X||$i,H=H||$i;const J=X.length,ot=H.length,bt=Math.min(J,ot);let pt;for(pt=0;pt<bt;pt++){const wt=H[pt]=at?fi(H[pt]):We(H[pt]);nt(X[pt],wt,U,null,K,Q,rt,tt,at)}J>ot?Qt(X,K,Q,!0,!1,bt):$t(H,U,Z,K,Q,rt,tt,at,bt)},Si=(X,H,U,Z,K,Q,rt,tt,at)=>{let J=0;const ot=H.length;let bt=X.length-1,pt=ot-1;for(;J<=bt&&J<=pt;){const wt=X[J],_t=H[J]=at?fi(H[J]):We(H[J]);if(ra(wt,_t))nt(wt,_t,U,null,K,Q,rt,tt,at);else break;J++}for(;J<=bt&&J<=pt;){const wt=X[bt],_t=H[pt]=at?fi(H[pt]):We(H[pt]);if(ra(wt,_t))nt(wt,_t,U,null,K,Q,rt,tt,at);else break;bt--,pt--}if(J>bt){if(J<=pt){const wt=pt+1,_t=wt<ot?H[wt].el:Z;for(;J<=pt;)nt(null,H[J]=at?fi(H[J]):We(H[J]),U,_t,K,Q,rt,tt,at),J++}}else if(J>pt)for(;J<=bt;)Jt(X[J],K,Q,!0),J++;else{const wt=J,_t=J,Ht=new Map;for(J=_t;J<=pt;J++){const me=H[J]=at?fi(H[J]):We(H[J]);me.key!=null&&Ht.set(me.key,J)}let Nt,re=0;const ye=pt-_t+1;let ci=!1,sa=0;const Li=new Array(ye);for(J=0;J<ye;J++)Li[J]=0;for(J=wt;J<=bt;J++){const me=X[J];if(re>=ye){Jt(me,K,Q,!0);continue}let _e;if(me.key!=null)_e=Ht.get(me.key);else for(Nt=_t;Nt<=pt;Nt++)if(Li[Nt-_t]===0&&ra(me,H[Nt])){_e=Nt;break}_e===void 0?Jt(me,K,Q,!0):(Li[_e-_t]=J+1,_e>=sa?sa=_e:ci=!0,nt(me,H[_e],U,null,K,Q,rt,tt,at),re++)}const Na=ci?ou(Li):$i;for(Nt=Na.length-1,J=ye-1;J>=0;J--){const me=_t+J,_e=H[me],Xa=me+1<ot?H[me+1].el:Z;Li[J]===0?nt(null,_e,U,Xa,K,Q,rt,tt,at):ci&&(Nt<0||J!==Na[Nt]?qe(_e,U,Xa,2):Nt--)}}},qe=(X,H,U,Z,K=null)=>{const{el:Q,type:rt,transition:tt,children:at,shapeFlag:J}=X;if(J&6){qe(X.component.subTree,H,U,Z);return}if(J&128){X.suspense.move(H,U,Z);return}if(J&64){rt.move(X,H,U,ze);return}if(rt===jt){d(Q,H,U);for(let bt=0;bt<at.length;bt++)qe(at[bt],H,U,Z);d(X.anchor,H,U);return}if(rt===cs){ht(X,H,U);return}if(Z!==2&&J&1&&tt)if(Z===0)tt.beforeEnter(Q),d(Q,H,U),Ae(()=>tt.enter(Q),K);else{const{leave:bt,delayLeave:pt,afterLeave:wt}=tt,_t=()=>d(Q,H,U),Ht=()=>{bt(Q,()=>{_t(),wt&&wt()})};pt?pt(Q,_t,Ht):Ht()}else d(Q,H,U)},Jt=(X,H,U,Z=!1,K=!1)=>{const{type:Q,props:rt,ref:tt,children:at,dynamicChildren:J,shapeFlag:ot,patchFlag:bt,dirs:pt,memoIndex:wt}=X;if(tt!=null&&Cr(tt,null,U,X,!0),wt!=null&&(H.renderCache[wt]=void 0),ot&256){H.ctx.deactivate(X);return}const _t=ot&1&&pt,Ht=!os(X);let Nt;if(Ht&&(Nt=rt&&rt.onVnodeBeforeUnmount)&&Be(Nt,H,X),ot&6)li(X.component,U,Z);else{if(ot&128){X.suspense.unmount(U,Z);return}_t&&Ei(X,null,H,"beforeUnmount"),ot&64?X.type.remove(X,H,U,K,ze,Z):J&&(Q!==jt||bt>0&&bt&64)?Qt(J,H,U,!1,!0):(Q===jt&&bt&384||!K&&ot&16)&&Qt(at,H,U),Z&&oi(X)}(Ht&&(Nt=rt&&rt.onVnodeUnmounted)||_t)&&Ae(()=>{Nt&&Be(Nt,H,X),_t&&Ei(X,null,H,"unmounted")},U)},oi=X=>{const{type:H,el:U,anchor:Z,transition:K}=X;if(H===jt){Fa(U,Z);return}if(H===cs){ut(X);return}const Q=()=>{m(U),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(X.shapeFlag&1&&K&&!K.persisted){const{leave:rt,delayLeave:tt}=K,at=()=>rt(U,Q);tt?tt(X.el,Q,at):at()}else Q()},Fa=(X,H)=>{let U;for(;X!==H;)U=W(X),m(X),X=U;m(H)},li=(X,H,U)=>{const{bum:Z,scope:K,update:Q,subTree:rt,um:tt,m:at,a:J}=X;no(at),no(J),Z&&Js(Z),K.stop(),Q&&(Q.active=!1,Jt(rt,X,H,U)),tt&&Ae(tt,H),Ae(()=>{X.isUnmounted=!0},H),H&&H.pendingBranch&&!H.isUnmounted&&X.asyncDep&&!X.asyncResolved&&X.suspenseId===H.pendingId&&(H.deps--,H.deps===0&&H.resolve())},Qt=(X,H,U,Z=!1,K=!1,Q=0)=>{for(let rt=Q;rt<X.length;rt++)Jt(X[rt],H,U,Z,K)},Ci=X=>X.shapeFlag&6?Ci(X.component.subTree):X.shapeFlag&128?X.suspense.next():W(X.anchor||X.el);let Re=!1;const Pi=(X,H,U)=>{X==null?H._vnode&&Jt(H._vnode,null,null,!0):nt(H._vnode||null,X,H,null,null,null,U),Re||(Re=!0,$n(),Wl(),Re=!1),H._vnode=X},ze={p:nt,um:Jt,m:qe,r:oi,mt:Tt,mc:$t,pc:Rt,pbc:de,n:Ci,o:s};let aa,Ze;return{render:Pi,hydrate:aa,createApp:Kd(Pi,aa)}}function ir({type:s,props:n},c){return c==="svg"&&s==="foreignObject"||c==="mathml"&&s==="annotation-xml"&&n&&n.encoding&&n.encoding.includes("html")?void 0:c}function Ti({effect:s,update:n},c){s.allowRecurse=n.allowRecurse=c}function nu(s,n){return(!s||s&&!s.pendingBranch)&&n&&!n.persisted}function lc(s,n,c=!1){const d=s.children,m=n.children;if(kt(d)&&kt(m))for(let y=0;y<d.length;y++){const C=d[y];let L=m[y];L.shapeFlag&1&&!L.dynamicChildren&&((L.patchFlag<=0||L.patchFlag===32)&&(L=m[y]=fi(m[y]),L.el=C.el),!c&&L.patchFlag!==-2&&lc(C,L)),L.type===Ns&&(L.el=C.el)}}function ou(s){const n=s.slice(),c=[0];let d,m,y,C,L;const M=s.length;for(d=0;d<M;d++){const z=s[d];if(z!==0){if(m=c[c.length-1],s[m]<z){n[d]=m,c.push(d);continue}for(y=0,C=c.length-1;y<C;)L=y+C>>1,s[c[L]]<z?y=L+1:C=L;z<s[c[y]]&&(y>0&&(n[d]=c[y-1]),c[y]=d)}}for(y=c.length,C=c[y-1];y-- >0;)c[y]=C,C=n[C];return c}function cc(s){const n=s.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:cc(n)}function no(s){if(s)for(let n=0;n<s.length;n++)s[n].active=!1}const lu=Symbol.for("v-scx"),cu=()=>ls(lu),Ga={};function Ee(s,n,c){return hc(s,n,c)}function hc(s,n,{immediate:c,deep:d,flush:m,once:y,onTrack:C,onTrigger:L}=Vt){if(n&&y){const it=n;n=(...Mt)=>{it(...Mt),V()}}const M=fe,z=it=>d===!0?it:gi(it,d===!1?1:void 0);let Y,D=!1,W=!1;if(ve(s)?(Y=()=>s.value,D=bs(s)):ua(s)?(Y=()=>z(s),D=!0):kt(s)?(W=!0,D=s.some(it=>ua(it)||bs(it)),Y=()=>s.map(it=>{if(ve(it))return it.value;if(ua(it))return z(it);if(St(it))return mi(it,M,2)})):St(s)?n?Y=()=>mi(s,M,2):Y=()=>(q&&q(),He(s,M,3,[xt])):Y=Me,n&&d){const it=Y;Y=()=>gi(it())}let q,xt=it=>{q=ht.onStop=()=>{mi(it,M,4),q=ht.onStop=void 0}},nt;if(Xs)if(xt=Me,n?c&&He(n,M,3,[Y(),W?[]:void 0,xt]):Y(),m==="sync"){const it=cu();nt=it.__watcherHandles||(it.__watcherHandles=[])}else return Me;let Ot=W?new Array(s.length).fill(Ga):Ga;const et=()=>{if(!(!ht.active||!ht.dirty))if(n){const it=ht.run();(d||D||(W?it.some((Mt,$t)=>bi(Mt,Ot[$t])):bi(it,Ot)))&&(q&&q(),He(n,M,3,[it,Ot===Ga?void 0:W&&Ot[0]===Ga?[]:Ot,xt]),Ot=it)}else ht.run()};et.allowRecurse=!!n;let R;m==="sync"?R=et:m==="post"?R=()=>Ae(et,M&&M.suspense):(et.pre=!0,M&&(et.id=M.uid),R=()=>cn(et));const ht=new tn(Y,Me,R),ut=jh(),V=()=>{ht.stop(),ut&&Jr(ut.effects,ht)};return n?c?et():Ot=ht.run():m==="post"?Ae(ht.run.bind(ht),M&&M.suspense):ht.run(),nt&&nt.push(V),V}function hu(s,n,c){const d=this.proxy,m=le(s)?s.includes(".")?dc(d,s):()=>d[s]:s.bind(d,d);let y;St(n)?y=n:(y=n.handler,c=n);const C=Ia(this),L=hc(m,y.bind(d),c);return C(),L}function dc(s,n){const c=n.split(".");return()=>{let d=s;for(let m=0;m<c.length&&d;m++)d=d[c[m]];return d}}function gi(s,n=1/0,c){if(n<=0||!Zt(s)||s.__v_skip||(c=c||new Set,c.has(s)))return s;if(c.add(s),n--,ve(s))gi(s.value,n,c);else if(kt(s))for(let d=0;d<s.length;d++)gi(s[d],n,c);else if(xl(s)||qi(s))s.forEach(d=>{gi(d,n,c)});else if(vl(s)){for(const d in s)gi(s[d],n,c);for(const d of Object.getOwnPropertySymbols(s))Object.prototype.propertyIsEnumerable.call(s,d)&&gi(s[d],n,c)}return s}const uc=s=>s.type.__isKeepAlive;function du(s,n){fc(s,"a",n)}function uu(s,n){fc(s,"da",n)}function fc(s,n,c=fe){const d=s.__wdc||(s.__wdc=()=>{let m=c;for(;m;){if(m.isDeactivated)return;m=m.parent}return s()});if(Fs(n,d,c),c){let m=c.parent;for(;m&&m.parent;)uc(m.parent.vnode)&&fu(d,n,c,m),m=m.parent}}function fu(s,n,c,d){const m=Fs(n,s,d,!0);Zl(()=>{Jr(d[n],m)},c)}function gc(s,n){s.shapeFlag&6&&s.component?gc(s.component.subTree,n):s.shapeFlag&128?(s.ssContent.transition=n.clone(s.ssContent),s.ssFallback.transition=n.clone(s.ssFallback)):s.transition=n}const gu=s=>s.__isTeleport,jt=Symbol.for("v-fgt"),Ns=Symbol.for("v-txt"),Fi=Symbol.for("v-cmt"),cs=Symbol.for("v-stc"),pa=[];let Ye=null;function gt(s=!1){pa.push(Ye=s?null:[])}function pu(){pa.pop(),Ye=pa[pa.length-1]||null}let ka=1;function oo(s){ka+=s}function pc(s){return s.dynamicChildren=ka>0?Ye||$i:null,pu(),ka>0&&Ye&&Ye.push(s),s}function yt(s,n,c,d,m,y){return pc(G(s,n,c,d,m,y,!0))}function Gi(s,n,c,d,m){return pc(Et(s,n,c,d,m,!0))}function Pr(s){return s?s.__v_isVNode===!0:!1}function ra(s,n){return s.type===n.type&&s.key===n.key}const xc=({key:s})=>s??null,hs=({ref:s,ref_key:n,ref_for:c})=>(typeof s=="number"&&(s=""+s),s!=null?le(s)||ve(s)||St(s)?{i:Se,r:s,k:n,f:!!c}:s:null);function G(s,n=null,c=null,d=0,m=null,y=s===jt?0:1,C=!1,L=!1){const M={__v_isVNode:!0,__v_skip:!0,type:s,props:n,key:n&&xc(n),ref:n&&hs(n),scopeId:jl,slotScopeIds:null,children:c,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:y,patchFlag:d,dynamicProps:m,dynamicChildren:null,appContext:null,ctx:Se};return L?(un(M,c),y&128&&s.normalize(M)):c&&(M.shapeFlag|=le(c)?8:16),ka>0&&!C&&Ye&&(M.patchFlag>0||y&6)&&M.patchFlag!==32&&Ye.push(M),M}const Et=xu;function xu(s,n=null,c=null,d=0,m=null,y=!1){if((!s||s===Rd)&&(s=Fi),Pr(s)){const L=Ji(s,n,!0);return c&&un(L,c),ka>0&&!y&&Ye&&(L.shapeFlag&6?Ye[Ye.indexOf(s)]=L:Ye.push(L)),L.patchFlag=-2,L}if(Eu(s)&&(s=s.__vccOpts),n){n=mu(n);let{class:L,style:M}=n;L&&!le(L)&&(n.class=ae(L)),Zt(M)&&(Fl(M)&&!kt(M)&&(M=he({},M)),n.style=_a(M))}const C=le(s)?1:Fd(s)?128:gu(s)?64:Zt(s)?4:St(s)?2:0;return G(s,n,c,d,m,C,y,!0)}function mu(s){return s?Fl(s)||ic(s)?he({},s):s:null}function Ji(s,n,c=!1,d=!1){const{props:m,ref:y,patchFlag:C,children:L,transition:M}=s,z=n?vu(m||{},n):m,Y={__v_isVNode:!0,__v_skip:!0,type:s.type,props:z,key:z&&xc(z),ref:n&&n.ref?c&&y?kt(y)?y.concat(hs(n)):[y,hs(n)]:hs(n):y,scopeId:s.scopeId,slotScopeIds:s.slotScopeIds,children:L,target:s.target,targetAnchor:s.targetAnchor,staticCount:s.staticCount,shapeFlag:s.shapeFlag,patchFlag:n&&s.type!==jt?C===-1?16:C|16:C,dynamicProps:s.dynamicProps,dynamicChildren:s.dynamicChildren,appContext:s.appContext,dirs:s.dirs,transition:M,component:s.component,suspense:s.suspense,ssContent:s.ssContent&&Ji(s.ssContent),ssFallback:s.ssFallback&&Ji(s.ssFallback),el:s.el,anchor:s.anchor,ctx:s.ctx,ce:s.ce};return M&&d&&gc(Y,M.clone(Y)),Y}function te(s=" ",n=0){return Et(Ns,null,s,n)}function bu(s,n){const c=Et(cs,null,s);return c.staticCount=n,c}function Ni(s="",n=!1){return n?(gt(),Gi(Fi,null,s)):Et(Fi,null,s)}function We(s){return s==null||typeof s=="boolean"?Et(Fi):kt(s)?Et(jt,null,s.slice()):typeof s=="object"?fi(s):Et(Ns,null,String(s))}function fi(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:Ji(s)}function un(s,n){let c=0;const{shapeFlag:d}=s;if(n==null)n=null;else if(kt(n))c=16;else if(typeof n=="object")if(d&65){const m=n.default;m&&(m._c&&(m._d=!1),un(s,m()),m._c&&(m._d=!0));return}else{c=32;const m=n._;!m&&!ic(n)?n._ctx=Se:m===3&&Se&&(Se.slots._===1?n._=1:(n._=2,s.patchFlag|=1024))}else St(n)?(n={default:n,_ctx:Se},c=32):(n=String(n),d&64?(c=16,n=[te(n)]):c=8);s.children=n,s.shapeFlag|=c}function vu(...s){const n={};for(let c=0;c<s.length;c++){const d=s[c];for(const m in d)if(m==="class")n.class!==d.class&&(n.class=ae([n.class,d.class]));else if(m==="style")n.style=_a([n.style,d.style]);else if(Es(m)){const y=n[m],C=d[m];C&&y!==C&&!(kt(y)&&y.includes(C))&&(n[m]=y?[].concat(y,C):C)}else m!==""&&(n[m]=d[m])}return n}function Be(s,n,c,d=null){He(s,n,7,[c,d])}const yu=Ql();let wu=0;function ku(s,n,c){const d=s.type,m=(n?n.appContext:s.appContext)||yu,y={uid:wu++,vnode:s,type:d,parent:n,appContext:m,root:null,next:null,subTree:null,effect:null,update:null,scope:new Vh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(m.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:sc(d,m),emitsOptions:Gl(d,m),emit:null,emitted:null,propsDefaults:Vt,inheritAttrs:d.inheritAttrs,ctx:Vt,data:Vt,props:Vt,attrs:Vt,slots:Vt,refs:Vt,setupState:Vt,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:c,suspenseId:c?c.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return y.ctx={_:y},y.root=n?n.root:y,y.emit=Ld.bind(null,y),s.ce&&s.ce(y),y}let fe=null;const Au=()=>fe||Se;let ws,Lr;{const s=wl(),n=(c,d)=>{let m;return(m=s[c])||(m=s[c]=[]),m.push(d),y=>{m.length>1?m.forEach(C=>C(y)):m[0](y)}};ws=n("__VUE_INSTANCE_SETTERS__",c=>fe=c),Lr=n("__VUE_SSR_SETTERS__",c=>Xs=c)}const Ia=s=>{const n=fe;return ws(s),s.scope.on(),()=>{s.scope.off(),ws(n)}},lo=()=>{fe&&fe.scope.off(),ws(null)};function mc(s){return s.vnode.shapeFlag&4}let Xs=!1;function Su(s,n=!1){n&&Lr(n);const{props:c,children:d}=s.vnode,m=mc(s);Qd(s,c,m,n),iu(s,d);const y=m?Cu(s,n):void 0;return n&&Lr(!1),y}function Cu(s,n){const c=s.type;s.accessCache=Object.create(null),s.proxy=new Proxy(s.ctx,Vd);const{setup:d}=c;if(d){const m=s.setupContext=d.length>1?Lu(s):null,y=Ia(s);ki();const C=mi(d,s,0,[s.props,m]);if(Ai(),y(),ml(C)){if(C.then(lo,lo),n)return C.then(L=>{co(s,L,n)}).catch(L=>{Rs(L,s,0)});s.asyncDep=C}else co(s,C,n)}else bc(s,n)}function co(s,n,c){St(n)?s.type.__ssrInlineRender?s.ssrRender=n:s.render=n:Zt(n)&&(s.setupState=Yl(n)),bc(s,c)}let ho;function bc(s,n,c){const d=s.type;if(!s.render){if(!n&&ho&&!d.render){const m=d.template||hn(s).template;if(m){const{isCustomElement:y,compilerOptions:C}=s.appContext.config,{delimiters:L,compilerOptions:M}=d,z=he(he({isCustomElement:y,delimiters:L},C),M);d.render=ho(m,z)}}s.render=d.render||Me}{const m=Ia(s);ki();try{Gd(s)}finally{Ai(),m()}}}const Pu={get(s,n){return Ce(s,"get",""),s[n]}};function Lu(s){const n=c=>{s.exposed=c||{}};return{attrs:new Proxy(s.attrs,Pu),slots:s.slots,emit:s.emit,expose:n}}function Ys(s){return s.exposed?s.exposeProxy||(s.exposeProxy=new Proxy(Yl(gd(s.exposed)),{get(n,c){if(c in n)return n[c];if(c in fa)return fa[c](s)},has(n,c){return c in n||c in fa}})):s.proxy}function _u(s,n=!0){return St(s)?s.displayName||s.name:s.name||n&&s.__name}function Eu(s){return St(s)&&"__vccOpts"in s}const Pt=(s,n)=>pd(s,n,Xs);function vc(s,n,c){const d=arguments.length;return d===2?Zt(n)&&!kt(n)?Pr(n)?Et(s,null,[n]):Et(s,n):Et(s,null,n):(d>3?c=Array.prototype.slice.call(arguments,2):d===3&&Pr(c)&&(c=[c]),Et(s,n,c))}const Tu="3.4.29";/**
* @vue/runtime-dom v3.4.29
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Iu="http://www.w3.org/2000/svg",Mu="http://www.w3.org/1998/Math/MathML",Qe=typeof document<"u"?document:null,uo=Qe&&Qe.createElement("template"),Ou={insert:(s,n,c)=>{n.insertBefore(s,c||null)},remove:s=>{const n=s.parentNode;n&&n.removeChild(s)},createElement:(s,n,c,d)=>{const m=n==="svg"?Qe.createElementNS(Iu,s):n==="mathml"?Qe.createElementNS(Mu,s):c?Qe.createElement(s,{is:c}):Qe.createElement(s);return s==="select"&&d&&d.multiple!=null&&m.setAttribute("multiple",d.multiple),m},createText:s=>Qe.createTextNode(s),createComment:s=>Qe.createComment(s),setText:(s,n)=>{s.nodeValue=n},setElementText:(s,n)=>{s.textContent=n},parentNode:s=>s.parentNode,nextSibling:s=>s.nextSibling,querySelector:s=>Qe.querySelector(s),setScopeId(s,n){s.setAttribute(n,"")},insertStaticContent(s,n,c,d,m,y){const C=c?c.previousSibling:n.lastChild;if(m&&(m===y||m.nextSibling))for(;n.insertBefore(m.cloneNode(!0),c),!(m===y||!(m=m.nextSibling)););else{uo.innerHTML=d==="svg"?`<svg>${s}</svg>`:d==="mathml"?`<math>${s}</math>`:s;const L=uo.content;if(d==="svg"||d==="mathml"){const M=L.firstChild;for(;M.firstChild;)L.appendChild(M.firstChild);L.removeChild(M)}n.insertBefore(L,c)}return[C?C.nextSibling:n.firstChild,c?c.previousSibling:n.lastChild]}},Ru=Symbol("_vtc");function zu(s,n,c){const d=s[Ru];d&&(n=(n?[n,...d]:[...d]).join(" ")),n==null?s.removeAttribute("class"):c?s.setAttribute("class",n):s.className=n}const ks=Symbol("_vod"),yc=Symbol("_vsh"),fo={beforeMount(s,{value:n},{transition:c}){s[ks]=s.style.display==="none"?"":s.style.display,c&&n?c.beforeEnter(s):na(s,n)},mounted(s,{value:n},{transition:c}){c&&n&&c.enter(s)},updated(s,{value:n,oldValue:c},{transition:d}){!n!=!c&&(d?n?(d.beforeEnter(s),na(s,!0),d.enter(s)):d.leave(s,()=>{na(s,!1)}):na(s,n))},beforeUnmount(s,{value:n}){na(s,n)}};function na(s,n){s.style.display=n?s[ks]:"none",s[yc]=!n}const Fu=Symbol(""),Nu=/(^|;)\s*display\s*:/;function Xu(s,n,c){const d=s.style,m=le(c);let y=!1;if(c&&!m){if(n)if(le(n))for(const C of n.split(";")){const L=C.slice(0,C.indexOf(":")).trim();c[L]==null&&ds(d,L,"")}else for(const C in n)c[C]==null&&ds(d,C,"");for(const C in c)C==="display"&&(y=!0),ds(d,C,c[C])}else if(m){if(n!==c){const C=d[Fu];C&&(c+=";"+C),d.cssText=c,y=Nu.test(c)}}else n&&s.removeAttribute("style");ks in s&&(s[ks]=y?d.display:"",s[yc]&&(d.display="none"))}const go=/\s*!important$/;function ds(s,n,c){if(kt(c))c.forEach(d=>ds(s,n,d));else if(c==null&&(c=""),n.startsWith("--"))s.setProperty(n,c);else{const d=Yu(s,n);go.test(c)?s.setProperty(ta(d),c.replace(go,""),"important"):s[d]=c}}const po=["Webkit","Moz","ms"],ar={};function Yu(s,n){const c=ar[n];if(c)return c;let d=Ue(n);if(d!=="filter"&&d in s)return ar[n]=d;d=Ms(d);for(let m=0;m<po.length;m++){const y=po[m]+d;if(y in s)return ar[n]=y}return n}const xo="http://www.w3.org/1999/xlink";function mo(s,n,c,d,m,y=Wh(n)){d&&n.startsWith("xlink:")?c==null?s.removeAttributeNS(xo,n.slice(6,n.length)):s.setAttributeNS(xo,n,c):c==null||y&&!kl(c)?s.removeAttribute(n):s.setAttribute(n,y?"":String(c))}function Du(s,n,c,d,m,y,C){if(n==="innerHTML"||n==="textContent"){d&&C(d,m,y),s[n]=c??"";return}const L=s.tagName;if(n==="value"&&L!=="PROGRESS"&&!L.includes("-")){const z=L==="OPTION"?s.getAttribute("value")||"":s.value,Y=c==null?"":String(c);(z!==Y||!("_value"in s))&&(s.value=Y),c==null&&s.removeAttribute(n),s._value=c;return}let M=!1;if(c===""||c==null){const z=typeof s[n];z==="boolean"?c=kl(c):c==null&&z==="string"?(c="",M=!0):z==="number"&&(c=0,M=!0)}try{s[n]=c}catch{}M&&s.removeAttribute(n)}function Hu(s,n,c,d){s.addEventListener(n,c,d)}function Bu(s,n,c,d){s.removeEventListener(n,c,d)}const bo=Symbol("_vei");function Wu(s,n,c,d,m=null){const y=s[bo]||(s[bo]={}),C=y[n];if(d&&C)C.value=d;else{const[L,M]=Vu(n);if(d){const z=y[n]=Uu(d,m);Hu(s,L,z,M)}else C&&(Bu(s,L,C,M),y[n]=void 0)}}const vo=/(?:Once|Passive|Capture)$/;function Vu(s){let n;if(vo.test(s)){n={};let d;for(;d=s.match(vo);)s=s.slice(0,s.length-d[0].length),n[d[0].toLowerCase()]=!0}return[s[2]===":"?s.slice(3):ta(s.slice(2)),n]}let sr=0;const Gu=Promise.resolve(),ju=()=>sr||(Gu.then(()=>sr=0),sr=Date.now());function Uu(s,n){const c=d=>{if(!d._vts)d._vts=Date.now();else if(d._vts<=c.attached)return;He($u(d,c.value),n,5,[d])};return c.value=s,c.attached=ju(),c}function $u(s,n){if(kt(n)){const c=s.stopImmediatePropagation;return s.stopImmediatePropagation=()=>{c.call(s),s._stopped=!0},n.map(d=>m=>!m._stopped&&d&&d(m))}else return n}const yo=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&s.charCodeAt(2)>96&&s.charCodeAt(2)<123,qu=(s,n,c,d,m,y,C,L,M)=>{const z=m==="svg";n==="class"?zu(s,d,z):n==="style"?Xu(s,c,d):Es(n)?Kr(n)||Wu(s,n,c,d,C):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):Zu(s,n,d,z))?(Du(s,n,d,y,C,L,M),(n==="value"||n==="checked"||n==="selected")&&mo(s,n,d,z,C,n!=="value")):(n==="true-value"?s._trueValue=d:n==="false-value"&&(s._falseValue=d),mo(s,n,d,z))};function Zu(s,n,c,d){if(d)return!!(n==="innerHTML"||n==="textContent"||n in s&&yo(n)&&St(c));if(n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&s.tagName==="INPUT"||n==="type"&&s.tagName==="TEXTAREA")return!1;if(n==="width"||n==="height"){const m=s.tagName;if(m==="IMG"||m==="VIDEO"||m==="CANVAS"||m==="SOURCE")return!1}return yo(n)&&le(c)?!1:n in s}const Ku=he({patchProp:qu},Ou);let wo;function Ju(){return wo||(wo=su(Ku))}const Qu=(...s)=>{const n=Ju().createApp(...s),{mount:c}=n;return n.mount=d=>{const m=ef(d);if(!m)return;const y=n._component;!St(y)&&!y.render&&!y.template&&(y.template=m.innerHTML),m.innerHTML="";const C=c(m,!1,tf(m));return m instanceof Element&&(m.removeAttribute("v-cloak"),m.setAttribute("data-v-app","")),C},n};function tf(s){if(s instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&s instanceof MathMLElement)return"mathml"}function ef(s){return le(s)?document.querySelector(s):s}function af(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var _r={exports:{}};/*!
* ApexCharts v3.45.2
* (c) 2018-2024 ApexCharts
* Released under the MIT License.
*/(function(s,n){function c(_,t){var e=Object.keys(_);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(_);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(_,a).enumerable})),e.push.apply(e,i)}return e}function d(_){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?c(Object(e),!0).forEach(function(i){M(_,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach(function(i){Object.defineProperty(_,i,Object.getOwnPropertyDescriptor(e,i))})}return _}function m(_){return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(_)}function y(_,t){if(!(_ instanceof t))throw new TypeError("Cannot call a class as a function")}function C(_,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(_,i.key,i)}}function L(_,t,e){return t&&C(_.prototype,t),e&&C(_,e),_}function M(_,t,e){return t in _?Object.defineProperty(_,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):_[t]=e,_}function z(_,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(t&&t.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),t&&D(_,t)}function Y(_){return Y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Y(_)}function D(_,t){return D=Object.setPrototypeOf||function(e,i){return e.__proto__=i,e},D(_,t)}function W(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function q(_){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var e,i=Y(_);if(t){var a=Y(this).constructor;e=Reflect.construct(i,arguments,a)}else e=i.apply(this,arguments);return function(r,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W(r)}(this,e)}}function xt(_,t){return function(e){if(Array.isArray(e))return e}(_)||function(e,i){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,o,l=[],h=!0,f=!1;try{for(a=a.call(e);!(h=(r=a.next()).done)&&(l.push(r.value),!i||l.length!==i);h=!0);}catch(g){f=!0,o=g}finally{try{h||a.return==null||a.return()}finally{if(f)throw o}}return l}}(_,t)||Ot(_,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function nt(_){return function(t){if(Array.isArray(t))return et(t)}(_)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(_)||Ot(_)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ot(_,t){if(_){if(typeof _=="string")return et(_,t);var e=Object.prototype.toString.call(_).slice(8,-1);return e==="Object"&&_.constructor&&(e=_.constructor.name),e==="Map"||e==="Set"?Array.from(_):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?et(_,t):void 0}}function et(_,t){(t==null||t>_.length)&&(t=_.length);for(var e=0,i=new Array(t);e<t;e++)i[e]=_[e];return i}var R=function(){function _(){y(this,_)}return L(_,[{key:"shadeRGBColor",value:function(t,e){var i=e.split(","),a=t<0?0:255,r=t<0?-1*t:t,o=parseInt(i[0].slice(4),10),l=parseInt(i[1],10),h=parseInt(i[2],10);return"rgb("+(Math.round((a-o)*r)+o)+","+(Math.round((a-l)*r)+l)+","+(Math.round((a-h)*r)+h)+")"}},{key:"shadeHexColor",value:function(t,e){var i=parseInt(e.slice(1),16),a=t<0?0:255,r=t<0?-1*t:t,o=i>>16,l=i>>8&255,h=255&i;return"#"+(16777216+65536*(Math.round((a-o)*r)+o)+256*(Math.round((a-l)*r)+l)+(Math.round((a-h)*r)+h)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,e){return _.isColorHex(e)?this.shadeHexColor(t,e):this.shadeRGBColor(t,e)}}],[{key:"bind",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:"isObject",value:function(t){return t&&m(t)==="object"&&!Array.isArray(t)&&t!=null}},{key:"is",value:function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"}},{key:"listToArray",value:function(t){var e,i=[];for(e=0;e<t.length;e++)i[e]=t[e];return i}},{key:"extend",value:function(t,e){var i=this;typeof Object.assign!="function"&&(Object.assign=function(r){if(r==null)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(r),l=1;l<arguments.length;l++){var h=arguments[l];if(h!=null)for(var f in h)h.hasOwnProperty(f)&&(o[f]=h[f])}return o});var a=Object.assign({},t);return this.isObject(t)&&this.isObject(e)&&Object.keys(e).forEach(function(r){i.isObject(e[r])&&r in t?a[r]=i.extend(t[r],e[r]):Object.assign(a,M({},r,e[r]))}),a}},{key:"extendArray",value:function(t,e){var i=[];return t.map(function(a){i.push(_.extend(e,a))}),t=i}},{key:"monthMod",value:function(t){return t%12}},{key:"clone",value:function(t){if(_.is("Array",t)){for(var e=[],i=0;i<t.length;i++)e[i]=this.clone(t[i]);return e}if(_.is("Null",t))return null;if(_.is("Date",t))return t;if(m(t)==="object"){var a={};for(var r in t)t.hasOwnProperty(r)&&(a[r]=this.clone(t[r]));return a}return t}},{key:"log10",value:function(t){return Math.log(t)/Math.LN10}},{key:"roundToBase10",value:function(t){return Math.pow(10,Math.floor(Math.log10(t)))}},{key:"roundToBase",value:function(t,e){return Math.pow(e,Math.floor(Math.log(t)/Math.log(e)))}},{key:"parseNumber",value:function(t){return t===null?t:parseFloat(t)}},{key:"stripNumber",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return Number.isInteger(t)?t:parseFloat(t.toPrecision(e))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(t){var e=String(t).split(/[eE]/);if(e.length===1)return e[0];var i="",a=t<0?"-":"",r=e[0].replace(".",""),o=Number(e[1])+1;if(o<0){for(i=a+"0.";o++;)i+="0";return i+r.replace(/^-/,"")}for(o-=r.length;o--;)i+="0";return r+i}},{key:"getDimensions",value:function(t){var e=getComputedStyle(t,null),i=t.clientHeight,a=t.clientWidth;return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),[a-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),i]}},{key:"getBoundingClientRect",value:function(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:t.clientWidth,height:t.clientHeight,x:e.left,y:e.top}}},{key:"getLargestStringFromArr",value:function(t){return t.reduce(function(e,i){return Array.isArray(i)&&(i=i.reduce(function(a,r){return a.length>r.length?a:r})),e.length>i.length?e:i},0)}},{key:"hexToRgba",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;t.substring(0,1)!=="#"&&(t="#999999");var i=t.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var a=0;a<i.length;a++)i[a]=parseInt(i[a].length===1?i[a]+i[a]:i[a],16);return e!==void 0&&i.push(e),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(t){return parseFloat(t.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&t.length===4?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(t)}},{key:"getPolygonPos",value:function(t,e){for(var i=[],a=2*Math.PI/e,r=0;r<e;r++){var o={};o.x=t*Math.sin(r*a),o.y=-t*Math.cos(r*a),i.push(o)}return i}},{key:"polarToCartesian",value:function(t,e,i,a){var r=(a-90)*Math.PI/180;return{x:t+i*Math.cos(r),y:e+i*Math.sin(r)}}},{key:"escapeString",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",i=t.toString().slice();return i=i.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,e)}},{key:"negToZero",value:function(t){return t<0?0:t}},{key:"moveIndexInArray",value:function(t,e,i){if(i>=t.length)for(var a=i-t.length+1;a--;)t.push(void 0);return t.splice(i,0,t.splice(e,1)[0]),t}},{key:"extractNumber",value:function(t){return parseFloat(t.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}},{key:"setELstyles",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style.key=e[i])}},{key:"isNumber",value:function(t){return!isNaN(t)&&parseFloat(Number(t))===t&&!isNaN(parseInt(t,10))}},{key:"isFloat",value:function(t){return Number(t)===t&&t%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(window.navigator.userAgent.indexOf("MSIE")!==-1||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var a=t.indexOf("Edge/");return a>0&&parseInt(t.substring(a+5,t.indexOf(".",a)),10)}}]),_}(),ht=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.setEasingFunctions()}return L(_,[{key:"setEasingFunctions",value:function(){var t;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":t="-";break;case"easein":t="<";break;case"easeout":t=">";break;case"easeinout":default:t="<>";break;case"swing":t=function(e){var i=1.70158;return(e-=1)*e*((i+1)*e+i)+1};break;case"bounce":t=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375};break;case"elastic":t=function(e){return e===!!e?e:Math.pow(2,-10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=t}}},{key:"animateLine",value:function(t,e,i,a){t.attr(e).animate(a).attr(i)}},{key:"animateMarker",value:function(t,e,i,a,r,o){e||(e=0),t.attr({r:e,width:e,height:e}).animate(a,r).attr({r:i,width:i.width,height:i.height}).afterAll(function(){o()})}},{key:"animateCircle",value:function(t,e,i,a,r){t.attr({r:e.r,cx:e.cx,cy:e.cy}).animate(a,r).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(t,e,i,a,r){t.attr(e).animate(a).attr(i).afterAll(function(){return r()})}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=t.realIndex,a=t.j,r=t.fill,o=t.pathFrom,l=t.pathTo,h=t.speed,f=t.delay,g=this.w,p=0;g.config.chart.animations.animateGradually.enabled&&(p=g.config.chart.animations.animateGradually.delay),g.config.chart.animations.dynamicAnimation.enabled&&g.globals.dataChanged&&g.config.chart.type!=="bar"&&(p=0),this.morphSVG(e,i,a,g.config.chart.type!=="line"||g.globals.comboCharts?r:"stroke",o,l,h,f*p)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(t){var e=t.el;e.classList.remove("apexcharts-element-hidden"),e.classList.add("apexcharts-hidden-element-shown")})}},{key:"animationCompleted",value:function(t){var e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),typeof e.config.chart.events.animationEnd=="function"&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e}))}},{key:"morphSVG",value:function(t,e,i,a,r,o,l,h){var f=this,g=this.w;r||(r=t.attr("pathFrom")),o||(o=t.attr("pathTo"));var p=function(x){return g.config.chart.type==="radar"&&(l=1),"M 0 ".concat(g.globals.gridHeight)};(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=p()),(!o||o.indexOf("undefined")>-1||o.indexOf("NaN")>-1)&&(o=p()),g.globals.shouldAnimate||(l=1),t.plot(r).animate(1,g.globals.easing,h).plot(r).animate(l,g.globals.easing,h).plot(o).afterAll(function(){R.isNumber(i)?i===g.globals.series[g.globals.maxValsInArrayIndex].length-2&&g.globals.shouldAnimate&&f.animationCompleted(t):a!=="none"&&g.globals.shouldAnimate&&(!g.globals.comboCharts&&e===g.globals.series.length-1||g.globals.comboCharts)&&f.animationCompleted(t),f.showDelayedElements()})}}]),_}(),ut=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"getDefaultFilter",value:function(t,e){var i=this.w;t.unfilter(!0),new window.SVG.Filter().size("120%","180%","-5%","-40%"),i.config.states.normal.filter!=="none"?this.applyFilter(t,e,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addNormalFilter",value:function(t,e){var i=this.w;i.config.chart.dropShadow.enabled&&!t.node.classList.contains("apexcharts-marker")&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addLightenFilter",value:function(t,e,i){var a=this,r=this.w,o=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter(function(l){var h=r.config.chart.dropShadow;(h.enabled?a.addShadow(l,e,h):l).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:o}})}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"addDarkenFilter",value:function(t,e,i){var a=this,r=this.w,o=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter(function(l){var h=r.config.chart.dropShadow;(h.enabled?a.addShadow(l,e,h):l).componentTransfer({rgb:{type:"linear",slope:o}})}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"applyFilter",value:function(t,e,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(t,e);break;case"lighten":this.addLightenFilter(t,e,{intensity:a});break;case"darken":this.addDarkenFilter(t,e,{intensity:a})}}},{key:"addShadow",value:function(t,e,i){var a=i.blur,r=i.top,o=i.left,l=i.color,h=i.opacity,f=t.flood(Array.isArray(l)?l[e]:l,h).composite(t.sourceAlpha,"in").offset(o,r).gaussianBlur(a).merge(t.source);return t.blend(t.source,f)}},{key:"dropShadow",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=e.top,r=e.left,o=e.blur,l=e.color,h=e.opacity,f=e.noUserSpaceOnUse,g=this.w;return t.unfilter(!0),R.isIE()&&g.config.chart.type==="radialBar"||(l=Array.isArray(l)?l[i]:l,t.filter(function(p){var x=null;x=R.isSafari()||R.isFirefox()||R.isIE()?p.flood(l,h).composite(p.sourceAlpha,"in").offset(r,a).gaussianBlur(o):p.flood(l,h).composite(p.sourceAlpha,"in").offset(r,a).gaussianBlur(o).merge(p.source),p.blend(p.source,x)}),f||t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)),t}},{key:"setSelectionFilter",value:function(t,e,i){var a=this.w;if(a.globals.selectedDataPoints[e]!==void 0&&a.globals.selectedDataPoints[e].indexOf(i)>-1){t.node.setAttribute("selected",!0);var r=a.config.states.active.filter;r!=="none"&&this.applyFilter(t,e,r.type,r.value)}}},{key:"_scaleFilterSize",value:function(t){(function(e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),_}(),V=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"roundPathCorners",value:function(t,e){function i(O,F,N){var B=F.x-O.x,$=F.y-O.y,j=Math.sqrt(B*B+$*$);return a(O,F,Math.min(1,N/j))}function a(O,F,N){return{x:O.x+(F.x-O.x)*N,y:O.y+(F.y-O.y)*N}}function r(O,F){O.length>2&&(O[O.length-2]=F.x,O[O.length-1]=F.y)}function o(O){return{x:parseFloat(O[O.length-2]),y:parseFloat(O[O.length-1])}}t.indexOf("NaN")>-1&&(t="");var l=t.split(/[,\s]/).reduce(function(O,F){var N=F.match("([a-zA-Z])(.+)");return N?(O.push(N[1]),O.push(N[2])):O.push(F),O},[]).reduce(function(O,F){return parseFloat(F)==F&&O.length?O[O.length-1].push(F):O.push([F]),O},[]),h=[];if(l.length>1){var f=o(l[0]),g=null;l[l.length-1][0]=="Z"&&l[0].length>2&&(g=["L",f.x,f.y],l[l.length-1]=g),h.push(l[0]);for(var p=1;p<l.length;p++){var x=h[h.length-1],v=l[p],w=v==g?l[1]:l[p+1];if(w&&x&&x.length>2&&v[0]=="L"&&w.length>2&&w[0]=="L"){var A,S,E=o(x),I=o(v),u=o(w);A=i(I,E,e),S=i(I,u,e),r(v,A),v.origPoint=I,h.push(v);var b=a(A,I,.5),k=a(I,S,.5),P=["C",b.x,b.y,k.x,k.y,S.x,S.y];P.origPoint=I,h.push(P)}else h.push(v)}if(g){var T=o(h[h.length-1]);h.push(["Z"]),r(h[0],T)}}else h=l;return h.reduce(function(O,F){return O+F.join(" ")+" "},"")}},{key:"drawLine",value:function(t,e,i,a){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,h=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:a,stroke:r,"stroke-dasharray":o,"stroke-width":l,"stroke-linecap":h})}},{key:"drawRect",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,h=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,f=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,g=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,p=this.w.globals.dom.Paper.rect();return p.attr({x:t,y:e,width:i>0?i:0,height:a>0?a:0,rx:r,ry:r,opacity:l,"stroke-width":h!==null?h:0,stroke:f!==null?f:"none","stroke-dasharray":g}),p.node.setAttribute("fill",o),p}},{key:"drawPolygon",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(t).attr({fill:a,stroke:e,"stroke-width":i})}},{key:"drawCircle",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;t<0&&(t=0);var i=this.w.globals.dom.Paper.circle(2*t);return e!==null&&i.attr(e),i}},{key:"drawPath",value:function(t){var e=t.d,i=e===void 0?"":e,a=t.stroke,r=a===void 0?"#a8a8a8":a,o=t.strokeWidth,l=o===void 0?1:o,h=t.fill,f=t.fillOpacity,g=f===void 0?1:f,p=t.strokeOpacity,x=p===void 0?1:p,v=t.classes,w=t.strokeLinecap,A=w===void 0?null:w,S=t.strokeDashArray,E=S===void 0?0:S,I=this.w;return A===null&&(A=I.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(I.globals.gridHeight)),I.globals.dom.Paper.path(i).attr({fill:h,"fill-opacity":g,stroke:r,"stroke-opacity":x,"stroke-linecap":A,"stroke-width":l,"stroke-dasharray":E,class:v})}},{key:"group",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=this.w.globals.dom.Paper.group();return t!==null&&e.attr(t),e}},{key:"move",value:function(t,e){var i=["M",t,e].join(" ");return i}},{key:"line",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=null;return i===null?a=[" L",t,e].join(" "):i==="H"?a=[" H",t].join(" "):i==="V"&&(a=[" V",e].join(" ")),a}},{key:"curve",value:function(t,e,i,a,r,o){var l=["C",t,e,i,a,r,o].join(" ");return l}},{key:"quadraticCurve",value:function(t,e,i,a){return["Q",t,e,i,a].join(" ")}},{key:"arc",value:function(t,e,i,a,r,o,l){var h="A";arguments.length>7&&arguments[7]!==void 0&&arguments[7]&&(h="a");var f=[h,t,e,i,a,r,o,l].join(" ");return f}},{key:"renderPaths",value:function(t){var e,i=t.j,a=t.realIndex,r=t.pathFrom,o=t.pathTo,l=t.stroke,h=t.strokeWidth,f=t.strokeLinecap,g=t.fill,p=t.animationDelay,x=t.initialSpeed,v=t.dataChangeSpeed,w=t.className,A=t.shouldClipToGrid,S=A===void 0||A,E=t.bindEventsOnPaths,I=E===void 0||E,u=t.drawShadow,b=u===void 0||u,k=this.w,P=new ut(this.ctx),T=new ht(this.ctx),O=this.w.config.chart.animations.enabled,F=O&&this.w.config.chart.animations.dynamicAnimation.enabled,N=!!(O&&!k.globals.resized||F&&k.globals.dataChanged&&k.globals.shouldAnimate);N?e=r:(e=o,k.globals.animationEnded=!0);var B=k.config.stroke.dashArray,$=0;$=Array.isArray(B)?B[a]:k.config.stroke.dashArray;var j=this.drawPath({d:e,stroke:l,strokeWidth:h,fill:g,fillOpacity:1,classes:w,strokeLinecap:f,strokeDashArray:$});if(j.attr("index",a),S&&j.attr({"clip-path":"url(#gridRectMask".concat(k.globals.cuid,")")}),k.config.states.normal.filter.type!=="none")P.getDefaultFilter(j,a);else if(k.config.chart.dropShadow.enabled&&b&&(!k.config.chart.dropShadow.enabledOnSeries||k.config.chart.dropShadow.enabledOnSeries&&k.config.chart.dropShadow.enabledOnSeries.indexOf(a)!==-1)){var st=k.config.chart.dropShadow;P.dropShadow(j,st,a)}I&&(j.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,j)),j.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,j)),j.node.addEventListener("mousedown",this.pathMouseDown.bind(this,j))),j.attr({pathTo:o,pathFrom:r});var dt={el:j,j:i,realIndex:a,pathFrom:r,pathTo:o,fill:g,strokeWidth:h,delay:p};return!O||k.globals.resized||k.globals.dataChanged?!k.globals.resized&&k.globals.dataChanged||T.showDelayedElements():T.animatePathsGradually(d(d({},dt),{},{speed:x})),k.globals.dataChanged&&F&&N&&T.animatePathsGradually(d(d({},dt),{},{speed:v})),j}},{key:"drawPattern",value:function(t,e,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;return this.w.globals.dom.Paper.pattern(e,i,function(o){t==="horizontalLines"?o.line(0,0,i,0).stroke({color:a,width:r+1}):t==="verticalLines"?o.line(0,0,0,e).stroke({color:a,width:r+1}):t==="slantedLines"?o.line(0,0,e,i).stroke({color:a,width:r}):t==="squares"?o.rect(e,i).fill("none").stroke({color:a,width:r}):t==="circles"&&o.circle(e).fill("none").stroke({color:a,width:r})})}},{key:"drawGradient",value:function(t,e,i,a,r){var o,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,h=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,f=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,g=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,p=this.w;e.length<9&&e.indexOf("#")===0&&(e=R.hexToRgba(e,a)),i.length<9&&i.indexOf("#")===0&&(i=R.hexToRgba(i,r));var x=0,v=1,w=1,A=null;h!==null&&(x=h[0]!==void 0?h[0]/100:0,v=h[1]!==void 0?h[1]/100:1,w=h[2]!==void 0?h[2]/100:1,A=h[3]!==void 0?h[3]/100:null);var S=!(p.config.chart.type!=="donut"&&p.config.chart.type!=="pie"&&p.config.chart.type!=="polarArea"&&p.config.chart.type!=="bubble");if(o=f===null||f.length===0?p.globals.dom.Paper.gradient(S?"radial":"linear",function(u){u.at(x,e,a),u.at(v,i,r),u.at(w,i,r),A!==null&&u.at(A,e,a)}):p.globals.dom.Paper.gradient(S?"radial":"linear",function(u){(Array.isArray(f[g])?f[g]:f).forEach(function(b){u.at(b.offset/100,b.color,b.opacity)})}),S){var E=p.globals.gridWidth/2,I=p.globals.gridHeight/2;p.config.chart.type!=="bubble"?o.attr({gradientUnits:"userSpaceOnUse",cx:E,cy:I,r:l}):o.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else t==="vertical"?o.from(0,0).to(0,1):t==="diagonal"?o.from(0,0).to(1,1):t==="horizontal"?o.from(0,1).to(1,1):t==="diagonal2"&&o.from(1,0).to(0,1);return o}},{key:"getTextBasedOnMaxWidth",value:function(t){var e=t.text,i=t.maxWidth,a=t.fontSize,r=t.fontFamily,o=this.getTextRects(e,a,r),l=o.width/e.length,h=Math.floor(i/l);return i<o.width?e.slice(0,h-3)+"...":e}},{key:"drawText",value:function(t){var e=this,i=t.x,a=t.y,r=t.text,o=t.textAnchor,l=t.fontSize,h=t.fontFamily,f=t.fontWeight,g=t.foreColor,p=t.opacity,x=t.maxWidth,v=t.cssClass,w=v===void 0?"":v,A=t.isPlainText,S=A===void 0||A,E=t.dominantBaseline,I=E===void 0?"auto":E,u=this.w;r===void 0&&(r="");var b=r;o||(o="start"),g&&g.length||(g=u.config.chart.foreColor),h=h||u.config.chart.fontFamily,f=f||"regular";var k,P={maxWidth:x,fontSize:l=l||"11px",fontFamily:h};return Array.isArray(r)?k=u.globals.dom.Paper.text(function(T){for(var O=0;O<r.length;O++)b=r[O],x&&(b=e.getTextBasedOnMaxWidth(d({text:r[O]},P))),O===0?T.tspan(b):T.tspan(b).newLine()}):(x&&(b=this.getTextBasedOnMaxWidth(d({text:r},P))),k=S?u.globals.dom.Paper.plain(r):u.globals.dom.Paper.text(function(T){return T.tspan(b)})),k.attr({x:i,y:a,"text-anchor":o,"dominant-baseline":I,"font-size":l,"font-family":h,"font-weight":f,fill:g,class:"apexcharts-text "+w}),k.node.style.fontFamily=h,k.node.style.opacity=p,k}},{key:"drawMarker",value:function(t,e,i){t=t||0;var a=i.pSize||0,r=null;if(i.shape==="square"||i.shape==="rect"){var o=i.pRadius===void 0?a/2:i.pRadius;e!==null&&a||(a=0,o=0);var l=1.2*a+o,h=this.drawRect(l,l,l,l,o);h.attr({x:t-l/2,y:e-l/2,cx:t,cy:e,class:i.class?i.class:"",fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,stroke:i.pointStrokeColor,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}),r=h}else i.shape!=="circle"&&i.shape||(R.isNumber(e)||(a=0,e=0),r=this.drawCircle(a,{cx:t,cy:e,class:i.class?i.class:"",stroke:i.pointStrokeColor,fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}));return r}},{key:"pathMouseEnter",value:function(t,e){var i=this.w,a=new ut(this.ctx),r=parseInt(t.node.getAttribute("index"),10),o=parseInt(t.node.getAttribute("j"),10);if(typeof i.config.chart.events.dataPointMouseEnter=="function"&&i.config.chart.events.dataPointMouseEnter(e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:i}]),(i.config.states.active.filter.type==="none"||t.node.getAttribute("selected")!=="true")&&i.config.states.hover.filter.type!=="none"&&!i.globals.isTouchDevice){var l=i.config.states.hover.filter;a.applyFilter(t,r,l.type,l.value)}}},{key:"pathMouseLeave",value:function(t,e){var i=this.w,a=new ut(this.ctx),r=parseInt(t.node.getAttribute("index"),10),o=parseInt(t.node.getAttribute("j"),10);typeof i.config.chart.events.dataPointMouseLeave=="function"&&i.config.chart.events.dataPointMouseLeave(e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:i}]),i.config.states.active.filter.type!=="none"&&t.node.getAttribute("selected")==="true"||i.config.states.hover.filter.type!=="none"&&a.getDefaultFilter(t,r)}},{key:"pathMouseDown",value:function(t,e){var i=this.w,a=new ut(this.ctx),r=parseInt(t.node.getAttribute("index"),10),o=parseInt(t.node.getAttribute("j"),10),l="false";if(t.node.getAttribute("selected")==="true"){if(t.node.setAttribute("selected","false"),i.globals.selectedDataPoints[r].indexOf(o)>-1){var h=i.globals.selectedDataPoints[r].indexOf(o);i.globals.selectedDataPoints[r].splice(h,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var f=i.globals.dom.Paper.select(".apexcharts-series path").members,g=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,p=function(w){Array.prototype.forEach.call(w,function(A){A.node.setAttribute("selected","false"),a.getDefaultFilter(A,r)})};p(f),p(g)}t.node.setAttribute("selected","true"),l="true",i.globals.selectedDataPoints[r]===void 0&&(i.globals.selectedDataPoints[r]=[]),i.globals.selectedDataPoints[r].push(o)}if(l==="true"){var x=i.config.states.active.filter;if(x!=="none")a.applyFilter(t,r,x.type,x.value);else if(i.config.states.hover.filter!=="none"&&!i.globals.isTouchDevice){var v=i.config.states.hover.filter;a.applyFilter(t,r,v.type,v.value)}}else i.config.states.active.filter.type!=="none"&&(i.config.states.hover.filter.type==="none"||i.globals.isTouchDevice?a.getDefaultFilter(t,r):(v=i.config.states.hover.filter,a.applyFilter(t,r,v.type,v.value)));typeof i.config.chart.events.dataPointSelection=="function"&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:o,w:i}),e&&this.ctx.events.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:o,w:i}])}},{key:"rotateAroundCenter",value:function(t){var e={};return t&&typeof t.getBBox=="function"&&(e=t.getBBox()),{x:e.x+e.width/2,y:e.y+e.height/2}}},{key:"getTextRects",value:function(t,e,i,a){var r=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],o=this.w,l=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:i,foreColor:"#fff",opacity:0});a&&l.attr("transform",a),o.globals.dom.Paper.add(l);var h=l.bbox();return r||(h=l.node.getBoundingClientRect()),l.remove(),{width:h.width,height:h.height}}},{key:"placeTextWithEllipsis",value:function(t,e,i){if(typeof t.getComputedTextLength=="function"&&(t.textContent=e,e.length>0&&t.getComputedTextLength()>=i/1.1)){for(var a=e.length-3;a>0;a-=3)if(t.getSubStringLength(0,a)<=i/1.1)return void(t.textContent=e.substring(0,a)+"...");t.textContent="."}}}],[{key:"setAttrs",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}}]),_}(),it=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"getStackedSeriesTotals",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=this.w,i=[];if(e.globals.series.length===0)return i;for(var a=0;a<e.globals.series[e.globals.maxValsInArrayIndex].length;a++){for(var r=0,o=0;o<e.globals.series.length;o++)e.globals.series[o][a]!==void 0&&t.indexOf(o)===-1&&(r+=e.globals.series[o][a]);i.push(r)}return i}},{key:"getSeriesTotalByIndex",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return t===null?this.w.config.series.reduce(function(e,i){return e+i},0):this.w.globals.series[t].reduce(function(e,i){return e+i},0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var t=this,e=this.w,i=[];return e.globals.seriesGroups.forEach(function(a){var r=[];e.config.series.forEach(function(l,h){a.indexOf(l.name)>-1&&r.push(h)});var o=e.globals.series.map(function(l,h){return r.indexOf(h)===-1?h:-1}).filter(function(l){return l!==-1});i.push(t.getStackedSeriesTotals(o))}),i}},{key:"isSeriesNull",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return(t===null?this.w.config.series.filter(function(e){return e!==null}):this.w.config.series[t].data.filter(function(e){return e!==null})).length===0}},{key:"seriesHaveSameValues",value:function(t){return this.w.globals.series[t].every(function(e,i,a){return e===a[0]})}},{key:"getCategoryLabels",value:function(t){var e=this.w,i=t.slice();return e.config.xaxis.convertedCatToNumeric&&(i=t.map(function(a,r){return e.config.xaxis.labels.formatter(a-e.globals.minX+1)})),i}},{key:"getLargestSeries",value:function(){var t=this.w;t.globals.maxValsInArrayIndex=t.globals.series.map(function(e){return e.length}).indexOf(Math.max.apply(Math,t.globals.series.map(function(e){return e.length})))}},{key:"getLargestMarkerSize",value:function(){var t=this.w,e=0;return t.globals.markers.size.forEach(function(i){e=Math.max(e,i)}),t.config.markers.discrete&&t.config.markers.discrete.length&&t.config.markers.discrete.forEach(function(i){e=Math.max(e,i.size)}),e>0&&(e+=t.config.markers.hover.sizeOffset+1),t.globals.markers.largestSize=e,e}},{key:"getSeriesTotals",value:function(){var t=this.w;t.globals.seriesTotals=t.globals.series.map(function(e,i){var a=0;if(Array.isArray(e))for(var r=0;r<e.length;r++)a+=e[r];else a+=e;return a})}},{key:"getSeriesTotalsXRange",value:function(t,e){var i=this.w;return i.globals.series.map(function(a,r){for(var o=0,l=0;l<a.length;l++)i.globals.seriesX[r][l]>t&&i.globals.seriesX[r][l]<e&&(o+=a[l]);return o})}},{key:"getPercentSeries",value:function(){var t=this.w;t.globals.seriesPercent=t.globals.series.map(function(e,i){var a=[];if(Array.isArray(e))for(var r=0;r<e.length;r++){var o=t.globals.stackedSeriesTotals[r],l=0;o&&(l=100*e[r]/o),a.push(l)}else{var h=100*e/t.globals.seriesTotals.reduce(function(f,g){return f+g},0);a.push(h)}return a})}},{key:"getCalculatedRatios",value:function(){var t,e,i,a=this.w.globals,r=[],o=0,l=[],h=.1,f=0;if(a.yRange=[],a.isMultipleYAxis)for(var g=0;g<a.minYArr.length;g++)a.yRange.push(Math.abs(a.minYArr[g]-a.maxYArr[g])),l.push(0);else a.yRange.push(Math.abs(a.minY-a.maxY));a.xRange=Math.abs(a.maxX-a.minX),a.zRange=Math.abs(a.maxZ-a.minZ);for(var p=0;p<a.yRange.length;p++)r.push(a.yRange[p]/a.gridHeight);if(e=a.xRange/a.gridWidth,t=a.yRange/a.gridWidth,i=a.xRange/a.gridHeight,(o=a.zRange/a.gridHeight*16)||(o=1),a.minY!==Number.MIN_VALUE&&Math.abs(a.minY)!==0&&(a.hasNegs=!0),a.isMultipleYAxis){l=[];for(var x=0;x<r.length;x++)l.push(-a.minYArr[x]/r[x])}else l.push(-a.minY/r[0]),a.minY!==Number.MIN_VALUE&&Math.abs(a.minY)!==0&&(h=-a.minY/t,f=a.minX/e);return{yRatio:r,invertedYRatio:t,zRatio:o,xRatio:e,invertedXRatio:i,baseLineInvertedY:h,baseLineY:l,baseLineX:f}}},{key:"getLogSeries",value:function(t){var e=this,i=this.w;return i.globals.seriesLog=t.map(function(a,r){return i.config.yaxis[r]&&i.config.yaxis[r].logarithmic?a.map(function(o){return o===null?null:e.getLogVal(i.config.yaxis[r].logBase,o,r)}):a}),i.globals.invalidLogScale?t:i.globals.seriesLog}},{key:"getBaseLog",value:function(t,e){return Math.log(e)/Math.log(t)}},{key:"getLogVal",value:function(t,e,i){if(e===0)return 0;var a=this.w,r=a.globals.minYArr[i]===0?-1:this.getBaseLog(t,a.globals.minYArr[i]),o=(a.globals.maxYArr[i]===0?0:this.getBaseLog(t,a.globals.maxYArr[i]))-r;return e<1?e/o:(this.getBaseLog(t,e)-r)/o}},{key:"getLogYRatios",value:function(t){var e=this,i=this.w,a=this.w.globals;return a.yLogRatio=t.slice(),a.logYRange=a.yRange.map(function(r,o){if(i.config.yaxis[o]&&e.w.config.yaxis[o].logarithmic){var l,h=-Number.MAX_VALUE,f=Number.MIN_VALUE;return a.seriesLog.forEach(function(g,p){g.forEach(function(x){i.config.yaxis[p]&&i.config.yaxis[p].logarithmic&&(h=Math.max(x,h),f=Math.min(x,f))})}),l=Math.pow(a.yRange[o],Math.abs(f-h)/a.yRange[o]),a.yLogRatio[o]=l/a.gridHeight,l}}),a.invalidLogScale?t.slice():a.yLogRatio}}],[{key:"checkComboSeries",value:function(t){var e=!1,i=0,a=0;return t.length&&t[0].type!==void 0&&t.forEach(function(r){r.type!=="bar"&&r.type!=="column"&&r.type!=="candlestick"&&r.type!=="boxPlot"||i++,r.type!==void 0&&a++}),a>0&&(e=!0),{comboBarCount:i,comboCharts:e}}},{key:"extendArrayProps",value:function(t,e,i){return e.yaxis&&(e=t.extendYAxis(e,i)),e.annotations&&(e.annotations.yaxis&&(e=t.extendYAxisAnnotations(e)),e.annotations.xaxis&&(e=t.extendXAxisAnnotations(e)),e.annotations.points&&(e=t.extendPointAnnotations(e))),e}}]),_}(),Mt=function(){function _(t){y(this,_),this.w=t.w,this.annoCtx=t}return L(_,[{key:"setOrientations",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.w;if(t.label.orientation==="vertical"){var a=e!==null?e:0,r=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(a,"']"));if(r!==null){var o=r.getBoundingClientRect();r.setAttribute("x",parseFloat(r.getAttribute("x"))-o.height+4),t.label.position==="top"?r.setAttribute("y",parseFloat(r.getAttribute("y"))+o.width):r.setAttribute("y",parseFloat(r.getAttribute("y"))-o.width);var l=this.annoCtx.graphics.rotateAroundCenter(r),h=l.x,f=l.y;r.setAttribute("transform","rotate(-90 ".concat(h," ").concat(f,")"))}}}},{key:"addBackgroundToAnno",value:function(t,e){var i=this.w;if(!t||e.label.text===void 0||e.label.text!==void 0&&!String(e.label.text).trim())return null;var a=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),r=t.getBoundingClientRect(),o=e.label.style.padding.left,l=e.label.style.padding.right,h=e.label.style.padding.top,f=e.label.style.padding.bottom;e.label.orientation==="vertical"&&(h=e.label.style.padding.left,f=e.label.style.padding.right,o=e.label.style.padding.top,l=e.label.style.padding.bottom);var g=r.left-a.left-o,p=r.top-a.top-h,x=this.annoCtx.graphics.drawRect(g-i.globals.barPadForNumericAxis,p,r.width+o+l,r.height+h+f,e.label.borderRadius,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0);return e.id&&x.node.classList.add(e.id),x}},{key:"annotationsBackground",value:function(){var t=this,e=this.w,i=function(a,r,o){var l=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(o,"-annotations .apexcharts-").concat(o,"-annotation-label[rel='").concat(r,"']"));if(l){var h=l.parentNode,f=t.addBackgroundToAnno(l,a);f&&(h.insertBefore(f.node,l),a.label.mouseEnter&&f.node.addEventListener("mouseenter",a.label.mouseEnter.bind(t,a)),a.label.mouseLeave&&f.node.addEventListener("mouseleave",a.label.mouseLeave.bind(t,a)),a.label.click&&f.node.addEventListener("click",a.label.click.bind(t,a)))}};e.config.annotations.xaxis.map(function(a,r){i(a,r,"xaxis")}),e.config.annotations.yaxis.map(function(a,r){i(a,r,"yaxis")}),e.config.annotations.points.map(function(a,r){i(a,r,"point")})}},{key:"getY1Y2",value:function(t,e){var i,a=t==="y1"?e.y:e.y2,r=this.w;if(this.annoCtx.invertAxis){var o=r.globals.labels.indexOf(a);r.config.xaxis.convertedCatToNumeric&&(o=r.globals.categoryLabels.indexOf(a));var l=r.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(o+1)+")");l&&(i=parseFloat(l.getAttribute("y"))),e.seriesIndex!==void 0&&r.globals.barHeight&&(i=i-r.globals.barHeight/2*(r.globals.series.length-1)+r.globals.barHeight*e.seriesIndex)}else{var h;r.config.yaxis[e.yAxisIndex].logarithmic?h=(a=new it(this.annoCtx.ctx).getLogVal(a,e.yAxisIndex))/r.globals.yLogRatio[e.yAxisIndex]:h=(a-r.globals.minYArr[e.yAxisIndex])/(r.globals.yRange[e.yAxisIndex]/r.globals.gridHeight),i=r.globals.gridHeight-h,!e.marker||e.y!==void 0&&e.y!==null||(i=0),r.config.yaxis[e.yAxisIndex]&&r.config.yaxis[e.yAxisIndex].reversed&&(i=h)}return typeof a=="string"&&a.indexOf("px")>-1&&(i=parseFloat(a)),i}},{key:"getX1X2",value:function(t,e){var i=this.w,a=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,r=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,o=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,l=(e.x-a)/(o/i.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(l=(r-e.x)/(o/i.globals.gridWidth)),i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(l=this.getStringX(e.x));var h=(e.x2-a)/(o/i.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(h=(r-e.x2)/(o/i.globals.gridWidth)),i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(h=this.getStringX(e.x2)),e.x!==void 0&&e.x!==null||!e.marker||(l=i.globals.gridWidth),t==="x1"&&typeof e.x=="string"&&e.x.indexOf("px")>-1&&(l=parseFloat(e.x)),t==="x2"&&typeof e.x2=="string"&&e.x2.indexOf("px")>-1&&(h=parseFloat(e.x2)),e.seriesIndex!==void 0&&i.globals.barWidth&&!this.annoCtx.invertAxis&&(l=l-i.globals.barWidth/2*(i.globals.series.length-1)+i.globals.barWidth*e.seriesIndex),t==="x1"?l:h}},{key:"getStringX",value:function(t){var e=this.w,i=t;e.config.xaxis.convertedCatToNumeric&&e.globals.categoryLabels.length&&(t=e.globals.categoryLabels.indexOf(t)+1);var a=e.globals.labels.indexOf(t),r=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(a+1)+")");return r&&(i=parseFloat(r.getAttribute("x"))),i}}]),_}(),$t=function(){function _(t){y(this,_),this.w=t.w,this.annoCtx=t,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new Mt(this.annoCtx)}return L(_,[{key:"addXaxisAnnotation",value:function(t,e,i){var a,r=this.w,o=this.helpers.getX1X2("x1",t),l=t.label.text,h=t.strokeDashArray;if(R.isNumber(o)){if(t.x2===null||t.x2===void 0){var f=this.annoCtx.graphics.drawLine(o+t.offsetX,0+t.offsetY,o+t.offsetX,r.globals.gridHeight+t.offsetY,t.borderColor,h,t.borderWidth);e.appendChild(f.node),t.id&&f.node.classList.add(t.id)}else{if((a=this.helpers.getX1X2("x2",t))<o){var g=o;o=a,a=g}var p=this.annoCtx.graphics.drawRect(o+t.offsetX,0+t.offsetY,a-o,r.globals.gridHeight+t.offsetY,0,t.fillColor,t.opacity,1,t.borderColor,h);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(r.globals.cuid,")")),e.appendChild(p.node),t.id&&p.node.classList.add(t.id)}var x=this.annoCtx.graphics.getTextRects(l,parseFloat(t.label.style.fontSize)),v=t.label.position==="top"?4:t.label.position==="center"?r.globals.gridHeight/2+(t.label.orientation==="vertical"?x.width/2:0):r.globals.gridHeight,w=this.annoCtx.graphics.drawText({x:o+t.label.offsetX,y:v+t.label.offsetY-(t.label.orientation==="vertical"?t.label.position==="top"?x.width/2-12:-x.width/2:0),text:l,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});w.attr({rel:i}),e.appendChild(w.node),this.annoCtx.helpers.setOrientations(t,i)}}},{key:"drawXAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return e.config.annotations.xaxis.map(function(a,r){t.addXaxisAnnotation(a,i.node,r)}),i}}]),_}(),oe=function(){function _(t){y(this,_),this.w=t.w,this.annoCtx=t,this.helpers=new Mt(this.annoCtx)}return L(_,[{key:"addYaxisAnnotation",value:function(t,e,i){var a,r=this.w,o=t.strokeDashArray,l=this.helpers.getY1Y2("y1",t),h=t.label.text;if(t.y2===null||t.y2===void 0){var f=this.annoCtx.graphics.drawLine(0+t.offsetX,l+t.offsetY,this._getYAxisAnnotationWidth(t),l+t.offsetY,t.borderColor,o,t.borderWidth);e.appendChild(f.node),t.id&&f.node.classList.add(t.id)}else{if((a=this.helpers.getY1Y2("y2",t))>l){var g=l;l=a,a=g}var p=this.annoCtx.graphics.drawRect(0+t.offsetX,a+t.offsetY,this._getYAxisAnnotationWidth(t),l-a,0,t.fillColor,t.opacity,1,t.borderColor,o);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(r.globals.cuid,")")),e.appendChild(p.node),t.id&&p.node.classList.add(t.id)}var x=t.label.position==="right"?r.globals.gridWidth:t.label.position==="center"?r.globals.gridWidth/2:0,v=this.annoCtx.graphics.drawText({x:x+t.label.offsetX,y:(a??l)+t.label.offsetY-3,text:h,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});v.attr({rel:i}),e.appendChild(v.node)}},{key:"_getYAxisAnnotationWidth",value:function(t){var e=this.w;return e.globals.gridWidth,(t.width.indexOf("%")>-1?e.globals.gridWidth*parseInt(t.width,10)/100:parseInt(t.width,10))+t.offsetX}},{key:"drawYAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.map(function(a,r){t.addYaxisAnnotation(a,i.node,r)}),i}}]),_}(),de=function(){function _(t){y(this,_),this.w=t.w,this.annoCtx=t,this.helpers=new Mt(this.annoCtx)}return L(_,[{key:"addPointAnnotation",value:function(t,e,i){this.w;var a=this.helpers.getX1X2("x1",t),r=this.helpers.getY1Y2("y1",t);if(R.isNumber(a)){var o={pSize:t.marker.size,pointStrokeWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,pRadius:t.marker.radius,class:"apexcharts-point-annotation-marker ".concat(t.marker.cssClass," ").concat(t.id?t.id:"")},l=this.annoCtx.graphics.drawMarker(a+t.marker.offsetX,r+t.marker.offsetY,o);e.appendChild(l.node);var h=t.label.text?t.label.text:"",f=this.annoCtx.graphics.drawText({x:a+t.label.offsetX,y:r+t.label.offsetY-t.marker.size-parseFloat(t.label.style.fontSize)/1.6,text:h,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});if(f.attr({rel:i}),e.appendChild(f.node),t.customSVG.SVG){var g=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass});g.attr({transform:"translate(".concat(a+t.customSVG.offsetX,", ").concat(r+t.customSVG.offsetY,")")}),g.node.innerHTML=t.customSVG.SVG,e.appendChild(g.node)}if(t.image.path){var p=t.image.width?t.image.width:20,x=t.image.height?t.image.height:20;l=this.annoCtx.addImage({x:a+t.image.offsetX-p/2,y:r+t.image.offsetY-x/2,width:p,height:x,path:t.image.path,appendTo:".apexcharts-point-annotations"})}t.mouseEnter&&l.node.addEventListener("mouseenter",t.mouseEnter.bind(this,t)),t.mouseLeave&&l.node.addEventListener("mouseleave",t.mouseLeave.bind(this,t)),t.click&&l.node.addEventListener("click",t.click.bind(this,t))}}},{key:"drawPointAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map(function(a,r){t.addPointAnnotation(a,i.node,r)}),i}}]),_}(),vt={name:"en",options:{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"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},Lt=function(){function _(){y(this,_),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return L(_,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[vt],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(t){return new Date(t).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(t){return t}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(t){return t+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce(function(e,i){return e+i},0)/t.globals.series.length+"%"}}},barLabels:{enabled:!1,margin:5,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(t){return t},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(t){return t}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(t){return t}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce(function(e,i){return e+i},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(t){return t!==null?t:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(t){return t?t+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),_}(),ge=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.graphics=new V(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new Mt(this),this.xAxisAnnotations=new $t(this),this.yAxisAnnotations=new oe(this),this.pointsAnnotations=new de(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return L(_,[{key:"drawAxesAnnotations",value:function(){var t=this.w;if(t.globals.axisCharts){for(var e=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),a=this.pointsAnnotations.drawPointAnnotations(),r=t.config.chart.animations.enabled,o=[e,i,a],l=[i.node,e.node,a.node],h=0;h<3;h++)t.globals.dom.elGraphical.add(o[h]),!r||t.globals.resized||t.globals.dataChanged||t.config.chart.type!=="scatter"&&t.config.chart.type!=="bubble"&&t.globals.dataPoints>1&&l[h].classList.add("apexcharts-element-hidden"),t.globals.delayedElements.push({el:l[h],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var t=this;this.w.config.annotations.images.map(function(e,i){t.addImage(e,i)})}},{key:"drawTextAnnos",value:function(){var t=this;this.w.config.annotations.texts.map(function(e,i){t.addText(e,i)})}},{key:"addXaxisAnnotation",value:function(t,e,i){this.xAxisAnnotations.addXaxisAnnotation(t,e,i)}},{key:"addYaxisAnnotation",value:function(t,e,i){this.yAxisAnnotations.addYaxisAnnotation(t,e,i)}},{key:"addPointAnnotation",value:function(t,e,i){this.pointsAnnotations.addPointAnnotation(t,e,i)}},{key:"addText",value:function(t,e){var i=t.x,a=t.y,r=t.text,o=t.textAnchor,l=t.foreColor,h=t.fontSize,f=t.fontFamily,g=t.fontWeight,p=t.cssClass,x=t.backgroundColor,v=t.borderWidth,w=t.strokeDashArray,A=t.borderRadius,S=t.borderColor,E=t.appendTo,I=E===void 0?".apexcharts-svg":E,u=t.paddingLeft,b=u===void 0?4:u,k=t.paddingRight,P=k===void 0?4:k,T=t.paddingBottom,O=T===void 0?2:T,F=t.paddingTop,N=F===void 0?2:F,B=this.w,$=this.graphics.drawText({x:i,y:a,text:r,textAnchor:o||"start",fontSize:h||"12px",fontWeight:g||"regular",fontFamily:f||B.config.chart.fontFamily,foreColor:l||B.config.chart.foreColor,cssClass:p}),j=B.globals.dom.baseEl.querySelector(I);j&&j.appendChild($.node);var st=$.bbox();if(r){var dt=this.graphics.drawRect(st.x-b,st.y-N,st.width+b+P,st.height+O+N,A,x||"transparent",1,v,S,w);j.insertBefore(dt.node,$.node)}}},{key:"addImage",value:function(t,e){var i=this.w,a=t.path,r=t.x,o=r===void 0?0:r,l=t.y,h=l===void 0?0:l,f=t.width,g=f===void 0?20:f,p=t.height,x=p===void 0?20:p,v=t.appendTo,w=v===void 0?".apexcharts-svg":v,A=i.globals.dom.Paper.image(a);A.size(g,x).move(o,h);var S=i.globals.dom.baseEl.querySelector(w);return S&&S.appendChild(A.node),A}},{key:"addXaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(t,e,i){return this.invertAxis===void 0&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(t){var e=t.params,i=t.pushToMemory,a=t.context,r=t.type,o=t.contextMethod,l=a,h=l.w,f=h.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations")),g=f.childNodes.length+1,p=new Lt,x=Object.assign({},r==="xaxis"?p.xAxisAnnotation:r==="yaxis"?p.yAxisAnnotation:p.pointAnnotation),v=R.extend(x,e);switch(r){case"xaxis":this.addXaxisAnnotation(v,f,g);break;case"yaxis":this.addYaxisAnnotation(v,f,g);break;case"point":this.addPointAnnotation(v,f,g)}var w=h.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations .apexcharts-").concat(r,"-annotation-label[rel='").concat(g,"']")),A=this.helpers.addBackgroundToAnno(w,v);return A&&f.insertBefore(A.node,w),i&&h.globals.memory.methodsToExec.push({context:l,id:v.id?v.id:R.randomId(),method:o,label:"addAnnotation",params:e}),a}},{key:"clearAnnotations",value:function(t){var e=t.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");e.globals.memory.methodsToExec.map(function(a,r){a.label!=="addText"&&a.label!=="addAnnotation"||e.globals.memory.methodsToExec.splice(r,1)}),i=R.listToArray(i),Array.prototype.forEach.call(i,function(a){for(;a.firstChild;)a.removeChild(a.firstChild)})}},{key:"removeAnnotation",value:function(t,e){var i=t.w,a=i.globals.dom.baseEl.querySelectorAll(".".concat(e));a&&(i.globals.memory.methodsToExec.map(function(r,o){r.id===e&&i.globals.memory.methodsToExec.splice(o,1)}),Array.prototype.forEach.call(a,function(r){r.parentElement.removeChild(r)}))}}]),_}(),Tt=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return L(_,[{key:"isValidDate",value:function(t){return typeof t!="number"&&!isNaN(this.parseDate(t))}},{key:"getTimeStamp",value:function(t){return Date.parse(t)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toISOString().substr(0,25)).getTime():new Date(t).getTime():t}},{key:"getDate",value:function(t){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toUTCString()):new Date(t)}},{key:"parseDate",value:function(t){var e=Date.parse(t);if(!isNaN(e))return this.getTimeStamp(t);var i=Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "));return i=this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(t){return Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(t,e){var i=this.w.globals.locale,a=this.w.config.xaxis.labels.datetimeUTC,r=["\0"].concat(nt(i.months)),o=[""].concat(nt(i.shortMonths)),l=[""].concat(nt(i.days)),h=[""].concat(nt(i.shortDays));function f(O,F){var N=O+"";for(F=F||2;N.length<F;)N="0"+N;return N}var g=a?t.getUTCFullYear():t.getFullYear();e=(e=(e=e.replace(/(^|[^\\])yyyy+/g,"$1"+g)).replace(/(^|[^\\])yy/g,"$1"+g.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+g);var p=(a?t.getUTCMonth():t.getMonth())+1;e=(e=(e=(e=e.replace(/(^|[^\\])MMMM+/g,"$1"+r[0])).replace(/(^|[^\\])MMM/g,"$1"+o[0])).replace(/(^|[^\\])MM/g,"$1"+f(p))).replace(/(^|[^\\])M/g,"$1"+p);var x=a?t.getUTCDate():t.getDate();e=(e=(e=(e=e.replace(/(^|[^\\])dddd+/g,"$1"+l[0])).replace(/(^|[^\\])ddd/g,"$1"+h[0])).replace(/(^|[^\\])dd/g,"$1"+f(x))).replace(/(^|[^\\])d/g,"$1"+x);var v=a?t.getUTCHours():t.getHours(),w=v>12?v-12:v===0?12:v;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+f(v))).replace(/(^|[^\\])H/g,"$1"+v)).replace(/(^|[^\\])hh+/g,"$1"+f(w))).replace(/(^|[^\\])h/g,"$1"+w);var A=a?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+f(A))).replace(/(^|[^\\])m/g,"$1"+A);var S=a?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+f(S))).replace(/(^|[^\\])s/g,"$1"+S);var E=a?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+f(E,3)),E=Math.round(E/10),e=e.replace(/(^|[^\\])ff/g,"$1"+f(E)),E=Math.round(E/10);var I=v<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+E)).replace(/(^|[^\\])TT+/g,"$1"+I)).replace(/(^|[^\\])T/g,"$1"+I.charAt(0));var u=I.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+u)).replace(/(^|[^\\])t/g,"$1"+u.charAt(0));var b=-t.getTimezoneOffset(),k=a||!b?"Z":b>0?"+":"-";if(!a){var P=(b=Math.abs(b))%60;k+=f(Math.floor(b/60))+":"+f(P)}e=e.replace(/(^|[^\\])K/g,"$1"+k);var T=(a?t.getUTCDay():t.getDay())+1;return e=(e=(e=(e=(e=e.replace(new RegExp(l[0],"g"),l[T])).replace(new RegExp(h[0],"g"),h[T])).replace(new RegExp(r[0],"g"),r[p])).replace(new RegExp(o[0],"g"),o[p])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e,i){var a=this.w;a.config.xaxis.min!==void 0&&(t=a.config.xaxis.min),a.config.xaxis.max!==void 0&&(e=a.config.xaxis.max);var r=this.getDate(t),o=this.getDate(e),l=this.formatDate(r,"yyyy MM dd HH mm ss fff").split(" "),h=this.formatDate(o,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(l[6],10),maxMillisecond:parseInt(h[6],10),minSecond:parseInt(l[5],10),maxSecond:parseInt(h[5],10),minMinute:parseInt(l[4],10),maxMinute:parseInt(h[4],10),minHour:parseInt(l[3],10),maxHour:parseInt(h[3],10),minDate:parseInt(l[2],10),maxDate:parseInt(h[2],10),minMonth:parseInt(l[1],10)-1,maxMonth:parseInt(h[1],10)-1,minYear:parseInt(l[0],10),maxYear:parseInt(h[0],10)}}},{key:"isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"calculcateLastDaysOfMonth",value:function(t,e,i){return this.determineDaysOfMonths(t,e)-i}},{key:"determineDaysOfYear",value:function(t){var e=365;return this.isLeapYear(t)&&(e=366),e}},{key:"determineRemainingDaysOfYear",value:function(t,e,i){var a=this.daysCntOfYear[e]+i;return e>1&&this.isLeapYear()&&a++,a}},{key:"determineDaysOfMonths",value:function(t,e){var i=30;switch(t=R.monthMod(t),!0){case this.months30.indexOf(t)>-1:t===2&&(i=this.isLeapYear(e)?29:28);break;case this.months31.indexOf(t)>-1:default:i=31}return i}}]),_}(),Pe=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.tooltipKeyFormat="dd MMM"}return L(_,[{key:"xLabelFormat",value:function(t,e,i,a){var r=this.w;if(r.config.xaxis.type==="datetime"&&r.config.xaxis.labels.formatter===void 0&&r.config.tooltip.x.formatter===void 0){var o=new Tt(this.ctx);return o.formatDate(o.getDate(e),r.config.tooltip.x.format)}return t(e,i,a)}},{key:"defaultGeneralFormatter",value:function(t){return Array.isArray(t)?t.map(function(e){return e}):t}},{key:"defaultYFormatter",value:function(t,e,i){var a=this.w;return R.isNumber(t)&&(t=a.globals.yValueDecimal!==0?t.toFixed(e.decimalsInFloat!==void 0?e.decimalsInFloat:a.globals.yValueDecimal):a.globals.maxYArr[i]-a.globals.minYArr[i]<5?t.toFixed(1):t.toFixed(0)),t}},{key:"setLabelFormatters",value:function(){var t=this,e=this.w;return e.globals.xaxisTooltipFormatter=function(i){return t.defaultGeneralFormatter(i)},e.globals.ttKeyFormatter=function(i){return t.defaultGeneralFormatter(i)},e.globals.ttZFormatter=function(i){return i},e.globals.legendFormatter=function(i){return t.defaultGeneralFormatter(i)},e.config.xaxis.labels.formatter!==void 0?e.globals.xLabelFormatter=e.config.xaxis.labels.formatter:e.globals.xLabelFormatter=function(i){if(R.isNumber(i)){if(!e.config.xaxis.convertedCatToNumeric&&e.config.xaxis.type==="numeric"){if(R.isNumber(e.config.xaxis.decimalsInFloat))return i.toFixed(e.config.xaxis.decimalsInFloat);var a=e.globals.maxX-e.globals.minX;return a>0&&a<100?i.toFixed(1):i.toFixed(0)}return e.globals.isBarHorizontal&&e.globals.maxY-e.globals.minYArr<4?i.toFixed(1):i.toFixed(0)}return i},typeof e.config.tooltip.x.formatter=="function"?e.globals.ttKeyFormatter=e.config.tooltip.x.formatter:e.globals.ttKeyFormatter=e.globals.xLabelFormatter,typeof e.config.xaxis.tooltip.formatter=="function"&&(e.globals.xaxisTooltipFormatter=e.config.xaxis.tooltip.formatter),(Array.isArray(e.config.tooltip.y)||e.config.tooltip.y.formatter!==void 0)&&(e.globals.ttVal=e.config.tooltip.y),e.config.tooltip.z.formatter!==void 0&&(e.globals.ttZFormatter=e.config.tooltip.z.formatter),e.config.legend.formatter!==void 0&&(e.globals.legendFormatter=e.config.legend.formatter),e.config.yaxis.forEach(function(i,a){i.labels.formatter!==void 0?e.globals.yLabelFormatters[a]=i.labels.formatter:e.globals.yLabelFormatters[a]=function(r){return e.globals.xyCharts?Array.isArray(r)?r.map(function(o){return t.defaultYFormatter(o,i,a)}):t.defaultYFormatter(r,i,a):r}}),e.globals}},{key:"heatmapLabelFormatters",value:function(){var t=this.w;if(t.config.chart.type==="heatmap"){t.globals.yAxisScale[0].result=t.globals.seriesNames.slice();var e=t.globals.seriesNames.reduce(function(i,a){return i.length>a.length?i:a},0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e}}}]),_}(),Kt=function(_){var t,e=_.isTimeline,i=_.ctx,a=_.seriesIndex,r=_.dataPointIndex,o=_.y1,l=_.y2,h=_.w,f=h.globals.seriesRangeStart[a][r],g=h.globals.seriesRangeEnd[a][r],p=h.globals.labels[r],x=h.config.series[a].name?h.config.series[a].name:"",v=h.globals.ttKeyFormatter,w=h.config.tooltip.y.title.formatter,A={w:h,seriesIndex:a,dataPointIndex:r,start:f,end:g};typeof w=="function"&&(x=w(x,A)),(t=h.config.series[a].data[r])!==null&&t!==void 0&&t.x&&(p=h.config.series[a].data[r].x),e||h.config.xaxis.type==="datetime"&&(p=new Pe(i).xLabelFormat(h.globals.ttKeyFormatter,p,p,{i:void 0,dateFormatter:new Tt(i).formatDate,w:h})),typeof v=="function"&&(p=v(p,A)),Number.isFinite(o)&&Number.isFinite(l)&&(f=o,g=l);var S="",E="",I=h.globals.colors[a];if(h.config.tooltip.x.formatter===void 0)if(h.config.xaxis.type==="datetime"){var u=new Tt(i);S=u.formatDate(u.getDate(f),h.config.tooltip.x.format),E=u.formatDate(u.getDate(g),h.config.tooltip.x.format)}else S=f,E=g;else S=h.config.tooltip.x.formatter(f),E=h.config.tooltip.x.formatter(g);return{start:f,end:g,startVal:S,endVal:E,ylabel:p,color:I,seriesName:x}},Yt=function(_){var t=_.color,e=_.seriesName,i=_.ylabel,a=_.start,r=_.end,o=_.seriesIndex,l=_.dataPointIndex,h=_.ctx.tooltip.tooltipLabels.getFormatters(o);a=h.yLbFormatter(a),r=h.yLbFormatter(r);var f=h.yLbFormatter(_.w.globals.series[o][l]),g=`<span class="value start-value">
`.concat(a,`
</span> <span class="separator">-</span> <span class="value end-value">
`).concat(r,`
</span>`);return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(e||"")+'</span></div><div> <span class="category">'+i+": </span> "+(_.w.globals.comboCharts?_.w.config.series[o].type==="rangeArea"||_.w.config.series[o].type==="rangeBar"?g:"<span>".concat(f,"</span>"):g)+" </div></div>"},Rt=function(){function _(t){y(this,_),this.opts=t}return L(_,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(t){return this.hideYAxis(),R.extend(t,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),d(d({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var t=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,a=e.dataPointIndex,r=e.w;return t._getBoxTooltip(r,i,a,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var t=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,a=e.dataPointIndex,r=e.w;return t._getBoxTooltip(r,i,a,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(t,e){e.ctx;var i=e.seriesIndex,a=e.dataPointIndex,r=e.w,o=function(){var l=r.globals.seriesRangeStart[i][a];return r.globals.seriesRangeEnd[i][a]-l};return r.globals.comboCharts?r.config.series[i].type==="rangeBar"||r.config.series[i].type==="rangeArea"?o():t:o()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(t){return t.w.config.plotOptions&&t.w.config.plotOptions.bar&&t.w.config.plotOptions.bar.horizontal?function(e){var i=Kt(d(d({},e),{},{isTimeline:!0})),a=i.color,r=i.seriesName,o=i.ylabel,l=i.startVal,h=i.endVal;return Yt(d(d({},e),{},{color:a,seriesName:r,ylabel:o,start:l,end:h}))}(t):function(e){var i=Kt(e),a=i.color,r=i.seriesName,o=i.ylabel,l=i.start,h=i.end;return Yt(d(d({},e),{},{color:a,seriesName:r,ylabel:o,start:l,end:h}))}(t)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(t){var e,i;return(e=t.plotOptions.bar)!==null&&e!==void 0&&e.barHeight||(t.plotOptions.bar.barHeight=2),(i=t.plotOptions.bar)!==null&&i!==void 0&&i.columnWidth||(t.plotOptions.bar.columnWidth=2),t}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(t){return function(e){var i=Kt(e),a=i.color,r=i.seriesName,o=i.ylabel,l=i.start,h=i.end;return Yt(d(d({},e),{},{color:a,seriesName:r,ylabel:o,start:l,end:h}))}(t)}}}}},{key:"brush",value:function(t){return R.extend(t,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(t){t.dataLabels=t.dataLabels||{},t.dataLabels.formatter=t.dataLabels.formatter||void 0;var e=t.dataLabels.formatter;return t.yaxis.forEach(function(i,a){t.yaxis[a].min=0,t.yaxis[a].max=100}),t.chart.type==="bar"&&(t.dataLabels.formatter=e||function(i){return typeof i=="number"&&i?i.toFixed(0)+"%":i}),t}},{key:"stackedBars",value:function(){var t=this.bar();return d(d({},t),{},{plotOptions:d(d({},t.plotOptions),{},{bar:d(d({},t.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(t){return t.xaxis.convertedCatToNumeric=!0,t}},{key:"convertCatToNumericXaxis",value:function(t,e,i){t.xaxis.type="numeric",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(o){return R.isNumber(o)?Math.floor(o):o};var a=t.xaxis.labels.formatter,r=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return i&&i.length&&(r=i.map(function(o){return Array.isArray(o)?o:String(o)})),r&&r.length&&(t.xaxis.labels.formatter=function(o){return R.isNumber(o)?a(r[Math.floor(o)-1]):a(o)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",t}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(t){return t},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(t,e,i,a,r){var o=t.globals.seriesCandleO[e][i],l=t.globals.seriesCandleH[e][i],h=t.globals.seriesCandleM[e][i],f=t.globals.seriesCandleL[e][i],g=t.globals.seriesCandleC[e][i];return t.config.series[e].type&&t.config.series[e].type!==r?`<div class="apexcharts-custom-tooltip">
`.concat(t.config.series[e].name?t.config.series[e].name:"series-"+(e+1),": <strong>").concat(t.globals.series[e][i],`</strong>
</div>`):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(t.config.chart.type,'">')+"<div>".concat(a[0],': <span class="value">')+o+"</span></div>"+"<div>".concat(a[1],': <span class="value">')+l+"</span></div>"+(h?"<div>".concat(a[2],': <span class="value">')+h+"</span></div>":"")+"<div>".concat(a[3],': <span class="value">')+f+"</span></div>"+"<div>".concat(a[4],': <span class="value">')+g+"</span></div></div>"}}]),_}(),Le=function(){function _(t){y(this,_),this.opts=t}return L(_,[{key:"init",value:function(t){var e=t.responsiveOverride,i=this.opts,a=new Lt,r=new Rt(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var o=a.init(),l={};if(i&&m(i)==="object"){var h,f,g,p,x,v,w,A,S={};S=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)!==-1?r[i.chart.type]():r.line(),(h=i.plotOptions)!==null&&h!==void 0&&(f=h.bar)!==null&&f!==void 0&&f.isFunnel&&(S=r.funnel()),i.chart.stacked&&i.chart.type==="bar"&&(S=r.stackedBars()),(g=i.chart.brush)!==null&&g!==void 0&&g.enabled&&(S=r.brush(S)),i.chart.stacked&&i.chart.stackType==="100%"&&(i=r.stacked100(i)),(p=i.plotOptions)!==null&&p!==void 0&&(x=p.bar)!==null&&x!==void 0&&x.isDumbbell&&(i=r.dumbbell(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},e||(i.xaxis.convertedCatToNumeric=!1),((v=(i=this.checkForCatToNumericXAxis(this.chartType,S,i)).chart.sparkline)!==null&&v!==void 0&&v.enabled||(w=window.Apex.chart)!==null&&w!==void 0&&(A=w.sparkline)!==null&&A!==void 0&&A.enabled)&&(S=r.sparkline(S)),l=R.extend(o,S)}var E=R.extend(l,window.Apex);return o=R.extend(E,i),o=this.handleUserInputErrors(o)}},{key:"checkForCatToNumericXAxis",value:function(t,e,i){var a,r,o=new Rt(i),l=(t==="bar"||t==="boxPlot")&&((a=i.plotOptions)===null||a===void 0||(r=a.bar)===null||r===void 0?void 0:r.horizontal),h=t==="pie"||t==="polarArea"||t==="donut"||t==="radar"||t==="radialBar"||t==="heatmap",f=i.xaxis.type!=="datetime"&&i.xaxis.type!=="numeric",g=i.xaxis.tickPlacement?i.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement;return l||h||!f||g==="between"||(i=o.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(t,e){var i=new Lt;(t.yaxis===void 0||!t.yaxis||Array.isArray(t.yaxis)&&t.yaxis.length===0)&&(t.yaxis={}),t.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(t.yaxis=R.extend(t.yaxis,window.Apex.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[R.extend(i.yAxis,t.yaxis)]:t.yaxis=R.extendArray(t.yaxis,i.yAxis);var a=!1;t.yaxis.forEach(function(o){o.logarithmic&&(a=!0)});var r=t.series;return e&&!r&&(r=e.config.series),a&&r.length!==t.yaxis.length&&r.length&&(t.yaxis=r.map(function(o,l){if(o.name||(r[l].name="series-".concat(l+1)),t.yaxis[l])return t.yaxis[l].seriesName=r[l].name,t.yaxis[l];var h=R.extend(i.yAxis,t.yaxis[0]);return h.show=!1,h})),a&&r.length>1&&r.length!==t.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),t}},{key:"extendAnnotations",value:function(t){return t.annotations===void 0&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),t=this.extendPointAnnotations(t)}},{key:"extendYAxisAnnotations",value:function(t){var e=new Lt;return t.annotations.yaxis=R.extendArray(t.annotations.yaxis!==void 0?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var e=new Lt;return t.annotations.xaxis=R.extendArray(t.annotations.xaxis!==void 0?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var e=new Lt;return t.annotations.points=R.extendArray(t.annotations.points!==void 0?t.annotations.points:[],e.pointAnnotation),t}},{key:"checkForDarkTheme",value:function(t){t.theme&&t.theme.mode==="dark"&&(t.tooltip||(t.tooltip={}),t.tooltip.theme!=="light"&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.chart.background||(t.chart.background="#424242"),t.theme.palette||(t.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(t){var e=t;if(e.tooltip.shared&&e.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(e.chart.type==="bar"&&e.plotOptions.bar.horizontal){if(e.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return e.chart.type!=="bar"&&e.chart.type!=="rangeBar"||e.tooltip.shared&&e.xaxis.crosshairs.width==="barWidth"&&e.series.length>1&&(e.xaxis.crosshairs.width="tickWidth"),e.chart.type!=="candlestick"&&e.chart.type!=="boxPlot"||e.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(e.chart.type," chart is not supported.")),e.yaxis[0].reversed=!1),e}}]),_}(),Si=function(){function _(){y(this,_)}return L(_,[{key:"initGlobalVars",value:function(t){t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleM=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRange=[],t.seriesPercent=[],t.seriesGoals=[],t.seriesX=[],t.seriesZ=[],t.seriesNames=[],t.seriesTotals=[],t.seriesLog=[],t.seriesColors=[],t.stackedSeriesTotals=[],t.seriesXvalues=[],t.seriesYvalues=[],t.labels=[],t.hasXaxisGroups=!1,t.groups=[],t.hasSeriesGroups=!1,t.seriesGroups=[],t.categoryLabels=[],t.timescaleLabels=[],t.noLabelsProvided=!1,t.resizeTimer=null,t.selectionResizeTimer=null,t.delayedElements=[],t.pointsArray=[],t.dataLabelsRects=[],t.isXNumeric=!1,t.skipLastTimelinelabel=!1,t.skipFirstTimelinelabel=!1,t.isDataXYZ=!1,t.isMultiLineX=!1,t.isMultipleYAxis=!1,t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE,t.minYArr=[],t.maxYArr=[],t.maxX=-Number.MAX_VALUE,t.minX=Number.MAX_VALUE,t.initialMaxX=-Number.MAX_VALUE,t.initialMinX=Number.MAX_VALUE,t.maxDate=0,t.minDate=Number.MAX_VALUE,t.minZ=Number.MAX_VALUE,t.maxZ=-Number.MAX_VALUE,t.minXDiff=Number.MAX_VALUE,t.yAxisScale=[],t.xAxisScale=null,t.xAxisTicksPositions=[],t.yLabelsCoords=[],t.yTitleCoords=[],t.barPadForNumericAxis=0,t.padHorizontal=0,t.xRange=0,t.yRange=[],t.zRange=0,t.dataPoints=0,t.xTickAmount=0}},{key:"globalVars",value:function(t){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:t.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:t.chart.toolbar.autoSelected==="zoom"&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:t.chart.toolbar.autoSelected==="pan"&&t.chart.toolbar.tools.pan,selectionEnabled:t.chart.toolbar.autoSelected==="selection"&&t.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(t){var e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=R.extend({},t),e.initialSeries=R.clone(t.series),e.lastXAxis=R.clone(e.initialConfig.xaxis),e.lastYAxis=R.clone(e.initialConfig.yaxis),e}}]),_}(),qe=function(){function _(t){y(this,_),this.opts=t}return L(_,[{key:"init",value:function(){var t=new Le(this.opts).init({responsiveOverride:!1});return{config:t,globals:new Si().init(t)}}}]),_}(),Jt=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.opts=null,this.seriesIndex=0}return L(_,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,a=parseInt(e.globals.gridWidth,10),r=parseInt(e.globals.gridHeight,10),o=a>r?a:r,l=t.image,h=0,f=0;t.width===void 0&&t.height===void 0?i.fill.image.width!==void 0&&i.fill.image.height!==void 0?(h=i.fill.image.width+1,f=i.fill.image.height):(h=o+1,f=o):(h=t.width,f=t.height);var g=document.createElementNS(e.globals.SVGNS,"pattern");V.setAttrs(g,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:h+"px",height:f+"px"});var p=document.createElementNS(e.globals.SVGNS,"image");g.appendChild(p),p.setAttributeNS(window.SVG.xlink,"href",l),V.setAttrs(p,{x:0,y:0,preserveAspectRatio:"none",width:h+"px",height:f+"px"}),p.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(g)}},{key:"getSeriesIndex",value:function(t){var e=this.w,i=e.config.chart.type;return(i==="bar"||i==="rangeBar")&&e.config.plotOptions.bar.distributed||i==="heatmap"||i==="treemap"?this.seriesIndex=t.seriesNumber:this.seriesIndex=t.seriesNumber%e.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(t){var e=this.w;this.opts=t;var i,a,r,o=this.w.config;this.seriesIndex=this.getSeriesIndex(t);var l=this.getFillColors()[this.seriesIndex];e.globals.seriesColors[this.seriesIndex]!==void 0&&(l=e.globals.seriesColors[this.seriesIndex]),typeof l=="function"&&(l=l({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:e}));var h=t.fillType?t.fillType:this.getFillType(this.seriesIndex),f=Array.isArray(o.fill.opacity)?o.fill.opacity[this.seriesIndex]:o.fill.opacity;t.color&&(l=t.color),l||(l="#fff",console.warn("undefined color - ApexCharts"));var g=l;if(l.indexOf("rgb")===-1?l.length<9&&(g=R.hexToRgba(l,f)):l.indexOf("rgba")>-1&&(f=R.getOpacityFromRGBA(l)),t.opacity&&(f=t.opacity),h==="pattern"&&(a=this.handlePatternFill({fillConfig:t.fillConfig,patternFill:a,fillColor:l,fillOpacity:f,defaultColor:g})),h==="gradient"&&(r=this.handleGradientFill({fillConfig:t.fillConfig,fillColor:l,fillOpacity:f,i:this.seriesIndex})),h==="image"){var p=o.fill.image.src,x=t.patternID?t.patternID:"";this.clippedImgArea({opacity:f,image:Array.isArray(p)?t.seriesNumber<p.length?p[t.seriesNumber]:p[0]:p,width:t.width?t.width:void 0,height:t.height?t.height:void 0,patternUnits:t.patternUnits,patternID:"pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(x)}),i="url(#pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(x,")")}else i=h==="gradient"?r:h==="pattern"?a:g;return t.solid&&(i=g),i}},{key:"getFillType",value:function(t){var e=this.w;return Array.isArray(e.config.fill.type)?e.config.fill.type[t]:e.config.fill.type}},{key:"getFillColors",value:function(){var t=this.w,e=t.config,i=this.opts,a=[];return t.globals.comboCharts?t.config.series[this.seriesIndex].type==="line"?Array.isArray(t.globals.stroke.colors)?a=t.globals.stroke.colors:a.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?a=t.globals.fill.colors:a.push(t.globals.fill.colors):e.chart.type==="line"?Array.isArray(t.globals.stroke.colors)?a=t.globals.stroke.colors:a.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?a=t.globals.fill.colors:a.push(t.globals.fill.colors),i.fillColors!==void 0&&(a=[],Array.isArray(i.fillColors)?a=i.fillColors.slice():a.push(i.fillColors)),a}},{key:"handlePatternFill",value:function(t){var e=t.fillConfig,i=t.patternFill,a=t.fillColor,r=t.fillOpacity,o=t.defaultColor,l=this.w.config.fill;e&&(l=e);var h=this.opts,f=new V(this.ctx),g=Array.isArray(l.pattern.strokeWidth)?l.pattern.strokeWidth[this.seriesIndex]:l.pattern.strokeWidth,p=a;return Array.isArray(l.pattern.style)?i=l.pattern.style[h.seriesNumber]!==void 0?f.drawPattern(l.pattern.style[h.seriesNumber],l.pattern.width,l.pattern.height,p,g,r):o:i=f.drawPattern(l.pattern.style,l.pattern.width,l.pattern.height,p,g,r),i}},{key:"handleGradientFill",value:function(t){var e=t.fillColor,i=t.fillOpacity,a=t.fillConfig,r=t.i,o=this.w.config.fill;a&&(o=d(d({},o),a));var l,h=this.opts,f=new V(this.ctx),g=new R,p=o.gradient.type,x=e,v=o.gradient.opacityFrom===void 0?i:Array.isArray(o.gradient.opacityFrom)?o.gradient.opacityFrom[r]:o.gradient.opacityFrom;x.indexOf("rgba")>-1&&(v=R.getOpacityFromRGBA(x));var w=o.gradient.opacityTo===void 0?i:Array.isArray(o.gradient.opacityTo)?o.gradient.opacityTo[r]:o.gradient.opacityTo;if(o.gradient.gradientToColors===void 0||o.gradient.gradientToColors.length===0)l=o.gradient.shade==="dark"?g.shadeColor(-1*parseFloat(o.gradient.shadeIntensity),e.indexOf("rgb")>-1?R.rgb2hex(e):e):g.shadeColor(parseFloat(o.gradient.shadeIntensity),e.indexOf("rgb")>-1?R.rgb2hex(e):e);else if(o.gradient.gradientToColors[h.seriesNumber]){var A=o.gradient.gradientToColors[h.seriesNumber];l=A,A.indexOf("rgba")>-1&&(w=R.getOpacityFromRGBA(A))}else l=e;if(o.gradient.gradientFrom&&(x=o.gradient.gradientFrom),o.gradient.gradientTo&&(l=o.gradient.gradientTo),o.gradient.inverseColors){var S=x;x=l,l=S}return x.indexOf("rgb")>-1&&(x=R.rgb2hex(x)),l.indexOf("rgb")>-1&&(l=R.rgb2hex(l)),f.drawGradient(p,x,l,v,w,h.size,o.gradient.stops,o.gradient.colorStops,r)}}]),_}(),oi=function(){function _(t,e){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"setGlobalMarkerSize",value:function(){var t=this.w;if(t.globals.markers.size=Array.isArray(t.config.markers.size)?t.config.markers.size:[t.config.markers.size],t.globals.markers.size.length>0){if(t.globals.markers.size.length<t.globals.series.length+1)for(var e=0;e<=t.globals.series.length;e++)t.globals.markers.size[e]===void 0&&t.globals.markers.size.push(t.globals.markers.size[0])}else t.globals.markers.size=t.config.series.map(function(i){return t.config.markers.size})}},{key:"plotChartMarkers",value:function(t,e,i,a){var r,o=arguments.length>4&&arguments[4]!==void 0&&arguments[4],l=this.w,h=e,f=t,g=null,p=new V(this.ctx),x=l.config.markers.discrete&&l.config.markers.discrete.length;if((l.globals.markers.size[e]>0||o||x)&&(g=p.group({class:o||x?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(l.globals.cuid,")")),Array.isArray(f.x))for(var v=0;v<f.x.length;v++){var w=i;i===1&&v===0&&(w=0),i===1&&v===1&&(w=1);var A="apexcharts-marker";if(l.config.chart.type!=="line"&&l.config.chart.type!=="area"||l.globals.comboCharts||l.config.tooltip.intersect||(A+=" no-pointer-events"),(Array.isArray(l.config.markers.size)?l.globals.markers.size[e]>0:l.config.markers.size>0)||o||x){R.isNumber(f.y[v])?A+=" w".concat(R.randomId()):A="apexcharts-nullpoint";var S=this.getMarkerConfig({cssClass:A,seriesIndex:e,dataPointIndex:w});l.config.series[h].data[w]&&(l.config.series[h].data[w].fillColor&&(S.pointFillColor=l.config.series[h].data[w].fillColor),l.config.series[h].data[w].strokeColor&&(S.pointStrokeColor=l.config.series[h].data[w].strokeColor)),a&&(S.pSize=a),(f.x[v]<0||f.x[v]>l.globals.gridWidth||f.y[v]<-l.globals.markers.largestSize||f.y[v]>l.globals.gridHeight+l.globals.markers.largestSize)&&(S.pSize=0),(r=p.drawMarker(f.x[v],f.y[v],S)).attr("rel",w),r.attr("j",w),r.attr("index",e),r.node.setAttribute("default-marker-size",S.pSize),new ut(this.ctx).setSelectionFilter(r,e,w),this.addEvents(r),g&&g.add(r)}else l.globals.pointsArray[e]===void 0&&(l.globals.pointsArray[e]=[]),l.globals.pointsArray[e].push([f.x[v],f.y[v]])}return g}},{key:"getMarkerConfig",value:function(t){var e=t.cssClass,i=t.seriesIndex,a=t.dataPointIndex,r=a===void 0?null:a,o=t.finishRadius,l=o===void 0?null:o,h=this.w,f=this.getMarkerStyle(i),g=h.globals.markers.size[i],p=h.config.markers;return r!==null&&p.discrete.length&&p.discrete.map(function(x){x.seriesIndex===i&&x.dataPointIndex===r&&(f.pointStrokeColor=x.strokeColor,f.pointFillColor=x.fillColor,g=x.size,f.pointShape=x.shape)}),{pSize:l===null?g:l,pRadius:p.radius,width:Array.isArray(p.width)?p.width[i]:p.width,height:Array.isArray(p.height)?p.height[i]:p.height,pointStrokeWidth:Array.isArray(p.strokeWidth)?p.strokeWidth[i]:p.strokeWidth,pointStrokeColor:f.pointStrokeColor,pointFillColor:f.pointFillColor,shape:f.pointShape||(Array.isArray(p.shape)?p.shape[i]:p.shape),class:e,pointStrokeOpacity:Array.isArray(p.strokeOpacity)?p.strokeOpacity[i]:p.strokeOpacity,pointStrokeDashArray:Array.isArray(p.strokeDashArray)?p.strokeDashArray[i]:p.strokeDashArray,pointFillOpacity:Array.isArray(p.fillOpacity)?p.fillOpacity[i]:p.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(t){var e=this.w,i=new V(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,t)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,t)),t.node.addEventListener("click",e.config.markers.onClick),t.node.addEventListener("dblclick",e.config.markers.onDblClick),t.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,t),{passive:!0})}},{key:"getMarkerStyle",value:function(t){var e=this.w,i=e.globals.markers.colors,a=e.config.markers.strokeColor||e.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(a)?a[t]:a,pointFillColor:Array.isArray(i)?i[t]:i}}}]),_}(),Fa=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return L(_,[{key:"draw",value:function(t,e,i){var a=this.w,r=new V(this.ctx),o=i.realIndex,l=i.pointsPos,h=i.zRatio,f=i.elParent,g=r.group({class:"apexcharts-series-markers apexcharts-series-".concat(a.config.chart.type)});if(g.attr("clip-path","url(#gridRectMarkerMask".concat(a.globals.cuid,")")),Array.isArray(l.x))for(var p=0;p<l.x.length;p++){var x=e+1,v=!0;e===0&&p===0&&(x=0),e===0&&p===1&&(x=1);var w=0,A=a.globals.markers.size[o];if(h!==1/0){var S=a.config.plotOptions.bubble;A=a.globals.seriesZ[o][x],S.zScaling&&(A/=h),S.minBubbleRadius&&A<S.minBubbleRadius&&(A=S.minBubbleRadius),S.maxBubbleRadius&&A>S.maxBubbleRadius&&(A=S.maxBubbleRadius)}a.config.chart.animations.enabled||(w=A);var E=l.x[p],I=l.y[p];if(w=w||0,I!==null&&a.globals.series[o][x]!==void 0||(v=!1),v){var u=this.drawPoint(E,I,w,A,o,x,e);g.add(u)}f.add(g)}}},{key:"drawPoint",value:function(t,e,i,a,r,o,l){var h=this.w,f=r,g=new ht(this.ctx),p=new ut(this.ctx),x=new Jt(this.ctx),v=new oi(this.ctx),w=new V(this.ctx),A=v.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:f,dataPointIndex:o,finishRadius:h.config.chart.type==="bubble"||h.globals.comboCharts&&h.config.series[r]&&h.config.series[r].type==="bubble"?a:null});a=A.pSize;var S,E=x.fillPath({seriesNumber:r,dataPointIndex:o,color:A.pointFillColor,patternUnits:"objectBoundingBox",value:h.globals.series[r][l]});if(A.shape==="circle"?S=w.drawCircle(i):A.shape!=="square"&&A.shape!=="rect"||(S=w.drawRect(0,0,A.width-A.pointStrokeWidth/2,A.height-A.pointStrokeWidth/2,A.pRadius)),h.config.series[f].data[o]&&h.config.series[f].data[o].fillColor&&(E=h.config.series[f].data[o].fillColor),S.attr({x:t-A.width/2-A.pointStrokeWidth/2,y:e-A.height/2-A.pointStrokeWidth/2,cx:t,cy:e,fill:E,"fill-opacity":A.pointFillOpacity,stroke:A.pointStrokeColor,r:a,"stroke-width":A.pointStrokeWidth,"stroke-dasharray":A.pointStrokeDashArray,"stroke-opacity":A.pointStrokeOpacity}),h.config.chart.dropShadow.enabled){var I=h.config.chart.dropShadow;p.dropShadow(S,I,r)}if(!this.initialAnim||h.globals.dataChanged||h.globals.resized)h.globals.animationEnded=!0;else{var u=h.config.chart.animations.speed;g.animateMarker(S,0,A.shape==="circle"?a:{width:A.width,height:A.height},u,h.globals.easing,function(){window.setTimeout(function(){g.animationCompleted(S)},100)})}if(h.globals.dataChanged&&A.shape==="circle")if(this.dynamicAnim){var b,k,P,T,O=h.config.chart.animations.dynamicAnimation.speed;(T=h.globals.previousPaths[r]&&h.globals.previousPaths[r][l])!=null&&(b=T.x,k=T.y,P=T.r!==void 0?T.r:a);for(var F=0;F<h.globals.collapsedSeries.length;F++)h.globals.collapsedSeries[F].index===r&&(O=1,a=0);t===0&&e===0&&(a=0),g.animateCircle(S,{cx:b,cy:k,r:P},{cx:t,cy:e,r:a},O,h.globals.easing)}else S.attr({r:a});return S.attr({rel:o,j:o,index:r,"default-marker-size":a}),p.setSelectionFilter(S,r,o),v.addEvents(S),S.node.classList.add("apexcharts-marker"),S}},{key:"centerTextInBubble",value:function(t){var e=this.w;return{y:t+=parseInt(e.config.dataLabels.style.fontSize,10)/4}}}]),_}(),li=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"dataLabelsCorrection",value:function(t,e,i,a,r,o,l){var h=this.w,f=!1,g=new V(this.ctx).getTextRects(i,l),p=g.width,x=g.height;e<0&&(e=0),e>h.globals.gridHeight+x&&(e=h.globals.gridHeight+x/2),h.globals.dataLabelsRects[a]===void 0&&(h.globals.dataLabelsRects[a]=[]),h.globals.dataLabelsRects[a].push({x:t,y:e,width:p,height:x});var v=h.globals.dataLabelsRects[a].length-2,w=h.globals.lastDrawnDataLabelsIndexes[a]!==void 0?h.globals.lastDrawnDataLabelsIndexes[a][h.globals.lastDrawnDataLabelsIndexes[a].length-1]:0;if(h.globals.dataLabelsRects[a][v]!==void 0){var A=h.globals.dataLabelsRects[a][w];(t>A.x+A.width||e>A.y+A.height||e+x<A.y||t+p<A.x)&&(f=!0)}return(r===0||o)&&(f=!0),{x:t,y:e,textRects:g,drawnextLabel:f}}},{key:"drawDataLabel",value:function(t){var e=this,i=t.type,a=t.pos,r=t.i,o=t.j,l=t.isRangeStart,h=t.strokeWidth,f=h===void 0?2:h,g=this.w,p=new V(this.ctx),x=g.config.dataLabels,v=0,w=0,A=o,S=null;if(!x.enabled||!Array.isArray(a.x))return S;S=p.group({class:"apexcharts-data-labels"});for(var E=0;E<a.x.length;E++)if(v=a.x[E]+x.offsetX,w=a.y[E]+x.offsetY+f,!isNaN(v)){o===1&&E===0&&(A=0),o===1&&E===1&&(A=1);var I=g.globals.series[r][A];i==="rangeArea"&&(I=l?g.globals.seriesRangeStart[r][A]:g.globals.seriesRangeEnd[r][A]);var u="",b=function(k){return g.config.dataLabels.formatter(k,{ctx:e.ctx,seriesIndex:r,dataPointIndex:A,w:g})};g.config.chart.type==="bubble"?(u=b(I=g.globals.seriesZ[r][A]),w=a.y[E],w=new Fa(this.ctx).centerTextInBubble(w,r,A).y):I!==void 0&&(u=b(I)),this.plotDataLabelsText({x:v,y:w,text:u,i:r,j:A,parent:S,offsetCorrection:!0,dataLabelsConfig:g.config.dataLabels})}return S}},{key:"plotDataLabelsText",value:function(t){var e=this.w,i=new V(this.ctx),a=t.x,r=t.y,o=t.i,l=t.j,h=t.text,f=t.textAnchor,g=t.fontSize,p=t.parent,x=t.dataLabelsConfig,v=t.color,w=t.alwaysDrawDataLabel,A=t.offsetCorrection;if(!(Array.isArray(e.config.dataLabels.enabledOnSeries)&&e.config.dataLabels.enabledOnSeries.indexOf(o)<0)){var S={x:a,y:r,drawnextLabel:!0,textRects:null};A&&(S=this.dataLabelsCorrection(a,r,h,o,l,w,parseInt(x.style.fontSize,10))),e.globals.zoomed||(a=S.x,r=S.y),S.textRects&&(a<-20-S.textRects.width||a>e.globals.gridWidth+S.textRects.width+30)&&(h="");var E=e.globals.dataLabels.style.colors[o];((e.config.chart.type==="bar"||e.config.chart.type==="rangeBar")&&e.config.plotOptions.bar.distributed||e.config.dataLabels.distributed)&&(E=e.globals.dataLabels.style.colors[l]),typeof E=="function"&&(E=E({series:e.globals.series,seriesIndex:o,dataPointIndex:l,w:e})),v&&(E=v);var I=x.offsetX,u=x.offsetY;if(e.config.chart.type!=="bar"&&e.config.chart.type!=="rangeBar"||(I=0,u=0),S.drawnextLabel){var b=i.drawText({width:100,height:parseInt(x.style.fontSize,10),x:a+I,y:r+u,foreColor:E,textAnchor:f||x.textAnchor,text:h,fontSize:g||x.style.fontSize,fontFamily:x.style.fontFamily,fontWeight:x.style.fontWeight||"normal"});if(b.attr({class:"apexcharts-datalabel",cx:a,cy:r}),x.dropShadow.enabled){var k=x.dropShadow;new ut(this.ctx).dropShadow(b,k)}p.add(b),e.globals.lastDrawnDataLabelsIndexes[o]===void 0&&(e.globals.lastDrawnDataLabelsIndexes[o]=[]),e.globals.lastDrawnDataLabelsIndexes[o].push(l)}}}},{key:"addBackgroundToDataLabel",value:function(t,e){var i=this.w,a=i.config.dataLabels.background,r=a.padding,o=a.padding/2,l=e.width,h=e.height,f=new V(this.ctx).drawRect(e.x-r,e.y-o/2,l+2*r,h+o,a.borderRadius,i.config.chart.background==="transparent"?"#fff":i.config.chart.background,a.opacity,a.borderWidth,a.borderColor);return a.dropShadow.enabled&&new ut(this.ctx).dropShadow(f,a.dropShadow),f}},{key:"dataLabelsBackground",value:function(){var t=this.w;if(t.config.chart.type!=="bubble")for(var e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i<e.length;i++){var a=e[i],r=a.getBBox(),o=null;if(r.width&&r.height&&(o=this.addBackgroundToDataLabel(a,r)),o){a.parentNode.insertBefore(o.node,a);var l=a.getAttribute("fill");t.config.chart.animations.enabled&&!t.globals.resized&&!t.globals.dataChanged?o.animate().attr({fill:l}):o.attr({fill:l}),a.setAttribute("fill",t.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var t=this.w,e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=t.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),a=0;a<e.length;a++)i&&i.insertBefore(e[a],i.nextSibling)}}]),_}(),Qt=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.legendInactiveClass="legend-mouseover-inactive"}return L(_,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(t){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(R.escapeString(t),"']"))}},{key:"isSeriesHidden",value:function(t){var e=this.getSeriesByName(t),i=parseInt(e.getAttribute("data:realIndex"),10);return{isHidden:e.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(t,e){var i=this.w;function a(r){for(var o=0;o<r.length;o++)r[o].index===e&&t.node.classList.add("apexcharts-series-collapsed")}a(i.globals.collapsedSeries),a(i.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(t){var e=this.isSeriesHidden(t);return this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,e.isHidden),e.isHidden}},{key:"showSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!0)}},{key:"hideSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!1)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=this.w,r=R.clone(a.globals.initialSeries);a.globals.previousPaths=[],i?(a.globals.collapsedSeries=[],a.globals.ancillaryCollapsedSeries=[],a.globals.collapsedSeriesIndices=[],a.globals.ancillaryCollapsedSeriesIndices=[]):r=this.emptyCollapsedSeries(r),a.config.series=r,t&&(e&&(a.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(r,a.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(t){for(var e=this.w,i=0;i<t.length;i++)e.globals.collapsedSeriesIndices.indexOf(i)>-1&&(t[i].data=[]);return t}},{key:"toggleSeriesOnHover",value:function(t,e){var i=this.w;e||(e=t.target);var a=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if(t.type==="mousemove"){var r=parseInt(e.getAttribute("rel"),10)-1,o=null,l=null;i.globals.axisCharts||i.config.chart.type==="radialBar"?i.globals.axisCharts?(o=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(r,"']")),l=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(r,"']"))):o=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"']")):o=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"'] path"));for(var h=0;h<a.length;h++)a[h].classList.add(this.legendInactiveClass);o!==null&&(i.globals.axisCharts||o.parentNode.classList.remove(this.legendInactiveClass),o.classList.remove(this.legendInactiveClass),l!==null&&l.classList.remove(this.legendInactiveClass))}else if(t.type==="mouseout")for(var f=0;f<a.length;f++)a[f].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(t,e){var i=this,a=this.w,r=a.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),o=function(h){for(var f=0;f<r.length;f++)r[f].classList[h](i.legendInactiveClass)};if(t.type==="mousemove"){var l=parseInt(e.getAttribute("rel"),10)-1;o("add"),function(h){for(var f=0;f<r.length;f++){var g=parseInt(r[f].getAttribute("val"),10);g>=h.from&&g<=h.to&&r[f].classList.remove(i.legendInactiveClass)}}(a.config.plotOptions.heatmap.colorScale.ranges[l])}else t.type==="mouseout"&&o("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"asc",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=this.w,a=0;if(i.config.series.length>1){for(var r=i.config.series.map(function(l,h){return l.data&&l.data.length>0&&i.globals.collapsedSeriesIndices.indexOf(h)===-1&&(!i.globals.comboCharts||e.length===0||e.length&&e.indexOf(i.config.series[h].type)>-1)?h:-1}),o=t==="asc"?0:r.length-1;t==="asc"?o<r.length:o>=0;t==="asc"?o++:o--)if(r[o]!==-1){a=r[o];break}}return a}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(t,e){return t.type==="bar"||t.type==="column"?e:-1}).filter(function(t){return t!==-1}):this.w.config.series.map(function(t,e){return e})}},{key:"getPreviousPaths",value:function(){var t=this.w;function e(o,l,h){for(var f=o[l].childNodes,g={type:h,paths:[],realIndex:o[l].getAttribute("data:realIndex")},p=0;p<f.length;p++)if(f[p].hasAttribute("pathTo")){var x=f[p].getAttribute("pathTo");g.paths.push({d:x})}t.globals.previousPaths.push(g)}t.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(o){for(var l,h=(l=o,t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(l,"-series .apexcharts-series"))),f=0;f<h.length;f++)e(h,f,o)}),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series"));if(i.length>0)for(var a=function(o){for(var l=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(o,"'] rect")),h=[],f=function(p){var x=function(w){return l[p].getAttribute(w)},v={x:parseFloat(x("x")),y:parseFloat(x("y")),width:parseFloat(x("width")),height:parseFloat(x("height"))};h.push({rect:v,color:l[p].getAttribute("color")})},g=0;g<l.length;g++)f(g);t.globals.previousPaths.push(h)},r=0;r<i.length;r++)a(r);t.globals.axisCharts||(t.globals.previousPaths=t.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(t){var e=this.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series"));if(i.length>0)for(var a=0;a<i.length;a++){for(var r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series[data\\:realIndex='").concat(a,"'] circle")),o=[],l=0;l<r.length;l++)o.push({x:r[l].getAttribute("cx"),y:r[l].getAttribute("cy"),r:r[l].getAttribute("r")});e.globals.previousPaths.push(o)}}},{key:"clearPreviousPaths",value:function(){var t=this.w;t.globals.previousPaths=[],t.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var t=this.w,e=t.config.noData,i=new V(this.ctx),a=t.globals.svgWidth/2,r=t.globals.svgHeight/2,o="middle";if(t.globals.noData=!0,t.globals.animationEnded=!0,e.align==="left"?(a=10,o="start"):e.align==="right"&&(a=t.globals.svgWidth-10,o="end"),e.verticalAlign==="top"?r=50:e.verticalAlign==="bottom"&&(r=t.globals.svgHeight-50),a+=e.offsetX,r=r+parseInt(e.style.fontSize,10)+2+e.offsetY,e.text!==void 0&&e.text!==""){var l=i.drawText({x:a,y:r,text:e.text,textAnchor:o,fontSize:e.style.fontSize,fontFamily:e.style.fontFamily,foreColor:e.style.color,opacity:1,class:"apexcharts-text-nodata"});t.globals.dom.Paper.add(l)}}},{key:"setNullSeriesToZeroValues",value:function(t){for(var e=this.w,i=0;i<t.length;i++)if(t[i].length===0)for(var a=0;a<t[e.globals.maxValsInArrayIndex].length;a++)t[i].push(0);return t}},{key:"hasAllSeriesEqualX",value:function(){for(var t=!0,e=this.w,i=this.filteredSeriesX(),a=0;a<i.length-1;a++)if(i[a][0]!==i[a+1][0]){t=!1;break}return e.globals.allSeriesHasEqualX=t,t}},{key:"filteredSeriesX",value:function(){var t=this.w.globals.seriesX.map(function(e){return e.length>0?e:[]});return t}}]),_}(),Ci=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new it(this.ctx)}return L(_,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new Qt(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),t[this.activeSeriesIndex].data!==void 0&&t[this.activeSeriesIndex].data.length>0&&t[this.activeSeriesIndex].data[0]!==null&&t[this.activeSeriesIndex].data[0].x!==void 0&&t[this.activeSeriesIndex].data[0]!==null)return!0}},{key:"isFormat2DArray",value:function(){var t=this.w.config.series.slice(),e=new Qt(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),t[this.activeSeriesIndex].data!==void 0&&t[this.activeSeriesIndex].data.length>0&&t[this.activeSeriesIndex].data[0]!==void 0&&t[this.activeSeriesIndex].data[0]!==null&&t[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(t,e){for(var i=this.w.config,a=this.w.globals,r=i.chart.type==="boxPlot"||i.series[e].type==="boxPlot",o=0;o<t[e].data.length;o++)if(t[e].data[o][1]!==void 0&&(Array.isArray(t[e].data[o][1])&&t[e].data[o][1].length===4&&!r?this.twoDSeries.push(R.parseNumber(t[e].data[o][1][3])):t[e].data[o].length>=5?this.twoDSeries.push(R.parseNumber(t[e].data[o][4])):this.twoDSeries.push(R.parseNumber(t[e].data[o][1])),a.dataFormatXNumeric=!0),i.xaxis.type==="datetime"){var l=new Date(t[e].data[o][0]);l=new Date(l).getTime(),this.twoDSeriesX.push(l)}else this.twoDSeriesX.push(t[e].data[o][0]);for(var h=0;h<t[e].data.length;h++)t[e].data[h][2]!==void 0&&(this.threeDSeries.push(t[e].data[h][2]),a.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(t,e){var i=this.w.config,a=this.w.globals,r=new Tt(this.ctx),o=e;a.collapsedSeriesIndices.indexOf(e)>-1&&(o=this.activeSeriesIndex);for(var l=0;l<t[e].data.length;l++)t[e].data[l].y!==void 0&&(Array.isArray(t[e].data[l].y)?this.twoDSeries.push(R.parseNumber(t[e].data[l].y[t[e].data[l].y.length-1])):this.twoDSeries.push(R.parseNumber(t[e].data[l].y))),t[e].data[l].goals!==void 0&&Array.isArray(t[e].data[l].goals)?(this.seriesGoals[e]===void 0&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(t[e].data[l].goals)):(this.seriesGoals[e]===void 0&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(null));for(var h=0;h<t[o].data.length;h++){var f=typeof t[o].data[h].x=="string",g=Array.isArray(t[o].data[h].x),p=!g&&!!r.isValidDate(t[o].data[h].x);if(f||p)if(f||i.xaxis.convertedCatToNumeric){var x=a.isBarHorizontal&&a.isRangeData;i.xaxis.type!=="datetime"||x?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[o].data[h].x),isNaN(t[o].data[h].x)||this.w.config.xaxis.type==="category"||typeof t[o].data[h].x=="string"||(a.isXNumeric=!0)):this.twoDSeriesX.push(r.parseDate(t[o].data[h].x))}else i.xaxis.type==="datetime"?this.twoDSeriesX.push(r.parseDate(t[o].data[h].x.toString())):(a.dataFormatXNumeric=!0,a.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(t[o].data[h].x)));else g?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[o].data[h].x)):(a.isXNumeric=!0,a.dataFormatXNumeric=!0,this.twoDSeriesX.push(t[o].data[h].x))}if(t[e].data[0]&&t[e].data[0].z!==void 0){for(var v=0;v<t[e].data.length;v++)this.threeDSeries.push(t[e].data[v].z);a.isDataXYZ=!0}}},{key:"handleRangeData",value:function(t,e){var i=this.w.globals,a={};return this.isFormat2DArray()?a=this.handleRangeDataFormat("array",t,e):this.isFormatXY()&&(a=this.handleRangeDataFormat("xy",t,e)),i.seriesRangeStart.push(a.start),i.seriesRangeEnd.push(a.end),i.seriesRange.push(a.rangeUniques),i.seriesRange.forEach(function(r,o){r&&r.forEach(function(l,h){l.y.forEach(function(f,g){for(var p=0;p<l.y.length;p++)if(g!==p){var x=f.y1,v=f.y2,w=l.y[p].y1;x<=l.y[p].y2&&w<=v&&(l.overlaps.indexOf(f.rangeName)<0&&l.overlaps.push(f.rangeName),l.overlaps.indexOf(l.y[p].rangeName)<0&&l.overlaps.push(l.y[p].rangeName))}})})}),a}},{key:"handleCandleStickBoxData",value:function(t,e){var i=this.w.globals,a={};return this.isFormat2DArray()?a=this.handleCandleStickBoxDataFormat("array",t,e):this.isFormatXY()&&(a=this.handleCandleStickBoxDataFormat("xy",t,e)),i.seriesCandleO[e]=a.o,i.seriesCandleH[e]=a.h,i.seriesCandleM[e]=a.m,i.seriesCandleL[e]=a.l,i.seriesCandleC[e]=a.c,a}},{key:"handleRangeDataFormat",value:function(t,e,i){var a=[],r=[],o=e[i].data.filter(function(g,p,x){return p===x.findIndex(function(v){return v.x===g.x})}).map(function(g,p){return{x:g.x,overlaps:[],y:[]}});if(t==="array")for(var l=0;l<e[i].data.length;l++)Array.isArray(e[i].data[l])?(a.push(e[i].data[l][1][0]),r.push(e[i].data[l][1][1])):(a.push(e[i].data[l]),r.push(e[i].data[l]));else if(t==="xy")for(var h=function(g){var p=Array.isArray(e[i].data[g].y),x=R.randomId(),v=e[i].data[g].x,w={y1:p?e[i].data[g].y[0]:e[i].data[g].y,y2:p?e[i].data[g].y[1]:e[i].data[g].y,rangeName:x};e[i].data[g].rangeName=x;var A=o.findIndex(function(S){return S.x===v});o[A].y.push(w),a.push(w.y1),r.push(w.y2)},f=0;f<e[i].data.length;f++)h(f);return{start:a,end:r,rangeUniques:o}}},{key:"handleCandleStickBoxDataFormat",value:function(t,e,i){var a=this.w,r=a.config.chart.type==="boxPlot"||a.config.series[i].type==="boxPlot",o=[],l=[],h=[],f=[],g=[];if(t==="array")if(r&&e[i].data[0].length===6||!r&&e[i].data[0].length===5)for(var p=0;p<e[i].data.length;p++)o.push(e[i].data[p][1]),l.push(e[i].data[p][2]),r?(h.push(e[i].data[p][3]),f.push(e[i].data[p][4]),g.push(e[i].data[p][5])):(f.push(e[i].data[p][3]),g.push(e[i].data[p][4]));else for(var x=0;x<e[i].data.length;x++)Array.isArray(e[i].data[x][1])&&(o.push(e[i].data[x][1][0]),l.push(e[i].data[x][1][1]),r?(h.push(e[i].data[x][1][2]),f.push(e[i].data[x][1][3]),g.push(e[i].data[x][1][4])):(f.push(e[i].data[x][1][2]),g.push(e[i].data[x][1][3])));else if(t==="xy")for(var v=0;v<e[i].data.length;v++)Array.isArray(e[i].data[v].y)&&(o.push(e[i].data[v].y[0]),l.push(e[i].data[v].y[1]),r?(h.push(e[i].data[v].y[2]),f.push(e[i].data[v].y[3]),g.push(e[i].data[v].y[4])):(f.push(e[i].data[v].y[2]),g.push(e[i].data[v].y[3])));return{o,h:l,m:h,l:f,c:g}}},{key:"parseDataAxisCharts",value:function(t){var e,i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.ctx,r=this.w.config,o=this.w.globals,l=new Tt(a),h=r.labels.length>0?r.labels.slice():r.xaxis.categories.slice();if(o.isRangeBar=r.chart.type==="rangeBar"&&o.isBarHorizontal,o.hasXaxisGroups=r.xaxis.type==="category"&&r.xaxis.group.groups.length>0,o.hasXaxisGroups&&(o.groups=r.xaxis.group.groups),o.hasSeriesGroups=(e=t[0])===null||e===void 0?void 0:e.group,o.hasSeriesGroups){var f=[],g=nt(new Set(t.map(function(w){return w.group})));t.forEach(function(w,A){var S=g.indexOf(w.group);f[S]||(f[S]=[]),f[S].push(w.name)}),o.seriesGroups=f}for(var p=function(){for(var w=0;w<h.length;w++)if(typeof h[w]=="string"){if(!l.isValidDate(h[w]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");i.twoDSeriesX.push(l.parseDate(h[w]))}else i.twoDSeriesX.push(h[w])},x=0;x<t.length;x++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],t[x].data===void 0)return void console.error("It is a possibility that you may have not included 'data' property in series.");if(r.chart.type!=="rangeBar"&&r.chart.type!=="rangeArea"&&t[x].type!=="rangeBar"&&t[x].type!=="rangeArea"||(o.isRangeData=!0,r.chart.type!=="rangeBar"&&r.chart.type!=="rangeArea"||this.handleRangeData(t,x)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(t,x):this.isFormatXY()&&this.handleFormatXY(t,x),r.chart.type!=="candlestick"&&t[x].type!=="candlestick"&&r.chart.type!=="boxPlot"&&t[x].type!=="boxPlot"||this.handleCandleStickBoxData(t,x),o.series.push(this.twoDSeries),o.labels.push(this.twoDSeriesX),o.seriesX.push(this.twoDSeriesX),o.seriesGoals=this.seriesGoals,x!==this.activeSeriesIndex||this.fallbackToCategory||(o.isXNumeric=!0);else{r.xaxis.type==="datetime"?(o.isXNumeric=!0,p(),o.seriesX.push(this.twoDSeriesX)):r.xaxis.type==="numeric"&&(o.isXNumeric=!0,h.length>0&&(this.twoDSeriesX=h,o.seriesX.push(this.twoDSeriesX))),o.labels.push(this.twoDSeriesX);var v=t[x].data.map(function(w){return R.parseNumber(w)});o.series.push(v)}o.seriesZ.push(this.threeDSeries),t[x].name!==void 0?o.seriesNames.push(t[x].name):o.seriesNames.push("series-"+parseInt(x+1,10)),t[x].color!==void 0?o.seriesColors.push(t[x].color):o.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(t){var e=this.w.globals,i=this.w.config;e.series=t.slice(),e.seriesNames=i.labels.slice();for(var a=0;a<e.series.length;a++)e.seriesNames[a]===void 0&&e.seriesNames.push("series-"+(a+1));return this.w}},{key:"handleExternalLabelsData",value:function(t){var e=this.w.config,i=this.w.globals;e.xaxis.categories.length>0?i.labels=e.xaxis.categories:e.labels.length>0?i.labels=e.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRange.length&&(i.seriesRange.map(function(a){a.forEach(function(r){i.labels.indexOf(r.x)<0&&r.x&&i.labels.push(r.x)})}),i.labels=Array.from(new Set(i.labels.map(JSON.stringify)),JSON.parse)),e.xaxis.convertedCatToNumeric&&(new Rt(e).convertCatToNumericXaxis(e,this.ctx,i.seriesX[0]),this._generateExternalLabels(t))):this._generateExternalLabels(t)}},{key:"_generateExternalLabels",value:function(t){var e=this.w.globals,i=this.w.config,a=[];if(e.axisCharts){if(e.series.length>0)if(this.isFormatXY())for(var r=i.series.map(function(p,x){return p.data.filter(function(v,w,A){return A.findIndex(function(S){return S.x===v.x})===w})}),o=r.reduce(function(p,x,v,w){return w[p].length>x.length?p:v},0),l=0;l<r[o].length;l++)a.push(l+1);else for(var h=0;h<e.series[e.maxValsInArrayIndex].length;h++)a.push(h+1);e.seriesX=[];for(var f=0;f<t.length;f++)e.seriesX.push(a);this.w.globals.isBarHorizontal||(e.isXNumeric=!0)}if(a.length===0){a=e.axisCharts?[]:e.series.map(function(p,x){return x+1});for(var g=0;g<t.length;g++)e.seriesX.push(a)}e.labels=a,i.xaxis.convertedCatToNumeric&&(e.categoryLabels=a.map(function(p){return i.xaxis.labels.formatter(p)})),e.noLabelsProvided=!0}},{key:"parseData",value:function(t){var e=this.w,i=e.config,a=e.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),a.axisCharts?(this.parseDataAxisCharts(t),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(t),i.chart.stacked){var r=new Qt(this.ctx);a.series=r.setNullSeriesToZeroValues(a.series)}this.coreUtils.getSeriesTotals(),a.axisCharts&&(a.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),a.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),a.dataFormatXNumeric||a.isXNumeric&&(i.xaxis.type!=="numeric"||i.labels.length!==0||i.xaxis.categories.length!==0)||this.handleExternalLabelsData(t);for(var o=this.coreUtils.getCategoryLabels(a.labels),l=0;l<o.length;l++)if(Array.isArray(o[l])){a.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var t=this,e=this.w;e.globals.ignoreYAxisIndexes=e.globals.collapsedSeries.map(function(i,a){if(t.w.globals.isMultipleYAxis&&!e.config.chart.stacked)return i.index})}}]),_}(),Re=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"getLabel",value:function(t,e,i,a){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",l=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],h=this.w,f=t[a]===void 0?"":t[a],g=f,p=h.globals.xLabelFormatter,x=h.config.xaxis.labels.formatter,v=!1,w=new Pe(this.ctx),A=f;l&&(g=w.xLabelFormat(p,f,A,{i:a,dateFormatter:new Tt(this.ctx).formatDate,w:h}),x!==void 0&&(g=x(f,t[a],{i:a,dateFormatter:new Tt(this.ctx).formatDate,w:h})));var S,E;e.length>0?(S=e[a].unit,E=null,e.forEach(function(k){k.unit==="month"?E="year":k.unit==="day"?E="month":k.unit==="hour"?E="day":k.unit==="minute"&&(E="hour")}),v=E===S,i=e[a].position,g=e[a].value):h.config.xaxis.type==="datetime"&&x===void 0&&(g=""),g===void 0&&(g=""),g=Array.isArray(g)?g:g.toString();var I=new V(this.ctx),u={};u=h.globals.rotateXLabels&&l?I.getTextRects(g,parseInt(o,10),null,"rotate(".concat(h.config.xaxis.labels.rotate," 0 0)"),!1):I.getTextRects(g,parseInt(o,10));var b=!h.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(g)&&(g.indexOf("NaN")===0||g.toLowerCase().indexOf("invalid")===0||g.toLowerCase().indexOf("infinity")>=0||r.indexOf(g)>=0&&b)&&(g=""),{x:i,text:g,textRect:u,isBold:v}}},{key:"checkLabelBasedOnTickamount",value:function(t,e,i){var a=this.w,r=a.config.xaxis.tickAmount;return r==="dataPoints"&&(r=Math.round(a.globals.gridWidth/120)),r>i||t%Math.round(i/(r+1))==0||(e.text=""),e}},{key:"checkForOverflowingLabels",value:function(t,e,i,a,r){var o=this.w;if(t===0&&o.globals.skipFirstTimelinelabel&&(e.text=""),t===i-1&&o.globals.skipLastTimelinelabel&&(e.text=""),o.config.xaxis.labels.hideOverlappingLabels&&a.length>0){var l=r[r.length-1];e.x<l.textRect.width/(o.globals.rotateXLabels?Math.abs(o.config.xaxis.labels.rotate)/12:1.01)+l.x&&(e.text="")}return e}},{key:"checkForReversedLabels",value:function(t,e){var i=this.w;return i.config.yaxis[t]&&i.config.yaxis[t].reversed&&e.reverse(),e}},{key:"isYAxisHidden",value:function(t){var e=this.w,i=new it(this.ctx);return!e.config.yaxis[t].show||!e.config.yaxis[t].showForNullSeries&&i.isSeriesNull(t)&&e.globals.collapsedSeriesIndices.indexOf(t)===-1}},{key:"getYAxisForeColor",value:function(t,e){var i=this.w;return Array.isArray(t)&&i.globals.yAxisScale[e]&&this.ctx.theme.pushExtraColors(t,i.globals.yAxisScale[e].result.length,!1),t}},{key:"drawYAxisTicks",value:function(t,e,i,a,r,o,l){var h=this.w,f=new V(this.ctx),g=h.globals.translateY;if(a.show&&e>0){h.config.yaxis[r].opposite===!0&&(t+=a.width);for(var p=e;p>=0;p--){var x=g+e/10+h.config.yaxis[r].labels.offsetY-1;h.globals.isBarHorizontal&&(x=o*p),h.config.chart.type==="heatmap"&&(x+=o/2);var v=f.drawLine(t+i.offsetX-a.width+a.offsetX,x+a.offsetY,t+i.offsetX+a.offsetX,x+a.offsetY,a.color);l.add(v),g+=o}}}}]),_}(),Pi=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"scaleSvgNode",value:function(t,e){var i=parseFloat(t.getAttributeNS(null,"width")),a=parseFloat(t.getAttributeNS(null,"height"));t.setAttributeNS(null,"width",i*e),t.setAttributeNS(null,"height",a*e),t.setAttributeNS(null,"viewBox","0 0 "+i+" "+a)}},{key:"fixSvgStringForIe11",value:function(t){if(!R.isIE11())return t.replace(/&nbsp;/g,"&#160;");var e=0,i=t.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(a){return++e===2?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':a});return i=(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(t){t==null&&(t=1);var e=this.w.globals.dom.Paper.svg();if(t!==1){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,t),e=new XMLSerializer().serializeToString(i)}return this.fixSvgStringForIe11(e)}},{key:"cleanup",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=t.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(a,function(r){r.setAttribute("width",0)}),e&&e[0]&&(e[0].setAttribute("x",-500),e[0].setAttribute("x1",-500),e[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var t=this.getSvgString(),e=new Blob([t],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(e)}},{key:"dataURI",value:function(t){var e=this;return new Promise(function(i){var a=e.w,r=t?t.scale||t.width/a.globals.svgWidth:1;e.cleanup();var o=document.createElement("canvas");o.width=a.globals.svgWidth*r,o.height=parseInt(a.globals.dom.elWrap.style.height,10)*r;var l=a.config.chart.background==="transparent"?"#fff":a.config.chart.background,h=o.getContext("2d");h.fillStyle=l,h.fillRect(0,0,o.width*r,o.height*r);var f=e.getSvgString(r);if(window.canvg&&R.isIE11()){var g=window.canvg.Canvg.fromString(h,f,{ignoreClear:!0,ignoreDimensions:!0});g.start();var p=o.msToBlob();g.stop(),i({blob:p})}else{var x="data:image/svg+xml,"+encodeURIComponent(f),v=new Image;v.crossOrigin="anonymous",v.onload=function(){if(h.drawImage(v,0,0),o.msToBlob){var w=o.msToBlob();i({blob:w})}else{var A=o.toDataURL("image/png");i({imgURI:A})}},v.src=x}})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var t=this;this.dataURI().then(function(e){var i=e.imgURI,a=e.blob;a?navigator.msSaveOrOpenBlob(a,t.w.globals.chartID+".png"):t.triggerDownload(i,t.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(t){var e=this,i=t.series,a=t.fileName,r=t.columnDelimiter,o=r===void 0?",":r,l=t.lineDelimiter,h=l===void 0?`
`:l,f=this.w;i||(i=f.config.series);var g,p,x=[],v=[],w="",A=f.globals.series.map(function(P,T){return f.globals.collapsedSeriesIndices.indexOf(T)===-1?P:[]}),S=function(P){return f.config.xaxis.type==="datetime"&&String(P).length>=10},E=Math.max.apply(Math,nt(i.map(function(P){return P.data?P.data.length:0}))),I=new Ci(this.ctx),u=new Re(this.ctx),b=function(P){var T="";if(f.globals.axisCharts){if(f.config.xaxis.type==="category"||f.config.xaxis.convertedCatToNumeric)if(f.globals.isBarHorizontal){var O=f.globals.yLabelFormatters[0],F=new Qt(e.ctx).getActiveConfigSeriesIndex();T=O(f.globals.labels[P],{seriesIndex:F,dataPointIndex:P,w:f})}else T=u.getLabel(f.globals.labels,f.globals.timescaleLabels,0,P).text;f.config.xaxis.type==="datetime"&&(f.config.xaxis.categories.length?T=f.config.xaxis.categories[P]:f.config.labels.length&&(T=f.config.labels[P]))}else T=f.config.labels[P];return Array.isArray(T)&&(T=T.join(" ")),R.isNumber(T)?T:T.split(o).join("")},k=function(P,T){if(x.length&&T===0&&v.push(x.join(o)),P.data){P.data=P.data.length&&P.data||nt(Array(E)).map(function(){return""});for(var O=0;O<P.data.length;O++){x=[];var F=b(O);if(F||(I.isFormatXY()?F=i[T].data[O].x:I.isFormat2DArray()&&(F=i[T].data[O]?i[T].data[O][0]:"")),T===0){x.push(S(F)?f.config.chart.toolbar.export.csv.dateFormatter(F):R.isNumber(F)?F:F.split(o).join(""));for(var N=0;N<f.globals.series.length;N++){var B;I.isFormatXY()?x.push((B=i[N].data[O])===null||B===void 0?void 0:B.y):x.push(A[N][O])}}(f.config.chart.type==="candlestick"||P.type&&P.type==="candlestick")&&(x.pop(),x.push(f.globals.seriesCandleO[T][O]),x.push(f.globals.seriesCandleH[T][O]),x.push(f.globals.seriesCandleL[T][O]),x.push(f.globals.seriesCandleC[T][O])),(f.config.chart.type==="boxPlot"||P.type&&P.type==="boxPlot")&&(x.pop(),x.push(f.globals.seriesCandleO[T][O]),x.push(f.globals.seriesCandleH[T][O]),x.push(f.globals.seriesCandleM[T][O]),x.push(f.globals.seriesCandleL[T][O]),x.push(f.globals.seriesCandleC[T][O])),f.config.chart.type==="rangeBar"&&(x.pop(),x.push(f.globals.seriesRangeStart[T][O]),x.push(f.globals.seriesRangeEnd[T][O])),x.length&&v.push(x.join(o))}}};x.push(f.config.chart.toolbar.export.csv.headerCategory),f.config.chart.type==="boxPlot"?(x.push("minimum"),x.push("q1"),x.push("median"),x.push("q3"),x.push("maximum")):f.config.chart.type==="candlestick"?(x.push("open"),x.push("high"),x.push("low"),x.push("close")):f.config.chart.type==="rangeBar"?(x.push("minimum"),x.push("maximum")):i.map(function(P,T){var O=(P.name?P.name:"series-".concat(T))+"";f.globals.axisCharts&&x.push(O.split(o).join("")?O.split(o).join(""):"series-".concat(T))}),f.globals.axisCharts||(x.push(f.config.chart.toolbar.export.csv.headerValue),v.push(x.join(o))),f.globals.allSeriesHasEqualX||!f.globals.axisCharts||f.config.xaxis.categories.length||f.config.labels.length?i.map(function(P,T){f.globals.axisCharts?k(P,T):((x=[]).push(f.globals.labels[T].split(o).join("")),x.push(A[T]),v.push(x.join(o)))}):(g=new Set,p={},i.forEach(function(P,T){P==null||P.data.forEach(function(O){var F,N;if(I.isFormatXY())F=O.x,N=O.y;else{if(!I.isFormat2DArray())return;F=O[0],N=O[1]}p[F]||(p[F]=Array(i.length).fill("")),p[F][T]=N,g.add(F)})}),x.length&&v.push(x.join(o)),Array.from(g).sort().forEach(function(P){v.push([S(P)&&f.config.xaxis.type==="datetime"?f.config.chart.toolbar.export.csv.dateFormatter(P):R.isNumber(P)?P:P.split(o).join(""),p[P].join(o)])})),w+=v.join(h),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+w),a||f.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(t,e,i){var a=document.createElement("a");a.href=t,a.download=(e||this.w.globals.chartID)+i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}}]),_}(),ze=function(){function _(t,e){y(this,_),this.ctx=t,this.elgrid=e,this.w=t.w;var i=this.w;this.axesUtils=new Re(t),this.xaxisLabels=i.globals.labels.slice(),i.globals.timescaleLabels.length>0&&!i.globals.isBarHorizontal&&(this.xaxisLabels=i.globals.timescaleLabels.slice()),i.config.xaxis.overwriteCategories&&(this.xaxisLabels=i.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],i.config.xaxis.position==="top"?this.offY=0:this.offY=i.globals.gridHeight+1,this.offY=this.offY+i.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=i.config.chart.type==="bar"&&i.config.plotOptions.bar.horizontal,this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.xaxisBorderWidth=i.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=i.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=i.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=i.config.xaxis.axisBorder.height,this.yaxis=i.config.yaxis[0]}return L(_,[{key:"drawXaxis",value:function(){var t=this.w,e=new V(this.ctx),i=e.group({class:"apexcharts-xaxis",transform:"translate(".concat(t.config.xaxis.offsetX,", ").concat(t.config.xaxis.offsetY,")")}),a=e.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});i.add(a);for(var r=[],o=0;o<this.xaxisLabels.length;o++)r.push(this.xaxisLabels[o]);if(this.drawXAxisLabelAndGroup(!0,e,a,r,t.globals.isXNumeric,function(w,A){return A}),t.globals.hasXaxisGroups){var l=t.globals.groups;r=[];for(var h=0;h<l.length;h++)r.push(l[h].title);var f={};t.config.xaxis.group.style&&(f.xaxisFontSize=t.config.xaxis.group.style.fontSize,f.xaxisFontFamily=t.config.xaxis.group.style.fontFamily,f.xaxisForeColors=t.config.xaxis.group.style.colors,f.fontWeight=t.config.xaxis.group.style.fontWeight,f.cssClass=t.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,e,a,r,!1,function(w,A){return l[w].cols*A},f)}if(t.config.xaxis.title.text!==void 0){var g=e.group({class:"apexcharts-xaxis-title"}),p=e.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+(t.config.xaxis.position==="bottom"?t.globals.xAxisLabelsHeight:-t.globals.xAxisLabelsHeight-10)+t.config.xaxis.title.offsetY,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass});g.add(p),i.add(g)}if(t.config.xaxis.axisBorder.show){var x=t.globals.barPadForNumericAxis,v=e.drawLine(t.globals.padHorizontal+t.config.xaxis.axisBorder.offsetX-x,this.offY,this.xaxisBorderWidth+x,this.offY,t.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(v):i.add(v)}return i}},{key:"drawXAxisLabelAndGroup",value:function(t,e,i,a,r,o){var l,h=this,f=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},g=[],p=[],x=this.w,v=f.xaxisFontSize||this.xaxisFontSize,w=f.xaxisFontFamily||this.xaxisFontFamily,A=f.xaxisForeColors||this.xaxisForeColors,S=f.fontWeight||x.config.xaxis.labels.style.fontWeight,E=f.cssClass||x.config.xaxis.labels.style.cssClass,I=x.globals.padHorizontal,u=a.length,b=x.config.xaxis.type==="category"?x.globals.dataPoints:u;if(b===0&&u>b&&(b=u),r){var k=b>1?b-1:b;l=x.globals.gridWidth/Math.min(k,u-1),I=I+o(0,l)/2+x.config.xaxis.labels.offsetX}else l=x.globals.gridWidth/b,I=I+o(0,l)+x.config.xaxis.labels.offsetX;for(var P=function(O){var F=I-o(O,l)/2+x.config.xaxis.labels.offsetX;O===0&&u===1&&l/2===I&&b===1&&(F=x.globals.gridWidth/2);var N=h.axesUtils.getLabel(a,x.globals.timescaleLabels,F,O,g,v,t),B=28;if(x.globals.rotateXLabels&&t&&(B=22),x.config.xaxis.title.text&&x.config.xaxis.position==="top"&&(B+=parseFloat(x.config.xaxis.title.style.fontSize)+2),t||(B=B+parseFloat(v)+(x.globals.xAxisLabelsHeight-x.globals.xAxisGroupLabelsHeight)+(x.globals.rotateXLabels?10:0)),N=x.config.xaxis.tickAmount!==void 0&&x.config.xaxis.tickAmount!=="dataPoints"&&x.config.xaxis.type!=="datetime"?h.axesUtils.checkLabelBasedOnTickamount(O,N,u):h.axesUtils.checkForOverflowingLabels(O,N,u,g,p),x.config.xaxis.labels.show){var $=e.drawText({x:N.x,y:h.offY+x.config.xaxis.labels.offsetY+B-(x.config.xaxis.position==="top"?x.globals.xAxisHeight+x.config.xaxis.axisTicks.height-2:0),text:N.text,textAnchor:"middle",fontWeight:N.isBold?600:S,fontSize:v,fontFamily:w,foreColor:Array.isArray(A)?t&&x.config.xaxis.convertedCatToNumeric?A[x.globals.minX+O-1]:A[O]:A,isPlainText:!1,cssClass:(t?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+E});if(i.add($),$.on("click",function(st){if(typeof x.config.chart.events.xAxisLabelClick=="function"){var dt=Object.assign({},x,{labelIndex:O});x.config.chart.events.xAxisLabelClick(st,h.ctx,dt)}}),t){var j=document.createElementNS(x.globals.SVGNS,"title");j.textContent=Array.isArray(N.text)?N.text.join(" "):N.text,$.node.appendChild(j),N.text!==""&&(g.push(N.text),p.push(N))}}O<u-1&&(I+=o(O+1,l))},T=0;T<=u-1;T++)P(T)}},{key:"drawXaxisInversed",value:function(t){var e,i,a=this,r=this.w,o=new V(this.ctx),l=r.config.yaxis[0].opposite?r.globals.translateYAxisX[t]:0,h=o.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:t}),f=o.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+l+", 0)"});h.add(f);var g=[];if(r.config.yaxis[t].show)for(var p=0;p<this.xaxisLabels.length;p++)g.push(this.xaxisLabels[p]);e=r.globals.gridHeight/g.length,i=-e/2.2;var x=r.globals.yLabelFormatters[0],v=r.config.yaxis[0].labels;if(v.show)for(var w=function(k){var P=g[k]===void 0?"":g[k];P=x(P,{seriesIndex:t,dataPointIndex:k,w:r});var T=a.axesUtils.getYAxisForeColor(v.style.colors,t),O=0;Array.isArray(P)&&(O=P.length/2*parseInt(v.style.fontSize,10));var F=v.offsetX-15,N="end";a.yaxis.opposite&&(N="start"),r.config.yaxis[0].labels.align==="left"?(F=v.offsetX,N="start"):r.config.yaxis[0].labels.align==="center"?(F=v.offsetX,N="middle"):r.config.yaxis[0].labels.align==="right"&&(N="end");var B=o.drawText({x:F,y:i+e+v.offsetY-O,text:P,textAnchor:N,foreColor:Array.isArray(T)?T[k]:T,fontSize:v.style.fontSize,fontFamily:v.style.fontFamily,fontWeight:v.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+v.style.cssClass,maxWidth:v.maxWidth});f.add(B),B.on("click",function(st){if(typeof r.config.chart.events.xAxisLabelClick=="function"){var dt=Object.assign({},r,{labelIndex:k});r.config.chart.events.xAxisLabelClick(st,a.ctx,dt)}});var $=document.createElementNS(r.globals.SVGNS,"title");if($.textContent=Array.isArray(P)?P.join(" "):P,B.node.appendChild($),r.config.yaxis[t].labels.rotate!==0){var j=o.rotateAroundCenter(B.node);B.node.setAttribute("transform","rotate(".concat(r.config.yaxis[t].labels.rotate," 0 ").concat(j.y,")"))}i+=e},A=0;A<=g.length-1;A++)w(A);if(r.config.yaxis[0].title.text!==void 0){var S=o.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+l+", 0)"}),E=o.drawText({x:r.config.yaxis[0].title.offsetX,y:r.globals.gridHeight/2+r.config.yaxis[0].title.offsetY,text:r.config.yaxis[0].title.text,textAnchor:"middle",foreColor:r.config.yaxis[0].title.style.color,fontSize:r.config.yaxis[0].title.style.fontSize,fontWeight:r.config.yaxis[0].title.style.fontWeight,fontFamily:r.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+r.config.yaxis[0].title.style.cssClass});S.add(E),h.add(S)}var I=0;this.isCategoryBarHorizontal&&r.config.yaxis[0].opposite&&(I=r.globals.gridWidth);var u=r.config.xaxis.axisBorder;if(u.show){var b=o.drawLine(r.globals.padHorizontal+u.offsetX+I,1+u.offsetY,r.globals.padHorizontal+u.offsetX+I,r.globals.gridHeight+u.offsetY,u.color,0);this.elgrid&&this.elgrid.elGridBorders&&r.config.grid.show?this.elgrid.elGridBorders.add(b):h.add(b)}return r.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(I,g.length,r.config.yaxis[0].axisBorder,r.config.yaxis[0].axisTicks,0,e,h),h}},{key:"drawXaxisTicks",value:function(t,e,i){var a=this.w,r=t;if(!(t<0||t-2>a.globals.gridWidth)){var o=this.offY+a.config.xaxis.axisTicks.offsetY;if(e=e+o+a.config.xaxis.axisTicks.height,a.config.xaxis.position==="top"&&(e=o-a.config.xaxis.axisTicks.height),a.config.xaxis.axisTicks.show){var l=new V(this.ctx).drawLine(t+a.config.xaxis.axisTicks.offsetX,o+a.config.xaxis.offsetY,r+a.config.xaxis.axisTicks.offsetX,e+a.config.xaxis.offsetY,a.config.xaxis.axisTicks.color);i.add(l),l.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var t=this.w,e=[],i=this.xaxisLabels.length,a=t.globals.padHorizontal;if(t.globals.timescaleLabels.length>0)for(var r=0;r<i;r++)a=this.xaxisLabels[r].position,e.push(a);else for(var o=i,l=0;l<o;l++){var h=o;t.globals.isXNumeric&&t.config.chart.type!=="bar"&&(h-=1),a+=t.globals.gridWidth/h,e.push(a)}return e}},{key:"xAxisLabelCorrections",value:function(){var t=this.w,e=new V(this.ctx),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(t.globals.rotateXLabels||t.config.xaxis.labels.rotateAlways)for(var l=0;l<a.length;l++){var h=e.rotateAroundCenter(a[l]);h.y=h.y-1,h.x=h.x+1,a[l].setAttribute("transform","rotate(".concat(t.config.xaxis.labels.rotate," ").concat(h.x," ").concat(h.y,")")),a[l].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")"));var f=a[l].childNodes;t.config.xaxis.labels.trim&&Array.prototype.forEach.call(f,function(v){e.placeTextWithEllipsis(v,v.textContent,t.globals.xAxisLabelsHeight-(t.config.legend.position==="bottom"?20:10))})}else(function(){for(var v=t.globals.gridWidth/(t.globals.labels.length+1),w=0;w<a.length;w++){var A=a[w].childNodes;t.config.xaxis.labels.trim&&t.config.xaxis.type!=="datetime"&&Array.prototype.forEach.call(A,function(S){e.placeTextWithEllipsis(S,S.textContent,v)})}})();if(r.length>0){var g=r[r.length-1].getBBox(),p=r[0].getBBox();g.x<-20&&r[r.length-1].parentNode.removeChild(r[r.length-1]),p.x+p.width>t.globals.gridWidth&&!t.globals.isBarHorizontal&&r[0].parentNode.removeChild(r[0]);for(var x=0;x<o.length;x++)e.placeTextWithEllipsis(o[x],o[x].textContent,t.config.yaxis[0].labels.maxWidth-(t.config.yaxis[0].title.text?2*parseFloat(t.config.yaxis[0].title.style.fontSize):0)-15)}}}]),_}(),aa=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w;var e=this.w;this.xaxisLabels=e.globals.labels.slice(),this.axesUtils=new Re(t),this.isRangeBar=e.globals.seriesRange.length&&e.globals.isBarHorizontal,e.globals.timescaleLabels.length>0&&(this.xaxisLabels=e.globals.timescaleLabels.slice())}return L(_,[{key:"drawGridArea",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=this.w,i=new V(this.ctx);t===null&&(t=i.group({class:"apexcharts-grid"}));var a=i.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.globals.gridHeight,"transparent"),r=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,"transparent");return t.add(r),t.add(a),t}},{key:"drawGrid",value:function(){var t=null;return this.w.globals.axisCharts&&(t=this.renderGrid(),this.drawGridArea(t.el)),t}},{key:"createGridMask",value:function(){var t=this.w,e=t.globals,i=new V(this.ctx),a=Array.isArray(t.config.stroke.width)?0:t.config.stroke.width;if(Array.isArray(t.config.stroke.width)){var r=0;t.config.stroke.width.forEach(function(p){r=Math.max(r,p)}),a=r}e.dom.elGridRectMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(e.cuid)),e.dom.elGridRectMarkerMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(e.cuid)),e.dom.elForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elForecastMask.setAttribute("id","forecastMask".concat(e.cuid)),e.dom.elNonForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(e.cuid));var o=t.config.chart.type,l=0,h=0;(o==="bar"||o==="rangeBar"||o==="candlestick"||o==="boxPlot"||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&(l=t.config.grid.padding.left,h=t.config.grid.padding.right,e.barPadForNumericAxis>l&&(l=e.barPadForNumericAxis,h=e.barPadForNumericAxis)),e.dom.elGridRect=i.drawRect(-a-l-2,2*-a-2,e.gridWidth+a+h+l+4,e.gridHeight+4*a+4,0,"#fff");var f=t.globals.markers.largestSize+1;e.dom.elGridRectMarker=i.drawRect(2*-f,2*-f,e.gridWidth+4*f,e.gridHeight+4*f,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);var g=e.dom.baseEl.querySelector("defs");g.appendChild(e.dom.elGridRectMask),g.appendChild(e.dom.elForecastMask),g.appendChild(e.dom.elNonForecastMask),g.appendChild(e.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(t){var e=t.i,i=t.x1,a=t.y1,r=t.x2,o=t.y2,l=t.xCount,h=t.parent,f=this.w;if(!(e===0&&f.globals.skipFirstTimelinelabel||e===l-1&&f.globals.skipLastTimelinelabel&&!f.config.xaxis.labels.formatter||f.config.chart.type==="radar")){f.config.grid.xaxis.lines.show&&this._drawGridLine({i:e,x1:i,y1:a,x2:r,y2:o,xCount:l,parent:h});var g=0;if(f.globals.hasXaxisGroups&&f.config.xaxis.tickPlacement==="between"){var p=f.globals.groups;if(p){for(var x=0,v=0;x<e&&v<p.length;v++)x+=p[v].cols;x===e&&(g=.6*f.globals.xAxisLabelsHeight)}}new ze(this.ctx).drawXaxisTicks(i,g,f.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(t){var e=t.i,i=t.x1,a=t.y1,r=t.x2,o=t.y2,l=t.xCount,h=t.parent,f=this.w,g=!1,p=h.node.classList.contains("apexcharts-gridlines-horizontal"),x=f.config.grid.strokeDashArray,v=f.globals.barPadForNumericAxis;(a===0&&o===0||i===0&&r===0)&&(g=!0),a===f.globals.gridHeight&&o===f.globals.gridHeight&&(g=!0),!f.globals.isBarHorizontal||e!==0&&e!==l-1||(g=!0);var w=new V(this).drawLine(i-(p?v:0),a,r+(p?v:0),o,f.config.grid.borderColor,x);w.node.classList.add("apexcharts-gridline"),g&&f.config.grid.show?this.elGridBorders.add(w):h.add(w)}},{key:"_drawGridBandRect",value:function(t){var e=t.c,i=t.x1,a=t.y1,r=t.x2,o=t.y2,l=t.type,h=this.w,f=new V(this.ctx),g=h.globals.barPadForNumericAxis;if(l!=="column"||h.config.xaxis.type!=="datetime"){var p=h.config.grid[l].colors[e],x=f.drawRect(i-(l==="row"?g:0),a,r+(l==="row"?2*g:0),o,0,p,h.config.grid[l].opacity);this.elg.add(x),x.attr("clip-path","url(#gridRectMask".concat(h.globals.cuid,")")),x.node.classList.add("apexcharts-grid-".concat(l))}}},{key:"_drawXYLines",value:function(t){var e=this,i=t.xCount,a=t.tickAmount,r=this.w;if(r.config.grid.xaxis.lines.show||r.config.xaxis.axisTicks.show){var o,l=r.globals.padHorizontal,h=r.globals.gridHeight;r.globals.timescaleLabels.length?function(w){for(var A=w.xC,S=w.x1,E=w.y1,I=w.x2,u=w.y2,b=0;b<A;b++)S=e.xaxisLabels[b].position,I=e.xaxisLabels[b].position,e._drawGridLines({i:b,x1:S,y1:E,x2:I,y2:u,xCount:i,parent:e.elgridLinesV})}({xC:i,x1:l,y1:0,x2:o,y2:h}):(r.globals.isXNumeric&&(i=r.globals.xAxisScale.result.length),function(w){for(var A=w.xC,S=w.x1,E=w.y1,I=w.x2,u=w.y2,b=0;b<A+(r.globals.isXNumeric?0:1);b++)b===0&&A===1&&r.globals.dataPoints===1&&(I=S=r.globals.gridWidth/2),e._drawGridLines({i:b,x1:S,y1:E,x2:I,y2:u,xCount:i,parent:e.elgridLinesV}),I=S+=r.globals.gridWidth/(r.globals.isXNumeric?A-1:A)}({xC:i,x1:l,y1:0,x2:o,y2:h}))}if(r.config.grid.yaxis.lines.show){var f=0,g=0,p=r.globals.gridWidth,x=a+1;this.isRangeBar&&(x=r.globals.labels.length);for(var v=0;v<x+(this.isRangeBar?1:0);v++)this._drawGridLine({i:v,xCount:x+(this.isRangeBar?1:0),x1:0,y1:f,x2:p,y2:g,parent:this.elgridLinesH}),g=f+=r.globals.gridHeight/(this.isRangeBar?x:a)}}},{key:"_drawInvertedXYLines",value:function(t){var e=t.xCount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show)for(var a,r=i.globals.padHorizontal,o=i.globals.gridHeight,l=0;l<e+1;l++)i.config.grid.xaxis.lines.show&&this._drawGridLine({i:l,xCount:e+1,x1:r,y1:0,x2:a,y2:o,parent:this.elgridLinesV}),new ze(this.ctx).drawXaxisTicks(r,0,i.globals.dom.elGraphical),a=r=r+i.globals.gridWidth/e+.3;if(i.config.grid.yaxis.lines.show)for(var h=0,f=0,g=i.globals.gridWidth,p=0;p<i.globals.dataPoints+1;p++)this._drawGridLine({i:p,xCount:i.globals.dataPoints+1,x1:0,y1:h,x2:g,y2:f,parent:this.elgridLinesH}),f=h+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var t=this.w,e=new V(this.ctx);this.elg=e.group({class:"apexcharts-grid"}),this.elgridLinesH=e.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=e.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=e.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),t.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var i,a=t.globals.yAxisScale.length?t.globals.yAxisScale[0].result.length-1:5,r=0;r<t.globals.series.length&&(t.globals.yAxisScale[r]!==void 0&&(a=t.globals.yAxisScale[r].result.length-1),!(a>2));r++);if(!t.globals.isBarHorizontal||this.isRangeBar){var o,l,h;i=this.xaxisLabels.length,this.isRangeBar&&(i--,a=t.globals.labels.length,t.config.xaxis.tickAmount&&t.config.xaxis.labels.formatter&&(i=t.config.xaxis.tickAmount),((o=t.globals.yAxisScale)===null||o===void 0||(l=o[0])===null||l===void 0||(h=l.result)===null||h===void 0?void 0:h.length)>0&&t.config.xaxis.type!=="datetime"&&(i=t.globals.yAxisScale[0].result.length-1)),this._drawXYLines({xCount:i,tickAmount:a})}else i=a,a=t.globals.xTickAmount,this._drawInvertedXYLines({xCount:i,tickAmount:a});return this.drawGridBands(i,a),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:t.globals.gridWidth/i}}},{key:"drawGridBands",value:function(t,e){var i=this.w;if(i.config.grid.row.colors!==void 0&&i.config.grid.row.colors.length>0)for(var a=0,r=i.globals.gridHeight/e,o=i.globals.gridWidth,l=0,h=0;l<e;l++,h++)h>=i.config.grid.row.colors.length&&(h=0),this._drawGridBandRect({c:h,x1:0,y1:a,x2:o,y2:r,type:"row"}),a+=i.globals.gridHeight/e;if(i.config.grid.column.colors!==void 0&&i.config.grid.column.colors.length>0)for(var f=i.globals.isBarHorizontal||i.config.xaxis.tickPlacement!=="on"||i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric?t:t-1,g=i.globals.padHorizontal,p=i.globals.padHorizontal+i.globals.gridWidth/f,x=i.globals.gridHeight,v=0,w=0;v<t;v++,w++)w>=i.config.grid.column.colors.length&&(w=0),this._drawGridBandRect({c:w,x1:g,y1:0,x2:p,y2:x,type:"column"}),g+=i.globals.gridWidth/f}}]),_}(),Ze=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"niceScale",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=arguments.length>4?arguments[4]:void 0,o=this.w,l=Math.abs(e-t);if((i=this._adjustTicksForSmallRange(i,a,l))==="dataPoints"&&(i=o.globals.dataPoints-1),t===Number.MIN_VALUE&&e===0||!R.isNumber(t)&&!R.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)return t=0,e=i,this.linearScale(t,e,i,a,o.config.yaxis[a].stepSize);t>e?(console.warn("axis.min cannot be greater than axis.max"),e=t+.1):t===e&&(t=t===0?0:t-.5,e=e===0?2:e+.5);var h=[];l<1&&r&&(o.config.chart.type==="candlestick"||o.config.series[a].type==="candlestick"||o.config.chart.type==="boxPlot"||o.config.series[a].type==="boxPlot"||o.globals.isRangeData)&&(e*=1.01);var f=i+1;f<2?f=2:f>2&&(f-=2);var g=l/f,p=Math.floor(R.log10(g)),x=Math.pow(10,p),v=Math.round(g/x);v<1&&(v=1);var w=v*x;o.config.yaxis[a].stepSize&&(w=o.config.yaxis[a].stepSize),o.globals.isBarHorizontal&&o.config.xaxis.stepSize&&o.config.xaxis.type!=="datetime"&&(w=o.config.xaxis.stepSize);var A=w*Math.floor(t/w),S=w*Math.ceil(e/w),E=A;if(r&&l>2){for(;h.push(R.stripNumber(E,7)),!((E+=w)>S););return{result:h,niceMin:h[0],niceMax:h[h.length-1]}}var I=t;(h=[]).push(R.stripNumber(I,7));for(var u=Math.abs(e-t)/i,b=0;b<=i;b++)I+=u,h.push(I);return h[h.length-2]>=e&&h.pop(),{result:h,niceMin:h[0],niceMax:h[h.length-1]}}},{key:"linearScale",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,o=Math.abs(e-t);(i=this._adjustTicksForSmallRange(i,a,o))==="dataPoints"&&(i=this.w.globals.dataPoints-1),r||(r=o/i),i===Number.MAX_VALUE&&(i=5,r=1);for(var l=[],h=t;i>=0;)l.push(h),h+=r,i-=1;return{result:l,niceMin:l[0],niceMax:l[l.length-1]}}},{key:"logarithmicScaleNice",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var a=[],r=Math.ceil(Math.log(e)/Math.log(i)+1),o=Math.floor(Math.log(t)/Math.log(i));o<r;o++)a.push(Math.pow(i,o));return{result:a,niceMin:a[0],niceMax:a[a.length-1]}}},{key:"logarithmicScale",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var a=[],r=Math.log(e)/Math.log(i),o=Math.log(t)/Math.log(i),l=r-o,h=Math.round(l),f=l/h,g=0,p=o;g<h;g++,p+=f)a.push(Math.pow(i,p));return a.push(Math.pow(i,r)),{result:a,niceMin:t,niceMax:e}}},{key:"_adjustTicksForSmallRange",value:function(t,e,i){var a=t;if(e!==void 0&&this.w.config.yaxis[e].labels.formatter&&this.w.config.yaxis[e].tickAmount===void 0){var r=Number(this.w.config.yaxis[e].labels.formatter(1));R.isNumber(r)&&this.w.globals.yValueDecimal===0&&(a=Math.ceil(i))}return a<t?a:t}},{key:"setYScaleForIndex",value:function(t,e,i){var a=this.w.globals,r=this.w.config,o=a.isBarHorizontal?r.xaxis:r.yaxis[t];a.yAxisScale[t]===void 0&&(a.yAxisScale[t]=[]);var l=Math.abs(i-e);if(o.logarithmic&&l<=5&&(a.invalidLogScale=!0),o.logarithmic&&l>5)a.allSeriesCollapsed=!1,a.yAxisScale[t]=this.logarithmicScale(e,i,o.logBase),a.yAxisScale[t]=o.forceNiceScale?this.logarithmicScaleNice(e,i,o.logBase):this.logarithmicScale(e,i,o.logBase);else if(i!==-Number.MAX_VALUE&&R.isNumber(i))if(a.allSeriesCollapsed=!1,o.min===void 0&&o.max===void 0||o.forceNiceScale){var h=r.yaxis[t].max===void 0&&r.yaxis[t].min===void 0||r.yaxis[t].forceNiceScale;a.yAxisScale[t]=this.niceScale(e,i,o.tickAmount?o.tickAmount:l<5&&l>1?l+1:5,t,h)}else a.yAxisScale[t]=this.linearScale(e,i,o.tickAmount,t,r.yaxis[t].stepSize);else a.yAxisScale[t]=this.linearScale(0,5,5,t,r.yaxis[t].stepSize)}},{key:"setXScale",value:function(t,e){var i=this.w,a=i.globals,r=Math.abs(e-t);return e!==-Number.MAX_VALUE&&R.isNumber(e)?a.xAxisScale=this.linearScale(t,e,i.config.xaxis.tickAmount?i.config.xaxis.tickAmount:r<5&&r>1?r+1:5,0,i.config.xaxis.stepSize):a.xAxisScale=this.linearScale(0,5,5),a.xAxisScale}},{key:"setMultipleYScales",value:function(){var t=this,e=this.w.globals,i=this.w.config,a=e.minYArr.concat([]),r=e.maxYArr.concat([]),o=[];i.yaxis.forEach(function(l,h){var f=h;i.series.forEach(function(x,v){x.name===l.seriesName&&(f=v,h!==v?o.push({index:v,similarIndex:h,alreadyExists:!0}):o.push({index:v}))});var g=a[f],p=r[f];t.setYScaleForIndex(h,g,p)}),this.sameScaleInMultipleAxes(a,r,o)}},{key:"sameScaleInMultipleAxes",value:function(t,e,i){var a=this,r=this.w.config,o=this.w.globals,l=[];i.forEach(function(A){A.alreadyExists&&(l[A.index]===void 0&&(l[A.index]=[]),l[A.index].push(A.index),l[A.index].push(A.similarIndex))}),o.yAxisSameScaleIndices=l,l.forEach(function(A,S){l.forEach(function(E,I){var u,b;S!==I&&(u=A,b=E,u.filter(function(k){return b.indexOf(k)!==-1})).length>0&&(l[S]=l[S].concat(l[I]))})});var h=l.map(function(A){return A.filter(function(S,E){return A.indexOf(S)===E})}).map(function(A){return A.sort()});l=l.filter(function(A){return!!A});var f=h.slice(),g=f.map(function(A){return JSON.stringify(A)});f=f.filter(function(A,S){return g.indexOf(JSON.stringify(A))===S});var p=[],x=[];t.forEach(function(A,S){f.forEach(function(E,I){E.indexOf(S)>-1&&(p[I]===void 0&&(p[I]=[],x[I]=[]),p[I].push({key:S,value:A}),x[I].push({key:S,value:e[S]}))})});var v=Array.apply(null,Array(f.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),w=Array.apply(null,Array(f.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);p.forEach(function(A,S){A.forEach(function(E,I){v[S]=Math.min(E.value,v[S])})}),x.forEach(function(A,S){A.forEach(function(E,I){w[S]=Math.max(E.value,w[S])})}),t.forEach(function(A,S){x.forEach(function(E,I){var u=v[I],b=w[I];r.chart.stacked&&(b=0,E.forEach(function(k,P){k.value!==-Number.MAX_VALUE&&(b+=k.value),u!==Number.MIN_VALUE&&(u+=p[I][P].value)})),E.forEach(function(k,P){E[P].key===S&&(r.yaxis[S].min!==void 0&&(u=typeof r.yaxis[S].min=="function"?r.yaxis[S].min(o.minY):r.yaxis[S].min),r.yaxis[S].max!==void 0&&(b=typeof r.yaxis[S].max=="function"?r.yaxis[S].max(o.maxY):r.yaxis[S].max),a.setYScaleForIndex(S,u,b))})})})}},{key:"autoScaleY",value:function(t,e,i){t||(t=this);var a=t.w;if(a.globals.isMultipleYAxis||a.globals.collapsedSeries.length)return console.warn("autoScaleYaxis not supported in a multi-yaxis chart."),e;var r=a.globals.seriesX[0],o=a.config.chart.stacked;return e.forEach(function(l,h){for(var f=0,g=0;g<r.length;g++)if(r[g]>=i.xaxis.min){f=g;break}var p,x,v=a.globals.minYArr[h],w=a.globals.maxYArr[h],A=a.globals.stackedSeriesTotals;a.globals.series.forEach(function(S,E){var I=S[f];o?(I=A[f],p=x=I,A.forEach(function(u,b){r[b]<=i.xaxis.max&&r[b]>=i.xaxis.min&&(u>x&&u!==null&&(x=u),S[b]<p&&S[b]!==null&&(p=S[b]))})):(p=x=I,S.forEach(function(u,b){if(r[b]<=i.xaxis.max&&r[b]>=i.xaxis.min){var k=u,P=u;a.globals.series.forEach(function(T,O){u!==null&&(k=Math.min(T[b],k),P=Math.max(T[b],P))}),P>x&&P!==null&&(x=P),k<p&&k!==null&&(p=k)}})),p===void 0&&x===void 0&&(p=v,x=w),x*=x<0?.9:1.1,(p*=p<0?1.1:.9)===0&&x===0&&(p=-1,x=1),x<0&&x<w&&(x=w),p<0&&p>v&&(p=v),e.length>1?(e[E].min=l.min===void 0?p:l.min,e[E].max=l.max===void 0?x:l.max):(e[0].min=l.min===void 0?p:l.min,e[0].max=l.max===void 0?x:l.max)})}),e}}]),_}(),X=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.scales=new Ze(t)}return L(_,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,r=this.w.config,o=this.w.globals,l=-Number.MAX_VALUE,h=Number.MIN_VALUE;a===null&&(a=t+1);var f=o.series,g=f,p=f;r.chart.type==="candlestick"?(g=o.seriesCandleL,p=o.seriesCandleH):r.chart.type==="boxPlot"?(g=o.seriesCandleO,p=o.seriesCandleC):o.isRangeData&&(g=o.seriesRangeStart,p=o.seriesRangeEnd);for(var x=t;x<a;x++){o.dataPoints=Math.max(o.dataPoints,f[x].length),o.categoryLabels.length&&(o.dataPoints=o.categoryLabels.filter(function(A){return A!==void 0}).length),o.labels.length&&r.xaxis.type!=="datetime"&&o.series.reduce(function(A,S){return A+S.length},0)!==0&&(o.dataPoints=Math.max(o.dataPoints,o.labels.length));for(var v=0;v<o.series[x].length;v++){var w=f[x][v];w!==null&&R.isNumber(w)?(p[x][v]!==void 0&&(l=Math.max(l,p[x][v]),e=Math.min(e,p[x][v])),g[x][v]!==void 0&&(e=Math.min(e,g[x][v]),i=Math.max(i,g[x][v])),this.w.config.chart.type!=="candlestick"&&this.w.config.chart.type!=="boxPlot"&&this.w.config.chart.type==="rangeArea"&&this.w.config.chart.type==="rangeBar"||(this.w.config.chart.type!=="candlestick"&&this.w.config.chart.type!=="boxPlot"||o.seriesCandleC[x][v]!==void 0&&(l=Math.max(l,o.seriesCandleO[x][v]),l=Math.max(l,o.seriesCandleH[x][v]),l=Math.max(l,o.seriesCandleL[x][v]),l=Math.max(l,o.seriesCandleC[x][v]),this.w.config.chart.type==="boxPlot"&&(l=Math.max(l,o.seriesCandleM[x][v]))),!r.series[x].type||r.series[x].type==="candlestick"&&r.series[x].type==="boxPlot"&&r.series[x].type==="rangeArea"&&r.series[x].type==="rangeBar"||(l=Math.max(l,o.series[x][v]),e=Math.min(e,o.series[x][v])),i=l),o.seriesGoals[x]&&o.seriesGoals[x][v]&&Array.isArray(o.seriesGoals[x][v])&&o.seriesGoals[x][v].forEach(function(A){h!==Number.MIN_VALUE&&(h=Math.min(h,A.value),e=h),l=Math.max(l,A.value),i=l}),R.isFloat(w)&&(w=R.noExponents(w),o.yValueDecimal=Math.max(o.yValueDecimal,w.toString().split(".")[1].length)),h>g[x][v]&&g[x][v]<0&&(h=g[x][v])):o.hasNullValues=!0}}return r.chart.type==="rangeBar"&&o.seriesRangeStart.length&&o.isBarHorizontal&&(h=e),r.chart.type==="bar"&&(h<0&&l<0&&(l=0),h===Number.MIN_VALUE&&(h=0)),{minY:h,maxY:l,lowestY:e,highestY:i}}},{key:"setYRange",value:function(){var t=this.w.globals,e=this.w.config;t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(t.isMultipleYAxis)for(var a=0;a<t.series.length;a++){var r=this.getMinYMaxY(a,i,null,a+1);t.minYArr.push(r.minY),t.maxYArr.push(r.maxY),i=r.lowestY}var o=this.getMinYMaxY(0,i,null,t.series.length);if(t.minY=o.minY,t.maxY=o.maxY,i=o.lowestY,e.chart.stacked&&this._setStackedMinMax(),(e.chart.type==="line"||e.chart.type==="area"||e.chart.type==="candlestick"||e.chart.type==="boxPlot"||e.chart.type==="rangeBar"&&!t.isBarHorizontal)&&t.minY===Number.MIN_VALUE&&i!==-Number.MAX_VALUE&&i!==t.maxY){var l=t.maxY-i;(i>=0&&i<=10||e.yaxis[0].min!==void 0||e.yaxis[0].max!==void 0)&&(l=0),t.minY=i-5*l/100,i>0&&t.minY<0&&(t.minY=0),t.maxY=t.maxY+5*l/100}return e.yaxis.forEach(function(h,f){h.max!==void 0&&(typeof h.max=="number"?t.maxYArr[f]=h.max:typeof h.max=="function"&&(t.maxYArr[f]=h.max(t.isMultipleYAxis?t.maxYArr[f]:t.maxY)),t.maxY=t.maxYArr[f]),h.min!==void 0&&(typeof h.min=="number"?t.minYArr[f]=h.min:typeof h.min=="function"&&(t.minYArr[f]=h.min(t.isMultipleYAxis?t.minYArr[f]===Number.MIN_VALUE?0:t.minYArr[f]:t.minY)),t.minY=t.minYArr[f])}),t.isBarHorizontal&&["min","max"].forEach(function(h){e.xaxis[h]!==void 0&&typeof e.xaxis[h]=="number"&&(h==="min"?t.minY=e.xaxis[h]:t.maxY=e.xaxis[h])}),t.isMultipleYAxis?(this.scales.setMultipleYScales(),t.minY=i,t.yAxisScale.forEach(function(h,f){t.minYArr[f]=h.niceMin,t.maxYArr[f]=h.niceMax})):(this.scales.setYScaleForIndex(0,t.minY,t.maxY),t.minY=t.yAxisScale[0].niceMin,t.maxY=t.yAxisScale[0].niceMax,t.minYArr[0]=t.yAxisScale[0].niceMin,t.maxYArr[0]=t.yAxisScale[0].niceMax),{minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,yAxisScale:t.yAxisScale}}},{key:"setXRange",value:function(){var t=this.w.globals,e=this.w.config,i=e.xaxis.type==="numeric"||e.xaxis.type==="datetime"||e.xaxis.type==="category"&&!t.noLabelsProvided||t.noLabelsProvided||t.isXNumeric;if(t.isXNumeric&&function(){for(var l=0;l<t.series.length;l++)if(t.labels[l])for(var h=0;h<t.labels[l].length;h++)t.labels[l][h]!==null&&R.isNumber(t.labels[l][h])&&(t.maxX=Math.max(t.maxX,t.labels[l][h]),t.initialMaxX=Math.max(t.maxX,t.labels[l][h]),t.minX=Math.min(t.minX,t.labels[l][h]),t.initialMinX=Math.min(t.minX,t.labels[l][h]))}(),t.noLabelsProvided&&e.xaxis.categories.length===0&&(t.maxX=t.labels[t.labels.length-1],t.initialMaxX=t.labels[t.labels.length-1],t.minX=1,t.initialMinX=1),t.isXNumeric||t.noLabelsProvided||t.dataFormatXNumeric){var a;if(e.xaxis.tickAmount===void 0?(a=Math.round(t.svgWidth/150),e.xaxis.type==="numeric"&&t.dataPoints<30&&(a=t.dataPoints-1),a>t.dataPoints&&t.dataPoints!==0&&(a=t.dataPoints-1)):e.xaxis.tickAmount==="dataPoints"?(t.series.length>1&&(a=t.series[t.maxValsInArrayIndex].length-1),t.isXNumeric&&(a=t.maxX-t.minX-1)):a=e.xaxis.tickAmount,t.xTickAmount=a,e.xaxis.max!==void 0&&typeof e.xaxis.max=="number"&&(t.maxX=e.xaxis.max),e.xaxis.min!==void 0&&typeof e.xaxis.min=="number"&&(t.minX=e.xaxis.min),e.xaxis.range!==void 0&&(t.minX=t.maxX-e.xaxis.range),t.minX!==Number.MAX_VALUE&&t.maxX!==-Number.MAX_VALUE)if(e.xaxis.convertedCatToNumeric&&!t.dataFormatXNumeric){for(var r=[],o=t.minX-1;o<t.maxX;o++)r.push(o+1);t.xAxisScale={result:r,niceMin:r[0],niceMax:r[r.length-1]}}else t.xAxisScale=this.scales.setXScale(t.minX,t.maxX);else t.xAxisScale=this.scales.linearScale(0,a,a,0,e.xaxis.stepSize),t.noLabelsProvided&&t.labels.length>0&&(t.xAxisScale=this.scales.linearScale(1,t.labels.length,a-1,0,e.xaxis.stepSize),t.seriesX=t.labels.slice());i&&(t.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&t.labels.length&&(t.xTickAmount=t.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.maxX}}},{key:"setZRange",value:function(){var t=this.w.globals;if(t.isDataXYZ){for(var e=0;e<t.series.length;e++)if(t.seriesZ[e]!==void 0)for(var i=0;i<t.seriesZ[e].length;i++)t.seriesZ[e][i]!==null&&R.isNumber(t.seriesZ[e][i])&&(t.maxZ=Math.max(t.maxZ,t.seriesZ[e][i]),t.minZ=Math.min(t.minZ,t.seriesZ[e][i]))}}},{key:"_handleSingleDataPoint",value:function(){var t=this.w.globals,e=this.w.config;if(t.minX===t.maxX){var i=new Tt(this.ctx);if(e.xaxis.type==="datetime"){var a=i.getDate(t.minX);e.xaxis.labels.datetimeUTC?a.setUTCDate(a.getUTCDate()-2):a.setDate(a.getDate()-2),t.minX=new Date(a).getTime();var r=i.getDate(t.maxX);e.xaxis.labels.datetimeUTC?r.setUTCDate(r.getUTCDate()+2):r.setDate(r.getDate()+2),t.maxX=new Date(r).getTime()}else(e.xaxis.type==="numeric"||e.xaxis.type==="category"&&!t.noLabelsProvided)&&(t.minX=t.minX-2,t.initialMinX=t.minX,t.maxX=t.maxX+2,t.initialMaxX=t.maxX)}}},{key:"_getMinXDiff",value:function(){var t=this.w.globals;t.isXNumeric&&t.seriesX.forEach(function(e,i){e.length===1&&e.push(t.seriesX[t.maxValsInArrayIndex][t.seriesX[t.maxValsInArrayIndex].length-1]);var a=e.slice();a.sort(function(r,o){return r-o}),a.forEach(function(r,o){if(o>0){var l=r-a[o-1];l>0&&(t.minXDiff=Math.min(l,t.minXDiff))}}),t.dataPoints!==1&&t.minXDiff!==Number.MAX_VALUE||(t.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var t=this,e=this.w.globals;if(e.series.length){var i=e.seriesGroups;i.length||(i=[this.w.config.series.map(function(o){return o.name})]);var a={},r={};i.forEach(function(o){a[o]=[],r[o]=[],t.w.config.series.map(function(l,h){return o.indexOf(l.name)>-1?h:null}).filter(function(l){return l!==null}).forEach(function(l){for(var h=0;h<e.series[e.maxValsInArrayIndex].length;h++){var f,g;a[o][h]===void 0&&(a[o][h]=0,r[o][h]=0),(t.w.config.chart.stacked&&!e.comboCharts||t.w.config.chart.stacked&&e.comboCharts&&(!t.w.config.chart.stackOnlyBar||((f=t.w.config.series)===null||f===void 0||(g=f[l])===null||g===void 0?void 0:g.type)==="bar"))&&e.series[l][h]!==null&&R.isNumber(e.series[l][h])&&(e.series[l][h]>0?a[o][h]+=parseFloat(e.series[l][h])+1e-4:r[o][h]+=parseFloat(e.series[l][h]))}})}),Object.entries(a).forEach(function(o){var l=xt(o,1)[0];a[l].forEach(function(h,f){e.maxY=Math.max(e.maxY,a[l][f]),e.minY=Math.min(e.minY,r[l][f])})})}}}]),_}(),H=function(){function _(t,e){y(this,_),this.ctx=t,this.elgrid=e,this.w=t.w;var i=this.w;this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.axisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=i.config.chart.type==="bar"&&i.config.plotOptions.bar.horizontal,this.xAxisoffX=0,i.config.xaxis.position==="bottom"&&(this.xAxisoffX=i.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new Re(t)}return L(_,[{key:"drawYaxis",value:function(t){var e=this,i=this.w,a=new V(this.ctx),r=i.config.yaxis[t].labels.style,o=r.fontSize,l=r.fontFamily,h=r.fontWeight,f=a.group({class:"apexcharts-yaxis",rel:t,transform:"translate("+i.globals.translateYAxisX[t]+", 0)"});if(this.axesUtils.isYAxisHidden(t))return f;var g=a.group({class:"apexcharts-yaxis-texts-g"});f.add(g);var p=i.globals.yAxisScale[t].result.length-1,x=i.globals.gridHeight/p,v=i.globals.translateY,w=i.globals.yLabelFormatters[t],A=i.globals.yAxisScale[t].result.slice();A=this.axesUtils.checkForReversedLabels(t,A);var S="";if(i.config.yaxis[t].labels.show)for(var E=function(F){var N=A[F];N=w(N,F,i);var B=i.config.yaxis[t].labels.padding;i.config.yaxis[t].opposite&&i.config.yaxis.length!==0&&(B*=-1);var $="end";i.config.yaxis[t].opposite&&($="start"),i.config.yaxis[t].labels.align==="left"?$="start":i.config.yaxis[t].labels.align==="center"?$="middle":i.config.yaxis[t].labels.align==="right"&&($="end");var j=e.axesUtils.getYAxisForeColor(r.colors,t),st=i.config.yaxis[t].labels.offsetY;i.config.chart.type==="heatmap"&&(st-=(i.globals.gridHeight/i.globals.series.length-1)/2);var dt=a.drawText({x:B,y:v+p/10+st+1,text:N,textAnchor:$,fontSize:o,fontFamily:l,fontWeight:h,maxWidth:i.config.yaxis[t].labels.maxWidth,foreColor:Array.isArray(j)?j[F]:j,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+r.cssClass});F===p&&(S=dt),g.add(dt);var mt=document.createElementNS(i.globals.SVGNS,"title");if(mt.textContent=Array.isArray(N)?N.join(" "):N,dt.node.appendChild(mt),i.config.yaxis[t].labels.rotate!==0){var At=a.rotateAroundCenter(S.node),It=a.rotateAroundCenter(dt.node);dt.node.setAttribute("transform","rotate(".concat(i.config.yaxis[t].labels.rotate," ").concat(At.x," ").concat(It.y,")"))}v+=x},I=p;I>=0;I--)E(I);if(i.config.yaxis[t].title.text!==void 0){var u=a.group({class:"apexcharts-yaxis-title"}),b=0;i.config.yaxis[t].opposite&&(b=i.globals.translateYAxisX[t]);var k=a.drawText({x:b,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[t].title.offsetY,text:i.config.yaxis[t].title.text,textAnchor:"end",foreColor:i.config.yaxis[t].title.style.color,fontSize:i.config.yaxis[t].title.style.fontSize,fontWeight:i.config.yaxis[t].title.style.fontWeight,fontFamily:i.config.yaxis[t].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[t].title.style.cssClass});u.add(k),f.add(u)}var P=i.config.yaxis[t].axisBorder,T=31+P.offsetX;if(i.config.yaxis[t].opposite&&(T=-31-P.offsetX),P.show){var O=a.drawLine(T,i.globals.translateY+P.offsetY-2,T,i.globals.gridHeight+i.globals.translateY+P.offsetY+2,P.color,0,P.width);f.add(O)}return i.config.yaxis[t].axisTicks.show&&this.axesUtils.drawYAxisTicks(T,p,P,i.config.yaxis[t].axisTicks,t,x,f),f}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new V(this.ctx),a=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),r=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});a.add(r);var o=e.globals.yAxisScale[t].result.length-1,l=e.globals.gridWidth/o+.1,h=l+e.config.xaxis.labels.offsetX,f=e.globals.xLabelFormatter,g=e.globals.yAxisScale[t].result.slice(),p=e.globals.timescaleLabels;p.length>0&&(this.xaxisLabels=p.slice(),o=(g=p.slice()).length),g=this.axesUtils.checkForReversedLabels(t,g);var x=p.length;if(e.config.xaxis.labels.show)for(var v=x?0:o;x?v<x:v>=0;x?v++:v--){var w=g[v];w=f(w,v,e);var A=e.globals.gridWidth+e.globals.padHorizontal-(h-l+e.config.xaxis.labels.offsetX);if(p.length){var S=this.axesUtils.getLabel(g,p,A,v,this.drawnLabels,this.xaxisFontSize);A=S.x,w=S.text,this.drawnLabels.push(S.text),v===0&&e.globals.skipFirstTimelinelabel&&(w=""),v===g.length-1&&e.globals.skipLastTimelinelabel&&(w="")}var E=i.drawText({x:A,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30-(e.config.xaxis.position==="top"?e.globals.xAxisHeight+e.config.xaxis.axisTicks.height-2:0),text:w,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:e.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+e.config.xaxis.labels.style.cssClass});r.add(E),E.tspan(w);var I=document.createElementNS(e.globals.SVGNS,"title");I.textContent=w,E.node.appendChild(I),h+=l}return this.inversedYAxisTitleText(a),this.inversedYAxisBorder(a),a}},{key:"inversedYAxisBorder",value:function(t){var e=this.w,i=new V(this.ctx),a=e.config.xaxis.axisBorder;if(a.show){var r=0;e.config.chart.type==="bar"&&e.globals.isXNumeric&&(r-=15);var o=i.drawLine(e.globals.padHorizontal+r+a.offsetX,this.xAxisoffX,e.globals.gridWidth,this.xAxisoffX,a.color,0,a.height);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(o):t.add(o)}}},{key:"inversedYAxisTitleText",value:function(t){var e=this.w,i=new V(this.ctx);if(e.config.xaxis.title.text!==void 0){var a=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),r=i.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(e.config.xaxis.title.style.fontSize)+e.config.xaxis.title.offsetY+20,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});a.add(r),t.add(a)}}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,a=new V(this.ctx),r={width:0,height:0},o={width:0,height:0},l=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-texts-g"));l!==null&&(r=l.getBoundingClientRect());var h=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-title text"));if(h!==null&&(o=h.getBoundingClientRect()),h!==null){var f=this.xPaddingForYAxisTitle(t,r,o,e);h.setAttribute("x",f.xPos-(e?10:0))}if(h!==null){var g=a.rotateAroundCenter(h);h.setAttribute("transform","rotate(".concat(e?-1*i.config.yaxis[t].title.rotate:i.config.yaxis[t].title.rotate," ").concat(g.x," ").concat(g.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(t,e,i,a){var r=this.w,o=0,l=0,h=10;return r.config.yaxis[t].title.text===void 0||t<0?{xPos:l,padd:0}:(a?(l=e.width+r.config.yaxis[t].title.offsetX+i.width/2+h/2,(o+=1)===0&&(l-=h/2)):(l=-1*e.width+r.config.yaxis[t].title.offsetX+h/2+i.width/2,r.globals.isBarHorizontal&&(h=25,l=-1*e.width-r.config.yaxis[t].title.offsetX-h)),{xPos:l,padd:h})}},{key:"setYAxisXPosition",value:function(t,e){var i=this.w,a=0,r=0,o=18,l=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map(function(h,f){var g=i.globals.ignoreYAxisIndexes.indexOf(f)>-1||!h.show||h.floating||t[f].width===0,p=t[f].width+e[f].width;h.opposite?i.globals.isBarHorizontal?(r=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[f]=r-h.labels.offsetX):(r=i.globals.gridWidth+i.globals.translateX+l,g||(l=l+p+20),i.globals.translateYAxisX[f]=r-h.labels.offsetX+20):(a=i.globals.translateX-o,g||(o=o+p+20),i.globals.translateYAxisX[f]=a+h.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(e=R.listToArray(e)).forEach(function(i,a){var r=t.config.yaxis[a];if(r&&!r.floating&&r.labels.align!==void 0){var o=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(a,"'] .apexcharts-yaxis-texts-g")),l=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(a,"'] .apexcharts-yaxis-label"));l=R.listToArray(l);var h=o.getBoundingClientRect();r.labels.align==="left"?(l.forEach(function(f,g){f.setAttribute("text-anchor","start")}),r.opposite||o.setAttribute("transform","translate(-".concat(h.width,", 0)"))):r.labels.align==="center"?(l.forEach(function(f,g){f.setAttribute("text-anchor","middle")}),o.setAttribute("transform","translate(".concat(h.width/2*(r.opposite?1:-1),", 0)"))):r.labels.align==="right"&&(l.forEach(function(f,g){f.setAttribute("text-anchor","end")}),r.opposite&&o.setAttribute("transform","translate(".concat(h.width,", 0)")))}})}}]),_}(),U=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.documentEvent=R.bind(this.documentEvent,this)}return L(_,[{key:"addEventListener",value:function(t,e){var i=this.w;i.globals.events.hasOwnProperty(t)?i.globals.events[t].push(e):i.globals.events[t]=[e]}},{key:"removeEventListener",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){var a=i.globals.events[t].indexOf(e);a!==-1&&i.globals.events[t].splice(a,1)}}},{key:"fireEvent",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){e&&e.length||(e=[]);for(var a=i.globals.events[t],r=a.length,o=0;o<r;o++)a[o].apply(null,e)}}},{key:"setupEventHandlers",value:function(){var t=this,e=this.w,i=this.ctx,a=e.globals.dom.baseEl.querySelector(e.globals.chartClass);this.ctx.eventList.forEach(function(r){a.addEventListener(r,function(o){var l=Object.assign({},e,{seriesIndex:e.globals.capturedSeriesIndex,dataPointIndex:e.globals.capturedDataPointIndex});o.type==="mousemove"||o.type==="touchmove"?typeof e.config.chart.events.mouseMove=="function"&&e.config.chart.events.mouseMove(o,i,l):o.type==="mouseleave"||o.type==="touchleave"?typeof e.config.chart.events.mouseLeave=="function"&&e.config.chart.events.mouseLeave(o,i,l):(o.type==="mouseup"&&o.which===1||o.type==="touchend")&&(typeof e.config.chart.events.click=="function"&&e.config.chart.events.click(o,i,l),i.ctx.events.fireEvent("click",[o,i,l]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(r){e.globals.dom.baseEl.addEventListener(r,t.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(t){var e=this.w,i=t.target.className;if(t.type==="click"){var a=e.globals.dom.baseEl.querySelector(".apexcharts-menu");a&&a.classList.contains("apexcharts-menu-open")&&i!=="apexcharts-menu-icon"&&a.classList.remove("apexcharts-menu-open")}e.globals.clientX=t.type==="touchmove"?t.touches[0].clientX:t.clientX,e.globals.clientY=t.type==="touchmove"?t.touches[0].clientY:t.clientY}}]),_}(),Z=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"setCurrentLocaleValues",value:function(t){var e=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(e=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=e.filter(function(r){return r.name===t})[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var a=R.extend(vt,i);this.w.globals.locale=a.options}}]),_}(),K=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"drawAxis",value:function(t,e){var i,a,r=this,o=this.w.globals,l=this.w.config,h=new ze(this.ctx,e),f=new H(this.ctx,e);o.axisCharts&&t!=="radar"&&(o.isBarHorizontal?(a=f.drawYaxisInversed(0),i=h.drawXaxisInversed(0),o.dom.elGraphical.add(i),o.dom.elGraphical.add(a)):(i=h.drawXaxis(),o.dom.elGraphical.add(i),l.yaxis.map(function(g,p){if(o.ignoreYAxisIndexes.indexOf(p)===-1&&(a=f.drawYaxis(p),o.dom.Paper.add(a),r.w.config.grid.position==="back")){var x=o.dom.Paper.children()[1];x.remove(),o.dom.Paper.add(x)}})))}}]),_}(),Q=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new V(this.ctx),i=new ut(this.ctx),a=t.config.xaxis.crosshairs.fill.gradient,r=t.config.xaxis.crosshairs.dropShadow,o=t.config.xaxis.crosshairs.fill.type,l=a.colorFrom,h=a.colorTo,f=a.opacityFrom,g=a.opacityTo,p=a.stops,x=r.enabled,v=r.left,w=r.top,A=r.blur,S=r.color,E=r.opacity,I=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){o==="gradient"&&(I=e.drawGradient("vertical",l,h,f,g,null,p,null));var u=e.drawRect();t.config.xaxis.crosshairs.width===1&&(u=e.drawLine());var b=t.globals.gridHeight;(!R.isNumber(b)||b<0)&&(b=0);var k=t.config.xaxis.crosshairs.width;(!R.isNumber(k)||k<0)&&(k=0),u.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:b,width:k,height:b,fill:I,filter:"none","fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),x&&(u=i.dropShadow(u,{left:v,top:w,blur:A,color:S,opacity:E})),t.globals.dom.elGraphical.add(u)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new V(this.ctx),i=t.config.yaxis[0].crosshairs,a=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){var r=e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);r.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(r)}var o=e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,0,0);o.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(o)}}]),_}(),rt=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"checkResponsiveConfig",value:function(t){var e=this,i=this.w,a=i.config;if(a.responsive.length!==0){var r=a.responsive.slice();r.sort(function(f,g){return f.breakpoint>g.breakpoint?1:g.breakpoint>f.breakpoint?-1:0}).reverse();var o=new Le({}),l=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=r[0].breakpoint,p=window.innerWidth>0?window.innerWidth:screen.width;if(p>g){var x=it.extendArrayProps(o,i.globals.initialConfig,i);f=R.extend(x,f),f=R.extend(i.config,f),e.overrideResponsiveOptions(f)}else for(var v=0;v<r.length;v++)p<r[v].breakpoint&&(f=it.extendArrayProps(o,r[v].options,i),f=R.extend(i.config,f),e.overrideResponsiveOptions(f))};if(t){var h=it.extendArrayProps(o,t,i);h=R.extend(i.config,h),l(h=R.extend(h,t))}else l({})}}},{key:"overrideResponsiveOptions",value:function(t){var e=new Le(t).init({responsiveOverride:!0});this.w.config=e}}]),_}(),tt=function(){function _(t){y(this,_),this.ctx=t,this.colors=[],this.w=t.w;var e=this.w;this.isColorFn=!1,this.isHeatmapDistributed=e.config.chart.type==="treemap"&&e.config.plotOptions.treemap.distributed||e.config.chart.type==="heatmap"&&e.config.plotOptions.heatmap.distributed,this.isBarDistributed=e.config.plotOptions.bar.distributed&&(e.config.chart.type==="bar"||e.config.chart.type==="rangeBar")}return L(_,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var t,e=this,i=this.w,a=new R;if(i.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(i.config.theme.mode)),i.config.colors===void 0||((t=i.config.colors)===null||t===void 0?void 0:t.length)===0?i.globals.colors=this.predefined():(i.globals.colors=i.config.colors,Array.isArray(i.config.colors)&&i.config.colors.length>0&&typeof i.config.colors[0]=="function"&&(i.globals.colors=i.config.series.map(function(w,A){var S=i.config.colors[A];return S||(S=i.config.colors[0]),typeof S=="function"?(e.isColorFn=!0,S({value:i.globals.axisCharts?i.globals.series[A][0]?i.globals.series[A][0]:0:i.globals.series[A],seriesIndex:A,dataPointIndex:A,w:i})):S}))),i.globals.seriesColors.map(function(w,A){w&&(i.globals.colors[A]=w)}),i.config.theme.monochrome.enabled){var r=[],o=i.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(o=i.globals.series[0].length*i.globals.series.length);for(var l=i.config.theme.monochrome.color,h=1/(o/i.config.theme.monochrome.shadeIntensity),f=i.config.theme.monochrome.shadeTo,g=0,p=0;p<o;p++){var x=void 0;f==="dark"?(x=a.shadeColor(-1*g,l),g+=h):(x=a.shadeColor(g,l),g+=h),r.push(x)}i.globals.colors=r.slice()}var v=i.globals.colors.slice();this.pushExtraColors(i.globals.colors),["fill","stroke"].forEach(function(w){i.config[w].colors===void 0?i.globals[w].colors=e.isColorFn?i.config.colors:v:i.globals[w].colors=i.config[w].colors.slice(),e.pushExtraColors(i.globals[w].colors)}),i.config.dataLabels.style.colors===void 0?i.globals.dataLabels.style.colors=v:i.globals.dataLabels.style.colors=i.config.dataLabels.style.colors.slice(),this.pushExtraColors(i.globals.dataLabels.style.colors,50),i.config.plotOptions.radar.polygons.fill.colors===void 0?i.globals.radarPolygons.fill.colors=[i.config.theme.mode==="dark"?"#424242":"none"]:i.globals.radarPolygons.fill.colors=i.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(i.globals.radarPolygons.fill.colors,20),i.config.markers.colors===void 0?i.globals.markers.colors=v:i.globals.markers.colors=i.config.markers.colors.slice(),this.pushExtraColors(i.globals.markers.colors)}},{key:"pushExtraColors",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=this.w,r=e||a.globals.series.length;if(i===null&&(i=this.isBarDistributed||this.isHeatmapDistributed||a.config.chart.type==="heatmap"&&a.config.plotOptions.heatmap.colorScale.inverse),i&&a.globals.series.length&&(r=a.globals.series[a.globals.maxValsInArrayIndex].length*a.globals.series.length),t.length<r)for(var o=r-t.length,l=0;l<o;l++)t.push(t[l])}},{key:"updateThemeOptions",value:function(t){t.chart=t.chart||{},t.tooltip=t.tooltip||{};var e=t.theme.mode||"light",i=t.theme.palette?t.theme.palette:e==="dark"?"palette4":"palette1",a=t.chart.foreColor?t.chart.foreColor:e==="dark"?"#f6f7f8":"#373d3f";return t.tooltip.theme=e,t.chart.foreColor=a,t.theme.palette=i,t}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"]}return this.colors}}]),_}(),at=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(t){var e=this.w,i=t==="title"?e.config.title:e.config.subtitle,a=e.globals.svgWidth/2,r=i.offsetY,o="middle";if(i.align==="left"?(a=10,o="start"):i.align==="right"&&(a=e.globals.svgWidth-10,o="end"),a+=i.offsetX,r=r+parseInt(i.style.fontSize,10)+i.margin/2,i.text!==void 0){var l=new V(this.ctx).drawText({x:a,y:r,text:i.text,textAnchor:o,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});l.node.setAttribute("class","apexcharts-".concat(t,"-text")),e.globals.dom.Paper.add(l)}}}]),_}(),J=function(){function _(t){y(this,_),this.w=t.w,this.dCtx=t}return L(_,[{key:"getTitleSubtitleCoords",value:function(t){var e=this.w,i=0,a=0,r=t==="title"?e.config.title.floating:e.config.subtitle.floating,o=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(t,"-text"));if(o!==null&&!r){var l=o.getBoundingClientRect();i=l.width,a=e.globals.axisCharts?l.height+5:l.height}return{width:i,height:a}}},{key:"getLegendsRect",value:function(){var t=this.w,e=t.globals.dom.elLegendWrap;t.config.legend.height||t.config.legend.position!=="top"&&t.config.legend.position!=="bottom"||(e.style.maxHeight=t.globals.svgHeight/2+"px");var i=Object.assign({},R.getBoundingClientRect(e));return e!==null&&!t.config.legend.floating&&t.config.legend.show?this.dCtx.lgRect={x:i.x,y:i.y,height:i.height,width:i.height===0?0:i.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},t.config.legend.position!=="left"&&t.config.legend.position!=="right"||1.5*this.dCtx.lgRect.width>t.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(t,e){var i=t;if(this.w.globals.isMultiLineX){var a=e.map(function(o,l){return Array.isArray(o)?o.length:1}),r=Math.max.apply(Math,nt(a));i=e[a.indexOf(r)]}return i}}]),_}(),ot=function(){function _(t){y(this,_),this.w=t.w,this.dCtx=t}return L(_,[{key:"getxAxisLabelsCoords",value:function(){var t,e=this.w,i=e.globals.labels.slice();if(e.config.xaxis.convertedCatToNumeric&&i.length===0&&(i=e.globals.categoryLabels),e.globals.timescaleLabels.length>0){var a=this.getxAxisTimeScaleLabelsCoords();t={width:a.width,height:a.height},e.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=e.config.legend.position!=="left"&&e.config.legend.position!=="right"||e.config.legend.floating?0:this.dCtx.lgRect.width;var r=e.globals.xLabelFormatter,o=R.getLargestStringFromArr(i),l=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,i);e.globals.isBarHorizontal&&(l=o=e.globals.yAxisScale[0].result.reduce(function(w,A){return w.length>A.length?w:A},0));var h=new Pe(this.dCtx.ctx),f=o;o=h.xLabelFormat(r,o,f,{i:void 0,dateFormatter:new Tt(this.dCtx.ctx).formatDate,w:e}),l=h.xLabelFormat(r,l,f,{i:void 0,dateFormatter:new Tt(this.dCtx.ctx).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&o===void 0||String(o).trim()==="")&&(l=o="1");var g=new V(this.dCtx.ctx),p=g.getTextRects(o,e.config.xaxis.labels.style.fontSize),x=p;if(o!==l&&(x=g.getTextRects(l,e.config.xaxis.labels.style.fontSize)),(t={width:p.width>=x.width?p.width:x.width,height:p.height>=x.height?p.height:x.height}).width*i.length>e.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&e.config.xaxis.labels.rotate!==0||e.config.xaxis.labels.rotateAlways){if(!e.globals.isBarHorizontal){e.globals.rotateXLabels=!0;var v=function(w){return g.getTextRects(w,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,"rotate(".concat(e.config.xaxis.labels.rotate," 0 0)"),!1)};p=v(o),o!==l&&(x=v(l)),t.height=(p.height>x.height?p.height:x.height)/1.5,t.width=p.width>x.width?p.width:x.width}}else e.globals.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var t,e=this.w;if(!e.globals.hasXaxisGroups)return{width:0,height:0};var i,a=((t=e.config.xaxis.group.style)===null||t===void 0?void 0:t.fontSize)||e.config.xaxis.labels.style.fontSize,r=e.globals.groups.map(function(p){return p.title}),o=R.getLargestStringFromArr(r),l=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,r),h=new V(this.dCtx.ctx),f=h.getTextRects(o,a),g=f;return o!==l&&(g=h.getTextRects(l,a)),i={width:f.width>=g.width?f.width:g.width,height:f.height>=g.height?f.height:g.height},e.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;if(t.config.xaxis.title.text!==void 0){var a=new V(this.dCtx.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=a.width,i=a.height}return{width:e,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var t,e=this.w;this.dCtx.timescaleLabels=e.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map(function(r){return r.value}),a=i.reduce(function(r,o){return r===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):r.length>o.length?r:o},0);return 1.05*(t=new V(this.dCtx.ctx).getTextRects(a,e.config.xaxis.labels.style.fontSize)).width*i.length>e.globals.gridWidth&&e.config.xaxis.labels.rotate!==0&&(e.globals.overlappingXLabels=!0),t}},{key:"additionalPaddingXLabels",value:function(t){var e=this,i=this.w,a=i.globals,r=i.config,o=r.xaxis.type,l=t.width;a.skipLastTimelinelabel=!1,a.skipFirstTimelinelabel=!1;var h=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,f=function(g,p){r.yaxis.length>1&&function(x){return a.collapsedSeriesIndices.indexOf(x)!==-1}(p)||function(x){if(e.dCtx.timescaleLabels&&e.dCtx.timescaleLabels.length){var v=e.dCtx.timescaleLabels[0],w=e.dCtx.timescaleLabels[e.dCtx.timescaleLabels.length-1].position+l/1.75-e.dCtx.yAxisWidthRight,A=v.position-l/1.75+e.dCtx.yAxisWidthLeft,S=i.config.legend.position==="right"&&e.dCtx.lgRect.width>0?e.dCtx.lgRect.width:0;w>a.svgWidth-a.translateX-S&&(a.skipLastTimelinelabel=!0),A<-(x.show&&!x.floating||r.chart.type!=="bar"&&r.chart.type!=="candlestick"&&r.chart.type!=="rangeBar"&&r.chart.type!=="boxPlot"?10:l/1.75)&&(a.skipFirstTimelinelabel=!0)}else o==="datetime"?e.dCtx.gridPad.right<l&&!a.rotateXLabels&&(a.skipLastTimelinelabel=!0):o!=="datetime"&&e.dCtx.gridPad.right<l/2-e.dCtx.yAxisWidthRight&&!a.rotateXLabels&&!i.config.xaxis.labels.trim&&(i.config.xaxis.tickPlacement!=="between"||i.globals.isBarHorizontal)&&(e.dCtx.xPadRight=l/2+1)}(g)};r.yaxis.forEach(function(g,p){h?(e.dCtx.gridPad.left<l&&(e.dCtx.xPadLeft=l/2+1),e.dCtx.xPadRight=l/2+1):f(g,p)})}}]),_}(),bt=function(){function _(t){y(this,_),this.w=t.w,this.dCtx=t}return L(_,[{key:"getyAxisLabelsCoords",value:function(){var t=this,e=this.w,i=[],a=10,r=new Re(this.dCtx.ctx);return e.config.yaxis.map(function(o,l){var h={seriesIndex:l,dataPointIndex:-1,w:e},f=e.globals.yAxisScale[l],g=0;if(!r.isYAxisHidden(l)&&o.labels.show&&o.labels.minWidth!==void 0&&(g=o.labels.minWidth),!r.isYAxisHidden(l)&&o.labels.show&&f.result.length){var p=e.globals.yLabelFormatters[l],x=f.niceMin===Number.MIN_VALUE?0:f.niceMin,v=f.result.reduce(function(b,k){var P,T;return((P=String(p(b,h)))===null||P===void 0?void 0:P.length)>((T=String(p(k,h)))===null||T===void 0?void 0:T.length)?b:k},x),w=v=p(v,h);if(v!==void 0&&v.length!==0||(v=f.niceMax),e.globals.isBarHorizontal){a=0;var A=e.globals.labels.slice();v=R.getLargestStringFromArr(A),v=p(v,{seriesIndex:l,dataPointIndex:-1,w:e}),w=t.dCtx.dimHelpers.getLargestStringFromMultiArr(v,A)}var S=new V(t.dCtx.ctx),E="rotate(".concat(o.labels.rotate," 0 0)"),I=S.getTextRects(v,o.labels.style.fontSize,o.labels.style.fontFamily,E,!1),u=I;v!==w&&(u=S.getTextRects(w,o.labels.style.fontSize,o.labels.style.fontFamily,E,!1)),i.push({width:(g>u.width||g>I.width?g:u.width>I.width?u.width:I.width)+a,height:u.height>I.height?u.height:I.height})}else i.push({width:0,height:0})}),i}},{key:"getyAxisTitleCoords",value:function(){var t=this,e=this.w,i=[];return e.config.yaxis.map(function(a,r){if(a.show&&a.title.text!==void 0){var o=new V(t.dCtx.ctx),l="rotate(".concat(a.title.rotate," 0 0)"),h=o.getTextRects(a.title.text,a.title.style.fontSize,a.title.style.fontFamily,l,!1);i.push({width:h.width,height:h.height})}else i.push({width:0,height:0})}),i}},{key:"getTotalYAxisWidth",value:function(){var t=this.w,e=0,i=0,a=0,r=t.globals.yAxisScale.length>1?10:0,o=new Re(this.dCtx.ctx),l=function(h,f){var g=t.config.yaxis[f].floating,p=0;h.width>0&&!g?(p=h.width+r,function(x){return t.globals.ignoreYAxisIndexes.indexOf(x)>-1}(f)&&(p=p-h.width-r)):p=g||o.isYAxisHidden(f)?0:5,t.config.yaxis[f].opposite?a+=p:i+=p,e+=p};return t.globals.yLabelsCoords.map(function(h,f){l(h,f)}),t.globals.yTitleCoords.map(function(h,f){l(h,f)}),t.globals.isBarHorizontal&&!t.config.yaxis[0].floating&&(e=t.globals.yLabelsCoords[0].width+t.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=a,e}}]),_}(),pt=function(){function _(t){y(this,_),this.w=t.w,this.dCtx=t}return L(_,[{key:"gridPadForColumnsInNumericAxis",value:function(t){var e=this.w;if(e.globals.noData||e.globals.allSeriesCollapsed)return 0;var i=function(g){return g==="bar"||g==="rangeBar"||g==="candlestick"||g==="boxPlot"},a=e.config.chart.type,r=0,o=i(a)?e.config.series.length:1;if(e.globals.comboBarCount>0&&(o=e.globals.comboBarCount),e.globals.collapsedSeries.forEach(function(g){i(g.type)&&(o-=1)}),e.config.chart.stacked&&(o=1),(i(a)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&o>0){var l,h,f=Math.abs(e.globals.initialMaxX-e.globals.initialMinX);f<=3&&(f=e.globals.dataPoints),l=f/t,e.globals.minXDiff&&e.globals.minXDiff/l>0&&(h=e.globals.minXDiff/l),h>t/2&&(h/=2),(r=h/o*parseInt(e.config.plotOptions.bar.columnWidth,10)/100)<1&&(r=1),r=r/(o>1?1:1.5)+5,e.globals.barPadForNumericAxis=r}return r}},{key:"gridPadFortitleSubtitle",value:function(){var t=this,e=this.w,i=e.globals,a=this.dCtx.isSparkline||!e.globals.axisCharts?0:10;["title","subtitle"].forEach(function(l){e.config[l].text!==void 0?a+=e.config[l].margin:a+=t.dCtx.isSparkline||!e.globals.axisCharts?0:5}),!e.config.legend.show||e.config.legend.position!=="bottom"||e.config.legend.floating||e.globals.axisCharts||(a+=10);var r=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),o=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-r.height-o.height-a,i.translateY=i.translateY+r.height+o.height+a}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w,a=new Re(this.dCtx.ctx);i.config.yaxis.map(function(r,o){i.globals.ignoreYAxisIndexes.indexOf(o)!==-1||r.floating||a.isYAxisHidden(o)||(r.opposite&&(i.globals.translateX=i.globals.translateX-(e[o].width+t[o].width)-parseInt(i.config.yaxis[o].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))})}}]),_}(),wt=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new J(this),this.dimYAxis=new bt(this),this.dimXAxis=new ot(this),this.dimGrid=new pt(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return L(_,[{key:"plotCoords",value:function(){var t=this,e=this.w,i=e.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&((e.config.markers.discrete.length>0||e.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(r){var o=xt(r,2),l=o[0],h=o[1];t.gridPad[l]=Math.max(h,t.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(e.config.stroke.width/2,this.gridPad.top),this.gridPad.bottom=Math.max(e.config.stroke.width/2,this.gridPad.bottom)),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var a=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*a,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(a>0?a+4:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var t=this,e=this.w,i=e.globals,a=this.dimYAxis.getyAxisLabelsCoords(),r=this.dimYAxis.getyAxisTitleCoords();e.globals.yLabelsCoords=[],e.globals.yTitleCoords=[],e.config.yaxis.map(function(v,w){e.globals.yLabelsCoords.push({width:a[w].width,index:w}),e.globals.yTitleCoords.push({width:r[w].width,index:w})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var o=this.dimXAxis.getxAxisLabelsCoords(),l=this.dimXAxis.getxAxisGroupLabelsCoords(),h=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(o,h,l),i.translateXAxisY=e.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=e.globals.rotateXLabels&&e.globals.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,e.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(e.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+e.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+e.config.xaxis.labels.offsetX;var f=this.yAxisWidth,g=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-h.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-o.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var p=10;(e.config.chart.type==="radar"||this.isSparkline)&&(f=0,g=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||e.config.chart.type==="treemap")&&(f=0,g=0,p=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(o);var x=function(){i.translateX=f,i.gridHeight=i.svgHeight-t.lgRect.height-g-(t.isSparkline||e.config.chart.type==="treemap"?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-f};switch(e.config.xaxis.position==="top"&&(p=i.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case"bottom":i.translateY=p,x();break;case"top":i.translateY=this.lgRect.height+p,x();break;case"left":i.translateY=p,i.translateX=this.lgRect.width+f,i.gridHeight=i.svgHeight-g-12,i.gridWidth=i.svgWidth-this.lgRect.width-f;break;case"right":i.translateY=p,i.translateX=f,i.gridHeight=i.svgHeight-g-12,i.gridWidth=i.svgWidth-this.lgRect.width-f-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(r,a),new H(this.ctx).setYAxisXPosition(a,r)}},{key:"setDimensionsForNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=t.config,a=0;t.config.legend.show&&!t.config.legend.floating&&(a=20);var r=i.chart.type==="pie"||i.chart.type==="polarArea"||i.chart.type==="donut"?"pie":"radialBar",o=i.plotOptions[r].offsetY,l=i.plotOptions[r].offsetX;if(!i.legend.show||i.legend.floating)return e.gridHeight=e.svgHeight-i.grid.padding.left+i.grid.padding.right,e.gridWidth=e.gridHeight,e.translateY=o,void(e.translateX=l+(e.svgWidth-e.gridWidth)/2);switch(i.legend.position){case"bottom":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=o-10,e.translateX=l+(e.svgWidth-e.gridWidth)/2;break;case"top":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=this.lgRect.height+o+10,e.translateX=l+(e.svgWidth-e.gridWidth)/2;break;case"left":e.gridWidth=e.svgWidth-this.lgRect.width-a,e.gridHeight=i.chart.height!=="auto"?e.svgHeight:e.gridWidth,e.translateY=o,e.translateX=l+this.lgRect.width+a;break;case"right":e.gridWidth=e.svgWidth-this.lgRect.width-a-5,e.gridHeight=i.chart.height!=="auto"?e.svgHeight:e.gridWidth,e.translateY=o,e.translateX=l+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(t,e,i){var a=this.w,r=a.globals.hasXaxisGroups?2:1,o=i.height+t.height+e.height,l=a.globals.isMultiLineX?1.2:a.globals.LINE_HEIGHT_RATIO,h=a.globals.rotateXLabels?22:10,f=a.globals.rotateXLabels&&a.config.legend.position==="bottom"?10:0;this.xAxisHeight=o*l+r*h+f,this.xAxisWidth=t.width,this.xAxisHeight-e.height>a.config.xaxis.labels.maxHeight&&(this.xAxisHeight=a.config.xaxis.labels.maxHeight),a.config.xaxis.labels.minHeight&&this.xAxisHeight<a.config.xaxis.labels.minHeight&&(this.xAxisHeight=a.config.xaxis.labels.minHeight),a.config.xaxis.floating&&(this.xAxisHeight=0);var g=0,p=0;a.config.yaxis.forEach(function(x){g+=x.labels.minWidth,p+=x.labels.maxWidth}),this.yAxisWidth<g&&(this.yAxisWidth=g),this.yAxisWidth>p&&(this.yAxisWidth=p)}}]),_}(),_t=function(){function _(t){y(this,_),this.w=t.w,this.lgCtx=t}return L(_,[{key:"getLegendStyles",value:function(){var t,e,i,a=document.createElement("style");a.setAttribute("type","text/css");var r=((t=this.lgCtx.ctx)===null||t===void 0||(e=t.opts)===null||e===void 0||(i=e.chart)===null||i===void 0?void 0:i.nonce)||this.w.config.chart.nonce;r&&a.setAttribute("nonce",r);var o=document.createTextNode(`
.apexcharts-legend {
display: flex;
overflow: auto;
padding: 0 10px;
}
.apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {
flex-wrap: wrap
}
.apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
flex-direction: column;
bottom: 0;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
justify-content: flex-start;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {
justify-content: center;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {
justify-content: flex-end;
}
.apexcharts-legend-series {
cursor: pointer;
line-height: normal;
}
.apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{
display: flex;
align-items: center;
}
.apexcharts-legend-text {
position: relative;
font-size: 14px;
}
.apexcharts-legend-text *, .apexcharts-legend-marker * {
pointer-events: none;
}
.apexcharts-legend-marker {
position: relative;
display: inline-block;
cursor: pointer;
margin-right: 3px;
border-style: solid;
}
.apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{
display: inline-block;
}
.apexcharts-legend-series.apexcharts-no-click {
cursor: auto;
}
.apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {
display: none !important;
}
.apexcharts-inactive-legend {
opacity: 0.45;
}`);return a.appendChild(o),a}},{key:"getLegendBBox",value:function(){var t=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),e=t.width;return{clwh:t.height,clww:e}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(t,e){var i=this,a=this.w;if(a.globals.axisCharts||a.config.chart.type==="radialBar"){a.globals.resized=!0;var r=null,o=null;a.globals.risingSeries=[],a.globals.axisCharts?(r=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),o=parseInt(r.getAttribute("data:realIndex"),10)):(r=a.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),o=parseInt(r.getAttribute("rel"),10)-1),e?[{cs:a.globals.collapsedSeries,csi:a.globals.collapsedSeriesIndices},{cs:a.globals.ancillaryCollapsedSeries,csi:a.globals.ancillaryCollapsedSeriesIndices}].forEach(function(g){i.riseCollapsedSeries(g.cs,g.csi,o)}):this.hideSeries({seriesEl:r,realIndex:o})}else{var l=a.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(t+1,"'] path")),h=a.config.chart.type;if(h==="pie"||h==="polarArea"||h==="donut"){var f=a.config.plotOptions.pie.donut.labels;new V(this.lgCtx.ctx).pathMouseDown(l.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(l.members[0].node,f)}l.fire("click")}}},{key:"hideSeries",value:function(t){var e=t.seriesEl,i=t.realIndex,a=this.w,r=R.clone(a.config.series);if(a.globals.axisCharts){var o=!1;if(a.config.yaxis[i]&&a.config.yaxis[i].show&&a.config.yaxis[i].showAlways&&(o=!0,a.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(a.globals.ancillaryCollapsedSeries.push({index:i,data:r[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),a.globals.ancillaryCollapsedSeriesIndices.push(i))),!o){a.globals.collapsedSeries.push({index:i,data:r[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),a.globals.collapsedSeriesIndices.push(i);var l=a.globals.risingSeries.indexOf(i);a.globals.risingSeries.splice(l,1)}}else a.globals.collapsedSeries.push({index:i,data:r[i]}),a.globals.collapsedSeriesIndices.push(i);for(var h=e.childNodes,f=0;f<h.length;f++)h[f].classList.contains("apexcharts-series-markers-wrap")&&(h[f].classList.contains("apexcharts-hide")?h[f].classList.remove("apexcharts-hide"):h[f].classList.add("apexcharts-hide"));a.globals.allSeriesCollapsed=a.globals.collapsedSeries.length===a.config.series.length,r=this._getSeriesBasedOnCollapsedState(r),this.lgCtx.ctx.updateHelpers._updateSeries(r,a.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(t,e,i){var a=this.w,r=R.clone(a.config.series);if(t.length>0){for(var o=0;o<t.length;o++)t[o].index===i&&(a.globals.axisCharts?(r[i].data=t[o].data.slice(),t.splice(o,1),e.splice(o,1),a.globals.risingSeries.push(i)):(r[i]=t[o].data,t.splice(o,1),e.splice(o,1),a.globals.risingSeries.push(i)));r=this._getSeriesBasedOnCollapsedState(r),this.lgCtx.ctx.updateHelpers._updateSeries(r,a.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(t){var e=this.w;return e.globals.axisCharts?t.forEach(function(i,a){e.globals.collapsedSeriesIndices.indexOf(a)>-1&&(t[a].data=[])}):t.forEach(function(i,a){e.globals.collapsedSeriesIndices.indexOf(a)>-1&&(t[a]=0)}),t}}]),_}(),Ht=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type==="bar"&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new _t(this)}return L(_,[{key:"init",value:function(){var t=this.w,e=t.globals,i=t.config;if((i.legend.showForSingleSeries&&e.series.length===1||this.isBarsDistributed||e.series.length>1||!e.axisCharts)&&i.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(),R.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),i.legend.position==="bottom"||i.legend.position==="top"?this.legendAlignHorizontal():i.legend.position!=="right"&&i.legend.position!=="left"||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var t=this,e=this.w,i=e.config.legend.fontFamily,a=e.globals.seriesNames,r=e.globals.colors.slice();if(e.config.chart.type==="heatmap"){var o=e.config.plotOptions.heatmap.colorScale.ranges;a=o.map(function(j){return j.name?j.name:j.from+" - "+j.to}),r=o.map(function(j){return j.color})}else this.isBarsDistributed&&(a=e.globals.labels.slice());e.config.legend.customLegendItems.length&&(a=e.config.legend.customLegendItems);for(var l=e.globals.legendFormatter,h=e.config.legend.inverseOrder,f=h?a.length-1:0;h?f>=0:f<=a.length-1;h?f--:f++){var g,p=l(a[f],{seriesIndex:f,w:e}),x=!1,v=!1;if(e.globals.collapsedSeries.length>0)for(var w=0;w<e.globals.collapsedSeries.length;w++)e.globals.collapsedSeries[w].index===f&&(x=!0);if(e.globals.ancillaryCollapsedSeriesIndices.length>0)for(var A=0;A<e.globals.ancillaryCollapsedSeriesIndices.length;A++)e.globals.ancillaryCollapsedSeriesIndices[A]===f&&(v=!0);var S=document.createElement("span");S.classList.add("apexcharts-legend-marker");var E=e.config.legend.markers.offsetX,I=e.config.legend.markers.offsetY,u=e.config.legend.markers.height,b=e.config.legend.markers.width,k=e.config.legend.markers.strokeWidth,P=e.config.legend.markers.strokeColor,T=e.config.legend.markers.radius,O=S.style;O.background=r[f],O.color=r[f],O.setProperty("background",r[f],"important"),e.config.legend.markers.fillColors&&e.config.legend.markers.fillColors[f]&&(O.background=e.config.legend.markers.fillColors[f]),e.globals.seriesColors[f]!==void 0&&(O.background=e.globals.seriesColors[f],O.color=e.globals.seriesColors[f]),O.height=Array.isArray(u)?parseFloat(u[f])+"px":parseFloat(u)+"px",O.width=Array.isArray(b)?parseFloat(b[f])+"px":parseFloat(b)+"px",O.left=(Array.isArray(E)?parseFloat(E[f]):parseFloat(E))+"px",O.top=(Array.isArray(I)?parseFloat(I[f]):parseFloat(I))+"px",O.borderWidth=Array.isArray(k)?k[f]:k,O.borderColor=Array.isArray(P)?P[f]:P,O.borderRadius=Array.isArray(T)?parseFloat(T[f])+"px":parseFloat(T)+"px",e.config.legend.markers.customHTML&&(Array.isArray(e.config.legend.markers.customHTML)?e.config.legend.markers.customHTML[f]&&(S.innerHTML=e.config.legend.markers.customHTML[f]()):S.innerHTML=e.config.legend.markers.customHTML()),V.setAttrs(S,{rel:f+1,"data:collapsed":x||v}),(x||v)&&S.classList.add("apexcharts-inactive-legend");var F=document.createElement("div"),N=document.createElement("span");N.classList.add("apexcharts-legend-text"),N.innerHTML=Array.isArray(p)?p.join(" "):p;var B=e.config.legend.labels.useSeriesColors?e.globals.colors[f]:Array.isArray(e.config.legend.labels.colors)?(g=e.config.legend.labels.colors)===null||g===void 0?void 0:g[f]:e.config.legend.labels.colors;B||(B=e.config.chart.foreColor),N.style.color=B,N.style.fontSize=parseFloat(e.config.legend.fontSize)+"px",N.style.fontWeight=e.config.legend.fontWeight,N.style.fontFamily=i||e.config.chart.fontFamily,V.setAttrs(N,{rel:f+1,i:f,"data:default-text":encodeURIComponent(p),"data:collapsed":x||v}),F.appendChild(S),F.appendChild(N);var $=new it(this.ctx);e.config.legend.showForZeroSeries||$.getSeriesTotalByIndex(f)===0&&$.seriesHaveSameValues(f)&&!$.isSeriesNull(f)&&e.globals.collapsedSeriesIndices.indexOf(f)===-1&&e.globals.ancillaryCollapsedSeriesIndices.indexOf(f)===-1&&F.classList.add("apexcharts-hidden-zero-series"),e.config.legend.showForNullSeries||$.isSeriesNull(f)&&e.globals.collapsedSeriesIndices.indexOf(f)===-1&&e.globals.ancillaryCollapsedSeriesIndices.indexOf(f)===-1&&F.classList.add("apexcharts-hidden-null-series"),e.globals.dom.elLegendWrap.appendChild(F),e.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(e.config.legend.horizontalAlign)),e.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+e.config.legend.position),F.classList.add("apexcharts-legend-series"),F.style.margin="".concat(e.config.legend.itemMargin.vertical,"px ").concat(e.config.legend.itemMargin.horizontal,"px"),e.globals.dom.elLegendWrap.style.width=e.config.legend.width?e.config.legend.width+"px":"",e.globals.dom.elLegendWrap.style.height=e.config.legend.height?e.config.legend.height+"px":"",V.setAttrs(F,{rel:f+1,seriesName:R.escapeString(a[f]),"data:collapsed":x||v}),(x||v)&&F.classList.add("apexcharts-inactive-legend"),e.config.legend.onItemClick.toggleDataSeries||F.classList.add("apexcharts-no-click")}e.globals.dom.elWrap.addEventListener("click",t.onLegendClick,!0),e.config.legend.onItemHover.highlightDataSeries&&e.config.legend.customLegendItems.length===0&&(e.globals.dom.elWrap.addEventListener("mousemove",t.onLegendHovered,!0),e.globals.dom.elWrap.addEventListener("mouseout",t.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(t,e){var i=this.w,a=i.globals.dom.elLegendWrap,r=a.getBoundingClientRect(),o=0,l=0;if(i.config.legend.position==="bottom")l+=i.globals.svgHeight-r.height/2;else if(i.config.legend.position==="top"){var h=new wt(this.ctx),f=h.dimHelpers.getTitleSubtitleCoords("title").height,g=h.dimHelpers.getTitleSubtitleCoords("subtitle").height;l=l+(f>0?f-10:0)+(g>0?g-10:0)}a.style.position="absolute",o=o+t+i.config.legend.offsetX,l=l+e+i.config.legend.offsetY,a.style.left=o+"px",a.style.top=l+"px",i.config.legend.position==="bottom"?(a.style.top="auto",a.style.bottom=5-i.config.legend.offsetY+"px"):i.config.legend.position==="right"&&(a.style.left="auto",a.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach(function(p){a.style[p]&&(a.style[p]=parseInt(i.config.legend[p],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var t=this.w;t.globals.dom.elLegendWrap.style.right=0;var e=this.legendHelpers.getLegendBBox(),i=new wt(this.ctx),a=i.dimHelpers.getTitleSubtitleCoords("title"),r=i.dimHelpers.getTitleSubtitleCoords("subtitle"),o=0;t.config.legend.position==="bottom"?o=-e.clwh/1.8:t.config.legend.position==="top"&&(o=a.height+r.height+t.config.title.margin+t.config.subtitle.margin-10),this.setLegendWrapXY(20,o)}},{key:"legendAlignVertical",value:function(){var t=this.w,e=this.legendHelpers.getLegendBBox(),i=0;t.config.legend.position==="left"&&(i=20),t.config.legend.position==="right"&&(i=t.globals.svgWidth-e.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(t){var e=this.w,i=t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker");if(e.config.chart.type==="heatmap"||this.isBarsDistributed){if(i){var a=parseInt(t.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,a,this.w]),new Qt(this.ctx).highlightRangeInSeries(t,t.target)}}else!t.target.classList.contains("apexcharts-inactive-legend")&&i&&new Qt(this.ctx).toggleSeriesOnHover(t,t.target)}},{key:"onLegendClick",value:function(t){var e=this.w;if(!e.config.legend.customLegendItems.length&&(t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(t.target.getAttribute("rel"),10)-1,a=t.target.getAttribute("data:collapsed")==="true",r=this.w.config.chart.events.legendClick;typeof r=="function"&&r(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var o=this.w.config.legend.markers.onClick;typeof o=="function"&&t.target.classList.contains("apexcharts-legend-marker")&&(o(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),e.config.chart.type!=="treemap"&&e.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&e.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,a)}}}]),_}(),Nt=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w;var e=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=e.globals.minX,this.maxX=e.globals.maxX}return L(_,[{key:"createToolbar",value:function(){var t=this,e=this.w,i=function(){return document.createElement("div")},a=i();if(a.setAttribute("class","apexcharts-toolbar"),a.style.top=e.config.chart.toolbar.offsetY+"px",a.style.right=3-e.config.chart.toolbar.offsetX+"px",e.globals.dom.elWrap.appendChild(a),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=e.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var r=0;r<this.t.customIcons.length;r++)this.elCustomIcons.push(i());var o=[],l=function(p,x,v){var w=p.toLowerCase();t.t[w]&&e.config.chart.zoom.enabled&&o.push({el:x,icon:typeof t.t[w]=="string"?t.t[w]:v,title:t.localeValues[p],class:"apexcharts-".concat(w,"-icon")})};l("zoomIn",this.elZoomIn,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
</svg>
`),l("zoomOut",this.elZoomOut,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
</svg>
`);var h=function(p){t.t[p]&&e.config.chart[p].enabled&&o.push({el:p==="zoom"?t.elZoom:t.elSelection,icon:typeof t.t[p]=="string"?t.t[p]:p==="zoom"?`<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
<path d="M0 0h24v24H0V0z" fill="none"/>
<path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>
</svg>`:`<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>
</svg>`,title:t.localeValues[p==="zoom"?"selectionZoom":"selection"],class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(p,"-icon")})};h("zoom"),h("selection"),this.t.pan&&e.config.chart.zoom.enabled&&o.push({el:this.elPan,icon:typeof this.t.pan=="string"?this.t.pan:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
<defs>
<path d="M0 0h24v24H0z" id="a"/>
</defs>
<clipPath id="b">
<use overflow="visible" xlink:href="#a"/>
</clipPath>
<path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>
</svg>`,title:this.localeValues.pan,class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),l("reset",this.elZoomReset,`<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
<path d="M0 0h24v24H0z" fill="none"/>
</svg>`),this.t.download&&o.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var f=0;f<this.elCustomIcons.length;f++)o.push({el:this.elCustomIcons[f],icon:this.t.customIcons[f].icon,title:this.t.customIcons[f].title,index:this.t.customIcons[f].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[f].class});o.forEach(function(p,x){p.index&&R.moveIndexInArray(o,x,p.index)});for(var g=0;g<o.length;g++)V.setAttrs(o[g].el,{class:o[g].class,title:o[g].title}),o[g].el.innerHTML=o[g].icon,a.appendChild(o[g].el);this._createHamburgerMenu(a),e.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):e.globals.panEnabled?this.elPan.classList.add(this.selectedClass):e.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(t){this.elMenuItems=[],t.appendChild(this.elMenu),V.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var e=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],i=0;i<e.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=e[i].title,V.setAttrs(this.elMenuItems[i],{class:"apexcharts-menu-item ".concat(e[i].name),title:e[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{key:"addToolbarEventListeners",value:function(){var t=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(i){i.classList.contains("exportSVG")?i.addEventListener("click",t.handleDownload.bind(t,"svg")):i.classList.contains("exportPNG")?i.addEventListener("click",t.handleDownload.bind(t,"png")):i.classList.contains("exportCSV")&&i.addEventListener("click",t.handleDownload.bind(t,"csv"))});for(var e=0;e<this.t.customIcons.length;e++)this.elCustomIcons[e].addEventListener("click",this.t.customIcons[e].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(t){this.ctx.getSyncedCharts().forEach(function(e){e.ctx.toolbar.toggleOtherControls();var i=t==="selection"?e.ctx.toolbar.elSelection:e.ctx.toolbar.elZoom,a=t==="selection"?"selectionEnabled":"zoomEnabled";e.w.globals[a]=!e.w.globals[a],i.classList.contains(e.ctx.toolbar.selectedClass)?i.classList.remove(e.ctx.toolbar.selectedClass):i.classList.add(e.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var t=this.w;this.elZoom||(this.elZoom=t.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=t.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=t.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(t){this.toggleOtherControls(),t==="pan"?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var e=t==="pan"?this.elPan:this.elZoom,i=t==="pan"?this.elZoom:this.elPan;e&&e.classList.add(this.selectedClass),i&&i.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(t){t.ctx.toolbar.toggleOtherControls(),t.w.globals.panEnabled=!t.w.globals.panEnabled,t.ctx.toolbar.elPan.classList.contains(t.ctx.toolbar.selectedClass)?t.ctx.toolbar.elPan.classList.remove(t.ctx.toolbar.selectedClass):t.ctx.toolbar.elPan.classList.add(t.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var t=this,e=this.w;e.globals.panEnabled=!1,e.globals.zoomEnabled=!1,e.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(i){i&&i.classList.remove(t.selectedClass)})}},{key:"handleZoomIn",value:function(){var t=this.w;t.globals.isRangeBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY);var e=(this.minX+this.maxX)/2,i=(this.minX+e)/2,a=(this.maxX+e)/2,r=this._getNewMinXMaxX(i,a);t.globals.disableZoomIn||this.zoomUpdateOptions(r.minX,r.maxX)}},{key:"handleZoomOut",value:function(){var t=this.w;if(t.globals.isRangeBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY),!(t.config.xaxis.type==="datetime"&&new Date(this.minX).getUTCFullYear()<1e3)){var e=(this.minX+this.maxX)/2,i=this.minX-(e-this.minX),a=this.maxX-(e-this.maxX),r=this._getNewMinXMaxX(i,a);t.globals.disableZoomOut||this.zoomUpdateOptions(r.minX,r.maxX)}}},{key:"_getNewMinXMaxX",value:function(t,e){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(t):t,maxX:i?Math.floor(e):e}}},{key:"zoomUpdateOptions",value:function(t,e){var i=this.w;if(t!==void 0||e!==void 0){if(!(i.config.xaxis.convertedCatToNumeric&&(t<1&&(t=1,e=i.globals.dataPoints),e-t<2))){var a={min:t,max:e},r=this.getBeforeZoomRange(a);r&&(a=r.xaxis);var o={xaxis:a},l=R.clone(i.globals.initialConfig.yaxis);i.config.chart.zoom.autoScaleYaxis&&(l=new Ze(this.ctx).autoScaleY(this.ctx,l,{xaxis:a})),i.config.chart.group||(o.yaxis=l),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(o,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(a,l)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(t,e){typeof this.ev.zoomed=="function"&&this.ev.zoomed(this.ctx,{xaxis:t,yaxis:e})}},{key:"getBeforeZoomRange",value:function(t,e){var i=null;return typeof this.ev.beforeZoom=="function"&&(i=this.ev.beforeZoom(this,{xaxis:t,yaxis:e})),i}},{key:"toggleMenu",value:function(){var t=this;window.setTimeout(function(){t.elMenu.classList.contains("apexcharts-menu-open")?t.elMenu.classList.remove("apexcharts-menu-open"):t.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(t){var e=this.w,i=new Pi(this.ctx);switch(t){case"svg":i.exportToSVG(this.ctx);break;case"png":i.exportToPng(this.ctx);break;case"csv":i.exportToCSV({series:e.config.series,columnDelimiter:e.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(t){this.ctx.getSyncedCharts().forEach(function(e){var i=e.w;if(i.globals.lastXAxis.min=i.globals.initialConfig.xaxis.min,i.globals.lastXAxis.max=i.globals.initialConfig.xaxis.max,e.updateHelpers.revertDefaultAxisMinMax(),typeof i.config.chart.events.beforeResetZoom=="function"){var a=i.config.chart.events.beforeResetZoom(e,i);a&&e.updateHelpers.revertDefaultAxisMinMax(a)}typeof i.config.chart.events.zoomed=="function"&&e.ctx.toolbar.zoomCallback({min:i.config.xaxis.min,max:i.config.xaxis.max}),i.globals.zoomed=!1;var r=e.ctx.series.emptyCollapsedSeries(R.clone(i.globals.initialSeries));e.updateHelpers._updateSeries(r,i.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),_}(),re=function(_){z(e,Nt);var t=q(e);function e(i){var a;return y(this,e),(a=t.call(this,i)).ctx=i,a.w=i.w,a.dragged=!1,a.graphics=new V(a.ctx),a.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],a.clientX=0,a.clientY=0,a.startX=0,a.endX=0,a.dragX=0,a.startY=0,a.endY=0,a.dragY=0,a.moveDirection="none",a}return L(e,[{key:"init",value:function(i){var a=this,r=i.xyRatios,o=this.w,l=this;this.xyRatios=r,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=o.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),o.globals.dom.elGraphical.add(this.zoomRect),o.globals.dom.elGraphical.add(this.selectionRect),o.config.chart.selection.type==="x"?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:o.globals.gridWidth,maxY:o.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):o.config.chart.selection.type==="y"?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:o.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=o.globals.dom.baseEl.querySelector("".concat(o.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(h){a.hoverArea.addEventListener(h,l.svgMouseEvents.bind(l,r),{capture:!1,passive:!0})})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(i,a){var r=this.w,o=this,l=this.ctx.toolbar,h=r.globals.zoomEnabled?r.config.chart.zoom.type:r.config.chart.selection.type,f=r.config.chart.toolbar.autoSelected;if(a.shiftKey?(this.shiftWasPressed=!0,l.enableZoomPanFromToolbar(f==="pan"?"zoom":"pan")):this.shiftWasPressed&&(l.enableZoomPanFromToolbar(f),this.shiftWasPressed=!1),a.target){var g,p=a.target.classList;if(a.target.parentNode&&a.target.parentNode!==null&&(g=a.target.parentNode.classList),!(p.contains("apexcharts-selection-rect")||p.contains("apexcharts-legend-marker")||p.contains("apexcharts-legend-text")||g&&g.contains("apexcharts-toolbar"))){if(o.clientX=a.type==="touchmove"||a.type==="touchstart"?a.touches[0].clientX:a.type==="touchend"?a.changedTouches[0].clientX:a.clientX,o.clientY=a.type==="touchmove"||a.type==="touchstart"?a.touches[0].clientY:a.type==="touchend"?a.changedTouches[0].clientY:a.clientY,a.type==="mousedown"&&a.which===1){var x=o.gridRect.getBoundingClientRect();o.startX=o.clientX-x.left,o.startY=o.clientY-x.top,o.dragged=!1,o.w.globals.mousedown=!0}if((a.type==="mousemove"&&a.which===1||a.type==="touchmove")&&(o.dragged=!0,r.globals.panEnabled?(r.globals.selection=null,o.w.globals.mousedown&&o.panDragging({context:o,zoomtype:h,xyRatios:i})):(o.w.globals.mousedown&&r.globals.zoomEnabled||o.w.globals.mousedown&&r.globals.selectionEnabled)&&(o.selection=o.selectionDrawing({context:o,zoomtype:h}))),a.type==="mouseup"||a.type==="touchend"||a.type==="mouseleave"){var v=o.gridRect.getBoundingClientRect();o.w.globals.mousedown&&(o.endX=o.clientX-v.left,o.endY=o.clientY-v.top,o.dragX=Math.abs(o.endX-o.startX),o.dragY=Math.abs(o.endY-o.startY),(r.globals.zoomEnabled||r.globals.selectionEnabled)&&o.selectionDrawn({context:o,zoomtype:h}),r.globals.panEnabled&&r.config.xaxis.convertedCatToNumeric&&o.delayedPanScrolled()),r.globals.zoomEnabled&&o.hideSelectionRect(this.selectionRect),o.dragged=!1,o.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"makeSelectionRectDraggable",value:function(){var i=this.w;if(this.selectionRect){var a=this.selectionRect.node.getBoundingClientRect();a.width>0&&a.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:i.globals.gridWidth,maxY:i.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var i=this.w,a=this.xyRatios;if(!i.globals.zoomEnabled){if(i.globals.selection!==void 0&&i.globals.selection!==null)this.drawSelectionRect(i.globals.selection);else if(i.config.chart.selection.xaxis.min!==void 0&&i.config.chart.selection.xaxis.max!==void 0){var r=(i.config.chart.selection.xaxis.min-i.globals.minX)/a.xRatio,o=i.globals.gridWidth-(i.globals.maxX-i.config.chart.selection.xaxis.max)/a.xRatio-r;i.globals.isRangeBar&&(r=(i.config.chart.selection.xaxis.min-i.globals.yAxisScale[0].niceMin)/a.invertedYRatio,o=(i.config.chart.selection.xaxis.max-i.config.chart.selection.xaxis.min)/a.invertedYRatio);var l={x:r,y:0,width:o,height:i.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(l),this.makeSelectionRectDraggable(),typeof i.config.chart.events.selection=="function"&&i.config.chart.events.selection(this.ctx,{xaxis:{min:i.config.chart.selection.xaxis.min,max:i.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(i){var a=i.x,r=i.y,o=i.width,l=i.height,h=i.translateX,f=h===void 0?0:h,g=i.translateY,p=g===void 0?0:g,x=this.w,v=this.zoomRect,w=this.selectionRect;if(this.dragged||x.globals.selection!==null){var A={transform:"translate("+f+", "+p+")"};x.globals.zoomEnabled&&this.dragged&&(o<0&&(o=1),v.attr({x:a,y:r,width:o,height:l,fill:x.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":x.config.chart.zoom.zoomedArea.fill.opacity,stroke:x.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":x.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":x.config.chart.zoom.zoomedArea.stroke.opacity}),V.setAttrs(v.node,A)),x.globals.selectionEnabled&&(w.attr({x:a,y:r,width:o>0?o:0,height:l>0?l:0,fill:x.config.chart.selection.fill.color,"fill-opacity":x.config.chart.selection.fill.opacity,stroke:x.config.chart.selection.stroke.color,"stroke-width":x.config.chart.selection.stroke.width,"stroke-dasharray":x.config.chart.selection.stroke.dashArray,"stroke-opacity":x.config.chart.selection.stroke.opacity}),V.setAttrs(w.node,A))}}},{key:"hideSelectionRect",value:function(i){i&&i.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(i){var a=i.context,r=i.zoomtype,o=this.w,l=a,h=this.gridRect.getBoundingClientRect(),f=l.startX-1,g=l.startY,p=!1,x=!1,v=l.clientX-h.left-f,w=l.clientY-h.top-g,A={};return Math.abs(v+f)>o.globals.gridWidth?v=o.globals.gridWidth-f:l.clientX-h.left<0&&(v=f),f>l.clientX-h.left&&(p=!0,v=Math.abs(v)),g>l.clientY-h.top&&(x=!0,w=Math.abs(w)),A=r==="x"?{x:p?f-v:f,y:0,width:v,height:o.globals.gridHeight}:r==="y"?{x:0,y:x?g-w:g,width:o.globals.gridWidth,height:w}:{x:p?f-v:f,y:x?g-w:g,width:v,height:w},l.drawSelectionRect(A),l.selectionDragging("resizing"),A}},{key:"selectionDragging",value:function(i,a){var r=this,o=this.w,l=this.xyRatios,h=this.selectionRect,f=0;i==="resizing"&&(f=30);var g=function(x){return parseFloat(h.node.getAttribute(x))},p={x:g("x"),y:g("y"),width:g("width"),height:g("height")};o.globals.selection=p,typeof o.config.chart.events.selection=="function"&&o.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var x,v,w,A,S=r.gridRect.getBoundingClientRect(),E=h.node.getBoundingClientRect();o.globals.isRangeBar?(x=o.globals.yAxisScale[0].niceMin+(E.left-S.left)*l.invertedYRatio,v=o.globals.yAxisScale[0].niceMin+(E.right-S.left)*l.invertedYRatio,w=0,A=1):(x=o.globals.xAxisScale.niceMin+(E.left-S.left)*l.xRatio,v=o.globals.xAxisScale.niceMin+(E.right-S.left)*l.xRatio,w=o.globals.yAxisScale[0].niceMin+(S.bottom-E.bottom)*l.yRatio[0],A=o.globals.yAxisScale[0].niceMax-(E.top-S.top)*l.yRatio[0]);var I={xaxis:{min:x,max:v},yaxis:{min:w,max:A}};o.config.chart.events.selection(r.ctx,I),o.config.chart.brush.enabled&&o.config.chart.events.brushScrolled!==void 0&&o.config.chart.events.brushScrolled(r.ctx,I)},f))}},{key:"selectionDrawn",value:function(i){var a=i.context,r=i.zoomtype,o=this.w,l=a,h=this.xyRatios,f=this.ctx.toolbar;if(l.startX>l.endX){var g=l.startX;l.startX=l.endX,l.endX=g}if(l.startY>l.endY){var p=l.startY;l.startY=l.endY,l.endY=p}var x=void 0,v=void 0;o.globals.isRangeBar?(x=o.globals.yAxisScale[0].niceMin+l.startX*h.invertedYRatio,v=o.globals.yAxisScale[0].niceMin+l.endX*h.invertedYRatio):(x=o.globals.xAxisScale.niceMin+l.startX*h.xRatio,v=o.globals.xAxisScale.niceMin+l.endX*h.xRatio);var w=[],A=[];if(o.config.yaxis.forEach(function(T,O){w.push(o.globals.yAxisScale[O].niceMax-h.yRatio[O]*l.startY),A.push(o.globals.yAxisScale[O].niceMax-h.yRatio[O]*l.endY)}),l.dragged&&(l.dragX>10||l.dragY>10)&&x!==v){if(o.globals.zoomEnabled){var S=R.clone(o.globals.initialConfig.yaxis),E=R.clone(o.globals.initialConfig.xaxis);if(o.globals.zoomed=!0,o.config.xaxis.convertedCatToNumeric&&(x=Math.floor(x),v=Math.floor(v),x<1&&(x=1,v=o.globals.dataPoints),v-x<2&&(v=x+1)),r!=="xy"&&r!=="x"||(E={min:x,max:v}),r!=="xy"&&r!=="y"||S.forEach(function(T,O){S[O].min=A[O],S[O].max=w[O]}),o.config.chart.zoom.autoScaleYaxis){var I=new Ze(l.ctx);S=I.autoScaleY(l.ctx,S,{xaxis:E})}if(f){var u=f.getBeforeZoomRange(E,S);u&&(E=u.xaxis?u.xaxis:E,S=u.yaxis?u.yaxis:S)}var b={xaxis:E};o.config.chart.group||(b.yaxis=S),l.ctx.updateHelpers._updateOptions(b,!1,l.w.config.chart.animations.dynamicAnimation.enabled),typeof o.config.chart.events.zoomed=="function"&&f.zoomCallback(E,S)}else if(o.globals.selectionEnabled){var k,P=null;k={min:x,max:v},r!=="xy"&&r!=="y"||(P=R.clone(o.config.yaxis)).forEach(function(T,O){P[O].min=A[O],P[O].max=w[O]}),o.globals.selection=l.selection,typeof o.config.chart.events.selection=="function"&&o.config.chart.events.selection(l.ctx,{xaxis:k,yaxis:P})}}}},{key:"panDragging",value:function(i){var a=i.context,r=this.w,o=a;if(r.globals.lastClientPosition.x!==void 0){var l=r.globals.lastClientPosition.x-o.clientX,h=r.globals.lastClientPosition.y-o.clientY;Math.abs(l)>Math.abs(h)&&l>0?this.moveDirection="left":Math.abs(l)>Math.abs(h)&&l<0?this.moveDirection="right":Math.abs(h)>Math.abs(l)&&h>0?this.moveDirection="up":Math.abs(h)>Math.abs(l)&&h<0&&(this.moveDirection="down")}r.globals.lastClientPosition={x:o.clientX,y:o.clientY};var f=r.globals.isRangeBar?r.globals.minY:r.globals.minX,g=r.globals.isRangeBar?r.globals.maxY:r.globals.maxX;r.config.xaxis.convertedCatToNumeric||o.panScrolled(f,g)}},{key:"delayedPanScrolled",value:function(){var i=this.w,a=i.globals.minX,r=i.globals.maxX,o=(i.globals.maxX-i.globals.minX)/2;this.moveDirection==="left"?(a=i.globals.minX+o,r=i.globals.maxX+o):this.moveDirection==="right"&&(a=i.globals.minX-o,r=i.globals.maxX-o),a=Math.floor(a),r=Math.floor(r),this.updateScrolledChart({xaxis:{min:a,max:r}},a,r)}},{key:"panScrolled",value:function(i,a){var r=this.w,o=this.xyRatios,l=R.clone(r.globals.initialConfig.yaxis),h=o.xRatio,f=r.globals.minX,g=r.globals.maxX;r.globals.isRangeBar&&(h=o.invertedYRatio,f=r.globals.minY,g=r.globals.maxY),this.moveDirection==="left"?(i=f+r.globals.gridWidth/15*h,a=g+r.globals.gridWidth/15*h):this.moveDirection==="right"&&(i=f-r.globals.gridWidth/15*h,a=g-r.globals.gridWidth/15*h),r.globals.isRangeBar||(i<r.globals.initialMinX||a>r.globals.initialMaxX)&&(i=f,a=g);var p={min:i,max:a};r.config.chart.zoom.autoScaleYaxis&&(l=new Ze(this.ctx).autoScaleY(this.ctx,l,{xaxis:p}));var x={xaxis:{min:i,max:a}};r.config.chart.group||(x.yaxis=l),this.updateScrolledChart(x,i,a)}},{key:"updateScrolledChart",value:function(i,a,r){var o=this.w;this.ctx.updateHelpers._updateOptions(i,!1,!1),typeof o.config.chart.events.scrolled=="function"&&o.config.chart.events.scrolled(this.ctx,{xaxis:{min:a,max:r}})}}]),e}(),ye=function(){function _(t){y(this,_),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx}return L(_,[{key:"getNearestValues",value:function(t){var e=t.hoverArea,i=t.elGrid,a=t.clientX,r=t.clientY,o=this.w,l=i.getBoundingClientRect(),h=l.width,f=l.height,g=h/(o.globals.dataPoints-1),p=f/o.globals.dataPoints,x=this.hasBars();!o.globals.comboCharts&&!x||o.config.xaxis.convertedCatToNumeric||(g=h/o.globals.dataPoints);var v=a-l.left-o.globals.barPadForNumericAxis,w=r-l.top;v<0||w<0||v>h||w>f?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):o.globals.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):o.globals.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));var A=Math.round(v/g),S=Math.floor(w/p);x&&!o.config.xaxis.convertedCatToNumeric&&(A=Math.ceil(v/g),A-=1);var E=null,I=null,u=o.globals.seriesXvalues.map(function(O){return O.filter(function(F){return R.isNumber(F)})}),b=o.globals.seriesYvalues.map(function(O){return O.filter(function(F){return R.isNumber(F)})});if(o.globals.isXNumeric){var k=this.ttCtx.getElGrid().getBoundingClientRect(),P=v*(k.width/h),T=w*(k.height/f);E=(I=this.closestInMultiArray(P,T,u,b)).index,A=I.j,E!==null&&(u=o.globals.seriesXvalues[E],A=(I=this.closestInArray(P,u)).index)}return o.globals.capturedSeriesIndex=E===null?-1:E,(!A||A<1)&&(A=0),o.globals.isBarHorizontal?o.globals.capturedDataPointIndex=S:o.globals.capturedDataPointIndex=A,{capturedSeries:E,j:o.globals.isBarHorizontal?S:A,hoverX:v,hoverY:w}}},{key:"closestInMultiArray",value:function(t,e,i,a){var r=this.w,o=0,l=null,h=-1;r.globals.series.length>1?o=this.getFirstActiveXArray(i):l=0;var f=i[o][0],g=Math.abs(t-f);if(i.forEach(function(v){v.forEach(function(w,A){var S=Math.abs(t-w);S<=g&&(g=S,h=A)})}),h!==-1){var p=a[o][h],x=Math.abs(e-p);l=o,a.forEach(function(v,w){var A=Math.abs(e-v[h]);A<=x&&(x=A,l=w)})}return{index:l,j:h}}},{key:"getFirstActiveXArray",value:function(t){for(var e=this.w,i=0,a=t.map(function(o,l){return o.length>0?l:-1}),r=0;r<a.length;r++)if(a[r]!==-1&&e.globals.collapsedSeriesIndices.indexOf(r)===-1&&e.globals.ancillaryCollapsedSeriesIndices.indexOf(r)===-1){i=a[r];break}return i}},{key:"closestInArray",value:function(t,e){for(var i=e[0],a=null,r=Math.abs(t-i),o=0;o<e.length;o++){var l=Math.abs(t-e[o]);l<r&&(r=l,a=o)}return{index:a}}},{key:"isXoverlap",value:function(t){var e=[],i=this.w.globals.seriesX.filter(function(r){return r[0]!==void 0});if(i.length>0)for(var a=0;a<i.length-1;a++)i[a][t]!==void 0&&i[a+1][t]!==void 0&&i[a][t]!==i[a+1][t]&&e.push("unEqual");return e.length===0}},{key:"isInitialSeriesSameLen",value:function(){for(var t=!0,e=this.w.globals.initialSeries,i=0;i<e.length-1;i++)if(e[i].data.length!==e[i+1].data.length){t=!1;break}return t}},{key:"getBarsHeight",value:function(t){return nt(t).reduce(function(e,i){return e+i.getBBox().height},0)}},{key:"getElMarkers",value:function(t){return typeof t=="number"?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(t=nt(t)).sort(function(i,a){var r=Number(i.getAttribute("data:realIndex")),o=Number(a.getAttribute("data:realIndex"));return o<r?1:o>r?-1:0});var e=[];return t.forEach(function(i){e.push(i.querySelector(".apexcharts-marker"))}),e}},{key:"hasMarkers",value:function(t){return this.getElMarkers(t).length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(t){var e=this.w,i=e.config.markers.hover.size;return i===void 0&&(i=e.globals.markers.size[t]+e.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(t){var e=this.w,i=this.ttCtx;i.allTooltipSeriesGroups.length===0&&(i.allTooltipSeriesGroups=e.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var a=i.allTooltipSeriesGroups,r=0;r<a.length;r++)t==="enable"?(a[r].classList.add("apexcharts-active"),a[r].style.display=e.config.tooltip.items.display):(a[r].classList.remove("apexcharts-active"),a[r].style.display="none")}}]),_}(),ci=function(){function _(t){y(this,_),this.w=t.w,this.ctx=t.ctx,this.ttCtx=t,this.tooltipUtil=new ye(t)}return L(_,[{key:"drawSeriesTexts",value:function(t){var e=t.shared,i=e===void 0||e,a=t.ttItems,r=t.i,o=r===void 0?0:r,l=t.j,h=l===void 0?null:l,f=t.y1,g=t.y2,p=t.e,x=this.w;x.config.tooltip.custom!==void 0?this.handleCustomTooltip({i:o,j:h,y1:f,y2:g,w:x}):this.toggleActiveInactiveSeries(i);var v=this.getValuesToPrint({i:o,j:h});this.printLabels({i:o,j:h,values:v,ttItems:a,shared:i,e:p});var w=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=w.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=w.getBoundingClientRect().height}},{key:"printLabels",value:function(t){var e,i=this,a=t.i,r=t.j,o=t.values,l=t.ttItems,h=t.shared,f=t.e,g=this.w,p=[],x=function(k){return g.globals.seriesGoals[k]&&g.globals.seriesGoals[k][r]&&Array.isArray(g.globals.seriesGoals[k][r])},v=o.xVal,w=o.zVal,A=o.xAxisTTVal,S="",E=g.globals.colors[a];r!==null&&g.config.plotOptions.bar.distributed&&(E=g.globals.colors[r]);for(var I=function(k,P){var T=i.getFormatters(a);S=i.getSeriesName({fn:T.yLbTitleFormatter,index:a,seriesIndex:a,j:r}),g.config.chart.type==="treemap"&&(S=T.yLbTitleFormatter(String(g.config.series[a].data[r].x),{series:g.globals.series,seriesIndex:a,dataPointIndex:r,w:g}));var O=g.config.tooltip.inverseOrder?P:k;if(g.globals.axisCharts){var F=function($){var j,st,dt,mt;return g.globals.isRangeData?T.yLbFormatter((j=g.globals.seriesRangeStart)===null||j===void 0||(st=j[$])===null||st===void 0?void 0:st[r],{series:g.globals.seriesRangeStart,seriesIndex:$,dataPointIndex:r,w:g})+" - "+T.yLbFormatter((dt=g.globals.seriesRangeEnd)===null||dt===void 0||(mt=dt[$])===null||mt===void 0?void 0:mt[r],{series:g.globals.seriesRangeEnd,seriesIndex:$,dataPointIndex:r,w:g}):T.yLbFormatter(g.globals.series[$][r],{series:g.globals.series,seriesIndex:$,dataPointIndex:r,w:g})};if(h)T=i.getFormatters(O),S=i.getSeriesName({fn:T.yLbTitleFormatter,index:O,seriesIndex:a,j:r}),E=g.globals.colors[O],e=F(O),x(O)&&(p=g.globals.seriesGoals[O][r].map(function($){return{attrs:$,val:T.yLbFormatter($.value,{seriesIndex:O,dataPointIndex:r,w:g})}}));else{var N,B=f==null||(N=f.target)===null||N===void 0?void 0:N.getAttribute("fill");B&&(E=B.indexOf("url")!==-1?document.querySelector(B.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):B),e=F(a),x(a)&&Array.isArray(g.globals.seriesGoals[a][r])&&(p=g.globals.seriesGoals[a][r].map(function($){return{attrs:$,val:T.yLbFormatter($.value,{seriesIndex:a,dataPointIndex:r,w:g})}}))}}r===null&&(e=T.yLbFormatter(g.globals.series[a],d(d({},g),{},{seriesIndex:a,dataPointIndex:a}))),i.DOMHandling({i:a,t:O,j:r,ttItems:l,values:{val:e,goalVals:p,xVal:v,xAxisTTVal:A,zVal:w},seriesName:S,shared:h,pColor:E})},u=0,b=g.globals.series.length-1;u<g.globals.series.length;u++,b--)I(u,b)}},{key:"getFormatters",value:function(t){var e,i=this.w,a=i.globals.yLabelFormatters[t];return i.globals.ttVal!==void 0?Array.isArray(i.globals.ttVal)?(a=i.globals.ttVal[t]&&i.globals.ttVal[t].formatter,e=i.globals.ttVal[t]&&i.globals.ttVal[t].title&&i.globals.ttVal[t].title.formatter):(a=i.globals.ttVal.formatter,typeof i.globals.ttVal.title.formatter=="function"&&(e=i.globals.ttVal.title.formatter)):e=i.config.tooltip.y.title.formatter,typeof a!="function"&&(a=i.globals.yLabelFormatters[0]?i.globals.yLabelFormatters[0]:function(r){return r}),typeof e!="function"&&(e=function(r){return r}),{yLbFormatter:a,yLbTitleFormatter:e}}},{key:"getSeriesName",value:function(t){var e=t.fn,i=t.index,a=t.seriesIndex,r=t.j,o=this.w;return e(String(o.globals.seriesNames[i]),{series:o.globals.series,seriesIndex:a,dataPointIndex:r,w:o})}},{key:"DOMHandling",value:function(t){t.i;var e=t.t,i=t.j,a=t.ttItems,r=t.values,o=t.seriesName,l=t.shared,h=t.pColor,f=this.w,g=this.ttCtx,p=r.val,x=r.goalVals,v=r.xVal,w=r.xAxisTTVal,A=r.zVal,S=null;S=a[e].children,f.config.tooltip.fillSeriesColor&&(a[e].style.backgroundColor=h,S[0].style.display="none"),g.showTooltipTitle&&(g.tooltipTitle===null&&(g.tooltipTitle=f.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),g.tooltipTitle.innerHTML=v),g.isXAxisTooltipEnabled&&(g.xaxisTooltipText.innerHTML=w!==""?w:v);var E=a[e].querySelector(".apexcharts-tooltip-text-y-label");E&&(E.innerHTML=o||"");var I=a[e].querySelector(".apexcharts-tooltip-text-y-value");I&&(I.innerHTML=p!==void 0?p:""),S[0]&&S[0].classList.contains("apexcharts-tooltip-marker")&&(f.config.tooltip.marker.fillColors&&Array.isArray(f.config.tooltip.marker.fillColors)&&(h=f.config.tooltip.marker.fillColors[e]),S[0].style.backgroundColor=h),f.config.tooltip.marker.show||(S[0].style.display="none");var u=a[e].querySelector(".apexcharts-tooltip-text-goals-label"),b=a[e].querySelector(".apexcharts-tooltip-text-goals-value");if(x.length&&f.globals.seriesGoals[e]){var k=function(){var O="<div >",F="<div>";x.forEach(function(N,B){O+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(N.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(N.attrs.name,"</div>"),F+="<div>".concat(N.val,"</div>")}),u.innerHTML=O+"</div>",b.innerHTML=F+"</div>"};l?f.globals.seriesGoals[e][i]&&Array.isArray(f.globals.seriesGoals[e][i])?k():(u.innerHTML="",b.innerHTML=""):k()}else u.innerHTML="",b.innerHTML="";if(A!==null&&(a[e].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=f.config.tooltip.z.title,a[e].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=A!==void 0?A:""),l&&S[0]){if(f.config.tooltip.hideEmptySeries){var P=a[e].querySelector(".apexcharts-tooltip-marker"),T=a[e].querySelector(".apexcharts-tooltip-text");parseFloat(p)==0?(P.style.display="none",T.style.display="none"):(P.style.display="block",T.style.display="block")}p==null||f.globals.ancillaryCollapsedSeriesIndices.indexOf(e)>-1||f.globals.collapsedSeriesIndices.indexOf(e)>-1?S[0].parentNode.style.display="none":S[0].parentNode.style.display=f.config.tooltip.items.display}}},{key:"toggleActiveInactiveSeries",value:function(t){var e=this.w;if(t)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=e.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=e.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(t){var e=t.i,i=t.j,a=this.w,r=this.ctx.series.filteredSeriesX(),o="",l="",h=null,f=null,g={series:a.globals.series,seriesIndex:e,dataPointIndex:i,w:a},p=a.globals.ttZFormatter;i===null?f=a.globals.series[e]:a.globals.isXNumeric&&a.config.chart.type!=="treemap"?(o=r[e][i],r[e].length===0&&(o=r[this.tooltipUtil.getFirstActiveXArray(r)][i])):o=a.globals.labels[i]!==void 0?a.globals.labels[i]:"";var x=o;return a.globals.isXNumeric&&a.config.xaxis.type==="datetime"?o=new Pe(this.ctx).xLabelFormat(a.globals.ttKeyFormatter,x,x,{i:void 0,dateFormatter:new Tt(this.ctx).formatDate,w:this.w}):o=a.globals.isBarHorizontal?a.globals.yLabelFormatters[0](x,g):a.globals.xLabelFormatter(x,g),a.config.tooltip.x.formatter!==void 0&&(o=a.globals.ttKeyFormatter(x,g)),a.globals.seriesZ.length>0&&a.globals.seriesZ[e].length>0&&(h=p(a.globals.seriesZ[e][i],a)),l=typeof a.config.xaxis.tooltip.formatter=="function"?a.globals.xaxisTooltipFormatter(x,g):o,{val:Array.isArray(f)?f.join(" "):f,xVal:Array.isArray(o)?o.join(" "):o,xAxisTTVal:Array.isArray(l)?l.join(" "):l,zVal:h}}},{key:"handleCustomTooltip",value:function(t){var e=t.i,i=t.j,a=t.y1,r=t.y2,o=t.w,l=this.ttCtx.getElTooltip(),h=o.config.tooltip.custom;Array.isArray(h)&&h[e]&&(h=h[e]),l.innerHTML=h({ctx:this.ctx,series:o.globals.series,seriesIndex:e,dataPointIndex:i,y1:a,y2:r,w:o})}}]),_}(),sa=function(){function _(t){y(this,_),this.ttCtx=t,this.ctx=t.ctx,this.w=t.w}return L(_,[{key:"moveXCrosshairs",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.ttCtx,a=this.w,r=i.getElXCrosshairs(),o=t-i.xcrosshairsWidth/2,l=a.globals.labels.slice().length;if(e!==null&&(o=a.globals.gridWidth/l*e),r===null||a.globals.isBarHorizontal||(r.setAttribute("x",o),r.setAttribute("x1",o),r.setAttribute("x2",o),r.setAttribute("y2",a.globals.gridHeight),r.classList.add("apexcharts-active")),o<0&&(o=0),o>a.globals.gridWidth&&(o=a.globals.gridWidth),i.isXAxisTooltipEnabled){var h=o;a.config.xaxis.crosshairs.width!=="tickWidth"&&a.config.xaxis.crosshairs.width!=="barWidth"||(h=o+i.xcrosshairsWidth/2),this.moveXAxisTooltip(h)}}},{key:"moveYCrosshairs",value:function(t){var e=this.ttCtx;e.ycrosshairs!==null&&V.setAttrs(e.ycrosshairs,{y1:t,y2:t}),e.ycrosshairsHidden!==null&&V.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}},{key:"moveXAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;if(i.xaxisTooltip!==null&&i.xcrosshairsWidth!==0){i.xaxisTooltip.classList.add("apexcharts-active");var a=i.xaxisOffY+e.config.xaxis.tooltip.offsetY+e.globals.translateY+1+e.config.xaxis.offsetY;if(t-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(t)){t+=e.globals.translateX;var r;r=new V(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=r.width+"px",i.xaxisTooltip.style.left=t+"px",i.xaxisTooltip.style.top=a+"px"}}}},{key:"moveYAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;i.yaxisTTEls===null&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var a=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),r=e.globals.translateY+a,o=i.yaxisTTEls[t].getBoundingClientRect().height,l=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(l-=26),r-=o/2,e.globals.ignoreYAxisIndexes.indexOf(t)===-1?(i.yaxisTTEls[t].classList.add("apexcharts-active"),i.yaxisTTEls[t].style.top=r+"px",i.yaxisTTEls[t].style.left=l+e.config.yaxis[t].tooltip.offsetX+"px"):i.yaxisTTEls[t].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=this.w,r=this.ttCtx,o=r.getElTooltip(),l=r.tooltipRect,h=i!==null?parseFloat(i):1,f=parseFloat(t)+h+5,g=parseFloat(e)+h/2;if(f>a.globals.gridWidth/2&&(f=f-l.ttWidth-h-10),f>a.globals.gridWidth-l.ttWidth-10&&(f=a.globals.gridWidth-l.ttWidth),f<-20&&(f=-20),a.config.tooltip.followCursor){var p=r.getElGrid().getBoundingClientRect();(f=r.e.clientX-p.left)>a.globals.gridWidth/2&&(f-=r.tooltipRect.ttWidth),(g=r.e.clientY+a.globals.translateY-p.top)>a.globals.gridHeight/2&&(g-=r.tooltipRect.ttHeight)}else a.globals.isBarHorizontal||l.ttHeight/2+g>a.globals.gridHeight&&(g=a.globals.gridHeight-l.ttHeight+a.globals.translateY);isNaN(f)||(f+=a.globals.translateX,o.style.left=f+"px",o.style.top=g+"px")}},{key:"moveMarkers",value:function(t,e){var i=this.w,a=this.ttCtx;if(i.globals.markers.size[t]>0)for(var r=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-marker")),o=0;o<r.length;o++)parseInt(r[o].getAttribute("rel"),10)===e&&(a.marker.resetPointsSize(),a.marker.enlargeCurrentPoint(e,r[o]));else a.marker.resetPointsSize(),this.moveDynamicPointOnHover(e,t)}},{key:"moveDynamicPointOnHover",value:function(t,e){var i,a,r=this.w,o=this.ttCtx,l=r.globals.pointsArray,h=o.tooltipUtil.getHoverMarkerSize(e),f=r.config.series[e].type;if(!f||f!=="column"&&f!=="candlestick"&&f!=="boxPlot"){i=l[e][t][0],a=l[e][t][1]?l[e][t][1]:0;var g=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers circle"));g&&a<r.globals.gridHeight&&a>0&&(g.setAttribute("r",h),g.setAttribute("cx",i),g.setAttribute("cy",a)),this.moveXCrosshairs(i),o.fixedTooltip||this.moveTooltip(i,a,h)}}},{key:"moveDynamicPointsOnHover",value:function(t){var e,i=this.ttCtx,a=i.w,r=0,o=0,l=a.globals.pointsArray;e=new Qt(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var h=i.tooltipUtil.getHoverMarkerSize(e);l[e]&&(r=l[e][t][0],o=l[e][t][1]);var f=i.tooltipUtil.getAllMarkers();if(f!==null)for(var g=0;g<a.globals.series.length;g++){var p=l[g];if(a.globals.comboCharts&&p===void 0&&f.splice(g,0,null),p&&p.length){var x=l[g][t][1],v=void 0;if(f[g].setAttribute("cx",r),a.config.chart.type==="rangeArea"&&!a.globals.comboCharts){var w=t+a.globals.series[g].length;v=l[g][w][1],x-=Math.abs(x-v)/2}x!==null&&!isNaN(x)&&x<a.globals.gridHeight+h&&x+h>0?(f[g]&&f[g].setAttribute("r",h),f[g]&&f[g].setAttribute("cy",x)):f[g]&&f[g].setAttribute("r",0)}}this.moveXCrosshairs(r),i.fixedTooltip||this.moveTooltip(r,o||a.globals.gridHeight,h)}},{key:"moveStickyTooltipOverBars",value:function(t,e){var i=this.w,a=this.ttCtx,r=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length,o=r>=2&&r%2==0?Math.floor(r/2):Math.floor(r/2)+1;i.globals.isBarHorizontal&&(o=new Qt(this.ctx).getActiveConfigSeriesIndex("desc")+1);var l=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(o,"'] path[j='").concat(t,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(o,"'] path[j='").concat(t,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(o,"'] path[j='").concat(t,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(o,"'] path[j='").concat(t,"']"));l||typeof e!="number"||(l=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(e,"'] path[j='").concat(t,`'],
.apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='`).concat(e,"'] path[j='").concat(t,`'],
.apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='`).concat(e,"'] path[j='").concat(t,`'],
.apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='`).concat(e,"'] path[j='").concat(t,"']")));var h=l?parseFloat(l.getAttribute("cx")):0,f=l?parseFloat(l.getAttribute("cy")):0,g=l?parseFloat(l.getAttribute("barWidth")):0,p=a.getElGrid().getBoundingClientRect(),x=l&&(l.classList.contains("apexcharts-candlestick-area")||l.classList.contains("apexcharts-boxPlot-area"));i.globals.isXNumeric?(l&&!x&&(h-=r%2!=0?g/2:0),l&&x&&i.globals.comboCharts&&(h-=g/2)):i.globals.isBarHorizontal||(h=a.xAxisTicksPositions[t-1]+a.dataPointsDividedWidth/2,isNaN(h)&&(h=a.xAxisTicksPositions[t]-a.dataPointsDividedWidth/2)),i.globals.isBarHorizontal?f-=a.tooltipRect.ttHeight:i.config.tooltip.followCursor?f=a.e.clientY-p.top-a.tooltipRect.ttHeight/2:f+a.tooltipRect.ttHeight+15>i.globals.gridHeight&&(f=i.globals.gridHeight),i.globals.isBarHorizontal||this.moveXCrosshairs(h),a.fixedTooltip||this.moveTooltip(h,f||i.globals.gridHeight)}}]),_}(),Li=function(){function _(t){y(this,_),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new sa(t)}return L(_,[{key:"drawDynamicPoints",value:function(){var t=this.w,e=new V(this.ctx),i=new oi(this.ctx),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");a=nt(a),t.config.chart.stacked&&a.sort(function(p,x){return parseFloat(p.getAttribute("data:realIndex"))-parseFloat(x.getAttribute("data:realIndex"))});for(var r=0;r<a.length;r++){var o=a[r].querySelector(".apexcharts-series-markers-wrap");if(o!==null){var l=void 0,h="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));t.config.chart.type!=="line"&&t.config.chart.type!=="area"||t.globals.comboCharts||t.config.tooltip.intersect||(h+=" no-pointer-events");var f=i.getMarkerConfig({cssClass:h,seriesIndex:Number(o.getAttribute("data:realIndex"))});(l=e.drawMarker(0,0,f)).node.setAttribute("default-marker-size",0);var g=document.createElementNS(t.globals.SVGNS,"g");g.classList.add("apexcharts-series-markers"),g.appendChild(l.node),o.appendChild(g)}}}},{key:"enlargeCurrentPoint",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,r=this.w;r.config.chart.type!=="bubble"&&this.newPointSize(t,e);var o=e.getAttribute("cx"),l=e.getAttribute("cy");if(i!==null&&a!==null&&(o=i,l=a),this.tooltipPosition.moveXCrosshairs(o),!this.fixedTooltip){if(r.config.chart.type==="radar"){var h=this.ttCtx.getElGrid().getBoundingClientRect();o=this.ttCtx.e.clientX-h.left}this.tooltipPosition.moveTooltip(o,l,r.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var e=this.w,i=this,a=this.ttCtx,r=t,o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),l=e.config.markers.hover.size,h=0;h<o.length;h++){var f=o[h].getAttribute("rel"),g=o[h].getAttribute("index");if(l===void 0&&(l=e.globals.markers.size[g]+e.config.markers.hover.sizeOffset),r===parseInt(f,10)){i.newPointSize(r,o[h]);var p=o[h].getAttribute("cx"),x=o[h].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(p),a.fixedTooltip||i.tooltipPosition.moveTooltip(p,x,l)}else i.oldPointSize(o[h])}}},{key:"newPointSize",value:function(t,e){var i=this.w,a=i.config.markers.hover.size,r=t===0?e.parentNode.firstChild:e.parentNode.lastChild;if(r.getAttribute("default-marker-size")!=="0"){var o=parseInt(r.getAttribute("index"),10);a===void 0&&(a=i.globals.markers.size[o]+i.config.markers.hover.sizeOffset),a<0&&(a=0),r.setAttribute("r",a)}}},{key:"oldPointSize",value:function(t){var e=parseFloat(t.getAttribute("default-marker-size"));t.setAttribute("r",e)}},{key:"resetPointsSize",value:function(){for(var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),e=0;e<t.length;e++){var i=parseFloat(t[e].getAttribute("default-marker-size"));R.isNumber(i)&&i>=0?t[e].setAttribute("r",i):t[e].setAttribute("r",0)}}}]),_}(),Na=function(){function _(t){y(this,_),this.w=t.w;var e=this.w;this.ttCtx=t,this.isVerticalGroupedRangeBar=!e.globals.isBarHorizontal&&e.config.chart.type==="rangeBar"&&e.config.plotOptions.bar.rangeBarGroupRows}return L(_,[{key:"getAttr",value:function(t,e){return parseFloat(t.target.getAttribute(e))}},{key:"handleHeatTreeTooltip",value:function(t){var e=t.e,i=t.opt,a=t.x,r=t.y,o=t.type,l=this.ttCtx,h=this.w;if(e.target.classList.contains("apexcharts-".concat(o,"-rect"))){var f=this.getAttr(e,"i"),g=this.getAttr(e,"j"),p=this.getAttr(e,"cx"),x=this.getAttr(e,"cy"),v=this.getAttr(e,"width"),w=this.getAttr(e,"height");if(l.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:f,j:g,shared:!1,e}),h.globals.capturedSeriesIndex=f,h.globals.capturedDataPointIndex=g,a=p+l.tooltipRect.ttWidth/2+v,r=x+l.tooltipRect.ttHeight/2-w/2,l.tooltipPosition.moveXCrosshairs(p+v/2),a>h.globals.gridWidth/2&&(a=p-l.tooltipRect.ttWidth/2+v),l.w.config.tooltip.followCursor){var A=h.globals.dom.elWrap.getBoundingClientRect();a=h.globals.clientX-A.left-(a>h.globals.gridWidth/2?l.tooltipRect.ttWidth:0),r=h.globals.clientY-A.top-(r>h.globals.gridHeight/2?l.tooltipRect.ttHeight:0)}}return{x:a,y:r}}},{key:"handleMarkerTooltip",value:function(t){var e,i,a=t.e,r=t.opt,o=t.x,l=t.y,h=this.w,f=this.ttCtx;if(a.target.classList.contains("apexcharts-marker")){var g=parseInt(r.paths.getAttribute("cx"),10),p=parseInt(r.paths.getAttribute("cy"),10),x=parseFloat(r.paths.getAttribute("val"));if(i=parseInt(r.paths.getAttribute("rel"),10),e=parseInt(r.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,f.intersect){var v=R.findAncestor(r.paths,"apexcharts-series");v&&(e=parseInt(v.getAttribute("data:realIndex"),10))}if(f.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:e,j:i,shared:!f.showOnIntersect&&h.config.tooltip.shared,e:a}),a.type==="mouseup"&&f.markerClick(a,e,i),h.globals.capturedSeriesIndex=e,h.globals.capturedDataPointIndex=i,o=g,l=p+h.globals.translateY-1.4*f.tooltipRect.ttHeight,f.w.config.tooltip.followCursor){var w=f.getElGrid().getBoundingClientRect();l=f.e.clientY+h.globals.translateY-w.top}x<0&&(l=p),f.marker.enlargeCurrentPoint(i,r.paths,o,l)}return{x:o,y:l}}},{key:"handleBarTooltip",value:function(t){var e,i,a=t.e,r=t.opt,o=this.w,l=this.ttCtx,h=l.getElTooltip(),f=0,g=0,p=0,x=this.getBarTooltipXY({e:a,opt:r});e=x.i;var v=x.barHeight,w=x.j;o.globals.capturedSeriesIndex=e,o.globals.capturedDataPointIndex=w,o.globals.isBarHorizontal&&l.tooltipUtil.hasBars()||!o.config.tooltip.shared?(g=x.x,p=x.y,i=Array.isArray(o.config.stroke.width)?o.config.stroke.width[e]:o.config.stroke.width,f=g):o.globals.comboCharts||o.config.tooltip.shared||(f/=2),isNaN(p)&&(p=o.globals.svgHeight-l.tooltipRect.ttHeight);var A=parseInt(r.paths.parentNode.getAttribute("data:realIndex"),10),S=o.globals.isMultipleYAxis?o.config.yaxis[A]&&o.config.yaxis[A].reversed:o.config.yaxis[0].reversed;if(g+l.tooltipRect.ttWidth>o.globals.gridWidth&&!S?g-=l.tooltipRect.ttWidth:g<0&&(g=0),l.w.config.tooltip.followCursor){var E=l.getElGrid().getBoundingClientRect();p=l.e.clientY-E.top}l.tooltip===null&&(l.tooltip=o.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),o.config.tooltip.shared||(o.globals.comboBarCount>0?l.tooltipPosition.moveXCrosshairs(f+i/2):l.tooltipPosition.moveXCrosshairs(f)),!l.fixedTooltip&&(!o.config.tooltip.shared||o.globals.isBarHorizontal&&l.tooltipUtil.hasBars())&&(S&&(g-=l.tooltipRect.ttWidth)<0&&(g=0),!S||o.globals.isBarHorizontal&&l.tooltipUtil.hasBars()||(p=p+v-2*(o.globals.series[e][w]<0?v:0)),p=p+o.globals.translateY-l.tooltipRect.ttHeight/2,h.style.left=g+o.globals.translateX+"px",h.style.top=p+"px")}},{key:"getBarTooltipXY",value:function(t){var e=this,i=t.e,a=t.opt,r=this.w,o=null,l=this.ttCtx,h=0,f=0,g=0,p=0,x=0,v=i.target.classList;if(v.contains("apexcharts-bar-area")||v.contains("apexcharts-candlestick-area")||v.contains("apexcharts-boxPlot-area")||v.contains("apexcharts-rangebar-area")){var w=i.target,A=w.getBoundingClientRect(),S=a.elGrid.getBoundingClientRect(),E=A.height;x=A.height;var I=A.width,u=parseInt(w.getAttribute("cx"),10),b=parseInt(w.getAttribute("cy"),10);p=parseFloat(w.getAttribute("barWidth"));var k=i.type==="touchmove"?i.touches[0].clientX:i.clientX;o=parseInt(w.getAttribute("j"),10),h=parseInt(w.parentNode.getAttribute("rel"),10)-1;var P=w.getAttribute("data-range-y1"),T=w.getAttribute("data-range-y2");r.globals.comboCharts&&(h=parseInt(w.parentNode.getAttribute("data:realIndex"),10));var O=function(N){return r.globals.isXNumeric?u-I/2:e.isVerticalGroupedRangeBar?u+I/2:u-l.dataPointsDividedWidth+I/2},F=function(){return b-l.dataPointsDividedHeight+E/2-l.tooltipRect.ttHeight/2};l.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:h,j:o,y1:P?parseInt(P,10):null,y2:T?parseInt(T,10):null,shared:!l.showOnIntersect&&r.config.tooltip.shared,e:i}),r.config.tooltip.followCursor?r.globals.isBarHorizontal?(f=k-S.left+15,g=F()):(f=O(),g=i.clientY-S.top-l.tooltipRect.ttHeight/2-15):r.globals.isBarHorizontal?((f=u)<l.xyRatios.baseLineInvertedY&&(f=u-l.tooltipRect.ttWidth),g=F()):(f=O(),g=b)}return{x:f,y:g,barHeight:x,barWidth:p,i:h,j:o}}}]),_}(),me=function(){function _(t){y(this,_),this.w=t.w,this.ttCtx=t}return L(_,[{key:"drawXaxisTooltip",value:function(){var t=this.w,e=this.ttCtx,i=t.config.xaxis.position==="bottom";e.xaxisOffY=i?t.globals.gridHeight+1:-t.globals.xAxisHeight-t.config.xaxis.axisTicks.height+3;var a=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",r=t.globals.dom.elWrap;e.isXAxisTooltipEnabled&&t.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")===null&&(e.xaxisTooltip=document.createElement("div"),e.xaxisTooltip.setAttribute("class",a+" apexcharts-theme-"+t.config.tooltip.theme),r.appendChild(e.xaxisTooltip),e.xaxisTooltipText=document.createElement("div"),e.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),e.xaxisTooltipText.style.fontFamily=t.config.xaxis.tooltip.style.fontFamily||t.config.chart.fontFamily,e.xaxisTooltipText.style.fontSize=t.config.xaxis.tooltip.style.fontSize,e.xaxisTooltip.appendChild(e.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var t=this.w,e=this.ttCtx,i=function(r){var o=t.config.yaxis[r].opposite||t.config.yaxis[r].crosshairs.opposite;e.yaxisOffX=o?t.globals.gridWidth+1:1;var l="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(r,o?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");t.globals.yAxisSameScaleIndices.map(function(f,g){f.map(function(p,x){x===r&&(l+=t.config.yaxis[x].show?" ":" apexcharts-yaxistooltip-hidden")})});var h=t.globals.dom.elWrap;t.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(r))===null&&(e.yaxisTooltip=document.createElement("div"),e.yaxisTooltip.setAttribute("class",l+" apexcharts-theme-"+t.config.tooltip.theme),h.appendChild(e.yaxisTooltip),r===0&&(e.yaxisTooltipText=[]),e.yaxisTooltipText[r]=document.createElement("div"),e.yaxisTooltipText[r].classList.add("apexcharts-yaxistooltip-text"),e.yaxisTooltip.appendChild(e.yaxisTooltipText[r]))},a=0;a<t.config.yaxis.length;a++)i(a)}},{key:"setXCrosshairWidth",value:function(){var t=this.w,e=this.ttCtx,i=e.getElXCrosshairs();if(e.xcrosshairsWidth=parseInt(t.config.xaxis.crosshairs.width,10),t.globals.comboCharts){var a=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(a!==null&&t.config.xaxis.crosshairs.width==="barWidth"){var r=parseFloat(a.getAttribute("barWidth"));e.xcrosshairsWidth=r}else if(t.config.xaxis.crosshairs.width==="tickWidth"){var o=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/o}}else if(t.config.xaxis.crosshairs.width==="tickWidth"){var l=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/l}else if(t.config.xaxis.crosshairs.width==="barWidth"){var h=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(h!==null){var f=parseFloat(h.getAttribute("barWidth"));e.xcrosshairsWidth=f}else e.xcrosshairsWidth=1}t.globals.isBarHorizontal&&(e.xcrosshairsWidth=0),i!==null&&e.xcrosshairsWidth>0&&i.setAttribute("width",e.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var t=this.w,e=this.ttCtx;e.ycrosshairs=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(t,e,i){var a=this.ttCtx,r=this.w,o=r.globals.yLabelFormatters[t];if(a.yaxisTooltips[t]){var l=a.getElGrid().getBoundingClientRect(),h=(e-l.top)*i.yRatio[t],f=r.globals.maxYArr[t]-r.globals.minYArr[t],g=r.globals.minYArr[t]+(f-h);a.tooltipPosition.moveYCrosshairs(e-l.top),a.yaxisTooltipText[t].innerHTML=o(g),a.tooltipPosition.moveYAxisTooltip(t)}}}]),_}(),_e=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w;var e=this.w;this.tConfig=e.config.tooltip,this.tooltipUtil=new ye(this),this.tooltipLabels=new ci(this),this.tooltipPosition=new sa(this),this.marker=new Li(this),this.intersect=new Na(this),this.axesTooltip=new me(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!e.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return L(_,[{key:"getElTooltip",value:function(t){return t||(t=this),t.w.globals.dom.baseEl?t.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(t){var e=this.w;this.xyRatios=t,this.isXAxisTooltipEnabled=e.config.xaxis.tooltip.enabled&&e.globals.axisCharts,this.yaxisTooltips=e.config.yaxis.map(function(o,l){return!!(o.show&&o.tooltip.enabled&&e.globals.axisCharts)}),this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),e.config.tooltip.cssClass&&i.classList.add(e.config.tooltip.cssClass),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),e.globals.dom.elWrap.appendChild(i),e.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var a=new ze(this.ctx);this.xAxisTicksPositions=a.getXAxisTicksPositions()}if(!e.globals.comboCharts&&!this.tConfig.intersect&&e.config.chart.type!=="rangeBar"||this.tConfig.shared||(this.showOnIntersect=!0),e.config.markers.size!==0&&e.globals.markers.largestSize!==0||this.marker.drawDynamicPoints(this),e.globals.collapsedSeries.length!==e.globals.series.length){this.dataPointsDividedHeight=e.globals.gridHeight/e.globals.dataPoints,this.dataPointsDividedWidth=e.globals.gridWidth/e.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var r=e.globals.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(r=this.showOnIntersect?1:e.globals.series.length),this.legendLabels=e.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(r),this.addSVGEvents()}}},{key:"createTTElements",value:function(t){for(var e=this,i=this.w,a=[],r=this.getElTooltip(),o=function(h){var f=document.createElement("div");f.classList.add("apexcharts-tooltip-series-group"),f.style.order=i.config.tooltip.inverseOrder?t-h:h+1,e.tConfig.shared&&e.tConfig.enabledOnSeries&&Array.isArray(e.tConfig.enabledOnSeries)&&e.tConfig.enabledOnSeries.indexOf(h)<0&&f.classList.add("apexcharts-tooltip-series-group-hidden");var g=document.createElement("span");g.classList.add("apexcharts-tooltip-marker"),g.style.backgroundColor=i.globals.colors[h],f.appendChild(g);var p=document.createElement("div");p.classList.add("apexcharts-tooltip-text"),p.style.fontFamily=e.tConfig.style.fontFamily||i.config.chart.fontFamily,p.style.fontSize=e.tConfig.style.fontSize,["y","goals","z"].forEach(function(x){var v=document.createElement("div");v.classList.add("apexcharts-tooltip-".concat(x,"-group"));var w=document.createElement("span");w.classList.add("apexcharts-tooltip-text-".concat(x,"-label")),v.appendChild(w);var A=document.createElement("span");A.classList.add("apexcharts-tooltip-text-".concat(x,"-value")),v.appendChild(A),p.appendChild(v)}),f.appendChild(p),r.appendChild(f),a.push(f)},l=0;l<t;l++)o(l);return a}},{key:"addSVGEvents",value:function(){var t=this.w,e=t.config.chart.type,i=this.getElTooltip(),a=!(e!=="bar"&&e!=="candlestick"&&e!=="boxPlot"&&e!=="rangeBar"),r=e==="area"||e==="line"||e==="scatter"||e==="bubble"||e==="radar",o=t.globals.dom.Paper.node,l=this.getElGrid();l&&(this.seriesBound=l.getBoundingClientRect());var h,f=[],g=[],p={hoverArea:o,elGrid:l,tooltipEl:i,tooltipY:f,tooltipX:g,ttItems:this.ttItems};if(t.globals.axisCharts&&(r?h=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):a?h=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):e!=="heatmap"&&e!=="treemap"||(h=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),h&&h.length))for(var x=0;x<h.length;x++)f.push(h[x].getAttribute("cy")),g.push(h[x].getAttribute("cx"));if(t.globals.xyCharts&&!this.showOnIntersect||t.globals.comboCharts&&!this.showOnIntersect||a&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([o],p);else if(a&&!t.globals.comboCharts||r&&this.showOnIntersect)this.addDatapointEventsListeners(p);else if(!t.globals.axisCharts||e==="heatmap"||e==="treemap"){var v=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(v,p)}if(this.showOnIntersect){var w=t.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");w.length>0&&this.addPathsEventListeners(w,p),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(p)}}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=this.getElTooltip(),i=e.getBoundingClientRect(),a=i.width+10,r=i.height+10,o=this.tConfig.fixed.offsetX,l=this.tConfig.fixed.offsetY,h=this.tConfig.fixed.position.toLowerCase();return h.indexOf("right")>-1&&(o=o+t.globals.svgWidth-a+10),h.indexOf("bottom")>-1&&(l=l+t.globals.svgHeight-r-10),e.style.left=o+"px",e.style.top=l+"px",{x:o,y:l,ttWidth:a,ttHeight:r}}},{key:"addDatapointEventsListeners",value:function(t){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(e,t)}},{key:"addPathsEventListeners",value:function(t,e){for(var i=this,a=function(o){var l={paths:t[o],tooltipEl:e.tooltipEl,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:e.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(h){return t[o].addEventListener(h,i.onSeriesHover.bind(i,l),{capture:!1,passive:!0})})},r=0;r<t.length;r++)a(r)}},{key:"onSeriesHover",value:function(t,e){var i=this,a=Date.now()-this.lastHoverTime;a>=100?this.seriesHover(t,e):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){i.seriesHover(t,e)},100-a))}},{key:"seriesHover",value:function(t,e){var i=this;this.lastHoverTime=Date.now();var a=[],r=this.w;r.config.chart.group&&(a=this.ctx.getGroupedCharts()),r.globals.axisCharts&&(r.globals.minX===-1/0&&r.globals.maxX===1/0||r.globals.dataPoints===0)||(a.length?a.forEach(function(o){var l=i.getElTooltip(o),h={paths:t.paths,tooltipEl:l,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:o.w.globals.tooltip.ttItems};o.w.globals.minX===i.w.globals.minX&&o.w.globals.maxX===i.w.globals.maxX&&o.w.globals.tooltip.seriesHoverByContext({chartCtx:o,ttCtx:o.w.globals.tooltip,opt:h,e})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:t,e}))}},{key:"seriesHoverByContext",value:function(t){var e=t.chartCtx,i=t.ttCtx,a=t.opt,r=t.e,o=e.w,l=this.getElTooltip();l&&(i.tooltipRect={x:0,y:0,ttWidth:l.getBoundingClientRect().width,ttHeight:l.getBoundingClientRect().height},i.e=r,i.tooltipUtil.hasBars()&&!o.globals.comboCharts&&!i.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new Qt(e).toggleSeriesOnHover(r,r.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),o.globals.axisCharts?i.axisChartsTooltips({e:r,opt:a,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:r,opt:a,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(t){var e,i,a=t.e,r=t.opt,o=this.w,l=r.elGrid.getBoundingClientRect(),h=a.type==="touchmove"?a.touches[0].clientX:a.clientX,f=a.type==="touchmove"?a.touches[0].clientY:a.clientY;if(this.clientY=f,this.clientX=h,o.globals.capturedSeriesIndex=-1,o.globals.capturedDataPointIndex=-1,f<l.top||f>l.top+l.height)this.handleMouseOut(r);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!o.config.tooltip.shared){var g=parseInt(r.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(g)<0)return void this.handleMouseOut(r)}var p=this.getElTooltip(),x=this.getElXCrosshairs(),v=o.globals.xyCharts||o.config.chart.type==="bar"&&!o.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||o.globals.comboCharts&&this.tooltipUtil.hasBars();if(a.type==="mousemove"||a.type==="touchmove"||a.type==="mouseup"){if(o.globals.collapsedSeries.length+o.globals.ancillaryCollapsedSeries.length===o.globals.series.length)return;x!==null&&x.classList.add("apexcharts-active");var w=this.yaxisTooltips.filter(function(E){return E===!0});if(this.ycrosshairs!==null&&w.length&&this.ycrosshairs.classList.add("apexcharts-active"),v&&!this.showOnIntersect)this.handleStickyTooltip(a,h,f,r);else if(o.config.chart.type==="heatmap"||o.config.chart.type==="treemap"){var A=this.intersect.handleHeatTreeTooltip({e:a,opt:r,x:e,y:i,type:o.config.chart.type});e=A.x,i=A.y,p.style.left=e+"px",p.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:a,opt:r}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:a,opt:r,x:e,y:i});if(this.yaxisTooltips.length)for(var S=0;S<o.config.yaxis.length;S++)this.axesTooltip.drawYaxisTooltipText(S,f,this.xyRatios);r.tooltipEl.classList.add("apexcharts-active")}else a.type!=="mouseout"&&a.type!=="touchend"||this.handleMouseOut(r)}}},{key:"nonAxisChartsTooltips",value:function(t){var e=t.e,i=t.opt,a=t.tooltipRect,r=this.w,o=i.paths.getAttribute("rel"),l=this.getElTooltip(),h=r.globals.dom.elWrap.getBoundingClientRect();if(e.type==="mousemove"||e.type==="touchmove"){l.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(o,10)-1,shared:!1});var f=r.globals.clientX-h.left-a.ttWidth/2,g=r.globals.clientY-h.top-a.ttHeight-10;if(l.style.left=f+"px",l.style.top=g+"px",r.config.legend.tooltipHoverFormatter){var p=o-1,x=(0,r.config.legend.tooltipHoverFormatter)(this.legendLabels[p].getAttribute("data:default-text"),{seriesIndex:p,dataPointIndex:p,w:r});this.legendLabels[p].innerHTML=x}}else e.type!=="mouseout"&&e.type!=="touchend"||(l.classList.remove("apexcharts-active"),r.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(v){var w=v.getAttribute("data:default-text");v.innerHTML=decodeURIComponent(w)}))}},{key:"handleStickyTooltip",value:function(t,e,i,a){var r=this.w,o=this.tooltipUtil.getNearestValues({context:this,hoverArea:a.hoverArea,elGrid:a.elGrid,clientX:e,clientY:i}),l=o.j,h=o.capturedSeries;r.globals.collapsedSeriesIndices.includes(h)&&(h=null);var f=a.elGrid.getBoundingClientRect();if(o.hoverX<0||o.hoverX>f.width)this.handleMouseOut(a);else if(h!==null)this.handleStickyCapturedSeries(t,h,a,l);else if(this.tooltipUtil.isXoverlap(l)||r.globals.isBarHorizontal){var g=r.globals.series.findIndex(function(p,x){return!r.globals.collapsedSeriesIndices.includes(x)});this.create(t,this,g,l,a.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(t,e,i,a){var r=this.w;if(!this.tConfig.shared&&r.globals.series[e][a]===null)return void this.handleMouseOut(i);if(r.globals.series[e][a]!==void 0)this.tConfig.shared&&this.tooltipUtil.isXoverlap(a)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,a,i.ttItems):this.create(t,this,e,a,i.ttItems,!1);else if(this.tooltipUtil.isXoverlap(a)){var o=r.globals.series.findIndex(function(l,h){return!r.globals.collapsedSeriesIndices.includes(h)});this.create(t,this,o,a,i.ttItems)}}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new V(this.ctx),i=t.globals.dom.Paper.select(".apexcharts-bar-area"),a=0;a<i.length;a++)e.pathMouseLeave(i[a])}},{key:"handleMouseOut",value:function(t){var e=this.w,i=this.getElXCrosshairs();if(t.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),e.config.chart.type!=="bubble"&&this.marker.resetPointsSize(),i!==null&&i.classList.remove("apexcharts-active"),this.ycrosshairs!==null&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){this.yaxisTTEls===null&&(this.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var a=0;a<this.yaxisTTEls.length;a++)this.yaxisTTEls[a].classList.remove("apexcharts-active")}e.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(r){var o=r.getAttribute("data:default-text");r.innerHTML=decodeURIComponent(o)})}},{key:"markerClick",value:function(t,e,i){var a=this.w;typeof a.config.chart.events.markerClick=="function"&&a.config.chart.events.markerClick(t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:a}),this.ctx.events.fireEvent("markerClick",[t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:a}])}},{key:"create",value:function(t,e,i,a,r){var o,l,h,f,g,p,x,v,w,A,S,E,I,u,b,k,P=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,T=this.w,O=e;t.type==="mouseup"&&this.markerClick(t,i,a),P===null&&(P=this.tConfig.shared);var F=this.tooltipUtil.hasMarkers(i),N=this.tooltipUtil.getElBars();if(T.config.legend.tooltipHoverFormatter){var B=T.config.legend.tooltipHoverFormatter,$=Array.from(this.legendLabels);$.forEach(function(Fe){var we=Fe.getAttribute("data:default-text");Fe.innerHTML=decodeURIComponent(we)});for(var j=0;j<$.length;j++){var st=$[j],dt=parseInt(st.getAttribute("i"),10),mt=decodeURIComponent(st.getAttribute("data:default-text")),At=B(mt,{seriesIndex:P?dt:i,dataPointIndex:a,w:T});if(P)st.innerHTML=T.globals.collapsedSeriesIndices.indexOf(dt)<0?At:mt;else if(st.innerHTML=dt===i?At:mt,i===dt)break}}var It=d(d({ttItems:r,i,j:a},((o=T.globals.seriesRange)===null||o===void 0||(l=o[i])===null||l===void 0||(h=l[a])===null||h===void 0||(f=h.y[0])===null||f===void 0?void 0:f.y1)!==void 0&&{y1:(g=T.globals.seriesRange)===null||g===void 0||(p=g[i])===null||p===void 0||(x=p[a])===null||x===void 0||(v=x.y[0])===null||v===void 0?void 0:v.y1}),((w=T.globals.seriesRange)===null||w===void 0||(A=w[i])===null||A===void 0||(S=A[a])===null||S===void 0||(E=S.y[0])===null||E===void 0?void 0:E.y2)!==void 0&&{y2:(I=T.globals.seriesRange)===null||I===void 0||(u=I[i])===null||u===void 0||(b=u[a])===null||b===void 0||(k=b.y[0])===null||k===void 0?void 0:k.y2});if(P){if(O.tooltipLabels.drawSeriesTexts(d(d({},It),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),F)T.globals.markers.largestSize>0?O.marker.enlargePoints(a):O.tooltipPosition.moveDynamicPointsOnHover(a);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(N),this.barSeriesHeight>0)){var Ct=new V(this.ctx),Bt=T.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(a,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(a,i);for(var qt=0;qt<Bt.length;qt++)Ct.pathMouseEnter(Bt[qt])}}else O.tooltipLabels.drawSeriesTexts(d({shared:!1},It)),this.tooltipUtil.hasBars()&&O.tooltipPosition.moveStickyTooltipOverBars(a,i),F&&O.tooltipPosition.moveMarkers(i,a)}}]),_}(),Xa=function(){function _(t){y(this,_),this.w=t.w,this.barCtx=t,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return L(_,[{key:"handleBarDataLabels",value:function(t){var e=t.x,i=t.y,a=t.y1,r=t.y2,o=t.i,l=t.j,h=t.realIndex,f=t.groupIndex,g=t.series,p=t.barHeight,x=t.barWidth,v=t.barXPosition,w=t.barYPosition,A=t.visibleSeries,S=t.renderedPath,E=this.w,I=new V(this.barCtx.ctx),u=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[h]:this.barCtx.strokeWidth,b=e+parseFloat(x*A),k=i+parseFloat(p*A);E.globals.isXNumeric&&!E.globals.isBarHorizontal&&(b=e+parseFloat(x*(A+1)),k=i+parseFloat(p*(A+1))-u);var P,T=null,O=e,F=i,N={},B=E.config.dataLabels,$=this.barCtx.barOptions.dataLabels,j=this.barCtx.barOptions.dataLabels.total;w!==void 0&&this.barCtx.isRangeBar&&(k=w,F=w),v!==void 0&&this.barCtx.isVerticalGroupedRangeBar&&(b=v,O=v);var st=B.offsetX,dt=B.offsetY,mt={width:0,height:0};if(E.config.dataLabels.enabled){var At=this.barCtx.series[o][l];mt=I.getTextRects(E.globals.yLabelFormatters[0](At),parseFloat(B.style.fontSize))}var It={x:e,y:i,i:o,j:l,realIndex:h,groupIndex:f||-1,renderedPath:S,bcx:b,bcy:k,barHeight:p,barWidth:x,textRects:mt,strokeWidth:u,dataLabelsX:O,dataLabelsY:F,dataLabelsConfig:B,barDataLabelsConfig:$,barTotalDataLabelsConfig:j,offX:st,offY:dt};return N=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(It):this.calculateColumnsDataLabelsPosition(It),S.attr({cy:N.bcy,cx:N.bcx,j:l,val:g[o][l],barHeight:p,barWidth:x}),P=this.drawCalculatedDataLabels({x:N.dataLabelsX,y:N.dataLabelsY,val:this.barCtx.isRangeBar?[a,r]:g[o][l],i:h,j:l,barWidth:x,barHeight:p,textRects:mt,dataLabelsConfig:B}),E.config.chart.stacked&&j.enabled&&(T=this.drawTotalDataLabels({x:N.totalDataLabelsX,y:N.totalDataLabelsY,barWidth:x,barHeight:p,realIndex:h,textAnchor:N.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:h,j:l}),dataLabelsConfig:B,barTotalDataLabelsConfig:j})),{dataLabels:P,totalDataLabels:T}}},{key:"getStackedTotalDataLabel",value:function(t){var e=t.realIndex,i=t.j,a=this.w,r=this.barCtx.stackedSeriesTotals[i];return this.totalFormatter&&(r=this.totalFormatter(r,d(d({},a),{},{seriesIndex:e,dataPointIndex:i,w:a}))),r}},{key:"calculateColumnsDataLabelsPosition",value:function(t){var e,i,a=this.w,r=t.i,o=t.j,l=t.realIndex,h=t.groupIndex,f=t.y,g=t.bcx,p=t.barWidth,x=t.barHeight,v=t.textRects,w=t.dataLabelsX,A=t.dataLabelsY,S=t.dataLabelsConfig,E=t.barDataLabelsConfig,I=t.barTotalDataLabelsConfig,u=t.strokeWidth,b=t.offX,k=t.offY;x=Math.abs(x);var P=a.config.plotOptions.bar.dataLabels.orientation==="vertical",T=this.barCtx.barHelpers.getZeroValueEncounters({i:r,j:o}).zeroEncounters;g=g-u/2+(h!==-1?h*p:0);var O=a.globals.gridWidth/a.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?w+=p/2:(w=a.globals.isXNumeric?g-p/2+b:g-O+p/2+b,T>0&&a.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(w-=p*T)),P&&(w=w+v.height/2-u/2-2);var F=this.barCtx.series[r][o]<0,N=f;switch(this.barCtx.isReversed&&(N=f-x+(F?2*x:0),f-=x),E.position){case"center":A=P?F?N-x/2+k:N+x/2-k:F?N-x/2+v.height/2+k:N+x/2+v.height/2-k;break;case"bottom":A=P?F?N-x+k:N+x-k:F?N-x+v.height+u+k:N+x-v.height/2+u-k;break;case"top":A=P?F?N+k:N-k:F?N-v.height/2-k:N+v.height+k}if(this.barCtx.lastActiveBarSerieIndex===l&&I.enabled){var B=new V(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:l,j:o}),S.fontSize);e=F?N-B.height/2-k-I.offsetY+18:N+B.height+k+I.offsetY-18,i=w+I.offsetX}return a.config.chart.stacked||(A<0?A=0+u:A+v.height/3>a.globals.gridHeight&&(A=a.globals.gridHeight-u)),{bcx:g,bcy:f,dataLabelsX:w,dataLabelsY:A,totalDataLabelsX:i,totalDataLabelsY:e,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(t){var e=this.w,i=t.x,a=t.i,r=t.j,o=t.realIndex,l=t.groupIndex,h=t.bcy,f=t.barHeight,g=t.barWidth,p=t.textRects,x=t.dataLabelsX,v=t.strokeWidth,w=t.dataLabelsConfig,A=t.barDataLabelsConfig,S=t.barTotalDataLabelsConfig,E=t.offX,I=t.offY,u=e.globals.gridHeight/e.globals.dataPoints;g=Math.abs(g);var b,k,P=(h+=l!==-1?l*f:0)-(this.barCtx.isRangeBar?0:u)+f/2+p.height/2+I-3,T="start",O=this.barCtx.series[a][r]<0,F=i;switch(this.barCtx.isReversed&&(F=i+g-(O?2*g:0),i=e.globals.gridWidth-g),A.position){case"center":x=O?F+g/2-E:Math.max(p.width/2,F-g/2)+E;break;case"bottom":x=O?F+g-v-Math.round(p.width/2)-E:F-g+v+Math.round(p.width/2)+E;break;case"top":x=O?F-v+Math.round(p.width/2)-E:F-v-Math.round(p.width/2)+E}if(this.barCtx.lastActiveBarSerieIndex===o&&S.enabled){var N=new V(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:r}),w.fontSize);O?(b=F-v+Math.round(N.width/2)-E-S.offsetX-15,T="end"):b=F-v-Math.round(N.width/2)+E+S.offsetX+15,k=P+S.offsetY}return e.config.chart.stacked||(x<0?x=x+p.width+v:x+p.width/2>e.globals.gridWidth&&(x=e.globals.gridWidth-p.width-v)),{bcx:i,bcy:h,dataLabelsX:x,dataLabelsY:P,totalDataLabelsX:b,totalDataLabelsY:k,totalDataLabelsAnchor:T}}},{key:"drawCalculatedDataLabels",value:function(t){var e=t.x,i=t.y,a=t.val,r=t.i,o=t.j,l=t.textRects,h=t.barHeight,f=t.barWidth,g=t.dataLabelsConfig,p=this.w,x="rotate(0)";p.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(x="rotate(-90, ".concat(e,", ").concat(i,")"));var v=new li(this.barCtx.ctx),w=new V(this.barCtx.ctx),A=g.formatter,S=null,E=p.globals.collapsedSeriesIndices.indexOf(r)>-1;if(g.enabled&&!E){S=w.group({class:"apexcharts-data-labels",transform:x});var I="";a!==void 0&&(I=A(a,d(d({},p),{},{seriesIndex:r,dataPointIndex:o,w:p}))),!a&&p.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(I="");var u=p.globals.series[r][o]<0,b=p.config.plotOptions.bar.dataLabels.position;p.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(b==="top"&&(g.textAnchor=u?"end":"start"),b==="center"&&(g.textAnchor="middle"),b==="bottom"&&(g.textAnchor=u?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&f<w.getTextRects(I,parseFloat(g.style.fontSize)).width&&(I=""),p.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?l.width/1.6>Math.abs(f)&&(I=""):l.height/1.6>Math.abs(h)&&(I=""));var k=d({},g);this.barCtx.isHorizontal&&a<0&&(g.textAnchor==="start"?k.textAnchor="end":g.textAnchor==="end"&&(k.textAnchor="start")),v.plotDataLabelsText({x:e,y:i,text:I,i:r,j:o,parent:S,dataLabelsConfig:k,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return S}},{key:"drawTotalDataLabels",value:function(t){var e,i=t.x,a=t.y,r=t.val,o=t.barWidth,l=t.barHeight,h=t.realIndex,f=t.textAnchor,g=t.barTotalDataLabelsConfig,p=this.w,x=new V(this.barCtx.ctx);return g.enabled&&i!==void 0&&a!==void 0&&this.barCtx.lastActiveBarSerieIndex===h&&(e=x.drawText({x:i-(!p.globals.isBarHorizontal&&p.globals.seriesGroups.length?o/p.globals.seriesGroups.length:0),y:a-(p.globals.isBarHorizontal&&p.globals.seriesGroups.length?l/p.globals.seriesGroups.length:0),foreColor:g.style.color,text:r,textAnchor:f,fontFamily:g.style.fontFamily,fontSize:g.style.fontSize,fontWeight:g.style.fontWeight})),e}}]),_}(),vh=function(){function _(t){y(this,_),this.w=t.w,this.barCtx=t}return L(_,[{key:"initVariables",value:function(t){var e=this.w;this.barCtx.series=t,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i<t.length;i++)if(t[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=t[i].length),e.globals.isXNumeric)for(var a=0;a<t[i].length;a++)e.globals.seriesX[i][a]>e.globals.minX&&e.globals.seriesX[i][a]<e.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=e.globals.dataPoints;this.barCtx.seriesLen===0&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],e.globals.comboCharts||this.checkZeroSeries({series:t})}},{key:"initialPositions",value:function(){var t,e,i,a,r,o,l,h,f=this.w,g=f.globals.dataPoints;this.barCtx.isRangeBar&&(g=f.globals.labels.length);var p=this.barCtx.seriesLen;if(f.config.plotOptions.bar.rangeBarGroupRows&&(p=1),this.barCtx.isHorizontal)r=(i=f.globals.gridHeight/g)/p,f.globals.isXNumeric&&(r=(i=f.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),r=r*parseInt(this.barCtx.barOptions.barHeight,10)/100,String(this.barCtx.barOptions.barHeight).indexOf("%")===-1&&(r=parseInt(this.barCtx.barOptions.barHeight,10)),h=this.barCtx.baseLineInvertedY+f.globals.padHorizontal+(this.barCtx.isReversed?f.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(h=f.globals.gridWidth/2),e=(i-r*this.barCtx.seriesLen)/2;else{if(a=f.globals.gridWidth/this.barCtx.visibleItems,f.config.xaxis.convertedCatToNumeric&&(a=f.globals.gridWidth/f.globals.dataPoints),o=a/p*parseInt(this.barCtx.barOptions.columnWidth,10)/100,f.globals.isXNumeric){var x=this.barCtx.xRatio;f.globals.minXDiff&&f.globals.minXDiff!==.5&&f.globals.minXDiff/x>0&&(a=f.globals.minXDiff/x),(o=a/p*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(o=1)}String(this.barCtx.barOptions.columnWidth).indexOf("%")===-1&&(o=parseInt(this.barCtx.barOptions.columnWidth,10)),l=f.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?f.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),t=f.globals.padHorizontal+(a-o*this.barCtx.seriesLen)/2}return f.globals.barHeight=r,f.globals.barWidth=o,{x:t,y:e,yDivision:i,xDivision:a,barHeight:r,barWidth:o,zeroH:l,zeroW:h}}},{key:"initializeStackedPrevVars",value:function(t){var e=t.w;e.globals.hasSeriesGroups?e.globals.seriesGroups.forEach(function(i){t[i]||(t[i]={}),t[i].prevY=[],t[i].prevX=[],t[i].prevYF=[],t[i].prevXF=[],t[i].prevYVal=[],t[i].prevXVal=[]}):(t.prevY=[],t.prevX=[],t.prevYF=[],t.prevXF=[],t.prevYVal=[],t.prevXVal=[])}},{key:"initializeStackedXYVars",value:function(t){var e=t.w;e.globals.hasSeriesGroups?e.globals.seriesGroups.forEach(function(i){t[i]||(t[i]={}),t[i].xArrj=[],t[i].xArrjF=[],t[i].xArrjVal=[],t[i].yArrj=[],t[i].yArrjF=[],t[i].yArrjVal=[]}):(t.xArrj=[],t.xArrjF=[],t.xArrjVal=[],t.yArrj=[],t.yArrjF=[],t.yArrjVal=[])}},{key:"getPathFillColor",value:function(t,e,i,a){var r,o,l,h,f=this.w,g=new Jt(this.barCtx.ctx),p=null,x=this.barCtx.barOptions.distributed?i:e;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(v){t[e][i]>=v.from&&t[e][i]<=v.to&&(p=v.color)}),f.config.series[e].data[i]&&f.config.series[e].data[i].fillColor&&(p=f.config.series[e].data[i].fillColor),g.fillPath({seriesNumber:this.barCtx.barOptions.distributed?x:a,dataPointIndex:i,color:p,value:t[e][i],fillConfig:(r=f.config.series[e].data[i])===null||r===void 0?void 0:r.fill,fillType:(o=f.config.series[e].data[i])!==null&&o!==void 0&&(l=o.fill)!==null&&l!==void 0&&l.type?(h=f.config.series[e].data[i])===null||h===void 0?void 0:h.fill.type:Array.isArray(f.config.fill.type)?f.config.fill.type[e]:f.config.fill.type})}},{key:"getStrokeWidth",value:function(t,e,i){var a=0,r=this.w;return this.barCtx.series[t][e]===void 0||this.barCtx.series[t][e]===null?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,r.config.stroke.show&&(this.barCtx.isNullValue||(a=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),a}},{key:"shouldApplyRadius",value:function(t){var e=this.w,i=!1;return e.config.plotOptions.bar.borderRadius>0&&(e.config.chart.stacked&&e.config.plotOptions.bar.borderRadiusWhenStacked==="last"?this.barCtx.lastActiveBarSerieIndex===t&&(i=!0):i=!0),i}},{key:"barBackground",value:function(t){var e=t.j,i=t.i,a=t.x1,r=t.x2,o=t.y1,l=t.y2,h=t.elSeries,f=this.w,g=new V(this.barCtx.ctx),p=new Qt(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&p===i){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e%=this.barCtx.barOptions.colors.backgroundBarColors.length);var x=this.barCtx.barOptions.colors.backgroundBarColors[e],v=g.drawRect(a!==void 0?a:0,o!==void 0?o:0,r!==void 0?r:f.globals.gridWidth,l!==void 0?l:f.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,x,this.barCtx.barOptions.colors.backgroundBarOpacity);h.add(v),v.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(t){var e,i=t.barWidth,a=t.barXPosition,r=t.y1,o=t.y2,l=t.strokeWidth,h=t.seriesGroup,f=t.realIndex,g=t.i,p=t.j,x=t.w,v=new V(this.barCtx.ctx);(l=Array.isArray(l)?l[f]:l)||(l=0);var w=i,A=a;(e=x.config.series[f].data[p])!==null&&e!==void 0&&e.columnWidthOffset&&(A=a-x.config.series[f].data[p].columnWidthOffset/2,w=i+x.config.series[f].data[p].columnWidthOffset);var S=A,E=A+w;r+=.001,o+=.001;var I=v.move(S,r),u=v.move(S,r),b=v.line(E-l,r);if(x.globals.previousPaths.length>0&&(u=this.barCtx.getPreviousPath(f,p,!1)),I=I+v.line(S,o)+v.line(E-l,o)+v.line(E-l,r)+(x.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),u=u+v.line(S,r)+b+b+b+b+b+v.line(S,r)+(x.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(f)&&(I=v.roundPathCorners(I,x.config.plotOptions.bar.borderRadius)),x.config.chart.stacked){var k=this.barCtx;x.globals.hasSeriesGroups&&h&&(k=this.barCtx[h]),k.yArrj.push(o),k.yArrjF.push(Math.abs(r-o)),k.yArrjVal.push(this.barCtx.series[g][p])}return{pathTo:I,pathFrom:u}}},{key:"getBarpaths",value:function(t){var e,i=t.barYPosition,a=t.barHeight,r=t.x1,o=t.x2,l=t.strokeWidth,h=t.seriesGroup,f=t.realIndex,g=t.i,p=t.j,x=t.w,v=new V(this.barCtx.ctx);(l=Array.isArray(l)?l[f]:l)||(l=0);var w=i,A=a;(e=x.config.series[f].data[p])!==null&&e!==void 0&&e.barHeightOffset&&(w=i-x.config.series[f].data[p].barHeightOffset/2,A=a+x.config.series[f].data[p].barHeightOffset);var S=w,E=w+A;r+=.001,o+=.001;var I=v.move(r,S),u=v.move(r,S);x.globals.previousPaths.length>0&&(u=this.barCtx.getPreviousPath(f,p,!1));var b=v.line(r,E-l);if(I=I+v.line(o,S)+v.line(o,E-l)+b+(x.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),u=u+v.line(r,S)+b+b+b+b+b+v.line(r,S)+(x.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(f)&&(I=v.roundPathCorners(I,x.config.plotOptions.bar.borderRadius)),x.config.chart.stacked){var k=this.barCtx;x.globals.hasSeriesGroups&&h&&(k=this.barCtx[h]),k.xArrj.push(o),k.xArrjF.push(Math.abs(r-o)),k.xArrjVal.push(this.barCtx.series[g][p])}return{pathTo:I,pathFrom:u}}},{key:"checkZeroSeries",value:function(t){for(var e=t.series,i=this.w,a=0;a<e.length;a++){for(var r=0,o=0;o<e[i.globals.maxValsInArrayIndex].length;o++)r+=e[a][o];r===0&&this.barCtx.zeroSerieses.push(a)}}},{key:"getXForValue",value:function(t,e){var i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?e:null;return t!=null&&(i=e+t/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?t/this.barCtx.invertedYRatio:0)),i}},{key:"getYForValue",value:function(t,e){var i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?e:null;return t!=null&&(i=e-t/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?t/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),i}},{key:"getGoalValues",value:function(t,e,i,a,r){var o=this,l=this.w,h=[],f=function(x,v){var w;h.push((M(w={},t,t==="x"?o.getXForValue(x,e,!1):o.getYForValue(x,i,!1)),M(w,"attrs",v),w))};if(l.globals.seriesGoals[a]&&l.globals.seriesGoals[a][r]&&Array.isArray(l.globals.seriesGoals[a][r])&&l.globals.seriesGoals[a][r].forEach(function(x){f(x.value,x)}),this.barCtx.barOptions.isDumbbell&&l.globals.seriesRange.length){var g=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:l.globals.colors,p={strokeHeight:t==="x"?0:l.globals.markers.size[a],strokeWidth:t==="x"?l.globals.markers.size[a]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(g[a])?g[a][0]:g[a]};f(l.globals.seriesRangeStart[a][r],p),f(l.globals.seriesRangeEnd[a][r],d(d({},p),{},{strokeColor:Array.isArray(g[a])?g[a][1]:g[a]}))}return h}},{key:"drawGoalLine",value:function(t){var e=t.barXPosition,i=t.barYPosition,a=t.goalX,r=t.goalY,o=t.barWidth,l=t.barHeight,h=new V(this.barCtx.ctx),f=h.group({className:"apexcharts-bar-goals-groups"});f.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:f.node}),f.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var g=null;return this.barCtx.isHorizontal?Array.isArray(a)&&a.forEach(function(p){var x=p.attrs.strokeHeight!==void 0?p.attrs.strokeHeight:l/2,v=i+x+l/2;g=h.drawLine(p.x,v-2*x,p.x,v,p.attrs.strokeColor?p.attrs.strokeColor:void 0,p.attrs.strokeDashArray,p.attrs.strokeWidth?p.attrs.strokeWidth:2,p.attrs.strokeLineCap),f.add(g)}):Array.isArray(r)&&r.forEach(function(p){var x=p.attrs.strokeWidth!==void 0?p.attrs.strokeWidth:o/2,v=e+x+o/2;g=h.drawLine(v-2*x,p.y,v,p.y,p.attrs.strokeColor?p.attrs.strokeColor:void 0,p.attrs.strokeDashArray,p.attrs.strokeHeight?p.attrs.strokeHeight:2,p.attrs.strokeLineCap),f.add(g)}),f}},{key:"drawBarShadow",value:function(t){var e=t.prevPaths,i=t.currPaths,a=t.color,r=this.w,o=e.x,l=e.x1,h=e.barYPosition,f=i.x,g=i.x1,p=i.barYPosition,x=h+i.barHeight,v=new V(this.barCtx.ctx),w=new R,A=v.move(l,x)+v.line(o,x)+v.line(f,p)+v.line(g,p)+v.line(l,x)+(r.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z");return v.drawPath({d:A,fill:w.shadeColor(.5,R.rgb2hex(a)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(t){var e=t.i,i=t.j,a=this.w,r=0,o=0;return a.globals.seriesPercent.forEach(function(l,h){l[i]&&r++,h<e&&l[i]===0&&o++}),{nonZeroColumns:r,zeroEncounters:o}}}]),_}(),Hi=function(){function _(t,e){y(this,_),this.ctx=t,this.w=t.w;var i=this.w;this.barOptions=i.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=i.config.stroke.width,this.isNullValue=!1,this.isRangeBar=i.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!i.globals.isBarHorizontal&&i.globals.seriesRange.length&&i.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=e,this.xyRatios!==null&&(this.xRatio=e.xRatio,this.yRatio=e.yRatio,this.invertedXRatio=e.invertedXRatio,this.invertedYRatio=e.invertedYRatio,this.baseLineY=e.baseLineY,this.baseLineInvertedY=e.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.pathArr=[];var a=new Qt(this.ctx);this.lastActiveBarSerieIndex=a.getActiveConfigSeriesIndex("desc",["bar","column"]);var r=a.getBarSeriesIndices(),o=new it(this.ctx);this.stackedSeriesTotals=o.getStackedSeriesTotals(this.w.config.series.map(function(l,h){return r.indexOf(h)===-1?h:-1}).filter(function(l){return l!==-1})),this.barHelpers=new vh(this)}return L(_,[{key:"draw",value:function(t,e){var i=this.w,a=new V(this.ctx),r=new it(this.ctx,i);t=r.getLogSeries(t),this.series=t,this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);var o=a.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var l=0,h=0;l<t.length;l++,h++){var f,g,p,x,v=void 0,w=void 0,A=[],S=[],E=i.globals.comboCharts?e[l]:l,I=a.group({class:"apexcharts-series",rel:l+1,seriesName:R.escapeString(i.globals.seriesNames[E]),"data:realIndex":E});this.ctx.series.addCollapsedClassToSeries(I,E),t[l].length>0&&(this.visibleI=this.visibleI+1);var u=0,b=0;this.yRatio.length>1&&(this.yaxisIndex=E),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var k=this.barHelpers.initialPositions();w=k.y,u=k.barHeight,g=k.yDivision,x=k.zeroW,v=k.x,b=k.barWidth,f=k.xDivision,p=k.zeroH,this.horizontal||S.push(v+b/2);var P=a.group({class:"apexcharts-datalabels","data:realIndex":E});i.globals.delayedElements.push({el:P.node}),P.node.classList.add("apexcharts-element-hidden");var T=a.group({class:"apexcharts-bar-goals-markers"}),O=a.group({class:"apexcharts-bar-shadows"});i.globals.delayedElements.push({el:O.node}),O.node.classList.add("apexcharts-element-hidden");for(var F=0;F<i.globals.dataPoints;F++){var N=this.barHelpers.getStrokeWidth(l,F,E),B=null,$={indexes:{i:l,j:F,realIndex:E,bc:h},x:v,y:w,strokeWidth:N,elSeries:I};this.isHorizontal?(B=this.drawBarPaths(d(d({},$),{},{barHeight:u,zeroW:x,yDivision:g})),b=this.series[l][F]/this.invertedYRatio):(B=this.drawColumnPaths(d(d({},$),{},{xDivision:f,barWidth:b,zeroH:p})),u=this.series[l][F]/this.yRatio[this.yaxisIndex]);var j=this.barHelpers.getPathFillColor(t,l,F,E);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&F>0){var st=this.barHelpers.drawBarShadow({color:typeof j=="string"&&(j==null?void 0:j.indexOf("url"))===-1?j:R.hexToRgba(i.globals.colors[l]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:B});st&&O.add(st)}this.pathArr.push(B);var dt=this.barHelpers.drawGoalLine({barXPosition:B.barXPosition,barYPosition:B.barYPosition,goalX:B.goalX,goalY:B.goalY,barHeight:u,barWidth:b});dt&&T.add(dt),w=B.y,v=B.x,F>0&&S.push(v+b/2),A.push(w),this.renderSeries({realIndex:E,pathFill:j,j:F,i:l,pathFrom:B.pathFrom,pathTo:B.pathTo,strokeWidth:N,elSeries:I,x:v,y:w,series:t,barHeight:B.barHeight?B.barHeight:u,barWidth:B.barWidth?B.barWidth:b,elDataLabelsWrap:P,elGoalsMarkers:T,elBarShadows:O,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[E]=S,i.globals.seriesYvalues[E]=A,o.add(I)}return o}},{key:"renderSeries",value:function(t){var e=t.realIndex,i=t.pathFill,a=t.lineFill,r=t.j,o=t.i,l=t.groupIndex,h=t.pathFrom,f=t.pathTo,g=t.strokeWidth,p=t.elSeries,x=t.x,v=t.y,w=t.y1,A=t.y2,S=t.series,E=t.barHeight,I=t.barWidth,u=t.barXPosition,b=t.barYPosition,k=t.elDataLabelsWrap,P=t.elGoalsMarkers,T=t.elBarShadows,O=t.visibleSeries,F=t.type,N=this.w,B=new V(this.ctx);a||(a=this.barOptions.distributed?N.globals.stroke.colors[r]:N.globals.stroke.colors[e]),N.config.series[o].data[r]&&N.config.series[o].data[r].strokeColor&&(a=N.config.series[o].data[r].strokeColor),this.isNullValue&&(i="none");var $=r/N.config.chart.animations.animateGradually.delay*(N.config.chart.animations.speed/N.globals.dataPoints)/2.4,j=B.renderPaths({i:o,j:r,realIndex:e,pathFrom:h,pathTo:f,stroke:a,strokeWidth:g,strokeLineCap:N.config.stroke.lineCap,fill:i,animationDelay:$,initialSpeed:N.config.chart.animations.speed,dataChangeSpeed:N.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(F,"-area")});j.attr("clip-path","url(#gridRectMask".concat(N.globals.cuid,")"));var st=N.config.forecastDataPoints;st.count>0&&r>=N.globals.dataPoints-st.count&&(j.node.setAttribute("stroke-dasharray",st.dashArray),j.node.setAttribute("stroke-width",st.strokeWidth),j.node.setAttribute("fill-opacity",st.fillOpacity)),w!==void 0&&A!==void 0&&(j.attr("data-range-y1",w),j.attr("data-range-y2",A)),new ut(this.ctx).setSelectionFilter(j,e,r),p.add(j);var dt=new Xa(this).handleBarDataLabels({x,y:v,y1:w,y2:A,i:o,j:r,series:S,realIndex:e,groupIndex:l,barHeight:E,barWidth:I,barXPosition:u,barYPosition:b,renderedPath:j,visibleSeries:O});return dt.dataLabels!==null&&k.add(dt.dataLabels),dt.totalDataLabels&&k.add(dt.totalDataLabels),p.add(k),P&&p.add(P),T&&p.add(T),p}},{key:"drawBarPaths",value:function(t){var e,i=t.indexes,a=t.barHeight,r=t.strokeWidth,o=t.zeroW,l=t.x,h=t.y,f=t.yDivision,g=t.elSeries,p=this.w,x=i.i,v=i.j;if(p.globals.isXNumeric)e=(h=(p.globals.seriesX[x][v]-p.globals.minX)/this.invertedXRatio-a)+a*this.visibleI;else if(p.config.plotOptions.bar.hideZeroBarsWhenGrouped){var w=0,A=0;p.globals.seriesPercent.forEach(function(E,I){E[v]&&w++,I<x&&E[v]===0&&A++}),w>0&&(a=this.seriesLen*a/w),e=h+a*this.visibleI,e-=a*A}else e=h+a*this.visibleI;this.isFunnel&&(o-=(this.barHelpers.getXForValue(this.series[x][v],o)-o)/2),l=this.barHelpers.getXForValue(this.series[x][v],o);var S=this.barHelpers.getBarpaths({barYPosition:e,barHeight:a,x1:o,x2:l,strokeWidth:r,series:this.series,realIndex:i.realIndex,i:x,j:v,w:p});return p.globals.isXNumeric||(h+=f),this.barHelpers.barBackground({j:v,i:x,y1:e-a*this.visibleI,y2:a*this.seriesLen,elSeries:g}),{pathTo:S.pathTo,pathFrom:S.pathFrom,x1:o,x:l,y:h,goalX:this.barHelpers.getGoalValues("x",o,null,x,v),barYPosition:e,barHeight:a}}},{key:"drawColumnPaths",value:function(t){var e,i=t.indexes,a=t.x,r=t.y,o=t.xDivision,l=t.barWidth,h=t.zeroH,f=t.strokeWidth,g=t.elSeries,p=this.w,x=i.realIndex,v=i.i,w=i.j,A=i.bc;if(p.globals.isXNumeric){var S=this.getBarXForNumericXAxis({x:a,j:w,realIndex:x,barWidth:l});a=S.x,e=S.barXPosition}else if(p.config.plotOptions.bar.hideZeroBarsWhenGrouped){var E=this.barHelpers.getZeroValueEncounters({i:v,j:w}),I=E.nonZeroColumns,u=E.zeroEncounters;I>0&&(l=this.seriesLen*l/I),e=a+l*this.visibleI,e-=l*u}else e=a+l*this.visibleI;r=this.barHelpers.getYForValue(this.series[v][w],h);var b=this.barHelpers.getColumnPaths({barXPosition:e,barWidth:l,y1:h,y2:r,strokeWidth:f,series:this.series,realIndex:i.realIndex,i:v,j:w,w:p});return p.globals.isXNumeric||(a+=o),this.barHelpers.barBackground({bc:A,j:w,i:v,x1:e-f/2-l*this.visibleI,x2:l*this.seriesLen+f/2,elSeries:g}),{pathTo:b.pathTo,pathFrom:b.pathFrom,x:a,y:r,goalY:this.barHelpers.getGoalValues("y",null,h,v,w),barXPosition:e,barWidth:l}}},{key:"getBarXForNumericXAxis",value:function(t){var e=t.x,i=t.barWidth,a=t.realIndex,r=t.j,o=this.w,l=a;return o.globals.seriesX[a].length||(l=o.globals.maxValsInArrayIndex),o.globals.seriesX[l][r]&&(e=(o.globals.seriesX[l][r]-o.globals.minX)/this.xRatio-i*this.seriesLen/2),{barXPosition:e+i*this.visibleI,x:e}}},{key:"getPreviousPath",value:function(t,e){for(var i,a=this.w,r=0;r<a.globals.previousPaths.length;r++){var o=a.globals.previousPaths[r];o.paths&&o.paths.length>0&&parseInt(o.realIndex,10)===parseInt(t,10)&&a.globals.previousPaths[r].paths[e]!==void 0&&(i=a.globals.previousPaths[r].paths[e].d)}return i}}]),_}(),Mn=function(_){z(e,Hi);var t=q(e);function e(){return y(this,e),t.apply(this,arguments)}return L(e,[{key:"draw",value:function(i,a){var r=this,o=this.w;this.graphics=new V(this.ctx),this.bar=new Hi(this.ctx,this.xyRatios);var l=new it(this.ctx,o);i=l.getLogSeries(i),this.yRatio=l.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i),o.config.chart.stackType==="100%"&&(i=o.globals.seriesPercent.slice()),this.series=i,this.barHelpers.initializeStackedPrevVars(this);for(var h=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),f=0,g=0,p=function(w,A){var S=void 0,E=void 0,I=void 0,u=void 0,b=-1;r.groupCtx=r,o.globals.seriesGroups.forEach(function(Bt,qt){Bt.indexOf(o.config.series[w].name)>-1&&(b=qt)}),b!==-1&&(r.groupCtx=r[o.globals.seriesGroups[b]]);var k=[],P=[],T=o.globals.comboCharts?a[w]:w;r.yRatio.length>1&&(r.yaxisIndex=T),r.isReversed=o.config.yaxis[r.yaxisIndex]&&o.config.yaxis[r.yaxisIndex].reversed;var O=r.graphics.group({class:"apexcharts-series",seriesName:R.escapeString(o.globals.seriesNames[T]),rel:w+1,"data:realIndex":T});r.ctx.series.addCollapsedClassToSeries(O,T);var F=r.graphics.group({class:"apexcharts-datalabels","data:realIndex":T}),N=r.graphics.group({class:"apexcharts-bar-goals-markers"}),B=0,$=0,j=r.initialPositions(f,g,S,E,I,u);g=j.y,B=j.barHeight,E=j.yDivision,u=j.zeroW,f=j.x,$=j.barWidth,S=j.xDivision,I=j.zeroH,o.globals.barHeight=B,o.globals.barWidth=$,r.barHelpers.initializeStackedXYVars(r),r.groupCtx.prevY.length===1&&r.groupCtx.prevY[0].every(function(Bt){return isNaN(Bt)})&&(r.groupCtx.prevY[0]=r.groupCtx.prevY[0].map(function(Bt){return I}),r.groupCtx.prevYF[0]=r.groupCtx.prevYF[0].map(function(Bt){return 0}));for(var st=0;st<o.globals.dataPoints;st++){var dt=r.barHelpers.getStrokeWidth(w,st,T),mt={indexes:{i:w,j:st,realIndex:T,bc:A},strokeWidth:dt,x:f,y:g,elSeries:O,groupIndex:b,seriesGroup:o.globals.seriesGroups[b]},At=null;r.isHorizontal?(At=r.drawStackedBarPaths(d(d({},mt),{},{zeroW:u,barHeight:B,yDivision:E})),$=r.series[w][st]/r.invertedYRatio):(At=r.drawStackedColumnPaths(d(d({},mt),{},{xDivision:S,barWidth:$,zeroH:I})),B=r.series[w][st]/r.yRatio[r.yaxisIndex]);var It=r.barHelpers.drawGoalLine({barXPosition:At.barXPosition,barYPosition:At.barYPosition,goalX:At.goalX,goalY:At.goalY,barHeight:B,barWidth:$});It&&N.add(It),g=At.y,f=At.x,k.push(f),P.push(g);var Ct=r.barHelpers.getPathFillColor(i,w,st,T);O=r.renderSeries({realIndex:T,pathFill:Ct,j:st,i:w,groupIndex:b,pathFrom:At.pathFrom,pathTo:At.pathTo,strokeWidth:dt,elSeries:O,x:f,y:g,series:i,barHeight:B,barWidth:$,elDataLabelsWrap:F,elGoalsMarkers:N,type:"bar",visibleSeries:0})}o.globals.seriesXvalues[T]=k,o.globals.seriesYvalues[T]=P,r.groupCtx.prevY.push(r.groupCtx.yArrj),r.groupCtx.prevYF.push(r.groupCtx.yArrjF),r.groupCtx.prevYVal.push(r.groupCtx.yArrjVal),r.groupCtx.prevX.push(r.groupCtx.xArrj),r.groupCtx.prevXF.push(r.groupCtx.xArrjF),r.groupCtx.prevXVal.push(r.groupCtx.xArrjVal),h.add(O)},x=0,v=0;x<i.length;x++,v++)p(x,v);return h}},{key:"initialPositions",value:function(i,a,r,o,l,h){var f,g,p,x,v=this.w;return this.isHorizontal?(p=(p=o=v.globals.gridHeight/v.globals.dataPoints)*parseInt(v.config.plotOptions.bar.barHeight,10)/100,String(v.config.plotOptions.bar.barHeight).indexOf("%")===-1&&(p=parseInt(v.config.plotOptions.bar.barHeight,10)),h=this.baseLineInvertedY+v.globals.padHorizontal+(this.isReversed?v.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),a=(o-p)/2):(x=r=v.globals.gridWidth/v.globals.dataPoints,x=v.globals.isXNumeric&&v.globals.dataPoints>1?(r=v.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:x*parseInt(v.config.plotOptions.bar.columnWidth,10)/100,String(v.config.plotOptions.bar.columnWidth).indexOf("%")===-1&&(x=parseInt(v.config.plotOptions.bar.columnWidth,10)),l=v.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?v.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),i=v.globals.padHorizontal+(r-x)/2),{x:i,y:a,yDivision:o,xDivision:r,barHeight:(f=v.globals.seriesGroups)!==null&&f!==void 0&&f.length?p/v.globals.seriesGroups.length:p,barWidth:(g=v.globals.seriesGroups)!==null&&g!==void 0&&g.length?x/v.globals.seriesGroups.length:x,zeroH:l,zeroW:h}}},{key:"drawStackedBarPaths",value:function(i){for(var a,r=i.indexes,o=i.barHeight,l=i.strokeWidth,h=i.zeroW,f=i.x,g=i.y,p=i.groupIndex,x=i.seriesGroup,v=i.yDivision,w=i.elSeries,A=this.w,S=g+(p!==-1?p*o:0),E=r.i,I=r.j,u=0,b=0;b<this.groupCtx.prevXF.length;b++)u+=this.groupCtx.prevXF[b][I];var k=E;if(x&&(k=x.indexOf(A.config.series[E].name)),k>0){var P=h;this.groupCtx.prevXVal[k-1][I]<0?P=this.series[E][I]>=0?this.groupCtx.prevX[k-1][I]+u-2*(this.isReversed?u:0):this.groupCtx.prevX[k-1][I]:this.groupCtx.prevXVal[k-1][I]>=0&&(P=this.series[E][I]>=0?this.groupCtx.prevX[k-1][I]:this.groupCtx.prevX[k-1][I]-u+2*(this.isReversed?u:0)),a=P}else a=h;f=this.series[E][I]===null?a:a+this.series[E][I]/this.invertedYRatio-2*(this.isReversed?this.series[E][I]/this.invertedYRatio:0);var T=this.barHelpers.getBarpaths({barYPosition:S,barHeight:o,x1:a,x2:f,strokeWidth:l,series:this.series,realIndex:r.realIndex,seriesGroup:x,i:E,j:I,w:A});return this.barHelpers.barBackground({j:I,i:E,y1:S,y2:o,elSeries:w}),g+=v,{pathTo:T.pathTo,pathFrom:T.pathFrom,goalX:this.barHelpers.getGoalValues("x",h,null,E,I),barYPosition:S,x:f,y:g}}},{key:"drawStackedColumnPaths",value:function(i){var a=i.indexes,r=i.x,o=i.y,l=i.xDivision,h=i.barWidth,f=i.zeroH,g=i.groupIndex,p=i.seriesGroup,x=i.elSeries,v=this.w,w=a.i,A=a.j,S=a.bc;if(v.globals.isXNumeric){var E=v.globals.seriesX[w][A];E||(E=0),r=(E-v.globals.minX)/this.xRatio-h/2,v.globals.seriesGroups.length&&(r=(E-v.globals.minX)/this.xRatio-h/2*v.globals.seriesGroups.length)}for(var I,u=r+(g!==-1?g*h:0),b=0,k=0;k<this.groupCtx.prevYF.length;k++)b+=isNaN(this.groupCtx.prevYF[k][A])?0:this.groupCtx.prevYF[k][A];var P=w;if(p&&(P=p.indexOf(v.config.series[w].name)),P>0&&!v.globals.isXNumeric||P>0&&v.globals.isXNumeric&&v.globals.seriesX[w-1][A]===v.globals.seriesX[w][A]){var T,O,F,N=Math.min(this.yRatio.length+1,w+1);if(this.groupCtx.prevY[P-1]!==void 0&&this.groupCtx.prevY[P-1].length)for(var B=1;B<N;B++){var $;if(!isNaN(($=this.groupCtx.prevY[P-B])===null||$===void 0?void 0:$[A])){F=this.groupCtx.prevY[P-B][A];break}}for(var j=1;j<N;j++){var st,dt;if(((st=this.groupCtx.prevYVal[P-j])===null||st===void 0?void 0:st[A])<0){O=this.series[w][A]>=0?F-b+2*(this.isReversed?b:0):F;break}if(((dt=this.groupCtx.prevYVal[P-j])===null||dt===void 0?void 0:dt[A])>=0){O=this.series[w][A]>=0?F:F+b-2*(this.isReversed?b:0);break}}O===void 0&&(O=v.globals.gridHeight),I=(T=this.groupCtx.prevYF[0])!==null&&T!==void 0&&T.every(function(At){return At===0})&&this.groupCtx.prevYF.slice(1,P).every(function(At){return At.every(function(It){return isNaN(It)})})?f:O}else I=f;o=this.series[w][A]?I-this.series[w][A]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[w][A]/this.yRatio[this.yaxisIndex]:0):I;var mt=this.barHelpers.getColumnPaths({barXPosition:u,barWidth:h,y1:I,y2:o,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:p,realIndex:a.realIndex,i:w,j:A,w:v});return this.barHelpers.barBackground({bc:S,j:A,i:w,x1:u,x2:h,elSeries:x}),r+=l,{pathTo:mt.pathTo,pathFrom:mt.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,f,w,A),barXPosition:u,x:v.globals.isXNumeric?r-l:r,y:o}}}]),e}(),js=function(_){z(e,Hi);var t=q(e);function e(){return y(this,e),t.apply(this,arguments)}return L(e,[{key:"draw",value:function(i,a,r){var o=this,l=this.w,h=new V(this.ctx),f=l.globals.comboCharts?a:l.config.chart.type,g=new Jt(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=l.config.plotOptions.bar.horizontal;var p=new it(this.ctx,l);i=p.getLogSeries(i),this.series=i,this.yRatio=p.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i);for(var x=h.group({class:"apexcharts-".concat(f,"-series apexcharts-plot-series")}),v=function(A){o.isBoxPlot=l.config.chart.type==="boxPlot"||l.config.series[A].type==="boxPlot";var S,E,I,u,b=void 0,k=void 0,P=[],T=[],O=l.globals.comboCharts?r[A]:A,F=h.group({class:"apexcharts-series",seriesName:R.escapeString(l.globals.seriesNames[O]),rel:A+1,"data:realIndex":O});o.ctx.series.addCollapsedClassToSeries(F,O),i[A].length>0&&(o.visibleI=o.visibleI+1);var N,B;o.yRatio.length>1&&(o.yaxisIndex=O);var $=o.barHelpers.initialPositions();k=$.y,N=$.barHeight,E=$.yDivision,u=$.zeroW,b=$.x,B=$.barWidth,S=$.xDivision,I=$.zeroH,T.push(b+B/2);for(var j=h.group({class:"apexcharts-datalabels","data:realIndex":O}),st=function(mt){var At=o.barHelpers.getStrokeWidth(A,mt,O),It=null,Ct={indexes:{i:A,j:mt,realIndex:O},x:b,y:k,strokeWidth:At,elSeries:F};It=o.isHorizontal?o.drawHorizontalBoxPaths(d(d({},Ct),{},{yDivision:E,barHeight:N,zeroW:u})):o.drawVerticalBoxPaths(d(d({},Ct),{},{xDivision:S,barWidth:B,zeroH:I})),k=It.y,b=It.x,mt>0&&T.push(b+B/2),P.push(k),It.pathTo.forEach(function(Bt,qt){var Fe=!o.isBoxPlot&&o.candlestickOptions.wick.useFillColor?It.color[qt]:l.globals.stroke.colors[A],we=g.fillPath({seriesNumber:O,dataPointIndex:mt,color:It.color[qt],value:i[A][mt]});o.renderSeries({realIndex:O,pathFill:we,lineFill:Fe,j:mt,i:A,pathFrom:It.pathFrom,pathTo:Bt,strokeWidth:At,elSeries:F,x:b,y:k,series:i,barHeight:N,barWidth:B,elDataLabelsWrap:j,visibleSeries:o.visibleI,type:l.config.chart.type})})},dt=0;dt<l.globals.dataPoints;dt++)st(dt);l.globals.seriesXvalues[O]=T,l.globals.seriesYvalues[O]=P,x.add(F)},w=0;w<i.length;w++)v(w);return x}},{key:"drawVerticalBoxPaths",value:function(i){var a=i.indexes,r=i.x;i.y;var o=i.xDivision,l=i.barWidth,h=i.zeroH,f=i.strokeWidth,g=this.w,p=new V(this.ctx),x=a.i,v=a.j,w=!0,A=g.config.plotOptions.candlestick.colors.upward,S=g.config.plotOptions.candlestick.colors.downward,E="";this.isBoxPlot&&(E=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var I=this.yRatio[this.yaxisIndex],u=a.realIndex,b=this.getOHLCValue(u,v),k=h,P=h;b.o>b.c&&(w=!1);var T=Math.min(b.o,b.c),O=Math.max(b.o,b.c),F=b.m;g.globals.isXNumeric&&(r=(g.globals.seriesX[u][v]-g.globals.minX)/this.xRatio-l/2);var N=r+l*this.visibleI;this.series[x][v]===void 0||this.series[x][v]===null?(T=h,O=h):(T=h-T/I,O=h-O/I,k=h-b.h/I,P=h-b.l/I,F=h-b.m/I);var B=p.move(N,h),$=p.move(N+l/2,T);return g.globals.previousPaths.length>0&&($=this.getPreviousPath(u,v,!0)),B=this.isBoxPlot?[p.move(N,T)+p.line(N+l/2,T)+p.line(N+l/2,k)+p.line(N+l/4,k)+p.line(N+l-l/4,k)+p.line(N+l/2,k)+p.line(N+l/2,T)+p.line(N+l,T)+p.line(N+l,F)+p.line(N,F)+p.line(N,T+f/2),p.move(N,F)+p.line(N+l,F)+p.line(N+l,O)+p.line(N+l/2,O)+p.line(N+l/2,P)+p.line(N+l-l/4,P)+p.line(N+l/4,P)+p.line(N+l/2,P)+p.line(N+l/2,O)+p.line(N,O)+p.line(N,F)+"z"]:[p.move(N,O)+p.line(N+l/2,O)+p.line(N+l/2,k)+p.line(N+l/2,O)+p.line(N+l,O)+p.line(N+l,T)+p.line(N+l/2,T)+p.line(N+l/2,P)+p.line(N+l/2,T)+p.line(N,T)+p.line(N,O-f/2)],$+=p.move(N,T),g.globals.isXNumeric||(r+=o),{pathTo:B,pathFrom:$,x:r,y:O,barXPosition:N,color:this.isBoxPlot?E:w?[A]:[S]}}},{key:"drawHorizontalBoxPaths",value:function(i){var a=i.indexes;i.x;var r=i.y,o=i.yDivision,l=i.barHeight,h=i.zeroW,f=i.strokeWidth,g=this.w,p=new V(this.ctx),x=a.i,v=a.j,w=this.boxOptions.colors.lower;this.isBoxPlot&&(w=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var A=this.invertedYRatio,S=a.realIndex,E=this.getOHLCValue(S,v),I=h,u=h,b=Math.min(E.o,E.c),k=Math.max(E.o,E.c),P=E.m;g.globals.isXNumeric&&(r=(g.globals.seriesX[S][v]-g.globals.minX)/this.invertedXRatio-l/2);var T=r+l*this.visibleI;this.series[x][v]===void 0||this.series[x][v]===null?(b=h,k=h):(b=h+b/A,k=h+k/A,I=h+E.h/A,u=h+E.l/A,P=h+E.m/A);var O=p.move(h,T),F=p.move(b,T+l/2);return g.globals.previousPaths.length>0&&(F=this.getPreviousPath(S,v,!0)),O=[p.move(b,T)+p.line(b,T+l/2)+p.line(I,T+l/2)+p.line(I,T+l/2-l/4)+p.line(I,T+l/2+l/4)+p.line(I,T+l/2)+p.line(b,T+l/2)+p.line(b,T+l)+p.line(P,T+l)+p.line(P,T)+p.line(b+f/2,T),p.move(P,T)+p.line(P,T+l)+p.line(k,T+l)+p.line(k,T+l/2)+p.line(u,T+l/2)+p.line(u,T+l-l/4)+p.line(u,T+l/4)+p.line(u,T+l/2)+p.line(k,T+l/2)+p.line(k,T)+p.line(P,T)+"z"],F+=p.move(b,T),g.globals.isXNumeric||(r+=o),{pathTo:O,pathFrom:F,x:k,y:r,barYPosition:T,color:w}}},{key:"getOHLCValue",value:function(i,a){var r=this.w;return{o:this.isBoxPlot?r.globals.seriesCandleH[i][a]:r.globals.seriesCandleO[i][a],h:this.isBoxPlot?r.globals.seriesCandleO[i][a]:r.globals.seriesCandleH[i][a],m:r.globals.seriesCandleM[i][a],l:this.isBoxPlot?r.globals.seriesCandleC[i][a]:r.globals.seriesCandleL[i][a],c:this.isBoxPlot?r.globals.seriesCandleL[i][a]:r.globals.seriesCandleC[i][a]}}}]),e}(),On=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"checkColorRange",value:function(){var t=this.w,e=!1,i=t.config.plotOptions[t.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map(function(a,r){a.from<=0&&(e=!0)}),e}},{key:"getShadeColor",value:function(t,e,i,a){var r=this.w,o=1,l=r.config.plotOptions[t].shadeIntensity,h=this.determineColor(t,e,i);r.globals.hasNegs||a?o=r.config.plotOptions[t].reverseNegativeShade?h.percent<0?h.percent/100*(1.25*l):(1-h.percent/100)*(1.25*l):h.percent<=0?1-(1+h.percent/100)*l:(1-h.percent/100)*l:(o=1-h.percent/100,t==="treemap"&&(o=(1-h.percent/100)*(1.25*l)));var f=h.color,g=new R;return r.config.plotOptions[t].enableShades&&(f=this.w.config.theme.mode==="dark"?R.hexToRgba(g.shadeColor(-1*o,h.color),r.config.fill.opacity):R.hexToRgba(g.shadeColor(o,h.color),r.config.fill.opacity)),{color:f,colorProps:h}}},{key:"determineColor",value:function(t,e,i){var a=this.w,r=a.globals.series[e][i],o=a.config.plotOptions[t],l=o.colorScale.inverse?i:e;o.distributed&&a.config.chart.type==="treemap"&&(l=i);var h=a.globals.colors[l],f=null,g=Math.min.apply(Math,nt(a.globals.series[e])),p=Math.max.apply(Math,nt(a.globals.series[e]));o.distributed||t!=="heatmap"||(g=a.globals.minY,p=a.globals.maxY),o.colorScale.min!==void 0&&(g=o.colorScale.min<a.globals.minY?o.colorScale.min:a.globals.minY,p=o.colorScale.max>a.globals.maxY?o.colorScale.max:a.globals.maxY);var x=Math.abs(p)+Math.abs(g),v=100*r/(x===0?x-1e-6:x);return o.colorScale.ranges.length>0&&o.colorScale.ranges.map(function(w,A){if(r>=w.from&&r<=w.to){h=w.color,f=w.foreColor?w.foreColor:null,g=w.from,p=w.to;var S=Math.abs(p)+Math.abs(g);v=100*r/(S===0?S-1e-6:S)}}),{color:h,foreColor:f,percent:v}}},{key:"calculateDataLabels",value:function(t){var e=t.text,i=t.x,a=t.y,r=t.i,o=t.j,l=t.colorProps,h=t.fontSize,f=this.w.config.dataLabels,g=new V(this.ctx),p=new li(this.ctx),x=null;if(f.enabled){x=g.group({class:"apexcharts-data-labels"});var v=f.offsetX,w=f.offsetY,A=i+v,S=a+parseFloat(f.style.fontSize)/3+w;p.plotDataLabelsText({x:A,y:S,text:e,i:r,j:o,color:l.foreColor,parent:x,fontSize:h,dataLabelsConfig:f})}return x}},{key:"addListeners",value:function(t){var e=new V(this.ctx);t.node.addEventListener("mouseenter",e.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",e.pathMouseLeave.bind(this,t)),t.node.addEventListener("mousedown",e.pathMouseDown.bind(this,t))}}]),_}(),yh=function(){function _(t,e){y(this,_),this.ctx=t,this.w=t.w,this.xRatio=e.xRatio,this.yRatio=e.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new On(t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return L(_,[{key:"draw",value:function(t){var e=this.w,i=new V(this.ctx),a=i.group({class:"apexcharts-heatmap"});a.attr("clip-path","url(#gridRectMask".concat(e.globals.cuid,")"));var r=e.globals.gridWidth/e.globals.dataPoints,o=e.globals.gridHeight/e.globals.series.length,l=0,h=!1;this.negRange=this.helpers.checkColorRange();var f=t.slice();e.config.yaxis[0].reversed&&(h=!0,f.reverse());for(var g=h?0:f.length-1;h?g<f.length:g>=0;h?g++:g--){var p=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:R.escapeString(e.globals.seriesNames[g]),rel:g+1,"data:realIndex":g});if(this.ctx.series.addCollapsedClassToSeries(p,g),e.config.chart.dropShadow.enabled){var x=e.config.chart.dropShadow;new ut(this.ctx).dropShadow(p,x,g)}for(var v=0,w=e.config.plotOptions.heatmap.shadeIntensity,A=0;A<f[g].length;A++){var S=this.helpers.getShadeColor(e.config.chart.type,g,A,this.negRange),E=S.color,I=S.colorProps;e.config.fill.type==="image"&&(E=new Jt(this.ctx).fillPath({seriesNumber:g,dataPointIndex:A,opacity:e.globals.hasNegs?I.percent<0?1-(1+I.percent/100):w+I.percent/100:I.percent/100,patternID:R.randomId(),width:e.config.fill.image.width?e.config.fill.image.width:r,height:e.config.fill.image.height?e.config.fill.image.height:o}));var u=this.rectRadius,b=i.drawRect(v,l,r,o,u);if(b.attr({cx:v,cy:l}),b.node.classList.add("apexcharts-heatmap-rect"),p.add(b),b.attr({fill:E,i:g,index:g,j:A,val:t[g][A],"stroke-width":this.strokeWidth,stroke:e.config.plotOptions.heatmap.useFillColorAsStroke?E:e.globals.stroke.colors[0],color:E}),this.helpers.addListeners(b),e.config.chart.animations.enabled&&!e.globals.dataChanged){var k=1;e.globals.resized||(k=e.config.chart.animations.speed),this.animateHeatMap(b,v,l,r,o,k)}if(e.globals.dataChanged){var P=1;if(this.dynamicAnim.enabled&&e.globals.shouldAnimate){P=this.dynamicAnim.speed;var T=e.globals.previousPaths[g]&&e.globals.previousPaths[g][A]&&e.globals.previousPaths[g][A].color;T||(T="rgba(255, 255, 255, 0)"),this.animateHeatColor(b,R.isColorHex(T)?T:R.rgb2hex(T),R.isColorHex(E)?E:R.rgb2hex(E),P)}}var O=(0,e.config.dataLabels.formatter)(e.globals.series[g][A],{value:e.globals.series[g][A],seriesIndex:g,dataPointIndex:A,w:e}),F=this.helpers.calculateDataLabels({text:O,x:v+r/2,y:l+o/2,i:g,j:A,colorProps:I,series:f});F!==null&&p.add(F),v+=r}l+=o,a.add(p)}var N=e.globals.yAxisScale[0].result.slice();return e.config.yaxis[0].reversed?N.unshift(""):N.push(""),e.globals.yAxisScale[0].result=N,a}},{key:"animateHeatMap",value:function(t,e,i,a,r,o){var l=new ht(this.ctx);l.animateRect(t,{x:e+a/2,y:i+r/2,width:0,height:0},{x:e,y:i,width:a,height:r},o,function(){l.animationCompleted(t)})}},{key:"animateHeatColor",value:function(t,e,i,a){t.attr({fill:e}).animate(a).attr({fill:i})}}]),_}(),Rn=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"drawYAxisTexts",value:function(t,e,i,a){var r=this.w,o=r.config.yaxis[0],l=r.globals.yLabelFormatters[0];return new V(this.ctx).drawText({x:t+o.labels.offsetX,y:e+o.labels.offsetY,text:l(a,i),textAnchor:"middle",fontSize:o.labels.style.fontSize,fontFamily:o.labels.style.fontFamily,foreColor:Array.isArray(o.labels.style.colors)?o.labels.style.colors[i]:o.labels.style.colors})}}]),_}(),zn=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w;var e=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=e.globals.stroke.colors!==void 0?e.globals.stroke.colors:e.globals.colors,this.defaultSize=Math.min(e.globals.gridWidth,e.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=e.globals.gridWidth/2,e.config.chart.type==="radialBar"?this.fullAngle=360:this.fullAngle=Math.abs(e.config.plotOptions.pie.endAngle-e.config.plotOptions.pie.startAngle),this.initialAngle=e.config.plotOptions.pie.startAngle%this.fullAngle,e.globals.radialSize=this.defaultSize/2.05-e.config.stroke.width-(e.config.chart.sparkline.enabled?0:e.config.chart.dropShadow.blur),this.donutSize=e.globals.radialSize*parseInt(e.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return L(_,[{key:"draw",value:function(t){var e=this,i=this.w,a=new V(this.ctx);if(this.ret=a.group({class:"apexcharts-pie"}),i.globals.noData)return this.ret;for(var r=0,o=0;o<t.length;o++)r+=R.negToZero(t[o]);var l=[],h=a.group();r===0&&(r=1e-5),t.forEach(function(T){e.maxY=Math.max(e.maxY,T)}),i.config.yaxis[0].max&&(this.maxY=i.config.yaxis[0].max),i.config.grid.position==="back"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret);for(var f=0;f<t.length;f++){var g=this.fullAngle*R.negToZero(t[f])/r;l.push(g),this.chartType==="polarArea"?(l[f]=this.fullAngle/t.length,this.sliceSizes.push(i.globals.radialSize*t[f]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var p,x=0,v=0;v<i.globals.previousPaths.length;v++)x+=R.negToZero(i.globals.previousPaths[v]);for(var w=0;w<i.globals.previousPaths.length;w++)p=this.fullAngle*R.negToZero(i.globals.previousPaths[w])/x,this.prevSectorAngleArr.push(p)}this.donutSize<0&&(this.donutSize=0);var A=i.config.plotOptions.pie.customScale,S=i.globals.gridWidth/2,E=i.globals.gridHeight/2,I=S-i.globals.gridWidth/2*A,u=E-i.globals.gridHeight/2*A;if(this.chartType==="donut"){var b=a.drawCircle(this.donutSize);b.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),h.add(b)}var k=this.drawArcs(l,t);if(this.sliceLabels.forEach(function(T){k.add(T)}),h.attr({transform:"translate(".concat(I,", ").concat(u,") scale(").concat(A,")")}),h.add(k),this.ret.add(h),this.donutDataLabels.show){var P=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:I,translateY:u});this.ret.add(P)}return i.config.grid.position==="front"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(t,e){var i=this.w,a=new ut(this.ctx),r=new V(this.ctx),o=new Jt(this.ctx),l=r.group({class:"apexcharts-slices"}),h=this.initialAngle,f=this.initialAngle,g=this.initialAngle,p=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var x=0;x<t.length;x++){var v=r.group({class:"apexcharts-series apexcharts-pie-series",seriesName:R.escapeString(i.globals.seriesNames[x]),rel:x+1,"data:realIndex":x});l.add(v),f=p,g=(h=g)+t[x],p=f+this.prevSectorAngleArr[x];var w=g<h?this.fullAngle+g-h:g-h,A=o.fillPath({seriesNumber:x,size:this.sliceSizes[x],value:e[x]}),S=this.getChangedPath(f,p),E=r.drawPath({d:S,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[x]:this.lineColorArr,strokeWidth:0,fill:A,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(x)});if(E.attr({index:0,j:x}),a.setSelectionFilter(E,0,x),i.config.chart.dropShadow.enabled){var I=i.config.chart.dropShadow;a.dropShadow(E,I,x)}this.addListeners(E,this.donutDataLabels),V.setAttrs(E.node,{"data:angle":w,"data:startAngle":h,"data:strokeWidth":this.strokeWidth,"data:value":e[x]});var u={x:0,y:0};this.chartType==="pie"||this.chartType==="polarArea"?u=R.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(h+w/2)%this.fullAngle):this.chartType==="donut"&&(u=R.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(h+w/2)%this.fullAngle)),v.add(E);var b=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):((b=w/this.fullAngle*i.config.chart.animations.speed)===0&&(b=1),this.animDur=b+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(E,{size:this.sliceSizes[x],endAngle:g,startAngle:h,prevStartAngle:f,prevEndAngle:p,animateStartingPos:!0,i:x,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(E,{size:this.sliceSizes[x],endAngle:g,startAngle:h,i:x,totalItems:t.length-1,animBeginArr:this.animBeginArr,dur:b}),i.config.plotOptions.pie.expandOnClick&&this.chartType!=="polarArea"&&E.click(this.pieClicked.bind(this,x)),i.globals.selectedDataPoints[0]!==void 0&&i.globals.selectedDataPoints[0].indexOf(x)>-1&&this.pieClicked(x),i.config.dataLabels.enabled){var k=u.x,P=u.y,T=100*w/this.fullAngle+"%";if(w!==0&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<t[x]){var O=i.config.dataLabels.formatter;O!==void 0&&(T=O(i.globals.seriesPercent[x][0],{seriesIndex:x,w:i}));var F=i.globals.dataLabels.style.colors[x],N=r.group({class:"apexcharts-datalabels"}),B=r.drawText({x:k,y:P,text:T,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:F});if(N.add(B),i.config.dataLabels.dropShadow.enabled){var $=i.config.dataLabels.dropShadow;a.dropShadow(B,$)}B.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&i.globals.resized===!1&&(B.node.classList.add("apexcharts-pie-label-delay"),B.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(N)}}}return l}},{key:"addListeners",value:function(t,e){var i=new V(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,t)),t.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this,t)),this.donutDataLabels.total.showAlways||(t.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,t.node,e)))}},{key:"animatePaths",value:function(t,e){var i=this.w,a=e.endAngle<e.startAngle?this.fullAngle+e.endAngle-e.startAngle:e.endAngle-e.startAngle,r=a,o=e.startAngle,l=e.startAngle;e.prevStartAngle!==void 0&&e.prevEndAngle!==void 0&&(o=e.prevEndAngle,r=e.prevEndAngle<e.prevStartAngle?this.fullAngle+e.prevEndAngle-e.prevStartAngle:e.prevEndAngle-e.prevStartAngle),e.i===i.config.series.length-1&&(a+l>this.fullAngle?e.endAngle=e.endAngle-(a+l):a+l<this.fullAngle&&(e.endAngle=e.endAngle+(this.fullAngle-(a+l)))),a===this.fullAngle&&(a=this.fullAngle-.01),this.animateArc(t,o,l,a,r,e)}},{key:"animateArc",value:function(t,e,i,a,r,o){var l,h=this,f=this.w,g=new ht(this.ctx),p=o.size;(isNaN(e)||isNaN(r))&&(e=i,r=a,o.dur=0);var x=a,v=i,w=e<i?this.fullAngle+e-i:e-i;f.globals.dataChanged&&o.shouldSetPrevPaths&&o.prevEndAngle&&(l=h.getPiePath({me:h,startAngle:o.prevStartAngle,angle:o.prevEndAngle<o.prevStartAngle?this.fullAngle+o.prevEndAngle-o.prevStartAngle:o.prevEndAngle-o.prevStartAngle,size:p}),t.attr({d:l})),o.dur!==0?t.animate(o.dur,f.globals.easing,o.animBeginArr[o.i]).afterAll(function(){h.chartType!=="pie"&&h.chartType!=="donut"&&h.chartType!=="polarArea"||this.animate(f.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":h.strokeWidth}),o.i===f.config.series.length-1&&g.animationCompleted(t)}).during(function(A){x=w+(a-w)*A,o.animateStartingPos&&(x=r+(a-r)*A,v=e-r+(i-(e-r))*A),l=h.getPiePath({me:h,startAngle:v,angle:x,size:p}),t.node.setAttribute("data:pathOrig",l),t.attr({d:l})}):(l=h.getPiePath({me:h,startAngle:v,angle:a,size:p}),o.isTrack||(f.globals.animationEnded=!0),t.node.setAttribute("data:pathOrig",l),t.attr({d:l,"stroke-width":h.strokeWidth}))}},{key:"pieClicked",value:function(t){var e,i=this.w,a=this,r=a.sliceSizes[t]+(i.config.plotOptions.pie.expandOnClick?4:0),o=i.globals.dom.Paper.select(".apexcharts-".concat(a.chartType.toLowerCase(),"-slice-").concat(t)).members[0];if(o.attr("data:pieClicked")!=="true"){var l=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(l,function(p){p.setAttribute("data:pieClicked","false");var x=p.getAttribute("data:pathOrig");x&&p.setAttribute("d",x)}),o.attr("data:pieClicked","true");var h=parseInt(o.attr("data:startAngle"),10),f=parseInt(o.attr("data:angle"),10);e=a.getPiePath({me:a,startAngle:h,angle:f,size:r}),f!==360&&o.plot(e)}else{o.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(o.node,this.donutDataLabels);var g=o.attr("data:pathOrig");o.attr({d:g})}}},{key:"getChangedPath",value:function(t,e){var i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:t,angle:e-t,size:this.size})),i}},{key:"getPiePath",value:function(t){var e,i=t.me,a=t.startAngle,r=t.angle,o=t.size,l=new V(this.ctx),h=a,f=Math.PI*(h-90)/180,g=r+a;Math.ceil(g)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(g=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(g)>this.fullAngle&&(g-=this.fullAngle);var p=Math.PI*(g-90)/180,x=i.centerX+o*Math.cos(f),v=i.centerY+o*Math.sin(f),w=i.centerX+o*Math.cos(p),A=i.centerY+o*Math.sin(p),S=R.polarToCartesian(i.centerX,i.centerY,i.donutSize,g),E=R.polarToCartesian(i.centerX,i.centerY,i.donutSize,h),I=r>180?1:0,u=["M",x,v,"A",o,o,0,I,1,w,A];return e=i.chartType==="donut"?[].concat(u,["L",S.x,S.y,"A",i.donutSize,i.donutSize,0,I,0,E.x,E.y,"L",x,v,"z"]).join(" "):i.chartType==="pie"||i.chartType==="polarArea"?[].concat(u,["L",i.centerX,i.centerY,"L",x,v]).join(" "):[].concat(u).join(" "),l.roundPathCorners(e,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(t){var e=this.w,i=new Ze(this.ctx),a=new V(this.ctx),r=new Rn(this.ctx),o=a.group(),l=a.group(),h=i.niceScale(0,Math.ceil(this.maxY),e.config.yaxis[0].tickAmount,0,!0),f=h.result.reverse(),g=h.result.length;this.maxY=h.niceMax;for(var p=e.globals.radialSize,x=p/(g-1),v=0;v<g-1;v++){var w=a.drawCircle(p);if(w.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":e.config.plotOptions.polarArea.rings.strokeWidth,stroke:e.config.plotOptions.polarArea.rings.strokeColor}),e.config.yaxis[0].show){var A=r.drawYAxisTexts(this.centerX,this.centerY-p+parseInt(e.config.yaxis[0].labels.style.fontSize,10)/2,v,f[v]);l.add(A)}o.add(w),p-=x}this.drawSpokes(t),t.add(o),t.add(l)}},{key:"renderInnerDataLabels",value:function(t,e){var i=this.w,a=new V(this.ctx),r=a.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(e.translateX?e.translateX:0,", ").concat(e.translateY?e.translateY:0,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),o=t.total.show;r.node.style.opacity=e.opacity;var l,h,f=e.centerX,g=e.centerY;l=t.name.color===void 0?i.globals.colors[0]:t.name.color;var p=t.name.fontSize,x=t.name.fontFamily,v=t.name.fontWeight;h=t.value.color===void 0?i.config.chart.foreColor:t.value.color;var w=t.value.formatter,A="",S="";if(o?(l=t.total.color,p=t.total.fontSize,x=t.total.fontFamily,v=t.total.fontWeight,S=t.total.label,A=t.total.formatter(i)):i.globals.series.length===1&&(A=w(i.globals.series[0],i),S=i.globals.seriesNames[0]),S&&(S=t.name.formatter(S,t.total.show,i)),t.name.show){var E=a.drawText({x:f,y:g+parseFloat(t.name.offsetY),text:S,textAnchor:"middle",foreColor:l,fontSize:p,fontWeight:v,fontFamily:x});E.node.classList.add("apexcharts-datalabel-label"),r.add(E)}if(t.value.show){var I=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,u=a.drawText({x:f,y:g+I,text:A,textAnchor:"middle",foreColor:h,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});u.node.classList.add("apexcharts-datalabel-value"),r.add(u)}return r}},{key:"printInnerLabels",value:function(t,e,i,a){var r,o=this.w;a?r=t.name.color===void 0?o.globals.colors[parseInt(a.parentNode.getAttribute("rel"),10)-1]:t.name.color:o.globals.series.length>1&&t.total.show&&(r=t.total.color);var l=o.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),h=o.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,t.value.formatter)(i,o),a||typeof t.total.formatter!="function"||(i=t.total.formatter(o));var f=e===t.total.label;e=t.name.formatter(e,f,o),l!==null&&(l.textContent=e),h!==null&&(h.textContent=i),l!==null&&(l.style.fill=r)}},{key:"printDataLabelsInner",value:function(t,e){var i=this.w,a=t.getAttribute("data:value"),r=i.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(e,r,a,t);var o=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");o!==null&&(o.style.opacity=1)}},{key:"drawSpokes",value:function(t){var e=this,i=this.w,a=new V(this.ctx),r=i.config.plotOptions.polarArea.spokes;if(r.strokeWidth!==0){for(var o=[],l=360/i.globals.series.length,h=0;h<i.globals.series.length;h++)o.push(R.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+l*h));o.forEach(function(f,g){var p=a.drawLine(f.x,f.y,e.centerX,e.centerY,Array.isArray(r.connectorColors)?r.connectorColors[g]:r.connectorColors);t.add(p)})}}},{key:"revertDataLabelsInner",value:function(t,e,i){var a=this,r=this.w,o=r.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),l=!1,h=r.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),f=function(x){var v=x.makeSliceOut,w=x.printLabel;Array.prototype.forEach.call(h,function(A){A.getAttribute("data:pieClicked")==="true"&&(v&&(l=!0),w&&a.printDataLabelsInner(A,e))})};if(f({makeSliceOut:!0,printLabel:!1}),e.total.show&&r.globals.series.length>1)l&&!e.total.showAlways?f({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(e,e.total.label,e.total.formatter(r));else if(f({makeSliceOut:!1,printLabel:!0}),!l)if(r.globals.selectedDataPoints.length&&r.globals.series.length>1)if(r.globals.selectedDataPoints[0].length>0){var g=r.globals.selectedDataPoints[0],p=r.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(g));this.printDataLabelsInner(p,e)}else o&&r.globals.selectedDataPoints.length&&r.globals.selectedDataPoints[0].length===0&&(o.style.opacity=0);else o&&r.globals.series.length>1&&(o.style.opacity=0)}}]),_}(),wh=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var e=this.w;this.graphics=new V(this.ctx),this.lineColorArr=e.globals.stroke.colors!==void 0?e.globals.stroke.colors:e.globals.colors,this.defaultSize=e.globals.svgHeight<e.globals.svgWidth?e.globals.gridHeight+1.5*e.globals.goldenPadding:e.globals.gridWidth,this.isLog=e.config.yaxis[0].logarithmic,this.coreUtils=new it(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(e.globals.maxY,0):e.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):e.globals.minY,this.polygons=e.config.plotOptions.radar.polygons,this.strokeWidth=e.config.stroke.show?e.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-e.config.chart.dropShadow.blur,e.config.xaxis.labels.show&&(this.size=this.size-e.globals.xAxisLabelsWidth/1.75),e.config.plotOptions.radar.size!==void 0&&(this.size=e.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return L(_,[{key:"draw",value:function(t){var e=this,i=this.w,a=new Jt(this.ctx),r=[],o=new li(this.ctx);t.length&&(this.dataPointsLen=t[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var l=i.globals.gridWidth/2,h=i.globals.gridHeight/2,f=l+i.config.plotOptions.radar.offsetX,g=h+i.config.plotOptions.radar.offsetY,p=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(f||0,", ").concat(g||0,")")}),x=[],v=null,w=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),t.forEach(function(S,E){var I=S.length===i.globals.dataPoints,u=e.graphics.group().attr({class:"apexcharts-series","data:longestSeries":I,seriesName:R.escapeString(i.globals.seriesNames[E]),rel:E+1,"data:realIndex":E});e.dataRadiusOfPercent[E]=[],e.dataRadius[E]=[],e.angleArr[E]=[],S.forEach(function(j,st){var dt=Math.abs(e.maxValue-e.minValue);j+=Math.abs(e.minValue),e.isLog&&(j=e.coreUtils.getLogVal(j,0)),e.dataRadiusOfPercent[E][st]=j/dt,e.dataRadius[E][st]=e.dataRadiusOfPercent[E][st]*e.size,e.angleArr[E][st]=st*e.disAngle}),x=e.getDataPointsPos(e.dataRadius[E],e.angleArr[E]);var b=e.createPaths(x,{x:0,y:0});v=e.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),w=e.graphics.group({class:"apexcharts-datalabels","data:realIndex":E}),i.globals.delayedElements.push({el:v.node,index:E});var k={i:E,realIndex:E,animationDelay:E,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:i.globals.stroke.colors[E],strokeLineCap:i.config.stroke.lineCap},P=null;i.globals.previousPaths.length>0&&(P=e.getPreviousPath(E));for(var T=0;T<b.linePathsTo.length;T++){var O=e.graphics.renderPaths(d(d({},k),{},{pathFrom:P===null?b.linePathsFrom[T]:P,pathTo:b.linePathsTo[T],strokeWidth:Array.isArray(e.strokeWidth)?e.strokeWidth[E]:e.strokeWidth,fill:"none",drawShadow:!1}));u.add(O);var F=a.fillPath({seriesNumber:E}),N=e.graphics.renderPaths(d(d({},k),{},{pathFrom:P===null?b.areaPathsFrom[T]:P,pathTo:b.areaPathsTo[T],strokeWidth:0,fill:F,drawShadow:!1}));if(i.config.chart.dropShadow.enabled){var B=new ut(e.ctx),$=i.config.chart.dropShadow;B.dropShadow(N,Object.assign({},$,{noUserSpaceOnUse:!0}),E)}u.add(N)}S.forEach(function(j,st){var dt=new oi(e.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:E,dataPointIndex:st}),mt=e.graphics.drawMarker(x[st].x,x[st].y,dt);mt.attr("rel",st),mt.attr("j",st),mt.attr("index",E),mt.node.setAttribute("default-marker-size",dt.pSize);var At=e.graphics.group({class:"apexcharts-series-markers"});At&&At.add(mt),v.add(At),u.add(v);var It=i.config.dataLabels;if(It.enabled){var Ct=It.formatter(i.globals.series[E][st],{seriesIndex:E,dataPointIndex:st,w:i});o.plotDataLabelsText({x:x[st].x,y:x[st].y,text:Ct,textAnchor:"middle",i:E,j:E,parent:w,offsetCorrection:!1,dataLabelsConfig:d({},It)})}u.add(w)}),r.push(u)}),this.drawPolygons({parent:p}),i.config.xaxis.labels.show){var A=this.drawXAxisTexts();p.add(A)}return r.forEach(function(S){p.add(S)}),p.add(this.yaxisLabels),p}},{key:"drawPolygons",value:function(t){for(var e=this,i=this.w,a=t.parent,r=new Rn(this.ctx),o=i.globals.yAxisScale[0].result.reverse(),l=o.length,h=[],f=this.size/(l-1),g=0;g<l;g++)h[g]=f*g;h.reverse();var p=[],x=[];h.forEach(function(v,w){var A=R.getPolygonPos(v,e.dataPointsLen),S="";A.forEach(function(E,I){if(w===0){var u=e.graphics.drawLine(E.x,E.y,0,0,Array.isArray(e.polygons.connectorColors)?e.polygons.connectorColors[I]:e.polygons.connectorColors);x.push(u)}I===0&&e.yaxisLabelsTextsPos.push({x:E.x,y:E.y}),S+=E.x+","+E.y+" "}),p.push(S)}),p.forEach(function(v,w){var A=e.polygons.strokeColors,S=e.polygons.strokeWidth,E=e.graphics.drawPolygon(v,Array.isArray(A)?A[w]:A,Array.isArray(S)?S[w]:S,i.globals.radarPolygons.fill.colors[w]);a.add(E)}),x.forEach(function(v){a.add(v)}),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(v,w){var A=r.drawYAxisTexts(v.x,v.y,w,o[w]);e.yaxisLabels.add(A)})}},{key:"drawXAxisTexts",value:function(){var t=this,e=this.w,i=e.config.xaxis.labels,a=this.graphics.group({class:"apexcharts-xaxis"}),r=R.getPolygonPos(this.size,this.dataPointsLen);return e.globals.labels.forEach(function(o,l){var h=e.config.xaxis.labels.formatter,f=new li(t.ctx);if(r[l]){var g=t.getTextPos(r[l],t.size),p=h(o,{seriesIndex:-1,dataPointIndex:l,w:e});f.plotDataLabelsText({x:g.newX,y:g.newY,text:p,textAnchor:g.textAnchor,i:l,j:l,parent:a,color:Array.isArray(i.style.colors)&&i.style.colors[l]?i.style.colors[l]:"#a8a8a8",dataLabelsConfig:d({textAnchor:g.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1})}}),a}},{key:"createPaths",value:function(t,e){var i=this,a=[],r=[],o=[],l=[];if(t.length){r=[this.graphics.move(e.x,e.y)],l=[this.graphics.move(e.x,e.y)];var h=this.graphics.move(t[0].x,t[0].y),f=this.graphics.move(t[0].x,t[0].y);t.forEach(function(g,p){h+=i.graphics.line(g.x,g.y),f+=i.graphics.line(g.x,g.y),p===t.length-1&&(h+="Z",f+="Z")}),a.push(h),o.push(f)}return{linePathsFrom:r,linePathsTo:a,areaPathsFrom:l,areaPathsTo:o}}},{key:"getTextPos",value:function(t,e){var i="middle",a=t.x,r=t.y;return Math.abs(t.x)>=10?t.x>0?(i="start",a+=10):t.x<0&&(i="end",a-=10):i="middle",Math.abs(t.y)>=e-10&&(t.y<0?r-=10:t.y>0&&(r+=10)),{textAnchor:i,newX:a,newY:r}}},{key:"getPreviousPath",value:function(t){for(var e=this.w,i=null,a=0;a<e.globals.previousPaths.length;a++){var r=e.globals.previousPaths[a];r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(t,10)&&e.globals.previousPaths[a].paths[0]!==void 0&&(i=e.globals.previousPaths[a].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.dataPointsLen;t=t||[],e=e||[];for(var a=[],r=0;r<i;r++){var o={};o.x=t[r]*Math.sin(e[r]),o.y=-t[r]*Math.cos(e[r]),a.push(o)}return a}}]),_}(),kh=function(_){z(e,zn);var t=q(e);function e(i){var a;y(this,e),(a=t.call(this,i)).ctx=i,a.w=i.w,a.animBeginArr=[0],a.animDur=0;var r=a.w;return a.startAngle=r.config.plotOptions.radialBar.startAngle,a.endAngle=r.config.plotOptions.radialBar.endAngle,a.totalAngle=Math.abs(r.config.plotOptions.radialBar.endAngle-r.config.plotOptions.radialBar.startAngle),a.trackStartAngle=r.config.plotOptions.radialBar.track.startAngle,a.trackEndAngle=r.config.plotOptions.radialBar.track.endAngle,a.barLabels=a.w.config.plotOptions.radialBar.barLabels,a.donutDataLabels=a.w.config.plotOptions.radialBar.dataLabels,a.radialDataLabels=a.donutDataLabels,a.trackStartAngle||(a.trackStartAngle=a.startAngle),a.trackEndAngle||(a.trackEndAngle=a.endAngle),a.endAngle===360&&(a.endAngle=359.99),a.margin=parseInt(r.config.plotOptions.radialBar.track.margin,10),a.onBarLabelClick=a.onBarLabelClick.bind(W(a)),a}return L(e,[{key:"draw",value:function(i){var a=this.w,r=new V(this.ctx),o=r.group({class:"apexcharts-radialbar"});if(a.globals.noData)return o;var l=r.group(),h=this.defaultSize/2,f=a.globals.gridWidth/2,g=this.defaultSize/2.05;a.config.chart.sparkline.enabled||(g=g-a.config.stroke.width-a.config.chart.dropShadow.blur);var p=a.globals.fill.colors;if(a.config.plotOptions.radialBar.track.show){var x=this.drawTracks({size:g,centerX:f,centerY:h,colorArr:p,series:i});l.add(x)}var v=this.drawArcs({size:g,centerX:f,centerY:h,colorArr:p,series:i}),w=360;a.config.plotOptions.radialBar.startAngle<0&&(w=this.totalAngle);var A=(360-w)/360;if(a.globals.radialSize=g-g*A,this.radialDataLabels.value.show){var S=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);a.globals.radialSize+=S*A}return l.add(v.g),a.config.plotOptions.radialBar.hollow.position==="front"&&(v.g.add(v.elHollow),v.dataLabels&&v.g.add(v.dataLabels)),o.add(l),o}},{key:"drawTracks",value:function(i){var a=this.w,r=new V(this.ctx),o=r.group({class:"apexcharts-tracks"}),l=new ut(this.ctx),h=new Jt(this.ctx),f=this.getStrokeWidth(i);i.size=i.size-f/2;for(var g=0;g<i.series.length;g++){var p=r.group({class:"apexcharts-radialbar-track apexcharts-track"});o.add(p),p.attr({rel:g+1}),i.size=i.size-f-this.margin;var x=a.config.plotOptions.radialBar.track,v=h.fillPath({seriesNumber:0,size:i.size,fillColors:Array.isArray(x.background)?x.background[g]:x.background,solid:!0}),w=this.trackStartAngle,A=this.trackEndAngle;Math.abs(A)+Math.abs(w)>=360&&(A=360-Math.abs(this.startAngle)-.1);var S=r.drawPath({d:"",stroke:v,strokeWidth:f*parseInt(x.strokeWidth,10)/100,fill:"none",strokeOpacity:x.opacity,classes:"apexcharts-radialbar-area"});if(x.dropShadow.enabled){var E=x.dropShadow;l.dropShadow(S,E)}p.add(S),S.attr("id","apexcharts-radialbarTrack-"+g),this.animatePaths(S,{centerX:i.centerX,centerY:i.centerY,endAngle:A,startAngle:w,size:i.size,i:g,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:a.globals.easing})}return o}},{key:"drawArcs",value:function(i){var a=this.w,r=new V(this.ctx),o=new Jt(this.ctx),l=new ut(this.ctx),h=r.group(),f=this.getStrokeWidth(i);i.size=i.size-f/2;var g=a.config.plotOptions.radialBar.hollow.background,p=i.size-f*i.series.length-this.margin*i.series.length-f*parseInt(a.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,x=p-a.config.plotOptions.radialBar.hollow.margin;a.config.plotOptions.radialBar.hollow.image!==void 0&&(g=this.drawHollowImage(i,h,p,g));var v=this.drawHollow({size:x,centerX:i.centerX,centerY:i.centerY,fill:g||"transparent"});if(a.config.plotOptions.radialBar.hollow.dropShadow.enabled){var w=a.config.plotOptions.radialBar.hollow.dropShadow;l.dropShadow(v,w)}var A=1;!this.radialDataLabels.total.show&&a.globals.series.length>1&&(A=0);var S=null;this.radialDataLabels.show&&(S=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:p,centerX:i.centerX,centerY:i.centerY,opacity:A})),a.config.plotOptions.radialBar.hollow.position==="back"&&(h.add(v),S&&h.add(S));var E=!1;a.config.plotOptions.radialBar.inverseOrder&&(E=!0);for(var I=E?i.series.length-1:0;E?I>=0:I<i.series.length;E?I--:I++){var u=r.group({class:"apexcharts-series apexcharts-radial-series",seriesName:R.escapeString(a.globals.seriesNames[I])});h.add(u),u.attr({rel:I+1,"data:realIndex":I}),this.ctx.series.addCollapsedClassToSeries(u,I),i.size=i.size-f-this.margin;var b=o.fillPath({seriesNumber:I,size:i.size,value:i.series[I]}),k=this.startAngle,P=void 0,T=R.negToZero(i.series[I]>100?100:i.series[I])/100,O=Math.round(this.totalAngle*T)+this.startAngle,F=void 0;a.globals.dataChanged&&(P=this.startAngle,F=Math.round(this.totalAngle*R.negToZero(a.globals.previousPaths[I])/100)+P),Math.abs(O)+Math.abs(k)>=360&&(O-=.01),Math.abs(F)+Math.abs(P)>=360&&(F-=.01);var N=O-k,B=Array.isArray(a.config.stroke.dashArray)?a.config.stroke.dashArray[I]:a.config.stroke.dashArray,$=r.drawPath({d:"",stroke:b,strokeWidth:f,fill:"none",fillOpacity:a.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+I,strokeDashArray:B});if(V.setAttrs($.node,{"data:angle":N,"data:value":i.series[I]}),a.config.chart.dropShadow.enabled){var j=a.config.chart.dropShadow;l.dropShadow($,j,I)}if(l.setSelectionFilter($,0,I),this.addListeners($,this.radialDataLabels),u.add($),$.attr({index:0,j:I}),this.barLabels.enabled){var st=R.polarToCartesian(i.centerX,i.centerY,i.size,k),dt=this.barLabels.formatter(a.globals.seriesNames[I],{seriesIndex:I,w:a}),mt=["apexcharts-radialbar-label"];this.barLabels.onClick||mt.push("apexcharts-no-click");var At=this.barLabels.useSeriesColors?a.globals.colors[I]:a.config.chart.foreColor;At||(At=a.config.chart.foreColor);var It=st.x-this.barLabels.margin,Ct=st.y,Bt=r.drawText({x:It,y:Ct,text:dt,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:At,cssClass:mt.join(" ")});Bt.on("click",this.onBarLabelClick),Bt.attr({rel:I+1}),k!==0&&Bt.attr({"transform-origin":"".concat(It," ").concat(Ct),transform:"rotate(".concat(k," 0 0)")}),u.add(Bt)}var qt=0;!this.initialAnim||a.globals.resized||a.globals.dataChanged||(qt=a.config.chart.animations.speed),a.globals.dataChanged&&(qt=a.config.chart.animations.dynamicAnimation.speed),this.animDur=qt/(1.2*i.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths($,{centerX:i.centerX,centerY:i.centerY,endAngle:O,startAngle:k,prevEndAngle:F,prevStartAngle:P,size:i.size,i:I,totalItems:2,animBeginArr:this.animBeginArr,dur:qt,shouldSetPrevPaths:!0,easing:a.globals.easing})}return{g:h,elHollow:v,dataLabels:S}}},{key:"drawHollow",value:function(i){var a=new V(this.ctx).drawCircle(2*i.size);return a.attr({class:"apexcharts-radialbar-hollow",cx:i.centerX,cy:i.centerY,r:i.size,fill:i.fill}),a}},{key:"drawHollowImage",value:function(i,a,r,o){var l=this.w,h=new Jt(this.ctx),f=R.randomId(),g=l.config.plotOptions.radialBar.hollow.image;if(l.config.plotOptions.radialBar.hollow.imageClipped)h.clippedImgArea({width:r,height:r,image:g,patternID:"pattern".concat(l.globals.cuid).concat(f)}),o="url(#pattern".concat(l.globals.cuid).concat(f,")");else{var p=l.config.plotOptions.radialBar.hollow.imageWidth,x=l.config.plotOptions.radialBar.hollow.imageHeight;if(p===void 0&&x===void 0){var v=l.globals.dom.Paper.image(g).loaded(function(A){this.move(i.centerX-A.width/2+l.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-A.height/2+l.config.plotOptions.radialBar.hollow.imageOffsetY)});a.add(v)}else{var w=l.globals.dom.Paper.image(g).loaded(function(A){this.move(i.centerX-p/2+l.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-x/2+l.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(p,x)});a.add(w)}}return o}},{key:"getStrokeWidth",value:function(i){var a=this.w;return i.size*(100-parseInt(a.config.plotOptions.radialBar.hollow.size,10))/100/(i.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(i){var a=parseInt(i.target.getAttribute("rel"),10)-1,r=this.barLabels.onClick,o=this.w;r&&r(o.globals.seriesNames[a],{w:o,seriesIndex:a})}}]),e}(),Ah=function(_){z(e,Hi);var t=q(e);function e(){return y(this,e),t.apply(this,arguments)}return L(e,[{key:"draw",value:function(i,a){var r=this.w,o=new V(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=i,this.seriesRangeStart=r.globals.seriesRangeStart,this.seriesRangeEnd=r.globals.seriesRangeEnd,this.barHelpers.initVariables(i);for(var l=o.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),h=0;h<i.length;h++){var f,g,p,x,v=void 0,w=void 0,A=r.globals.comboCharts?a[h]:h,S=o.group({class:"apexcharts-series",seriesName:R.escapeString(r.globals.seriesNames[A]),rel:h+1,"data:realIndex":A});this.ctx.series.addCollapsedClassToSeries(S,A),i[h].length>0&&(this.visibleI=this.visibleI+1);var E=0,I=0;this.yRatio.length>1&&(this.yaxisIndex=A);var u=this.barHelpers.initialPositions();w=u.y,x=u.zeroW,v=u.x,I=u.barWidth,E=u.barHeight,f=u.xDivision,g=u.yDivision,p=u.zeroH;for(var b=o.group({class:"apexcharts-datalabels","data:realIndex":A}),k=o.group({class:"apexcharts-rangebar-goals-markers"}),P=0;P<r.globals.dataPoints;P++){var T,O=this.barHelpers.getStrokeWidth(h,P,A),F=this.seriesRangeStart[h][P],N=this.seriesRangeEnd[h][P],B=null,$=null,j=null,st={x:v,y:w,strokeWidth:O,elSeries:S},dt=this.seriesLen;if(r.config.plotOptions.bar.rangeBarGroupRows&&(dt=1),r.config.series[h].data[P]===void 0)break;if(this.isHorizontal){j=w+E*this.visibleI;var mt=(g-E*dt)/2;if(r.config.series[h].data[P].x){var At=this.detectOverlappingBars({i:h,j:P,barYPosition:j,srty:mt,barHeight:E,yDivision:g,initPositions:u});E=At.barHeight,j=At.barYPosition}I=(B=this.drawRangeBarPaths(d({indexes:{i:h,j:P,realIndex:A},barHeight:E,barYPosition:j,zeroW:x,yDivision:g,y1:F,y2:N},st))).barWidth}else{r.globals.isXNumeric&&(v=(r.globals.seriesX[h][P]-r.globals.minX)/this.xRatio-I/2),$=v+I*this.visibleI;var It=(f-I*dt)/2;if(r.config.series[h].data[P].x){var Ct=this.detectOverlappingBars({i:h,j:P,barXPosition:$,srtx:It,barWidth:I,xDivision:f,initPositions:u});I=Ct.barWidth,$=Ct.barXPosition}E=(B=this.drawRangeColumnPaths(d({indexes:{i:h,j:P,realIndex:A},barWidth:I,barXPosition:$,zeroH:p,xDivision:f},st))).barHeight}var Bt=this.barHelpers.drawGoalLine({barXPosition:B.barXPosition,barYPosition:j,goalX:B.goalX,goalY:B.goalY,barHeight:E,barWidth:I});Bt&&k.add(Bt),w=B.y,v=B.x;var qt=this.barHelpers.getPathFillColor(i,h,P,A),Fe=r.globals.stroke.colors[A];this.renderSeries((M(T={realIndex:A,pathFill:qt,lineFill:Fe,j:P,i:h,x:v,y:w,y1:F,y2:N,pathFrom:B.pathFrom,pathTo:B.pathTo,strokeWidth:O,elSeries:S,series:i,barHeight:E,barWidth:I,barXPosition:$,barYPosition:j},"barWidth",I),M(T,"elDataLabelsWrap",b),M(T,"elGoalsMarkers",k),M(T,"visibleSeries",this.visibleI),M(T,"type","rangebar"),T))}l.add(S)}return l}},{key:"detectOverlappingBars",value:function(i){var a=i.i,r=i.j,o=i.barYPosition,l=i.barXPosition,h=i.srty,f=i.srtx,g=i.barHeight,p=i.barWidth,x=i.yDivision,v=i.xDivision,w=i.initPositions,A=this.w,S=[],E=A.config.series[a].data[r].rangeName,I=A.config.series[a].data[r].x,u=Array.isArray(I)?I.join(" "):I,b=A.globals.labels.map(function(P){return Array.isArray(P)?P.join(" "):P}).indexOf(u),k=A.globals.seriesRange[a].findIndex(function(P){return P.x===u&&P.overlaps.length>0});return this.isHorizontal?(o=A.config.plotOptions.bar.rangeBarGroupRows?h+x*b:h+g*this.visibleI+x*b,k>-1&&!A.config.plotOptions.bar.rangeBarOverlap&&(S=A.globals.seriesRange[a][k].overlaps).indexOf(E)>-1&&(o=(g=w.barHeight/S.length)*this.visibleI+x*(100-parseInt(this.barOptions.barHeight,10))/100/2+g*(this.visibleI+S.indexOf(E))+x*b)):(b>-1&&(l=A.config.plotOptions.bar.rangeBarGroupRows?f+v*b:f+p*this.visibleI+v*b),k>-1&&!A.config.plotOptions.bar.rangeBarOverlap&&(S=A.globals.seriesRange[a][k].overlaps).indexOf(E)>-1&&(l=(p=w.barWidth/S.length)*this.visibleI+v*(100-parseInt(this.barOptions.barWidth,10))/100/2+p*(this.visibleI+S.indexOf(E))+v*b)),{barYPosition:o,barXPosition:l,barHeight:g,barWidth:p}}},{key:"drawRangeColumnPaths",value:function(i){var a=i.indexes,r=i.x,o=i.xDivision,l=i.barWidth,h=i.barXPosition,f=i.zeroH,g=this.w,p=a.i,x=a.j,v=this.yRatio[this.yaxisIndex],w=a.realIndex,A=this.getRangeValue(w,x),S=Math.min(A.start,A.end),E=Math.max(A.start,A.end);this.series[p][x]===void 0||this.series[p][x]===null?S=f:(S=f-S/v,E=f-E/v);var I=Math.abs(E-S),u=this.barHelpers.getColumnPaths({barXPosition:h,barWidth:l,y1:S,y2:E,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:a.realIndex,i:w,j:x,w:g});if(g.globals.isXNumeric){var b=this.getBarXForNumericXAxis({x:r,j:x,realIndex:w,barWidth:l});r=b.x,h=b.barXPosition}else r+=o;return{pathTo:u.pathTo,pathFrom:u.pathFrom,barHeight:I,x:r,y:E,goalY:this.barHelpers.getGoalValues("y",null,f,p,x),barXPosition:h}}},{key:"drawRangeBarPaths",value:function(i){var a=i.indexes,r=i.y,o=i.y1,l=i.y2,h=i.yDivision,f=i.barHeight,g=i.barYPosition,p=i.zeroW,x=this.w,v=p+o/this.invertedYRatio,w=p+l/this.invertedYRatio,A=Math.abs(w-v),S=this.barHelpers.getBarpaths({barYPosition:g,barHeight:f,x1:v,x2:w,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:a.realIndex,realIndex:a.realIndex,j:a.j,w:x});return x.globals.isXNumeric||(r+=h),{pathTo:S.pathTo,pathFrom:S.pathFrom,barWidth:A,x:w,goalX:this.barHelpers.getGoalValues("x",p,null,a.realIndex,a.j),y:r}}},{key:"getRangeValue",value:function(i,a){var r=this.w;return{start:r.globals.seriesRangeStart[i][a],end:r.globals.seriesRangeEnd[i][a]}}}]),e}(),Sh=function(){function _(t){y(this,_),this.w=t.w,this.lineCtx=t}return L(_,[{key:"sameValueSeriesFix",value:function(t,e){var i=this.w;if((i.config.fill.type==="gradient"||i.config.fill.type[t]==="gradient")&&new it(this.lineCtx.ctx,i).seriesHaveSameValues(t)){var a=e[t].slice();a[a.length-1]=a[a.length-1]+1e-6,e[t]=a}return e}},{key:"calculatePoints",value:function(t){var e=t.series,i=t.realIndex,a=t.x,r=t.y,o=t.i,l=t.j,h=t.prevY,f=this.w,g=[],p=[];if(l===0){var x=this.lineCtx.categoryAxisCorrection+f.config.markers.offsetX;f.globals.isXNumeric&&(x=(f.globals.seriesX[i][0]-f.globals.minX)/this.lineCtx.xRatio+f.config.markers.offsetX),g.push(x),p.push(R.isNumber(e[o][0])?h+f.config.markers.offsetY:null),g.push(a+f.config.markers.offsetX),p.push(R.isNumber(e[o][l+1])?r+f.config.markers.offsetY:null)}else g.push(a+f.config.markers.offsetX),p.push(R.isNumber(e[o][l+1])?r+f.config.markers.offsetY:null);return{x:g,y:p}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,a=t.realIndex,r=this.w,o=0;o<r.globals.previousPaths.length;o++){var l=r.globals.previousPaths[o];(l.type==="line"||l.type==="area")&&l.paths.length>0&&parseInt(l.realIndex,10)===parseInt(a,10)&&(l.type==="line"?(this.lineCtx.appendPathFrom=!1,e=r.globals.previousPaths[o].paths[0].d):l.type==="area"&&(this.lineCtx.appendPathFrom=!1,i=r.globals.previousPaths[o].paths[0].d,r.config.stroke.show&&r.globals.previousPaths[o].paths[1]&&(e=r.globals.previousPaths[o].paths[1].d)))}return{pathFromLine:e,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(t){var e,i,a=t.i,r=t.series,o=t.prevY,l=t.lineYPosition,h=this.w,f=h.config.chart.stacked&&!h.globals.comboCharts||h.config.chart.stacked&&h.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((e=this.w.config.series[a])===null||e===void 0?void 0:e.type)==="bar");if(((i=r[a])===null||i===void 0?void 0:i[0])!==void 0)o=(l=f&&a>0?this.lineCtx.prevSeriesY[a-1][0]:this.lineCtx.zeroY)-r[a][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?r[a][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(f&&a>0&&r[a][0]===void 0){for(var g=a-1;g>=0;g--)if(r[g][0]!==null&&r[g][0]!==void 0){o=l=this.lineCtx.prevSeriesY[g][0];break}}return{prevY:o,lineYPosition:l}}}]),_}(),Ch=function(_){for(var t,e,i,a,r=function(g){for(var p=[],x=g[0],v=g[1],w=p[0]=$s(x,v),A=1,S=g.length-1;A<S;A++)x=v,v=g[A+1],p[A]=.5*(w+(w=$s(x,v)));return p[A]=w,p}(_),o=_.length-1,l=[],h=0;h<o;h++)i=$s(_[h],_[h+1]),Math.abs(i)<1e-6?r[h]=r[h+1]=0:(a=(t=r[h]/i)*t+(e=r[h+1]/i)*e)>9&&(a=3*i/Math.sqrt(a),r[h]=a*t,r[h+1]=a*e);for(var f=0;f<=o;f++)a=(_[Math.min(o,f+1)][0]-_[Math.max(0,f-1)][0])/(6*(1+r[f]*r[f])),l.push([a||0,r[f]*a||0]);return l},Us=function(_){for(var t="",e=0;e<_.length;e++){var i=_[e],a=i.length;a>4?(t+="C".concat(i[0],", ").concat(i[1]),t+=", ".concat(i[2],", ").concat(i[3]),t+=", ".concat(i[4],", ").concat(i[5])):a>2&&(t+="S".concat(i[0],", ").concat(i[1]),t+=", ".concat(i[2],", ").concat(i[3]))}return t},Fn=function(_){var t=Ch(_),e=_[1],i=_[0],a=[],r=t[1],o=t[0];a.push(i,[i[0]+o[0],i[1]+o[1],e[0]-r[0],e[1]-r[1],e[0],e[1]]);for(var l=2,h=t.length;l<h;l++){var f=_[l],g=t[l];a.push([f[0]-g[0],f[1]-g[1],f[0],f[1]])}return a};function $s(_,t){return(t[1]-_[1])/(t[0]-_[0])}var qs=function(){function _(t,e,i){y(this,_),this.ctx=t,this.w=t.w,this.xyRatios=e,this.pointsChart=!(this.w.config.chart.type!=="bubble"&&this.w.config.chart.type!=="scatter")||i,this.scatter=new Fa(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Sh(this),this.markers=new oi(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return L(_,[{key:"draw",value:function(t,e,i,a){var r,o=this.w,l=new V(this.ctx),h=o.globals.comboCharts?e:o.config.chart.type,f=l.group({class:"apexcharts-".concat(h,"-series apexcharts-plot-series")}),g=new it(this.ctx,o);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,t=g.getLogSeries(t),this.yRatio=g.getLogYRatios(this.yRatio);for(var p=[],x=0;x<t.length;x++){t=this.lineHelpers.sameValueSeriesFix(x,t);var v=o.globals.comboCharts?i[x]:x;this._initSerieVariables(t,x,v);var w=[],A=[],S=[],E=o.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,v),o.globals.isXNumeric&&o.globals.seriesX.length>0&&(E=(o.globals.seriesX[v][0]-o.globals.minX)/this.xRatio),S.push(E);var I,u=E,b=void 0,k=u,P=this.zeroY,T=this.zeroY;P=this.lineHelpers.determineFirstPrevY({i:x,series:t,prevY:P,lineYPosition:0}).prevY,o.config.stroke.curve==="monotonCubic"&&t[x][0]===null?w.push(null):w.push(P),I=P,h==="rangeArea"&&(b=T=this.lineHelpers.determineFirstPrevY({i:x,series:a,prevY:T,lineYPosition:0}).prevY,A.push(T));var O={type:h,series:t,realIndex:v,i:x,x:E,y:1,pX:u,pY:I,pathsFrom:this._calculatePathsFrom({type:h,series:t,i:x,realIndex:v,prevX:k,prevY:P,prevY2:T}),linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:S,yArrj:w,y2Arrj:A,seriesRangeEnd:a},F=this._iterateOverDataPoints(d(d({},O),{},{iterations:h==="rangeArea"?t[x].length-1:void 0,isRangeStart:!0}));if(h==="rangeArea"){var N=this._calculatePathsFrom({series:a,i:x,realIndex:v,prevX:k,prevY:T}),B=this._iterateOverDataPoints(d(d({},O),{},{series:a,pY:b,pathsFrom:N,iterations:a[x].length-1,isRangeStart:!1}));F.linePaths[0]=B.linePath+F.linePath,F.pathFromLine=B.pathFromLine+F.pathFromLine}this._handlePaths({type:h,realIndex:v,i:x,paths:F}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),p.push(this.elSeries)}if(((r=o.config.series[0])===null||r===void 0?void 0:r.zIndex)!==void 0&&p.sort(function(st,dt){return Number(st.node.getAttribute("zIndex"))-Number(dt.node.getAttribute("zIndex"))}),o.config.chart.stacked)for(var $=p.length;$>0;$--)f.add(p[$-1]);else for(var j=0;j<p.length;j++)f.add(p[j]);return f}},{key:"_initSerieVariables",value:function(t,e,i){var a=this.w,r=new V(this.ctx);this.xDivision=a.globals.gridWidth/(a.globals.dataPoints-(a.config.xaxis.tickPlacement==="on"?1:0)),this.strokeWidth=Array.isArray(a.config.stroke.width)?a.config.stroke.width[i]:a.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=i),this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed,this.zeroY=a.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?a.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>a.globals.gridHeight||a.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=a.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=r.group({class:"apexcharts-series",zIndex:a.config.series[i].zIndex!==void 0?a.config.series[i].zIndex:i,seriesName:R.escapeString(a.globals.seriesNames[i])}),this.elPointsMain=r.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=r.group({class:"apexcharts-datalabels","data:realIndex":i});var o=t[e].length===a.globals.dataPoints;this.elSeries.attr({"data:longestSeries":o,rel:e+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(t){var e,i,a,r,o=t.type,l=t.series,h=t.i,f=t.realIndex,g=t.prevX,p=t.prevY,x=t.prevY2,v=this.w,w=new V(this.ctx);if(l[h][0]===null){for(var A=0;A<l[h].length;A++)if(l[h][A]!==null){g=this.xDivision*A,p=this.zeroY-l[h][A]/this.yRatio[this.yaxisIndex],e=w.move(g,p),i=w.move(g,this.areaBottomY);break}}else e=w.move(g,p),o==="rangeArea"&&(e=w.move(g,x)+w.line(g,p)),i=w.move(g,this.areaBottomY)+w.line(g,p);if(a=w.move(-1,this.zeroY)+w.line(-1,this.zeroY),r=w.move(-1,this.zeroY)+w.line(-1,this.zeroY),v.globals.previousPaths.length>0){var S=this.lineHelpers.checkPreviousPaths({pathFromLine:a,pathFromArea:r,realIndex:f});a=S.pathFromLine,r=S.pathFromArea}return{prevX:g,prevY:p,linePath:e,areaPath:i,pathFromLine:a,pathFromArea:r}}},{key:"_handlePaths",value:function(t){var e=t.type,i=t.realIndex,a=t.i,r=t.paths,o=this.w,l=new V(this.ctx),h=new Jt(this.ctx);this.prevSeriesY.push(r.yArrj),o.globals.seriesXvalues[i]=r.xArrj,o.globals.seriesYvalues[i]=r.yArrj;var f=o.config.forecastDataPoints;if(f.count>0&&e!=="rangeArea"){var g=o.globals.seriesXvalues[i][o.globals.seriesXvalues[i].length-f.count-1],p=l.drawRect(g,0,o.globals.gridWidth,o.globals.gridHeight,0);o.globals.dom.elForecastMask.appendChild(p.node);var x=l.drawRect(0,0,g,o.globals.gridHeight,0);o.globals.dom.elNonForecastMask.appendChild(x.node)}this.pointsChart||o.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var v={i:a,realIndex:i,animationDelay:a,initialSpeed:o.config.chart.animations.speed,dataChangeSpeed:o.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(e)};if(e==="area")for(var w=h.fillPath({seriesNumber:i}),A=0;A<r.areaPaths.length;A++){var S=l.renderPaths(d(d({},v),{},{pathFrom:r.pathFromArea,pathTo:r.areaPaths[A],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:w}));this.elSeries.add(S)}if(o.config.stroke.show&&!this.pointsChart){var E=null;if(e==="line")E=h.fillPath({seriesNumber:i,i:a});else if(o.config.stroke.fill.type==="solid")E=o.globals.stroke.colors[i];else{var I=o.config.fill;o.config.fill=o.config.stroke.fill,E=h.fillPath({seriesNumber:i,i:a}),o.config.fill=I}for(var u=0;u<r.linePaths.length;u++){var b=E;e==="rangeArea"&&(b=h.fillPath({seriesNumber:i}));var k=d(d({},v),{},{pathFrom:r.pathFromLine,pathTo:r.linePaths[u],stroke:E,strokeWidth:this.strokeWidth,strokeLineCap:o.config.stroke.lineCap,fill:e==="rangeArea"?b:"none"}),P=l.renderPaths(k);if(this.elSeries.add(P),P.attr("fill-rule","evenodd"),f.count>0&&e!=="rangeArea"){var T=l.renderPaths(k);T.node.setAttribute("stroke-dasharray",f.dashArray),f.strokeWidth&&T.node.setAttribute("stroke-width",f.strokeWidth),this.elSeries.add(T),T.attr("clip-path","url(#forecastMask".concat(o.globals.cuid,")")),P.attr("clip-path","url(#nonForecastMask".concat(o.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(t){var e,i=this,a=t.type,r=t.series,o=t.iterations,l=t.realIndex,h=t.i,f=t.x,g=t.y,p=t.pX,x=t.pY,v=t.pathsFrom,w=t.linePaths,A=t.areaPaths,S=t.seriesIndex,E=t.lineYPosition,I=t.xArrj,u=t.yArrj,b=t.y2Arrj,k=t.isRangeStart,P=t.seriesRangeEnd,T=this.w,O=new V(this.ctx),F=this.yRatio,N=v.prevY,B=v.linePath,$=v.areaPath,j=v.pathFromLine,st=v.pathFromArea,dt=R.isNumber(T.globals.minYArr[l])?T.globals.minYArr[l]:T.globals.minY;o||(o=T.globals.dataPoints>1?T.globals.dataPoints-1:T.globals.dataPoints);for(var mt=function(Ke,Je){return Je-Ke/F[i.yaxisIndex]+2*(i.isReversed?Ke/F[i.yaxisIndex]:0)},At=g,It=T.config.chart.stacked&&!T.globals.comboCharts||T.config.chart.stacked&&T.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((e=this.w.config.series[l])===null||e===void 0?void 0:e.type)==="bar"),Ct=0;Ct<o;Ct++){var Bt=r[h][Ct+1]===void 0||r[h][Ct+1]===null;if(T.globals.isXNumeric){var qt=T.globals.seriesX[l][Ct+1];T.globals.seriesX[l][Ct+1]===void 0&&(qt=T.globals.seriesX[l][o-1]),f=(qt-T.globals.minX)/this.xRatio}else f+=this.xDivision;It?h>0&&T.globals.collapsedSeries.length<T.config.series.length-1?E=this.prevSeriesY[function(Ke){for(var Je=Ke,ue=0;ue<T.globals.series.length;ue++)if(T.globals.collapsedSeriesIndices.indexOf(Ke)>-1){Je--;break}return Je>=0?Je:0}(h-1)][Ct+1]:E=this.zeroY:E=this.zeroY,Bt?g=mt(dt,E):(g=mt(r[h][Ct+1],E),a==="rangeArea"&&(At=mt(P[h][Ct+1],E))),I.push(f),Bt&&T.config.stroke.curve==="smooth"?u.push(null):u.push(g),b.push(At);var Fe=this.lineHelpers.calculatePoints({series:r,x:f,y:g,realIndex:l,i:h,j:Ct,prevY:N}),we=this._createPaths({type:a,series:r,i:h,realIndex:l,j:Ct,x:f,y:g,y2:At,xArrj:I,yArrj:u,y2Arrj:b,pX:p,pY:x,linePath:B,areaPath:$,linePaths:w,areaPaths:A,seriesIndex:S,isRangeStart:k});A=we.areaPaths,w=we.linePaths,p=we.pX,x=we.pY,$=we.areaPath,B=we.linePath,!this.appendPathFrom||T.config.stroke.curve==="monotoneCubic"&&a==="rangeArea"||(j+=O.line(f,this.zeroY),st+=O.line(f,this.zeroY)),this.handleNullDataPoints(r,Fe,h,Ct,l),this._handleMarkersAndLabels({type:a,pointsPos:Fe,i:h,j:Ct,realIndex:l,isRangeStart:k})}return{yArrj:u,xArrj:I,pathFromArea:st,areaPaths:A,pathFromLine:j,linePaths:w,linePath:B,areaPath:$}}},{key:"_handleMarkersAndLabels",value:function(t){var e=t.type,i=t.pointsPos,a=t.isRangeStart,r=t.i,o=t.j,l=t.realIndex,h=this.w,f=new li(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,o,{realIndex:l,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain});else{h.globals.series[r].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var g=this.markers.plotChartMarkers(i,l,o+1);g!==null&&this.elPointsMain.add(g)}var p=f.drawDataLabel({type:e,isRangeStart:a,pos:i,i:l,j:o+1});p!==null&&this.elDataLabelsWrap.add(p)}},{key:"_createPaths",value:function(t){var e=t.type,i=t.series,a=t.i,r=t.realIndex,o=t.j,l=t.x,h=t.y,f=t.xArrj,g=t.yArrj,p=t.y2,x=t.y2Arrj,v=t.pX,w=t.pY,A=t.linePath,S=t.areaPath,E=t.linePaths,I=t.areaPaths,u=t.seriesIndex,b=t.isRangeStart,k=this.w,P=new V(this.ctx),T=k.config.stroke.curve,O=this.areaBottomY;if(Array.isArray(k.config.stroke.curve)&&(T=Array.isArray(u)?k.config.stroke.curve[u[a]]:k.config.stroke.curve[a]),e==="rangeArea"&&(k.globals.hasNullValues||k.config.forecastDataPoints.count>0)&&T==="monotoneCubic"&&(T="straight"),T==="monotoneCubic"){var F=e==="rangeArea"?f.length===k.globals.dataPoints:o===i[a].length-2,N=f.map(function(It,Ct){return[f[Ct],g[Ct]]}).filter(function(It){return It[1]!==null});if(F&&N.length>1){var B=Fn(N);if(A+=Us(B),i[a][0]===null?S=A:S+=Us(B),e==="rangeArea"&&b){A+=P.line(f[f.length-1],x[x.length-1]);var $=f.slice().reverse(),j=x.slice().reverse(),st=$.map(function(It,Ct){return[$[Ct],j[Ct]]}),dt=Fn(st);S=A+=Us(dt)}else S+=P.line(N[N.length-1][0],O)+P.line(N[0][0],O)+P.move(N[0][0],N[0][1])+"z";E.push(A),I.push(S)}}else if(T==="smooth"){var mt=.35*(l-v);k.globals.hasNullValues?(i[a][o]!==null&&(i[a][o+1]!==null?(A=P.move(v,w)+P.curve(v+mt,w,l-mt,h,l+1,h),S=P.move(v+1,w)+P.curve(v+mt,w,l-mt,h,l+1,h)+P.line(l,O)+P.line(v,O)+"z"):(A=P.move(v,w),S=P.move(v,w)+"z")),E.push(A),I.push(S)):(A+=P.curve(v+mt,w,l-mt,h,l,h),S+=P.curve(v+mt,w,l-mt,h,l,h)),v=l,w=h,o===i[a].length-2&&(S=S+P.curve(v,w,l,h,l,O)+P.move(l,h)+"z",e==="rangeArea"&&b?A=A+P.curve(v,w,l,h,l,p)+P.move(l,p)+"z":k.globals.hasNullValues||(E.push(A),I.push(S)))}else{if(i[a][o+1]===null){A+=P.move(l,h);var At=k.globals.isXNumeric?(k.globals.seriesX[r][o]-k.globals.minX)/this.xRatio:l-this.xDivision;S=S+P.line(At,O)+P.move(l,h)+"z"}i[a][o]===null&&(A+=P.move(l,h),S+=P.move(l,O)),T==="stepline"?(A=A+P.line(l,null,"H")+P.line(null,h,"V"),S=S+P.line(l,null,"H")+P.line(null,h,"V")):T==="straight"&&(A+=P.line(l,h),S+=P.line(l,h)),o===i[a].length-2&&(S=S+P.line(l,O)+P.move(l,h)+"z",e==="rangeArea"&&b?A=A+P.line(l,p)+P.move(l,p)+"z":(E.push(A),I.push(S)))}return{linePaths:E,areaPaths:I,pX:v,pY:w,linePath:A,areaPath:S}}},{key:"handleNullDataPoints",value:function(t,e,i,a,r){var o=this.w;if(t[i][a]===null&&o.config.markers.showNullDataPoints||t[i].length===1){var l=this.markers.plotChartMarkers(e,r,a+1,this.strokeWidth-o.config.markers.strokeWidth/2,!0);l!==null&&this.elPointsMain.add(l)}}}]),_}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function _(l,h,f,g){this.xoffset=l,this.yoffset=h,this.height=g,this.width=f,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(p){var x,v=[],w=this.xoffset,A=this.yoffset,S=r(p)/this.height,E=r(p)/this.width;if(this.width>=this.height)for(x=0;x<p.length;x++)v.push([w,A,w+S,A+p[x]/S]),A+=p[x]/S;else for(x=0;x<p.length;x++)v.push([w,A,w+p[x]/E,A+E]),w+=p[x]/E;return v},this.cutArea=function(p){var x;if(this.width>=this.height){var v=p/this.height,w=this.width-v;x=new _(this.xoffset+v,this.yoffset,w,this.height)}else{var A=p/this.width,S=this.height-A;x=new _(this.xoffset,this.yoffset+A,this.width,S)}return x}}function t(l,h,f,g,p){g=g===void 0?0:g,p=p===void 0?0:p;var x=e(function(v,w){var A,S=[],E=w/r(v);for(A=0;A<v.length;A++)S[A]=v[A]*E;return S}(l,h*f),[],new _(g,p,h,f),[]);return function(v){var w,A,S=[];for(w=0;w<v.length;w++)for(A=0;A<v[w].length;A++)S.push(v[w][A]);return S}(x)}function e(l,h,f,g){var p,x,v;if(l.length!==0)return p=f.shortestEdge(),function(w,A,S){var E;if(w.length===0)return!0;(E=w.slice()).push(A);var I=i(w,S),u=i(E,S);return I>=u}(h,x=l[0],p)?(h.push(x),e(l.slice(1),h,f,g)):(v=f.cutArea(r(h),g),g.push(f.getCoordinates(h)),e(l,[],v,g)),g;g.push(f.getCoordinates(h))}function i(l,h){var f=Math.min.apply(Math,l),g=Math.max.apply(Math,l),p=r(l);return Math.max(Math.pow(h,2)*g/Math.pow(p,2),Math.pow(p,2)/(Math.pow(h,2)*f))}function a(l){return l&&l.constructor===Array}function r(l){var h,f=0;for(h=0;h<l.length;h++)f+=l[h];return f}function o(l){var h,f=0;if(a(l[0]))for(h=0;h<l.length;h++)f+=o(l[h]);else f=r(l);return f}return function l(h,f,g,p,x){p=p===void 0?0:p,x=x===void 0?0:x;var v,w,A=[],S=[];if(a(h[0])){for(w=0;w<h.length;w++)A[w]=o(h[w]);for(v=t(A,f,g,p,x),w=0;w<h.length;w++)S.push(l(h[w],v[w][2]-v[w][0],v[w][3]-v[w][1],v[w][0],v[w][1]))}else S=t(h,f,g,p,x);return S}}();var _i,Ya,Ph=function(){function _(t,e){y(this,_),this.ctx=t,this.w=t.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new On(t),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return L(_,[{key:"draw",value:function(t){var e=this,i=this.w,a=new V(this.ctx),r=new Jt(this.ctx),o=a.group({class:"apexcharts-treemap"});if(i.globals.noData)return o;var l=[];return t.forEach(function(h){var f=h.map(function(g){return Math.abs(g)});l.push(f)}),this.negRange=this.helpers.checkColorRange(),i.config.series.forEach(function(h,f){h.data.forEach(function(g){Array.isArray(e.labels[f])||(e.labels[f]=[]),e.labels[f].push(g.x)})}),window.TreemapSquared.generate(l,i.globals.gridWidth,i.globals.gridHeight).forEach(function(h,f){var g=a.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:R.escapeString(i.globals.seriesNames[f]),rel:f+1,"data:realIndex":f});if(i.config.chart.dropShadow.enabled){var p=i.config.chart.dropShadow;new ut(e.ctx).dropShadow(o,p,f)}var x=a.group({class:"apexcharts-data-labels"});h.forEach(function(v,w){var A=v[0],S=v[1],E=v[2],I=v[3],u=a.drawRect(A,S,E-A,I-S,i.config.plotOptions.treemap.borderRadius,"#fff",1,e.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?k:i.globals.stroke.colors[f]);u.attr({cx:A,cy:S,index:f,i:f,j:w,width:E-A,height:I-S});var b=e.helpers.getShadeColor(i.config.chart.type,f,w,e.negRange),k=b.color;i.config.series[f].data[w]!==void 0&&i.config.series[f].data[w].fillColor&&(k=i.config.series[f].data[w].fillColor);var P=r.fillPath({color:k,seriesNumber:f,dataPointIndex:w});u.node.classList.add("apexcharts-treemap-rect"),u.attr({fill:P}),e.helpers.addListeners(u);var T={x:A+(E-A)/2,y:S+(I-S)/2,width:0,height:0},O={x:A,y:S,width:E-A,height:I-S};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var F=1;i.globals.resized||(F=i.config.chart.animations.speed),e.animateTreemap(u,T,O,F)}if(i.globals.dataChanged){var N=1;e.dynamicAnim.enabled&&i.globals.shouldAnimate&&(N=e.dynamicAnim.speed,i.globals.previousPaths[f]&&i.globals.previousPaths[f][w]&&i.globals.previousPaths[f][w].rect&&(T=i.globals.previousPaths[f][w].rect),e.animateTreemap(u,T,O,N))}var B=e.getFontSize(v),$=i.config.dataLabels.formatter(e.labels[f][w],{value:i.globals.series[f][w],seriesIndex:f,dataPointIndex:w,w:i});i.config.plotOptions.treemap.dataLabels.format==="truncate"&&(B=parseInt(i.config.dataLabels.style.fontSize,10),$=e.truncateLabels($,B,A,S,E,I));var j=e.helpers.calculateDataLabels({text:$,x:(A+E)/2,y:(S+I)/2+e.strokeWidth/2+B/3,i:f,j:w,colorProps:b,fontSize:B,series:t});i.config.dataLabels.enabled&&j&&e.rotateToFitLabel(j,B,$,A,S,E,I),g.add(u),j!==null&&g.add(j)}),g.add(x),o.add(g)}),o}},{key:"getFontSize",value:function(t){var e=this.w,i,a,r,o,l=function h(f){var g,p=0;if(Array.isArray(f[0]))for(g=0;g<f.length;g++)p+=h(f[g]);else for(g=0;g<f.length;g++)p+=f[g].length;return p}(this.labels)/function h(f){var g,p=0;if(Array.isArray(f[0]))for(g=0;g<f.length;g++)p+=h(f[g]);else for(g=0;g<f.length;g++)p+=1;return p}(this.labels);return i=t[2]-t[0],a=t[3]-t[1],r=i*a,o=Math.pow(r,.5),Math.min(o/l,parseInt(e.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(t,e,i,a,r,o,l){var h=new V(this.ctx),f=h.getTextRects(i,e);if(f.width+this.w.config.stroke.width+5>o-a&&f.width<=l-r){var g=h.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(-90 ".concat(g.x," ").concat(g.y,") translate(").concat(f.height/3,")"))}}},{key:"truncateLabels",value:function(t,e,i,a,r,o){var l=new V(this.ctx),h=l.getTextRects(t,e).width+this.w.config.stroke.width+5>r-i&&o-a>r-i?o-a:r-i,f=l.getTextBasedOnMaxWidth({text:t,maxWidth:h,fontSize:e});return t.length!==f.length&&h/e<5?"":f}},{key:"animateTreemap",value:function(t,e,i,a){var r=new ht(this.ctx);r.animateRect(t,{x:e.x,y:e.y,width:e.width,height:e.height},{x:i.x,y:i.y,width:i.width,height:i.height},a,function(){r.animationCompleted(t)})}}]),_}(),Lh=86400,_h=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return L(_,[{key:"calculateTimeScaleTicks",value:function(t,e){var i=this,a=this.w;if(a.globals.allSeriesCollapsed)return a.globals.labels=[],a.globals.timescaleLabels=[],[];var r=new Tt(this.ctx),o=(e-t)/864e5;this.determineInterval(o),a.globals.disableZoomIn=!1,a.globals.disableZoomOut=!1,o<.00011574074074074075?a.globals.disableZoomIn=!0:o>5e4&&(a.globals.disableZoomOut=!0);var l=r.getTimeUnitsfromTimestamp(t,e,this.utc),h=a.globals.gridWidth/o,f=h/24,g=f/60,p=g/60,x=Math.floor(24*o),v=Math.floor(1440*o),w=Math.floor(o*Lh),A=Math.floor(o),S=Math.floor(o/30),E=Math.floor(o/365),I={minMillisecond:l.minMillisecond,minSecond:l.minSecond,minMinute:l.minMinute,minHour:l.minHour,minDate:l.minDate,minMonth:l.minMonth,minYear:l.minYear},u={firstVal:I,currentMillisecond:I.minMillisecond,currentSecond:I.minSecond,currentMinute:I.minMinute,currentHour:I.minHour,currentMonthDate:I.minDate,currentDate:I.minDate,currentMonth:I.minMonth,currentYear:I.minYear,daysWidthOnXAxis:h,hoursWidthOnXAxis:f,minutesWidthOnXAxis:g,secondsWidthOnXAxis:p,numberOfSeconds:w,numberOfMinutes:v,numberOfHours:x,numberOfDays:A,numberOfMonths:S,numberOfYears:E};switch(this.tickInterval){case"years":this.generateYearScale(u);break;case"months":case"half_year":this.generateMonthScale(u);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(u);break;case"hours":this.generateHourScale(u);break;case"minutes_fives":case"minutes":this.generateMinuteScale(u);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(u)}var b=this.timeScaleArray.map(function(k){var P={position:k.position,unit:k.unit,year:k.year,day:k.day?k.day:1,hour:k.hour?k.hour:0,month:k.month+1};return k.unit==="month"?d(d({},P),{},{day:1,value:k.value+1}):k.unit==="day"||k.unit==="hour"?d(d({},P),{},{value:k.value}):k.unit==="minute"?d(d({},P),{},{value:k.value,minute:k.value}):k.unit==="second"?d(d({},P),{},{value:k.value,minute:k.minute,second:k.second}):k});return b.filter(function(k){var P=1,T=Math.ceil(a.globals.gridWidth/120),O=k.value;a.config.xaxis.tickAmount!==void 0&&(T=a.config.xaxis.tickAmount),b.length>T&&(P=Math.floor(b.length/T));var F=!1,N=!1;switch(i.tickInterval){case"years":k.unit==="year"&&(F=!0);break;case"half_year":P=7,k.unit==="year"&&(F=!0);break;case"months":P=1,k.unit==="year"&&(F=!0);break;case"months_fortnight":P=15,k.unit!=="year"&&k.unit!=="month"||(F=!0),O===30&&(N=!0);break;case"months_days":P=10,k.unit==="month"&&(F=!0),O===30&&(N=!0);break;case"week_days":P=8,k.unit==="month"&&(F=!0);break;case"days":P=1,k.unit==="month"&&(F=!0);break;case"hours":k.unit==="day"&&(F=!0);break;case"minutes_fives":case"seconds_fives":O%5!=0&&(N=!0);break;case"seconds_tens":O%10!=0&&(N=!0)}if(i.tickInterval==="hours"||i.tickInterval==="minutes_fives"||i.tickInterval==="seconds_tens"||i.tickInterval==="seconds_fives"){if(!N)return!0}else if((O%P==0||F)&&!N)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(t,e){var i=this.w,a=this.formatDates(t),r=this.removeOverlappingTS(a);i.globals.timescaleLabels=r.slice(),new wt(this.ctx).plotCoords()}},{key:"determineInterval",value:function(t){var e=24*t,i=60*e;switch(!0){case t/365>5:this.tickInterval="years";break;case t>800:this.tickInterval="half_year";break;case t>180:this.tickInterval="months";break;case t>90:this.tickInterval="months_fortnight";break;case t>60:this.tickInterval="months_days";break;case t>30:this.tickInterval="week_days";break;case t>2:this.tickInterval="days";break;case e>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(t){var e=t.firstVal,i=t.currentMonth,a=t.currentYear,r=t.daysWidthOnXAxis,o=t.numberOfYears,l=e.minYear,h=0,f=new Tt(this.ctx),g="year";if(e.minDate>1||e.minMonth>0){var p=f.determineRemainingDaysOfYear(e.minYear,e.minMonth,e.minDate);h=(f.determineDaysOfYear(e.minYear)-p+1)*r,l=e.minYear+1,this.timeScaleArray.push({position:h,value:l,unit:g,year:l,month:R.monthMod(i+1)})}else e.minDate===1&&e.minMonth===0&&this.timeScaleArray.push({position:h,value:l,unit:g,year:a,month:R.monthMod(i+1)});for(var x=l,v=h,w=0;w<o;w++)x++,v=f.determineDaysOfYear(x-1)*r+v,this.timeScaleArray.push({position:v,value:x,unit:g,year:x,month:1})}},{key:"generateMonthScale",value:function(t){var e=t.firstVal,i=t.currentMonthDate,a=t.currentMonth,r=t.currentYear,o=t.daysWidthOnXAxis,l=t.numberOfMonths,h=a,f=0,g=new Tt(this.ctx),p="month",x=0;if(e.minDate>1){f=(g.determineDaysOfMonths(a+1,e.minYear)-i+1)*o,h=R.monthMod(a+1);var v=r+x,w=R.monthMod(h),A=h;h===0&&(p="year",A=v,w=1,v+=x+=1),this.timeScaleArray.push({position:f,value:A,unit:p,year:v,month:w})}else this.timeScaleArray.push({position:f,value:h,unit:p,year:r,month:R.monthMod(a)});for(var S=h+1,E=f,I=0,u=1;I<l;I++,u++){(S=R.monthMod(S))===0?(p="year",x+=1):p="month";var b=this._getYear(r,S,x);E=g.determineDaysOfMonths(S,b)*o+E;var k=S===0?b:S;this.timeScaleArray.push({position:E,value:k,unit:p,year:b,month:S===0?1:S}),S++}}},{key:"generateDayScale",value:function(t){var e=t.firstVal,i=t.currentMonth,a=t.currentYear,r=t.hoursWidthOnXAxis,o=t.numberOfDays,l=new Tt(this.ctx),h="day",f=e.minDate+1,g=f,p=function(u,b,k){return u>l.determineDaysOfMonths(b+1,k)&&(g=1,h="month",v=b+=1),b},x=(24-e.minHour)*r,v=f,w=p(g,i,a);e.minHour===0&&e.minDate===1?(x=0,v=R.monthMod(e.minMonth),h="month",g=e.minDate):e.minDate!==1&&e.minHour===0&&e.minMinute===0&&(x=0,f=e.minDate,v=f,w=p(g=f,i,a)),this.timeScaleArray.push({position:x,value:v,unit:h,year:this._getYear(a,w,0),month:R.monthMod(w),day:g});for(var A=x,S=0;S<o;S++){h="day",w=p(g+=1,w,this._getYear(a,w,0));var E=this._getYear(a,w,0);A=24*r+A;var I=g===1?R.monthMod(w):g;this.timeScaleArray.push({position:A,value:I,unit:h,year:E,month:R.monthMod(w),day:I})}}},{key:"generateHourScale",value:function(t){var e=t.firstVal,i=t.currentDate,a=t.currentMonth,r=t.currentYear,o=t.minutesWidthOnXAxis,l=t.numberOfHours,h=new Tt(this.ctx),f="hour",g=function(P,T){return P>h.determineDaysOfMonths(T+1,r)&&(S=1,T+=1),{month:T,date:S}},p=function(P,T){return P>h.determineDaysOfMonths(T+1,r)?T+=1:T},x=60-(e.minMinute+e.minSecond/60),v=x*o,w=e.minHour+1,A=w;x===60&&(v=0,A=w=e.minHour);var S=i;A>=24&&(A=0,S+=1,f="day");var E=g(S,a).month;E=p(S,E),this.timeScaleArray.push({position:v,value:w,unit:f,day:S,hour:A,year:r,month:R.monthMod(E)}),A++;for(var I=v,u=0;u<l;u++){f="hour",A>=24&&(A=0,f="day",E=g(S+=1,E).month,E=p(S,E));var b=this._getYear(r,E,0);I=60*o+I;var k=A===0?S:A;this.timeScaleArray.push({position:I,value:k,unit:f,hour:A,day:S,year:b,month:R.monthMod(E)}),A++}}},{key:"generateMinuteScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,r=t.currentHour,o=t.currentDate,l=t.currentMonth,h=t.currentYear,f=t.minutesWidthOnXAxis,g=t.secondsWidthOnXAxis,p=t.numberOfMinutes,x=a+1,v=o,w=l,A=h,S=r,E=(60-i-e/1e3)*g,I=0;I<p;I++)x>=60&&(x=0,(S+=1)===24&&(S=0)),this.timeScaleArray.push({position:E,value:x,unit:"minute",hour:S,minute:x,day:v,year:this._getYear(A,w,0),month:R.monthMod(w)}),E+=f,x++}},{key:"generateSecondScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,r=t.currentHour,o=t.currentDate,l=t.currentMonth,h=t.currentYear,f=t.secondsWidthOnXAxis,g=t.numberOfSeconds,p=i+1,x=a,v=o,w=l,A=h,S=r,E=(1e3-e)/1e3*f,I=0;I<g;I++)p>=60&&(p=0,++x>=60&&(x=0,++S===24&&(S=0))),this.timeScaleArray.push({position:E,value:p,unit:"second",hour:S,minute:x,second:p,day:v,year:this._getYear(A,w,0),month:R.monthMod(w)}),E+=f,p++}},{key:"createRawDateString",value:function(t,e){var i=t.year;return t.month===0&&(t.month=1),i+="-"+("0"+t.month.toString()).slice(-2),t.unit==="day"?i+=t.unit==="day"?"-"+("0"+e).slice(-2):"-01":i+="-"+("0"+(t.day?t.day:"1")).slice(-2),t.unit==="hour"?i+=t.unit==="hour"?"T"+("0"+e).slice(-2):"T00":i+="T"+("0"+(t.hour?t.hour:"0")).slice(-2),t.unit==="minute"?i+=":"+("0"+e).slice(-2):i+=":"+(t.minute?("0"+t.minute).slice(-2):"00"),t.unit==="second"?i+=":"+("0"+e).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(t){var e=this,i=this.w;return t.map(function(a){var r=a.value.toString(),o=new Tt(e.ctx),l=e.createRawDateString(a,r),h=o.getDate(o.parseDate(l));if(e.utc||(h=o.getDate(o.parseDateWithTimezone(l))),i.config.xaxis.labels.format===void 0){var f="dd MMM",g=i.config.xaxis.labels.datetimeFormatter;a.unit==="year"&&(f=g.year),a.unit==="month"&&(f=g.month),a.unit==="day"&&(f=g.day),a.unit==="hour"&&(f=g.hour),a.unit==="minute"&&(f=g.minute),a.unit==="second"&&(f=g.second),r=o.formatDate(h,f)}else r=o.formatDate(h,i.config.xaxis.labels.format);return{dateString:l,position:a.position,value:r,unit:a.unit,year:a.year,month:a.month}})}},{key:"removeOverlappingTS",value:function(t){var e,i=this,a=new V(this.ctx),r=!1;t.length>0&&t[0].value&&t.every(function(h){return h.value.length===t[0].value.length})&&(r=!0,e=a.getTextRects(t[0].value).width);var o=0,l=t.map(function(h,f){if(f>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var g=r?e:a.getTextRects(t[o].value).width,p=t[o].position;return h.position>p+g+10?(o=f,h):null}return h});return l=l.filter(function(h){return h!==null})}},{key:"_getYear",value:function(t,e,i){return t+Math.floor(e/12)+i}}]),_}(),Eh=function(){function _(t,e){y(this,_),this.ctx=e,this.w=e.w,this.el=t}return L(_,[{key:"setupElements",value:function(){var t=this.w.globals,e=this.w.config,i=e.chart.type;t.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,t.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,t.isBarHorizontal=(e.chart.type==="bar"||e.chart.type==="rangeBar"||e.chart.type==="boxPlot")&&e.plotOptions.bar.horizontal,t.chartClass=".apexcharts"+t.chartID,t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),V.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas "+t.chartClass.substring(1)}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=new window.SVG.Doc(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(e.chart.offsetX,", ").concat(e.chart.offsetY,")")}),t.dom.Paper.node.style.background=e.theme.mode!=="dark"||e.chart.background?e.chart.background:"rgba(0, 0, 0, 0.8)",this.setSVGDimensions(),t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject"),V.setAttrs(t.dom.elLegendForeign,{x:0,y:0,width:t.svgWidth,height:t.svgHeight}),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.dom.elLegendForeign.appendChild(t.dom.elLegendWrap),t.dom.Paper.node.appendChild(t.dom.elLegendForeign),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(t,e){var i=this.w,a=i.config,r=i.globals,o={series:[],i:[]},l={series:[],i:[]},h={series:[],i:[]},f={series:[],i:[]},g={series:[],i:[]},p={series:[],i:[]},x={series:[],i:[]},v={series:[],i:[]},w={series:[],seriesRangeEnd:[],i:[]};r.series.map(function(T,O){var F=0;t[O].type!==void 0?(t[O].type==="column"||t[O].type==="bar"?(r.series.length>1&&a.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),g.series.push(T),g.i.push(O),F++,i.globals.columnSeries=g.series):t[O].type==="area"?(l.series.push(T),l.i.push(O),F++):t[O].type==="line"?(o.series.push(T),o.i.push(O),F++):t[O].type==="scatter"?(h.series.push(T),h.i.push(O)):t[O].type==="bubble"?(f.series.push(T),f.i.push(O),F++):t[O].type==="candlestick"?(p.series.push(T),p.i.push(O),F++):t[O].type==="boxPlot"?(x.series.push(T),x.i.push(O),F++):t[O].type==="rangeBar"?(v.series.push(T),v.i.push(O),F++):t[O].type==="rangeArea"?(w.series.push(r.seriesRangeStart[O]),w.seriesRangeEnd.push(r.seriesRangeEnd[O]),w.i.push(O),F++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble/candlestick/boxPlot/rangeBar/rangeArea"),F>1&&(r.comboCharts=!0)):(o.series.push(T),o.i.push(O))});var A=new qs(this.ctx,e),S=new js(this.ctx,e);this.ctx.pie=new zn(this.ctx);var E=new kh(this.ctx);this.ctx.rangeBar=new Ah(this.ctx,e);var I=new wh(this.ctx),u=[];if(r.comboCharts){if(l.series.length>0&&u.push(A.draw(l.series,"area",l.i)),g.series.length>0)if(i.config.chart.stacked){var b=new Mn(this.ctx,e);u.push(b.draw(g.series,g.i))}else this.ctx.bar=new Hi(this.ctx,e),u.push(this.ctx.bar.draw(g.series,g.i));if(w.series.length>0&&u.push(A.draw(w.series,"rangeArea",w.i,w.seriesRangeEnd)),o.series.length>0&&u.push(A.draw(o.series,"line",o.i)),p.series.length>0&&u.push(S.draw(p.series,"candlestick",p.i)),x.series.length>0&&u.push(S.draw(x.series,"boxPlot",x.i)),v.series.length>0&&u.push(this.ctx.rangeBar.draw(v.series,v.i)),h.series.length>0){var k=new qs(this.ctx,e,!0);u.push(k.draw(h.series,"scatter",h.i))}if(f.series.length>0){var P=new qs(this.ctx,e,!0);u.push(P.draw(f.series,"bubble",f.i))}}else switch(a.chart.type){case"line":u=A.draw(r.series,"line");break;case"area":u=A.draw(r.series,"area");break;case"bar":a.chart.stacked?u=new Mn(this.ctx,e).draw(r.series):(this.ctx.bar=new Hi(this.ctx,e),u=this.ctx.bar.draw(r.series));break;case"candlestick":u=new js(this.ctx,e).draw(r.series,"candlestick");break;case"boxPlot":u=new js(this.ctx,e).draw(r.series,a.chart.type);break;case"rangeBar":u=this.ctx.rangeBar.draw(r.series);break;case"rangeArea":u=A.draw(r.seriesRangeStart,"rangeArea",void 0,r.seriesRangeEnd);break;case"heatmap":u=new yh(this.ctx,e).draw(r.series);break;case"treemap":u=new Ph(this.ctx,e).draw(r.series);break;case"pie":case"donut":case"polarArea":u=this.ctx.pie.draw(r.series);break;case"radialBar":u=E.draw(r.series);break;case"radar":u=I.draw(r.series);break;default:u=A.draw(r.series)}return u}},{key:"setSVGDimensions",value:function(){var t=this.w.globals,e=this.w.config;t.svgWidth=e.chart.width,t.svgHeight=e.chart.height;var i=R.getDimensions(this.el),a=e.chart.width.toString().split(/[0-9]+/g).pop();a==="%"?R.isNumber(i[0])&&(i[0].width===0&&(i=R.getDimensions(this.el.parentNode)),t.svgWidth=i[0]*parseInt(e.chart.width,10)/100):a!=="px"&&a!==""||(t.svgWidth=parseInt(e.chart.width,10));var r=e.chart.height.toString().split(/[0-9]+/g).pop();if(t.svgHeight!=="auto"&&t.svgHeight!=="")if(r==="%"){var o=R.getDimensions(this.el.parentNode);t.svgHeight=o[1]*parseInt(e.chart.height,10)/100}else t.svgHeight=parseInt(e.chart.height,10);else t.axisCharts?t.svgHeight=t.svgWidth/1.61:t.svgHeight=t.svgWidth/1.2;if(t.svgWidth<0&&(t.svgWidth=0),t.svgHeight<0&&(t.svgHeight=0),V.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),r!=="%"){var l=e.chart.sparkline.enabled?0:t.axisCharts?e.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight=t.svgHeight+l+"px"}t.dom.elWrap.style.width=t.svgWidth+"px",t.dom.elWrap.style.height=t.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var t=this.w.globals,e=t.translateY,i={transform:"translate("+t.translateX+", "+e+")"};V.setAttrs(t.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=0,a=t.config.chart.sparkline.enabled?1:15;a+=t.config.grid.padding.bottom,t.config.legend.position!=="top"&&t.config.legend.position!=="bottom"||!t.config.legend.show||t.config.legend.floating||(i=new Ht(this.ctx).legendHelpers.getLegendBBox().clwh+10);var r=t.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),o=2.05*t.globals.radialSize;if(r&&!t.config.chart.sparkline.enabled&&t.config.plotOptions.radialBar.startAngle!==0){var l=R.getBoundingClientRect(r);o=l.bottom;var h=l.bottom-l.top;o=Math.max(2.05*t.globals.radialSize,h)}var f=o+e.translateY+i+a;e.dom.elLegendForeign&&e.dom.elLegendForeign.setAttribute("height",f),t.config.chart.height&&String(t.config.chart.height).indexOf("%")>0||(e.dom.elWrap.style.height=f+"px",V.setAttrs(e.dom.Paper.node,{height:f}),e.dom.Paper.node.parentNode.parentNode.style.minHeight=f+"px")}},{key:"coreCalculations",value:function(){new X(this.ctx).init()}},{key:"resetGlobals",value:function(){var t=this,e=function(){return t.w.config.series.map(function(r){return[]})},i=new Si,a=this.w.globals;i.initGlobalVars(a),a.seriesXvalues=e(),a.seriesYvalues=e()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var t=null,e=this.w;if(e.globals.axisCharts){if(e.config.xaxis.crosshairs.position==="back"&&new Q(this.ctx).drawXCrosshairs(),e.config.yaxis[0].crosshairs.position==="back"&&new Q(this.ctx).drawYCrosshairs(),e.config.xaxis.type==="datetime"&&e.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new _h(this.ctx);var i=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}t=new it(this.ctx).getCalculatedRatios()}return t}},{key:"updateSourceChart",value:function(t){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:t.w.globals.minX,max:t.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var t=this,e=this.w;if(e.config.chart.brush.enabled&&typeof e.config.chart.events.selection!="function"){var i=Array.isArray(e.config.chart.brush.targets)?e.config.chart.brush.targets:[e.config.chart.brush.target];i.forEach(function(a){var r=ApexCharts.getChartByID(a);r.w.globals.brushSource=t.ctx,typeof r.w.config.chart.events.zoomed!="function"&&(r.w.config.chart.events.zoomed=function(){t.updateSourceChart(r)}),typeof r.w.config.chart.events.scrolled!="function"&&(r.w.config.chart.events.scrolled=function(){t.updateSourceChart(r)})}),e.config.chart.events.selection=function(a,r){i.forEach(function(o){var l=ApexCharts.getChartByID(o),h=R.clone(e.config.yaxis);if(e.config.chart.brush.autoScaleYaxis&&l.w.globals.series.length===1){var f=new Ze(l);h=f.autoScaleY(l,h,r)}var g=l.w.config.yaxis.reduce(function(p,x,v){return[].concat(nt(p),[d(d({},l.w.config.yaxis[v]),{},{min:h[0].min,max:h[0].max})])},[]);l.ctx.updateHelpers._updateOptions({xaxis:{min:r.xaxis.min,max:r.xaxis.max},yaxis:g},!1,!1,!1,!1)})}}}}]),_}(),Th=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"_updateOptions",value:function(t){var e=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],r=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],o=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return new Promise(function(l){var h=[e.ctx];r&&(h=e.ctx.getSyncedCharts()),e.ctx.w.globals.isExecCalled&&(h=[e.ctx],e.ctx.w.globals.isExecCalled=!1),h.forEach(function(f,g){var p=f.w;if(p.globals.shouldAnimate=a,i||(p.globals.resized=!0,p.globals.dataChanged=!0,a&&f.series.getPreviousPaths()),t&&m(t)==="object"&&(f.config=new Le(t),t=it.extendArrayProps(f.config,t,p),f.w.globals.chartID!==e.ctx.w.globals.chartID&&delete t.series,p.config=R.extend(p.config,t),o&&(p.globals.lastXAxis=t.xaxis?R.clone(t.xaxis):[],p.globals.lastYAxis=t.yaxis?R.clone(t.yaxis):[],p.globals.initialConfig=R.extend({},p.config),p.globals.initialSeries=R.clone(p.config.series),t.series))){for(var x=0;x<p.globals.collapsedSeriesIndices.length;x++){var v=p.config.series[p.globals.collapsedSeriesIndices[x]];p.globals.collapsedSeries[x].data=p.globals.axisCharts?v.data.slice():v}for(var w=0;w<p.globals.ancillaryCollapsedSeriesIndices.length;w++){var A=p.config.series[p.globals.ancillaryCollapsedSeriesIndices[w]];p.globals.ancillaryCollapsedSeries[w].data=p.globals.axisCharts?A.data.slice():A}f.series.emptyCollapsedSeries(p.config.series)}return f.update(t).then(function(){g===h.length-1&&l(f)})})})}},{key:"_updateSeries",value:function(t,e){var i=this,a=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(r){var o,l=i.w;return l.globals.shouldAnimate=e,l.globals.dataChanged=!0,e&&i.ctx.series.getPreviousPaths(),l.globals.axisCharts?((o=t.map(function(h,f){return i._extendSeries(h,f)})).length===0&&(o=[{data:[]}]),l.config.series=o):l.config.series=t.slice(),a&&(l.globals.initialConfig.series=R.clone(l.config.series),l.globals.initialSeries=R.clone(l.config.series)),i.ctx.update().then(function(){r(i.ctx)})})}},{key:"_extendSeries",value:function(t,e){var i=this.w,a=i.config.series[e];return d(d({},i.config.series[e]),{},{name:t.name?t.name:a==null?void 0:a.name,color:t.color?t.color:a==null?void 0:a.color,type:t.type?t.type:a==null?void 0:a.type,group:t.group?t.group:a==null?void 0:a.group,data:t.data?t.data:a==null?void 0:a.data,zIndex:t.zIndex!==void 0?t.zIndex:e})}},{key:"toggleDataPointSelection",value:function(t,e){var i=this.w,a=null,r=".apexcharts-series[data\\:realIndex='".concat(t,"']");return i.globals.axisCharts?a=i.globals.dom.Paper.select("".concat(r," path[j='").concat(e,"'], ").concat(r," circle[j='").concat(e,"'], ").concat(r," rect[j='").concat(e,"']")).members[0]:e===void 0&&(a=i.globals.dom.Paper.select("".concat(r," path[j='").concat(t,"']")).members[0],i.config.chart.type!=="pie"&&i.config.chart.type!=="polarArea"&&i.config.chart.type!=="donut"||this.ctx.pie.pieClicked(t)),a?(new V(this.ctx).pathMouseDown(a,null),a.node?a.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(t){var e=this.w;if(["min","max"].forEach(function(a){t.xaxis[a]!==void 0&&(e.config.xaxis[a]=t.xaxis[a],e.globals.lastXAxis[a]=t.xaxis[a])}),t.xaxis.categories&&t.xaxis.categories.length&&(e.config.xaxis.categories=t.xaxis.categories),e.config.xaxis.convertedCatToNumeric){var i=new Rt(t);t=i.convertCatToNumericXaxis(t,this.ctx)}return t}},{key:"forceYAxisUpdate",value:function(t){return t.chart&&t.chart.stacked&&t.chart.stackType==="100%"&&(Array.isArray(t.yaxis)?t.yaxis.forEach(function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100}):(t.yaxis.min=0,t.yaxis.max=100)),t}},{key:"revertDefaultAxisMinMax",value:function(t){var e=this,i=this.w,a=i.globals.lastXAxis,r=i.globals.lastYAxis;t&&t.xaxis&&(a=t.xaxis),t&&t.yaxis&&(r=t.yaxis),i.config.xaxis.min=a.min,i.config.xaxis.max=a.max;var o=function(l){r[l]!==void 0&&(i.config.yaxis[l].min=r[l].min,i.config.yaxis[l].max=r[l].max)};i.config.yaxis.map(function(l,h){i.globals.zoomed||r[h]!==void 0?o(h):e.ctx.opts.yaxis[h]!==void 0&&(l.min=e.ctx.opts.yaxis[h].min,l.max=e.ctx.opts.yaxis[h].max)})}}]),_}();_i=typeof window<"u"?window:void 0,Ya=function(_,t){var e=(this!==void 0?this:_).SVG=function(u){if(e.supported)return u=new e.Doc(u),e.parser.draw||e.prepare(),u};if(e.ns="http://www.w3.org/2000/svg",e.xmlns="http://www.w3.org/2000/xmlns/",e.xlink="http://www.w3.org/1999/xlink",e.svgjs="http://svgjs.dev",e.supported=!0,!e.supported)return!1;e.did=1e3,e.eid=function(u){return"Svgjs"+g(u)+e.did++},e.create=function(u){var b=t.createElementNS(this.ns,u);return b.setAttribute("id",this.eid(u)),b},e.extend=function(){var u,b;b=(u=[].slice.call(arguments)).pop();for(var k=u.length-1;k>=0;k--)if(u[k])for(var P in b)u[k].prototype[P]=b[P];e.Set&&e.Set.inherit&&e.Set.inherit()},e.invent=function(u){var b=typeof u.create=="function"?u.create:function(){this.constructor.call(this,e.create(u.create))};return u.inherit&&(b.prototype=new u.inherit),u.extend&&e.extend(b,u.extend),u.construct&&e.extend(u.parent||e.Container,u.construct),b},e.adopt=function(u){return u?u.instance?u.instance:((b=u.nodeName=="svg"?u.parentNode instanceof _.SVGElement?new e.Nested:new e.Doc:u.nodeName=="linearGradient"?new e.Gradient("linear"):u.nodeName=="radialGradient"?new e.Gradient("radial"):e[g(u.nodeName)]?new e[g(u.nodeName)]:new e.Element(u)).type=u.nodeName,b.node=u,u.instance=b,b instanceof e.Doc&&b.namespace().defs(),b.setData(JSON.parse(u.getAttribute("svgjs:data"))||{}),b):null;var b},e.prepare=function(){var u=t.getElementsByTagName("body")[0],b=(u?new e.Doc(u):e.adopt(t.documentElement).nested()).size(2,0);e.parser={body:u||t.documentElement,draw:b.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:b.polyline().node,path:b.path().node,native:e.create("svg")}},e.parser={native:e.create("svg")},t.addEventListener("DOMContentLoaded",function(){e.parser.draw||e.prepare()},!1),e.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},e.utils={map:function(u,b){for(var k=u.length,P=[],T=0;T<k;T++)P.push(b(u[T]));return P},filter:function(u,b){for(var k=u.length,P=[],T=0;T<k;T++)b(u[T])&&P.push(u[T]);return P},filterSVGElements:function(u){return this.filter(u,function(b){return b instanceof _.SVGElement})}},e.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},e.Color=function(u){var b,k;this.r=0,this.g=0,this.b=0,u&&(typeof u=="string"?e.regex.isRgb.test(u)?(b=e.regex.rgb.exec(u.replace(e.regex.whitespace,"")),this.r=parseInt(b[1]),this.g=parseInt(b[2]),this.b=parseInt(b[3])):e.regex.isHex.test(u)&&(b=e.regex.hex.exec((k=u).length==4?["#",k.substring(1,2),k.substring(1,2),k.substring(2,3),k.substring(2,3),k.substring(3,4),k.substring(3,4)].join(""):k),this.r=parseInt(b[1],16),this.g=parseInt(b[2],16),this.b=parseInt(b[3],16)):m(u)==="object"&&(this.r=u.r,this.g=u.g,this.b=u.b))},e.extend(e.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+p(this.r)+p(this.g)+p(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(u){return this.destination=new e.Color(u),this},at:function(u){return this.destination?(u=u<0?0:u>1?1:u,new e.Color({r:~~(this.r+(this.destination.r-this.r)*u),g:~~(this.g+(this.destination.g-this.g)*u),b:~~(this.b+(this.destination.b-this.b)*u)})):this}}),e.Color.test=function(u){return u+="",e.regex.isHex.test(u)||e.regex.isRgb.test(u)},e.Color.isRgb=function(u){return u&&typeof u.r=="number"&&typeof u.g=="number"&&typeof u.b=="number"},e.Color.isColor=function(u){return e.Color.isRgb(u)||e.Color.test(u)},e.Array=function(u,b){(u=(u||[]).valueOf()).length==0&&b&&(u=b.valueOf()),this.value=this.parse(u)},e.extend(e.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(u){return u=u.valueOf(),Array.isArray(u)?u:this.split(u)}}),e.PointArray=function(u,b){e.Array.call(this,u,b||[[0,0]])},e.PointArray.prototype=new e.Array,e.PointArray.prototype.constructor=e.PointArray;for(var i={M:function(u,b,k){return b.x=k.x=u[0],b.y=k.y=u[1],["M",b.x,b.y]},L:function(u,b){return b.x=u[0],b.y=u[1],["L",u[0],u[1]]},H:function(u,b){return b.x=u[0],["H",u[0]]},V:function(u,b){return b.y=u[0],["V",u[0]]},C:function(u,b){return b.x=u[4],b.y=u[5],["C",u[0],u[1],u[2],u[3],u[4],u[5]]},Q:function(u,b){return b.x=u[2],b.y=u[3],["Q",u[0],u[1],u[2],u[3]]},S:function(u,b){return b.x=u[2],b.y=u[3],["S",u[0],u[1],u[2],u[3]]},Z:function(u,b,k){return b.x=k.x,b.y=k.y,["Z"]}},a="mlhvqtcsaz".split(""),r=0,o=a.length;r<o;++r)i[a[r]]=function(u){return function(b,k,P){if(u=="H")b[0]=b[0]+k.x;else if(u=="V")b[0]=b[0]+k.y;else if(u=="A")b[5]=b[5]+k.x,b[6]=b[6]+k.y;else for(var T=0,O=b.length;T<O;++T)b[T]=b[T]+(T%2?k.y:k.x);if(i&&typeof i[u]=="function")return i[u](b,k,P)}}(a[r].toUpperCase());e.PathArray=function(u,b){e.Array.call(this,u,b||[["M",0,0]])},e.PathArray.prototype=new e.Array,e.PathArray.prototype.constructor=e.PathArray,e.extend(e.PathArray,{toString:function(){return function(u){for(var b=0,k=u.length,P="";b<k;b++)P+=u[b][0],u[b][1]!=null&&(P+=u[b][1],u[b][2]!=null&&(P+=" ",P+=u[b][2],u[b][3]!=null&&(P+=" ",P+=u[b][3],P+=" ",P+=u[b][4],u[b][5]!=null&&(P+=" ",P+=u[b][5],P+=" ",P+=u[b][6],u[b][7]!=null&&(P+=" ",P+=u[b][7])))));return P+" "}(this.value)},move:function(u,b){var k=this.bbox();return k.x,k.y,this},at:function(u){if(!this.destination)return this;for(var b=this.value,k=this.destination.value,P=[],T=new e.PathArray,O=0,F=b.length;O<F;O++){P[O]=[b[O][0]];for(var N=1,B=b[O].length;N<B;N++)P[O][N]=b[O][N]+(k[O][N]-b[O][N])*u;P[O][0]==="A"&&(P[O][4]=+(P[O][4]!=0),P[O][5]=+(P[O][5]!=0))}return T.value=P,T},parse:function(u){if(u instanceof e.PathArray)return u.valueOf();var b,k={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};u=typeof u=="string"?u.replace(e.regex.numbersWithDots,h).replace(e.regex.pathLetters," $& ").replace(e.regex.hyphen,"$1 -").trim().split(e.regex.delimiter):u.reduce(function(B,$){return[].concat.call(B,$)},[]);var P=[],T=new e.Point,O=new e.Point,F=0,N=u.length;do e.regex.isPathLetter.test(u[F])?(b=u[F],++F):b=="M"?b="L":b=="m"&&(b="l"),P.push(i[b].call(null,u.slice(F,F+=k[b.toUpperCase()]).map(parseFloat),T,O));while(N>F);return P},bbox:function(){return e.parser.draw||e.prepare(),e.parser.path.setAttribute("d",this.toString()),e.parser.path.getBBox()}}),e.Number=e.invent({create:function(u,b){this.value=0,this.unit=b||"",typeof u=="number"?this.value=isNaN(u)?0:isFinite(u)?u:u<0?-34e37:34e37:typeof u=="string"?(b=u.match(e.regex.numberAndUnit))&&(this.value=parseFloat(b[1]),b[5]=="%"?this.value/=100:b[5]=="s"&&(this.value*=1e3),this.unit=b[5]):u instanceof e.Number&&(this.value=u.valueOf(),this.unit=u.unit)},extend:{toString:function(){return(this.unit=="%"?~~(1e8*this.value)/1e6:this.unit=="s"?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(u){return u=new e.Number(u),new e.Number(this+u,this.unit||u.unit)},minus:function(u){return u=new e.Number(u),new e.Number(this-u,this.unit||u.unit)},times:function(u){return u=new e.Number(u),new e.Number(this*u,this.unit||u.unit)},divide:function(u){return u=new e.Number(u),new e.Number(this/u,this.unit||u.unit)},to:function(u){var b=new e.Number(this);return typeof u=="string"&&(b.unit=u),b},morph:function(u){return this.destination=new e.Number(u),u.relative&&(this.destination.value+=this.value),this},at:function(u){return this.destination?new e.Number(this.destination).minus(this).times(u).plus(this):this}}}),e.Element=e.invent({create:function(u){this._stroke=e.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=u)&&(this.type=u.nodeName,this.node.instance=this,this._stroke=u.getAttribute("stroke")||this._stroke)},extend:{x:function(u){return this.attr("x",u)},y:function(u){return this.attr("y",u)},cx:function(u){return u==null?this.x()+this.width()/2:this.x(u-this.width()/2)},cy:function(u){return u==null?this.y()+this.height()/2:this.y(u-this.height()/2)},move:function(u,b){return this.x(u).y(b)},center:function(u,b){return this.cx(u).cy(b)},width:function(u){return this.attr("width",u)},height:function(u){return this.attr("height",u)},size:function(u,b){var k=x(this,u,b);return this.width(new e.Number(k.width)).height(new e.Number(k.height))},clone:function(u){this.writeDataToDom();var b=A(this.node.cloneNode(!0));return u?u.add(b):this.after(b),b},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(u){return this.after(u).remove(),u},addTo:function(u){return u.put(this)},putIn:function(u){return u.add(this)},id:function(u){return this.attr("id",u)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return this.style("display")!="none"},toString:function(){return this.attr("id")},classes:function(){var u=this.attr("class");return u==null?[]:u.trim().split(e.regex.delimiter)},hasClass:function(u){return this.classes().indexOf(u)!=-1},addClass:function(u){if(!this.hasClass(u)){var b=this.classes();b.push(u),this.attr("class",b.join(" "))}return this},removeClass:function(u){return this.hasClass(u)&&this.attr("class",this.classes().filter(function(b){return b!=u}).join(" ")),this},toggleClass:function(u){return this.hasClass(u)?this.removeClass(u):this.addClass(u)},reference:function(u){return e.get(this.attr(u))},parent:function(u){var b=this;if(!b.node.parentNode)return null;if(b=e.adopt(b.node.parentNode),!u)return b;for(;b&&b.node instanceof _.SVGElement;){if(typeof u=="string"?b.matches(u):b instanceof u)return b;if(!b.node.parentNode||b.node.parentNode.nodeName=="#document")return null;b=e.adopt(b.node.parentNode)}},doc:function(){return this instanceof e.Doc?this:this.parent(e.Doc)},parents:function(u){var b=[],k=this;do{if(!(k=k.parent(u))||!k.node)break;b.push(k)}while(k.parent);return b},matches:function(u){return function(b,k){return(b.matches||b.matchesSelector||b.msMatchesSelector||b.mozMatchesSelector||b.webkitMatchesSelector||b.oMatchesSelector).call(b,k)}(this.node,u)},native:function(){return this.node},svg:function(u){var b=t.createElement("svg");if(!(u&&this instanceof e.Parent))return b.appendChild(u=t.createElement("svg")),this.writeDataToDom(),u.appendChild(this.node.cloneNode(!0)),b.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");b.innerHTML="<svg>"+u.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var k=0,P=b.firstChild.childNodes.length;k<P;k++)this.node.appendChild(b.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each(function(){this.writeDataToDom()}),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(u){return this.dom=u,this},is:function(u){return function(b,k){return b instanceof k}(this,u)}}}),e.easing={"-":function(u){return u},"<>":function(u){return-Math.cos(u*Math.PI)/2+.5},">":function(u){return Math.sin(u*Math.PI/2)},"<":function(u){return 1-Math.cos(u*Math.PI/2)}},e.morph=function(u){return function(b,k){return new e.MorphObj(b,k).at(u)}},e.Situation=e.invent({create:function(u){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new e.Number(u.duration).valueOf(),this.delay=new e.Number(u.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=u.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),e.FX=e.invent({create:function(u){this._target=u,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(u,b,k){m(u)==="object"&&(b=u.ease,k=u.delay,u=u.duration);var P=new e.Situation({duration:u||1e3,delay:k||0,ease:e.easing[b||"-"]||b});return this.queue(P),this},target:function(u){return u&&u instanceof e.Element?(this._target=u,this):this._target},timeToAbsPos:function(u){return(u-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(u){return this.situation.duration/this._speed*u+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=_.requestAnimationFrame((function(){this.step()}).bind(this))},stopAnimFrame:function(){_.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(u){return(typeof u=="function"||u instanceof e.Situation)&&this.situations.push(u),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof e.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var u,b=this.situation;if(b.init)return this;for(var k in b.animations){u=this.target()[k](),Array.isArray(u)||(u=[u]),Array.isArray(b.animations[k])||(b.animations[k]=[b.animations[k]]);for(var P=u.length;P--;)b.animations[k][P]instanceof e.Number&&(u[P]=new e.Number(u[P])),b.animations[k][P]=u[P].morph(b.animations[k][P])}for(var k in b.attrs)b.attrs[k]=new e.MorphObj(this.target().attr(k),b.attrs[k]);for(var k in b.styles)b.styles[k]=new e.MorphObj(this.target().style(k),b.styles[k]);return b.initialTransformation=this.target().matrixify(),b.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(u,b){var k=this.active;return this.active=!1,b&&this.clearQueue(),u&&this.situation&&(!k&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(u){var b=this.last();return this.target().on("finished.fx",function k(P){P.detail.situation==b&&(u.call(this,b),this.off("finished.fx",k))}),this._callStart()},during:function(u){var b=this.last(),k=function(P){P.detail.situation==b&&u.call(this,P.detail.pos,e.morph(P.detail.pos),P.detail.eased,b)};return this.target().off("during.fx",k).on("during.fx",k),this.after(function(){this.off("during.fx",k)}),this._callStart()},afterAll:function(u){var b=function k(P){u.call(this),this.off("allfinished.fx",k)};return this.target().off("allfinished.fx",b).on("allfinished.fx",b),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(u,b,k){return this.last()[k||"animations"][u]=b,this._callStart()},step:function(u){var b,k,P;u||(this.absPos=this.timeToAbsPos(+new Date)),this.situation.loops!==!1?(b=Math.max(this.absPos,0),k=Math.floor(b),this.situation.loops===!0||k<this.situation.loops?(this.pos=b-k,P=this.situation.loop,this.situation.loop=k):(this.absPos=this.situation.loops,this.pos=1,P=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=!!((this.situation.loop-P)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var T=this.situation.ease(this.pos);for(var O in this.situation.once)O>this.lastPos&&O<=T&&(this.situation.once[O].call(this.target(),this.pos,T),delete this.situation.once[O]);return this.active&&this.target().fire("during",{pos:this.pos,eased:T,fx:this,situation:this.situation}),this.situation?(this.eachAt(),this.pos==1&&!this.situation.reversed||this.situation.reversed&&this.pos==0?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=T,this):this},eachAt:function(){var u,b=this,k=this.target(),P=this.situation;for(var T in P.animations)u=[].concat(P.animations[T]).map(function(N){return typeof N!="string"&&N.at?N.at(P.ease(b.pos),b.pos):N}),k[T].apply(k,u);for(var T in P.attrs)u=[T].concat(P.attrs[T]).map(function(B){return typeof B!="string"&&B.at?B.at(P.ease(b.pos),b.pos):B}),k.attr.apply(k,u);for(var T in P.styles)u=[T].concat(P.styles[T]).map(function(B){return typeof B!="string"&&B.at?B.at(P.ease(b.pos),b.pos):B}),k.style.apply(k,u);if(P.transforms.length){u=P.initialTransformation,T=0;for(var O=P.transforms.length;T<O;T++){var F=P.transforms[T];F instanceof e.Matrix?u=F.relative?u.multiply(new e.Matrix().morph(F).at(P.ease(this.pos))):u.morph(F).at(P.ease(this.pos)):(F.relative||F.undo(u.extract()),u=u.multiply(F.at(P.ease(this.pos))))}k.matrix(u)}return this},once:function(u,b,k){var P=this.last();return k||(u=P.ease(u)),P.once[u]=b,this},_callStart:function(){return setTimeout((function(){this.start()}).bind(this),0),this}},parent:e.Element,construct:{animate:function(u,b,k){return(this.fx||(this.fx=new e.FX(this))).animate(u,b,k)},delay:function(u){return(this.fx||(this.fx=new e.FX(this))).delay(u)},stop:function(u,b){return this.fx&&this.fx.stop(u,b),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),e.MorphObj=e.invent({create:function(u,b){return e.Color.isColor(b)?new e.Color(u).morph(b):e.regex.delimiter.test(u)?e.regex.pathLetters.test(u)?new e.PathArray(u).morph(b):new e.Array(u).morph(b):e.regex.numberAndUnit.test(b)?new e.Number(u).morph(b):(this.value=u,void(this.destination=b))},extend:{at:function(u,b){return b<1?this.value:this.destination},valueOf:function(){return this.value}}}),e.extend(e.FX,{attr:function(u,b,k){if(m(u)==="object")for(var P in u)this.attr(P,u[P]);else this.add(u,b,"attrs");return this},plot:function(u,b,k,P){return arguments.length==4?this.plot([u,b,k,P]):this.add("plot",new(this.target()).morphArray(u))}}),e.Box=e.invent({create:function(u,b,k,P){if(!(m(u)!=="object"||u instanceof e.Element))return e.Box.call(this,u.left!=null?u.left:u.x,u.top!=null?u.top:u.y,u.width,u.height);var T;arguments.length==4&&(this.x=u,this.y=b,this.width=k,this.height=P),(T=this).x==null&&(T.x=0,T.y=0,T.width=0,T.height=0),T.w=T.width,T.h=T.height,T.x2=T.x+T.width,T.y2=T.y+T.height,T.cx=T.x+T.width/2,T.cy=T.y+T.height/2}}),e.BBox=e.invent({create:function(u){if(e.Box.apply(this,[].slice.call(arguments)),u instanceof e.Element){var b;try{if(!t.documentElement.contains){for(var k=u.node;k.parentNode;)k=k.parentNode;if(k!=t)throw new Error("Element not in the dom")}b=u.node.getBBox()}catch{if(u instanceof e.Shape){e.parser.draw||e.prepare();var P=u.clone(e.parser.draw.instance).show();P&&P.node&&typeof P.node.getBBox=="function"&&(b=P.node.getBBox()),P&&typeof P.remove=="function"&&P.remove()}else b={x:u.node.clientLeft,y:u.node.clientTop,width:u.node.clientWidth,height:u.node.clientHeight}}e.Box.call(this,b)}},inherit:e.Box,parent:e.Element,construct:{bbox:function(){return new e.BBox(this)}}}),e.BBox.prototype.constructor=e.BBox,e.Matrix=e.invent({create:function(u){var b=w([1,0,0,1,0,0]);u=u===null?b:u instanceof e.Element?u.matrixify():typeof u=="string"?w(u.split(e.regex.delimiter).map(parseFloat)):arguments.length==6?w([].slice.call(arguments)):Array.isArray(u)?w(u):u&&m(u)==="object"?u:b;for(var k=E.length-1;k>=0;--k)this[E[k]]=u[E[k]]!=null?u[E[k]]:b[E[k]]},extend:{extract:function(){var u=v(this,0,1);v(this,1,0);var b=180/Math.PI*Math.atan2(u.y,u.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(b*Math.PI/180)+this.f*Math.sin(b*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(b*Math.PI/180)+this.e*Math.sin(-b*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:b,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new e.Matrix(this)}},clone:function(){return new e.Matrix(this)},morph:function(u){return this.destination=new e.Matrix(u),this},multiply:function(u){return new e.Matrix(this.native().multiply(function(b){return b instanceof e.Matrix||(b=new e.Matrix(b)),b}(u).native()))},inverse:function(){return new e.Matrix(this.native().inverse())},translate:function(u,b){return new e.Matrix(this.native().translate(u||0,b||0))},native:function(){for(var u=e.parser.native.createSVGMatrix(),b=E.length-1;b>=0;b--)u[E[b]]=this[E[b]];return u},toString:function(){return"matrix("+S(this.a)+","+S(this.b)+","+S(this.c)+","+S(this.d)+","+S(this.e)+","+S(this.f)+")"}},parent:e.Element,construct:{ctm:function(){return new e.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof e.Nested){var u=this.rect(1,1),b=u.node.getScreenCTM();return u.remove(),new e.Matrix(b)}return new e.Matrix(this.node.getScreenCTM())}}}),e.Point=e.invent({create:function(u,b){var k;k=Array.isArray(u)?{x:u[0],y:u[1]}:m(u)==="object"?{x:u.x,y:u.y}:u!=null?{x:u,y:b??u}:{x:0,y:0},this.x=k.x,this.y=k.y},extend:{clone:function(){return new e.Point(this)},morph:function(u,b){return this.destination=new e.Point(u,b),this}}}),e.extend(e.Element,{point:function(u,b){return new e.Point(u,b).transform(this.screenCTM().inverse())}}),e.extend(e.Element,{attr:function(u,b,k){if(u==null){for(u={},k=(b=this.node.attributes).length-1;k>=0;k--)u[b[k].nodeName]=e.regex.isNumber.test(b[k].nodeValue)?parseFloat(b[k].nodeValue):b[k].nodeValue;return u}if(m(u)==="object")for(var P in u)this.attr(P,u[P]);else if(b===null)this.node.removeAttribute(u);else{if(b==null)return(b=this.node.getAttribute(u))==null?e.defaults.attrs[u]:e.regex.isNumber.test(b)?parseFloat(b):b;u=="stroke-width"?this.attr("stroke",parseFloat(b)>0?this._stroke:null):u=="stroke"&&(this._stroke=b),u!="fill"&&u!="stroke"||(e.regex.isImage.test(b)&&(b=this.doc().defs().image(b,0,0)),b instanceof e.Image&&(b=this.doc().defs().pattern(0,0,function(){this.add(b)}))),typeof b=="number"?b=new e.Number(b):e.Color.isColor(b)?b=new e.Color(b):Array.isArray(b)&&(b=new e.Array(b)),u=="leading"?this.leading&&this.leading(b):typeof k=="string"?this.node.setAttributeNS(k,u,b.toString()):this.node.setAttribute(u,b.toString()),!this.rebuild||u!="font-size"&&u!="x"||this.rebuild(u,b)}return this}}),e.extend(e.Element,{transform:function(u,b){var k;return m(u)!=="object"?(k=new e.Matrix(this).extract(),typeof u=="string"?k[u]:k):(k=new e.Matrix(this),b=!!b||!!u.relative,u.a!=null&&(k=b?k.multiply(new e.Matrix(u)):new e.Matrix(u)),this.attr("transform",k))}}),e.extend(e.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(e.regex.transforms).slice(0,-1).map(function(u){var b=u.trim().split("(");return[b[0],b[1].split(e.regex.delimiter).map(function(k){return parseFloat(k)})]}).reduce(function(u,b){return b[0]=="matrix"?u.multiply(w(b[1])):u[b[0]].apply(u,b[1])},new e.Matrix)},toParent:function(u){if(this==u)return this;var b=this.screenCTM(),k=u.screenCTM().inverse();return this.addTo(u).untransform().transform(k.multiply(b)),this},toDoc:function(){return this.toParent(this.doc())}}),e.Transformation=e.invent({create:function(u,b){if(arguments.length>1&&typeof b!="boolean")return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(u))for(var k=0,P=this.arguments.length;k<P;++k)this[this.arguments[k]]=u[k];else if(u&&m(u)==="object")for(k=0,P=this.arguments.length;k<P;++k)this[this.arguments[k]]=u[this.arguments[k]];this.inversed=!1,b===!0&&(this.inversed=!0)}}),e.Translate=e.invent({parent:e.Matrix,inherit:e.Transformation,create:function(u,b){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),e.extend(e.Element,{style:function(u,b){if(arguments.length==0)return this.node.style.cssText||"";if(arguments.length<2)if(m(u)==="object")for(var k in u)this.style(k,u[k]);else{if(!e.regex.isCss.test(u))return this.node.style[f(u)];for(u=u.split(/\s*;\s*/).filter(function(P){return!!P}).map(function(P){return P.split(/\s*:\s*/)});b=u.pop();)this.style(b[0],b[1])}else this.node.style[f(u)]=b===null||e.regex.isBlank.test(b)?"":b;return this}}),e.Parent=e.invent({create:function(u){this.constructor.call(this,u)},inherit:e.Element,extend:{children:function(){return e.utils.map(e.utils.filterSVGElements(this.node.childNodes),function(u){return e.adopt(u)})},add:function(u,b){return b==null?this.node.appendChild(u.node):u.node!=this.node.childNodes[b]&&this.node.insertBefore(u.node,this.node.childNodes[b]),this},put:function(u,b){return this.add(u,b),u},has:function(u){return this.index(u)>=0},index:function(u){return[].slice.call(this.node.childNodes).indexOf(u.node)},get:function(u){return e.adopt(this.node.childNodes[u])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(u,b){for(var k=this.children(),P=0,T=k.length;P<T;P++)k[P]instanceof e.Element&&u.apply(k[P],[P,k]),b&&k[P]instanceof e.Container&&k[P].each(u,b);return this},removeElement:function(u){return this.node.removeChild(u.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),e.extend(e.Parent,{ungroup:function(u,b){return b===0||this instanceof e.Defs||this.node==e.parser.draw||(u=u||(this instanceof e.Doc?this:this.parent(e.Parent)),b=b||1/0,this.each(function(){return this instanceof e.Defs?this:this instanceof e.Parent?this.ungroup(u,b-1):this.toParent(u)}),this.node.firstChild||this.remove()),this},flatten:function(u,b){return this.ungroup(u,b)}}),e.Container=e.invent({create:function(u){this.constructor.call(this,u)},inherit:e.Parent}),e.ViewBox=e.invent({parent:e.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(u){e.Element.prototype[u]=function(b){return e.on(this.node,u,b),this}}),e.listeners=[],e.handlerMap=[],e.listenerId=0,e.on=function(u,b,k,P,T){var O=k.bind(P||u.instance||u),F=(e.handlerMap.indexOf(u)+1||e.handlerMap.push(u))-1,N=b.split(".")[0],B=b.split(".")[1]||"*";e.listeners[F]=e.listeners[F]||{},e.listeners[F][N]=e.listeners[F][N]||{},e.listeners[F][N][B]=e.listeners[F][N][B]||{},k._svgjsListenerId||(k._svgjsListenerId=++e.listenerId),e.listeners[F][N][B][k._svgjsListenerId]=O,u.addEventListener(N,O,T||{passive:!0})},e.off=function(u,b,k){var P=e.handlerMap.indexOf(u),T=b&&b.split(".")[0],O=b&&b.split(".")[1],F="";if(P!=-1)if(k){if(typeof k=="function"&&(k=k._svgjsListenerId),!k)return;e.listeners[P][T]&&e.listeners[P][T][O||"*"]&&(u.removeEventListener(T,e.listeners[P][T][O||"*"][k],!1),delete e.listeners[P][T][O||"*"][k])}else if(O&&T){if(e.listeners[P][T]&&e.listeners[P][T][O]){for(var N in e.listeners[P][T][O])e.off(u,[T,O].join("."),N);delete e.listeners[P][T][O]}}else if(O)for(var B in e.listeners[P])for(var F in e.listeners[P][B])O===F&&e.off(u,[B,O].join("."));else if(T){if(e.listeners[P][T]){for(var F in e.listeners[P][T])e.off(u,[T,F].join("."));delete e.listeners[P][T]}}else{for(var B in e.listeners[P])e.off(u,B);delete e.listeners[P],delete e.handlerMap[P]}},e.extend(e.Element,{on:function(u,b,k,P){return e.on(this.node,u,b,k,P),this},off:function(u,b){return e.off(this.node,u,b),this},fire:function(u,b){return u instanceof _.Event?this.node.dispatchEvent(u):this.node.dispatchEvent(u=new e.CustomEvent(u,{detail:b,cancelable:!0})),this._event=u,this},event:function(){return this._event}}),e.Defs=e.invent({create:"defs",inherit:e.Container}),e.G=e.invent({create:"g",inherit:e.Container,extend:{x:function(u){return u==null?this.transform("x"):this.transform({x:u-this.x()},!0)}},construct:{group:function(){return this.put(new e.G)}}}),e.Doc=e.invent({create:function(u){u&&((u=typeof u=="string"?t.getElementById(u):u).nodeName=="svg"?this.constructor.call(this,u):(this.constructor.call(this,e.create("svg")),u.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:e.Container,extend:{namespace:function(){return this.attr({xmlns:e.ns,version:"1.1"}).attr("xmlns:xlink",e.xlink,e.xmlns).attr("xmlns:svgjs",e.svgjs,e.xmlns)},defs:function(){var u;return this._defs||((u=this.node.getElementsByTagName("defs")[0])?this._defs=e.adopt(u):this._defs=new e.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&this.node.parentNode.nodeName!="#document"?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,e.parser.draw&&!e.parser.draw.parentNode&&this.node.appendChild(e.parser.draw),this},clone:function(u){this.writeDataToDom();var b=this.node,k=A(b.cloneNode(!0));return u?(u.node||u).appendChild(k.node):b.parentNode.insertBefore(k.node,b.nextSibling),k}}}),e.extend(e.Element,{}),e.Gradient=e.invent({create:function(u){this.constructor.call(this,e.create(u+"Gradient")),this.type=u},inherit:e.Container,extend:{at:function(u,b,k){return this.put(new e.Stop).update(u,b,k)},update:function(u){return this.clear(),typeof u=="function"&&u.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(u,b,k){return u=="transform"&&(u="gradientTransform"),e.Container.prototype.attr.call(this,u,b,k)}},construct:{gradient:function(u,b){return this.defs().gradient(u,b)}}}),e.extend(e.Gradient,e.FX,{from:function(u,b){return(this._target||this).type=="radial"?this.attr({fx:new e.Number(u),fy:new e.Number(b)}):this.attr({x1:new e.Number(u),y1:new e.Number(b)})},to:function(u,b){return(this._target||this).type=="radial"?this.attr({cx:new e.Number(u),cy:new e.Number(b)}):this.attr({x2:new e.Number(u),y2:new e.Number(b)})}}),e.extend(e.Defs,{gradient:function(u,b){return this.put(new e.Gradient(u)).update(b)}}),e.Stop=e.invent({create:"stop",inherit:e.Element,extend:{update:function(u){return(typeof u=="number"||u instanceof e.Number)&&(u={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),u.opacity!=null&&this.attr("stop-opacity",u.opacity),u.color!=null&&this.attr("stop-color",u.color),u.offset!=null&&this.attr("offset",new e.Number(u.offset)),this}}}),e.Pattern=e.invent({create:"pattern",inherit:e.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(u){return this.clear(),typeof u=="function"&&u.call(this,this),this},toString:function(){return this.fill()},attr:function(u,b,k){return u=="transform"&&(u="patternTransform"),e.Container.prototype.attr.call(this,u,b,k)}},construct:{pattern:function(u,b,k){return this.defs().pattern(u,b,k)}}}),e.extend(e.Defs,{pattern:function(u,b,k){return this.put(new e.Pattern).update(k).attr({x:0,y:0,width:u,height:b,patternUnits:"userSpaceOnUse"})}}),e.Shape=e.invent({create:function(u){this.constructor.call(this,u)},inherit:e.Element}),e.Symbol=e.invent({create:"symbol",inherit:e.Container,construct:{symbol:function(){return this.put(new e.Symbol)}}}),e.Use=e.invent({create:"use",inherit:e.Shape,extend:{element:function(u,b){return this.attr("href",(b||"")+"#"+u,e.xlink)}},construct:{use:function(u,b){return this.put(new e.Use).element(u,b)}}}),e.Rect=e.invent({create:"rect",inherit:e.Shape,construct:{rect:function(u,b){return this.put(new e.Rect).size(u,b)}}}),e.Circle=e.invent({create:"circle",inherit:e.Shape,construct:{circle:function(u){return this.put(new e.Circle).rx(new e.Number(u).divide(2)).move(0,0)}}}),e.extend(e.Circle,e.FX,{rx:function(u){return this.attr("r",u)},ry:function(u){return this.rx(u)}}),e.Ellipse=e.invent({create:"ellipse",inherit:e.Shape,construct:{ellipse:function(u,b){return this.put(new e.Ellipse).size(u,b).move(0,0)}}}),e.extend(e.Ellipse,e.Rect,e.FX,{rx:function(u){return this.attr("rx",u)},ry:function(u){return this.attr("ry",u)}}),e.extend(e.Circle,e.Ellipse,{x:function(u){return u==null?this.cx()-this.rx():this.cx(u+this.rx())},y:function(u){return u==null?this.cy()-this.ry():this.cy(u+this.ry())},cx:function(u){return u==null?this.attr("cx"):this.attr("cx",u)},cy:function(u){return u==null?this.attr("cy"):this.attr("cy",u)},width:function(u){return u==null?2*this.rx():this.rx(new e.Number(u).divide(2))},height:function(u){return u==null?2*this.ry():this.ry(new e.Number(u).divide(2))},size:function(u,b){var k=x(this,u,b);return this.rx(new e.Number(k.width).divide(2)).ry(new e.Number(k.height).divide(2))}}),e.Line=e.invent({create:"line",inherit:e.Shape,extend:{array:function(){return new e.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(u,b,k,P){return u==null?this.array():(u=b!==void 0?{x1:u,y1:b,x2:k,y2:P}:new e.PointArray(u).toLine(),this.attr(u))},move:function(u,b){return this.attr(this.array().move(u,b).toLine())},size:function(u,b){var k=x(this,u,b);return this.attr(this.array().size(k.width,k.height).toLine())}},construct:{line:function(u,b,k,P){return e.Line.prototype.plot.apply(this.put(new e.Line),u!=null?[u,b,k,P]:[0,0,0,0])}}}),e.Polyline=e.invent({create:"polyline",inherit:e.Shape,construct:{polyline:function(u){return this.put(new e.Polyline).plot(u||new e.PointArray)}}}),e.Polygon=e.invent({create:"polygon",inherit:e.Shape,construct:{polygon:function(u){return this.put(new e.Polygon).plot(u||new e.PointArray)}}}),e.extend(e.Polyline,e.Polygon,{array:function(){return this._array||(this._array=new e.PointArray(this.attr("points")))},plot:function(u){return u==null?this.array():this.clear().attr("points",typeof u=="string"?u:this._array=new e.PointArray(u))},clear:function(){return delete this._array,this},move:function(u,b){return this.attr("points",this.array().move(u,b))},size:function(u,b){var k=x(this,u,b);return this.attr("points",this.array().size(k.width,k.height))}}),e.extend(e.Line,e.Polyline,e.Polygon,{morphArray:e.PointArray,x:function(u){return u==null?this.bbox().x:this.move(u,this.bbox().y)},y:function(u){return u==null?this.bbox().y:this.move(this.bbox().x,u)},width:function(u){var b=this.bbox();return u==null?b.width:this.size(u,b.height)},height:function(u){var b=this.bbox();return u==null?b.height:this.size(b.width,u)}}),e.Path=e.invent({create:"path",inherit:e.Shape,extend:{morphArray:e.PathArray,array:function(){return this._array||(this._array=new e.PathArray(this.attr("d")))},plot:function(u){return u==null?this.array():this.clear().attr("d",typeof u=="string"?u:this._array=new e.PathArray(u))},clear:function(){return delete this._array,this}},construct:{path:function(u){return this.put(new e.Path).plot(u||new e.PathArray)}}}),e.Image=e.invent({create:"image",inherit:e.Shape,extend:{load:function(u){if(!u)return this;var b=this,k=new _.Image;return e.on(k,"load",function(){e.off(k);var P=b.parent(e.Pattern);P!==null&&(b.width()==0&&b.height()==0&&b.size(k.width,k.height),P&&P.width()==0&&P.height()==0&&P.size(b.width(),b.height()),typeof b._loaded=="function"&&b._loaded.call(b,{width:k.width,height:k.height,ratio:k.width/k.height,url:u}))}),e.on(k,"error",function(P){e.off(k),typeof b._error=="function"&&b._error.call(b,P)}),this.attr("href",k.src=this.src=u,e.xlink)},loaded:function(u){return this._loaded=u,this},error:function(u){return this._error=u,this}},construct:{image:function(u,b,k){return this.put(new e.Image).load(u).size(b||0,k||b||0)}}}),e.Text=e.invent({create:function(){this.constructor.call(this,e.create("text")),this.dom.leading=new e.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",e.defaults.attrs["font-family"])},inherit:e.Shape,extend:{x:function(u){return u==null?this.attr("x"):this.attr("x",u)},text:function(u){if(u===void 0){u="";for(var b=this.node.childNodes,k=0,P=b.length;k<P;++k)k!=0&&b[k].nodeType!=3&&e.adopt(b[k]).dom.newLined==1&&(u+=`
`),u+=b[k].textContent;return u}if(this.clear().build(!0),typeof u=="function")u.call(this,this);else{k=0;for(var T=(u=u.split(`
`)).length;k<T;k++)this.tspan(u[k]).newLine()}return this.build(!1).rebuild()},size:function(u){return this.attr("font-size",u).rebuild()},leading:function(u){return u==null?this.dom.leading:(this.dom.leading=new e.Number(u),this.rebuild())},lines:function(){var u=(this.textPath&&this.textPath()||this).node,b=e.utils.map(e.utils.filterSVGElements(u.childNodes),function(k){return e.adopt(k)});return new e.Set(b)},rebuild:function(u){if(typeof u=="boolean"&&(this._rebuild=u),this._rebuild){var b=this,k=0,P=this.dom.leading*new e.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(b.textPath()||this.attr("x",b.attr("x")),this.text()==`
`?k+=P:(this.attr("dy",P+k),k=0))}),this.fire("rebuild")}return this},build:function(u){return this._build=!!u,this},setData:function(u){return this.dom=u,this.dom.leading=new e.Number(u.leading||1.3),this}},construct:{text:function(u){return this.put(new e.Text).text(u)},plain:function(u){return this.put(new e.Text).plain(u)}}}),e.Tspan=e.invent({create:"tspan",inherit:e.Shape,extend:{text:function(u){return u==null?this.node.textContent+(this.dom.newLined?`
`:""):(typeof u=="function"?u.call(this,this):this.plain(u),this)},dx:function(u){return this.attr("dx",u)},dy:function(u){return this.attr("dy",u)},newLine:function(){var u=this.parent(e.Text);return this.dom.newLined=!0,this.dy(u.dom.leading*u.attr("font-size")).attr("x",u.x())}}}),e.extend(e.Text,e.Tspan,{plain:function(u){return this._build===!1&&this.clear(),this.node.appendChild(t.createTextNode(u)),this},tspan:function(u){var b=(this.textPath&&this.textPath()||this).node,k=new e.Tspan;return this._build===!1&&this.clear(),b.appendChild(k.node),k.text(u)},clear:function(){for(var u=(this.textPath&&this.textPath()||this).node;u.hasChildNodes();)u.removeChild(u.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),e.TextPath=e.invent({create:"textPath",inherit:e.Parent,parent:e.Text,construct:{morphArray:e.PathArray,array:function(){var u=this.track();return u?u.array():null},plot:function(u){var b=this.track(),k=null;return b&&(k=b.plot(u)),u==null?k:this},track:function(){var u=this.textPath();if(u)return u.reference("href")},textPath:function(){if(this.node.firstChild&&this.node.firstChild.nodeName=="textPath")return e.adopt(this.node.firstChild)}}}),e.Nested=e.invent({create:function(){this.constructor.call(this,e.create("svg")),this.style("overflow","visible")},inherit:e.Container,construct:{nested:function(){return this.put(new e.Nested)}}});var l={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(u,b){return b=="color"?u:u+"-"+b}};function h(u,b,k,P){return k+P.replace(e.regex.dots," .")}function f(u){return u.toLowerCase().replace(/-(.)/g,function(b,k){return k.toUpperCase()})}function g(u){return u.charAt(0).toUpperCase()+u.slice(1)}function p(u){var b=u.toString(16);return b.length==1?"0"+b:b}function x(u,b,k){if(b==null||k==null){var P=u.bbox();b==null?b=P.width/P.height*k:k==null&&(k=P.height/P.width*b)}return{width:b,height:k}}function v(u,b,k){return{x:b*u.a+k*u.c+0,y:b*u.b+k*u.d+0}}function w(u){return{a:u[0],b:u[1],c:u[2],d:u[3],e:u[4],f:u[5]}}function A(u){for(var b=u.childNodes.length-1;b>=0;b--)u.childNodes[b]instanceof _.SVGElement&&A(u.childNodes[b]);return e.adopt(u).id(e.eid(u.nodeName))}function S(u){return Math.abs(u)>1e-37?u:0}["fill","stroke"].forEach(function(u){var b={};b[u]=function(k){if(k===void 0)return this;if(typeof k=="string"||e.Color.isRgb(k)||k&&typeof k.fill=="function")this.attr(u,k);else for(var P=l[u].length-1;P>=0;P--)k[l[u][P]]!=null&&this.attr(l.prefix(u,l[u][P]),k[l[u][P]]);return this},e.extend(e.Element,e.FX,b)}),e.extend(e.Element,e.FX,{translate:function(u,b){return this.transform({x:u,y:b})},matrix:function(u){return this.attr("transform",new e.Matrix(arguments.length==6?[].slice.call(arguments):u))},opacity:function(u){return this.attr("opacity",u)},dx:function(u){return this.x(new e.Number(u).plus(this instanceof e.FX?0:this.x()),!0)},dy:function(u){return this.y(new e.Number(u).plus(this instanceof e.FX?0:this.y()),!0)}}),e.extend(e.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(u){return this.node.getPointAtLength(u)}}),e.Set=e.invent({create:function(u){Array.isArray(u)?this.members=u:this.clear()},extend:{add:function(){for(var u=[].slice.call(arguments),b=0,k=u.length;b<k;b++)this.members.push(u[b]);return this},remove:function(u){var b=this.index(u);return b>-1&&this.members.splice(b,1),this},each:function(u){for(var b=0,k=this.members.length;b<k;b++)u.apply(this.members[b],[b,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(u){return this.index(u)>=0},index:function(u){return this.members.indexOf(u)},get:function(u){return this.members[u]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(u){return new e.Set(u)}}}),e.FX.Set=e.invent({create:function(u){this.set=u}}),e.Set.inherit=function(){var u=[];for(var b in e.Shape.prototype)typeof e.Shape.prototype[b]=="function"&&typeof e.Set.prototype[b]!="function"&&u.push(b);for(var b in u.forEach(function(P){e.Set.prototype[P]=function(){for(var T=0,O=this.members.length;T<O;T++)this.members[T]&&typeof this.members[T][P]=="function"&&this.members[T][P].apply(this.members[T],arguments);return P=="animate"?this.fx||(this.fx=new e.FX.Set(this)):this}}),u=[],e.FX.prototype)typeof e.FX.prototype[b]=="function"&&typeof e.FX.Set.prototype[b]!="function"&&u.push(b);u.forEach(function(k){e.FX.Set.prototype[k]=function(){for(var P=0,T=this.set.members.length;P<T;P++)this.set.members[P].fx[k].apply(this.set.members[P].fx,arguments);return this}})},e.extend(e.Element,{}),e.extend(e.Element,{remember:function(u,b){if(m(arguments[0])==="object")for(var k in u)this.remember(k,u[k]);else{if(arguments.length==1)return this.memory()[u];this.memory()[u]=b}return this},forget:function(){if(arguments.length==0)this._memory={};else for(var u=arguments.length-1;u>=0;u--)delete this.memory()[arguments[u]];return this},memory:function(){return this._memory||(this._memory={})}}),e.get=function(u){var b=t.getElementById(function(k){var P=(k||"").toString().match(e.regex.reference);if(P)return P[1]}(u)||u);return e.adopt(b)},e.select=function(u,b){return new e.Set(e.utils.map((b||t).querySelectorAll(u),function(k){return e.adopt(k)}))},e.extend(e.Parent,{select:function(u){return e.select(u,this.node)}});var E="abcdef".split("");if(typeof _.CustomEvent!="function"){var I=function(u,b){b=b||{bubbles:!1,cancelable:!1,detail:void 0};var k=t.createEvent("CustomEvent");return k.initCustomEvent(u,b.bubbles,b.cancelable,b.detail),k};I.prototype=_.Event.prototype,e.CustomEvent=I}else e.CustomEvent=_.CustomEvent;return e},m(n)==="object"?s.exports=_i.document?Ya(_i,_i.document):function(_){return Ya(_,_.document)}:_i.SVG=Ya(_i,_i.document),(function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(o,l){return this.add(o,l),!o.attr("in")&&this.autoSetIn&&o.attr("in",this.source),o.attr("result")||o.attr("result",o),o},blend:function(o,l,h){return this.put(new SVG.BlendEffect(o,l,h))},colorMatrix:function(o,l){return this.put(new SVG.ColorMatrixEffect(o,l))},convolveMatrix:function(o){return this.put(new SVG.ConvolveMatrixEffect(o))},componentTransfer:function(o){return this.put(new SVG.ComponentTransferEffect(o))},composite:function(o,l,h){return this.put(new SVG.CompositeEffect(o,l,h))},flood:function(o,l){return this.put(new SVG.FloodEffect(o,l))},offset:function(o,l){return this.put(new SVG.OffsetEffect(o,l))},image:function(o){return this.put(new SVG.ImageEffect(o))},merge:function(){var o=[void 0];for(var l in arguments)o.push(arguments[l]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,o)))},gaussianBlur:function(o,l){return this.put(new SVG.GaussianBlurEffect(o,l))},morphology:function(o,l){return this.put(new SVG.MorphologyEffect(o,l))},diffuseLighting:function(o,l,h){return this.put(new SVG.DiffuseLightingEffect(o,l,h))},displacementMap:function(o,l,h,f,g){return this.put(new SVG.DisplacementMapEffect(o,l,h,f,g))},specularLighting:function(o,l,h,f){return this.put(new SVG.SpecularLightingEffect(o,l,h,f))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(o,l,h,f,g){return this.put(new SVG.TurbulenceEffect(o,l,h,f,g))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(o){var l=this.put(new SVG.Filter);return typeof o=="function"&&o.call(l,l),l}}),SVG.extend(SVG.Container,{filter:function(o){return this.defs().filter(o)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(o){return this.filterer=o instanceof SVG.Element?o:this.doc().filter(o),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(o){return this.filterer&&o===!0&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(o){return o==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",o)},result:function(o){return o==null?this.attr("result"):this.attr("result",o)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(o){return o==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",o)},result:function(o){return o==null?this.attr("result"):this.attr("result",o)},toString:function(){return this.result()}}});var _={blend:function(o,l){return this.parent()&&this.parent().blend(this,o,l)},colorMatrix:function(o,l){return this.parent()&&this.parent().colorMatrix(o,l).in(this)},convolveMatrix:function(o){return this.parent()&&this.parent().convolveMatrix(o).in(this)},componentTransfer:function(o){return this.parent()&&this.parent().componentTransfer(o).in(this)},composite:function(o,l){return this.parent()&&this.parent().composite(this,o,l)},flood:function(o,l){return this.parent()&&this.parent().flood(o,l)},offset:function(o,l){return this.parent()&&this.parent().offset(o,l).in(this)},image:function(o){return this.parent()&&this.parent().image(o)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(o,l){return this.parent()&&this.parent().gaussianBlur(o,l).in(this)},morphology:function(o,l){return this.parent()&&this.parent().morphology(o,l).in(this)},diffuseLighting:function(o,l,h){return this.parent()&&this.parent().diffuseLighting(o,l,h).in(this)},displacementMap:function(o,l,h,f){return this.parent()&&this.parent().displacementMap(this,o,l,h,f)},specularLighting:function(o,l,h,f){return this.parent()&&this.parent().specularLighting(o,l,h,f).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(o,l,h,f,g){return this.parent()&&this.parent().turbulence(o,l,h,f,g).in(this)}};SVG.extend(SVG.Effect,_),SVG.extend(SVG.ParentEffect,_),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(o){this.attr("in",o)}}});var t={blend:function(o,l,h){this.attr({in:o,in2:l,mode:h||"normal"})},colorMatrix:function(o,l){o=="matrix"&&(l=a(l)),this.attr({type:o,values:l===void 0?null:l})},convolveMatrix:function(o){o=a(o),this.attr({order:Math.sqrt(o.split(" ").length),kernelMatrix:o})},composite:function(o,l,h){this.attr({in:o,in2:l,operator:h})},flood:function(o,l){this.attr("flood-color",o),l!=null&&this.attr("flood-opacity",l)},offset:function(o,l){this.attr({dx:o,dy:l})},image:function(o){this.attr("href",o,SVG.xlink)},displacementMap:function(o,l,h,f,g){this.attr({in:o,in2:l,scale:h,xChannelSelector:f,yChannelSelector:g})},gaussianBlur:function(o,l){o!=null||l!=null?this.attr("stdDeviation",function(h){if(!Array.isArray(h))return h;for(var f=0,g=h.length,p=[];f<g;f++)p.push(h[f]);return p.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(o,l){this.attr({operator:o,radius:l})},tile:function(){},turbulence:function(o,l,h,f,g){this.attr({numOctaves:l,seed:h,stitchTiles:f,baseFrequency:o,type:g})}},e={merge:function(){var o;if(arguments[0]instanceof SVG.Set){var l=this;arguments[0].each(function(f){this instanceof SVG.MergeNode?l.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&l.put(new SVG.MergeNode(this))})}else{o=Array.isArray(arguments[0])?arguments[0]:arguments;for(var h=0;h<o.length;h++)o[h]instanceof SVG.MergeNode?this.put(o[h]):this.put(new SVG.MergeNode(o[h]))}},componentTransfer:function(o){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach((function(h){this[h]=new SVG["Func"+h.toUpperCase()]("identity"),this.rgb.add(this[h]),this.node.appendChild(this[h].node)}).bind(this)),o)for(var l in o.rgb&&(["r","g","b"].forEach((function(h){this[h].attr(o.rgb)}).bind(this)),delete o.rgb),o)this[l].attr(o[l])},diffuseLighting:function(o,l,h){this.attr({surfaceScale:o,diffuseConstant:l,kernelUnitLength:h})},specularLighting:function(o,l,h,f){this.attr({surfaceScale:o,diffuseConstant:l,specularExponent:h,kernelUnitLength:f})}},i={distantLight:function(o,l){this.attr({azimuth:o,elevation:l})},pointLight:function(o,l,h){this.attr({x:o,y:l,z:h})},spotLight:function(o,l,h,f,g,p){this.attr({x:o,y:l,z:h,pointsAtX:f,pointsAtY:g,pointsAtZ:p})},mergeNode:function(o){this.attr("in",o)}};function a(o){return Array.isArray(o)&&(o=new SVG.Array(o)),o.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function r(){var o=function(){};for(var l in typeof arguments[arguments.length-1]=="function"&&(o=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var h in arguments[l])o(arguments[l][h],h,arguments[l])}["r","g","b","a"].forEach(function(o){i["Func"+o.toUpperCase()]=function(l){switch(this.attr("type",l),l){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}}),r(t,function(o,l){var h=l.charAt(0).toUpperCase()+l.slice(1);SVG[h+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+h)),o.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})}),r(e,function(o,l){var h=l.charAt(0).toUpperCase()+l.slice(1);SVG[h+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+h)),o.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})}),r(i,function(o,l){var h=l.charAt(0).toUpperCase()+l.slice(1);SVG[h]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+h)),o.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})}),SVG.extend(SVG.MergeEffect,{in:function(o){return o instanceof SVG.MergeNode?this.add(o,0):this.add(new SVG.MergeNode(o),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(o){return o==null?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",o)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}).call(void 0),function(){function _(r,o,l,h,f,g,p){for(var x=r.slice(o,l||p),v=h.slice(f,g||p),w=0,A={pos:[0,0],start:[0,0]},S={pos:[0,0],start:[0,0]};x[w]=t.call(A,x[w]),v[w]=t.call(S,v[w]),x[w][0]!=v[w][0]||x[w][0]=="M"||x[w][0]=="A"&&(x[w][4]!=v[w][4]||x[w][5]!=v[w][5])?(Array.prototype.splice.apply(x,[w,1].concat(i.call(A,x[w]))),Array.prototype.splice.apply(v,[w,1].concat(i.call(S,v[w])))):(x[w]=e.call(A,x[w]),v[w]=e.call(S,v[w])),!(++w==x.length&&w==v.length);)w==x.length&&x.push(["C",A.pos[0],A.pos[1],A.pos[0],A.pos[1],A.pos[0],A.pos[1]]),w==v.length&&v.push(["C",S.pos[0],S.pos[1],S.pos[0],S.pos[1],S.pos[0],S.pos[1]]);return{start:x,dest:v}}function t(r){switch(r[0]){case"z":case"Z":r[0]="L",r[1]=this.start[0],r[2]=this.start[1];break;case"H":r[0]="L",r[2]=this.pos[1];break;case"V":r[0]="L",r[2]=r[1],r[1]=this.pos[0];break;case"T":r[0]="Q",r[3]=r[1],r[4]=r[2],r[1]=this.reflection[1],r[2]=this.reflection[0];break;case"S":r[0]="C",r[6]=r[4],r[5]=r[3],r[4]=r[2],r[3]=r[1],r[2]=this.reflection[1],r[1]=this.reflection[0]}return r}function e(r){var o=r.length;return this.pos=[r[o-2],r[o-1]],"SCQT".indexOf(r[0])!=-1&&(this.reflection=[2*this.pos[0]-r[o-4],2*this.pos[1]-r[o-3]]),r}function i(r){var o=[r];switch(r[0]){case"M":return this.pos=this.start=[r[1],r[2]],o;case"L":r[5]=r[3]=r[1],r[6]=r[4]=r[2],r[1]=this.pos[0],r[2]=this.pos[1];break;case"Q":r[6]=r[4],r[5]=r[3],r[4]=1*r[4]/3+2*r[2]/3,r[3]=1*r[3]/3+2*r[1]/3,r[2]=1*this.pos[1]/3+2*r[2]/3,r[1]=1*this.pos[0]/3+2*r[1]/3;break;case"A":o=function(l,h){var f,g,p,x,v,w,A,S,E,I,u,b,k,P,T,O,F,N,B,$,j,st,dt,mt,At,It,Ct=Math.abs(h[1]),Bt=Math.abs(h[2]),qt=h[3]%360,Fe=h[4],we=h[5],Ke=h[6],Je=h[7],ue=new SVG.Point(l),pe=new SVG.Point(Ke,Je),Yn=[];if(Ct===0||Bt===0||ue.x===pe.x&&ue.y===pe.y)return[["C",ue.x,ue.y,pe.x,pe.y,pe.x,pe.y]];for(f=new SVG.Point((ue.x-pe.x)/2,(ue.y-pe.y)/2).transform(new SVG.Matrix().rotate(qt)),(g=f.x*f.x/(Ct*Ct)+f.y*f.y/(Bt*Bt))>1&&(Ct*=g=Math.sqrt(g),Bt*=g),p=new SVG.Matrix().rotate(qt).scale(1/Ct,1/Bt).rotate(-qt),ue=ue.transform(p),pe=pe.transform(p),x=[pe.x-ue.x,pe.y-ue.y],w=x[0]*x[0]+x[1]*x[1],v=Math.sqrt(w),x[0]/=v,x[1]/=v,A=w<4?Math.sqrt(1-w/4):0,Fe===we&&(A*=-1),S=new SVG.Point((pe.x+ue.x)/2+A*-x[1],(pe.y+ue.y)/2+A*x[0]),E=new SVG.Point(ue.x-S.x,ue.y-S.y),I=new SVG.Point(pe.x-S.x,pe.y-S.y),u=Math.acos(E.x/Math.sqrt(E.x*E.x+E.y*E.y)),E.y<0&&(u*=-1),b=Math.acos(I.x/Math.sqrt(I.x*I.x+I.y*I.y)),I.y<0&&(b*=-1),we&&u>b&&(b+=2*Math.PI),!we&&u<b&&(b-=2*Math.PI),P=Math.ceil(2*Math.abs(u-b)/Math.PI),O=[],F=u,k=(b-u)/P,T=4*Math.tan(k/4)/3,j=0;j<=P;j++)B=Math.cos(F),N=Math.sin(F),$=new SVG.Point(S.x+B,S.y+N),O[j]=[new SVG.Point($.x+T*N,$.y-T*B),$,new SVG.Point($.x-T*N,$.y+T*B)],F+=k;for(O[0][0]=O[0][1].clone(),O[O.length-1][2]=O[O.length-1][1].clone(),p=new SVG.Matrix().rotate(qt).scale(Ct,Bt).rotate(-qt),j=0,st=O.length;j<st;j++)O[j][0]=O[j][0].transform(p),O[j][1]=O[j][1].transform(p),O[j][2]=O[j][2].transform(p);for(j=1,st=O.length;j<st;j++)dt=($=O[j-1][2]).x,mt=$.y,At=($=O[j][0]).x,It=$.y,Ke=($=O[j][1]).x,Je=$.y,Yn.push(["C",dt,mt,At,It,Ke,Je]);return Yn}(this.pos,r),r=o[0]}return r[0]="C",this.pos=[r[5],r[6]],this.reflection=[2*r[5]-r[3],2*r[6]-r[4]],o}function a(r,o){if(o===!1)return!1;for(var l=o,h=r.length;l<h;++l)if(r[l][0]=="M")return l;return!1}SVG.extend(SVG.PathArray,{morph:function(r){for(var o=this.value,l=this.parse(r),h=0,f=0,g=!1,p=!1;h!==!1||f!==!1;){var x;g=a(o,h!==!1&&h+1),p=a(l,f!==!1&&f+1),h===!1&&(h=(x=new SVG.PathArray(v.start).bbox()).height==0||x.width==0?o.push(o[0])-1:o.push(["M",x.x+x.width/2,x.y+x.height/2])-1),f===!1&&(f=(x=new SVG.PathArray(v.dest).bbox()).height==0||x.width==0?l.push(l[0])-1:l.push(["M",x.x+x.width/2,x.y+x.height/2])-1);var v=_(o,h,g,l,f,p);o=o.slice(0,h).concat(v.start,g===!1?[]:o.slice(g)),l=l.slice(0,f).concat(v.dest,p===!1?[]:l.slice(p)),h=g!==!1&&h+v.start.length,f=p!==!1&&f+v.dest.length}return this.value=o,this.destination=new SVG.PathArray,this.destination.value=l,this}})}(),(function(){function _(t){t.remember("_draggable",this),this.el=t}_.prototype.init=function(t,e){var i=this;this.constraint=t,this.value=e,this.el.on("mousedown.drag",function(a){i.start(a)}),this.el.on("touchstart.drag",function(a){i.start(a)})},_.prototype.transformPoint=function(t,e){var i=(t=t||window.event).changedTouches&&t.changedTouches[0]||t;return this.p.x=i.clientX-(e||0),this.p.y=i.clientY,this.p.matrixTransform(this.m)},_.prototype.getBBox=function(){var t=this.el.bbox();return this.el instanceof SVG.Nested&&(t=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(t.x=this.el.x(),t.y=this.el.y()),t},_.prototype.start=function(t){if(t.type!="click"&&t.type!="mousedown"&&t.type!="mousemove"||(t.which||t.buttons)==1){var e=this;if(this.el.fire("beforedrag",{event:t,handler:this}),!this.el.event().defaultPrevented){t.preventDefault(),t.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var i,a=this.getBBox();if(this.el instanceof SVG.Text)switch(i=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":i/=2;break;case"start":i=0}this.startPoints={point:this.transformPoint(t,i),box:a,transform:this.el.transform()},SVG.on(window,"mousemove.drag",function(r){e.drag(r)}),SVG.on(window,"touchmove.drag",function(r){e.drag(r)}),SVG.on(window,"mouseup.drag",function(r){e.end(r)}),SVG.on(window,"touchend.drag",function(r){e.end(r)}),this.el.fire("dragstart",{event:t,p:this.startPoints.point,m:this.m,handler:this})}}},_.prototype.drag=function(t){var e=this.getBBox(),i=this.transformPoint(t),a=this.startPoints.box.x+i.x-this.startPoints.point.x,r=this.startPoints.box.y+i.y-this.startPoints.point.y,o=this.constraint,l=i.x-this.startPoints.point.x,h=i.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:t,p:i,m:this.m,handler:this}),this.el.event().defaultPrevented)return i;if(typeof o=="function"){var f=o.call(this.el,a,r,this.m);typeof f=="boolean"&&(f={x:f,y:f}),f.x===!0?this.el.x(a):f.x!==!1&&this.el.x(f.x),f.y===!0?this.el.y(r):f.y!==!1&&this.el.y(f.y)}else typeof o=="object"&&(o.minX!=null&&a<o.minX?l=(a=o.minX)-this.startPoints.box.x:o.maxX!=null&&a>o.maxX-e.width&&(l=(a=o.maxX-e.width)-this.startPoints.box.x),o.minY!=null&&r<o.minY?h=(r=o.minY)-this.startPoints.box.y:o.maxY!=null&&r>o.maxY-e.height&&(h=(r=o.maxY-e.height)-this.startPoints.box.y),o.snapToGrid!=null&&(a-=a%o.snapToGrid,r-=r%o.snapToGrid,l-=l%o.snapToGrid,h-=h%o.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:l,y:h},!0):this.el.move(a,r));return i},_.prototype.end=function(t){var e=this.drag(t);this.el.fire("dragend",{event:t,p:e,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(t,e){typeof t!="function"&&typeof t!="object"||(e=t,t=!0);var i=this.remember("_draggable")||new _(this);return(t=t===void 0||t)?i.init(e||{},t):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}).call(void 0),function(){function _(t){this.el=t,t.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(e,i,a){var r=typeof e!="string"?e:i[e];return a?r/2:r},this.pointCoords=function(e,i){var a=this.pointsList[e];return{x:this.pointCoord(a[0],i,e==="t"||e==="b"),y:this.pointCoord(a[1],i,e==="r"||e==="l")}}}_.prototype.init=function(t,e){var i=this.el.bbox();this.options={};var a=this.el.selectize.defaults.points;for(var r in this.el.selectize.defaults)this.options[r]=this.el.selectize.defaults[r],e[r]!==void 0&&(this.options[r]=e[r]);var o=["points","pointsExclude"];for(var r in o){var l=this.options[o[r]];typeof l=="string"?l=l.length>0?l.split(/\s*,\s*/i):[]:typeof l=="boolean"&&o[r]==="points"&&(l=l?a:[]),this.options[o[r]]=l}this.options.points=[a,this.options.points].reduce(function(h,f){return h.filter(function(g){return f.indexOf(g)>-1})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(h,f){return h.filter(function(g){return f.indexOf(g)<0})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&["line","polyline","polygon"].indexOf(this.el.type)!==-1?this.selectPoints(t):this.selectRect(t),this.observe(),this.cleanup()},_.prototype.selectPoints=function(t){return this.pointSelection.isSelected=t,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},_.prototype.getPointArray=function(){var t=this.el.bbox();return this.el.array().valueOf().map(function(e){return[e[0]-t.x,e[1]-t.y]})},_.prototype.drawPoints=function(){for(var t=this,e=this.getPointArray(),i=0,a=e.length;i<a;++i){var r=function(l){return function(h){(h=h||window.event).preventDefault?h.preventDefault():h.returnValue=!1,h.stopPropagation();var f=h.pageX||h.touches[0].pageX,g=h.pageY||h.touches[0].pageY;t.el.fire("point",{x:f,y:g,i:l,event:h})}}(i),o=this.drawPoint(e[i][0],e[i][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",r).on("mousedown",r);this.pointSelection.set.add(o)}},_.prototype.drawPoint=function(t,e){var i=this.options.pointType;switch(i){case"circle":return this.drawCircle(t,e);case"rect":return this.drawRect(t,e);default:if(typeof i=="function")return i.call(this,t,e);throw new Error("Unknown "+i+" point type!")}},_.prototype.drawCircle=function(t,e){return this.nested.circle(this.options.pointSize).center(t,e)},_.prototype.drawRect=function(t,e){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(t,e)},_.prototype.updatePointSelection=function(){var t=this.getPointArray();this.pointSelection.set.each(function(e){this.cx()===t[e][0]&&this.cy()===t[e][1]||this.center(t[e][0],t[e][1])})},_.prototype.updateRectSelection=function(){var t=this,e=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:e.width,height:e.height}),this.options.points.length&&this.options.points.map(function(a,r){var o=t.pointCoords(a,e);t.rectSelection.set.get(r+1).center(o.x,o.y)}),this.options.rotationPoint){var i=this.rectSelection.set.length();this.rectSelection.set.get(i-1).center(e.width/2,20)}},_.prototype.selectRect=function(t){var e=this,i=this.el.bbox();function a(l){return function(h){(h=h||window.event).preventDefault?h.preventDefault():h.returnValue=!1,h.stopPropagation();var f=h.pageX||h.touches[0].pageX,g=h.pageY||h.touches[0].pageY;e.el.fire(l,{x:f,y:g,event:h})}}if(this.rectSelection.isSelected=t,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(i.width,i.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map(function(l,h){var f=e.pointCoords(l,i),g=e.drawPoint(f.x,f.y).attr("class",e.options.classPoints+"_"+l).on("mousedown",a(l)).on("touchstart",a(l));e.rectSelection.set.add(g)}),this.rectSelection.set.each(function(){this.addClass(e.options.classPoints)})),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var r=function(l){(l=l||window.event).preventDefault?l.preventDefault():l.returnValue=!1,l.stopPropagation();var h=l.pageX||l.touches[0].pageX,f=l.pageY||l.touches[0].pageY;e.el.fire("rot",{x:h,y:f,event:l})},o=this.drawPoint(i.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",r).on("mousedown",r);this.rectSelection.set.add(o)}},_.prototype.handler=function(){var t=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(t.x,t.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},_.prototype.observe=function(){var t=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver(function(){t.handler()}),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch{}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",function(){t.handler()})},_.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each(function(){this.remove()}),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each(function(){this.remove()}),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(t,e){return typeof t=="object"&&(e=t,t=!0),(this.remember("_selectHandler")||new _(this)).init(t===void 0||t,e||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function _(t){t.remember("_resizeHandler",this),this.el=t,this.parameters={},this.lastUpdateCall=null,this.p=t.doc().node.createSVGPoint()}_.prototype.transformPoint=function(t,e,i){return this.p.x=t-(this.offset.x-window.pageXOffset),this.p.y=e-(this.offset.y-window.pageYOffset),this.p.matrixTransform(i||this.m)},_.prototype._extractPosition=function(t){return{x:t.clientX!=null?t.clientX:t.touches[0].clientX,y:t.clientY!=null?t.clientY:t.touches[0].clientY}},_.prototype.init=function(t){var e=this;if(this.stop(),t!=="stop"){for(var i in this.options={},this.el.resize.defaults)this.options[i]=this.el.resize.defaults[i],t[i]!==void 0&&(this.options[i]=t[i]);this.el.on("lt.resize",function(a){e.resize(a||window.event)}),this.el.on("rt.resize",function(a){e.resize(a||window.event)}),this.el.on("rb.resize",function(a){e.resize(a||window.event)}),this.el.on("lb.resize",function(a){e.resize(a||window.event)}),this.el.on("t.resize",function(a){e.resize(a||window.event)}),this.el.on("r.resize",function(a){e.resize(a||window.event)}),this.el.on("b.resize",function(a){e.resize(a||window.event)}),this.el.on("l.resize",function(a){e.resize(a||window.event)}),this.el.on("rot.resize",function(a){e.resize(a||window.event)}),this.el.on("point.resize",function(a){e.resize(a||window.event)}),this.update()}},_.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},_.prototype.resize=function(t){var e=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var i=this._extractPosition(t.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(i.x,i.y),x:t.detail.x,y:t.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},this.el.type==="text"&&(this.parameters.fontSize=this.el.attr()["font-size"]),t.detail.i!==void 0){var a=this.el.array().valueOf();this.parameters.i=t.detail.i,this.parameters.pointCoords=[a[t.detail.i][0],a[t.detail.i][1]]}switch(t.type){case"lt":this.calc=function(r,o){var l=this.snapToGrid(r,o);if(this.parameters.box.width-l[0]>0&&this.parameters.box.height-l[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+l[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-l[0]);l=this.checkAspectRatio(l),this.el.move(this.parameters.box.x+l[0],this.parameters.box.y+l[1]).size(this.parameters.box.width-l[0],this.parameters.box.height-l[1])}};break;case"rt":this.calc=function(r,o){var l=this.snapToGrid(r,o,2);if(this.parameters.box.width+l[0]>0&&this.parameters.box.height-l[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-l[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+l[0]);l=this.checkAspectRatio(l,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+l[1]).size(this.parameters.box.width+l[0],this.parameters.box.height-l[1])}};break;case"rb":this.calc=function(r,o){var l=this.snapToGrid(r,o,0);if(this.parameters.box.width+l[0]>0&&this.parameters.box.height+l[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-l[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+l[0]);l=this.checkAspectRatio(l),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+l[0],this.parameters.box.height+l[1])}};break;case"lb":this.calc=function(r,o){var l=this.snapToGrid(r,o,1);if(this.parameters.box.width-l[0]>0&&this.parameters.box.height+l[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+l[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-l[0]);l=this.checkAspectRatio(l,!0),this.el.move(this.parameters.box.x+l[0],this.parameters.box.y).size(this.parameters.box.width-l[0],this.parameters.box.height+l[1])}};break;case"t":this.calc=function(r,o){var l=this.snapToGrid(r,o,2);if(this.parameters.box.height-l[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y+l[1]).height(this.parameters.box.height-l[1])}};break;case"r":this.calc=function(r,o){var l=this.snapToGrid(r,o,0);if(this.parameters.box.width+l[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+l[0])}};break;case"b":this.calc=function(r,o){var l=this.snapToGrid(r,o,0);if(this.parameters.box.height+l[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+l[1])}};break;case"l":this.calc=function(r,o){var l=this.snapToGrid(r,o,1);if(this.parameters.box.width-l[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x+l[0],this.parameters.box.y).width(this.parameters.box.width-l[0])}};break;case"rot":this.calc=function(r,o){var l=r+this.parameters.p.x,h=o+this.parameters.p.y,f=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),g=Math.atan2(h-this.parameters.box.y-this.parameters.box.height/2,l-this.parameters.box.x-this.parameters.box.width/2),p=this.parameters.rotation+180*(g-f)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(p-p%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(r,o){var l=this.snapToGrid(r,o,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),h=this.el.array().valueOf();h[this.parameters.i][0]=this.parameters.pointCoords[0]+l[0],h[this.parameters.i][1]=this.parameters.pointCoords[1]+l[1],this.el.plot(h)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:t}),SVG.on(window,"touchmove.resize",function(r){e.update(r||window.event)}),SVG.on(window,"touchend.resize",function(){e.done()}),SVG.on(window,"mousemove.resize",function(r){e.update(r||window.event)}),SVG.on(window,"mouseup.resize",function(){e.done()})},_.prototype.update=function(t){if(t){var e=this._extractPosition(t),i=this.transformPoint(e.x,e.y),a=i.x-this.parameters.p.x,r=i.y-this.parameters.p.y;this.lastUpdateCall=[a,r],this.calc(a,r),this.el.fire("resizing",{dx:a,dy:r,event:t})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},_.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},_.prototype.snapToGrid=function(t,e,i,a){var r;return a!==void 0?r=[(i+t)%this.options.snapToGrid,(a+e)%this.options.snapToGrid]:(i=i??3,r=[(this.parameters.box.x+t+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+e+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),t<0&&(r[0]-=this.options.snapToGrid),e<0&&(r[1]-=this.options.snapToGrid),t-=Math.abs(r[0])<this.options.snapToGrid/2?r[0]:r[0]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),e-=Math.abs(r[1])<this.options.snapToGrid/2?r[1]:r[1]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(t,e,i,a)},_.prototype.constraintToBox=function(t,e,i,a){var r,o,l=this.options.constraint||{};return a!==void 0?(r=i,o=a):(r=this.parameters.box.x+(1&i?0:this.parameters.box.width),o=this.parameters.box.y+(2&i?0:this.parameters.box.height)),l.minX!==void 0&&r+t<l.minX&&(t=l.minX-r),l.maxX!==void 0&&r+t>l.maxX&&(t=l.maxX-r),l.minY!==void 0&&o+e<l.minY&&(e=l.minY-o),l.maxY!==void 0&&o+e>l.maxY&&(e=l.maxY-o),[t,e]},_.prototype.checkAspectRatio=function(t,e){if(!this.options.saveAspectRatio)return t;var i=t.slice(),a=this.parameters.box.width/this.parameters.box.height,r=this.parameters.box.width+t[0],o=this.parameters.box.height-t[1],l=r/o;return l<a?(i[1]=r/a-this.parameters.box.height,e&&(i[1]=-i[1])):l>a&&(i[0]=this.parameters.box.width-o*a,e&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(t){return(this.remember("_resizeHandler")||new _(this)).init(t||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),window.Apex===void 0&&(window.Apex={});var Nn=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new ht(this.ctx),this.ctx.axes=new K(this.ctx),this.ctx.core=new Eh(this.ctx.el,this.ctx),this.ctx.config=new Le({}),this.ctx.data=new Ci(this.ctx),this.ctx.grid=new aa(this.ctx),this.ctx.graphics=new V(this.ctx),this.ctx.coreUtils=new it(this.ctx),this.ctx.crosshairs=new Q(this.ctx),this.ctx.events=new U(this.ctx),this.ctx.exports=new Pi(this.ctx),this.ctx.localization=new Z(this.ctx),this.ctx.options=new Lt,this.ctx.responsive=new rt(this.ctx),this.ctx.series=new Qt(this.ctx),this.ctx.theme=new tt(this.ctx),this.ctx.formatters=new Pe(this.ctx),this.ctx.titleSubtitle=new at(this.ctx),this.ctx.legend=new Ht(this.ctx),this.ctx.toolbar=new Nt(this.ctx),this.ctx.tooltip=new _e(this.ctx),this.ctx.dimensions=new wt(this.ctx),this.ctx.updateHelpers=new Th(this.ctx),this.ctx.zoomPanSelection=new re(this.ctx),this.ctx.w.globals.tooltip=new _e(this.ctx)}}]),_}(),Xn=function(){function _(t){y(this,_),this.ctx=t,this.w=t.w}return L(_,[{key:"clear",value:function(t){var e=t.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:e})}},{key:"killSVG",value:function(t){t.each(function(e,i){this.removeClass("*"),this.off(),this.stop()},!0),t.ungroup(),t.clear()}},{key:"clearDomElements",value:function(t){var e=this,i=t.isUpdating,a=this.w.globals.dom.Paper.node;a.parentNode&&a.parentNode.parentNode&&!i&&(a.parentNode.parentNode.style.minHeight="unset");var r=this.w.globals.dom.baseEl;r&&this.ctx.eventList.forEach(function(l){r.removeEventListener(l,e.ctx.events.documentEvent)});var o=this.w.globals.dom;if(this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(o.Paper),o.Paper.remove(),o.elWrap=null,o.elGraphical=null,o.elLegendWrap=null,o.elLegendForeign=null,o.baseEl=null,o.elGridRect=null,o.elGridRectMask=null,o.elGridRectMarkerMask=null,o.elForecastMask=null,o.elNonForecastMask=null,o.elDefs=null}}]),_}(),Zs=new WeakMap,Ih=function(){function _(t,e){y(this,_),this.opts=e,this.ctx=this,this.w=new qe(e).init(),this.el=t,this.w.globals.cuid=R.randomId(),this.w.globals.chartID=this.w.config.chart.id?R.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Nn(this).initModules(),this.create=R.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return L(_,[{key:"render",value:function(){var t=this;return new Promise(function(e,i){if(t.el!==null){Apex._chartInstances===void 0&&(Apex._chartInstances=[]),t.w.config.chart.id&&Apex._chartInstances.push({id:t.w.globals.chartID,group:t.w.config.chart.group,chart:t}),t.setLocale(t.w.config.chart.defaultLocale);var a=t.w.config.chart.events.beforeMount;if(typeof a=="function"&&a(t,t.w),t.events.fireEvent("beforeMount",[t,t.w]),window.addEventListener("resize",t.windowResizeHandler),function(x,v){var w=!1;if(x.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var A=x.getBoundingClientRect();x.style.display!=="none"&&A.width!==0||(w=!0)}var S=new ResizeObserver(function(E){w&&v.call(x,E),w=!0});x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(x.children).forEach(function(E){return S.observe(E)}):S.observe(x),Zs.set(v,S)}(t.el.parentNode,t.parentResizeHandler),!t.css){var r=t.el.getRootNode&&t.el.getRootNode(),o=R.is("ShadowRoot",r),l=t.el.ownerDocument,h=l.getElementById("apexcharts-css");if(o||!h){var f;t.css=document.createElement("style"),t.css.id="apexcharts-css",t.css.textContent=`@keyframes opaque {
0% {
opacity: 0
}
to {
opacity: 1
}
}
@keyframes resizeanim {
0%,to {
opacity: 0
}
}
.apexcharts-canvas {
position: relative;
user-select: none
}
.apexcharts-canvas ::-webkit-scrollbar {
-webkit-appearance: none;
width: 6px
}
.apexcharts-canvas ::-webkit-scrollbar-thumb {
border-radius: 4px;
background-color: rgba(0,0,0,.5);
box-shadow: 0 0 1px rgba(255,255,255,.5);
-webkit-box-shadow: 0 0 1px rgba(255,255,255,.5)
}
.apexcharts-inner {
position: relative
}
.apexcharts-text tspan {
font-family: inherit
}
.legend-mouseover-inactive {
transition: .15s ease all;
opacity: .2
}
.apexcharts-legend-text {
padding-left: 15px;
margin-left: -15px;
}
.apexcharts-series-collapsed {
opacity: 0
}
.apexcharts-tooltip {
border-radius: 5px;
box-shadow: 2px 2px 6px -4px #999;
cursor: default;
font-size: 14px;
left: 62px;
opacity: 0;
pointer-events: none;
position: absolute;
top: 20px;
display: flex;
flex-direction: column;
overflow: hidden;
white-space: nowrap;
z-index: 12;
transition: .15s ease all
}
.apexcharts-tooltip.apexcharts-active {
opacity: 1;
transition: .15s ease all
}
.apexcharts-tooltip.apexcharts-theme-light {
border: 1px solid #e3e3e3;
background: rgba(255,255,255,.96)
}
.apexcharts-tooltip.apexcharts-theme-dark {
color: #fff;
background: rgba(30,30,30,.8)
}
.apexcharts-tooltip * {
font-family: inherit
}
.apexcharts-tooltip-title {
padding: 6px;
font-size: 15px;
margin-bottom: 4px
}
.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
background: #eceff1;
border-bottom: 1px solid #ddd
}
.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
background: rgba(0,0,0,.7);
border-bottom: 1px solid #333
}
.apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value {
display: inline-block;
margin-left: 5px;
font-weight: 600
}
.apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty {
display: none
}
.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {
padding: 6px 0 5px
}
.apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {
display: flex
}
.apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) {
margin-top: -6px
}
.apexcharts-tooltip-marker {
width: 12px;
height: 12px;
position: relative;
top: 0;
margin-right: 10px;
border-radius: 50%
}
.apexcharts-tooltip-series-group {
padding: 0 10px;
display: none;
text-align: left;
justify-content: left;
align-items: center
}
.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {
opacity: 1
}
.apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child {
padding-bottom: 4px
}
.apexcharts-tooltip-series-group-hidden {
opacity: 0;
height: 0;
line-height: 0;
padding: 0!important
}
.apexcharts-tooltip-y-group {
padding: 6px 0 5px
}
.apexcharts-custom-tooltip,.apexcharts-tooltip-box {
padding: 4px 8px
}
.apexcharts-tooltip-boxPlot {
display: flex;
flex-direction: column-reverse
}
.apexcharts-tooltip-box>div {
margin: 4px 0
}
.apexcharts-tooltip-box span.value {
font-weight: 700
}
.apexcharts-tooltip-rangebar {
padding: 5px 8px
}
.apexcharts-tooltip-rangebar .category {
font-weight: 600;
color: #777
}
.apexcharts-tooltip-rangebar .series-name {
font-weight: 700;
display: block;
margin-bottom: 5px
}
.apexcharts-xaxistooltip,.apexcharts-yaxistooltip {
opacity: 0;
pointer-events: none;
color: #373d3f;
font-size: 13px;
text-align: center;
border-radius: 2px;
position: absolute;
z-index: 10;
background: #eceff1;
border: 1px solid #90a4ae
}
.apexcharts-xaxistooltip {
padding: 9px 10px;
transition: .15s ease all
}
.apexcharts-xaxistooltip.apexcharts-theme-dark {
background: rgba(0,0,0,.7);
border: 1px solid rgba(0,0,0,.5);
color: #fff
}
.apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before {
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none
}
.apexcharts-xaxistooltip:after {
border-color: transparent;
border-width: 6px;
margin-left: -6px
}
.apexcharts-xaxistooltip:before {
border-color: transparent;
border-width: 7px;
margin-left: -7px
}
.apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before {
bottom: 100%
}
.apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before {
top: 100%
}
.apexcharts-xaxistooltip-bottom:after {
border-bottom-color: #eceff1
}
.apexcharts-xaxistooltip-bottom:before {
border-bottom-color: #90a4ae
}
.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {
border-bottom-color: rgba(0,0,0,.5)
}
.apexcharts-xaxistooltip-top:after {
border-top-color: #eceff1
}
.apexcharts-xaxistooltip-top:before {
border-top-color: #90a4ae
}
.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {
border-top-color: rgba(0,0,0,.5)
}
.apexcharts-xaxistooltip.apexcharts-active {
opacity: 1;
transition: .15s ease all
}
.apexcharts-yaxistooltip {
padding: 4px 10px
}
.apexcharts-yaxistooltip.apexcharts-theme-dark {
background: rgba(0,0,0,.7);
border: 1px solid rgba(0,0,0,.5);
color: #fff
}
.apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before {
top: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none
}
.apexcharts-yaxistooltip:after {
border-color: transparent;
border-width: 6px;
margin-top: -6px
}
.apexcharts-yaxistooltip:before {
border-color: transparent;
border-width: 7px;
margin-top: -7px
}
.apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before {
left: 100%
}
.apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before {
right: 100%
}
.apexcharts-yaxistooltip-left:after {
border-left-color: #eceff1
}
.apexcharts-yaxistooltip-left:before {
border-left-color: #90a4ae
}
.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {
border-left-color: rgba(0,0,0,.5)
}
.apexcharts-yaxistooltip-right:after {
border-right-color: #eceff1
}
.apexcharts-yaxistooltip-right:before {
border-right-color: #90a4ae
}
.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {
border-right-color: rgba(0,0,0,.5)
}
.apexcharts-yaxistooltip.apexcharts-active {
opacity: 1
}
.apexcharts-yaxistooltip-hidden {
display: none
}
.apexcharts-xcrosshairs,.apexcharts-ycrosshairs {
pointer-events: none;
opacity: 0;
transition: .15s ease all
}
.apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active {
opacity: 1;
transition: .15s ease all
}
.apexcharts-ycrosshairs-hidden {
opacity: 0
}
.apexcharts-selection-rect {
cursor: move
}
.svg_select_boundingRect,.svg_select_points_rot {
pointer-events: none;
opacity: 0;
visibility: hidden
}
.apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot {
opacity: 0;
visibility: hidden
}
.apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r {
cursor: ew-resize;
opacity: 1;
visibility: visible
}
.svg_select_points {
fill: #efefef;
stroke: #333;
rx: 2
}
.apexcharts-svg.apexcharts-zoomable.hovering-zoom {
cursor: crosshair
}
.apexcharts-svg.apexcharts-zoomable.hovering-pan {
cursor: move
}
.apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {
cursor: pointer;
width: 20px;
height: 20px;
line-height: 24px;
color: #6e8192;
text-align: center
}
.apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg {
fill: #6e8192
}
.apexcharts-selection-icon svg {
fill: #444;
transform: scale(.76)
}
.apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg {
fill: #f3f4f5
}
.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {
fill: #008ffb
}
.apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {
fill: #333
}
.apexcharts-menu-icon,.apexcharts-selection-icon {
position: relative
}
.apexcharts-reset-icon {
margin-left: 5px
}
.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon {
transform: scale(.85)
}
.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {
transform: scale(.7)
}
.apexcharts-zoomout-icon {
margin-right: 3px
}
.apexcharts-pan-icon {
transform: scale(.62);
position: relative;
left: 1px;
top: 0
}
.apexcharts-pan-icon svg {
fill: #fff;
stroke: #6e8192;
stroke-width: 2
}
.apexcharts-pan-icon.apexcharts-selected svg {
stroke: #008ffb
}
.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {
stroke: #333
}
.apexcharts-toolbar {
position: absolute;
z-index: 11;
max-width: 176px;
text-align: right;
border-radius: 3px;
padding: 0 6px 2px;
display: flex;
justify-content: space-between;
align-items: center
}
.apexcharts-menu {
background: #fff;
position: absolute;
top: 100%;
border: 1px solid #ddd;
border-radius: 3px;
padding: 3px;
right: 10px;
opacity: 0;
min-width: 110px;
transition: .15s ease all;
pointer-events: none
}
.apexcharts-menu.apexcharts-menu-open {
opacity: 1;
pointer-events: all;
transition: .15s ease all
}
.apexcharts-menu-item {
padding: 6px 7px;
font-size: 12px;
cursor: pointer
}
.apexcharts-theme-light .apexcharts-menu-item:hover {
background: #eee
}
.apexcharts-theme-dark .apexcharts-menu {
background: rgba(0,0,0,.7);
color: #fff
}
@media screen and (min-width:768px) {
.apexcharts-canvas:hover .apexcharts-toolbar {
opacity: 1
}
}
.apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points {
opacity: 0
}
.apexcharts-hidden-element-shown {
opacity: 1;
transition: 0.25s ease all;
}
.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label {
cursor: default;
pointer-events: none
}
.apexcharts-pie-label-delay {
opacity: 0;
animation-name: opaque;
animation-duration: .3s;
animation-fill-mode: forwards;
animation-timing-function: ease
}
.apexcharts-radialbar-label {
cursor: pointer;
}
.apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect {
pointer-events: none
}
.apexcharts-marker {
transition: .15s ease all
}
.resize-triggers {
animation: 1ms resizeanim;
visibility: hidden;
opacity: 0;
height: 100%;
width: 100%;
overflow: hidden
}
.contract-trigger:before,.resize-triggers,.resize-triggers>div {
content: " ";
display: block;
position: absolute;
top: 0;
left: 0
}
.resize-triggers>div {
height: 100%;
width: 100%;
background: #eee;
overflow: auto
}
.contract-trigger:before {
overflow: hidden;
width: 200%;
height: 200%
}
.apexcharts-bar-goals-markers{
pointer-events: none
}
.apexcharts-bar-shadows{
pointer-events: none
}
.apexcharts-rangebar-goals-markers{
pointer-events: none
}`;var g=((f=t.opts.chart)===null||f===void 0?void 0:f.nonce)||t.w.config.chart.nonce;g&&t.css.setAttribute("nonce",g),o?r.prepend(t.css):l.head.appendChild(t.css)}}var p=t.create(t.w.config.series,{});if(!p)return e(t);t.mount(p).then(function(){typeof t.w.config.chart.events.mounted=="function"&&t.w.config.chart.events.mounted(t,t.w),t.events.fireEvent("mounted",[t,t.w]),e(p)}).catch(function(x){i(x)})}else i(new Error("Element not found"))})}},{key:"create",value:function(t,e){var i=this.w;new Nn(this).initModules();var a=this.w.globals;if(a.noData=!1,a.animationEnded=!1,this.responsive.checkResponsiveConfig(e),i.config.xaxis.convertedCatToNumeric&&new Rt(i.config).convertCatToNumericXaxis(i.config,this.ctx),this.el===null||(this.core.setupElements(),i.config.chart.type==="treemap"&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),a.svgWidth===0))return a.animationEnded=!0,null;var r=it.checkComboSeries(t);a.comboCharts=r.comboCharts,a.comboBarCount=r.comboBarCount;var o=t.every(function(g){return g.data&&g.data.length===0});(t.length===0||o)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(t),this.theme.init(),new oi(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),a.noData&&a.collapsedSeries.length!==a.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),a.axisCharts&&(this.core.coreCalculations(),i.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),new it(this).getLargestMarkerSize(),this.dimensions.plotCoords();var l=this.core.xySettings();this.grid.createGridMask();var h=this.core.plotChartType(t,l),f=new li(this);return f.bringForward(),i.config.dataLabels.background.enabled&&f.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:h,xyRatios:l,dimensions:{plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}}}}},{key:"mount",value:function(){var t=this,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this,a=i.w;return new Promise(function(r,o){if(i.el===null)return o(new Error("Not enough data to display or target element not found"));(e===null||a.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new aa(i);var l,h,f=i.grid.drawGrid();if(i.annotations=new ge(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),a.config.grid.position==="back"&&(f&&a.globals.dom.elGraphical.add(f.el),f!=null&&(l=f.elGridBorders)!==null&&l!==void 0&&l.node&&a.globals.dom.elGraphical.add(f.elGridBorders)),Array.isArray(e.elGraph))for(var g=0;g<e.elGraph.length;g++)a.globals.dom.elGraphical.add(e.elGraph[g]);else a.globals.dom.elGraphical.add(e.elGraph);a.config.grid.position==="front"&&(f&&a.globals.dom.elGraphical.add(f.el),f!=null&&(h=f.elGridBorders)!==null&&h!==void 0&&h.node&&a.globals.dom.elGraphical.add(f.elGridBorders)),a.config.xaxis.crosshairs.position==="front"&&i.crosshairs.drawXCrosshairs(),a.config.yaxis[0].crosshairs.position==="front"&&i.crosshairs.drawYCrosshairs(),a.config.chart.type!=="treemap"&&i.axes.drawAxis(a.config.chart.type,f);var p=new ze(t.ctx,f),x=new H(t.ctx,f);if(f!==null&&(p.xAxisLabelCorrections(f.xAxisTickWidth),x.setYAxisTextAlignments(),a.config.yaxis.map(function(w,A){a.globals.ignoreYAxisIndexes.indexOf(A)===-1&&x.yAxisTitleRotate(A,w.opposite)})),i.annotations.drawAxesAnnotations(),!a.globals.noData){if(a.config.tooltip.enabled&&!a.globals.noData&&i.w.globals.tooltip.drawTooltip(e.xyRatios),a.globals.axisCharts&&(a.globals.isXNumeric||a.config.xaxis.convertedCatToNumeric||a.globals.isRangeBar))(a.config.chart.zoom.enabled||a.config.chart.selection&&a.config.chart.selection.enabled||a.config.chart.pan&&a.config.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:e.xyRatios});else{var v=a.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(w){v[w]=!1})}a.config.chart.toolbar.show&&!a.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}a.globals.memory.methodsToExec.length>0&&a.globals.memory.methodsToExec.forEach(function(w){w.method(w.params,!1,w.context)}),a.globals.axisCharts||a.globals.noData||i.core.resizeNonAxisCharts(),r(i)})}},{key:"destroy",value:function(){var t,e;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,t=this.parentResizeHandler,(e=Zs.get(t))&&(e.disconnect(),Zs.delete(t));var i=this.w.config.chart.id;i&&Apex._chartInstances.forEach(function(a,r){a.id===R.escapeString(i)&&Apex._chartInstances.splice(r,1)}),new Xn(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(t){var e=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],r=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],o=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],l=this.w;return l.globals.selection=void 0,t.series&&(this.series.resetSeries(!1,!0,!1),t.series.length&&t.series[0].data&&(t.series=t.series.map(function(h,f){return e.updateHelpers._extendSeries(h,f)})),this.updateHelpers.revertDefaultAxisMinMax()),t.xaxis&&(t=this.updateHelpers.forceXAxisUpdate(t)),t.yaxis&&(t=this.updateHelpers.forceYAxisUpdate(t)),l.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),t.theme&&(t=this.theme.updateThemeOptions(t)),this.updateHelpers._updateOptions(t,i,a,r,o)}},{key:"updateSeries",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(t,e,i)}},{key:"appendSeries",value:function(t){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=this.w.config.series.slice();return a.push(t),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(a,e,i)}},{key:"appendData",value:function(t){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var a=i.w.config.series.slice(),r=0;r<a.length;r++)if(t[r]!==null&&t[r]!==void 0)for(var o=0;o<t[r].data.length;o++)a[r].data.push(t[r].data[o]);return i.w.config.series=a,e&&(i.w.globals.initialSeries=R.clone(i.w.config.series)),this.update()}},{key:"update",value:function(t){var e=this;return new Promise(function(i,a){new Xn(e.ctx).clear({isUpdating:!0});var r=e.create(e.w.config.series,t);if(!r)return i(e);e.mount(r).then(function(){typeof e.w.config.chart.events.updated=="function"&&e.w.config.chart.events.updated(e,e.w),e.events.fireEvent("updated",[e,e.w]),e.w.globals.isDirty=!0,i(e)}).catch(function(o){a(o)})})}},{key:"getSyncedCharts",value:function(){var t=this.getGroupedCharts(),e=[this];return t.length&&(e=[],t.forEach(function(i){e.push(i)})),e}},{key:"getGroupedCharts",value:function(){var t=this;return Apex._chartInstances.filter(function(e){if(e.group)return!0}).map(function(e){return t.w.config.chart.group===e.group?e.chart:t})}},{key:"toggleSeries",value:function(t){return this.series.toggleSeries(t)}},{key:"highlightSeriesOnLegendHover",value:function(t,e){return this.series.toggleSeriesOnHover(t,e)}},{key:"showSeries",value:function(t){this.series.showSeries(t)}},{key:"hideSeries",value:function(t){this.series.hideSeries(t)}},{key:"isSeriesHidden",value:function(t){this.series.isSeriesHidden(t)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.series.resetSeries(t,e)}},{key:"addEventListener",value:function(t,e){this.events.addEventListener(t,e)}},{key:"removeEventListener",value:function(t,e){this.events.removeEventListener(t,e)}},{key:"addXaxisAnnotation",value:function(t){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addXaxisAnnotationExternal(t,e,a)}},{key:"addYaxisAnnotation",value:function(t){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addYaxisAnnotationExternal(t,e,a)}},{key:"addPointAnnotation",value:function(t){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addPointAnnotationExternal(t,e,a)}},{key:"clearAnnotations",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,e=this;t&&(e=t),e.annotations.clearAnnotations(e)}},{key:"removeAnnotation",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=this;e&&(i=e),i.annotations.removeAnnotation(i,t)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(t,e){return this.coreUtils.getSeriesTotalsXRange(t,e)}},{key:"getHighestValueInSeries",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new X(this.ctx).getMinYMaxY(t).highestY}},{key:"getLowestValueInSeries",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new X(this.ctx).getMinYMaxY(t).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(t,e){return this.updateHelpers.toggleDataPointSelection(t,e)}},{key:"zoomX",value:function(t,e){this.ctx.toolbar.zoomUpdateOptions(t,e)}},{key:"setLocale",value:function(t){this.localization.setCurrentLocaleValues(t)}},{key:"dataURI",value:function(t){return new Pi(this.ctx).dataURI(t)}},{key:"exportToCSV",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new Pi(this.ctx).exportToCSV(t)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var t=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){t.w.globals.resized=!0,t.w.globals.dataChanged=!1,t.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var t=this.w.config.chart.redrawOnWindowResize;typeof t=="function"&&(t=t()),t&&this._windowResize()}}],[{key:"getChartByID",value:function(t){var e=R.escapeString(t);if(Apex._chartInstances){var i=Apex._chartInstances.filter(function(a){return a.id===e})[0];return i&&i.chart}}},{key:"initOnLoad",value:function(){for(var t=document.querySelectorAll("[data-apexcharts]"),e=0;e<t.length;e++)new _(t[e],JSON.parse(t[e].getAttribute("data-options"))).render()}},{key:"exec",value:function(t,e){var i=this.getChartByID(t);if(i){i.w.globals.isExecCalled=!0;var a=null;if(i.publicMethods.indexOf(e)!==-1){for(var r=arguments.length,o=new Array(r>2?r-2:0),l=2;l<r;l++)o[l-2]=arguments[l];a=i[e].apply(i,o)}return a}}},{key:"merge",value:function(t,e){return R.extend(t,e)}}]),_}();s.exports=Ih})(_r,_r.exports);var sf=_r.exports;const ko=af(sf),Ao=["animationEnd","beforeMount","mounted","updated","click","mouseMove","mouseLeave","legendClick","markerClick","selection","dataPointSelection","dataPointMouseEnter","dataPointMouseLeave","beforeZoom","beforeResetZoom","zoomed","scrolled","brushScrolled"],As=Kl({name:"apexchart",props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0},width:{default:"100%"},height:{default:"auto"}},emits:Ao,setup(s,{emit:n}){const c=Oe(null),d=Oe(null),m=vt=>vt&&typeof vt=="object"&&!Array.isArray(vt)&&vt!=null,y=(vt,Lt)=>{typeof Object.assign!="function"&&function(){Object.assign=function(Tt){if(Tt==null)throw new TypeError("Cannot convert undefined or null to object");let Pe=Object(Tt);for(let Kt=1;Kt<arguments.length;Kt++){let Yt=arguments[Kt];if(Yt!=null)for(let Rt in Yt)Yt.hasOwnProperty(Rt)&&(Pe[Rt]=Yt[Rt])}return Pe}}();let ge=Object.assign({},vt);return m(vt)&&m(Lt)&&Object.keys(Lt).forEach(Tt=>{m(Lt[Tt])?Tt in vt?ge[Tt]=y(vt[Tt],Lt[Tt]):Object.assign(ge,{[Tt]:Lt[Tt]}):Object.assign(ge,{[Tt]:Lt[Tt]})}),ge},C=async()=>{if(await Hl(),d.value)return;const vt={chart:{type:s.type||s.options.chart.type||"line",height:s.height,width:s.width,events:{}},series:s.series};Ao.forEach(ge=>{let Tt=(...Pe)=>n(ge,...Pe);vt.chart.events[ge]=Tt});const Lt=y(s.options,vt);return d.value=new ko(c.value,Lt),d.value.render()},L=()=>(M(),C()),M=()=>{d.value.destroy()},z=(vt,Lt)=>d.value.updateSeries(vt,Lt),Y=(vt,Lt,ge,Tt)=>d.value.updateOptions(vt,Lt,ge,Tt),D=vt=>d.value.toggleSeries(vt),W=vt=>{d.value.showSeries(vt)},q=vt=>{d.value.hideSeries(vt)},xt=(vt,Lt)=>d.value.appendSeries(vt,Lt),nt=()=>{d.value.resetSeries()},Ot=(vt,Lt)=>{d.value.toggleDataPointSelection(vt,Lt)},et=vt=>d.value.appendData(vt),R=(vt,Lt)=>d.value.zoomX(vt,Lt),ht=vt=>d.value.dataURI(vt),ut=vt=>d.value.setLocale(vt),V=(vt,Lt)=>{d.value.addXaxisAnnotation(vt,Lt)},it=(vt,Lt)=>{d.value.addYaxisAnnotation(vt,Lt)},Mt=(vt,Lt)=>{d.value.addPointAnnotation(vt,Lt)},$t=(vt,Lt)=>{d.value.removeAnnotation(vt,Lt)},oe=()=>{d.value.clearAnnotations()};$l(()=>{window.ApexCharts=ko}),Ta(()=>{c.value=Au().proxy.$el,C()}),ql(()=>{d.value&&M()});const de=vd(s);return Ee(de.options,()=>{!d.value&&s.options?C():d.value.updateOptions(s.options)}),Ee(de.series,()=>{!d.value&&s.series?C():d.value.updateSeries(s.series)},{deep:!0}),Ee(de.type,()=>{L()}),Ee(de.width,()=>{L()}),Ee(de.height,()=>{L()}),{chart:d,init:C,refresh:L,destroy:M,updateOptions:Y,updateSeries:z,toggleSeries:D,showSeries:W,hideSeries:q,resetSeries:nt,zoomX:R,toggleDataPointSelection:Ot,appendData:et,appendSeries:xt,addXaxisAnnotation:V,addYaxisAnnotation:it,addPointAnnotation:Mt,removeAnnotation:$t,clearAnnotations:oe,setLocale:ut,dataURI:ht}},render(){return vc("div",{class:"vue-apexcharts"})}}),rf=s=>{s.component(As.name,As)};As.install=rf;function So(s,n){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);n&&(d=d.filter(function(m){return Object.getOwnPropertyDescriptor(s,m).enumerable})),c.push.apply(c,d)}return c}function lt(s){for(var n=1;n<arguments.length;n++){var c=arguments[n]!=null?arguments[n]:{};n%2?So(Object(c),!0).forEach(function(d){ce(s,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):So(Object(c)).forEach(function(d){Object.defineProperty(s,d,Object.getOwnPropertyDescriptor(c,d))})}return s}function Ss(s){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ss(s)}function nf(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function of(s,n){for(var c=0;c<n.length;c++){var d=n[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(s,d.key,d)}}function lf(s,n,c){return n&&of(s.prototype,n),Object.defineProperty(s,"prototype",{writable:!1}),s}function ce(s,n,c){return n in s?Object.defineProperty(s,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[n]=c,s}function fn(s,n){return hf(s)||uf(s,n)||wc(s,n)||gf()}function Ma(s){return cf(s)||df(s)||wc(s)||ff()}function cf(s){if(Array.isArray(s))return Er(s)}function hf(s){if(Array.isArray(s))return s}function df(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}function uf(s,n){var c=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(c!=null){var d=[],m=!0,y=!1,C,L;try{for(c=c.call(s);!(m=(C=c.next()).done)&&(d.push(C.value),!(n&&d.length===n));m=!0);}catch(M){y=!0,L=M}finally{try{!m&&c.return!=null&&c.return()}finally{if(y)throw L}}return d}}function wc(s,n){if(s){if(typeof s=="string")return Er(s,n);var c=Object.prototype.toString.call(s).slice(8,-1);if(c==="Object"&&s.constructor&&(c=s.constructor.name),c==="Map"||c==="Set")return Array.from(s);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Er(s,n)}}function Er(s,n){(n==null||n>s.length)&&(n=s.length);for(var c=0,d=new Array(n);c<n;c++)d[c]=s[c];return d}function ff(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Co=function(){},gn={},kc={},Ac=null,Sc={mark:Co,measure:Co};try{typeof window<"u"&&(gn=window),typeof document<"u"&&(kc=document),typeof MutationObserver<"u"&&(Ac=MutationObserver),typeof performance<"u"&&(Sc=performance)}catch{}var pf=gn.navigator||{},Po=pf.userAgent,Lo=Po===void 0?"":Po,vi=gn,Ut=kc,_o=Ac,ja=Sc;vi.document;var ni=!!Ut.documentElement&&!!Ut.head&&typeof Ut.addEventListener=="function"&&typeof Ut.createElement=="function",Cc=~Lo.indexOf("MSIE")||~Lo.indexOf("Trident/"),Ua,$a,qa,Za,Ka,ii="___FONT_AWESOME___",Tr=16,Pc="fa",Lc="svg-inline--fa",Xi="data-fa-i2svg",Ir="data-fa-pseudo-element",xf="data-fa-pseudo-element-pending",pn="data-prefix",xn="data-icon",Eo="fontawesome-i2svg",mf="async",bf=["HTML","HEAD","STYLE","SCRIPT"],_c=function(){try{return!0}catch{return!1}}(),Gt="classic",ee="sharp",mn=[Gt,ee];function Oa(s){return new Proxy(s,{get:function(c,d){return d in c?c[d]:c[Gt]}})}var Aa=Oa((Ua={},ce(Ua,Gt,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit",fakd:"kit","fa-kit":"kit","fa-kit-duotone":"kit"}),ce(Ua,ee,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),Ua)),Sa=Oa(($a={},ce($a,Gt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),ce($a,ee,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),$a)),Ca=Oa((qa={},ce(qa,Gt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),ce(qa,ee,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),qa)),vf=Oa((Za={},ce(Za,Gt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),ce(Za,ee,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),Za)),yf=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,Ec="fa-layers-text",wf=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,kf=Oa((Ka={},ce(Ka,Gt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),ce(Ka,ee,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),Ka)),Tc=[1,2,3,4,5,6,7,8,9,10],Af=Tc.concat([11,12,13,14,15,16,17,18,19,20]),Sf=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Mi={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Pa=new Set;Object.keys(Sa[Gt]).map(Pa.add.bind(Pa));Object.keys(Sa[ee]).map(Pa.add.bind(Pa));var Cf=[].concat(mn,Ma(Pa),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Mi.GROUP,Mi.SWAP_OPACITY,Mi.PRIMARY,Mi.SECONDARY]).concat(Tc.map(function(s){return"".concat(s,"x")})).concat(Af.map(function(s){return"w-".concat(s)})),xa=vi.FontAwesomeConfig||{};function Pf(s){var n=Ut.querySelector("script["+s+"]");if(n)return n.getAttribute(s)}function Lf(s){return s===""?!0:s==="false"?!1:s==="true"?!0:s}if(Ut&&typeof Ut.querySelector=="function"){var _f=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];_f.forEach(function(s){var n=fn(s,2),c=n[0],d=n[1],m=Lf(Pf(c));m!=null&&(xa[d]=m)})}var Ic={styleDefault:"solid",familyDefault:"classic",cssPrefix:Pc,replacementClass:Lc,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};xa.familyPrefix&&(xa.cssPrefix=xa.familyPrefix);var Qi=lt(lt({},Ic),xa);Qi.autoReplaceSvg||(Qi.observeMutations=!1);var ft={};Object.keys(Ic).forEach(function(s){Object.defineProperty(ft,s,{enumerable:!0,set:function(c){Qi[s]=c,ma.forEach(function(d){return d(ft)})},get:function(){return Qi[s]}})});Object.defineProperty(ft,"familyPrefix",{enumerable:!0,set:function(n){Qi.cssPrefix=n,ma.forEach(function(c){return c(ft)})},get:function(){return Qi.cssPrefix}});vi.FontAwesomeConfig=ft;var ma=[];function Ef(s){return ma.push(s),function(){ma.splice(ma.indexOf(s),1)}}var di=Tr,Ge={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Tf(s){if(!(!s||!ni)){var n=Ut.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=s;for(var c=Ut.head.childNodes,d=null,m=c.length-1;m>-1;m--){var y=c[m],C=(y.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(C)>-1&&(d=y)}return Ut.head.insertBefore(n,d),s}}var If="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function La(){for(var s=12,n="";s-- >0;)n+=If[Math.random()*62|0];return n}function ea(s){for(var n=[],c=(s||[]).length>>>0;c--;)n[c]=s[c];return n}function bn(s){return s.classList?ea(s.classList):(s.getAttribute("class")||"").split(" ").filter(function(n){return n})}function Mc(s){return"".concat(s).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Mf(s){return Object.keys(s||{}).reduce(function(n,c){return n+"".concat(c,'="').concat(Mc(s[c]),'" ')},"").trim()}function Ds(s){return Object.keys(s||{}).reduce(function(n,c){return n+"".concat(c,": ").concat(s[c].trim(),";")},"")}function vn(s){return s.size!==Ge.size||s.x!==Ge.x||s.y!==Ge.y||s.rotate!==Ge.rotate||s.flipX||s.flipY}function Of(s){var n=s.transform,c=s.containerWidth,d=s.iconWidth,m={transform:"translate(".concat(c/2," 256)")},y="translate(".concat(n.x*32,", ").concat(n.y*32,") "),C="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),L="rotate(".concat(n.rotate," 0 0)"),M={transform:"".concat(y," ").concat(C," ").concat(L)},z={transform:"translate(".concat(d/2*-1," -256)")};return{outer:m,inner:M,path:z}}function Rf(s){var n=s.transform,c=s.width,d=c===void 0?Tr:c,m=s.height,y=m===void 0?Tr:m,C=s.startCentered,L=C===void 0?!1:C,M="";return L&&Cc?M+="translate(".concat(n.x/di-d/2,"em, ").concat(n.y/di-y/2,"em) "):L?M+="translate(calc(-50% + ".concat(n.x/di,"em), calc(-50% + ").concat(n.y/di,"em)) "):M+="translate(".concat(n.x/di,"em, ").concat(n.y/di,"em) "),M+="scale(".concat(n.size/di*(n.flipX?-1:1),", ").concat(n.size/di*(n.flipY?-1:1),") "),M+="rotate(".concat(n.rotate,"deg) "),M}var zf=`:root, :host {
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
}
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
overflow: visible;
box-sizing: content-box;
}
.svg-inline--fa {
display: var(--fa-display, inline-block);
height: 1em;
overflow: visible;
vertical-align: -0.125em;
}
.svg-inline--fa.fa-2xs {
vertical-align: 0.1em;
}
.svg-inline--fa.fa-xs {
vertical-align: 0em;
}
.svg-inline--fa.fa-sm {
vertical-align: -0.0714285705em;
}
.svg-inline--fa.fa-lg {
vertical-align: -0.2em;
}
.svg-inline--fa.fa-xl {
vertical-align: -0.25em;
}
.svg-inline--fa.fa-2xl {
vertical-align: -0.3125em;
}
.svg-inline--fa.fa-pull-left {
margin-right: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-pull-right {
margin-left: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-li {
width: var(--fa-li-width, 2em);
top: 0.25em;
}
.svg-inline--fa.fa-fw {
width: var(--fa-fw-width, 1.25em);
}
.fa-layers svg.svg-inline--fa {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
}
.fa-layers-counter, .fa-layers-text {
display: inline-block;
position: absolute;
text-align: center;
}
.fa-layers {
display: inline-block;
height: 1em;
position: relative;
text-align: center;
vertical-align: -0.125em;
width: 1em;
}
.fa-layers svg.svg-inline--fa {
-webkit-transform-origin: center center;
transform-origin: center center;
}
.fa-layers-text {
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
-webkit-transform-origin: center center;
transform-origin: center center;
}
.fa-layers-counter {
background-color: var(--fa-counter-background-color, #ff253a);
border-radius: var(--fa-counter-border-radius, 1em);
box-sizing: border-box;
color: var(--fa-inverse, #fff);
line-height: var(--fa-counter-line-height, 1);
max-width: var(--fa-counter-max-width, 5em);
min-width: var(--fa-counter-min-width, 1.5em);
overflow: hidden;
padding: var(--fa-counter-padding, 0.25em 0.5em);
right: var(--fa-right, 0);
text-overflow: ellipsis;
top: var(--fa-top, 0);
-webkit-transform: scale(var(--fa-counter-scale, 0.25));
transform: scale(var(--fa-counter-scale, 0.25));
-webkit-transform-origin: top right;
transform-origin: top right;
}
.fa-layers-bottom-right {
bottom: var(--fa-bottom, 0);
right: var(--fa-right, 0);
top: auto;
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
transform: scale(var(--fa-layers-scale, 0.25));
-webkit-transform-origin: bottom right;
transform-origin: bottom right;
}
.fa-layers-bottom-left {
bottom: var(--fa-bottom, 0);
left: var(--fa-left, 0);
right: auto;
top: auto;
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
transform: scale(var(--fa-layers-scale, 0.25));
-webkit-transform-origin: bottom left;
transform-origin: bottom left;
}
.fa-layers-top-right {
top: var(--fa-top, 0);
right: var(--fa-right, 0);
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
transform: scale(var(--fa-layers-scale, 0.25));
-webkit-transform-origin: top right;
transform-origin: top right;
}
.fa-layers-top-left {
left: var(--fa-left, 0);
right: auto;
top: var(--fa-top, 0);
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
transform: scale(var(--fa-layers-scale, 0.25));
-webkit-transform-origin: top left;
transform-origin: top left;
}
.fa-1x {
font-size: 1em;
}
.fa-2x {
font-size: 2em;
}
.fa-3x {
font-size: 3em;
}
.fa-4x {
font-size: 4em;
}
.fa-5x {
font-size: 5em;
}
.fa-6x {
font-size: 6em;
}
.fa-7x {
font-size: 7em;
}
.fa-8x {
font-size: 8em;
}
.fa-9x {
font-size: 9em;
}
.fa-10x {
font-size: 10em;
}
.fa-2xs {
font-size: 0.625em;
line-height: 0.1em;
vertical-align: 0.225em;
}
.fa-xs {
font-size: 0.75em;
line-height: 0.0833333337em;
vertical-align: 0.125em;
}
.fa-sm {
font-size: 0.875em;
line-height: 0.0714285718em;
vertical-align: 0.0535714295em;
}
.fa-lg {
font-size: 1.25em;
line-height: 0.05em;
vertical-align: -0.075em;
}
.fa-xl {
font-size: 1.5em;
line-height: 0.0416666682em;
vertical-align: -0.125em;
}
.fa-2xl {
font-size: 2em;
line-height: 0.03125em;
vertical-align: -0.1875em;
}
.fa-fw {
text-align: center;
width: 1.25em;
}
.fa-ul {
list-style-type: none;
margin-left: var(--fa-li-margin, 2.5em);
padding-left: 0;
}
.fa-ul > li {
position: relative;
}
.fa-li {
left: calc(var(--fa-li-width, 2em) * -1);
position: absolute;
text-align: center;
width: var(--fa-li-width, 2em);
line-height: inherit;
}
.fa-border {
border-color: var(--fa-border-color, #eee);
border-radius: var(--fa-border-radius, 0.1em);
border-style: var(--fa-border-style, solid);
border-width: var(--fa-border-width, 0.08em);
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
}
.fa-pull-left {
float: left;
margin-right: var(--fa-pull-margin, 0.3em);
}
.fa-pull-right {
float: right;
margin-left: var(--fa-pull-margin, 0.3em);
}
.fa-beat {
-webkit-animation-name: fa-beat;
animation-name: fa-beat;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-bounce {
-webkit-animation-name: fa-bounce;
animation-name: fa-bounce;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
}
.fa-fade {
-webkit-animation-name: fa-fade;
animation-name: fa-fade;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-beat-fade {
-webkit-animation-name: fa-beat-fade;
animation-name: fa-beat-fade;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-flip {
-webkit-animation-name: fa-flip;
animation-name: fa-flip;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-shake {
-webkit-animation-name: fa-shake;
animation-name: fa-shake;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin {
-webkit-animation-name: fa-spin;
animation-name: fa-spin;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 2s);
animation-duration: var(--fa-animation-duration, 2s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin-reverse {
--fa-animation-direction: reverse;
}
.fa-pulse,
.fa-spin-pulse {
-webkit-animation-name: fa-spin;
animation-name: fa-spin;
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
animation-timing-function: var(--fa-animation-timing, steps(8));
}
@media (prefers-reduced-motion: reduce) {
.fa-beat,
.fa-bounce,
.fa-fade,
.fa-beat-fade,
.fa-flip,
.fa-pulse,
.fa-shake,
.fa-spin,
.fa-spin-pulse {
-webkit-animation-delay: -1ms;
animation-delay: -1ms;
-webkit-animation-duration: 1ms;
animation-duration: 1ms;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
-webkit-transition-delay: 0s;
transition-delay: 0s;
-webkit-transition-duration: 0s;
transition-duration: 0s;
}
}
@-webkit-keyframes fa-beat {
0%, 90% {
-webkit-transform: scale(1);
transform: scale(1);
}
45% {
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
transform: scale(var(--fa-beat-scale, 1.25));
}
}
@keyframes fa-beat {
0%, 90% {
-webkit-transform: scale(1);
transform: scale(1);
}
45% {
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
transform: scale(var(--fa-beat-scale, 1.25));
}
}
@-webkit-keyframes fa-bounce {
0% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
10% {
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
}
30% {
-webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
}
50% {
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
}
57% {
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
}
64% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
100% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
}
@keyframes fa-bounce {
0% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
10% {
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
}
30% {
-webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
}
50% {
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
}
57% {
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
}
64% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
100% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
}
@-webkit-keyframes fa-fade {
50% {
opacity: var(--fa-fade-opacity, 0.4);
}
}
@keyframes fa-fade {
50% {
opacity: var(--fa-fade-opacity, 0.4);
}
}
@-webkit-keyframes fa-beat-fade {
0%, 100% {
opacity: var(--fa-beat-fade-opacity, 0.4);
-webkit-transform: scale(1);
transform: scale(1);
}
50% {
opacity: 1;
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
transform: scale(var(--fa-beat-fade-scale, 1.125));
}
}
@keyframes fa-beat-fade {
0%, 100% {
opacity: var(--fa-beat-fade-opacity, 0.4);
-webkit-transform: scale(1);
transform: scale(1);
}
50% {
opacity: 1;
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
transform: scale(var(--fa-beat-fade-scale, 1.125));
}
}
@-webkit-keyframes fa-flip {
50% {
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
}
}
@keyframes fa-flip {
50% {
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
}
}
@-webkit-keyframes fa-shake {
0% {
-webkit-transform: rotate(-15deg);
transform: rotate(-15deg);
}
4% {
-webkit-transform: rotate(15deg);
transform: rotate(15deg);
}
8%, 24% {
-webkit-transform: rotate(-18deg);
transform: rotate(-18deg);
}
12%, 28% {
-webkit-transform: rotate(18deg);
transform: rotate(18deg);
}
16% {
-webkit-transform: rotate(-22deg);
transform: rotate(-22deg);
}
20% {
-webkit-transform: rotate(22deg);
transform: rotate(22deg);
}
32% {
-webkit-transform: rotate(-12deg);
transform: rotate(-12deg);
}
36% {
-webkit-transform: rotate(12deg);
transform: rotate(12deg);
}
40%, 100% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
}
@keyframes fa-shake {
0% {
-webkit-transform: rotate(-15deg);
transform: rotate(-15deg);
}
4% {
-webkit-transform: rotate(15deg);
transform: rotate(15deg);
}
8%, 24% {
-webkit-transform: rotate(-18deg);
transform: rotate(-18deg);
}
12%, 28% {
-webkit-transform: rotate(18deg);
transform: rotate(18deg);
}
16% {
-webkit-transform: rotate(-22deg);
transform: rotate(-22deg);
}
20% {
-webkit-transform: rotate(22deg);
transform: rotate(22deg);
}
32% {
-webkit-transform: rotate(-12deg);
transform: rotate(-12deg);
}
36% {
-webkit-transform: rotate(12deg);
transform: rotate(12deg);
}
40%, 100% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
}
@-webkit-keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.fa-rotate-90 {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.fa-rotate-180 {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
.fa-rotate-270 {
-webkit-transform: rotate(270deg);
transform: rotate(270deg);
}
.fa-flip-horizontal {
-webkit-transform: scale(-1, 1);
transform: scale(-1, 1);
}
.fa-flip-vertical {
-webkit-transform: scale(1, -1);
transform: scale(1, -1);
}
.fa-flip-both,
.fa-flip-horizontal.fa-flip-vertical {
-webkit-transform: scale(-1, -1);
transform: scale(-1, -1);
}
.fa-rotate-by {
-webkit-transform: rotate(var(--fa-rotate-angle, 0));
transform: rotate(var(--fa-rotate-angle, 0));
}
.fa-stack {
display: inline-block;
vertical-align: middle;
height: 2em;
position: relative;
width: 2.5em;
}
.fa-stack-1x,
.fa-stack-2x {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
z-index: var(--fa-stack-z-index, auto);
}
.svg-inline--fa.fa-stack-1x {
height: 1em;
width: 1.25em;
}
.svg-inline--fa.fa-stack-2x {
height: 2em;
width: 2.5em;
}
.fa-inverse {
color: var(--fa-inverse, #fff);
}
.sr-only,
.fa-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.sr-only-focusable:not(:focus),
.fa-sr-only-focusable:not(:focus) {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.svg-inline--fa .fa-primary {
fill: var(--fa-primary-color, currentColor);
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa .fa-secondary {
fill: var(--fa-secondary-color, currentColor);
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-primary {
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-secondary {
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa mask .fa-primary,
.svg-inline--fa mask .fa-secondary {
fill: black;
}
.fad.fa-inverse,
.fa-duotone.fa-inverse {
color: var(--fa-inverse, #fff);
}`;function Oc(){var s=Pc,n=Lc,c=ft.cssPrefix,d=ft.replacementClass,m=zf;if(c!==s||d!==n){var y=new RegExp("\\.".concat(s,"\\-"),"g"),C=new RegExp("\\--".concat(s,"\\-"),"g"),L=new RegExp("\\.".concat(n),"g");m=m.replace(y,".".concat(c,"-")).replace(C,"--".concat(c,"-")).replace(L,".".concat(d))}return m}var To=!1;function rr(){ft.autoAddCss&&!To&&(Tf(Oc()),To=!0)}var Ff={mixout:function(){return{dom:{css:Oc,insertCss:rr}}},hooks:function(){return{beforeDOMElementCreation:function(){rr()},beforeI2svg:function(){rr()}}}},ai=vi||{};ai[ii]||(ai[ii]={});ai[ii].styles||(ai[ii].styles={});ai[ii].hooks||(ai[ii].hooks={});ai[ii].shims||(ai[ii].shims=[]);var De=ai[ii],Rc=[],Nf=function s(){Ut.removeEventListener("DOMContentLoaded",s),Cs=1,Rc.map(function(n){return n()})},Cs=!1;ni&&(Cs=(Ut.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ut.readyState),Cs||Ut.addEventListener("DOMContentLoaded",Nf));function Xf(s){ni&&(Cs?setTimeout(s,0):Rc.push(s))}function Ra(s){var n=s.tag,c=s.attributes,d=c===void 0?{}:c,m=s.children,y=m===void 0?[]:m;return typeof s=="string"?Mc(s):"<".concat(n," ").concat(Mf(d),">").concat(y.map(Ra).join(""),"</").concat(n,">")}function Io(s,n,c){if(s&&s[n]&&s[n][c])return{prefix:n,iconName:c,icon:s[n][c]}}var nr=function(n,c,d,m){var y=Object.keys(n),C=y.length,L=c,M,z,Y;for(d===void 0?(M=1,Y=n[y[0]]):(M=0,Y=d);M<C;M++)z=y[M],Y=L(Y,n[z],z,n);return Y};function Yf(s){for(var n=[],c=0,d=s.length;c<d;){var m=s.charCodeAt(c++);if(m>=55296&&m<=56319&&c<d){var y=s.charCodeAt(c++);(y&64512)==56320?n.push(((m&1023)<<10)+(y&1023)+65536):(n.push(m),c--)}else n.push(m)}return n}function Mr(s){var n=Yf(s);return n.length===1?n[0].toString(16):null}function Df(s,n){var c=s.length,d=s.charCodeAt(n),m;return d>=55296&&d<=56319&&c>n+1&&(m=s.charCodeAt(n+1),m>=56320&&m<=57343)?(d-55296)*1024+m-56320+65536:d}function Mo(s){return Object.keys(s).reduce(function(n,c){var d=s[c],m=!!d.icon;return m?n[d.iconName]=d.icon:n[c]=d,n},{})}function Or(s,n){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=c.skipHooks,m=d===void 0?!1:d,y=Mo(n);typeof De.hooks.addPack=="function"&&!m?De.hooks.addPack(s,Mo(n)):De.styles[s]=lt(lt({},De.styles[s]||{}),y),s==="fas"&&Or("fa",n)}var Ja,Qa,ts,ji=De.styles,Hf=De.shims,Bf=(Ja={},ce(Ja,Gt,Object.values(Ca[Gt])),ce(Ja,ee,Object.values(Ca[ee])),Ja),yn=null,zc={},Fc={},Nc={},Xc={},Yc={},Wf=(Qa={},ce(Qa,Gt,Object.keys(Aa[Gt])),ce(Qa,ee,Object.keys(Aa[ee])),Qa);function Vf(s){return~Cf.indexOf(s)}function Gf(s,n){var c=n.split("-"),d=c[0],m=c.slice(1).join("-");return d===s&&m!==""&&!Vf(m)?m:null}var Dc=function(){var n=function(y){return nr(ji,function(C,L,M){return C[M]=nr(L,y,{}),C},{})};zc=n(function(m,y,C){if(y[3]&&(m[y[3]]=C),y[2]){var L=y[2].filter(function(M){return typeof M=="number"});L.forEach(function(M){m[M.toString(16)]=C})}return m}),Fc=n(function(m,y,C){if(m[C]=C,y[2]){var L=y[2].filter(function(M){return typeof M=="string"});L.forEach(function(M){m[M]=C})}return m}),Yc=n(function(m,y,C){var L=y[2];return m[C]=C,L.forEach(function(M){m[M]=C}),m});var c="far"in ji||ft.autoFetchSvg,d=nr(Hf,function(m,y){var C=y[0],L=y[1],M=y[2];return L==="far"&&!c&&(L="fas"),typeof C=="string"&&(m.names[C]={prefix:L,iconName:M}),typeof C=="number"&&(m.unicodes[C.toString(16)]={prefix:L,iconName:M}),m},{names:{},unicodes:{}});Nc=d.names,Xc=d.unicodes,yn=Hs(ft.styleDefault,{family:ft.familyDefault})};Ef(function(s){yn=Hs(s.styleDefault,{family:ft.familyDefault})});Dc();function wn(s,n){return(zc[s]||{})[n]}function jf(s,n){return(Fc[s]||{})[n]}function Oi(s,n){return(Yc[s]||{})[n]}function Hc(s){return Nc[s]||{prefix:null,iconName:null}}function Uf(s){var n=Xc[s],c=wn("fas",s);return n||(c?{prefix:"fas",iconName:c}:null)||{prefix:null,iconName:null}}function yi(){return yn}var kn=function(){return{prefix:null,iconName:null,rest:[]}};function Hs(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=n.family,d=c===void 0?Gt:c,m=Aa[d][s],y=Sa[d][s]||Sa[d][m],C=s in De.styles?s:null;return y||C||null}var Oo=(ts={},ce(ts,Gt,Object.keys(Ca[Gt])),ce(ts,ee,Object.keys(Ca[ee])),ts);function Bs(s){var n,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=c.skipLookups,m=d===void 0?!1:d,y=(n={},ce(n,Gt,"".concat(ft.cssPrefix,"-").concat(Gt)),ce(n,ee,"".concat(ft.cssPrefix,"-").concat(ee)),n),C=null,L=Gt;(s.includes(y[Gt])||s.some(function(z){return Oo[Gt].includes(z)}))&&(L=Gt),(s.includes(y[ee])||s.some(function(z){return Oo[ee].includes(z)}))&&(L=ee);var M=s.reduce(function(z,Y){var D=Gf(ft.cssPrefix,Y);if(ji[Y]?(Y=Bf[L].includes(Y)?vf[L][Y]:Y,C=Y,z.prefix=Y):Wf[L].indexOf(Y)>-1?(C=Y,z.prefix=Hs(Y,{family:L})):D?z.iconName=D:Y!==ft.replacementClass&&Y!==y[Gt]&&Y!==y[ee]&&z.rest.push(Y),!m&&z.prefix&&z.iconName){var W=C==="fa"?Hc(z.iconName):{},q=Oi(z.prefix,z.iconName);W.prefix&&(C=null),z.iconName=W.iconName||q||z.iconName,z.prefix=W.prefix||z.prefix,z.prefix==="far"&&!ji.far&&ji.fas&&!ft.autoFetchSvg&&(z.prefix="fas")}return z},kn());return(s.includes("fa-brands")||s.includes("fab"))&&(M.prefix="fab"),(s.includes("fa-duotone")||s.includes("fad"))&&(M.prefix="fad"),!M.prefix&&L===ee&&(ji.fass||ft.autoFetchSvg)&&(M.prefix="fass",M.iconName=Oi(M.prefix,M.iconName)||M.iconName),(M.prefix==="fa"||C==="fa")&&(M.prefix=yi()||"fas"),M}var $f=function(){function s(){nf(this,s),this.definitions={}}return lf(s,[{key:"add",value:function(){for(var c=this,d=arguments.length,m=new Array(d),y=0;y<d;y++)m[y]=arguments[y];var C=m.reduce(this._pullDefinitions,{});Object.keys(C).forEach(function(L){c.definitions[L]=lt(lt({},c.definitions[L]||{}),C[L]),Or(L,C[L]);var M=Ca[Gt][L];M&&Or(M,C[L]),Dc()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(c,d){var m=d.prefix&&d.iconName&&d.icon?{0:d}:d;return Object.keys(m).map(function(y){var C=m[y],L=C.prefix,M=C.iconName,z=C.icon,Y=z[2];c[L]||(c[L]={}),Y.length>0&&Y.forEach(function(D){typeof D=="string"&&(c[L][D]=z)}),c[L][M]=z}),c}}]),s}(),Ro=[],Ui={},Ki={},qf=Object.keys(Ki);function Zf(s,n){var c=n.mixoutsTo;return Ro=s,Ui={},Object.keys(Ki).forEach(function(d){qf.indexOf(d)===-1&&delete Ki[d]}),Ro.forEach(function(d){var m=d.mixout?d.mixout():{};if(Object.keys(m).forEach(function(C){typeof m[C]=="function"&&(c[C]=m[C]),Ss(m[C])==="object"&&Object.keys(m[C]).forEach(function(L){c[C]||(c[C]={}),c[C][L]=m[C][L]})}),d.hooks){var y=d.hooks();Object.keys(y).forEach(function(C){Ui[C]||(Ui[C]=[]),Ui[C].push(y[C])})}d.provides&&d.provides(Ki)}),c}function Rr(s,n){for(var c=arguments.length,d=new Array(c>2?c-2:0),m=2;m<c;m++)d[m-2]=arguments[m];var y=Ui[s]||[];return y.forEach(function(C){n=C.apply(null,[n].concat(d))}),n}function Yi(s){for(var n=arguments.length,c=new Array(n>1?n-1:0),d=1;d<n;d++)c[d-1]=arguments[d];var m=Ui[s]||[];m.forEach(function(y){y.apply(null,c)})}function si(){var s=arguments[0],n=Array.prototype.slice.call(arguments,1);return Ki[s]?Ki[s].apply(null,n):void 0}function zr(s){s.prefix==="fa"&&(s.prefix="fas");var n=s.iconName,c=s.prefix||yi();if(n)return n=Oi(c,n)||n,Io(Bc.definitions,c,n)||Io(De.styles,c,n)}var Bc=new $f,Kf=function(){ft.autoReplaceSvg=!1,ft.observeMutations=!1,Yi("noAuto")},Jf={i2svg:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ni?(Yi("beforeI2svg",n),si("pseudoElements2svg",n),si("i2svg",n)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=n.autoReplaceSvgRoot;ft.autoReplaceSvg===!1&&(ft.autoReplaceSvg=!0),ft.observeMutations=!0,Xf(function(){tg({autoReplaceSvgRoot:c}),Yi("watch",n)})}},Qf={icon:function(n){if(n===null)return null;if(Ss(n)==="object"&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:Oi(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&n.length===2){var c=n[1].indexOf("fa-")===0?n[1].slice(3):n[1],d=Hs(n[0]);return{prefix:d,iconName:Oi(d,c)||c}}if(typeof n=="string"&&(n.indexOf("".concat(ft.cssPrefix,"-"))>-1||n.match(yf))){var m=Bs(n.split(" "),{skipLookups:!0});return{prefix:m.prefix||yi(),iconName:Oi(m.prefix,m.iconName)||m.iconName}}if(typeof n=="string"){var y=yi();return{prefix:y,iconName:Oi(y,n)||n}}}},Te={noAuto:Kf,config:ft,dom:Jf,parse:Qf,library:Bc,findIconDefinition:zr,toHtml:Ra},tg=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=n.autoReplaceSvgRoot,d=c===void 0?Ut:c;(Object.keys(De.styles).length>0||ft.autoFetchSvg)&&ni&&ft.autoReplaceSvg&&Te.dom.i2svg({node:d})};function Ws(s,n){return Object.defineProperty(s,"abstract",{get:n}),Object.defineProperty(s,"html",{get:function(){return s.abstract.map(function(d){return Ra(d)})}}),Object.defineProperty(s,"node",{get:function(){if(ni){var d=Ut.createElement("div");return d.innerHTML=s.html,d.children}}}),s}function eg(s){var n=s.children,c=s.main,d=s.mask,m=s.attributes,y=s.styles,C=s.transform;if(vn(C)&&c.found&&!d.found){var L=c.width,M=c.height,z={x:L/M/2,y:.5};m.style=Ds(lt(lt({},y),{},{"transform-origin":"".concat(z.x+C.x/16,"em ").concat(z.y+C.y/16,"em")}))}return[{tag:"svg",attributes:m,children:n}]}function ig(s){var n=s.prefix,c=s.iconName,d=s.children,m=s.attributes,y=s.symbol,C=y===!0?"".concat(n,"-").concat(ft.cssPrefix,"-").concat(c):y;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:lt(lt({},m),{},{id:C}),children:d}]}]}function An(s){var n=s.icons,c=n.main,d=n.mask,m=s.prefix,y=s.iconName,C=s.transform,L=s.symbol,M=s.title,z=s.maskId,Y=s.titleId,D=s.extra,W=s.watchable,q=W===void 0?!1:W,xt=d.found?d:c,nt=xt.width,Ot=xt.height,et=m==="fak",R=[ft.replacementClass,y?"".concat(ft.cssPrefix,"-").concat(y):""].filter(function(oe){return D.classes.indexOf(oe)===-1}).filter(function(oe){return oe!==""||!!oe}).concat(D.classes).join(" "),ht={children:[],attributes:lt(lt({},D.attributes),{},{"data-prefix":m,"data-icon":y,class:R,role:D.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(nt," ").concat(Ot)})},ut=et&&!~D.classes.indexOf("fa-fw")?{width:"".concat(nt/Ot*16*.0625,"em")}:{};q&&(ht.attributes[Xi]=""),M&&(ht.children.push({tag:"title",attributes:{id:ht.attributes["aria-labelledby"]||"title-".concat(Y||La())},children:[M]}),delete ht.attributes.title);var V=lt(lt({},ht),{},{prefix:m,iconName:y,main:c,mask:d,maskId:z,transform:C,symbol:L,styles:lt(lt({},ut),D.styles)}),it=d.found&&c.found?si("generateAbstractMask",V)||{children:[],attributes:{}}:si("generateAbstractIcon",V)||{children:[],attributes:{}},Mt=it.children,$t=it.attributes;return V.children=Mt,V.attributes=$t,L?ig(V):eg(V)}function zo(s){var n=s.content,c=s.width,d=s.height,m=s.transform,y=s.title,C=s.extra,L=s.watchable,M=L===void 0?!1:L,z=lt(lt(lt({},C.attributes),y?{title:y}:{}),{},{class:C.classes.join(" ")});M&&(z[Xi]="");var Y=lt({},C.styles);vn(m)&&(Y.transform=Rf({transform:m,startCentered:!0,width:c,height:d}),Y["-webkit-transform"]=Y.transform);var D=Ds(Y);D.length>0&&(z.style=D);var W=[];return W.push({tag:"span",attributes:z,children:[n]}),y&&W.push({tag:"span",attributes:{class:"sr-only"},children:[y]}),W}function ag(s){var n=s.content,c=s.title,d=s.extra,m=lt(lt(lt({},d.attributes),c?{title:c}:{}),{},{class:d.classes.join(" ")}),y=Ds(d.styles);y.length>0&&(m.style=y);var C=[];return C.push({tag:"span",attributes:m,children:[n]}),c&&C.push({tag:"span",attributes:{class:"sr-only"},children:[c]}),C}var or=De.styles;function Fr(s){var n=s[0],c=s[1],d=s.slice(4),m=fn(d,1),y=m[0],C=null;return Array.isArray(y)?C={tag:"g",attributes:{class:"".concat(ft.cssPrefix,"-").concat(Mi.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ft.cssPrefix,"-").concat(Mi.SECONDARY),fill:"currentColor",d:y[0]}},{tag:"path",attributes:{class:"".concat(ft.cssPrefix,"-").concat(Mi.PRIMARY),fill:"currentColor",d:y[1]}}]}:C={tag:"path",attributes:{fill:"currentColor",d:y}},{found:!0,width:n,height:c,icon:C}}var sg={found:!1,width:512,height:512};function rg(s,n){!_c&&!ft.showMissingIcons&&s&&console.error('Icon with name "'.concat(s,'" and prefix "').concat(n,'" is missing.'))}function Nr(s,n){var c=n;return n==="fa"&&ft.styleDefault!==null&&(n=yi()),new Promise(function(d,m){if(si("missingIconAbstract"),c==="fa"){var y=Hc(s)||{};s=y.iconName||s,n=y.prefix||n}if(s&&n&&or[n]&&or[n][s]){var C=or[n][s];return d(Fr(C))}rg(s,n),d(lt(lt({},sg),{},{icon:ft.showMissingIcons&&s?si("missingIconAbstract")||{}:{}}))})}var Fo=function(){},Xr=ft.measurePerformance&&ja&&ja.mark&&ja.measure?ja:{mark:Fo,measure:Fo},ca='FA "6.5.2"',ng=function(n){return Xr.mark("".concat(ca," ").concat(n," begins")),function(){return Wc(n)}},Wc=function(n){Xr.mark("".concat(ca," ").concat(n," ends")),Xr.measure("".concat(ca," ").concat(n),"".concat(ca," ").concat(n," begins"),"".concat(ca," ").concat(n," ends"))},Sn={begin:ng,end:Wc},us=function(){};function No(s){var n=s.getAttribute?s.getAttribute(Xi):null;return typeof n=="string"}function og(s){var n=s.getAttribute?s.getAttribute(pn):null,c=s.getAttribute?s.getAttribute(xn):null;return n&&c}function lg(s){return s&&s.classList&&s.classList.contains&&s.classList.contains(ft.replacementClass)}function cg(){if(ft.autoReplaceSvg===!0)return fs.replace;var s=fs[ft.autoReplaceSvg];return s||fs.replace}function hg(s){return Ut.createElementNS("http://www.w3.org/2000/svg",s)}function dg(s){return Ut.createElement(s)}function Vc(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=n.ceFn,d=c===void 0?s.tag==="svg"?hg:dg:c;if(typeof s=="string")return Ut.createTextNode(s);var m=d(s.tag);Object.keys(s.attributes||[]).forEach(function(C){m.setAttribute(C,s.attributes[C])});var y=s.children||[];return y.forEach(function(C){m.appendChild(Vc(C,{ceFn:d}))}),m}function ug(s){var n=" ".concat(s.outerHTML," ");return n="".concat(n,"Font Awesome fontawesome.com "),n}var fs={replace:function(n){var c=n[0];if(c.parentNode)if(n[1].forEach(function(m){c.parentNode.insertBefore(Vc(m),c)}),c.getAttribute(Xi)===null&&ft.keepOriginalSource){var d=Ut.createComment(ug(c));c.parentNode.replaceChild(d,c)}else c.remove()},nest:function(n){var c=n[0],d=n[1];if(~bn(c).indexOf(ft.replacementClass))return fs.replace(n);var m=new RegExp("".concat(ft.cssPrefix,"-.*"));if(delete d[0].attributes.id,d[0].attributes.class){var y=d[0].attributes.class.split(" ").reduce(function(L,M){return M===ft.replacementClass||M.match(m)?L.toSvg.push(M):L.toNode.push(M),L},{toNode:[],toSvg:[]});d[0].attributes.class=y.toSvg.join(" "),y.toNode.length===0?c.removeAttribute("class"):c.setAttribute("class",y.toNode.join(" "))}var C=d.map(function(L){return Ra(L)}).join(`
`);c.setAttribute(Xi,""),c.innerHTML=C}};function Xo(s){s()}function Gc(s,n){var c=typeof n=="function"?n:us;if(s.length===0)c();else{var d=Xo;ft.mutateApproach===mf&&(d=vi.requestAnimationFrame||Xo),d(function(){var m=cg(),y=Sn.begin("mutate");s.map(m),y(),c()})}}var Cn=!1;function jc(){Cn=!0}function Yr(){Cn=!1}var Ps=null;function Yo(s){if(_o&&ft.observeMutations){var n=s.treeCallback,c=n===void 0?us:n,d=s.nodeCallback,m=d===void 0?us:d,y=s.pseudoElementsCallback,C=y===void 0?us:y,L=s.observeMutationsRoot,M=L===void 0?Ut:L;Ps=new _o(function(z){if(!Cn){var Y=yi();ea(z).forEach(function(D){if(D.type==="childList"&&D.addedNodes.length>0&&!No(D.addedNodes[0])&&(ft.searchPseudoElements&&C(D.target),c(D.target)),D.type==="attributes"&&D.target.parentNode&&ft.searchPseudoElements&&C(D.target.parentNode),D.type==="attributes"&&No(D.target)&&~Sf.indexOf(D.attributeName))if(D.attributeName==="class"&&og(D.target)){var W=Bs(bn(D.target)),q=W.prefix,xt=W.iconName;D.target.setAttribute(pn,q||Y),xt&&D.target.setAttribute(xn,xt)}else lg(D.target)&&m(D.target)})}}),ni&&Ps.observe(M,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function fg(){Ps&&Ps.disconnect()}function gg(s){var n=s.getAttribute("style"),c=[];return n&&(c=n.split(";").reduce(function(d,m){var y=m.split(":"),C=y[0],L=y.slice(1);return C&&L.length>0&&(d[C]=L.join(":").trim()),d},{})),c}function pg(s){var n=s.getAttribute("data-prefix"),c=s.getAttribute("data-icon"),d=s.innerText!==void 0?s.innerText.trim():"",m=Bs(bn(s));return m.prefix||(m.prefix=yi()),n&&c&&(m.prefix=n,m.iconName=c),m.iconName&&m.prefix||(m.prefix&&d.length>0&&(m.iconName=jf(m.prefix,s.innerText)||wn(m.prefix,Mr(s.innerText))),!m.iconName&&ft.autoFetchSvg&&s.firstChild&&s.firstChild.nodeType===Node.TEXT_NODE&&(m.iconName=s.firstChild.data)),m}function xg(s){var n=ea(s.attributes).reduce(function(m,y){return m.name!=="class"&&m.name!=="style"&&(m[y.name]=y.value),m},{}),c=s.getAttribute("title"),d=s.getAttribute("data-fa-title-id");return ft.autoA11y&&(c?n["aria-labelledby"]="".concat(ft.replacementClass,"-title-").concat(d||La()):(n["aria-hidden"]="true",n.focusable="false")),n}function mg(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Ge,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Do(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},c=pg(s),d=c.iconName,m=c.prefix,y=c.rest,C=xg(s),L=Rr("parseNodeAttributes",{},s),M=n.styleParser?gg(s):[];return lt({iconName:d,title:s.getAttribute("title"),titleId:s.getAttribute("data-fa-title-id"),prefix:m,transform:Ge,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:y,styles:M,attributes:C}},L)}var bg=De.styles;function Uc(s){var n=ft.autoReplaceSvg==="nest"?Do(s,{styleParser:!1}):Do(s);return~n.extra.classes.indexOf(Ec)?si("generateLayersText",s,n):si("generateSvgReplacementMutation",s,n)}var wi=new Set;mn.map(function(s){wi.add("fa-".concat(s))});Object.keys(Aa[Gt]).map(wi.add.bind(wi));Object.keys(Aa[ee]).map(wi.add.bind(wi));wi=Ma(wi);function Ho(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ni)return Promise.resolve();var c=Ut.documentElement.classList,d=function(D){return c.add("".concat(Eo,"-").concat(D))},m=function(D){return c.remove("".concat(Eo,"-").concat(D))},y=ft.autoFetchSvg?wi:mn.map(function(Y){return"fa-".concat(Y)}).concat(Object.keys(bg));y.includes("fa")||y.push("fa");var C=[".".concat(Ec,":not([").concat(Xi,"])")].concat(y.map(function(Y){return".".concat(Y,":not([").concat(Xi,"])")})).join(", ");if(C.length===0)return Promise.resolve();var L=[];try{L=ea(s.querySelectorAll(C))}catch{}if(L.length>0)d("pending"),m("complete");else return Promise.resolve();var M=Sn.begin("onTree"),z=L.reduce(function(Y,D){try{var W=Uc(D);W&&Y.push(W)}catch(q){_c||q.name==="MissingIcon"&&console.error(q)}return Y},[]);return new Promise(function(Y,D){Promise.all(z).then(function(W){Gc(W,function(){d("active"),d("complete"),m("pending"),typeof n=="function"&&n(),M(),Y()})}).catch(function(W){M(),D(W)})})}function vg(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Uc(s).then(function(c){c&&Gc([c],n)})}function yg(s){return function(n){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=(n||{}).icon?n:zr(n||{}),m=c.mask;return m&&(m=(m||{}).icon?m:zr(m||{})),s(d,lt(lt({},c),{},{mask:m}))}}var wg=function(n){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=c.transform,m=d===void 0?Ge:d,y=c.symbol,C=y===void 0?!1:y,L=c.mask,M=L===void 0?null:L,z=c.maskId,Y=z===void 0?null:z,D=c.title,W=D===void 0?null:D,q=c.titleId,xt=q===void 0?null:q,nt=c.classes,Ot=nt===void 0?[]:nt,et=c.attributes,R=et===void 0?{}:et,ht=c.styles,ut=ht===void 0?{}:ht;if(n){var V=n.prefix,it=n.iconName,Mt=n.icon;return Ws(lt({type:"icon"},n),function(){return Yi("beforeDOMElementCreation",{iconDefinition:n,params:c}),ft.autoA11y&&(W?R["aria-labelledby"]="".concat(ft.replacementClass,"-title-").concat(xt||La()):(R["aria-hidden"]="true",R.focusable="false")),An({icons:{main:Fr(Mt),mask:M?Fr(M.icon):{found:!1,width:null,height:null,icon:{}}},prefix:V,iconName:it,transform:lt(lt({},Ge),m),symbol:C,title:W,maskId:Y,titleId:xt,extra:{attributes:R,styles:ut,classes:Ot}})})}},kg={mixout:function(){return{icon:yg(wg)}},hooks:function(){return{mutationObserverCallbacks:function(c){return c.treeCallback=Ho,c.nodeCallback=vg,c}}},provides:function(n){n.i2svg=function(c){var d=c.node,m=d===void 0?Ut:d,y=c.callback,C=y===void 0?function(){}:y;return Ho(m,C)},n.generateSvgReplacementMutation=function(c,d){var m=d.iconName,y=d.title,C=d.titleId,L=d.prefix,M=d.transform,z=d.symbol,Y=d.mask,D=d.maskId,W=d.extra;return new Promise(function(q,xt){Promise.all([Nr(m,L),Y.iconName?Nr(Y.iconName,Y.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(nt){var Ot=fn(nt,2),et=Ot[0],R=Ot[1];q([c,An({icons:{main:et,mask:R},prefix:L,iconName:m,transform:M,symbol:z,maskId:D,title:y,titleId:C,extra:W,watchable:!0})])}).catch(xt)})},n.generateAbstractIcon=function(c){var d=c.children,m=c.attributes,y=c.main,C=c.transform,L=c.styles,M=Ds(L);M.length>0&&(m.style=M);var z;return vn(C)&&(z=si("generateAbstractTransformGrouping",{main:y,transform:C,containerWidth:y.width,iconWidth:y.width})),d.push(z||y.icon),{children:d,attributes:m}}}},Ag={mixout:function(){return{layer:function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=d.classes,y=m===void 0?[]:m;return Ws({type:"layer"},function(){Yi("beforeDOMElementCreation",{assembler:c,params:d});var C=[];return c(function(L){Array.isArray(L)?L.map(function(M){C=C.concat(M.abstract)}):C=C.concat(L.abstract)}),[{tag:"span",attributes:{class:["".concat(ft.cssPrefix,"-layers")].concat(Ma(y)).join(" ")},children:C}]})}}}},Sg={mixout:function(){return{counter:function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=d.title,y=m===void 0?null:m,C=d.classes,L=C===void 0?[]:C,M=d.attributes,z=M===void 0?{}:M,Y=d.styles,D=Y===void 0?{}:Y;return Ws({type:"counter",content:c},function(){return Yi("beforeDOMElementCreation",{content:c,params:d}),ag({content:c.toString(),title:y,extra:{attributes:z,styles:D,classes:["".concat(ft.cssPrefix,"-layers-counter")].concat(Ma(L))}})})}}}},Cg={mixout:function(){return{text:function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=d.transform,y=m===void 0?Ge:m,C=d.title,L=C===void 0?null:C,M=d.classes,z=M===void 0?[]:M,Y=d.attributes,D=Y===void 0?{}:Y,W=d.styles,q=W===void 0?{}:W;return Ws({type:"text",content:c},function(){return Yi("beforeDOMElementCreation",{content:c,params:d}),zo({content:c,transform:lt(lt({},Ge),y),title:L,extra:{attributes:D,styles:q,classes:["".concat(ft.cssPrefix,"-layers-text")].concat(Ma(z))}})})}}},provides:function(n){n.generateLayersText=function(c,d){var m=d.title,y=d.transform,C=d.extra,L=null,M=null;if(Cc){var z=parseInt(getComputedStyle(c).fontSize,10),Y=c.getBoundingClientRect();L=Y.width/z,M=Y.height/z}return ft.autoA11y&&!m&&(C.attributes["aria-hidden"]="true"),Promise.resolve([c,zo({content:c.innerHTML,width:L,height:M,transform:y,title:m,extra:C,watchable:!0})])}}},Pg=new RegExp('"',"ug"),Bo=[1105920,1112319];function Lg(s){var n=s.replace(Pg,""),c=Df(n,0),d=c>=Bo[0]&&c<=Bo[1],m=n.length===2?n[0]===n[1]:!1;return{value:Mr(m?n[0]:n),isSecondary:d||m}}function Wo(s,n){var c="".concat(xf).concat(n.replace(":","-"));return new Promise(function(d,m){if(s.getAttribute(c)!==null)return d();var y=ea(s.children),C=y.filter(function(Mt){return Mt.getAttribute(Ir)===n})[0],L=vi.getComputedStyle(s,n),M=L.getPropertyValue("font-family").match(wf),z=L.getPropertyValue("font-weight"),Y=L.getPropertyValue("content");if(C&&!M)return s.removeChild(C),d();if(M&&Y!=="none"&&Y!==""){var D=L.getPropertyValue("content"),W=~["Sharp"].indexOf(M[2])?ee:Gt,q=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(M[2])?Sa[W][M[2].toLowerCase()]:kf[W][z],xt=Lg(D),nt=xt.value,Ot=xt.isSecondary,et=M[0].startsWith("FontAwesome"),R=wn(q,nt),ht=R;if(et){var ut=Uf(nt);ut.iconName&&ut.prefix&&(R=ut.iconName,q=ut.prefix)}if(R&&!Ot&&(!C||C.getAttribute(pn)!==q||C.getAttribute(xn)!==ht)){s.setAttribute(c,ht),C&&s.removeChild(C);var V=mg(),it=V.extra;it.attributes[Ir]=n,Nr(R,q).then(function(Mt){var $t=An(lt(lt({},V),{},{icons:{main:Mt,mask:kn()},prefix:q,iconName:ht,extra:it,watchable:!0})),oe=Ut.createElementNS("http://www.w3.org/2000/svg","svg");n==="::before"?s.insertBefore(oe,s.firstChild):s.appendChild(oe),oe.outerHTML=$t.map(function(de){return Ra(de)}).join(`
`),s.removeAttribute(c),d()}).catch(m)}else d()}else d()})}function _g(s){return Promise.all([Wo(s,"::before"),Wo(s,"::after")])}function Eg(s){return s.parentNode!==document.head&&!~bf.indexOf(s.tagName.toUpperCase())&&!s.getAttribute(Ir)&&(!s.parentNode||s.parentNode.tagName!=="svg")}function Vo(s){if(ni)return new Promise(function(n,c){var d=ea(s.querySelectorAll("*")).filter(Eg).map(_g),m=Sn.begin("searchPseudoElements");jc(),Promise.all(d).then(function(){m(),Yr(),n()}).catch(function(){m(),Yr(),c()})})}var Tg={hooks:function(){return{mutationObserverCallbacks:function(c){return c.pseudoElementsCallback=Vo,c}}},provides:function(n){n.pseudoElements2svg=function(c){var d=c.node,m=d===void 0?Ut:d;ft.searchPseudoElements&&Vo(m)}}},Go=!1,Ig={mixout:function(){return{dom:{unwatch:function(){jc(),Go=!0}}}},hooks:function(){return{bootstrap:function(){Yo(Rr("mutationObserverCallbacks",{}))},noAuto:function(){fg()},watch:function(c){var d=c.observeMutationsRoot;Go?Yr():Yo(Rr("mutationObserverCallbacks",{observeMutationsRoot:d}))}}}},jo=function(n){var c={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return n.toLowerCase().split(" ").reduce(function(d,m){var y=m.toLowerCase().split("-"),C=y[0],L=y.slice(1).join("-");if(C&&L==="h")return d.flipX=!0,d;if(C&&L==="v")return d.flipY=!0,d;if(L=parseFloat(L),isNaN(L))return d;switch(C){case"grow":d.size=d.size+L;break;case"shrink":d.size=d.size-L;break;case"left":d.x=d.x-L;break;case"right":d.x=d.x+L;break;case"up":d.y=d.y-L;break;case"down":d.y=d.y+L;break;case"rotate":d.rotate=d.rotate+L;break}return d},c)},Mg={mixout:function(){return{parse:{transform:function(c){return jo(c)}}}},hooks:function(){return{parseNodeAttributes:function(c,d){var m=d.getAttribute("data-fa-transform");return m&&(c.transform=jo(m)),c}}},provides:function(n){n.generateAbstractTransformGrouping=function(c){var d=c.main,m=c.transform,y=c.containerWidth,C=c.iconWidth,L={transform:"translate(".concat(y/2," 256)")},M="translate(".concat(m.x*32,", ").concat(m.y*32,") "),z="scale(".concat(m.size/16*(m.flipX?-1:1),", ").concat(m.size/16*(m.flipY?-1:1),") "),Y="rotate(".concat(m.rotate," 0 0)"),D={transform:"".concat(M," ").concat(z," ").concat(Y)},W={transform:"translate(".concat(C/2*-1," -256)")},q={outer:L,inner:D,path:W};return{tag:"g",attributes:lt({},q.outer),children:[{tag:"g",attributes:lt({},q.inner),children:[{tag:d.icon.tag,children:d.icon.children,attributes:lt(lt({},d.icon.attributes),q.path)}]}]}}}},lr={x:0,y:0,width:"100%",height:"100%"};function Uo(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return s.attributes&&(s.attributes.fill||n)&&(s.attributes.fill="black"),s}function Og(s){return s.tag==="g"?s.children:[s]}var Rg={hooks:function(){return{parseNodeAttributes:function(c,d){var m=d.getAttribute("data-fa-mask"),y=m?Bs(m.split(" ").map(function(C){return C.trim()})):kn();return y.prefix||(y.prefix=yi()),c.mask=y,c.maskId=d.getAttribute("data-fa-mask-id"),c}}},provides:function(n){n.generateAbstractMask=function(c){var d=c.children,m=c.attributes,y=c.main,C=c.mask,L=c.maskId,M=c.transform,z=y.width,Y=y.icon,D=C.width,W=C.icon,q=Of({transform:M,containerWidth:D,iconWidth:z}),xt={tag:"rect",attributes:lt(lt({},lr),{},{fill:"white"})},nt=Y.children?{children:Y.children.map(Uo)}:{},Ot={tag:"g",attributes:lt({},q.inner),children:[Uo(lt({tag:Y.tag,attributes:lt(lt({},Y.attributes),q.path)},nt))]},et={tag:"g",attributes:lt({},q.outer),children:[Ot]},R="mask-".concat(L||La()),ht="clip-".concat(L||La()),ut={tag:"mask",attributes:lt(lt({},lr),{},{id:R,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[xt,et]},V={tag:"defs",children:[{tag:"clipPath",attributes:{id:ht},children:Og(W)},ut]};return d.push(V,{tag:"rect",attributes:lt({fill:"currentColor","clip-path":"url(#".concat(ht,")"),mask:"url(#".concat(R,")")},lr)}),{children:d,attributes:m}}}},zg={provides:function(n){var c=!1;vi.matchMedia&&(c=vi.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){var d=[],m={fill:"currentColor"},y={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};d.push({tag:"path",attributes:lt(lt({},m),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var C=lt(lt({},y),{},{attributeName:"opacity"}),L={tag:"circle",attributes:lt(lt({},m),{},{cx:"256",cy:"364",r:"28"}),children:[]};return c||L.children.push({tag:"animate",attributes:lt(lt({},y),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:lt(lt({},C),{},{values:"1;0;1;1;0;1;"})}),d.push(L),d.push({tag:"path",attributes:lt(lt({},m),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:c?[]:[{tag:"animate",attributes:lt(lt({},C),{},{values:"1;0;0;0;0;1;"})}]}),c||d.push({tag:"path",attributes:lt(lt({},m),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:lt(lt({},C),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:d}}}},Fg={hooks:function(){return{parseNodeAttributes:function(c,d){var m=d.getAttribute("data-fa-symbol"),y=m===null?!1:m===""?!0:m;return c.symbol=y,c}}}},Ng=[Ff,kg,Ag,Sg,Cg,Tg,Ig,Mg,Rg,zg,Fg];Zf(Ng,{mixoutsTo:Te});Te.noAuto;Te.config;Te.library;Te.dom;var Dr=Te.parse;Te.findIconDefinition;Te.toHtml;var Xg=Te.icon;Te.layer;Te.text;Te.counter;function $o(s,n){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);n&&(d=d.filter(function(m){return Object.getOwnPropertyDescriptor(s,m).enumerable})),c.push.apply(c,d)}return c}function ti(s){for(var n=1;n<arguments.length;n++){var c=arguments[n]!=null?arguments[n]:{};n%2?$o(Object(c),!0).forEach(function(d){ke(s,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):$o(Object(c)).forEach(function(d){Object.defineProperty(s,d,Object.getOwnPropertyDescriptor(c,d))})}return s}function Yg(s,n){if(typeof s!="object"||!s)return s;var c=s[Symbol.toPrimitive];if(c!==void 0){var d=c.call(s,n||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(s)}function Dg(s){var n=Yg(s,"string");return typeof n=="symbol"?n:n+""}function Ls(s){"@babel/helpers - typeof";return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ls(s)}function ke(s,n,c){return n=Dg(n),n in s?Object.defineProperty(s,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[n]=c,s}function Hg(s,n){if(s==null)return{};var c={};for(var d in s)if(Object.prototype.hasOwnProperty.call(s,d)){if(n.indexOf(d)>=0)continue;c[d]=s[d]}return c}function Bg(s,n){if(s==null)return{};var c=Hg(s,n),d,m;if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(s);for(m=0;m<y.length;m++)d=y[m],!(n.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(s,d)&&(c[d]=s[d])}return c}var Wg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$c={exports:{}};(function(s){(function(n){var c=function(et,R,ht){if(!z(R)||D(R)||W(R)||q(R)||M(R))return R;var ut,V=0,it=0;if(Y(R))for(ut=[],it=R.length;V<it;V++)ut.push(c(et,R[V],ht));else{ut={};for(var Mt in R)Object.prototype.hasOwnProperty.call(R,Mt)&&(ut[et(Mt,ht)]=c(et,R[Mt],ht))}return ut},d=function(et,R){R=R||{};var ht=R.separator||"_",ut=R.split||/(?=[A-Z])/;return et.split(ut).join(ht)},m=function(et){return xt(et)?et:(et=et.replace(/[\-_\s]+(.)?/g,function(R,ht){return ht?ht.toUpperCase():""}),et.substr(0,1).toLowerCase()+et.substr(1))},y=function(et){var R=m(et);return R.substr(0,1).toUpperCase()+R.substr(1)},C=function(et,R){return d(et,R).toLowerCase()},L=Object.prototype.toString,M=function(et){return typeof et=="function"},z=function(et){return et===Object(et)},Y=function(et){return L.call(et)=="[object Array]"},D=function(et){return L.call(et)=="[object Date]"},W=function(et){return L.call(et)=="[object RegExp]"},q=function(et){return L.call(et)=="[object Boolean]"},xt=function(et){return et=et-0,et===et},nt=function(et,R){var ht=R&&"process"in R?R.process:R;return typeof ht!="function"?et:function(ut,V){return ht(ut,et,V)}},Ot={camelize:m,decamelize:C,pascalize:y,depascalize:C,camelizeKeys:function(et,R){return c(nt(m,R),et)},decamelizeKeys:function(et,R){return c(nt(C,R),et,R)},pascalizeKeys:function(et,R){return c(nt(y,R),et)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};s.exports?s.exports=Ot:n.humps=Ot})(Wg)})($c);var Vg=$c.exports,Gg=["class","style"];function jg(s){return s.split(";").map(function(n){return n.trim()}).filter(function(n){return n}).reduce(function(n,c){var d=c.indexOf(":"),m=Vg.camelize(c.slice(0,d)),y=c.slice(d+1).trim();return n[m]=y,n},{})}function Ug(s){return s.split(/\s+/).reduce(function(n,c){return n[c]=!0,n},{})}function qc(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof s=="string")return s;var d=(s.children||[]).map(function(M){return qc(M)}),m=Object.keys(s.attributes||{}).reduce(function(M,z){var Y=s.attributes[z];switch(z){case"class":M.class=Ug(Y);break;case"style":M.style=jg(Y);break;default:M.attrs[z]=Y}return M},{attrs:{},class:{},style:{}});c.class;var y=c.style,C=y===void 0?{}:y,L=Bg(c,Gg);return vc(s.tag,ti(ti(ti({},n),{},{class:m.class,style:ti(ti({},m.style),C)},m.attrs),L),d)}var Zc=!1;try{Zc=!0}catch{}function $g(){if(!Zc&&console&&typeof console.error=="function"){var s;(s=console).error.apply(s,arguments)}}function cr(s,n){return Array.isArray(n)&&n.length>0||!Array.isArray(n)&&n?ke({},s,n):{}}function qg(s){var n,c=(n={"fa-spin":s.spin,"fa-pulse":s.pulse,"fa-fw":s.fixedWidth,"fa-border":s.border,"fa-li":s.listItem,"fa-inverse":s.inverse,"fa-flip":s.flip===!0,"fa-flip-horizontal":s.flip==="horizontal"||s.flip==="both","fa-flip-vertical":s.flip==="vertical"||s.flip==="both"},ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(n,"fa-".concat(s.size),s.size!==null),"fa-rotate-".concat(s.rotation),s.rotation!==null),"fa-pull-".concat(s.pull),s.pull!==null),"fa-swap-opacity",s.swapOpacity),"fa-bounce",s.bounce),"fa-shake",s.shake),"fa-beat",s.beat),"fa-fade",s.fade),"fa-beat-fade",s.beatFade),"fa-flash",s.flash),ke(ke(n,"fa-spin-pulse",s.spinPulse),"fa-spin-reverse",s.spinReverse));return Object.keys(c).map(function(d){return c[d]?d:null}).filter(function(d){return d})}function qo(s){if(s&&Ls(s)==="object"&&s.prefix&&s.iconName&&s.icon)return s;if(Dr.icon)return Dr.icon(s);if(s===null)return null;if(Ls(s)==="object"&&s.prefix&&s.iconName)return s;if(Array.isArray(s)&&s.length===2)return{prefix:s[0],iconName:s[1]};if(typeof s=="string")return{prefix:"fas",iconName:s}}var ie=Kl({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(n){return[!0,!1,"horizontal","vertical","both"].indexOf(n)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(n){return["right","left"].indexOf(n)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(n){return[90,180,270].indexOf(Number.parseInt(n,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(n){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(n)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(n,c){var d=c.attrs,m=Pt(function(){return qo(n.icon)}),y=Pt(function(){return cr("classes",qg(n))}),C=Pt(function(){return cr("transform",typeof n.transform=="string"?Dr.transform(n.transform):n.transform)}),L=Pt(function(){return cr("mask",qo(n.mask))}),M=Pt(function(){return Xg(m.value,ti(ti(ti(ti({},y.value),C.value),L.value),{},{symbol:n.symbol,title:n.title,titleId:n.titleId,maskId:n.maskId}))});Ee(M,function(Y){if(!Y)return $g("Could not find one or more icon(s)",m.value,L.value)},{immediate:!0});var z=Pt(function(){return M.value?qc(M.value.abstract[0],{},d):null});return function(){return z.value}}}),hr={prefix:"fas",iconName:"cloud",icon:[640,512,[9729],"f0c2","M0 336c0 79.5 64.5 144 144 144H512c70.7 0 128-57.3 128-128c0-61.9-44-113.6-102.4-125.4c4.1-10.7 6.4-22.4 6.4-34.6c0-53-43-96-96-96c-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32C167.6 32 96 103.6 96 192c0 2.7 .1 5.4 .2 8.1C40.2 219.8 0 273.2 0 336z"]},Zg={prefix:"fas",iconName:"hourglass-half",icon:[384,512,["hourglass-2"],"f252","M32 0C14.3 0 0 14.3 0 32S14.3 64 32 64V75c0 42.4 16.9 83.1 46.9 113.1L146.7 256 78.9 323.9C48.9 353.9 32 394.6 32 437v11c-17.7 0-32 14.3-32 32s14.3 32 32 32H64 320h32c17.7 0 32-14.3 32-32s-14.3-32-32-32V437c0-42.4-16.9-83.1-46.9-113.1L237.3 256l67.9-67.9c30-30 46.9-70.7 46.9-113.1V64c17.7 0 32-14.3 32-32s-14.3-32-32-32H320 64 32zM96 75V64H288V75c0 19-5.6 37.4-16 53H112c-10.3-15.6-16-34-16-53zm16 309c3.5-5.3 7.6-10.3 12.1-14.9L192 301.3l67.9 67.9c4.6 4.6 8.6 9.6 12.1 14.9H112z"]},Kg={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"]},Jg={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},Zo={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4h54.1l109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109V104c0-7.5-3.5-14.5-9.4-19L78.6 5zM19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L233.7 374.3c-7.8-20.9-9-43.6-3.6-65.1l-61.7-61.7L19.9 396.1zM512 144c0-10.5-1.1-20.7-3.2-30.5c-2.4-11.2-16.1-14.1-24.2-6l-63.9 63.9c-3 3-7.1 4.7-11.3 4.7H352c-8.8 0-16-7.2-16-16V102.6c0-4.2 1.7-8.3 4.7-11.3l63.9-63.9c8.1-8.1 5.2-21.8-6-24.2C388.7 1.1 378.5 0 368 0C288.5 0 224 64.5 224 144l0 .8 85.3 85.3c36-9.1 75.8 .5 104 28.7L429 274.5c49-23 83-72.8 83-130.5zM56 432a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},Qg={prefix:"fas",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"]},Ko={prefix:"fas",iconName:"signal",icon:[640,512,[128246,"signal-5","signal-perfect"],"f012","M576 0c17.7 0 32 14.3 32 32V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V32c0-17.7 14.3-32 32-32zM448 96c17.7 0 32 14.3 32 32V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V128c0-17.7 14.3-32 32-32zM352 224V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V224c0-17.7 14.3-32 32-32s32 14.3 32 32zM192 288c17.7 0 32 14.3 32 32V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V320c0-17.7 14.3-32 32-32zM96 416v64c0 17.7-14.3 32-32 32s-32-14.3-32-32V416c0-17.7 14.3-32 32-32s32 14.3 32 32z"]},tp={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},ep={prefix:"fas",iconName:"suitcase-medical",icon:[512,512,["medkit"],"f0fa","M184 48H328c4.4 0 8 3.6 8 8V96H176V56c0-4.4 3.6-8 8-8zm-56 8V96v32V480H384V128 96 56c0-30.9-25.1-56-56-56H184c-30.9 0-56 25.1-56 56zM96 96H64C28.7 96 0 124.7 0 160V416c0 35.3 28.7 64 64 64H96V96zM416 480h32c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H416V480zM224 208c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v48h48c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H288v48c0 8.8-7.2 16-16 16H240c-8.8 0-16-7.2-16-16V320H176c-8.8 0-16-7.2-16-16V272c0-8.8 7.2-16 16-16h48V208z"]},ip={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},dr=ip,ap={prefix:"fas",iconName:"medal",icon:[512,512,[127941],"f5a2","M4.1 38.2C1.4 34.2 0 29.4 0 24.6C0 11 11 0 24.6 0H133.9c11.2 0 21.7 5.9 27.4 15.5l68.5 114.1c-48.2 6.1-91.3 28.6-123.4 61.9L4.1 38.2zm503.7 0L405.6 191.5c-32.1-33.3-75.2-55.8-123.4-61.9L350.7 15.5C356.5 5.9 366.9 0 378.1 0H487.4C501 0 512 11 512 24.6c0 4.8-1.4 9.6-4.1 13.6zM80 336a176 176 0 1 1 352 0A176 176 0 1 1 80 336zm184.4-94.9c-3.4-7-13.3-7-16.8 0l-22.4 45.4c-1.4 2.8-4 4.7-7 5.1L168 298.9c-7.7 1.1-10.7 10.5-5.2 16l36.3 35.4c2.2 2.2 3.2 5.2 2.7 8.3l-8.6 49.9c-1.3 7.6 6.7 13.5 13.6 9.9l44.8-23.6c2.7-1.4 6-1.4 8.7 0l44.8 23.6c6.9 3.6 14.9-2.2 13.6-9.9l-8.6-49.9c-.5-3 .5-6.1 2.7-8.3l36.3-35.4c5.6-5.4 2.5-14.8-5.2-16l-50.1-7.3c-3-.4-5.7-2.4-7-5.1l-22.4-45.4z"]},sp={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},rp=sp,np={prefix:"fas",iconName:"hammer",icon:[576,512,[128296],"f6e3","M413.5 237.5c-28.2 4.8-58.2-3.6-80-25.4l-38.1-38.1C280.4 159 272 138.8 272 117.6V105.5L192.3 62c-5.3-2.9-8.6-8.6-8.3-14.7s3.9-11.5 9.5-14l47.2-21C259.1 4.2 279 0 299.2 0h18.1c36.7 0 72 14 98.7 39.1l44.6 42c24.2 22.8 33.2 55.7 26.6 86L503 183l8-8c9.4-9.4 24.6-9.4 33.9 0l24 24c9.4 9.4 9.4 24.6 0 33.9l-88 88c-9.4 9.4-24.6 9.4-33.9 0l-24-24c-9.4-9.4-9.4-24.6 0-33.9l8-8-17.5-17.5zM27.4 377.1L260.9 182.6c3.5 4.9 7.5 9.6 11.8 14l38.1 38.1c6 6 12.4 11.2 19.2 15.7L134.9 484.6c-14.5 17.4-36 27.4-58.6 27.4C34.1 512 0 477.8 0 435.7c0-22.6 10.1-44.1 27.4-58.6z"]},op={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},Kc={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},Jc={prefix:"fas",iconName:"graduation-cap",icon:[640,512,[127891,"mortar-board"],"f19d","M320 32c-8.1 0-16.1 1.4-23.7 4.1L15.8 137.4C6.3 140.9 0 149.9 0 160s6.3 19.1 15.8 22.6l57.9 20.9C57.3 229.3 48 259.8 48 291.9v28.1c0 28.4-10.8 57.7-22.3 80.8c-6.5 13-13.9 25.8-22.5 37.6C0 442.7-.9 448.3 .9 453.4s6 8.9 11.2 10.2l64 16c4.2 1.1 8.7 .3 12.4-2s6.3-6.1 7.1-10.4c8.6-42.8 4.3-81.2-2.1-108.7C90.3 344.3 86 329.8 80 316.5V291.9c0-30.2 10.2-58.7 27.9-81.5c12.9-15.5 29.6-28 49.2-35.7l157-61.7c8.2-3.2 17.5 .8 20.7 9s-.8 17.5-9 20.7l-157 61.7c-12.4 4.9-23.3 12.4-32.2 21.6l159.6 57.6c7.6 2.7 15.6 4.1 23.7 4.1s16.1-1.4 23.7-4.1L624.2 182.6c9.5-3.4 15.8-12.5 15.8-22.6s-6.3-19.1-15.8-22.6L343.7 36.1C336.1 33.4 328.1 32 320 32zM128 408c0 35.3 86 72 192 72s192-36.7 192-72L496.7 262.6 354.5 314c-11.1 4-22.8 6-34.5 6s-23.5-2-34.5-6L143.3 262.6 128 408z"]};const Hr=Oe(!0),_s=Pt(()=>Hr.value),lp={class:"flex"},cp={class:"grid cursor-pointer place-items-center"},hp=["checked"],dp=bu('<svg class="stroke-base-100 fill-base-100 col-start-1 row-start-1" xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><path d="M12 1v2M12 21v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M1 12h2M21 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4"></path></svg><svg class="stroke-base-100 fill-base-100 col-start-2 row-start-1" xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>',2),up={__name:"TheThemeButton",setup(s){const n=Oe(Hr.value);return Ee(n,c=>{Hr.value=c,c?document.getElementsByTagName("body")[0].classList.add("dark"):document.getElementsByTagName("body")[0].classList.remove("dark")}),(c,d)=>(gt(),yt("div",lp,[G("label",cp,[G("input",{type:"checkbox",onClick:d[0]||(d[0]=m=>n.value=!n.value),checked:n.value,class:"toggle theme-controller bg-slate-400 col-span-2 col-start-1 row-start-1 [--tglbg:#e2e8f0]"},null,8,hp),dp])]))}},$e=Object.create(null);$e.open="0";$e.close="1";$e.ping="2";$e.pong="3";$e.message="4";$e.upgrade="5";$e.noop="6";const gs=Object.create(null);Object.keys($e).forEach(s=>{gs[$e[s]]=s});const Br={type:"error",data:"parser error"},Qc=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",th=typeof ArrayBuffer=="function",eh=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,Pn=({type:s,data:n},c,d)=>Qc&&n instanceof Blob?c?d(n):Jo(n,d):th&&(n instanceof ArrayBuffer||eh(n))?c?d(n):Jo(new Blob([n]),d):d($e[s]+(n||"")),Jo=(s,n)=>{const c=new FileReader;return c.onload=function(){const d=c.result.split(",")[1];n("b"+(d||""))},c.readAsDataURL(s)};function Qo(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}let ur;function fp(s,n){if(Qc&&s.data instanceof Blob)return s.data.arrayBuffer().then(Qo).then(n);if(th&&(s.data instanceof ArrayBuffer||eh(s.data)))return n(Qo(s.data));Pn(s,!1,c=>{ur||(ur=new TextEncoder),n(ur.encode(c))})}const tl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ha=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s<tl.length;s++)ha[tl.charCodeAt(s)]=s;const gp=s=>{let n=s.length*.75,c=s.length,d,m=0,y,C,L,M;s[s.length-1]==="="&&(n--,s[s.length-2]==="="&&n--);const z=new ArrayBuffer(n),Y=new Uint8Array(z);for(d=0;d<c;d+=4)y=ha[s.charCodeAt(d)],C=ha[s.charCodeAt(d+1)],L=ha[s.charCodeAt(d+2)],M=ha[s.charCodeAt(d+3)],Y[m++]=y<<2|C>>4,Y[m++]=(C&15)<<4|L>>2,Y[m++]=(L&3)<<6|M&63;return z},pp=typeof ArrayBuffer=="function",Ln=(s,n)=>{if(typeof s!="string")return{type:"message",data:ih(s,n)};const c=s.charAt(0);return c==="b"?{type:"message",data:xp(s.substring(1),n)}:gs[c]?s.length>1?{type:gs[c],data:s.substring(1)}:{type:gs[c]}:Br},xp=(s,n)=>{if(pp){const c=gp(s);return ih(c,n)}else return{base64:!0,data:s}},ih=(s,n)=>{switch(n){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}},ah="",mp=(s,n)=>{const c=s.length,d=new Array(c);let m=0;s.forEach((y,C)=>{Pn(y,!1,L=>{d[C]=L,++m===c&&n(d.join(ah))})})},bp=(s,n)=>{const c=s.split(ah),d=[];for(let m=0;m<c.length;m++){const y=Ln(c[m],n);if(d.push(y),y.type==="error")break}return d};function vp(){return new TransformStream({transform(s,n){fp(s,c=>{const d=c.length;let m;if(d<126)m=new Uint8Array(1),new DataView(m.buffer).setUint8(0,d);else if(d<65536){m=new Uint8Array(3);const y=new DataView(m.buffer);y.setUint8(0,126),y.setUint16(1,d)}else{m=new Uint8Array(9);const y=new DataView(m.buffer);y.setUint8(0,127),y.setBigUint64(1,BigInt(d))}s.data&&typeof s.data!="string"&&(m[0]|=128),n.enqueue(m),n.enqueue(c)})}})}let fr;function es(s){return s.reduce((n,c)=>n+c.length,0)}function is(s,n){if(s[0].length===n)return s.shift();const c=new Uint8Array(n);let d=0;for(let m=0;m<n;m++)c[m]=s[0][d++],d===s[0].length&&(s.shift(),d=0);return s.length&&d<s[0].length&&(s[0]=s[0].slice(d)),c}function yp(s,n){fr||(fr=new TextDecoder);const c=[];let d=0,m=-1,y=!1;return new TransformStream({transform(C,L){for(c.push(C);;){if(d===0){if(es(c)<1)break;const M=is(c,1);y=(M[0]&128)===128,m=M[0]&127,m<126?d=3:m===126?d=1:d=2}else if(d===1){if(es(c)<2)break;const M=is(c,2);m=new DataView(M.buffer,M.byteOffset,M.length).getUint16(0),d=3}else if(d===2){if(es(c)<8)break;const M=is(c,8),z=new DataView(M.buffer,M.byteOffset,M.length),Y=z.getUint32(0);if(Y>Math.pow(2,21)-1){L.enqueue(Br);break}m=Y*Math.pow(2,32)+z.getUint32(4),d=3}else{if(es(c)<m)break;const M=is(c,m);L.enqueue(Ln(y?M:fr.decode(M),n)),d=0}if(m===0||m>s){L.enqueue(Br);break}}}})}const sh=4;function ne(s){if(s)return wp(s)}function wp(s){for(var n in ne.prototype)s[n]=ne.prototype[n];return s}ne.prototype.on=ne.prototype.addEventListener=function(s,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(n),this};ne.prototype.once=function(s,n){function c(){this.off(s,c),n.apply(this,arguments)}return c.fn=n,this.on(s,c),this};ne.prototype.off=ne.prototype.removeListener=ne.prototype.removeAllListeners=ne.prototype.removeEventListener=function(s,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var c=this._callbacks["$"+s];if(!c)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var d,m=0;m<c.length;m++)if(d=c[m],d===n||d.fn===n){c.splice(m,1);break}return c.length===0&&delete this._callbacks["$"+s],this};ne.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),c=this._callbacks["$"+s],d=1;d<arguments.length;d++)n[d-1]=arguments[d];if(c){c=c.slice(0);for(var d=0,m=c.length;d<m;++d)c[d].apply(this,n)}return this};ne.prototype.emitReserved=ne.prototype.emit;ne.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]};ne.prototype.hasListeners=function(s){return!!this.listeners(s).length};const Ie=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function rh(s,...n){return n.reduce((c,d)=>(s.hasOwnProperty(d)&&(c[d]=s[d]),c),{})}const kp=Ie.setTimeout,Ap=Ie.clearTimeout;function Vs(s,n){n.useNativeTimers?(s.setTimeoutFn=kp.bind(Ie),s.clearTimeoutFn=Ap.bind(Ie)):(s.setTimeoutFn=Ie.setTimeout.bind(Ie),s.clearTimeoutFn=Ie.clearTimeout.bind(Ie))}const Sp=1.33;function Cp(s){return typeof s=="string"?Pp(s):Math.ceil((s.byteLength||s.size)*Sp)}function Pp(s){let n=0,c=0;for(let d=0,m=s.length;d<m;d++)n=s.charCodeAt(d),n<128?c+=1:n<2048?c+=2:n<55296||n>=57344?c+=3:(d++,c+=4);return c}function Lp(s){let n="";for(let c in s)s.hasOwnProperty(c)&&(n.length&&(n+="&"),n+=encodeURIComponent(c)+"="+encodeURIComponent(s[c]));return n}function _p(s){let n={},c=s.split("&");for(let d=0,m=c.length;d<m;d++){let y=c[d].split("=");n[decodeURIComponent(y[0])]=decodeURIComponent(y[1])}return n}class Ep extends Error{constructor(n,c,d){super(n),this.description=c,this.context=d,this.type="TransportError"}}class _n extends ne{constructor(n){super(),this.writable=!1,Vs(this,n),this.opts=n,this.query=n.query,this.socket=n.socket}onError(n,c,d){return super.emitReserved("error",new Ep(n,c,d)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(n){this.readyState==="open"&&this.write(n)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(n){const c=Ln(n,this.socket.binaryType);this.onPacket(c)}onPacket(n){super.emitReserved("packet",n)}onClose(n){this.readyState="closed",super.emitReserved("close",n)}pause(n){}createUri(n,c={}){return n+"://"+this._hostname()+this._port()+this.opts.path+this._query(c)}_hostname(){const n=this.opts.hostname;return n.indexOf(":")===-1?n:"["+n+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(n){const c=Lp(n);return c.length?"?"+c:""}}const nh="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Wr=64,Tp={};let el=0,as=0,il;function al(s){let n="";do n=nh[s%Wr]+n,s=Math.floor(s/Wr);while(s>0);return n}function oh(){const s=al(+new Date);return s!==il?(el=0,il=s):s+"."+al(el++)}for(;as<Wr;as++)Tp[nh[as]]=as;let lh=!1;try{lh=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Ip=lh;function ch(s){const n=s.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||Ip))return new XMLHttpRequest}catch{}if(!n)try{return new Ie[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Mp(){}const Op=function(){return new ch({xdomain:!1}).responseType!=null}();class Rp extends _n{constructor(n){if(super(n),this.polling=!1,typeof location<"u"){const d=location.protocol==="https:";let m=location.port;m||(m=d?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||m!==n.port}const c=n&&n.forceBase64;this.supportsBinary=Op&&!c,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(n){this.readyState="pausing";const c=()=>{this.readyState="paused",n()};if(this.polling||!this.writable){let d=0;this.polling&&(d++,this.once("pollComplete",function(){--d||c()})),this.writable||(d++,this.once("drain",function(){--d||c()}))}else c()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(n){const c=d=>{if(this.readyState==="opening"&&d.type==="open"&&this.onOpen(),d.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(d)};bp(n,this.socket.binaryType).forEach(c),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const n=()=>{this.write([{type:"close"}])};this.readyState==="open"?n():this.once("open",n)}write(n){this.writable=!1,mp(n,c=>{this.doWrite(c,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const n=this.opts.secure?"https":"http",c=this.query||{};return this.opts.timestampRequests!==!1&&(c[this.opts.timestampParam]=oh()),!this.supportsBinary&&!c.sid&&(c.b64=1),this.createUri(n,c)}request(n={}){return Object.assign(n,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new je(this.uri(),n)}doWrite(n,c){const d=this.request({method:"POST",data:n});d.on("success",c),d.on("error",(m,y)=>{this.onError("xhr post error",m,y)})}doPoll(){const n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(c,d)=>{this.onError("xhr poll error",c,d)}),this.pollXhr=n}}class je extends ne{constructor(n,c){super(),Vs(this,c),this.opts=c,this.method=c.method||"GET",this.uri=n,this.data=c.data!==void 0?c.data:null,this.create()}create(){var n;const c=rh(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");c.xdomain=!!this.opts.xd;const d=this.xhr=new ch(c);try{d.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){d.setDisableHeaderCheck&&d.setDisableHeaderCheck(!0);for(let m in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(m)&&d.setRequestHeader(m,this.opts.extraHeaders[m])}}catch{}if(this.method==="POST")try{d.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{d.setRequestHeader("Accept","*/*")}catch{}(n=this.opts.cookieJar)===null||n===void 0||n.addCookies(d),"withCredentials"in d&&(d.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(d.timeout=this.opts.requestTimeout),d.onreadystatechange=()=>{var m;d.readyState===3&&((m=this.opts.cookieJar)===null||m===void 0||m.parseCookies(d)),d.readyState===4&&(d.status===200||d.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof d.status=="number"?d.status:0)},0))},d.send(this.data)}catch(m){this.setTimeoutFn(()=>{this.onError(m)},0);return}typeof document<"u"&&(this.index=je.requestsCount++,je.requests[this.index]=this)}onError(n){this.emitReserved("error",n,this.xhr),this.cleanup(!0)}cleanup(n){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Mp,n)try{this.xhr.abort()}catch{}typeof document<"u"&&delete je.requests[this.index],this.xhr=null}}onLoad(){const n=this.xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}je.requestsCount=0;je.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",sl);else if(typeof addEventListener=="function"){const s="onpagehide"in Ie?"pagehide":"unload";addEventListener(s,sl,!1)}}function sl(){for(let s in je.requests)je.requests.hasOwnProperty(s)&&je.requests[s].abort()}const En=typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,c)=>c(n,0),ss=Ie.WebSocket||Ie.MozWebSocket,rl=!0,zp="arraybuffer",nl=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Fp extends _n{constructor(n){super(n),this.supportsBinary=!n.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const n=this.uri(),c=this.opts.protocols,d=nl?{}:rh(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(d.headers=this.opts.extraHeaders);try{this.ws=rl&&!nl?c?new ss(n,c):new ss(n):new ss(n,c,d)}catch(m){return this.emitReserved("error",m)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let c=0;c<n.length;c++){const d=n[c],m=c===n.length-1;Pn(d,this.supportsBinary,y=>{const C={};try{rl&&this.ws.send(y)}catch{}m&&En(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const n=this.opts.secure?"wss":"ws",c=this.query||{};return this.opts.timestampRequests&&(c[this.opts.timestampParam]=oh()),this.supportsBinary||(c.b64=1),this.createUri(n,c)}check(){return!!ss}}class Np extends _n{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(n=>{this.onError("webtransport error",n)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(n=>{const c=yp(Number.MAX_SAFE_INTEGER,this.socket.binaryType),d=n.readable.pipeThrough(c).getReader(),m=vp();m.readable.pipeTo(n.writable),this.writer=m.writable.getWriter();const y=()=>{d.read().then(({done:L,value:M})=>{L||(this.onPacket(M),y())}).catch(L=>{})};y();const C={type:"open"};this.query.sid&&(C.data=`{"sid":"${this.query.sid}"}`),this.writer.write(C).then(()=>this.onOpen())})}))}write(n){this.writable=!1;for(let c=0;c<n.length;c++){const d=n[c],m=c===n.length-1;this.writer.write(d).then(()=>{m&&En(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this.transport)===null||n===void 0||n.close()}}const Xp={websocket:Fp,webtransport:Np,polling:Rp},Yp=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Dp=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Vr(s){if(s.length>2e3)throw"URI too long";const n=s,c=s.indexOf("["),d=s.indexOf("]");c!=-1&&d!=-1&&(s=s.substring(0,c)+s.substring(c,d).replace(/:/g,";")+s.substring(d,s.length));let m=Yp.exec(s||""),y={},C=14;for(;C--;)y[Dp[C]]=m[C]||"";return c!=-1&&d!=-1&&(y.source=n,y.host=y.host.substring(1,y.host.length-1).replace(/;/g,":"),y.authority=y.authority.replace("[","").replace("]","").replace(/;/g,":"),y.ipv6uri=!0),y.pathNames=Hp(y,y.path),y.queryKey=Bp(y,y.query),y}function Hp(s,n){const c=/\/{2,9}/g,d=n.replace(c,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&d.splice(0,1),n.slice(-1)=="/"&&d.splice(d.length-1,1),d}function Bp(s,n){const c={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(d,m,y){m&&(c[m]=y)}),c}let hh=class Wi extends ne{constructor(n,c={}){super(),this.binaryType=zp,this.writeBuffer=[],n&&typeof n=="object"&&(c=n,n=null),n?(n=Vr(n),c.hostname=n.host,c.secure=n.protocol==="https"||n.protocol==="wss",c.port=n.port,n.query&&(c.query=n.query)):c.host&&(c.hostname=Vr(c.host).host),Vs(this,c),this.secure=c.secure!=null?c.secure:typeof location<"u"&&location.protocol==="https:",c.hostname&&!c.port&&(c.port=this.secure?"443":"80"),this.hostname=c.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=c.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=c.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},c),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=_p(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(n){const c=Object.assign({},this.opts.query);c.EIO=sh,c.transport=n,this.id&&(c.sid=this.id);const d=Object.assign({},this.opts,{query:c,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[n]);return new Xp[n](d)}open(){let n;if(this.opts.rememberUpgrade&&Wi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)n="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else n=this.transports[0];this.readyState="opening";try{n=this.createTransport(n)}catch{this.transports.shift(),this.open();return}n.open(),this.setTransport(n)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",c=>this.onClose("transport close",c))}probe(n){let c=this.createTransport(n),d=!1;Wi.priorWebsocketSuccess=!1;const m=()=>{d||(c.send([{type:"ping",data:"probe"}]),c.once("packet",D=>{if(!d)if(D.type==="pong"&&D.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",c),!c)return;Wi.priorWebsocketSuccess=c.name==="websocket",this.transport.pause(()=>{d||this.readyState!=="closed"&&(Y(),this.setTransport(c),c.send([{type:"upgrade"}]),this.emitReserved("upgrade",c),c=null,this.upgrading=!1,this.flush())})}else{const W=new Error("probe error");W.transport=c.name,this.emitReserved("upgradeError",W)}}))};function y(){d||(d=!0,Y(),c.close(),c=null)}const C=D=>{const W=new Error("probe error: "+D);W.transport=c.name,y(),this.emitReserved("upgradeError",W)};function L(){C("transport closed")}function M(){C("socket closed")}function z(D){c&&D.name!==c.name&&y()}const Y=()=>{c.removeListener("open",m),c.removeListener("error",C),c.removeListener("close",L),this.off("close",M),this.off("upgrading",z)};c.once("open",m),c.once("error",C),c.once("close",L),this.once("close",M),this.once("upgrading",z),this.upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{d||c.open()},200):c.open()}onOpen(){if(this.readyState="open",Wi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let n=0;const c=this.upgrades.length;for(;n<c;n++)this.probe(this.upgrades[n])}}onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",n),this.emitReserved("heartbeat"),this.resetPingTimeout(),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const c=new Error("server error");c.code=n.data,this.onError(c);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this.upgrades=this.filterUpgrades(n.upgrades),this.pingInterval=n.pingInterval,this.pingTimeout=n.pingTimeout,this.maxPayload=n.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const n=this.getWritablePackets();this.transport.send(n),this.prevBufferLen=n.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let c=1;for(let d=0;d<this.writeBuffer.length;d++){const m=this.writeBuffer[d].data;if(m&&(c+=Cp(m)),d>0&&c>this.maxPayload)return this.writeBuffer.slice(0,d);c+=2}return this.writeBuffer}write(n,c,d){return this.sendPacket("message",n,c,d),this}send(n,c,d){return this.sendPacket("message",n,c,d),this}sendPacket(n,c,d,m){if(typeof c=="function"&&(m=c,c=void 0),typeof d=="function"&&(m=d,d=null),this.readyState==="closing"||this.readyState==="closed")return;d=d||{},d.compress=d.compress!==!1;const y={type:n,data:c,options:d};this.emitReserved("packetCreate",y),this.writeBuffer.push(y),m&&this.once("flush",m),this.flush()}close(){const n=()=>{this.onClose("forced close"),this.transport.close()},c=()=>{this.off("upgrade",c),this.off("upgradeError",c),n()},d=()=>{this.once("upgrade",c),this.once("upgradeError",c)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?d():n()}):this.upgrading?d():n()),this}onError(n){Wi.priorWebsocketSuccess=!1,this.emitReserved("error",n),this.onClose("transport error",n)}onClose(n,c){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",n,c),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(n){const c=[];let d=0;const m=n.length;for(;d<m;d++)~this.transports.indexOf(n[d])&&c.push(n[d]);return c}};hh.protocol=sh;function Wp(s,n="",c){let d=s;c=c||typeof location<"u"&&location,s==null&&(s=c.protocol+"//"+c.host),typeof s=="string"&&(s.charAt(0)==="/"&&(s.charAt(1)==="/"?s=c.protocol+s:s=c.host+s),/^(https?|wss?):\/\//.test(s)||(typeof c<"u"?s=c.protocol+"//"+s:s="https://"+s),d=Vr(s)),d.port||(/^(http|ws)$/.test(d.protocol)?d.port="80":/^(http|ws)s$/.test(d.protocol)&&(d.port="443")),d.path=d.path||"/";const y=d.host.indexOf(":")!==-1?"["+d.host+"]":d.host;return d.id=d.protocol+"://"+y+":"+d.port+n,d.href=d.protocol+"://"+y+(c&&c.port===d.port?"":":"+d.port),d}const Vp=typeof ArrayBuffer=="function",Gp=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,dh=Object.prototype.toString,jp=typeof Blob=="function"||typeof Blob<"u"&&dh.call(Blob)==="[object BlobConstructor]",Up=typeof File=="function"||typeof File<"u"&&dh.call(File)==="[object FileConstructor]";function Tn(s){return Vp&&(s instanceof ArrayBuffer||Gp(s))||jp&&s instanceof Blob||Up&&s instanceof File}function ps(s,n){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let c=0,d=s.length;c<d;c++)if(ps(s[c]))return!0;return!1}if(Tn(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return ps(s.toJSON(),!0);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c)&&ps(s[c]))return!0;return!1}function $p(s){const n=[],c=s.data,d=s;return d.data=Gr(c,n),d.attachments=n.length,{packet:d,buffers:n}}function Gr(s,n){if(!s)return s;if(Tn(s)){const c={_placeholder:!0,num:n.length};return n.push(s),c}else if(Array.isArray(s)){const c=new Array(s.length);for(let d=0;d<s.length;d++)c[d]=Gr(s[d],n);return c}else if(typeof s=="object"&&!(s instanceof Date)){const c={};for(const d in s)Object.prototype.hasOwnProperty.call(s,d)&&(c[d]=Gr(s[d],n));return c}return s}function qp(s,n){return s.data=jr(s.data,n),delete s.attachments,s}function jr(s,n){if(!s)return s;if(s&&s._placeholder===!0){if(typeof s.num=="number"&&s.num>=0&&s.num<n.length)return n[s.num];throw new Error("illegal attachments")}else if(Array.isArray(s))for(let c=0;c<s.length;c++)s[c]=jr(s[c],n);else if(typeof s=="object")for(const c in s)Object.prototype.hasOwnProperty.call(s,c)&&(s[c]=jr(s[c],n));return s}const Zp=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Kp=5;var zt;(function(s){s[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK"})(zt||(zt={}));class Jp{constructor(n){this.replacer=n}encode(n){return(n.type===zt.EVENT||n.type===zt.ACK)&&ps(n)?this.encodeAsBinary({type:n.type===zt.EVENT?zt.BINARY_EVENT:zt.BINARY_ACK,nsp:n.nsp,data:n.data,id:n.id}):[this.encodeAsString(n)]}encodeAsString(n){let c=""+n.type;return(n.type===zt.BINARY_EVENT||n.type===zt.BINARY_ACK)&&(c+=n.attachments+"-"),n.nsp&&n.nsp!=="/"&&(c+=n.nsp+","),n.id!=null&&(c+=n.id),n.data!=null&&(c+=JSON.stringify(n.data,this.replacer)),c}encodeAsBinary(n){const c=$p(n),d=this.encodeAsString(c.packet),m=c.buffers;return m.unshift(d),m}}function ol(s){return Object.prototype.toString.call(s)==="[object Object]"}class In extends ne{constructor(n){super(),this.reviver=n}add(n){let c;if(typeof n=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");c=this.decodeString(n);const d=c.type===zt.BINARY_EVENT;d||c.type===zt.BINARY_ACK?(c.type=d?zt.EVENT:zt.ACK,this.reconstructor=new Qp(c),c.attachments===0&&super.emitReserved("decoded",c)):super.emitReserved("decoded",c)}else if(Tn(n)||n.base64)if(this.reconstructor)c=this.reconstructor.takeBinaryData(n),c&&(this.reconstructor=null,super.emitReserved("decoded",c));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+n)}decodeString(n){let c=0;const d={type:Number(n.charAt(0))};if(zt[d.type]===void 0)throw new Error("unknown packet type "+d.type);if(d.type===zt.BINARY_EVENT||d.type===zt.BINARY_ACK){const y=c+1;for(;n.charAt(++c)!=="-"&&c!=n.length;);const C=n.substring(y,c);if(C!=Number(C)||n.charAt(c)!=="-")throw new Error("Illegal attachments");d.attachments=Number(C)}if(n.charAt(c+1)==="/"){const y=c+1;for(;++c&&!(n.charAt(c)===","||c===n.length););d.nsp=n.substring(y,c)}else d.nsp="/";const m=n.charAt(c+1);if(m!==""&&Number(m)==m){const y=c+1;for(;++c;){const C=n.charAt(c);if(C==null||Number(C)!=C){--c;break}if(c===n.length)break}d.id=Number(n.substring(y,c+1))}if(n.charAt(++c)){const y=this.tryParse(n.substr(c));if(In.isPayloadValid(d.type,y))d.data=y;else throw new Error("invalid payload")}return d}tryParse(n){try{return JSON.parse(n,this.reviver)}catch{return!1}}static isPayloadValid(n,c){switch(n){case zt.CONNECT:return ol(c);case zt.DISCONNECT:return c===void 0;case zt.CONNECT_ERROR:return typeof c=="string"||ol(c);case zt.EVENT:case zt.BINARY_EVENT:return Array.isArray(c)&&(typeof c[0]=="number"||typeof c[0]=="string"&&Zp.indexOf(c[0])===-1);case zt.ACK:case zt.BINARY_ACK:return Array.isArray(c)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Qp{constructor(n){this.packet=n,this.buffers=[],this.reconPack=n}takeBinaryData(n){if(this.buffers.push(n),this.buffers.length===this.reconPack.attachments){const c=qp(this.reconPack,this.buffers);return this.finishedReconstruction(),c}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const tx=Object.freeze(Object.defineProperty({__proto__:null,Decoder:In,Encoder:Jp,get PacketType(){return zt},protocol:Kp},Symbol.toStringTag,{value:"Module"}));function Xe(s,n,c){return s.on(n,c),function(){s.off(n,c)}}const ex=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class uh extends ne{constructor(n,c,d){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=n,this.nsp=c,d&&d.auth&&(this.auth=d.auth),this._opts=Object.assign({},d),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const n=this.io;this.subs=[Xe(n,"open",this.onopen.bind(this)),Xe(n,"packet",this.onpacket.bind(this)),Xe(n,"error",this.onerror.bind(this)),Xe(n,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...n){return n.unshift("message"),this.emit.apply(this,n),this}emit(n,...c){if(ex.hasOwnProperty(n))throw new Error('"'+n.toString()+'" is a reserved event name');if(c.unshift(n),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const d={type:zt.EVENT,data:c};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const C=this.ids++,L=c.pop();this._registerAckCallback(C,L),d.id=C}const m=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!m||!this.connected)||(this.connected?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(n,c){var d;const m=(d=this.flags.timeout)!==null&&d!==void 0?d:this._opts.ackTimeout;if(m===void 0){this.acks[n]=c;return}const y=this.io.setTimeoutFn(()=>{delete this.acks[n];for(let L=0;L<this.sendBuffer.length;L++)this.sendBuffer[L].id===n&&this.sendBuffer.splice(L,1);c.call(this,new Error("operation has timed out"))},m),C=(...L)=>{this.io.clearTimeoutFn(y),c.apply(this,L)};C.withError=!0,this.acks[n]=C}emitWithAck(n,...c){return new Promise((d,m)=>{const y=(C,L)=>C?m(C):d(L);y.withError=!0,c.push(y),this.emit(n,...c)})}_addToQueue(n){let c;typeof n[n.length-1]=="function"&&(c=n.pop());const d={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((m,...y)=>d!==this._queue[0]?void 0:(m!==null?d.tryCount>this._opts.retries&&(this._queue.shift(),c&&c(m)):(this._queue.shift(),c&&c(null,...y)),d.pending=!1,this._drainQueue())),this._queue.push(d),this._drainQueue()}_drainQueue(n=!1){if(!this.connected||this._queue.length===0)return;const c=this._queue[0];c.pending&&!n||(c.pending=!0,c.tryCount++,this.flags=c.flags,this.emit.apply(this,c.args))}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:zt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,c){this.connected=!1,delete this.id,this.emitReserved("disconnect",n,c),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(n=>{if(!this.sendBuffer.some(d=>String(d.id)===n)){const d=this.acks[n];delete this.acks[n],d.withError&&d.call(this,new Error("socket has been disconnected"))}})}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case zt.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case zt.EVENT:case zt.BINARY_EVENT:this.onevent(n);break;case zt.ACK:case zt.BINARY_ACK:this.onack(n);break;case zt.DISCONNECT:this.ondisconnect();break;case zt.CONNECT_ERROR:this.destroy();const d=new Error(n.data.message);d.data=n.data.data,this.emitReserved("connect_error",d);break}}onevent(n){const c=n.data||[];n.id!=null&&c.push(this.ack(n.id)),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const d of c)d.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){const c=this;let d=!1;return function(...m){d||(d=!0,c.packet({type:zt.ACK,id:n,data:m}))}}onack(n){const c=this.acks[n.id];typeof c=="function"&&(delete this.acks[n.id],c.withError&&n.data.unshift(null),c.apply(this,n.data))}onconnect(n,c){this.id=n,this.recovered=c&&this._pid===c,this._pid=c,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:zt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){const c=this._anyListeners;for(let d=0;d<c.length;d++)if(n===c[d])return c.splice(d,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(n),this}prependAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(n),this}offAnyOutgoing(n){if(!this._anyOutgoingListeners)return this;if(n){const c=this._anyOutgoingListeners;for(let d=0;d<c.length;d++)if(n===c[d])return c.splice(d,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(n){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const d of c)d.apply(this,n.data)}}}function ia(s){s=s||{},this.ms=s.min||100,this.max=s.max||1e4,this.factor=s.factor||2,this.jitter=s.jitter>0&&s.jitter<=1?s.jitter:0,this.attempts=0}ia.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),c=Math.floor(n*this.jitter*s);s=Math.floor(n*10)&1?s+c:s-c}return Math.min(s,this.max)|0};ia.prototype.reset=function(){this.attempts=0};ia.prototype.setMin=function(s){this.ms=s};ia.prototype.setMax=function(s){this.max=s};ia.prototype.setJitter=function(s){this.jitter=s};class Ur extends ne{constructor(n,c){var d;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(c=n,n=void 0),c=c||{},c.path=c.path||"/socket.io",this.opts=c,Vs(this,c),this.reconnection(c.reconnection!==!1),this.reconnectionAttempts(c.reconnectionAttempts||1/0),this.reconnectionDelay(c.reconnectionDelay||1e3),this.reconnectionDelayMax(c.reconnectionDelayMax||5e3),this.randomizationFactor((d=c.randomizationFactor)!==null&&d!==void 0?d:.5),this.backoff=new ia({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(c.timeout==null?2e4:c.timeout),this._readyState="closed",this.uri=n;const m=c.parser||tx;this.encoder=new m.Encoder,this.decoder=new m.Decoder,this._autoConnect=c.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var c;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(c=this.backoff)===null||c===void 0||c.setMin(n),this)}randomizationFactor(n){var c;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(c=this.backoff)===null||c===void 0||c.setJitter(n),this)}reconnectionDelayMax(n){var c;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(c=this.backoff)===null||c===void 0||c.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(~this._readyState.indexOf("open"))return this;this.engine=new hh(this.uri,this.opts);const c=this.engine,d=this;this._readyState="opening",this.skipReconnect=!1;const m=Xe(c,"open",function(){d.onopen(),n&&n()}),y=L=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",L),n?n(L):this.maybeReconnectOnOpen()},C=Xe(c,"error",y);if(this._timeout!==!1){const L=this._timeout,M=this.setTimeoutFn(()=>{m(),y(new Error("timeout")),c.close()},L);this.opts.autoUnref&&M.unref(),this.subs.push(()=>{this.clearTimeoutFn(M)})}return this.subs.push(m),this.subs.push(C),this}connect(n){return this.open(n)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const n=this.engine;this.subs.push(Xe(n,"ping",this.onping.bind(this)),Xe(n,"data",this.ondata.bind(this)),Xe(n,"error",this.onerror.bind(this)),Xe(n,"close",this.onclose.bind(this)),Xe(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(c){this.onclose("parse error",c)}}ondecoded(n){En(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){this.emitReserved("error",n)}socket(n,c){let d=this.nsps[n];return d?this._autoConnect&&!d.active&&d.connect():(d=new uh(this,n,c),this.nsps[n]=d),d}_destroy(n){const c=Object.keys(this.nsps);for(const d of c)if(this.nsps[d].active)return;this._close()}_packet(n){const c=this.encoder.encode(n);for(let d=0;d<c.length;d++)this.engine.write(c[d],n.options)}cleanup(){this.subs.forEach(n=>n()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(n,c){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,c),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const n=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const c=this.backoff.duration();this._reconnecting=!0;const d=this.setTimeoutFn(()=>{n.skipReconnect||(this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(m=>{m?(n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",m)):n.onreconnect()}))},c);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}}onreconnect(){const n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}}const oa={};function xs(s,n){typeof s=="object"&&(n=s,s=void 0),n=n||{};const c=Wp(s,n.path||"/socket.io"),d=c.source,m=c.id,y=c.path,C=oa[m]&&y in oa[m].nsps,L=n.forceNew||n["force new connection"]||n.multiplex===!1||C;let M;return L?M=new Ur(d,n):(oa[m]||(oa[m]=new Ur(d,n)),M=oa[m]),c.query&&!n.query&&(n.query=c.queryKey),M.socket(c.path,n)}Object.assign(xs,{Manager:Ur,Socket:uh,io:xs,connect:xs});var rs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ix(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var ax="Expected a function",ll=NaN,sx="[object Symbol]",rx=/^\s+|\s+$/g,nx=/^[-+]0x[0-9a-f]+$/i,ox=/^0b[01]+$/i,lx=/^0o[0-7]+$/i,cx=parseInt,hx=typeof rs=="object"&&rs&&rs.Object===Object&&rs,dx=typeof self=="object"&&self&&self.Object===Object&&self,ux=hx||dx||Function("return this")(),fx=Object.prototype,gx=fx.toString,px=Math.max,xx=Math.min,gr=function(){return ux.Date.now()};function mx(s,n,c){var d,m,y,C,L,M,z=0,Y=!1,D=!1,W=!0;if(typeof s!="function")throw new TypeError(ax);n=cl(n)||0,$r(c)&&(Y=!!c.leading,D="maxWait"in c,y=D?px(cl(c.maxWait)||0,n):y,W="trailing"in c?!!c.trailing:W);function q(it){var Mt=d,$t=m;return d=m=void 0,z=it,C=s.apply($t,Mt),C}function xt(it){return z=it,L=setTimeout(et,n),Y?q(it):C}function nt(it){var Mt=it-M,$t=it-z,oe=n-Mt;return D?xx(oe,y-$t):oe}function Ot(it){var Mt=it-M,$t=it-z;return M===void 0||Mt>=n||Mt<0||D&&$t>=y}function et(){var it=gr();if(Ot(it))return R(it);L=setTimeout(et,nt(it))}function R(it){return L=void 0,W&&d?q(it):(d=m=void 0,C)}function ht(){L!==void 0&&clearTimeout(L),z=0,d=M=m=L=void 0}function ut(){return L===void 0?C:R(gr())}function V(){var it=gr(),Mt=Ot(it);if(d=arguments,m=this,M=it,Mt){if(L===void 0)return xt(M);if(D)return L=setTimeout(et,n),q(M)}return L===void 0&&(L=setTimeout(et,n)),C}return V.cancel=ht,V.flush=ut,V}function $r(s){var n=typeof s;return!!s&&(n=="object"||n=="function")}function bx(s){return!!s&&typeof s=="object"}function vx(s){return typeof s=="symbol"||bx(s)&&gx.call(s)==sx}function cl(s){if(typeof s=="number")return s;if(vx(s))return ll;if($r(s)){var n=typeof s.valueOf=="function"?s.valueOf():s;s=$r(n)?n+"":n}if(typeof s!="string")return s===0?s:+s;s=s.replace(rx,"");var c=ox.test(s);return c||lx.test(s)?cx(s.slice(2),c?2:8):nx.test(s)?ll:+s}var yx=mx;const fh=ix(yx),wx=void 0,kx=30,gh={notificationEvents:[],notificationCounter:0,notificationAPICounter:0,notificationHistory:[],notificationHistoryConfig:{},userActivity:{},userActivityConfig:{},exercises:[],selected_exercises:[],progresses:{},diagnostic:{}},Ft=Ea({...gh}),za=Ea({connected:!1,zmq_last_time:!1}),se=xs(wx,{autoConnect:!0}),Ax=Pt(()=>Ft.exercises),hl=Pt(()=>Ft.selected_exercises),dl=Pt(()=>Ft.exercises.filter(s=>Ft.selected_exercises.includes(s.uuid))),ul=Pt(()=>Ft.progresses),fl=Pt(()=>Ft.notificationEvents),Sx=Pt(()=>Ft.notificationCounter),Cx=Pt(()=>Ft.notificationAPICounter),Px=Pt(()=>Object.keys(Ft.progresses).length),Bi=Pt(()=>Ft.diagnostic),pr=Pt(()=>Ft.notificationHistory),Lx=Pt(()=>Ft.notificationHistoryConfig),xr=Pt(()=>Ft.userActivity),gl=Pt(()=>Ft.userActivityConfig),Vi=Pt(()=>za.connected),pl=Pt(()=>za.zmq_last_time);function _x(){Object.assign(Ft,gh)}function qr(){Nx(),xh(),mh(),Gs(),Xx()}function Ex(s,n,c,d){Dx(s,{user_id:n,exercise_uuid:c,task_uuid:d})}function Tx(){Hx()}function Ix(){Bx()}function Mx(s,n){Wx({exercise_uuid:s,selected:n})}function Ox(s){Vx(s)}function Rx(s){Gx(s)}function zx(s){jx(s,n=>{n.success?Ft.diagnostic.settings[s].value=Ft.diagnostic.settings[s].expected_value:(Ft.diagnostic.settings[s].error=!0,Ft.diagnostic.settings[s].errorMessage=n.message)})}const ph=fh(Gs,200,{leading:!0}),Fx=fh(Yx,1e3,{leading:!0});function Nx(){se.emit("get_exercises",s=>{Ft.exercises=s})}function xh(){se.emit("get_selected_exercises",s=>{Ft.selected_exercises=s})}function mh(){se.emit("get_notifications",s=>{Ft.notificationEvents=s})}function Gs(){se.emit("get_progress",s=>{Ft.progresses=s})}function Xx(){se.emit("get_users_activity",s=>{Ft.userActivity=s.activity,Ft.userActivityConfig=s.config})}function Yx(){Ft.diagnostic={},se.emit("get_diagnostic",s=>{Ft.diagnostic=s})}function Dx(s,n){const c=s?"mark_task_incomplete":"mark_task_completed";se.emit(c,n,()=>{Gs()})}function Hx(){se.emit("reset_all_exercise_progress",()=>{Gs()})}function Bx(){se.emit("reset_notifications",()=>{mh()})}function Wx(s){se.emit("change_exercise_selection",s,()=>{xh()})}function Vx(s){const n={verbose:s};se.emit("toggle_verbose_mode",n,()=>{})}function Gx(s){const n={apiquery:s};se.emit("toggle_apiquery_mode",n,()=>{})}function jx(s,n){const c={name:s};se.emit("remediate_setting",c,d=>{n(d)})}se.on("connect",()=>{za.connected=!0});se.on("disconnect",()=>{za.connected=!1});se.on("notification",s=>{Ft.notificationCounter+=1,s.is_api_request&&(Ft.notificationAPICounter+=1),Ux(Ft.notificationEvents,s,kx)});se.on("new_user",s=>{ph()});se.on("refresh_score",s=>{ph()});se.on("keep_alive",s=>{za.zmq_last_time=s.zmq_last_time});se.on("update_notification_history",s=>{Ft.notificationHistory=s.history,Ft.notificationHistoryConfig=s.config});se.on("update_users_activity",s=>{Ft.userActivity=s.activity,Ft.userActivityConfig=s.config});function Ux(s,n,c){s.unshift(n),s.length>c&&(s.length=c)}const $x={class:"modal-box w-11/12 max-w-6xl top-24 absolute bg-slate-200 dark:bg-slate-600 text-slate-700 dark:text-slate-200"},qx={class:"text-2xl font-bold"},Zx=G("div",{class:"modal-action"},[G("form",{method:"dialog"},[G("button",{class:"btn btn-sm btn-circle btn-ghost absolute right-2 top-2"},"✕")])],-1),Kx={class:"flex mb-5 gap-2"},Jx={class:"text-lg font-semibold"},Qx={class:"label cursor-pointer justify-start"},tm=["onChange","checked","value"],em={class:"font-mono font-semibold text-base ml-3"},im={class:"text-lg font-semibold mt-4"},am={class:"font-semibold ml-1 my-3"},sm=G("strong",null,"MISP Status:",-1),rm={class:"ml-2"},nm={key:0,class:"loading loading-dots loading-sm h-4 inline-block align-middle"},om={key:1,class:"font-bold"},lm={class:"font-semibold ml-1 my-3"},cm=G("strong",null,"ZMQ Status:",-1),hm={class:"ml-2"},dm={key:0,class:"loading loading-dots loading-sm h-4 inline-block align-middle"},um={key:1,class:"font-bold"},fm=G("h4",{class:"font-semibold ml-1"},[G("strong",null,"MISP Settings:")],-1),gm={class:"ml-3"},pm={key:0,class:"flex justify-center"},xm=G("span",{class:"loading loading-dots loading-lg"},null,-1),mm=[xm],bm={key:1,class:"bg-white dark:bg-slate-700 rounded-lg shadow-xl w-full mt-2"},vm=G("thead",null,[G("tr",null,[G("th",{class:"border-b border-slate-200 dark:border-slate-600 p-2 text-left"},"Setting"),G("th",{class:"border-b border-slate-200 dark:border-slate-600 p-2 text-left"},"Value"),G("th",{class:"border-b border-slate-200 dark:border-slate-600 p-2 text-left"},"Expected Value"),G("th",{class:"border-b border-slate-200 dark:border-slate-600 p-2 text-center"},"Action")])],-1),ym={class:"font-mono font-semibold text-base px-2"},wm={key:0,class:"text-nowrap"},km={class:"font-mono text-base tracking-tight px-2"},Am={class:"px-2 text-center"},Sm={key:0,class:"text-red-600 dark:text-red-600"},Cm=["onClick","disabled"],Pm={key:1,class:"loading loading-dots loading-sm"},Lm={key:2,class:"text-base font-bold text-green-600 dark:text-green-600"},_m=G("form",{method:"dialog",class:"modal-backdrop"},[G("button",null,"close")],-1),Em={__name:"TheAdminPanel",setup(s){const n=Oe(null),c=Oe([]),d=Pt(()=>Object.keys(Bi.value).length==0),m=Pt(()=>{var Y;return((Y=Bi.value.version)==null?void 0:Y.version)!==void 0}),y=Pt(()=>Bi.value.zmq_message_count>0),C=Pt(()=>Bi.value.zmq_message_count);function L(Y,D){Mx(D,Y)}function M(Y){zx(Y)}function z(){n.value.showModal(),c.value=[],Fx()}return(Y,D)=>(gt(),yt(jt,null,[G("button",{onClick:D[0]||(D[0]=W=>z()),class:"px-2 py-1 rounded-md focus-outline font-semibold bg-blue-600 text-slate-200 hover:bg-blue-700"},[Et(ct(ie),{icon:ct(Zo),class:"mr-1"},null,8,["icon"]),te(" Admin panel ")]),G("dialog",{ref_key:"admin_modal",ref:n,class:"modal"},[G("div",$x,[G("h2",qx,[Et(ct(ie),{icon:ct(Zo),class:""},null,8,["icon"]),te(" Admin panel ")]),Zx,G("div",null,[G("div",Kx,[G("button",{onClick:D[1]||(D[1]=W=>ct(qr)()),class:"h-10 min-h-10 px-2 py-1 font-semibold bg-blue-600 text-slate-200 hover:bg-blue-700 btn btn-sm gap-1"},[Et(ct(ie),{icon:ct(op),size:"lg","fixed-width":""},null,8,["icon"]),te(" Full refresh ")]),G("button",{onClick:D[2]||(D[2]=W=>ct(Tx)()),class:"h-10 min-h-10 px-2 py-1 font-semibold bg-red-600 text-slate-200 hover:bg-red-700 btn btn-sm gap-1"},[Et(ct(ie),{icon:ct(tp),size:"lg","fixed-width":""},null,8,["icon"]),te(" Reset All Exercises ")]),G("button",{onClick:D[3]||(D[3]=W=>ct(Ix)()),class:"h-10 min-h-10 px-2 py-1 font-semibold bg-amber-600 text-slate-200 hover:bg-amber-700 btn btn-sm gap-1"},[Et(ct(ie),{icon:ct(Jg),size:"lg"},{default:Ul(()=>[te(" fixed-width")]),_:1},8,["icon"]),te(" Clear Live Logs ")])]),G("h3",Jx,[Et(ct(ie),{icon:ct(Jc),class:"mr-1"},null,8,["icon"]),te(" Selected Exercises ")]),(gt(!0),yt(jt,null,pi(ct(Ax),W=>(gt(),yt("div",{key:W.name,class:"form-control pl-3"},[G("label",Qx,[G("input",{onChange:q=>L(q.target.checked,W.uuid),type:"checkbox",checked:ct(hl).includes(W.uuid),value:W.uuid,class:ae(`checkbox ${ct(hl).includes(W.uuid)?"checkbox-success":""} [--fallback-bc:#94a3b8]`)},null,42,tm),G("span",em,Wt(W.name),1)])]))),128)),G("h3",im,[Et(ct(ie),{icon:ct(ep),class:"mr-1"},null,8,["icon"]),te(" Diagnostic ")]),G("h4",am,[sm,G("span",rm,[G("span",{class:ae({"rounded-lg py-1 px-2":!0,"dark:bg-neutral-800 bg-neutral-400 text-slate-800 dark:text-slate-200":d.value,"dark:bg-green-700 bg-green-500 text-slate-800 dark:text-slate-200":!d.value&&m.value,"dark:bg-red-700 bg-red-700 text-slate-200 dark:text-slate-200":!d.value&&!m.value})},[d.value?(gt(),yt("span",nm)):(gt(),yt("span",om,Wt(m.value?`Online (${ct(Bi).version.version})`:"Unreachable"),1))],2)])]),G("h4",lm,[cm,G("span",hm,[G("span",{class:ae({"rounded-lg py-1 px-2":!0,"dark:bg-neutral-800 bg-neutral-400 text-slate-800 dark:text-slate-200":d.value,"dark:bg-green-700 bg-green-500 text-slate-800 dark:text-slate-200":!d.value&&y.value,"dark:bg-red-700 bg-red-700 text-slate-200 dark:text-slate-200":!d.value&&!y.value})},[d.value?(gt(),yt("span",dm)):(gt(),yt("span",um,Wt(y.value?`ZMQ Active (${C.value} messages)`:"No message received yet"),1))],2)])]),d.value||m.value?(gt(),yt(jt,{key:0},[fm,G("div",gm,[d.value?(gt(),yt("div",pm,mm)):(gt(),yt("table",bm,[vm,G("tbody",null,[(gt(!0),yt(jt,null,pi(ct(Bi).settings,(W,q)=>(gt(),yt("tr",{key:q},[G("td",ym,Wt(q),1),G("td",{class:ae(`font-mono text-base tracking-tight px-2 ${W.expected_value!=W.value?"text-red-600 dark:text-red-600":""}`)},[W.value===void 0||W.value===null?(gt(),yt("i",wm,"- none -")):Ni("",!0),te(" "+Wt(W.value),1)],2),G("td",km,Wt(W.expected_value),1),G("td",Am,[W.error===!0?(gt(),yt("span",Sm,"Error: "+Wt(W.errorMessage),1)):W.expected_value!=W.value?(gt(),yt("button",{key:1,onClick:xt=>c.value.push(q)&&M(q),disabled:c.value.includes(q),class:"h-8 min-h-8 px-2 font-semibold bg-green-600 text-slate-200 hover:bg-green-700 btn gap-1"},[c.value.includes(q)?(gt(),yt("span",Pm)):(gt(),yt(jt,{key:0},[Et(ct(ie),{icon:ct(np),size:"sm","fixed-width":""},null,8,["icon"]),te(" Remediate ")],64))],8,Cm)):(gt(),yt("span",Lm,[Et(ct(ie),{icon:ct(Kc),class:""},null,8,["icon"]),te(" OK ")]))])]))),128))])]))])],64)):Ni("",!0)])]),_m],512)],64))}},Tm={class:"flex flex-col justify-center mt-1"},Im=G("span",{class:"mr-1"},"Socket.IO:",-1),Mm={class:"font-semibold text-green-600 dark:text-green-400"},Om={class:"font-semibold text-slate-50"},Rm={key:0,class:"text-xs font-thin leading-3 inline-block text-center"},zm={__name:"TheSocketConnectionState",setup(s){const n=Oe("?");function c(){pl.value!==!1?n.value=parseInt((new Date().getTime()-pl.value*1e3)/1e3):n.value="?"}return Ta(()=>{setInterval(()=>{c()},1e3)}),(d,m)=>(gt(),yt("span",Tm,[G("span",{class:ae({"px-2 rounded-md inline-block w-48 leading-4":!0,"text-slate-900 dark:text-slate-400":ct(Vi),"text-slate-50 bg-red-600 px-2 py-1":!ct(Vi)})},[Im,Kn(G("span",Mm,"Connected",512),[[fo,ct(Vi)]]),Kn(G("span",Om,"Disconnected",512),[[fo,!ct(Vi)]])],2),ct(Vi)?(gt(),yt("span",Rm,[n.value==0?(gt(),yt(jt,{key:0},[te(" online ")],64)):(gt(),yt(jt,{key:1},[te(" Last keep-alive: "+Wt(n.value)+"s ago ",1)],64))])):Ni("",!0)]))}},Fm={class:"my-2 --ml-1 bg-slate-50 dark:bg-slate-600 py-1 pl-1 pr-3 rounded-md relative flex flex-col"},Nm={class:"text-xxs flex justify-between h-full items-center text-slate-500 dark:text-slate-300"},Xm={class:"-rotate-90 w-8 -ml-3"},Ym=G("span",{class:"-rotate-90 w-8 text-xs"},"",-1),Dm=G("span",{class:"-rotate-90 w-8 text-lg"},"",-1),Hm=G("span",{class:"-rotate-90 w-8 text-xs"},"",-1),Bm=G("span",{class:"-rotate-90 w-8 -mr-1.5"},"- 0min",-1),Wm={__name:"TheLiveLogsActivityGraph",setup(s){const n=Oe(null),c=[{data:Array.from(Array(12*20)).map(()=>0)}],d=Pt(()=>pr.value.length>0),m=Pt(()=>pr.value?y.value:c.value),y=Pt(()=>[{data:Array.from(pr.value)}]),C=Pt(()=>({chart:{type:"bar",width:"100%",height:32,sparkline:{enabled:!0},dropShadow:{enabled:!0,enabledOnSeries:void 0,top:2,left:1,blur:2,color:"#000",opacity:_s.value?.35:.15},animations:{enabled:!1,easing:"easeinout",speed:200}},colors:[_s.value?"#008ffb":"#1f9eff"],plotOptions:{bar:{columnWidth:"80%"}},yaxis:{min:0,labels:{show:!1}},tooltip:{enabled:!1}}));return(L,M)=>{const z=Od("apexchart");return gt(),yt("div",Fm,[G("div",{class:ae(`${d.value?"absolute":"hidden"} h-10 -mt-1 w-full z-40`)},[G("div",Nm,[G("span",Xm,"- "+Wt(ct(Lx).buffer_timestamp_min)+"min",1),Ym,Dm,Hm,Bm])],2),G("i",{class:ae(["text-center text-slate-600 dark:text-slate-400",d.value?"hidden":"block"])}," - No recorded activity - ",2),Et(z,{ref_key:"theChart",ref:n,class:ae(d.value?"block":"absolute h-8 w-full"),height:"32",width:"100%",options:C.value,series:m.value},null,8,["class","options","series"])])}}},Vm={class:"text-2xl mt-6 mb-2 font-bold text-blue-500 dark:text-blue-400"},Gm={class:"mb-2 flex flex-wrap gap-x-3"},jm={class:"rounded-lg py-1 px-2 dark:bg-sky-700 bg-sky-400 text-slate-800 dark:text-slate-200"},Um={class:"mr-1"},$m={class:"font-bold"},qm={class:"rounded-lg py-1 px-2 dark:bg-sky-700 bg-sky-400 text-slate-800 dark:text-slate-200"},Zm={class:"mr-1"},Km={class:"font-bold"},Jm={class:"rounded-lg py-1 px-2 dark:bg-sky-700 bg-sky-400 text-slate-800 dark:text-slate-200"},Qm={class:"mr-1"},tb={class:"font-bold"},eb={class:"flex items-center"},ib={class:"mr-1 flex items-center cursor-pointer text-slate-700 dark:text-slate-300"},ab=["checked"],sb={class:"flex items-center"},rb={class:"mr-1 flex items-center cursor-pointer text-slate-700 dark:text-slate-300"},nb=["checked"],ob={class:"bg-white dark:bg-slate-800 rounded-lg shadow-xl w-full"},lb=G("thead",null,[G("tr",{class:"font-medium dark:text-slate-200 text-slate-600"},[G("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 pl-6 text-left"}),G("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 pl-2 text-left"},"User"),G("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 text-left"},"Time"),G("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 text-left"},"URL"),G("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 text-left"},"Payload")])],-1),cb={key:0},hb=G("td",{colspan:"5",class:"text-center border-b border-slate-100 dark:border-slate-700 text-slate-600 dark:text-slate-400 p-3 pl-6"},[G("i",null,"- No logs yet -")],-1),db=[hb],ub={class:"border-b border-slate-100 dark:border-slate-700 text-slate-600 dark:text-slate-400 p-1 pl-2 w-12 whitespace-nowrap"},fb={class:"inline ml-1"},gb=["title"],pb={class:"text-lg font-bold font-mono"},xb={class:"text-xs font-mono"},mb={class:"border-b border-slate-100 dark:border-slate-700 text-slate-600 dark:text-slate-400 p-1"},bb={class:"border-b border-slate-100 dark:border-slate-700 text-sky-600 dark:text-sky-400 p-1"},vb={class:"flex items-center"},yb={key:0,class:"p-1 rounded-md font-bold text-xs mr-2 w-10 inline-block text-center dark:bg-amber-600 dark:text-neutral-100 bg-amber-600 text-neutral-100"},wb={key:1,class:"p-1 rounded-md font-bold text-xs mr-2 w-10 inline-block text-center dark:bg-amber-600 dark:text-neutral-100 bg-amber-600 text-neutral-100"},kb={key:2,class:"p-1 rounded-md font-bold text-xs mr-2 w-10 inline-block text-center dark:bg-red-600 dark:text-neutral-100 bg-red-600 text-neutral-100"},Ab={key:3,class:"p-1 rounded-md font-bold text-xs mr-2 w-10 inline-block text-center dark:bg-blue-600 dark:text-neutral-100 bg-blue-600 text-neutral-100"},Sb={class:"text-sm inline"},Cb={class:"border-b border-slate-100 dark:border-slate-700 text-slate-600 dark:text-slate-300 p-1"},Pb={key:0,class:"border border-slate-200 dark:border-slate-600 bg-slate-100 dark:bg-slate-600 rounded-md"},Lb={class:"p-1 text-xs"},_b={__name:"TheLiveLogs",setup(s){const n=Oe(!1),c=Oe(!1);Ee(n,m=>{Ox(m==!0)}),Ee(c,m=>{Rx(m==!0)});function d(m){return String(m).startsWith("2")?"text-green-500":String(m).startsWith("5")?"text-red-600":"text-amber-600"}return(m,y)=>(gt(),yt(jt,null,[G("h3",Vm,[Et(ct(ie),{icon:ct(Ko)},null,8,["icon"]),te(" Live logs ")]),G("div",Gm,[G("span",jm,[G("span",Um,[Et(ct(ie),{icon:ct(Kg),size:"sm"},null,8,["icon"]),te(" Players: ")]),G("span",$m,Wt(ct(Px)),1)]),G("span",qm,[G("span",Zm,[Et(ct(ie),{icon:ct(Ko),size:"sm"},null,8,["icon"]),te(" Total Queries: ")]),G("span",Km,Wt(ct(Sx)),1)]),G("span",Jm,[G("span",Qm,[Et(ct(ie),{icon:ct(dr),size:"sm",mask:ct(hr),transform:"shrink-7 left-1"},null,8,["icon","mask"]),te(" Total API Queries: ")]),G("span",tb,Wt(ct(Cx)),1)]),G("span",eb,[G("label",ib,[G("input",{type:"checkbox",class:"toggle toggle-warning [--fallback-su:#22c55e] mr-1",checked:n.value,onChange:y[0]||(y[0]=C=>n.value=!n.value)},null,40,ab),te(" Verbose ")])]),G("span",sb,[G("label",rb,[G("input",{type:"checkbox",class:"toggle toggle-success [--fallback-su:#22c55e] mr-1",checked:c.value,onChange:y[1]||(y[1]=C=>c.value=!c.value)},null,40,nb),Et(ct(ie),{icon:ct(dr),size:"sm",mask:ct(hr),transform:"shrink-7 left-1",class:"mr-1"},null,8,["icon","mask"]),te(" API Queries ")])])]),Et(Wm),G("table",ob,[lb,G("tbody",null,[ct(fl).length==0?(gt(),yt("tr",cb,db)):(gt(!0),yt(jt,{key:1},pi(ct(fl),C=>(gt(),yt("tr",{key:C.id},[G("td",ub,[Et(ct(ie),{icon:ct(Qg),size:"xs",class:ae(d(C.response_code))},null,8,["icon","class"]),G("pre",fb,Wt(C.response_code),1)]),G("td",{class:"border-b border-slate-100 dark:border-slate-700 text-slate-600 dark:text-slate-400 p-1 pl-2",title:C.user_id},[G("span",pb,Wt(C.user.split("@")[0]),1),G("span",xb,"@"+Wt(C.user.split("@")[1]),1)],8,gb),G("td",mb,Wt(C.time),1),G("td",bb,[G("div",vb,[C.http_method=="POST"?(gt(),yt("span",yb,"POST")):C.http_method=="PUT"?(gt(),yt("span",wb,"PUT")):C.http_method=="DELETE"?(gt(),yt("span",kb,"DEL")):(gt(),yt("span",Ab,Wt(C.http_method),1)),C.is_api_request?(gt(),Gi(ct(ie),{key:4,class:"text-slate-800 dark:text-slate-100 mr-1 inline-block",icon:ct(dr),mask:ct(hr),transform:"shrink-7 left-1"},null,8,["icon","mask"])):Ni("",!0),G("pre",Sb,Wt(C.url),1)])]),G("td",Cb,[C.http_method=="POST"?(gt(),yt("div",Pb,[G("pre",Lb,Wt(JSON.stringify(C.payload,null,2)),1)])):Ni("",!0)])]))),128))])])],64))}},Eb=["title"],Tb="blue",Ib={__name:"LiveLogsUserActivityGraph",props:["user_id"],setup(s){const n=s;Oe(null);const c=Pt(()=>gl.value.activity_buffer_size),d=Pt(()=>gl.value.timestamp_min),m=Pt(()=>Array.from(Array(c.value)).map(()=>0)),y=Pt(()=>xr.value.length!=0),C=Pt(()=>y.value?L.value:m.value),L=Pt(()=>xr.value[n.user_id]===void 0?m.value:xr.value[n.user_id]),M=[0,1,2,3,4,5,1e3],z=["950","900","700","600","500","400","300"],Y=["50","100","300","400","500","600","700"];function D(W){for(let q=0;q<M.length;q++){const xt=M[q];if(W<=xt)return _s.value?z[q]:Y[q]}}return(W,q)=>(gt(),yt("span",{class:"h-3 w-56",title:`Activity over ${d.value}min`},[(gt(!0),yt(jt,null,pi(C.value,(xt,nt)=>(gt(),yt("span",{key:nt,class:ae(["inline-block h-3 rounded-[1px] mr-px",`bg-${Tb}-${D(xt)}`]),style:_a(`width: ${parseInt((224-C.value.length)/C.value.length)}px`)},null,6))),128))],8,Eb))}},Mb={class:"text-2xl mt-6 mb-2 font-bold text-blue-500 dark:text-blue-400"},Ob={key:0,class:"text-center text-slate-600 dark:text-slate-400 p-3 pl-6"},Rb=G("i",null,"- No Exercise available -",-1),zb=[Rb],Fb=["onClick"],Nb=["colspan"],Xb={class:"flex justify-between items-center"},Yb={class:"dark:text-blue-200 text-slate-200"},Db={class:"text-lg"},Hb={class:""},Bb=G("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 pl-6 text-left"},"User",-1),Wb=["title"],Vb={class:"flex flex-col"},Gb={class:"text-center font-normal text-sm dark:text-blue-200 text-slate-500 text-nowrap"},jb={class:"text-center"},Ub=G("th",{class:"border-b border-slate-100 dark:border-slate-700 p-3 text-left"},"Progress",-1),$b={key:0},qb=["colspan"],Zb=G("i",null,"- No user yet -",-1),Kb=[Zb],Jb={class:"border-b border-slate-200 dark:border-slate-700 text-slate-600 dark:text-slate-400 p-0 pl-2 relative"},Qb={class:"flex flex-col max-w-60"},tv=["title"],ev={class:"text-lg font-bold font-mono leading-5 tracking-tight"},iv={class:"text-xs font-mono tracking-tight"},av=["onClick"],sv={class:"flex flex-col"},rv={class:"text-nowrap"},nv={class:"text-sm leading-3"},ov={key:1},lv={class:"border-b border-slate-200 dark:border-slate-700 text-slate-500 dark:text-slate-400 p-3"},cv=["aria-valuenow"],hv={__name:"TheScores",setup(s){const n=Oe([]);function c(L,M,z,Y){Ex(L,M,z,Y)}function d(L){const M=n.value.indexOf(L);M>=0?n.value.splice(M,1):n.value.push(L)}const m=Pt(()=>dl.value.length>0),y=Pt(()=>Object.keys(ul.value).length>0),C=Pt(()=>Object.values(ul.value).sort((L,M)=>L.email<M.email?-1:L.email>M.email?1:0));return(L,M)=>(gt(),yt(jt,null,[G("h3",Mb,[Et(ct(ie),{icon:ct(Jc)},null,8,["icon"]),te(" Active Exercises ")]),m.value?Ni("",!0):(gt(),yt("div",Ob,zb)),(gt(!0),yt(jt,null,pi(ct(dl),(z,Y)=>(gt(),yt("table",{key:z.name,class:"bg-white dark:bg-slate-800 rounded-lg shadow-xl w-full mb-4"},[G("thead",null,[G("tr",{onClick:D=>d(Y),class:"cursor-pointer"},[G("th",{colspan:2+z.tasks.length,class:"rounded-t-lg border-b border-slate-100 dark:border-slate-700 text-md p-3 pl-6 text-center dark:bg-blue-800 bg-blue-500 dark:text-slate-300 text-slate-100"},[G("div",Xb,[G("span",Yb,"# "+Wt(Y+1),1),G("span",Db,Wt(z.name),1),G("span",Hb,[te(" Level: "),G("span",{class:ae({"rounded-lg px-1 ml-2":!0,"dark:bg-sky-400 bg-sky-400 text-neutral-950":z.level=="beginner","dark:bg-orange-400 bg-orange-400 text-neutral-950":z.level=="advanced","dark:bg-red-600 bg-red-600 text-neutral-950":z.level=="expert"})},Wt(z.level),3)])])],8,Nb)],8,Fb),G("tr",{class:ae(`font-medium text-slate-600 dark:text-slate-200 ${n.value.includes(Y)?"hidden":""}`)},[Bb,(gt(!0),yt(jt,null,pi(z.tasks,(D,W)=>(gt(),yt("th",{key:D.name,class:"border-b border-slate-100 dark:border-slate-700 p-3 align-top",title:D.description},[G("div",Vb,[G("span",Gb,"Task "+Wt(W+1),1),G("i",jb,Wt(D.name),1)])],8,Wb))),128)),Ub],2)]),G("tbody",{class:ae(`${n.value.includes(Y)?"hidden":""}`)},[y.value?(gt(!0),yt(jt,{key:1},pi(C.value,D=>(gt(),yt("tr",{key:D.user_id,class:"bg-slate-100 dark:bg-slate-900"},[G("td",Jb,[G("span",Qb,[G("span",{title:D.user_id,class:"text-nowrap inline-block leading-5 truncate"},[D.exercises[z.uuid].score/D.exercises[z.uuid].max_score==1?(gt(),Gi(ct(ie),{key:0,icon:ct(ap),class:"mr-1 text-amber-300"},null,8,["icon"])):Ni("",!0),G("span",ev,Wt(D.email.split("@")[0]),1),G("span",iv,"@"+Wt(D.email.split("@")[1]),1)],8,tv),Et(Ib,{user_id:D.user_id},null,8,["user_id"])])]),(gt(!0),yt(jt,null,pi(z.tasks,(W,q)=>{var xt;return gt(),yt("td",{key:q,class:"text-center border-b border-slate-200 dark:border-slate-700 text-slate-500 dark:text-slate-400 p-2"},[G("span",{class:"select-none cursor-pointer flex justify-center content-center flex-wrap h-9",onClick:nt=>c(D.exercises[z.uuid].tasks_completion[W.uuid],D.user_id,z.uuid,W.uuid)},[G("span",sv,[G("span",rv,[D.exercises[z.uuid].tasks_completion[W.uuid]?(gt(),Gi(ct(ie),{key:0,icon:ct(Kc),class:ae(`text-xl ${D.exercises[z.uuid].tasks_completion[W.uuid]?"dark:text-green-400 text-green-600":"dark:text-slate-500 text-slate-400"}`)},null,8,["icon","class"])):((xt=W.requirements)==null?void 0:xt.inject_uuid)!==void 0&&!D.exercises[z.uuid].tasks_completion[W.requirements.inject_uuid]?(gt(),Gi(ct(ie),{key:1,title:"All requirements for that task haven't been fullfilled yet",icon:ct(Zg),class:ae(`text-lg ${D.exercises[z.uuid].tasks_completion[W.uuid]?"dark:text-green-400 text-green-600":"dark:text-slate-500 text-slate-400"}`)},null,8,["icon","class"])):(gt(),Gi(ct(ie),{key:2,icon:ct(rp),class:ae(`text-xl ${D.exercises[z.uuid].tasks_completion[W.uuid]?"dark:text-green-400 text-green-600":"dark:text-slate-500 text-slate-400"}`)},null,8,["icon","class"])),G("small",{class:ae(D.exercises[z.uuid].tasks_completion[W.uuid]?"dark:text-green-400 text-green-600":"dark:text-slate-500 text-slate-400")}," (+"+Wt(W.score)+")",3)]),G("span",nv,[D.exercises[z.uuid].tasks_completion[W.uuid].timestamp?(gt(),yt("span",{key:0,class:ae(D.exercises[z.uuid].tasks_completion[W.uuid].first_completion?"font-bold":"font-extralight")},Wt(new Date(D.exercises[z.uuid].tasks_completion[W.uuid].timestamp*1e3).toTimeString().split(" ",1)[0]),3)):(gt(),yt("span",ov))])])],8,av)])}),128)),G("td",lv,[G("div",{class:"flex w-full h-2 bg-gray-200 rounded-full overflow-hidden dark:bg-neutral-600",role:"progressbar","aria-valuenow":D.exercises[z.uuid].score,"aria-valuemin":0,"aria-valuemax":"100"},[G("div",{class:"flex flex-col justify-center rounded-full overflow-hidden bg-green-600 text-xs text-white text-center whitespace-nowrap transition duration-500 dark:bg-green-500 transition-width transition-slowest ease",style:_a(`width: ${100*(D.exercises[z.uuid].score/D.exercises[z.uuid].max_score)}%`)},null,4)],8,cv)])]))),128)):(gt(),yt("tr",$b,[G("td",{colspan:2+z.tasks.length,class:"text-center border-b border-slate-100 dark:border-slate-700 text-slate-600 dark:text-slate-400 p-3 pl-6"},Kb,8,qb)]))],2)]))),128))],64))}},dv={__name:"TheDahboard",setup(s){return Ee(Vi,n=>{n&&(_x(),qr())}),Ta(()=>{qr()}),(n,c)=>(gt(),yt(jt,null,[Et(hv),Et(_b)],64))}},uv=G("h1",{class:"text-2xl text-center text-slate-500 dark:text-slate-400 absolute top-1 left-1"},"Exercise Dashboard",-1),fv={class:"absolute top-1 right-1"},gv={class:"flex gap-2"},pv={__name:"App",setup(s){return Ta(()=>{_s.value&&document.getElementsByTagName("body")[0].classList.add("dark")}),(n,c)=>(gt(),yt("main",null,[uv,G("div",fv,[G("div",gv,[Et(up),Et(Em),Et(zm)])]),Et(dv)]))}},bh=Qu(pv);bh.use(As);bh.mount("#app");