var fx=Object.defineProperty;var mx=(ln,rn,an)=>rn in ln?fx(ln,rn,{enumerable:!0,configurable:!0,writable:!0,value:an}):ln[rn]=an;var Sc=(ln,rn,an)=>mx(ln,typeof rn!="symbol"?rn+"":rn,an);(function(){const rn=document.createElement("link").relList;if(rn&&rn.supports&&rn.supports("modulepreload"))return;for(const on of document.querySelectorAll('link[rel="modulepreload"]'))sn(on);new MutationObserver(on=>{for(const cn of on)if(cn.type==="childList")for(const un of cn.addedNodes)un.tagName==="LINK"&&un.rel==="modulepreload"&&sn(un)}).observe(document,{childList:!0,subtree:!0});function an(on){const cn={};return on.integrity&&(cn.integrity=on.integrity),on.referrerPolicy&&(cn.referrerPolicy=on.referrerPolicy),on.crossOrigin==="use-credentials"?cn.credentials="include":on.crossOrigin==="anonymous"?cn.credentials="omit":cn.credentials="same-origin",cn}function sn(on){if(on.ep)return;on.ep=!0;const cn=an(on);fetch(on.href,cn)}})();function getDefaultExportFromCjs(ln){return ln&&ln.__esModule&&Object.prototype.hasOwnProperty.call(ln,"default")?ln.default:ln}function getAugmentedNamespace(ln){if(ln.__esModule)return ln;var rn=ln.default;if(typeof rn=="function"){var an=function sn(){return this instanceof sn?Reflect.construct(rn,arguments,this.constructor):rn.apply(this,arguments)};an.prototype=rn.prototype}else an={};return Object.defineProperty(an,"__esModule",{value:!0}),Object.keys(ln).forEach(function(sn){var on=Object.getOwnPropertyDescriptor(ln,sn);Object.defineProperty(an,sn,on.get?on:{enumerable:!0,get:function(){return ln[sn]}})}),an}var jsxRuntime={exports:{}},reactJsxRuntime_production={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hasRequiredReactJsxRuntime_production;function requireReactJsxRuntime_production(){if(hasRequiredReactJsxRuntime_production)return reactJsxRuntime_production;hasRequiredReactJsxRuntime_production=1;var ln=Symbol.for("react.transitional.element"),rn=Symbol.for("react.fragment");function an(sn,on,cn){var un=null;if(cn!==void 0&&(un=""+cn),on.key!==void 0&&(un=""+on.key),"key"in on){cn={};for(var pn in on)pn!=="key"&&(cn[pn]=on[pn])}else cn=on;return on=cn.ref,{$$typeof:ln,type:sn,key:un,ref:on!==void 0?on:null,props:cn}}return reactJsxRuntime_production.Fragment=rn,reactJsxRuntime_production.jsx=an,reactJsxRuntime_production.jsxs=an,reactJsxRuntime_production}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime(),react={exports:{}},react_production={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hasRequiredReact_production;function requireReact_production(){if(hasRequiredReact_production)return react_production;hasRequiredReact_production=1;var ln=Symbol.for("react.transitional.element"),rn=Symbol.for("react.portal"),an=Symbol.for("react.fragment"),sn=Symbol.for("react.strict_mode"),on=Symbol.for("react.profiler"),cn=Symbol.for("react.consumer"),un=Symbol.for("react.context"),pn=Symbol.for("react.forward_ref"),fn=Symbol.for("react.suspense"),mn=Symbol.for("react.memo"),xn=Symbol.for("react.lazy"),vn=Symbol.iterator;function yn(Xn){return Xn===null||typeof Xn!="object"?null:(Xn=vn&&Xn[vn]||Xn["@@iterator"],typeof Xn=="function"?Xn:null)}var wn={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},An=Object.assign,Cn={};function kn(Xn,cr,_r){this.props=Xn,this.context=cr,this.refs=Cn,this.updater=_r||wn}kn.prototype.isReactComponent={},kn.prototype.setState=function(Xn,cr){if(typeof Xn!="object"&&typeof Xn!="function"&&Xn!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Xn,cr,"setState")},kn.prototype.forceUpdate=function(Xn){this.updater.enqueueForceUpdate(this,Xn,"forceUpdate")};function Mn(){}Mn.prototype=kn.prototype;function Tn(Xn,cr,_r){this.props=Xn,this.context=cr,this.refs=Cn,this.updater=_r||wn}var On=Tn.prototype=new Mn;On.constructor=Tn,An(On,kn.prototype),On.isPureReactComponent=!0;var Pn=Array.isArray,Nn={H:null,A:null,T:null,S:null},In=Object.prototype.hasOwnProperty;function jn(Xn,cr,_r,Nr,Er,Fr){return _r=Fr.ref,{$$typeof:ln,type:Xn,key:cr,ref:_r!==void 0?_r:null,props:Fr}}function Fn(Xn,cr){return jn(Xn.type,cr,void 0,void 0,void 0,Xn.props)}function Un(Xn){return typeof Xn=="object"&&Xn!==null&&Xn.$$typeof===ln}function Yn(Xn){var cr={"=":"=0",":":"=2"};return"$"+Xn.replace(/[=:]/g,function(_r){return cr[_r]})}var Qn=/\/+/g;function ir(Xn,cr){return typeof Xn=="object"&&Xn!==null&&Xn.key!=null?Yn(""+Xn.key):cr.toString(36)}function er(){}function tr(Xn){switch(Xn.status){case"fulfilled":return Xn.value;case"rejected":throw Xn.reason;default:switch(typeof Xn.status=="string"?Xn.then(er,er):(Xn.status="pending",Xn.then(function(cr){Xn.status==="pending"&&(Xn.status="fulfilled",Xn.value=cr)},function(cr){Xn.status==="pending"&&(Xn.status="rejected",Xn.reason=cr)})),Xn.status){case"fulfilled":return Xn.value;case"rejected":throw Xn.reason}}throw Xn}function vr(Xn,cr,_r,Nr,Er){var Fr=typeof Xn;(Fr==="undefined"||Fr==="boolean")&&(Xn=null);var Tr=!1;if(Xn===null)Tr=!0;else switch(Fr){case"bigint":case"string":case"number":Tr=!0;break;case"object":switch(Xn.$$typeof){case ln:case rn:Tr=!0;break;case xn:return Tr=Xn._init,vr(Tr(Xn._payload),cr,_r,Nr,Er)}}if(Tr)return Er=Er(Xn),Tr=Nr===""?"."+ir(Xn,0):Nr,Pn(Er)?(_r="",Tr!=null&&(_r=Tr.replace(Qn,"$&/")+"/"),vr(Er,cr,_r,"",function(Xr){return Xr})):Er!=null&&(Un(Er)&&(Er=Fn(Er,_r+(Er.key==null||Xn&&Xn.key===Er.key?"":(""+Er.key).replace(Qn,"$&/")+"/")+Tr)),cr.push(Er)),1;Tr=0;var Vr=Nr===""?".":Nr+":";if(Pn(Xn))for(var Pr=0;Pr<Xn.length;Pr++)Nr=Xn[Pr],Fr=Vr+ir(Nr,Pr),Tr+=vr(Nr,cr,_r,Fr,Er);else if(Pr=yn(Xn),typeof Pr=="function")for(Xn=Pr.call(Xn),Pr=0;!(Nr=Xn.next()).done;)Nr=Nr.value,Fr=Vr+ir(Nr,Pr++),Tr+=vr(Nr,cr,_r,Fr,Er);else if(Fr==="object"){if(typeof Xn.then=="function")return vr(tr(Xn),cr,_r,Nr,Er);throw cr=String(Xn),Error("Objects are not valid as a React child (found: "+(cr==="[object Object]"?"object with keys {"+Object.keys(Xn).join(", ")+"}":cr)+"). If you meant to render a collection of children, use an array instead.")}return Tr}function rr(Xn,cr,_r){if(Xn==null)return Xn;var Nr=[],Er=0;return vr(Xn,Nr,"","",function(Fr){return cr.call(_r,Fr,Er++)}),Nr}function fr(Xn){if(Xn._status===-1){var cr=Xn._result;cr=cr(),cr.then(function(_r){(Xn._status===0||Xn._status===-1)&&(Xn._status=1,Xn._result=_r)},function(_r){(Xn._status===0||Xn._status===-1)&&(Xn._status=2,Xn._result=_r)}),Xn._status===-1&&(Xn._status=0,Xn._result=cr)}if(Xn._status===1)return Xn._result.default;throw Xn._result}var ur=typeof reportError=="function"?reportError:function(Xn){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var cr=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Xn=="object"&&Xn!==null&&typeof Xn.message=="string"?String(Xn.message):String(Xn),error:Xn});if(!window.dispatchEvent(cr))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",Xn);return}console.error(Xn)};function wr(){}return react_production.Children={map:rr,forEach:function(Xn,cr,_r){rr(Xn,function(){cr.apply(this,arguments)},_r)},count:function(Xn){var cr=0;return rr(Xn,function(){cr++}),cr},toArray:function(Xn){return rr(Xn,function(cr){return cr})||[]},only:function(Xn){if(!Un(Xn))throw Error("React.Children.only expected to receive a single React element child.");return Xn}},react_production.Component=kn,react_production.Fragment=an,react_production.Profiler=on,react_production.PureComponent=Tn,react_production.StrictMode=sn,react_production.Suspense=fn,react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Nn,react_production.act=function(){throw Error("act(...) is not supported in production builds of React.")},react_production.cache=function(Xn){return function(){return Xn.apply(null,arguments)}},react_production.cloneElement=function(Xn,cr,_r){if(Xn==null)throw Error("The argument must be a React element, but you passed "+Xn+".");var Nr=An({},Xn.props),Er=Xn.key,Fr=void 0;if(cr!=null)for(Tr in cr.ref!==void 0&&(Fr=void 0),cr.key!==void 0&&(Er=""+cr.key),cr)!In.call(cr,Tr)||Tr==="key"||Tr==="__self"||Tr==="__source"||Tr==="ref"&&cr.ref===void 0||(Nr[Tr]=cr[Tr]);var Tr=arguments.length-2;if(Tr===1)Nr.children=_r;else if(1<Tr){for(var Vr=Array(Tr),Pr=0;Pr<Tr;Pr++)Vr[Pr]=arguments[Pr+2];Nr.children=Vr}return jn(Xn.type,Er,void 0,void 0,Fr,Nr)},react_production.createContext=function(Xn){return Xn={$$typeof:un,_currentValue:Xn,_currentValue2:Xn,_threadCount:0,Provider:null,Consumer:null},Xn.Provider=Xn,Xn.Consumer={$$typeof:cn,_context:Xn},Xn},react_production.createElement=function(Xn,cr,_r){var Nr,Er={},Fr=null;if(cr!=null)for(Nr in cr.key!==void 0&&(Fr=""+cr.key),cr)In.call(cr,Nr)&&Nr!=="key"&&Nr!=="__self"&&Nr!=="__source"&&(Er[Nr]=cr[Nr]);var Tr=arguments.length-2;if(Tr===1)Er.children=_r;else if(1<Tr){for(var Vr=Array(Tr),Pr=0;Pr<Tr;Pr++)Vr[Pr]=arguments[Pr+2];Er.children=Vr}if(Xn&&Xn.defaultProps)for(Nr in Tr=Xn.defaultProps,Tr)Er[Nr]===void 0&&(Er[Nr]=Tr[Nr]);return jn(Xn,Fr,void 0,void 0,null,Er)},react_production.createRef=function(){return{current:null}},react_production.forwardRef=function(Xn){return{$$typeof:pn,render:Xn}},react_production.isValidElement=Un,react_production.lazy=function(Xn){return{$$typeof:xn,_payload:{_status:-1,_result:Xn},_init:fr}},react_production.memo=function(Xn,cr){return{$$typeof:mn,type:Xn,compare:cr===void 0?null:cr}},react_production.startTransition=function(Xn){var cr=Nn.T,_r={};Nn.T=_r;try{var Nr=Xn(),Er=Nn.S;Er!==null&&Er(_r,Nr),typeof Nr=="object"&&Nr!==null&&typeof Nr.then=="function"&&Nr.then(wr,ur)}catch(Fr){ur(Fr)}finally{Nn.T=cr}},react_production.unstable_useCacheRefresh=function(){return Nn.H.useCacheRefresh()},react_production.use=function(Xn){return Nn.H.use(Xn)},react_production.useActionState=function(Xn,cr,_r){return Nn.H.useActionState(Xn,cr,_r)},react_production.useCallback=function(Xn,cr){return Nn.H.useCallback(Xn,cr)},react_production.useContext=function(Xn){return Nn.H.useContext(Xn)},react_production.useDebugValue=function(){},react_production.useDeferredValue=function(Xn,cr){return Nn.H.useDeferredValue(Xn,cr)},react_production.useEffect=function(Xn,cr){return Nn.H.useEffect(Xn,cr)},react_production.useId=function(){return Nn.H.useId()},react_production.useImperativeHandle=function(Xn,cr,_r){return Nn.H.useImperativeHandle(Xn,cr,_r)},react_production.useInsertionEffect=function(Xn,cr){return Nn.H.useInsertionEffect(Xn,cr)},react_production.useLayoutEffect=function(Xn,cr){return Nn.H.useLayoutEffect(Xn,cr)},react_production.useMemo=function(Xn,cr){return Nn.H.useMemo(Xn,cr)},react_production.useOptimistic=function(Xn,cr){return Nn.H.useOptimistic(Xn,cr)},react_production.useReducer=function(Xn,cr,_r){return Nn.H.useReducer(Xn,cr,_r)},react_production.useRef=function(Xn){return Nn.H.useRef(Xn)},react_production.useState=function(Xn){return Nn.H.useState(Xn)},react_production.useSyncExternalStore=function(Xn,cr,_r){return Nn.H.useSyncExternalStore(Xn,cr,_r)},react_production.useTransition=function(){return Nn.H.useTransition()},react_production.version="19.0.0",react_production}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production()),react.exports}var reactExports=requireReact();const React=getDefaultExportFromCjs(reactExports);var client={exports:{}},reactDomClient_production={},scheduler={exports:{}},scheduler_production={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hasRequiredScheduler_production;function requireScheduler_production(){return hasRequiredScheduler_production||(hasRequiredScheduler_production=1,function(ln){function rn(rr,fr){var ur=rr.length;rr.push(fr);e:for(;0<ur;){var wr=ur-1>>>1,Xn=rr[wr];if(0<on(Xn,fr))rr[wr]=fr,rr[ur]=Xn,ur=wr;else break e}}function an(rr){return rr.length===0?null:rr[0]}function sn(rr){if(rr.length===0)return null;var fr=rr[0],ur=rr.pop();if(ur!==fr){rr[0]=ur;e:for(var wr=0,Xn=rr.length,cr=Xn>>>1;wr<cr;){var _r=2*(wr+1)-1,Nr=rr[_r],Er=_r+1,Fr=rr[Er];if(0>on(Nr,ur))Er<Xn&&0>on(Fr,Nr)?(rr[wr]=Fr,rr[Er]=ur,wr=Er):(rr[wr]=Nr,rr[_r]=ur,wr=_r);else if(Er<Xn&&0>on(Fr,ur))rr[wr]=Fr,rr[Er]=ur,wr=Er;else break e}}return fr}function on(rr,fr){var ur=rr.sortIndex-fr.sortIndex;return ur!==0?ur:rr.id-fr.id}if(ln.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var cn=performance;ln.unstable_now=function(){return cn.now()}}else{var un=Date,pn=un.now();ln.unstable_now=function(){return un.now()-pn}}var fn=[],mn=[],xn=1,vn=null,yn=3,wn=!1,An=!1,Cn=!1,kn=typeof setTimeout=="function"?setTimeout:null,Mn=typeof clearTimeout=="function"?clearTimeout:null,Tn=typeof setImmediate<"u"?setImmediate:null;function On(rr){for(var fr=an(mn);fr!==null;){if(fr.callback===null)sn(mn);else if(fr.startTime<=rr)sn(mn),fr.sortIndex=fr.expirationTime,rn(fn,fr);else break;fr=an(mn)}}function Pn(rr){if(Cn=!1,On(rr),!An)if(an(fn)!==null)An=!0,tr();else{var fr=an(mn);fr!==null&&vr(Pn,fr.startTime-rr)}}var Nn=!1,In=-1,jn=5,Fn=-1;function Un(){return!(ln.unstable_now()-Fn<jn)}function Yn(){if(Nn){var rr=ln.unstable_now();Fn=rr;var fr=!0;try{e:{An=!1,Cn&&(Cn=!1,Mn(In),In=-1),wn=!0;var ur=yn;try{t:{for(On(rr),vn=an(fn);vn!==null&&!(vn.expirationTime>rr&&Un());){var wr=vn.callback;if(typeof wr=="function"){vn.callback=null,yn=vn.priorityLevel;var Xn=wr(vn.expirationTime<=rr);if(rr=ln.unstable_now(),typeof Xn=="function"){vn.callback=Xn,On(rr),fr=!0;break t}vn===an(fn)&&sn(fn),On(rr)}else sn(fn);vn=an(fn)}if(vn!==null)fr=!0;else{var cr=an(mn);cr!==null&&vr(Pn,cr.startTime-rr),fr=!1}}break e}finally{vn=null,yn=ur,wn=!1}fr=void 0}}finally{fr?Qn():Nn=!1}}}var Qn;if(typeof Tn=="function")Qn=function(){Tn(Yn)};else if(typeof MessageChannel<"u"){var ir=new MessageChannel,er=ir.port2;ir.port1.onmessage=Yn,Qn=function(){er.postMessage(null)}}else Qn=function(){kn(Yn,0)};function tr(){Nn||(Nn=!0,Qn())}function vr(rr,fr){In=kn(function(){rr(ln.unstable_now())},fr)}ln.unstable_IdlePriority=5,ln.unstable_ImmediatePriority=1,ln.unstable_LowPriority=4,ln.unstable_NormalPriority=3,ln.unstable_Profiling=null,ln.unstable_UserBlockingPriority=2,ln.unstable_cancelCallback=function(rr){rr.callback=null},ln.unstable_continueExecution=function(){An||wn||(An=!0,tr())},ln.unstable_forceFrameRate=function(rr){0>rr||125<rr?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):jn=0<rr?Math.floor(1e3/rr):5},ln.unstable_getCurrentPriorityLevel=function(){return yn},ln.unstable_getFirstCallbackNode=function(){return an(fn)},ln.unstable_next=function(rr){switch(yn){case 1:case 2:case 3:var fr=3;break;default:fr=yn}var ur=yn;yn=fr;try{return rr()}finally{yn=ur}},ln.unstable_pauseExecution=function(){},ln.unstable_requestPaint=function(){},ln.unstable_runWithPriority=function(rr,fr){switch(rr){case 1:case 2:case 3:case 4:case 5:break;default:rr=3}var ur=yn;yn=rr;try{return fr()}finally{yn=ur}},ln.unstable_scheduleCallback=function(rr,fr,ur){var wr=ln.unstable_now();switch(typeof ur=="object"&&ur!==null?(ur=ur.delay,ur=typeof ur=="number"&&0<ur?wr+ur:wr):ur=wr,rr){case 1:var Xn=-1;break;case 2:Xn=250;break;case 5:Xn=1073741823;break;case 4:Xn=1e4;break;default:Xn=5e3}return Xn=ur+Xn,rr={id:xn++,callback:fr,priorityLevel:rr,startTime:ur,expirationTime:Xn,sortIndex:-1},ur>wr?(rr.sortIndex=ur,rn(mn,rr),an(fn)===null&&rr===an(mn)&&(Cn?(Mn(In),In=-1):Cn=!0,vr(Pn,ur-wr))):(rr.sortIndex=Xn,rn(fn,rr),An||wn||(An=!0,tr())),rr},ln.unstable_shouldYield=Un,ln.unstable_wrapCallback=function(rr){var fr=yn;return function(){var ur=yn;yn=fr;try{return rr.apply(this,arguments)}finally{yn=ur}}}}(scheduler_production)),scheduler_production}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production()),scheduler.exports}var reactDom={exports:{}},reactDom_production={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hasRequiredReactDom_production;function requireReactDom_production(){if(hasRequiredReactDom_production)return reactDom_production;hasRequiredReactDom_production=1;var ln=requireReact();function rn(fn){var mn="https://react.dev/errors/"+fn;if(1<arguments.length){mn+="?args[]="+encodeURIComponent(arguments[1]);for(var xn=2;xn<arguments.length;xn++)mn+="&args[]="+encodeURIComponent(arguments[xn])}return"Minified React error #"+fn+"; visit "+mn+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function an(){}var sn={d:{f:an,r:function(){throw Error(rn(522))},D:an,C:an,L:an,m:an,X:an,S:an,M:an},p:0,findDOMNode:null},on=Symbol.for("react.portal");function cn(fn,mn,xn){var vn=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:on,key:vn==null?null:""+vn,children:fn,containerInfo:mn,implementation:xn}}var un=ln.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function pn(fn,mn){if(fn==="font")return"";if(typeof mn=="string")return mn==="use-credentials"?mn:""}return reactDom_production.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=sn,reactDom_production.createPortal=function(fn,mn){var xn=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mn||mn.nodeType!==1&&mn.nodeType!==9&&mn.nodeType!==11)throw Error(rn(299));return cn(fn,mn,null,xn)},reactDom_production.flushSync=function(fn){var mn=un.T,xn=sn.p;try{if(un.T=null,sn.p=2,fn)return fn()}finally{un.T=mn,sn.p=xn,sn.d.f()}},reactDom_production.preconnect=function(fn,mn){typeof fn=="string"&&(mn?(mn=mn.crossOrigin,mn=typeof mn=="string"?mn==="use-credentials"?mn:"":void 0):mn=null,sn.d.C(fn,mn))},reactDom_production.prefetchDNS=function(fn){typeof fn=="string"&&sn.d.D(fn)},reactDom_production.preinit=function(fn,mn){if(typeof fn=="string"&&mn&&typeof mn.as=="string"){var xn=mn.as,vn=pn(xn,mn.crossOrigin),yn=typeof mn.integrity=="string"?mn.integrity:void 0,wn=typeof mn.fetchPriority=="string"?mn.fetchPriority:void 0;xn==="style"?sn.d.S(fn,typeof mn.precedence=="string"?mn.precedence:void 0,{crossOrigin:vn,integrity:yn,fetchPriority:wn}):xn==="script"&&sn.d.X(fn,{crossOrigin:vn,integrity:yn,fetchPriority:wn,nonce:typeof mn.nonce=="string"?mn.nonce:void 0})}},reactDom_production.preinitModule=function(fn,mn){if(typeof fn=="string")if(typeof mn=="object"&&mn!==null){if(mn.as==null||mn.as==="script"){var xn=pn(mn.as,mn.crossOrigin);sn.d.M(fn,{crossOrigin:xn,integrity:typeof mn.integrity=="string"?mn.integrity:void 0,nonce:typeof mn.nonce=="string"?mn.nonce:void 0})}}else mn==null&&sn.d.M(fn)},reactDom_production.preload=function(fn,mn){if(typeof fn=="string"&&typeof mn=="object"&&mn!==null&&typeof mn.as=="string"){var xn=mn.as,vn=pn(xn,mn.crossOrigin);sn.d.L(fn,xn,{crossOrigin:vn,integrity:typeof mn.integrity=="string"?mn.integrity:void 0,nonce:typeof mn.nonce=="string"?mn.nonce:void 0,type:typeof mn.type=="string"?mn.type:void 0,fetchPriority:typeof mn.fetchPriority=="string"?mn.fetchPriority:void 0,referrerPolicy:typeof mn.referrerPolicy=="string"?mn.referrerPolicy:void 0,imageSrcSet:typeof mn.imageSrcSet=="string"?mn.imageSrcSet:void 0,imageSizes:typeof mn.imageSizes=="string"?mn.imageSizes:void 0,media:typeof mn.media=="string"?mn.media:void 0})}},reactDom_production.preloadModule=function(fn,mn){if(typeof fn=="string")if(mn){var xn=pn(mn.as,mn.crossOrigin);sn.d.m(fn,{as:typeof mn.as=="string"&&mn.as!=="script"?mn.as:void 0,crossOrigin:xn,integrity:typeof mn.integrity=="string"?mn.integrity:void 0})}else sn.d.m(fn)},reactDom_production.requestFormReset=function(fn){sn.d.r(fn)},reactDom_production.unstable_batchedUpdates=function(fn,mn){return fn(mn)},reactDom_production.useFormState=function(fn,mn,xn){return un.H.useFormState(fn,mn,xn)},reactDom_production.useFormStatus=function(){return un.H.useHostTransitionStatus()},reactDom_production.version="19.0.0",reactDom_production}var hasRequiredReactDom;function requireReactDom(){if(hasRequiredReactDom)return reactDom.exports;hasRequiredReactDom=1;function ln(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ln)}catch(rn){console.error(rn)}}return ln(),reactDom.exports=requireReactDom_production(),reactDom.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hasRequiredReactDomClient_production;function requireReactDomClient_production(){if(hasRequiredReactDomClient_production)return reactDomClient_production;hasRequiredReactDomClient_production=1;var ln=requireScheduler(),rn=requireReact(),an=requireReactDom();function sn(dn){var hn="https://react.dev/errors/"+dn;if(1<arguments.length){hn+="?args[]="+encodeURIComponent(arguments[1]);for(var gn=2;gn<arguments.length;gn++)hn+="&args[]="+encodeURIComponent(arguments[gn])}return"Minified React error #"+dn+"; visit "+hn+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function on(dn){return!(!dn||dn.nodeType!==1&&dn.nodeType!==9&&dn.nodeType!==11)}var cn=Symbol.for("react.element"),un=Symbol.for("react.transitional.element"),pn=Symbol.for("react.portal"),fn=Symbol.for("react.fragment"),mn=Symbol.for("react.strict_mode"),xn=Symbol.for("react.profiler"),vn=Symbol.for("react.provider"),yn=Symbol.for("react.consumer"),wn=Symbol.for("react.context"),An=Symbol.for("react.forward_ref"),Cn=Symbol.for("react.suspense"),kn=Symbol.for("react.suspense_list"),Mn=Symbol.for("react.memo"),Tn=Symbol.for("react.lazy"),On=Symbol.for("react.offscreen"),Pn=Symbol.for("react.memo_cache_sentinel"),Nn=Symbol.iterator;function In(dn){return dn===null||typeof dn!="object"?null:(dn=Nn&&dn[Nn]||dn["@@iterator"],typeof dn=="function"?dn:null)}var jn=Symbol.for("react.client.reference");function Fn(dn){if(dn==null)return null;if(typeof dn=="function")return dn.$$typeof===jn?null:dn.displayName||dn.name||null;if(typeof dn=="string")return dn;switch(dn){case fn:return"Fragment";case pn:return"Portal";case xn:return"Profiler";case mn:return"StrictMode";case Cn:return"Suspense";case kn:return"SuspenseList"}if(typeof dn=="object")switch(dn.$$typeof){case wn:return(dn.displayName||"Context")+".Provider";case yn:return(dn._context.displayName||"Context")+".Consumer";case An:var hn=dn.render;return dn=dn.displayName,dn||(dn=hn.displayName||hn.name||"",dn=dn!==""?"ForwardRef("+dn+")":"ForwardRef"),dn;case Mn:return hn=dn.displayName||null,hn!==null?hn:Fn(dn.type)||"Memo";case Tn:hn=dn._payload,dn=dn._init;try{return Fn(dn(hn))}catch{}}return null}var Un=rn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Yn=Object.assign,Qn,ir;function er(dn){if(Qn===void 0)try{throw Error()}catch(gn){var hn=gn.stack.trim().match(/\n( *(at )?)/);Qn=hn&&hn[1]||"",ir=-1<gn.stack.indexOf(`
    at`)?" (<anonymous>)":-1<gn.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Qn+dn+ir}var tr=!1;function vr(dn,hn){if(!dn||tr)return"";tr=!0;var gn=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var bn={DetermineComponentFrameRoot:function(){try{if(hn){var Mr=function(){throw Error()};if(Object.defineProperty(Mr.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Mr,[])}catch(Cr){var xr=Cr}Reflect.construct(dn,[],Mr)}else{try{Mr.call()}catch(Cr){xr=Cr}dn.call(Mr.prototype)}}else{try{throw Error()}catch(Cr){xr=Cr}(Mr=dn())&&typeof Mr.catch=="function"&&Mr.catch(function(){})}}catch(Cr){if(Cr&&xr&&typeof Cr.stack=="string")return[Cr.stack,xr.stack]}return[null,null]}};bn.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Sn=Object.getOwnPropertyDescriptor(bn.DetermineComponentFrameRoot,"name");Sn&&Sn.configurable&&Object.defineProperty(bn.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _n=bn.DetermineComponentFrameRoot(),Bn=_n[0],Vn=_n[1];if(Bn&&Vn){var Kn=Bn.split(`
`),or=Vn.split(`
`);for(Sn=bn=0;bn<Kn.length&&!Kn[bn].includes("DetermineComponentFrameRoot");)bn++;for(;Sn<or.length&&!or[Sn].includes("DetermineComponentFrameRoot");)Sn++;if(bn===Kn.length||Sn===or.length)for(bn=Kn.length-1,Sn=or.length-1;1<=bn&&0<=Sn&&Kn[bn]!==or[Sn];)Sn--;for(;1<=bn&&0<=Sn;bn--,Sn--)if(Kn[bn]!==or[Sn]){if(bn!==1||Sn!==1)do if(bn--,Sn--,0>Sn||Kn[bn]!==or[Sn]){var Sr=`
`+Kn[bn].replace(" at new "," at ");return dn.displayName&&Sr.includes("<anonymous>")&&(Sr=Sr.replace("<anonymous>",dn.displayName)),Sr}while(1<=bn&&0<=Sn);break}}}finally{tr=!1,Error.prepareStackTrace=gn}return(gn=dn?dn.displayName||dn.name:"")?er(gn):""}function rr(dn){switch(dn.tag){case 26:case 27:case 5:return er(dn.type);case 16:return er("Lazy");case 13:return er("Suspense");case 19:return er("SuspenseList");case 0:case 15:return dn=vr(dn.type,!1),dn;case 11:return dn=vr(dn.type.render,!1),dn;case 1:return dn=vr(dn.type,!0),dn;default:return""}}function fr(dn){try{var hn="";do hn+=rr(dn),dn=dn.return;while(dn);return hn}catch(gn){return`
Error generating stack: `+gn.message+`
`+gn.stack}}function ur(dn){var hn=dn,gn=dn;if(dn.alternate)for(;hn.return;)hn=hn.return;else{dn=hn;do hn=dn,hn.flags&4098&&(gn=hn.return),dn=hn.return;while(dn)}return hn.tag===3?gn:null}function wr(dn){if(dn.tag===13){var hn=dn.memoizedState;if(hn===null&&(dn=dn.alternate,dn!==null&&(hn=dn.memoizedState)),hn!==null)return hn.dehydrated}return null}function Xn(dn){if(ur(dn)!==dn)throw Error(sn(188))}function cr(dn){var hn=dn.alternate;if(!hn){if(hn=ur(dn),hn===null)throw Error(sn(188));return hn!==dn?null:dn}for(var gn=dn,bn=hn;;){var Sn=gn.return;if(Sn===null)break;var _n=Sn.alternate;if(_n===null){if(bn=Sn.return,bn!==null){gn=bn;continue}break}if(Sn.child===_n.child){for(_n=Sn.child;_n;){if(_n===gn)return Xn(Sn),dn;if(_n===bn)return Xn(Sn),hn;_n=_n.sibling}throw Error(sn(188))}if(gn.return!==bn.return)gn=Sn,bn=_n;else{for(var Bn=!1,Vn=Sn.child;Vn;){if(Vn===gn){Bn=!0,gn=Sn,bn=_n;break}if(Vn===bn){Bn=!0,bn=Sn,gn=_n;break}Vn=Vn.sibling}if(!Bn){for(Vn=_n.child;Vn;){if(Vn===gn){Bn=!0,gn=_n,bn=Sn;break}if(Vn===bn){Bn=!0,bn=_n,gn=Sn;break}Vn=Vn.sibling}if(!Bn)throw Error(sn(189))}}if(gn.alternate!==bn)throw Error(sn(190))}if(gn.tag!==3)throw Error(sn(188));return gn.stateNode.current===gn?dn:hn}function _r(dn){var hn=dn.tag;if(hn===5||hn===26||hn===27||hn===6)return dn;for(dn=dn.child;dn!==null;){if(hn=_r(dn),hn!==null)return hn;dn=dn.sibling}return null}var Nr=Array.isArray,Er=an.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Fr={pending:!1,data:null,method:null,action:null},Tr=[],Vr=-1;function Pr(dn){return{current:dn}}function Xr(dn){0>Vr||(dn.current=Tr[Vr],Tr[Vr]=null,Vr--)}function Wr(dn,hn){Vr++,Tr[Vr]=dn.current,dn.current=hn}var Ss=Pr(null),Bs=Pr(null),Ns=Pr(null),tl=Pr(null);function Fl(dn,hn){switch(Wr(Ns,hn),Wr(Bs,dn),Wr(Ss,null),dn=hn.nodeType,dn){case 9:case 11:hn=(hn=hn.documentElement)&&(hn=hn.namespaceURI)?Rg(hn):0;break;default:if(dn=dn===8?hn.parentNode:hn,hn=dn.tagName,dn=dn.namespaceURI)dn=Rg(dn),hn=kg(dn,hn);else switch(hn){case"svg":hn=1;break;case"math":hn=2;break;default:hn=0}}Xr(Ss),Wr(Ss,hn)}function Ll(){Xr(Ss),Xr(Bs),Xr(Ns)}function bl(dn){dn.memoizedState!==null&&Wr(tl,dn);var hn=Ss.current,gn=kg(hn,dn.type);hn!==gn&&(Wr(Bs,dn),Wr(Ss,gn))}function sl(dn){Bs.current===dn&&(Xr(Ss),Xr(Bs)),tl.current===dn&&(Xr(tl),lh._currentValue=Fr)}var Ol=Object.prototype.hasOwnProperty,no=ln.unstable_scheduleCallback,Jo=ln.unstable_cancelCallback,kl=ln.unstable_shouldYield,Xl=ln.unstable_requestPaint,Lr=ln.unstable_now,Rr=ln.unstable_getCurrentPriorityLevel,Es=ln.unstable_ImmediatePriority,Vs=ln.unstable_UserBlockingPriority,nl=ln.unstable_NormalPriority,ro=ln.unstable_LowPriority,$l=ln.unstable_IdlePriority,Po=ln.log,Ul=ln.unstable_setDisableYieldValue,ll=null,zs=null;function _s(dn){if(zs&&typeof zs.onCommitFiberRoot=="function")try{zs.onCommitFiberRoot(ll,dn,void 0,(dn.current.flags&128)===128)}catch{}}function yl(dn){if(typeof Po=="function"&&Ul(dn),zs&&typeof zs.setStrictMode=="function")try{zs.setStrictMode(ll,dn)}catch{}}var Ws=Math.clz32?Math.clz32:tu,Bo=Math.log,Eo=Math.LN2;function tu(dn){return dn>>>=0,dn===0?32:31-(Bo(dn)/Eo|0)|0}var ol=128,ao=4194304;function io(dn){var hn=dn&42;if(hn!==0)return hn;switch(dn&-dn){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return dn&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return dn&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return dn}}function Wn(dn,hn){var gn=dn.pendingLanes;if(gn===0)return 0;var bn=0,Sn=dn.suspendedLanes,_n=dn.pingedLanes,Bn=dn.warmLanes;dn=dn.finishedLanes!==0;var Vn=gn&134217727;return Vn!==0?(gn=Vn&~Sn,gn!==0?bn=io(gn):(_n&=Vn,_n!==0?bn=io(_n):dn||(Bn=Vn&~Bn,Bn!==0&&(bn=io(Bn))))):(Vn=gn&~Sn,Vn!==0?bn=io(Vn):_n!==0?bn=io(_n):dn||(Bn=gn&~Bn,Bn!==0&&(bn=io(Bn)))),bn===0?0:hn!==0&&hn!==bn&&!(hn&Sn)&&(Sn=bn&-bn,Bn=hn&-hn,Sn>=Bn||Sn===32&&(Bn&4194176)!==0)?hn:bn}function qn(dn,hn){return(dn.pendingLanes&~(dn.suspendedLanes&~dn.pingedLanes)&hn)===0}function ar(dn,hn){switch(dn){case 1:case 2:case 4:case 8:return hn+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return hn+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function br(){var dn=ol;return ol<<=1,!(ol&4194176)&&(ol=128),dn}function Ir(){var dn=ao;return ao<<=1,!(ao&62914560)&&(ao=4194304),dn}function Hr(dn){for(var hn=[],gn=0;31>gn;gn++)hn.push(dn);return hn}function ps(dn,hn){dn.pendingLanes|=hn,hn!==268435456&&(dn.suspendedLanes=0,dn.pingedLanes=0,dn.warmLanes=0)}function $r(dn,hn,gn,bn,Sn,_n){var Bn=dn.pendingLanes;dn.pendingLanes=gn,dn.suspendedLanes=0,dn.pingedLanes=0,dn.warmLanes=0,dn.expiredLanes&=gn,dn.entangledLanes&=gn,dn.errorRecoveryDisabledLanes&=gn,dn.shellSuspendCounter=0;var Vn=dn.entanglements,Kn=dn.expirationTimes,or=dn.hiddenUpdates;for(gn=Bn&~gn;0<gn;){var Sr=31-Ws(gn),Mr=1<<Sr;Vn[Sr]=0,Kn[Sr]=-1;var xr=or[Sr];if(xr!==null)for(or[Sr]=null,Sr=0;Sr<xr.length;Sr++){var Cr=xr[Sr];Cr!==null&&(Cr.lane&=-536870913)}gn&=~Mr}bn!==0&&ms(dn,bn,0),_n!==0&&Sn===0&&dn.tag!==0&&(dn.suspendedLanes|=_n&~(Bn&~hn))}function ms(dn,hn,gn){dn.pendingLanes|=hn,dn.suspendedLanes&=~hn;var bn=31-Ws(hn);dn.entangledLanes|=hn,dn.entanglements[bn]=dn.entanglements[bn]|1073741824|gn&4194218}function Ur(dn,hn){var gn=dn.entangledLanes|=hn;for(dn=dn.entanglements;gn;){var bn=31-Ws(gn),Sn=1<<bn;Sn&hn|dn[bn]&hn&&(dn[bn]|=hn),gn&=~Sn}}function Kr(dn){return dn&=-dn,2<dn?8<dn?dn&134217727?32:268435456:8:2}function Os(){var dn=Er.p;return dn!==0?dn:(dn=window.event,dn===void 0?32:Yg(dn.type))}function Vl(dn,hn){var gn=Er.p;try{return Er.p=dn,hn()}finally{Er.p=gn}}var Gs=Math.random().toString(36).slice(2),Xs="__reactFiber$"+Gs,Qs="__reactProps$"+Gs,Ho="__reactContainer$"+Gs,zo="__reactEvents$"+Gs,md="__reactListeners$"+Gs,Fo="__reactHandles$"+Gs,nu="__reactResources$"+Gs,Ao="__reactMarker$"+Gs;function ec(dn){delete dn[Xs],delete dn[Qs],delete dn[zo],delete dn[md],delete dn[Fo]}function Wl(dn){var hn=dn[Xs];if(hn)return hn;for(var gn=dn.parentNode;gn;){if(hn=gn[Ho]||gn[Xs]){if(gn=hn.alternate,hn.child!==null||gn!==null&&gn.child!==null)for(dn=Dg(dn);dn!==null;){if(gn=dn[Xs])return gn;dn=Dg(dn)}return hn}dn=gn,gn=dn.parentNode}return null}function Co(dn){if(dn=dn[Xs]||dn[Ho]){var hn=dn.tag;if(hn===5||hn===6||hn===13||hn===26||hn===27||hn===3)return dn}return null}function tc(dn){var hn=dn.tag;if(hn===5||hn===26||hn===27||hn===6)return dn.stateNode;throw Error(sn(33))}function so(dn){var hn=dn[nu];return hn||(hn=dn[nu]={hoistableStyles:new Map,hoistableScripts:new Map}),hn}function cl(dn){dn[Ao]=!0}var gd=new Set,xd={};function $o(dn,hn){Rc(dn,hn),Rc(dn+"Capture",hn)}function Rc(dn,hn){for(xd[dn]=hn,dn=0;dn<hn.length;dn++)gd.add(hn[dn])}var Gl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yp=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),hh={},vd={};function ph(dn){return Ol.call(vd,dn)?!0:Ol.call(hh,dn)?!1:yp.test(dn)?vd[dn]=!0:(hh[dn]=!0,!1)}function kc(dn,hn,gn){if(ph(hn))if(gn===null)dn.removeAttribute(hn);else{switch(typeof gn){case"undefined":case"function":case"symbol":dn.removeAttribute(hn);return;case"boolean":var bn=hn.toLowerCase().slice(0,5);if(bn!=="data-"&&bn!=="aria-"){dn.removeAttribute(hn);return}}dn.setAttribute(hn,""+gn)}}function ru(dn,hn,gn){if(gn===null)dn.removeAttribute(hn);else{switch(typeof gn){case"undefined":case"function":case"symbol":case"boolean":dn.removeAttribute(hn);return}dn.setAttribute(hn,""+gn)}}function Zs(dn,hn,gn,bn){if(bn===null)dn.removeAttribute(gn);else{switch(typeof bn){case"undefined":case"function":case"symbol":case"boolean":dn.removeAttribute(gn);return}dn.setAttributeNS(hn,gn,""+bn)}}function ml(dn){switch(typeof dn){case"bigint":case"boolean":case"number":case"string":case"undefined":return dn;case"object":return dn;default:return""}}function au(dn){var hn=dn.type;return(dn=dn.nodeName)&&dn.toLowerCase()==="input"&&(hn==="checkbox"||hn==="radio")}function wp(dn){var hn=au(dn)?"checked":"value",gn=Object.getOwnPropertyDescriptor(dn.constructor.prototype,hn),bn=""+dn[hn];if(!dn.hasOwnProperty(hn)&&typeof gn<"u"&&typeof gn.get=="function"&&typeof gn.set=="function"){var Sn=gn.get,_n=gn.set;return Object.defineProperty(dn,hn,{configurable:!0,get:function(){return Sn.call(this)},set:function(Bn){bn=""+Bn,_n.call(this,Bn)}}),Object.defineProperty(dn,hn,{enumerable:gn.enumerable}),{getValue:function(){return bn},setValue:function(Bn){bn=""+Bn},stopTracking:function(){dn._valueTracker=null,delete dn[hn]}}}}function Mu(dn){dn._valueTracker||(dn._valueTracker=wp(dn))}function Du(dn){if(!dn)return!1;var hn=dn._valueTracker;if(!hn)return!0;var gn=hn.getValue(),bn="";return dn&&(bn=au(dn)?dn.checked?"true":"false":dn.value),dn=bn,dn!==gn?(hn.setValue(dn),!0):!1}function iu(dn){if(dn=dn||(typeof document<"u"?document:void 0),typeof dn>"u")return null;try{return dn.activeElement||dn.body}catch{return dn.body}}var Tu=/[\n"\\]/g;function Il(dn){return dn.replace(Tu,function(hn){return"\\"+hn.charCodeAt(0).toString(16)+" "})}function bd(dn,hn,gn,bn,Sn,_n,Bn,Vn){dn.name="",Bn!=null&&typeof Bn!="function"&&typeof Bn!="symbol"&&typeof Bn!="boolean"?dn.type=Bn:dn.removeAttribute("type"),hn!=null?Bn==="number"?(hn===0&&dn.value===""||dn.value!=hn)&&(dn.value=""+ml(hn)):dn.value!==""+ml(hn)&&(dn.value=""+ml(hn)):Bn!=="submit"&&Bn!=="reset"||dn.removeAttribute("value"),hn!=null?Pl(dn,Bn,ml(hn)):gn!=null?Pl(dn,Bn,ml(gn)):bn!=null&&dn.removeAttribute("value"),Sn==null&&_n!=null&&(dn.defaultChecked=!!_n),Sn!=null&&(dn.checked=Sn&&typeof Sn!="function"&&typeof Sn!="symbol"),Vn!=null&&typeof Vn!="function"&&typeof Vn!="symbol"&&typeof Vn!="boolean"?dn.name=""+ml(Vn):dn.removeAttribute("name")}function fh(dn,hn,gn,bn,Sn,_n,Bn,Vn){if(_n!=null&&typeof _n!="function"&&typeof _n!="symbol"&&typeof _n!="boolean"&&(dn.type=_n),hn!=null||gn!=null){if(!(_n!=="submit"&&_n!=="reset"||hn!=null))return;gn=gn!=null?""+ml(gn):"",hn=hn!=null?""+ml(hn):gn,Vn||hn===dn.value||(dn.value=hn),dn.defaultValue=hn}bn=bn??Sn,bn=typeof bn!="function"&&typeof bn!="symbol"&&!!bn,dn.checked=Vn?dn.checked:!!bn,dn.defaultChecked=!!bn,Bn!=null&&typeof Bn!="function"&&typeof Bn!="symbol"&&typeof Bn!="boolean"&&(dn.name=Bn)}function Pl(dn,hn,gn){hn==="number"&&iu(dn.ownerDocument)===dn||dn.defaultValue===""+gn||(dn.defaultValue=""+gn)}function nc(dn,hn,gn,bn){if(dn=dn.options,hn){hn={};for(var Sn=0;Sn<gn.length;Sn++)hn["$"+gn[Sn]]=!0;for(gn=0;gn<dn.length;gn++)Sn=hn.hasOwnProperty("$"+dn[gn].value),dn[gn].selected!==Sn&&(dn[gn].selected=Sn),Sn&&bn&&(dn[gn].defaultSelected=!0)}else{for(gn=""+ml(gn),hn=null,Sn=0;Sn<dn.length;Sn++){if(dn[Sn].value===gn){dn[Sn].selected=!0,bn&&(dn[Sn].defaultSelected=!0);return}hn!==null||dn[Sn].disabled||(hn=dn[Sn])}hn!==null&&(hn.selected=!0)}}function _c(dn,hn,gn){if(hn!=null&&(hn=""+ml(hn),hn!==dn.value&&(dn.value=hn),gn==null)){dn.defaultValue!==hn&&(dn.defaultValue=hn);return}dn.defaultValue=gn!=null?""+ml(gn):""}function mh(dn,hn,gn,bn){if(hn==null){if(bn!=null){if(gn!=null)throw Error(sn(92));if(Nr(bn)){if(1<bn.length)throw Error(sn(93));bn=bn[0]}gn=bn}gn==null&&(gn=""),hn=gn}gn=ml(hn),dn.defaultValue=gn,bn=dn.textContent,bn===gn&&bn!==""&&bn!==null&&(dn.value=bn)}function Mc(dn,hn){if(hn){var gn=dn.firstChild;if(gn&&gn===dn.lastChild&&gn.nodeType===3){gn.nodeValue=hn;return}}dn.textContent=hn}var rc=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Uo(dn,hn,gn){var bn=hn.indexOf("--")===0;gn==null||typeof gn=="boolean"||gn===""?bn?dn.setProperty(hn,""):hn==="float"?dn.cssFloat="":dn[hn]="":bn?dn.setProperty(hn,gn):typeof gn!="number"||gn===0||rc.has(hn)?hn==="float"?dn.cssFloat=gn:dn[hn]=(""+gn).trim():dn[hn]=gn+"px"}function Nu(dn,hn,gn){if(hn!=null&&typeof hn!="object")throw Error(sn(62));if(dn=dn.style,gn!=null){for(var bn in gn)!gn.hasOwnProperty(bn)||hn!=null&&hn.hasOwnProperty(bn)||(bn.indexOf("--")===0?dn.setProperty(bn,""):bn==="float"?dn.cssFloat="":dn[bn]="");for(var Sn in hn)bn=hn[Sn],hn.hasOwnProperty(Sn)&&gn[Sn]!==bn&&Uo(dn,Sn,bn)}else for(var _n in hn)hn.hasOwnProperty(_n)&&Uo(dn,_n,hn[_n])}function yd(dn){if(dn.indexOf("-")===-1)return!1;switch(dn){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var su=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),gh=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Dc(dn){return gh.test(""+dn)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":dn}var Lu=null;function Ou(dn){return dn=dn.target||dn.srcElement||window,dn.correspondingUseElement&&(dn=dn.correspondingUseElement),dn.nodeType===3?dn.parentNode:dn}var Tc=null,ac=null;function xh(dn){var hn=Co(dn);if(hn&&(dn=hn.stateNode)){var gn=dn[Qs]||null;e:switch(dn=hn.stateNode,hn.type){case"input":if(bd(dn,gn.value,gn.defaultValue,gn.defaultValue,gn.checked,gn.defaultChecked,gn.type,gn.name),hn=gn.name,gn.type==="radio"&&hn!=null){for(gn=dn;gn.parentNode;)gn=gn.parentNode;for(gn=gn.querySelectorAll('input[name="'+Il(""+hn)+'"][type="radio"]'),hn=0;hn<gn.length;hn++){var bn=gn[hn];if(bn!==dn&&bn.form===dn.form){var Sn=bn[Qs]||null;if(!Sn)throw Error(sn(90));bd(bn,Sn.value,Sn.defaultValue,Sn.defaultValue,Sn.checked,Sn.defaultChecked,Sn.type,Sn.name)}}for(hn=0;hn<gn.length;hn++)bn=gn[hn],bn.form===dn.form&&Du(bn)}break e;case"textarea":_c(dn,gn.value,gn.defaultValue);break e;case"select":hn=gn.value,hn!=null&&nc(dn,!!gn.multiple,hn,!1)}}}var wd=!1;function Iu(dn,hn,gn){if(wd)return dn(hn,gn);wd=!0;try{var bn=dn(hn);return bn}finally{if(wd=!1,(Tc!==null||ac!==null)&&(ep(),Tc&&(hn=Tc,dn=ac,ac=Tc=null,xh(hn),dn)))for(hn=0;hn<dn.length;hn++)xh(dn[hn])}}function lu(dn,hn){var gn=dn.stateNode;if(gn===null)return null;var bn=gn[Qs]||null;if(bn===null)return null;gn=bn[hn];e:switch(hn){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(bn=!bn.disabled)||(dn=dn.type,bn=!(dn==="button"||dn==="input"||dn==="select"||dn==="textarea")),dn=!bn;break e;default:dn=!1}if(dn)return null;if(gn&&typeof gn!="function")throw Error(sn(231,hn,typeof gn));return gn}var Ed=!1;if(Gl)try{var ou={};Object.defineProperty(ou,"passive",{get:function(){Ed=!0}}),window.addEventListener("test",ou,ou),window.removeEventListener("test",ou,ou)}catch{Ed=!1}var Vo=null,Ad=null,Pu=null;function vh(){if(Pu)return Pu;var dn,hn=Ad,gn=hn.length,bn,Sn="value"in Vo?Vo.value:Vo.textContent,_n=Sn.length;for(dn=0;dn<gn&&hn[dn]===Sn[dn];dn++);var Bn=gn-dn;for(bn=1;bn<=Bn&&hn[gn-bn]===Sn[_n-bn];bn++);return Pu=Sn.slice(dn,1<bn?1-bn:void 0)}function cu(dn){var hn=dn.keyCode;return"charCode"in dn?(dn=dn.charCode,dn===0&&hn===13&&(dn=13)):dn=hn,dn===10&&(dn=13),32<=dn||dn===13?dn:0}function Nc(){return!0}function Cd(){return!1}function wl(dn){function hn(gn,bn,Sn,_n,Bn){this._reactName=gn,this._targetInst=Sn,this.type=bn,this.nativeEvent=_n,this.target=Bn,this.currentTarget=null;for(var Vn in dn)dn.hasOwnProperty(Vn)&&(gn=dn[Vn],this[Vn]=gn?gn(_n):_n[Vn]);return this.isDefaultPrevented=(_n.defaultPrevented!=null?_n.defaultPrevented:_n.returnValue===!1)?Nc:Cd,this.isPropagationStopped=Cd,this}return Yn(hn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var gn=this.nativeEvent;gn&&(gn.preventDefault?gn.preventDefault():typeof gn.returnValue!="unknown"&&(gn.returnValue=!1),this.isDefaultPrevented=Nc)},stopPropagation:function(){var gn=this.nativeEvent;gn&&(gn.stopPropagation?gn.stopPropagation():typeof gn.cancelBubble!="unknown"&&(gn.cancelBubble=!0),this.isPropagationStopped=Nc)},persist:function(){},isPersistent:Nc}),hn}var Wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(dn){return dn.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uu=wl(Wo),ic=Yn({},Wo,{view:0,detail:0}),Ep=wl(ic),jd,Sd,jo,du=Yn({},ic,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jr,button:0,buttons:0,relatedTarget:function(dn){return dn.relatedTarget===void 0?dn.fromElement===dn.srcElement?dn.toElement:dn.fromElement:dn.relatedTarget},movementX:function(dn){return"movementX"in dn?dn.movementX:(dn!==jo&&(jo&&dn.type==="mousemove"?(jd=dn.screenX-jo.screenX,Sd=dn.screenY-jo.screenY):Sd=jd=0,jo=dn),jd)},movementY:function(dn){return"movementY"in dn?dn.movementY:Sd}}),Bu=wl(du),Ap=Yn({},du,{dataTransfer:0}),Cp=wl(Ap),jp=Yn({},ic,{relatedTarget:0}),En=wl(jp),Rn=Yn({},Wo,{animationName:0,elapsedTime:0,pseudoElement:0}),Dn=wl(Rn),Ln=Yn({},Wo,{clipboardData:function(dn){return"clipboardData"in dn?dn.clipboardData:window.clipboardData}}),Hn=wl(Ln),zn=Yn({},Wo,{data:0}),$n=wl(zn),Jn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},lr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yr(dn){var hn=this.nativeEvent;return hn.getModifierState?hn.getModifierState(dn):(dn=lr[dn])?!!hn[dn]:!1}function jr(){return yr}var mr=Yn({},ic,{key:function(dn){if(dn.key){var hn=Jn[dn.key]||dn.key;if(hn!=="Unidentified")return hn}return dn.type==="keypress"?(dn=cu(dn),dn===13?"Enter":String.fromCharCode(dn)):dn.type==="keydown"||dn.type==="keyup"?Zn[dn.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jr,charCode:function(dn){return dn.type==="keypress"?cu(dn):0},keyCode:function(dn){return dn.type==="keydown"||dn.type==="keyup"?dn.keyCode:0},which:function(dn){return dn.type==="keypress"?cu(dn):dn.type==="keydown"||dn.type==="keyup"?dn.keyCode:0}}),Dr=wl(mr),gs=Yn({},du,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rs=wl(gs),ws=Yn({},ic,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jr}),gl=wl(ws),ul=Yn({},Wo,{propertyName:0,elapsedTime:0,pseudoElement:0}),lo=wl(ul),oo=Yn({},du,{deltaX:function(dn){return"deltaX"in dn?dn.deltaX:"wheelDeltaX"in dn?-dn.wheelDeltaX:0},deltaY:function(dn){return"deltaY"in dn?dn.deltaY:"wheelDeltaY"in dn?-dn.wheelDeltaY:"wheelDelta"in dn?-dn.wheelDelta:0},deltaZ:0,deltaMode:0}),Cs=wl(oo),sc=Yn({},Wo,{newState:0,oldState:0}),Ms=wl(sc),Ks=[9,13,27,32],lc=Gl&&"CompositionEvent"in window,oc=null;Gl&&"documentMode"in document&&(oc=document.documentMode);var co=Gl&&"TextEvent"in window&&!oc,Lc=Gl&&(!lc||oc&&8<oc&&11>=oc),Zl=" ",So=!1;function Ro(dn,hn){switch(dn){case"keyup":return Ks.indexOf(hn.keyCode)!==-1;case"keydown":return hn.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bl(dn){return dn=dn.detail,typeof dn=="object"&&"data"in dn?dn.data:null}var Yo=!1;function ko(dn,hn){switch(dn){case"compositionend":return Bl(hn);case"keypress":return hn.which!==32?null:(So=!0,Zl);case"textInput":return dn=hn.data,dn===Zl&&So?null:dn;default:return null}}function _o(dn,hn){if(Yo)return dn==="compositionend"||!lc&&Ro(dn,hn)?(dn=vh(),Pu=Ad=Vo=null,Yo=!1,dn):null;switch(dn){case"paste":return null;case"keypress":if(!(hn.ctrlKey||hn.altKey||hn.metaKey)||hn.ctrlKey&&hn.altKey){if(hn.char&&1<hn.char.length)return hn.char;if(hn.which)return String.fromCharCode(hn.which)}return null;case"compositionend":return Lc&&hn.locale!=="ko"?null:hn.data;default:return null}}var Sp={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function bh(dn){var hn=dn&&dn.nodeName&&dn.nodeName.toLowerCase();return hn==="input"?!!Sp[dn.type]:hn==="textarea"}function yh(dn,hn,gn,bn){Tc?ac?ac.push(bn):ac=[bn]:Tc=bn,hn=ip(hn,"onChange"),0<hn.length&&(gn=new uu("onChange","change",null,gn,bn),dn.push({event:gn,listeners:hn}))}var Ds=null,qo=null;function Kl(dn){Eg(dn,0)}function Mo(dn){var hn=tc(dn);if(Du(hn))return dn}function wh(dn,hn){if(dn==="change")return hn}var Eh=!1;if(Gl){var Hu;if(Gl){var Do="oninput"in document;if(!Do){var zu=document.createElement("div");zu.setAttribute("oninput","return;"),Do=typeof zu.oninput=="function"}Hu=Do}else Hu=!1;Eh=Hu&&(!document.documentMode||9<document.documentMode)}function To(){Ds&&(Ds.detachEvent("onpropertychange",Rd),qo=Ds=null)}function Rd(dn){if(dn.propertyName==="value"&&Mo(qo)){var hn=[];yh(hn,qo,dn,Ou(dn)),Iu(Kl,hn)}}function hu(dn,hn,gn){dn==="focusin"?(To(),Ds=hn,qo=gn,Ds.attachEvent("onpropertychange",Rd)):dn==="focusout"&&To()}function Fu(dn){if(dn==="selectionchange"||dn==="keyup"||dn==="keydown")return Mo(qo)}function $u(dn,hn){if(dn==="click")return Mo(hn)}function kd(dn,hn){if(dn==="input"||dn==="change")return Mo(hn)}function Rp(dn,hn){return dn===hn&&(dn!==0||1/dn===1/hn)||dn!==dn&&hn!==hn}var El=typeof Object.is=="function"?Object.is:Rp;function cc(dn,hn){if(El(dn,hn))return!0;if(typeof dn!="object"||dn===null||typeof hn!="object"||hn===null)return!1;var gn=Object.keys(dn),bn=Object.keys(hn);if(gn.length!==bn.length)return!1;for(bn=0;bn<gn.length;bn++){var Sn=gn[bn];if(!Ol.call(hn,Sn)||!El(dn[Sn],hn[Sn]))return!1}return!0}function Uu(dn){for(;dn&&dn.firstChild;)dn=dn.firstChild;return dn}function Ah(dn,hn){var gn=Uu(dn);dn=0;for(var bn;gn;){if(gn.nodeType===3){if(bn=dn+gn.textContent.length,dn<=hn&&bn>=hn)return{node:gn,offset:hn-dn};dn=bn}e:{for(;gn;){if(gn.nextSibling){gn=gn.nextSibling;break e}gn=gn.parentNode}gn=void 0}gn=Uu(gn)}}function Vu(dn,hn){return dn&&hn?dn===hn?!0:dn&&dn.nodeType===3?!1:hn&&hn.nodeType===3?Vu(dn,hn.parentNode):"contains"in dn?dn.contains(hn):dn.compareDocumentPosition?!!(dn.compareDocumentPosition(hn)&16):!1:!1}function _d(dn){dn=dn!=null&&dn.ownerDocument!=null&&dn.ownerDocument.defaultView!=null?dn.ownerDocument.defaultView:window;for(var hn=iu(dn.document);hn instanceof dn.HTMLIFrameElement;){try{var gn=typeof hn.contentWindow.location.href=="string"}catch{gn=!1}if(gn)dn=hn.contentWindow;else break;hn=iu(dn.document)}return hn}function Gn(dn){var hn=dn&&dn.nodeName&&dn.nodeName.toLowerCase();return hn&&(hn==="input"&&(dn.type==="text"||dn.type==="search"||dn.type==="tel"||dn.type==="url"||dn.type==="password")||hn==="textarea"||dn.contentEditable==="true")}function nr(dn,hn){var gn=_d(hn);hn=dn.focusedElem;var bn=dn.selectionRange;if(gn!==hn&&hn&&hn.ownerDocument&&Vu(hn.ownerDocument.documentElement,hn)){if(bn!==null&&Gn(hn)){if(dn=bn.start,gn=bn.end,gn===void 0&&(gn=dn),"selectionStart"in hn)hn.selectionStart=dn,hn.selectionEnd=Math.min(gn,hn.value.length);else if(gn=(dn=hn.ownerDocument||document)&&dn.defaultView||window,gn.getSelection){gn=gn.getSelection();var Sn=hn.textContent.length,_n=Math.min(bn.start,Sn);bn=bn.end===void 0?_n:Math.min(bn.end,Sn),!gn.extend&&_n>bn&&(Sn=bn,bn=_n,_n=Sn),Sn=Ah(hn,_n);var Bn=Ah(hn,bn);Sn&&Bn&&(gn.rangeCount!==1||gn.anchorNode!==Sn.node||gn.anchorOffset!==Sn.offset||gn.focusNode!==Bn.node||gn.focusOffset!==Bn.offset)&&(dn=dn.createRange(),dn.setStart(Sn.node,Sn.offset),gn.removeAllRanges(),_n>bn?(gn.addRange(dn),gn.extend(Bn.node,Bn.offset)):(dn.setEnd(Bn.node,Bn.offset),gn.addRange(dn)))}}for(dn=[],gn=hn;gn=gn.parentNode;)gn.nodeType===1&&dn.push({element:gn,left:gn.scrollLeft,top:gn.scrollTop});for(typeof hn.focus=="function"&&hn.focus(),hn=0;hn<dn.length;hn++)gn=dn[hn],gn.element.scrollLeft=gn.left,gn.element.scrollTop=gn.top}}var pr=Gl&&"documentMode"in document&&11>=document.documentMode,gr=null,Ar=null,Or=null,zr=!1;function qr(dn,hn,gn){var bn=gn.window===gn?gn.document:gn.nodeType===9?gn:gn.ownerDocument;zr||gr==null||gr!==iu(bn)||(bn=gr,"selectionStart"in bn&&Gn(bn)?bn={start:bn.selectionStart,end:bn.selectionEnd}:(bn=(bn.ownerDocument&&bn.ownerDocument.defaultView||window).getSelection(),bn={anchorNode:bn.anchorNode,anchorOffset:bn.anchorOffset,focusNode:bn.focusNode,focusOffset:bn.focusOffset}),Or&&cc(Or,bn)||(Or=bn,bn=ip(Ar,"onSelect"),0<bn.length&&(hn=new uu("onSelect","select",null,hn,gn),dn.push({event:hn,listeners:bn}),hn.target=gr)))}function Br(dn,hn){var gn={};return gn[dn.toLowerCase()]=hn.toLowerCase(),gn["Webkit"+dn]="webkit"+hn,gn["Moz"+dn]="moz"+hn,gn}var bs={animationend:Br("Animation","AnimationEnd"),animationiteration:Br("Animation","AnimationIteration"),animationstart:Br("Animation","AnimationStart"),transitionrun:Br("Transition","TransitionRun"),transitionstart:Br("Transition","TransitionStart"),transitioncancel:Br("Transition","TransitionCancel"),transitionend:Br("Transition","TransitionEnd")},Jr={},xs={};Gl&&(xs=document.createElement("div").style,"AnimationEvent"in window||(delete bs.animationend.animation,delete bs.animationiteration.animation,delete bs.animationstart.animation),"TransitionEvent"in window||delete bs.transitionend.transition);function vs(dn){if(Jr[dn])return Jr[dn];if(!bs[dn])return dn;var hn=bs[dn],gn;for(gn in hn)if(hn.hasOwnProperty(gn)&&gn in xs)return Jr[dn]=hn[gn];return dn}var Qr=vs("animationend"),Hs=vs("animationiteration"),_l=vs("animationstart"),Al=vs("transitionrun"),Yl=vs("transitionstart"),uo=vs("transitioncancel"),uc=vs("transitionend"),Cl=new Map,p0="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function No(dn,hn){Cl.set(dn,hn),$o(hn,[dn])}var ho=[],Wu=0,kp=0;function Ch(){for(var dn=Wu,hn=kp=Wu=0;hn<dn;){var gn=ho[hn];ho[hn++]=null;var bn=ho[hn];ho[hn++]=null;var Sn=ho[hn];ho[hn++]=null;var _n=ho[hn];if(ho[hn++]=null,bn!==null&&Sn!==null){var Bn=bn.pending;Bn===null?Sn.next=Sn:(Sn.next=Bn.next,Bn.next=Sn),bn.pending=Sn}_n!==0&&f0(gn,Sn,_n)}}function jh(dn,hn,gn,bn){ho[Wu++]=dn,ho[Wu++]=hn,ho[Wu++]=gn,ho[Wu++]=bn,kp|=bn,dn.lanes|=bn,dn=dn.alternate,dn!==null&&(dn.lanes|=bn)}function _p(dn,hn,gn,bn){return jh(dn,hn,gn,bn),Sh(dn)}function Oc(dn,hn){return jh(dn,null,null,hn),Sh(dn)}function f0(dn,hn,gn){dn.lanes|=gn;var bn=dn.alternate;bn!==null&&(bn.lanes|=gn);for(var Sn=!1,_n=dn.return;_n!==null;)_n.childLanes|=gn,bn=_n.alternate,bn!==null&&(bn.childLanes|=gn),_n.tag===22&&(dn=_n.stateNode,dn===null||dn._visibility&1||(Sn=!0)),dn=_n,_n=_n.return;Sn&&hn!==null&&dn.tag===3&&(_n=dn.stateNode,Sn=31-Ws(gn),_n=_n.hiddenUpdates,dn=_n[Sn],dn===null?_n[Sn]=[hn]:dn.push(hn),hn.lane=gn|536870912)}function Sh(dn){if(50<eh)throw eh=0,If=null,Error(sn(185));for(var hn=dn.return;hn!==null;)dn=hn,hn=dn.return;return dn.tag===3?dn.stateNode:null}var Yu={},m0=new WeakMap;function po(dn,hn){if(typeof dn=="object"&&dn!==null){var gn=m0.get(dn);return gn!==void 0?gn:(hn={value:dn,source:hn,stack:fr(hn)},m0.set(dn,hn),hn)}return{value:dn,source:hn,stack:fr(hn)}}var qu=[],Xu=0,Rh=null,kh=0,fo=[],mo=0,pu=null,dc=1,hc="";function fu(dn,hn){qu[Xu++]=kh,qu[Xu++]=Rh,Rh=dn,kh=hn}function g0(dn,hn,gn){fo[mo++]=dc,fo[mo++]=hc,fo[mo++]=pu,pu=dn;var bn=dc;dn=hc;var Sn=32-Ws(bn)-1;bn&=~(1<<Sn),gn+=1;var _n=32-Ws(hn)+Sn;if(30<_n){var Bn=Sn-Sn%5;_n=(bn&(1<<Bn)-1).toString(32),bn>>=Bn,Sn-=Bn,dc=1<<32-Ws(hn)+Sn|gn<<Sn|bn,hc=_n+dn}else dc=1<<_n|gn<<Sn|bn,hc=dn}function Mp(dn){dn.return!==null&&(fu(dn,1),g0(dn,1,0))}function Dp(dn){for(;dn===Rh;)Rh=qu[--Xu],qu[Xu]=null,kh=qu[--Xu],qu[Xu]=null;for(;dn===pu;)pu=fo[--mo],fo[mo]=null,hc=fo[--mo],fo[mo]=null,dc=fo[--mo],fo[mo]=null}var Hl=null,Ml=null,Is=!1,Lo=null,Xo=!1,Tp=Error(sn(519));function mu(dn){var hn=Error(sn(418,""));throw Td(po(hn,dn)),Tp}function x0(dn){var hn=dn.stateNode,gn=dn.type,bn=dn.memoizedProps;switch(hn[Xs]=dn,hn[Qs]=bn,gn){case"dialog":Ts("cancel",hn),Ts("close",hn);break;case"iframe":case"object":case"embed":Ts("load",hn);break;case"video":case"audio":for(gn=0;gn<nh.length;gn++)Ts(nh[gn],hn);break;case"source":Ts("error",hn);break;case"img":case"image":case"link":Ts("error",hn),Ts("load",hn);break;case"details":Ts("toggle",hn);break;case"input":Ts("invalid",hn),fh(hn,bn.value,bn.defaultValue,bn.checked,bn.defaultChecked,bn.type,bn.name,!0),Mu(hn);break;case"select":Ts("invalid",hn);break;case"textarea":Ts("invalid",hn),mh(hn,bn.value,bn.defaultValue,bn.children),Mu(hn)}gn=bn.children,typeof gn!="string"&&typeof gn!="number"&&typeof gn!="bigint"||hn.textContent===""+gn||bn.suppressHydrationWarning===!0||Sg(hn.textContent,gn)?(bn.popover!=null&&(Ts("beforetoggle",hn),Ts("toggle",hn)),bn.onScroll!=null&&Ts("scroll",hn),bn.onScrollEnd!=null&&Ts("scrollend",hn),bn.onClick!=null&&(hn.onclick=sp),hn=!0):hn=!1,hn||mu(dn)}function v0(dn){for(Hl=dn.return;Hl;)switch(Hl.tag){case 3:case 27:Xo=!0;return;case 5:case 13:Xo=!1;return;default:Hl=Hl.return}}function Md(dn){if(dn!==Hl)return!1;if(!Is)return v0(dn),Is=!0,!1;var hn=!1,gn;if((gn=dn.tag!==3&&dn.tag!==27)&&((gn=dn.tag===5)&&(gn=dn.type,gn=!(gn!=="form"&&gn!=="button")||Jf(dn.type,dn.memoizedProps)),gn=!gn),gn&&(hn=!0),hn&&Ml&&mu(dn),v0(dn),dn.tag===13){if(dn=dn.memoizedState,dn=dn!==null?dn.dehydrated:null,!dn)throw Error(sn(317));e:{for(dn=dn.nextSibling,hn=0;dn;){if(dn.nodeType===8)if(gn=dn.data,gn==="/$"){if(hn===0){Ml=Io(dn.nextSibling);break e}hn--}else gn!=="$"&&gn!=="$!"&&gn!=="$?"||hn++;dn=dn.nextSibling}Ml=null}}else Ml=Hl?Io(dn.stateNode.nextSibling):null;return!0}function Dd(){Ml=Hl=null,Is=!1}function Td(dn){Lo===null?Lo=[dn]:Lo.push(dn)}var Nd=Error(sn(460)),b0=Error(sn(474)),Np={then:function(){}};function y0(dn){return dn=dn.status,dn==="fulfilled"||dn==="rejected"}function _h(){}function w0(dn,hn,gn){switch(gn=dn[gn],gn===void 0?dn.push(hn):gn!==hn&&(hn.then(_h,_h),hn=gn),hn.status){case"fulfilled":return hn.value;case"rejected":throw dn=hn.reason,dn===Nd?Error(sn(483)):dn;default:if(typeof hn.status=="string")hn.then(_h,_h);else{if(dn=Ys,dn!==null&&100<dn.shellSuspendCounter)throw Error(sn(482));dn=hn,dn.status="pending",dn.then(function(bn){if(hn.status==="pending"){var Sn=hn;Sn.status="fulfilled",Sn.value=bn}},function(bn){if(hn.status==="pending"){var Sn=hn;Sn.status="rejected",Sn.reason=bn}})}switch(hn.status){case"fulfilled":return hn.value;case"rejected":throw dn=hn.reason,dn===Nd?Error(sn(483)):dn}throw Ld=hn,Nd}}var Ld=null;function E0(){if(Ld===null)throw Error(sn(459));var dn=Ld;return Ld=null,dn}var Gu=null,Od=0;function Mh(dn){var hn=Od;return Od+=1,Gu===null&&(Gu=[]),w0(Gu,dn,hn)}function Id(dn,hn){hn=hn.props.ref,dn.ref=hn!==void 0?hn:null}function Dh(dn,hn){throw hn.$$typeof===cn?Error(sn(525)):(dn=Object.prototype.toString.call(hn),Error(sn(31,dn==="[object Object]"?"object with keys {"+Object.keys(hn).join(", ")+"}":dn)))}function A0(dn){var hn=dn._init;return hn(dn._payload)}function C0(dn){function hn(dr,sr){if(dn){var hr=dr.deletions;hr===null?(dr.deletions=[sr],dr.flags|=16):hr.push(sr)}}function gn(dr,sr){if(!dn)return null;for(;sr!==null;)hn(dr,sr),sr=sr.sibling;return null}function bn(dr){for(var sr=new Map;dr!==null;)dr.key!==null?sr.set(dr.key,dr):sr.set(dr.index,dr),dr=dr.sibling;return sr}function Sn(dr,sr){return dr=qc(dr,sr),dr.index=0,dr.sibling=null,dr}function _n(dr,sr,hr){return dr.index=hr,dn?(hr=dr.alternate,hr!==null?(hr=hr.index,hr<sr?(dr.flags|=33554434,sr):hr):(dr.flags|=33554434,sr)):(dr.flags|=1048576,sr)}function Bn(dr){return dn&&dr.alternate===null&&(dr.flags|=33554434),dr}function Vn(dr,sr,hr,kr){return sr===null||sr.tag!==6?(sr=kf(hr,dr.mode,kr),sr.return=dr,sr):(sr=Sn(sr,hr),sr.return=dr,sr)}function Kn(dr,sr,hr,kr){var Yr=hr.type;return Yr===fn?Sr(dr,sr,hr.props.children,kr,hr.key):sr!==null&&(sr.elementType===Yr||typeof Yr=="object"&&Yr!==null&&Yr.$$typeof===Tn&&A0(Yr)===sr.type)?(sr=Sn(sr,hr.props),Id(sr,hr),sr.return=dr,sr):(sr=Gh(hr.type,hr.key,hr.props,null,dr.mode,kr),Id(sr,hr),sr.return=dr,sr)}function or(dr,sr,hr,kr){return sr===null||sr.tag!==4||sr.stateNode.containerInfo!==hr.containerInfo||sr.stateNode.implementation!==hr.implementation?(sr=_f(hr,dr.mode,kr),sr.return=dr,sr):(sr=Sn(sr,hr.children||[]),sr.return=dr,sr)}function Sr(dr,sr,hr,kr,Yr){return sr===null||sr.tag!==7?(sr=ju(hr,dr.mode,kr,Yr),sr.return=dr,sr):(sr=Sn(sr,hr),sr.return=dr,sr)}function Mr(dr,sr,hr){if(typeof sr=="string"&&sr!==""||typeof sr=="number"||typeof sr=="bigint")return sr=kf(""+sr,dr.mode,hr),sr.return=dr,sr;if(typeof sr=="object"&&sr!==null){switch(sr.$$typeof){case un:return hr=Gh(sr.type,sr.key,sr.props,null,dr.mode,hr),Id(hr,sr),hr.return=dr,hr;case pn:return sr=_f(sr,dr.mode,hr),sr.return=dr,sr;case Tn:var kr=sr._init;return sr=kr(sr._payload),Mr(dr,sr,hr)}if(Nr(sr)||In(sr))return sr=ju(sr,dr.mode,hr,null),sr.return=dr,sr;if(typeof sr.then=="function")return Mr(dr,Mh(sr),hr);if(sr.$$typeof===wn)return Mr(dr,Yh(dr,sr),hr);Dh(dr,sr)}return null}function xr(dr,sr,hr,kr){var Yr=sr!==null?sr.key:null;if(typeof hr=="string"&&hr!==""||typeof hr=="number"||typeof hr=="bigint")return Yr!==null?null:Vn(dr,sr,""+hr,kr);if(typeof hr=="object"&&hr!==null){switch(hr.$$typeof){case un:return hr.key===Yr?Kn(dr,sr,hr,kr):null;case pn:return hr.key===Yr?or(dr,sr,hr,kr):null;case Tn:return Yr=hr._init,hr=Yr(hr._payload),xr(dr,sr,hr,kr)}if(Nr(hr)||In(hr))return Yr!==null?null:Sr(dr,sr,hr,kr,null);if(typeof hr.then=="function")return xr(dr,sr,Mh(hr),kr);if(hr.$$typeof===wn)return xr(dr,sr,Yh(dr,hr),kr);Dh(dr,hr)}return null}function Cr(dr,sr,hr,kr,Yr){if(typeof kr=="string"&&kr!==""||typeof kr=="number"||typeof kr=="bigint")return dr=dr.get(hr)||null,Vn(sr,dr,""+kr,Yr);if(typeof kr=="object"&&kr!==null){switch(kr.$$typeof){case un:return dr=dr.get(kr.key===null?hr:kr.key)||null,Kn(sr,dr,kr,Yr);case pn:return dr=dr.get(kr.key===null?hr:kr.key)||null,or(sr,dr,kr,Yr);case Tn:var js=kr._init;return kr=js(kr._payload),Cr(dr,sr,hr,kr,Yr)}if(Nr(kr)||In(kr))return dr=dr.get(hr)||null,Sr(sr,dr,kr,Yr,null);if(typeof kr.then=="function")return Cr(dr,sr,hr,Mh(kr),Yr);if(kr.$$typeof===wn)return Cr(dr,sr,hr,Yh(sr,kr),Yr);Dh(sr,kr)}return null}function Gr(dr,sr,hr,kr){for(var Yr=null,js=null,Zr=sr,fs=sr=0,Rl=null;Zr!==null&&fs<hr.length;fs++){Zr.index>fs?(Rl=Zr,Zr=null):Rl=Zr.sibling;var Ps=xr(dr,Zr,hr[fs],kr);if(Ps===null){Zr===null&&(Zr=Rl);break}dn&&Zr&&Ps.alternate===null&&hn(dr,Zr),sr=_n(Ps,sr,fs),js===null?Yr=Ps:js.sibling=Ps,js=Ps,Zr=Rl}if(fs===hr.length)return gn(dr,Zr),Is&&fu(dr,fs),Yr;if(Zr===null){for(;fs<hr.length;fs++)Zr=Mr(dr,hr[fs],kr),Zr!==null&&(sr=_n(Zr,sr,fs),js===null?Yr=Zr:js.sibling=Zr,js=Zr);return Is&&fu(dr,fs),Yr}for(Zr=bn(Zr);fs<hr.length;fs++)Rl=Cr(Zr,dr,fs,hr[fs],kr),Rl!==null&&(dn&&Rl.alternate!==null&&Zr.delete(Rl.key===null?fs:Rl.key),sr=_n(Rl,sr,fs),js===null?Yr=Rl:js.sibling=Rl,js=Rl);return dn&&Zr.forEach(function(eu){return hn(dr,eu)}),Is&&fu(dr,fs),Yr}function ys(dr,sr,hr,kr){if(hr==null)throw Error(sn(151));for(var Yr=null,js=null,Zr=sr,fs=sr=0,Rl=null,Ps=hr.next();Zr!==null&&!Ps.done;fs++,Ps=hr.next()){Zr.index>fs?(Rl=Zr,Zr=null):Rl=Zr.sibling;var eu=xr(dr,Zr,Ps.value,kr);if(eu===null){Zr===null&&(Zr=Rl);break}dn&&Zr&&eu.alternate===null&&hn(dr,Zr),sr=_n(eu,sr,fs),js===null?Yr=eu:js.sibling=eu,js=eu,Zr=Rl}if(Ps.done)return gn(dr,Zr),Is&&fu(dr,fs),Yr;if(Zr===null){for(;!Ps.done;fs++,Ps=hr.next())Ps=Mr(dr,Ps.value,kr),Ps!==null&&(sr=_n(Ps,sr,fs),js===null?Yr=Ps:js.sibling=Ps,js=Ps);return Is&&fu(dr,fs),Yr}for(Zr=bn(Zr);!Ps.done;fs++,Ps=hr.next())Ps=Cr(Zr,dr,fs,Ps.value,kr),Ps!==null&&(dn&&Ps.alternate!==null&&Zr.delete(Ps.key===null?fs:Ps.key),sr=_n(Ps,sr,fs),js===null?Yr=Ps:js.sibling=Ps,js=Ps);return dn&&Zr.forEach(function(px){return hn(dr,px)}),Is&&fu(dr,fs),Yr}function il(dr,sr,hr,kr){if(typeof hr=="object"&&hr!==null&&hr.type===fn&&hr.key===null&&(hr=hr.props.children),typeof hr=="object"&&hr!==null){switch(hr.$$typeof){case un:e:{for(var Yr=hr.key;sr!==null;){if(sr.key===Yr){if(Yr=hr.type,Yr===fn){if(sr.tag===7){gn(dr,sr.sibling),kr=Sn(sr,hr.props.children),kr.return=dr,dr=kr;break e}}else if(sr.elementType===Yr||typeof Yr=="object"&&Yr!==null&&Yr.$$typeof===Tn&&A0(Yr)===sr.type){gn(dr,sr.sibling),kr=Sn(sr,hr.props),Id(kr,hr),kr.return=dr,dr=kr;break e}gn(dr,sr);break}else hn(dr,sr);sr=sr.sibling}hr.type===fn?(kr=ju(hr.props.children,dr.mode,kr,hr.key),kr.return=dr,dr=kr):(kr=Gh(hr.type,hr.key,hr.props,null,dr.mode,kr),Id(kr,hr),kr.return=dr,dr=kr)}return Bn(dr);case pn:e:{for(Yr=hr.key;sr!==null;){if(sr.key===Yr)if(sr.tag===4&&sr.stateNode.containerInfo===hr.containerInfo&&sr.stateNode.implementation===hr.implementation){gn(dr,sr.sibling),kr=Sn(sr,hr.children||[]),kr.return=dr,dr=kr;break e}else{gn(dr,sr);break}else hn(dr,sr);sr=sr.sibling}kr=_f(hr,dr.mode,kr),kr.return=dr,dr=kr}return Bn(dr);case Tn:return Yr=hr._init,hr=Yr(hr._payload),il(dr,sr,hr,kr)}if(Nr(hr))return Gr(dr,sr,hr,kr);if(In(hr)){if(Yr=In(hr),typeof Yr!="function")throw Error(sn(150));return hr=Yr.call(hr),ys(dr,sr,hr,kr)}if(typeof hr.then=="function")return il(dr,sr,Mh(hr),kr);if(hr.$$typeof===wn)return il(dr,sr,Yh(dr,hr),kr);Dh(dr,hr)}return typeof hr=="string"&&hr!==""||typeof hr=="number"||typeof hr=="bigint"?(hr=""+hr,sr!==null&&sr.tag===6?(gn(dr,sr.sibling),kr=Sn(sr,hr),kr.return=dr,dr=kr):(gn(dr,sr),kr=kf(hr,dr.mode,kr),kr.return=dr,dr=kr),Bn(dr)):gn(dr,sr)}return function(dr,sr,hr,kr){try{Od=0;var Yr=il(dr,sr,hr,kr);return Gu=null,Yr}catch(Zr){if(Zr===Nd)throw Zr;var js=bo(29,Zr,null,dr.mode);return js.lanes=kr,js.return=dr,js}finally{}}}var gu=C0(!0),j0=C0(!1),Zu=Pr(null),Th=Pr(0);function S0(dn,hn){dn=Ac,Wr(Th,dn),Wr(Zu,hn),Ac=dn|hn.baseLanes}function Lp(){Wr(Th,Ac),Wr(Zu,Zu.current)}function Op(){Ac=Th.current,Xr(Zu),Xr(Th)}var go=Pr(null),Go=null;function Ic(dn){var hn=dn.alternate;Wr(xl,xl.current&1),Wr(go,dn),Go===null&&(hn===null||Zu.current!==null||hn.memoizedState!==null)&&(Go=dn)}function R0(dn){if(dn.tag===22){if(Wr(xl,xl.current),Wr(go,dn),Go===null){var hn=dn.alternate;hn!==null&&hn.memoizedState!==null&&(Go=dn)}}else Pc()}function Pc(){Wr(xl,xl.current),Wr(go,go.current)}function pc(dn){Xr(go),Go===dn&&(Go=null),Xr(xl)}var xl=Pr(0);function Nh(dn){for(var hn=dn;hn!==null;){if(hn.tag===13){var gn=hn.memoizedState;if(gn!==null&&(gn=gn.dehydrated,gn===null||gn.data==="$?"||gn.data==="$!"))return hn}else if(hn.tag===19&&hn.memoizedProps.revealOrder!==void 0){if(hn.flags&128)return hn}else if(hn.child!==null){hn.child.return=hn,hn=hn.child;continue}if(hn===dn)break;for(;hn.sibling===null;){if(hn.return===null||hn.return===dn)return null;hn=hn.return}hn.sibling.return=hn.return,hn=hn.sibling}return null}var e1=typeof AbortController<"u"?AbortController:function(){var dn=[],hn=this.signal={aborted:!1,addEventListener:function(gn,bn){dn.push(bn)}};this.abort=function(){hn.aborted=!0,dn.forEach(function(gn){return gn()})}},t1=ln.unstable_scheduleCallback,n1=ln.unstable_NormalPriority,vl={$$typeof:wn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ip(){return{controller:new e1,data:new Map,refCount:0}}function Pd(dn){dn.refCount--,dn.refCount===0&&t1(n1,function(){dn.controller.abort()})}var Bd=null,Pp=0,Ku=0,Qu=null;function r1(dn,hn){if(Bd===null){var gn=Bd=[];Pp=0,Ku=Vf(),Qu={status:"pending",value:void 0,then:function(bn){gn.push(bn)}}}return Pp++,hn.then(k0,k0),hn}function k0(){if(--Pp===0&&Bd!==null){Qu!==null&&(Qu.status="fulfilled");var dn=Bd;Bd=null,Ku=0,Qu=null;for(var hn=0;hn<dn.length;hn++)(0,dn[hn])()}}function a1(dn,hn){var gn=[],bn={status:"pending",value:null,reason:null,then:function(Sn){gn.push(Sn)}};return dn.then(function(){bn.status="fulfilled",bn.value=hn;for(var Sn=0;Sn<gn.length;Sn++)(0,gn[Sn])(hn)},function(Sn){for(bn.status="rejected",bn.reason=Sn,Sn=0;Sn<gn.length;Sn++)(0,gn[Sn])(void 0)}),bn}var _0=Un.S;Un.S=function(dn,hn){typeof hn=="object"&&hn!==null&&typeof hn.then=="function"&&r1(dn,hn),_0!==null&&_0(dn,hn)};var xu=Pr(null);function Bp(){var dn=xu.current;return dn!==null?dn:Ys.pooledCache}function Lh(dn,hn){hn===null?Wr(xu,xu.current):Wr(xu,hn.pool)}function M0(){var dn=Bp();return dn===null?null:{parent:vl._currentValue,pool:dn}}var Bc=0,As=null,Fs=null,hl=null,Oh=!1,Ju=!1,vu=!1,Ih=0,Hd=0,ed=null,i1=0;function dl(){throw Error(sn(321))}function Hp(dn,hn){if(hn===null)return!1;for(var gn=0;gn<hn.length&&gn<dn.length;gn++)if(!El(dn[gn],hn[gn]))return!1;return!0}function zp(dn,hn,gn,bn,Sn,_n){return Bc=_n,As=hn,hn.memoizedState=null,hn.updateQueue=null,hn.lanes=0,Un.H=dn===null||dn.memoizedState===null?bu:Hc,vu=!1,_n=gn(bn,Sn),vu=!1,Ju&&(_n=T0(hn,gn,bn,Sn)),D0(dn),_n}function D0(dn){Un.H=Zo;var hn=Fs!==null&&Fs.next!==null;if(Bc=0,hl=Fs=As=null,Oh=!1,Hd=0,ed=null,hn)throw Error(sn(300));dn===null||jl||(dn=dn.dependencies,dn!==null&&Wh(dn)&&(jl=!0))}function T0(dn,hn,gn,bn){As=dn;var Sn=0;do{if(Ju&&(ed=null),Hd=0,Ju=!1,25<=Sn)throw Error(sn(301));if(Sn+=1,hl=Fs=null,dn.updateQueue!=null){var _n=dn.updateQueue;_n.lastEffect=null,_n.events=null,_n.stores=null,_n.memoCache!=null&&(_n.memoCache.index=0)}Un.H=yu,_n=hn(gn,bn)}while(Ju);return _n}function s1(){var dn=Un.H,hn=dn.useState()[0];return hn=typeof hn.then=="function"?zd(hn):hn,dn=dn.useState()[0],(Fs!==null?Fs.memoizedState:null)!==dn&&(As.flags|=1024),hn}function Fp(){var dn=Ih!==0;return Ih=0,dn}function $p(dn,hn,gn){hn.updateQueue=dn.updateQueue,hn.flags&=-2053,dn.lanes&=~gn}function Up(dn){if(Oh){for(dn=dn.memoizedState;dn!==null;){var hn=dn.queue;hn!==null&&(hn.pending=null),dn=dn.next}Oh=!1}Bc=0,hl=Fs=As=null,Ju=!1,Hd=Ih=0,ed=null}function ql(){var dn={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return hl===null?As.memoizedState=hl=dn:hl=hl.next=dn,hl}function pl(){if(Fs===null){var dn=As.alternate;dn=dn!==null?dn.memoizedState:null}else dn=Fs.next;var hn=hl===null?As.memoizedState:hl.next;if(hn!==null)hl=hn,Fs=dn;else{if(dn===null)throw As.alternate===null?Error(sn(467)):Error(sn(310));Fs=dn,dn={memoizedState:Fs.memoizedState,baseState:Fs.baseState,baseQueue:Fs.baseQueue,queue:Fs.queue,next:null},hl===null?As.memoizedState=hl=dn:hl=hl.next=dn}return hl}var Ph;Ph=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function zd(dn){var hn=Hd;return Hd+=1,ed===null&&(ed=[]),dn=w0(ed,dn,hn),hn=As,(hl===null?hn.memoizedState:hl.next)===null&&(hn=hn.alternate,Un.H=hn===null||hn.memoizedState===null?bu:Hc),dn}function Bh(dn){if(dn!==null&&typeof dn=="object"){if(typeof dn.then=="function")return zd(dn);if(dn.$$typeof===wn)return Nl(dn)}throw Error(sn(438,String(dn)))}function Vp(dn){var hn=null,gn=As.updateQueue;if(gn!==null&&(hn=gn.memoCache),hn==null){var bn=As.alternate;bn!==null&&(bn=bn.updateQueue,bn!==null&&(bn=bn.memoCache,bn!=null&&(hn={data:bn.data.map(function(Sn){return Sn.slice()}),index:0})))}if(hn==null&&(hn={data:[],index:0}),gn===null&&(gn=Ph(),As.updateQueue=gn),gn.memoCache=hn,gn=hn.data[hn.index],gn===void 0)for(gn=hn.data[hn.index]=Array(dn),bn=0;bn<dn;bn++)gn[bn]=Pn;return hn.index++,gn}function fc(dn,hn){return typeof hn=="function"?hn(dn):hn}function Hh(dn){var hn=pl();return Wp(hn,Fs,dn)}function Wp(dn,hn,gn){var bn=dn.queue;if(bn===null)throw Error(sn(311));bn.lastRenderedReducer=gn;var Sn=dn.baseQueue,_n=bn.pending;if(_n!==null){if(Sn!==null){var Bn=Sn.next;Sn.next=_n.next,_n.next=Bn}hn.baseQueue=Sn=_n,bn.pending=null}if(_n=dn.baseState,Sn===null)dn.memoizedState=_n;else{hn=Sn.next;var Vn=Bn=null,Kn=null,or=hn,Sr=!1;do{var Mr=or.lane&-536870913;if(Mr!==or.lane?(Ls&Mr)===Mr:(Bc&Mr)===Mr){var xr=or.revertLane;if(xr===0)Kn!==null&&(Kn=Kn.next={lane:0,revertLane:0,action:or.action,hasEagerState:or.hasEagerState,eagerState:or.eagerState,next:null}),Mr===Ku&&(Sr=!0);else if((Bc&xr)===xr){or=or.next,xr===Ku&&(Sr=!0);continue}else Mr={lane:0,revertLane:or.revertLane,action:or.action,hasEagerState:or.hasEagerState,eagerState:or.eagerState,next:null},Kn===null?(Vn=Kn=Mr,Bn=_n):Kn=Kn.next=Mr,As.lanes|=xr,Xc|=xr;Mr=or.action,vu&&gn(_n,Mr),_n=or.hasEagerState?or.eagerState:gn(_n,Mr)}else xr={lane:Mr,revertLane:or.revertLane,action:or.action,hasEagerState:or.hasEagerState,eagerState:or.eagerState,next:null},Kn===null?(Vn=Kn=xr,Bn=_n):Kn=Kn.next=xr,As.lanes|=Mr,Xc|=Mr;or=or.next}while(or!==null&&or!==hn);if(Kn===null?Bn=_n:Kn.next=Vn,!El(_n,dn.memoizedState)&&(jl=!0,Sr&&(gn=Qu,gn!==null)))throw gn;dn.memoizedState=_n,dn.baseState=Bn,dn.baseQueue=Kn,bn.lastRenderedState=_n}return Sn===null&&(bn.lanes=0),[dn.memoizedState,bn.dispatch]}function Yp(dn){var hn=pl(),gn=hn.queue;if(gn===null)throw Error(sn(311));gn.lastRenderedReducer=dn;var bn=gn.dispatch,Sn=gn.pending,_n=hn.memoizedState;if(Sn!==null){gn.pending=null;var Bn=Sn=Sn.next;do _n=dn(_n,Bn.action),Bn=Bn.next;while(Bn!==Sn);El(_n,hn.memoizedState)||(jl=!0),hn.memoizedState=_n,hn.baseQueue===null&&(hn.baseState=_n),gn.lastRenderedState=_n}return[_n,bn]}function N0(dn,hn,gn){var bn=As,Sn=pl(),_n=Is;if(_n){if(gn===void 0)throw Error(sn(407));gn=gn()}else gn=hn();var Bn=!El((Fs||Sn).memoizedState,gn);if(Bn&&(Sn.memoizedState=gn,jl=!0),Sn=Sn.queue,Gp(I0.bind(null,bn,Sn,dn),[dn]),Sn.getSnapshot!==hn||Bn||hl!==null&&hl.memoizedState.tag&1){if(bn.flags|=2048,td(9,O0.bind(null,bn,Sn,gn,hn),{destroy:void 0},null),Ys===null)throw Error(sn(349));_n||Bc&60||L0(bn,hn,gn)}return gn}function L0(dn,hn,gn){dn.flags|=16384,dn={getSnapshot:hn,value:gn},hn=As.updateQueue,hn===null?(hn=Ph(),As.updateQueue=hn,hn.stores=[dn]):(gn=hn.stores,gn===null?hn.stores=[dn]:gn.push(dn))}function O0(dn,hn,gn,bn){hn.value=gn,hn.getSnapshot=bn,P0(hn)&&B0(dn)}function I0(dn,hn,gn){return gn(function(){P0(hn)&&B0(dn)})}function P0(dn){var hn=dn.getSnapshot;dn=dn.value;try{var gn=hn();return!El(dn,gn)}catch{return!0}}function B0(dn){var hn=Oc(dn,2);hn!==null&&zl(hn,dn,2)}function qp(dn){var hn=ql();if(typeof dn=="function"){var gn=dn;if(dn=gn(),vu){yl(!0);try{gn()}finally{yl(!1)}}}return hn.memoizedState=hn.baseState=dn,hn.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fc,lastRenderedState:dn},hn}function H0(dn,hn,gn,bn){return dn.baseState=gn,Wp(dn,Fs,typeof bn=="function"?bn:fc)}function l1(dn,hn,gn,bn,Sn){if($h(dn))throw Error(sn(485));if(dn=hn.action,dn!==null){var _n={payload:Sn,action:dn,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Bn){_n.listeners.push(Bn)}};Un.T!==null?gn(!0):_n.isTransition=!1,bn(_n),gn=hn.pending,gn===null?(_n.next=hn.pending=_n,z0(hn,_n)):(_n.next=gn.next,hn.pending=gn.next=_n)}}function z0(dn,hn){var gn=hn.action,bn=hn.payload,Sn=dn.state;if(hn.isTransition){var _n=Un.T,Bn={};Un.T=Bn;try{var Vn=gn(Sn,bn),Kn=Un.S;Kn!==null&&Kn(Bn,Vn),F0(dn,hn,Vn)}catch(or){Xp(dn,hn,or)}finally{Un.T=_n}}else try{_n=gn(Sn,bn),F0(dn,hn,_n)}catch(or){Xp(dn,hn,or)}}function F0(dn,hn,gn){gn!==null&&typeof gn=="object"&&typeof gn.then=="function"?gn.then(function(bn){$0(dn,hn,bn)},function(bn){return Xp(dn,hn,bn)}):$0(dn,hn,gn)}function $0(dn,hn,gn){hn.status="fulfilled",hn.value=gn,U0(hn),dn.state=gn,hn=dn.pending,hn!==null&&(gn=hn.next,gn===hn?dn.pending=null:(gn=gn.next,hn.next=gn,z0(dn,gn)))}function Xp(dn,hn,gn){var bn=dn.pending;if(dn.pending=null,bn!==null){bn=bn.next;do hn.status="rejected",hn.reason=gn,U0(hn),hn=hn.next;while(hn!==bn)}dn.action=null}function U0(dn){dn=dn.listeners;for(var hn=0;hn<dn.length;hn++)(0,dn[hn])()}function V0(dn,hn){return hn}function W0(dn,hn){if(Is){var gn=Ys.formState;if(gn!==null){e:{var bn=As;if(Is){if(Ml){t:{for(var Sn=Ml,_n=Xo;Sn.nodeType!==8;){if(!_n){Sn=null;break t}if(Sn=Io(Sn.nextSibling),Sn===null){Sn=null;break t}}_n=Sn.data,Sn=_n==="F!"||_n==="F"?Sn:null}if(Sn){Ml=Io(Sn.nextSibling),bn=Sn.data==="F!";break e}}mu(bn)}bn=!1}bn&&(hn=gn[0])}}return gn=ql(),gn.memoizedState=gn.baseState=hn,bn={pending:null,lanes:0,dispatch:null,lastRenderedReducer:V0,lastRenderedState:hn},gn.queue=bn,gn=cm.bind(null,As,bn),bn.dispatch=gn,bn=qp(!1),_n=ef.bind(null,As,!1,bn.queue),bn=ql(),Sn={state:hn,dispatch:null,action:dn,pending:null},bn.queue=Sn,gn=l1.bind(null,As,Sn,_n,gn),Sn.dispatch=gn,bn.memoizedState=dn,[hn,gn,!1]}function Y0(dn){var hn=pl();return q0(hn,Fs,dn)}function q0(dn,hn,gn){hn=Wp(dn,hn,V0)[0],dn=Hh(fc)[0],hn=typeof hn=="object"&&hn!==null&&typeof hn.then=="function"?zd(hn):hn;var bn=pl(),Sn=bn.queue,_n=Sn.dispatch;return gn!==bn.memoizedState&&(As.flags|=2048,td(9,o1.bind(null,Sn,gn),{destroy:void 0},null)),[hn,_n,dn]}function o1(dn,hn){dn.action=hn}function X0(dn){var hn=pl(),gn=Fs;if(gn!==null)return q0(hn,gn,dn);pl(),hn=hn.memoizedState,gn=pl();var bn=gn.queue.dispatch;return gn.memoizedState=dn,[hn,bn,!1]}function td(dn,hn,gn,bn){return dn={tag:dn,create:hn,inst:gn,deps:bn,next:null},hn=As.updateQueue,hn===null&&(hn=Ph(),As.updateQueue=hn),gn=hn.lastEffect,gn===null?hn.lastEffect=dn.next=dn:(bn=gn.next,gn.next=dn,dn.next=bn,hn.lastEffect=dn),dn}function G0(){return pl().memoizedState}function zh(dn,hn,gn,bn){var Sn=ql();As.flags|=dn,Sn.memoizedState=td(1|hn,gn,{destroy:void 0},bn===void 0?null:bn)}function Fh(dn,hn,gn,bn){var Sn=pl();bn=bn===void 0?null:bn;var _n=Sn.memoizedState.inst;Fs!==null&&bn!==null&&Hp(bn,Fs.memoizedState.deps)?Sn.memoizedState=td(hn,gn,_n,bn):(As.flags|=dn,Sn.memoizedState=td(1|hn,gn,_n,bn))}function Z0(dn,hn){zh(8390656,8,dn,hn)}function Gp(dn,hn){Fh(2048,8,dn,hn)}function K0(dn,hn){return Fh(4,2,dn,hn)}function Q0(dn,hn){return Fh(4,4,dn,hn)}function J0(dn,hn){if(typeof hn=="function"){dn=dn();var gn=hn(dn);return function(){typeof gn=="function"?gn():hn(null)}}if(hn!=null)return dn=dn(),hn.current=dn,function(){hn.current=null}}function em(dn,hn,gn){gn=gn!=null?gn.concat([dn]):null,Fh(4,4,J0.bind(null,hn,dn),gn)}function Zp(){}function tm(dn,hn){var gn=pl();hn=hn===void 0?null:hn;var bn=gn.memoizedState;return hn!==null&&Hp(hn,bn[1])?bn[0]:(gn.memoizedState=[dn,hn],dn)}function nm(dn,hn){var gn=pl();hn=hn===void 0?null:hn;var bn=gn.memoizedState;if(hn!==null&&Hp(hn,bn[1]))return bn[0];if(bn=dn(),vu){yl(!0);try{dn()}finally{yl(!1)}}return gn.memoizedState=[bn,hn],bn}function Kp(dn,hn,gn){return gn===void 0||Bc&1073741824?dn.memoizedState=hn:(dn.memoizedState=gn,dn=ag(),As.lanes|=dn,Xc|=dn,gn)}function rm(dn,hn,gn,bn){return El(gn,hn)?gn:Zu.current!==null?(dn=Kp(dn,gn,bn),El(dn,hn)||(jl=!0),dn):Bc&42?(dn=ag(),As.lanes|=dn,Xc|=dn,hn):(jl=!0,dn.memoizedState=gn)}function am(dn,hn,gn,bn,Sn){var _n=Er.p;Er.p=_n!==0&&8>_n?_n:8;var Bn=Un.T,Vn={};Un.T=Vn,ef(dn,!1,hn,gn);try{var Kn=Sn(),or=Un.S;if(or!==null&&or(Vn,Kn),Kn!==null&&typeof Kn=="object"&&typeof Kn.then=="function"){var Sr=a1(Kn,bn);Fd(dn,hn,Sr,to(dn))}else Fd(dn,hn,bn,to(dn))}catch(Mr){Fd(dn,hn,{then:function(){},status:"rejected",reason:Mr},to())}finally{Er.p=_n,Un.T=Bn}}function c1(){}function Qp(dn,hn,gn,bn){if(dn.tag!==5)throw Error(sn(476));var Sn=im(dn).queue;am(dn,Sn,hn,Fr,gn===null?c1:function(){return sm(dn),gn(bn)})}function im(dn){var hn=dn.memoizedState;if(hn!==null)return hn;hn={memoizedState:Fr,baseState:Fr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fc,lastRenderedState:Fr},next:null};var gn={};return hn.next={memoizedState:gn,baseState:gn,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fc,lastRenderedState:gn},next:null},dn.memoizedState=hn,dn=dn.alternate,dn!==null&&(dn.memoizedState=hn),hn}function sm(dn){var hn=im(dn).next.queue;Fd(dn,hn,{},to())}function Jp(){return Nl(lh)}function lm(){return pl().memoizedState}function om(){return pl().memoizedState}function u1(dn){for(var hn=dn.return;hn!==null;){switch(hn.tag){case 24:case 3:var gn=to();dn=$c(gn);var bn=Uc(hn,dn,gn);bn!==null&&(zl(bn,hn,gn),Vd(bn,hn,gn)),hn={cache:Ip()},dn.payload=hn;return}hn=hn.return}}function d1(dn,hn,gn){var bn=to();gn={lane:bn,revertLane:0,action:gn,hasEagerState:!1,eagerState:null,next:null},$h(dn)?um(hn,gn):(gn=_p(dn,hn,gn,bn),gn!==null&&(zl(gn,dn,bn),dm(gn,hn,bn)))}function cm(dn,hn,gn){var bn=to();Fd(dn,hn,gn,bn)}function Fd(dn,hn,gn,bn){var Sn={lane:bn,revertLane:0,action:gn,hasEagerState:!1,eagerState:null,next:null};if($h(dn))um(hn,Sn);else{var _n=dn.alternate;if(dn.lanes===0&&(_n===null||_n.lanes===0)&&(_n=hn.lastRenderedReducer,_n!==null))try{var Bn=hn.lastRenderedState,Vn=_n(Bn,gn);if(Sn.hasEagerState=!0,Sn.eagerState=Vn,El(Vn,Bn))return jh(dn,hn,Sn,0),Ys===null&&Ch(),!1}catch{}finally{}if(gn=_p(dn,hn,Sn,bn),gn!==null)return zl(gn,dn,bn),dm(gn,hn,bn),!0}return!1}function ef(dn,hn,gn,bn){if(bn={lane:2,revertLane:Vf(),action:bn,hasEagerState:!1,eagerState:null,next:null},$h(dn)){if(hn)throw Error(sn(479))}else hn=_p(dn,gn,bn,2),hn!==null&&zl(hn,dn,2)}function $h(dn){var hn=dn.alternate;return dn===As||hn!==null&&hn===As}function um(dn,hn){Ju=Oh=!0;var gn=dn.pending;gn===null?hn.next=hn:(hn.next=gn.next,gn.next=hn),dn.pending=hn}function dm(dn,hn,gn){if(gn&4194176){var bn=hn.lanes;bn&=dn.pendingLanes,gn|=bn,hn.lanes=gn,Ur(dn,gn)}}var Zo={readContext:Nl,use:Bh,useCallback:dl,useContext:dl,useEffect:dl,useImperativeHandle:dl,useLayoutEffect:dl,useInsertionEffect:dl,useMemo:dl,useReducer:dl,useRef:dl,useState:dl,useDebugValue:dl,useDeferredValue:dl,useTransition:dl,useSyncExternalStore:dl,useId:dl};Zo.useCacheRefresh=dl,Zo.useMemoCache=dl,Zo.useHostTransitionStatus=dl,Zo.useFormState=dl,Zo.useActionState=dl,Zo.useOptimistic=dl;var bu={readContext:Nl,use:Bh,useCallback:function(dn,hn){return ql().memoizedState=[dn,hn===void 0?null:hn],dn},useContext:Nl,useEffect:Z0,useImperativeHandle:function(dn,hn,gn){gn=gn!=null?gn.concat([dn]):null,zh(4194308,4,J0.bind(null,hn,dn),gn)},useLayoutEffect:function(dn,hn){return zh(4194308,4,dn,hn)},useInsertionEffect:function(dn,hn){zh(4,2,dn,hn)},useMemo:function(dn,hn){var gn=ql();hn=hn===void 0?null:hn;var bn=dn();if(vu){yl(!0);try{dn()}finally{yl(!1)}}return gn.memoizedState=[bn,hn],bn},useReducer:function(dn,hn,gn){var bn=ql();if(gn!==void 0){var Sn=gn(hn);if(vu){yl(!0);try{gn(hn)}finally{yl(!1)}}}else Sn=hn;return bn.memoizedState=bn.baseState=Sn,dn={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:Sn},bn.queue=dn,dn=dn.dispatch=d1.bind(null,As,dn),[bn.memoizedState,dn]},useRef:function(dn){var hn=ql();return dn={current:dn},hn.memoizedState=dn},useState:function(dn){dn=qp(dn);var hn=dn.queue,gn=cm.bind(null,As,hn);return hn.dispatch=gn,[dn.memoizedState,gn]},useDebugValue:Zp,useDeferredValue:function(dn,hn){var gn=ql();return Kp(gn,dn,hn)},useTransition:function(){var dn=qp(!1);return dn=am.bind(null,As,dn.queue,!0,!1),ql().memoizedState=dn,[!1,dn]},useSyncExternalStore:function(dn,hn,gn){var bn=As,Sn=ql();if(Is){if(gn===void 0)throw Error(sn(407));gn=gn()}else{if(gn=hn(),Ys===null)throw Error(sn(349));Ls&60||L0(bn,hn,gn)}Sn.memoizedState=gn;var _n={value:gn,getSnapshot:hn};return Sn.queue=_n,Z0(I0.bind(null,bn,_n,dn),[dn]),bn.flags|=2048,td(9,O0.bind(null,bn,_n,gn,hn),{destroy:void 0},null),gn},useId:function(){var dn=ql(),hn=Ys.identifierPrefix;if(Is){var gn=hc,bn=dc;gn=(bn&~(1<<32-Ws(bn)-1)).toString(32)+gn,hn=":"+hn+"R"+gn,gn=Ih++,0<gn&&(hn+="H"+gn.toString(32)),hn+=":"}else gn=i1++,hn=":"+hn+"r"+gn.toString(32)+":";return dn.memoizedState=hn},useCacheRefresh:function(){return ql().memoizedState=u1.bind(null,As)}};bu.useMemoCache=Vp,bu.useHostTransitionStatus=Jp,bu.useFormState=W0,bu.useActionState=W0,bu.useOptimistic=function(dn){var hn=ql();hn.memoizedState=hn.baseState=dn;var gn={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return hn.queue=gn,hn=ef.bind(null,As,!0,gn),gn.dispatch=hn,[dn,hn]};var Hc={readContext:Nl,use:Bh,useCallback:tm,useContext:Nl,useEffect:Gp,useImperativeHandle:em,useInsertionEffect:K0,useLayoutEffect:Q0,useMemo:nm,useReducer:Hh,useRef:G0,useState:function(){return Hh(fc)},useDebugValue:Zp,useDeferredValue:function(dn,hn){var gn=pl();return rm(gn,Fs.memoizedState,dn,hn)},useTransition:function(){var dn=Hh(fc)[0],hn=pl().memoizedState;return[typeof dn=="boolean"?dn:zd(dn),hn]},useSyncExternalStore:N0,useId:lm};Hc.useCacheRefresh=om,Hc.useMemoCache=Vp,Hc.useHostTransitionStatus=Jp,Hc.useFormState=Y0,Hc.useActionState=Y0,Hc.useOptimistic=function(dn,hn){var gn=pl();return H0(gn,Fs,dn,hn)};var yu={readContext:Nl,use:Bh,useCallback:tm,useContext:Nl,useEffect:Gp,useImperativeHandle:em,useInsertionEffect:K0,useLayoutEffect:Q0,useMemo:nm,useReducer:Yp,useRef:G0,useState:function(){return Yp(fc)},useDebugValue:Zp,useDeferredValue:function(dn,hn){var gn=pl();return Fs===null?Kp(gn,dn,hn):rm(gn,Fs.memoizedState,dn,hn)},useTransition:function(){var dn=Yp(fc)[0],hn=pl().memoizedState;return[typeof dn=="boolean"?dn:zd(dn),hn]},useSyncExternalStore:N0,useId:lm};yu.useCacheRefresh=om,yu.useMemoCache=Vp,yu.useHostTransitionStatus=Jp,yu.useFormState=X0,yu.useActionState=X0,yu.useOptimistic=function(dn,hn){var gn=pl();return Fs!==null?H0(gn,Fs,dn,hn):(gn.baseState=dn,[dn,gn.queue.dispatch])};function tf(dn,hn,gn,bn){hn=dn.memoizedState,gn=gn(bn,hn),gn=gn==null?hn:Yn({},hn,gn),dn.memoizedState=gn,dn.lanes===0&&(dn.updateQueue.baseState=gn)}var nf={isMounted:function(dn){return(dn=dn._reactInternals)?ur(dn)===dn:!1},enqueueSetState:function(dn,hn,gn){dn=dn._reactInternals;var bn=to(),Sn=$c(bn);Sn.payload=hn,gn!=null&&(Sn.callback=gn),hn=Uc(dn,Sn,bn),hn!==null&&(zl(hn,dn,bn),Vd(hn,dn,bn))},enqueueReplaceState:function(dn,hn,gn){dn=dn._reactInternals;var bn=to(),Sn=$c(bn);Sn.tag=1,Sn.payload=hn,gn!=null&&(Sn.callback=gn),hn=Uc(dn,Sn,bn),hn!==null&&(zl(hn,dn,bn),Vd(hn,dn,bn))},enqueueForceUpdate:function(dn,hn){dn=dn._reactInternals;var gn=to(),bn=$c(gn);bn.tag=2,hn!=null&&(bn.callback=hn),hn=Uc(dn,bn,gn),hn!==null&&(zl(hn,dn,gn),Vd(hn,dn,gn))}};function hm(dn,hn,gn,bn,Sn,_n,Bn){return dn=dn.stateNode,typeof dn.shouldComponentUpdate=="function"?dn.shouldComponentUpdate(bn,_n,Bn):hn.prototype&&hn.prototype.isPureReactComponent?!cc(gn,bn)||!cc(Sn,_n):!0}function pm(dn,hn,gn,bn){dn=hn.state,typeof hn.componentWillReceiveProps=="function"&&hn.componentWillReceiveProps(gn,bn),typeof hn.UNSAFE_componentWillReceiveProps=="function"&&hn.UNSAFE_componentWillReceiveProps(gn,bn),hn.state!==dn&&nf.enqueueReplaceState(hn,hn.state,null)}function wu(dn,hn){var gn=hn;if("ref"in hn){gn={};for(var bn in hn)bn!=="ref"&&(gn[bn]=hn[bn])}if(dn=dn.defaultProps){gn===hn&&(gn=Yn({},gn));for(var Sn in dn)gn[Sn]===void 0&&(gn[Sn]=dn[Sn])}return gn}var Uh=typeof reportError=="function"?reportError:function(dn){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var hn=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof dn=="object"&&dn!==null&&typeof dn.message=="string"?String(dn.message):String(dn),error:dn});if(!window.dispatchEvent(hn))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",dn);return}console.error(dn)};function fm(dn){Uh(dn)}function mm(dn){console.error(dn)}function gm(dn){Uh(dn)}function Vh(dn,hn){try{var gn=dn.onUncaughtError;gn(hn.value,{componentStack:hn.stack})}catch(bn){setTimeout(function(){throw bn})}}function xm(dn,hn,gn){try{var bn=dn.onCaughtError;bn(gn.value,{componentStack:gn.stack,errorBoundary:hn.tag===1?hn.stateNode:null})}catch(Sn){setTimeout(function(){throw Sn})}}function rf(dn,hn,gn){return gn=$c(gn),gn.tag=3,gn.payload={element:null},gn.callback=function(){Vh(dn,hn)},gn}function vm(dn){return dn=$c(dn),dn.tag=3,dn}function bm(dn,hn,gn,bn){var Sn=gn.type.getDerivedStateFromError;if(typeof Sn=="function"){var _n=bn.value;dn.payload=function(){return Sn(_n)},dn.callback=function(){xm(hn,gn,bn)}}var Bn=gn.stateNode;Bn!==null&&typeof Bn.componentDidCatch=="function"&&(dn.callback=function(){xm(hn,gn,bn),typeof Sn!="function"&&(Gc===null?Gc=new Set([this]):Gc.add(this));var Vn=bn.stack;this.componentDidCatch(bn.value,{componentStack:Vn!==null?Vn:""})})}function h1(dn,hn,gn,bn,Sn){if(gn.flags|=32768,bn!==null&&typeof bn=="object"&&typeof bn.then=="function"){if(hn=gn.alternate,hn!==null&&Ud(hn,gn,Sn,!0),gn=go.current,gn!==null){switch(gn.tag){case 13:return Go===null?Hf():gn.alternate===null&&al===0&&(al=3),gn.flags&=-257,gn.flags|=65536,gn.lanes=Sn,bn===Np?gn.flags|=16384:(hn=gn.updateQueue,hn===null?gn.updateQueue=new Set([bn]):hn.add(bn),Ff(dn,bn,Sn)),!1;case 22:return gn.flags|=65536,bn===Np?gn.flags|=16384:(hn=gn.updateQueue,hn===null?(hn={transitions:null,markerInstances:null,retryQueue:new Set([bn])},gn.updateQueue=hn):(gn=hn.retryQueue,gn===null?hn.retryQueue=new Set([bn]):gn.add(bn)),Ff(dn,bn,Sn)),!1}throw Error(sn(435,gn.tag))}return Ff(dn,bn,Sn),Hf(),!1}if(Is)return hn=go.current,hn!==null?(!(hn.flags&65536)&&(hn.flags|=256),hn.flags|=65536,hn.lanes=Sn,bn!==Tp&&(dn=Error(sn(422),{cause:bn}),Td(po(dn,gn)))):(bn!==Tp&&(hn=Error(sn(423),{cause:bn}),Td(po(hn,gn))),dn=dn.current.alternate,dn.flags|=65536,Sn&=-Sn,dn.lanes|=Sn,bn=po(bn,gn),Sn=rf(dn.stateNode,bn,Sn),bf(dn,Sn),al!==4&&(al=2)),!1;var _n=Error(sn(520),{cause:bn});if(_n=po(_n,gn),Qd===null?Qd=[_n]:Qd.push(_n),al!==4&&(al=2),hn===null)return!0;bn=po(bn,gn),gn=hn;do{switch(gn.tag){case 3:return gn.flags|=65536,dn=Sn&-Sn,gn.lanes|=dn,dn=rf(gn.stateNode,bn,dn),bf(gn,dn),!1;case 1:if(hn=gn.type,_n=gn.stateNode,(gn.flags&128)===0&&(typeof hn.getDerivedStateFromError=="function"||_n!==null&&typeof _n.componentDidCatch=="function"&&(Gc===null||!Gc.has(_n))))return gn.flags|=65536,Sn&=-Sn,gn.lanes|=Sn,Sn=vm(Sn),bm(Sn,dn,gn,bn),bf(gn,Sn),!1}gn=gn.return}while(gn!==null);return!1}var ym=Error(sn(461)),jl=!1;function Dl(dn,hn,gn,bn){hn.child=dn===null?j0(hn,null,gn,bn):gu(hn,dn.child,gn,bn)}function wm(dn,hn,gn,bn,Sn){gn=gn.render;var _n=hn.ref;if("ref"in bn){var Bn={};for(var Vn in bn)Vn!=="ref"&&(Bn[Vn]=bn[Vn])}else Bn=bn;return Au(hn),bn=zp(dn,hn,gn,Bn,_n,Sn),Vn=Fp(),dn!==null&&!jl?($p(dn,hn,Sn),mc(dn,hn,Sn)):(Is&&Vn&&Mp(hn),hn.flags|=1,Dl(dn,hn,bn,Sn),hn.child)}function Em(dn,hn,gn,bn,Sn){if(dn===null){var _n=gn.type;return typeof _n=="function"&&!Rf(_n)&&_n.defaultProps===void 0&&gn.compare===null?(hn.tag=15,hn.type=_n,Am(dn,hn,_n,bn,Sn)):(dn=Gh(gn.type,null,bn,hn,hn.mode,Sn),dn.ref=hn.ref,dn.return=hn,hn.child=dn)}if(_n=dn.child,!pf(dn,Sn)){var Bn=_n.memoizedProps;if(gn=gn.compare,gn=gn!==null?gn:cc,gn(Bn,bn)&&dn.ref===hn.ref)return mc(dn,hn,Sn)}return hn.flags|=1,dn=qc(_n,bn),dn.ref=hn.ref,dn.return=hn,hn.child=dn}function Am(dn,hn,gn,bn,Sn){if(dn!==null){var _n=dn.memoizedProps;if(cc(_n,bn)&&dn.ref===hn.ref)if(jl=!1,hn.pendingProps=bn=_n,pf(dn,Sn))dn.flags&131072&&(jl=!0);else return hn.lanes=dn.lanes,mc(dn,hn,Sn)}return af(dn,hn,gn,bn,Sn)}function Cm(dn,hn,gn){var bn=hn.pendingProps,Sn=bn.children,_n=(hn.stateNode._pendingVisibility&2)!==0,Bn=dn!==null?dn.memoizedState:null;if($d(dn,hn),bn.mode==="hidden"||_n){if(hn.flags&128){if(bn=Bn!==null?Bn.baseLanes|gn:gn,dn!==null){for(Sn=hn.child=dn.child,_n=0;Sn!==null;)_n=_n|Sn.lanes|Sn.childLanes,Sn=Sn.sibling;hn.childLanes=_n&~bn}else hn.childLanes=0,hn.child=null;return jm(dn,hn,bn,gn)}if(gn&536870912)hn.memoizedState={baseLanes:0,cachePool:null},dn!==null&&Lh(hn,Bn!==null?Bn.cachePool:null),Bn!==null?S0(hn,Bn):Lp(),R0(hn);else return hn.lanes=hn.childLanes=536870912,jm(dn,hn,Bn!==null?Bn.baseLanes|gn:gn,gn)}else Bn!==null?(Lh(hn,Bn.cachePool),S0(hn,Bn),Pc(),hn.memoizedState=null):(dn!==null&&Lh(hn,null),Lp(),Pc());return Dl(dn,hn,Sn,gn),hn.child}function jm(dn,hn,gn,bn){var Sn=Bp();return Sn=Sn===null?null:{parent:vl._currentValue,pool:Sn},hn.memoizedState={baseLanes:gn,cachePool:Sn},dn!==null&&Lh(hn,null),Lp(),R0(hn),dn!==null&&Ud(dn,hn,bn,!0),null}function $d(dn,hn){var gn=hn.ref;if(gn===null)dn!==null&&dn.ref!==null&&(hn.flags|=2097664);else{if(typeof gn!="function"&&typeof gn!="object")throw Error(sn(284));(dn===null||dn.ref!==gn)&&(hn.flags|=2097664)}}function af(dn,hn,gn,bn,Sn){return Au(hn),gn=zp(dn,hn,gn,bn,void 0,Sn),bn=Fp(),dn!==null&&!jl?($p(dn,hn,Sn),mc(dn,hn,Sn)):(Is&&bn&&Mp(hn),hn.flags|=1,Dl(dn,hn,gn,Sn),hn.child)}function Sm(dn,hn,gn,bn,Sn,_n){return Au(hn),hn.updateQueue=null,gn=T0(hn,bn,gn,Sn),D0(dn),bn=Fp(),dn!==null&&!jl?($p(dn,hn,_n),mc(dn,hn,_n)):(Is&&bn&&Mp(hn),hn.flags|=1,Dl(dn,hn,gn,_n),hn.child)}function Rm(dn,hn,gn,bn,Sn){if(Au(hn),hn.stateNode===null){var _n=Yu,Bn=gn.contextType;typeof Bn=="object"&&Bn!==null&&(_n=Nl(Bn)),_n=new gn(bn,_n),hn.memoizedState=_n.state!==null&&_n.state!==void 0?_n.state:null,_n.updater=nf,hn.stateNode=_n,_n._reactInternals=hn,_n=hn.stateNode,_n.props=bn,_n.state=hn.memoizedState,_n.refs={},xf(hn),Bn=gn.contextType,_n.context=typeof Bn=="object"&&Bn!==null?Nl(Bn):Yu,_n.state=hn.memoizedState,Bn=gn.getDerivedStateFromProps,typeof Bn=="function"&&(tf(hn,gn,Bn,bn),_n.state=hn.memoizedState),typeof gn.getDerivedStateFromProps=="function"||typeof _n.getSnapshotBeforeUpdate=="function"||typeof _n.UNSAFE_componentWillMount!="function"&&typeof _n.componentWillMount!="function"||(Bn=_n.state,typeof _n.componentWillMount=="function"&&_n.componentWillMount(),typeof _n.UNSAFE_componentWillMount=="function"&&_n.UNSAFE_componentWillMount(),Bn!==_n.state&&nf.enqueueReplaceState(_n,_n.state,null),Yd(hn,bn,_n,Sn),Wd(),_n.state=hn.memoizedState),typeof _n.componentDidMount=="function"&&(hn.flags|=4194308),bn=!0}else if(dn===null){_n=hn.stateNode;var Vn=hn.memoizedProps,Kn=wu(gn,Vn);_n.props=Kn;var or=_n.context,Sr=gn.contextType;Bn=Yu,typeof Sr=="object"&&Sr!==null&&(Bn=Nl(Sr));var Mr=gn.getDerivedStateFromProps;Sr=typeof Mr=="function"||typeof _n.getSnapshotBeforeUpdate=="function",Vn=hn.pendingProps!==Vn,Sr||typeof _n.UNSAFE_componentWillReceiveProps!="function"&&typeof _n.componentWillReceiveProps!="function"||(Vn||or!==Bn)&&pm(hn,_n,bn,Bn),Fc=!1;var xr=hn.memoizedState;_n.state=xr,Yd(hn,bn,_n,Sn),Wd(),or=hn.memoizedState,Vn||xr!==or||Fc?(typeof Mr=="function"&&(tf(hn,gn,Mr,bn),or=hn.memoizedState),(Kn=Fc||hm(hn,gn,Kn,bn,xr,or,Bn))?(Sr||typeof _n.UNSAFE_componentWillMount!="function"&&typeof _n.componentWillMount!="function"||(typeof _n.componentWillMount=="function"&&_n.componentWillMount(),typeof _n.UNSAFE_componentWillMount=="function"&&_n.UNSAFE_componentWillMount()),typeof _n.componentDidMount=="function"&&(hn.flags|=4194308)):(typeof _n.componentDidMount=="function"&&(hn.flags|=4194308),hn.memoizedProps=bn,hn.memoizedState=or),_n.props=bn,_n.state=or,_n.context=Bn,bn=Kn):(typeof _n.componentDidMount=="function"&&(hn.flags|=4194308),bn=!1)}else{_n=hn.stateNode,vf(dn,hn),Bn=hn.memoizedProps,Sr=wu(gn,Bn),_n.props=Sr,Mr=hn.pendingProps,xr=_n.context,or=gn.contextType,Kn=Yu,typeof or=="object"&&or!==null&&(Kn=Nl(or)),Vn=gn.getDerivedStateFromProps,(or=typeof Vn=="function"||typeof _n.getSnapshotBeforeUpdate=="function")||typeof _n.UNSAFE_componentWillReceiveProps!="function"&&typeof _n.componentWillReceiveProps!="function"||(Bn!==Mr||xr!==Kn)&&pm(hn,_n,bn,Kn),Fc=!1,xr=hn.memoizedState,_n.state=xr,Yd(hn,bn,_n,Sn),Wd();var Cr=hn.memoizedState;Bn!==Mr||xr!==Cr||Fc||dn!==null&&dn.dependencies!==null&&Wh(dn.dependencies)?(typeof Vn=="function"&&(tf(hn,gn,Vn,bn),Cr=hn.memoizedState),(Sr=Fc||hm(hn,gn,Sr,bn,xr,Cr,Kn)||dn!==null&&dn.dependencies!==null&&Wh(dn.dependencies))?(or||typeof _n.UNSAFE_componentWillUpdate!="function"&&typeof _n.componentWillUpdate!="function"||(typeof _n.componentWillUpdate=="function"&&_n.componentWillUpdate(bn,Cr,Kn),typeof _n.UNSAFE_componentWillUpdate=="function"&&_n.UNSAFE_componentWillUpdate(bn,Cr,Kn)),typeof _n.componentDidUpdate=="function"&&(hn.flags|=4),typeof _n.getSnapshotBeforeUpdate=="function"&&(hn.flags|=1024)):(typeof _n.componentDidUpdate!="function"||Bn===dn.memoizedProps&&xr===dn.memoizedState||(hn.flags|=4),typeof _n.getSnapshotBeforeUpdate!="function"||Bn===dn.memoizedProps&&xr===dn.memoizedState||(hn.flags|=1024),hn.memoizedProps=bn,hn.memoizedState=Cr),_n.props=bn,_n.state=Cr,_n.context=Kn,bn=Sr):(typeof _n.componentDidUpdate!="function"||Bn===dn.memoizedProps&&xr===dn.memoizedState||(hn.flags|=4),typeof _n.getSnapshotBeforeUpdate!="function"||Bn===dn.memoizedProps&&xr===dn.memoizedState||(hn.flags|=1024),bn=!1)}return _n=bn,$d(dn,hn),bn=(hn.flags&128)!==0,_n||bn?(_n=hn.stateNode,gn=bn&&typeof gn.getDerivedStateFromError!="function"?null:_n.render(),hn.flags|=1,dn!==null&&bn?(hn.child=gu(hn,dn.child,null,Sn),hn.child=gu(hn,null,gn,Sn)):Dl(dn,hn,gn,Sn),hn.memoizedState=_n.state,dn=hn.child):dn=mc(dn,hn,Sn),dn}function km(dn,hn,gn,bn){return Dd(),hn.flags|=256,Dl(dn,hn,gn,bn),hn.child}var sf={dehydrated:null,treeContext:null,retryLane:0};function lf(dn){return{baseLanes:dn,cachePool:M0()}}function of(dn,hn,gn){return dn=dn!==null?dn.childLanes&~gn:0,hn&&(dn|=yo),dn}function _m(dn,hn,gn){var bn=hn.pendingProps,Sn=!1,_n=(hn.flags&128)!==0,Bn;if((Bn=_n)||(Bn=dn!==null&&dn.memoizedState===null?!1:(xl.current&2)!==0),Bn&&(Sn=!0,hn.flags&=-129),Bn=(hn.flags&32)!==0,hn.flags&=-33,dn===null){if(Is){if(Sn?Ic(hn):Pc(),Is){var Vn=Ml,Kn;if(Kn=Vn){e:{for(Kn=Vn,Vn=Xo;Kn.nodeType!==8;){if(!Vn){Vn=null;break e}if(Kn=Io(Kn.nextSibling),Kn===null){Vn=null;break e}}Vn=Kn}Vn!==null?(hn.memoizedState={dehydrated:Vn,treeContext:pu!==null?{id:dc,overflow:hc}:null,retryLane:536870912},Kn=bo(18,null,null,0),Kn.stateNode=Vn,Kn.return=hn,hn.child=Kn,Hl=hn,Ml=null,Kn=!0):Kn=!1}Kn||mu(hn)}if(Vn=hn.memoizedState,Vn!==null&&(Vn=Vn.dehydrated,Vn!==null))return Vn.data==="$!"?hn.lanes=16:hn.lanes=536870912,null;pc(hn)}return Vn=bn.children,bn=bn.fallback,Sn?(Pc(),Sn=hn.mode,Vn=uf({mode:"hidden",children:Vn},Sn),bn=ju(bn,Sn,gn,null),Vn.return=hn,bn.return=hn,Vn.sibling=bn,hn.child=Vn,Sn=hn.child,Sn.memoizedState=lf(gn),Sn.childLanes=of(dn,Bn,gn),hn.memoizedState=sf,bn):(Ic(hn),cf(hn,Vn))}if(Kn=dn.memoizedState,Kn!==null&&(Vn=Kn.dehydrated,Vn!==null)){if(_n)hn.flags&256?(Ic(hn),hn.flags&=-257,hn=df(dn,hn,gn)):hn.memoizedState!==null?(Pc(),hn.child=dn.child,hn.flags|=128,hn=null):(Pc(),Sn=bn.fallback,Vn=hn.mode,bn=uf({mode:"visible",children:bn.children},Vn),Sn=ju(Sn,Vn,gn,null),Sn.flags|=2,bn.return=hn,Sn.return=hn,bn.sibling=Sn,hn.child=bn,gu(hn,dn.child,null,gn),bn=hn.child,bn.memoizedState=lf(gn),bn.childLanes=of(dn,Bn,gn),hn.memoizedState=sf,hn=Sn);else if(Ic(hn),Vn.data==="$!"){if(Bn=Vn.nextSibling&&Vn.nextSibling.dataset,Bn)var or=Bn.dgst;Bn=or,bn=Error(sn(419)),bn.stack="",bn.digest=Bn,Td({value:bn,source:null,stack:null}),hn=df(dn,hn,gn)}else if(jl||Ud(dn,hn,gn,!1),Bn=(gn&dn.childLanes)!==0,jl||Bn){if(Bn=Ys,Bn!==null){if(bn=gn&-gn,bn&42)bn=1;else switch(bn){case 2:bn=1;break;case 8:bn=4;break;case 32:bn=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:bn=64;break;case 268435456:bn=134217728;break;default:bn=0}if(bn=bn&(Bn.suspendedLanes|gn)?0:bn,bn!==0&&bn!==Kn.retryLane)throw Kn.retryLane=bn,Oc(dn,bn),zl(Bn,dn,bn),ym}Vn.data==="$?"||Hf(),hn=df(dn,hn,gn)}else Vn.data==="$?"?(hn.flags|=128,hn.child=dn.child,hn=R1.bind(null,dn),Vn._reactRetry=hn,hn=null):(dn=Kn.treeContext,Ml=Io(Vn.nextSibling),Hl=hn,Is=!0,Lo=null,Xo=!1,dn!==null&&(fo[mo++]=dc,fo[mo++]=hc,fo[mo++]=pu,dc=dn.id,hc=dn.overflow,pu=hn),hn=cf(hn,bn.children),hn.flags|=4096);return hn}return Sn?(Pc(),Sn=bn.fallback,Vn=hn.mode,Kn=dn.child,or=Kn.sibling,bn=qc(Kn,{mode:"hidden",children:bn.children}),bn.subtreeFlags=Kn.subtreeFlags&31457280,or!==null?Sn=qc(or,Sn):(Sn=ju(Sn,Vn,gn,null),Sn.flags|=2),Sn.return=hn,bn.return=hn,bn.sibling=Sn,hn.child=bn,bn=Sn,Sn=hn.child,Vn=dn.child.memoizedState,Vn===null?Vn=lf(gn):(Kn=Vn.cachePool,Kn!==null?(or=vl._currentValue,Kn=Kn.parent!==or?{parent:or,pool:or}:Kn):Kn=M0(),Vn={baseLanes:Vn.baseLanes|gn,cachePool:Kn}),Sn.memoizedState=Vn,Sn.childLanes=of(dn,Bn,gn),hn.memoizedState=sf,bn):(Ic(hn),gn=dn.child,dn=gn.sibling,gn=qc(gn,{mode:"visible",children:bn.children}),gn.return=hn,gn.sibling=null,dn!==null&&(Bn=hn.deletions,Bn===null?(hn.deletions=[dn],hn.flags|=16):Bn.push(dn)),hn.child=gn,hn.memoizedState=null,gn)}function cf(dn,hn){return hn=uf({mode:"visible",children:hn},dn.mode),hn.return=dn,dn.child=hn}function uf(dn,hn){return tg(dn,hn,0,null)}function df(dn,hn,gn){return gu(hn,dn.child,null,gn),dn=cf(hn,hn.pendingProps.children),dn.flags|=2,hn.memoizedState=null,dn}function Mm(dn,hn,gn){dn.lanes|=hn;var bn=dn.alternate;bn!==null&&(bn.lanes|=hn),mf(dn.return,hn,gn)}function hf(dn,hn,gn,bn,Sn){var _n=dn.memoizedState;_n===null?dn.memoizedState={isBackwards:hn,rendering:null,renderingStartTime:0,last:bn,tail:gn,tailMode:Sn}:(_n.isBackwards=hn,_n.rendering=null,_n.renderingStartTime=0,_n.last=bn,_n.tail=gn,_n.tailMode=Sn)}function Dm(dn,hn,gn){var bn=hn.pendingProps,Sn=bn.revealOrder,_n=bn.tail;if(Dl(dn,hn,bn.children,gn),bn=xl.current,bn&2)bn=bn&1|2,hn.flags|=128;else{if(dn!==null&&dn.flags&128)e:for(dn=hn.child;dn!==null;){if(dn.tag===13)dn.memoizedState!==null&&Mm(dn,gn,hn);else if(dn.tag===19)Mm(dn,gn,hn);else if(dn.child!==null){dn.child.return=dn,dn=dn.child;continue}if(dn===hn)break e;for(;dn.sibling===null;){if(dn.return===null||dn.return===hn)break e;dn=dn.return}dn.sibling.return=dn.return,dn=dn.sibling}bn&=1}switch(Wr(xl,bn),Sn){case"forwards":for(gn=hn.child,Sn=null;gn!==null;)dn=gn.alternate,dn!==null&&Nh(dn)===null&&(Sn=gn),gn=gn.sibling;gn=Sn,gn===null?(Sn=hn.child,hn.child=null):(Sn=gn.sibling,gn.sibling=null),hf(hn,!1,Sn,gn,_n);break;case"backwards":for(gn=null,Sn=hn.child,hn.child=null;Sn!==null;){if(dn=Sn.alternate,dn!==null&&Nh(dn)===null){hn.child=Sn;break}dn=Sn.sibling,Sn.sibling=gn,gn=Sn,Sn=dn}hf(hn,!0,gn,null,_n);break;case"together":hf(hn,!1,null,null,void 0);break;default:hn.memoizedState=null}return hn.child}function mc(dn,hn,gn){if(dn!==null&&(hn.dependencies=dn.dependencies),Xc|=hn.lanes,!(gn&hn.childLanes))if(dn!==null){if(Ud(dn,hn,gn,!1),(gn&hn.childLanes)===0)return null}else return null;if(dn!==null&&hn.child!==dn.child)throw Error(sn(153));if(hn.child!==null){for(dn=hn.child,gn=qc(dn,dn.pendingProps),hn.child=gn,gn.return=hn;dn.sibling!==null;)dn=dn.sibling,gn=gn.sibling=qc(dn,dn.pendingProps),gn.return=hn;gn.sibling=null}return hn.child}function pf(dn,hn){return dn.lanes&hn?!0:(dn=dn.dependencies,!!(dn!==null&&Wh(dn)))}function p1(dn,hn,gn){switch(hn.tag){case 3:Fl(hn,hn.stateNode.containerInfo),zc(hn,vl,dn.memoizedState.cache),Dd();break;case 27:case 5:bl(hn);break;case 4:Fl(hn,hn.stateNode.containerInfo);break;case 10:zc(hn,hn.type,hn.memoizedProps.value);break;case 13:var bn=hn.memoizedState;if(bn!==null)return bn.dehydrated!==null?(Ic(hn),hn.flags|=128,null):gn&hn.child.childLanes?_m(dn,hn,gn):(Ic(hn),dn=mc(dn,hn,gn),dn!==null?dn.sibling:null);Ic(hn);break;case 19:var Sn=(dn.flags&128)!==0;if(bn=(gn&hn.childLanes)!==0,bn||(Ud(dn,hn,gn,!1),bn=(gn&hn.childLanes)!==0),Sn){if(bn)return Dm(dn,hn,gn);hn.flags|=128}if(Sn=hn.memoizedState,Sn!==null&&(Sn.rendering=null,Sn.tail=null,Sn.lastEffect=null),Wr(xl,xl.current),bn)break;return null;case 22:case 23:return hn.lanes=0,Cm(dn,hn,gn);case 24:zc(hn,vl,dn.memoizedState.cache)}return mc(dn,hn,gn)}function Tm(dn,hn,gn){if(dn!==null)if(dn.memoizedProps!==hn.pendingProps)jl=!0;else{if(!pf(dn,gn)&&!(hn.flags&128))return jl=!1,p1(dn,hn,gn);jl=!!(dn.flags&131072)}else jl=!1,Is&&hn.flags&1048576&&g0(hn,kh,hn.index);switch(hn.lanes=0,hn.tag){case 16:e:{dn=hn.pendingProps;var bn=hn.elementType,Sn=bn._init;if(bn=Sn(bn._payload),hn.type=bn,typeof bn=="function")Rf(bn)?(dn=wu(bn,dn),hn.tag=1,hn=Rm(null,hn,bn,dn,gn)):(hn.tag=0,hn=af(null,hn,bn,dn,gn));else{if(bn!=null){if(Sn=bn.$$typeof,Sn===An){hn.tag=11,hn=wm(null,hn,bn,dn,gn);break e}else if(Sn===Mn){hn.tag=14,hn=Em(null,hn,bn,dn,gn);break e}}throw hn=Fn(bn)||bn,Error(sn(306,hn,""))}}return hn;case 0:return af(dn,hn,hn.type,hn.pendingProps,gn);case 1:return bn=hn.type,Sn=wu(bn,hn.pendingProps),Rm(dn,hn,bn,Sn,gn);case 3:e:{if(Fl(hn,hn.stateNode.containerInfo),dn===null)throw Error(sn(387));var _n=hn.pendingProps;Sn=hn.memoizedState,bn=Sn.element,vf(dn,hn),Yd(hn,_n,null,gn);var Bn=hn.memoizedState;if(_n=Bn.cache,zc(hn,vl,_n),_n!==Sn.cache&&gf(hn,[vl],gn,!0),Wd(),_n=Bn.element,Sn.isDehydrated)if(Sn={element:_n,isDehydrated:!1,cache:Bn.cache},hn.updateQueue.baseState=Sn,hn.memoizedState=Sn,hn.flags&256){hn=km(dn,hn,_n,gn);break e}else if(_n!==bn){bn=po(Error(sn(424)),hn),Td(bn),hn=km(dn,hn,_n,gn);break e}else for(Ml=Io(hn.stateNode.containerInfo.firstChild),Hl=hn,Is=!0,Lo=null,Xo=!0,gn=j0(hn,null,_n,gn),hn.child=gn;gn;)gn.flags=gn.flags&-3|4096,gn=gn.sibling;else{if(Dd(),_n===bn){hn=mc(dn,hn,gn);break e}Dl(dn,hn,_n,gn)}hn=hn.child}return hn;case 26:return $d(dn,hn),dn===null?(gn=Og(hn.type,null,hn.pendingProps,null))?hn.memoizedState=gn:Is||(gn=hn.type,dn=hn.pendingProps,bn=lp(Ns.current).createElement(gn),bn[Xs]=hn,bn[Qs]=dn,Tl(bn,gn,dn),cl(bn),hn.stateNode=bn):hn.memoizedState=Og(hn.type,dn.memoizedProps,hn.pendingProps,dn.memoizedState),null;case 27:return bl(hn),dn===null&&Is&&(bn=hn.stateNode=Tg(hn.type,hn.pendingProps,Ns.current),Hl=hn,Xo=!0,Ml=Io(bn.firstChild)),bn=hn.pendingProps.children,dn!==null||Is?Dl(dn,hn,bn,gn):hn.child=gu(hn,null,bn,gn),$d(dn,hn),hn.child;case 5:return dn===null&&Is&&((Sn=bn=Ml)&&(bn=U1(bn,hn.type,hn.pendingProps,Xo),bn!==null?(hn.stateNode=bn,Hl=hn,Ml=Io(bn.firstChild),Xo=!1,Sn=!0):Sn=!1),Sn||mu(hn)),bl(hn),Sn=hn.type,_n=hn.pendingProps,Bn=dn!==null?dn.memoizedProps:null,bn=_n.children,Jf(Sn,_n)?bn=null:Bn!==null&&Jf(Sn,Bn)&&(hn.flags|=32),hn.memoizedState!==null&&(Sn=zp(dn,hn,s1,null,null,gn),lh._currentValue=Sn),$d(dn,hn),Dl(dn,hn,bn,gn),hn.child;case 6:return dn===null&&Is&&((dn=gn=Ml)&&(gn=V1(gn,hn.pendingProps,Xo),gn!==null?(hn.stateNode=gn,Hl=hn,Ml=null,dn=!0):dn=!1),dn||mu(hn)),null;case 13:return _m(dn,hn,gn);case 4:return Fl(hn,hn.stateNode.containerInfo),bn=hn.pendingProps,dn===null?hn.child=gu(hn,null,bn,gn):Dl(dn,hn,bn,gn),hn.child;case 11:return wm(dn,hn,hn.type,hn.pendingProps,gn);case 7:return Dl(dn,hn,hn.pendingProps,gn),hn.child;case 8:return Dl(dn,hn,hn.pendingProps.children,gn),hn.child;case 12:return Dl(dn,hn,hn.pendingProps.children,gn),hn.child;case 10:return bn=hn.pendingProps,zc(hn,hn.type,bn.value),Dl(dn,hn,bn.children,gn),hn.child;case 9:return Sn=hn.type._context,bn=hn.pendingProps.children,Au(hn),Sn=Nl(Sn),bn=bn(Sn),hn.flags|=1,Dl(dn,hn,bn,gn),hn.child;case 14:return Em(dn,hn,hn.type,hn.pendingProps,gn);case 15:return Am(dn,hn,hn.type,hn.pendingProps,gn);case 19:return Dm(dn,hn,gn);case 22:return Cm(dn,hn,gn);case 24:return Au(hn),bn=Nl(vl),dn===null?(Sn=Bp(),Sn===null&&(Sn=Ys,_n=Ip(),Sn.pooledCache=_n,_n.refCount++,_n!==null&&(Sn.pooledCacheLanes|=gn),Sn=_n),hn.memoizedState={parent:bn,cache:Sn},xf(hn),zc(hn,vl,Sn)):(dn.lanes&gn&&(vf(dn,hn),Yd(hn,null,null,gn),Wd()),Sn=dn.memoizedState,_n=hn.memoizedState,Sn.parent!==bn?(Sn={parent:bn,cache:bn},hn.memoizedState=Sn,hn.lanes===0&&(hn.memoizedState=hn.updateQueue.baseState=Sn),zc(hn,vl,bn)):(bn=_n.cache,zc(hn,vl,bn),bn!==Sn.cache&&gf(hn,[vl],gn,!0))),Dl(dn,hn,hn.pendingProps.children,gn),hn.child;case 29:throw hn.pendingProps}throw Error(sn(156,hn.tag))}var ff=Pr(null),Eu=null,gc=null;function zc(dn,hn,gn){Wr(ff,hn._currentValue),hn._currentValue=gn}function xc(dn){dn._currentValue=ff.current,Xr(ff)}function mf(dn,hn,gn){for(;dn!==null;){var bn=dn.alternate;if((dn.childLanes&hn)!==hn?(dn.childLanes|=hn,bn!==null&&(bn.childLanes|=hn)):bn!==null&&(bn.childLanes&hn)!==hn&&(bn.childLanes|=hn),dn===gn)break;dn=dn.return}}function gf(dn,hn,gn,bn){var Sn=dn.child;for(Sn!==null&&(Sn.return=dn);Sn!==null;){var _n=Sn.dependencies;if(_n!==null){var Bn=Sn.child;_n=_n.firstContext;e:for(;_n!==null;){var Vn=_n;_n=Sn;for(var Kn=0;Kn<hn.length;Kn++)if(Vn.context===hn[Kn]){_n.lanes|=gn,Vn=_n.alternate,Vn!==null&&(Vn.lanes|=gn),mf(_n.return,gn,dn),bn||(Bn=null);break e}_n=Vn.next}}else if(Sn.tag===18){if(Bn=Sn.return,Bn===null)throw Error(sn(341));Bn.lanes|=gn,_n=Bn.alternate,_n!==null&&(_n.lanes|=gn),mf(Bn,gn,dn),Bn=null}else Bn=Sn.child;if(Bn!==null)Bn.return=Sn;else for(Bn=Sn;Bn!==null;){if(Bn===dn){Bn=null;break}if(Sn=Bn.sibling,Sn!==null){Sn.return=Bn.return,Bn=Sn;break}Bn=Bn.return}Sn=Bn}}function Ud(dn,hn,gn,bn){dn=null;for(var Sn=hn,_n=!1;Sn!==null;){if(!_n){if(Sn.flags&524288)_n=!0;else if(Sn.flags&262144)break}if(Sn.tag===10){var Bn=Sn.alternate;if(Bn===null)throw Error(sn(387));if(Bn=Bn.memoizedProps,Bn!==null){var Vn=Sn.type;El(Sn.pendingProps.value,Bn.value)||(dn!==null?dn.push(Vn):dn=[Vn])}}else if(Sn===tl.current){if(Bn=Sn.alternate,Bn===null)throw Error(sn(387));Bn.memoizedState.memoizedState!==Sn.memoizedState.memoizedState&&(dn!==null?dn.push(lh):dn=[lh])}Sn=Sn.return}dn!==null&&gf(hn,dn,gn,bn),hn.flags|=262144}function Wh(dn){for(dn=dn.firstContext;dn!==null;){if(!El(dn.context._currentValue,dn.memoizedValue))return!0;dn=dn.next}return!1}function Au(dn){Eu=dn,gc=null,dn=dn.dependencies,dn!==null&&(dn.firstContext=null)}function Nl(dn){return Nm(Eu,dn)}function Yh(dn,hn){return Eu===null&&Au(dn),Nm(dn,hn)}function Nm(dn,hn){var gn=hn._currentValue;if(hn={context:hn,memoizedValue:gn,next:null},gc===null){if(dn===null)throw Error(sn(308));gc=hn,dn.dependencies={lanes:0,firstContext:hn},dn.flags|=524288}else gc=gc.next=hn;return gn}var Fc=!1;function xf(dn){dn.updateQueue={baseState:dn.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vf(dn,hn){dn=dn.updateQueue,hn.updateQueue===dn&&(hn.updateQueue={baseState:dn.baseState,firstBaseUpdate:dn.firstBaseUpdate,lastBaseUpdate:dn.lastBaseUpdate,shared:dn.shared,callbacks:null})}function $c(dn){return{lane:dn,tag:0,payload:null,callback:null,next:null}}function Uc(dn,hn,gn){var bn=dn.updateQueue;if(bn===null)return null;if(bn=bn.shared,el&2){var Sn=bn.pending;return Sn===null?hn.next=hn:(hn.next=Sn.next,Sn.next=hn),bn.pending=hn,hn=Sh(dn),f0(dn,null,gn),hn}return jh(dn,bn,hn,gn),Sh(dn)}function Vd(dn,hn,gn){if(hn=hn.updateQueue,hn!==null&&(hn=hn.shared,(gn&4194176)!==0)){var bn=hn.lanes;bn&=dn.pendingLanes,gn|=bn,hn.lanes=gn,Ur(dn,gn)}}function bf(dn,hn){var gn=dn.updateQueue,bn=dn.alternate;if(bn!==null&&(bn=bn.updateQueue,gn===bn)){var Sn=null,_n=null;if(gn=gn.firstBaseUpdate,gn!==null){do{var Bn={lane:gn.lane,tag:gn.tag,payload:gn.payload,callback:null,next:null};_n===null?Sn=_n=Bn:_n=_n.next=Bn,gn=gn.next}while(gn!==null);_n===null?Sn=_n=hn:_n=_n.next=hn}else Sn=_n=hn;gn={baseState:bn.baseState,firstBaseUpdate:Sn,lastBaseUpdate:_n,shared:bn.shared,callbacks:bn.callbacks},dn.updateQueue=gn;return}dn=gn.lastBaseUpdate,dn===null?gn.firstBaseUpdate=hn:dn.next=hn,gn.lastBaseUpdate=hn}var yf=!1;function Wd(){if(yf){var dn=Qu;if(dn!==null)throw dn}}function Yd(dn,hn,gn,bn){yf=!1;var Sn=dn.updateQueue;Fc=!1;var _n=Sn.firstBaseUpdate,Bn=Sn.lastBaseUpdate,Vn=Sn.shared.pending;if(Vn!==null){Sn.shared.pending=null;var Kn=Vn,or=Kn.next;Kn.next=null,Bn===null?_n=or:Bn.next=or,Bn=Kn;var Sr=dn.alternate;Sr!==null&&(Sr=Sr.updateQueue,Vn=Sr.lastBaseUpdate,Vn!==Bn&&(Vn===null?Sr.firstBaseUpdate=or:Vn.next=or,Sr.lastBaseUpdate=Kn))}if(_n!==null){var Mr=Sn.baseState;Bn=0,Sr=or=Kn=null,Vn=_n;do{var xr=Vn.lane&-536870913,Cr=xr!==Vn.lane;if(Cr?(Ls&xr)===xr:(bn&xr)===xr){xr!==0&&xr===Ku&&(yf=!0),Sr!==null&&(Sr=Sr.next={lane:0,tag:Vn.tag,payload:Vn.payload,callback:null,next:null});e:{var Gr=dn,ys=Vn;xr=hn;var il=gn;switch(ys.tag){case 1:if(Gr=ys.payload,typeof Gr=="function"){Mr=Gr.call(il,Mr,xr);break e}Mr=Gr;break e;case 3:Gr.flags=Gr.flags&-65537|128;case 0:if(Gr=ys.payload,xr=typeof Gr=="function"?Gr.call(il,Mr,xr):Gr,xr==null)break e;Mr=Yn({},Mr,xr);break e;case 2:Fc=!0}}xr=Vn.callback,xr!==null&&(dn.flags|=64,Cr&&(dn.flags|=8192),Cr=Sn.callbacks,Cr===null?Sn.callbacks=[xr]:Cr.push(xr))}else Cr={lane:xr,tag:Vn.tag,payload:Vn.payload,callback:Vn.callback,next:null},Sr===null?(or=Sr=Cr,Kn=Mr):Sr=Sr.next=Cr,Bn|=xr;if(Vn=Vn.next,Vn===null){if(Vn=Sn.shared.pending,Vn===null)break;Cr=Vn,Vn=Cr.next,Cr.next=null,Sn.lastBaseUpdate=Cr,Sn.shared.pending=null}}while(!0);Sr===null&&(Kn=Mr),Sn.baseState=Kn,Sn.firstBaseUpdate=or,Sn.lastBaseUpdate=Sr,_n===null&&(Sn.shared.lanes=0),Xc|=Bn,dn.lanes=Bn,dn.memoizedState=Mr}}function Lm(dn,hn){if(typeof dn!="function")throw Error(sn(191,dn));dn.call(hn)}function Om(dn,hn){var gn=dn.callbacks;if(gn!==null)for(dn.callbacks=null,dn=0;dn<gn.length;dn++)Lm(gn[dn],hn)}function qd(dn,hn){try{var gn=hn.updateQueue,bn=gn!==null?gn.lastEffect:null;if(bn!==null){var Sn=bn.next;gn=Sn;do{if((gn.tag&dn)===dn){bn=void 0;var _n=gn.create,Bn=gn.inst;bn=_n(),Bn.destroy=bn}gn=gn.next}while(gn!==Sn)}}catch(Vn){Us(hn,hn.return,Vn)}}function Vc(dn,hn,gn){try{var bn=hn.updateQueue,Sn=bn!==null?bn.lastEffect:null;if(Sn!==null){var _n=Sn.next;bn=_n;do{if((bn.tag&dn)===dn){var Bn=bn.inst,Vn=Bn.destroy;if(Vn!==void 0){Bn.destroy=void 0,Sn=hn;var Kn=gn;try{Vn()}catch(or){Us(Sn,Kn,or)}}}bn=bn.next}while(bn!==_n)}}catch(or){Us(hn,hn.return,or)}}function Im(dn){var hn=dn.updateQueue;if(hn!==null){var gn=dn.stateNode;try{Om(hn,gn)}catch(bn){Us(dn,dn.return,bn)}}}function Pm(dn,hn,gn){gn.props=wu(dn.type,dn.memoizedProps),gn.state=dn.memoizedState;try{gn.componentWillUnmount()}catch(bn){Us(dn,hn,bn)}}function Cu(dn,hn){try{var gn=dn.ref;if(gn!==null){var bn=dn.stateNode;switch(dn.tag){case 26:case 27:case 5:var Sn=bn;break;default:Sn=bn}typeof gn=="function"?dn.refCleanup=gn(Sn):gn.current=Sn}}catch(_n){Us(dn,hn,_n)}}function Ql(dn,hn){var gn=dn.ref,bn=dn.refCleanup;if(gn!==null)if(typeof bn=="function")try{bn()}catch(Sn){Us(dn,hn,Sn)}finally{dn.refCleanup=null,dn=dn.alternate,dn!=null&&(dn.refCleanup=null)}else if(typeof gn=="function")try{gn(null)}catch(Sn){Us(dn,hn,Sn)}else gn.current=null}function Bm(dn){var hn=dn.type,gn=dn.memoizedProps,bn=dn.stateNode;try{e:switch(hn){case"button":case"input":case"select":case"textarea":gn.autoFocus&&bn.focus();break e;case"img":gn.src?bn.src=gn.src:gn.srcSet&&(bn.srcset=gn.srcSet)}}catch(Sn){Us(dn,dn.return,Sn)}}function Hm(dn,hn,gn){try{var bn=dn.stateNode;B1(bn,dn.type,gn,hn),bn[Qs]=hn}catch(Sn){Us(dn,dn.return,Sn)}}function zm(dn){return dn.tag===5||dn.tag===3||dn.tag===26||dn.tag===27||dn.tag===4}function wf(dn){e:for(;;){for(;dn.sibling===null;){if(dn.return===null||zm(dn.return))return null;dn=dn.return}for(dn.sibling.return=dn.return,dn=dn.sibling;dn.tag!==5&&dn.tag!==6&&dn.tag!==27&&dn.tag!==18;){if(dn.flags&2||dn.child===null||dn.tag===4)continue e;dn.child.return=dn,dn=dn.child}if(!(dn.flags&2))return dn.stateNode}}function Ef(dn,hn,gn){var bn=dn.tag;if(bn===5||bn===6)dn=dn.stateNode,hn?gn.nodeType===8?gn.parentNode.insertBefore(dn,hn):gn.insertBefore(dn,hn):(gn.nodeType===8?(hn=gn.parentNode,hn.insertBefore(dn,gn)):(hn=gn,hn.appendChild(dn)),gn=gn._reactRootContainer,gn!=null||hn.onclick!==null||(hn.onclick=sp));else if(bn!==4&&bn!==27&&(dn=dn.child,dn!==null))for(Ef(dn,hn,gn),dn=dn.sibling;dn!==null;)Ef(dn,hn,gn),dn=dn.sibling}function qh(dn,hn,gn){var bn=dn.tag;if(bn===5||bn===6)dn=dn.stateNode,hn?gn.insertBefore(dn,hn):gn.appendChild(dn);else if(bn!==4&&bn!==27&&(dn=dn.child,dn!==null))for(qh(dn,hn,gn),dn=dn.sibling;dn!==null;)qh(dn,hn,gn),dn=dn.sibling}var vc=!1,rl=!1,Af=!1,Fm=typeof WeakSet=="function"?WeakSet:Set,Sl=null,$m=!1;function f1(dn,hn){if(dn=dn.containerInfo,Kf=pp,dn=_d(dn),Gn(dn)){if("selectionStart"in dn)var gn={start:dn.selectionStart,end:dn.selectionEnd};else e:{gn=(gn=dn.ownerDocument)&&gn.defaultView||window;var bn=gn.getSelection&&gn.getSelection();if(bn&&bn.rangeCount!==0){gn=bn.anchorNode;var Sn=bn.anchorOffset,_n=bn.focusNode;bn=bn.focusOffset;try{gn.nodeType,_n.nodeType}catch{gn=null;break e}var Bn=0,Vn=-1,Kn=-1,or=0,Sr=0,Mr=dn,xr=null;t:for(;;){for(var Cr;Mr!==gn||Sn!==0&&Mr.nodeType!==3||(Vn=Bn+Sn),Mr!==_n||bn!==0&&Mr.nodeType!==3||(Kn=Bn+bn),Mr.nodeType===3&&(Bn+=Mr.nodeValue.length),(Cr=Mr.firstChild)!==null;)xr=Mr,Mr=Cr;for(;;){if(Mr===dn)break t;if(xr===gn&&++or===Sn&&(Vn=Bn),xr===_n&&++Sr===bn&&(Kn=Bn),(Cr=Mr.nextSibling)!==null)break;Mr=xr,xr=Mr.parentNode}Mr=Cr}gn=Vn===-1||Kn===-1?null:{start:Vn,end:Kn}}else gn=null}gn=gn||{start:0,end:0}}else gn=null;for(Qf={focusedElem:dn,selectionRange:gn},pp=!1,Sl=hn;Sl!==null;)if(hn=Sl,dn=hn.child,(hn.subtreeFlags&1028)!==0&&dn!==null)dn.return=hn,Sl=dn;else for(;Sl!==null;){switch(hn=Sl,_n=hn.alternate,dn=hn.flags,hn.tag){case 0:break;case 11:case 15:break;case 1:if(dn&1024&&_n!==null){dn=void 0,gn=hn,Sn=_n.memoizedProps,_n=_n.memoizedState,bn=gn.stateNode;try{var Gr=wu(gn.type,Sn,gn.elementType===gn.type);dn=bn.getSnapshotBeforeUpdate(Gr,_n),bn.__reactInternalSnapshotBeforeUpdate=dn}catch(ys){Us(gn,gn.return,ys)}}break;case 3:if(dn&1024){if(dn=hn.stateNode.containerInfo,gn=dn.nodeType,gn===9)n0(dn);else if(gn===1)switch(dn.nodeName){case"HEAD":case"HTML":case"BODY":n0(dn);break;default:dn.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(dn&1024)throw Error(sn(163))}if(dn=hn.sibling,dn!==null){dn.return=hn.return,Sl=dn;break}Sl=hn.return}return Gr=$m,$m=!1,Gr}function Um(dn,hn,gn){var bn=gn.flags;switch(gn.tag){case 0:case 11:case 15:yc(dn,gn),bn&4&&qd(5,gn);break;case 1:if(yc(dn,gn),bn&4)if(dn=gn.stateNode,hn===null)try{dn.componentDidMount()}catch(Vn){Us(gn,gn.return,Vn)}else{var Sn=wu(gn.type,hn.memoizedProps);hn=hn.memoizedState;try{dn.componentDidUpdate(Sn,hn,dn.__reactInternalSnapshotBeforeUpdate)}catch(Vn){Us(gn,gn.return,Vn)}}bn&64&&Im(gn),bn&512&&Cu(gn,gn.return);break;case 3:if(yc(dn,gn),bn&64&&(bn=gn.updateQueue,bn!==null)){if(dn=null,gn.child!==null)switch(gn.child.tag){case 27:case 5:dn=gn.child.stateNode;break;case 1:dn=gn.child.stateNode}try{Om(bn,dn)}catch(Vn){Us(gn,gn.return,Vn)}}break;case 26:yc(dn,gn),bn&512&&Cu(gn,gn.return);break;case 27:case 5:yc(dn,gn),hn===null&&bn&4&&Bm(gn),bn&512&&Cu(gn,gn.return);break;case 12:yc(dn,gn);break;case 13:yc(dn,gn),bn&4&&Ym(dn,gn);break;case 22:if(Sn=gn.memoizedState!==null||vc,!Sn){hn=hn!==null&&hn.memoizedState!==null||rl;var _n=vc,Bn=rl;vc=Sn,(rl=hn)&&!Bn?Wc(dn,gn,(gn.subtreeFlags&8772)!==0):yc(dn,gn),vc=_n,rl=Bn}bn&512&&(gn.memoizedProps.mode==="manual"?Cu(gn,gn.return):Ql(gn,gn.return));break;default:yc(dn,gn)}}function Vm(dn){var hn=dn.alternate;hn!==null&&(dn.alternate=null,Vm(hn)),dn.child=null,dn.deletions=null,dn.sibling=null,dn.tag===5&&(hn=dn.stateNode,hn!==null&&ec(hn)),dn.stateNode=null,dn.return=null,dn.dependencies=null,dn.memoizedProps=null,dn.memoizedState=null,dn.pendingProps=null,dn.stateNode=null,dn.updateQueue=null}var fl=null,Jl=!1;function bc(dn,hn,gn){for(gn=gn.child;gn!==null;)Wm(dn,hn,gn),gn=gn.sibling}function Wm(dn,hn,gn){if(zs&&typeof zs.onCommitFiberUnmount=="function")try{zs.onCommitFiberUnmount(ll,gn)}catch{}switch(gn.tag){case 26:rl||Ql(gn,hn),bc(dn,hn,gn),gn.memoizedState?gn.memoizedState.count--:gn.stateNode&&(gn=gn.stateNode,gn.parentNode.removeChild(gn));break;case 27:rl||Ql(gn,hn);var bn=fl,Sn=Jl;for(fl=gn.stateNode,bc(dn,hn,gn),gn=gn.stateNode,hn=gn.attributes;hn.length;)gn.removeAttributeNode(hn[0]);ec(gn),fl=bn,Jl=Sn;break;case 5:rl||Ql(gn,hn);case 6:Sn=fl;var _n=Jl;if(fl=null,bc(dn,hn,gn),fl=Sn,Jl=_n,fl!==null)if(Jl)try{dn=fl,bn=gn.stateNode,dn.nodeType===8?dn.parentNode.removeChild(bn):dn.removeChild(bn)}catch(Bn){Us(gn,hn,Bn)}else try{fl.removeChild(gn.stateNode)}catch(Bn){Us(gn,hn,Bn)}break;case 18:fl!==null&&(Jl?(hn=fl,gn=gn.stateNode,hn.nodeType===8?t0(hn.parentNode,gn):hn.nodeType===1&&t0(hn,gn),dh(hn)):t0(fl,gn.stateNode));break;case 4:bn=fl,Sn=Jl,fl=gn.stateNode.containerInfo,Jl=!0,bc(dn,hn,gn),fl=bn,Jl=Sn;break;case 0:case 11:case 14:case 15:rl||Vc(2,gn,hn),rl||Vc(4,gn,hn),bc(dn,hn,gn);break;case 1:rl||(Ql(gn,hn),bn=gn.stateNode,typeof bn.componentWillUnmount=="function"&&Pm(gn,hn,bn)),bc(dn,hn,gn);break;case 21:bc(dn,hn,gn);break;case 22:rl||Ql(gn,hn),rl=(bn=rl)||gn.memoizedState!==null,bc(dn,hn,gn),rl=bn;break;default:bc(dn,hn,gn)}}function Ym(dn,hn){if(hn.memoizedState===null&&(dn=hn.alternate,dn!==null&&(dn=dn.memoizedState,dn!==null&&(dn=dn.dehydrated,dn!==null))))try{dh(dn)}catch(gn){Us(hn,hn.return,gn)}}function m1(dn){switch(dn.tag){case 13:case 19:var hn=dn.stateNode;return hn===null&&(hn=dn.stateNode=new Fm),hn;case 22:return dn=dn.stateNode,hn=dn._retryCache,hn===null&&(hn=dn._retryCache=new Fm),hn;default:throw Error(sn(435,dn.tag))}}function Cf(dn,hn){var gn=m1(dn);hn.forEach(function(bn){var Sn=k1.bind(null,dn,bn);gn.has(bn)||(gn.add(bn),bn.then(Sn,Sn))})}function xo(dn,hn){var gn=hn.deletions;if(gn!==null)for(var bn=0;bn<gn.length;bn++){var Sn=gn[bn],_n=dn,Bn=hn,Vn=Bn;e:for(;Vn!==null;){switch(Vn.tag){case 27:case 5:fl=Vn.stateNode,Jl=!1;break e;case 3:fl=Vn.stateNode.containerInfo,Jl=!0;break e;case 4:fl=Vn.stateNode.containerInfo,Jl=!0;break e}Vn=Vn.return}if(fl===null)throw Error(sn(160));Wm(_n,Bn,Sn),fl=null,Jl=!1,_n=Sn.alternate,_n!==null&&(_n.return=null),Sn.return=null}if(hn.subtreeFlags&13878)for(hn=hn.child;hn!==null;)qm(hn,dn),hn=hn.sibling}var Oo=null;function qm(dn,hn){var gn=dn.alternate,bn=dn.flags;switch(dn.tag){case 0:case 11:case 14:case 15:xo(hn,dn),vo(dn),bn&4&&(Vc(3,dn,dn.return),qd(3,dn),Vc(5,dn,dn.return));break;case 1:xo(hn,dn),vo(dn),bn&512&&(rl||gn===null||Ql(gn,gn.return)),bn&64&&vc&&(dn=dn.updateQueue,dn!==null&&(bn=dn.callbacks,bn!==null&&(gn=dn.shared.hiddenCallbacks,dn.shared.hiddenCallbacks=gn===null?bn:gn.concat(bn))));break;case 26:var Sn=Oo;if(xo(hn,dn),vo(dn),bn&512&&(rl||gn===null||Ql(gn,gn.return)),bn&4){var _n=gn!==null?gn.memoizedState:null;if(bn=dn.memoizedState,gn===null)if(bn===null)if(dn.stateNode===null){e:{bn=dn.type,gn=dn.memoizedProps,Sn=Sn.ownerDocument||Sn;t:switch(bn){case"title":_n=Sn.getElementsByTagName("title")[0],(!_n||_n[Ao]||_n[Xs]||_n.namespaceURI==="http://www.w3.org/2000/svg"||_n.hasAttribute("itemprop"))&&(_n=Sn.createElement(bn),Sn.head.insertBefore(_n,Sn.querySelector("head > title"))),Tl(_n,bn,gn),_n[Xs]=dn,cl(_n),bn=_n;break e;case"link":var Bn=Bg("link","href",Sn).get(bn+(gn.href||""));if(Bn){for(var Vn=0;Vn<Bn.length;Vn++)if(_n=Bn[Vn],_n.getAttribute("href")===(gn.href==null?null:gn.href)&&_n.getAttribute("rel")===(gn.rel==null?null:gn.rel)&&_n.getAttribute("title")===(gn.title==null?null:gn.title)&&_n.getAttribute("crossorigin")===(gn.crossOrigin==null?null:gn.crossOrigin)){Bn.splice(Vn,1);break t}}_n=Sn.createElement(bn),Tl(_n,bn,gn),Sn.head.appendChild(_n);break;case"meta":if(Bn=Bg("meta","content",Sn).get(bn+(gn.content||""))){for(Vn=0;Vn<Bn.length;Vn++)if(_n=Bn[Vn],_n.getAttribute("content")===(gn.content==null?null:""+gn.content)&&_n.getAttribute("name")===(gn.name==null?null:gn.name)&&_n.getAttribute("property")===(gn.property==null?null:gn.property)&&_n.getAttribute("http-equiv")===(gn.httpEquiv==null?null:gn.httpEquiv)&&_n.getAttribute("charset")===(gn.charSet==null?null:gn.charSet)){Bn.splice(Vn,1);break t}}_n=Sn.createElement(bn),Tl(_n,bn,gn),Sn.head.appendChild(_n);break;default:throw Error(sn(468,bn))}_n[Xs]=dn,cl(_n),bn=_n}dn.stateNode=bn}else Hg(Sn,dn.type,dn.stateNode);else dn.stateNode=Pg(Sn,bn,dn.memoizedProps);else _n!==bn?(_n===null?gn.stateNode!==null&&(gn=gn.stateNode,gn.parentNode.removeChild(gn)):_n.count--,bn===null?Hg(Sn,dn.type,dn.stateNode):Pg(Sn,bn,dn.memoizedProps)):bn===null&&dn.stateNode!==null&&Hm(dn,dn.memoizedProps,gn.memoizedProps)}break;case 27:if(bn&4&&dn.alternate===null){Sn=dn.stateNode,_n=dn.memoizedProps;try{for(var Kn=Sn.firstChild;Kn;){var or=Kn.nextSibling,Sr=Kn.nodeName;Kn[Ao]||Sr==="HEAD"||Sr==="BODY"||Sr==="SCRIPT"||Sr==="STYLE"||Sr==="LINK"&&Kn.rel.toLowerCase()==="stylesheet"||Sn.removeChild(Kn),Kn=or}for(var Mr=dn.type,xr=Sn.attributes;xr.length;)Sn.removeAttributeNode(xr[0]);Tl(Sn,Mr,_n),Sn[Xs]=dn,Sn[Qs]=_n}catch(Gr){Us(dn,dn.return,Gr)}}case 5:if(xo(hn,dn),vo(dn),bn&512&&(rl||gn===null||Ql(gn,gn.return)),dn.flags&32){Sn=dn.stateNode;try{Mc(Sn,"")}catch(Gr){Us(dn,dn.return,Gr)}}bn&4&&dn.stateNode!=null&&(Sn=dn.memoizedProps,Hm(dn,Sn,gn!==null?gn.memoizedProps:Sn)),bn&1024&&(Af=!0);break;case 6:if(xo(hn,dn),vo(dn),bn&4){if(dn.stateNode===null)throw Error(sn(162));bn=dn.memoizedProps,gn=dn.stateNode;try{gn.nodeValue=bn}catch(Gr){Us(dn,dn.return,Gr)}}break;case 3:if(up=null,Sn=Oo,Oo=op(hn.containerInfo),xo(hn,dn),Oo=Sn,vo(dn),bn&4&&gn!==null&&gn.memoizedState.isDehydrated)try{dh(hn.containerInfo)}catch(Gr){Us(dn,dn.return,Gr)}Af&&(Af=!1,Xm(dn));break;case 4:bn=Oo,Oo=op(dn.stateNode.containerInfo),xo(hn,dn),vo(dn),Oo=bn;break;case 12:xo(hn,dn),vo(dn);break;case 13:xo(hn,dn),vo(dn),dn.child.flags&8192&&dn.memoizedState!==null!=(gn!==null&&gn.memoizedState!==null)&&(Nf=Lr()),bn&4&&(bn=dn.updateQueue,bn!==null&&(dn.updateQueue=null,Cf(dn,bn)));break;case 22:if(bn&512&&(rl||gn===null||Ql(gn,gn.return)),Kn=dn.memoizedState!==null,or=gn!==null&&gn.memoizedState!==null,Sr=vc,Mr=rl,vc=Sr||Kn,rl=Mr||or,xo(hn,dn),rl=Mr,vc=Sr,vo(dn),hn=dn.stateNode,hn._current=dn,hn._visibility&=-3,hn._visibility|=hn._pendingVisibility&2,bn&8192&&(hn._visibility=Kn?hn._visibility&-2:hn._visibility|1,Kn&&(hn=vc||rl,gn===null||or||hn||nd(dn)),dn.memoizedProps===null||dn.memoizedProps.mode!=="manual"))e:for(gn=null,hn=dn;;){if(hn.tag===5||hn.tag===26||hn.tag===27){if(gn===null){or=gn=hn;try{if(Sn=or.stateNode,Kn)_n=Sn.style,typeof _n.setProperty=="function"?_n.setProperty("display","none","important"):_n.display="none";else{Bn=or.stateNode,Vn=or.memoizedProps.style;var Cr=Vn!=null&&Vn.hasOwnProperty("display")?Vn.display:null;Bn.style.display=Cr==null||typeof Cr=="boolean"?"":(""+Cr).trim()}}catch(Gr){Us(or,or.return,Gr)}}}else if(hn.tag===6){if(gn===null){or=hn;try{or.stateNode.nodeValue=Kn?"":or.memoizedProps}catch(Gr){Us(or,or.return,Gr)}}}else if((hn.tag!==22&&hn.tag!==23||hn.memoizedState===null||hn===dn)&&hn.child!==null){hn.child.return=hn,hn=hn.child;continue}if(hn===dn)break e;for(;hn.sibling===null;){if(hn.return===null||hn.return===dn)break e;gn===hn&&(gn=null),hn=hn.return}gn===hn&&(gn=null),hn.sibling.return=hn.return,hn=hn.sibling}bn&4&&(bn=dn.updateQueue,bn!==null&&(gn=bn.retryQueue,gn!==null&&(bn.retryQueue=null,Cf(dn,gn))));break;case 19:xo(hn,dn),vo(dn),bn&4&&(bn=dn.updateQueue,bn!==null&&(dn.updateQueue=null,Cf(dn,bn)));break;case 21:break;default:xo(hn,dn),vo(dn)}}function vo(dn){var hn=dn.flags;if(hn&2){try{if(dn.tag!==27){e:{for(var gn=dn.return;gn!==null;){if(zm(gn)){var bn=gn;break e}gn=gn.return}throw Error(sn(160))}switch(bn.tag){case 27:var Sn=bn.stateNode,_n=wf(dn);qh(dn,_n,Sn);break;case 5:var Bn=bn.stateNode;bn.flags&32&&(Mc(Bn,""),bn.flags&=-33);var Vn=wf(dn);qh(dn,Vn,Bn);break;case 3:case 4:var Kn=bn.stateNode.containerInfo,or=wf(dn);Ef(dn,or,Kn);break;default:throw Error(sn(161))}}}catch(Sr){Us(dn,dn.return,Sr)}dn.flags&=-3}hn&4096&&(dn.flags&=-4097)}function Xm(dn){if(dn.subtreeFlags&1024)for(dn=dn.child;dn!==null;){var hn=dn;Xm(hn),hn.tag===5&&hn.flags&1024&&hn.stateNode.reset(),dn=dn.sibling}}function yc(dn,hn){if(hn.subtreeFlags&8772)for(hn=hn.child;hn!==null;)Um(dn,hn.alternate,hn),hn=hn.sibling}function nd(dn){for(dn=dn.child;dn!==null;){var hn=dn;switch(hn.tag){case 0:case 11:case 14:case 15:Vc(4,hn,hn.return),nd(hn);break;case 1:Ql(hn,hn.return);var gn=hn.stateNode;typeof gn.componentWillUnmount=="function"&&Pm(hn,hn.return,gn),nd(hn);break;case 26:case 27:case 5:Ql(hn,hn.return),nd(hn);break;case 22:Ql(hn,hn.return),hn.memoizedState===null&&nd(hn);break;default:nd(hn)}dn=dn.sibling}}function Wc(dn,hn,gn){for(gn=gn&&(hn.subtreeFlags&8772)!==0,hn=hn.child;hn!==null;){var bn=hn.alternate,Sn=dn,_n=hn,Bn=_n.flags;switch(_n.tag){case 0:case 11:case 15:Wc(Sn,_n,gn),qd(4,_n);break;case 1:if(Wc(Sn,_n,gn),bn=_n,Sn=bn.stateNode,typeof Sn.componentDidMount=="function")try{Sn.componentDidMount()}catch(or){Us(bn,bn.return,or)}if(bn=_n,Sn=bn.updateQueue,Sn!==null){var Vn=bn.stateNode;try{var Kn=Sn.shared.hiddenCallbacks;if(Kn!==null)for(Sn.shared.hiddenCallbacks=null,Sn=0;Sn<Kn.length;Sn++)Lm(Kn[Sn],Vn)}catch(or){Us(bn,bn.return,or)}}gn&&Bn&64&&Im(_n),Cu(_n,_n.return);break;case 26:case 27:case 5:Wc(Sn,_n,gn),gn&&bn===null&&Bn&4&&Bm(_n),Cu(_n,_n.return);break;case 12:Wc(Sn,_n,gn);break;case 13:Wc(Sn,_n,gn),gn&&Bn&4&&Ym(Sn,_n);break;case 22:_n.memoizedState===null&&Wc(Sn,_n,gn),Cu(_n,_n.return);break;default:Wc(Sn,_n,gn)}hn=hn.sibling}}function jf(dn,hn){var gn=null;dn!==null&&dn.memoizedState!==null&&dn.memoizedState.cachePool!==null&&(gn=dn.memoizedState.cachePool.pool),dn=null,hn.memoizedState!==null&&hn.memoizedState.cachePool!==null&&(dn=hn.memoizedState.cachePool.pool),dn!==gn&&(dn!=null&&dn.refCount++,gn!=null&&Pd(gn))}function Sf(dn,hn){dn=null,hn.alternate!==null&&(dn=hn.alternate.memoizedState.cache),hn=hn.memoizedState.cache,hn!==dn&&(hn.refCount++,dn!=null&&Pd(dn))}function Yc(dn,hn,gn,bn){if(hn.subtreeFlags&10256)for(hn=hn.child;hn!==null;)Gm(dn,hn,gn,bn),hn=hn.sibling}function Gm(dn,hn,gn,bn){var Sn=hn.flags;switch(hn.tag){case 0:case 11:case 15:Yc(dn,hn,gn,bn),Sn&2048&&qd(9,hn);break;case 3:Yc(dn,hn,gn,bn),Sn&2048&&(dn=null,hn.alternate!==null&&(dn=hn.alternate.memoizedState.cache),hn=hn.memoizedState.cache,hn!==dn&&(hn.refCount++,dn!=null&&Pd(dn)));break;case 12:if(Sn&2048){Yc(dn,hn,gn,bn),dn=hn.stateNode;try{var _n=hn.memoizedProps,Bn=_n.id,Vn=_n.onPostCommit;typeof Vn=="function"&&Vn(Bn,hn.alternate===null?"mount":"update",dn.passiveEffectDuration,-0)}catch(Kn){Us(hn,hn.return,Kn)}}else Yc(dn,hn,gn,bn);break;case 23:break;case 22:_n=hn.stateNode,hn.memoizedState!==null?_n._visibility&4?Yc(dn,hn,gn,bn):Xd(dn,hn):_n._visibility&4?Yc(dn,hn,gn,bn):(_n._visibility|=4,rd(dn,hn,gn,bn,(hn.subtreeFlags&10256)!==0)),Sn&2048&&jf(hn.alternate,hn);break;case 24:Yc(dn,hn,gn,bn),Sn&2048&&Sf(hn.alternate,hn);break;default:Yc(dn,hn,gn,bn)}}function rd(dn,hn,gn,bn,Sn){for(Sn=Sn&&(hn.subtreeFlags&10256)!==0,hn=hn.child;hn!==null;){var _n=dn,Bn=hn,Vn=gn,Kn=bn,or=Bn.flags;switch(Bn.tag){case 0:case 11:case 15:rd(_n,Bn,Vn,Kn,Sn),qd(8,Bn);break;case 23:break;case 22:var Sr=Bn.stateNode;Bn.memoizedState!==null?Sr._visibility&4?rd(_n,Bn,Vn,Kn,Sn):Xd(_n,Bn):(Sr._visibility|=4,rd(_n,Bn,Vn,Kn,Sn)),Sn&&or&2048&&jf(Bn.alternate,Bn);break;case 24:rd(_n,Bn,Vn,Kn,Sn),Sn&&or&2048&&Sf(Bn.alternate,Bn);break;default:rd(_n,Bn,Vn,Kn,Sn)}hn=hn.sibling}}function Xd(dn,hn){if(hn.subtreeFlags&10256)for(hn=hn.child;hn!==null;){var gn=dn,bn=hn,Sn=bn.flags;switch(bn.tag){case 22:Xd(gn,bn),Sn&2048&&jf(bn.alternate,bn);break;case 24:Xd(gn,bn),Sn&2048&&Sf(bn.alternate,bn);break;default:Xd(gn,bn)}hn=hn.sibling}}var Gd=8192;function ad(dn){if(dn.subtreeFlags&Gd)for(dn=dn.child;dn!==null;)Zm(dn),dn=dn.sibling}function Zm(dn){switch(dn.tag){case 26:ad(dn),dn.flags&Gd&&dn.memoizedState!==null&&rx(Oo,dn.memoizedState,dn.memoizedProps);break;case 5:ad(dn);break;case 3:case 4:var hn=Oo;Oo=op(dn.stateNode.containerInfo),ad(dn),Oo=hn;break;case 22:dn.memoizedState===null&&(hn=dn.alternate,hn!==null&&hn.memoizedState!==null?(hn=Gd,Gd=16777216,ad(dn),Gd=hn):ad(dn));break;default:ad(dn)}}function Km(dn){var hn=dn.alternate;if(hn!==null&&(dn=hn.child,dn!==null)){hn.child=null;do hn=dn.sibling,dn.sibling=null,dn=hn;while(dn!==null)}}function Zd(dn){var hn=dn.deletions;if(dn.flags&16){if(hn!==null)for(var gn=0;gn<hn.length;gn++){var bn=hn[gn];Sl=bn,Jm(bn,dn)}Km(dn)}if(dn.subtreeFlags&10256)for(dn=dn.child;dn!==null;)Qm(dn),dn=dn.sibling}function Qm(dn){switch(dn.tag){case 0:case 11:case 15:Zd(dn),dn.flags&2048&&Vc(9,dn,dn.return);break;case 3:Zd(dn);break;case 12:Zd(dn);break;case 22:var hn=dn.stateNode;dn.memoizedState!==null&&hn._visibility&4&&(dn.return===null||dn.return.tag!==13)?(hn._visibility&=-5,Xh(dn)):Zd(dn);break;default:Zd(dn)}}function Xh(dn){var hn=dn.deletions;if(dn.flags&16){if(hn!==null)for(var gn=0;gn<hn.length;gn++){var bn=hn[gn];Sl=bn,Jm(bn,dn)}Km(dn)}for(dn=dn.child;dn!==null;){switch(hn=dn,hn.tag){case 0:case 11:case 15:Vc(8,hn,hn.return),Xh(hn);break;case 22:gn=hn.stateNode,gn._visibility&4&&(gn._visibility&=-5,Xh(hn));break;default:Xh(hn)}dn=dn.sibling}}function Jm(dn,hn){for(;Sl!==null;){var gn=Sl;switch(gn.tag){case 0:case 11:case 15:Vc(8,gn,hn);break;case 23:case 22:if(gn.memoizedState!==null&&gn.memoizedState.cachePool!==null){var bn=gn.memoizedState.cachePool.pool;bn!=null&&bn.refCount++}break;case 24:Pd(gn.memoizedState.cache)}if(bn=gn.child,bn!==null)bn.return=gn,Sl=bn;else e:for(gn=dn;Sl!==null;){bn=Sl;var Sn=bn.sibling,_n=bn.return;if(Vm(bn),bn===gn){Sl=null;break e}if(Sn!==null){Sn.return=_n,Sl=Sn;break e}Sl=_n}}}function g1(dn,hn,gn,bn){this.tag=dn,this.key=gn,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=hn,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=bn,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bo(dn,hn,gn,bn){return new g1(dn,hn,gn,bn)}function Rf(dn){return dn=dn.prototype,!(!dn||!dn.isReactComponent)}function qc(dn,hn){var gn=dn.alternate;return gn===null?(gn=bo(dn.tag,hn,dn.key,dn.mode),gn.elementType=dn.elementType,gn.type=dn.type,gn.stateNode=dn.stateNode,gn.alternate=dn,dn.alternate=gn):(gn.pendingProps=hn,gn.type=dn.type,gn.flags=0,gn.subtreeFlags=0,gn.deletions=null),gn.flags=dn.flags&31457280,gn.childLanes=dn.childLanes,gn.lanes=dn.lanes,gn.child=dn.child,gn.memoizedProps=dn.memoizedProps,gn.memoizedState=dn.memoizedState,gn.updateQueue=dn.updateQueue,hn=dn.dependencies,gn.dependencies=hn===null?null:{lanes:hn.lanes,firstContext:hn.firstContext},gn.sibling=dn.sibling,gn.index=dn.index,gn.ref=dn.ref,gn.refCleanup=dn.refCleanup,gn}function eg(dn,hn){dn.flags&=31457282;var gn=dn.alternate;return gn===null?(dn.childLanes=0,dn.lanes=hn,dn.child=null,dn.subtreeFlags=0,dn.memoizedProps=null,dn.memoizedState=null,dn.updateQueue=null,dn.dependencies=null,dn.stateNode=null):(dn.childLanes=gn.childLanes,dn.lanes=gn.lanes,dn.child=gn.child,dn.subtreeFlags=0,dn.deletions=null,dn.memoizedProps=gn.memoizedProps,dn.memoizedState=gn.memoizedState,dn.updateQueue=gn.updateQueue,dn.type=gn.type,hn=gn.dependencies,dn.dependencies=hn===null?null:{lanes:hn.lanes,firstContext:hn.firstContext}),dn}function Gh(dn,hn,gn,bn,Sn,_n){var Bn=0;if(bn=dn,typeof dn=="function")Rf(dn)&&(Bn=1);else if(typeof dn=="string")Bn=tx(dn,gn,Ss.current)?26:dn==="html"||dn==="head"||dn==="body"?27:5;else e:switch(dn){case fn:return ju(gn.children,Sn,_n,hn);case mn:Bn=8,Sn|=24;break;case xn:return dn=bo(12,gn,hn,Sn|2),dn.elementType=xn,dn.lanes=_n,dn;case Cn:return dn=bo(13,gn,hn,Sn),dn.elementType=Cn,dn.lanes=_n,dn;case kn:return dn=bo(19,gn,hn,Sn),dn.elementType=kn,dn.lanes=_n,dn;case On:return tg(gn,Sn,_n,hn);default:if(typeof dn=="object"&&dn!==null)switch(dn.$$typeof){case vn:case wn:Bn=10;break e;case yn:Bn=9;break e;case An:Bn=11;break e;case Mn:Bn=14;break e;case Tn:Bn=16,bn=null;break e}Bn=29,gn=Error(sn(130,dn===null?"null":typeof dn,"")),bn=null}return hn=bo(Bn,gn,hn,Sn),hn.elementType=dn,hn.type=bn,hn.lanes=_n,hn}function ju(dn,hn,gn,bn){return dn=bo(7,dn,bn,hn),dn.lanes=gn,dn}function tg(dn,hn,gn,bn){dn=bo(22,dn,bn,hn),dn.elementType=On,dn.lanes=gn;var Sn={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var _n=Sn._current;if(_n===null)throw Error(sn(456));if(!(Sn._pendingVisibility&2)){var Bn=Oc(_n,2);Bn!==null&&(Sn._pendingVisibility|=2,zl(Bn,_n,2))}},attach:function(){var _n=Sn._current;if(_n===null)throw Error(sn(456));if(Sn._pendingVisibility&2){var Bn=Oc(_n,2);Bn!==null&&(Sn._pendingVisibility&=-3,zl(Bn,_n,2))}}};return dn.stateNode=Sn,dn}function kf(dn,hn,gn){return dn=bo(6,dn,null,hn),dn.lanes=gn,dn}function _f(dn,hn,gn){return hn=bo(4,dn.children!==null?dn.children:[],dn.key,hn),hn.lanes=gn,hn.stateNode={containerInfo:dn.containerInfo,pendingChildren:null,implementation:dn.implementation},hn}function wc(dn){dn.flags|=4}function ng(dn,hn){if(hn.type!=="stylesheet"||hn.state.loading&4)dn.flags&=-16777217;else if(dn.flags|=16777216,!zg(hn)){if(hn=go.current,hn!==null&&((Ls&4194176)===Ls?Go!==null:(Ls&62914560)!==Ls&&!(Ls&536870912)||hn!==Go))throw Ld=Np,b0;dn.flags|=8192}}function Zh(dn,hn){hn!==null&&(dn.flags|=4),dn.flags&16384&&(hn=dn.tag!==22?Ir():536870912,dn.lanes|=hn,sd|=hn)}function Kd(dn,hn){if(!Is)switch(dn.tailMode){case"hidden":hn=dn.tail;for(var gn=null;hn!==null;)hn.alternate!==null&&(gn=hn),hn=hn.sibling;gn===null?dn.tail=null:gn.sibling=null;break;case"collapsed":gn=dn.tail;for(var bn=null;gn!==null;)gn.alternate!==null&&(bn=gn),gn=gn.sibling;bn===null?hn||dn.tail===null?dn.tail=null:dn.tail.sibling=null:bn.sibling=null}}function Js(dn){var hn=dn.alternate!==null&&dn.alternate.child===dn.child,gn=0,bn=0;if(hn)for(var Sn=dn.child;Sn!==null;)gn|=Sn.lanes|Sn.childLanes,bn|=Sn.subtreeFlags&31457280,bn|=Sn.flags&31457280,Sn.return=dn,Sn=Sn.sibling;else for(Sn=dn.child;Sn!==null;)gn|=Sn.lanes|Sn.childLanes,bn|=Sn.subtreeFlags,bn|=Sn.flags,Sn.return=dn,Sn=Sn.sibling;return dn.subtreeFlags|=bn,dn.childLanes=gn,hn}function x1(dn,hn,gn){var bn=hn.pendingProps;switch(Dp(hn),hn.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Js(hn),null;case 1:return Js(hn),null;case 3:return gn=hn.stateNode,bn=null,dn!==null&&(bn=dn.memoizedState.cache),hn.memoizedState.cache!==bn&&(hn.flags|=2048),xc(vl),Ll(),gn.pendingContext&&(gn.context=gn.pendingContext,gn.pendingContext=null),(dn===null||dn.child===null)&&(Md(hn)?wc(hn):dn===null||dn.memoizedState.isDehydrated&&!(hn.flags&256)||(hn.flags|=1024,Lo!==null&&(Pf(Lo),Lo=null))),Js(hn),null;case 26:return gn=hn.memoizedState,dn===null?(wc(hn),gn!==null?(Js(hn),ng(hn,gn)):(Js(hn),hn.flags&=-16777217)):gn?gn!==dn.memoizedState?(wc(hn),Js(hn),ng(hn,gn)):(Js(hn),hn.flags&=-16777217):(dn.memoizedProps!==bn&&wc(hn),Js(hn),hn.flags&=-16777217),null;case 27:sl(hn),gn=Ns.current;var Sn=hn.type;if(dn!==null&&hn.stateNode!=null)dn.memoizedProps!==bn&&wc(hn);else{if(!bn){if(hn.stateNode===null)throw Error(sn(166));return Js(hn),null}dn=Ss.current,Md(hn)?x0(hn):(dn=Tg(Sn,bn,gn),hn.stateNode=dn,wc(hn))}return Js(hn),null;case 5:if(sl(hn),gn=hn.type,dn!==null&&hn.stateNode!=null)dn.memoizedProps!==bn&&wc(hn);else{if(!bn){if(hn.stateNode===null)throw Error(sn(166));return Js(hn),null}if(dn=Ss.current,Md(hn))x0(hn);else{switch(Sn=lp(Ns.current),dn){case 1:dn=Sn.createElementNS("http://www.w3.org/2000/svg",gn);break;case 2:dn=Sn.createElementNS("http://www.w3.org/1998/Math/MathML",gn);break;default:switch(gn){case"svg":dn=Sn.createElementNS("http://www.w3.org/2000/svg",gn);break;case"math":dn=Sn.createElementNS("http://www.w3.org/1998/Math/MathML",gn);break;case"script":dn=Sn.createElement("div"),dn.innerHTML="<script><\/script>",dn=dn.removeChild(dn.firstChild);break;case"select":dn=typeof bn.is=="string"?Sn.createElement("select",{is:bn.is}):Sn.createElement("select"),bn.multiple?dn.multiple=!0:bn.size&&(dn.size=bn.size);break;default:dn=typeof bn.is=="string"?Sn.createElement(gn,{is:bn.is}):Sn.createElement(gn)}}dn[Xs]=hn,dn[Qs]=bn;e:for(Sn=hn.child;Sn!==null;){if(Sn.tag===5||Sn.tag===6)dn.appendChild(Sn.stateNode);else if(Sn.tag!==4&&Sn.tag!==27&&Sn.child!==null){Sn.child.return=Sn,Sn=Sn.child;continue}if(Sn===hn)break e;for(;Sn.sibling===null;){if(Sn.return===null||Sn.return===hn)break e;Sn=Sn.return}Sn.sibling.return=Sn.return,Sn=Sn.sibling}hn.stateNode=dn;e:switch(Tl(dn,gn,bn),gn){case"button":case"input":case"select":case"textarea":dn=!!bn.autoFocus;break e;case"img":dn=!0;break e;default:dn=!1}dn&&wc(hn)}}return Js(hn),hn.flags&=-16777217,null;case 6:if(dn&&hn.stateNode!=null)dn.memoizedProps!==bn&&wc(hn);else{if(typeof bn!="string"&&hn.stateNode===null)throw Error(sn(166));if(dn=Ns.current,Md(hn)){if(dn=hn.stateNode,gn=hn.memoizedProps,bn=null,Sn=Hl,Sn!==null)switch(Sn.tag){case 27:case 5:bn=Sn.memoizedProps}dn[Xs]=hn,dn=!!(dn.nodeValue===gn||bn!==null&&bn.suppressHydrationWarning===!0||Sg(dn.nodeValue,gn)),dn||mu(hn)}else dn=lp(dn).createTextNode(bn),dn[Xs]=hn,hn.stateNode=dn}return Js(hn),null;case 13:if(bn=hn.memoizedState,dn===null||dn.memoizedState!==null&&dn.memoizedState.dehydrated!==null){if(Sn=Md(hn),bn!==null&&bn.dehydrated!==null){if(dn===null){if(!Sn)throw Error(sn(318));if(Sn=hn.memoizedState,Sn=Sn!==null?Sn.dehydrated:null,!Sn)throw Error(sn(317));Sn[Xs]=hn}else Dd(),!(hn.flags&128)&&(hn.memoizedState=null),hn.flags|=4;Js(hn),Sn=!1}else Lo!==null&&(Pf(Lo),Lo=null),Sn=!0;if(!Sn)return hn.flags&256?(pc(hn),hn):(pc(hn),null)}if(pc(hn),hn.flags&128)return hn.lanes=gn,hn;if(gn=bn!==null,dn=dn!==null&&dn.memoizedState!==null,gn){bn=hn.child,Sn=null,bn.alternate!==null&&bn.alternate.memoizedState!==null&&bn.alternate.memoizedState.cachePool!==null&&(Sn=bn.alternate.memoizedState.cachePool.pool);var _n=null;bn.memoizedState!==null&&bn.memoizedState.cachePool!==null&&(_n=bn.memoizedState.cachePool.pool),_n!==Sn&&(bn.flags|=2048)}return gn!==dn&&gn&&(hn.child.flags|=8192),Zh(hn,hn.updateQueue),Js(hn),null;case 4:return Ll(),dn===null&&Xf(hn.stateNode.containerInfo),Js(hn),null;case 10:return xc(hn.type),Js(hn),null;case 19:if(Xr(xl),Sn=hn.memoizedState,Sn===null)return Js(hn),null;if(bn=(hn.flags&128)!==0,_n=Sn.rendering,_n===null)if(bn)Kd(Sn,!1);else{if(al!==0||dn!==null&&dn.flags&128)for(dn=hn.child;dn!==null;){if(_n=Nh(dn),_n!==null){for(hn.flags|=128,Kd(Sn,!1),dn=_n.updateQueue,hn.updateQueue=dn,Zh(hn,dn),hn.subtreeFlags=0,dn=gn,gn=hn.child;gn!==null;)eg(gn,dn),gn=gn.sibling;return Wr(xl,xl.current&1|2),hn.child}dn=dn.sibling}Sn.tail!==null&&Lr()>Kh&&(hn.flags|=128,bn=!0,Kd(Sn,!1),hn.lanes=4194304)}else{if(!bn)if(dn=Nh(_n),dn!==null){if(hn.flags|=128,bn=!0,dn=dn.updateQueue,hn.updateQueue=dn,Zh(hn,dn),Kd(Sn,!0),Sn.tail===null&&Sn.tailMode==="hidden"&&!_n.alternate&&!Is)return Js(hn),null}else 2*Lr()-Sn.renderingStartTime>Kh&&gn!==536870912&&(hn.flags|=128,bn=!0,Kd(Sn,!1),hn.lanes=4194304);Sn.isBackwards?(_n.sibling=hn.child,hn.child=_n):(dn=Sn.last,dn!==null?dn.sibling=_n:hn.child=_n,Sn.last=_n)}return Sn.tail!==null?(hn=Sn.tail,Sn.rendering=hn,Sn.tail=hn.sibling,Sn.renderingStartTime=Lr(),hn.sibling=null,dn=xl.current,Wr(xl,bn?dn&1|2:dn&1),hn):(Js(hn),null);case 22:case 23:return pc(hn),Op(),bn=hn.memoizedState!==null,dn!==null?dn.memoizedState!==null!==bn&&(hn.flags|=8192):bn&&(hn.flags|=8192),bn?gn&536870912&&!(hn.flags&128)&&(Js(hn),hn.subtreeFlags&6&&(hn.flags|=8192)):Js(hn),gn=hn.updateQueue,gn!==null&&Zh(hn,gn.retryQueue),gn=null,dn!==null&&dn.memoizedState!==null&&dn.memoizedState.cachePool!==null&&(gn=dn.memoizedState.cachePool.pool),bn=null,hn.memoizedState!==null&&hn.memoizedState.cachePool!==null&&(bn=hn.memoizedState.cachePool.pool),bn!==gn&&(hn.flags|=2048),dn!==null&&Xr(xu),null;case 24:return gn=null,dn!==null&&(gn=dn.memoizedState.cache),hn.memoizedState.cache!==gn&&(hn.flags|=2048),xc(vl),Js(hn),null;case 25:return null}throw Error(sn(156,hn.tag))}function v1(dn,hn){switch(Dp(hn),hn.tag){case 1:return dn=hn.flags,dn&65536?(hn.flags=dn&-65537|128,hn):null;case 3:return xc(vl),Ll(),dn=hn.flags,dn&65536&&!(dn&128)?(hn.flags=dn&-65537|128,hn):null;case 26:case 27:case 5:return sl(hn),null;case 13:if(pc(hn),dn=hn.memoizedState,dn!==null&&dn.dehydrated!==null){if(hn.alternate===null)throw Error(sn(340));Dd()}return dn=hn.flags,dn&65536?(hn.flags=dn&-65537|128,hn):null;case 19:return Xr(xl),null;case 4:return Ll(),null;case 10:return xc(hn.type),null;case 22:case 23:return pc(hn),Op(),dn!==null&&Xr(xu),dn=hn.flags,dn&65536?(hn.flags=dn&-65537|128,hn):null;case 24:return xc(vl),null;case 25:return null;default:return null}}function rg(dn,hn){switch(Dp(hn),hn.tag){case 3:xc(vl),Ll();break;case 26:case 27:case 5:sl(hn);break;case 4:Ll();break;case 13:pc(hn);break;case 19:Xr(xl);break;case 10:xc(hn.type);break;case 22:case 23:pc(hn),Op(),dn!==null&&Xr(xu);break;case 24:xc(vl)}}var b1={getCacheForType:function(dn){var hn=Nl(vl),gn=hn.data.get(dn);return gn===void 0&&(gn=dn(),hn.data.set(dn,gn)),gn}},y1=typeof WeakMap=="function"?WeakMap:Map,el=0,Ys=null,ks=null,Ls=0,qs=0,eo=null,Ec=!1,id=!1,Mf=!1,Ac=0,al=0,Xc=0,Su=0,Df=0,yo=0,sd=0,Qd=null,Ko=null,Tf=!1,Nf=0,Kh=1/0,Qh=null,Gc=null,Jh=!1,Ru=null,Jd=0,Lf=0,Of=null,eh=0,If=null;function to(){if(el&2&&Ls!==0)return Ls&-Ls;if(Un.T!==null){var dn=Ku;return dn!==0?dn:Vf()}return Os()}function ag(){yo===0&&(yo=!(Ls&536870912)||Is?br():536870912);var dn=go.current;return dn!==null&&(dn.flags|=32),yo}function zl(dn,hn,gn){(dn===Ys&&qs===2||dn.cancelPendingCommit!==null)&&(ld(dn,0),Cc(dn,Ls,yo,!1)),ps(dn,gn),(!(el&2)||dn!==Ys)&&(dn===Ys&&(!(el&2)&&(Su|=gn),al===4&&Cc(dn,Ls,yo,!1)),Qo(dn))}function ig(dn,hn,gn){if(el&6)throw Error(sn(327));var bn=!gn&&(hn&60)===0&&(hn&dn.expiredLanes)===0||qn(dn,hn),Sn=bn?A1(dn,hn):zf(dn,hn,!0),_n=bn;do{if(Sn===0){id&&!bn&&Cc(dn,hn,0,!1);break}else if(Sn===6)Cc(dn,hn,0,!Ec);else{if(gn=dn.current.alternate,_n&&!w1(gn)){Sn=zf(dn,hn,!1),_n=!1;continue}if(Sn===2){if(_n=hn,dn.errorRecoveryDisabledLanes&_n)var Bn=0;else Bn=dn.pendingLanes&-536870913,Bn=Bn!==0?Bn:Bn&536870912?536870912:0;if(Bn!==0){hn=Bn;e:{var Vn=dn;Sn=Qd;var Kn=Vn.current.memoizedState.isDehydrated;if(Kn&&(ld(Vn,Bn).flags|=256),Bn=zf(Vn,Bn,!1),Bn!==2){if(Mf&&!Kn){Vn.errorRecoveryDisabledLanes|=_n,Su|=_n,Sn=4;break e}_n=Ko,Ko=Sn,_n!==null&&Pf(_n)}Sn=Bn}if(_n=!1,Sn!==2)continue}}if(Sn===1){ld(dn,0),Cc(dn,hn,0,!0);break}e:{switch(bn=dn,Sn){case 0:case 1:throw Error(sn(345));case 4:if((hn&4194176)===hn){Cc(bn,hn,yo,!Ec);break e}break;case 2:Ko=null;break;case 3:case 5:break;default:throw Error(sn(329))}if(bn.finishedWork=gn,bn.finishedLanes=hn,(hn&62914560)===hn&&(_n=Nf+300-Lr(),10<_n)){if(Cc(bn,hn,yo,!Ec),Wn(bn,0)!==0)break e;bn.timeoutHandle=_g(sg.bind(null,bn,gn,Ko,Qh,Tf,hn,yo,Su,sd,Ec,2,-0,0),_n);break e}sg(bn,gn,Ko,Qh,Tf,hn,yo,Su,sd,Ec,0,-0,0)}}break}while(!0);Qo(dn)}function Pf(dn){Ko===null?Ko=dn:Ko.push.apply(Ko,dn)}function sg(dn,hn,gn,bn,Sn,_n,Bn,Vn,Kn,or,Sr,Mr,xr){var Cr=hn.subtreeFlags;if((Cr&8192||(Cr&16785408)===16785408)&&(sh={stylesheets:null,count:0,unsuspend:nx},Zm(hn),hn=ax(),hn!==null)){dn.cancelPendingCommit=hn(pg.bind(null,dn,gn,bn,Sn,Bn,Vn,Kn,1,Mr,xr)),Cc(dn,_n,Bn,!or);return}pg(dn,gn,bn,Sn,Bn,Vn,Kn,Sr,Mr,xr)}function w1(dn){for(var hn=dn;;){var gn=hn.tag;if((gn===0||gn===11||gn===15)&&hn.flags&16384&&(gn=hn.updateQueue,gn!==null&&(gn=gn.stores,gn!==null)))for(var bn=0;bn<gn.length;bn++){var Sn=gn[bn],_n=Sn.getSnapshot;Sn=Sn.value;try{if(!El(_n(),Sn))return!1}catch{return!1}}if(gn=hn.child,hn.subtreeFlags&16384&&gn!==null)gn.return=hn,hn=gn;else{if(hn===dn)break;for(;hn.sibling===null;){if(hn.return===null||hn.return===dn)return!0;hn=hn.return}hn.sibling.return=hn.return,hn=hn.sibling}}return!0}function Cc(dn,hn,gn,bn){hn&=~Df,hn&=~Su,dn.suspendedLanes|=hn,dn.pingedLanes&=~hn,bn&&(dn.warmLanes|=hn),bn=dn.expirationTimes;for(var Sn=hn;0<Sn;){var _n=31-Ws(Sn),Bn=1<<_n;bn[_n]=-1,Sn&=~Bn}gn!==0&&ms(dn,gn,hn)}function ep(){return el&6?!0:(th(0),!1)}function Bf(){if(ks!==null){if(qs===0)var dn=ks.return;else dn=ks,gc=Eu=null,Up(dn),Gu=null,Od=0,dn=ks;for(;dn!==null;)rg(dn.alternate,dn),dn=dn.return;ks=null}}function ld(dn,hn){dn.finishedWork=null,dn.finishedLanes=0;var gn=dn.timeoutHandle;gn!==-1&&(dn.timeoutHandle=-1,z1(gn)),gn=dn.cancelPendingCommit,gn!==null&&(dn.cancelPendingCommit=null,gn()),Bf(),Ys=dn,ks=gn=qc(dn.current,null),Ls=hn,qs=0,eo=null,Ec=!1,id=qn(dn,hn),Mf=!1,sd=yo=Df=Su=Xc=al=0,Ko=Qd=null,Tf=!1,hn&8&&(hn|=hn&32);var bn=dn.entangledLanes;if(bn!==0)for(dn=dn.entanglements,bn&=hn;0<bn;){var Sn=31-Ws(bn),_n=1<<Sn;hn|=dn[Sn],bn&=~_n}return Ac=hn,Ch(),gn}function lg(dn,hn){As=null,Un.H=Zo,hn===Nd?(hn=E0(),qs=3):hn===b0?(hn=E0(),qs=4):qs=hn===ym?8:hn!==null&&typeof hn=="object"&&typeof hn.then=="function"?6:1,eo=hn,ks===null&&(al=1,Vh(dn,po(hn,dn.current)))}function og(){var dn=Un.H;return Un.H=Zo,dn===null?Zo:dn}function cg(){var dn=Un.A;return Un.A=b1,dn}function Hf(){al=4,Ec||(Ls&4194176)!==Ls&&go.current!==null||(id=!0),!(Xc&134217727)&&!(Su&134217727)||Ys===null||Cc(Ys,Ls,yo,!1)}function zf(dn,hn,gn){var bn=el;el|=2;var Sn=og(),_n=cg();(Ys!==dn||Ls!==hn)&&(Qh=null,ld(dn,hn)),hn=!1;var Bn=al;e:do try{if(qs!==0&&ks!==null){var Vn=ks,Kn=eo;switch(qs){case 8:Bf(),Bn=6;break e;case 3:case 2:case 6:go.current===null&&(hn=!0);var or=qs;if(qs=0,eo=null,od(dn,Vn,Kn,or),gn&&id){Bn=0;break e}break;default:or=qs,qs=0,eo=null,od(dn,Vn,Kn,or)}}E1(),Bn=al;break}catch(Sr){lg(dn,Sr)}while(!0);return hn&&dn.shellSuspendCounter++,gc=Eu=null,el=bn,Un.H=Sn,Un.A=_n,ks===null&&(Ys=null,Ls=0,Ch()),Bn}function E1(){for(;ks!==null;)ug(ks)}function A1(dn,hn){var gn=el;el|=2;var bn=og(),Sn=cg();Ys!==dn||Ls!==hn?(Qh=null,Kh=Lr()+500,ld(dn,hn)):id=qn(dn,hn);e:do try{if(qs!==0&&ks!==null){hn=ks;var _n=eo;t:switch(qs){case 1:qs=0,eo=null,od(dn,hn,_n,1);break;case 2:if(y0(_n)){qs=0,eo=null,dg(hn);break}hn=function(){qs===2&&Ys===dn&&(qs=7),Qo(dn)},_n.then(hn,hn);break e;case 3:qs=7;break e;case 4:qs=5;break e;case 7:y0(_n)?(qs=0,eo=null,dg(hn)):(qs=0,eo=null,od(dn,hn,_n,7));break;case 5:var Bn=null;switch(ks.tag){case 26:Bn=ks.memoizedState;case 5:case 27:var Vn=ks;if(!Bn||zg(Bn)){qs=0,eo=null;var Kn=Vn.sibling;if(Kn!==null)ks=Kn;else{var or=Vn.return;or!==null?(ks=or,tp(or)):ks=null}break t}}qs=0,eo=null,od(dn,hn,_n,5);break;case 6:qs=0,eo=null,od(dn,hn,_n,6);break;case 8:Bf(),al=6;break e;default:throw Error(sn(462))}}C1();break}catch(Sr){lg(dn,Sr)}while(!0);return gc=Eu=null,Un.H=bn,Un.A=Sn,el=gn,ks!==null?0:(Ys=null,Ls=0,Ch(),al)}function C1(){for(;ks!==null&&!kl();)ug(ks)}function ug(dn){var hn=Tm(dn.alternate,dn,Ac);dn.memoizedProps=dn.pendingProps,hn===null?tp(dn):ks=hn}function dg(dn){var hn=dn,gn=hn.alternate;switch(hn.tag){case 15:case 0:hn=Sm(gn,hn,hn.pendingProps,hn.type,void 0,Ls);break;case 11:hn=Sm(gn,hn,hn.pendingProps,hn.type.render,hn.ref,Ls);break;case 5:Up(hn);default:rg(gn,hn),hn=ks=eg(hn,Ac),hn=Tm(gn,hn,Ac)}dn.memoizedProps=dn.pendingProps,hn===null?tp(dn):ks=hn}function od(dn,hn,gn,bn){gc=Eu=null,Up(hn),Gu=null,Od=0;var Sn=hn.return;try{if(h1(dn,Sn,hn,gn,Ls)){al=1,Vh(dn,po(gn,dn.current)),ks=null;return}}catch(_n){if(Sn!==null)throw ks=Sn,_n;al=1,Vh(dn,po(gn,dn.current)),ks=null;return}hn.flags&32768?(Is||bn===1?dn=!0:id||Ls&536870912?dn=!1:(Ec=dn=!0,(bn===2||bn===3||bn===6)&&(bn=go.current,bn!==null&&bn.tag===13&&(bn.flags|=16384))),hg(hn,dn)):tp(hn)}function tp(dn){var hn=dn;do{if(hn.flags&32768){hg(hn,Ec);return}dn=hn.return;var gn=x1(hn.alternate,hn,Ac);if(gn!==null){ks=gn;return}if(hn=hn.sibling,hn!==null){ks=hn;return}ks=hn=dn}while(hn!==null);al===0&&(al=5)}function hg(dn,hn){do{var gn=v1(dn.alternate,dn);if(gn!==null){gn.flags&=32767,ks=gn;return}if(gn=dn.return,gn!==null&&(gn.flags|=32768,gn.subtreeFlags=0,gn.deletions=null),!hn&&(dn=dn.sibling,dn!==null)){ks=dn;return}ks=dn=gn}while(dn!==null);al=6,ks=null}function pg(dn,hn,gn,bn,Sn,_n,Bn,Vn,Kn,or){var Sr=Un.T,Mr=Er.p;try{Er.p=2,Un.T=null,j1(dn,hn,gn,bn,Mr,Sn,_n,Bn,Vn,Kn,or)}finally{Un.T=Sr,Er.p=Mr}}function j1(dn,hn,gn,bn,Sn,_n,Bn,Vn){do cd();while(Ru!==null);if(el&6)throw Error(sn(327));var Kn=dn.finishedWork;if(bn=dn.finishedLanes,Kn===null)return null;if(dn.finishedWork=null,dn.finishedLanes=0,Kn===dn.current)throw Error(sn(177));dn.callbackNode=null,dn.callbackPriority=0,dn.cancelPendingCommit=null;var or=Kn.lanes|Kn.childLanes;if(or|=kp,$r(dn,bn,or,_n,Bn,Vn),dn===Ys&&(ks=Ys=null,Ls=0),!(Kn.subtreeFlags&10256)&&!(Kn.flags&10256)||Jh||(Jh=!0,Lf=or,Of=gn,_1(nl,function(){return cd(),null})),gn=(Kn.flags&15990)!==0,Kn.subtreeFlags&15990||gn?(gn=Un.T,Un.T=null,_n=Er.p,Er.p=2,Bn=el,el|=4,f1(dn,Kn),qm(Kn,dn),nr(Qf,dn.containerInfo),pp=!!Kf,Qf=Kf=null,dn.current=Kn,Um(dn,Kn.alternate,Kn),Xl(),el=Bn,Er.p=_n,Un.T=gn):dn.current=Kn,Jh?(Jh=!1,Ru=dn,Jd=bn):fg(dn,or),or=dn.pendingLanes,or===0&&(Gc=null),_s(Kn.stateNode),Qo(dn),hn!==null)for(Sn=dn.onRecoverableError,Kn=0;Kn<hn.length;Kn++)or=hn[Kn],Sn(or.value,{componentStack:or.stack});return Jd&3&&cd(),or=dn.pendingLanes,bn&4194218&&or&42?dn===If?eh++:(eh=0,If=dn):eh=0,th(0),null}function fg(dn,hn){(dn.pooledCacheLanes&=hn)===0&&(hn=dn.pooledCache,hn!=null&&(dn.pooledCache=null,Pd(hn)))}function cd(){if(Ru!==null){var dn=Ru,hn=Lf;Lf=0;var gn=Kr(Jd),bn=Un.T,Sn=Er.p;try{if(Er.p=32>gn?32:gn,Un.T=null,Ru===null)var _n=!1;else{gn=Of,Of=null;var Bn=Ru,Vn=Jd;if(Ru=null,Jd=0,el&6)throw Error(sn(331));var Kn=el;if(el|=4,Qm(Bn.current),Gm(Bn,Bn.current,Vn,gn),el=Kn,th(0,!1),zs&&typeof zs.onPostCommitFiberRoot=="function")try{zs.onPostCommitFiberRoot(ll,Bn)}catch{}_n=!0}return _n}finally{Er.p=Sn,Un.T=bn,fg(dn,hn)}}return!1}function mg(dn,hn,gn){hn=po(gn,hn),hn=rf(dn.stateNode,hn,2),dn=Uc(dn,hn,2),dn!==null&&(ps(dn,2),Qo(dn))}function Us(dn,hn,gn){if(dn.tag===3)mg(dn,dn,gn);else for(;hn!==null;){if(hn.tag===3){mg(hn,dn,gn);break}else if(hn.tag===1){var bn=hn.stateNode;if(typeof hn.type.getDerivedStateFromError=="function"||typeof bn.componentDidCatch=="function"&&(Gc===null||!Gc.has(bn))){dn=po(gn,dn),gn=vm(2),bn=Uc(hn,gn,2),bn!==null&&(bm(gn,bn,hn,dn),ps(bn,2),Qo(bn));break}}hn=hn.return}}function Ff(dn,hn,gn){var bn=dn.pingCache;if(bn===null){bn=dn.pingCache=new y1;var Sn=new Set;bn.set(hn,Sn)}else Sn=bn.get(hn),Sn===void 0&&(Sn=new Set,bn.set(hn,Sn));Sn.has(gn)||(Mf=!0,Sn.add(gn),dn=S1.bind(null,dn,hn,gn),hn.then(dn,dn))}function S1(dn,hn,gn){var bn=dn.pingCache;bn!==null&&bn.delete(hn),dn.pingedLanes|=dn.suspendedLanes&gn,dn.warmLanes&=~gn,Ys===dn&&(Ls&gn)===gn&&(al===4||al===3&&(Ls&62914560)===Ls&&300>Lr()-Nf?!(el&2)&&ld(dn,0):Df|=gn,sd===Ls&&(sd=0)),Qo(dn)}function gg(dn,hn){hn===0&&(hn=Ir()),dn=Oc(dn,hn),dn!==null&&(ps(dn,hn),Qo(dn))}function R1(dn){var hn=dn.memoizedState,gn=0;hn!==null&&(gn=hn.retryLane),gg(dn,gn)}function k1(dn,hn){var gn=0;switch(dn.tag){case 13:var bn=dn.stateNode,Sn=dn.memoizedState;Sn!==null&&(gn=Sn.retryLane);break;case 19:bn=dn.stateNode;break;case 22:bn=dn.stateNode._retryCache;break;default:throw Error(sn(314))}bn!==null&&bn.delete(hn),gg(dn,gn)}function _1(dn,hn){return no(dn,hn)}var np=null,ud=null,$f=!1,rp=!1,Uf=!1,ku=0;function Qo(dn){dn!==ud&&dn.next===null&&(ud===null?np=ud=dn:ud=ud.next=dn),rp=!0,$f||($f=!0,D1(M1))}function th(dn,hn){if(!Uf&&rp){Uf=!0;do for(var gn=!1,bn=np;bn!==null;){if(dn!==0){var Sn=bn.pendingLanes;if(Sn===0)var _n=0;else{var Bn=bn.suspendedLanes,Vn=bn.pingedLanes;_n=(1<<31-Ws(42|dn)+1)-1,_n&=Sn&~(Bn&~Vn),_n=_n&201326677?_n&201326677|1:_n?_n|2:0}_n!==0&&(gn=!0,bg(bn,_n))}else _n=Ls,_n=Wn(bn,bn===Ys?_n:0),!(_n&3)||qn(bn,_n)||(gn=!0,bg(bn,_n));bn=bn.next}while(gn);Uf=!1}}function M1(){rp=$f=!1;var dn=0;ku!==0&&(H1()&&(dn=ku),ku=0);for(var hn=Lr(),gn=null,bn=np;bn!==null;){var Sn=bn.next,_n=xg(bn,hn);_n===0?(bn.next=null,gn===null?np=Sn:gn.next=Sn,Sn===null&&(ud=gn)):(gn=bn,(dn!==0||_n&3)&&(rp=!0)),bn=Sn}th(dn)}function xg(dn,hn){for(var gn=dn.suspendedLanes,bn=dn.pingedLanes,Sn=dn.expirationTimes,_n=dn.pendingLanes&-62914561;0<_n;){var Bn=31-Ws(_n),Vn=1<<Bn,Kn=Sn[Bn];Kn===-1?(!(Vn&gn)||Vn&bn)&&(Sn[Bn]=ar(Vn,hn)):Kn<=hn&&(dn.expiredLanes|=Vn),_n&=~Vn}if(hn=Ys,gn=Ls,gn=Wn(dn,dn===hn?gn:0),bn=dn.callbackNode,gn===0||dn===hn&&qs===2||dn.cancelPendingCommit!==null)return bn!==null&&bn!==null&&Jo(bn),dn.callbackNode=null,dn.callbackPriority=0;if(!(gn&3)||qn(dn,gn)){if(hn=gn&-gn,hn===dn.callbackPriority)return hn;switch(bn!==null&&Jo(bn),Kr(gn)){case 2:case 8:gn=Vs;break;case 32:gn=nl;break;case 268435456:gn=$l;break;default:gn=nl}return bn=vg.bind(null,dn),gn=no(gn,bn),dn.callbackPriority=hn,dn.callbackNode=gn,hn}return bn!==null&&bn!==null&&Jo(bn),dn.callbackPriority=2,dn.callbackNode=null,2}function vg(dn,hn){var gn=dn.callbackNode;if(cd()&&dn.callbackNode!==gn)return null;var bn=Ls;return bn=Wn(dn,dn===Ys?bn:0),bn===0?null:(ig(dn,bn,hn),xg(dn,Lr()),dn.callbackNode!=null&&dn.callbackNode===gn?vg.bind(null,dn):null)}function bg(dn,hn){if(cd())return null;ig(dn,hn,!0)}function D1(dn){F1(function(){el&6?no(Es,dn):dn()})}function Vf(){return ku===0&&(ku=br()),ku}function yg(dn){return dn==null||typeof dn=="symbol"||typeof dn=="boolean"?null:typeof dn=="function"?dn:Dc(""+dn)}function wg(dn,hn){var gn=hn.ownerDocument.createElement("input");return gn.name=hn.name,gn.value=hn.value,dn.id&&gn.setAttribute("form",dn.id),hn.parentNode.insertBefore(gn,hn),dn=new FormData(dn),gn.parentNode.removeChild(gn),dn}function T1(dn,hn,gn,bn,Sn){if(hn==="submit"&&gn&&gn.stateNode===Sn){var _n=yg((Sn[Qs]||null).action),Bn=bn.submitter;Bn&&(hn=(hn=Bn[Qs]||null)?yg(hn.formAction):Bn.getAttribute("formAction"),hn!==null&&(_n=hn,Bn=null));var Vn=new uu("action","action",null,bn,Sn);dn.push({event:Vn,listeners:[{instance:null,listener:function(){if(bn.defaultPrevented){if(ku!==0){var Kn=Bn?wg(Sn,Bn):new FormData(Sn);Qp(gn,{pending:!0,data:Kn,method:Sn.method,action:_n},null,Kn)}}else typeof _n=="function"&&(Vn.preventDefault(),Kn=Bn?wg(Sn,Bn):new FormData(Sn),Qp(gn,{pending:!0,data:Kn,method:Sn.method,action:_n},_n,Kn))},currentTarget:Sn}]})}}for(var Wf=0;Wf<p0.length;Wf++){var Yf=p0[Wf],N1=Yf.toLowerCase(),L1=Yf[0].toUpperCase()+Yf.slice(1);No(N1,"on"+L1)}No(Qr,"onAnimationEnd"),No(Hs,"onAnimationIteration"),No(_l,"onAnimationStart"),No("dblclick","onDoubleClick"),No("focusin","onFocus"),No("focusout","onBlur"),No(Al,"onTransitionRun"),No(Yl,"onTransitionStart"),No(uo,"onTransitionCancel"),No(uc,"onTransitionEnd"),Rc("onMouseEnter",["mouseout","mouseover"]),Rc("onMouseLeave",["mouseout","mouseover"]),Rc("onPointerEnter",["pointerout","pointerover"]),Rc("onPointerLeave",["pointerout","pointerover"]),$o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$o("onBeforeInput",["compositionend","keypress","textInput","paste"]),$o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),O1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(nh));function Eg(dn,hn){hn=(hn&4)!==0;for(var gn=0;gn<dn.length;gn++){var bn=dn[gn],Sn=bn.event;bn=bn.listeners;e:{var _n=void 0;if(hn)for(var Bn=bn.length-1;0<=Bn;Bn--){var Vn=bn[Bn],Kn=Vn.instance,or=Vn.currentTarget;if(Vn=Vn.listener,Kn!==_n&&Sn.isPropagationStopped())break e;_n=Vn,Sn.currentTarget=or;try{_n(Sn)}catch(Sr){Uh(Sr)}Sn.currentTarget=null,_n=Kn}else for(Bn=0;Bn<bn.length;Bn++){if(Vn=bn[Bn],Kn=Vn.instance,or=Vn.currentTarget,Vn=Vn.listener,Kn!==_n&&Sn.isPropagationStopped())break e;_n=Vn,Sn.currentTarget=or;try{_n(Sn)}catch(Sr){Uh(Sr)}Sn.currentTarget=null,_n=Kn}}}}function Ts(dn,hn){var gn=hn[zo];gn===void 0&&(gn=hn[zo]=new Set);var bn=dn+"__bubble";gn.has(bn)||(Ag(hn,dn,2,!1),gn.add(bn))}function qf(dn,hn,gn){var bn=0;hn&&(bn|=4),Ag(gn,dn,bn,hn)}var ap="_reactListening"+Math.random().toString(36).slice(2);function Xf(dn){if(!dn[ap]){dn[ap]=!0,gd.forEach(function(gn){gn!=="selectionchange"&&(O1.has(gn)||qf(gn,!1,dn),qf(gn,!0,dn))});var hn=dn.nodeType===9?dn:dn.ownerDocument;hn===null||hn[ap]||(hn[ap]=!0,qf("selectionchange",!1,hn))}}function Ag(dn,hn,gn,bn){switch(Yg(hn)){case 2:var Sn=lx;break;case 8:Sn=ox;break;default:Sn=l0}gn=Sn.bind(null,hn,gn,dn),Sn=void 0,!Ed||hn!=="touchstart"&&hn!=="touchmove"&&hn!=="wheel"||(Sn=!0),bn?Sn!==void 0?dn.addEventListener(hn,gn,{capture:!0,passive:Sn}):dn.addEventListener(hn,gn,!0):Sn!==void 0?dn.addEventListener(hn,gn,{passive:Sn}):dn.addEventListener(hn,gn,!1)}function Gf(dn,hn,gn,bn,Sn){var _n=bn;if(!(hn&1)&&!(hn&2)&&bn!==null)e:for(;;){if(bn===null)return;var Bn=bn.tag;if(Bn===3||Bn===4){var Vn=bn.stateNode.containerInfo;if(Vn===Sn||Vn.nodeType===8&&Vn.parentNode===Sn)break;if(Bn===4)for(Bn=bn.return;Bn!==null;){var Kn=Bn.tag;if((Kn===3||Kn===4)&&(Kn=Bn.stateNode.containerInfo,Kn===Sn||Kn.nodeType===8&&Kn.parentNode===Sn))return;Bn=Bn.return}for(;Vn!==null;){if(Bn=Wl(Vn),Bn===null)return;if(Kn=Bn.tag,Kn===5||Kn===6||Kn===26||Kn===27){bn=_n=Bn;continue e}Vn=Vn.parentNode}}bn=bn.return}Iu(function(){var or=_n,Sr=Ou(gn),Mr=[];e:{var xr=Cl.get(dn);if(xr!==void 0){var Cr=uu,Gr=dn;switch(dn){case"keypress":if(cu(gn)===0)break e;case"keydown":case"keyup":Cr=Dr;break;case"focusin":Gr="focus",Cr=En;break;case"focusout":Gr="blur",Cr=En;break;case"beforeblur":case"afterblur":Cr=En;break;case"click":if(gn.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Cr=Bu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Cr=Cp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Cr=gl;break;case Qr:case Hs:case _l:Cr=Dn;break;case uc:Cr=lo;break;case"scroll":case"scrollend":Cr=Ep;break;case"wheel":Cr=Cs;break;case"copy":case"cut":case"paste":Cr=Hn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Cr=Rs;break;case"toggle":case"beforetoggle":Cr=Ms}var ys=(hn&4)!==0,il=!ys&&(dn==="scroll"||dn==="scrollend"),dr=ys?xr!==null?xr+"Capture":null:xr;ys=[];for(var sr=or,hr;sr!==null;){var kr=sr;if(hr=kr.stateNode,kr=kr.tag,kr!==5&&kr!==26&&kr!==27||hr===null||dr===null||(kr=lu(sr,dr),kr!=null&&ys.push(rh(sr,kr,hr))),il)break;sr=sr.return}0<ys.length&&(xr=new Cr(xr,Gr,null,gn,Sr),Mr.push({event:xr,listeners:ys}))}}if(!(hn&7)){e:{if(xr=dn==="mouseover"||dn==="pointerover",Cr=dn==="mouseout"||dn==="pointerout",xr&&gn!==Lu&&(Gr=gn.relatedTarget||gn.fromElement)&&(Wl(Gr)||Gr[Ho]))break e;if((Cr||xr)&&(xr=Sr.window===Sr?Sr:(xr=Sr.ownerDocument)?xr.defaultView||xr.parentWindow:window,Cr?(Gr=gn.relatedTarget||gn.toElement,Cr=or,Gr=Gr?Wl(Gr):null,Gr!==null&&(il=ur(Gr),ys=Gr.tag,Gr!==il||ys!==5&&ys!==27&&ys!==6)&&(Gr=null)):(Cr=null,Gr=or),Cr!==Gr)){if(ys=Bu,kr="onMouseLeave",dr="onMouseEnter",sr="mouse",(dn==="pointerout"||dn==="pointerover")&&(ys=Rs,kr="onPointerLeave",dr="onPointerEnter",sr="pointer"),il=Cr==null?xr:tc(Cr),hr=Gr==null?xr:tc(Gr),xr=new ys(kr,sr+"leave",Cr,gn,Sr),xr.target=il,xr.relatedTarget=hr,kr=null,Wl(Sr)===or&&(ys=new ys(dr,sr+"enter",Gr,gn,Sr),ys.target=hr,ys.relatedTarget=il,kr=ys),il=kr,Cr&&Gr)t:{for(ys=Cr,dr=Gr,sr=0,hr=ys;hr;hr=dd(hr))sr++;for(hr=0,kr=dr;kr;kr=dd(kr))hr++;for(;0<sr-hr;)ys=dd(ys),sr--;for(;0<hr-sr;)dr=dd(dr),hr--;for(;sr--;){if(ys===dr||dr!==null&&ys===dr.alternate)break t;ys=dd(ys),dr=dd(dr)}ys=null}else ys=null;Cr!==null&&Cg(Mr,xr,Cr,ys,!1),Gr!==null&&il!==null&&Cg(Mr,il,Gr,ys,!0)}}e:{if(xr=or?tc(or):window,Cr=xr.nodeName&&xr.nodeName.toLowerCase(),Cr==="select"||Cr==="input"&&xr.type==="file")var Yr=wh;else if(bh(xr))if(Eh)Yr=kd;else{Yr=Fu;var js=hu}else Cr=xr.nodeName,!Cr||Cr.toLowerCase()!=="input"||xr.type!=="checkbox"&&xr.type!=="radio"?or&&yd(or.elementType)&&(Yr=wh):Yr=$u;if(Yr&&(Yr=Yr(dn,or))){yh(Mr,Yr,gn,Sr);break e}js&&js(dn,xr,or),dn==="focusout"&&or&&xr.type==="number"&&or.memoizedProps.value!=null&&Pl(xr,"number",xr.value)}switch(js=or?tc(or):window,dn){case"focusin":(bh(js)||js.contentEditable==="true")&&(gr=js,Ar=or,Or=null);break;case"focusout":Or=Ar=gr=null;break;case"mousedown":zr=!0;break;case"contextmenu":case"mouseup":case"dragend":zr=!1,qr(Mr,gn,Sr);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":qr(Mr,gn,Sr)}var Zr;if(lc)e:{switch(dn){case"compositionstart":var fs="onCompositionStart";break e;case"compositionend":fs="onCompositionEnd";break e;case"compositionupdate":fs="onCompositionUpdate";break e}fs=void 0}else Yo?Ro(dn,gn)&&(fs="onCompositionEnd"):dn==="keydown"&&gn.keyCode===229&&(fs="onCompositionStart");fs&&(Lc&&gn.locale!=="ko"&&(Yo||fs!=="onCompositionStart"?fs==="onCompositionEnd"&&Yo&&(Zr=vh()):(Vo=Sr,Ad="value"in Vo?Vo.value:Vo.textContent,Yo=!0)),js=ip(or,fs),0<js.length&&(fs=new $n(fs,dn,null,gn,Sr),Mr.push({event:fs,listeners:js}),Zr?fs.data=Zr:(Zr=Bl(gn),Zr!==null&&(fs.data=Zr)))),(Zr=co?ko(dn,gn):_o(dn,gn))&&(fs=ip(or,"onBeforeInput"),0<fs.length&&(js=new $n("onBeforeInput","beforeinput",null,gn,Sr),Mr.push({event:js,listeners:fs}),js.data=Zr)),T1(Mr,dn,or,gn,Sr)}Eg(Mr,hn)})}function rh(dn,hn,gn){return{instance:dn,listener:hn,currentTarget:gn}}function ip(dn,hn){for(var gn=hn+"Capture",bn=[];dn!==null;){var Sn=dn,_n=Sn.stateNode;Sn=Sn.tag,Sn!==5&&Sn!==26&&Sn!==27||_n===null||(Sn=lu(dn,gn),Sn!=null&&bn.unshift(rh(dn,Sn,_n)),Sn=lu(dn,hn),Sn!=null&&bn.push(rh(dn,Sn,_n))),dn=dn.return}return bn}function dd(dn){if(dn===null)return null;do dn=dn.return;while(dn&&dn.tag!==5&&dn.tag!==27);return dn||null}function Cg(dn,hn,gn,bn,Sn){for(var _n=hn._reactName,Bn=[];gn!==null&&gn!==bn;){var Vn=gn,Kn=Vn.alternate,or=Vn.stateNode;if(Vn=Vn.tag,Kn!==null&&Kn===bn)break;Vn!==5&&Vn!==26&&Vn!==27||or===null||(Kn=or,Sn?(or=lu(gn,_n),or!=null&&Bn.unshift(rh(gn,or,Kn))):Sn||(or=lu(gn,_n),or!=null&&Bn.push(rh(gn,or,Kn)))),gn=gn.return}Bn.length!==0&&dn.push({event:hn,listeners:Bn})}var I1=/\r\n?/g,P1=/\u0000|\uFFFD/g;function jg(dn){return(typeof dn=="string"?dn:""+dn).replace(I1,`
`).replace(P1,"")}function Sg(dn,hn){return hn=jg(hn),jg(dn)===hn}function sp(){}function $s(dn,hn,gn,bn,Sn,_n){switch(gn){case"children":typeof bn=="string"?hn==="body"||hn==="textarea"&&bn===""||Mc(dn,bn):(typeof bn=="number"||typeof bn=="bigint")&&hn!=="body"&&Mc(dn,""+bn);break;case"className":ru(dn,"class",bn);break;case"tabIndex":ru(dn,"tabindex",bn);break;case"dir":case"role":case"viewBox":case"width":case"height":ru(dn,gn,bn);break;case"style":Nu(dn,bn,_n);break;case"data":if(hn!=="object"){ru(dn,"data",bn);break}case"src":case"href":if(bn===""&&(hn!=="a"||gn!=="href")){dn.removeAttribute(gn);break}if(bn==null||typeof bn=="function"||typeof bn=="symbol"||typeof bn=="boolean"){dn.removeAttribute(gn);break}bn=Dc(""+bn),dn.setAttribute(gn,bn);break;case"action":case"formAction":if(typeof bn=="function"){dn.setAttribute(gn,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof _n=="function"&&(gn==="formAction"?(hn!=="input"&&$s(dn,hn,"name",Sn.name,Sn,null),$s(dn,hn,"formEncType",Sn.formEncType,Sn,null),$s(dn,hn,"formMethod",Sn.formMethod,Sn,null),$s(dn,hn,"formTarget",Sn.formTarget,Sn,null)):($s(dn,hn,"encType",Sn.encType,Sn,null),$s(dn,hn,"method",Sn.method,Sn,null),$s(dn,hn,"target",Sn.target,Sn,null)));if(bn==null||typeof bn=="symbol"||typeof bn=="boolean"){dn.removeAttribute(gn);break}bn=Dc(""+bn),dn.setAttribute(gn,bn);break;case"onClick":bn!=null&&(dn.onclick=sp);break;case"onScroll":bn!=null&&Ts("scroll",dn);break;case"onScrollEnd":bn!=null&&Ts("scrollend",dn);break;case"dangerouslySetInnerHTML":if(bn!=null){if(typeof bn!="object"||!("__html"in bn))throw Error(sn(61));if(gn=bn.__html,gn!=null){if(Sn.children!=null)throw Error(sn(60));dn.innerHTML=gn}}break;case"multiple":dn.multiple=bn&&typeof bn!="function"&&typeof bn!="symbol";break;case"muted":dn.muted=bn&&typeof bn!="function"&&typeof bn!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(bn==null||typeof bn=="function"||typeof bn=="boolean"||typeof bn=="symbol"){dn.removeAttribute("xlink:href");break}gn=Dc(""+bn),dn.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",gn);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":bn!=null&&typeof bn!="function"&&typeof bn!="symbol"?dn.setAttribute(gn,""+bn):dn.removeAttribute(gn);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":bn&&typeof bn!="function"&&typeof bn!="symbol"?dn.setAttribute(gn,""):dn.removeAttribute(gn);break;case"capture":case"download":bn===!0?dn.setAttribute(gn,""):bn!==!1&&bn!=null&&typeof bn!="function"&&typeof bn!="symbol"?dn.setAttribute(gn,bn):dn.removeAttribute(gn);break;case"cols":case"rows":case"size":case"span":bn!=null&&typeof bn!="function"&&typeof bn!="symbol"&&!isNaN(bn)&&1<=bn?dn.setAttribute(gn,bn):dn.removeAttribute(gn);break;case"rowSpan":case"start":bn==null||typeof bn=="function"||typeof bn=="symbol"||isNaN(bn)?dn.removeAttribute(gn):dn.setAttribute(gn,bn);break;case"popover":Ts("beforetoggle",dn),Ts("toggle",dn),kc(dn,"popover",bn);break;case"xlinkActuate":Zs(dn,"http://www.w3.org/1999/xlink","xlink:actuate",bn);break;case"xlinkArcrole":Zs(dn,"http://www.w3.org/1999/xlink","xlink:arcrole",bn);break;case"xlinkRole":Zs(dn,"http://www.w3.org/1999/xlink","xlink:role",bn);break;case"xlinkShow":Zs(dn,"http://www.w3.org/1999/xlink","xlink:show",bn);break;case"xlinkTitle":Zs(dn,"http://www.w3.org/1999/xlink","xlink:title",bn);break;case"xlinkType":Zs(dn,"http://www.w3.org/1999/xlink","xlink:type",bn);break;case"xmlBase":Zs(dn,"http://www.w3.org/XML/1998/namespace","xml:base",bn);break;case"xmlLang":Zs(dn,"http://www.w3.org/XML/1998/namespace","xml:lang",bn);break;case"xmlSpace":Zs(dn,"http://www.w3.org/XML/1998/namespace","xml:space",bn);break;case"is":kc(dn,"is",bn);break;case"innerText":case"textContent":break;default:(!(2<gn.length)||gn[0]!=="o"&&gn[0]!=="O"||gn[1]!=="n"&&gn[1]!=="N")&&(gn=su.get(gn)||gn,kc(dn,gn,bn))}}function Zf(dn,hn,gn,bn,Sn,_n){switch(gn){case"style":Nu(dn,bn,_n);break;case"dangerouslySetInnerHTML":if(bn!=null){if(typeof bn!="object"||!("__html"in bn))throw Error(sn(61));if(gn=bn.__html,gn!=null){if(Sn.children!=null)throw Error(sn(60));dn.innerHTML=gn}}break;case"children":typeof bn=="string"?Mc(dn,bn):(typeof bn=="number"||typeof bn=="bigint")&&Mc(dn,""+bn);break;case"onScroll":bn!=null&&Ts("scroll",dn);break;case"onScrollEnd":bn!=null&&Ts("scrollend",dn);break;case"onClick":bn!=null&&(dn.onclick=sp);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xd.hasOwnProperty(gn))e:{if(gn[0]==="o"&&gn[1]==="n"&&(Sn=gn.endsWith("Capture"),hn=gn.slice(2,Sn?gn.length-7:void 0),_n=dn[Qs]||null,_n=_n!=null?_n[gn]:null,typeof _n=="function"&&dn.removeEventListener(hn,_n,Sn),typeof bn=="function")){typeof _n!="function"&&_n!==null&&(gn in dn?dn[gn]=null:dn.hasAttribute(gn)&&dn.removeAttribute(gn)),dn.addEventListener(hn,bn,Sn);break e}gn in dn?dn[gn]=bn:bn===!0?dn.setAttribute(gn,""):kc(dn,gn,bn)}}}function Tl(dn,hn,gn){switch(hn){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ts("error",dn),Ts("load",dn);var bn=!1,Sn=!1,_n;for(_n in gn)if(gn.hasOwnProperty(_n)){var Bn=gn[_n];if(Bn!=null)switch(_n){case"src":bn=!0;break;case"srcSet":Sn=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(sn(137,hn));default:$s(dn,hn,_n,Bn,gn,null)}}Sn&&$s(dn,hn,"srcSet",gn.srcSet,gn,null),bn&&$s(dn,hn,"src",gn.src,gn,null);return;case"input":Ts("invalid",dn);var Vn=_n=Bn=Sn=null,Kn=null,or=null;for(bn in gn)if(gn.hasOwnProperty(bn)){var Sr=gn[bn];if(Sr!=null)switch(bn){case"name":Sn=Sr;break;case"type":Bn=Sr;break;case"checked":Kn=Sr;break;case"defaultChecked":or=Sr;break;case"value":_n=Sr;break;case"defaultValue":Vn=Sr;break;case"children":case"dangerouslySetInnerHTML":if(Sr!=null)throw Error(sn(137,hn));break;default:$s(dn,hn,bn,Sr,gn,null)}}fh(dn,_n,Vn,Kn,or,Bn,Sn,!1),Mu(dn);return;case"select":Ts("invalid",dn),bn=Bn=_n=null;for(Sn in gn)if(gn.hasOwnProperty(Sn)&&(Vn=gn[Sn],Vn!=null))switch(Sn){case"value":_n=Vn;break;case"defaultValue":Bn=Vn;break;case"multiple":bn=Vn;default:$s(dn,hn,Sn,Vn,gn,null)}hn=_n,gn=Bn,dn.multiple=!!bn,hn!=null?nc(dn,!!bn,hn,!1):gn!=null&&nc(dn,!!bn,gn,!0);return;case"textarea":Ts("invalid",dn),_n=Sn=bn=null;for(Bn in gn)if(gn.hasOwnProperty(Bn)&&(Vn=gn[Bn],Vn!=null))switch(Bn){case"value":bn=Vn;break;case"defaultValue":Sn=Vn;break;case"children":_n=Vn;break;case"dangerouslySetInnerHTML":if(Vn!=null)throw Error(sn(91));break;default:$s(dn,hn,Bn,Vn,gn,null)}mh(dn,bn,Sn,_n),Mu(dn);return;case"option":for(Kn in gn)if(gn.hasOwnProperty(Kn)&&(bn=gn[Kn],bn!=null))switch(Kn){case"selected":dn.selected=bn&&typeof bn!="function"&&typeof bn!="symbol";break;default:$s(dn,hn,Kn,bn,gn,null)}return;case"dialog":Ts("cancel",dn),Ts("close",dn);break;case"iframe":case"object":Ts("load",dn);break;case"video":case"audio":for(bn=0;bn<nh.length;bn++)Ts(nh[bn],dn);break;case"image":Ts("error",dn),Ts("load",dn);break;case"details":Ts("toggle",dn);break;case"embed":case"source":case"link":Ts("error",dn),Ts("load",dn);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(or in gn)if(gn.hasOwnProperty(or)&&(bn=gn[or],bn!=null))switch(or){case"children":case"dangerouslySetInnerHTML":throw Error(sn(137,hn));default:$s(dn,hn,or,bn,gn,null)}return;default:if(yd(hn)){for(Sr in gn)gn.hasOwnProperty(Sr)&&(bn=gn[Sr],bn!==void 0&&Zf(dn,hn,Sr,bn,gn,void 0));return}}for(Vn in gn)gn.hasOwnProperty(Vn)&&(bn=gn[Vn],bn!=null&&$s(dn,hn,Vn,bn,gn,null))}function B1(dn,hn,gn,bn){switch(hn){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var Sn=null,_n=null,Bn=null,Vn=null,Kn=null,or=null,Sr=null;for(Cr in gn){var Mr=gn[Cr];if(gn.hasOwnProperty(Cr)&&Mr!=null)switch(Cr){case"checked":break;case"value":break;case"defaultValue":Kn=Mr;default:bn.hasOwnProperty(Cr)||$s(dn,hn,Cr,null,bn,Mr)}}for(var xr in bn){var Cr=bn[xr];if(Mr=gn[xr],bn.hasOwnProperty(xr)&&(Cr!=null||Mr!=null))switch(xr){case"type":_n=Cr;break;case"name":Sn=Cr;break;case"checked":or=Cr;break;case"defaultChecked":Sr=Cr;break;case"value":Bn=Cr;break;case"defaultValue":Vn=Cr;break;case"children":case"dangerouslySetInnerHTML":if(Cr!=null)throw Error(sn(137,hn));break;default:Cr!==Mr&&$s(dn,hn,xr,Cr,bn,Mr)}}bd(dn,Bn,Vn,Kn,or,Sr,_n,Sn);return;case"select":Cr=Bn=Vn=xr=null;for(_n in gn)if(Kn=gn[_n],gn.hasOwnProperty(_n)&&Kn!=null)switch(_n){case"value":break;case"multiple":Cr=Kn;default:bn.hasOwnProperty(_n)||$s(dn,hn,_n,null,bn,Kn)}for(Sn in bn)if(_n=bn[Sn],Kn=gn[Sn],bn.hasOwnProperty(Sn)&&(_n!=null||Kn!=null))switch(Sn){case"value":xr=_n;break;case"defaultValue":Vn=_n;break;case"multiple":Bn=_n;default:_n!==Kn&&$s(dn,hn,Sn,_n,bn,Kn)}hn=Vn,gn=Bn,bn=Cr,xr!=null?nc(dn,!!gn,xr,!1):!!bn!=!!gn&&(hn!=null?nc(dn,!!gn,hn,!0):nc(dn,!!gn,gn?[]:"",!1));return;case"textarea":Cr=xr=null;for(Vn in gn)if(Sn=gn[Vn],gn.hasOwnProperty(Vn)&&Sn!=null&&!bn.hasOwnProperty(Vn))switch(Vn){case"value":break;case"children":break;default:$s(dn,hn,Vn,null,bn,Sn)}for(Bn in bn)if(Sn=bn[Bn],_n=gn[Bn],bn.hasOwnProperty(Bn)&&(Sn!=null||_n!=null))switch(Bn){case"value":xr=Sn;break;case"defaultValue":Cr=Sn;break;case"children":break;case"dangerouslySetInnerHTML":if(Sn!=null)throw Error(sn(91));break;default:Sn!==_n&&$s(dn,hn,Bn,Sn,bn,_n)}_c(dn,xr,Cr);return;case"option":for(var Gr in gn)if(xr=gn[Gr],gn.hasOwnProperty(Gr)&&xr!=null&&!bn.hasOwnProperty(Gr))switch(Gr){case"selected":dn.selected=!1;break;default:$s(dn,hn,Gr,null,bn,xr)}for(Kn in bn)if(xr=bn[Kn],Cr=gn[Kn],bn.hasOwnProperty(Kn)&&xr!==Cr&&(xr!=null||Cr!=null))switch(Kn){case"selected":dn.selected=xr&&typeof xr!="function"&&typeof xr!="symbol";break;default:$s(dn,hn,Kn,xr,bn,Cr)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ys in gn)xr=gn[ys],gn.hasOwnProperty(ys)&&xr!=null&&!bn.hasOwnProperty(ys)&&$s(dn,hn,ys,null,bn,xr);for(or in bn)if(xr=bn[or],Cr=gn[or],bn.hasOwnProperty(or)&&xr!==Cr&&(xr!=null||Cr!=null))switch(or){case"children":case"dangerouslySetInnerHTML":if(xr!=null)throw Error(sn(137,hn));break;default:$s(dn,hn,or,xr,bn,Cr)}return;default:if(yd(hn)){for(var il in gn)xr=gn[il],gn.hasOwnProperty(il)&&xr!==void 0&&!bn.hasOwnProperty(il)&&Zf(dn,hn,il,void 0,bn,xr);for(Sr in bn)xr=bn[Sr],Cr=gn[Sr],!bn.hasOwnProperty(Sr)||xr===Cr||xr===void 0&&Cr===void 0||Zf(dn,hn,Sr,xr,bn,Cr);return}}for(var dr in gn)xr=gn[dr],gn.hasOwnProperty(dr)&&xr!=null&&!bn.hasOwnProperty(dr)&&$s(dn,hn,dr,null,bn,xr);for(Mr in bn)xr=bn[Mr],Cr=gn[Mr],!bn.hasOwnProperty(Mr)||xr===Cr||xr==null&&Cr==null||$s(dn,hn,Mr,xr,bn,Cr)}var Kf=null,Qf=null;function lp(dn){return dn.nodeType===9?dn:dn.ownerDocument}function Rg(dn){switch(dn){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function kg(dn,hn){if(dn===0)switch(hn){case"svg":return 1;case"math":return 2;default:return 0}return dn===1&&hn==="foreignObject"?0:dn}function Jf(dn,hn){return dn==="textarea"||dn==="noscript"||typeof hn.children=="string"||typeof hn.children=="number"||typeof hn.children=="bigint"||typeof hn.dangerouslySetInnerHTML=="object"&&hn.dangerouslySetInnerHTML!==null&&hn.dangerouslySetInnerHTML.__html!=null}var e0=null;function H1(){var dn=window.event;return dn&&dn.type==="popstate"?dn===e0?!1:(e0=dn,!0):(e0=null,!1)}var _g=typeof setTimeout=="function"?setTimeout:void 0,z1=typeof clearTimeout=="function"?clearTimeout:void 0,Mg=typeof Promise=="function"?Promise:void 0,F1=typeof queueMicrotask=="function"?queueMicrotask:typeof Mg<"u"?function(dn){return Mg.resolve(null).then(dn).catch($1)}:_g;function $1(dn){setTimeout(function(){throw dn})}function t0(dn,hn){var gn=hn,bn=0;do{var Sn=gn.nextSibling;if(dn.removeChild(gn),Sn&&Sn.nodeType===8)if(gn=Sn.data,gn==="/$"){if(bn===0){dn.removeChild(Sn),dh(hn);return}bn--}else gn!=="$"&&gn!=="$?"&&gn!=="$!"||bn++;gn=Sn}while(gn);dh(hn)}function n0(dn){var hn=dn.firstChild;for(hn&&hn.nodeType===10&&(hn=hn.nextSibling);hn;){var gn=hn;switch(hn=hn.nextSibling,gn.nodeName){case"HTML":case"HEAD":case"BODY":n0(gn),ec(gn);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(gn.rel.toLowerCase()==="stylesheet")continue}dn.removeChild(gn)}}function U1(dn,hn,gn,bn){for(;dn.nodeType===1;){var Sn=gn;if(dn.nodeName.toLowerCase()!==hn.toLowerCase()){if(!bn&&(dn.nodeName!=="INPUT"||dn.type!=="hidden"))break}else if(bn){if(!dn[Ao])switch(hn){case"meta":if(!dn.hasAttribute("itemprop"))break;return dn;case"link":if(_n=dn.getAttribute("rel"),_n==="stylesheet"&&dn.hasAttribute("data-precedence"))break;if(_n!==Sn.rel||dn.getAttribute("href")!==(Sn.href==null?null:Sn.href)||dn.getAttribute("crossorigin")!==(Sn.crossOrigin==null?null:Sn.crossOrigin)||dn.getAttribute("title")!==(Sn.title==null?null:Sn.title))break;return dn;case"style":if(dn.hasAttribute("data-precedence"))break;return dn;case"script":if(_n=dn.getAttribute("src"),(_n!==(Sn.src==null?null:Sn.src)||dn.getAttribute("type")!==(Sn.type==null?null:Sn.type)||dn.getAttribute("crossorigin")!==(Sn.crossOrigin==null?null:Sn.crossOrigin))&&_n&&dn.hasAttribute("async")&&!dn.hasAttribute("itemprop"))break;return dn;default:return dn}}else if(hn==="input"&&dn.type==="hidden"){var _n=Sn.name==null?null:""+Sn.name;if(Sn.type==="hidden"&&dn.getAttribute("name")===_n)return dn}else return dn;if(dn=Io(dn.nextSibling),dn===null)break}return null}function V1(dn,hn,gn){if(hn==="")return null;for(;dn.nodeType!==3;)if((dn.nodeType!==1||dn.nodeName!=="INPUT"||dn.type!=="hidden")&&!gn||(dn=Io(dn.nextSibling),dn===null))return null;return dn}function Io(dn){for(;dn!=null;dn=dn.nextSibling){var hn=dn.nodeType;if(hn===1||hn===3)break;if(hn===8){if(hn=dn.data,hn==="$"||hn==="$!"||hn==="$?"||hn==="F!"||hn==="F")break;if(hn==="/$")return null}}return dn}function Dg(dn){dn=dn.previousSibling;for(var hn=0;dn;){if(dn.nodeType===8){var gn=dn.data;if(gn==="$"||gn==="$!"||gn==="$?"){if(hn===0)return dn;hn--}else gn==="/$"&&hn++}dn=dn.previousSibling}return null}function Tg(dn,hn,gn){switch(hn=lp(gn),dn){case"html":if(dn=hn.documentElement,!dn)throw Error(sn(452));return dn;case"head":if(dn=hn.head,!dn)throw Error(sn(453));return dn;case"body":if(dn=hn.body,!dn)throw Error(sn(454));return dn;default:throw Error(sn(451))}}var wo=new Map,Ng=new Set;function op(dn){return typeof dn.getRootNode=="function"?dn.getRootNode():dn.ownerDocument}var jc=Er.d;Er.d={f:W1,r:Y1,D:q1,C:X1,L:G1,m:Z1,X:Q1,S:K1,M:J1};function W1(){var dn=jc.f(),hn=ep();return dn||hn}function Y1(dn){var hn=Co(dn);hn!==null&&hn.tag===5&&hn.type==="form"?sm(hn):jc.r(dn)}var hd=typeof document>"u"?null:document;function Lg(dn,hn,gn){var bn=hd;if(bn&&typeof hn=="string"&&hn){var Sn=Il(hn);Sn='link[rel="'+dn+'"][href="'+Sn+'"]',typeof gn=="string"&&(Sn+='[crossorigin="'+gn+'"]'),Ng.has(Sn)||(Ng.add(Sn),dn={rel:dn,crossOrigin:gn,href:hn},bn.querySelector(Sn)===null&&(hn=bn.createElement("link"),Tl(hn,"link",dn),cl(hn),bn.head.appendChild(hn)))}}function q1(dn){jc.D(dn),Lg("dns-prefetch",dn,null)}function X1(dn,hn){jc.C(dn,hn),Lg("preconnect",dn,hn)}function G1(dn,hn,gn){jc.L(dn,hn,gn);var bn=hd;if(bn&&dn&&hn){var Sn='link[rel="preload"][as="'+Il(hn)+'"]';hn==="image"&&gn&&gn.imageSrcSet?(Sn+='[imagesrcset="'+Il(gn.imageSrcSet)+'"]',typeof gn.imageSizes=="string"&&(Sn+='[imagesizes="'+Il(gn.imageSizes)+'"]')):Sn+='[href="'+Il(dn)+'"]';var _n=Sn;switch(hn){case"style":_n=pd(dn);break;case"script":_n=fd(dn)}wo.has(_n)||(dn=Yn({rel:"preload",href:hn==="image"&&gn&&gn.imageSrcSet?void 0:dn,as:hn},gn),wo.set(_n,dn),bn.querySelector(Sn)!==null||hn==="style"&&bn.querySelector(ah(_n))||hn==="script"&&bn.querySelector(ih(_n))||(hn=bn.createElement("link"),Tl(hn,"link",dn),cl(hn),bn.head.appendChild(hn)))}}function Z1(dn,hn){jc.m(dn,hn);var gn=hd;if(gn&&dn){var bn=hn&&typeof hn.as=="string"?hn.as:"script",Sn='link[rel="modulepreload"][as="'+Il(bn)+'"][href="'+Il(dn)+'"]',_n=Sn;switch(bn){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_n=fd(dn)}if(!wo.has(_n)&&(dn=Yn({rel:"modulepreload",href:dn},hn),wo.set(_n,dn),gn.querySelector(Sn)===null)){switch(bn){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(gn.querySelector(ih(_n)))return}bn=gn.createElement("link"),Tl(bn,"link",dn),cl(bn),gn.head.appendChild(bn)}}}function K1(dn,hn,gn){jc.S(dn,hn,gn);var bn=hd;if(bn&&dn){var Sn=so(bn).hoistableStyles,_n=pd(dn);hn=hn||"default";var Bn=Sn.get(_n);if(!Bn){var Vn={loading:0,preload:null};if(Bn=bn.querySelector(ah(_n)))Vn.loading=5;else{dn=Yn({rel:"stylesheet",href:dn,"data-precedence":hn},gn),(gn=wo.get(_n))&&r0(dn,gn);var Kn=Bn=bn.createElement("link");cl(Kn),Tl(Kn,"link",dn),Kn._p=new Promise(function(or,Sr){Kn.onload=or,Kn.onerror=Sr}),Kn.addEventListener("load",function(){Vn.loading|=1}),Kn.addEventListener("error",function(){Vn.loading|=2}),Vn.loading|=4,cp(Bn,hn,bn)}Bn={type:"stylesheet",instance:Bn,count:1,state:Vn},Sn.set(_n,Bn)}}}function Q1(dn,hn){jc.X(dn,hn);var gn=hd;if(gn&&dn){var bn=so(gn).hoistableScripts,Sn=fd(dn),_n=bn.get(Sn);_n||(_n=gn.querySelector(ih(Sn)),_n||(dn=Yn({src:dn,async:!0},hn),(hn=wo.get(Sn))&&a0(dn,hn),_n=gn.createElement("script"),cl(_n),Tl(_n,"link",dn),gn.head.appendChild(_n)),_n={type:"script",instance:_n,count:1,state:null},bn.set(Sn,_n))}}function J1(dn,hn){jc.M(dn,hn);var gn=hd;if(gn&&dn){var bn=so(gn).hoistableScripts,Sn=fd(dn),_n=bn.get(Sn);_n||(_n=gn.querySelector(ih(Sn)),_n||(dn=Yn({src:dn,async:!0,type:"module"},hn),(hn=wo.get(Sn))&&a0(dn,hn),_n=gn.createElement("script"),cl(_n),Tl(_n,"link",dn),gn.head.appendChild(_n)),_n={type:"script",instance:_n,count:1,state:null},bn.set(Sn,_n))}}function Og(dn,hn,gn,bn){var Sn=(Sn=Ns.current)?op(Sn):null;if(!Sn)throw Error(sn(446));switch(dn){case"meta":case"title":return null;case"style":return typeof gn.precedence=="string"&&typeof gn.href=="string"?(hn=pd(gn.href),gn=so(Sn).hoistableStyles,bn=gn.get(hn),bn||(bn={type:"style",instance:null,count:0,state:null},gn.set(hn,bn)),bn):{type:"void",instance:null,count:0,state:null};case"link":if(gn.rel==="stylesheet"&&typeof gn.href=="string"&&typeof gn.precedence=="string"){dn=pd(gn.href);var _n=so(Sn).hoistableStyles,Bn=_n.get(dn);if(Bn||(Sn=Sn.ownerDocument||Sn,Bn={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_n.set(dn,Bn),(_n=Sn.querySelector(ah(dn)))&&!_n._p&&(Bn.instance=_n,Bn.state.loading=5),wo.has(dn)||(gn={rel:"preload",as:"style",href:gn.href,crossOrigin:gn.crossOrigin,integrity:gn.integrity,media:gn.media,hrefLang:gn.hrefLang,referrerPolicy:gn.referrerPolicy},wo.set(dn,gn),_n||ex(Sn,dn,gn,Bn.state))),hn&&bn===null)throw Error(sn(528,""));return Bn}if(hn&&bn!==null)throw Error(sn(529,""));return null;case"script":return hn=gn.async,gn=gn.src,typeof gn=="string"&&hn&&typeof hn!="function"&&typeof hn!="symbol"?(hn=fd(gn),gn=so(Sn).hoistableScripts,bn=gn.get(hn),bn||(bn={type:"script",instance:null,count:0,state:null},gn.set(hn,bn)),bn):{type:"void",instance:null,count:0,state:null};default:throw Error(sn(444,dn))}}function pd(dn){return'href="'+Il(dn)+'"'}function ah(dn){return'link[rel="stylesheet"]['+dn+"]"}function Ig(dn){return Yn({},dn,{"data-precedence":dn.precedence,precedence:null})}function ex(dn,hn,gn,bn){dn.querySelector('link[rel="preload"][as="style"]['+hn+"]")?bn.loading=1:(hn=dn.createElement("link"),bn.preload=hn,hn.addEventListener("load",function(){return bn.loading|=1}),hn.addEventListener("error",function(){return bn.loading|=2}),Tl(hn,"link",gn),cl(hn),dn.head.appendChild(hn))}function fd(dn){return'[src="'+Il(dn)+'"]'}function ih(dn){return"script[async]"+dn}function Pg(dn,hn,gn){if(hn.count++,hn.instance===null)switch(hn.type){case"style":var bn=dn.querySelector('style[data-href~="'+Il(gn.href)+'"]');if(bn)return hn.instance=bn,cl(bn),bn;var Sn=Yn({},gn,{"data-href":gn.href,"data-precedence":gn.precedence,href:null,precedence:null});return bn=(dn.ownerDocument||dn).createElement("style"),cl(bn),Tl(bn,"style",Sn),cp(bn,gn.precedence,dn),hn.instance=bn;case"stylesheet":Sn=pd(gn.href);var _n=dn.querySelector(ah(Sn));if(_n)return hn.state.loading|=4,hn.instance=_n,cl(_n),_n;bn=Ig(gn),(Sn=wo.get(Sn))&&r0(bn,Sn),_n=(dn.ownerDocument||dn).createElement("link"),cl(_n);var Bn=_n;return Bn._p=new Promise(function(Vn,Kn){Bn.onload=Vn,Bn.onerror=Kn}),Tl(_n,"link",bn),hn.state.loading|=4,cp(_n,gn.precedence,dn),hn.instance=_n;case"script":return _n=fd(gn.src),(Sn=dn.querySelector(ih(_n)))?(hn.instance=Sn,cl(Sn),Sn):(bn=gn,(Sn=wo.get(_n))&&(bn=Yn({},gn),a0(bn,Sn)),dn=dn.ownerDocument||dn,Sn=dn.createElement("script"),cl(Sn),Tl(Sn,"link",bn),dn.head.appendChild(Sn),hn.instance=Sn);case"void":return null;default:throw Error(sn(443,hn.type))}else hn.type==="stylesheet"&&!(hn.state.loading&4)&&(bn=hn.instance,hn.state.loading|=4,cp(bn,gn.precedence,dn));return hn.instance}function cp(dn,hn,gn){for(var bn=gn.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),Sn=bn.length?bn[bn.length-1]:null,_n=Sn,Bn=0;Bn<bn.length;Bn++){var Vn=bn[Bn];if(Vn.dataset.precedence===hn)_n=Vn;else if(_n!==Sn)break}_n?_n.parentNode.insertBefore(dn,_n.nextSibling):(hn=gn.nodeType===9?gn.head:gn,hn.insertBefore(dn,hn.firstChild))}function r0(dn,hn){dn.crossOrigin==null&&(dn.crossOrigin=hn.crossOrigin),dn.referrerPolicy==null&&(dn.referrerPolicy=hn.referrerPolicy),dn.title==null&&(dn.title=hn.title)}function a0(dn,hn){dn.crossOrigin==null&&(dn.crossOrigin=hn.crossOrigin),dn.referrerPolicy==null&&(dn.referrerPolicy=hn.referrerPolicy),dn.integrity==null&&(dn.integrity=hn.integrity)}var up=null;function Bg(dn,hn,gn){if(up===null){var bn=new Map,Sn=up=new Map;Sn.set(gn,bn)}else Sn=up,bn=Sn.get(gn),bn||(bn=new Map,Sn.set(gn,bn));if(bn.has(dn))return bn;for(bn.set(dn,null),gn=gn.getElementsByTagName(dn),Sn=0;Sn<gn.length;Sn++){var _n=gn[Sn];if(!(_n[Ao]||_n[Xs]||dn==="link"&&_n.getAttribute("rel")==="stylesheet")&&_n.namespaceURI!=="http://www.w3.org/2000/svg"){var Bn=_n.getAttribute(hn)||"";Bn=dn+Bn;var Vn=bn.get(Bn);Vn?Vn.push(_n):bn.set(Bn,[_n])}}return bn}function Hg(dn,hn,gn){dn=dn.ownerDocument||dn,dn.head.insertBefore(gn,hn==="title"?dn.querySelector("head > title"):null)}function tx(dn,hn,gn){if(gn===1||hn.itemProp!=null)return!1;switch(dn){case"meta":case"title":return!0;case"style":if(typeof hn.precedence!="string"||typeof hn.href!="string"||hn.href==="")break;return!0;case"link":if(typeof hn.rel!="string"||typeof hn.href!="string"||hn.href===""||hn.onLoad||hn.onError)break;switch(hn.rel){case"stylesheet":return dn=hn.disabled,typeof hn.precedence=="string"&&dn==null;default:return!0}case"script":if(hn.async&&typeof hn.async!="function"&&typeof hn.async!="symbol"&&!hn.onLoad&&!hn.onError&&hn.src&&typeof hn.src=="string")return!0}return!1}function zg(dn){return!(dn.type==="stylesheet"&&!(dn.state.loading&3))}var sh=null;function nx(){}function rx(dn,hn,gn){if(sh===null)throw Error(sn(475));var bn=sh;if(hn.type==="stylesheet"&&(typeof gn.media!="string"||matchMedia(gn.media).matches!==!1)&&!(hn.state.loading&4)){if(hn.instance===null){var Sn=pd(gn.href),_n=dn.querySelector(ah(Sn));if(_n){dn=_n._p,dn!==null&&typeof dn=="object"&&typeof dn.then=="function"&&(bn.count++,bn=dp.bind(bn),dn.then(bn,bn)),hn.state.loading|=4,hn.instance=_n,cl(_n);return}_n=dn.ownerDocument||dn,gn=Ig(gn),(Sn=wo.get(Sn))&&r0(gn,Sn),_n=_n.createElement("link"),cl(_n);var Bn=_n;Bn._p=new Promise(function(Vn,Kn){Bn.onload=Vn,Bn.onerror=Kn}),Tl(_n,"link",gn),hn.instance=_n}bn.stylesheets===null&&(bn.stylesheets=new Map),bn.stylesheets.set(hn,dn),(dn=hn.state.preload)&&!(hn.state.loading&3)&&(bn.count++,hn=dp.bind(bn),dn.addEventListener("load",hn),dn.addEventListener("error",hn))}}function ax(){if(sh===null)throw Error(sn(475));var dn=sh;return dn.stylesheets&&dn.count===0&&i0(dn,dn.stylesheets),0<dn.count?function(hn){var gn=setTimeout(function(){if(dn.stylesheets&&i0(dn,dn.stylesheets),dn.unsuspend){var bn=dn.unsuspend;dn.unsuspend=null,bn()}},6e4);return dn.unsuspend=hn,function(){dn.unsuspend=null,clearTimeout(gn)}}:null}function dp(){if(this.count--,this.count===0){if(this.stylesheets)i0(this,this.stylesheets);else if(this.unsuspend){var dn=this.unsuspend;this.unsuspend=null,dn()}}}var hp=null;function i0(dn,hn){dn.stylesheets=null,dn.unsuspend!==null&&(dn.count++,hp=new Map,hn.forEach(ix,dn),hp=null,dp.call(dn))}function ix(dn,hn){if(!(hn.state.loading&4)){var gn=hp.get(dn);if(gn)var bn=gn.get(null);else{gn=new Map,hp.set(dn,gn);for(var Sn=dn.querySelectorAll("link[data-precedence],style[data-precedence]"),_n=0;_n<Sn.length;_n++){var Bn=Sn[_n];(Bn.nodeName==="LINK"||Bn.getAttribute("media")!=="not all")&&(gn.set(Bn.dataset.precedence,Bn),bn=Bn)}bn&&gn.set(null,bn)}Sn=hn.instance,Bn=Sn.getAttribute("data-precedence"),_n=gn.get(Bn)||bn,_n===bn&&gn.set(null,Sn),gn.set(Bn,Sn),this.count++,bn=dp.bind(this),Sn.addEventListener("load",bn),Sn.addEventListener("error",bn),_n?_n.parentNode.insertBefore(Sn,_n.nextSibling):(dn=dn.nodeType===9?dn.head:dn,dn.insertBefore(Sn,dn.firstChild)),hn.state.loading|=4}}var lh={$$typeof:wn,Provider:null,Consumer:null,_currentValue:Fr,_currentValue2:Fr,_threadCount:0};function sx(dn,hn,gn,bn,Sn,_n,Bn,Vn){this.tag=1,this.containerInfo=dn,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Hr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hr(0),this.hiddenUpdates=Hr(null),this.identifierPrefix=bn,this.onUncaughtError=Sn,this.onCaughtError=_n,this.onRecoverableError=Bn,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Vn,this.incompleteTransitions=new Map}function Fg(dn,hn,gn,bn,Sn,_n,Bn,Vn,Kn,or,Sr,Mr){return dn=new sx(dn,hn,gn,Bn,Vn,Kn,or,Mr),hn=1,_n===!0&&(hn|=24),_n=bo(3,null,null,hn),dn.current=_n,_n.stateNode=dn,hn=Ip(),hn.refCount++,dn.pooledCache=hn,hn.refCount++,_n.memoizedState={element:bn,isDehydrated:gn,cache:hn},xf(_n),dn}function $g(dn){return dn?(dn=Yu,dn):Yu}function Ug(dn,hn,gn,bn,Sn,_n){Sn=$g(Sn),bn.context===null?bn.context=Sn:bn.pendingContext=Sn,bn=$c(hn),bn.payload={element:gn},_n=_n===void 0?null:_n,_n!==null&&(bn.callback=_n),gn=Uc(dn,bn,hn),gn!==null&&(zl(gn,dn,hn),Vd(gn,dn,hn))}function Vg(dn,hn){if(dn=dn.memoizedState,dn!==null&&dn.dehydrated!==null){var gn=dn.retryLane;dn.retryLane=gn!==0&&gn<hn?gn:hn}}function s0(dn,hn){Vg(dn,hn),(dn=dn.alternate)&&Vg(dn,hn)}function Wg(dn){if(dn.tag===13){var hn=Oc(dn,67108864);hn!==null&&zl(hn,dn,67108864),s0(dn,67108864)}}var pp=!0;function lx(dn,hn,gn,bn){var Sn=Un.T;Un.T=null;var _n=Er.p;try{Er.p=2,l0(dn,hn,gn,bn)}finally{Er.p=_n,Un.T=Sn}}function ox(dn,hn,gn,bn){var Sn=Un.T;Un.T=null;var _n=Er.p;try{Er.p=8,l0(dn,hn,gn,bn)}finally{Er.p=_n,Un.T=Sn}}function l0(dn,hn,gn,bn){if(pp){var Sn=o0(bn);if(Sn===null)Gf(dn,hn,bn,fp,gn),qg(dn,bn);else if(ux(Sn,dn,hn,gn,bn))bn.stopPropagation();else if(qg(dn,bn),hn&4&&-1<cx.indexOf(dn)){for(;Sn!==null;){var _n=Co(Sn);if(_n!==null)switch(_n.tag){case 3:if(_n=_n.stateNode,_n.current.memoizedState.isDehydrated){var Bn=io(_n.pendingLanes);if(Bn!==0){var Vn=_n;for(Vn.pendingLanes|=2,Vn.entangledLanes|=2;Bn;){var Kn=1<<31-Ws(Bn);Vn.entanglements[1]|=Kn,Bn&=~Kn}Qo(_n),!(el&6)&&(Kh=Lr()+500,th(0))}}break;case 13:Vn=Oc(_n,2),Vn!==null&&zl(Vn,_n,2),ep(),s0(_n,2)}if(_n=o0(bn),_n===null&&Gf(dn,hn,bn,fp,gn),_n===Sn)break;Sn=_n}Sn!==null&&bn.stopPropagation()}else Gf(dn,hn,bn,null,gn)}}function o0(dn){return dn=Ou(dn),c0(dn)}var fp=null;function c0(dn){if(fp=null,dn=Wl(dn),dn!==null){var hn=ur(dn);if(hn===null)dn=null;else{var gn=hn.tag;if(gn===13){if(dn=wr(hn),dn!==null)return dn;dn=null}else if(gn===3){if(hn.stateNode.current.memoizedState.isDehydrated)return hn.tag===3?hn.stateNode.containerInfo:null;dn=null}else hn!==dn&&(dn=null)}}return fp=dn,null}function Yg(dn){switch(dn){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Rr()){case Es:return 2;case Vs:return 8;case nl:case ro:return 32;case $l:return 268435456;default:return 32}default:return 32}}var u0=!1,Zc=null,Kc=null,Qc=null,oh=new Map,ch=new Map,Jc=[],cx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function qg(dn,hn){switch(dn){case"focusin":case"focusout":Zc=null;break;case"dragenter":case"dragleave":Kc=null;break;case"mouseover":case"mouseout":Qc=null;break;case"pointerover":case"pointerout":oh.delete(hn.pointerId);break;case"gotpointercapture":case"lostpointercapture":ch.delete(hn.pointerId)}}function uh(dn,hn,gn,bn,Sn,_n){return dn===null||dn.nativeEvent!==_n?(dn={blockedOn:hn,domEventName:gn,eventSystemFlags:bn,nativeEvent:_n,targetContainers:[Sn]},hn!==null&&(hn=Co(hn),hn!==null&&Wg(hn)),dn):(dn.eventSystemFlags|=bn,hn=dn.targetContainers,Sn!==null&&hn.indexOf(Sn)===-1&&hn.push(Sn),dn)}function ux(dn,hn,gn,bn,Sn){switch(hn){case"focusin":return Zc=uh(Zc,dn,hn,gn,bn,Sn),!0;case"dragenter":return Kc=uh(Kc,dn,hn,gn,bn,Sn),!0;case"mouseover":return Qc=uh(Qc,dn,hn,gn,bn,Sn),!0;case"pointerover":var _n=Sn.pointerId;return oh.set(_n,uh(oh.get(_n)||null,dn,hn,gn,bn,Sn)),!0;case"gotpointercapture":return _n=Sn.pointerId,ch.set(_n,uh(ch.get(_n)||null,dn,hn,gn,bn,Sn)),!0}return!1}function Xg(dn){var hn=Wl(dn.target);if(hn!==null){var gn=ur(hn);if(gn!==null){if(hn=gn.tag,hn===13){if(hn=wr(gn),hn!==null){dn.blockedOn=hn,Vl(dn.priority,function(){if(gn.tag===13){var bn=to(),Sn=Oc(gn,bn);Sn!==null&&zl(Sn,gn,bn),s0(gn,bn)}});return}}else if(hn===3&&gn.stateNode.current.memoizedState.isDehydrated){dn.blockedOn=gn.tag===3?gn.stateNode.containerInfo:null;return}}}dn.blockedOn=null}function mp(dn){if(dn.blockedOn!==null)return!1;for(var hn=dn.targetContainers;0<hn.length;){var gn=o0(dn.nativeEvent);if(gn===null){gn=dn.nativeEvent;var bn=new gn.constructor(gn.type,gn);Lu=bn,gn.target.dispatchEvent(bn),Lu=null}else return hn=Co(gn),hn!==null&&Wg(hn),dn.blockedOn=gn,!1;hn.shift()}return!0}function Gg(dn,hn,gn){mp(dn)&&gn.delete(hn)}function dx(){u0=!1,Zc!==null&&mp(Zc)&&(Zc=null),Kc!==null&&mp(Kc)&&(Kc=null),Qc!==null&&mp(Qc)&&(Qc=null),oh.forEach(Gg),ch.forEach(Gg)}function gp(dn,hn){dn.blockedOn===hn&&(dn.blockedOn=null,u0||(u0=!0,ln.unstable_scheduleCallback(ln.unstable_NormalPriority,dx)))}var xp=null;function Zg(dn){xp!==dn&&(xp=dn,ln.unstable_scheduleCallback(ln.unstable_NormalPriority,function(){xp===dn&&(xp=null);for(var hn=0;hn<dn.length;hn+=3){var gn=dn[hn],bn=dn[hn+1],Sn=dn[hn+2];if(typeof bn!="function"){if(c0(bn||gn)===null)continue;break}var _n=Co(gn);_n!==null&&(dn.splice(hn,3),hn-=3,Qp(_n,{pending:!0,data:Sn,method:gn.method,action:bn},bn,Sn))}}))}function dh(dn){function hn(Kn){return gp(Kn,dn)}Zc!==null&&gp(Zc,dn),Kc!==null&&gp(Kc,dn),Qc!==null&&gp(Qc,dn),oh.forEach(hn),ch.forEach(hn);for(var gn=0;gn<Jc.length;gn++){var bn=Jc[gn];bn.blockedOn===dn&&(bn.blockedOn=null)}for(;0<Jc.length&&(gn=Jc[0],gn.blockedOn===null);)Xg(gn),gn.blockedOn===null&&Jc.shift();if(gn=(dn.ownerDocument||dn).$$reactFormReplay,gn!=null)for(bn=0;bn<gn.length;bn+=3){var Sn=gn[bn],_n=gn[bn+1],Bn=Sn[Qs]||null;if(typeof _n=="function")Bn||Zg(gn);else if(Bn){var Vn=null;if(_n&&_n.hasAttribute("formAction")){if(Sn=_n,Bn=_n[Qs]||null)Vn=Bn.formAction;else if(c0(Sn)!==null)continue}else Vn=Bn.action;typeof Vn=="function"?gn[bn+1]=Vn:(gn.splice(bn,3),bn-=3),Zg(gn)}}}function d0(dn){this._internalRoot=dn}vp.prototype.render=d0.prototype.render=function(dn){var hn=this._internalRoot;if(hn===null)throw Error(sn(409));var gn=hn.current,bn=to();Ug(gn,bn,dn,hn,null,null)},vp.prototype.unmount=d0.prototype.unmount=function(){var dn=this._internalRoot;if(dn!==null){this._internalRoot=null;var hn=dn.containerInfo;dn.tag===0&&cd(),Ug(dn.current,2,null,dn,null,null),ep(),hn[Ho]=null}};function vp(dn){this._internalRoot=dn}vp.prototype.unstable_scheduleHydration=function(dn){if(dn){var hn=Os();dn={blockedOn:null,target:dn,priority:hn};for(var gn=0;gn<Jc.length&&hn!==0&&hn<Jc[gn].priority;gn++);Jc.splice(gn,0,dn),gn===0&&Xg(dn)}};var Kg=rn.version;if(Kg!=="19.0.0")throw Error(sn(527,Kg,"19.0.0"));Er.findDOMNode=function(dn){var hn=dn._reactInternals;if(hn===void 0)throw typeof dn.render=="function"?Error(sn(188)):(dn=Object.keys(dn).join(","),Error(sn(268,dn)));return dn=cr(hn),dn=dn!==null?_r(dn):null,dn=dn===null?null:dn.stateNode,dn};var hx={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:Un,findFiberByHostInstance:Wl,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bp.isDisabled&&bp.supportsFiber)try{ll=bp.inject(hx),zs=bp}catch{}}return reactDomClient_production.createRoot=function(dn,hn){if(!on(dn))throw Error(sn(299));var gn=!1,bn="",Sn=fm,_n=mm,Bn=gm,Vn=null;return hn!=null&&(hn.unstable_strictMode===!0&&(gn=!0),hn.identifierPrefix!==void 0&&(bn=hn.identifierPrefix),hn.onUncaughtError!==void 0&&(Sn=hn.onUncaughtError),hn.onCaughtError!==void 0&&(_n=hn.onCaughtError),hn.onRecoverableError!==void 0&&(Bn=hn.onRecoverableError),hn.unstable_transitionCallbacks!==void 0&&(Vn=hn.unstable_transitionCallbacks)),hn=Fg(dn,1,!1,null,null,gn,bn,Sn,_n,Bn,Vn,null),dn[Ho]=hn.current,Xf(dn.nodeType===8?dn.parentNode:dn),new d0(hn)},reactDomClient_production.hydrateRoot=function(dn,hn,gn){if(!on(dn))throw Error(sn(299));var bn=!1,Sn="",_n=fm,Bn=mm,Vn=gm,Kn=null,or=null;return gn!=null&&(gn.unstable_strictMode===!0&&(bn=!0),gn.identifierPrefix!==void 0&&(Sn=gn.identifierPrefix),gn.onUncaughtError!==void 0&&(_n=gn.onUncaughtError),gn.onCaughtError!==void 0&&(Bn=gn.onCaughtError),gn.onRecoverableError!==void 0&&(Vn=gn.onRecoverableError),gn.unstable_transitionCallbacks!==void 0&&(Kn=gn.unstable_transitionCallbacks),gn.formState!==void 0&&(or=gn.formState)),hn=Fg(dn,1,!0,hn,gn??null,bn,Sn,_n,Bn,Vn,Kn,or),hn.context=$g(null),gn=hn.current,bn=to(),Sn=$c(bn),Sn.callback=null,Uc(gn,Sn,bn),hn.current.lanes=bn,ps(hn,bn),Qo(hn),dn[Ho]=hn.current,Xf(dn),new vp(hn)},reactDomClient_production.version="19.0.0",reactDomClient_production}var hasRequiredClient;function requireClient(){if(hasRequiredClient)return client.exports;hasRequiredClient=1;function ln(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ln)}catch(rn){console.error(rn)}}return ln(),client.exports=requireReactDomClient_production(),client.exports}var clientExports=requireClient(),dist$1={},hasRequiredDist$1;function requireDist$1(){if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=1,Object.defineProperty(dist$1,"__esModule",{value:!0}),dist$1.parse=un,dist$1.serialize=mn;const ln=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,rn=/^[\u0021-\u003A\u003C-\u007E]*$/,an=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,sn=/^[\u0020-\u003A\u003D-\u007E]*$/,on=Object.prototype.toString,cn=(()=>{const yn=function(){};return yn.prototype=Object.create(null),yn})();function un(yn,wn){const An=new cn,Cn=yn.length;if(Cn<2)return An;const kn=(wn==null?void 0:wn.decode)||xn;let Mn=0;do{const Tn=yn.indexOf("=",Mn);if(Tn===-1)break;const On=yn.indexOf(";",Mn),Pn=On===-1?Cn:On;if(Tn>Pn){Mn=yn.lastIndexOf(";",Tn-1)+1;continue}const Nn=pn(yn,Mn,Tn),In=fn(yn,Tn,Nn),jn=yn.slice(Nn,In);if(An[jn]===void 0){let Fn=pn(yn,Tn+1,Pn),Un=fn(yn,Pn,Fn);const Yn=kn(yn.slice(Fn,Un));An[jn]=Yn}Mn=Pn+1}while(Mn<Cn);return An}function pn(yn,wn,An){do{const Cn=yn.charCodeAt(wn);if(Cn!==32&&Cn!==9)return wn}while(++wn<An);return An}function fn(yn,wn,An){for(;wn>An;){const Cn=yn.charCodeAt(--wn);if(Cn!==32&&Cn!==9)return wn+1}return An}function mn(yn,wn,An){const Cn=(An==null?void 0:An.encode)||encodeURIComponent;if(!ln.test(yn))throw new TypeError(`argument name is invalid: ${yn}`);const kn=Cn(wn);if(!rn.test(kn))throw new TypeError(`argument val is invalid: ${wn}`);let Mn=yn+"="+kn;if(!An)return Mn;if(An.maxAge!==void 0){if(!Number.isInteger(An.maxAge))throw new TypeError(`option maxAge is invalid: ${An.maxAge}`);Mn+="; Max-Age="+An.maxAge}if(An.domain){if(!an.test(An.domain))throw new TypeError(`option domain is invalid: ${An.domain}`);Mn+="; Domain="+An.domain}if(An.path){if(!sn.test(An.path))throw new TypeError(`option path is invalid: ${An.path}`);Mn+="; Path="+An.path}if(An.expires){if(!vn(An.expires)||!Number.isFinite(An.expires.valueOf()))throw new TypeError(`option expires is invalid: ${An.expires}`);Mn+="; Expires="+An.expires.toUTCString()}if(An.httpOnly&&(Mn+="; HttpOnly"),An.secure&&(Mn+="; Secure"),An.partitioned&&(Mn+="; Partitioned"),An.priority)switch(typeof An.priority=="string"?An.priority.toLowerCase():void 0){case"low":Mn+="; Priority=Low";break;case"medium":Mn+="; Priority=Medium";break;case"high":Mn+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${An.priority}`)}if(An.sameSite)switch(typeof An.sameSite=="string"?An.sameSite.toLowerCase():An.sameSite){case!0:case"strict":Mn+="; SameSite=Strict";break;case"lax":Mn+="; SameSite=Lax";break;case"none":Mn+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${An.sameSite}`)}return Mn}function xn(yn){if(yn.indexOf("%")===-1)return yn;try{return decodeURIComponent(yn)}catch{return yn}}function vn(yn){return on.call(yn)==="[object Date]"}return dist$1}requireDist$1();/**
 * react-router v7.1.5
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var PopStateEventType="popstate";function createBrowserHistory(ln={}){function rn(sn,on){let{pathname:cn,search:un,hash:pn}=sn.location;return createLocation("",{pathname:cn,search:un,hash:pn},on.state&&on.state.usr||null,on.state&&on.state.key||"default")}function an(sn,on){return typeof on=="string"?on:createPath(on)}return getUrlBasedHistory(rn,an,null,ln)}function invariant$1(ln,rn){if(ln===!1||ln===null||typeof ln>"u")throw new Error(rn)}function warning(ln,rn){if(!ln){typeof console<"u"&&console.warn(rn);try{throw new Error(rn)}catch{}}}function createKey(){return Math.random().toString(36).substring(2,10)}function getHistoryState(ln,rn){return{usr:ln.state,key:ln.key,idx:rn}}function createLocation(ln,rn,an=null,sn){return{pathname:typeof ln=="string"?ln:ln.pathname,search:"",hash:"",...typeof rn=="string"?parsePath(rn):rn,state:an,key:rn&&rn.key||sn||createKey()}}function createPath({pathname:ln="/",search:rn="",hash:an=""}){return rn&&rn!=="?"&&(ln+=rn.charAt(0)==="?"?rn:"?"+rn),an&&an!=="#"&&(ln+=an.charAt(0)==="#"?an:"#"+an),ln}function parsePath(ln){let rn={};if(ln){let an=ln.indexOf("#");an>=0&&(rn.hash=ln.substring(an),ln=ln.substring(0,an));let sn=ln.indexOf("?");sn>=0&&(rn.search=ln.substring(sn),ln=ln.substring(0,sn)),ln&&(rn.pathname=ln)}return rn}function getUrlBasedHistory(ln,rn,an,sn={}){let{window:on=document.defaultView,v5Compat:cn=!1}=sn,un=on.history,pn="POP",fn=null,mn=xn();mn==null&&(mn=0,un.replaceState({...un.state,idx:mn},""));function xn(){return(un.state||{idx:null}).idx}function vn(){pn="POP";let kn=xn(),Mn=kn==null?null:kn-mn;mn=kn,fn&&fn({action:pn,location:Cn.location,delta:Mn})}function yn(kn,Mn){pn="PUSH";let Tn=createLocation(Cn.location,kn,Mn);mn=xn()+1;let On=getHistoryState(Tn,mn),Pn=Cn.createHref(Tn);try{un.pushState(On,"",Pn)}catch(Nn){if(Nn instanceof DOMException&&Nn.name==="DataCloneError")throw Nn;on.location.assign(Pn)}cn&&fn&&fn({action:pn,location:Cn.location,delta:1})}function wn(kn,Mn){pn="REPLACE";let Tn=createLocation(Cn.location,kn,Mn);mn=xn();let On=getHistoryState(Tn,mn),Pn=Cn.createHref(Tn);un.replaceState(On,"",Pn),cn&&fn&&fn({action:pn,location:Cn.location,delta:0})}function An(kn){let Mn=on.location.origin!=="null"?on.location.origin:on.location.href,Tn=typeof kn=="string"?kn:createPath(kn);return Tn=Tn.replace(/ $/,"%20"),invariant$1(Mn,`No window.location.(origin|href) available to create URL for href: ${Tn}`),new URL(Tn,Mn)}let Cn={get action(){return pn},get location(){return ln(on,un)},listen(kn){if(fn)throw new Error("A history only accepts one active listener");return on.addEventListener(PopStateEventType,vn),fn=kn,()=>{on.removeEventListener(PopStateEventType,vn),fn=null}},createHref(kn){return rn(on,kn)},createURL:An,encodeLocation(kn){let Mn=An(kn);return{pathname:Mn.pathname,search:Mn.search,hash:Mn.hash}},push:yn,replace:wn,go(kn){return un.go(kn)}};return Cn}function matchRoutes(ln,rn,an="/"){return matchRoutesImpl(ln,rn,an,!1)}function matchRoutesImpl(ln,rn,an,sn){let on=typeof rn=="string"?parsePath(rn):rn,cn=stripBasename(on.pathname||"/",an);if(cn==null)return null;let un=flattenRoutes(ln);rankRouteBranches(un);let pn=null;for(let fn=0;pn==null&&fn<un.length;++fn){let mn=decodePath(cn);pn=matchRouteBranch(un[fn],mn,sn)}return pn}function flattenRoutes(ln,rn=[],an=[],sn=""){let on=(cn,un,pn)=>{let fn={relativePath:pn===void 0?cn.path||"":pn,caseSensitive:cn.caseSensitive===!0,childrenIndex:un,route:cn};fn.relativePath.startsWith("/")&&(invariant$1(fn.relativePath.startsWith(sn),`Absolute route path "${fn.relativePath}" nested under path "${sn}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),fn.relativePath=fn.relativePath.slice(sn.length));let mn=joinPaths([sn,fn.relativePath]),xn=an.concat(fn);cn.children&&cn.children.length>0&&(invariant$1(cn.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${mn}".`),flattenRoutes(cn.children,rn,xn,mn)),!(cn.path==null&&!cn.index)&&rn.push({path:mn,score:computeScore(mn,cn.index),routesMeta:xn})};return ln.forEach((cn,un)=>{var pn;if(cn.path===""||!((pn=cn.path)!=null&&pn.includes("?")))on(cn,un);else for(let fn of explodeOptionalSegments(cn.path))on(cn,un,fn)}),rn}function explodeOptionalSegments(ln){let rn=ln.split("/");if(rn.length===0)return[];let[an,...sn]=rn,on=an.endsWith("?"),cn=an.replace(/\?$/,"");if(sn.length===0)return on?[cn,""]:[cn];let un=explodeOptionalSegments(sn.join("/")),pn=[];return pn.push(...un.map(fn=>fn===""?cn:[cn,fn].join("/"))),on&&pn.push(...un),pn.map(fn=>ln.startsWith("/")&&fn===""?"/":fn)}function rankRouteBranches(ln){ln.sort((rn,an)=>rn.score!==an.score?an.score-rn.score:compareIndexes(rn.routesMeta.map(sn=>sn.childrenIndex),an.routesMeta.map(sn=>sn.childrenIndex)))}var paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=ln=>ln==="*";function computeScore(ln,rn){let an=ln.split("/"),sn=an.length;return an.some(isSplat)&&(sn+=splatPenalty),rn&&(sn+=indexRouteValue),an.filter(on=>!isSplat(on)).reduce((on,cn)=>on+(paramRe.test(cn)?dynamicSegmentValue:cn===""?emptySegmentValue:staticSegmentValue),sn)}function compareIndexes(ln,rn){return ln.length===rn.length&&ln.slice(0,-1).every((sn,on)=>sn===rn[on])?ln[ln.length-1]-rn[rn.length-1]:0}function matchRouteBranch(ln,rn,an=!1){let{routesMeta:sn}=ln,on={},cn="/",un=[];for(let pn=0;pn<sn.length;++pn){let fn=sn[pn],mn=pn===sn.length-1,xn=cn==="/"?rn:rn.slice(cn.length)||"/",vn=matchPath({path:fn.relativePath,caseSensitive:fn.caseSensitive,end:mn},xn),yn=fn.route;if(!vn&&mn&&an&&!sn[sn.length-1].route.index&&(vn=matchPath({path:fn.relativePath,caseSensitive:fn.caseSensitive,end:!1},xn)),!vn)return null;Object.assign(on,vn.params),un.push({params:on,pathname:joinPaths([cn,vn.pathname]),pathnameBase:normalizePathname(joinPaths([cn,vn.pathnameBase])),route:yn}),vn.pathnameBase!=="/"&&(cn=joinPaths([cn,vn.pathnameBase]))}return un}function matchPath(ln,rn){typeof ln=="string"&&(ln={path:ln,caseSensitive:!1,end:!0});let[an,sn]=compilePath(ln.path,ln.caseSensitive,ln.end),on=rn.match(an);if(!on)return null;let cn=on[0],un=cn.replace(/(.)\/+$/,"$1"),pn=on.slice(1);return{params:sn.reduce((mn,{paramName:xn,isOptional:vn},yn)=>{if(xn==="*"){let An=pn[yn]||"";un=cn.slice(0,cn.length-An.length).replace(/(.)\/+$/,"$1")}const wn=pn[yn];return vn&&!wn?mn[xn]=void 0:mn[xn]=(wn||"").replace(/%2F/g,"/"),mn},{}),pathname:cn,pathnameBase:un,pattern:ln}}function compilePath(ln,rn=!1,an=!0){warning(ln==="*"||!ln.endsWith("*")||ln.endsWith("/*"),`Route path "${ln}" will be treated as if it were "${ln.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${ln.replace(/\*$/,"/*")}".`);let sn=[],on="^"+ln.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(un,pn,fn)=>(sn.push({paramName:pn,isOptional:fn!=null}),fn?"/?([^\\/]+)?":"/([^\\/]+)"));return ln.endsWith("*")?(sn.push({paramName:"*"}),on+=ln==="*"||ln==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):an?on+="\\/*$":ln!==""&&ln!=="/"&&(on+="(?:(?=\\/|$))"),[new RegExp(on,rn?void 0:"i"),sn]}function decodePath(ln){try{return ln.split("/").map(rn=>decodeURIComponent(rn).replace(/\//g,"%2F")).join("/")}catch(rn){return warning(!1,`The URL path "${ln}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${rn}).`),ln}}function stripBasename(ln,rn){if(rn==="/")return ln;if(!ln.toLowerCase().startsWith(rn.toLowerCase()))return null;let an=rn.endsWith("/")?rn.length-1:rn.length,sn=ln.charAt(an);return sn&&sn!=="/"?null:ln.slice(an)||"/"}function resolvePath(ln,rn="/"){let{pathname:an,search:sn="",hash:on=""}=typeof ln=="string"?parsePath(ln):ln;return{pathname:an?an.startsWith("/")?an:resolvePathname(an,rn):rn,search:normalizeSearch(sn),hash:normalizeHash(on)}}function resolvePathname(ln,rn){let an=rn.replace(/\/+$/,"").split("/");return ln.split("/").forEach(on=>{on===".."?an.length>1&&an.pop():on!=="."&&an.push(on)}),an.length>1?an.join("/"):"/"}function getInvalidPathError(ln,rn,an,sn){return`Cannot include a '${ln}' character in a manually specified \`to.${rn}\` field [${JSON.stringify(sn)}].  Please separate it out to the \`to.${an}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function getPathContributingMatches(ln){return ln.filter((rn,an)=>an===0||rn.route.path&&rn.route.path.length>0)}function getResolveToMatches(ln){let rn=getPathContributingMatches(ln);return rn.map((an,sn)=>sn===rn.length-1?an.pathname:an.pathnameBase)}function resolveTo(ln,rn,an,sn=!1){let on;typeof ln=="string"?on=parsePath(ln):(on={...ln},invariant$1(!on.pathname||!on.pathname.includes("?"),getInvalidPathError("?","pathname","search",on)),invariant$1(!on.pathname||!on.pathname.includes("#"),getInvalidPathError("#","pathname","hash",on)),invariant$1(!on.search||!on.search.includes("#"),getInvalidPathError("#","search","hash",on)));let cn=ln===""||on.pathname==="",un=cn?"/":on.pathname,pn;if(un==null)pn=an;else{let vn=rn.length-1;if(!sn&&un.startsWith("..")){let yn=un.split("/");for(;yn[0]==="..";)yn.shift(),vn-=1;on.pathname=yn.join("/")}pn=vn>=0?rn[vn]:"/"}let fn=resolvePath(on,pn),mn=un&&un!=="/"&&un.endsWith("/"),xn=(cn||un===".")&&an.endsWith("/");return!fn.pathname.endsWith("/")&&(mn||xn)&&(fn.pathname+="/"),fn}var joinPaths=ln=>ln.join("/").replace(/\/\/+/g,"/"),normalizePathname=ln=>ln.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=ln=>!ln||ln==="?"?"":ln.startsWith("?")?ln:"?"+ln,normalizeHash=ln=>!ln||ln==="#"?"":ln.startsWith("#")?ln:"#"+ln;function isRouteErrorResponse(ln){return ln!=null&&typeof ln.status=="number"&&typeof ln.statusText=="string"&&typeof ln.internal=="boolean"&&"data"in ln}var validMutationMethodsArr=["POST","PUT","PATCH","DELETE"];new Set(validMutationMethodsArr);var validRequestMethodsArr=["GET",...validMutationMethodsArr];new Set(validRequestMethodsArr);var DataRouterContext=reactExports.createContext(null);DataRouterContext.displayName="DataRouter";var DataRouterStateContext=reactExports.createContext(null);DataRouterStateContext.displayName="DataRouterState";var ViewTransitionContext=reactExports.createContext({isTransitioning:!1});ViewTransitionContext.displayName="ViewTransition";var FetchersContext=reactExports.createContext(new Map);FetchersContext.displayName="Fetchers";var AwaitContext=reactExports.createContext(null);AwaitContext.displayName="Await";var NavigationContext=reactExports.createContext(null);NavigationContext.displayName="Navigation";var LocationContext=reactExports.createContext(null);LocationContext.displayName="Location";var RouteContext=reactExports.createContext({outlet:null,matches:[],isDataRoute:!1});RouteContext.displayName="Route";var RouteErrorContext=reactExports.createContext(null);RouteErrorContext.displayName="RouteError";function useHref(ln,{relative:rn}={}){invariant$1(useInRouterContext(),"useHref() may be used only in the context of a <Router> component.");let{basename:an,navigator:sn}=reactExports.useContext(NavigationContext),{hash:on,pathname:cn,search:un}=useResolvedPath(ln,{relative:rn}),pn=cn;return an!=="/"&&(pn=cn==="/"?an:joinPaths([an,cn])),sn.createHref({pathname:pn,search:un,hash:on})}function useInRouterContext(){return reactExports.useContext(LocationContext)!=null}function useLocation(){return invariant$1(useInRouterContext(),"useLocation() may be used only in the context of a <Router> component."),reactExports.useContext(LocationContext).location}var navigateEffectWarning="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function useIsomorphicLayoutEffect(ln){reactExports.useContext(NavigationContext).static||reactExports.useLayoutEffect(ln)}function useNavigate(){let{isDataRoute:ln}=reactExports.useContext(RouteContext);return ln?useNavigateStable():useNavigateUnstable()}function useNavigateUnstable(){invariant$1(useInRouterContext(),"useNavigate() may be used only in the context of a <Router> component.");let ln=reactExports.useContext(DataRouterContext),{basename:rn,navigator:an}=reactExports.useContext(NavigationContext),{matches:sn}=reactExports.useContext(RouteContext),{pathname:on}=useLocation(),cn=JSON.stringify(getResolveToMatches(sn)),un=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{un.current=!0}),reactExports.useCallback((fn,mn={})=>{if(warning(un.current,navigateEffectWarning),!un.current)return;if(typeof fn=="number"){an.go(fn);return}let xn=resolveTo(fn,JSON.parse(cn),on,mn.relative==="path");ln==null&&rn!=="/"&&(xn.pathname=xn.pathname==="/"?rn:joinPaths([rn,xn.pathname])),(mn.replace?an.replace:an.push)(xn,mn.state,mn)},[rn,an,cn,on,ln])}var OutletContext=reactExports.createContext(null);function useOutlet(ln){let rn=reactExports.useContext(RouteContext).outlet;return rn&&reactExports.createElement(OutletContext.Provider,{value:ln},rn)}function useParams(){let{matches:ln}=reactExports.useContext(RouteContext),rn=ln[ln.length-1];return rn?rn.params:{}}function useResolvedPath(ln,{relative:rn}={}){let{matches:an}=reactExports.useContext(RouteContext),{pathname:sn}=useLocation(),on=JSON.stringify(getResolveToMatches(an));return reactExports.useMemo(()=>resolveTo(ln,JSON.parse(on),sn,rn==="path"),[ln,on,sn,rn])}function useRoutes(ln,rn){return useRoutesImpl(ln,rn)}function useRoutesImpl(ln,rn,an,sn){var Tn;invariant$1(useInRouterContext(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:on,static:cn}=reactExports.useContext(NavigationContext),{matches:un}=reactExports.useContext(RouteContext),pn=un[un.length-1],fn=pn?pn.params:{},mn=pn?pn.pathname:"/",xn=pn?pn.pathnameBase:"/",vn=pn&&pn.route;{let On=vn&&vn.path||"";warningOnce(mn,!vn||On.endsWith("*")||On.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${mn}" (under <Route path="${On}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${On}"> to <Route path="${On==="/"?"*":`${On}/*`}">.`)}let yn=useLocation(),wn;if(rn){let On=typeof rn=="string"?parsePath(rn):rn;invariant$1(xn==="/"||((Tn=On.pathname)==null?void 0:Tn.startsWith(xn)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${xn}" but pathname "${On.pathname}" was given in the \`location\` prop.`),wn=On}else wn=yn;let An=wn.pathname||"/",Cn=An;if(xn!=="/"){let On=xn.replace(/^\//,"").split("/");Cn="/"+An.replace(/^\//,"").split("/").slice(On.length).join("/")}let kn=!cn&&an&&an.matches&&an.matches.length>0?an.matches:matchRoutes(ln,{pathname:Cn});warning(vn||kn!=null,`No routes matched location "${wn.pathname}${wn.search}${wn.hash}" `),warning(kn==null||kn[kn.length-1].route.element!==void 0||kn[kn.length-1].route.Component!==void 0||kn[kn.length-1].route.lazy!==void 0,`Matched leaf route at location "${wn.pathname}${wn.search}${wn.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let Mn=_renderMatches(kn&&kn.map(On=>Object.assign({},On,{params:Object.assign({},fn,On.params),pathname:joinPaths([xn,on.encodeLocation?on.encodeLocation(On.pathname).pathname:On.pathname]),pathnameBase:On.pathnameBase==="/"?xn:joinPaths([xn,on.encodeLocation?on.encodeLocation(On.pathnameBase).pathname:On.pathnameBase])})),un,an,sn);return rn&&Mn?reactExports.createElement(LocationContext.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...wn},navigationType:"POP"}},Mn):Mn}function DefaultErrorComponent(){let ln=useRouteError(),rn=isRouteErrorResponse(ln)?`${ln.status} ${ln.statusText}`:ln instanceof Error?ln.message:JSON.stringify(ln),an=ln instanceof Error?ln.stack:null,sn="rgba(200,200,200, 0.5)",on={padding:"0.5rem",backgroundColor:sn},cn={padding:"2px 4px",backgroundColor:sn},un=null;return console.error("Error handled by React Router default ErrorBoundary:",ln),un=reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("p",null,"💿 Hey developer 👋"),reactExports.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",reactExports.createElement("code",{style:cn},"ErrorBoundary")," or"," ",reactExports.createElement("code",{style:cn},"errorElement")," prop on your route.")),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},rn),an?reactExports.createElement("pre",{style:on},an):null,un)}var defaultErrorElement=reactExports.createElement(DefaultErrorComponent,null),RenderErrorBoundary=class extends reactExports.Component{constructor(ln){super(ln),this.state={location:ln.location,revalidation:ln.revalidation,error:ln.error}}static getDerivedStateFromError(ln){return{error:ln}}static getDerivedStateFromProps(ln,rn){return rn.location!==ln.location||rn.revalidation!=="idle"&&ln.revalidation==="idle"?{error:ln.error,location:ln.location,revalidation:ln.revalidation}:{error:ln.error!==void 0?ln.error:rn.error,location:rn.location,revalidation:ln.revalidation||rn.revalidation}}componentDidCatch(ln,rn){console.error("React Router caught the following error during render",ln,rn)}render(){return this.state.error!==void 0?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function RenderedRoute({routeContext:ln,match:rn,children:an}){let sn=reactExports.useContext(DataRouterContext);return sn&&sn.static&&sn.staticContext&&(rn.route.errorElement||rn.route.ErrorBoundary)&&(sn.staticContext._deepestRenderedBoundaryId=rn.route.id),reactExports.createElement(RouteContext.Provider,{value:ln},an)}function _renderMatches(ln,rn=[],an=null,sn=null){if(ln==null){if(!an)return null;if(an.errors)ln=an.matches;else if(rn.length===0&&!an.initialized&&an.matches.length>0)ln=an.matches;else return null}let on=ln,cn=an==null?void 0:an.errors;if(cn!=null){let fn=on.findIndex(mn=>mn.route.id&&(cn==null?void 0:cn[mn.route.id])!==void 0);invariant$1(fn>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(cn).join(",")}`),on=on.slice(0,Math.min(on.length,fn+1))}let un=!1,pn=-1;if(an)for(let fn=0;fn<on.length;fn++){let mn=on[fn];if((mn.route.HydrateFallback||mn.route.hydrateFallbackElement)&&(pn=fn),mn.route.id){let{loaderData:xn,errors:vn}=an,yn=mn.route.loader&&!xn.hasOwnProperty(mn.route.id)&&(!vn||vn[mn.route.id]===void 0);if(mn.route.lazy||yn){un=!0,pn>=0?on=on.slice(0,pn+1):on=[on[0]];break}}}return on.reduceRight((fn,mn,xn)=>{let vn,yn=!1,wn=null,An=null;an&&(vn=cn&&mn.route.id?cn[mn.route.id]:void 0,wn=mn.route.errorElement||defaultErrorElement,un&&(pn<0&&xn===0?(warningOnce("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),yn=!0,An=null):pn===xn&&(yn=!0,An=mn.route.hydrateFallbackElement||null)));let Cn=rn.concat(on.slice(0,xn+1)),kn=()=>{let Mn;return vn?Mn=wn:yn?Mn=An:mn.route.Component?Mn=reactExports.createElement(mn.route.Component,null):mn.route.element?Mn=mn.route.element:Mn=fn,reactExports.createElement(RenderedRoute,{match:mn,routeContext:{outlet:fn,matches:Cn,isDataRoute:an!=null},children:Mn})};return an&&(mn.route.ErrorBoundary||mn.route.errorElement||xn===0)?reactExports.createElement(RenderErrorBoundary,{location:an.location,revalidation:an.revalidation,component:wn,error:vn,children:kn(),routeContext:{outlet:null,matches:Cn,isDataRoute:!0}}):kn()},null)}function getDataRouterConsoleError(ln){return`${ln} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function useDataRouterContext(ln){let rn=reactExports.useContext(DataRouterContext);return invariant$1(rn,getDataRouterConsoleError(ln)),rn}function useDataRouterState(ln){let rn=reactExports.useContext(DataRouterStateContext);return invariant$1(rn,getDataRouterConsoleError(ln)),rn}function useRouteContext(ln){let rn=reactExports.useContext(RouteContext);return invariant$1(rn,getDataRouterConsoleError(ln)),rn}function useCurrentRouteId(ln){let rn=useRouteContext(ln),an=rn.matches[rn.matches.length-1];return invariant$1(an.route.id,`${ln} can only be used on routes that contain a unique "id"`),an.route.id}function useRouteId(){return useCurrentRouteId("useRouteId")}function useRouteError(){var sn;let ln=reactExports.useContext(RouteErrorContext),rn=useDataRouterState("useRouteError"),an=useCurrentRouteId("useRouteError");return ln!==void 0?ln:(sn=rn.errors)==null?void 0:sn[an]}function useNavigateStable(){let{router:ln}=useDataRouterContext("useNavigate"),rn=useCurrentRouteId("useNavigate"),an=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{an.current=!0}),reactExports.useCallback(async(on,cn={})=>{warning(an.current,navigateEffectWarning),an.current&&(typeof on=="number"?ln.navigate(on):await ln.navigate(on,{fromRouteId:rn,...cn}))},[ln,rn])}var alreadyWarned={};function warningOnce(ln,rn,an){!rn&&!alreadyWarned[ln]&&(alreadyWarned[ln]=!0,warning(!1,an))}reactExports.memo(DataRoutes);function DataRoutes({routes:ln,future:rn,state:an}){return useRoutesImpl(ln,void 0,an,rn)}function Navigate({to:ln,replace:rn,state:an,relative:sn}){invariant$1(useInRouterContext(),"<Navigate> may be used only in the context of a <Router> component.");let{static:on}=reactExports.useContext(NavigationContext);warning(!on,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:cn}=reactExports.useContext(RouteContext),{pathname:un}=useLocation(),pn=useNavigate(),fn=resolveTo(ln,getResolveToMatches(cn),un,sn==="path"),mn=JSON.stringify(fn);return reactExports.useEffect(()=>{pn(JSON.parse(mn),{replace:rn,state:an,relative:sn})},[pn,mn,sn,rn,an]),null}function Outlet(ln){return useOutlet(ln.context)}function Route(ln){invariant$1(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Router({basename:ln="/",children:rn=null,location:an,navigationType:sn="POP",navigator:on,static:cn=!1}){invariant$1(!useInRouterContext(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let un=ln.replace(/^\/*/,"/"),pn=reactExports.useMemo(()=>({basename:un,navigator:on,static:cn,future:{}}),[un,on,cn]);typeof an=="string"&&(an=parsePath(an));let{pathname:fn="/",search:mn="",hash:xn="",state:vn=null,key:yn="default"}=an,wn=reactExports.useMemo(()=>{let An=stripBasename(fn,un);return An==null?null:{location:{pathname:An,search:mn,hash:xn,state:vn,key:yn},navigationType:sn}},[un,fn,mn,xn,vn,yn,sn]);return warning(wn!=null,`<Router basename="${un}"> is not able to match the URL "${fn}${mn}${xn}" because it does not start with the basename, so the <Router> won't render anything.`),wn==null?null:reactExports.createElement(NavigationContext.Provider,{value:pn},reactExports.createElement(LocationContext.Provider,{children:rn,value:wn}))}function Routes({children:ln,location:rn}){return useRoutes(createRoutesFromChildren(ln),rn)}function createRoutesFromChildren(ln,rn=[]){let an=[];return reactExports.Children.forEach(ln,(sn,on)=>{if(!reactExports.isValidElement(sn))return;let cn=[...rn,on];if(sn.type===reactExports.Fragment){an.push.apply(an,createRoutesFromChildren(sn.props.children,cn));return}invariant$1(sn.type===Route,`[${typeof sn.type=="string"?sn.type:sn.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),invariant$1(!sn.props.index||!sn.props.children,"An index route cannot have child routes.");let un={id:sn.props.id||cn.join("-"),caseSensitive:sn.props.caseSensitive,element:sn.props.element,Component:sn.props.Component,index:sn.props.index,path:sn.props.path,loader:sn.props.loader,action:sn.props.action,hydrateFallbackElement:sn.props.hydrateFallbackElement,HydrateFallback:sn.props.HydrateFallback,errorElement:sn.props.errorElement,ErrorBoundary:sn.props.ErrorBoundary,hasErrorBoundary:sn.props.hasErrorBoundary===!0||sn.props.ErrorBoundary!=null||sn.props.errorElement!=null,shouldRevalidate:sn.props.shouldRevalidate,handle:sn.props.handle,lazy:sn.props.lazy};sn.props.children&&(un.children=createRoutesFromChildren(sn.props.children,cn)),an.push(un)}),an}var defaultMethod="get",defaultEncType="application/x-www-form-urlencoded";function isHtmlElement(ln){return ln!=null&&typeof ln.tagName=="string"}function isButtonElement(ln){return isHtmlElement(ln)&&ln.tagName.toLowerCase()==="button"}function isFormElement(ln){return isHtmlElement(ln)&&ln.tagName.toLowerCase()==="form"}function isInputElement(ln){return isHtmlElement(ln)&&ln.tagName.toLowerCase()==="input"}function isModifiedEvent(ln){return!!(ln.metaKey||ln.altKey||ln.ctrlKey||ln.shiftKey)}function shouldProcessLinkClick(ln,rn){return ln.button===0&&(!rn||rn==="_self")&&!isModifiedEvent(ln)}var _formDataSupportsSubmitter=null;function isFormDataSubmitterSupported(){if(_formDataSupportsSubmitter===null)try{new FormData(document.createElement("form"),0),_formDataSupportsSubmitter=!1}catch{_formDataSupportsSubmitter=!0}return _formDataSupportsSubmitter}var supportedFormEncTypes=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function getFormEncType(ln){return ln!=null&&!supportedFormEncTypes.has(ln)?(warning(!1,`"${ln}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${defaultEncType}"`),null):ln}function getFormSubmissionInfo(ln,rn){let an,sn,on,cn,un;if(isFormElement(ln)){let pn=ln.getAttribute("action");sn=pn?stripBasename(pn,rn):null,an=ln.getAttribute("method")||defaultMethod,on=getFormEncType(ln.getAttribute("enctype"))||defaultEncType,cn=new FormData(ln)}else if(isButtonElement(ln)||isInputElement(ln)&&(ln.type==="submit"||ln.type==="image")){let pn=ln.form;if(pn==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let fn=ln.getAttribute("formaction")||pn.getAttribute("action");if(sn=fn?stripBasename(fn,rn):null,an=ln.getAttribute("formmethod")||pn.getAttribute("method")||defaultMethod,on=getFormEncType(ln.getAttribute("formenctype"))||getFormEncType(pn.getAttribute("enctype"))||defaultEncType,cn=new FormData(pn,ln),!isFormDataSubmitterSupported()){let{name:mn,type:xn,value:vn}=ln;if(xn==="image"){let yn=mn?`${mn}.`:"";cn.append(`${yn}x`,"0"),cn.append(`${yn}y`,"0")}else mn&&cn.append(mn,vn)}}else{if(isHtmlElement(ln))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');an=defaultMethod,sn=null,on=defaultEncType,un=ln}return cn&&on==="text/plain"&&(un=cn,cn=void 0),{action:sn,method:an.toLowerCase(),encType:on,formData:cn,body:un}}function invariant2(ln,rn){if(ln===!1||ln===null||typeof ln>"u")throw new Error(rn)}async function loadRouteModule(ln,rn){if(ln.id in rn)return rn[ln.id];try{let an=await import(ln.module);return rn[ln.id]=an,an}catch(an){return console.error(`Error loading route module \`${ln.module}\`, reloading page...`),console.error(an),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function isHtmlLinkDescriptor(ln){return ln==null?!1:ln.href==null?ln.rel==="preload"&&typeof ln.imageSrcSet=="string"&&typeof ln.imageSizes=="string":typeof ln.rel=="string"&&typeof ln.href=="string"}async function getKeyedPrefetchLinks(ln,rn,an){let sn=await Promise.all(ln.map(async on=>{let cn=rn.routes[on.route.id];if(cn){let un=await loadRouteModule(cn,an);return un.links?un.links():[]}return[]}));return dedupeLinkDescriptors(sn.flat(1).filter(isHtmlLinkDescriptor).filter(on=>on.rel==="stylesheet"||on.rel==="preload").map(on=>on.rel==="stylesheet"?{...on,rel:"prefetch",as:"style"}:{...on,rel:"prefetch"}))}function getNewMatchesForLinks(ln,rn,an,sn,on,cn){let un=(fn,mn)=>an[mn]?fn.route.id!==an[mn].route.id:!0,pn=(fn,mn)=>{var xn;return an[mn].pathname!==fn.pathname||((xn=an[mn].route.path)==null?void 0:xn.endsWith("*"))&&an[mn].params["*"]!==fn.params["*"]};return cn==="assets"?rn.filter((fn,mn)=>un(fn,mn)||pn(fn,mn)):cn==="data"?rn.filter((fn,mn)=>{var vn;let xn=sn.routes[fn.route.id];if(!xn||!xn.hasLoader)return!1;if(un(fn,mn)||pn(fn,mn))return!0;if(fn.route.shouldRevalidate){let yn=fn.route.shouldRevalidate({currentUrl:new URL(on.pathname+on.search+on.hash,window.origin),currentParams:((vn=an[0])==null?void 0:vn.params)||{},nextUrl:new URL(ln,window.origin),nextParams:fn.params,defaultShouldRevalidate:!0});if(typeof yn=="boolean")return yn}return!0}):[]}function getModuleLinkHrefs(ln,rn){return dedupeHrefs(ln.map(an=>{let sn=rn.routes[an.route.id];if(!sn)return[];let on=[sn.module];return sn.imports&&(on=on.concat(sn.imports)),on}).flat(1))}function dedupeHrefs(ln){return[...new Set(ln)]}function sortKeys(ln){let rn={},an=Object.keys(ln).sort();for(let sn of an)rn[sn]=ln[sn];return rn}function dedupeLinkDescriptors(ln,rn){let an=new Set;return new Set(rn),ln.reduce((sn,on)=>{let cn=JSON.stringify(sortKeys(on));return an.has(cn)||(an.add(cn),sn.push({key:cn,link:on})),sn},[])}function singleFetchUrl(ln){let rn=typeof ln=="string"?new URL(ln,typeof window>"u"?"server://singlefetch/":window.location.origin):ln;return rn.pathname==="/"?rn.pathname="_root.data":rn.pathname=`${rn.pathname.replace(/\/$/,"")}.data`,rn}function useDataRouterContext2(){let ln=reactExports.useContext(DataRouterContext);return invariant2(ln,"You must render this element inside a <DataRouterContext.Provider> element"),ln}function useDataRouterStateContext(){let ln=reactExports.useContext(DataRouterStateContext);return invariant2(ln,"You must render this element inside a <DataRouterStateContext.Provider> element"),ln}var FrameworkContext=reactExports.createContext(void 0);FrameworkContext.displayName="FrameworkContext";function useFrameworkContext(){let ln=reactExports.useContext(FrameworkContext);return invariant2(ln,"You must render this element inside a <HydratedRouter> element"),ln}function usePrefetchBehavior(ln,rn){let an=reactExports.useContext(FrameworkContext),[sn,on]=reactExports.useState(!1),[cn,un]=reactExports.useState(!1),{onFocus:pn,onBlur:fn,onMouseEnter:mn,onMouseLeave:xn,onTouchStart:vn}=rn,yn=reactExports.useRef(null);reactExports.useEffect(()=>{if(ln==="render"&&un(!0),ln==="viewport"){let Cn=Mn=>{Mn.forEach(Tn=>{un(Tn.isIntersecting)})},kn=new IntersectionObserver(Cn,{threshold:.5});return yn.current&&kn.observe(yn.current),()=>{kn.disconnect()}}},[ln]),reactExports.useEffect(()=>{if(sn){let Cn=setTimeout(()=>{un(!0)},100);return()=>{clearTimeout(Cn)}}},[sn]);let wn=()=>{on(!0)},An=()=>{on(!1),un(!1)};return an?ln!=="intent"?[cn,yn,{}]:[cn,yn,{onFocus:composeEventHandlers$1(pn,wn),onBlur:composeEventHandlers$1(fn,An),onMouseEnter:composeEventHandlers$1(mn,wn),onMouseLeave:composeEventHandlers$1(xn,An),onTouchStart:composeEventHandlers$1(vn,wn)}]:[!1,yn,{}]}function composeEventHandlers$1(ln,rn){return an=>{ln&&ln(an),an.defaultPrevented||rn(an)}}function PrefetchPageLinks({page:ln,...rn}){let{router:an}=useDataRouterContext2(),sn=reactExports.useMemo(()=>matchRoutes(an.routes,ln,an.basename),[an.routes,ln,an.basename]);return sn?reactExports.createElement(PrefetchPageLinksImpl,{page:ln,matches:sn,...rn}):null}function useKeyedPrefetchLinks(ln){let{manifest:rn,routeModules:an}=useFrameworkContext(),[sn,on]=reactExports.useState([]);return reactExports.useEffect(()=>{let cn=!1;return getKeyedPrefetchLinks(ln,rn,an).then(un=>{cn||on(un)}),()=>{cn=!0}},[ln,rn,an]),sn}function PrefetchPageLinksImpl({page:ln,matches:rn,...an}){let sn=useLocation(),{manifest:on,routeModules:cn}=useFrameworkContext(),{loaderData:un,matches:pn}=useDataRouterStateContext(),fn=reactExports.useMemo(()=>getNewMatchesForLinks(ln,rn,pn,on,sn,"data"),[ln,rn,pn,on,sn]),mn=reactExports.useMemo(()=>getNewMatchesForLinks(ln,rn,pn,on,sn,"assets"),[ln,rn,pn,on,sn]),xn=reactExports.useMemo(()=>{if(ln===sn.pathname+sn.search+sn.hash)return[];let wn=new Set,An=!1;if(rn.forEach(kn=>{var Tn;let Mn=on.routes[kn.route.id];!Mn||!Mn.hasLoader||(!fn.some(On=>On.route.id===kn.route.id)&&kn.route.id in un&&((Tn=cn[kn.route.id])!=null&&Tn.shouldRevalidate)||Mn.hasClientLoader?An=!0:wn.add(kn.route.id))}),wn.size===0)return[];let Cn=singleFetchUrl(ln);return An&&wn.size>0&&Cn.searchParams.set("_routes",rn.filter(kn=>wn.has(kn.route.id)).map(kn=>kn.route.id).join(",")),[Cn.pathname+Cn.search]},[un,sn,on,fn,rn,ln,cn]),vn=reactExports.useMemo(()=>getModuleLinkHrefs(mn,on),[mn,on]),yn=useKeyedPrefetchLinks(mn);return reactExports.createElement(reactExports.Fragment,null,xn.map(wn=>reactExports.createElement("link",{key:wn,rel:"prefetch",as:"fetch",href:wn,...an})),vn.map(wn=>reactExports.createElement("link",{key:wn,rel:"modulepreload",href:wn,...an})),yn.map(({key:wn,link:An})=>reactExports.createElement("link",{key:wn,...An})))}function mergeRefs(...ln){return rn=>{ln.forEach(an=>{typeof an=="function"?an(rn):an!=null&&(an.current=rn)})}}var isBrowser=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{isBrowser&&(window.__reactRouterVersion="7.1.5")}catch{}function BrowserRouter({basename:ln,children:rn,window:an}){let sn=reactExports.useRef();sn.current==null&&(sn.current=createBrowserHistory({window:an,v5Compat:!0}));let on=sn.current,[cn,un]=reactExports.useState({action:on.action,location:on.location}),pn=reactExports.useCallback(fn=>{reactExports.startTransition(()=>un(fn))},[un]);return reactExports.useLayoutEffect(()=>on.listen(pn),[on,pn]),reactExports.createElement(Router,{basename:ln,children:rn,location:cn.location,navigationType:cn.action,navigator:on})}var ABSOLUTE_URL_REGEX2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link=reactExports.forwardRef(function({onClick:rn,discover:an="render",prefetch:sn="none",relative:on,reloadDocument:cn,replace:un,state:pn,target:fn,to:mn,preventScrollReset:xn,viewTransition:vn,...yn},wn){let{basename:An}=reactExports.useContext(NavigationContext),Cn=typeof mn=="string"&&ABSOLUTE_URL_REGEX2.test(mn),kn,Mn=!1;if(typeof mn=="string"&&Cn&&(kn=mn,isBrowser))try{let Un=new URL(window.location.href),Yn=mn.startsWith("//")?new URL(Un.protocol+mn):new URL(mn),Qn=stripBasename(Yn.pathname,An);Yn.origin===Un.origin&&Qn!=null?mn=Qn+Yn.search+Yn.hash:Mn=!0}catch{warning(!1,`<Link to="${mn}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let Tn=useHref(mn,{relative:on}),[On,Pn,Nn]=usePrefetchBehavior(sn,yn),In=useLinkClickHandler(mn,{replace:un,state:pn,target:fn,preventScrollReset:xn,relative:on,viewTransition:vn});function jn(Un){rn&&rn(Un),Un.defaultPrevented||In(Un)}let Fn=reactExports.createElement("a",{...yn,...Nn,href:kn||Tn,onClick:Mn||cn?rn:jn,ref:mergeRefs(wn,Pn),target:fn,"data-discover":!Cn&&an==="render"?"true":void 0});return On&&!Cn?reactExports.createElement(reactExports.Fragment,null,Fn,reactExports.createElement(PrefetchPageLinks,{page:Tn})):Fn});Link.displayName="Link";var NavLink=reactExports.forwardRef(function({"aria-current":rn="page",caseSensitive:an=!1,className:sn="",end:on=!1,style:cn,to:un,viewTransition:pn,children:fn,...mn},xn){let vn=useResolvedPath(un,{relative:mn.relative}),yn=useLocation(),wn=reactExports.useContext(DataRouterStateContext),{navigator:An,basename:Cn}=reactExports.useContext(NavigationContext),kn=wn!=null&&useViewTransitionState(vn)&&pn===!0,Mn=An.encodeLocation?An.encodeLocation(vn).pathname:vn.pathname,Tn=yn.pathname,On=wn&&wn.navigation&&wn.navigation.location?wn.navigation.location.pathname:null;an||(Tn=Tn.toLowerCase(),On=On?On.toLowerCase():null,Mn=Mn.toLowerCase()),On&&Cn&&(On=stripBasename(On,Cn)||On);const Pn=Mn!=="/"&&Mn.endsWith("/")?Mn.length-1:Mn.length;let Nn=Tn===Mn||!on&&Tn.startsWith(Mn)&&Tn.charAt(Pn)==="/",In=On!=null&&(On===Mn||!on&&On.startsWith(Mn)&&On.charAt(Mn.length)==="/"),jn={isActive:Nn,isPending:In,isTransitioning:kn},Fn=Nn?rn:void 0,Un;typeof sn=="function"?Un=sn(jn):Un=[sn,Nn?"active":null,In?"pending":null,kn?"transitioning":null].filter(Boolean).join(" ");let Yn=typeof cn=="function"?cn(jn):cn;return reactExports.createElement(Link,{...mn,"aria-current":Fn,className:Un,ref:xn,style:Yn,to:un,viewTransition:pn},typeof fn=="function"?fn(jn):fn)});NavLink.displayName="NavLink";var Form=reactExports.forwardRef(({discover:ln="render",fetcherKey:rn,navigate:an,reloadDocument:sn,replace:on,state:cn,method:un=defaultMethod,action:pn,onSubmit:fn,relative:mn,preventScrollReset:xn,viewTransition:vn,...yn},wn)=>{let An=useSubmit(),Cn=useFormAction(pn,{relative:mn}),kn=un.toLowerCase()==="get"?"get":"post",Mn=typeof pn=="string"&&ABSOLUTE_URL_REGEX2.test(pn),Tn=On=>{if(fn&&fn(On),On.defaultPrevented)return;On.preventDefault();let Pn=On.nativeEvent.submitter,Nn=(Pn==null?void 0:Pn.getAttribute("formmethod"))||un;An(Pn||On.currentTarget,{fetcherKey:rn,method:Nn,navigate:an,replace:on,state:cn,relative:mn,preventScrollReset:xn,viewTransition:vn})};return reactExports.createElement("form",{ref:wn,method:kn,action:Cn,onSubmit:sn?fn:Tn,...yn,"data-discover":!Mn&&ln==="render"?"true":void 0})});Form.displayName="Form";function getDataRouterConsoleError2(ln){return`${ln} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function useDataRouterContext3(ln){let rn=reactExports.useContext(DataRouterContext);return invariant$1(rn,getDataRouterConsoleError2(ln)),rn}function useLinkClickHandler(ln,{target:rn,replace:an,state:sn,preventScrollReset:on,relative:cn,viewTransition:un}={}){let pn=useNavigate(),fn=useLocation(),mn=useResolvedPath(ln,{relative:cn});return reactExports.useCallback(xn=>{if(shouldProcessLinkClick(xn,rn)){xn.preventDefault();let vn=an!==void 0?an:createPath(fn)===createPath(mn);pn(ln,{replace:vn,state:sn,preventScrollReset:on,relative:cn,viewTransition:un})}},[fn,pn,mn,an,sn,rn,ln,on,cn,un])}var fetcherId=0,getUniqueFetcherId=()=>`__${String(++fetcherId)}__`;function useSubmit(){let{router:ln}=useDataRouterContext3("useSubmit"),{basename:rn}=reactExports.useContext(NavigationContext),an=useRouteId();return reactExports.useCallback(async(sn,on={})=>{let{action:cn,method:un,encType:pn,formData:fn,body:mn}=getFormSubmissionInfo(sn,rn);if(on.navigate===!1){let xn=on.fetcherKey||getUniqueFetcherId();await ln.fetch(xn,an,on.action||cn,{preventScrollReset:on.preventScrollReset,formData:fn,body:mn,formMethod:on.method||un,formEncType:on.encType||pn,flushSync:on.flushSync})}else await ln.navigate(on.action||cn,{preventScrollReset:on.preventScrollReset,formData:fn,body:mn,formMethod:on.method||un,formEncType:on.encType||pn,replace:on.replace,state:on.state,fromRouteId:an,flushSync:on.flushSync,viewTransition:on.viewTransition})},[ln,rn,an])}function useFormAction(ln,{relative:rn}={}){let{basename:an}=reactExports.useContext(NavigationContext),sn=reactExports.useContext(RouteContext);invariant$1(sn,"useFormAction must be used inside a RouteContext");let[on]=sn.matches.slice(-1),cn={...useResolvedPath(ln||".",{relative:rn})},un=useLocation();if(ln==null){cn.search=un.search;let pn=new URLSearchParams(cn.search),fn=pn.getAll("index");if(fn.some(xn=>xn==="")){pn.delete("index"),fn.filter(vn=>vn).forEach(vn=>pn.append("index",vn));let xn=pn.toString();cn.search=xn?`?${xn}`:""}}return(!ln||ln===".")&&on.route.index&&(cn.search=cn.search?cn.search.replace(/^\?/,"?index&"):"?index"),an!=="/"&&(cn.pathname=cn.pathname==="/"?an:joinPaths([an,cn.pathname])),createPath(cn)}function useViewTransitionState(ln,rn={}){let an=reactExports.useContext(ViewTransitionContext);invariant$1(an!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:sn}=useDataRouterContext3("useViewTransitionState"),on=useResolvedPath(ln,{relative:rn.relative});if(!an.isTransitioning)return!1;let cn=stripBasename(an.currentLocation.pathname,sn)||an.currentLocation.pathname,un=stripBasename(an.nextLocation.pathname,sn)||an.nextLocation.pathname;return matchPath(on.pathname,un)!=null||matchPath(on.pathname,cn)!=null}new TextEncoder;var reactFastCompare,hasRequiredReactFastCompare;function requireReactFastCompare(){if(hasRequiredReactFastCompare)return reactFastCompare;hasRequiredReactFastCompare=1;var ln=typeof Element<"u",rn=typeof Map=="function",an=typeof Set=="function",sn=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function on(cn,un){if(cn===un)return!0;if(cn&&un&&typeof cn=="object"&&typeof un=="object"){if(cn.constructor!==un.constructor)return!1;var pn,fn,mn;if(Array.isArray(cn)){if(pn=cn.length,pn!=un.length)return!1;for(fn=pn;fn--!==0;)if(!on(cn[fn],un[fn]))return!1;return!0}var xn;if(rn&&cn instanceof Map&&un instanceof Map){if(cn.size!==un.size)return!1;for(xn=cn.entries();!(fn=xn.next()).done;)if(!un.has(fn.value[0]))return!1;for(xn=cn.entries();!(fn=xn.next()).done;)if(!on(fn.value[1],un.get(fn.value[0])))return!1;return!0}if(an&&cn instanceof Set&&un instanceof Set){if(cn.size!==un.size)return!1;for(xn=cn.entries();!(fn=xn.next()).done;)if(!un.has(fn.value[0]))return!1;return!0}if(sn&&ArrayBuffer.isView(cn)&&ArrayBuffer.isView(un)){if(pn=cn.length,pn!=un.length)return!1;for(fn=pn;fn--!==0;)if(cn[fn]!==un[fn])return!1;return!0}if(cn.constructor===RegExp)return cn.source===un.source&&cn.flags===un.flags;if(cn.valueOf!==Object.prototype.valueOf&&typeof cn.valueOf=="function"&&typeof un.valueOf=="function")return cn.valueOf()===un.valueOf();if(cn.toString!==Object.prototype.toString&&typeof cn.toString=="function"&&typeof un.toString=="function")return cn.toString()===un.toString();if(mn=Object.keys(cn),pn=mn.length,pn!==Object.keys(un).length)return!1;for(fn=pn;fn--!==0;)if(!Object.prototype.hasOwnProperty.call(un,mn[fn]))return!1;if(ln&&cn instanceof Element)return!1;for(fn=pn;fn--!==0;)if(!((mn[fn]==="_owner"||mn[fn]==="__v"||mn[fn]==="__o")&&cn.$$typeof)&&!on(cn[mn[fn]],un[mn[fn]]))return!1;return!0}return cn!==cn&&un!==un}return reactFastCompare=function(un,pn){try{return on(un,pn)}catch(fn){if((fn.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw fn}},reactFastCompare}var reactFastCompareExports=requireReactFastCompare();const fastCompare=getDefaultExportFromCjs(reactFastCompareExports);var browser,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser;hasRequiredBrowser=1;var ln=function(rn,an,sn,on,cn,un,pn,fn){if(!rn){var mn;if(an===void 0)mn=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var xn=[sn,on,cn,un,pn,fn],vn=0;mn=new Error(an.replace(/%s/g,function(){return xn[vn++]})),mn.name="Invariant Violation"}throw mn.framesToPop=1,mn}};return browser=ln,browser}var browserExports=requireBrowser();const invariant=getDefaultExportFromCjs(browserExports);var shallowequal,hasRequiredShallowequal;function requireShallowequal(){return hasRequiredShallowequal||(hasRequiredShallowequal=1,shallowequal=function(rn,an,sn,on){var cn=sn?sn.call(on,rn,an):void 0;if(cn!==void 0)return!!cn;if(rn===an)return!0;if(typeof rn!="object"||!rn||typeof an!="object"||!an)return!1;var un=Object.keys(rn),pn=Object.keys(an);if(un.length!==pn.length)return!1;for(var fn=Object.prototype.hasOwnProperty.bind(an),mn=0;mn<un.length;mn++){var xn=un[mn];if(!fn(xn))return!1;var vn=rn[xn],yn=an[xn];if(cn=sn?sn.call(on,vn,yn,xn):void 0,cn===!1||cn===void 0&&vn!==yn)return!1}return!0}),shallowequal}var shallowequalExports=requireShallowequal();const shallowEqual=getDefaultExportFromCjs(shallowequalExports);var TAG_NAMES=(ln=>(ln.BASE="base",ln.BODY="body",ln.HEAD="head",ln.HTML="html",ln.LINK="link",ln.META="meta",ln.NOSCRIPT="noscript",ln.SCRIPT="script",ln.STYLE="style",ln.TITLE="title",ln.FRAGMENT="Symbol(react.fragment)",ln))(TAG_NAMES||{}),SEO_PRIORITY_TAGS={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},VALID_TAG_NAMES=Object.values(TAG_NAMES),REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},HTML_TAG_MAP=Object.entries(REACT_TAG_MAP).reduce((ln,[rn,an])=>(ln[an]=rn,ln),{}),HELMET_ATTRIBUTE="data-rh",HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},getInnermostProperty=(ln,rn)=>{for(let an=ln.length-1;an>=0;an-=1){const sn=ln[an];if(Object.prototype.hasOwnProperty.call(sn,rn))return sn[rn]}return null},getTitleFromPropsList=ln=>{let rn=getInnermostProperty(ln,"title");const an=getInnermostProperty(ln,HELMET_PROPS.TITLE_TEMPLATE);if(Array.isArray(rn)&&(rn=rn.join("")),an&&rn)return an.replace(/%s/g,()=>rn);const sn=getInnermostProperty(ln,HELMET_PROPS.DEFAULT_TITLE);return rn||sn||void 0},getOnChangeClientState=ln=>getInnermostProperty(ln,HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||(()=>{}),getAttributesFromPropsList=(ln,rn)=>rn.filter(an=>typeof an[ln]<"u").map(an=>an[ln]).reduce((an,sn)=>({...an,...sn}),{}),getBaseTagFromPropsList=(ln,rn)=>rn.filter(an=>typeof an.base<"u").map(an=>an.base).reverse().reduce((an,sn)=>{if(!an.length){const on=Object.keys(sn);for(let cn=0;cn<on.length;cn+=1){const pn=on[cn].toLowerCase();if(ln.indexOf(pn)!==-1&&sn[pn])return an.concat(sn)}}return an},[]),warn=ln=>console&&typeof console.warn=="function"&&console.warn(ln),getTagsFromPropsList=(ln,rn,an)=>{const sn={};return an.filter(on=>Array.isArray(on[ln])?!0:(typeof on[ln]<"u"&&warn(`Helmet: ${ln} should be of type "Array". Instead found type "${typeof on[ln]}"`),!1)).map(on=>on[ln]).reverse().reduce((on,cn)=>{const un={};cn.filter(fn=>{let mn;const xn=Object.keys(fn);for(let yn=0;yn<xn.length;yn+=1){const wn=xn[yn],An=wn.toLowerCase();rn.indexOf(An)!==-1&&!(mn==="rel"&&fn[mn].toLowerCase()==="canonical")&&!(An==="rel"&&fn[An].toLowerCase()==="stylesheet")&&(mn=An),rn.indexOf(wn)!==-1&&(wn==="innerHTML"||wn==="cssText"||wn==="itemprop")&&(mn=wn)}if(!mn||!fn[mn])return!1;const vn=fn[mn].toLowerCase();return sn[mn]||(sn[mn]={}),un[mn]||(un[mn]={}),sn[mn][vn]?!1:(un[mn][vn]=!0,!0)}).reverse().forEach(fn=>on.push(fn));const pn=Object.keys(un);for(let fn=0;fn<pn.length;fn+=1){const mn=pn[fn],xn={...sn[mn],...un[mn]};sn[mn]=xn}return on},[]).reverse()},getAnyTrueFromPropsList=(ln,rn)=>{if(Array.isArray(ln)&&ln.length){for(let an=0;an<ln.length;an+=1)if(ln[an][rn])return!0}return!1},reducePropsToState=ln=>({baseTag:getBaseTagFromPropsList(["href"],ln),bodyAttributes:getAttributesFromPropsList("bodyAttributes",ln),defer:getInnermostProperty(ln,HELMET_PROPS.DEFER),encode:getInnermostProperty(ln,HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:getAttributesFromPropsList("htmlAttributes",ln),linkTags:getTagsFromPropsList("link",["rel","href"],ln),metaTags:getTagsFromPropsList("meta",["name","charset","http-equiv","property","itemprop"],ln),noscriptTags:getTagsFromPropsList("noscript",["innerHTML"],ln),onChangeClientState:getOnChangeClientState(ln),scriptTags:getTagsFromPropsList("script",["src","innerHTML"],ln),styleTags:getTagsFromPropsList("style",["cssText"],ln),title:getTitleFromPropsList(ln),titleAttributes:getAttributesFromPropsList("titleAttributes",ln),prioritizeSeoTags:getAnyTrueFromPropsList(ln,HELMET_PROPS.PRIORITIZE_SEO_TAGS)}),flattenArray=ln=>Array.isArray(ln)?ln.join(""):ln,checkIfPropsMatch=(ln,rn)=>{const an=Object.keys(ln);for(let sn=0;sn<an.length;sn+=1)if(rn[an[sn]]&&rn[an[sn]].includes(ln[an[sn]]))return!0;return!1},prioritizer=(ln,rn)=>Array.isArray(ln)?ln.reduce((an,sn)=>(checkIfPropsMatch(sn,rn)?an.priority.push(sn):an.default.push(sn),an),{priority:[],default:[]}):{default:ln,priority:[]},without=(ln,rn)=>({...ln,[rn]:void 0}),SELF_CLOSING_TAGS=["noscript","script","style"],encodeSpecialCharacters=(ln,rn=!0)=>rn===!1?String(ln):String(ln).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),generateElementAttributesAsString=ln=>Object.keys(ln).reduce((rn,an)=>{const sn=typeof ln[an]<"u"?`${an}="${ln[an]}"`:`${an}`;return rn?`${rn} ${sn}`:sn},""),generateTitleAsString=(ln,rn,an,sn)=>{const on=generateElementAttributesAsString(an),cn=flattenArray(rn);return on?`<${ln} ${HELMET_ATTRIBUTE}="true" ${on}>${encodeSpecialCharacters(cn,sn)}</${ln}>`:`<${ln} ${HELMET_ATTRIBUTE}="true">${encodeSpecialCharacters(cn,sn)}</${ln}>`},generateTagsAsString=(ln,rn,an=!0)=>rn.reduce((sn,on)=>{const cn=on,un=Object.keys(cn).filter(mn=>!(mn==="innerHTML"||mn==="cssText")).reduce((mn,xn)=>{const vn=typeof cn[xn]>"u"?xn:`${xn}="${encodeSpecialCharacters(cn[xn],an)}"`;return mn?`${mn} ${vn}`:vn},""),pn=cn.innerHTML||cn.cssText||"",fn=SELF_CLOSING_TAGS.indexOf(ln)===-1;return`${sn}<${ln} ${HELMET_ATTRIBUTE}="true" ${un}${fn?"/>":`>${pn}</${ln}>`}`},""),convertElementAttributesToReactProps=(ln,rn={})=>Object.keys(ln).reduce((an,sn)=>{const on=REACT_TAG_MAP[sn];return an[on||sn]=ln[sn],an},rn),generateTitleAsReactComponent=(ln,rn,an)=>{const sn={key:rn,[HELMET_ATTRIBUTE]:!0},on=convertElementAttributesToReactProps(an,sn);return[React.createElement("title",on,rn)]},generateTagsAsReactComponent=(ln,rn)=>rn.map((an,sn)=>{const on={key:sn,[HELMET_ATTRIBUTE]:!0};return Object.keys(an).forEach(cn=>{const pn=REACT_TAG_MAP[cn]||cn;if(pn==="innerHTML"||pn==="cssText"){const fn=an.innerHTML||an.cssText;on.dangerouslySetInnerHTML={__html:fn}}else on[pn]=an[cn]}),React.createElement(ln,on)}),getMethodsForTag=(ln,rn,an=!0)=>{switch(ln){case"title":return{toComponent:()=>generateTitleAsReactComponent(ln,rn.title,rn.titleAttributes),toString:()=>generateTitleAsString(ln,rn.title,rn.titleAttributes,an)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>convertElementAttributesToReactProps(rn),toString:()=>generateElementAttributesAsString(rn)};default:return{toComponent:()=>generateTagsAsReactComponent(ln,rn),toString:()=>generateTagsAsString(ln,rn,an)}}},getPriorityMethods=({metaTags:ln,linkTags:rn,scriptTags:an,encode:sn})=>{const on=prioritizer(ln,SEO_PRIORITY_TAGS.meta),cn=prioritizer(rn,SEO_PRIORITY_TAGS.link),un=prioritizer(an,SEO_PRIORITY_TAGS.script);return{priorityMethods:{toComponent:()=>[...generateTagsAsReactComponent("meta",on.priority),...generateTagsAsReactComponent("link",cn.priority),...generateTagsAsReactComponent("script",un.priority)],toString:()=>`${getMethodsForTag("meta",on.priority,sn)} ${getMethodsForTag("link",cn.priority,sn)} ${getMethodsForTag("script",un.priority,sn)}`},metaTags:on.default,linkTags:cn.default,scriptTags:un.default}},mapStateOnServer=ln=>{const{baseTag:rn,bodyAttributes:an,encode:sn=!0,htmlAttributes:on,noscriptTags:cn,styleTags:un,title:pn="",titleAttributes:fn,prioritizeSeoTags:mn}=ln;let{linkTags:xn,metaTags:vn,scriptTags:yn}=ln,wn={toComponent:()=>{},toString:()=>""};return mn&&({priorityMethods:wn,linkTags:xn,metaTags:vn,scriptTags:yn}=getPriorityMethods(ln)),{priority:wn,base:getMethodsForTag("base",rn,sn),bodyAttributes:getMethodsForTag("bodyAttributes",an,sn),htmlAttributes:getMethodsForTag("htmlAttributes",on,sn),link:getMethodsForTag("link",xn,sn),meta:getMethodsForTag("meta",vn,sn),noscript:getMethodsForTag("noscript",cn,sn),script:getMethodsForTag("script",yn,sn),style:getMethodsForTag("style",un,sn),title:getMethodsForTag("title",{title:pn,titleAttributes:fn},sn)}},server_default=mapStateOnServer,instances=[],isDocument=!!(typeof window<"u"&&window.document&&window.document.createElement),HelmetData=class{constructor(ln,rn){Sc(this,"instances",[]);Sc(this,"canUseDOM",isDocument);Sc(this,"context");Sc(this,"value",{setHelmet:ln=>{this.context.helmet=ln},helmetInstances:{get:()=>this.canUseDOM?instances:this.instances,add:ln=>{(this.canUseDOM?instances:this.instances).push(ln)},remove:ln=>{const rn=(this.canUseDOM?instances:this.instances).indexOf(ln);(this.canUseDOM?instances:this.instances).splice(rn,1)}}});this.context=ln,this.canUseDOM=rn||!1,rn||(ln.helmet=server_default({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},defaultValue={},Context=React.createContext(defaultValue),_u,HelmetProvider=(_u=class extends reactExports.Component{constructor(an){super(an);Sc(this,"helmetData");this.helmetData=new HelmetData(this.props.context||{},_u.canUseDOM)}render(){return React.createElement(Context.Provider,{value:this.helmetData.value},this.props.children)}},Sc(_u,"canUseDOM",isDocument),_u),updateTags=(ln,rn)=>{const an=document.head||document.querySelector("head"),sn=an.querySelectorAll(`${ln}[${HELMET_ATTRIBUTE}]`),on=[].slice.call(sn),cn=[];let un;return rn&&rn.length&&rn.forEach(pn=>{const fn=document.createElement(ln);for(const mn in pn)if(Object.prototype.hasOwnProperty.call(pn,mn))if(mn==="innerHTML")fn.innerHTML=pn.innerHTML;else if(mn==="cssText")fn.styleSheet?fn.styleSheet.cssText=pn.cssText:fn.appendChild(document.createTextNode(pn.cssText));else{const xn=mn,vn=typeof pn[xn]>"u"?"":pn[xn];fn.setAttribute(mn,vn)}fn.setAttribute(HELMET_ATTRIBUTE,"true"),on.some((mn,xn)=>(un=xn,fn.isEqualNode(mn)))?on.splice(un,1):cn.push(fn)}),on.forEach(pn=>{var fn;return(fn=pn.parentNode)==null?void 0:fn.removeChild(pn)}),cn.forEach(pn=>an.appendChild(pn)),{oldTags:on,newTags:cn}},updateAttributes=(ln,rn)=>{const an=document.getElementsByTagName(ln)[0];if(!an)return;const sn=an.getAttribute(HELMET_ATTRIBUTE),on=sn?sn.split(","):[],cn=[...on],un=Object.keys(rn);for(const pn of un){const fn=rn[pn]||"";an.getAttribute(pn)!==fn&&an.setAttribute(pn,fn),on.indexOf(pn)===-1&&on.push(pn);const mn=cn.indexOf(pn);mn!==-1&&cn.splice(mn,1)}for(let pn=cn.length-1;pn>=0;pn-=1)an.removeAttribute(cn[pn]);on.length===cn.length?an.removeAttribute(HELMET_ATTRIBUTE):an.getAttribute(HELMET_ATTRIBUTE)!==un.join(",")&&an.setAttribute(HELMET_ATTRIBUTE,un.join(","))},updateTitle=(ln,rn)=>{typeof ln<"u"&&document.title!==ln&&(document.title=flattenArray(ln)),updateAttributes("title",rn)},commitTagChanges=(ln,rn)=>{const{baseTag:an,bodyAttributes:sn,htmlAttributes:on,linkTags:cn,metaTags:un,noscriptTags:pn,onChangeClientState:fn,scriptTags:mn,styleTags:xn,title:vn,titleAttributes:yn}=ln;updateAttributes("body",sn),updateAttributes("html",on),updateTitle(vn,yn);const wn={baseTag:updateTags("base",an),linkTags:updateTags("link",cn),metaTags:updateTags("meta",un),noscriptTags:updateTags("noscript",pn),scriptTags:updateTags("script",mn),styleTags:updateTags("style",xn)},An={},Cn={};Object.keys(wn).forEach(kn=>{const{newTags:Mn,oldTags:Tn}=wn[kn];Mn.length&&(An[kn]=Mn),Tn.length&&(Cn[kn]=wn[kn].oldTags)}),rn&&rn(),fn(ln,An,Cn)},_helmetCallback=null,handleStateChangeOnClient=ln=>{_helmetCallback&&cancelAnimationFrame(_helmetCallback),ln.defer?_helmetCallback=requestAnimationFrame(()=>{commitTagChanges(ln,()=>{_helmetCallback=null})}):(commitTagChanges(ln),_helmetCallback=null)},client_default=handleStateChangeOnClient,HelmetDispatcher=class extends reactExports.Component{constructor(){super(...arguments);Sc(this,"rendered",!1)}shouldComponentUpdate(rn){return!shallowEqual(rn,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:rn}=this.props.context;rn.remove(this),this.emitChange()}emitChange(){const{helmetInstances:rn,setHelmet:an}=this.props.context;let sn=null;const on=reducePropsToState(rn.get().map(cn=>{const un={...cn.props};return delete un.context,un}));HelmetProvider.canUseDOM?client_default(on):server_default&&(sn=server_default(on)),an(sn)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:rn}=this.props.context;rn.add(this),this.emitChange()}render(){return this.init(),null}},h0,Helmet=(h0=class extends reactExports.Component{shouldComponentUpdate(ln){return!fastCompare(without(this.props,"helmetData"),without(ln,"helmetData"))}mapNestedChildrenToProps(ln,rn){if(!rn)return null;switch(ln.type){case"script":case"noscript":return{innerHTML:rn};case"style":return{cssText:rn};default:throw new Error(`<${ln.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(ln,rn,an,sn){return{...rn,[ln.type]:[...rn[ln.type]||[],{...an,...this.mapNestedChildrenToProps(ln,sn)}]}}mapObjectTypeChildren(ln,rn,an,sn){switch(ln.type){case"title":return{...rn,[ln.type]:sn,titleAttributes:{...an}};case"body":return{...rn,bodyAttributes:{...an}};case"html":return{...rn,htmlAttributes:{...an}};default:return{...rn,[ln.type]:{...an}}}}mapArrayTypeChildrenToProps(ln,rn){let an={...rn};return Object.keys(ln).forEach(sn=>{an={...an,[sn]:ln[sn]}}),an}warnOnInvalidChildren(ln,rn){return invariant(VALID_TAG_NAMES.some(an=>ln.type===an),typeof ln.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${VALID_TAG_NAMES.join(", ")} are allowed. Helmet does not support rendering <${ln.type}> elements. Refer to our API for more information.`),invariant(!rn||typeof rn=="string"||Array.isArray(rn)&&!rn.some(an=>typeof an!="string"),`Helmet expects a string as a child of <${ln.type}>. Did you forget to wrap your children in braces? ( <${ln.type}>{\`\`}</${ln.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(ln,rn){let an={};return React.Children.forEach(ln,sn=>{if(!sn||!sn.props)return;const{children:on,...cn}=sn.props,un=Object.keys(cn).reduce((fn,mn)=>(fn[HTML_TAG_MAP[mn]||mn]=cn[mn],fn),{});let{type:pn}=sn;switch(typeof pn=="symbol"?pn=pn.toString():this.warnOnInvalidChildren(sn,on),pn){case"Symbol(react.fragment)":rn=this.mapChildrenToProps(on,rn);break;case"link":case"meta":case"noscript":case"script":case"style":an=this.flattenArrayTypeChildren(sn,an,un,on);break;default:rn=this.mapObjectTypeChildren(sn,rn,un,on);break}}),this.mapArrayTypeChildrenToProps(an,rn)}render(){const{children:ln,...rn}=this.props;let an={...rn},{helmetData:sn}=rn;if(ln&&(an=this.mapChildrenToProps(ln,an)),sn&&!(sn instanceof HelmetData)){const on=sn;sn=new HelmetData(on.context,!0),delete an.helmetData}return sn?React.createElement(HelmetDispatcher,{...an,context:sn.value}):React.createElement(Context.Consumer,null,on=>React.createElement(HelmetDispatcher,{...an,context:on}))}},Sc(h0,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),h0);const PageMeta=({title:ln,description:rn})=>jsxRuntimeExports.jsxs(Helmet,{children:[jsxRuntimeExports.jsx("title",{children:ln}),jsxRuntimeExports.jsx("meta",{name:"description",content:rn})]}),AppWrapper=({children:ln})=>jsxRuntimeExports.jsx(HelmetProvider,{children:ln});function GridShape(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"absolute right-0 top-0 -z-1 w-full max-w-[250px] xl:max-w-[450px]",children:jsxRuntimeExports.jsx("img",{src:"/images/shape/grid-01.svg",alt:"grid"})}),jsxRuntimeExports.jsx("div",{className:"absolute bottom-0 left-0 -z-1 w-full max-w-[250px] rotate-180 xl:max-w-[450px]",children:jsxRuntimeExports.jsx("img",{src:"/images/shape/grid-01.svg",alt:"grid"})})]})}const ThemeContext=reactExports.createContext(void 0),ThemeProvider=({children:ln})=>{const[rn,an]=reactExports.useState("light"),[sn,on]=reactExports.useState(!1);reactExports.useEffect(()=>{const pn=localStorage.getItem("theme")||"light";an(pn),on(!0)},[]),reactExports.useEffect(()=>{sn&&(localStorage.setItem("theme",rn),rn==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"))},[rn,sn]);const cn=()=>{an(un=>un==="light"?"dark":"light")};return jsxRuntimeExports.jsx(ThemeContext.Provider,{value:{theme:rn,toggleTheme:cn},children:ln})},useTheme=()=>{const ln=reactExports.useContext(ThemeContext);if(ln===void 0)throw new Error("useTheme must be used within a ThemeProvider");return ln};function ThemeTogglerTwo(){const{toggleTheme:ln}=useTheme();return jsxRuntimeExports.jsxs("button",{onClick:ln,className:"inline-flex items-center justify-center text-white transition-colors rounded-full size-14 bg-brand-500 hover:bg-brand-600",children:[jsxRuntimeExports.jsx("svg",{className:"hidden dark:block",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99998 1.5415C10.4142 1.5415 10.75 1.87729 10.75 2.2915V3.5415C10.75 3.95572 10.4142 4.2915 9.99998 4.2915C9.58577 4.2915 9.24998 3.95572 9.24998 3.5415V2.2915C9.24998 1.87729 9.58577 1.5415 9.99998 1.5415ZM10.0009 6.79327C8.22978 6.79327 6.79402 8.22904 6.79402 10.0001C6.79402 11.7712 8.22978 13.207 10.0009 13.207C11.772 13.207 13.2078 11.7712 13.2078 10.0001C13.2078 8.22904 11.772 6.79327 10.0009 6.79327ZM5.29402 10.0001C5.29402 7.40061 7.40135 5.29327 10.0009 5.29327C12.6004 5.29327 14.7078 7.40061 14.7078 10.0001C14.7078 12.5997 12.6004 14.707 10.0009 14.707C7.40135 14.707 5.29402 12.5997 5.29402 10.0001ZM15.9813 5.08035C16.2742 4.78746 16.2742 4.31258 15.9813 4.01969C15.6884 3.7268 15.2135 3.7268 14.9207 4.01969L14.0368 4.90357C13.7439 5.19647 13.7439 5.67134 14.0368 5.96423C14.3297 6.25713 14.8045 6.25713 15.0974 5.96423L15.9813 5.08035ZM18.4577 10.0001C18.4577 10.4143 18.1219 10.7501 17.7077 10.7501H16.4577C16.0435 10.7501 15.7077 10.4143 15.7077 10.0001C15.7077 9.58592 16.0435 9.25013 16.4577 9.25013H17.7077C18.1219 9.25013 18.4577 9.58592 18.4577 10.0001ZM14.9207 15.9806C15.2135 16.2735 15.6884 16.2735 15.9813 15.9806C16.2742 15.6877 16.2742 15.2128 15.9813 14.9199L15.0974 14.036C14.8045 13.7431 14.3297 13.7431 14.0368 14.036C13.7439 14.3289 13.7439 14.8038 14.0368 15.0967L14.9207 15.9806ZM9.99998 15.7088C10.4142 15.7088 10.75 16.0445 10.75 16.4588V17.7088C10.75 18.123 10.4142 18.4588 9.99998 18.4588C9.58577 18.4588 9.24998 18.123 9.24998 17.7088V16.4588C9.24998 16.0445 9.58577 15.7088 9.99998 15.7088ZM5.96356 15.0972C6.25646 14.8043 6.25646 14.3295 5.96356 14.0366C5.67067 13.7437 5.1958 13.7437 4.9029 14.0366L4.01902 14.9204C3.72613 15.2133 3.72613 15.6882 4.01902 15.9811C4.31191 16.274 4.78679 16.274 5.07968 15.9811L5.96356 15.0972ZM4.29224 10.0001C4.29224 10.4143 3.95645 10.7501 3.54224 10.7501H2.29224C1.87802 10.7501 1.54224 10.4143 1.54224 10.0001C1.54224 9.58592 1.87802 9.25013 2.29224 9.25013H3.54224C3.95645 9.25013 4.29224 9.58592 4.29224 10.0001ZM4.9029 5.9637C5.1958 6.25659 5.67067 6.25659 5.96356 5.9637C6.25646 5.6708 6.25646 5.19593 5.96356 4.90303L5.07968 4.01915C4.78679 3.72626 4.31191 3.72626 4.01902 4.01915C3.72613 4.31204 3.72613 4.78692 4.01902 5.07981L4.9029 5.9637Z",fill:"currentColor"})}),jsxRuntimeExports.jsx("svg",{className:"dark:hidden",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M17.4547 11.97L18.1799 12.1611C18.265 11.8383 18.1265 11.4982 17.8401 11.3266C17.5538 11.1551 17.1885 11.1934 16.944 11.4207L17.4547 11.97ZM8.0306 2.5459L8.57989 3.05657C8.80718 2.81209 8.84554 2.44682 8.67398 2.16046C8.50243 1.8741 8.16227 1.73559 7.83948 1.82066L8.0306 2.5459ZM12.9154 13.0035C9.64678 13.0035 6.99707 10.3538 6.99707 7.08524H5.49707C5.49707 11.1823 8.81835 14.5035 12.9154 14.5035V13.0035ZM16.944 11.4207C15.8869 12.4035 14.4721 13.0035 12.9154 13.0035V14.5035C14.8657 14.5035 16.6418 13.7499 17.9654 12.5193L16.944 11.4207ZM16.7295 11.7789C15.9437 14.7607 13.2277 16.9586 10.0003 16.9586V18.4586C13.9257 18.4586 17.2249 15.7853 18.1799 12.1611L16.7295 11.7789ZM10.0003 16.9586C6.15734 16.9586 3.04199 13.8433 3.04199 10.0003H1.54199C1.54199 14.6717 5.32892 18.4586 10.0003 18.4586V16.9586ZM3.04199 10.0003C3.04199 6.77289 5.23988 4.05695 8.22173 3.27114L7.83948 1.82066C4.21532 2.77574 1.54199 6.07486 1.54199 10.0003H3.04199ZM6.99707 7.08524C6.99707 5.52854 7.5971 4.11366 8.57989 3.05657L7.48132 2.03522C6.25073 3.35885 5.49707 5.13487 5.49707 7.08524H6.99707Z",fill:"currentColor"})})]})}function AuthLayout({children:ln}){return jsxRuntimeExports.jsx("div",{className:"relative p-6 bg-white z-1 dark:bg-gray-900 sm:p-0",children:jsxRuntimeExports.jsxs("div",{className:"relative flex flex-col justify-center w-full h-screen lg:flex-row dark:bg-gray-900 sm:p-0",children:[ln,jsxRuntimeExports.jsx("div",{className:"items-center hidden w-full h-full lg:w-1/2 bg-brand-950 dark:bg-white/5 lg:grid",children:jsxRuntimeExports.jsxs("div",{className:"relative flex items-center justify-center z-1",children:[jsxRuntimeExports.jsx(GridShape,{}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center max-w-xs",children:[jsxRuntimeExports.jsx(Link,{to:"/",className:"block mb-4",children:jsxRuntimeExports.jsx("img",{width:231,height:48,src:"/images/logo/auth-logo.svg",alt:"Logo"})}),jsxRuntimeExports.jsx("p",{className:"text-center text-gray-400 dark:text-white/60",children:"Free and Open-Source Tailwind CSS Admin Dashboard Template"})]})]})}),jsxRuntimeExports.jsx("div",{className:"fixed z-50 hidden bottom-6 right-6 sm:block",children:jsxRuntimeExports.jsx(ThemeTogglerTwo,{})})]})})}const SvgPlus=ln=>reactExports.createElement("svg",{className:"fill-current",width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.25012 3C5.25012 2.58579 5.58591 2.25 6.00012 2.25C6.41433 2.25 6.75012 2.58579 6.75012 3V5.25012L9.00034 5.25012C9.41455 5.25012 9.75034 5.58591 9.75034 6.00012C9.75034 6.41433 9.41455 6.75012 9.00034 6.75012H6.75012V9.00034C6.75012 9.41455 6.41433 9.75034 6.00012 9.75034C5.58591 9.75034 5.25012 9.41455 5.25012 9.00034L5.25012 6.75012H3C2.58579 6.75012 2.25 6.41433 2.25 6.00012C2.25 5.58591 2.58579 5.25012 3 5.25012H5.25012V3Z",fill:""})),SvgBox=ln=>reactExports.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.77692 3.24224C9.91768 3.17186 10.0834 3.17186 10.2241 3.24224L15.3713 5.81573L10.3359 8.33331C10.1248 8.43888 9.87626 8.43888 9.66512 8.33331L4.6298 5.81573L9.77692 3.24224ZM3.70264 7.0292V13.4124C3.70264 13.6018 3.80964 13.775 3.97903 13.8597L9.25016 16.4952L9.25016 9.7837C9.16327 9.75296 9.07782 9.71671 8.99432 9.67496L3.70264 7.0292ZM10.7502 16.4955V9.78396C10.8373 9.75316 10.923 9.71683 11.0067 9.67496L16.2984 7.0292V13.4124C16.2984 13.6018 16.1914 13.775 16.022 13.8597L10.7502 16.4955ZM9.41463 17.4831L9.10612 18.1002C9.66916 18.3817 10.3319 18.3817 10.8949 18.1002L16.6928 15.2013C17.3704 14.8625 17.7984 14.17 17.7984 13.4124V6.58831C17.7984 5.83076 17.3704 5.13823 16.6928 4.79945L10.8949 1.90059C10.3319 1.61908 9.66916 1.61907 9.10612 1.90059L9.44152 2.57141L9.10612 1.90059L3.30823 4.79945C2.63065 5.13823 2.20264 5.83076 2.20264 6.58831V13.4124C2.20264 14.17 2.63065 14.8625 3.30823 15.2013L9.10612 18.1002L9.41463 17.4831Z",fill:"currentColor"})),SvgCheckCircle=ln=>reactExports.createElement("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"none",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.70186 11.0001C2.70186 6.41711 6.41711 2.70186 11.0001 2.70186C15.5831 2.70186 19.2984 6.41711 19.2984 11.0001C19.2984 15.5831 15.5831 19.2984 11.0001 19.2984C6.41711 19.2984 2.70186 15.5831 2.70186 11.0001ZM11.0001 0.901855C5.423 0.901855 0.901855 5.423 0.901855 11.0001C0.901855 16.5772 5.423 21.0984 11.0001 21.0984C16.5772 21.0984 21.0984 16.5772 21.0984 11.0001C21.0984 5.423 16.5772 0.901855 11.0001 0.901855ZM14.6197 9.73951C14.9712 9.38804 14.9712 8.81819 14.6197 8.46672C14.2683 8.11525 13.6984 8.11525 13.347 8.46672L10.1894 11.6243L8.6533 10.0883C8.30183 9.7368 7.73198 9.7368 7.38051 10.0883C7.02904 10.4397 7.02904 11.0096 7.38051 11.3611L9.55295 13.5335C9.72174 13.7023 9.95065 13.7971 10.1894 13.7971C10.428 13.7971 10.657 13.7023 10.8257 13.5335L14.6197 9.73951Z",fill:"#12B76A"})),SvgArrowUp=ln=>reactExports.createElement("svg",{className:"fill-current",width:"1em",height:"1em",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.06462 1.62393C6.20193 1.47072 6.40135 1.37432 6.62329 1.37432C6.6236 1.37432 6.62391 1.37432 6.62422 1.37432C6.81631 1.37415 7.00845 1.44731 7.15505 1.5938L10.1551 4.5918C10.4481 4.88459 10.4483 5.35946 10.1555 5.65246C9.86273 5.94546 9.38785 5.94562 9.09486 5.65283L7.37329 3.93247L7.37329 10.125C7.37329 10.5392 7.03751 10.875 6.62329 10.875C6.20908 10.875 5.87329 10.5392 5.87329 10.125L5.87329 3.93578L4.15516 5.65281C3.86218 5.94561 3.3873 5.94546 3.0945 5.65248C2.8017 5.35949 2.80185 4.88462 3.09484 4.59182L6.06462 1.62393Z",fill:""})),SvgGrid=ln=>reactExports.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 3.25C4.25736 3.25 3.25 4.25736 3.25 5.5V8.99998C3.25 10.2426 4.25736 11.25 5.5 11.25H9C10.2426 11.25 11.25 10.2426 11.25 8.99998V5.5C11.25 4.25736 10.2426 3.25 9 3.25H5.5ZM4.75 5.5C4.75 5.08579 5.08579 4.75 5.5 4.75H9C9.41421 4.75 9.75 5.08579 9.75 5.5V8.99998C9.75 9.41419 9.41421 9.74998 9 9.74998H5.5C5.08579 9.74998 4.75 9.41419 4.75 8.99998V5.5ZM5.5 12.75C4.25736 12.75 3.25 13.7574 3.25 15V18.5C3.25 19.7426 4.25736 20.75 5.5 20.75H9C10.2426 20.75 11.25 19.7427 11.25 18.5V15C11.25 13.7574 10.2426 12.75 9 12.75H5.5ZM4.75 15C4.75 14.5858 5.08579 14.25 5.5 14.25H9C9.41421 14.25 9.75 14.5858 9.75 15V18.5C9.75 18.9142 9.41421 19.25 9 19.25H5.5C5.08579 19.25 4.75 18.9142 4.75 18.5V15ZM12.75 5.5C12.75 4.25736 13.7574 3.25 15 3.25H18.5C19.7426 3.25 20.75 4.25736 20.75 5.5V8.99998C20.75 10.2426 19.7426 11.25 18.5 11.25H15C13.7574 11.25 12.75 10.2426 12.75 8.99998V5.5ZM15 4.75C14.5858 4.75 14.25 5.08579 14.25 5.5V8.99998C14.25 9.41419 14.5858 9.74998 15 9.74998H18.5C18.9142 9.74998 19.25 9.41419 19.25 8.99998V5.5C19.25 5.08579 18.9142 4.75 18.5 4.75H15ZM15 12.75C13.7574 12.75 12.75 13.7574 12.75 15V18.5C12.75 19.7426 13.7574 20.75 15 20.75H18.5C19.7426 20.75 20.75 19.7427 20.75 18.5V15C20.75 13.7574 19.7426 12.75 18.5 12.75H15ZM14.25 15C14.25 14.5858 14.5858 14.25 15 14.25H18.5C18.9142 14.25 19.25 14.5858 19.25 15V18.5C19.25 18.9142 18.9142 19.25 18.5 19.25H15C14.5858 19.25 14.25 18.9142 14.25 18.5V15Z",fill:"currentColor"})),SvgGroup=ln=>reactExports.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.80443 5.60156C7.59109 5.60156 6.60749 6.58517 6.60749 7.79851C6.60749 9.01185 7.59109 9.99545 8.80443 9.99545C10.0178 9.99545 11.0014 9.01185 11.0014 7.79851C11.0014 6.58517 10.0178 5.60156 8.80443 5.60156ZM5.10749 7.79851C5.10749 5.75674 6.76267 4.10156 8.80443 4.10156C10.8462 4.10156 12.5014 5.75674 12.5014 7.79851C12.5014 9.84027 10.8462 11.4955 8.80443 11.4955C6.76267 11.4955 5.10749 9.84027 5.10749 7.79851ZM4.86252 15.3208C4.08769 16.0881 3.70377 17.0608 3.51705 17.8611C3.48384 18.0034 3.5211 18.1175 3.60712 18.2112C3.70161 18.3141 3.86659 18.3987 4.07591 18.3987H13.4249C13.6343 18.3987 13.7992 18.3141 13.8937 18.2112C13.9797 18.1175 14.017 18.0034 13.9838 17.8611C13.7971 17.0608 13.4132 16.0881 12.6383 15.3208C11.8821 14.572 10.6899 13.955 8.75042 13.955C6.81096 13.955 5.61877 14.572 4.86252 15.3208ZM3.8071 14.2549C4.87163 13.2009 6.45602 12.455 8.75042 12.455C11.0448 12.455 12.6292 13.2009 13.6937 14.2549C14.7397 15.2906 15.2207 16.5607 15.4446 17.5202C15.7658 18.8971 14.6071 19.8987 13.4249 19.8987H4.07591C2.89369 19.8987 1.73504 18.8971 2.05628 17.5202C2.28015 16.5607 2.76117 15.2906 3.8071 14.2549ZM15.3042 11.4955C14.4702 11.4955 13.7006 11.2193 13.0821 10.7533C13.3742 10.3314 13.6054 9.86419 13.7632 9.36432C14.1597 9.75463 14.7039 9.99545 15.3042 9.99545C16.5176 9.99545 17.5012 9.01185 17.5012 7.79851C17.5012 6.58517 16.5176 5.60156 15.3042 5.60156C14.7039 5.60156 14.1597 5.84239 13.7632 6.23271C13.6054 5.73284 13.3741 5.26561 13.082 4.84371C13.7006 4.37777 14.4702 4.10156 15.3042 4.10156C17.346 4.10156 19.0012 5.75674 19.0012 7.79851C19.0012 9.84027 17.346 11.4955 15.3042 11.4955ZM19.9248 19.8987H16.3901C16.7014 19.4736 16.9159 18.969 16.9827 18.3987H19.9248C20.1341 18.3987 20.2991 18.3141 20.3936 18.2112C20.4796 18.1175 20.5169 18.0034 20.4837 17.861C20.2969 17.0607 19.913 16.088 19.1382 15.3208C18.4047 14.5945 17.261 13.9921 15.4231 13.9566C15.2232 13.6945 14.9995 13.437 14.7491 13.1891C14.5144 12.9566 14.262 12.7384 13.9916 12.5362C14.3853 12.4831 14.8044 12.4549 15.2503 12.4549C17.5447 12.4549 19.1291 13.2008 20.1936 14.2549C21.2395 15.2906 21.7206 16.5607 21.9444 17.5202C22.2657 18.8971 21.107 19.8987 19.9248 19.8987Z",fill:"currentColor"})),SvgBoxLine=ln=>reactExports.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.665 3.75621C11.8762 3.65064 12.1247 3.65064 12.3358 3.75621L18.7807 6.97856L12.3358 10.2009C12.1247 10.3065 11.8762 10.3065 11.665 10.2009L5.22014 6.97856L11.665 3.75621ZM4.29297 8.19203V16.0946C4.29297 16.3787 4.45347 16.6384 4.70757 16.7654L11.25 20.0366V11.6513C11.1631 11.6205 11.0777 11.5843 10.9942 11.5426L4.29297 8.19203ZM12.75 20.037L19.2933 16.7654C19.5474 16.6384 19.7079 16.3787 19.7079 16.0946V8.19202L13.0066 11.5426C12.9229 11.5844 12.8372 11.6208 12.75 11.6516V20.037ZM13.0066 2.41456C12.3732 2.09786 11.6277 2.09786 10.9942 2.41456L4.03676 5.89319C3.27449 6.27432 2.79297 7.05342 2.79297 7.90566V16.0946C2.79297 16.9469 3.27448 17.726 4.03676 18.1071L10.9942 21.5857L11.3296 20.9149L10.9942 21.5857C11.6277 21.9024 12.3732 21.9024 13.0066 21.5857L19.9641 18.1071C20.7264 17.726 21.2079 16.9469 21.2079 16.0946V7.90566C21.2079 7.05342 20.7264 6.27432 19.9641 5.89319L13.0066 2.41456Z",fill:"currentColor"})),SvgPencil=ln=>reactExports.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.0911 3.53206C16.2124 2.65338 14.7878 2.65338 13.9091 3.53206L5.6074 11.8337C5.29899 12.1421 5.08687 12.5335 4.99684 12.9603L4.26177 16.445C4.20943 16.6931 4.286 16.9508 4.46529 17.1301C4.64458 17.3094 4.90232 17.3859 5.15042 17.3336L8.63507 16.5985C9.06184 16.5085 9.45324 16.2964 9.76165 15.988L18.0633 7.68631C18.942 6.80763 18.942 5.38301 18.0633 4.50433L17.0911 3.53206ZM14.9697 4.59272C15.2626 4.29982 15.7375 4.29982 16.0304 4.59272L17.0027 5.56499C17.2956 5.85788 17.2956 6.33276 17.0027 6.62565L16.1043 7.52402L14.0714 5.49109L14.9697 4.59272ZM13.0107 6.55175L6.66806 12.8944C6.56526 12.9972 6.49455 13.1277 6.46454 13.2699L5.96704 15.6283L8.32547 15.1308C8.46772 15.1008 8.59819 15.0301 8.70099 14.9273L15.0436 8.58468L13.0107 6.55175Z",fill:"currentColor"})),SvgChevronDown=ln=>reactExports.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{d:"M4.79175 7.396L10.0001 12.6043L15.2084 7.396",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),SvgEnvelope=ln=>reactExports.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.0415 7.06206V14.375C3.0415 14.6511 3.26536 14.875 3.5415 14.875H16.4582C16.7343 14.875 16.9582 14.6511 16.9582 14.375V7.06245L11.1441 11.1168C10.4568 11.5961 9.54348 11.5961 8.85614 11.1168L3.0415 7.06206ZM16.9582 5.19262C16.9582 5.19341 16.9582 5.1942 16.9582 5.19498V5.20026C16.957 5.22216 16.9458 5.24239 16.9277 5.25501L10.2861 9.88638C10.1143 10.0062 9.88596 10.0062 9.71412 9.88638L3.0723 5.25485C3.05318 5.24151 3.04178 5.21967 3.04177 5.19636C3.04176 5.15695 3.0737 5.125 3.1131 5.125H16.8869C16.925 5.125 16.9562 5.15494 16.9582 5.19262ZM18.4582 5.21428V14.375C18.4582 15.4796 17.5627 16.375 16.4582 16.375H3.5415C2.43693 16.375 1.5415 15.4796 1.5415 14.375V5.19498C1.5415 5.1852 1.54169 5.17546 1.54206 5.16577C1.55834 4.31209 2.25546 3.625 3.1131 3.625H16.8869C17.7546 3.625 18.4582 4.32843 18.4583 5.19622C18.4583 5.20225 18.4582 5.20826 18.4582 5.21428Z",fill:"currentColor"})),SvgCalenderLine=ln=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2C8.41421 2 8.75 2.33579 8.75 2.75V3.75H15.25V2.75C15.25 2.33579 15.5858 2 16 2C16.4142 2 16.75 2.33579 16.75 2.75V3.75H18.5C19.7426 3.75 20.75 4.75736 20.75 6V9V19C20.75 20.2426 19.7426 21.25 18.5 21.25H5.5C4.25736 21.25 3.25 20.2426 3.25 19V9V6C3.25 4.75736 4.25736 3.75 5.5 3.75H7.25V2.75C7.25 2.33579 7.58579 2 8 2ZM8 5.25H5.5C5.08579 5.25 4.75 5.58579 4.75 6V8.25H19.25V6C19.25 5.58579 18.9142 5.25 18.5 5.25H16H8ZM19.25 9.75H4.75V19C4.75 19.4142 5.08579 19.75 5.5 19.75H18.5C18.9142 19.75 19.25 19.4142 19.25 19V9.75Z",fill:"currentColor"})),SvgEye=ln=>reactExports.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0002 13.8619C7.23361 13.8619 4.86803 12.1372 3.92328 9.70241C4.86804 7.26761 7.23361 5.54297 10.0002 5.54297C12.7667 5.54297 15.1323 7.26762 16.0771 9.70243C15.1323 12.1372 12.7667 13.8619 10.0002 13.8619ZM10.0002 4.04297C6.48191 4.04297 3.49489 6.30917 2.4155 9.4593C2.3615 9.61687 2.3615 9.78794 2.41549 9.94552C3.49488 13.0957 6.48191 15.3619 10.0002 15.3619C13.5184 15.3619 16.5055 13.0957 17.5849 9.94555C17.6389 9.78797 17.6389 9.6169 17.5849 9.45932C16.5055 6.30919 13.5184 4.04297 10.0002 4.04297ZM9.99151 7.84413C8.96527 7.84413 8.13333 8.67606 8.13333 9.70231C8.13333 10.7286 8.96527 11.5605 9.99151 11.5605H10.0064C11.0326 11.5605 11.8646 10.7286 11.8646 9.70231C11.8646 8.67606 11.0326 7.84413 10.0064 7.84413H9.99151Z"})),SvgEyeClose=ln=>reactExports.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.63803 3.57709C4.34513 3.2842 3.87026 3.2842 3.57737 3.57709C3.28447 3.86999 3.28447 4.34486 3.57737 4.63775L4.85323 5.91362C3.74609 6.84199 2.89363 8.06395 2.4155 9.45936C2.3615 9.61694 2.3615 9.78801 2.41549 9.94558C3.49488 13.0957 6.48191 15.3619 10.0002 15.3619C11.255 15.3619 12.4422 15.0737 13.4994 14.5598L15.3625 16.4229C15.6554 16.7158 16.1302 16.7158 16.4231 16.4229C16.716 16.13 16.716 15.6551 16.4231 15.3622L4.63803 3.57709ZM12.3608 13.4212L10.4475 11.5079C10.3061 11.5423 10.1584 11.5606 10.0064 11.5606H9.99151C8.96527 11.5606 8.13333 10.7286 8.13333 9.70237C8.13333 9.5461 8.15262 9.39434 8.18895 9.24933L5.91885 6.97923C5.03505 7.69015 4.34057 8.62704 3.92328 9.70247C4.86803 12.1373 7.23361 13.8619 10.0002 13.8619C10.8326 13.8619 11.6287 13.7058 12.3608 13.4212ZM16.0771 9.70249C15.7843 10.4569 15.3552 11.1432 14.8199 11.7311L15.8813 12.7925C16.6329 11.9813 17.2187 11.0143 17.5849 9.94561C17.6389 9.78803 17.6389 9.61696 17.5849 9.45938C16.5055 6.30925 13.5184 4.04303 10.0002 4.04303C9.13525 4.04303 8.30244 4.17999 7.52218 4.43338L8.75139 5.66259C9.1556 5.58413 9.57311 5.54303 10.0002 5.54303C12.7667 5.54303 15.1323 7.26768 16.0771 9.70249Z"})),SvgTime=ln=>reactExports.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.04175 9.99984C3.04175 6.15686 6.1571 3.0415 10.0001 3.0415C13.8431 3.0415 16.9584 6.15686 16.9584 9.99984C16.9584 13.8428 13.8431 16.9582 10.0001 16.9582C6.1571 16.9582 3.04175 13.8428 3.04175 9.99984ZM10.0001 1.5415C5.32867 1.5415 1.54175 5.32843 1.54175 9.99984C1.54175 14.6712 5.32867 18.4582 10.0001 18.4582C14.6715 18.4582 18.4584 14.6712 18.4584 9.99984C18.4584 5.32843 14.6715 1.5415 10.0001 1.5415ZM9.99998 10.7498C9.58577 10.7498 9.24998 10.4141 9.24998 9.99984V5.4165C9.24998 5.00229 9.58577 4.6665 9.99998 4.6665C10.4142 4.6665 10.75 5.00229 10.75 5.4165V9.24984H13.3334C13.7476 9.24984 14.0834 9.58562 14.0834 9.99984C14.0834 10.4141 13.7476 10.7498 13.3334 10.7498H10.0001H9.99998Z",fill:"currentColor"})),SvgCopy=ln=>reactExports.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.58822 4.58398C6.58822 4.30784 6.81207 4.08398 7.08822 4.08398H15.4154C15.6915 4.08398 15.9154 4.30784 15.9154 4.58398L15.9154 12.9128C15.9154 13.189 15.6916 13.4128 15.4154 13.4128H7.08821C6.81207 13.4128 6.58822 13.189 6.58822 12.9128V4.58398ZM7.08822 2.58398C5.98365 2.58398 5.08822 3.47942 5.08822 4.58398V5.09416H4.58496C3.48039 5.09416 2.58496 5.98959 2.58496 7.09416V15.4161C2.58496 16.5207 3.48039 17.4161 4.58496 17.4161H12.9069C14.0115 17.4161 14.9069 16.5207 14.9069 15.4161L14.9069 14.9128H15.4154C16.52 14.9128 17.4154 14.0174 17.4154 12.9128L17.4154 4.58398C17.4154 3.47941 16.52 2.58398 15.4154 2.58398H7.08822ZM13.4069 14.9128H7.08821C5.98364 14.9128 5.08822 14.0174 5.08822 12.9128V6.59416H4.58496C4.30882 6.59416 4.08496 6.81801 4.08496 7.09416V15.4161C4.08496 15.6922 4.30882 15.9161 4.58496 15.9161H12.9069C13.183 15.9161 13.4069 15.6922 13.4069 15.4161L13.4069 14.9128Z",fill:"currentColor"})),SvgUserCircle=ln=>reactExports.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 14.1526 4.3002 16.1184 5.61936 17.616C6.17279 15.3096 8.24852 13.5955 10.7246 13.5955H13.2746C15.7509 13.5955 17.8268 15.31 18.38 17.6167C19.6996 16.119 20.5 14.153 20.5 12C20.5 7.30558 16.6944 3.5 12 3.5ZM17.0246 18.8566V18.8455C17.0246 16.7744 15.3457 15.0955 13.2746 15.0955H10.7246C8.65354 15.0955 6.97461 16.7744 6.97461 18.8455V18.856C8.38223 19.8895 10.1198 20.5 12 20.5C13.8798 20.5 15.6171 19.8898 17.0246 18.8566ZM2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM11.9991 7.25C10.8847 7.25 9.98126 8.15342 9.98126 9.26784C9.98126 10.3823 10.8847 11.2857 11.9991 11.2857C13.1135 11.2857 14.0169 10.3823 14.0169 9.26784C14.0169 8.15342 13.1135 7.25 11.9991 7.25ZM8.48126 9.26784C8.48126 7.32499 10.0563 5.75 11.9991 5.75C13.9419 5.75 15.5169 7.32499 15.5169 9.26784C15.5169 11.2107 13.9419 12.7857 11.9991 12.7857C10.0563 12.7857 8.48126 11.2107 8.48126 9.26784Z",fill:"currentColor"})),SvgList=ln=>reactExports.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 3.25C4.25736 3.25 3.25 4.25736 3.25 5.5V18.5C3.25 19.7426 4.25736 20.75 5.5 20.75H18.5001C19.7427 20.75 20.7501 19.7426 20.7501 18.5V5.5C20.7501 4.25736 19.7427 3.25 18.5001 3.25H5.5ZM4.75 5.5C4.75 5.08579 5.08579 4.75 5.5 4.75H18.5001C18.9143 4.75 19.2501 5.08579 19.2501 5.5V18.5C19.2501 18.9142 18.9143 19.25 18.5001 19.25H5.5C5.08579 19.25 4.75 18.9142 4.75 18.5V5.5ZM6.25005 9.7143C6.25005 9.30008 6.58583 8.9643 7.00005 8.9643L17 8.96429C17.4143 8.96429 17.75 9.30008 17.75 9.71429C17.75 10.1285 17.4143 10.4643 17 10.4643L7.00005 10.4643C6.58583 10.4643 6.25005 10.1285 6.25005 9.7143ZM6.25005 14.2857C6.25005 13.8715 6.58583 13.5357 7.00005 13.5357H17C17.4143 13.5357 17.75 13.8715 17.75 14.2857C17.75 14.6999 17.4143 15.0357 17 15.0357H7.00005C6.58583 15.0357 6.25005 14.6999 6.25005 14.2857Z",fill:"currentColor"})),SvgBoxCube=ln=>reactExports.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.665 3.75618C11.8762 3.65061 12.1247 3.65061 12.3358 3.75618L18.7807 6.97853L12.3358 10.2009C12.1247 10.3064 11.8762 10.3064 11.665 10.2009L5.22014 6.97853L11.665 3.75618ZM4.29297 8.19199V16.0946C4.29297 16.3787 4.45347 16.6384 4.70757 16.7654L11.25 20.0365V11.6512C11.1631 11.6205 11.0777 11.5843 10.9942 11.5425L4.29297 8.19199ZM12.75 20.037L19.2933 16.7654C19.5474 16.6384 19.7079 16.3787 19.7079 16.0946V8.19199L13.0066 11.5425C12.9229 11.5844 12.8372 11.6207 12.75 11.6515V20.037ZM13.0066 2.41453C12.3732 2.09783 11.6277 2.09783 10.9942 2.41453L4.03676 5.89316C3.27449 6.27429 2.79297 7.05339 2.79297 7.90563V16.0946C2.79297 16.9468 3.27448 17.7259 4.03676 18.1071L10.9942 21.5857L11.3296 20.9149L10.9942 21.5857C11.6277 21.9024 12.3732 21.9024 13.0066 21.5857L19.9641 18.1071C20.7264 17.7259 21.2079 16.9468 21.2079 16.0946V7.90563C21.2079 7.05339 20.7264 6.27429 19.9641 5.89316L13.0066 2.41453Z",fill:"currentColor"})),SvgMailLine=ln=>reactExports.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 8.187V17.25C3.5 17.6642 3.83579 18 4.25 18H19.75C20.1642 18 20.5 17.6642 20.5 17.25V8.18747L13.2873 13.2171C12.5141 13.7563 11.4866 13.7563 10.7134 13.2171L3.5 8.187ZM20.5 6.2286C20.5 6.23039 20.5 6.23218 20.5 6.23398V6.24336C20.4976 6.31753 20.4604 6.38643 20.3992 6.42905L12.4293 11.9867C12.1716 12.1664 11.8291 12.1664 11.5713 11.9867L3.60116 6.42885C3.538 6.38481 3.50035 6.31268 3.50032 6.23568C3.50028 6.10553 3.60577 6 3.73592 6H20.2644C20.3922 6 20.4963 6.10171 20.5 6.2286ZM22 6.25648V17.25C22 18.4926 20.9926 19.5 19.75 19.5H4.25C3.00736 19.5 2 18.4926 2 17.25V6.23398C2 6.22371 2.00021 6.2135 2.00061 6.20333C2.01781 5.25971 2.78812 4.5 3.73592 4.5H20.2644C21.2229 4.5 22 5.27697 22.0001 6.23549C22.0001 6.24249 22.0001 6.24949 22 6.25648Z",fill:"currentColor"})),SvgHorizontalDots=ln=>reactExports.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99915 10.2451C6.96564 10.2451 7.74915 11.0286 7.74915 11.9951V12.0051C7.74915 12.9716 6.96564 13.7551 5.99915 13.7551C5.03265 13.7551 4.24915 12.9716 4.24915 12.0051V11.9951C4.24915 11.0286 5.03265 10.2451 5.99915 10.2451ZM17.9991 10.2451C18.9656 10.2451 19.7491 11.0286 19.7491 11.9951V12.0051C19.7491 12.9716 18.9656 13.7551 17.9991 13.7551C17.0326 13.7551 16.2491 12.9716 16.2491 12.0051V11.9951C16.2491 11.0286 17.0326 10.2451 17.9991 10.2451ZM13.7491 11.9951C13.7491 11.0286 12.9656 10.2451 11.9991 10.2451C11.0326 10.2451 10.2491 11.0286 10.2491 11.9951V12.0051C10.2491 12.9716 11.0326 13.7551 11.9991 13.7551C12.9656 13.7551 13.7491 12.9716 13.7491 12.0051V11.9951Z",fill:"currentColor"})),SvgMoredot=ln=>reactExports.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ln},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2441 6C10.2441 5.0335 11.0276 4.25 11.9941 4.25H12.0041C12.9706 4.25 13.7541 5.0335 13.7541 6C13.7541 6.9665 12.9706 7.75 12.0041 7.75H11.9941C11.0276 7.75 10.2441 6.9665 10.2441 6ZM10.2441 18C10.2441 17.0335 11.0276 16.25 11.9941 16.25H12.0041C12.9706 16.25 13.7541 17.0335 13.7541 18C13.7541 18.9665 12.9706 19.75 12.0041 19.75H11.9941C11.0276 19.75 10.2441 18.9665 10.2441 18ZM11.9941 10.25C11.0276 10.25 10.2441 11.0335 10.2441 12C10.2441 12.9665 11.0276 13.75 11.9941 13.75H12.0041C12.9706 13.75 13.7541 12.9665 13.7541 12C13.7541 11.0335 12.9706 10.25 12.0041 10.25H11.9941Z",fill:"currentColor"})),CLASS_PART_SEPARATOR="-",createClassGroupUtils=ln=>{const rn=createClassMap(ln),{conflictingClassGroups:an,conflictingClassGroupModifiers:sn}=ln;return{getClassGroupId:un=>{const pn=un.split(CLASS_PART_SEPARATOR);return pn[0]===""&&pn.length!==1&&pn.shift(),getGroupRecursive(pn,rn)||getGroupIdForArbitraryProperty(un)},getConflictingClassGroupIds:(un,pn)=>{const fn=an[un]||[];return pn&&sn[un]?[...fn,...sn[un]]:fn}}},getGroupRecursive=(ln,rn)=>{var un;if(ln.length===0)return rn.classGroupId;const an=ln[0],sn=rn.nextPart.get(an),on=sn?getGroupRecursive(ln.slice(1),sn):void 0;if(on)return on;if(rn.validators.length===0)return;const cn=ln.join(CLASS_PART_SEPARATOR);return(un=rn.validators.find(({validator:pn})=>pn(cn)))==null?void 0:un.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=ln=>{if(arbitraryPropertyRegex.test(ln)){const rn=arbitraryPropertyRegex.exec(ln)[1],an=rn==null?void 0:rn.substring(0,rn.indexOf(":"));if(an)return"arbitrary.."+an}},createClassMap=ln=>{const{theme:rn,classGroups:an}=ln,sn={nextPart:new Map,validators:[]};for(const on in an)processClassesRecursively(an[on],sn,on,rn);return sn},processClassesRecursively=(ln,rn,an,sn)=>{ln.forEach(on=>{if(typeof on=="string"){const cn=on===""?rn:getPart(rn,on);cn.classGroupId=an;return}if(typeof on=="function"){if(isThemeGetter(on)){processClassesRecursively(on(sn),rn,an,sn);return}rn.validators.push({validator:on,classGroupId:an});return}Object.entries(on).forEach(([cn,un])=>{processClassesRecursively(un,getPart(rn,cn),an,sn)})})},getPart=(ln,rn)=>{let an=ln;return rn.split(CLASS_PART_SEPARATOR).forEach(sn=>{an.nextPart.has(sn)||an.nextPart.set(sn,{nextPart:new Map,validators:[]}),an=an.nextPart.get(sn)}),an},isThemeGetter=ln=>ln.isThemeGetter,createLruCache=ln=>{if(ln<1)return{get:()=>{},set:()=>{}};let rn=0,an=new Map,sn=new Map;const on=(cn,un)=>{an.set(cn,un),rn++,rn>ln&&(rn=0,sn=an,an=new Map)};return{get(cn){let un=an.get(cn);if(un!==void 0)return un;if((un=sn.get(cn))!==void 0)return on(cn,un),un},set(cn,un){an.has(cn)?an.set(cn,un):on(cn,un)}}},IMPORTANT_MODIFIER="!",MODIFIER_SEPARATOR=":",MODIFIER_SEPARATOR_LENGTH=MODIFIER_SEPARATOR.length,createParseClassName=ln=>{const{prefix:rn,experimentalParseClassName:an}=ln;let sn=on=>{const cn=[];let un=0,pn=0,fn=0,mn;for(let An=0;An<on.length;An++){let Cn=on[An];if(un===0&&pn===0){if(Cn===MODIFIER_SEPARATOR){cn.push(on.slice(fn,An)),fn=An+MODIFIER_SEPARATOR_LENGTH;continue}if(Cn==="/"){mn=An;continue}}Cn==="["?un++:Cn==="]"?un--:Cn==="("?pn++:Cn===")"&&pn--}const xn=cn.length===0?on:on.substring(fn),vn=stripImportantModifier(xn),yn=vn!==xn,wn=mn&&mn>fn?mn-fn:void 0;return{modifiers:cn,hasImportantModifier:yn,baseClassName:vn,maybePostfixModifierPosition:wn}};if(rn){const on=rn+MODIFIER_SEPARATOR,cn=sn;sn=un=>un.startsWith(on)?cn(un.substring(on.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:un,maybePostfixModifierPosition:void 0}}if(an){const on=sn;sn=cn=>an({className:cn,parseClassName:on})}return sn},stripImportantModifier=ln=>ln.endsWith(IMPORTANT_MODIFIER)?ln.substring(0,ln.length-1):ln.startsWith(IMPORTANT_MODIFIER)?ln.substring(1):ln,createSortModifiers=ln=>{const rn=Object.fromEntries(ln.orderSensitiveModifiers.map(sn=>[sn,!0]));return sn=>{if(sn.length<=1)return sn;const on=[];let cn=[];return sn.forEach(un=>{un[0]==="["||rn[un]?(on.push(...cn.sort(),un),cn=[]):cn.push(un)}),on.push(...cn.sort()),on}},createConfigUtils=ln=>({cache:createLruCache(ln.cacheSize),parseClassName:createParseClassName(ln),sortModifiers:createSortModifiers(ln),...createClassGroupUtils(ln)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(ln,rn)=>{const{parseClassName:an,getClassGroupId:sn,getConflictingClassGroupIds:on,sortModifiers:cn}=rn,un=[],pn=ln.trim().split(SPLIT_CLASSES_REGEX);let fn="";for(let mn=pn.length-1;mn>=0;mn-=1){const xn=pn[mn],{isExternal:vn,modifiers:yn,hasImportantModifier:wn,baseClassName:An,maybePostfixModifierPosition:Cn}=an(xn);if(vn){fn=xn+(fn.length>0?" "+fn:fn);continue}let kn=!!Cn,Mn=sn(kn?An.substring(0,Cn):An);if(!Mn){if(!kn){fn=xn+(fn.length>0?" "+fn:fn);continue}if(Mn=sn(An),!Mn){fn=xn+(fn.length>0?" "+fn:fn);continue}kn=!1}const Tn=cn(yn).join(":"),On=wn?Tn+IMPORTANT_MODIFIER:Tn,Pn=On+Mn;if(un.includes(Pn))continue;un.push(Pn);const Nn=on(Mn,kn);for(let In=0;In<Nn.length;++In){const jn=Nn[In];un.push(On+jn)}fn=xn+(fn.length>0?" "+fn:fn)}return fn};function twJoin(){let ln=0,rn,an,sn="";for(;ln<arguments.length;)(rn=arguments[ln++])&&(an=toValue(rn))&&(sn&&(sn+=" "),sn+=an);return sn}const toValue=ln=>{if(typeof ln=="string")return ln;let rn,an="";for(let sn=0;sn<ln.length;sn++)ln[sn]&&(rn=toValue(ln[sn]))&&(an&&(an+=" "),an+=rn);return an};function createTailwindMerge(ln,...rn){let an,sn,on,cn=un;function un(fn){const mn=rn.reduce((xn,vn)=>vn(xn),ln());return an=createConfigUtils(mn),sn=an.cache.get,on=an.cache.set,cn=pn,pn(fn)}function pn(fn){const mn=sn(fn);if(mn)return mn;const xn=mergeClassList(fn,an);return on(fn,xn),xn}return function(){return cn(twJoin.apply(null,arguments))}}const fromTheme=ln=>{const rn=an=>an[ln]||[];return rn.isThemeGetter=!0,rn},arbitraryValueRegex=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,arbitraryVariableRegex=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fractionRegex=/^\d+\/\d+$/,tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isFraction=ln=>fractionRegex.test(ln),isNumber$1=ln=>!!ln&&!Number.isNaN(Number(ln)),isInteger=ln=>!!ln&&Number.isInteger(Number(ln)),isPercent=ln=>ln.endsWith("%")&&isNumber$1(ln.slice(0,-1)),isTshirtSize=ln=>tshirtUnitRegex.test(ln),isAny=()=>!0,isLengthOnly=ln=>lengthUnitRegex.test(ln)&&!colorFunctionRegex.test(ln),isNever=()=>!1,isShadow=ln=>shadowRegex.test(ln),isImage=ln=>imageRegex.test(ln),isAnyNonArbitrary=ln=>!isArbitraryValue(ln)&&!isArbitraryVariable(ln),isArbitrarySize=ln=>getIsArbitraryValue(ln,isLabelSize,isNever),isArbitraryValue=ln=>arbitraryValueRegex.test(ln),isArbitraryLength=ln=>getIsArbitraryValue(ln,isLabelLength,isLengthOnly),isArbitraryNumber=ln=>getIsArbitraryValue(ln,isLabelNumber,isNumber$1),isArbitraryPosition=ln=>getIsArbitraryValue(ln,isLabelPosition,isNever),isArbitraryImage=ln=>getIsArbitraryValue(ln,isLabelImage,isImage),isArbitraryShadow=ln=>getIsArbitraryValue(ln,isNever,isShadow),isArbitraryVariable=ln=>arbitraryVariableRegex.test(ln),isArbitraryVariableLength=ln=>getIsArbitraryVariable(ln,isLabelLength),isArbitraryVariableFamilyName=ln=>getIsArbitraryVariable(ln,isLabelFamilyName),isArbitraryVariablePosition=ln=>getIsArbitraryVariable(ln,isLabelPosition),isArbitraryVariableSize=ln=>getIsArbitraryVariable(ln,isLabelSize),isArbitraryVariableImage=ln=>getIsArbitraryVariable(ln,isLabelImage),isArbitraryVariableShadow=ln=>getIsArbitraryVariable(ln,isLabelShadow,!0),getIsArbitraryValue=(ln,rn,an)=>{const sn=arbitraryValueRegex.exec(ln);return sn?sn[1]?rn(sn[1]):an(sn[2]):!1},getIsArbitraryVariable=(ln,rn,an=!1)=>{const sn=arbitraryVariableRegex.exec(ln);return sn?sn[1]?rn(sn[1]):an:!1},isLabelPosition=ln=>ln==="position",imageLabels=new Set(["image","url"]),isLabelImage=ln=>imageLabels.has(ln),sizeLabels=new Set(["length","size","percentage"]),isLabelSize=ln=>sizeLabels.has(ln),isLabelLength=ln=>ln==="length",isLabelNumber=ln=>ln==="number",isLabelFamilyName=ln=>ln==="family-name",isLabelShadow=ln=>ln==="shadow",getDefaultConfig=()=>{const ln=fromTheme("color"),rn=fromTheme("font"),an=fromTheme("text"),sn=fromTheme("font-weight"),on=fromTheme("tracking"),cn=fromTheme("leading"),un=fromTheme("breakpoint"),pn=fromTheme("container"),fn=fromTheme("spacing"),mn=fromTheme("radius"),xn=fromTheme("shadow"),vn=fromTheme("inset-shadow"),yn=fromTheme("drop-shadow"),wn=fromTheme("blur"),An=fromTheme("perspective"),Cn=fromTheme("aspect"),kn=fromTheme("ease"),Mn=fromTheme("animate"),Tn=()=>["auto","avoid","all","avoid-page","page","left","right","column"],On=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Pn=()=>["auto","hidden","clip","visible","scroll"],Nn=()=>["auto","contain","none"],In=()=>[isFraction,"px","full","auto",isArbitraryVariable,isArbitraryValue,fn],jn=()=>[isInteger,"none","subgrid",isArbitraryVariable,isArbitraryValue],Fn=()=>["auto",{span:["full",isInteger,isArbitraryVariable,isArbitraryValue]},isArbitraryVariable,isArbitraryValue],Un=()=>[isInteger,"auto",isArbitraryVariable,isArbitraryValue],Yn=()=>["auto","min","max","fr",isArbitraryVariable,isArbitraryValue],Qn=()=>[isArbitraryVariable,isArbitraryValue,fn],ir=()=>["start","end","center","between","around","evenly","stretch","baseline"],er=()=>["start","end","center","stretch"],tr=()=>[isArbitraryVariable,isArbitraryValue,fn],vr=()=>["px",...tr()],rr=()=>["px","auto",...tr()],fr=()=>[isFraction,"auto","px","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",isArbitraryVariable,isArbitraryValue,fn],ur=()=>[ln,isArbitraryVariable,isArbitraryValue],wr=()=>[isPercent,isArbitraryLength],Xn=()=>["","none","full",mn,isArbitraryVariable,isArbitraryValue],cr=()=>["",isNumber$1,isArbitraryVariableLength,isArbitraryLength],_r=()=>["solid","dashed","dotted","double"],Nr=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Er=()=>["","none",wn,isArbitraryVariable,isArbitraryValue],Fr=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryVariable,isArbitraryValue],Tr=()=>["none",isNumber$1,isArbitraryVariable,isArbitraryValue],Vr=()=>["none",isNumber$1,isArbitraryVariable,isArbitraryValue],Pr=()=>[isNumber$1,isArbitraryVariable,isArbitraryValue],Xr=()=>[isFraction,"full","px",isArbitraryVariable,isArbitraryValue,fn];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[isTshirtSize],breakpoint:[isTshirtSize],color:[isAny],container:[isTshirtSize],"drop-shadow":[isTshirtSize],ease:["in","out","in-out"],font:[isAnyNonArbitrary],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[isTshirtSize],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[isTshirtSize],shadow:[isTshirtSize],spacing:[isNumber$1],text:[isTshirtSize],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",isFraction,isArbitraryValue,isArbitraryVariable,Cn]}],container:["container"],columns:[{columns:[isNumber$1,isArbitraryValue,isArbitraryVariable,pn]}],"break-after":[{"break-after":Tn()}],"break-before":[{"break-before":Tn()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...On(),isArbitraryValue,isArbitraryVariable]}],overflow:[{overflow:Pn()}],"overflow-x":[{"overflow-x":Pn()}],"overflow-y":[{"overflow-y":Pn()}],overscroll:[{overscroll:Nn()}],"overscroll-x":[{"overscroll-x":Nn()}],"overscroll-y":[{"overscroll-y":Nn()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:In()}],"inset-x":[{"inset-x":In()}],"inset-y":[{"inset-y":In()}],start:[{start:In()}],end:[{end:In()}],top:[{top:In()}],right:[{right:In()}],bottom:[{bottom:In()}],left:[{left:In()}],visibility:["visible","invisible","collapse"],z:[{z:[isInteger,"auto",isArbitraryVariable,isArbitraryValue]}],basis:[{basis:[isFraction,"full","auto",isArbitraryVariable,isArbitraryValue,pn,fn]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[isNumber$1,isFraction,"auto","initial","none",isArbitraryValue]}],grow:[{grow:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],shrink:[{shrink:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],order:[{order:[isInteger,"first","last","none",isArbitraryVariable,isArbitraryValue]}],"grid-cols":[{"grid-cols":jn()}],"col-start-end":[{col:Fn()}],"col-start":[{"col-start":Un()}],"col-end":[{"col-end":Un()}],"grid-rows":[{"grid-rows":jn()}],"row-start-end":[{row:Fn()}],"row-start":[{"row-start":Un()}],"row-end":[{"row-end":Un()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Yn()}],"auto-rows":[{"auto-rows":Yn()}],gap:[{gap:Qn()}],"gap-x":[{"gap-x":Qn()}],"gap-y":[{"gap-y":Qn()}],"justify-content":[{justify:[...ir(),"normal"]}],"justify-items":[{"justify-items":[...er(),"normal"]}],"justify-self":[{"justify-self":["auto",...er()]}],"align-content":[{content:["normal",...ir()]}],"align-items":[{items:[...er(),"baseline"]}],"align-self":[{self:["auto",...er(),"baseline"]}],"place-content":[{"place-content":ir()}],"place-items":[{"place-items":[...er(),"baseline"]}],"place-self":[{"place-self":["auto",...er()]}],p:[{p:vr()}],px:[{px:vr()}],py:[{py:vr()}],ps:[{ps:vr()}],pe:[{pe:vr()}],pt:[{pt:vr()}],pr:[{pr:vr()}],pb:[{pb:vr()}],pl:[{pl:vr()}],m:[{m:rr()}],mx:[{mx:rr()}],my:[{my:rr()}],ms:[{ms:rr()}],me:[{me:rr()}],mt:[{mt:rr()}],mr:[{mr:rr()}],mb:[{mb:rr()}],ml:[{ml:rr()}],"space-x":[{"space-x":tr()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":tr()}],"space-y-reverse":["space-y-reverse"],size:[{size:fr()}],w:[{w:[pn,"screen",...fr()]}],"min-w":[{"min-w":[pn,"screen","none",...fr()]}],"max-w":[{"max-w":[pn,"screen","none","prose",{screen:[un]},...fr()]}],h:[{h:["screen",...fr()]}],"min-h":[{"min-h":["screen","none",...fr()]}],"max-h":[{"max-h":["screen",...fr()]}],"font-size":[{text:["base",an,isArbitraryVariableLength,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[sn,isArbitraryVariable,isArbitraryNumber]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",isPercent,isArbitraryValue]}],"font-family":[{font:[isArbitraryVariableFamilyName,isArbitraryValue,rn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[on,isArbitraryVariable,isArbitraryValue]}],"line-clamp":[{"line-clamp":[isNumber$1,"none",isArbitraryVariable,isArbitraryNumber]}],leading:[{leading:[isArbitraryVariable,isArbitraryValue,cn,fn]}],"list-image":[{"list-image":["none",isArbitraryVariable,isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",isArbitraryVariable,isArbitraryValue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ur()}],"text-color":[{text:ur()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._r(),"wavy"]}],"text-decoration-thickness":[{decoration:[isNumber$1,"from-font","auto",isArbitraryVariable,isArbitraryLength]}],"text-decoration-color":[{decoration:ur()}],"underline-offset":[{"underline-offset":[isNumber$1,"auto",isArbitraryVariable,isArbitraryValue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:["px",...tr()]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryVariable,isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryVariable,isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...On(),isArbitraryVariablePosition,isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitraryVariableSize,isArbitrarySize]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},isInteger,isArbitraryVariable,isArbitraryValue],radial:["",isArbitraryVariable,isArbitraryValue],conic:[isInteger,isArbitraryVariable,isArbitraryValue]},isArbitraryVariableImage,isArbitraryImage]}],"bg-color":[{bg:ur()}],"gradient-from-pos":[{from:wr()}],"gradient-via-pos":[{via:wr()}],"gradient-to-pos":[{to:wr()}],"gradient-from":[{from:ur()}],"gradient-via":[{via:ur()}],"gradient-to":[{to:ur()}],rounded:[{rounded:Xn()}],"rounded-s":[{"rounded-s":Xn()}],"rounded-e":[{"rounded-e":Xn()}],"rounded-t":[{"rounded-t":Xn()}],"rounded-r":[{"rounded-r":Xn()}],"rounded-b":[{"rounded-b":Xn()}],"rounded-l":[{"rounded-l":Xn()}],"rounded-ss":[{"rounded-ss":Xn()}],"rounded-se":[{"rounded-se":Xn()}],"rounded-ee":[{"rounded-ee":Xn()}],"rounded-es":[{"rounded-es":Xn()}],"rounded-tl":[{"rounded-tl":Xn()}],"rounded-tr":[{"rounded-tr":Xn()}],"rounded-br":[{"rounded-br":Xn()}],"rounded-bl":[{"rounded-bl":Xn()}],"border-w":[{border:cr()}],"border-w-x":[{"border-x":cr()}],"border-w-y":[{"border-y":cr()}],"border-w-s":[{"border-s":cr()}],"border-w-e":[{"border-e":cr()}],"border-w-t":[{"border-t":cr()}],"border-w-r":[{"border-r":cr()}],"border-w-b":[{"border-b":cr()}],"border-w-l":[{"border-l":cr()}],"divide-x":[{"divide-x":cr()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":cr()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._r(),"hidden","none"]}],"divide-style":[{divide:[..._r(),"hidden","none"]}],"border-color":[{border:ur()}],"border-color-x":[{"border-x":ur()}],"border-color-y":[{"border-y":ur()}],"border-color-s":[{"border-s":ur()}],"border-color-e":[{"border-e":ur()}],"border-color-t":[{"border-t":ur()}],"border-color-r":[{"border-r":ur()}],"border-color-b":[{"border-b":ur()}],"border-color-l":[{"border-l":ur()}],"divide-color":[{divide:ur()}],"outline-style":[{outline:[..._r(),"none","hidden"]}],"outline-offset":[{"outline-offset":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"outline-w":[{outline:["",isNumber$1,isArbitraryVariableLength,isArbitraryLength]}],"outline-color":[{outline:[ln]}],shadow:[{shadow:["","none",xn,isArbitraryVariableShadow,isArbitraryShadow]}],"shadow-color":[{shadow:ur()}],"inset-shadow":[{"inset-shadow":["none",isArbitraryVariable,isArbitraryValue,vn]}],"inset-shadow-color":[{"inset-shadow":ur()}],"ring-w":[{ring:cr()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ur()}],"ring-offset-w":[{"ring-offset":[isNumber$1,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":ur()}],"inset-ring-w":[{"inset-ring":cr()}],"inset-ring-color":[{"inset-ring":ur()}],opacity:[{opacity:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"mix-blend":[{"mix-blend":[...Nr(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Nr()}],filter:[{filter:["","none",isArbitraryVariable,isArbitraryValue]}],blur:[{blur:Er()}],brightness:[{brightness:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],contrast:[{contrast:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"drop-shadow":[{"drop-shadow":["","none",yn,isArbitraryVariable,isArbitraryValue]}],grayscale:[{grayscale:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"hue-rotate":[{"hue-rotate":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],invert:[{invert:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],saturate:[{saturate:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],sepia:[{sepia:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-filter":[{"backdrop-filter":["","none",isArbitraryVariable,isArbitraryValue]}],"backdrop-blur":[{"backdrop-blur":Er()}],"backdrop-brightness":[{"backdrop-brightness":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-contrast":[{"backdrop-contrast":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-invert":[{"backdrop-invert":["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-opacity":[{"backdrop-opacity":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-saturate":[{"backdrop-saturate":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-sepia":[{"backdrop-sepia":["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":tr()}],"border-spacing-x":[{"border-spacing-x":tr()}],"border-spacing-y":[{"border-spacing-y":tr()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",isArbitraryVariable,isArbitraryValue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[isNumber$1,"initial",isArbitraryVariable,isArbitraryValue]}],ease:[{ease:["linear","initial",kn,isArbitraryVariable,isArbitraryValue]}],delay:[{delay:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],animate:[{animate:["none",Mn,isArbitraryVariable,isArbitraryValue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[An,isArbitraryVariable,isArbitraryValue]}],"perspective-origin":[{"perspective-origin":Fr()}],rotate:[{rotate:Tr()}],"rotate-x":[{"rotate-x":Tr()}],"rotate-y":[{"rotate-y":Tr()}],"rotate-z":[{"rotate-z":Tr()}],scale:[{scale:Vr()}],"scale-x":[{"scale-x":Vr()}],"scale-y":[{"scale-y":Vr()}],"scale-z":[{"scale-z":Vr()}],"scale-3d":["scale-3d"],skew:[{skew:Pr()}],"skew-x":[{"skew-x":Pr()}],"skew-y":[{"skew-y":Pr()}],transform:[{transform:[isArbitraryVariable,isArbitraryValue,"","none","gpu","cpu"]}],"transform-origin":[{origin:Fr()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Xr()}],"translate-x":[{"translate-x":Xr()}],"translate-y":[{"translate-y":Xr()}],"translate-z":[{"translate-z":Xr()}],"translate-none":["translate-none"],accent:[{accent:ur()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ur()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryVariable,isArbitraryValue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":tr()}],"scroll-mx":[{"scroll-mx":tr()}],"scroll-my":[{"scroll-my":tr()}],"scroll-ms":[{"scroll-ms":tr()}],"scroll-me":[{"scroll-me":tr()}],"scroll-mt":[{"scroll-mt":tr()}],"scroll-mr":[{"scroll-mr":tr()}],"scroll-mb":[{"scroll-mb":tr()}],"scroll-ml":[{"scroll-ml":tr()}],"scroll-p":[{"scroll-p":tr()}],"scroll-px":[{"scroll-px":tr()}],"scroll-py":[{"scroll-py":tr()}],"scroll-ps":[{"scroll-ps":tr()}],"scroll-pe":[{"scroll-pe":tr()}],"scroll-pt":[{"scroll-pt":tr()}],"scroll-pr":[{"scroll-pr":tr()}],"scroll-pb":[{"scroll-pb":tr()}],"scroll-pl":[{"scroll-pl":tr()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryVariable,isArbitraryValue]}],fill:[{fill:["none",...ur()]}],"stroke-w":[{stroke:[isNumber$1,isArbitraryVariableLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:["none",...ur()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},twMerge=createTailwindMerge(getDefaultConfig);function r$3(ln){var rn,an,sn="";if(typeof ln=="string"||typeof ln=="number")sn+=ln;else if(typeof ln=="object")if(Array.isArray(ln)){var on=ln.length;for(rn=0;rn<on;rn++)ln[rn]&&(an=r$3(ln[rn]))&&(sn&&(sn+=" "),sn+=an)}else for(an in ln)ln[an]&&(sn&&(sn+=" "),sn+=an);return sn}function clsx(){for(var ln,rn,an=0,sn="",on=arguments.length;an<on;an++)(ln=arguments[an])&&(rn=r$3(ln))&&(sn&&(sn+=" "),sn+=rn);return sn}const Label=({htmlFor:ln,children:rn,className:an})=>jsxRuntimeExports.jsx("label",{htmlFor:ln,className:clsx(twMerge("mb-1.5 block text-sm font-medium text-gray-700 dark:text-gray-400",an)),children:rn}),Input=({type:ln="text",id:rn,name:an,placeholder:sn,value:on,onChange:cn,className:un="",min:pn,max:fn,step:mn,disabled:xn=!1,success:vn=!1,error:yn=!1,hint:wn})=>{let An=` h-11 w-full rounded-lg border appearance-none px-4 py-2.5 text-sm shadow-theme-xs placeholder:text-gray-400 focus:outline-hidden focus:ring-3  dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30 ${un}`;return xn?An+=" text-gray-500 border-gray-300 opacity-40 bg-gray-100 cursor-not-allowed dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700 opacity-40":yn?An+="  border-error-500 focus:border-error-300 focus:ring-error-500/20 dark:text-error-400 dark:border-error-500 dark:focus:border-error-800":vn?An+="  border-success-500 focus:border-success-300 focus:ring-success-500/20 dark:text-success-400 dark:border-success-500 dark:focus:border-success-800":An+=" bg-transparent text-gray-800 border-gray-300 focus:border-brand-300 focus:ring-brand-500/20 dark:border-gray-700 dark:text-white/90  dark:focus:border-brand-800",jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("input",{type:ln,id:rn,name:an,placeholder:sn,value:on,onChange:cn,min:pn,max:fn,step:mn,disabled:xn,className:An}),wn&&jsxRuntimeExports.jsx("p",{className:`mt-1.5 text-xs ${yn?"text-error-500":vn?"text-success-500":"text-gray-500"}`,children:wn})]})},Checkbox=({label:ln,checked:rn,id:an,onChange:sn,className:on="",disabled:cn=!1})=>jsxRuntimeExports.jsxs("label",{className:`flex items-center space-x-3 group cursor-pointer ${cn?"cursor-not-allowed opacity-60":""}`,children:[jsxRuntimeExports.jsxs("div",{className:"relative w-5 h-5",children:[jsxRuntimeExports.jsx("input",{id:an,type:"checkbox",className:`w-5 h-5 appearance-none cursor-pointer dark:border-gray-700 border border-gray-300 checked:border-transparent rounded-md checked:bg-brand-500 disabled:opacity-60 
          ${on}`,checked:rn,onChange:un=>sn(un.target.checked),disabled:cn}),rn&&jsxRuntimeExports.jsx("svg",{className:"absolute transform -translate-x-1/2 -translate-y-1/2 pointer-events-none top-1/2 left-1/2",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:jsxRuntimeExports.jsx("path",{d:"M11.6666 3.5L5.24992 9.91667L2.33325 7",stroke:"white",strokeWidth:"1.94437",strokeLinecap:"round",strokeLinejoin:"round"})}),cn&&jsxRuntimeExports.jsx("svg",{className:"absolute transform -translate-x-1/2 -translate-y-1/2 pointer-events-none top-1/2 left-1/2",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:jsxRuntimeExports.jsx("path",{d:"M11.6666 3.5L5.24992 9.91667L2.33325 7",stroke:"#E4E7EC",strokeWidth:"2.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]}),ln&&jsxRuntimeExports.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-gray-200",children:ln})]});function bind(ln,rn){return function(){return ln.apply(rn,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,{iterator,toStringTag}=Symbol,kindOf=(ln=>rn=>{const an=toString.call(rn);return ln[an]||(ln[an]=an.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=ln=>(ln=ln.toLowerCase(),rn=>kindOf(rn)===ln),typeOfTest=ln=>rn=>typeof rn===ln,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(ln){return ln!==null&&!isUndefined(ln)&&ln.constructor!==null&&!isUndefined(ln.constructor)&&isFunction$1(ln.constructor.isBuffer)&&ln.constructor.isBuffer(ln)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(ln){let rn;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?rn=ArrayBuffer.isView(ln):rn=ln&&ln.buffer&&isArrayBuffer(ln.buffer),rn}const isString=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber=typeOfTest("number"),isObject$1=ln=>ln!==null&&typeof ln=="object",isBoolean=ln=>ln===!0||ln===!1,isPlainObject=ln=>{if(kindOf(ln)!=="object")return!1;const rn=getPrototypeOf(ln);return(rn===null||rn===Object.prototype||Object.getPrototypeOf(rn)===null)&&!(toStringTag in ln)&&!(iterator in ln)},isEmptyObject=ln=>{if(!isObject$1(ln)||isBuffer(ln))return!1;try{return Object.keys(ln).length===0&&Object.getPrototypeOf(ln)===Object.prototype}catch{return!1}},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=ln=>isObject$1(ln)&&isFunction$1(ln.pipe),isFormData=ln=>{let rn;return ln&&(typeof FormData=="function"&&ln instanceof FormData||isFunction$1(ln.append)&&((rn=kindOf(ln))==="formdata"||rn==="object"&&isFunction$1(ln.toString)&&ln.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=ln=>ln.trim?ln.trim():ln.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(ln,rn,{allOwnKeys:an=!1}={}){if(ln===null||typeof ln>"u")return;let sn,on;if(typeof ln!="object"&&(ln=[ln]),isArray(ln))for(sn=0,on=ln.length;sn<on;sn++)rn.call(null,ln[sn],sn,ln);else{if(isBuffer(ln))return;const cn=an?Object.getOwnPropertyNames(ln):Object.keys(ln),un=cn.length;let pn;for(sn=0;sn<un;sn++)pn=cn[sn],rn.call(null,ln[pn],pn,ln)}}function findKey(ln,rn){if(isBuffer(ln))return null;rn=rn.toLowerCase();const an=Object.keys(ln);let sn=an.length,on;for(;sn-- >0;)if(on=an[sn],rn===on.toLowerCase())return on;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=ln=>!isUndefined(ln)&&ln!==_global;function merge(){const{caseless:ln,skipUndefined:rn}=isContextDefined(this)&&this||{},an={},sn=(on,cn)=>{const un=ln&&findKey(an,cn)||cn;isPlainObject(an[un])&&isPlainObject(on)?an[un]=merge(an[un],on):isPlainObject(on)?an[un]=merge({},on):isArray(on)?an[un]=on.slice():(!rn||!isUndefined(on))&&(an[un]=on)};for(let on=0,cn=arguments.length;on<cn;on++)arguments[on]&&forEach(arguments[on],sn);return an}const extend=(ln,rn,an,{allOwnKeys:sn}={})=>(forEach(rn,(on,cn)=>{an&&isFunction$1(on)?Object.defineProperty(ln,cn,{value:bind(on,an),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(ln,cn,{value:on,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:sn}),ln),stripBOM=ln=>(ln.charCodeAt(0)===65279&&(ln=ln.slice(1)),ln),inherits=(ln,rn,an,sn)=>{ln.prototype=Object.create(rn.prototype,sn),Object.defineProperty(ln.prototype,"constructor",{value:ln,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(ln,"super",{value:rn.prototype}),an&&Object.assign(ln.prototype,an)},toFlatObject=(ln,rn,an,sn)=>{let on,cn,un;const pn={};if(rn=rn||{},ln==null)return rn;do{for(on=Object.getOwnPropertyNames(ln),cn=on.length;cn-- >0;)un=on[cn],(!sn||sn(un,ln,rn))&&!pn[un]&&(rn[un]=ln[un],pn[un]=!0);ln=an!==!1&&getPrototypeOf(ln)}while(ln&&(!an||an(ln,rn))&&ln!==Object.prototype);return rn},endsWith=(ln,rn,an)=>{ln=String(ln),(an===void 0||an>ln.length)&&(an=ln.length),an-=rn.length;const sn=ln.indexOf(rn,an);return sn!==-1&&sn===an},toArray=ln=>{if(!ln)return null;if(isArray(ln))return ln;let rn=ln.length;if(!isNumber(rn))return null;const an=new Array(rn);for(;rn-- >0;)an[rn]=ln[rn];return an},isTypedArray=(ln=>rn=>ln&&rn instanceof ln)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(ln,rn)=>{const sn=(ln&&ln[iterator]).call(ln);let on;for(;(on=sn.next())&&!on.done;){const cn=on.value;rn.call(ln,cn[0],cn[1])}},matchAll=(ln,rn)=>{let an;const sn=[];for(;(an=ln.exec(rn))!==null;)sn.push(an);return sn},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=ln=>ln.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(an,sn,on){return sn.toUpperCase()+on}),hasOwnProperty$1=(({hasOwnProperty:ln})=>(rn,an)=>ln.call(rn,an))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(ln,rn)=>{const an=Object.getOwnPropertyDescriptors(ln),sn={};forEach(an,(on,cn)=>{let un;(un=rn(on,cn,ln))!==!1&&(sn[cn]=un||on)}),Object.defineProperties(ln,sn)},freezeMethods=ln=>{reduceDescriptors(ln,(rn,an)=>{if(isFunction$1(ln)&&["arguments","caller","callee"].indexOf(an)!==-1)return!1;const sn=ln[an];if(isFunction$1(sn)){if(rn.enumerable=!1,"writable"in rn){rn.writable=!1;return}rn.set||(rn.set=()=>{throw Error("Can not rewrite read-only method '"+an+"'")})}})},toObjectSet=(ln,rn)=>{const an={},sn=on=>{on.forEach(cn=>{an[cn]=!0})};return isArray(ln)?sn(ln):sn(String(ln).split(rn)),an},noop$1=()=>{},toFiniteNumber=(ln,rn)=>ln!=null&&Number.isFinite(ln=+ln)?ln:rn;function isSpecCompliantForm(ln){return!!(ln&&isFunction$1(ln.append)&&ln[toStringTag]==="FormData"&&ln[iterator])}const toJSONObject=ln=>{const rn=new Array(10),an=(sn,on)=>{if(isObject$1(sn)){if(rn.indexOf(sn)>=0)return;if(isBuffer(sn))return sn;if(!("toJSON"in sn)){rn[on]=sn;const cn=isArray(sn)?[]:{};return forEach(sn,(un,pn)=>{const fn=an(un,on+1);!isUndefined(fn)&&(cn[pn]=fn)}),rn[on]=void 0,cn}}return sn};return an(ln,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=ln=>ln&&(isObject$1(ln)||isFunction$1(ln))&&isFunction$1(ln.then)&&isFunction$1(ln.catch),_setImmediate=((ln,rn)=>ln?setImmediate:rn?((an,sn)=>(_global.addEventListener("message",({source:on,data:cn})=>{on===_global&&cn===an&&sn.length&&sn.shift()()},!1),on=>{sn.push(on),_global.postMessage(an,"*")}))(`axios@${Math.random()}`,[]):an=>setTimeout(an))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,isIterable=ln=>ln!=null&&isFunction$1(ln[iterator]),utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject:isObject$1,isPlainObject,isEmptyObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$1,hasOwnProp:hasOwnProperty$1,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$1,toFiniteNumber,findKey,global:_global,isContextDefined,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap,isIterable};let AxiosError$1=class Qg extends Error{static from(rn,an,sn,on,cn,un){const pn=new Qg(rn.message,an||rn.code,sn,on,cn);return pn.cause=rn,pn.name=rn.name,un&&Object.assign(pn,un),pn}constructor(rn,an,sn,on,cn){super(rn),this.name="AxiosError",this.isAxiosError=!0,an&&(this.code=an),sn&&(this.config=sn),on&&(this.request=on),cn&&(this.response=cn,this.status=cn.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}};AxiosError$1.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";AxiosError$1.ERR_BAD_OPTION="ERR_BAD_OPTION";AxiosError$1.ECONNABORTED="ECONNABORTED";AxiosError$1.ETIMEDOUT="ETIMEDOUT";AxiosError$1.ERR_NETWORK="ERR_NETWORK";AxiosError$1.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";AxiosError$1.ERR_DEPRECATED="ERR_DEPRECATED";AxiosError$1.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";AxiosError$1.ERR_BAD_REQUEST="ERR_BAD_REQUEST";AxiosError$1.ERR_CANCELED="ERR_CANCELED";AxiosError$1.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";AxiosError$1.ERR_INVALID_URL="ERR_INVALID_URL";const httpAdapter=null;function isVisitable(ln){return utils$1.isPlainObject(ln)||utils$1.isArray(ln)}function removeBrackets(ln){return utils$1.endsWith(ln,"[]")?ln.slice(0,-2):ln}function renderKey(ln,rn,an){return ln?ln.concat(rn).map(function(on,cn){return on=removeBrackets(on),!an&&cn?"["+on+"]":on}).join(an?".":""):rn}function isFlatArray(ln){return utils$1.isArray(ln)&&!ln.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(rn){return/^is[A-Z]/.test(rn)});function toFormData$1(ln,rn,an){if(!utils$1.isObject(ln))throw new TypeError("target must be an object");rn=rn||new FormData,an=utils$1.toFlatObject(an,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Cn,kn){return!utils$1.isUndefined(kn[Cn])});const sn=an.metaTokens,on=an.visitor||xn,cn=an.dots,un=an.indexes,fn=(an.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(rn);if(!utils$1.isFunction(on))throw new TypeError("visitor must be a function");function mn(An){if(An===null)return"";if(utils$1.isDate(An))return An.toISOString();if(utils$1.isBoolean(An))return An.toString();if(!fn&&utils$1.isBlob(An))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(An)||utils$1.isTypedArray(An)?fn&&typeof Blob=="function"?new Blob([An]):Buffer.from(An):An}function xn(An,Cn,kn){let Mn=An;if(An&&!kn&&typeof An=="object"){if(utils$1.endsWith(Cn,"{}"))Cn=sn?Cn:Cn.slice(0,-2),An=JSON.stringify(An);else if(utils$1.isArray(An)&&isFlatArray(An)||(utils$1.isFileList(An)||utils$1.endsWith(Cn,"[]"))&&(Mn=utils$1.toArray(An)))return Cn=removeBrackets(Cn),Mn.forEach(function(On,Pn){!(utils$1.isUndefined(On)||On===null)&&rn.append(un===!0?renderKey([Cn],Pn,cn):un===null?Cn:Cn+"[]",mn(On))}),!1}return isVisitable(An)?!0:(rn.append(renderKey(kn,Cn,cn),mn(An)),!1)}const vn=[],yn=Object.assign(predicates,{defaultVisitor:xn,convertValue:mn,isVisitable});function wn(An,Cn){if(!utils$1.isUndefined(An)){if(vn.indexOf(An)!==-1)throw Error("Circular reference detected in "+Cn.join("."));vn.push(An),utils$1.forEach(An,function(Mn,Tn){(!(utils$1.isUndefined(Mn)||Mn===null)&&on.call(rn,Mn,utils$1.isString(Tn)?Tn.trim():Tn,Cn,yn))===!0&&wn(Mn,Cn?Cn.concat(Tn):[Tn])}),vn.pop()}}if(!utils$1.isObject(ln))throw new TypeError("data must be an object");return wn(ln),rn}function encode$1(ln){const rn={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(ln).replace(/[!'()~]|%20|%00/g,function(sn){return rn[sn]})}function AxiosURLSearchParams(ln,rn){this._pairs=[],ln&&toFormData$1(ln,this,rn)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(rn,an){this._pairs.push([rn,an])};prototype.toString=function(rn){const an=rn?function(sn){return rn.call(this,sn,encode$1)}:encode$1;return this._pairs.map(function(on){return an(on[0])+"="+an(on[1])},"").join("&")};function encode(ln){return encodeURIComponent(ln).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(ln,rn,an){if(!rn)return ln;const sn=an&&an.encode||encode,on=utils$1.isFunction(an)?{serialize:an}:an,cn=on&&on.serialize;let un;if(cn?un=cn(rn,on):un=utils$1.isURLSearchParams(rn)?rn.toString():new AxiosURLSearchParams(rn,on).toString(sn),un){const pn=ln.indexOf("#");pn!==-1&&(ln=ln.slice(0,pn)),ln+=(ln.indexOf("?")===-1?"?":"&")+un}return ln}class InterceptorManager{constructor(){this.handlers=[]}use(rn,an,sn){return this.handlers.push({fulfilled:rn,rejected:an,synchronous:sn?sn.synchronous:!1,runWhen:sn?sn.runWhen:null}),this.handlers.length-1}eject(rn){this.handlers[rn]&&(this.handlers[rn]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(rn){utils$1.forEach(this.handlers,function(sn){sn!==null&&rn(sn)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(ln,rn){return toFormData$1(ln,new platform.classes.URLSearchParams,{visitor:function(an,sn,on,cn){return platform.isNode&&utils$1.isBuffer(an)?(this.append(sn,an.toString("base64")),!1):cn.defaultVisitor.apply(this,arguments)},...rn})}function parsePropPath(ln){return utils$1.matchAll(/\w+|\[(\w*)]/g,ln).map(rn=>rn[0]==="[]"?"":rn[1]||rn[0])}function arrayToObject(ln){const rn={},an=Object.keys(ln);let sn;const on=an.length;let cn;for(sn=0;sn<on;sn++)cn=an[sn],rn[cn]=ln[cn];return rn}function formDataToJSON(ln){function rn(an,sn,on,cn){let un=an[cn++];if(un==="__proto__")return!0;const pn=Number.isFinite(+un),fn=cn>=an.length;return un=!un&&utils$1.isArray(on)?on.length:un,fn?(utils$1.hasOwnProp(on,un)?on[un]=[on[un],sn]:on[un]=sn,!pn):((!on[un]||!utils$1.isObject(on[un]))&&(on[un]=[]),rn(an,sn,on[un],cn)&&utils$1.isArray(on[un])&&(on[un]=arrayToObject(on[un])),!pn)}if(utils$1.isFormData(ln)&&utils$1.isFunction(ln.entries)){const an={};return utils$1.forEachEntry(ln,(sn,on)=>{rn(parsePropPath(sn),on,an,0)}),an}return null}function stringifySafely(ln,rn,an){if(utils$1.isString(ln))try{return(rn||JSON.parse)(ln),utils$1.trim(ln)}catch(sn){if(sn.name!=="SyntaxError")throw sn}return(an||JSON.stringify)(ln)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(rn,an){const sn=an.getContentType()||"",on=sn.indexOf("application/json")>-1,cn=utils$1.isObject(rn);if(cn&&utils$1.isHTMLForm(rn)&&(rn=new FormData(rn)),utils$1.isFormData(rn))return on?JSON.stringify(formDataToJSON(rn)):rn;if(utils$1.isArrayBuffer(rn)||utils$1.isBuffer(rn)||utils$1.isStream(rn)||utils$1.isFile(rn)||utils$1.isBlob(rn)||utils$1.isReadableStream(rn))return rn;if(utils$1.isArrayBufferView(rn))return rn.buffer;if(utils$1.isURLSearchParams(rn))return an.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),rn.toString();let pn;if(cn){if(sn.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(rn,this.formSerializer).toString();if((pn=utils$1.isFileList(rn))||sn.indexOf("multipart/form-data")>-1){const fn=this.env&&this.env.FormData;return toFormData$1(pn?{"files[]":rn}:rn,fn&&new fn,this.formSerializer)}}return cn||on?(an.setContentType("application/json",!1),stringifySafely(rn)):rn}],transformResponse:[function(rn){const an=this.transitional||defaults$1.transitional,sn=an&&an.forcedJSONParsing,on=this.responseType==="json";if(utils$1.isResponse(rn)||utils$1.isReadableStream(rn))return rn;if(rn&&utils$1.isString(rn)&&(sn&&!this.responseType||on)){const un=!(an&&an.silentJSONParsing)&&on;try{return JSON.parse(rn,this.parseReviver)}catch(pn){if(un)throw pn.name==="SyntaxError"?AxiosError$1.from(pn,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):pn}}return rn}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(rn){return rn>=200&&rn<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],ln=>{defaults$1.headers[ln]={}});const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=ln=>{const rn={};let an,sn,on;return ln&&ln.split(`
`).forEach(function(un){on=un.indexOf(":"),an=un.substring(0,on).trim().toLowerCase(),sn=un.substring(on+1).trim(),!(!an||rn[an]&&ignoreDuplicateOf[an])&&(an==="set-cookie"?rn[an]?rn[an].push(sn):rn[an]=[sn]:rn[an]=rn[an]?rn[an]+", "+sn:sn)}),rn},$internals=Symbol("internals");function normalizeHeader(ln){return ln&&String(ln).trim().toLowerCase()}function normalizeValue(ln){return ln===!1||ln==null?ln:utils$1.isArray(ln)?ln.map(normalizeValue):String(ln)}function parseTokens(ln){const rn=Object.create(null),an=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let sn;for(;sn=an.exec(ln);)rn[sn[1]]=sn[2];return rn}const isValidHeaderName=ln=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(ln.trim());function matchHeaderValue(ln,rn,an,sn,on){if(utils$1.isFunction(sn))return sn.call(this,rn,an);if(on&&(rn=an),!!utils$1.isString(rn)){if(utils$1.isString(sn))return rn.indexOf(sn)!==-1;if(utils$1.isRegExp(sn))return sn.test(rn)}}function formatHeader(ln){return ln.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(rn,an,sn)=>an.toUpperCase()+sn)}function buildAccessors(ln,rn){const an=utils$1.toCamelCase(" "+rn);["get","set","has"].forEach(sn=>{Object.defineProperty(ln,sn+an,{value:function(on,cn,un){return this[sn].call(this,rn,on,cn,un)},configurable:!0})})}let AxiosHeaders$1=class{constructor(rn){rn&&this.set(rn)}set(rn,an,sn){const on=this;function cn(pn,fn,mn){const xn=normalizeHeader(fn);if(!xn)throw new Error("header name must be a non-empty string");const vn=utils$1.findKey(on,xn);(!vn||on[vn]===void 0||mn===!0||mn===void 0&&on[vn]!==!1)&&(on[vn||fn]=normalizeValue(pn))}const un=(pn,fn)=>utils$1.forEach(pn,(mn,xn)=>cn(mn,xn,fn));if(utils$1.isPlainObject(rn)||rn instanceof this.constructor)un(rn,an);else if(utils$1.isString(rn)&&(rn=rn.trim())&&!isValidHeaderName(rn))un(parseHeaders(rn),an);else if(utils$1.isObject(rn)&&utils$1.isIterable(rn)){let pn={},fn,mn;for(const xn of rn){if(!utils$1.isArray(xn))throw TypeError("Object iterator must return a key-value pair");pn[mn=xn[0]]=(fn=pn[mn])?utils$1.isArray(fn)?[...fn,xn[1]]:[fn,xn[1]]:xn[1]}un(pn,an)}else rn!=null&&cn(an,rn,sn);return this}get(rn,an){if(rn=normalizeHeader(rn),rn){const sn=utils$1.findKey(this,rn);if(sn){const on=this[sn];if(!an)return on;if(an===!0)return parseTokens(on);if(utils$1.isFunction(an))return an.call(this,on,sn);if(utils$1.isRegExp(an))return an.exec(on);throw new TypeError("parser must be boolean|regexp|function")}}}has(rn,an){if(rn=normalizeHeader(rn),rn){const sn=utils$1.findKey(this,rn);return!!(sn&&this[sn]!==void 0&&(!an||matchHeaderValue(this,this[sn],sn,an)))}return!1}delete(rn,an){const sn=this;let on=!1;function cn(un){if(un=normalizeHeader(un),un){const pn=utils$1.findKey(sn,un);pn&&(!an||matchHeaderValue(sn,sn[pn],pn,an))&&(delete sn[pn],on=!0)}}return utils$1.isArray(rn)?rn.forEach(cn):cn(rn),on}clear(rn){const an=Object.keys(this);let sn=an.length,on=!1;for(;sn--;){const cn=an[sn];(!rn||matchHeaderValue(this,this[cn],cn,rn,!0))&&(delete this[cn],on=!0)}return on}normalize(rn){const an=this,sn={};return utils$1.forEach(this,(on,cn)=>{const un=utils$1.findKey(sn,cn);if(un){an[un]=normalizeValue(on),delete an[cn];return}const pn=rn?formatHeader(cn):String(cn).trim();pn!==cn&&delete an[cn],an[pn]=normalizeValue(on),sn[pn]=!0}),this}concat(...rn){return this.constructor.concat(this,...rn)}toJSON(rn){const an=Object.create(null);return utils$1.forEach(this,(sn,on)=>{sn!=null&&sn!==!1&&(an[on]=rn&&utils$1.isArray(sn)?sn.join(", "):sn)}),an}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([rn,an])=>rn+": "+an).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(rn){return rn instanceof this?rn:new this(rn)}static concat(rn,...an){const sn=new this(rn);return an.forEach(on=>sn.set(on)),sn}static accessor(rn){const sn=(this[$internals]=this[$internals]={accessors:{}}).accessors,on=this.prototype;function cn(un){const pn=normalizeHeader(un);sn[pn]||(buildAccessors(on,un),sn[pn]=!0)}return utils$1.isArray(rn)?rn.forEach(cn):cn(rn),this}};AxiosHeaders$1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders$1.prototype,({value:ln},rn)=>{let an=rn[0].toUpperCase()+rn.slice(1);return{get:()=>ln,set(sn){this[an]=sn}}});utils$1.freezeMethods(AxiosHeaders$1);function transformData(ln,rn){const an=this||defaults$1,sn=rn||an,on=AxiosHeaders$1.from(sn.headers);let cn=sn.data;return utils$1.forEach(ln,function(pn){cn=pn.call(an,cn,on.normalize(),rn?rn.status:void 0)}),on.normalize(),cn}function isCancel$1(ln){return!!(ln&&ln.__CANCEL__)}let CanceledError$1=class extends AxiosError$1{constructor(rn,an,sn){super(rn??"canceled",AxiosError$1.ERR_CANCELED,an,sn),this.name="CanceledError",this.__CANCEL__=!0}};function settle(ln,rn,an){const sn=an.config.validateStatus;!an.status||!sn||sn(an.status)?ln(an):rn(new AxiosError$1("Request failed with status code "+an.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor(an.status/100)-4],an.config,an.request,an))}function parseProtocol(ln){const rn=/^([-+\w]{1,25})(:?\/\/|:)/.exec(ln);return rn&&rn[1]||""}function speedometer(ln,rn){ln=ln||10;const an=new Array(ln),sn=new Array(ln);let on=0,cn=0,un;return rn=rn!==void 0?rn:1e3,function(fn){const mn=Date.now(),xn=sn[cn];un||(un=mn),an[on]=fn,sn[on]=mn;let vn=cn,yn=0;for(;vn!==on;)yn+=an[vn++],vn=vn%ln;if(on=(on+1)%ln,on===cn&&(cn=(cn+1)%ln),mn-un<rn)return;const wn=xn&&mn-xn;return wn?Math.round(yn*1e3/wn):void 0}}function throttle(ln,rn){let an=0,sn=1e3/rn,on,cn;const un=(mn,xn=Date.now())=>{an=xn,on=null,cn&&(clearTimeout(cn),cn=null),ln(...mn)};return[(...mn)=>{const xn=Date.now(),vn=xn-an;vn>=sn?un(mn,xn):(on=mn,cn||(cn=setTimeout(()=>{cn=null,un(on)},sn-vn)))},()=>on&&un(on)]}const progressEventReducer=(ln,rn,an=3)=>{let sn=0;const on=speedometer(50,250);return throttle(cn=>{const un=cn.loaded,pn=cn.lengthComputable?cn.total:void 0,fn=un-sn,mn=on(fn),xn=un<=pn;sn=un;const vn={loaded:un,total:pn,progress:pn?un/pn:void 0,bytes:fn,rate:mn||void 0,estimated:mn&&pn&&xn?(pn-un)/mn:void 0,event:cn,lengthComputable:pn!=null,[rn?"download":"upload"]:!0};ln(vn)},an)},progressEventDecorator=(ln,rn)=>{const an=ln!=null;return[sn=>rn[0]({lengthComputable:an,total:ln,loaded:sn}),rn[1]]},asyncDecorator=ln=>(...rn)=>utils$1.asap(()=>ln(...rn)),isURLSameOrigin=platform.hasStandardBrowserEnv?((ln,rn)=>an=>(an=new URL(an,platform.origin),ln.protocol===an.protocol&&ln.host===an.host&&(rn||ln.port===an.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(ln,rn,an,sn,on,cn,un){if(typeof document>"u")return;const pn=[`${ln}=${encodeURIComponent(rn)}`];utils$1.isNumber(an)&&pn.push(`expires=${new Date(an).toUTCString()}`),utils$1.isString(sn)&&pn.push(`path=${sn}`),utils$1.isString(on)&&pn.push(`domain=${on}`),cn===!0&&pn.push("secure"),utils$1.isString(un)&&pn.push(`SameSite=${un}`),document.cookie=pn.join("; ")},read(ln){if(typeof document>"u")return null;const rn=document.cookie.match(new RegExp("(?:^|; )"+ln+"=([^;]*)"));return rn?decodeURIComponent(rn[1]):null},remove(ln){this.write(ln,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(ln){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(ln)}function combineURLs(ln,rn){return rn?ln.replace(/\/?\/$/,"")+"/"+rn.replace(/^\/+/,""):ln}function buildFullPath(ln,rn,an){let sn=!isAbsoluteURL(rn);return ln&&(sn||an==!1)?combineURLs(ln,rn):rn}const headersToObject=ln=>ln instanceof AxiosHeaders$1?{...ln}:ln;function mergeConfig$1(ln,rn){rn=rn||{};const an={};function sn(mn,xn,vn,yn){return utils$1.isPlainObject(mn)&&utils$1.isPlainObject(xn)?utils$1.merge.call({caseless:yn},mn,xn):utils$1.isPlainObject(xn)?utils$1.merge({},xn):utils$1.isArray(xn)?xn.slice():xn}function on(mn,xn,vn,yn){if(utils$1.isUndefined(xn)){if(!utils$1.isUndefined(mn))return sn(void 0,mn,vn,yn)}else return sn(mn,xn,vn,yn)}function cn(mn,xn){if(!utils$1.isUndefined(xn))return sn(void 0,xn)}function un(mn,xn){if(utils$1.isUndefined(xn)){if(!utils$1.isUndefined(mn))return sn(void 0,mn)}else return sn(void 0,xn)}function pn(mn,xn,vn){if(vn in rn)return sn(mn,xn);if(vn in ln)return sn(void 0,mn)}const fn={url:cn,method:cn,data:cn,baseURL:un,transformRequest:un,transformResponse:un,paramsSerializer:un,timeout:un,timeoutMessage:un,withCredentials:un,withXSRFToken:un,adapter:un,responseType:un,xsrfCookieName:un,xsrfHeaderName:un,onUploadProgress:un,onDownloadProgress:un,decompress:un,maxContentLength:un,maxBodyLength:un,beforeRedirect:un,transport:un,httpAgent:un,httpsAgent:un,cancelToken:un,socketPath:un,responseEncoding:un,validateStatus:pn,headers:(mn,xn,vn)=>on(headersToObject(mn),headersToObject(xn),vn,!0)};return utils$1.forEach(Object.keys({...ln,...rn}),function(xn){const vn=fn[xn]||on,yn=vn(ln[xn],rn[xn],xn);utils$1.isUndefined(yn)&&vn!==pn||(an[xn]=yn)}),an}const resolveConfig=ln=>{const rn=mergeConfig$1({},ln);let{data:an,withXSRFToken:sn,xsrfHeaderName:on,xsrfCookieName:cn,headers:un,auth:pn}=rn;if(rn.headers=un=AxiosHeaders$1.from(un),rn.url=buildURL(buildFullPath(rn.baseURL,rn.url,rn.allowAbsoluteUrls),ln.params,ln.paramsSerializer),pn&&un.set("Authorization","Basic "+btoa((pn.username||"")+":"+(pn.password?unescape(encodeURIComponent(pn.password)):""))),utils$1.isFormData(an)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)un.setContentType(void 0);else if(utils$1.isFunction(an.getHeaders)){const fn=an.getHeaders(),mn=["content-type","content-length"];Object.entries(fn).forEach(([xn,vn])=>{mn.includes(xn.toLowerCase())&&un.set(xn,vn)})}}if(platform.hasStandardBrowserEnv&&(sn&&utils$1.isFunction(sn)&&(sn=sn(rn)),sn||sn!==!1&&isURLSameOrigin(rn.url))){const fn=on&&cn&&cookies.read(cn);fn&&un.set(on,fn)}return rn},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(ln){return new Promise(function(an,sn){const on=resolveConfig(ln);let cn=on.data;const un=AxiosHeaders$1.from(on.headers).normalize();let{responseType:pn,onUploadProgress:fn,onDownloadProgress:mn}=on,xn,vn,yn,wn,An;function Cn(){wn&&wn(),An&&An(),on.cancelToken&&on.cancelToken.unsubscribe(xn),on.signal&&on.signal.removeEventListener("abort",xn)}let kn=new XMLHttpRequest;kn.open(on.method.toUpperCase(),on.url,!0),kn.timeout=on.timeout;function Mn(){if(!kn)return;const On=AxiosHeaders$1.from("getAllResponseHeaders"in kn&&kn.getAllResponseHeaders()),Nn={data:!pn||pn==="text"||pn==="json"?kn.responseText:kn.response,status:kn.status,statusText:kn.statusText,headers:On,config:ln,request:kn};settle(function(jn){an(jn),Cn()},function(jn){sn(jn),Cn()},Nn),kn=null}"onloadend"in kn?kn.onloadend=Mn:kn.onreadystatechange=function(){!kn||kn.readyState!==4||kn.status===0&&!(kn.responseURL&&kn.responseURL.indexOf("file:")===0)||setTimeout(Mn)},kn.onabort=function(){kn&&(sn(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,ln,kn)),kn=null)},kn.onerror=function(Pn){const Nn=Pn&&Pn.message?Pn.message:"Network Error",In=new AxiosError$1(Nn,AxiosError$1.ERR_NETWORK,ln,kn);In.event=Pn||null,sn(In),kn=null},kn.ontimeout=function(){let Pn=on.timeout?"timeout of "+on.timeout+"ms exceeded":"timeout exceeded";const Nn=on.transitional||transitionalDefaults;on.timeoutErrorMessage&&(Pn=on.timeoutErrorMessage),sn(new AxiosError$1(Pn,Nn.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,ln,kn)),kn=null},cn===void 0&&un.setContentType(null),"setRequestHeader"in kn&&utils$1.forEach(un.toJSON(),function(Pn,Nn){kn.setRequestHeader(Nn,Pn)}),utils$1.isUndefined(on.withCredentials)||(kn.withCredentials=!!on.withCredentials),pn&&pn!=="json"&&(kn.responseType=on.responseType),mn&&([yn,An]=progressEventReducer(mn,!0),kn.addEventListener("progress",yn)),fn&&kn.upload&&([vn,wn]=progressEventReducer(fn),kn.upload.addEventListener("progress",vn),kn.upload.addEventListener("loadend",wn)),(on.cancelToken||on.signal)&&(xn=On=>{kn&&(sn(!On||On.type?new CanceledError$1(null,ln,kn):On),kn.abort(),kn=null)},on.cancelToken&&on.cancelToken.subscribe(xn),on.signal&&(on.signal.aborted?xn():on.signal.addEventListener("abort",xn)));const Tn=parseProtocol(on.url);if(Tn&&platform.protocols.indexOf(Tn)===-1){sn(new AxiosError$1("Unsupported protocol "+Tn+":",AxiosError$1.ERR_BAD_REQUEST,ln));return}kn.send(cn||null)})},composeSignals=(ln,rn)=>{const{length:an}=ln=ln?ln.filter(Boolean):[];if(rn||an){let sn=new AbortController,on;const cn=function(mn){if(!on){on=!0,pn();const xn=mn instanceof Error?mn:this.reason;sn.abort(xn instanceof AxiosError$1?xn:new CanceledError$1(xn instanceof Error?xn.message:xn))}};let un=rn&&setTimeout(()=>{un=null,cn(new AxiosError$1(`timeout of ${rn}ms exceeded`,AxiosError$1.ETIMEDOUT))},rn);const pn=()=>{ln&&(un&&clearTimeout(un),un=null,ln.forEach(mn=>{mn.unsubscribe?mn.unsubscribe(cn):mn.removeEventListener("abort",cn)}),ln=null)};ln.forEach(mn=>mn.addEventListener("abort",cn));const{signal:fn}=sn;return fn.unsubscribe=()=>utils$1.asap(pn),fn}},streamChunk=function*(ln,rn){let an=ln.byteLength;if(an<rn){yield ln;return}let sn=0,on;for(;sn<an;)on=sn+rn,yield ln.slice(sn,on),sn=on},readBytes=async function*(ln,rn){for await(const an of readStream(ln))yield*streamChunk(an,rn)},readStream=async function*(ln){if(ln[Symbol.asyncIterator]){yield*ln;return}const rn=ln.getReader();try{for(;;){const{done:an,value:sn}=await rn.read();if(an)break;yield sn}}finally{await rn.cancel()}},trackStream=(ln,rn,an,sn)=>{const on=readBytes(ln,rn);let cn=0,un,pn=fn=>{un||(un=!0,sn&&sn(fn))};return new ReadableStream({async pull(fn){try{const{done:mn,value:xn}=await on.next();if(mn){pn(),fn.close();return}let vn=xn.byteLength;if(an){let yn=cn+=vn;an(yn)}fn.enqueue(new Uint8Array(xn))}catch(mn){throw pn(mn),mn}},cancel(fn){return pn(fn),on.return()}},{highWaterMark:2})},DEFAULT_CHUNK_SIZE=64*1024,{isFunction}=utils$1,globalFetchAPI=(({Request:ln,Response:rn})=>({Request:ln,Response:rn}))(utils$1.global),{ReadableStream:ReadableStream$1,TextEncoder:TextEncoder$1}=utils$1.global,test=(ln,...rn)=>{try{return!!ln(...rn)}catch{return!1}},factory=ln=>{ln=utils$1.merge.call({skipUndefined:!0},globalFetchAPI,ln);const{fetch:rn,Request:an,Response:sn}=ln,on=rn?isFunction(rn):typeof fetch=="function",cn=isFunction(an),un=isFunction(sn);if(!on)return!1;const pn=on&&isFunction(ReadableStream$1),fn=on&&(typeof TextEncoder$1=="function"?(An=>Cn=>An.encode(Cn))(new TextEncoder$1):async An=>new Uint8Array(await new an(An).arrayBuffer())),mn=cn&&pn&&test(()=>{let An=!1;const Cn=new an(platform.origin,{body:new ReadableStream$1,method:"POST",get duplex(){return An=!0,"half"}}).headers.has("Content-Type");return An&&!Cn}),xn=un&&pn&&test(()=>utils$1.isReadableStream(new sn("").body)),vn={stream:xn&&(An=>An.body)};on&&["text","arrayBuffer","blob","formData","stream"].forEach(An=>{!vn[An]&&(vn[An]=(Cn,kn)=>{let Mn=Cn&&Cn[An];if(Mn)return Mn.call(Cn);throw new AxiosError$1(`Response type '${An}' is not supported`,AxiosError$1.ERR_NOT_SUPPORT,kn)})});const yn=async An=>{if(An==null)return 0;if(utils$1.isBlob(An))return An.size;if(utils$1.isSpecCompliantForm(An))return(await new an(platform.origin,{method:"POST",body:An}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(An)||utils$1.isArrayBuffer(An))return An.byteLength;if(utils$1.isURLSearchParams(An)&&(An=An+""),utils$1.isString(An))return(await fn(An)).byteLength},wn=async(An,Cn)=>{const kn=utils$1.toFiniteNumber(An.getContentLength());return kn??yn(Cn)};return async An=>{let{url:Cn,method:kn,data:Mn,signal:Tn,cancelToken:On,timeout:Pn,onDownloadProgress:Nn,onUploadProgress:In,responseType:jn,headers:Fn,withCredentials:Un="same-origin",fetchOptions:Yn}=resolveConfig(An),Qn=rn||fetch;jn=jn?(jn+"").toLowerCase():"text";let ir=composeSignals([Tn,On&&On.toAbortSignal()],Pn),er=null;const tr=ir&&ir.unsubscribe&&(()=>{ir.unsubscribe()});let vr;try{if(In&&mn&&kn!=="get"&&kn!=="head"&&(vr=await wn(Fn,Mn))!==0){let cr=new an(Cn,{method:"POST",body:Mn,duplex:"half"}),_r;if(utils$1.isFormData(Mn)&&(_r=cr.headers.get("content-type"))&&Fn.setContentType(_r),cr.body){const[Nr,Er]=progressEventDecorator(vr,progressEventReducer(asyncDecorator(In)));Mn=trackStream(cr.body,DEFAULT_CHUNK_SIZE,Nr,Er)}}utils$1.isString(Un)||(Un=Un?"include":"omit");const rr=cn&&"credentials"in an.prototype,fr={...Yn,signal:ir,method:kn.toUpperCase(),headers:Fn.normalize().toJSON(),body:Mn,duplex:"half",credentials:rr?Un:void 0};er=cn&&new an(Cn,fr);let ur=await(cn?Qn(er,Yn):Qn(Cn,fr));const wr=xn&&(jn==="stream"||jn==="response");if(xn&&(Nn||wr&&tr)){const cr={};["status","statusText","headers"].forEach(Fr=>{cr[Fr]=ur[Fr]});const _r=utils$1.toFiniteNumber(ur.headers.get("content-length")),[Nr,Er]=Nn&&progressEventDecorator(_r,progressEventReducer(asyncDecorator(Nn),!0))||[];ur=new sn(trackStream(ur.body,DEFAULT_CHUNK_SIZE,Nr,()=>{Er&&Er(),tr&&tr()}),cr)}jn=jn||"text";let Xn=await vn[utils$1.findKey(vn,jn)||"text"](ur,An);return!wr&&tr&&tr(),await new Promise((cr,_r)=>{settle(cr,_r,{data:Xn,headers:AxiosHeaders$1.from(ur.headers),status:ur.status,statusText:ur.statusText,config:An,request:er})})}catch(rr){throw tr&&tr(),rr&&rr.name==="TypeError"&&/Load failed|fetch/i.test(rr.message)?Object.assign(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,An,er),{cause:rr.cause||rr}):AxiosError$1.from(rr,rr&&rr.code,An,er)}}},seedCache=new Map,getFetch=ln=>{let rn=ln&&ln.env||{};const{fetch:an,Request:sn,Response:on}=rn,cn=[sn,on,an];let un=cn.length,pn=un,fn,mn,xn=seedCache;for(;pn--;)fn=cn[pn],mn=xn.get(fn),mn===void 0&&xn.set(fn,mn=pn?new Map:factory(rn)),xn=mn;return mn};getFetch();const knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:{get:getFetch}};utils$1.forEach(knownAdapters,(ln,rn)=>{if(ln){try{Object.defineProperty(ln,"name",{value:rn})}catch{}Object.defineProperty(ln,"adapterName",{value:rn})}});const renderReason=ln=>`- ${ln}`,isResolvedHandle=ln=>utils$1.isFunction(ln)||ln===null||ln===!1;function getAdapter$1(ln,rn){ln=utils$1.isArray(ln)?ln:[ln];const{length:an}=ln;let sn,on;const cn={};for(let un=0;un<an;un++){sn=ln[un];let pn;if(on=sn,!isResolvedHandle(sn)&&(on=knownAdapters[(pn=String(sn)).toLowerCase()],on===void 0))throw new AxiosError$1(`Unknown adapter '${pn}'`);if(on&&(utils$1.isFunction(on)||(on=on.get(rn))))break;cn[pn||"#"+un]=on}if(!on){const un=Object.entries(cn).map(([fn,mn])=>`adapter ${fn} `+(mn===!1?"is not supported by the environment":"is not available in the build"));let pn=an?un.length>1?`since :
`+un.map(renderReason).join(`
`):" "+renderReason(un[0]):"as no adapter specified";throw new AxiosError$1("There is no suitable adapter to dispatch the request "+pn,"ERR_NOT_SUPPORT")}return on}const adapters={getAdapter:getAdapter$1,adapters:knownAdapters};function throwIfCancellationRequested(ln){if(ln.cancelToken&&ln.cancelToken.throwIfRequested(),ln.signal&&ln.signal.aborted)throw new CanceledError$1(null,ln)}function dispatchRequest(ln){return throwIfCancellationRequested(ln),ln.headers=AxiosHeaders$1.from(ln.headers),ln.data=transformData.call(ln,ln.transformRequest),["post","put","patch"].indexOf(ln.method)!==-1&&ln.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(ln.adapter||defaults$1.adapter,ln)(ln).then(function(sn){return throwIfCancellationRequested(ln),sn.data=transformData.call(ln,ln.transformResponse,sn),sn.headers=AxiosHeaders$1.from(sn.headers),sn},function(sn){return isCancel$1(sn)||(throwIfCancellationRequested(ln),sn&&sn.response&&(sn.response.data=transformData.call(ln,ln.transformResponse,sn.response),sn.response.headers=AxiosHeaders$1.from(sn.response.headers))),Promise.reject(sn)})}const VERSION$1="1.13.4",validators$1={};["object","boolean","number","function","string","symbol"].forEach((ln,rn)=>{validators$1[ln]=function(sn){return typeof sn===ln||"a"+(rn<1?"n ":" ")+ln}});const deprecatedWarnings={};validators$1.transitional=function(rn,an,sn){function on(cn,un){return"[Axios v"+VERSION$1+"] Transitional option '"+cn+"'"+un+(sn?". "+sn:"")}return(cn,un,pn)=>{if(rn===!1)throw new AxiosError$1(on(un," has been removed"+(an?" in "+an:"")),AxiosError$1.ERR_DEPRECATED);return an&&!deprecatedWarnings[un]&&(deprecatedWarnings[un]=!0,console.warn(on(un," has been deprecated since v"+an+" and will be removed in the near future"))),rn?rn(cn,un,pn):!0}};validators$1.spelling=function(rn){return(an,sn)=>(console.warn(`${sn} is likely a misspelling of ${rn}`),!0)};function assertOptions(ln,rn,an){if(typeof ln!="object")throw new AxiosError$1("options must be an object",AxiosError$1.ERR_BAD_OPTION_VALUE);const sn=Object.keys(ln);let on=sn.length;for(;on-- >0;){const cn=sn[on],un=rn[cn];if(un){const pn=ln[cn],fn=pn===void 0||un(pn,cn,ln);if(fn!==!0)throw new AxiosError$1("option "+cn+" must be "+fn,AxiosError$1.ERR_BAD_OPTION_VALUE);continue}if(an!==!0)throw new AxiosError$1("Unknown option "+cn,AxiosError$1.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;let Axios$1=class{constructor(rn){this.defaults=rn||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(rn,an){try{return await this._request(rn,an)}catch(sn){if(sn instanceof Error){let on={};Error.captureStackTrace?Error.captureStackTrace(on):on=new Error;const cn=on.stack?on.stack.replace(/^.+\n/,""):"";try{sn.stack?cn&&!String(sn.stack).endsWith(cn.replace(/^.+\n.+\n/,""))&&(sn.stack+=`
`+cn):sn.stack=cn}catch{}}throw sn}}_request(rn,an){typeof rn=="string"?(an=an||{},an.url=rn):an=rn||{},an=mergeConfig$1(this.defaults,an);const{transitional:sn,paramsSerializer:on,headers:cn}=an;sn!==void 0&&validator.assertOptions(sn,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),on!=null&&(utils$1.isFunction(on)?an.paramsSerializer={serialize:on}:validator.assertOptions(on,{encode:validators.function,serialize:validators.function},!0)),an.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?an.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:an.allowAbsoluteUrls=!0),validator.assertOptions(an,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),an.method=(an.method||this.defaults.method||"get").toLowerCase();let un=cn&&utils$1.merge(cn.common,cn[an.method]);cn&&utils$1.forEach(["delete","get","head","post","put","patch","common"],An=>{delete cn[An]}),an.headers=AxiosHeaders$1.concat(un,cn);const pn=[];let fn=!0;this.interceptors.request.forEach(function(Cn){typeof Cn.runWhen=="function"&&Cn.runWhen(an)===!1||(fn=fn&&Cn.synchronous,pn.unshift(Cn.fulfilled,Cn.rejected))});const mn=[];this.interceptors.response.forEach(function(Cn){mn.push(Cn.fulfilled,Cn.rejected)});let xn,vn=0,yn;if(!fn){const An=[dispatchRequest.bind(this),void 0];for(An.unshift(...pn),An.push(...mn),yn=An.length,xn=Promise.resolve(an);vn<yn;)xn=xn.then(An[vn++],An[vn++]);return xn}yn=pn.length;let wn=an;for(;vn<yn;){const An=pn[vn++],Cn=pn[vn++];try{wn=An(wn)}catch(kn){Cn.call(this,kn);break}}try{xn=dispatchRequest.call(this,wn)}catch(An){return Promise.reject(An)}for(vn=0,yn=mn.length;vn<yn;)xn=xn.then(mn[vn++],mn[vn++]);return xn}getUri(rn){rn=mergeConfig$1(this.defaults,rn);const an=buildFullPath(rn.baseURL,rn.url,rn.allowAbsoluteUrls);return buildURL(an,rn.params,rn.paramsSerializer)}};utils$1.forEach(["delete","get","head","options"],function(rn){Axios$1.prototype[rn]=function(an,sn){return this.request(mergeConfig$1(sn||{},{method:rn,url:an,data:(sn||{}).data}))}});utils$1.forEach(["post","put","patch"],function(rn){function an(sn){return function(cn,un,pn){return this.request(mergeConfig$1(pn||{},{method:rn,headers:sn?{"Content-Type":"multipart/form-data"}:{},url:cn,data:un}))}}Axios$1.prototype[rn]=an(),Axios$1.prototype[rn+"Form"]=an(!0)});let CancelToken$1=class Jg{constructor(rn){if(typeof rn!="function")throw new TypeError("executor must be a function.");let an;this.promise=new Promise(function(cn){an=cn});const sn=this;this.promise.then(on=>{if(!sn._listeners)return;let cn=sn._listeners.length;for(;cn-- >0;)sn._listeners[cn](on);sn._listeners=null}),this.promise.then=on=>{let cn;const un=new Promise(pn=>{sn.subscribe(pn),cn=pn}).then(on);return un.cancel=function(){sn.unsubscribe(cn)},un},rn(function(cn,un,pn){sn.reason||(sn.reason=new CanceledError$1(cn,un,pn),an(sn.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(rn){if(this.reason){rn(this.reason);return}this._listeners?this._listeners.push(rn):this._listeners=[rn]}unsubscribe(rn){if(!this._listeners)return;const an=this._listeners.indexOf(rn);an!==-1&&this._listeners.splice(an,1)}toAbortSignal(){const rn=new AbortController,an=sn=>{rn.abort(sn)};return this.subscribe(an),rn.signal.unsubscribe=()=>this.unsubscribe(an),rn.signal}static source(){let rn;return{token:new Jg(function(on){rn=on}),cancel:rn}}};function spread$1(ln){return function(an){return ln.apply(null,an)}}function isAxiosError$1(ln){return utils$1.isObject(ln)&&ln.isAxiosError===!0}const HttpStatusCode$1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(HttpStatusCode$1).forEach(([ln,rn])=>{HttpStatusCode$1[rn]=ln});function createInstance(ln){const rn=new Axios$1(ln),an=bind(Axios$1.prototype.request,rn);return utils$1.extend(an,Axios$1.prototype,rn,{allOwnKeys:!0}),utils$1.extend(an,rn,null,{allOwnKeys:!0}),an.create=function(on){return createInstance(mergeConfig$1(ln,on))},an}const axios=createInstance(defaults$1);axios.Axios=Axios$1;axios.CanceledError=CanceledError$1;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel$1;axios.VERSION=VERSION$1;axios.toFormData=toFormData$1;axios.AxiosError=AxiosError$1;axios.Cancel=axios.CanceledError;axios.all=function(rn){return Promise.all(rn)};axios.spread=spread$1;axios.isAxiosError=isAxiosError$1;axios.mergeConfig=mergeConfig$1;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=ln=>formDataToJSON(utils$1.isHTMLForm(ln)?new FormData(ln):ln);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const{Axios,AxiosError,CanceledError,isCancel,CancelToken,VERSION,all,Cancel,isAxiosError,spread,toFormData,AxiosHeaders,HttpStatusCode,formToJSON,getAdapter,mergeConfig}=axios;let toastCallback=null;const setToastCallback=ln=>{toastCallback=ln},showToast=(ln,rn)=>{toastCallback&&toastCallback(ln,rn)},axiosInstance=axios.create({baseURL:"https://alphatd.in/public/api"});axiosInstance.interceptors.request.use(ln=>{const rn=localStorage.getItem("admin_token")||localStorage.getItem("client_token");return rn?ln.headers.Authorization=`Bearer ${rn}`:console.warn("No token found in localStorage for request:",ln.url),ln});axiosInstance.interceptors.response.use(ln=>ln,ln=>{var rn,an,sn,on;if(((rn=ln.response)==null?void 0:rn.status)===401){const cn=(an=ln.config.url)==null?void 0:an.includes("/client/"),un=(sn=ln.config.url)==null?void 0:sn.includes("/admin/");if((on=ln.config.url)==null?void 0:on.includes("/whatsapp/connect"))return Promise.reject(ln);cn&&ln.config.url!=="/client/login"?(localStorage.removeItem("client_token"),showToast("error","Session expired. Please login again."),window.location.href="/client/login"):un&&ln.config.url!=="/admin/login"&&(localStorage.removeItem("admin_token"),showToast("error","Session expired. Please login again."),window.location.href="/")}return Promise.reject(ln)});function SignInForm(){const[ln,rn]=reactExports.useState(!1),[an,sn]=reactExports.useState(!1),[on,cn]=reactExports.useState(""),[un,pn]=reactExports.useState(""),[fn,mn]=reactExports.useState(!1),xn=useNavigate(),vn=async yn=>{var wn,An;yn.preventDefault(),mn(!0);try{const Cn=await axiosInstance.post("/admin/login",{email:on,password:un});localStorage.setItem("admin_token",Cn.data.token),showToast("success","Login successful"),setTimeout(()=>xn("/admin/dashboard"),1e3)}catch(Cn){const kn=((An=(wn=Cn.response)==null?void 0:wn.data)==null?void 0:An.message)||"Login failed";showToast("error",kn),mn(!1)}};return jsxRuntimeExports.jsx("div",{className:"flex flex-col flex-1",children:jsxRuntimeExports.jsx("div",{className:"flex flex-col justify-center flex-1 w-full max-w-md mx-auto",children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"mb-5 sm:mb-8",children:[jsxRuntimeExports.jsx("h1",{className:"mb-2 font-semibold text-gray-800 text-title-sm dark:text-white/90 sm:text-title-md",children:"Sign In"}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Enter your email and password to sign in!"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("form",{onSubmit:vn,children:jsxRuntimeExports.jsxs("div",{className:"space-y-6",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs(Label,{children:["Email ",jsxRuntimeExports.jsx("span",{className:"text-error-500",children:"*"})," "]}),jsxRuntimeExports.jsx(Input,{placeholder:"info@gmail.com",value:on,onChange:yn=>cn(yn.target.value)})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs(Label,{children:["Password ",jsxRuntimeExports.jsx("span",{className:"text-error-500",children:"*"})," "]}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx(Input,{type:ln?"text":"password",placeholder:"Enter your password",value:un,onChange:yn=>pn(yn.target.value)}),jsxRuntimeExports.jsx("span",{onClick:()=>rn(!ln),className:"absolute z-30 -translate-y-1/2 cursor-pointer right-4 top-1/2",children:ln?jsxRuntimeExports.jsx(SvgEye,{className:"fill-gray-500 dark:fill-gray-400 size-5"}):jsxRuntimeExports.jsx(SvgEyeClose,{className:"fill-gray-500 dark:fill-gray-400 size-5"})})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx(Checkbox,{checked:an,onChange:sn}),jsxRuntimeExports.jsx("span",{className:"block font-normal text-gray-700 text-theme-sm dark:text-gray-400",children:"Keep me logged in"})]}),jsxRuntimeExports.jsx(Link,{to:"/reset-password",className:"text-sm text-brand-500 hover:text-brand-600 dark:text-brand-400",children:"Forgot password?"})]}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("button",{type:"submit",className:"inline-flex items-center justify-center gap-2 rounded-lg transition w-full px-4 py-3 text-sm bg-brand-500 text-white shadow-theme-xs hover:bg-brand-600 disabled:bg-brand-300 disabled:cursor-not-allowed disabled:opacity-50",disabled:fn,children:fn?"Signing in...":"Sign in"})})]})}),jsxRuntimeExports.jsx("div",{className:"mt-5",children:jsxRuntimeExports.jsxs("p",{className:"text-sm font-normal text-center text-gray-700 dark:text-gray-400 sm:text-start",children:["Don't have an account? ","",jsxRuntimeExports.jsx(Link,{to:"/signup",className:"text-brand-500 hover:text-brand-600 dark:text-brand-400",children:"Sign Up"})]})})]})]})})})}function SignIn(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"React.js SignIn Dashboard | TailAdmin - Next.js Admin Dashboard Template",description:"This is React.js SignIn Tables Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),jsxRuntimeExports.jsx(AuthLayout,{children:jsxRuntimeExports.jsx(SignInForm,{})})]})}function SignUpForm(){const[ln,rn]=reactExports.useState(!1),[an,sn]=reactExports.useState(!1);return jsxRuntimeExports.jsx("div",{className:"flex flex-col flex-1 w-full overflow-y-auto lg:w-1/2 no-scrollbar",children:jsxRuntimeExports.jsx("div",{className:"flex flex-col justify-center flex-1 w-full max-w-md mx-auto",children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"mb-5 sm:mb-8",children:[jsxRuntimeExports.jsx("h1",{className:"mb-2 font-semibold text-gray-800 text-title-sm dark:text-white/90 sm:text-title-md",children:"Sign Up"}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Enter your email and password to sign up!"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("form",{children:jsxRuntimeExports.jsxs("div",{className:"space-y-5",children:[jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-5 sm:grid-cols-2",children:[jsxRuntimeExports.jsxs("div",{className:"sm:col-span-1",children:[jsxRuntimeExports.jsxs(Label,{children:["First Name",jsxRuntimeExports.jsx("span",{className:"text-error-500",children:"*"})]}),jsxRuntimeExports.jsx(Input,{type:"text",id:"fname",name:"fname",placeholder:"Enter your first name"})]}),jsxRuntimeExports.jsxs("div",{className:"sm:col-span-1",children:[jsxRuntimeExports.jsxs(Label,{children:["Last Name",jsxRuntimeExports.jsx("span",{className:"text-error-500",children:"*"})]}),jsxRuntimeExports.jsx(Input,{type:"text",id:"lname",name:"lname",placeholder:"Enter your last name"})]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs(Label,{children:["Email",jsxRuntimeExports.jsx("span",{className:"text-error-500",children:"*"})]}),jsxRuntimeExports.jsx(Input,{type:"email",id:"email",name:"email",placeholder:"Enter your email"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs(Label,{children:["Password",jsxRuntimeExports.jsx("span",{className:"text-error-500",children:"*"})]}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx(Input,{placeholder:"Enter your password",type:ln?"text":"password"}),jsxRuntimeExports.jsx("span",{onClick:()=>rn(!ln),className:"absolute z-30 -translate-y-1/2 cursor-pointer right-4 top-1/2",children:ln?jsxRuntimeExports.jsx(SvgEye,{className:"fill-gray-500 dark:fill-gray-400 size-5"}):jsxRuntimeExports.jsx(SvgEyeClose,{className:"fill-gray-500 dark:fill-gray-400 size-5"})})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx(Checkbox,{className:"w-5 h-5",checked:an,onChange:sn}),jsxRuntimeExports.jsxs("p",{className:"inline-block font-normal text-gray-500 dark:text-gray-400",children:["By creating an account means you agree to the"," ",jsxRuntimeExports.jsx("span",{className:"text-gray-800 dark:text-white/90",children:"Terms and Conditions,"})," ","and our"," ",jsxRuntimeExports.jsx("span",{className:"text-gray-800 dark:text-white",children:"Privacy Policy"})]})]}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("button",{className:"flex items-center justify-center w-full px-4 py-3 text-sm font-medium text-white transition rounded-lg bg-brand-500 shadow-theme-xs hover:bg-brand-600",children:"Sign Up"})})]})}),jsxRuntimeExports.jsx("div",{className:"mt-5",children:jsxRuntimeExports.jsxs("p",{className:"text-sm font-normal text-center text-gray-700 dark:text-gray-400 sm:text-start",children:["Already have an account? ","",jsxRuntimeExports.jsx(Link,{to:"/signin",className:"text-brand-500 hover:text-brand-600 dark:text-brand-400",children:"Sign In"})]})})]})]})})})}function SignUp(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"React.js SignUp Dashboard | TailAdmin - Next.js Admin Dashboard Template",description:"This is React.js SignUp Tables Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),jsxRuntimeExports.jsx(AuthLayout,{children:jsxRuntimeExports.jsx(SignUpForm,{})})]})}function NotFound(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"React.js 404 Dashboard | TailAdmin - React.js Admin Dashboard Template",description:"This is React.js 404 Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),jsxRuntimeExports.jsxs("div",{className:"relative flex flex-col items-center justify-center min-h-screen p-6 overflow-hidden z-1",children:[jsxRuntimeExports.jsx(GridShape,{}),jsxRuntimeExports.jsxs("div",{className:"mx-auto w-full max-w-[242px] text-center sm:max-w-[472px]",children:[jsxRuntimeExports.jsx("h1",{className:"mb-8 font-bold text-gray-800 text-title-md dark:text-white/90 xl:text-title-2xl",children:"ERROR"}),jsxRuntimeExports.jsx("img",{src:"/images/error/404.svg",alt:"404",className:"dark:hidden"}),jsxRuntimeExports.jsx("img",{src:"/images/error/404-dark.svg",alt:"404",className:"hidden dark:block"}),jsxRuntimeExports.jsx("p",{className:"mt-10 mb-6 text-base text-gray-700 dark:text-gray-400 sm:text-lg",children:"We can’t seem to find the page you are looking for!"}),jsxRuntimeExports.jsx(Link,{to:"/",className:"inline-flex items-center justify-center rounded-lg border border-gray-300 bg-white px-5 py-3.5 text-sm font-medium text-gray-700 shadow-theme-xs hover:bg-gray-50 hover:text-gray-800 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/[0.03] dark:hover:text-gray-200",children:"Back to Home Page"})]}),jsxRuntimeExports.jsxs("p",{className:"absolute text-sm text-center text-gray-500 -translate-x-1/2 bottom-6 left-1/2 dark:text-gray-400",children:["© ",new Date().getFullYear()," - TailAdmin"]})]})]})}const PageBreadcrumb=({pageTitle:ln})=>jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 mb-6",children:[jsxRuntimeExports.jsx("h2",{className:"text-xl font-semibold text-gray-800 dark:text-white/90","x-text":"pageName",children:ln}),jsxRuntimeExports.jsx("nav",{children:jsxRuntimeExports.jsxs("ol",{className:"flex items-center gap-1.5",children:[jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(Link,{className:"inline-flex items-center gap-1.5 text-sm text-gray-500 dark:text-gray-400",to:"/",children:["Home",jsxRuntimeExports.jsx("svg",{className:"stroke-current",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M6.0765 12.667L10.2432 8.50033L6.0765 4.33366",stroke:"",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),jsxRuntimeExports.jsx("li",{className:"text-sm text-gray-800 dark:text-white/90",children:ln})]})})]}),useModal=(ln=!1)=>{const[rn,an]=reactExports.useState(ln),sn=reactExports.useCallback(()=>an(!0),[]),on=reactExports.useCallback(()=>an(!1),[]),cn=reactExports.useCallback(()=>an(un=>!un),[]);return{isOpen:rn,openModal:sn,closeModal:on,toggleModal:cn}},Modal=({isOpen:ln,onClose:rn,children:an,className:sn,showCloseButton:on=!0,isFullscreen:cn=!1})=>{const un=reactExports.useRef(null);if(reactExports.useEffect(()=>{const fn=mn=>{mn.key==="Escape"&&rn()};return ln&&document.addEventListener("keydown",fn),()=>{document.removeEventListener("keydown",fn)}},[ln,rn]),reactExports.useEffect(()=>(ln?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[ln]),!ln)return null;const pn=cn?"w-full h-full":"relative w-full rounded-3xl bg-white  dark:bg-gray-900";return jsxRuntimeExports.jsxs("div",{className:"fixed inset-0 flex items-center justify-center overflow-y-auto modal z-99999",children:[!cn&&jsxRuntimeExports.jsx("div",{className:"fixed inset-0 h-full w-full bg-gray-400/50 backdrop-blur-[32px]",onClick:rn}),jsxRuntimeExports.jsxs("div",{ref:un,className:`${pn}  ${sn}`,onClick:fn=>fn.stopPropagation(),children:[on&&jsxRuntimeExports.jsx("button",{onClick:rn,className:"absolute right-3 top-3 z-999 flex h-9.5 w-9.5 items-center justify-center rounded-full bg-gray-100 text-gray-400 transition-colors hover:bg-gray-200 hover:text-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white sm:right-6 sm:top-6 sm:h-11 sm:w-11",children:jsxRuntimeExports.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.04289 16.5413C5.65237 16.9318 5.65237 17.565 6.04289 17.9555C6.43342 18.346 7.06658 18.346 7.45711 17.9555L11.9987 13.4139L16.5408 17.956C16.9313 18.3466 17.5645 18.3466 17.955 17.956C18.3455 17.5655 18.3455 16.9323 17.955 16.5418L13.4129 11.9997L17.955 7.4576C18.3455 7.06707 18.3455 6.43391 17.955 6.04338C17.5645 5.65286 16.9313 5.65286 16.5408 6.04338L11.9987 10.5855L7.45711 6.0439C7.06658 5.65338 6.43342 5.65338 6.04289 6.0439C5.65237 6.43442 5.65237 7.06759 6.04289 7.45811L10.5845 11.9997L6.04289 16.5413Z",fill:"currentColor"})})}),jsxRuntimeExports.jsx("div",{children:an})]})]})},Button=({children:ln,size:rn="md",variant:an="primary",startIcon:sn,endIcon:on,onClick:cn,className:un="",disabled:pn=!1})=>{const fn={sm:"px-4 py-3 text-sm",md:"px-5 py-3.5 text-sm"},mn={primary:"bg-brand-500 text-white shadow-theme-xs hover:bg-brand-600 disabled:bg-brand-300",outline:"bg-white text-gray-700 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 dark:bg-gray-800 dark:text-gray-400 dark:ring-gray-700 dark:hover:bg-white/[0.03] dark:hover:text-gray-300"};return jsxRuntimeExports.jsxs("button",{className:`inline-flex items-center justify-center gap-2 rounded-lg transition ${un} ${fn[rn]} ${mn[an]} ${pn?"cursor-not-allowed opacity-50":""}`,onClick:cn,disabled:pn,children:[sn&&jsxRuntimeExports.jsx("span",{className:"flex items-center",children:sn}),ln,on&&jsxRuntimeExports.jsx("span",{className:"flex items-center",children:on})]})};function UserMetaCard(){const{isOpen:ln,openModal:rn,closeModal:an}=useModal(),sn=()=>{console.log("Saving changes..."),an()};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"p-5 border border-gray-200 rounded-2xl dark:border-gray-800 lg:p-6",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-5 xl:flex-row xl:items-center xl:justify-between",children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center w-full gap-6 xl:flex-row",children:[jsxRuntimeExports.jsx("div",{className:"w-20 h-20 overflow-hidden border border-gray-200 rounded-full dark:border-gray-800",children:jsxRuntimeExports.jsx("img",{src:"/images/user/owner.jpg",alt:"user"})}),jsxRuntimeExports.jsxs("div",{className:"order-3 xl:order-2",children:[jsxRuntimeExports.jsx("h4",{className:"mb-2 text-lg font-semibold text-center text-gray-800 dark:text-white/90 xl:text-left",children:"Musharof Chowdhury"}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center gap-1 text-center xl:flex-row xl:gap-3 xl:text-left",children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Team Manager"}),jsxRuntimeExports.jsx("div",{className:"hidden h-3.5 w-px bg-gray-300 dark:bg-gray-700 xl:block"}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Arizona, United States"})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center order-2 gap-2 grow xl:order-3 xl:justify-end",children:[jsxRuntimeExports.jsx("a",{href:"https://www.facebook.com/PimjoHQ",target:"_blank",rel:"noopener",className:"flex h-11 w-11 items-center justify-center gap-2 rounded-full border border-gray-300 bg-white text-sm font-medium text-gray-700 shadow-theme-xs hover:bg-gray-50 hover:text-gray-800 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/[0.03] dark:hover:text-gray-200",children:jsxRuntimeExports.jsx("svg",{className:"fill-current",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M11.6666 11.2503H13.7499L14.5833 7.91699H11.6666V6.25033C11.6666 5.39251 11.6666 4.58366 13.3333 4.58366H14.5833V1.78374C14.3118 1.7477 13.2858 1.66699 12.2023 1.66699C9.94025 1.66699 8.33325 3.04771 8.33325 5.58342V7.91699H5.83325V11.2503H8.33325V18.3337H11.6666V11.2503Z",fill:""})})}),jsxRuntimeExports.jsx("a",{href:"https://x.com/PimjoHQ",target:"_blank",rel:"noopener",className:"flex h-11 w-11 items-center justify-center gap-2 rounded-full border border-gray-300 bg-white text-sm font-medium text-gray-700 shadow-theme-xs hover:bg-gray-50 hover:text-gray-800 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/[0.03] dark:hover:text-gray-200",children:jsxRuntimeExports.jsx("svg",{className:"fill-current",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M15.1708 1.875H17.9274L11.9049 8.75833L18.9899 18.125H13.4424L9.09742 12.4442L4.12578 18.125H1.36745L7.80912 10.7625L1.01245 1.875H6.70078L10.6283 7.0675L15.1708 1.875ZM14.2033 16.475H15.7308L5.87078 3.43833H4.23162L14.2033 16.475Z",fill:""})})}),jsxRuntimeExports.jsx("a",{href:"https://www.linkedin.com/company/pimjo",target:"_blank",rel:"noopener",className:"flex h-11 w-11 items-center justify-center gap-2 rounded-full border border-gray-300 bg-white text-sm font-medium text-gray-700 shadow-theme-xs hover:bg-gray-50 hover:text-gray-800 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/[0.03] dark:hover:text-gray-200",children:jsxRuntimeExports.jsx("svg",{className:"fill-current",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.78381 4.16645C5.78351 4.84504 5.37181 5.45569 4.74286 5.71045C4.11391 5.96521 3.39331 5.81321 2.92083 5.32613C2.44836 4.83904 2.31837 4.11413 2.59216 3.49323C2.86596 2.87233 3.48886 2.47942 4.16715 2.49978C5.06804 2.52682 5.78422 3.26515 5.78381 4.16645ZM5.83381 7.06645H2.50048V17.4998H5.83381V7.06645ZM11.1005 7.06645H7.78381V17.4998H11.0672V12.0248C11.0672 8.97475 15.0422 8.69142 15.0422 12.0248V17.4998H18.3338V10.8914C18.3338 5.74978 12.4505 5.94145 11.0672 8.46642L11.1005 7.06645Z",fill:""})})}),jsxRuntimeExports.jsx("a",{href:"https://instagram.com/PimjoHQ",target:"_blank",rel:"noopener",className:"flex h-11 w-11 items-center justify-center gap-2 rounded-full border border-gray-300 bg-white text-sm font-medium text-gray-700 shadow-theme-xs hover:bg-gray-50 hover:text-gray-800 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/[0.03] dark:hover:text-gray-200",children:jsxRuntimeExports.jsx("svg",{className:"fill-current",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M10.8567 1.66699C11.7946 1.66854 12.2698 1.67351 12.6805 1.68573L12.8422 1.69102C13.0291 1.69766 13.2134 1.70599 13.4357 1.71641C14.3224 1.75738 14.9273 1.89766 15.4586 2.10391C16.0078 2.31572 16.4717 2.60183 16.9349 3.06503C17.3974 3.52822 17.6836 3.99349 17.8961 4.54141C18.1016 5.07197 18.2419 5.67753 18.2836 6.56433C18.2935 6.78655 18.3015 6.97088 18.3081 7.15775L18.3133 7.31949C18.3255 7.73011 18.3311 8.20543 18.3328 9.1433L18.3335 9.76463C18.3336 9.84055 18.3336 9.91888 18.3336 9.99972L18.3335 10.2348L18.333 10.8562C18.3314 11.794 18.3265 12.2694 18.3142 12.68L18.3089 12.8417C18.3023 13.0286 18.294 13.213 18.2836 13.4351C18.2426 14.322 18.1016 14.9268 17.8961 15.458C17.6842 16.0074 17.3974 16.4713 16.9349 16.9345C16.4717 17.397 16.0057 17.6831 15.4586 17.8955C14.9273 18.1011 14.3224 18.2414 13.4357 18.2831C13.2134 18.293 13.0291 18.3011 12.8422 18.3076L12.6805 18.3128C12.2698 18.3251 11.7946 18.3306 10.8567 18.3324L10.2353 18.333C10.1594 18.333 10.0811 18.333 10.0002 18.333H9.76516L9.14375 18.3325C8.20591 18.331 7.7306 18.326 7.31997 18.3137L7.15824 18.3085C6.97136 18.3018 6.78703 18.2935 6.56481 18.2831C5.67801 18.2421 5.07384 18.1011 4.5419 17.8955C3.99328 17.6838 3.5287 17.397 3.06551 16.9345C2.60231 16.4713 2.3169 16.0053 2.1044 15.458C1.89815 14.9268 1.75856 14.322 1.7169 13.4351C1.707 13.213 1.69892 13.0286 1.69238 12.8417L1.68714 12.68C1.67495 12.2694 1.66939 11.794 1.66759 10.8562L1.66748 9.1433C1.66903 8.20543 1.67399 7.73011 1.68621 7.31949L1.69151 7.15775C1.69815 6.97088 1.70648 6.78655 1.7169 6.56433C1.75786 5.67683 1.89815 5.07266 2.1044 4.54141C2.3162 3.9928 2.60231 3.52822 3.06551 3.06503C3.5287 2.60183 3.99398 2.31641 4.5419 2.10391C5.07315 1.89766 5.67731 1.75808 6.56481 1.71641C6.78703 1.70652 6.97136 1.69844 7.15824 1.6919L7.31997 1.68666C7.7306 1.67446 8.20591 1.6689 9.14375 1.6671L10.8567 1.66699ZM10.0002 5.83308C7.69781 5.83308 5.83356 7.69935 5.83356 9.99972C5.83356 12.3021 7.69984 14.1664 10.0002 14.1664C12.3027 14.1664 14.1669 12.3001 14.1669 9.99972C14.1669 7.69732 12.3006 5.83308 10.0002 5.83308ZM10.0002 7.49974C11.381 7.49974 12.5002 8.61863 12.5002 9.99972C12.5002 11.3805 11.3813 12.4997 10.0002 12.4997C8.6195 12.4997 7.50023 11.3809 7.50023 9.99972C7.50023 8.61897 8.61908 7.49974 10.0002 7.49974ZM14.3752 4.58308C13.8008 4.58308 13.3336 5.04967 13.3336 5.62403C13.3336 6.19841 13.8002 6.66572 14.3752 6.66572C14.9496 6.66572 15.4169 6.19913 15.4169 5.62403C15.4169 5.04967 14.9488 4.58236 14.3752 4.58308Z",fill:""})})})]})]}),jsxRuntimeExports.jsxs("button",{onClick:rn,className:"flex w-full items-center justify-center gap-2 rounded-full border border-gray-300 bg-white px-4 py-3 text-sm font-medium text-gray-700 shadow-theme-xs hover:bg-gray-50 hover:text-gray-800 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/[0.03] dark:hover:text-gray-200 lg:inline-flex lg:w-auto",children:[jsxRuntimeExports.jsx("svg",{className:"fill-current",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0911 2.78206C14.2125 1.90338 12.7878 1.90338 11.9092 2.78206L4.57524 10.116C4.26682 10.4244 4.0547 10.8158 3.96468 11.2426L3.31231 14.3352C3.25997 14.5833 3.33653 14.841 3.51583 15.0203C3.69512 15.1996 3.95286 15.2761 4.20096 15.2238L7.29355 14.5714C7.72031 14.4814 8.11172 14.2693 8.42013 13.9609L15.7541 6.62695C16.6327 5.74827 16.6327 4.32365 15.7541 3.44497L15.0911 2.78206ZM12.9698 3.84272C13.2627 3.54982 13.7376 3.54982 14.0305 3.84272L14.6934 4.50563C14.9863 4.79852 14.9863 5.2734 14.6934 5.56629L14.044 6.21573L12.3204 4.49215L12.9698 3.84272ZM11.2597 5.55281L5.6359 11.1766C5.53309 11.2794 5.46238 11.4099 5.43238 11.5522L5.01758 13.5185L6.98394 13.1037C7.1262 13.0737 7.25666 13.003 7.35947 12.9002L12.9833 7.27639L11.2597 5.55281Z",fill:""})}),"Edit"]})]})}),jsxRuntimeExports.jsx(Modal,{isOpen:ln,onClose:an,className:"max-w-[700px] m-4",children:jsxRuntimeExports.jsxs("div",{className:"no-scrollbar relative w-full max-w-[700px] overflow-y-auto rounded-3xl bg-white p-4 dark:bg-gray-900 lg:p-11",children:[jsxRuntimeExports.jsxs("div",{className:"px-2 pr-14",children:[jsxRuntimeExports.jsx("h4",{className:"mb-2 text-2xl font-semibold text-gray-800 dark:text-white/90",children:"Edit Personal Information"}),jsxRuntimeExports.jsx("p",{className:"mb-6 text-sm text-gray-500 dark:text-gray-400 lg:mb-7",children:"Update your details to keep your profile up-to-date."})]}),jsxRuntimeExports.jsxs("form",{className:"flex flex-col",children:[jsxRuntimeExports.jsxs("div",{className:"custom-scrollbar h-[450px] overflow-y-auto px-2 pb-3",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h5",{className:"mb-5 text-lg font-medium text-gray-800 dark:text-white/90 lg:mb-6",children:"Social Links"}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-x-6 gap-y-5 lg:grid-cols-2",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Facebook"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"https://www.facebook.com/PimjoHQ"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"X.com"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"https://x.com/PimjoHQ"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Linkedin"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"https://www.linkedin.com/company/pimjo"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Instagram"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"https://instagram.com/PimjoHQ"})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"mt-7",children:[jsxRuntimeExports.jsx("h5",{className:"mb-5 text-lg font-medium text-gray-800 dark:text-white/90 lg:mb-6",children:"Personal Information"}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-x-6 gap-y-5 lg:grid-cols-2",children:[jsxRuntimeExports.jsxs("div",{className:"col-span-2 lg:col-span-1",children:[jsxRuntimeExports.jsx(Label,{children:"First Name"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"Musharof"})]}),jsxRuntimeExports.jsxs("div",{className:"col-span-2 lg:col-span-1",children:[jsxRuntimeExports.jsx(Label,{children:"Last Name"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"Chowdhury"})]}),jsxRuntimeExports.jsxs("div",{className:"col-span-2 lg:col-span-1",children:[jsxRuntimeExports.jsx(Label,{children:"Email Address"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"randomuser@pimjo.com"})]}),jsxRuntimeExports.jsxs("div",{className:"col-span-2 lg:col-span-1",children:[jsxRuntimeExports.jsx(Label,{children:"Phone"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"+09 363 398 46"})]}),jsxRuntimeExports.jsxs("div",{className:"col-span-2",children:[jsxRuntimeExports.jsx(Label,{children:"Bio"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"Team Manager"})]})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 px-2 mt-6 lg:justify-end",children:[jsxRuntimeExports.jsx(Button,{size:"sm",variant:"outline",onClick:an,children:"Close"}),jsxRuntimeExports.jsx(Button,{size:"sm",onClick:sn,children:"Save Changes"})]})]})]})})]})}function UserInfoCard(){const{isOpen:ln,openModal:rn,closeModal:an}=useModal(),sn=()=>{console.log("Saving changes..."),an()};return jsxRuntimeExports.jsxs("div",{className:"p-5 border border-gray-200 rounded-2xl dark:border-gray-800 lg:p-6",children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-6 lg:flex-row lg:items-start lg:justify-between",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h4",{className:"text-lg font-semibold text-gray-800 dark:text-white/90 lg:mb-6",children:"Personal Information"}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2 lg:gap-7 2xl:gap-x-32",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"mb-2 text-xs leading-normal text-gray-500 dark:text-gray-400",children:"First Name"}),jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"Musharof"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"mb-2 text-xs leading-normal text-gray-500 dark:text-gray-400",children:"Last Name"}),jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"Chowdhury"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"mb-2 text-xs leading-normal text-gray-500 dark:text-gray-400",children:"Email address"}),jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"randomuser@pimjo.com"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"mb-2 text-xs leading-normal text-gray-500 dark:text-gray-400",children:"Phone"}),jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"+09 363 398 46"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"mb-2 text-xs leading-normal text-gray-500 dark:text-gray-400",children:"Bio"}),jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"Team Manager"})]})]})]}),jsxRuntimeExports.jsxs("button",{onClick:rn,className:"flex w-full items-center justify-center gap-2 rounded-full border border-gray-300 bg-white px-4 py-3 text-sm font-medium text-gray-700 shadow-theme-xs hover:bg-gray-50 hover:text-gray-800 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/[0.03] dark:hover:text-gray-200 lg:inline-flex lg:w-auto",children:[jsxRuntimeExports.jsx("svg",{className:"fill-current",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0911 2.78206C14.2125 1.90338 12.7878 1.90338 11.9092 2.78206L4.57524 10.116C4.26682 10.4244 4.0547 10.8158 3.96468 11.2426L3.31231 14.3352C3.25997 14.5833 3.33653 14.841 3.51583 15.0203C3.69512 15.1996 3.95286 15.2761 4.20096 15.2238L7.29355 14.5714C7.72031 14.4814 8.11172 14.2693 8.42013 13.9609L15.7541 6.62695C16.6327 5.74827 16.6327 4.32365 15.7541 3.44497L15.0911 2.78206ZM12.9698 3.84272C13.2627 3.54982 13.7376 3.54982 14.0305 3.84272L14.6934 4.50563C14.9863 4.79852 14.9863 5.2734 14.6934 5.56629L14.044 6.21573L12.3204 4.49215L12.9698 3.84272ZM11.2597 5.55281L5.6359 11.1766C5.53309 11.2794 5.46238 11.4099 5.43238 11.5522L5.01758 13.5185L6.98394 13.1037C7.1262 13.0737 7.25666 13.003 7.35947 12.9002L12.9833 7.27639L11.2597 5.55281Z",fill:""})}),"Edit"]})]}),jsxRuntimeExports.jsx(Modal,{isOpen:ln,onClose:an,className:"max-w-[700px] m-4",children:jsxRuntimeExports.jsxs("div",{className:"no-scrollbar relative w-full max-w-[700px] overflow-y-auto rounded-3xl bg-white p-4 dark:bg-gray-900 lg:p-11",children:[jsxRuntimeExports.jsxs("div",{className:"px-2 pr-14",children:[jsxRuntimeExports.jsx("h4",{className:"mb-2 text-2xl font-semibold text-gray-800 dark:text-white/90",children:"Edit Personal Information"}),jsxRuntimeExports.jsx("p",{className:"mb-6 text-sm text-gray-500 dark:text-gray-400 lg:mb-7",children:"Update your details to keep your profile up-to-date."})]}),jsxRuntimeExports.jsxs("form",{className:"flex flex-col",children:[jsxRuntimeExports.jsxs("div",{className:"custom-scrollbar h-[450px] overflow-y-auto px-2 pb-3",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h5",{className:"mb-5 text-lg font-medium text-gray-800 dark:text-white/90 lg:mb-6",children:"Social Links"}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-x-6 gap-y-5 lg:grid-cols-2",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Facebook"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"https://www.facebook.com/PimjoHQ"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"X.com"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"https://x.com/PimjoHQ"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Linkedin"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"https://www.linkedin.com/company/pimjo"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Instagram"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"https://instagram.com/PimjoHQ"})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"mt-7",children:[jsxRuntimeExports.jsx("h5",{className:"mb-5 text-lg font-medium text-gray-800 dark:text-white/90 lg:mb-6",children:"Personal Information"}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-x-6 gap-y-5 lg:grid-cols-2",children:[jsxRuntimeExports.jsxs("div",{className:"col-span-2 lg:col-span-1",children:[jsxRuntimeExports.jsx(Label,{children:"First Name"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"Musharof"})]}),jsxRuntimeExports.jsxs("div",{className:"col-span-2 lg:col-span-1",children:[jsxRuntimeExports.jsx(Label,{children:"Last Name"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"Chowdhury"})]}),jsxRuntimeExports.jsxs("div",{className:"col-span-2 lg:col-span-1",children:[jsxRuntimeExports.jsx(Label,{children:"Email Address"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"randomuser@pimjo.com"})]}),jsxRuntimeExports.jsxs("div",{className:"col-span-2 lg:col-span-1",children:[jsxRuntimeExports.jsx(Label,{children:"Phone"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"+09 363 398 46"})]}),jsxRuntimeExports.jsxs("div",{className:"col-span-2",children:[jsxRuntimeExports.jsx(Label,{children:"Bio"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"Team Manager"})]})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 px-2 mt-6 lg:justify-end",children:[jsxRuntimeExports.jsx(Button,{size:"sm",variant:"outline",onClick:an,children:"Close"}),jsxRuntimeExports.jsx(Button,{size:"sm",onClick:sn,children:"Save Changes"})]})]})]})})]})}function UserAddressCard(){const{isOpen:ln,openModal:rn,closeModal:an}=useModal(),sn=()=>{console.log("Saving changes..."),an()};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"p-5 border border-gray-200 rounded-2xl dark:border-gray-800 lg:p-6",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-6 lg:flex-row lg:items-start lg:justify-between",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h4",{className:"text-lg font-semibold text-gray-800 dark:text-white/90 lg:mb-6",children:"Address"}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2 lg:gap-7 2xl:gap-x-32",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"mb-2 text-xs leading-normal text-gray-500 dark:text-gray-400",children:"Country"}),jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"United States."})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"mb-2 text-xs leading-normal text-gray-500 dark:text-gray-400",children:"City/State"}),jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"Phoenix, Arizona, United States."})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"mb-2 text-xs leading-normal text-gray-500 dark:text-gray-400",children:"Postal Code"}),jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"ERT 2489"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"mb-2 text-xs leading-normal text-gray-500 dark:text-gray-400",children:"TAX ID"}),jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"AS4568384"})]})]})]}),jsxRuntimeExports.jsxs("button",{onClick:rn,className:"flex w-full items-center justify-center gap-2 rounded-full border border-gray-300 bg-white px-4 py-3 text-sm font-medium text-gray-700 shadow-theme-xs hover:bg-gray-50 hover:text-gray-800 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/[0.03] dark:hover:text-gray-200 lg:inline-flex lg:w-auto",children:[jsxRuntimeExports.jsx("svg",{className:"fill-current",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0911 2.78206C14.2125 1.90338 12.7878 1.90338 11.9092 2.78206L4.57524 10.116C4.26682 10.4244 4.0547 10.8158 3.96468 11.2426L3.31231 14.3352C3.25997 14.5833 3.33653 14.841 3.51583 15.0203C3.69512 15.1996 3.95286 15.2761 4.20096 15.2238L7.29355 14.5714C7.72031 14.4814 8.11172 14.2693 8.42013 13.9609L15.7541 6.62695C16.6327 5.74827 16.6327 4.32365 15.7541 3.44497L15.0911 2.78206ZM12.9698 3.84272C13.2627 3.54982 13.7376 3.54982 14.0305 3.84272L14.6934 4.50563C14.9863 4.79852 14.9863 5.2734 14.6934 5.56629L14.044 6.21573L12.3204 4.49215L12.9698 3.84272ZM11.2597 5.55281L5.6359 11.1766C5.53309 11.2794 5.46238 11.4099 5.43238 11.5522L5.01758 13.5185L6.98394 13.1037C7.1262 13.0737 7.25666 13.003 7.35947 12.9002L12.9833 7.27639L11.2597 5.55281Z",fill:""})}),"Edit"]})]})}),jsxRuntimeExports.jsx(Modal,{isOpen:ln,onClose:an,className:"max-w-[700px] m-4",children:jsxRuntimeExports.jsxs("div",{className:"relative w-full p-4 overflow-y-auto bg-white no-scrollbar rounded-3xl dark:bg-gray-900 lg:p-11",children:[jsxRuntimeExports.jsxs("div",{className:"px-2 pr-14",children:[jsxRuntimeExports.jsx("h4",{className:"mb-2 text-2xl font-semibold text-gray-800 dark:text-white/90",children:"Edit Address"}),jsxRuntimeExports.jsx("p",{className:"mb-6 text-sm text-gray-500 dark:text-gray-400 lg:mb-7",children:"Update your details to keep your profile up-to-date."})]}),jsxRuntimeExports.jsxs("form",{className:"flex flex-col",children:[jsxRuntimeExports.jsx("div",{className:"px-2 overflow-y-auto custom-scrollbar",children:jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-x-6 gap-y-5 lg:grid-cols-2",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Country"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"United States"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"City/State"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"Arizona, United States."})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Postal Code"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"ERT 2489"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"TAX ID"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"AS4568384"})]})]})}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 px-2 mt-6 lg:justify-end",children:[jsxRuntimeExports.jsx(Button,{size:"sm",variant:"outline",onClick:an,children:"Close"}),jsxRuntimeExports.jsx(Button,{size:"sm",onClick:sn,children:"Save Changes"})]})]})]})})]})}function UserProfiles(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"React.js Profile Dashboard | TailAdmin - Next.js Admin Dashboard Template",description:"This is React.js Profile Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),jsxRuntimeExports.jsx(PageBreadcrumb,{pageTitle:"Profile"}),jsxRuntimeExports.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 dark:border-gray-800 dark:bg-white/[0.03] lg:p-6",children:[jsxRuntimeExports.jsx("h3",{className:"mb-5 text-lg font-semibold text-gray-800 dark:text-white/90 lg:mb-7",children:"Profile"}),jsxRuntimeExports.jsxs("div",{className:"space-y-6",children:[jsxRuntimeExports.jsx(UserMetaCard,{}),jsxRuntimeExports.jsx(UserInfoCard,{}),jsxRuntimeExports.jsx(UserAddressCard,{})]})]})]})}const ComponentCard=({title:ln,children:rn,className:an="",desc:sn=""})=>jsxRuntimeExports.jsxs("div",{className:`rounded-2xl border border-gray-200 bg-white dark:border-gray-800 dark:bg-white/[0.03] ${an}`,children:[jsxRuntimeExports.jsxs("div",{className:"px-6 py-5",children:[jsxRuntimeExports.jsx("h3",{className:"text-base font-medium text-gray-800 dark:text-white/90",children:ln}),sn&&jsxRuntimeExports.jsx("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:sn})]}),jsxRuntimeExports.jsx("div",{className:"p-4 border-t border-gray-100 dark:border-gray-800 sm:p-6",children:jsxRuntimeExports.jsx("div",{className:"space-y-6",children:rn})})]});function FourIsToThree(){return jsxRuntimeExports.jsx("div",{className:"aspect-4/3 overflow-hidden rounded-lg",children:jsxRuntimeExports.jsx("iframe",{src:"https://www.youtube.com/embed/dQw4w9WgXcQ",title:"YouTube video",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"w-full h-full"})})}function OneIsToOne(){return jsxRuntimeExports.jsx("div",{className:"overflow-hidden rounded-lg aspect-square",children:jsxRuntimeExports.jsx("iframe",{src:"https://www.youtube.com/embed/dQw4w9WgXcQ",title:"YouTube video",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"w-full h-full"})})}function SixteenIsToNine(){return jsxRuntimeExports.jsx("div",{className:"aspect-4/3 overflow-hidden rounded-lg",children:jsxRuntimeExports.jsx("iframe",{src:"https://www.youtube.com/embed/dQw4w9WgXcQ",title:"YouTube video",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"w-full h-full"})})}function TwentyOneIsToNine(){return jsxRuntimeExports.jsx("div",{className:"aspect-21/9 overflow-hidden rounded-lg",children:jsxRuntimeExports.jsx("iframe",{src:"https://www.youtube.com/embed/dQw4w9WgXcQ",title:"YouTube video",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"w-full h-full"})})}function Videos(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"React.js Videos Tabs | TailAdmin - React.js Admin Dashboard Template",description:"This is React.js Videos page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),jsxRuntimeExports.jsx(PageBreadcrumb,{pageTitle:"Videos"}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-5 sm:gap-6 xl:grid-cols-2",children:[jsxRuntimeExports.jsxs("div",{className:"space-y-5 sm:space-y-6",children:[jsxRuntimeExports.jsx(ComponentCard,{title:"Video Ratio 16:9",children:jsxRuntimeExports.jsx(SixteenIsToNine,{})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Video Ratio 4:3",children:jsxRuntimeExports.jsx(FourIsToThree,{})})]}),jsxRuntimeExports.jsxs("div",{className:"space-y-5 sm:space-y-6",children:[jsxRuntimeExports.jsx(ComponentCard,{title:"Video Ratio 21:9",children:jsxRuntimeExports.jsx(TwentyOneIsToNine,{})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Video Ratio 1:1",children:jsxRuntimeExports.jsx(OneIsToOne,{})})]})]})]})}function ResponsiveImage(){return jsxRuntimeExports.jsx("div",{className:"relative",children:jsxRuntimeExports.jsx("div",{className:"overflow-hidden",children:jsxRuntimeExports.jsx("img",{src:"/images/grid-image/image-01.png",alt:"Cover",className:"w-full border border-gray-200 rounded-xl dark:border-gray-800"})})})}function TwoColumnImageGrid(){return jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-5 sm:grid-cols-2",children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("img",{src:"/images/grid-image/image-02.png",alt:" grid",className:"border border-gray-200 rounded-xl dark:border-gray-800"})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("img",{src:"/images/grid-image/image-03.png",alt:" grid",className:"border border-gray-200 rounded-xl dark:border-gray-800"})})]})}function ThreeColumnImageGrid(){return jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-5 sm:grid-cols-2 xl:grid-cols-3",children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("img",{src:"/images/grid-image/image-04.png",alt:" grid",className:"border border-gray-200 rounded-xl dark:border-gray-800"})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("img",{src:"/images/grid-image/image-05.png",alt:" grid",className:"border border-gray-200 rounded-xl dark:border-gray-800"})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("img",{src:"/images/grid-image/image-06.png",alt:" grid",className:"border border-gray-200 rounded-xl dark:border-gray-800"})})]})}function Images(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"React.js Images Dashboard | TailAdmin - React.js Admin Dashboard Template",description:"This is React.js Images page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),jsxRuntimeExports.jsx(PageBreadcrumb,{pageTitle:"Images"}),jsxRuntimeExports.jsxs("div",{className:"space-y-5 sm:space-y-6",children:[jsxRuntimeExports.jsx(ComponentCard,{title:"Responsive image",children:jsxRuntimeExports.jsx(ResponsiveImage,{})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Image in 2 Grid",children:jsxRuntimeExports.jsx(TwoColumnImageGrid,{})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Image in 3 Grid",children:jsxRuntimeExports.jsx(ThreeColumnImageGrid,{})})]})]})}const Alert=({variant:ln,title:rn,message:an,showLink:sn=!1,linkHref:on="#",linkText:cn="Learn more"})=>{const un={success:{container:"border-success-500 bg-success-50 dark:border-success-500/30 dark:bg-success-500/15",icon:"text-success-500"},error:{container:"border-error-500 bg-error-50 dark:border-error-500/30 dark:bg-error-500/15",icon:"text-error-500"},warning:{container:"border-warning-500 bg-warning-50 dark:border-warning-500/30 dark:bg-warning-500/15",icon:"text-warning-500"},info:{container:"border-blue-light-500 bg-blue-light-50 dark:border-blue-light-500/30 dark:bg-blue-light-500/15",icon:"text-blue-light-500"}},pn={success:jsxRuntimeExports.jsx("svg",{className:"fill-current",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.70186 12.0001C3.70186 7.41711 7.41711 3.70186 12.0001 3.70186C16.5831 3.70186 20.2984 7.41711 20.2984 12.0001C20.2984 16.5831 16.5831 20.2984 12.0001 20.2984C7.41711 20.2984 3.70186 16.5831 3.70186 12.0001ZM12.0001 1.90186C6.423 1.90186 1.90186 6.423 1.90186 12.0001C1.90186 17.5772 6.423 22.0984 12.0001 22.0984C17.5772 22.0984 22.0984 17.5772 22.0984 12.0001C22.0984 6.423 17.5772 1.90186 12.0001 1.90186ZM15.6197 10.7395C15.9712 10.388 15.9712 9.81819 15.6197 9.46672C15.2683 9.11525 14.6984 9.11525 14.347 9.46672L11.1894 12.6243L9.6533 11.0883C9.30183 10.7368 8.73198 10.7368 8.38051 11.0883C8.02904 11.4397 8.02904 12.0096 8.38051 12.3611L10.553 14.5335C10.7217 14.7023 10.9507 14.7971 11.1894 14.7971C11.428 14.7971 11.657 14.7023 11.8257 14.5335L15.6197 10.7395Z"})}),error:jsxRuntimeExports.jsx("svg",{className:"fill-current",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.3499 12.0004C20.3499 16.612 16.6115 20.3504 11.9999 20.3504C7.38832 20.3504 3.6499 16.612 3.6499 12.0004C3.6499 7.38881 7.38833 3.65039 11.9999 3.65039C16.6115 3.65039 20.3499 7.38881 20.3499 12.0004ZM11.9999 22.1504C17.6056 22.1504 22.1499 17.6061 22.1499 12.0004C22.1499 6.3947 17.6056 1.85039 11.9999 1.85039C6.39421 1.85039 1.8499 6.3947 1.8499 12.0004C1.8499 17.6061 6.39421 22.1504 11.9999 22.1504ZM13.0008 16.4753C13.0008 15.923 12.5531 15.4753 12.0008 15.4753L11.9998 15.4753C11.4475 15.4753 10.9998 15.923 10.9998 16.4753C10.9998 17.0276 11.4475 17.4753 11.9998 17.4753L12.0008 17.4753C12.5531 17.4753 13.0008 17.0276 13.0008 16.4753ZM11.9998 6.62898C12.414 6.62898 12.7498 6.96476 12.7498 7.37898L12.7498 13.0555C12.7498 13.4697 12.414 13.8055 11.9998 13.8055C11.5856 13.8055 11.2498 13.4697 11.2498 13.0555L11.2498 7.37898C11.2498 6.96476 11.5856 6.62898 11.9998 6.62898Z",fill:"#F04438"})}),warning:jsxRuntimeExports.jsx("svg",{className:"fill-current",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.6501 12.0001C3.6501 7.38852 7.38852 3.6501 12.0001 3.6501C16.6117 3.6501 20.3501 7.38852 20.3501 12.0001C20.3501 16.6117 16.6117 20.3501 12.0001 20.3501C7.38852 20.3501 3.6501 16.6117 3.6501 12.0001ZM12.0001 1.8501C6.39441 1.8501 1.8501 6.39441 1.8501 12.0001C1.8501 17.6058 6.39441 22.1501 12.0001 22.1501C17.6058 22.1501 22.1501 17.6058 22.1501 12.0001C22.1501 6.39441 17.6058 1.8501 12.0001 1.8501ZM10.9992 7.52517C10.9992 8.07746 11.4469 8.52517 11.9992 8.52517H12.0002C12.5525 8.52517 13.0002 8.07746 13.0002 7.52517C13.0002 6.97289 12.5525 6.52517 12.0002 6.52517H11.9992C11.4469 6.52517 10.9992 6.97289 10.9992 7.52517ZM12.0002 17.3715C11.586 17.3715 11.2502 17.0357 11.2502 16.6215V10.945C11.2502 10.5308 11.586 10.195 12.0002 10.195C12.4144 10.195 12.7502 10.5308 12.7502 10.945V16.6215C12.7502 17.0357 12.4144 17.3715 12.0002 17.3715Z",fill:""})}),info:jsxRuntimeExports.jsx("svg",{className:"fill-current",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.6501 11.9996C3.6501 7.38803 7.38852 3.64961 12.0001 3.64961C16.6117 3.64961 20.3501 7.38803 20.3501 11.9996C20.3501 16.6112 16.6117 20.3496 12.0001 20.3496C7.38852 20.3496 3.6501 16.6112 3.6501 11.9996ZM12.0001 1.84961C6.39441 1.84961 1.8501 6.39392 1.8501 11.9996C1.8501 17.6053 6.39441 22.1496 12.0001 22.1496C17.6058 22.1496 22.1501 17.6053 22.1501 11.9996C22.1501 6.39392 17.6058 1.84961 12.0001 1.84961ZM10.9992 7.52468C10.9992 8.07697 11.4469 8.52468 11.9992 8.52468H12.0002C12.5525 8.52468 13.0002 8.07697 13.0002 7.52468C13.0002 6.9724 12.5525 6.52468 12.0002 6.52468H11.9992C11.4469 6.52468 10.9992 6.9724 10.9992 7.52468ZM12.0002 17.371C11.586 17.371 11.2502 17.0352 11.2502 16.621V10.9445C11.2502 10.5303 11.586 10.1945 12.0002 10.1945C12.4144 10.1945 12.7502 10.5303 12.7502 10.9445V16.621C12.7502 17.0352 12.4144 17.371 12.0002 17.371Z",fill:""})})};return jsxRuntimeExports.jsx("div",{className:`rounded-xl border p-4 ${un[ln].container}`,children:jsxRuntimeExports.jsxs("div",{className:"flex items-start gap-3",children:[jsxRuntimeExports.jsx("div",{className:`-mt-0.5 ${un[ln].icon}`,children:pn[ln]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h4",{className:"mb-1 text-sm font-semibold text-gray-800 dark:text-white/90",children:rn}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:an}),sn&&jsxRuntimeExports.jsx(Link,{to:on,className:"inline-block mt-3 text-sm font-medium text-gray-500 underline dark:text-gray-400",children:cn})]})]})})};function Alerts(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"React.js Alerts Dashboard | TailAdmin - React.js Admin Dashboard Template",description:"This is React.js Alerts Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),jsxRuntimeExports.jsx(PageBreadcrumb,{pageTitle:"Alerts"}),jsxRuntimeExports.jsxs("div",{className:"space-y-5 sm:space-y-6",children:[jsxRuntimeExports.jsxs(ComponentCard,{title:"Success Alert",children:[jsxRuntimeExports.jsx(Alert,{variant:"success",title:"Success Message",message:"Be cautious when performing this action.",showLink:!0,linkHref:"/",linkText:"Learn more"}),jsxRuntimeExports.jsx(Alert,{variant:"success",title:"Success Message",message:"Be cautious when performing this action.",showLink:!1})]}),jsxRuntimeExports.jsxs(ComponentCard,{title:"Warning Alert",children:[jsxRuntimeExports.jsx(Alert,{variant:"warning",title:"Warning Message",message:"Be cautious when performing this action.",showLink:!0,linkHref:"/",linkText:"Learn more"}),jsxRuntimeExports.jsx(Alert,{variant:"warning",title:"Warning Message",message:"Be cautious when performing this action.",showLink:!1})]})," ",jsxRuntimeExports.jsxs(ComponentCard,{title:"Error Alert",children:[jsxRuntimeExports.jsx(Alert,{variant:"error",title:"Error Message",message:"Be cautious when performing this action.",showLink:!0,linkHref:"/",linkText:"Learn more"}),jsxRuntimeExports.jsx(Alert,{variant:"error",title:"Error Message",message:"Be cautious when performing this action.",showLink:!1})]})," ",jsxRuntimeExports.jsxs(ComponentCard,{title:"Info Alert",children:[jsxRuntimeExports.jsx(Alert,{variant:"info",title:"Info Message",message:"Be cautious when performing this action.",showLink:!0,linkHref:"/",linkText:"Learn more"}),jsxRuntimeExports.jsx(Alert,{variant:"info",title:"Info Message",message:"Be cautious when performing this action.",showLink:!1})]})]})]})}const Badge=({variant:ln="light",color:rn="primary",size:an="md",startIcon:sn,endIcon:on,children:cn})=>{const un="inline-flex items-center px-2.5 py-0.5 justify-center gap-1 rounded-full font-medium",pn={sm:"text-theme-xs",md:"text-sm"},fn={light:{primary:"bg-brand-50 text-brand-500 dark:bg-brand-500/15 dark:text-brand-400",success:"bg-success-50 text-success-600 dark:bg-success-500/15 dark:text-success-500",error:"bg-error-50 text-error-600 dark:bg-error-500/15 dark:text-error-500",warning:"bg-warning-50 text-warning-600 dark:bg-warning-500/15 dark:text-orange-400",info:"bg-blue-light-50 text-blue-light-500 dark:bg-blue-light-500/15 dark:text-blue-light-500",light:"bg-gray-100 text-gray-700 dark:bg-white/5 dark:text-white/80",dark:"bg-gray-500 text-white dark:bg-white/5 dark:text-white"},solid:{primary:"bg-brand-500 text-white dark:text-white",success:"bg-success-500 text-white dark:text-white",error:"bg-error-500 text-white dark:text-white",warning:"bg-warning-500 text-white dark:text-white",info:"bg-blue-light-500 text-white dark:text-white",light:"bg-gray-400 dark:bg-white/5 text-white dark:text-white/80",dark:"bg-gray-700 text-white dark:text-white"}},mn=pn[an],xn=fn[ln][rn];return jsxRuntimeExports.jsxs("span",{className:`${un} ${mn} ${xn}`,children:[sn&&jsxRuntimeExports.jsx("span",{className:"mr-1",children:sn}),cn,on&&jsxRuntimeExports.jsx("span",{className:"ml-1",children:on})]})};function Badges(){return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(PageMeta,{title:"React.js Badges Dashboard | TailAdmin - React.js Admin Dashboard Template",description:"This is React.js Badges Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),jsxRuntimeExports.jsx(PageBreadcrumb,{pageTitle:"Badges"}),jsxRuntimeExports.jsxs("div",{className:"space-y-5 sm:space-y-6",children:[jsxRuntimeExports.jsx(ComponentCard,{title:"With Light Background",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap gap-4 sm:items-center sm:justify-center",children:[jsxRuntimeExports.jsx(Badge,{variant:"light",color:"primary",children:"Primary"}),jsxRuntimeExports.jsx(Badge,{variant:"light",color:"success",children:"Success"})," ",jsxRuntimeExports.jsx(Badge,{variant:"light",color:"error",children:"Error"})," ",jsxRuntimeExports.jsx(Badge,{variant:"light",color:"warning",children:"Warning"})," ",jsxRuntimeExports.jsx(Badge,{variant:"light",color:"info",children:"Info"}),jsxRuntimeExports.jsx(Badge,{variant:"light",color:"light",children:"Light"}),jsxRuntimeExports.jsx(Badge,{variant:"light",color:"dark",children:"Dark"})]})}),jsxRuntimeExports.jsx(ComponentCard,{title:"With Solid Background",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap gap-4 sm:items-center sm:justify-center",children:[jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"primary",children:"Primary"}),jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"success",children:"Success"})," ",jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"error",children:"Error"})," ",jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"warning",children:"Warning"})," ",jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"info",children:"Info"}),jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"light",children:"Light"}),jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"dark",children:"Dark"})]})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Light Background with Left Icon",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap gap-4 sm:items-center sm:justify-center",children:[jsxRuntimeExports.jsx(Badge,{variant:"light",color:"primary",startIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Primary"}),jsxRuntimeExports.jsx(Badge,{variant:"light",color:"success",startIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Success"})," ",jsxRuntimeExports.jsx(Badge,{variant:"light",color:"error",startIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Error"})," ",jsxRuntimeExports.jsx(Badge,{variant:"light",color:"warning",startIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Warning"})," ",jsxRuntimeExports.jsx(Badge,{variant:"light",color:"info",startIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Info"}),jsxRuntimeExports.jsx(Badge,{variant:"light",color:"light",startIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Light"}),jsxRuntimeExports.jsx(Badge,{variant:"light",color:"dark",startIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Dark"})]})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Solid Background with Left Icon",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap gap-4 sm:items-center sm:justify-center",children:[jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"primary",startIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Primary"}),jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"success",startIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Success"})," ",jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"error",startIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Error"})," ",jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"warning",startIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Warning"})," ",jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"info",startIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Info"}),jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"light",startIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Light"}),jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"dark",startIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Dark"})]})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Light Background with Right Icon",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap gap-4 sm:items-center sm:justify-center",children:[jsxRuntimeExports.jsx(Badge,{variant:"light",color:"primary",endIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Primary"}),jsxRuntimeExports.jsx(Badge,{variant:"light",color:"success",endIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Success"})," ",jsxRuntimeExports.jsx(Badge,{variant:"light",color:"error",endIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Error"})," ",jsxRuntimeExports.jsx(Badge,{variant:"light",color:"warning",endIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Warning"})," ",jsxRuntimeExports.jsx(Badge,{variant:"light",color:"info",endIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Info"}),jsxRuntimeExports.jsx(Badge,{variant:"light",color:"light",endIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Light"}),jsxRuntimeExports.jsx(Badge,{variant:"light",color:"dark",endIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Dark"})]})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Solid Background with Right Icon",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap gap-4 sm:items-center sm:justify-center",children:[jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"primary",endIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Primary"}),jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"success",endIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Success"})," ",jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"error",endIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Error"})," ",jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"warning",endIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Warning"})," ",jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"info",endIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Info"}),jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"light",endIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Light"}),jsxRuntimeExports.jsx(Badge,{variant:"solid",color:"dark",endIcon:jsxRuntimeExports.jsx(SvgPlus,{}),children:"Dark"})]})})]})]})}const sizeClasses={xsmall:"h-6 w-6 max-w-6",small:"h-8 w-8 max-w-8",medium:"h-10 w-10 max-w-10",large:"h-12 w-12 max-w-12",xlarge:"h-14 w-14 max-w-14",xxlarge:"h-16 w-16 max-w-16"},statusSizeClasses={xsmall:"h-1.5 w-1.5 max-w-1.5",small:"h-2 w-2 max-w-2",medium:"h-2.5 w-2.5 max-w-2.5",large:"h-3 w-3 max-w-3",xlarge:"h-3.5 w-3.5 max-w-3.5",xxlarge:"h-4 w-4 max-w-4"},statusColorClasses={online:"bg-success-500",offline:"bg-error-400",busy:"bg-warning-500"},Avatar=({src:ln,alt:rn="User Avatar",size:an="medium",status:sn="none"})=>jsxRuntimeExports.jsxs("div",{className:`relative  rounded-full ${sizeClasses[an]}`,children:[jsxRuntimeExports.jsx("img",{src:ln,alt:rn,className:"object-cover rounded-full"}),sn!=="none"&&jsxRuntimeExports.jsx("span",{className:`absolute bottom-0 right-0 rounded-full border-[1.5px] border-white dark:border-gray-900 ${statusSizeClasses[an]} ${statusColorClasses[sn]||""}`})]});function Avatars(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"React.js Avatars Dashboard | TailAdmin - React.js Admin Dashboard Template",description:"This is React.js Avatars Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),jsxRuntimeExports.jsx(PageBreadcrumb,{pageTitle:"Avatars"}),jsxRuntimeExports.jsxs("div",{className:"space-y-5 sm:space-y-6",children:[jsxRuntimeExports.jsx(ComponentCard,{title:"Default Avatar",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center gap-5 sm:flex-row",children:[jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"xsmall"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"small"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"medium"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"large"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"xlarge"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"xxlarge"})]})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Avatar with online indicator",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center gap-5 sm:flex-row",children:[jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"xsmall",status:"online"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"small",status:"online"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"medium",status:"online"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"large",status:"online"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"xlarge",status:"online"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"xxlarge",status:"online"})]})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Avatar with Offline indicator",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center gap-5 sm:flex-row",children:[jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"xsmall",status:"offline"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"small",status:"offline"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"medium",status:"offline"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"large",status:"offline"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"xlarge",status:"offline"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"xxlarge",status:"offline"})]})})," ",jsxRuntimeExports.jsx(ComponentCard,{title:"Avatar with busy indicator",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center gap-5 sm:flex-row",children:[jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"xsmall",status:"busy"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"small",status:"busy"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"medium",status:"busy"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"large",status:"busy"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"xlarge",status:"busy"}),jsxRuntimeExports.jsx(Avatar,{src:"/images/user/user-01.jpg",size:"xxlarge",status:"busy"})]})})]})]})}function Buttons(){return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(PageMeta,{title:"React.js Buttons Dashboard | TailAdmin - React.js Admin Dashboard Template",description:"This is React.js Buttons Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),jsxRuntimeExports.jsx(PageBreadcrumb,{pageTitle:"Buttons"}),jsxRuntimeExports.jsxs("div",{className:"space-y-5 sm:space-y-6",children:[jsxRuntimeExports.jsx(ComponentCard,{title:"Primary Button",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-5",children:[jsxRuntimeExports.jsx(Button,{size:"sm",variant:"primary",children:"Button Text"}),jsxRuntimeExports.jsx(Button,{size:"md",variant:"primary",children:"Button Text"})]})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Primary Button with Left Icon",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-5",children:[jsxRuntimeExports.jsx(Button,{size:"sm",variant:"primary",startIcon:jsxRuntimeExports.jsx(SvgBox,{className:"size-5"}),children:"Button Text"}),jsxRuntimeExports.jsx(Button,{size:"md",variant:"primary",startIcon:jsxRuntimeExports.jsx(SvgBox,{className:"size-5"}),children:"Button Text"})]})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Primary Button with Right Icon",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-5",children:[jsxRuntimeExports.jsx(Button,{size:"sm",variant:"primary",endIcon:jsxRuntimeExports.jsx(SvgBox,{className:"size-5"}),children:"Button Text"}),jsxRuntimeExports.jsx(Button,{size:"md",variant:"primary",endIcon:jsxRuntimeExports.jsx(SvgBox,{className:"size-5"}),children:"Button Text"})]})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Secondary Button",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-5",children:[jsxRuntimeExports.jsx(Button,{size:"sm",variant:"outline",children:"Button Text"}),jsxRuntimeExports.jsx(Button,{size:"md",variant:"outline",children:"Button Text"})]})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Outline Button with Left Icon",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-5",children:[jsxRuntimeExports.jsx(Button,{size:"sm",variant:"outline",startIcon:jsxRuntimeExports.jsx(SvgBox,{className:"size-5"}),children:"Button Text"}),jsxRuntimeExports.jsx(Button,{size:"md",variant:"outline",startIcon:jsxRuntimeExports.jsx(SvgBox,{className:"size-5"}),children:"Button Text"})]})})," ",jsxRuntimeExports.jsx(ComponentCard,{title:"Outline Button with Right Icon",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-5",children:[jsxRuntimeExports.jsx(Button,{size:"sm",variant:"outline",endIcon:jsxRuntimeExports.jsx(SvgBox,{className:"size-5"}),children:"Button Text"}),jsxRuntimeExports.jsx(Button,{size:"md",variant:"outline",endIcon:jsxRuntimeExports.jsx(SvgBox,{className:"size-5"}),children:"Button Text"})]})})]})]})}var reactApexcharts_min={};/*!
 * ApexCharts v4.4.0
 * (c) 2018-2025 ApexCharts
 * Released under the MIT License.
 */function t$1(ln,rn){(rn==null||rn>ln.length)&&(rn=ln.length);for(var an=0,sn=Array(rn);an<rn;an++)sn[an]=ln[an];return sn}function e$2(ln){if(ln===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ln}function i$2(ln,rn){if(!(ln instanceof rn))throw new TypeError("Cannot call a class as a function")}function a$2(ln,rn){for(var an=0;an<rn.length;an++){var sn=rn[an];sn.enumerable=sn.enumerable||!1,sn.configurable=!0,"value"in sn&&(sn.writable=!0),Object.defineProperty(ln,x$2(sn.key),sn)}}function s$1(ln,rn,an){return rn&&a$2(ln.prototype,rn),an&&a$2(ln,an),Object.defineProperty(ln,"prototype",{writable:!1}),ln}function r$2(ln,rn){var an=typeof Symbol<"u"&&ln[Symbol.iterator]||ln["@@iterator"];if(!an){if(Array.isArray(ln)||(an=m$2(ln))||rn){an&&(ln=an);var sn=0,on=function(){};return{s:on,n:function(){return sn>=ln.length?{done:!0}:{done:!1,value:ln[sn++]}},e:function(fn){throw fn},f:on}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var cn,un=!0,pn=!1;return{s:function(){an=an.call(ln)},n:function(){var fn=an.next();return un=fn.done,fn},e:function(fn){pn=!0,cn=fn},f:function(){try{un||an.return==null||an.return()}finally{if(pn)throw cn}}}}function n$1(ln){var rn=c$2();return function(){var an,sn=l$2(ln);if(rn){var on=l$2(this).constructor;an=Reflect.construct(sn,arguments,on)}else an=sn.apply(this,arguments);return function(cn,un){if(un&&(typeof un=="object"||typeof un=="function"))return un;if(un!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return e$2(cn)}(this,an)}}function o$1(ln,rn,an){return(rn=x$2(rn))in ln?Object.defineProperty(ln,rn,{value:an,enumerable:!0,configurable:!0,writable:!0}):ln[rn]=an,ln}function l$2(ln){return l$2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(rn){return rn.__proto__||Object.getPrototypeOf(rn)},l$2(ln)}function h$1(ln,rn){if(typeof rn!="function"&&rn!==null)throw new TypeError("Super expression must either be null or a function");ln.prototype=Object.create(rn&&rn.prototype,{constructor:{value:ln,writable:!0,configurable:!0}}),Object.defineProperty(ln,"prototype",{writable:!1}),rn&&g$3(ln,rn)}function c$2(){try{var ln=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c$2=function(){return!!ln})()}function d$1(ln,rn){var an=Object.keys(ln);if(Object.getOwnPropertySymbols){var sn=Object.getOwnPropertySymbols(ln);rn&&(sn=sn.filter(function(on){return Object.getOwnPropertyDescriptor(ln,on).enumerable})),an.push.apply(an,sn)}return an}function u$2(ln){for(var rn=1;rn<arguments.length;rn++){var an=arguments[rn]!=null?arguments[rn]:{};rn%2?d$1(Object(an),!0).forEach(function(sn){o$1(ln,sn,an[sn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ln,Object.getOwnPropertyDescriptors(an)):d$1(Object(an)).forEach(function(sn){Object.defineProperty(ln,sn,Object.getOwnPropertyDescriptor(an,sn))})}return ln}function g$3(ln,rn){return g$3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(an,sn){return an.__proto__=sn,an},g$3(ln,rn)}function p$1(ln,rn){return function(an){if(Array.isArray(an))return an}(ln)||function(an,sn){var on=an==null?null:typeof Symbol<"u"&&an[Symbol.iterator]||an["@@iterator"];if(on!=null){var cn,un,pn,fn,mn=[],xn=!0,vn=!1;try{if(pn=(on=on.call(an)).next,sn===0){if(Object(on)!==on)return;xn=!1}else for(;!(xn=(cn=pn.call(on)).done)&&(mn.push(cn.value),mn.length!==sn);xn=!0);}catch(yn){vn=!0,un=yn}finally{try{if(!xn&&on.return!=null&&(fn=on.return(),Object(fn)!==fn))return}finally{if(vn)throw un}}return mn}}(ln,rn)||m$2(ln,rn)||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 f$2(ln){return function(rn){if(Array.isArray(rn))return t$1(rn)}(ln)||function(rn){if(typeof Symbol<"u"&&rn[Symbol.iterator]!=null||rn["@@iterator"]!=null)return Array.from(rn)}(ln)||m$2(ln)||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 x$2(ln){var rn=function(an,sn){if(typeof an!="object"||!an)return an;var on=an[Symbol.toPrimitive];if(on!==void 0){var cn=on.call(an,sn);if(typeof cn!="object")return cn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(sn==="string"?String:Number)(an)}(ln,"string");return typeof rn=="symbol"?rn:rn+""}function b$2(ln){return b$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(rn){return typeof rn}:function(rn){return rn&&typeof Symbol=="function"&&rn.constructor===Symbol&&rn!==Symbol.prototype?"symbol":typeof rn},b$2(ln)}function m$2(ln,rn){if(ln){if(typeof ln=="string")return t$1(ln,rn);var an={}.toString.call(ln).slice(8,-1);return an==="Object"&&ln.constructor&&(an=ln.constructor.name),an==="Map"||an==="Set"?Array.from(ln):an==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(an)?t$1(ln,rn):void 0}}var v$2=function(){function ln(){i$2(this,ln)}return s$1(ln,[{key:"shadeRGBColor",value:function(rn,an){var sn=an.split(","),on=rn<0?0:255,cn=rn<0?-1*rn:rn,un=parseInt(sn[0].slice(4),10),pn=parseInt(sn[1],10),fn=parseInt(sn[2],10);return"rgb("+(Math.round((on-un)*cn)+un)+","+(Math.round((on-pn)*cn)+pn)+","+(Math.round((on-fn)*cn)+fn)+")"}},{key:"shadeHexColor",value:function(rn,an){var sn=parseInt(an.slice(1),16),on=rn<0?0:255,cn=rn<0?-1*rn:rn,un=sn>>16,pn=sn>>8&255,fn=255&sn;return"#"+(16777216+65536*(Math.round((on-un)*cn)+un)+256*(Math.round((on-pn)*cn)+pn)+(Math.round((on-fn)*cn)+fn)).toString(16).slice(1)}},{key:"shadeColor",value:function(rn,an){return ln.isColorHex(an)?this.shadeHexColor(rn,an):this.shadeRGBColor(rn,an)}}],[{key:"bind",value:function(rn,an){return function(){return rn.apply(an,arguments)}}},{key:"isObject",value:function(rn){return rn&&b$2(rn)==="object"&&!Array.isArray(rn)&&rn!=null}},{key:"is",value:function(rn,an){return Object.prototype.toString.call(an)==="[object "+rn+"]"}},{key:"listToArray",value:function(rn){var an,sn=[];for(an=0;an<rn.length;an++)sn[an]=rn[an];return sn}},{key:"extend",value:function(rn,an){var sn=this;typeof Object.assign!="function"&&(Object.assign=function(cn){if(cn==null)throw new TypeError("Cannot convert undefined or null to object");for(var un=Object(cn),pn=1;pn<arguments.length;pn++){var fn=arguments[pn];if(fn!=null)for(var mn in fn)fn.hasOwnProperty(mn)&&(un[mn]=fn[mn])}return un});var on=Object.assign({},rn);return this.isObject(rn)&&this.isObject(an)&&Object.keys(an).forEach(function(cn){sn.isObject(an[cn])&&cn in rn?on[cn]=sn.extend(rn[cn],an[cn]):Object.assign(on,o$1({},cn,an[cn]))}),on}},{key:"extendArray",value:function(rn,an){var sn=[];return rn.map(function(on){sn.push(ln.extend(an,on))}),rn=sn}},{key:"monthMod",value:function(rn){return rn%12}},{key:"clone",value:function(rn){var an,sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(rn===null||b$2(rn)!=="object")return rn;if(sn.has(rn))return sn.get(rn);if(Array.isArray(rn)){an=[],sn.set(rn,an);for(var on=0;on<rn.length;on++)an[on]=this.clone(rn[on],sn)}else if(rn instanceof Date)an=new Date(rn.getTime());else for(var cn in an={},sn.set(rn,an),rn)rn.hasOwnProperty(cn)&&(an[cn]=this.clone(rn[cn],sn));return an}},{key:"log10",value:function(rn){return Math.log(rn)/Math.LN10}},{key:"roundToBase10",value:function(rn){return Math.pow(10,Math.floor(Math.log10(rn)))}},{key:"roundToBase",value:function(rn,an){return Math.pow(an,Math.floor(Math.log(rn)/Math.log(an)))}},{key:"parseNumber",value:function(rn){return rn===null?rn:parseFloat(rn)}},{key:"stripNumber",value:function(rn){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return Number.isInteger(rn)?rn:parseFloat(rn.toPrecision(an))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(rn){return rn.toString().includes("e")?Math.round(rn):rn}},{key:"elementExists",value:function(rn){return!(!rn||!rn.isConnected)}},{key:"getDimensions",value:function(rn){var an=getComputedStyle(rn,null),sn=rn.clientHeight,on=rn.clientWidth;return sn-=parseFloat(an.paddingTop)+parseFloat(an.paddingBottom),[on-=parseFloat(an.paddingLeft)+parseFloat(an.paddingRight),sn]}},{key:"getBoundingClientRect",value:function(rn){var an=rn.getBoundingClientRect();return{top:an.top,right:an.right,bottom:an.bottom,left:an.left,width:rn.clientWidth,height:rn.clientHeight,x:an.left,y:an.top}}},{key:"getLargestStringFromArr",value:function(rn){return rn.reduce(function(an,sn){return Array.isArray(sn)&&(sn=sn.reduce(function(on,cn){return on.length>cn.length?on:cn})),an.length>sn.length?an:sn},0)}},{key:"hexToRgba",value:function(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;rn.substring(0,1)!=="#"&&(rn="#999999");var sn=rn.replace("#","");sn=sn.match(new RegExp("(.{"+sn.length/3+"})","g"));for(var on=0;on<sn.length;on++)sn[on]=parseInt(sn[on].length===1?sn[on]+sn[on]:sn[on],16);return an!==void 0&&sn.push(an),"rgba("+sn.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(rn){return parseFloat(rn.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(rn){return(rn=rn.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&rn.length===4?"#"+("0"+parseInt(rn[1],10).toString(16)).slice(-2)+("0"+parseInt(rn[2],10).toString(16)).slice(-2)+("0"+parseInt(rn[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(rn){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(rn)}},{key:"getPolygonPos",value:function(rn,an){for(var sn=[],on=2*Math.PI/an,cn=0;cn<an;cn++){var un={};un.x=rn*Math.sin(cn*on),un.y=-rn*Math.cos(cn*on),sn.push(un)}return sn}},{key:"polarToCartesian",value:function(rn,an,sn,on){var cn=(on-90)*Math.PI/180;return{x:rn+sn*Math.cos(cn),y:an+sn*Math.sin(cn)}}},{key:"escapeString",value:function(rn){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",sn=rn.toString().slice();return sn=sn.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,an)}},{key:"negToZero",value:function(rn){return rn<0?0:rn}},{key:"moveIndexInArray",value:function(rn,an,sn){if(sn>=rn.length)for(var on=sn-rn.length+1;on--;)rn.push(void 0);return rn.splice(sn,0,rn.splice(an,1)[0]),rn}},{key:"extractNumber",value:function(rn){return parseFloat(rn.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(rn,an){for(;(rn=rn.parentElement)&&!rn.classList.contains(an););return rn}},{key:"setELstyles",value:function(rn,an){for(var sn in an)an.hasOwnProperty(sn)&&(rn.style.key=an[sn])}},{key:"preciseAddition",value:function(rn,an){var sn=(String(rn).split(".")[1]||"").length,on=(String(an).split(".")[1]||"").length,cn=Math.pow(10,Math.max(sn,on));return(Math.round(rn*cn)+Math.round(an*cn))/cn}},{key:"isNumber",value:function(rn){return!isNaN(rn)&&parseFloat(Number(rn))===rn&&!isNaN(parseInt(rn,10))}},{key:"isFloat",value:function(rn){return Number(rn)===rn&&rn%1!=0}},{key:"isMsEdge",value:function(){var rn=window.navigator.userAgent,an=rn.indexOf("Edge/");return an>0&&parseInt(rn.substring(an+5,rn.indexOf(".",an)),10)}},{key:"getGCD",value:function(rn,an){var sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:7,on=Math.pow(10,sn-Math.floor(Math.log10(Math.max(rn,an))));for(rn=Math.round(Math.abs(rn)*on),an=Math.round(Math.abs(an)*on);an;){var cn=an;an=rn%an,rn=cn}return rn/on}},{key:"getPrimeFactors",value:function(rn){for(var an=[],sn=2;rn>=2;)rn%sn==0?(an.push(sn),rn/=sn):sn++;return an}},{key:"mod",value:function(rn,an){var sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:7,on=Math.pow(10,sn-Math.floor(Math.log10(Math.max(rn,an))));return(rn=Math.round(Math.abs(rn)*on))%(an=Math.round(Math.abs(an)*on))/on}}]),ln}(),y$1=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"animateLine",value:function(rn,an,sn,on){rn.attr(an).animate(on).attr(sn)}},{key:"animateMarker",value:function(rn,an,sn,on){rn.attr({opacity:0}).animate(an).attr({opacity:1}).after(function(){on()})}},{key:"animateRect",value:function(rn,an,sn,on,cn){rn.attr(an).animate(on).attr(sn).after(function(){return cn()})}},{key:"animatePathsGradually",value:function(rn){var an=rn.el,sn=rn.realIndex,on=rn.j,cn=rn.fill,un=rn.pathFrom,pn=rn.pathTo,fn=rn.speed,mn=rn.delay,xn=this.w,vn=0;xn.config.chart.animations.animateGradually.enabled&&(vn=xn.config.chart.animations.animateGradually.delay),xn.config.chart.animations.dynamicAnimation.enabled&&xn.globals.dataChanged&&xn.config.chart.type!=="bar"&&(vn=0),this.morphSVG(an,sn,on,xn.config.chart.type!=="line"||xn.globals.comboCharts?cn:"stroke",un,pn,fn,mn*vn)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(rn){var an=rn.el;an.classList.remove("apexcharts-element-hidden"),an.classList.add("apexcharts-hidden-element-shown")})}},{key:"animationCompleted",value:function(rn){var an=this.w;an.globals.animationEnded||(an.globals.animationEnded=!0,this.showDelayedElements(),typeof an.config.chart.events.animationEnd=="function"&&an.config.chart.events.animationEnd(this.ctx,{el:rn,w:an}))}},{key:"morphSVG",value:function(rn,an,sn,on,cn,un,pn,fn){var mn=this,xn=this.w;cn||(cn=rn.attr("pathFrom")),un||(un=rn.attr("pathTo"));var vn=function(yn){return xn.config.chart.type==="radar"&&(pn=1),"M 0 ".concat(xn.globals.gridHeight)};(!cn||cn.indexOf("undefined")>-1||cn.indexOf("NaN")>-1)&&(cn=vn()),(!un.trim()||un.indexOf("undefined")>-1||un.indexOf("NaN")>-1)&&(un=vn()),xn.globals.shouldAnimate||(pn=1),rn.plot(cn).animate(1,fn).plot(cn).animate(pn,fn).plot(un).after(function(){v$2.isNumber(sn)?sn===xn.globals.series[xn.globals.maxValsInArrayIndex].length-2&&xn.globals.shouldAnimate&&mn.animationCompleted(rn):on!=="none"&&xn.globals.shouldAnimate&&(!xn.globals.comboCharts&&an===xn.globals.series.length-1||xn.globals.comboCharts)&&mn.animationCompleted(rn),mn.showDelayedElements()})}}]),ln}();const w$3={},k$2=[];function A$1(ln,rn){if(Array.isArray(ln))for(const an of ln)A$1(an,rn);else if(typeof ln!="object")S$1(Object.getOwnPropertyNames(rn)),w$3[ln]=Object.assign(w$3[ln]||{},rn);else for(const an in ln)A$1(an,ln[an])}function C$2(ln){return w$3[ln]||{}}function S$1(ln){k$2.push(...ln)}function L$2(ln,rn){let an;const sn=ln.length,on=[];for(an=0;an<sn;an++)on.push(rn(ln[an]));return on}function M$1(ln){return ln%360*Math.PI/180}function P$2(ln){return ln.charAt(0).toUpperCase()+ln.slice(1)}function I$2(ln,rn,an,sn){return rn!=null&&an!=null||(sn=sn||ln.bbox(),rn==null?rn=sn.width/sn.height*an:an==null&&(an=sn.height/sn.width*rn)),{width:rn,height:an}}function T$2(ln,rn){const an=ln.origin;let sn=ln.ox!=null?ln.ox:ln.originX!=null?ln.originX:"center",on=ln.oy!=null?ln.oy:ln.originY!=null?ln.originY:"center";an!=null&&([sn,on]=Array.isArray(an)?an:typeof an=="object"?[an.x,an.y]:[an,an]);const cn=typeof sn=="string",un=typeof on=="string";if(cn||un){const{height:pn,width:fn,x:mn,y:xn}=rn.bbox();cn&&(sn=sn.includes("left")?mn:sn.includes("right")?mn+fn:mn+fn/2),un&&(on=on.includes("top")?xn:on.includes("bottom")?xn+pn:xn+pn/2)}return[sn,on]}const z$2=new Set(["desc","metadata","title"]),X=ln=>z$2.has(ln.nodeName),R=(ln,rn,an={})=>{const sn={...rn};for(const on in sn)sn[on].valueOf()===an[on]&&delete sn[on];Object.keys(sn).length?ln.node.setAttribute("data-svgjs",JSON.stringify(sn)):(ln.node.removeAttribute("data-svgjs"),ln.node.removeAttribute("svgjs:data"))},E="http://www.w3.org/2000/svg",Y="http://www.w3.org/2000/xmlns/",H$2="http://www.w3.org/1999/xlink",O$1={window:typeof window>"u"?null:window,document:typeof document>"u"?null:document};function F$1(){return O$1.window}let D$2=class{};const _$1={},N$1="___SYMBOL___ROOT___";function W$1(ln,rn=E){return O$1.document.createElementNS(rn,ln)}function B$2(ln,rn=!1){if(ln instanceof D$2)return ln;if(typeof ln=="object")return U$1(ln);if(ln==null)return new _$1[N$1];if(typeof ln=="string"&&ln.charAt(0)!=="<")return U$1(O$1.document.querySelector(ln));const an=rn?O$1.document.createElement("div"):W$1("svg");return an.innerHTML=ln,ln=U$1(an.firstChild),an.removeChild(an.firstChild),ln}function G$2(ln,rn){return rn&&(rn instanceof O$1.window.Node||rn.ownerDocument&&rn instanceof rn.ownerDocument.defaultView.Node)?rn:W$1(ln)}function V$1(ln){if(!ln)return null;if(ln.instance instanceof D$2)return ln.instance;if(ln.nodeName==="#document-fragment")return new _$1.Fragment(ln);let rn=P$2(ln.nodeName||"Dom");return rn==="LinearGradient"||rn==="RadialGradient"?rn="Gradient":_$1[rn]||(rn="Dom"),new _$1[rn](ln)}let U$1=V$1;function q$1(ln,rn=ln.name,an=!1){return _$1[rn]=ln,an&&(_$1[N$1]=ln),S$1(Object.getOwnPropertyNames(ln.prototype)),ln}let Z$1=1e3;function $$2(ln){return"Svgjs"+P$2(ln)+Z$1++}function J$1(ln){for(let rn=ln.children.length-1;rn>=0;rn--)J$1(ln.children[rn]);return ln.id&&(ln.id=$$2(ln.nodeName)),ln}function Q$1(ln,rn){let an,sn;for(sn=(ln=Array.isArray(ln)?ln:[ln]).length-1;sn>=0;sn--)for(an in rn)ln[sn].prototype[an]=rn[an]}function K$1(ln){return function(...rn){const an=rn[rn.length-1];return!an||an.constructor!==Object||an instanceof Array?ln.apply(this,rn):ln.apply(this,rn.slice(0,-1)).attr(an)}}A$1("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const ln=this.position();return this.parent().add(this.remove(),ln+1),this},backward:function(){const ln=this.position();return this.parent().add(this.remove(),ln?ln-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(ln){(ln=B$2(ln)).remove();const rn=this.position();return this.parent().add(ln,rn),this},after:function(ln){(ln=B$2(ln)).remove();const rn=this.position();return this.parent().add(ln,rn+1),this},insertBefore:function(ln){return(ln=B$2(ln)).before(this),this},insertAfter:function(ln){return(ln=B$2(ln)).after(this),this}});const tt=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,et=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,it=/rgb\((\d+),(\d+),(\d+)\)/,at=/(#[a-z_][a-z0-9\-_]*)/i,st=/\)\s*,?\s*/,rt=/\s/g,nt=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,ot=/^rgb\(/,lt=/^(\s+)?$/,ht=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ct=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,dt=/[\s,]+/,ut=/[MLHVCSQTAZ]/i;function gt(ln){const rn=Math.round(ln),an=Math.max(0,Math.min(255,rn)).toString(16);return an.length===1?"0"+an:an}function pt(ln,rn){for(let an=rn.length;an--;)if(ln[rn[an]]==null)return!1;return!0}function ft(ln,rn,an){return an<0&&(an+=1),an>1&&(an-=1),an<1/6?ln+6*(rn-ln)*an:an<.5?rn:an<2/3?ln+(rn-ln)*(2/3-an)*6:ln}A$1("Dom",{classes:function(){const ln=this.attr("class");return ln==null?[]:ln.trim().split(dt)},hasClass:function(ln){return this.classes().indexOf(ln)!==-1},addClass:function(ln){if(!this.hasClass(ln)){const rn=this.classes();rn.push(ln),this.attr("class",rn.join(" "))}return this},removeClass:function(ln){return this.hasClass(ln)&&this.attr("class",this.classes().filter(function(rn){return rn!==ln}).join(" ")),this},toggleClass:function(ln){return this.hasClass(ln)?this.removeClass(ln):this.addClass(ln)}}),A$1("Dom",{css:function(ln,rn){const an={};if(arguments.length===0)return this.node.style.cssText.split(/\s*;\s*/).filter(function(sn){return!!sn.length}).forEach(function(sn){const on=sn.split(/\s*:\s*/);an[on[0]]=on[1]}),an;if(arguments.length<2){if(Array.isArray(ln)){for(const sn of ln){const on=sn;an[sn]=this.node.style.getPropertyValue(on)}return an}if(typeof ln=="string")return this.node.style.getPropertyValue(ln);if(typeof ln=="object")for(const sn in ln)this.node.style.setProperty(sn,ln[sn]==null||lt.test(ln[sn])?"":ln[sn])}return arguments.length===2&&this.node.style.setProperty(ln,rn==null||lt.test(rn)?"":rn),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return this.css("display")!=="none"}}),A$1("Dom",{data:function(ln,rn,an){if(ln==null)return this.data(L$2(function(sn,on){let cn;const un=sn.length,pn=[];for(cn=0;cn<un;cn++)on(sn[cn])&&pn.push(sn[cn]);return pn}(this.node.attributes,sn=>sn.nodeName.indexOf("data-")===0),sn=>sn.nodeName.slice(5)));if(ln instanceof Array){const sn={};for(const on of ln)sn[on]=this.data(on);return sn}if(typeof ln=="object")for(rn in ln)this.data(rn,ln[rn]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+ln))}catch{return this.attr("data-"+ln)}else this.attr("data-"+ln,rn===null?null:an===!0||typeof rn=="string"||typeof rn=="number"?rn:JSON.stringify(rn));return this}}),A$1("Dom",{remember:function(ln,rn){if(typeof arguments[0]=="object")for(const an in ln)this.remember(an,ln[an]);else{if(arguments.length===1)return this.memory()[ln];this.memory()[ln]=rn}return this},forget:function(){if(arguments.length===0)this._memory={};else for(let ln=arguments.length-1;ln>=0;ln--)delete this.memory()[arguments[ln]];return this},memory:function(){return this._memory=this._memory||{}}});class xt{constructor(...rn){this.init(...rn)}static isColor(rn){return rn&&(rn instanceof xt||this.isRgb(rn)||this.test(rn))}static isRgb(rn){return rn&&typeof rn.r=="number"&&typeof rn.g=="number"&&typeof rn.b=="number"}static random(rn="vibrant",an){const{random:sn,round:on,sin:cn,PI:un}=Math;if(rn==="vibrant"){const pn=24*sn()+57,fn=38*sn()+45,mn=360*sn();return new xt(pn,fn,mn,"lch")}if(rn==="sine"){const pn=on(80*cn(2*un*(an=an??sn())/.5+.01)+150),fn=on(50*cn(2*un*an/.5+4.6)+200),mn=on(100*cn(2*un*an/.5+2.3)+150);return new xt(pn,fn,mn)}if(rn==="pastel"){const pn=8*sn()+86,fn=17*sn()+9,mn=360*sn();return new xt(pn,fn,mn,"lch")}if(rn==="dark"){const pn=10+10*sn(),fn=50*sn()+86,mn=360*sn();return new xt(pn,fn,mn,"lch")}if(rn==="rgb"){const pn=255*sn(),fn=255*sn(),mn=255*sn();return new xt(pn,fn,mn)}if(rn==="lab"){const pn=100*sn(),fn=256*sn()-128,mn=256*sn()-128;return new xt(pn,fn,mn,"lab")}if(rn==="grey"){const pn=255*sn();return new xt(pn,pn,pn)}throw new Error("Unsupported random color mode")}static test(rn){return typeof rn=="string"&&(nt.test(rn)||ot.test(rn))}cmyk(){const{_a:rn,_b:an,_c:sn}=this.rgb(),[on,cn,un]=[rn,an,sn].map(fn=>fn/255),pn=Math.min(1-on,1-cn,1-un);return pn===1?new xt(0,0,0,1,"cmyk"):new xt((1-on-pn)/(1-pn),(1-cn-pn)/(1-pn),(1-un-pn)/(1-pn),pn,"cmyk")}hsl(){const{_a:rn,_b:an,_c:sn}=this.rgb(),[on,cn,un]=[rn,an,sn].map(yn=>yn/255),pn=Math.max(on,cn,un),fn=Math.min(on,cn,un),mn=(pn+fn)/2,xn=pn===fn,vn=pn-fn;return new xt(360*(xn?0:pn===on?((cn-un)/vn+(cn<un?6:0))/6:pn===cn?((un-on)/vn+2)/6:pn===un?((on-cn)/vn+4)/6:0),100*(xn?0:mn>.5?vn/(2-pn-fn):vn/(pn+fn)),100*mn,"hsl")}init(rn=0,an=0,sn=0,on=0,cn="rgb"){if(rn=rn||0,this.space)for(const vn in this.space)delete this[this.space[vn]];if(typeof rn=="number")cn=typeof on=="string"?on:cn,on=typeof on=="string"?0:on,Object.assign(this,{_a:rn,_b:an,_c:sn,_d:on,space:cn});else if(rn instanceof Array)this.space=an||(typeof rn[3]=="string"?rn[3]:rn[4])||"rgb",Object.assign(this,{_a:rn[0],_b:rn[1],_c:rn[2],_d:rn[3]||0});else if(rn instanceof Object){const vn=function(yn,wn){const An=pt(yn,"rgb")?{_a:yn.r,_b:yn.g,_c:yn.b,_d:0,space:"rgb"}:pt(yn,"xyz")?{_a:yn.x,_b:yn.y,_c:yn.z,_d:0,space:"xyz"}:pt(yn,"hsl")?{_a:yn.h,_b:yn.s,_c:yn.l,_d:0,space:"hsl"}:pt(yn,"lab")?{_a:yn.l,_b:yn.a,_c:yn.b,_d:0,space:"lab"}:pt(yn,"lch")?{_a:yn.l,_b:yn.c,_c:yn.h,_d:0,space:"lch"}:pt(yn,"cmyk")?{_a:yn.c,_b:yn.m,_c:yn.y,_d:yn.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return An.space=wn||An.space,An}(rn,an);Object.assign(this,vn)}else if(typeof rn=="string")if(ot.test(rn)){const vn=rn.replace(rt,""),[yn,wn,An]=it.exec(vn).slice(1,4).map(Cn=>parseInt(Cn));Object.assign(this,{_a:yn,_b:wn,_c:An,_d:0,space:"rgb"})}else{if(!nt.test(rn))throw Error("Unsupported string format, can't construct Color");{const vn=Cn=>parseInt(Cn,16),[,yn,wn,An]=et.exec(function(Cn){return Cn.length===4?["#",Cn.substring(1,2),Cn.substring(1,2),Cn.substring(2,3),Cn.substring(2,3),Cn.substring(3,4),Cn.substring(3,4)].join(""):Cn}(rn)).map(vn);Object.assign(this,{_a:yn,_b:wn,_c:An,_d:0,space:"rgb"})}}const{_a:un,_b:pn,_c:fn,_d:mn}=this,xn=this.space==="rgb"?{r:un,g:pn,b:fn}:this.space==="xyz"?{x:un,y:pn,z:fn}:this.space==="hsl"?{h:un,s:pn,l:fn}:this.space==="lab"?{l:un,a:pn,b:fn}:this.space==="lch"?{l:un,c:pn,h:fn}:this.space==="cmyk"?{c:un,m:pn,y:fn,k:mn}:{};Object.assign(this,xn)}lab(){const{x:rn,y:an,z:sn}=this.xyz();return new xt(116*an-16,500*(rn-an),200*(an-sn),"lab")}lch(){const{l:rn,a:an,b:sn}=this.lab(),on=Math.sqrt(an**2+sn**2);let cn=180*Math.atan2(sn,an)/Math.PI;return cn<0&&(cn*=-1,cn=360-cn),new xt(rn,on,cn,"lch")}rgb(){if(this.space==="rgb")return this;if((rn=this.space)==="lab"||rn==="xyz"||rn==="lch"){let{x:an,y:sn,z:on}=this;if(this.space==="lab"||this.space==="lch"){let{l:wn,a:An,b:Cn}=this;if(this.space==="lch"){const{c:In,h:jn}=this,Fn=Math.PI/180;An=In*Math.cos(Fn*jn),Cn=In*Math.sin(Fn*jn)}const kn=(wn+16)/116,Mn=An/500+kn,Tn=kn-Cn/200,On=16/116,Pn=.008856,Nn=7.787;an=.95047*(Mn**3>Pn?Mn**3:(Mn-On)/Nn),sn=1*(kn**3>Pn?kn**3:(kn-On)/Nn),on=1.08883*(Tn**3>Pn?Tn**3:(Tn-On)/Nn)}const cn=3.2406*an+-1.5372*sn+-.4986*on,un=-.9689*an+1.8758*sn+.0415*on,pn=.0557*an+-.204*sn+1.057*on,fn=Math.pow,mn=.0031308,xn=cn>mn?1.055*fn(cn,1/2.4)-.055:12.92*cn,vn=un>mn?1.055*fn(un,1/2.4)-.055:12.92*un,yn=pn>mn?1.055*fn(pn,1/2.4)-.055:12.92*pn;return new xt(255*xn,255*vn,255*yn)}if(this.space==="hsl"){let{h:an,s:sn,l:on}=this;if(an/=360,sn/=100,on/=100,sn===0)return on*=255,new xt(on,on,on);const cn=on<.5?on*(1+sn):on+sn-on*sn,un=2*on-cn,pn=255*ft(un,cn,an+1/3),fn=255*ft(un,cn,an),mn=255*ft(un,cn,an-1/3);return new xt(pn,fn,mn)}if(this.space==="cmyk"){const{c:an,m:sn,y:on,k:cn}=this,un=255*(1-Math.min(1,an*(1-cn)+cn)),pn=255*(1-Math.min(1,sn*(1-cn)+cn)),fn=255*(1-Math.min(1,on*(1-cn)+cn));return new xt(un,pn,fn)}return this;var rn}toArray(){const{_a:rn,_b:an,_c:sn,_d:on,space:cn}=this;return[rn,an,sn,on,cn]}toHex(){const[rn,an,sn]=this._clamped().map(gt);return`#${rn}${an}${sn}`}toRgb(){const[rn,an,sn]=this._clamped();return`rgb(${rn},${an},${sn})`}toString(){return this.toHex()}xyz(){const{_a:rn,_b:an,_c:sn}=this.rgb(),[on,cn,un]=[rn,an,sn].map(kn=>kn/255),pn=on>.04045?Math.pow((on+.055)/1.055,2.4):on/12.92,fn=cn>.04045?Math.pow((cn+.055)/1.055,2.4):cn/12.92,mn=un>.04045?Math.pow((un+.055)/1.055,2.4):un/12.92,xn=(.4124*pn+.3576*fn+.1805*mn)/.95047,vn=(.2126*pn+.7152*fn+.0722*mn)/1,yn=(.0193*pn+.1192*fn+.9505*mn)/1.08883,wn=xn>.008856?Math.pow(xn,1/3):7.787*xn+16/116,An=vn>.008856?Math.pow(vn,1/3):7.787*vn+16/116,Cn=yn>.008856?Math.pow(yn,1/3):7.787*yn+16/116;return new xt(wn,An,Cn,"xyz")}_clamped(){const{_a:rn,_b:an,_c:sn}=this.rgb(),{max:on,min:cn,round:un}=Math;return[rn,an,sn].map(pn=>on(0,cn(un(pn),255)))}}class bt{constructor(...rn){this.init(...rn)}clone(){return new bt(this)}init(rn,an){const cn=Array.isArray(rn)?{x:rn[0],y:rn[1]}:typeof rn=="object"?{x:rn.x,y:rn.y}:{x:rn,y:an};return this.x=cn.x==null?0:cn.x,this.y=cn.y==null?0:cn.y,this}toArray(){return[this.x,this.y]}transform(rn){return this.clone().transformO(rn)}transformO(rn){vt.isMatrixLike(rn)||(rn=new vt(rn));const{x:an,y:sn}=this;return this.x=rn.a*an+rn.c*sn+rn.e,this.y=rn.b*an+rn.d*sn+rn.f,this}}function mt(ln,rn,an){return Math.abs(rn-ln)<1e-6}class vt{constructor(...rn){this.init(...rn)}static formatTransforms(rn){const an=rn.flip==="both"||rn.flip===!0,sn=rn.flip&&(an||rn.flip==="x")?-1:1,on=rn.flip&&(an||rn.flip==="y")?-1:1,cn=rn.skew&&rn.skew.length?rn.skew[0]:isFinite(rn.skew)?rn.skew:isFinite(rn.skewX)?rn.skewX:0,un=rn.skew&&rn.skew.length?rn.skew[1]:isFinite(rn.skew)?rn.skew:isFinite(rn.skewY)?rn.skewY:0,pn=rn.scale&&rn.scale.length?rn.scale[0]*sn:isFinite(rn.scale)?rn.scale*sn:isFinite(rn.scaleX)?rn.scaleX*sn:sn,fn=rn.scale&&rn.scale.length?rn.scale[1]*on:isFinite(rn.scale)?rn.scale*on:isFinite(rn.scaleY)?rn.scaleY*on:on,mn=rn.shear||0,xn=rn.rotate||rn.theta||0,vn=new bt(rn.origin||rn.around||rn.ox||rn.originX,rn.oy||rn.originY),yn=vn.x,wn=vn.y,An=new bt(rn.position||rn.px||rn.positionX||NaN,rn.py||rn.positionY||NaN),Cn=An.x,kn=An.y,Mn=new bt(rn.translate||rn.tx||rn.translateX,rn.ty||rn.translateY),Tn=Mn.x,On=Mn.y,Pn=new bt(rn.relative||rn.rx||rn.relativeX,rn.ry||rn.relativeY);return{scaleX:pn,scaleY:fn,skewX:cn,skewY:un,shear:mn,theta:xn,rx:Pn.x,ry:Pn.y,tx:Tn,ty:On,ox:yn,oy:wn,px:Cn,py:kn}}static fromArray(rn){return{a:rn[0],b:rn[1],c:rn[2],d:rn[3],e:rn[4],f:rn[5]}}static isMatrixLike(rn){return rn.a!=null||rn.b!=null||rn.c!=null||rn.d!=null||rn.e!=null||rn.f!=null}static matrixMultiply(rn,an,sn){const on=rn.a*an.a+rn.c*an.b,cn=rn.b*an.a+rn.d*an.b,un=rn.a*an.c+rn.c*an.d,pn=rn.b*an.c+rn.d*an.d,fn=rn.e+rn.a*an.e+rn.c*an.f,mn=rn.f+rn.b*an.e+rn.d*an.f;return sn.a=on,sn.b=cn,sn.c=un,sn.d=pn,sn.e=fn,sn.f=mn,sn}around(rn,an,sn){return this.clone().aroundO(rn,an,sn)}aroundO(rn,an,sn){const on=rn||0,cn=an||0;return this.translateO(-on,-cn).lmultiplyO(sn).translateO(on,cn)}clone(){return new vt(this)}decompose(rn=0,an=0){const sn=this.a,on=this.b,cn=this.c,un=this.d,pn=this.e,fn=this.f,mn=sn*un-on*cn,xn=mn>0?1:-1,vn=xn*Math.sqrt(sn*sn+on*on),yn=Math.atan2(xn*on,xn*sn),wn=180/Math.PI*yn,An=Math.cos(yn),Cn=Math.sin(yn),kn=(sn*cn+on*un)/mn,Mn=cn*vn/(kn*sn-on)||un*vn/(kn*on+sn);return{scaleX:vn,scaleY:Mn,shear:kn,rotate:wn,translateX:pn-rn+rn*An*vn+an*(kn*An*vn-Cn*Mn),translateY:fn-an+rn*Cn*vn+an*(kn*Cn*vn+An*Mn),originX:rn,originY:an,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(rn){if(rn===this)return!0;const an=new vt(rn);return mt(this.a,an.a)&&mt(this.b,an.b)&&mt(this.c,an.c)&&mt(this.d,an.d)&&mt(this.e,an.e)&&mt(this.f,an.f)}flip(rn,an){return this.clone().flipO(rn,an)}flipO(rn,an){return rn==="x"?this.scaleO(-1,1,an,0):rn==="y"?this.scaleO(1,-1,0,an):this.scaleO(-1,-1,rn,an||rn)}init(rn){const an=vt.fromArray([1,0,0,1,0,0]);return rn=rn instanceof Gt?rn.matrixify():typeof rn=="string"?vt.fromArray(rn.split(dt).map(parseFloat)):Array.isArray(rn)?vt.fromArray(rn):typeof rn=="object"&&vt.isMatrixLike(rn)?rn:typeof rn=="object"?new vt().transform(rn):arguments.length===6?vt.fromArray([].slice.call(arguments)):an,this.a=rn.a!=null?rn.a:an.a,this.b=rn.b!=null?rn.b:an.b,this.c=rn.c!=null?rn.c:an.c,this.d=rn.d!=null?rn.d:an.d,this.e=rn.e!=null?rn.e:an.e,this.f=rn.f!=null?rn.f:an.f,this}inverse(){return this.clone().inverseO()}inverseO(){const rn=this.a,an=this.b,sn=this.c,on=this.d,cn=this.e,un=this.f,pn=rn*on-an*sn;if(!pn)throw new Error("Cannot invert "+this);const fn=on/pn,mn=-an/pn,xn=-sn/pn,vn=rn/pn,yn=-(fn*cn+xn*un),wn=-(mn*cn+vn*un);return this.a=fn,this.b=mn,this.c=xn,this.d=vn,this.e=yn,this.f=wn,this}lmultiply(rn){return this.clone().lmultiplyO(rn)}lmultiplyO(rn){const an=rn instanceof vt?rn:new vt(rn);return vt.matrixMultiply(an,this,this)}multiply(rn){return this.clone().multiplyO(rn)}multiplyO(rn){const an=rn instanceof vt?rn:new vt(rn);return vt.matrixMultiply(this,an,this)}rotate(rn,an,sn){return this.clone().rotateO(rn,an,sn)}rotateO(rn,an=0,sn=0){rn=M$1(rn);const on=Math.cos(rn),cn=Math.sin(rn),{a:un,b:pn,c:fn,d:mn,e:xn,f:vn}=this;return this.a=un*on-pn*cn,this.b=pn*on+un*cn,this.c=fn*on-mn*cn,this.d=mn*on+fn*cn,this.e=xn*on-vn*cn+sn*cn-an*on+an,this.f=vn*on+xn*cn-an*cn-sn*on+sn,this}scale(){return this.clone().scaleO(...arguments)}scaleO(rn,an=rn,sn=0,on=0){arguments.length===3&&(on=sn,sn=an,an=rn);const{a:cn,b:un,c:pn,d:fn,e:mn,f:xn}=this;return this.a=cn*rn,this.b=un*an,this.c=pn*rn,this.d=fn*an,this.e=mn*rn-sn*rn+sn,this.f=xn*an-on*an+on,this}shear(rn,an,sn){return this.clone().shearO(rn,an,sn)}shearO(rn,an=0,sn=0){const{a:on,b:cn,c:un,d:pn,e:fn,f:mn}=this;return this.a=on+cn*rn,this.c=un+pn*rn,this.e=fn+mn*rn-sn*rn,this}skew(){return this.clone().skewO(...arguments)}skewO(rn,an=rn,sn=0,on=0){arguments.length===3&&(on=sn,sn=an,an=rn),rn=M$1(rn),an=M$1(an);const cn=Math.tan(rn),un=Math.tan(an),{a:pn,b:fn,c:mn,d:xn,e:vn,f:yn}=this;return this.a=pn+fn*cn,this.b=fn+pn*un,this.c=mn+xn*cn,this.d=xn+mn*un,this.e=vn+yn*cn-on*cn,this.f=yn+vn*un-sn*un,this}skewX(rn,an,sn){return this.skew(rn,0,an,sn)}skewY(rn,an,sn){return this.skew(0,rn,an,sn)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(rn){if(vt.isMatrixLike(rn))return new vt(rn).multiplyO(this);const an=vt.formatTransforms(rn),{x:sn,y:on}=new bt(an.ox,an.oy).transform(this),cn=new vt().translateO(an.rx,an.ry).lmultiplyO(this).translateO(-sn,-on).scaleO(an.scaleX,an.scaleY).skewO(an.skewX,an.skewY).shearO(an.shear).rotateO(an.theta).translateO(sn,on);if(isFinite(an.px)||isFinite(an.py)){const un=new bt(sn,on).transform(cn),pn=isFinite(an.px)?an.px-un.x:0,fn=isFinite(an.py)?an.py-un.y:0;cn.translateO(pn,fn)}return cn.translateO(an.tx,an.ty),cn}translate(rn,an){return this.clone().translateO(rn,an)}translateO(rn,an){return this.e+=rn||0,this.f+=an||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function yt(){if(!yt.nodes){const ln=B$2().size(2,0);ln.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),ln.attr("focusable","false"),ln.attr("aria-hidden","true");const rn=ln.path().node;yt.nodes={svg:ln,path:rn}}if(!yt.nodes.svg.node.parentNode){const ln=O$1.document.body||O$1.document.documentElement;yt.nodes.svg.addTo(ln)}return yt.nodes}function wt(ln){return!(ln.width||ln.height||ln.x||ln.y)}q$1(vt,"Matrix");class kt{constructor(...rn){this.init(...rn)}addOffset(){return this.x+=O$1.window.pageXOffset,this.y+=O$1.window.pageYOffset,new kt(this)}init(rn){return rn=typeof rn=="string"?rn.split(dt).map(parseFloat):Array.isArray(rn)?rn:typeof rn=="object"?[rn.left!=null?rn.left:rn.x,rn.top!=null?rn.top:rn.y,rn.width,rn.height]:arguments.length===4?[].slice.call(arguments):[0,0,0,0],this.x=rn[0]||0,this.y=rn[1]||0,this.width=this.w=rn[2]||0,this.height=this.h=rn[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return wt(this)}merge(rn){const an=Math.min(this.x,rn.x),sn=Math.min(this.y,rn.y),on=Math.max(this.x+this.width,rn.x+rn.width)-an,cn=Math.max(this.y+this.height,rn.y+rn.height)-sn;return new kt(an,sn,on,cn)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(rn){rn instanceof vt||(rn=new vt(rn));let an=1/0,sn=-1/0,on=1/0,cn=-1/0;return[new bt(this.x,this.y),new bt(this.x2,this.y),new bt(this.x,this.y2),new bt(this.x2,this.y2)].forEach(function(un){un=un.transform(rn),an=Math.min(an,un.x),sn=Math.max(sn,un.x),on=Math.min(on,un.y),cn=Math.max(cn,un.y)}),new kt(an,on,sn-an,cn-on)}}function At(ln,rn,an){let sn;try{if(sn=rn(ln.node),wt(sn)&&(on=ln.node)!==O$1.document&&!(O$1.document.documentElement.contains||function(cn){for(;cn.parentNode;)cn=cn.parentNode;return cn===O$1.document}).call(O$1.document.documentElement,on))throw new Error("Element not in the dom")}catch{sn=an(ln)}var on;return sn}A$1({viewbox:{viewbox(ln,rn,an,sn){return ln==null?new kt(this.attr("viewBox")):this.attr("viewBox",new kt(ln,rn,an,sn))},zoom(ln,rn){let{width:an,height:sn}=this.attr(["width","height"]);if((an||sn)&&typeof an!="string"&&typeof sn!="string"||(an=this.node.clientWidth,sn=this.node.clientHeight),!an||!sn)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const on=this.viewbox(),cn=an/on.width,un=sn/on.height,pn=Math.min(cn,un);if(ln==null)return pn;let fn=pn/ln;fn===1/0&&(fn=Number.MAX_SAFE_INTEGER/100),rn=rn||new bt(an/2/cn+on.x,sn/2/un+on.y);const mn=new kt(on).transform(new vt({scale:fn,origin:rn}));return this.viewbox(mn)}}}),q$1(kt,"Box");class Ct extends Array{constructor(rn=[],...an){if(super(rn,...an),typeof rn=="number")return this;this.length=0,this.push(...rn)}}Q$1([Ct],{each(ln,...rn){return typeof ln=="function"?this.map((an,sn,on)=>ln.call(an,an,sn,on)):this.map(an=>an[ln](...rn))},toArray(){return Array.prototype.concat.apply([],this)}});const St=["toArray","constructor","each"];function Lt(ln,rn){return new Ct(L$2((rn||O$1.document).querySelectorAll(ln),function(an){return V$1(an)}))}Ct.extend=function(ln){ln=ln.reduce((rn,an)=>(St.includes(an)||an[0]==="_"||(an in Array.prototype&&(rn["$"+an]=Array.prototype[an]),rn[an]=function(...sn){return this.each(an,...sn)}),rn),{}),Q$1([Ct],ln)};let Mt=0;const Pt={};function It(ln){let rn=ln.getEventHolder();return rn===O$1.window&&(rn=Pt),rn.events||(rn.events={}),rn.events}function Tt(ln){return ln.getEventTarget()}function zt(ln,rn,an,sn,on){const cn=an.bind(sn||ln),un=B$2(ln),pn=It(un),fn=Tt(un);rn=Array.isArray(rn)?rn:rn.split(dt),an._svgjsListenerId||(an._svgjsListenerId=++Mt),rn.forEach(function(mn){const xn=mn.split(".")[0],vn=mn.split(".")[1]||"*";pn[xn]=pn[xn]||{},pn[xn][vn]=pn[xn][vn]||{},pn[xn][vn][an._svgjsListenerId]=cn,fn.addEventListener(xn,cn,on||!1)})}function Xt(ln,rn,an,sn){const on=B$2(ln),cn=It(on),un=Tt(on);(typeof an!="function"||(an=an._svgjsListenerId))&&(rn=Array.isArray(rn)?rn:(rn||"").split(dt)).forEach(function(pn){const fn=pn&&pn.split(".")[0],mn=pn&&pn.split(".")[1];let xn,vn;if(an)cn[fn]&&cn[fn][mn||"*"]&&(un.removeEventListener(fn,cn[fn][mn||"*"][an],sn||!1),delete cn[fn][mn||"*"][an]);else if(fn&&mn){if(cn[fn]&&cn[fn][mn]){for(vn in cn[fn][mn])Xt(un,[fn,mn].join("."),vn);delete cn[fn][mn]}}else if(mn)for(pn in cn)for(xn in cn[pn])mn===xn&&Xt(un,[pn,mn].join("."));else if(fn){if(cn[fn]){for(xn in cn[fn])Xt(un,[fn,xn].join("."));delete cn[fn]}}else{for(pn in cn)Xt(un,pn);(function(yn){let wn=yn.getEventHolder();wn===O$1.window&&(wn=Pt),wn.events&&(wn.events={})})(on)}})}class Rt extends D$2{addEventListener(){}dispatch(rn,an,sn){return function(on,cn,un,pn){const fn=Tt(on);return cn instanceof O$1.window.Event||(cn=new O$1.window.CustomEvent(cn,{detail:un,cancelable:!0,...pn})),fn.dispatchEvent(cn),cn}(this,rn,an,sn)}dispatchEvent(rn){const an=this.getEventHolder().events;if(!an)return!0;const sn=an[rn.type];for(const on in sn)for(const cn in sn[on])sn[on][cn](rn);return!rn.defaultPrevented}fire(rn,an,sn){return this.dispatch(rn,an,sn),this}getEventHolder(){return this}getEventTarget(){return this}off(rn,an,sn){return Xt(this,rn,an,sn),this}on(rn,an,sn,on){return zt(this,rn,an,sn,on),this}removeEventListener(){}}function Et(){}q$1(Rt,"EventTarget");const Yt=400,Ht=">",Ot=0,Ft={"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","text-anchor":"start"};class Dt extends Array{constructor(...rn){super(...rn),this.init(...rn)}clone(){return new this.constructor(this)}init(rn){return typeof rn=="number"||(this.length=0,this.push(...this.parse(rn))),this}parse(rn=[]){return rn instanceof Array?rn:rn.trim().split(dt).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const rn=[];return rn.push(...this),rn}}class _t{constructor(...rn){this.init(...rn)}convert(rn){return new _t(this.value,rn)}divide(rn){return rn=new _t(rn),new _t(this/rn,this.unit||rn.unit)}init(rn,an){return an=Array.isArray(rn)?rn[1]:an,rn=Array.isArray(rn)?rn[0]:rn,this.value=0,this.unit=an||"",typeof rn=="number"?this.value=isNaN(rn)?0:isFinite(rn)?rn:rn<0?-34e37:34e37:typeof rn=="string"?(an=rn.match(tt))&&(this.value=parseFloat(an[1]),an[5]==="%"?this.value/=100:an[5]==="s"&&(this.value*=1e3),this.unit=an[5]):rn instanceof _t&&(this.value=rn.valueOf(),this.unit=rn.unit),this}minus(rn){return rn=new _t(rn),new _t(this-rn,this.unit||rn.unit)}plus(rn){return rn=new _t(rn),new _t(this+rn,this.unit||rn.unit)}times(rn){return rn=new _t(rn),new _t(this*rn,this.unit||rn.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return(this.unit==="%"?~~(1e8*this.value)/1e6:this.unit==="s"?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const Nt=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Wt=[];class Bt extends Rt{constructor(rn,an){super(),this.node=rn,this.type=rn.nodeName,an&&rn!==an&&this.attr(an)}add(rn,an){return(rn=B$2(rn)).removeNamespace&&this.node instanceof O$1.window.SVGElement&&rn.removeNamespace(),an==null?this.node.appendChild(rn.node):rn.node!==this.node.childNodes[an]&&this.node.insertBefore(rn.node,this.node.childNodes[an]),this}addTo(rn,an){return B$2(rn).put(this,an)}children(){return new Ct(L$2(this.node.children,function(rn){return V$1(rn)}))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(rn=!0,an=!0){this.writeDataToDom();let sn=this.node.cloneNode(rn);return an&&(sn=J$1(sn)),new this.constructor(sn)}each(rn,an){const sn=this.children();let on,cn;for(on=0,cn=sn.length;on<cn;on++)rn.apply(sn[on],[on,sn]),an&&sn[on].each(rn,an);return this}element(rn,an){return this.put(new Bt(W$1(rn),an))}first(){return V$1(this.node.firstChild)}get(rn){return V$1(this.node.childNodes[rn])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(rn){return this.index(rn)>=0}html(rn,an){return this.xml(rn,an,"http://www.w3.org/1999/xhtml")}id(rn){return rn!==void 0||this.node.id||(this.node.id=$$2(this.type)),this.attr("id",rn)}index(rn){return[].slice.call(this.node.childNodes).indexOf(rn.node)}last(){return V$1(this.node.lastChild)}matches(rn){const an=this.node,sn=an.matches||an.matchesSelector||an.msMatchesSelector||an.mozMatchesSelector||an.webkitMatchesSelector||an.oMatchesSelector||null;return sn&&sn.call(an,rn)}parent(rn){let an=this;if(!an.node.parentNode)return null;if(an=V$1(an.node.parentNode),!rn)return an;do if(typeof rn=="string"?an.matches(rn):an instanceof rn)return an;while(an=V$1(an.node.parentNode));return an}put(rn,an){return rn=B$2(rn),this.add(rn,an),rn}putIn(rn,an){return B$2(rn).add(this,an)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(rn){return this.node.removeChild(rn.node),this}replace(rn){return rn=B$2(rn),this.node.parentNode&&this.node.parentNode.replaceChild(rn.node,this.node),rn}round(rn=2,an=null){const sn=10**rn,on=this.attr(an);for(const cn in on)typeof on[cn]=="number"&&(on[cn]=Math.round(on[cn]*sn)/sn);return this.attr(on),this}svg(rn,an){return this.xml(rn,an,E)}toString(){return this.id()}words(rn){return this.node.textContent=rn,this}wrap(rn){const an=this.parent();if(!an)return this.addTo(rn);const sn=an.index(this);return an.put(rn,sn).put(this)}writeDataToDom(){return this.each(function(){this.writeDataToDom()}),this}xml(rn,an,sn){if(typeof rn=="boolean"&&(sn=an,an=rn,rn=null),rn==null||typeof rn=="function"){an=an==null||an,this.writeDataToDom();let pn=this;if(rn!=null){if(pn=V$1(pn.node.cloneNode(!0)),an){const fn=rn(pn);if(pn=fn||pn,fn===!1)return""}pn.each(function(){const fn=rn(this),mn=fn||this;fn===!1?this.remove():fn&&this!==mn&&this.replace(mn)},!0)}return an?pn.node.outerHTML:pn.node.innerHTML}an=an!=null&&an;const on=W$1("wrapper",sn),cn=O$1.document.createDocumentFragment();on.innerHTML=rn;for(let pn=on.children.length;pn--;)cn.appendChild(on.firstElementChild);const un=this.parent();return an?this.replace(cn)&&un:this.add(cn)}}Q$1(Bt,{attr:function(ln,rn,an){if(ln==null){ln={},rn=this.node.attributes;for(const sn of rn)ln[sn.nodeName]=ht.test(sn.nodeValue)?parseFloat(sn.nodeValue):sn.nodeValue;return ln}if(ln instanceof Array)return ln.reduce((sn,on)=>(sn[on]=this.attr(on),sn),{});if(typeof ln=="object"&&ln.constructor===Object)for(rn in ln)this.attr(rn,ln[rn]);else if(rn===null)this.node.removeAttribute(ln);else{if(rn==null)return(rn=this.node.getAttribute(ln))==null?Ft[ln]:ht.test(rn)?parseFloat(rn):rn;typeof(rn=Wt.reduce((sn,on)=>on(ln,sn,this),rn))=="number"?rn=new _t(rn):Nt.has(ln)&&xt.isColor(rn)?rn=new xt(rn):rn.constructor===Array&&(rn=new Dt(rn)),ln==="leading"?this.leading&&this.leading(rn):typeof an=="string"?this.node.setAttributeNS(an,ln,rn.toString()):this.node.setAttribute(ln,rn.toString()),!this.rebuild||ln!=="font-size"&&ln!=="x"||this.rebuild()}return this},find:function(ln){return Lt(ln,this.node)},findOne:function(ln){return V$1(this.node.querySelector(ln))}}),q$1(Bt,"Dom");let Gt=class extends Bt{constructor(ln,rn){super(ln,rn),this.dom={},this.node.instance=this,(ln.hasAttribute("data-svgjs")||ln.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(ln.getAttribute("data-svgjs"))??JSON.parse(ln.getAttribute("svgjs:data"))??{})}center(ln,rn){return this.cx(ln).cy(rn)}cx(ln){return ln==null?this.x()+this.width()/2:this.x(ln-this.width()/2)}cy(ln){return ln==null?this.y()+this.height()/2:this.y(ln-this.height()/2)}defs(){const ln=this.root();return ln&&ln.defs()}dmove(ln,rn){return this.dx(ln).dy(rn)}dx(ln=0){return this.x(new _t(ln).plus(this.x()))}dy(ln=0){return this.y(new _t(ln).plus(this.y()))}getEventHolder(){return this}height(ln){return this.attr("height",ln)}move(ln,rn){return this.x(ln).y(rn)}parents(ln=this.root()){const rn=typeof ln=="string";rn||(ln=B$2(ln));const an=new Ct;let sn=this;for(;(sn=sn.parent())&&sn.node!==O$1.document&&sn.nodeName!=="#document-fragment"&&(an.push(sn),rn||sn.node!==ln.node)&&(!rn||!sn.matches(ln));)if(sn.node===this.root().node)return null;return an}reference(ln){if(!(ln=this.attr(ln)))return null;const rn=(ln+"").match(at);return rn?B$2(rn[1]):null}root(){const ln=this.parent(function(rn){return _$1[rn]}(N$1));return ln&&ln.root()}setData(ln){return this.dom=ln,this}size(ln,rn){const an=I$2(this,ln,rn);return this.width(new _t(an.width)).height(new _t(an.height))}width(ln){return this.attr("width",ln)}writeDataToDom(){return R(this,this.dom),super.writeDataToDom()}x(ln){return this.attr("x",ln)}y(ln){return this.attr("y",ln)}};Q$1(Gt,{bbox:function(){const ln=At(this,rn=>rn.getBBox(),rn=>{try{const an=rn.clone().addTo(yt().svg).show(),sn=an.node.getBBox();return an.remove(),sn}catch(an){throw new Error(`Getting bbox of element "${rn.node.nodeName}" is not possible: ${an.toString()}`)}});return new kt(ln)},rbox:function(ln){const rn=At(this,sn=>sn.getBoundingClientRect(),sn=>{throw new Error(`Getting rbox of element "${sn.node.nodeName}" is not possible`)}),an=new kt(rn);return ln?an.transform(ln.screenCTM().inverseO()):an.addOffset()},inside:function(ln,rn){const an=this.bbox();return ln>an.x&&rn>an.y&&ln<an.x+an.width&&rn<an.y+an.height},point:function(ln,rn){return new bt(ln,rn).transformO(this.screenCTM().inverseO())},ctm:function(){return new vt(this.node.getCTM())},screenCTM:function(){try{if(typeof this.isRoot=="function"&&!this.isRoot()){const ln=this.rect(1,1),rn=ln.node.getScreenCTM();return ln.remove(),new vt(rn)}return new vt(this.node.getScreenCTM())}catch{return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new vt}}}),q$1(Gt,"Element");const jt={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(ln,rn){return rn==="color"?ln:ln+"-"+rn}};["fill","stroke"].forEach(function(ln){const rn={};let an;rn[ln]=function(sn){if(sn===void 0)return this.attr(ln);if(typeof sn=="string"||sn instanceof xt||xt.isRgb(sn)||sn instanceof Gt)this.attr(ln,sn);else for(an=jt[ln].length-1;an>=0;an--)sn[jt[ln][an]]!=null&&this.attr(jt.prefix(ln,jt[ln][an]),sn[jt[ln][an]]);return this},A$1(["Element","Runner"],rn)}),A$1(["Element","Runner"],{matrix:function(ln,rn,an,sn,on,cn){return ln==null?new vt(this):this.attr("transform",new vt(ln,rn,an,sn,on,cn))},rotate:function(ln,rn,an){return this.transform({rotate:ln,ox:rn,oy:an},!0)},skew:function(ln,rn,an,sn){return arguments.length===1||arguments.length===3?this.transform({skew:ln,ox:rn,oy:an},!0):this.transform({skew:[ln,rn],ox:an,oy:sn},!0)},shear:function(ln,rn,an){return this.transform({shear:ln,ox:rn,oy:an},!0)},scale:function(ln,rn,an,sn){return arguments.length===1||arguments.length===3?this.transform({scale:ln,ox:rn,oy:an},!0):this.transform({scale:[ln,rn],ox:an,oy:sn},!0)},translate:function(ln,rn){return this.transform({translate:[ln,rn]},!0)},relative:function(ln,rn){return this.transform({relative:[ln,rn]},!0)},flip:function(ln="both",rn="center"){return"xybothtrue".indexOf(ln)===-1&&(rn=ln,ln="both"),this.transform({flip:ln,origin:rn},!0)},opacity:function(ln){return this.attr("opacity",ln)}}),A$1("radius",{radius:function(ln,rn=ln){return(this._element||this).type==="radialGradient"?this.attr("r",new _t(ln)):this.rx(ln).ry(rn)}}),A$1("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(ln){return new bt(this.node.getPointAtLength(ln))}}),A$1(["Element","Runner"],{font:function(ln,rn){if(typeof ln=="object"){for(rn in ln)this.font(rn,ln[rn]);return this}return ln==="leading"?this.leading(rn):ln==="anchor"?this.attr("text-anchor",rn):ln==="size"||ln==="family"||ln==="weight"||ln==="stretch"||ln==="variant"||ln==="style"?this.attr("font-"+ln,rn):this.attr(ln,rn)}});A$1("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce(function(ln,rn){return ln[rn]=function(an){return an===null?this.off(rn):this.on(rn,an),this},ln},{})),A$1("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(st).slice(0,-1).map(function(rn){const an=rn.trim().split("(");return[an[0],an[1].split(dt).map(function(sn){return parseFloat(sn)})]}).reverse().reduce(function(rn,an){return an[0]==="matrix"?rn.lmultiply(vt.fromArray(an[1])):rn[an[0]].apply(rn,an[1])},new vt)},toParent:function(ln,rn){if(this===ln)return this;if(X(this.node))return this.addTo(ln,rn);const an=this.screenCTM(),sn=ln.screenCTM().inverse();return this.addTo(ln,rn).untransform().transform(sn.multiply(an)),this},toRoot:function(ln){return this.toParent(this.root(),ln)},transform:function(ln,rn){if(ln==null||typeof ln=="string"){const sn=new vt(this).decompose();return ln==null?sn:sn[ln]}vt.isMatrixLike(ln)||(ln={...ln,origin:T$2(ln,this)});const an=new vt(rn===!0?this:rn||!1).transform(ln);return this.attr("transform",an)}});class Vt extends Gt{flatten(){return this.each(function(){if(this instanceof Vt)return this.flatten().ungroup()}),this}ungroup(rn=this.parent(),an=rn.index(this)){return an=an===-1?rn.children().length:an,this.each(function(sn,on){return on[on.length-sn-1].toParent(rn,an)}),this.remove()}}q$1(Vt,"Container");class Ut extends Vt{constructor(rn,an=rn){super(G$2("defs",rn),an)}flatten(){return this}ungroup(){return this}}q$1(Ut,"Defs");class qt extends Gt{}function Zt(ln){return this.attr("rx",ln)}function $t(ln){return this.attr("ry",ln)}function Jt(ln){return ln==null?this.cx()-this.rx():this.cx(ln+this.rx())}function Qt(ln){return ln==null?this.cy()-this.ry():this.cy(ln+this.ry())}function Kt(ln){return this.attr("cx",ln)}function te(ln){return this.attr("cy",ln)}function ee(ln){return ln==null?2*this.rx():this.rx(new _t(ln).divide(2))}function ie(ln){return ln==null?2*this.ry():this.ry(new _t(ln).divide(2))}q$1(qt,"Shape");var ae=Object.freeze({__proto__:null,cx:Kt,cy:te,height:ie,rx:Zt,ry:$t,width:ee,x:Jt,y:Qt});class se extends qt{constructor(rn,an=rn){super(G$2("ellipse",rn),an)}size(rn,an){const sn=I$2(this,rn,an);return this.rx(new _t(sn.width).divide(2)).ry(new _t(sn.height).divide(2))}}Q$1(se,ae),A$1("Container",{ellipse:K$1(function(ln=0,rn=ln){return this.put(new se).size(ln,rn).move(0,0)})}),q$1(se,"Ellipse");class re extends Bt{constructor(rn=O$1.document.createDocumentFragment()){super(rn)}xml(rn,an,sn){if(typeof rn=="boolean"&&(sn=an,an=rn,rn=null),rn==null||typeof rn=="function"){const on=new Bt(W$1("wrapper",sn));return on.add(this.node.cloneNode(!0)),on.xml(!1,sn)}return super.xml(rn,!1,sn)}}function ne(ln,rn){return(this._element||this).type==="radialGradient"?this.attr({fx:new _t(ln),fy:new _t(rn)}):this.attr({x1:new _t(ln),y1:new _t(rn)})}function oe(ln,rn){return(this._element||this).type==="radialGradient"?this.attr({cx:new _t(ln),cy:new _t(rn)}):this.attr({x2:new _t(ln),y2:new _t(rn)})}q$1(re,"Fragment");var le=Object.freeze({__proto__:null,from:ne,to:oe});class he extends Vt{constructor(rn,an){super(G$2(rn+"Gradient",typeof rn=="string"?null:rn),an)}attr(rn,an,sn){return rn==="transform"&&(rn="gradientTransform"),super.attr(rn,an,sn)}bbox(){return new kt}targets(){return Lt("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(rn){return this.clear(),typeof rn=="function"&&rn.call(this,this),this}url(){return"url(#"+this.id()+")"}}Q$1(he,le),A$1({Container:{gradient(...ln){return this.defs().gradient(...ln)}},Defs:{gradient:K$1(function(ln,rn){return this.put(new he(ln)).update(rn)})}}),q$1(he,"Gradient");class ce extends Vt{constructor(rn,an=rn){super(G$2("pattern",rn),an)}attr(rn,an,sn){return rn==="transform"&&(rn="patternTransform"),super.attr(rn,an,sn)}bbox(){return new kt}targets(){return Lt("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(rn){return this.clear(),typeof rn=="function"&&rn.call(this,this),this}url(){return"url(#"+this.id()+")"}}A$1({Container:{pattern(...ln){return this.defs().pattern(...ln)}},Defs:{pattern:K$1(function(ln,rn,an){return this.put(new ce).update(an).attr({x:0,y:0,width:ln,height:rn,patternUnits:"userSpaceOnUse"})})}}),q$1(ce,"Pattern");let de=class extends qt{constructor(ln,rn=ln){super(G$2("image",ln),rn)}load(ln,rn){if(!ln)return this;const an=new O$1.window.Image;return zt(an,"load",function(sn){const on=this.parent(ce);this.width()===0&&this.height()===0&&this.size(an.width,an.height),on instanceof ce&&on.width()===0&&on.height()===0&&on.size(this.width(),this.height()),typeof rn=="function"&&rn.call(this,sn)},this),zt(an,"load error",function(){Xt(an)}),this.attr("href",an.src=ln,H$2)}};var ue;ue=function(ln,rn,an){return ln!=="fill"&&ln!=="stroke"||ct.test(rn)&&(rn=an.root().defs().image(rn)),rn instanceof de&&(rn=an.root().defs().pattern(0,0,sn=>{sn.add(rn)})),rn},Wt.push(ue),A$1({Container:{image:K$1(function(ln,rn){return this.put(new de).size(0,0).load(ln,rn)})}}),q$1(de,"Image");class ge extends Dt{bbox(){let rn=-1/0,an=-1/0,sn=1/0,on=1/0;return this.forEach(function(cn){rn=Math.max(cn[0],rn),an=Math.max(cn[1],an),sn=Math.min(cn[0],sn),on=Math.min(cn[1],on)}),new kt(sn,on,rn-sn,an-on)}move(rn,an){const sn=this.bbox();if(rn-=sn.x,an-=sn.y,!isNaN(rn)&&!isNaN(an))for(let on=this.length-1;on>=0;on--)this[on]=[this[on][0]+rn,this[on][1]+an];return this}parse(rn=[0,0]){const an=[];(rn=rn instanceof Array?Array.prototype.concat.apply([],rn):rn.trim().split(dt).map(parseFloat)).length%2!=0&&rn.pop();for(let sn=0,on=rn.length;sn<on;sn+=2)an.push([rn[sn],rn[sn+1]]);return an}size(rn,an){let sn;const on=this.bbox();for(sn=this.length-1;sn>=0;sn--)on.width&&(this[sn][0]=(this[sn][0]-on.x)*rn/on.width+on.x),on.height&&(this[sn][1]=(this[sn][1]-on.y)*an/on.height+on.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const rn=[];for(let an=0,sn=this.length;an<sn;an++)rn.push(this[an].join(","));return rn.join(" ")}transform(rn){return this.clone().transformO(rn)}transformO(rn){vt.isMatrixLike(rn)||(rn=new vt(rn));for(let an=this.length;an--;){const[sn,on]=this[an];this[an][0]=rn.a*sn+rn.c*on+rn.e,this[an][1]=rn.b*sn+rn.d*on+rn.f}return this}}const pe=ge;var fe=Object.freeze({__proto__:null,MorphArray:pe,height:function(ln){const rn=this.bbox();return ln==null?rn.height:this.size(rn.width,ln)},width:function(ln){const rn=this.bbox();return ln==null?rn.width:this.size(ln,rn.height)},x:function(ln){return ln==null?this.bbox().x:this.move(ln,this.bbox().y)},y:function(ln){return ln==null?this.bbox().y:this.move(this.bbox().x,ln)}});let xe=class extends qt{constructor(ln,rn=ln){super(G$2("line",ln),rn)}array(){return new ge([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(ln,rn){return this.attr(this.array().move(ln,rn).toLine())}plot(ln,rn,an,sn){return ln==null?this.array():(ln=rn!==void 0?{x1:ln,y1:rn,x2:an,y2:sn}:new ge(ln).toLine(),this.attr(ln))}size(ln,rn){const an=I$2(this,ln,rn);return this.attr(this.array().size(an.width,an.height).toLine())}};Q$1(xe,fe),A$1({Container:{line:K$1(function(...ln){return xe.prototype.plot.apply(this.put(new xe),ln[0]!=null?ln:[0,0,0,0])})}}),q$1(xe,"Line");let be=class extends Vt{constructor(ln,rn=ln){super(G$2("marker",ln),rn)}height(ln){return this.attr("markerHeight",ln)}orient(ln){return this.attr("orient",ln)}ref(ln,rn){return this.attr("refX",ln).attr("refY",rn)}toString(){return"url(#"+this.id()+")"}update(ln){return this.clear(),typeof ln=="function"&&ln.call(this,this),this}width(ln){return this.attr("markerWidth",ln)}};function me(ln,rn){return function(an){return an==null?this[ln]:(this[ln]=an,rn&&rn.call(this),this)}}A$1({Container:{marker(...ln){return this.defs().marker(...ln)}},Defs:{marker:K$1(function(ln,rn,an){return this.put(new be).size(ln,rn).ref(ln/2,rn/2).viewbox(0,0,ln,rn).attr("orient","auto").update(an)})},marker:{marker(ln,rn,an,sn){let on=["marker"];return ln!=="all"&&on.push(ln),on=on.join("-"),ln=arguments[1]instanceof be?arguments[1]:this.defs().marker(rn,an,sn),this.attr(on,ln)}}}),q$1(be,"Marker");const ve={"-":function(ln){return ln},"<>":function(ln){return-Math.cos(ln*Math.PI)/2+.5},">":function(ln){return Math.sin(ln*Math.PI/2)},"<":function(ln){return 1-Math.cos(ln*Math.PI/2)},bezier:function(ln,rn,an,sn){return function(on){return on<0?ln>0?rn/ln*on:an>0?sn/an*on:0:on>1?an<1?(1-sn)/(1-an)*on+(sn-an)/(1-an):ln<1?(1-rn)/(1-ln)*on+(rn-ln)/(1-ln):1:3*on*(1-on)**2*rn+3*on**2*(1-on)*sn+on**3}},steps:function(ln,rn="end"){rn=rn.split("-").reverse()[0];let an=ln;return rn==="none"?--an:rn==="both"&&++an,(sn,on=!1)=>{let cn=Math.floor(sn*ln);const un=sn*cn%1==0;return rn!=="start"&&rn!=="both"||++cn,on&&un&&--cn,sn>=0&&cn<0&&(cn=0),sn<=1&&cn>an&&(cn=an),cn/an}}};class ye{done(){return!1}}class we extends ye{constructor(rn=Ht){super(),this.ease=ve[rn]||rn}step(rn,an,sn){return typeof rn!="number"?sn<1?rn:an:rn+(an-rn)*this.ease(sn)}}class ke extends ye{constructor(rn){super(),this.stepper=rn}done(rn){return rn.done}step(rn,an,sn,on){return this.stepper(rn,an,sn,on)}}function Ae(){const ln=(this._duration||500)/1e3,rn=this._overshoot||0,an=Math.PI,sn=Math.log(rn/100+1e-10),on=-sn/Math.sqrt(an*an+sn*sn),cn=3.9/(on*ln);this.d=2*on*cn,this.k=cn*cn}Q$1(class extends ke{constructor(ln=500,rn=0){super(),this.duration(ln).overshoot(rn)}step(ln,rn,an,sn){if(typeof ln=="string")return ln;if(sn.done=an===1/0,an===1/0)return rn;if(an===0)return ln;an>100&&(an=16),an/=1e3;const on=sn.velocity||0,cn=-this.d*on-this.k*(ln-rn),un=ln+on*an+cn*an*an/2;return sn.velocity=on+cn*an,sn.done=Math.abs(rn-un)+Math.abs(on)<.002,sn.done?rn:un}},{duration:me("_duration",Ae),overshoot:me("_overshoot",Ae)});Q$1(class extends ke{constructor(ln=.1,rn=.01,an=0,sn=1e3){super(),this.p(ln).i(rn).d(an).windup(sn)}step(ln,rn,an,sn){if(typeof ln=="string")return ln;if(sn.done=an===1/0,an===1/0)return rn;if(an===0)return ln;const on=rn-ln;let cn=(sn.integral||0)+on*an;const un=(on-(sn.error||0))/an,pn=this._windup;return pn!==!1&&(cn=Math.max(-pn,Math.min(cn,pn))),sn.error=on,sn.integral=cn,sn.done=Math.abs(on)<.001,sn.done?rn:ln+(this.P*on+this.I*cn+this.D*un)}},{windup:me("_windup"),p:me("P"),i:me("I"),d:me("D")});const Ce={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},Se={M:function(ln,rn,an){return rn.x=an.x=ln[0],rn.y=an.y=ln[1],["M",rn.x,rn.y]},L:function(ln,rn){return rn.x=ln[0],rn.y=ln[1],["L",ln[0],ln[1]]},H:function(ln,rn){return rn.x=ln[0],["H",ln[0]]},V:function(ln,rn){return rn.y=ln[0],["V",ln[0]]},C:function(ln,rn){return rn.x=ln[4],rn.y=ln[5],["C",ln[0],ln[1],ln[2],ln[3],ln[4],ln[5]]},S:function(ln,rn){return rn.x=ln[2],rn.y=ln[3],["S",ln[0],ln[1],ln[2],ln[3]]},Q:function(ln,rn){return rn.x=ln[2],rn.y=ln[3],["Q",ln[0],ln[1],ln[2],ln[3]]},T:function(ln,rn){return rn.x=ln[0],rn.y=ln[1],["T",ln[0],ln[1]]},Z:function(ln,rn,an){return rn.x=an.x,rn.y=an.y,["Z"]},A:function(ln,rn){return rn.x=ln[5],rn.y=ln[6],["A",ln[0],ln[1],ln[2],ln[3],ln[4],ln[5],ln[6]]}},Le="mlhvqtcsaz".split("");for(let ln=0,rn=Le.length;ln<rn;++ln)Se[Le[ln]]=function(an){return function(sn,on,cn){if(an==="H")sn[0]=sn[0]+on.x;else if(an==="V")sn[0]=sn[0]+on.y;else if(an==="A")sn[5]=sn[5]+on.x,sn[6]=sn[6]+on.y;else for(let un=0,pn=sn.length;un<pn;++un)sn[un]=sn[un]+(un%2?on.y:on.x);return Se[an](sn,on,cn)}}(Le[ln].toUpperCase());function Me(ln){return ln.segment.length&&ln.segment.length-1===Ce[ln.segment[0].toUpperCase()]}function Pe(ln,rn){ln.inNumber&&Ie(ln,!1);const an=ut.test(rn);if(an)ln.segment=[rn];else{const sn=ln.lastCommand,on=sn.toLowerCase(),cn=sn===on;ln.segment=[on==="m"?cn?"l":"L":sn]}return ln.inSegment=!0,ln.lastCommand=ln.segment[0],an}function Ie(ln,rn){if(!ln.inNumber)throw new Error("Parser Error");ln.number&&ln.segment.push(parseFloat(ln.number)),ln.inNumber=rn,ln.number="",ln.pointSeen=!1,ln.hasExponent=!1,Me(ln)&&Te(ln)}function Te(ln){ln.inSegment=!1,ln.absolute&&(ln.segment=function(rn){const an=rn.segment[0];return Se[an](rn.segment.slice(1),rn.p,rn.p0)}(ln)),ln.segments.push(ln.segment)}function ze(ln){if(!ln.segment.length)return!1;const rn=ln.segment[0].toUpperCase()==="A",an=ln.segment.length;return rn&&(an===4||an===5)}function Xe(ln){return ln.lastToken.toUpperCase()==="E"}const Re=new Set([" ",",","	",`
`,"\r","\f"]);class Ee extends Dt{bbox(){return yt().path.setAttribute("d",this.toString()),new kt(yt.nodes.path.getBBox())}move(rn,an){const sn=this.bbox();if(rn-=sn.x,an-=sn.y,!isNaN(rn)&&!isNaN(an))for(let on,cn=this.length-1;cn>=0;cn--)on=this[cn][0],on==="M"||on==="L"||on==="T"?(this[cn][1]+=rn,this[cn][2]+=an):on==="H"?this[cn][1]+=rn:on==="V"?this[cn][1]+=an:on==="C"||on==="S"||on==="Q"?(this[cn][1]+=rn,this[cn][2]+=an,this[cn][3]+=rn,this[cn][4]+=an,on==="C"&&(this[cn][5]+=rn,this[cn][6]+=an)):on==="A"&&(this[cn][6]+=rn,this[cn][7]+=an);return this}parse(rn="M0 0"){return Array.isArray(rn)&&(rn=Array.prototype.concat.apply([],rn).toString()),function(an,sn=!0){let on=0,cn="";const un={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:sn,p0:new bt,p:new bt};for(;un.lastToken=cn,cn=an.charAt(on++);)if(un.inSegment||!Pe(un,cn))if(cn!==".")if(isNaN(parseInt(cn)))if(Re.has(cn))un.inNumber&&Ie(un,!1);else if(cn!=="-"&&cn!=="+")if(cn.toUpperCase()!=="E"){if(ut.test(cn)){if(un.inNumber)Ie(un,!1);else{if(!Me(un))throw new Error("parser Error");Te(un)}--on}}else un.number+=cn,un.hasExponent=!0;else{if(un.inNumber&&!Xe(un)){Ie(un,!1),--on;continue}un.number+=cn,un.inNumber=!0}else{if(un.number==="0"||ze(un)){un.inNumber=!0,un.number=cn,Ie(un,!0);continue}un.inNumber=!0,un.number+=cn}else{if(un.pointSeen||un.hasExponent){Ie(un,!1),--on;continue}un.inNumber=!0,un.pointSeen=!0,un.number+=cn}return un.inNumber&&Ie(un,!1),un.inSegment&&Me(un)&&Te(un),un.segments}(rn)}size(rn,an){const sn=this.bbox();let on,cn;for(sn.width=sn.width===0?1:sn.width,sn.height=sn.height===0?1:sn.height,on=this.length-1;on>=0;on--)cn=this[on][0],cn==="M"||cn==="L"||cn==="T"?(this[on][1]=(this[on][1]-sn.x)*rn/sn.width+sn.x,this[on][2]=(this[on][2]-sn.y)*an/sn.height+sn.y):cn==="H"?this[on][1]=(this[on][1]-sn.x)*rn/sn.width+sn.x:cn==="V"?this[on][1]=(this[on][1]-sn.y)*an/sn.height+sn.y:cn==="C"||cn==="S"||cn==="Q"?(this[on][1]=(this[on][1]-sn.x)*rn/sn.width+sn.x,this[on][2]=(this[on][2]-sn.y)*an/sn.height+sn.y,this[on][3]=(this[on][3]-sn.x)*rn/sn.width+sn.x,this[on][4]=(this[on][4]-sn.y)*an/sn.height+sn.y,cn==="C"&&(this[on][5]=(this[on][5]-sn.x)*rn/sn.width+sn.x,this[on][6]=(this[on][6]-sn.y)*an/sn.height+sn.y)):cn==="A"&&(this[on][1]=this[on][1]*rn/sn.width,this[on][2]=this[on][2]*an/sn.height,this[on][6]=(this[on][6]-sn.x)*rn/sn.width+sn.x,this[on][7]=(this[on][7]-sn.y)*an/sn.height+sn.y);return this}toString(){return function(rn){let an="";for(let sn=0,on=rn.length;sn<on;sn++)an+=rn[sn][0],rn[sn][1]!=null&&(an+=rn[sn][1],rn[sn][2]!=null&&(an+=" ",an+=rn[sn][2],rn[sn][3]!=null&&(an+=" ",an+=rn[sn][3],an+=" ",an+=rn[sn][4],rn[sn][5]!=null&&(an+=" ",an+=rn[sn][5],an+=" ",an+=rn[sn][6],rn[sn][7]!=null&&(an+=" ",an+=rn[sn][7])))));return an+" "}(this)}}const Ye=ln=>{const rn=typeof ln;return rn==="number"?_t:rn==="string"?xt.isColor(ln)?xt:dt.test(ln)?ut.test(ln)?Ee:Dt:tt.test(ln)?_t:Oe:Ne.indexOf(ln.constructor)>-1?ln.constructor:Array.isArray(ln)?Dt:rn==="object"?_e:Oe};class He{constructor(rn){this._stepper=rn||new we("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(rn){return this._morphObj.morph(this._from,this._to,rn,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce(function(rn,an){return rn&&an},!0)}from(rn){return rn==null?this._from:(this._from=this._set(rn),this)}stepper(rn){return rn==null?this._stepper:(this._stepper=rn,this)}to(rn){return rn==null?this._to:(this._to=this._set(rn),this)}type(rn){return rn==null?this._type:(this._type=rn,this)}_set(rn){this._type||this.type(Ye(rn));let an=new this._type(rn);return this._type===xt&&(an=this._to?an[this._to[4]]():this._from?an[this._from[4]]():an),this._type===_e&&(an=this._to?an.align(this._to):this._from?an.align(this._from):an),an=an.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(an.length)).map(Object).map(function(sn){return sn.done=!0,sn}),an}}class Oe{constructor(...rn){this.init(...rn)}init(rn){return rn=Array.isArray(rn)?rn[0]:rn,this.value=rn,this}toArray(){return[this.value]}valueOf(){return this.value}}class Fe{constructor(...rn){this.init(...rn)}init(rn){return Array.isArray(rn)&&(rn={scaleX:rn[0],scaleY:rn[1],shear:rn[2],rotate:rn[3],translateX:rn[4],translateY:rn[5],originX:rn[6],originY:rn[7]}),Object.assign(this,Fe.defaults,rn),this}toArray(){const rn=this;return[rn.scaleX,rn.scaleY,rn.shear,rn.rotate,rn.translateX,rn.translateY,rn.originX,rn.originY]}}Fe.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const De=(ln,rn)=>ln[0]<rn[0]?-1:ln[0]>rn[0]?1:0;class _e{constructor(...rn){this.init(...rn)}align(rn){const an=this.values;for(let sn=0,on=an.length;sn<on;++sn){if(an[sn+1]===rn[sn+1]){if(an[sn+1]===xt&&rn[sn+7]!==an[sn+7]){const pn=rn[sn+7],fn=new xt(this.values.splice(sn+3,5))[pn]().toArray();this.values.splice(sn+3,0,...fn)}sn+=an[sn+2]+2;continue}if(!rn[sn+1])return this;const cn=new rn[sn+1]().toArray(),un=an[sn+2]+3;an.splice(sn,un,rn[sn],rn[sn+1],rn[sn+2],...cn),sn+=an[sn+2]+2}return this}init(rn){if(this.values=[],Array.isArray(rn))return void(this.values=rn.slice());rn=rn||{};const an=[];for(const sn in rn){const on=Ye(rn[sn]),cn=new on(rn[sn]).toArray();an.push([sn,on,cn.length,...cn])}return an.sort(De),this.values=an.reduce((sn,on)=>sn.concat(on),[]),this}toArray(){return this.values}valueOf(){const rn={},an=this.values;for(;an.length;){const sn=an.shift(),on=an.shift(),cn=an.shift(),un=an.splice(0,cn);rn[sn]=new on(un)}return rn}}const Ne=[Oe,Fe,_e];class We extends qt{constructor(rn,an=rn){super(G$2("path",rn),an)}array(){return this._array||(this._array=new Ee(this.attr("d")))}clear(){return delete this._array,this}height(rn){return rn==null?this.bbox().height:this.size(this.bbox().width,rn)}move(rn,an){return this.attr("d",this.array().move(rn,an))}plot(rn){return rn==null?this.array():this.clear().attr("d",typeof rn=="string"?rn:this._array=new Ee(rn))}size(rn,an){const sn=I$2(this,rn,an);return this.attr("d",this.array().size(sn.width,sn.height))}width(rn){return rn==null?this.bbox().width:this.size(rn,this.bbox().height)}x(rn){return rn==null?this.bbox().x:this.move(rn,this.bbox().y)}y(rn){return rn==null?this.bbox().y:this.move(this.bbox().x,rn)}}We.prototype.MorphArray=Ee,A$1({Container:{path:K$1(function(ln){return this.put(new We).plot(ln||new Ee)})}}),q$1(We,"Path");var Be=Object.freeze({__proto__:null,array:function(){return this._array||(this._array=new ge(this.attr("points")))},clear:function(){return delete this._array,this},move:function(ln,rn){return this.attr("points",this.array().move(ln,rn))},plot:function(ln){return ln==null?this.array():this.clear().attr("points",typeof ln=="string"?ln:this._array=new ge(ln))},size:function(ln,rn){const an=I$2(this,ln,rn);return this.attr("points",this.array().size(an.width,an.height))}});class Ge extends qt{constructor(rn,an=rn){super(G$2("polygon",rn),an)}}A$1({Container:{polygon:K$1(function(ln){return this.put(new Ge).plot(ln||new ge)})}}),Q$1(Ge,fe),Q$1(Ge,Be),q$1(Ge,"Polygon");class je extends qt{constructor(rn,an=rn){super(G$2("polyline",rn),an)}}A$1({Container:{polyline:K$1(function(ln){return this.put(new je).plot(ln||new ge)})}}),Q$1(je,fe),Q$1(je,Be),q$1(je,"Polyline");class Ve extends qt{constructor(rn,an=rn){super(G$2("rect",rn),an)}}Q$1(Ve,{rx:Zt,ry:$t}),A$1({Container:{rect:K$1(function(ln,rn){return this.put(new Ve).size(ln,rn)})}}),q$1(Ve,"Rect");class Ue{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(rn){const an=rn.next!==void 0?rn:{value:rn,next:null,prev:null};return this._last?(an.prev=this._last,this._last.next=an,this._last=an):(this._last=an,this._first=an),an}remove(rn){rn.prev&&(rn.prev.next=rn.next),rn.next&&(rn.next.prev=rn.prev),rn===this._last&&(this._last=rn.prev),rn===this._first&&(this._first=rn.next),rn.prev=null,rn.next=null}shift(){const rn=this._first;return rn?(this._first=rn.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,rn.value):null}}const qe={nextDraw:null,frames:new Ue,timeouts:new Ue,immediates:new Ue,timer:()=>O$1.window.performance||O$1.window.Date,transforms:[],frame(ln){const rn=qe.frames.push({run:ln});return qe.nextDraw===null&&(qe.nextDraw=O$1.window.requestAnimationFrame(qe._draw)),rn},timeout(ln,rn){rn=rn||0;const an=qe.timer().now()+rn,sn=qe.timeouts.push({run:ln,time:an});return qe.nextDraw===null&&(qe.nextDraw=O$1.window.requestAnimationFrame(qe._draw)),sn},immediate(ln){const rn=qe.immediates.push(ln);return qe.nextDraw===null&&(qe.nextDraw=O$1.window.requestAnimationFrame(qe._draw)),rn},cancelFrame(ln){ln!=null&&qe.frames.remove(ln)},clearTimeout(ln){ln!=null&&qe.timeouts.remove(ln)},cancelImmediate(ln){ln!=null&&qe.immediates.remove(ln)},_draw(ln){let rn=null;const an=qe.timeouts.last();for(;(rn=qe.timeouts.shift())&&(ln>=rn.time?rn.run():qe.timeouts.push(rn),rn!==an););let sn=null;const on=qe.frames.last();for(;sn!==on&&(sn=qe.frames.shift());)sn.run(ln);let cn=null;for(;cn=qe.immediates.shift();)cn();qe.nextDraw=qe.timeouts.first()||qe.frames.first()?O$1.window.requestAnimationFrame(qe._draw):null}},Ze=function(ln){const rn=ln.start,an=ln.runner.duration();return{start:rn,duration:an,end:rn+an,runner:ln.runner}},$e=function(){const ln=O$1.window;return(ln.performance||ln.Date).now()};class Je extends Rt{constructor(rn=$e){super(),this._timeSource=rn,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const rn=this.getLastRunnerInfo(),an=rn?rn.runner.duration():0;return(rn?rn.start:this._time)+an}getEndTimeOfTimeline(){const rn=this._runners.map(an=>an.start+an.runner.duration());return Math.max(0,...rn)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(rn){return this._runners[this._runnerIds.indexOf(rn)]||null}pause(){return this._paused=!0,this._continue()}persist(rn){return rn==null?this._persist:(this._persist=rn,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(rn){const an=this.speed();if(rn==null)return this.speed(-an);const sn=Math.abs(an);return this.speed(rn?-sn:sn)}schedule(rn,an,sn){if(rn==null)return this._runners.map(Ze);let on=0;const cn=this.getEndTime();if(an=an||0,sn==null||sn==="last"||sn==="after")on=cn;else if(sn==="absolute"||sn==="start")on=an,an=0;else if(sn==="now")on=this._time;else if(sn==="relative"){const fn=this.getRunnerInfoById(rn.id);fn&&(on=fn.start+an,an=0)}else{if(sn!=="with-last")throw new Error('Invalid value for the "when" parameter');{const fn=this.getLastRunnerInfo();on=fn?fn.start:this._time}}rn.unschedule(),rn.timeline(this);const un=rn.persist(),pn={persist:un===null?this._persist:un,start:on+an,runner:rn};return this._lastRunnerId=rn.id,this._runners.push(pn),this._runners.sort((fn,mn)=>fn.start-mn.start),this._runnerIds=this._runners.map(fn=>fn.runner.id),this.updateTime()._continue(),this}seek(rn){return this.time(this._time+rn)}source(rn){return rn==null?this._timeSource:(this._timeSource=rn,this)}speed(rn){return rn==null?this._speed:(this._speed=rn,this)}stop(){return this.time(0),this.pause()}time(rn){return rn==null?this._time:(this._time=rn,this._continue(!0))}unschedule(rn){const an=this._runnerIds.indexOf(rn.id);return an<0||(this._runners.splice(an,1),this._runnerIds.splice(an,1),rn.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(rn=!1){return qe.cancelFrame(this._nextFrame),this._nextFrame=null,rn?this._stepImmediate():(this._paused||(this._nextFrame=qe.frame(this._step)),this)}_stepFn(rn=!1){const an=this._timeSource();let sn=an-this._lastSourceTime;rn&&(sn=0);const on=this._speed*sn+(this._time-this._lastStepTime);this._lastSourceTime=an,rn||(this._time+=on,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let un=this._runners.length;un--;){const pn=this._runners[un],fn=pn.runner;this._time-pn.start<=0&&fn.reset()}let cn=!1;for(let un=0,pn=this._runners.length;un<pn;un++){const fn=this._runners[un],mn=fn.runner;let xn=on;const vn=this._time-fn.start;if(vn<=0){cn=!0;continue}vn<xn&&(xn=vn),mn.active()&&(mn.step(xn).done?fn.persist!==!0&&mn.duration()-mn.time()+this._time+fn.persist<this._time&&(mn.unschedule(),--un,--pn):cn=!0)}return cn&&!(this._speed<0&&this._time===0)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}A$1({Element:{timeline:function(ln){return ln==null?(this._timeline=this._timeline||new Je,this._timeline):(this._timeline=ln,this)}}});class Qe extends Rt{constructor(rn){super(),this.id=Qe.id++,rn=typeof(rn=rn??Yt)=="function"?new ke(rn):rn,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration=typeof rn=="number"&&rn,this._isDeclarative=rn instanceof ke,this._stepper=this._isDeclarative?rn:new we,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new vt,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(rn,an,sn){let on=1,cn=!1,un=0;return an=an??Ot,sn=sn||"last",typeof(rn=rn??Yt)!="object"||rn instanceof ye||(an=rn.delay??an,sn=rn.when??sn,cn=rn.swing||cn,on=rn.times??on,un=rn.wait??un,rn=rn.duration??Yt),{duration:rn,delay:an,swing:cn,times:on,wait:un,when:sn}}active(rn){return rn==null?this.enabled:(this.enabled=rn,this)}addTransform(rn){return this.transforms.lmultiplyO(rn),this}after(rn){return this.on("finished",rn)}animate(rn,an,sn){const on=Qe.sanitise(rn,an,sn),cn=new Qe(on.duration);return this._timeline&&cn.timeline(this._timeline),this._element&&cn.element(this._element),cn.loop(on).schedule(on.delay,on.when)}clearTransform(){return this.transforms=new vt,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter(rn=>!rn.isTransform))}delay(rn){return this.animate(0,rn)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(rn){return this.queue(null,rn)}ease(rn){return this._stepper=new we(rn),this}element(rn){return rn==null?this._element:(this._element=rn,rn._prepareRunner(),this)}finish(){return this.step(1/0)}loop(rn,an,sn){return typeof rn=="object"&&(an=rn.swing,sn=rn.wait,rn=rn.times),this._times=rn||1/0,this._swing=an||!1,this._wait=sn||0,this._times===!0&&(this._times=1/0),this}loops(rn){const an=this._duration+this._wait;if(rn==null){const cn=Math.floor(this._time/an),un=(this._time-cn*an)/this._duration;return Math.min(cn+un,this._times)}const sn=rn%1,on=an*Math.floor(rn)+this._duration*sn;return this.time(on)}persist(rn){return rn==null?this._persist:(this._persist=rn,this)}position(rn){const an=this._time,sn=this._duration,on=this._wait,cn=this._times,un=this._swing,pn=this._reverse;let fn;if(rn==null){const vn=function(wn){const An=un*Math.floor(wn%(2*(on+sn))/(on+sn)),Cn=An&&!pn||!An&&pn,kn=Math.pow(-1,Cn)*(wn%(on+sn))/sn+Cn;return Math.max(Math.min(kn,1),0)},yn=cn*(on+sn)-on;return fn=an<=0?Math.round(vn(1e-5)):an<yn?vn(an):Math.round(vn(yn-1e-5)),fn}const mn=Math.floor(this.loops()),xn=un&&mn%2==0;return fn=mn+(xn&&!pn||pn&&xn?rn:1-rn),this.loops(fn)}progress(rn){return rn==null?Math.min(1,this._time/this.duration()):this.time(rn*this.duration())}queue(rn,an,sn,on){return this._queue.push({initialiser:rn||Et,runner:an||Et,retarget:sn,isTransform:on,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(rn){return this._reverse=rn??!this._reverse,this}schedule(rn,an,sn){if(rn instanceof Je||(sn=an,an=rn,rn=this.timeline()),!rn)throw Error("Runner cannot be scheduled without timeline");return rn.schedule(this,an,sn),this}step(rn){if(!this.enabled)return this;rn=rn??16,this._time+=rn;const an=this.position(),sn=this._lastPosition!==an&&this._time>=0;this._lastPosition=an;const on=this.duration(),cn=this._lastTime<=0&&this._time>0,un=this._lastTime<on&&this._time>=on;this._lastTime=this._time,cn&&this.fire("start",this);const pn=this._isDeclarative;this.done=!pn&&!un&&this._time>=on,this._reseted=!1;let fn=!1;return(sn||pn)&&(this._initialise(sn),this.transforms=new vt,fn=this._run(pn?rn:an),this.fire("step",this)),this.done=this.done||fn&&pn,un&&this.fire("finished",this),this}time(rn){if(rn==null)return this._time;const an=rn-this._time;return this.step(an),this}timeline(rn){return rn===void 0?this._timeline:(this._timeline=rn,this)}unschedule(){const rn=this.timeline();return rn&&rn.unschedule(this),this}_initialise(rn){if(rn||this._isDeclarative)for(let an=0,sn=this._queue.length;an<sn;++an){const on=this._queue[an],cn=this._isDeclarative||!on.initialised&&rn;rn=!on.finished,cn&&rn&&(on.initialiser.call(this),on.initialised=!0)}}_rememberMorpher(rn,an){if(this._history[rn]={morpher:an,caller:this._queue[this._queue.length-1]},this._isDeclarative){const sn=this.timeline();sn&&sn.play()}}_run(rn){let an=!0;for(let sn=0,on=this._queue.length;sn<on;++sn){const cn=this._queue[sn],un=cn.runner.call(this,rn);cn.finished=cn.finished||un===!0,an=an&&cn.finished}return an}_tryRetarget(rn,an,sn){if(this._history[rn]){if(!this._history[rn].caller.initialised){const cn=this._queue.indexOf(this._history[rn].caller);return this._queue.splice(cn,1),!1}this._history[rn].caller.retarget?this._history[rn].caller.retarget.call(this,an,sn):this._history[rn].morpher.to(an),this._history[rn].caller.finished=!1;const on=this.timeline();return on&&on.play(),!0}return!1}}Qe.id=0;class Ke{constructor(rn=new vt,an=-1,sn=!0){this.transforms=rn,this.id=an,this.done=sn}clearTransformsFromQueue(){}}Q$1([Qe,Ke],{mergeWith(ln){return new Ke(ln.transforms.lmultiply(this.transforms),ln.id)}});const ti=(ln,rn)=>ln.lmultiplyO(rn),ei=ln=>ln.transforms;function ii(){const ln=this._transformationRunners.runners.map(ei).reduce(ti,new vt);this.transform(ln),this._transformationRunners.merge(),this._transformationRunners.length()===1&&(this._frameId=null)}class ai{constructor(){this.runners=[],this.ids=[]}add(rn){if(this.runners.includes(rn))return;const an=rn.id+1;return this.runners.push(rn),this.ids.push(an),this}clearBefore(rn){const an=this.ids.indexOf(rn+1)||1;return this.ids.splice(0,an,0),this.runners.splice(0,an,new Ke).forEach(sn=>sn.clearTransformsFromQueue()),this}edit(rn,an){const sn=this.ids.indexOf(rn+1);return this.ids.splice(sn,1,rn+1),this.runners.splice(sn,1,an),this}getByID(rn){return this.runners[this.ids.indexOf(rn+1)]}length(){return this.ids.length}merge(){let rn=null;for(let an=0;an<this.runners.length;++an){const sn=this.runners[an];if(rn&&sn.done&&rn.done&&(!sn._timeline||!sn._timeline._runnerIds.includes(sn.id))&&(!rn._timeline||!rn._timeline._runnerIds.includes(rn.id))){this.remove(sn.id);const on=sn.mergeWith(rn);this.edit(rn.id,on),rn=on,--an}else rn=sn}return this}remove(rn){const an=this.ids.indexOf(rn+1);return this.ids.splice(an,1),this.runners.splice(an,1),this}}A$1({Element:{animate(ln,rn,an){const sn=Qe.sanitise(ln,rn,an),on=this.timeline();return new Qe(sn.duration).loop(sn).element(this).timeline(on.play()).schedule(sn.delay,sn.when)},delay(ln,rn){return this.animate(0,ln,rn)},_clearTransformRunnersBefore(ln){this._transformationRunners.clearBefore(ln.id)},_currentTransform(ln){return this._transformationRunners.runners.filter(rn=>rn.id<=ln.id).map(ei).reduce(ti,new vt)},_addRunner(ln){this._transformationRunners.add(ln),qe.cancelImmediate(this._frameId),this._frameId=qe.immediate(ii.bind(this))},_prepareRunner(){this._frameId==null&&(this._transformationRunners=new ai().add(new Ke(new vt(this))))}}});Q$1(Qe,{attr(ln,rn){return this.styleAttr("attr",ln,rn)},css(ln,rn){return this.styleAttr("css",ln,rn)},styleAttr(ln,rn,an){if(typeof rn=="string")return this.styleAttr(ln,{[rn]:an});let sn=rn;if(this._tryRetarget(ln,sn))return this;let on=new He(this._stepper).to(sn),cn=Object.keys(sn);return this.queue(function(){on=on.from(this.element()[ln](cn))},function(un){return this.element()[ln](on.at(un).valueOf()),on.done()},function(un){const pn=Object.keys(un),fn=(mn=cn,pn.filter(vn=>!mn.includes(vn)));var mn;if(fn.length){const vn=this.element()[ln](fn),yn=new _e(on.from()).valueOf();Object.assign(yn,vn),on.from(yn)}const xn=new _e(on.to()).valueOf();Object.assign(xn,un),on.to(xn),cn=pn,sn=un}),this._rememberMorpher(ln,on),this},zoom(ln,rn){if(this._tryRetarget("zoom",ln,rn))return this;let an=new He(this._stepper).to(new _t(ln));return this.queue(function(){an=an.from(this.element().zoom())},function(sn){return this.element().zoom(an.at(sn),rn),an.done()},function(sn,on){rn=on,an.to(sn)}),this._rememberMorpher("zoom",an),this},transform(ln,rn,an){if(rn=ln.relative||rn,this._isDeclarative&&!rn&&this._tryRetarget("transform",ln))return this;const sn=vt.isMatrixLike(ln);an=ln.affine!=null?ln.affine:an??!sn;const on=new He(this._stepper).type(an?Fe:vt);let cn,un,pn,fn,mn;return this.queue(function(){un=un||this.element(),cn=cn||T$2(ln,un),mn=new vt(rn?void 0:un),un._addRunner(this),rn||un._clearTransformRunnersBefore(this)},function(xn){rn||this.clearTransform();const{x:vn,y:yn}=new bt(cn).transform(un._currentTransform(this));let wn=new vt({...ln,origin:[vn,yn]}),An=this._isDeclarative&&pn?pn:mn;if(an){wn=wn.decompose(vn,yn),An=An.decompose(vn,yn);const kn=wn.rotate,Mn=An.rotate,Tn=[kn-360,kn,kn+360],On=Tn.map(In=>Math.abs(In-Mn)),Pn=Math.min(...On),Nn=On.indexOf(Pn);wn.rotate=Tn[Nn]}rn&&(sn||(wn.rotate=ln.rotate||0),this._isDeclarative&&fn&&(An.rotate=fn)),on.from(An),on.to(wn);const Cn=on.at(xn);return fn=Cn.rotate,pn=new vt(Cn),this.addTransform(pn),un._addRunner(this),on.done()},function(xn){(xn.origin||"center").toString()!==(ln.origin||"center").toString()&&(cn=T$2(xn,un)),ln={...xn,origin:cn}},!0),this._isDeclarative&&this._rememberMorpher("transform",on),this},x(ln){return this._queueNumber("x",ln)},y(ln){return this._queueNumber("y",ln)},ax(ln){return this._queueNumber("ax",ln)},ay(ln){return this._queueNumber("ay",ln)},dx(ln=0){return this._queueNumberDelta("x",ln)},dy(ln=0){return this._queueNumberDelta("y",ln)},dmove(ln,rn){return this.dx(ln).dy(rn)},_queueNumberDelta(ln,rn){if(rn=new _t(rn),this._tryRetarget(ln,rn))return this;const an=new He(this._stepper).to(rn);let sn=null;return this.queue(function(){sn=this.element()[ln](),an.from(sn),an.to(sn+rn)},function(on){return this.element()[ln](an.at(on)),an.done()},function(on){an.to(sn+new _t(on))}),this._rememberMorpher(ln,an),this},_queueObject(ln,rn){if(this._tryRetarget(ln,rn))return this;const an=new He(this._stepper).to(rn);return this.queue(function(){an.from(this.element()[ln]())},function(sn){return this.element()[ln](an.at(sn)),an.done()}),this._rememberMorpher(ln,an),this},_queueNumber(ln,rn){return this._queueObject(ln,new _t(rn))},cx(ln){return this._queueNumber("cx",ln)},cy(ln){return this._queueNumber("cy",ln)},move(ln,rn){return this.x(ln).y(rn)},amove(ln,rn){return this.ax(ln).ay(rn)},center(ln,rn){return this.cx(ln).cy(rn)},size(ln,rn){let an;return ln&&rn||(an=this._element.bbox()),ln||(ln=an.width/an.height*rn),rn||(rn=an.height/an.width*ln),this.width(ln).height(rn)},width(ln){return this._queueNumber("width",ln)},height(ln){return this._queueNumber("height",ln)},plot(ln,rn,an,sn){if(arguments.length===4)return this.plot([ln,rn,an,sn]);if(this._tryRetarget("plot",ln))return this;const on=new He(this._stepper).type(this._element.MorphArray).to(ln);return this.queue(function(){on.from(this._element.array())},function(cn){return this._element.plot(on.at(cn)),on.done()}),this._rememberMorpher("plot",on),this},leading(ln){return this._queueNumber("leading",ln)},viewbox(ln,rn,an,sn){return this._queueObject("viewbox",new kt(ln,rn,an,sn))},update(ln){return typeof ln!="object"?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(ln.opacity!=null&&this.attr("stop-opacity",ln.opacity),ln.color!=null&&this.attr("stop-color",ln.color),ln.offset!=null&&this.attr("offset",ln.offset),this)}}),Q$1(Qe,{rx:Zt,ry:$t,from:ne,to:oe}),q$1(Qe,"Runner");class si extends Vt{constructor(rn,an=rn){super(G$2("svg",rn),an),this.namespace()}defs(){return this.isRoot()?V$1(this.node.querySelector("defs"))||this.put(new Ut):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof O$1.window.SVGElement)&&this.node.parentNode.nodeName!=="#document-fragment"}namespace(){return this.isRoot()?this.attr({xmlns:E,version:"1.1"}).attr("xmlns:xlink",H$2,Y):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,Y).attr("xmlns:svgjs",null,Y)}root(){return this.isRoot()?this:super.root()}}A$1({Container:{nested:K$1(function(){return this.put(new si)})}}),q$1(si,"Svg",!0);let ri=class extends Vt{constructor(ln,rn=ln){super(G$2("symbol",ln),rn)}};A$1({Container:{symbol:K$1(function(){return this.put(new ri)})}}),q$1(ri,"Symbol");var ni=Object.freeze({__proto__:null,amove:function(ln,rn){return this.ax(ln).ay(rn)},ax:function(ln){return this.attr("x",ln)},ay:function(ln){return this.attr("y",ln)},build:function(ln){return this._build=!!ln,this},center:function(ln,rn,an=this.bbox()){return this.cx(ln,an).cy(rn,an)},cx:function(ln,rn=this.bbox()){return ln==null?rn.cx:this.attr("x",this.attr("x")+ln-rn.cx)},cy:function(ln,rn=this.bbox()){return ln==null?rn.cy:this.attr("y",this.attr("y")+ln-rn.cy)},length:function(){return this.node.getComputedTextLength()},move:function(ln,rn,an=this.bbox()){return this.x(ln,an).y(rn,an)},plain:function(ln){return this._build===!1&&this.clear(),this.node.appendChild(O$1.document.createTextNode(ln)),this},x:function(ln,rn=this.bbox()){return ln==null?rn.x:this.attr("x",this.attr("x")+ln-rn.x)},y:function(ln,rn=this.bbox()){return ln==null?rn.y:this.attr("y",this.attr("y")+ln-rn.y)}});class oi extends qt{constructor(rn,an=rn){super(G$2("text",rn),an),this.dom.leading=this.dom.leading??new _t(1.3),this._rebuild=!0,this._build=!1}leading(rn){return rn==null?this.dom.leading:(this.dom.leading=new _t(rn),this.rebuild())}rebuild(rn){if(typeof rn=="boolean"&&(this._rebuild=rn),this._rebuild){const an=this;let sn=0;const on=this.dom.leading;this.each(function(cn){if(X(this.node))return;const un=O$1.window.getComputedStyle(this.node).getPropertyValue("font-size"),pn=on*new _t(un);this.dom.newLined&&(this.attr("x",an.attr("x")),this.text()===`
`?sn+=pn:(this.attr("dy",cn?pn+sn:0),sn=0))}),this.fire("rebuild")}return this}setData(rn){return this.dom=rn,this.dom.leading=new _t(rn.leading||1.3),this}writeDataToDom(){return R(this,this.dom,{leading:1.3}),this}text(rn){if(rn===void 0){const an=this.node.childNodes;let sn=0;rn="";for(let on=0,cn=an.length;on<cn;++on)an[on].nodeName==="textPath"||X(an[on])?on===0&&(sn=on+1):(on!==sn&&an[on].nodeType!==3&&V$1(an[on]).dom.newLined===!0&&(rn+=`
`),rn+=an[on].textContent);return rn}if(this.clear().build(!0),typeof rn=="function")rn.call(this,this);else for(let an=0,sn=(rn=(rn+"").split(`
`)).length;an<sn;an++)this.newLine(rn[an]);return this.build(!1).rebuild()}}Q$1(oi,ni),A$1({Container:{text:K$1(function(ln=""){return this.put(new oi).text(ln)}),plain:K$1(function(ln=""){return this.put(new oi).plain(ln)})}}),q$1(oi,"Text");class li extends qt{constructor(rn,an=rn){super(G$2("tspan",rn),an),this._build=!1}dx(rn){return this.attr("dx",rn)}dy(rn){return this.attr("dy",rn)}newLine(){this.dom.newLined=!0;const rn=this.parent();if(!(rn instanceof oi))return this;const an=rn.index(this),sn=O$1.window.getComputedStyle(this.node).getPropertyValue("font-size"),on=rn.dom.leading*new _t(sn);return this.dy(an?on:0).attr("x",rn.x())}text(rn){return rn==null?this.node.textContent+(this.dom.newLined?`
`:""):(typeof rn=="function"?(this.clear().build(!0),rn.call(this,this),this.build(!1)):this.plain(rn),this)}}Q$1(li,ni),A$1({Tspan:{tspan:K$1(function(ln=""){const rn=new li;return this._build||this.clear(),this.put(rn).text(ln)})},Text:{newLine:function(ln=""){return this.tspan(ln).newLine()}}}),q$1(li,"Tspan");class hi extends qt{constructor(rn,an=rn){super(G$2("circle",rn),an)}radius(rn){return this.attr("r",rn)}rx(rn){return this.attr("r",rn)}ry(rn){return this.rx(rn)}size(rn){return this.radius(new _t(rn).divide(2))}}Q$1(hi,{x:Jt,y:Qt,cx:Kt,cy:te,width:ee,height:ie}),A$1({Container:{circle:K$1(function(ln=0){return this.put(new hi).size(ln).move(0,0)})}}),q$1(hi,"Circle");class ci extends Vt{constructor(rn,an=rn){super(G$2("clipPath",rn),an)}remove(){return this.targets().forEach(function(rn){rn.unclip()}),super.remove()}targets(){return Lt("svg [clip-path*="+this.id()+"]")}}A$1({Container:{clip:K$1(function(){return this.defs().put(new ci)})},Element:{clipper(){return this.reference("clip-path")},clipWith(ln){const rn=ln instanceof ci?ln:this.parent().clip().add(ln);return this.attr("clip-path","url(#"+rn.id()+")")},unclip(){return this.attr("clip-path",null)}}}),q$1(ci,"ClipPath");class di extends Gt{constructor(rn,an=rn){super(G$2("foreignObject",rn),an)}}A$1({Container:{foreignObject:K$1(function(ln,rn){return this.put(new di).size(ln,rn)})}}),q$1(di,"ForeignObject");var ui=Object.freeze({__proto__:null,dmove:function(ln,rn){return this.children().forEach(an=>{let sn;try{sn=an.node instanceof F$1().SVGSVGElement?new kt(an.attr(["x","y","width","height"])):an.bbox()}catch{return}const on=new vt(an),cn=on.translate(ln,rn).transform(on.inverse()),un=new bt(sn.x,sn.y).transform(cn);an.move(un.x,un.y)}),this},dx:function(ln){return this.dmove(ln,0)},dy:function(ln){return this.dmove(0,ln)},height:function(ln,rn=this.bbox()){return ln==null?rn.height:this.size(rn.width,ln,rn)},move:function(ln=0,rn=0,an=this.bbox()){const sn=ln-an.x,on=rn-an.y;return this.dmove(sn,on)},size:function(ln,rn,an=this.bbox()){const sn=I$2(this,ln,rn,an),on=sn.width/an.width,cn=sn.height/an.height;return this.children().forEach(un=>{const pn=new bt(an).transform(new vt(un).inverse());un.scale(on,cn,pn.x,pn.y)}),this},width:function(ln,rn=this.bbox()){return ln==null?rn.width:this.size(ln,rn.height,rn)},x:function(ln,rn=this.bbox()){return ln==null?rn.x:this.move(ln,rn.y,rn)},y:function(ln,rn=this.bbox()){return ln==null?rn.y:this.move(rn.x,ln,rn)}});class gi extends Vt{constructor(rn,an=rn){super(G$2("g",rn),an)}}Q$1(gi,ui),A$1({Container:{group:K$1(function(){return this.put(new gi)})}}),q$1(gi,"G");class pi extends Vt{constructor(rn,an=rn){super(G$2("a",rn),an)}target(rn){return this.attr("target",rn)}to(rn){return this.attr("href",rn,H$2)}}Q$1(pi,ui),A$1({Container:{link:K$1(function(ln){return this.put(new pi).to(ln)})},Element:{unlink(){const ln=this.linker();if(!ln)return this;const rn=ln.parent();if(!rn)return this.remove();const an=rn.index(ln);return rn.add(this,an),ln.remove(),this},linkTo(ln){let rn=this.linker();return rn||(rn=new pi,this.wrap(rn)),typeof ln=="function"?ln.call(rn,rn):rn.to(ln),this},linker(){const ln=this.parent();return ln&&ln.node.nodeName.toLowerCase()==="a"?ln:null}}}),q$1(pi,"A");class fi extends Vt{constructor(rn,an=rn){super(G$2("mask",rn),an)}remove(){return this.targets().forEach(function(rn){rn.unmask()}),super.remove()}targets(){return Lt("svg [mask*="+this.id()+"]")}}A$1({Container:{mask:K$1(function(){return this.defs().put(new fi)})},Element:{masker(){return this.reference("mask")},maskWith(ln){const rn=ln instanceof fi?ln:this.parent().mask().add(ln);return this.attr("mask","url(#"+rn.id()+")")},unmask(){return this.attr("mask",null)}}}),q$1(fi,"Mask");class xi extends Gt{constructor(rn,an=rn){super(G$2("stop",rn),an)}update(rn){return(typeof rn=="number"||rn instanceof _t)&&(rn={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),rn.opacity!=null&&this.attr("stop-opacity",rn.opacity),rn.color!=null&&this.attr("stop-color",rn.color),rn.offset!=null&&this.attr("offset",new _t(rn.offset)),this}}A$1({Gradient:{stop:function(ln,rn,an){return this.put(new xi).update(ln,rn,an)}}}),q$1(xi,"Stop");class bi extends Gt{constructor(rn,an=rn){super(G$2("style",rn),an)}addText(rn=""){return this.node.textContent+=rn,this}font(rn,an,sn={}){return this.rule("@font-face",{fontFamily:rn,src:an,...sn})}rule(rn,an){return this.addText(function(sn,on){if(!sn)return"";if(!on)return sn;let cn=sn+"{";for(const un in on)cn+=un.replace(/([A-Z])/g,function(pn,fn){return"-"+fn.toLowerCase()})+":"+on[un]+";";return cn+="}",cn}(rn,an))}}A$1("Dom",{style(ln,rn){return this.put(new bi).rule(ln,rn)},fontface(ln,rn,an){return this.put(new bi).font(ln,rn,an)}}),q$1(bi,"Style");class mi extends oi{constructor(rn,an=rn){super(G$2("textPath",rn),an)}array(){const rn=this.track();return rn?rn.array():null}plot(rn){const an=this.track();let sn=null;return an&&(sn=an.plot(rn)),rn==null?sn:this}track(){return this.reference("href")}}A$1({Container:{textPath:K$1(function(ln,rn){return ln instanceof oi||(ln=this.text(ln)),ln.path(rn)})},Text:{path:K$1(function(ln,rn=!0){const an=new mi;let sn;if(ln instanceof We||(ln=this.defs().path(ln)),an.attr("href","#"+ln,H$2),rn)for(;sn=this.node.firstChild;)an.node.appendChild(sn);return this.put(an)}),textPath(){return this.findOne("textPath")}},Path:{text:K$1(function(ln){return ln instanceof oi||(ln=new oi().addTo(this.parent()).text(ln)),ln.path(this)}),targets(){return Lt("svg textPath").filter(ln=>(ln.attr("href")||"").includes(this.id()))}}}),mi.prototype.MorphArray=Ee,q$1(mi,"TextPath");class vi extends qt{constructor(rn,an=rn){super(G$2("use",rn),an)}use(rn,an){return this.attr("href",(an||"")+"#"+rn,H$2)}}A$1({Container:{use:K$1(function(ln,rn){return this.put(new vi).use(ln,rn)})}}),q$1(vi,"Use");const yi=B$2;Q$1([si,ri,de,ce,be],C$2("viewbox")),Q$1([xe,je,Ge,We],C$2("marker")),Q$1(oi,C$2("Text")),Q$1(We,C$2("Path")),Q$1(Ut,C$2("Defs")),Q$1([oi,li],C$2("Tspan")),Q$1([Ve,se,he,Qe],C$2("radius")),Q$1(Rt,C$2("EventTarget")),Q$1(Bt,C$2("Dom")),Q$1(Gt,C$2("Element")),Q$1(qt,C$2("Shape")),Q$1([Vt,re],C$2("Container")),Q$1(he,C$2("Gradient")),Q$1(Qe,C$2("Runner")),Ct.extend([...new Set(k$2)]),function(ln=[]){Ne.push(...[].concat(ln))}([_t,xt,kt,vt,Dt,ge,Ee,bt]),Q$1(Ne,{to(ln){return new He().type(this.constructor).from(this.toArray()).to(ln)},fromArray(ln){return this.init(ln),this},toConsumable(){return this.toArray()},morph(ln,rn,an,sn,on){return this.fromArray(ln.map(function(cn,un){return sn.step(cn,rn[un],an,on[un],on)}))}});class wi extends Gt{constructor(rn){super(G$2("filter",rn),rn),this.$source="SourceGraphic",this.$sourceAlpha="SourceAlpha",this.$background="BackgroundImage",this.$backgroundAlpha="BackgroundAlpha",this.$fill="FillPaint",this.$stroke="StrokePaint",this.$autoSetIn=!0}put(rn,an){return!(rn=super.put(rn,an)).attr("in")&&this.$autoSetIn&&rn.attr("in",this.$source),rn.attr("result")||rn.attr("result",rn.id()),rn}remove(){return this.targets().each("unfilter"),super.remove()}targets(){return Lt('svg [filter*="'+this.id()+'"]')}toString(){return"url(#"+this.id()+")"}}class ki extends Gt{constructor(rn,an){super(rn,an),this.result(this.id())}in(rn){if(rn==null){const an=this.attr("in");return this.parent()&&this.parent().find(`[result="${an}"]`)[0]||an}return this.attr("in",rn)}result(rn){return this.attr("result",rn)}toString(){return this.result()}}const Ai=ln=>function(...rn){for(let an=ln.length;an--;)rn[an]!=null&&this.attr(ln[an],rn[an])},Ci={blend:Ai(["in","in2","mode"]),colorMatrix:Ai(["type","values"]),composite:Ai(["in","in2","operator"]),convolveMatrix:function(ln){ln=new Dt(ln).toString(),this.attr({order:Math.sqrt(ln.split(" ").length),kernelMatrix:ln})},diffuseLighting:Ai(["surfaceScale","lightingColor","diffuseConstant","kernelUnitLength"]),displacementMap:Ai(["in","in2","scale","xChannelSelector","yChannelSelector"]),dropShadow:Ai(["in","dx","dy","stdDeviation"]),flood:Ai(["flood-color","flood-opacity"]),gaussianBlur:function(ln=0,rn=ln){this.attr("stdDeviation",ln+" "+rn)},image:function(ln){this.attr("href",ln,H$2)},morphology:Ai(["operator","radius"]),offset:Ai(["dx","dy"]),specularLighting:Ai(["surfaceScale","lightingColor","diffuseConstant","specularExponent","kernelUnitLength"]),tile:Ai([]),turbulence:Ai(["baseFrequency","numOctaves","seed","stitchTiles","type"])};["blend","colorMatrix","componentTransfer","composite","convolveMatrix","diffuseLighting","displacementMap","dropShadow","flood","gaussianBlur","image","merge","morphology","offset","specularLighting","tile","turbulence"].forEach(ln=>{const rn=P$2(ln),an=Ci[ln];wi[rn+"Effect"]=class extends ki{constructor(sn){super(G$2("fe"+rn,sn),sn)}update(sn){return an.apply(this,sn),this}},wi.prototype[ln]=K$1(function(sn,...on){const cn=new wi[rn+"Effect"];return sn==null?this.put(cn):(typeof sn=="function"?sn.call(cn,cn):on.unshift(sn),this.put(cn).update(on))})}),Q$1(wi,{merge(ln){const rn=this.put(new wi.MergeEffect);return typeof ln=="function"?(ln.call(rn,rn),rn):((ln instanceof Array?ln:[...arguments]).forEach(an=>{an instanceof wi.MergeNode?rn.put(an):rn.mergeNode(an)}),rn)},componentTransfer(ln={}){const rn=this.put(new wi.ComponentTransferEffect);if(typeof ln=="function")return ln.call(rn,rn),rn;ln.r||ln.g||ln.b||ln.a||(ln={r:ln,g:ln,b:ln,a:ln});for(const an in ln)rn.add(new wi["Func"+an.toUpperCase()](ln[an]));return rn}});["distantLight","pointLight","spotLight","mergeNode","FuncR","FuncG","FuncB","FuncA"].forEach(ln=>{const rn=P$2(ln);wi[rn]=class extends ki{constructor(an){super(G$2("fe"+rn,an),an)}}});["funcR","funcG","funcB","funcA"].forEach(function(ln){const rn=wi[P$2(ln)],an=K$1(function(){return this.put(new rn)});wi.ComponentTransferEffect.prototype[ln]=an});["distantLight","pointLight","spotLight"].forEach(ln=>{const rn=wi[P$2(ln)],an=K$1(function(){return this.put(new rn)});wi.DiffuseLightingEffect.prototype[ln]=an,wi.SpecularLightingEffect.prototype[ln]=an}),Q$1(wi.MergeEffect,{mergeNode(ln){return this.put(new wi.MergeNode).attr("in",ln)}}),Q$1(Ut,{filter:function(ln){const rn=this.put(new wi);return typeof ln=="function"&&ln.call(rn,rn),rn}}),Q$1(Vt,{filter:function(ln){return this.defs().filter(ln)}}),Q$1(Gt,{filterWith:function(ln){const rn=ln instanceof wi?ln:this.defs().filter(ln);return this.attr("filter",rn)},unfilter:function(ln){return this.attr("filter",null)},filterer(){return this.reference("filter")}});const Si={blend:function(ln,rn){return this.parent()&&this.parent().blend(this,ln,rn)},colorMatrix:function(ln,rn){return this.parent()&&this.parent().colorMatrix(ln,rn).in(this)},componentTransfer:function(ln){return this.parent()&&this.parent().componentTransfer(ln).in(this)},composite:function(ln,rn){return this.parent()&&this.parent().composite(this,ln,rn)},convolveMatrix:function(ln){return this.parent()&&this.parent().convolveMatrix(ln).in(this)},diffuseLighting:function(ln,rn,an,sn){return this.parent()&&this.parent().diffuseLighting(ln,an,sn).in(this)},displacementMap:function(ln,rn,an,sn){return this.parent()&&this.parent().displacementMap(this,ln,rn,an,sn)},dropShadow:function(ln,rn,an){return this.parent()&&this.parent().dropShadow(this,ln,rn,an).in(this)},flood:function(ln,rn){return this.parent()&&this.parent().flood(ln,rn)},gaussianBlur:function(ln,rn){return this.parent()&&this.parent().gaussianBlur(ln,rn).in(this)},image:function(ln){return this.parent()&&this.parent().image(ln)},merge:function(ln){return ln=ln instanceof Array?ln:[...ln],this.parent()&&this.parent().merge(this,...ln)},morphology:function(ln,rn){return this.parent()&&this.parent().morphology(ln,rn).in(this)},offset:function(ln,rn){return this.parent()&&this.parent().offset(ln,rn).in(this)},specularLighting:function(ln,rn,an,sn,on){return this.parent()&&this.parent().specularLighting(ln,an,sn,on).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(ln,rn,an,sn,on){return this.parent()&&this.parent().turbulence(ln,rn,an,sn,on).in(this)}};Q$1(ki,Si),Q$1(wi.MergeEffect,{in:function(ln){return ln instanceof wi.MergeNode?this.add(ln,0):this.add(new wi.MergeNode().in(ln),0),this}}),Q$1([wi.CompositeEffect,wi.BlendEffect,wi.DisplacementMapEffect],{in2:function(ln){if(ln==null){const rn=this.attr("in2");return this.parent()&&this.parent().find(`[result="${rn}"]`)[0]||rn}return this.attr("in2",ln)}}),wi.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]};var Li=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"getDefaultFilter",value:function(rn,an){var sn=this.w;rn.unfilter(!0),new wi().size("120%","180%","-5%","-40%"),sn.config.chart.dropShadow.enabled&&this.dropShadow(rn,sn.config.chart.dropShadow,an)}},{key:"applyFilter",value:function(rn,an,sn){var on,cn=this,un=this.w;if(rn.unfilter(!0),sn!=="none"){var pn,fn,mn=un.config.chart.dropShadow,xn=sn==="lighten"?2:.3;rn.filterWith(function(vn){vn.colorMatrix({type:"matrix",values:`
          `.concat(xn,` 0 0 0 0
          0 `).concat(xn,` 0 0 0
          0 0 `).concat(xn,` 0 0
          0 0 0 1 0
        `),in:"SourceGraphic",result:"brightness"}),mn.enabled&&cn.addShadow(vn,an,mn,"brightness")}),!mn.noUserSpaceOnUse&&((pn=rn.filterer())===null||pn===void 0||(fn=pn.node)===null||fn===void 0||fn.setAttribute("filterUnits","userSpaceOnUse")),this._scaleFilterSize((on=rn.filterer())===null||on===void 0?void 0:on.node)}else this.getDefaultFilter(rn,an)}},{key:"addShadow",value:function(rn,an,sn,on){var cn,un=this.w,pn=sn.blur,fn=sn.top,mn=sn.left,xn=sn.color,vn=sn.opacity;if(xn=Array.isArray(xn)?xn[an]:xn,((cn=un.config.chart.dropShadow.enabledOnSeries)===null||cn===void 0?void 0:cn.length)>0&&un.config.chart.dropShadow.enabledOnSeries.indexOf(an)===-1)return rn;rn.offset({in:on,dx:mn,dy:fn,result:"offset"}),rn.gaussianBlur({in:"offset",stdDeviation:pn,result:"blur"}),rn.flood({"flood-color":xn,"flood-opacity":vn,result:"flood"}),rn.composite({in:"flood",in2:"blur",operator:"in",result:"shadow"}),rn.merge(["shadow",on])}},{key:"dropShadow",value:function(rn,an){var sn,on,cn,un,pn,fn=this,mn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,xn=this.w;return rn.unfilter(!0),v$2.isMsEdge()&&xn.config.chart.type==="radialBar"||((sn=xn.config.chart.dropShadow.enabledOnSeries)===null||sn===void 0?void 0:sn.length)>0&&((cn=xn.config.chart.dropShadow.enabledOnSeries)===null||cn===void 0?void 0:cn.indexOf(mn))===-1?rn:(rn.filterWith(function(vn){fn.addShadow(vn,mn,an,"SourceGraphic")}),an.noUserSpaceOnUse||(un=rn.filterer())===null||un===void 0||(pn=un.node)===null||pn===void 0||pn.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize((on=rn.filterer())===null||on===void 0?void 0:on.node),rn)}},{key:"setSelectionFilter",value:function(rn,an,sn){var on=this.w;if(on.globals.selectedDataPoints[an]!==void 0&&on.globals.selectedDataPoints[an].indexOf(sn)>-1){rn.node.setAttribute("selected",!0);var cn=on.config.states.active.filter;cn!=="none"&&this.applyFilter(rn,an,cn.type)}}},{key:"_scaleFilterSize",value:function(rn){rn&&function(an){for(var sn in an)an.hasOwnProperty(sn)&&rn.setAttribute(sn,an[sn])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),ln}(),Mi=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"roundPathCorners",value:function(rn,an){function sn(Fn,Un,Yn){var Qn=Un.x-Fn.x,ir=Un.y-Fn.y,er=Math.sqrt(Qn*Qn+ir*ir);return on(Fn,Un,Math.min(1,Yn/er))}function on(Fn,Un,Yn){return{x:Fn.x+(Un.x-Fn.x)*Yn,y:Fn.y+(Un.y-Fn.y)*Yn}}function cn(Fn,Un){Fn.length>2&&(Fn[Fn.length-2]=Un.x,Fn[Fn.length-1]=Un.y)}function un(Fn){return{x:parseFloat(Fn[Fn.length-2]),y:parseFloat(Fn[Fn.length-1])}}rn.indexOf("NaN")>-1&&(rn="");var pn=rn.split(/[,\s]/).reduce(function(Fn,Un){var Yn=Un.match("([a-zA-Z])(.+)");return Yn?(Fn.push(Yn[1]),Fn.push(Yn[2])):Fn.push(Un),Fn},[]).reduce(function(Fn,Un){return parseFloat(Un)==Un&&Fn.length?Fn[Fn.length-1].push(Un):Fn.push([Un]),Fn},[]),fn=[];if(pn.length>1){var mn=un(pn[0]),xn=null;pn[pn.length-1][0]=="Z"&&pn[0].length>2&&(xn=["L",mn.x,mn.y],pn[pn.length-1]=xn),fn.push(pn[0]);for(var vn=1;vn<pn.length;vn++){var yn=fn[fn.length-1],wn=pn[vn],An=wn==xn?pn[1]:pn[vn+1];if(An&&yn&&yn.length>2&&wn[0]=="L"&&An.length>2&&An[0]=="L"){var Cn,kn,Mn=un(yn),Tn=un(wn),On=un(An);Cn=sn(Tn,Mn,an),kn=sn(Tn,On,an),cn(wn,Cn),wn.origPoint=Tn,fn.push(wn);var Pn=on(Cn,Tn,.5),Nn=on(Tn,kn,.5),In=["C",Pn.x,Pn.y,Nn.x,Nn.y,kn.x,kn.y];In.origPoint=Tn,fn.push(In)}else fn.push(wn)}if(xn){var jn=un(fn[fn.length-1]);fn.push(["Z"]),cn(fn[0],jn)}}else fn=pn;return fn.reduce(function(Fn,Un){return Fn+Un.join(" ")+" "},"")}},{key:"drawLine",value:function(rn,an,sn,on){var cn=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",un=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,pn=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,fn=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:rn,y1:an,x2:sn,y2:on,stroke:cn,"stroke-dasharray":un,"stroke-width":pn,"stroke-linecap":fn})}},{key:"drawRect",value:function(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,on=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,cn=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,un=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",pn=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,fn=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,mn=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,xn=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,vn=this.w.globals.dom.Paper.rect();return vn.attr({x:rn,y:an,width:sn>0?sn:0,height:on>0?on:0,rx:cn,ry:cn,opacity:pn,"stroke-width":fn!==null?fn:0,stroke:mn!==null?mn:"none","stroke-dasharray":xn}),vn.node.setAttribute("fill",un),vn}},{key:"drawPolygon",value:function(rn){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,on=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(rn).attr({fill:on,stroke:an,"stroke-width":sn})}},{key:"drawCircle",value:function(rn){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;rn<0&&(rn=0);var sn=this.w.globals.dom.Paper.circle(2*rn);return an!==null&&sn.attr(an),sn}},{key:"drawPath",value:function(rn){var an=rn.d,sn=an===void 0?"":an,on=rn.stroke,cn=on===void 0?"#a8a8a8":on,un=rn.strokeWidth,pn=un===void 0?1:un,fn=rn.fill,mn=rn.fillOpacity,xn=mn===void 0?1:mn,vn=rn.strokeOpacity,yn=vn===void 0?1:vn,wn=rn.classes,An=rn.strokeLinecap,Cn=An===void 0?null:An,kn=rn.strokeDashArray,Mn=kn===void 0?0:kn,Tn=this.w;return Cn===null&&(Cn=Tn.config.stroke.lineCap),(sn.indexOf("undefined")>-1||sn.indexOf("NaN")>-1)&&(sn="M 0 ".concat(Tn.globals.gridHeight)),Tn.globals.dom.Paper.path(sn).attr({fill:fn,"fill-opacity":xn,stroke:cn,"stroke-opacity":yn,"stroke-linecap":Cn,"stroke-width":pn,"stroke-dasharray":Mn,class:wn})}},{key:"group",value:function(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,an=this.w.globals.dom.Paper.group();return rn!==null&&an.attr(rn),an}},{key:"move",value:function(rn,an){var sn=["M",rn,an].join(" ");return sn}},{key:"line",value:function(rn,an){var sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,on=null;return sn===null?on=[" L",rn,an].join(" "):sn==="H"?on=[" H",rn].join(" "):sn==="V"&&(on=[" V",an].join(" ")),on}},{key:"curve",value:function(rn,an,sn,on,cn,un){var pn=["C",rn,an,sn,on,cn,un].join(" ");return pn}},{key:"quadraticCurve",value:function(rn,an,sn,on){return["Q",rn,an,sn,on].join(" ")}},{key:"arc",value:function(rn,an,sn,on,cn,un,pn){var fn="A";arguments.length>7&&arguments[7]!==void 0&&arguments[7]&&(fn="a");var mn=[fn,rn,an,sn,on,cn,un,pn].join(" ");return mn}},{key:"renderPaths",value:function(rn){var an,sn=rn.j,on=rn.realIndex,cn=rn.pathFrom,un=rn.pathTo,pn=rn.stroke,fn=rn.strokeWidth,mn=rn.strokeLinecap,xn=rn.fill,vn=rn.animationDelay,yn=rn.initialSpeed,wn=rn.dataChangeSpeed,An=rn.className,Cn=rn.chartType,kn=rn.shouldClipToGrid,Mn=kn===void 0||kn,Tn=rn.bindEventsOnPaths,On=Tn===void 0||Tn,Pn=rn.drawShadow,Nn=Pn===void 0||Pn,In=this.w,jn=new Li(this.ctx),Fn=new y$1(this.ctx),Un=this.w.config.chart.animations.enabled,Yn=Un&&this.w.config.chart.animations.dynamicAnimation.enabled,Qn=!!(Un&&!In.globals.resized||Yn&&In.globals.dataChanged&&In.globals.shouldAnimate);Qn?an=cn:(an=un,In.globals.animationEnded=!0);var ir=In.config.stroke.dashArray,er=0;er=Array.isArray(ir)?ir[on]:In.config.stroke.dashArray;var tr=this.drawPath({d:an,stroke:pn,strokeWidth:fn,fill:xn,fillOpacity:1,classes:An,strokeLinecap:mn,strokeDashArray:er});tr.attr("index",on),Mn&&(Cn==="bar"&&!In.globals.isHorizontal||In.globals.comboCharts?tr.attr({"clip-path":"url(#gridRectBarMask".concat(In.globals.cuid,")")}):tr.attr({"clip-path":"url(#gridRectMask".concat(In.globals.cuid,")")})),In.config.chart.dropShadow.enabled&&Nn&&jn.dropShadow(tr,In.config.chart.dropShadow,on),On&&(tr.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,tr)),tr.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,tr)),tr.node.addEventListener("mousedown",this.pathMouseDown.bind(this,tr))),tr.attr({pathTo:un,pathFrom:cn});var vr={el:tr,j:sn,realIndex:on,pathFrom:cn,pathTo:un,fill:xn,strokeWidth:fn,delay:vn};return!Un||In.globals.resized||In.globals.dataChanged?!In.globals.resized&&In.globals.dataChanged||Fn.showDelayedElements():Fn.animatePathsGradually(u$2(u$2({},vr),{},{speed:yn})),In.globals.dataChanged&&Yn&&Qn&&Fn.animatePathsGradually(u$2(u$2({},vr),{},{speed:wn})),tr}},{key:"drawPattern",value:function(rn,an,sn){var on=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",cn=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;return this.w.globals.dom.Paper.pattern(an,sn,function(un){rn==="horizontalLines"?un.line(0,0,sn,0).stroke({color:on,width:cn+1}):rn==="verticalLines"?un.line(0,0,0,an).stroke({color:on,width:cn+1}):rn==="slantedLines"?un.line(0,0,an,sn).stroke({color:on,width:cn}):rn==="squares"?un.rect(an,sn).fill("none").stroke({color:on,width:cn}):rn==="circles"&&un.circle(an).fill("none").stroke({color:on,width:cn})})}},{key:"drawGradient",value:function(rn,an,sn,on,cn){var un,pn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,fn=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,mn=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],xn=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,vn=this.w;an.length<9&&an.indexOf("#")===0&&(an=v$2.hexToRgba(an,on)),sn.length<9&&sn.indexOf("#")===0&&(sn=v$2.hexToRgba(sn,cn));var yn=0,wn=1,An=1,Cn=null;fn!==null&&(yn=fn[0]!==void 0?fn[0]/100:0,wn=fn[1]!==void 0?fn[1]/100:1,An=fn[2]!==void 0?fn[2]/100:1,Cn=fn[3]!==void 0?fn[3]/100:null);var kn=!(vn.config.chart.type!=="donut"&&vn.config.chart.type!=="pie"&&vn.config.chart.type!=="polarArea"&&vn.config.chart.type!=="bubble");if(un=mn&&mn.length!==0?vn.globals.dom.Paper.gradient(kn?"radial":"linear",function(On){(Array.isArray(mn[xn])?mn[xn]:mn).forEach(function(Pn){On.stop(Pn.offset/100,Pn.color,Pn.opacity)})}):vn.globals.dom.Paper.gradient(kn?"radial":"linear",function(On){On.stop(yn,an,on),On.stop(wn,sn,cn),On.stop(An,sn,cn),Cn!==null&&On.stop(Cn,an,on)}),kn){var Mn=vn.globals.gridWidth/2,Tn=vn.globals.gridHeight/2;vn.config.chart.type!=="bubble"?un.attr({gradientUnits:"userSpaceOnUse",cx:Mn,cy:Tn,r:pn}):un.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else rn==="vertical"?un.from(0,0).to(0,1):rn==="diagonal"?un.from(0,0).to(1,1):rn==="horizontal"?un.from(0,1).to(1,1):rn==="diagonal2"&&un.from(1,0).to(0,1);return un}},{key:"getTextBasedOnMaxWidth",value:function(rn){var an=rn.text,sn=rn.maxWidth,on=rn.fontSize,cn=rn.fontFamily,un=this.getTextRects(an,on,cn),pn=un.width/an.length,fn=Math.floor(sn/pn);return sn<un.width?an.slice(0,fn-3)+"...":an}},{key:"drawText",value:function(rn){var an=this,sn=rn.x,on=rn.y,cn=rn.text,un=rn.textAnchor,pn=rn.fontSize,fn=rn.fontFamily,mn=rn.fontWeight,xn=rn.foreColor,vn=rn.opacity,yn=rn.maxWidth,wn=rn.cssClass,An=wn===void 0?"":wn,Cn=rn.isPlainText,kn=Cn===void 0||Cn,Mn=rn.dominantBaseline,Tn=Mn===void 0?"auto":Mn,On=this.w;cn===void 0&&(cn="");var Pn=cn;un||(un="start"),xn&&xn.length||(xn=On.config.chart.foreColor),fn=fn||On.config.chart.fontFamily,mn=mn||"regular";var Nn,In={maxWidth:yn,fontSize:pn=pn||"11px",fontFamily:fn};return Array.isArray(cn)?Nn=On.globals.dom.Paper.text(function(jn){for(var Fn=0;Fn<cn.length;Fn++)Pn=cn[Fn],yn&&(Pn=an.getTextBasedOnMaxWidth(u$2({text:cn[Fn]},In))),Fn===0?jn.tspan(Pn):jn.tspan(Pn).newLine()}):(yn&&(Pn=this.getTextBasedOnMaxWidth(u$2({text:cn},In))),Nn=kn?On.globals.dom.Paper.plain(cn):On.globals.dom.Paper.text(function(jn){return jn.tspan(Pn)})),Nn.attr({x:sn,y:on,"text-anchor":un,"dominant-baseline":Tn,"font-size":pn,"font-family":fn,"font-weight":mn,fill:xn,class:"apexcharts-text "+An}),Nn.node.style.fontFamily=fn,Nn.node.style.opacity=vn,Nn}},{key:"getMarkerPath",value:function(rn,an,sn,on){var cn="";switch(sn){case"cross":cn="M ".concat(rn-(on/=1.4)," ").concat(an-on," L ").concat(rn+on," ").concat(an+on,"  M ").concat(rn-on," ").concat(an+on," L ").concat(rn+on," ").concat(an-on);break;case"plus":cn="M ".concat(rn-(on/=1.12)," ").concat(an," L ").concat(rn+on," ").concat(an,"  M ").concat(rn," ").concat(an-on," L ").concat(rn," ").concat(an+on);break;case"star":case"sparkle":var un=5;on*=1.15,sn==="sparkle"&&(on/=1.1,un=4);for(var pn=Math.PI/un,fn=0;fn<=2*un;fn++){var mn=fn*pn,xn=fn%2==0?on:on/2;cn+=(fn===0?"M":"L")+(rn+xn*Math.sin(mn))+","+(an-xn*Math.cos(mn))}cn+="Z";break;case"triangle":cn="M ".concat(rn," ").concat(an-on,` 
             L `).concat(rn+on," ").concat(an+on,` 
             L `).concat(rn-on," ").concat(an+on,` 
             Z`);break;case"square":case"rect":cn="M ".concat(rn-(on/=1.125)," ").concat(an-on,` 
           L `).concat(rn+on," ").concat(an-on,` 
           L `).concat(rn+on," ").concat(an+on,` 
           L `).concat(rn-on," ").concat(an+on,` 
           Z`);break;case"diamond":on*=1.05,cn="M ".concat(rn," ").concat(an-on,` 
             L `).concat(rn+on," ").concat(an,` 
             L `).concat(rn," ").concat(an+on,` 
             L `).concat(rn-on," ").concat(an,` 
            Z`);break;case"line":cn="M ".concat(rn-(on/=1.1)," ").concat(an,` 
           L `).concat(rn+on," ").concat(an);break;default:on*=2,cn="M ".concat(rn,", ").concat(an,` 
           m -`).concat(on/2,`, 0 
           a `).concat(on/2,",").concat(on/2," 0 1,0 ").concat(on,`,0 
           a `).concat(on/2,",").concat(on/2," 0 1,0 -").concat(on,",0")}return cn}},{key:"drawMarkerShape",value:function(rn,an,sn,on,cn){var un=this.drawPath({d:this.getMarkerPath(rn,an,sn,on,cn),stroke:cn.pointStrokeColor,strokeDashArray:cn.pointStrokeDashArray,strokeWidth:cn.pointStrokeWidth,fill:cn.pointFillColor,fillOpacity:cn.pointFillOpacity,strokeOpacity:cn.pointStrokeOpacity});return un.attr({cx:rn,cy:an,shape:cn.shape,class:cn.class?cn.class:""}),un}},{key:"drawMarker",value:function(rn,an,sn){rn=rn||0;var on=sn.pSize||0;return v$2.isNumber(an)||(on=0,an=0),this.drawMarkerShape(rn,an,sn==null?void 0:sn.shape,on,u$2(u$2({},sn),sn.shape==="line"||sn.shape==="plus"||sn.shape==="cross"?{pointStrokeColor:sn.pointFillColor,pointStrokeOpacity:sn.pointFillOpacity}:{}))}},{key:"pathMouseEnter",value:function(rn,an){var sn=this.w,on=new Li(this.ctx),cn=parseInt(rn.node.getAttribute("index"),10),un=parseInt(rn.node.getAttribute("j"),10);if(typeof sn.config.chart.events.dataPointMouseEnter=="function"&&sn.config.chart.events.dataPointMouseEnter(an,this.ctx,{seriesIndex:cn,dataPointIndex:un,w:sn}),this.ctx.events.fireEvent("dataPointMouseEnter",[an,this.ctx,{seriesIndex:cn,dataPointIndex:un,w:sn}]),(sn.config.states.active.filter.type==="none"||rn.node.getAttribute("selected")!=="true")&&sn.config.states.hover.filter.type!=="none"&&!sn.globals.isTouchDevice){var pn=sn.config.states.hover.filter;on.applyFilter(rn,cn,pn.type)}}},{key:"pathMouseLeave",value:function(rn,an){var sn=this.w,on=new Li(this.ctx),cn=parseInt(rn.node.getAttribute("index"),10),un=parseInt(rn.node.getAttribute("j"),10);typeof sn.config.chart.events.dataPointMouseLeave=="function"&&sn.config.chart.events.dataPointMouseLeave(an,this.ctx,{seriesIndex:cn,dataPointIndex:un,w:sn}),this.ctx.events.fireEvent("dataPointMouseLeave",[an,this.ctx,{seriesIndex:cn,dataPointIndex:un,w:sn}]),sn.config.states.active.filter.type!=="none"&&rn.node.getAttribute("selected")==="true"||sn.config.states.hover.filter.type!=="none"&&on.getDefaultFilter(rn,cn)}},{key:"pathMouseDown",value:function(rn,an){var sn=this.w,on=new Li(this.ctx),cn=parseInt(rn.node.getAttribute("index"),10),un=parseInt(rn.node.getAttribute("j"),10),pn="false";if(rn.node.getAttribute("selected")==="true"){if(rn.node.setAttribute("selected","false"),sn.globals.selectedDataPoints[cn].indexOf(un)>-1){var fn=sn.globals.selectedDataPoints[cn].indexOf(un);sn.globals.selectedDataPoints[cn].splice(fn,1)}}else{if(!sn.config.states.active.allowMultipleDataPointsSelection&&sn.globals.selectedDataPoints.length>0){sn.globals.selectedDataPoints=[];var mn=sn.globals.dom.Paper.find(".apexcharts-series path:not(.apexcharts-decoration-element)"),xn=sn.globals.dom.Paper.find(".apexcharts-series circle:not(.apexcharts-decoration-element), .apexcharts-series rect:not(.apexcharts-decoration-element)"),vn=function(An){Array.prototype.forEach.call(An,function(Cn){Cn.node.setAttribute("selected","false"),on.getDefaultFilter(Cn,cn)})};vn(mn),vn(xn)}rn.node.setAttribute("selected","true"),pn="true",sn.globals.selectedDataPoints[cn]===void 0&&(sn.globals.selectedDataPoints[cn]=[]),sn.globals.selectedDataPoints[cn].push(un)}if(pn==="true"){var yn=sn.config.states.active.filter;if(yn!=="none")on.applyFilter(rn,cn,yn.type);else if(sn.config.states.hover.filter!=="none"&&!sn.globals.isTouchDevice){var wn=sn.config.states.hover.filter;on.applyFilter(rn,cn,wn.type)}}else sn.config.states.active.filter.type!=="none"&&(sn.config.states.hover.filter.type==="none"||sn.globals.isTouchDevice?on.getDefaultFilter(rn,cn):(wn=sn.config.states.hover.filter,on.applyFilter(rn,cn,wn.type)));typeof sn.config.chart.events.dataPointSelection=="function"&&sn.config.chart.events.dataPointSelection(an,this.ctx,{selectedDataPoints:sn.globals.selectedDataPoints,seriesIndex:cn,dataPointIndex:un,w:sn}),an&&this.ctx.events.fireEvent("dataPointSelection",[an,this.ctx,{selectedDataPoints:sn.globals.selectedDataPoints,seriesIndex:cn,dataPointIndex:un,w:sn}])}},{key:"rotateAroundCenter",value:function(rn){var an={};return rn&&typeof rn.getBBox=="function"&&(an=rn.getBBox()),{x:an.x+an.width/2,y:an.y+an.height/2}}},{key:"getTextRects",value:function(rn,an,sn,on){var cn=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],un=this.w,pn=this.drawText({x:-200,y:-200,text:rn,textAnchor:"start",fontSize:an,fontFamily:sn,foreColor:"#fff",opacity:0});on&&pn.attr("transform",on),un.globals.dom.Paper.add(pn);var fn=pn.bbox();return cn||(fn=pn.node.getBoundingClientRect()),pn.remove(),{width:fn.width,height:fn.height}}},{key:"placeTextWithEllipsis",value:function(rn,an,sn){if(typeof rn.getComputedTextLength=="function"&&(rn.textContent=an,an.length>0&&rn.getComputedTextLength()>=sn/1.1)){for(var on=an.length-3;on>0;on-=3)if(rn.getSubStringLength(0,on)<=sn/1.1)return void(rn.textContent=an.substring(0,on)+"...");rn.textContent="."}}}],[{key:"setAttrs",value:function(rn,an){for(var sn in an)an.hasOwnProperty(sn)&&rn.setAttribute(sn,an[sn])}}]),ln}(),Pi=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"getStackedSeriesTotals",value:function(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],an=this.w,sn=[];if(an.globals.series.length===0)return sn;for(var on=0;on<an.globals.series[an.globals.maxValsInArrayIndex].length;on++){for(var cn=0,un=0;un<an.globals.series.length;un++)an.globals.series[un][on]!==void 0&&rn.indexOf(un)===-1&&(cn+=an.globals.series[un][on]);sn.push(cn)}return sn}},{key:"getSeriesTotalByIndex",value:function(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return rn===null?this.w.config.series.reduce(function(an,sn){return an+sn},0):this.w.globals.series[rn].reduce(function(an,sn){return an+sn},0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var rn=this,an=this.w,sn=[];return an.globals.seriesGroups.forEach(function(on){var cn=[];an.config.series.forEach(function(pn,fn){on.indexOf(an.globals.seriesNames[fn])>-1&&cn.push(fn)});var un=an.globals.series.map(function(pn,fn){return cn.indexOf(fn)===-1?fn:-1}).filter(function(pn){return pn!==-1});sn.push(rn.getStackedSeriesTotals(un))}),sn}},{key:"setSeriesYAxisMappings",value:function(){var rn=this.w.globals,an=this.w.config,sn=[],on=[],cn=[],un=rn.series.length>an.yaxis.length||an.yaxis.some(function(vn){return Array.isArray(vn.seriesName)});an.series.forEach(function(vn,yn){cn.push(yn),on.push(null)}),an.yaxis.forEach(function(vn,yn){sn[yn]=[]});var pn=[];an.yaxis.forEach(function(vn,yn){var wn=!1;if(vn.seriesName){var An=[];Array.isArray(vn.seriesName)?An=vn.seriesName:An.push(vn.seriesName),An.forEach(function(Cn){an.series.forEach(function(kn,Mn){if(kn.name===Cn){var Tn=Mn;yn===Mn||un?!un||cn.indexOf(Mn)>-1?sn[yn].push([yn,Mn]):console.warn("Series '"+kn.name+"' referenced more than once in what looks like the new style. That is, when using either seriesName: [], or when there are more series than yaxes."):(sn[Mn].push([Mn,yn]),Tn=yn),wn=!0,(Tn=cn.indexOf(Tn))!==-1&&cn.splice(Tn,1)}})})}wn||pn.push(yn)}),sn=sn.map(function(vn,yn){var wn=[];return vn.forEach(function(An){on[An[1]]=An[0],wn.push(An[1])}),wn});for(var fn=an.yaxis.length-1,mn=0;mn<pn.length&&(fn=pn[mn],sn[fn]=[],cn);mn++){var xn=cn[0];cn.shift(),sn[fn].push(xn),on[xn]=fn}cn.forEach(function(vn){sn[fn].push(vn),on[vn]=fn}),rn.seriesYAxisMap=sn.map(function(vn){return vn}),rn.seriesYAxisReverseMap=on.map(function(vn){return vn}),rn.seriesYAxisMap.forEach(function(vn,yn){vn.forEach(function(wn){an.series[wn]&&an.series[wn].group===void 0&&(an.series[wn].group="apexcharts-axis-".concat(yn.toString()))})})}},{key:"isSeriesNull",value:function(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return(rn===null?this.w.config.series.filter(function(an){return an!==null}):this.w.config.series[rn].data.filter(function(an){return an!==null})).length===0}},{key:"seriesHaveSameValues",value:function(rn){return this.w.globals.series[rn].every(function(an,sn,on){return an===on[0]})}},{key:"getCategoryLabels",value:function(rn){var an=this.w,sn=rn.slice();return an.config.xaxis.convertedCatToNumeric&&(sn=rn.map(function(on,cn){return an.config.xaxis.labels.formatter(on-an.globals.minX+1)})),sn}},{key:"getLargestSeries",value:function(){var rn=this.w;rn.globals.maxValsInArrayIndex=rn.globals.series.map(function(an){return an.length}).indexOf(Math.max.apply(Math,rn.globals.series.map(function(an){return an.length})))}},{key:"getLargestMarkerSize",value:function(){var rn=this.w,an=0;return rn.globals.markers.size.forEach(function(sn){an=Math.max(an,sn)}),rn.config.markers.discrete&&rn.config.markers.discrete.length&&rn.config.markers.discrete.forEach(function(sn){an=Math.max(an,sn.size)}),an>0&&(rn.config.markers.hover.size>0?an=rn.config.markers.hover.size:an+=rn.config.markers.hover.sizeOffset),rn.globals.markers.largestSize=an,an}},{key:"getSeriesTotals",value:function(){var rn=this.w;rn.globals.seriesTotals=rn.globals.series.map(function(an,sn){var on=0;if(Array.isArray(an))for(var cn=0;cn<an.length;cn++)on+=an[cn];else on+=an;return on})}},{key:"getSeriesTotalsXRange",value:function(rn,an){var sn=this.w;return sn.globals.series.map(function(on,cn){for(var un=0,pn=0;pn<on.length;pn++)sn.globals.seriesX[cn][pn]>rn&&sn.globals.seriesX[cn][pn]<an&&(un+=on[pn]);return un})}},{key:"getPercentSeries",value:function(){var rn=this.w;rn.globals.seriesPercent=rn.globals.series.map(function(an,sn){var on=[];if(Array.isArray(an))for(var cn=0;cn<an.length;cn++){var un=rn.globals.stackedSeriesTotals[cn],pn=0;un&&(pn=100*an[cn]/un),on.push(pn)}else{var fn=100*an/rn.globals.seriesTotals.reduce(function(mn,xn){return mn+xn},0);on.push(fn)}return on})}},{key:"getCalculatedRatios",value:function(){var rn,an,sn,on=this,cn=this.w,un=cn.globals,pn=[],fn=0,mn=[],xn=.1,vn=0;if(un.yRange=[],un.isMultipleYAxis)for(var yn=0;yn<un.minYArr.length;yn++)un.yRange.push(Math.abs(un.minYArr[yn]-un.maxYArr[yn])),mn.push(0);else un.yRange.push(Math.abs(un.minY-un.maxY));un.xRange=Math.abs(un.maxX-un.minX),un.zRange=Math.abs(un.maxZ-un.minZ);for(var wn=0;wn<un.yRange.length;wn++)pn.push(un.yRange[wn]/un.gridHeight);if(an=un.xRange/un.gridWidth,rn=un.yRange/un.gridWidth,sn=un.xRange/un.gridHeight,(fn=un.zRange/un.gridHeight*16)||(fn=1),un.minY!==Number.MIN_VALUE&&Math.abs(un.minY)!==0&&(un.hasNegs=!0),cn.globals.seriesYAxisReverseMap.length>0){var An=function(kn,Mn){var Tn=cn.config.yaxis[cn.globals.seriesYAxisReverseMap[Mn]],On=kn<0?-1:1;return kn=Math.abs(kn),Tn.logarithmic&&(kn=on.getBaseLog(Tn.logBase,kn)),-On*kn/pn[Mn]};if(un.isMultipleYAxis){mn=[];for(var Cn=0;Cn<pn.length;Cn++)mn.push(An(un.minYArr[Cn],Cn))}else(mn=[]).push(An(un.minY,0)),un.minY!==Number.MIN_VALUE&&Math.abs(un.minY)!==0&&(xn=-un.minY/rn,vn=un.minX/an)}else(mn=[]).push(0),xn=0,vn=0;return{yRatio:pn,invertedYRatio:rn,zRatio:fn,xRatio:an,invertedXRatio:sn,baseLineInvertedY:xn,baseLineY:mn,baseLineX:vn}}},{key:"getLogSeries",value:function(rn){var an=this,sn=this.w;return sn.globals.seriesLog=rn.map(function(on,cn){var un=sn.globals.seriesYAxisReverseMap[cn];return sn.config.yaxis[un]&&sn.config.yaxis[un].logarithmic?on.map(function(pn){return pn===null?null:an.getLogVal(sn.config.yaxis[un].logBase,pn,cn)}):on}),sn.globals.invalidLogScale?rn:sn.globals.seriesLog}},{key:"getLogValAtSeriesIndex",value:function(rn,an){if(rn===null)return null;var sn=this.w,on=sn.globals.seriesYAxisReverseMap[an];return sn.config.yaxis[on]&&sn.config.yaxis[on].logarithmic?this.getLogVal(sn.config.yaxis[on].logBase,rn,an):rn}},{key:"getBaseLog",value:function(rn,an){return Math.log(an)/Math.log(rn)}},{key:"getLogVal",value:function(rn,an,sn){if(an<=0)return 0;var on=this.w,cn=on.globals.minYArr[sn]===0?-1:this.getBaseLog(rn,on.globals.minYArr[sn]),un=(on.globals.maxYArr[sn]===0?0:this.getBaseLog(rn,on.globals.maxYArr[sn]))-cn;return an<1?an/un:(this.getBaseLog(rn,an)-cn)/un}},{key:"getLogYRatios",value:function(rn){var an=this,sn=this.w,on=this.w.globals;return on.yLogRatio=rn.slice(),on.logYRange=on.yRange.map(function(cn,un){var pn=sn.globals.seriesYAxisReverseMap[un];if(sn.config.yaxis[pn]&&an.w.config.yaxis[pn].logarithmic){var fn,mn=-Number.MAX_VALUE,xn=Number.MIN_VALUE;return on.seriesLog.forEach(function(vn,yn){vn.forEach(function(wn){sn.config.yaxis[yn]&&sn.config.yaxis[yn].logarithmic&&(mn=Math.max(wn,mn),xn=Math.min(wn,xn))})}),fn=Math.pow(on.yRange[un],Math.abs(xn-mn)/on.yRange[un]),on.yLogRatio[un]=fn/on.gridHeight,fn}}),on.invalidLogScale?rn.slice():on.yLogRatio}},{key:"drawSeriesByGroup",value:function(rn,an,sn,on){var cn=this.w,un=[];return rn.series.length>0&&an.forEach(function(pn){var fn=[],mn=[];rn.i.forEach(function(xn,vn){cn.config.series[xn].group===pn&&(fn.push(rn.series[vn]),mn.push(xn))}),fn.length>0&&un.push(on.draw(fn,sn,mn))}),un}}],[{key:"checkComboSeries",value:function(rn,an){var sn=!1,on=0,cn=0;return an===void 0&&(an="line"),rn.length&&rn[0].type!==void 0&&rn.forEach(function(un){un.type!=="bar"&&un.type!=="column"&&un.type!=="candlestick"&&un.type!=="boxPlot"||on++,un.type!==void 0&&un.type!==an&&cn++}),cn>0&&(sn=!0),{comboBarCount:on,comboCharts:sn}}},{key:"extendArrayProps",value:function(rn,an,sn){var on,cn,un,pn,fn,mn;return(on=an)!==null&&on!==void 0&&on.yaxis&&(an=rn.extendYAxis(an,sn)),(cn=an)!==null&&cn!==void 0&&cn.annotations&&(an.annotations.yaxis&&(an=rn.extendYAxisAnnotations(an)),(un=an)!==null&&un!==void 0&&(pn=un.annotations)!==null&&pn!==void 0&&pn.xaxis&&(an=rn.extendXAxisAnnotations(an)),(fn=an)!==null&&fn!==void 0&&(mn=fn.annotations)!==null&&mn!==void 0&&mn.points&&(an=rn.extendPointAnnotations(an))),an}}]),ln}(),Ii=function(){function ln(rn){i$2(this,ln),this.w=rn.w,this.annoCtx=rn}return s$1(ln,[{key:"setOrientations",value:function(rn){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,sn=this.w;if(rn.label.orientation==="vertical"){var on=an!==null?an:0,cn=sn.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(on,"']"));if(cn!==null){var un=cn.getBoundingClientRect();cn.setAttribute("x",parseFloat(cn.getAttribute("x"))-un.height+4);var pn=rn.label.position==="top"?un.width:-un.width;cn.setAttribute("y",parseFloat(cn.getAttribute("y"))+pn);var fn=this.annoCtx.graphics.rotateAroundCenter(cn),mn=fn.x,xn=fn.y;cn.setAttribute("transform","rotate(-90 ".concat(mn," ").concat(xn,")"))}}}},{key:"addBackgroundToAnno",value:function(rn,an){var sn=this.w;if(!rn||!an.label.text||!String(an.label.text).trim())return null;var on=sn.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),cn=rn.getBoundingClientRect(),un=an.label.style.padding,pn=un.left,fn=un.right,mn=un.top,xn=un.bottom;if(an.label.orientation==="vertical"){var vn=[pn,fn,mn,xn];mn=vn[0],xn=vn[1],pn=vn[2],fn=vn[3]}var yn=cn.left-on.left-pn,wn=cn.top-on.top-mn,An=this.annoCtx.graphics.drawRect(yn-sn.globals.barPadForNumericAxis,wn,cn.width+pn+fn,cn.height+mn+xn,an.label.borderRadius,an.label.style.background,1,an.label.borderWidth,an.label.borderColor,0);return an.id&&An.node.classList.add(an.id),An}},{key:"annotationsBackground",value:function(){var rn=this,an=this.w,sn=function(on,cn,un){var pn=an.globals.dom.baseEl.querySelector(".apexcharts-".concat(un,"-annotations .apexcharts-").concat(un,"-annotation-label[rel='").concat(cn,"']"));if(pn){var fn=pn.parentNode,mn=rn.addBackgroundToAnno(pn,on);mn&&(fn.insertBefore(mn.node,pn),on.label.mouseEnter&&mn.node.addEventListener("mouseenter",on.label.mouseEnter.bind(rn,on)),on.label.mouseLeave&&mn.node.addEventListener("mouseleave",on.label.mouseLeave.bind(rn,on)),on.label.click&&mn.node.addEventListener("click",on.label.click.bind(rn,on)))}};an.config.annotations.xaxis.forEach(function(on,cn){return sn(on,cn,"xaxis")}),an.config.annotations.yaxis.forEach(function(on,cn){return sn(on,cn,"yaxis")}),an.config.annotations.points.forEach(function(on,cn){return sn(on,cn,"point")})}},{key:"getY1Y2",value:function(rn,an){var sn,on=this.w,cn=rn==="y1"?an.y:an.y2,un=!1;if(this.annoCtx.invertAxis){var pn=on.config.xaxis.convertedCatToNumeric?on.globals.categoryLabels:on.globals.labels,fn=pn.indexOf(cn),mn=on.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child(".concat(fn+1,")"));sn=mn?parseFloat(mn.getAttribute("y")):(on.globals.gridHeight/pn.length-1)*(fn+1)-on.globals.barHeight,an.seriesIndex!==void 0&&on.globals.barHeight&&(sn-=on.globals.barHeight/2*(on.globals.series.length-1)-on.globals.barHeight*an.seriesIndex)}else{var xn,vn=on.globals.seriesYAxisMap[an.yAxisIndex][0],yn=on.config.yaxis[an.yAxisIndex].logarithmic?new Pi(this.annoCtx.ctx).getLogVal(on.config.yaxis[an.yAxisIndex].logBase,cn,vn)/on.globals.yLogRatio[vn]:(cn-on.globals.minYArr[vn])/(on.globals.yRange[vn]/on.globals.gridHeight);sn=on.globals.gridHeight-Math.min(Math.max(yn,0),on.globals.gridHeight),un=yn>on.globals.gridHeight||yn<0,!an.marker||an.y!==void 0&&an.y!==null||(sn=0),(xn=on.config.yaxis[an.yAxisIndex])!==null&&xn!==void 0&&xn.reversed&&(sn=yn)}return typeof cn=="string"&&cn.includes("px")&&(sn=parseFloat(cn)),{yP:sn,clipped:un}}},{key:"getX1X2",value:function(rn,an){var sn=this.w,on=rn==="x1"?an.x:an.x2,cn=this.annoCtx.invertAxis?sn.globals.minY:sn.globals.minX,un=this.annoCtx.invertAxis?sn.globals.maxY:sn.globals.maxX,pn=this.annoCtx.invertAxis?sn.globals.yRange[0]:sn.globals.xRange,fn=!1,mn=this.annoCtx.inversedReversedAxis?(un-on)/(pn/sn.globals.gridWidth):(on-cn)/(pn/sn.globals.gridWidth);return sn.config.xaxis.type!=="category"&&!sn.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||sn.globals.dataFormatXNumeric||sn.config.chart.sparkline.enabled||(mn=this.getStringX(on)),typeof on=="string"&&on.includes("px")&&(mn=parseFloat(on)),on==null&&an.marker&&(mn=sn.globals.gridWidth),an.seriesIndex!==void 0&&sn.globals.barWidth&&!this.annoCtx.invertAxis&&(mn-=sn.globals.barWidth/2*(sn.globals.series.length-1)-sn.globals.barWidth*an.seriesIndex),mn>sn.globals.gridWidth?(mn=sn.globals.gridWidth,fn=!0):mn<0&&(mn=0,fn=!0),{x:mn,clipped:fn}}},{key:"getStringX",value:function(rn){var an=this.w,sn=rn;an.config.xaxis.convertedCatToNumeric&&an.globals.categoryLabels.length&&(rn=an.globals.categoryLabels.indexOf(rn)+1);var on=an.globals.labels.map(function(un){return Array.isArray(un)?un.join(" "):un}).indexOf(rn),cn=an.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child(".concat(on+1,")"));return cn&&(sn=parseFloat(cn.getAttribute("x"))),sn}}]),ln}(),Ti=function(){function ln(rn){i$2(this,ln),this.w=rn.w,this.annoCtx=rn,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new Ii(this.annoCtx)}return s$1(ln,[{key:"addXaxisAnnotation",value:function(rn,an,sn){var on,cn=this.w,un=this.helpers.getX1X2("x1",rn),pn=un.x,fn=un.clipped,mn=!0,xn=rn.label.text,vn=rn.strokeDashArray;if(v$2.isNumber(pn)){if(rn.x2===null||rn.x2===void 0){if(!fn){var yn=this.annoCtx.graphics.drawLine(pn+rn.offsetX,0+rn.offsetY,pn+rn.offsetX,cn.globals.gridHeight+rn.offsetY,rn.borderColor,vn,rn.borderWidth);an.appendChild(yn.node),rn.id&&yn.node.classList.add(rn.id)}}else{var wn=this.helpers.getX1X2("x2",rn);if(on=wn.x,mn=wn.clipped,on<pn){var An=pn;pn=on,on=An}var Cn=this.annoCtx.graphics.drawRect(pn+rn.offsetX,0+rn.offsetY,on-pn,cn.globals.gridHeight+rn.offsetY,0,rn.fillColor,rn.opacity,1,rn.borderColor,vn);Cn.node.classList.add("apexcharts-annotation-rect"),Cn.attr("clip-path","url(#gridRectMask".concat(cn.globals.cuid,")")),an.appendChild(Cn.node),rn.id&&Cn.node.classList.add(rn.id)}if(!fn||!mn){var kn=this.annoCtx.graphics.getTextRects(xn,parseFloat(rn.label.style.fontSize)),Mn=rn.label.position==="top"?4:rn.label.position==="center"?cn.globals.gridHeight/2+(rn.label.orientation==="vertical"?kn.width/2:0):cn.globals.gridHeight,Tn=this.annoCtx.graphics.drawText({x:pn+rn.label.offsetX,y:Mn+rn.label.offsetY-(rn.label.orientation==="vertical"?rn.label.position==="top"?kn.width/2-12:-kn.width/2:0),text:xn,textAnchor:rn.label.textAnchor,fontSize:rn.label.style.fontSize,fontFamily:rn.label.style.fontFamily,fontWeight:rn.label.style.fontWeight,foreColor:rn.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(rn.label.style.cssClass," ").concat(rn.id?rn.id:"")});Tn.attr({rel:sn}),an.appendChild(Tn.node),this.annoCtx.helpers.setOrientations(rn,sn)}}}},{key:"drawXAxisAnnotations",value:function(){var rn=this,an=this.w,sn=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return an.config.annotations.xaxis.map(function(on,cn){rn.addXaxisAnnotation(on,sn.node,cn)}),sn}}]),ln}(),zi=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.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 s$1(ln,[{key:"isValidDate",value:function(rn){return typeof rn!="number"&&!isNaN(this.parseDate(rn))}},{key:"getTimeStamp",value:function(rn){return Date.parse(rn)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(rn).toISOString().substr(0,25)).getTime():new Date(rn).getTime():rn}},{key:"getDate",value:function(rn){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(rn).toUTCString()):new Date(rn)}},{key:"parseDate",value:function(rn){var an=Date.parse(rn);if(!isNaN(an))return this.getTimeStamp(rn);var sn=Date.parse(rn.replace(/-/g,"/").replace(/[a-z]+/gi," "));return sn=this.getTimeStamp(sn)}},{key:"parseDateWithTimezone",value:function(rn){return Date.parse(rn.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(rn,an){var sn=this.w.globals.locale,on=this.w.config.xaxis.labels.datetimeUTC,cn=["\0"].concat(f$2(sn.months)),un=[""].concat(f$2(sn.shortMonths)),pn=[""].concat(f$2(sn.days)),fn=[""].concat(f$2(sn.shortDays));function mn(Fn,Un){var Yn=Fn+"";for(Un=Un||2;Yn.length<Un;)Yn="0"+Yn;return Yn}var xn=on?rn.getUTCFullYear():rn.getFullYear();an=(an=(an=an.replace(/(^|[^\\])yyyy+/g,"$1"+xn)).replace(/(^|[^\\])yy/g,"$1"+xn.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+xn);var vn=(on?rn.getUTCMonth():rn.getMonth())+1;an=(an=(an=(an=an.replace(/(^|[^\\])MMMM+/g,"$1"+cn[0])).replace(/(^|[^\\])MMM/g,"$1"+un[0])).replace(/(^|[^\\])MM/g,"$1"+mn(vn))).replace(/(^|[^\\])M/g,"$1"+vn);var yn=on?rn.getUTCDate():rn.getDate();an=(an=(an=(an=an.replace(/(^|[^\\])dddd+/g,"$1"+pn[0])).replace(/(^|[^\\])ddd/g,"$1"+fn[0])).replace(/(^|[^\\])dd/g,"$1"+mn(yn))).replace(/(^|[^\\])d/g,"$1"+yn);var wn=on?rn.getUTCHours():rn.getHours(),An=wn>12?wn-12:wn===0?12:wn;an=(an=(an=(an=an.replace(/(^|[^\\])HH+/g,"$1"+mn(wn))).replace(/(^|[^\\])H/g,"$1"+wn)).replace(/(^|[^\\])hh+/g,"$1"+mn(An))).replace(/(^|[^\\])h/g,"$1"+An);var Cn=on?rn.getUTCMinutes():rn.getMinutes();an=(an=an.replace(/(^|[^\\])mm+/g,"$1"+mn(Cn))).replace(/(^|[^\\])m/g,"$1"+Cn);var kn=on?rn.getUTCSeconds():rn.getSeconds();an=(an=an.replace(/(^|[^\\])ss+/g,"$1"+mn(kn))).replace(/(^|[^\\])s/g,"$1"+kn);var Mn=on?rn.getUTCMilliseconds():rn.getMilliseconds();an=an.replace(/(^|[^\\])fff+/g,"$1"+mn(Mn,3)),Mn=Math.round(Mn/10),an=an.replace(/(^|[^\\])ff/g,"$1"+mn(Mn)),Mn=Math.round(Mn/10);var Tn=wn<12?"AM":"PM";an=(an=(an=an.replace(/(^|[^\\])f/g,"$1"+Mn)).replace(/(^|[^\\])TT+/g,"$1"+Tn)).replace(/(^|[^\\])T/g,"$1"+Tn.charAt(0));var On=Tn.toLowerCase();an=(an=an.replace(/(^|[^\\])tt+/g,"$1"+On)).replace(/(^|[^\\])t/g,"$1"+On.charAt(0));var Pn=-rn.getTimezoneOffset(),Nn=on||!Pn?"Z":Pn>0?"+":"-";if(!on){var In=(Pn=Math.abs(Pn))%60;Nn+=mn(Math.floor(Pn/60))+":"+mn(In)}an=an.replace(/(^|[^\\])K/g,"$1"+Nn);var jn=(on?rn.getUTCDay():rn.getDay())+1;return an=(an=(an=(an=(an=an.replace(new RegExp(pn[0],"g"),pn[jn])).replace(new RegExp(fn[0],"g"),fn[jn])).replace(new RegExp(cn[0],"g"),cn[vn])).replace(new RegExp(un[0],"g"),un[vn])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(rn,an,sn){var on=this.w;on.config.xaxis.min!==void 0&&(rn=on.config.xaxis.min),on.config.xaxis.max!==void 0&&(an=on.config.xaxis.max);var cn=this.getDate(rn),un=this.getDate(an),pn=this.formatDate(cn,"yyyy MM dd HH mm ss fff").split(" "),fn=this.formatDate(un,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(pn[6],10),maxMillisecond:parseInt(fn[6],10),minSecond:parseInt(pn[5],10),maxSecond:parseInt(fn[5],10),minMinute:parseInt(pn[4],10),maxMinute:parseInt(fn[4],10),minHour:parseInt(pn[3],10),maxHour:parseInt(fn[3],10),minDate:parseInt(pn[2],10),maxDate:parseInt(fn[2],10),minMonth:parseInt(pn[1],10)-1,maxMonth:parseInt(fn[1],10)-1,minYear:parseInt(pn[0],10),maxYear:parseInt(fn[0],10)}}},{key:"isLeapYear",value:function(rn){return rn%4==0&&rn%100!=0||rn%400==0}},{key:"calculcateLastDaysOfMonth",value:function(rn,an,sn){return this.determineDaysOfMonths(rn,an)-sn}},{key:"determineDaysOfYear",value:function(rn){var an=365;return this.isLeapYear(rn)&&(an=366),an}},{key:"determineRemainingDaysOfYear",value:function(rn,an,sn){var on=this.daysCntOfYear[an]+sn;return an>1&&this.isLeapYear()&&on++,on}},{key:"determineDaysOfMonths",value:function(rn,an){var sn=30;switch(rn=v$2.monthMod(rn),!0){case this.months30.indexOf(rn)>-1:rn===2&&(sn=this.isLeapYear(an)?29:28);break;case this.months31.indexOf(rn)>-1:default:sn=31}return sn}}]),ln}(),Xi=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w,this.tooltipKeyFormat="dd MMM"}return s$1(ln,[{key:"xLabelFormat",value:function(rn,an,sn,on){var cn=this.w;if(cn.config.xaxis.type==="datetime"&&cn.config.xaxis.labels.formatter===void 0&&cn.config.tooltip.x.formatter===void 0){var un=new zi(this.ctx);return un.formatDate(un.getDate(an),cn.config.tooltip.x.format)}return rn(an,sn,on)}},{key:"defaultGeneralFormatter",value:function(rn){return Array.isArray(rn)?rn.map(function(an){return an}):rn}},{key:"defaultYFormatter",value:function(rn,an,sn){var on=this.w;if(v$2.isNumber(rn))if(on.globals.yValueDecimal!==0)rn=rn.toFixed(an.decimalsInFloat!==void 0?an.decimalsInFloat:on.globals.yValueDecimal);else{var cn=rn.toFixed(0);rn=rn==cn?cn:rn.toFixed(1)}return rn}},{key:"setLabelFormatters",value:function(){var rn=this,an=this.w;return an.globals.xaxisTooltipFormatter=function(sn){return rn.defaultGeneralFormatter(sn)},an.globals.ttKeyFormatter=function(sn){return rn.defaultGeneralFormatter(sn)},an.globals.ttZFormatter=function(sn){return sn},an.globals.legendFormatter=function(sn){return rn.defaultGeneralFormatter(sn)},an.config.xaxis.labels.formatter!==void 0?an.globals.xLabelFormatter=an.config.xaxis.labels.formatter:an.globals.xLabelFormatter=function(sn){if(v$2.isNumber(sn)){if(!an.config.xaxis.convertedCatToNumeric&&an.config.xaxis.type==="numeric"){if(v$2.isNumber(an.config.xaxis.decimalsInFloat))return sn.toFixed(an.config.xaxis.decimalsInFloat);var on=an.globals.maxX-an.globals.minX;return on>0&&on<100?sn.toFixed(1):sn.toFixed(0)}return an.globals.isBarHorizontal&&an.globals.maxY-an.globals.minYArr<4?sn.toFixed(1):sn.toFixed(0)}return sn},typeof an.config.tooltip.x.formatter=="function"?an.globals.ttKeyFormatter=an.config.tooltip.x.formatter:an.globals.ttKeyFormatter=an.globals.xLabelFormatter,typeof an.config.xaxis.tooltip.formatter=="function"&&(an.globals.xaxisTooltipFormatter=an.config.xaxis.tooltip.formatter),(Array.isArray(an.config.tooltip.y)||an.config.tooltip.y.formatter!==void 0)&&(an.globals.ttVal=an.config.tooltip.y),an.config.tooltip.z.formatter!==void 0&&(an.globals.ttZFormatter=an.config.tooltip.z.formatter),an.config.legend.formatter!==void 0&&(an.globals.legendFormatter=an.config.legend.formatter),an.config.yaxis.forEach(function(sn,on){sn.labels.formatter!==void 0?an.globals.yLabelFormatters[on]=sn.labels.formatter:an.globals.yLabelFormatters[on]=function(cn){return an.globals.xyCharts?Array.isArray(cn)?cn.map(function(un){return rn.defaultYFormatter(un,sn,on)}):rn.defaultYFormatter(cn,sn,on):cn}}),an.globals}},{key:"heatmapLabelFormatters",value:function(){var rn=this.w;if(rn.config.chart.type==="heatmap"){rn.globals.yAxisScale[0].result=rn.globals.seriesNames.slice();var an=rn.globals.seriesNames.reduce(function(sn,on){return sn.length>on.length?sn:on},0);rn.globals.yAxisScale[0].niceMax=an,rn.globals.yAxisScale[0].niceMin=an}}}]),ln}(),Ri=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"getLabel",value:function(rn,an,sn,on){var cn=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],un=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",pn=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],fn=this.w,mn=rn[on]===void 0?"":rn[on],xn=mn,vn=fn.globals.xLabelFormatter,yn=fn.config.xaxis.labels.formatter,wn=!1,An=new Xi(this.ctx),Cn=mn;pn&&(xn=An.xLabelFormat(vn,mn,Cn,{i:on,dateFormatter:new zi(this.ctx).formatDate,w:fn}),yn!==void 0&&(xn=yn(mn,rn[on],{i:on,dateFormatter:new zi(this.ctx).formatDate,w:fn})));var kn,Mn;an.length>0?(kn=an[on].unit,Mn=null,an.forEach(function(Nn){Nn.unit==="month"?Mn="year":Nn.unit==="day"?Mn="month":Nn.unit==="hour"?Mn="day":Nn.unit==="minute"&&(Mn="hour")}),wn=Mn===kn,sn=an[on].position,xn=an[on].value):fn.config.xaxis.type==="datetime"&&yn===void 0&&(xn=""),xn===void 0&&(xn=""),xn=Array.isArray(xn)?xn:xn.toString();var Tn=new Mi(this.ctx),On={};On=fn.globals.rotateXLabels&&pn?Tn.getTextRects(xn,parseInt(un,10),null,"rotate(".concat(fn.config.xaxis.labels.rotate," 0 0)"),!1):Tn.getTextRects(xn,parseInt(un,10));var Pn=!fn.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(xn)&&(String(xn)==="NaN"||cn.indexOf(xn)>=0&&Pn)&&(xn=""),{x:sn,text:xn,textRect:On,isBold:wn}}},{key:"checkLabelBasedOnTickamount",value:function(rn,an,sn){var on=this.w,cn=on.config.xaxis.tickAmount;return cn==="dataPoints"&&(cn=Math.round(on.globals.gridWidth/120)),cn>sn||rn%Math.round(sn/(cn+1))==0||(an.text=""),an}},{key:"checkForOverflowingLabels",value:function(rn,an,sn,on,cn){var un=this.w;if(rn===0&&un.globals.skipFirstTimelinelabel&&(an.text=""),rn===sn-1&&un.globals.skipLastTimelinelabel&&(an.text=""),un.config.xaxis.labels.hideOverlappingLabels&&on.length>0){var pn=cn[cn.length-1];an.x<pn.textRect.width/(un.globals.rotateXLabels?Math.abs(un.config.xaxis.labels.rotate)/12:1.01)+pn.x&&(an.text="")}return an}},{key:"checkForReversedLabels",value:function(rn,an){var sn=this.w;return sn.config.yaxis[rn]&&sn.config.yaxis[rn].reversed&&an.reverse(),an}},{key:"yAxisAllSeriesCollapsed",value:function(rn){var an=this.w.globals;return!an.seriesYAxisMap[rn].some(function(sn){return an.collapsedSeriesIndices.indexOf(sn)===-1})}},{key:"translateYAxisIndex",value:function(rn){var an=this.w,sn=an.globals,on=an.config.yaxis;return sn.series.length>on.length||on.some(function(cn){return Array.isArray(cn.seriesName)})?rn:sn.seriesYAxisReverseMap[rn]}},{key:"isYAxisHidden",value:function(rn){var an=this.w,sn=an.config.yaxis[rn];if(!sn.show||this.yAxisAllSeriesCollapsed(rn))return!0;if(!sn.showForNullSeries){var on=an.globals.seriesYAxisMap[rn],cn=new Pi(this.ctx);return on.every(function(un){return cn.isSeriesNull(un)})}return!1}},{key:"getYAxisForeColor",value:function(rn,an){var sn=this.w;return Array.isArray(rn)&&sn.globals.yAxisScale[an]&&this.ctx.theme.pushExtraColors(rn,sn.globals.yAxisScale[an].result.length,!1),rn}},{key:"drawYAxisTicks",value:function(rn,an,sn,on,cn,un,pn){var fn=this.w,mn=new Mi(this.ctx),xn=fn.globals.translateY+fn.config.yaxis[cn].labels.offsetY;if(fn.globals.isBarHorizontal?xn=0:fn.config.chart.type==="heatmap"&&(xn+=un/2),on.show&&an>0){fn.config.yaxis[cn].opposite===!0&&(rn+=on.width);for(var vn=an;vn>=0;vn--){var yn=mn.drawLine(rn+sn.offsetX-on.width+on.offsetX,xn+on.offsetY,rn+sn.offsetX+on.offsetX,xn+on.offsetY,on.color);pn.add(yn),xn+=un}}}}]),ln}(),Ei=function(){function ln(rn){i$2(this,ln),this.w=rn.w,this.annoCtx=rn,this.helpers=new Ii(this.annoCtx),this.axesUtils=new Ri(this.annoCtx)}return s$1(ln,[{key:"addYaxisAnnotation",value:function(rn,an,sn){var on,cn=this.w,un=rn.strokeDashArray,pn=this.helpers.getY1Y2("y1",rn),fn=pn.yP,mn=pn.clipped,xn=!0,vn=!1,yn=rn.label.text;if(rn.y2===null||rn.y2===void 0){if(!mn){vn=!0;var wn=this.annoCtx.graphics.drawLine(0+rn.offsetX,fn+rn.offsetY,this._getYAxisAnnotationWidth(rn),fn+rn.offsetY,rn.borderColor,un,rn.borderWidth);an.appendChild(wn.node),rn.id&&wn.node.classList.add(rn.id)}}else{if(on=(pn=this.helpers.getY1Y2("y2",rn)).yP,xn=pn.clipped,on>fn){var An=fn;fn=on,on=An}if(!mn||!xn){vn=!0;var Cn=this.annoCtx.graphics.drawRect(0+rn.offsetX,on+rn.offsetY,this._getYAxisAnnotationWidth(rn),fn-on,0,rn.fillColor,rn.opacity,1,rn.borderColor,un);Cn.node.classList.add("apexcharts-annotation-rect"),Cn.attr("clip-path","url(#gridRectMask".concat(cn.globals.cuid,")")),an.appendChild(Cn.node),rn.id&&Cn.node.classList.add(rn.id)}}if(vn){var kn=rn.label.position==="right"?cn.globals.gridWidth:rn.label.position==="center"?cn.globals.gridWidth/2:0,Mn=this.annoCtx.graphics.drawText({x:kn+rn.label.offsetX,y:(on??fn)+rn.label.offsetY-3,text:yn,textAnchor:rn.label.textAnchor,fontSize:rn.label.style.fontSize,fontFamily:rn.label.style.fontFamily,fontWeight:rn.label.style.fontWeight,foreColor:rn.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(rn.label.style.cssClass," ").concat(rn.id?rn.id:"")});Mn.attr({rel:sn}),an.appendChild(Mn.node)}}},{key:"_getYAxisAnnotationWidth",value:function(rn){var an=this.w;return an.globals.gridWidth,(rn.width.indexOf("%")>-1?an.globals.gridWidth*parseInt(rn.width,10)/100:parseInt(rn.width,10))+rn.offsetX}},{key:"drawYAxisAnnotations",value:function(){var rn=this,an=this.w,sn=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return an.config.annotations.yaxis.forEach(function(on,cn){on.yAxisIndex=rn.axesUtils.translateYAxisIndex(on.yAxisIndex),rn.axesUtils.isYAxisHidden(on.yAxisIndex)&&rn.axesUtils.yAxisAllSeriesCollapsed(on.yAxisIndex)||rn.addYaxisAnnotation(on,sn.node,cn)}),sn}}]),ln}(),Yi=function(){function ln(rn){i$2(this,ln),this.w=rn.w,this.annoCtx=rn,this.helpers=new Ii(this.annoCtx)}return s$1(ln,[{key:"addPointAnnotation",value:function(rn,an,sn){if(!(this.w.globals.collapsedSeriesIndices.indexOf(rn.seriesIndex)>-1)){var on=this.helpers.getX1X2("x1",rn),cn=on.x,un=on.clipped,pn=(on=this.helpers.getY1Y2("y1",rn)).yP,fn=on.clipped;if(v$2.isNumber(cn)&&!fn&&!un){var mn={pSize:rn.marker.size,pointStrokeWidth:rn.marker.strokeWidth,pointFillColor:rn.marker.fillColor,pointStrokeColor:rn.marker.strokeColor,shape:rn.marker.shape,pRadius:rn.marker.radius,class:"apexcharts-point-annotation-marker ".concat(rn.marker.cssClass," ").concat(rn.id?rn.id:"")},xn=this.annoCtx.graphics.drawMarker(cn+rn.marker.offsetX,pn+rn.marker.offsetY,mn);an.appendChild(xn.node);var vn=rn.label.text?rn.label.text:"",yn=this.annoCtx.graphics.drawText({x:cn+rn.label.offsetX,y:pn+rn.label.offsetY-rn.marker.size-parseFloat(rn.label.style.fontSize)/1.6,text:vn,textAnchor:rn.label.textAnchor,fontSize:rn.label.style.fontSize,fontFamily:rn.label.style.fontFamily,fontWeight:rn.label.style.fontWeight,foreColor:rn.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(rn.label.style.cssClass," ").concat(rn.id?rn.id:"")});if(yn.attr({rel:sn}),an.appendChild(yn.node),rn.customSVG.SVG){var wn=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+rn.customSVG.cssClass});wn.attr({transform:"translate(".concat(cn+rn.customSVG.offsetX,", ").concat(pn+rn.customSVG.offsetY,")")}),wn.node.innerHTML=rn.customSVG.SVG,an.appendChild(wn.node)}if(rn.image.path){var An=rn.image.width?rn.image.width:20,Cn=rn.image.height?rn.image.height:20;xn=this.annoCtx.addImage({x:cn+rn.image.offsetX-An/2,y:pn+rn.image.offsetY-Cn/2,width:An,height:Cn,path:rn.image.path,appendTo:".apexcharts-point-annotations"})}rn.mouseEnter&&xn.node.addEventListener("mouseenter",rn.mouseEnter.bind(this,rn)),rn.mouseLeave&&xn.node.addEventListener("mouseleave",rn.mouseLeave.bind(this,rn)),rn.click&&xn.node.addEventListener("click",rn.click.bind(this,rn))}}}},{key:"drawPointAnnotations",value:function(){var rn=this,an=this.w,sn=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return an.config.annotations.points.map(function(on,cn){rn.addPointAnnotation(on,sn.node,cn)}),sn}}]),ln}(),Hi={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"}}},Oi=function(){function ln(){i$2(this,ln),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,showDuplicates:!1,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,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 s$1(ln,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"",locales:[Hi],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.7},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",categoryFormatter:void 0,valueFormatter:void 0},png:{filename:void 0},svg:{filename:void 0},scale:void 0,width:void 0},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,allowMouseWheelZoom:!0,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{line:{isSlopeChart:!1,colors:{threshold:0,colorAboveThreshold:void 0,colorBelowThreshold:void 0}},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},seriesTitle:{show:!0,offsetY:1,offsetX:1,borderColor:"#000",borderWidth:1,borderRadius:2,style:{background:"rgba(0, 0, 0, 0.6)",color:"#fff",fontSize:"12px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:6,right:6,top:2,bottom:2}}}},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(rn){return rn}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(rn){return rn+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(rn){return rn.globals.seriesTotals.reduce(function(an,sn){return an+sn},0)/rn.globals.series.length+"%"}}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(rn){return rn},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(rn){return rn}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(rn){return rn}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(rn){return rn.globals.seriesTotals.reduce(function(an,sn){return an+sn},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(rn){return rn!==null?rn:""},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:.8}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},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:[],clusterGroupedSeries:!0,clusterGroupedSeriesOrientation:"vertical",labels:{colors:void 0,useSeriesColors:!1},markers:{size:7,fillColors:void 0,strokeWidth:1,shape:void 0,offsetX:0,offsetY:0,customHTML:void 0,onClick:void 0},itemMargin:{horizontal:5,vertical:4},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",offsetX:0,offsetY:0,showNullDataPoints:!0,onClick:void 0,onDblClick:void 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:{hover:{filter:{type:"lighten"}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken"}}},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(rn){return rn?rn+": ":""}}},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:.8}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),ln}(),Fi=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w,this.graphics=new Mi(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new Ii(this),this.xAxisAnnotations=new Ti(this),this.yAxisAnnotations=new Ei(this),this.pointsAnnotations=new Yi(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 s$1(ln,[{key:"drawAxesAnnotations",value:function(){var rn=this.w;if(rn.globals.axisCharts&&rn.globals.dataPoints){for(var an=this.yAxisAnnotations.drawYAxisAnnotations(),sn=this.xAxisAnnotations.drawXAxisAnnotations(),on=this.pointsAnnotations.drawPointAnnotations(),cn=rn.config.chart.animations.enabled,un=[an,sn,on],pn=[sn.node,an.node,on.node],fn=0;fn<3;fn++)rn.globals.dom.elGraphical.add(un[fn]),!cn||rn.globals.resized||rn.globals.dataChanged||rn.config.chart.type!=="scatter"&&rn.config.chart.type!=="bubble"&&rn.globals.dataPoints>1&&pn[fn].classList.add("apexcharts-element-hidden"),rn.globals.delayedElements.push({el:pn[fn],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var rn=this;this.w.config.annotations.images.map(function(an,sn){rn.addImage(an,sn)})}},{key:"drawTextAnnos",value:function(){var rn=this;this.w.config.annotations.texts.map(function(an,sn){rn.addText(an,sn)})}},{key:"addXaxisAnnotation",value:function(rn,an,sn){this.xAxisAnnotations.addXaxisAnnotation(rn,an,sn)}},{key:"addYaxisAnnotation",value:function(rn,an,sn){this.yAxisAnnotations.addYaxisAnnotation(rn,an,sn)}},{key:"addPointAnnotation",value:function(rn,an,sn){this.pointsAnnotations.addPointAnnotation(rn,an,sn)}},{key:"addText",value:function(rn,an){var sn=rn.x,on=rn.y,cn=rn.text,un=rn.textAnchor,pn=rn.foreColor,fn=rn.fontSize,mn=rn.fontFamily,xn=rn.fontWeight,vn=rn.cssClass,yn=rn.backgroundColor,wn=rn.borderWidth,An=rn.strokeDashArray,Cn=rn.borderRadius,kn=rn.borderColor,Mn=rn.appendTo,Tn=Mn===void 0?".apexcharts-svg":Mn,On=rn.paddingLeft,Pn=On===void 0?4:On,Nn=rn.paddingRight,In=Nn===void 0?4:Nn,jn=rn.paddingBottom,Fn=jn===void 0?2:jn,Un=rn.paddingTop,Yn=Un===void 0?2:Un,Qn=this.w,ir=this.graphics.drawText({x:sn,y:on,text:cn,textAnchor:un||"start",fontSize:fn||"12px",fontWeight:xn||"regular",fontFamily:mn||Qn.config.chart.fontFamily,foreColor:pn||Qn.config.chart.foreColor,cssClass:vn}),er=Qn.globals.dom.baseEl.querySelector(Tn);er&&er.appendChild(ir.node);var tr=ir.bbox();if(cn){var vr=this.graphics.drawRect(tr.x-Pn,tr.y-Yn,tr.width+Pn+In,tr.height+Fn+Yn,Cn,yn||"transparent",1,wn,kn,An);er.insertBefore(vr.node,ir.node)}}},{key:"addImage",value:function(rn,an){var sn=this.w,on=rn.path,cn=rn.x,un=cn===void 0?0:cn,pn=rn.y,fn=pn===void 0?0:pn,mn=rn.width,xn=mn===void 0?20:mn,vn=rn.height,yn=vn===void 0?20:vn,wn=rn.appendTo,An=wn===void 0?".apexcharts-svg":wn,Cn=sn.globals.dom.Paper.image(on);Cn.size(xn,yn).move(un,fn);var kn=sn.globals.dom.baseEl.querySelector(An);return kn&&kn.appendChild(Cn.node),Cn}},{key:"addXaxisAnnotationExternal",value:function(rn,an,sn){return this.addAnnotationExternal({params:rn,pushToMemory:an,context:sn,type:"xaxis",contextMethod:sn.addXaxisAnnotation}),sn}},{key:"addYaxisAnnotationExternal",value:function(rn,an,sn){return this.addAnnotationExternal({params:rn,pushToMemory:an,context:sn,type:"yaxis",contextMethod:sn.addYaxisAnnotation}),sn}},{key:"addPointAnnotationExternal",value:function(rn,an,sn){return this.invertAxis===void 0&&(this.invertAxis=sn.w.globals.isBarHorizontal),this.addAnnotationExternal({params:rn,pushToMemory:an,context:sn,type:"point",contextMethod:sn.addPointAnnotation}),sn}},{key:"addAnnotationExternal",value:function(rn){var an=rn.params,sn=rn.pushToMemory,on=rn.context,cn=rn.type,un=rn.contextMethod,pn=on,fn=pn.w,mn=fn.globals.dom.baseEl.querySelector(".apexcharts-".concat(cn,"-annotations")),xn=mn.childNodes.length+1,vn=new Oi,yn=Object.assign({},cn==="xaxis"?vn.xAxisAnnotation:cn==="yaxis"?vn.yAxisAnnotation:vn.pointAnnotation),wn=v$2.extend(yn,an);switch(cn){case"xaxis":this.addXaxisAnnotation(wn,mn,xn);break;case"yaxis":this.addYaxisAnnotation(wn,mn,xn);break;case"point":this.addPointAnnotation(wn,mn,xn)}var An=fn.globals.dom.baseEl.querySelector(".apexcharts-".concat(cn,"-annotations .apexcharts-").concat(cn,"-annotation-label[rel='").concat(xn,"']")),Cn=this.helpers.addBackgroundToAnno(An,wn);return Cn&&mn.insertBefore(Cn.node,An),sn&&fn.globals.memory.methodsToExec.push({context:pn,id:wn.id?wn.id:v$2.randomId(),method:un,label:"addAnnotation",params:an}),on}},{key:"clearAnnotations",value:function(rn){for(var an=rn.w,sn=an.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations"),on=an.globals.memory.methodsToExec.length-1;on>=0;on--)an.globals.memory.methodsToExec[on].label!=="addText"&&an.globals.memory.methodsToExec[on].label!=="addAnnotation"||an.globals.memory.methodsToExec.splice(on,1);sn=v$2.listToArray(sn),Array.prototype.forEach.call(sn,function(cn){for(;cn.firstChild;)cn.removeChild(cn.firstChild)})}},{key:"removeAnnotation",value:function(rn,an){var sn=rn.w,on=sn.globals.dom.baseEl.querySelectorAll(".".concat(an));on&&(sn.globals.memory.methodsToExec.map(function(cn,un){cn.id===an&&sn.globals.memory.methodsToExec.splice(un,1)}),Array.prototype.forEach.call(on,function(cn){cn.parentElement.removeChild(cn)}))}}]),ln}(),Di=function(ln){var rn,an=ln.isTimeline,sn=ln.ctx,on=ln.seriesIndex,cn=ln.dataPointIndex,un=ln.y1,pn=ln.y2,fn=ln.w,mn=fn.globals.seriesRangeStart[on][cn],xn=fn.globals.seriesRangeEnd[on][cn],vn=fn.globals.labels[cn],yn=fn.config.series[on].name?fn.config.series[on].name:"",wn=fn.globals.ttKeyFormatter,An=fn.config.tooltip.y.title.formatter,Cn={w:fn,seriesIndex:on,dataPointIndex:cn,start:mn,end:xn};typeof An=="function"&&(yn=An(yn,Cn)),(rn=fn.config.series[on].data[cn])!==null&&rn!==void 0&&rn.x&&(vn=fn.config.series[on].data[cn].x),an||fn.config.xaxis.type==="datetime"&&(vn=new Xi(sn).xLabelFormat(fn.globals.ttKeyFormatter,vn,vn,{i:void 0,dateFormatter:new zi(sn).formatDate,w:fn})),typeof wn=="function"&&(vn=wn(vn,Cn)),Number.isFinite(un)&&Number.isFinite(pn)&&(mn=un,xn=pn);var kn="",Mn="",Tn=fn.globals.colors[on];if(fn.config.tooltip.x.formatter===void 0)if(fn.config.xaxis.type==="datetime"){var On=new zi(sn);kn=On.formatDate(On.getDate(mn),fn.config.tooltip.x.format),Mn=On.formatDate(On.getDate(xn),fn.config.tooltip.x.format)}else kn=mn,Mn=xn;else kn=fn.config.tooltip.x.formatter(mn),Mn=fn.config.tooltip.x.formatter(xn);return{start:mn,end:xn,startVal:kn,endVal:Mn,ylabel:vn,color:Tn,seriesName:yn}},_i=function(ln){var rn=ln.color,an=ln.seriesName,sn=ln.ylabel,on=ln.start,cn=ln.end,un=ln.seriesIndex,pn=ln.dataPointIndex,fn=ln.ctx.tooltip.tooltipLabels.getFormatters(un);on=fn.yLbFormatter(on),cn=fn.yLbFormatter(cn);var mn=fn.yLbFormatter(ln.w.globals.series[un][pn]),xn=`<span class="value start-value">
  `.concat(on,`
  </span> <span class="separator">-</span> <span class="value end-value">
  `).concat(cn,`
  </span>`);return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+rn+'">'+(an||"")+'</span></div><div> <span class="category">'+sn+": </span> "+(ln.w.globals.comboCharts?ln.w.config.series[un].type==="rangeArea"||ln.w.config.series[un].type==="rangeBar"?xn:"<span>".concat(mn,"</span>"):xn)+" </div></div>"},Ni=function(){function ln(rn){i$2(this,ln),this.opts=rn}return s$1(ln,[{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{dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(rn){return this.hideYAxis(),v$2.extend(rn,{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:"slope",value:function(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter:function(rn,an){var sn=an.w.config.series[an.seriesIndex].name;return rn!==null?sn+": "+rn:""},background:{enabled:!1},offsetX:-5},grid:{xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},xaxis:{position:"top",labels:{style:{fontSize:14,fontWeight:900}},tooltip:{enabled:!1},crosshairs:{show:!1}},markers:{size:8,hover:{sizeOffset:1}},legend:{show:!1},tooltip:{shared:!1,intersect:!0,followCursor:!0},stroke:{width:5,curve:"straight"}}}},{key:"bar",value:function(){return{chart:{stacked:!1},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"square"},fill:{opacity:.85},legend:{markers:{shape:"square"}},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(),u$2(u$2({},this.bar()),{},{chart:{animations:{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 rn=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(an){var sn=an.seriesIndex,on=an.dataPointIndex,cn=an.w;return rn._getBoxTooltip(cn,sn,on,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var rn=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(an){var sn=an.seriesIndex,on=an.dataPointIndex,cn=an.w;return rn._getBoxTooltip(cn,sn,on,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:7,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(rn,an){an.ctx;var sn=an.seriesIndex,on=an.dataPointIndex,cn=an.w,un=function(){var pn=cn.globals.seriesRangeStart[sn][on];return cn.globals.seriesRangeEnd[sn][on]-pn};return cn.globals.comboCharts?cn.config.series[sn].type==="rangeBar"||cn.config.series[sn].type==="rangeArea"?un():rn:un()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(rn){return rn.w.config.plotOptions&&rn.w.config.plotOptions.bar&&rn.w.config.plotOptions.bar.horizontal?function(an){var sn=Di(u$2(u$2({},an),{},{isTimeline:!0})),on=sn.color,cn=sn.seriesName,un=sn.ylabel,pn=sn.startVal,fn=sn.endVal;return _i(u$2(u$2({},an),{},{color:on,seriesName:cn,ylabel:un,start:pn,end:fn}))}(rn):function(an){var sn=Di(an),on=sn.color,cn=sn.seriesName,un=sn.ylabel,pn=sn.start,fn=sn.end;return _i(u$2(u$2({},an),{},{color:on,seriesName:cn,ylabel:un,start:pn,end:fn}))}(rn)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(rn){var an,sn;return(an=rn.plotOptions.bar)!==null&&an!==void 0&&an.barHeight||(rn.plotOptions.bar.barHeight=2),(sn=rn.plotOptions.bar)!==null&&sn!==void 0&&sn.columnWidth||(rn.plotOptions.bar.columnWidth=2),rn}},{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(rn){return function(an){var sn=Di(an),on=sn.color,cn=sn.seriesName,un=sn.ylabel,pn=sn.start,fn=sn.end;return _i(u$2(u$2({},an),{},{color:on,seriesName:cn,ylabel:un,start:pn,end:fn}))}(rn)}}}}},{key:"brush",value:function(rn){return v$2.extend(rn,{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(rn){rn.dataLabels=rn.dataLabels||{},rn.dataLabels.formatter=rn.dataLabels.formatter||void 0;var an=rn.dataLabels.formatter;return rn.yaxis.forEach(function(sn,on){rn.yaxis[on].min=0,rn.yaxis[on].max=100}),rn.chart.type==="bar"&&(rn.dataLabels.formatter=an||function(sn){return typeof sn=="number"&&sn?sn.toFixed(0)+"%":sn}),rn}},{key:"stackedBars",value:function(){var rn=this.bar();return u$2(u$2({},rn),{},{plotOptions:u$2(u$2({},rn.plotOptions),{},{bar:u$2(u$2({},rn.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(rn){return rn.xaxis.convertedCatToNumeric=!0,rn}},{key:"convertCatToNumericXaxis",value:function(rn,an,sn){rn.xaxis.type="numeric",rn.xaxis.labels=rn.xaxis.labels||{},rn.xaxis.labels.formatter=rn.xaxis.labels.formatter||function(un){return v$2.isNumber(un)?Math.floor(un):un};var on=rn.xaxis.labels.formatter,cn=rn.xaxis.categories&&rn.xaxis.categories.length?rn.xaxis.categories:rn.labels;return sn&&sn.length&&(cn=sn.map(function(un){return Array.isArray(un)?un:String(un)})),cn&&cn.length&&(rn.xaxis.labels.formatter=function(un){return v$2.isNumber(un)?on(cn[Math.floor(un)-1]):on(un)}),rn.xaxis.categories=[],rn.labels=[],rn.xaxis.tickAmount=rn.xaxis.tickAmount||"dataPoints",rn}},{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"}},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:{opacity:1,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(rn){return rn.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"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(rn){return rn.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"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"polarArea",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(rn){return rn.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{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:5,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},xaxis:{labels:{formatter:function(rn){return rn},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},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"_getBoxTooltip",value:function(rn,an,sn,on,cn){var un=rn.globals.seriesCandleO[an][sn],pn=rn.globals.seriesCandleH[an][sn],fn=rn.globals.seriesCandleM[an][sn],mn=rn.globals.seriesCandleL[an][sn],xn=rn.globals.seriesCandleC[an][sn];return rn.config.series[an].type&&rn.config.series[an].type!==cn?`<div class="apexcharts-custom-tooltip">
          `.concat(rn.config.series[an].name?rn.config.series[an].name:"series-"+(an+1),": <strong>").concat(rn.globals.series[an][sn],`</strong>
        </div>`):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(rn.config.chart.type,'">')+"<div>".concat(on[0],': <span class="value">')+un+"</span></div>"+"<div>".concat(on[1],': <span class="value">')+pn+"</span></div>"+(fn?"<div>".concat(on[2],': <span class="value">')+fn+"</span></div>":"")+"<div>".concat(on[3],': <span class="value">')+mn+"</span></div>"+"<div>".concat(on[4],': <span class="value">')+xn+"</span></div></div>"}}]),ln}(),Wi=function(){function ln(rn){i$2(this,ln),this.opts=rn}return s$1(ln,[{key:"init",value:function(rn){var an=rn.responsiveOverride,sn=this.opts,on=new Oi,cn=new Ni(sn);this.chartType=sn.chart.type,sn=this.extendYAxis(sn),sn=this.extendAnnotations(sn);var un=on.init(),pn={};if(sn&&b$2(sn)==="object"){var fn,mn,xn,vn,yn,wn,An,Cn,kn,Mn,Tn={};Tn=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(sn.chart.type)!==-1?cn[sn.chart.type]():cn.line(),(fn=sn.plotOptions)!==null&&fn!==void 0&&(mn=fn.bar)!==null&&mn!==void 0&&mn.isFunnel&&(Tn=cn.funnel()),sn.chart.stacked&&sn.chart.type==="bar"&&(Tn=cn.stackedBars()),(xn=sn.chart.brush)!==null&&xn!==void 0&&xn.enabled&&(Tn=cn.brush(Tn)),(vn=sn.plotOptions)!==null&&vn!==void 0&&(yn=vn.line)!==null&&yn!==void 0&&yn.isSlopeChart&&(Tn=cn.slope()),sn.chart.stacked&&sn.chart.stackType==="100%"&&(sn=cn.stacked100(sn)),(wn=sn.plotOptions)!==null&&wn!==void 0&&(An=wn.bar)!==null&&An!==void 0&&An.isDumbbell&&(sn=cn.dumbbell(sn)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(sn),sn.xaxis=sn.xaxis||window.Apex.xaxis||{},an||(sn.xaxis.convertedCatToNumeric=!1),((Cn=(sn=this.checkForCatToNumericXAxis(this.chartType,Tn,sn)).chart.sparkline)!==null&&Cn!==void 0&&Cn.enabled||(kn=window.Apex.chart)!==null&&kn!==void 0&&(Mn=kn.sparkline)!==null&&Mn!==void 0&&Mn.enabled)&&(Tn=cn.sparkline(Tn)),pn=v$2.extend(un,Tn)}var On=v$2.extend(pn,window.Apex);return un=v$2.extend(On,sn),un=this.handleUserInputErrors(un)}},{key:"checkForCatToNumericXAxis",value:function(rn,an,sn){var on,cn,un=new Ni(sn),pn=(rn==="bar"||rn==="boxPlot")&&((on=sn.plotOptions)===null||on===void 0||(cn=on.bar)===null||cn===void 0?void 0:cn.horizontal),fn=rn==="pie"||rn==="polarArea"||rn==="donut"||rn==="radar"||rn==="radialBar"||rn==="heatmap",mn=sn.xaxis.type!=="datetime"&&sn.xaxis.type!=="numeric",xn=sn.xaxis.tickPlacement?sn.xaxis.tickPlacement:an.xaxis&&an.xaxis.tickPlacement;return pn||fn||!mn||xn==="between"||(sn=un.convertCatToNumeric(sn)),sn}},{key:"extendYAxis",value:function(rn,an){var sn=new Oi;(rn.yaxis===void 0||!rn.yaxis||Array.isArray(rn.yaxis)&&rn.yaxis.length===0)&&(rn.yaxis={}),rn.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(rn.yaxis=v$2.extend(rn.yaxis,window.Apex.yaxis)),rn.yaxis.constructor!==Array?rn.yaxis=[v$2.extend(sn.yAxis,rn.yaxis)]:rn.yaxis=v$2.extendArray(rn.yaxis,sn.yAxis);var on=!1;rn.yaxis.forEach(function(un){un.logarithmic&&(on=!0)});var cn=rn.series;return an&&!cn&&(cn=an.config.series),on&&cn.length!==rn.yaxis.length&&cn.length&&(rn.yaxis=cn.map(function(un,pn){if(un.name||(cn[pn].name="series-".concat(pn+1)),rn.yaxis[pn])return rn.yaxis[pn].seriesName=cn[pn].name,rn.yaxis[pn];var fn=v$2.extend(sn.yAxis,rn.yaxis[0]);return fn.show=!1,fn})),on&&cn.length>1&&cn.length!==rn.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),rn}},{key:"extendAnnotations",value:function(rn){return rn.annotations===void 0&&(rn.annotations={},rn.annotations.yaxis=[],rn.annotations.xaxis=[],rn.annotations.points=[]),rn=this.extendYAxisAnnotations(rn),rn=this.extendXAxisAnnotations(rn),rn=this.extendPointAnnotations(rn)}},{key:"extendYAxisAnnotations",value:function(rn){var an=new Oi;return rn.annotations.yaxis=v$2.extendArray(rn.annotations.yaxis!==void 0?rn.annotations.yaxis:[],an.yAxisAnnotation),rn}},{key:"extendXAxisAnnotations",value:function(rn){var an=new Oi;return rn.annotations.xaxis=v$2.extendArray(rn.annotations.xaxis!==void 0?rn.annotations.xaxis:[],an.xAxisAnnotation),rn}},{key:"extendPointAnnotations",value:function(rn){var an=new Oi;return rn.annotations.points=v$2.extendArray(rn.annotations.points!==void 0?rn.annotations.points:[],an.pointAnnotation),rn}},{key:"checkForDarkTheme",value:function(rn){rn.theme&&rn.theme.mode==="dark"&&(rn.tooltip||(rn.tooltip={}),rn.tooltip.theme!=="light"&&(rn.tooltip.theme="dark"),rn.chart.foreColor||(rn.chart.foreColor="#f6f7f8"),rn.theme.palette||(rn.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(rn){var an=rn;if(an.tooltip.shared&&an.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(an.chart.type==="bar"&&an.plotOptions.bar.horizontal){if(an.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");an.yaxis[0].reversed&&(an.yaxis[0].opposite=!0),an.xaxis.tooltip.enabled=!1,an.yaxis[0].tooltip.enabled=!1,an.chart.zoom.enabled=!1}return an.chart.type!=="bar"&&an.chart.type!=="rangeBar"||an.tooltip.shared&&an.xaxis.crosshairs.width==="barWidth"&&an.series.length>1&&(an.xaxis.crosshairs.width="tickWidth"),an.chart.type!=="candlestick"&&an.chart.type!=="boxPlot"||an.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(an.chart.type," chart is not supported.")),an.yaxis[0].reversed=!1),an}}]),ln}(),Bi=function(){function ln(){i$2(this,ln)}return s$1(ln,[{key:"initGlobalVars",value:function(rn){rn.series=[],rn.seriesCandleO=[],rn.seriesCandleH=[],rn.seriesCandleM=[],rn.seriesCandleL=[],rn.seriesCandleC=[],rn.seriesRangeStart=[],rn.seriesRangeEnd=[],rn.seriesRange=[],rn.seriesPercent=[],rn.seriesGoals=[],rn.seriesX=[],rn.seriesZ=[],rn.seriesNames=[],rn.seriesTotals=[],rn.seriesLog=[],rn.seriesColors=[],rn.stackedSeriesTotals=[],rn.seriesXvalues=[],rn.seriesYvalues=[],rn.labels=[],rn.hasXaxisGroups=!1,rn.groups=[],rn.barGroups=[],rn.lineGroups=[],rn.areaGroups=[],rn.hasSeriesGroups=!1,rn.seriesGroups=[],rn.categoryLabels=[],rn.timescaleLabels=[],rn.noLabelsProvided=!1,rn.resizeTimer=null,rn.selectionResizeTimer=null,rn.lastWheelExecution=0,rn.delayedElements=[],rn.pointsArray=[],rn.dataLabelsRects=[],rn.isXNumeric=!1,rn.skipLastTimelinelabel=!1,rn.skipFirstTimelinelabel=!1,rn.isDataXYZ=!1,rn.isMultiLineX=!1,rn.isMultipleYAxis=!1,rn.maxY=-Number.MAX_VALUE,rn.minY=Number.MIN_VALUE,rn.minYArr=[],rn.maxYArr=[],rn.maxX=-Number.MAX_VALUE,rn.minX=Number.MAX_VALUE,rn.initialMaxX=-Number.MAX_VALUE,rn.initialMinX=Number.MAX_VALUE,rn.maxDate=0,rn.minDate=Number.MAX_VALUE,rn.minZ=Number.MAX_VALUE,rn.maxZ=-Number.MAX_VALUE,rn.minXDiff=Number.MAX_VALUE,rn.yAxisScale=[],rn.xAxisScale=null,rn.xAxisTicksPositions=[],rn.yLabelsCoords=[],rn.yTitleCoords=[],rn.barPadForNumericAxis=0,rn.padHorizontal=0,rn.xRange=0,rn.yRange=[],rn.zRange=0,rn.dataPoints=0,rn.xTickAmount=0,rn.multiAxisTickAmount=0}},{key:"globalVars",value:function(rn){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:rn.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:[],invalidLogScale:!1,ignoreYAxisIndexes:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:rn.chart.toolbar.autoSelected==="zoom"&&rn.chart.toolbar.tools.zoom&&rn.chart.zoom.enabled,panEnabled:rn.chart.toolbar.autoSelected==="pan"&&rn.chart.toolbar.tools.pan,selectionEnabled:rn.chart.toolbar.autoSelected==="selection"&&rn.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,isSlopeChart:rn.plotOptions.line.isSlopeChart,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,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,niceScaleAllowedMagMsd:[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],niceScaleDefaultTicks:[1,2,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,12,12,12,12,12,12,12,12,12,24],seriesYAxisMap:[],seriesYAxisReverseMap:[]}}},{key:"init",value:function(rn){var an=this.globalVars(rn);return this.initGlobalVars(an),an.initialConfig=v$2.extend({},rn),an.initialSeries=v$2.clone(rn.series),an.lastXAxis=v$2.clone(an.initialConfig.xaxis),an.lastYAxis=v$2.clone(an.initialConfig.yaxis),an}}]),ln}(),Gi=function(){function ln(rn){i$2(this,ln),this.opts=rn}return s$1(ln,[{key:"init",value:function(){var rn=new Wi(this.opts).init({responsiveOverride:!1});return{config:rn,globals:new Bi().init(rn)}}}]),ln}(),ji=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}return s$1(ln,[{key:"clippedImgArea",value:function(rn){var an=this.w,sn=an.config,on=parseInt(an.globals.gridWidth,10),cn=parseInt(an.globals.gridHeight,10),un=on>cn?on:cn,pn=rn.image,fn=0,mn=0;rn.width===void 0&&rn.height===void 0?sn.fill.image.width!==void 0&&sn.fill.image.height!==void 0?(fn=sn.fill.image.width+1,mn=sn.fill.image.height):(fn=un+1,mn=un):(fn=rn.width,mn=rn.height);var xn=document.createElementNS(an.globals.SVGNS,"pattern");Mi.setAttrs(xn,{id:rn.patternID,patternUnits:rn.patternUnits?rn.patternUnits:"userSpaceOnUse",width:fn+"px",height:mn+"px"});var vn=document.createElementNS(an.globals.SVGNS,"image");xn.appendChild(vn),vn.setAttributeNS(window.SVG.xlink,"href",pn),Mi.setAttrs(vn,{x:0,y:0,preserveAspectRatio:"none",width:fn+"px",height:mn+"px"}),vn.style.opacity=rn.opacity,an.globals.dom.elDefs.node.appendChild(xn)}},{key:"getSeriesIndex",value:function(rn){var an=this.w,sn=an.config.chart.type;return(sn==="bar"||sn==="rangeBar")&&an.config.plotOptions.bar.distributed||sn==="heatmap"||sn==="treemap"?this.seriesIndex=rn.seriesNumber:this.seriesIndex=rn.seriesNumber%an.globals.series.length,this.seriesIndex}},{key:"computeColorStops",value:function(rn,an){var sn,on=this.w,cn=null,un=null,pn=r$2(rn);try{for(pn.s();!(sn=pn.n()).done;){var fn=sn.value;fn>=an.threshold?(cn===null||fn>cn)&&(cn=fn):(un===null||fn<un)&&(un=fn)}}catch(vn){pn.e(vn)}finally{pn.f()}cn===null&&(cn=an.threshold),un===null&&(un=an.threshold);var mn=cn-an.threshold+(an.threshold-un);mn===0&&(mn=1);var xn=100-(an.threshold-un)/mn*100;return[{offset:xn=Math.max(0,Math.min(xn,100)),color:an.colorAboveThreshold,opacity:on.config.fill.opacity},{offset:0,color:an.colorBelowThreshold,opacity:on.config.fill.opacity}]}},{key:"fillPath",value:function(rn){var an,sn,on,cn=this.w;this.opts=rn;var un,pn,fn,mn=this.w.config;this.seriesIndex=this.getSeriesIndex(rn);var xn=mn.plotOptions.line.colors.colorAboveThreshold&&mn.plotOptions.line.colors.colorBelowThreshold,vn=this.getFillColors()[this.seriesIndex];cn.globals.seriesColors[this.seriesIndex]!==void 0&&(vn=cn.globals.seriesColors[this.seriesIndex]),typeof vn=="function"&&(vn=vn({seriesIndex:this.seriesIndex,dataPointIndex:rn.dataPointIndex,value:rn.value,w:cn}));var yn,wn,An,Cn=rn.fillType?rn.fillType:this.getFillType(this.seriesIndex),kn=Array.isArray(mn.fill.opacity)?mn.fill.opacity[this.seriesIndex]:mn.fill.opacity,Mn=Cn==="gradient"||xn;rn.color&&(vn=rn.color),(an=cn.config.series[this.seriesIndex])!==null&&an!==void 0&&(sn=an.data)!==null&&sn!==void 0&&(on=sn[rn.dataPointIndex])!==null&&on!==void 0&&on.fillColor&&(vn=(yn=cn.config.series[this.seriesIndex])===null||yn===void 0||(wn=yn.data)===null||wn===void 0||(An=wn[rn.dataPointIndex])===null||An===void 0?void 0:An.fillColor),vn||(vn="#fff",console.warn("undefined color - ApexCharts"));var Tn=vn;if(vn.indexOf("rgb")===-1?vn.indexOf("#")===-1?Tn=vn:vn.length<9&&(Tn=v$2.hexToRgba(vn,kn)):vn.indexOf("rgba")>-1?kn=v$2.getOpacityFromRGBA(vn):Tn=v$2.hexToRgba(v$2.rgb2hex(vn),kn),rn.opacity&&(kn=rn.opacity),Cn==="pattern"&&(pn=this.handlePatternFill({fillConfig:rn.fillConfig,patternFill:pn,fillColor:vn,fillOpacity:kn,defaultColor:Tn})),Mn){var On=f$2(mn.fill.gradient.colorStops)||[],Pn=mn.fill.gradient.type;xn&&(On[this.seriesIndex]=this.computeColorStops(cn.globals.series[this.seriesIndex],mn.plotOptions.line.colors),Pn="vertical"),fn=this.handleGradientFill({type:Pn,fillConfig:rn.fillConfig,fillColor:vn,fillOpacity:kn,colorStops:On,i:this.seriesIndex})}if(Cn==="image"){var Nn=mn.fill.image.src,In=rn.patternID?rn.patternID:"",jn="pattern".concat(cn.globals.cuid).concat(rn.seriesNumber+1).concat(In);this.patternIDs.indexOf(jn)===-1&&(this.clippedImgArea({opacity:kn,image:Array.isArray(Nn)?rn.seriesNumber<Nn.length?Nn[rn.seriesNumber]:Nn[0]:Nn,width:rn.width?rn.width:void 0,height:rn.height?rn.height:void 0,patternUnits:rn.patternUnits,patternID:jn}),this.patternIDs.push(jn)),un="url(#".concat(jn,")")}else un=Mn?fn:Cn==="pattern"?pn:Tn;return rn.solid&&(un=Tn),un}},{key:"getFillType",value:function(rn){var an=this.w;return Array.isArray(an.config.fill.type)?an.config.fill.type[rn]:an.config.fill.type}},{key:"getFillColors",value:function(){var rn=this.w,an=rn.config,sn=this.opts,on=[];return rn.globals.comboCharts?rn.config.series[this.seriesIndex].type==="line"?Array.isArray(rn.globals.stroke.colors)?on=rn.globals.stroke.colors:on.push(rn.globals.stroke.colors):Array.isArray(rn.globals.fill.colors)?on=rn.globals.fill.colors:on.push(rn.globals.fill.colors):an.chart.type==="line"?Array.isArray(rn.globals.stroke.colors)?on=rn.globals.stroke.colors:on.push(rn.globals.stroke.colors):Array.isArray(rn.globals.fill.colors)?on=rn.globals.fill.colors:on.push(rn.globals.fill.colors),sn.fillColors!==void 0&&(on=[],Array.isArray(sn.fillColors)?on=sn.fillColors.slice():on.push(sn.fillColors)),on}},{key:"handlePatternFill",value:function(rn){var an=rn.fillConfig,sn=rn.patternFill,on=rn.fillColor,cn=rn.fillOpacity,un=rn.defaultColor,pn=this.w.config.fill;an&&(pn=an);var fn=this.opts,mn=new Mi(this.ctx),xn=Array.isArray(pn.pattern.strokeWidth)?pn.pattern.strokeWidth[this.seriesIndex]:pn.pattern.strokeWidth,vn=on;return Array.isArray(pn.pattern.style)?sn=pn.pattern.style[fn.seriesNumber]!==void 0?mn.drawPattern(pn.pattern.style[fn.seriesNumber],pn.pattern.width,pn.pattern.height,vn,xn,cn):un:sn=mn.drawPattern(pn.pattern.style,pn.pattern.width,pn.pattern.height,vn,xn,cn),sn}},{key:"handleGradientFill",value:function(rn){var an=rn.type,sn=rn.fillColor,on=rn.fillOpacity,cn=rn.fillConfig,un=rn.colorStops,pn=rn.i,fn=this.w.config.fill;cn&&(fn=u$2(u$2({},fn),cn));var mn=this.opts,xn=new Mi(this.ctx),vn=new v$2;an=an||fn.gradient.type;var yn,wn=sn,An=fn.gradient.opacityFrom===void 0?on:Array.isArray(fn.gradient.opacityFrom)?fn.gradient.opacityFrom[pn]:fn.gradient.opacityFrom;wn.indexOf("rgba")>-1&&(An=v$2.getOpacityFromRGBA(wn));var Cn=fn.gradient.opacityTo===void 0?on:Array.isArray(fn.gradient.opacityTo)?fn.gradient.opacityTo[pn]:fn.gradient.opacityTo;if(fn.gradient.gradientToColors===void 0||fn.gradient.gradientToColors.length===0)yn=fn.gradient.shade==="dark"?vn.shadeColor(-1*parseFloat(fn.gradient.shadeIntensity),sn.indexOf("rgb")>-1?v$2.rgb2hex(sn):sn):vn.shadeColor(parseFloat(fn.gradient.shadeIntensity),sn.indexOf("rgb")>-1?v$2.rgb2hex(sn):sn);else if(fn.gradient.gradientToColors[mn.seriesNumber]){var kn=fn.gradient.gradientToColors[mn.seriesNumber];yn=kn,kn.indexOf("rgba")>-1&&(Cn=v$2.getOpacityFromRGBA(kn))}else yn=sn;if(fn.gradient.gradientFrom&&(wn=fn.gradient.gradientFrom),fn.gradient.gradientTo&&(yn=fn.gradient.gradientTo),fn.gradient.inverseColors){var Mn=wn;wn=yn,yn=Mn}return wn.indexOf("rgb")>-1&&(wn=v$2.rgb2hex(wn)),yn.indexOf("rgb")>-1&&(yn=v$2.rgb2hex(yn)),xn.drawGradient(an,wn,yn,An,Cn,mn.size,fn.gradient.stops,un,pn)}}]),ln}(),Vi=function(){function ln(rn,an){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"setGlobalMarkerSize",value:function(){var rn=this.w;if(rn.globals.markers.size=Array.isArray(rn.config.markers.size)?rn.config.markers.size:[rn.config.markers.size],rn.globals.markers.size.length>0){if(rn.globals.markers.size.length<rn.globals.series.length+1)for(var an=0;an<=rn.globals.series.length;an++)rn.globals.markers.size[an]===void 0&&rn.globals.markers.size.push(rn.globals.markers.size[0])}else rn.globals.markers.size=rn.config.series.map(function(sn){return rn.config.markers.size})}},{key:"plotChartMarkers",value:function(rn){var an=rn.pointsPos,sn=rn.seriesIndex,on=rn.j,cn=rn.pSize,un=rn.alwaysDrawMarker,pn=un!==void 0&&un,fn=rn.isVirtualPoint,mn=fn!==void 0&&fn,xn=this.w,vn=sn,yn=an,wn=null,An=new Mi(this.ctx),Cn=xn.config.markers.discrete&&xn.config.markers.discrete.length;if(Array.isArray(yn.x))for(var kn=0;kn<yn.x.length;kn++){var Mn=void 0,Tn=on,On=!v$2.isNumber(yn.y[kn]);xn.globals.markers.largestSize===0&&xn.globals.hasNullValues&&xn.globals.series[vn][on+1]!==null&&!mn&&(On=!0),on===1&&kn===0&&(Tn=0),on===1&&kn===1&&(Tn=1);var Pn="apexcharts-marker";if(xn.config.chart.type!=="line"&&xn.config.chart.type!=="area"||xn.globals.comboCharts||xn.config.tooltip.intersect||(Pn+=" no-pointer-events"),(Array.isArray(xn.config.markers.size)?xn.globals.markers.size[sn]>0:xn.config.markers.size>0)||pn||Cn){On||(Pn+=" w".concat(v$2.randomId()));var Nn=this.getMarkerConfig({cssClass:Pn,seriesIndex:sn,dataPointIndex:Tn});xn.config.series[vn].data[Tn]&&(xn.config.series[vn].data[Tn].fillColor&&(Nn.pointFillColor=xn.config.series[vn].data[Tn].fillColor),xn.config.series[vn].data[Tn].strokeColor&&(Nn.pointStrokeColor=xn.config.series[vn].data[Tn].strokeColor)),cn!==void 0&&(Nn.pSize=cn),(yn.x[kn]<-xn.globals.markers.largestSize||yn.x[kn]>xn.globals.gridWidth+xn.globals.markers.largestSize||yn.y[kn]<-xn.globals.markers.largestSize||yn.y[kn]>xn.globals.gridHeight+xn.globals.markers.largestSize)&&(Nn.pSize=0),!On&&((xn.globals.markers.size[sn]>0||pn||Cn)&&!wn&&(wn=An.group({class:pn||Cn?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(xn.globals.cuid,")")),(Mn=An.drawMarker(yn.x[kn],yn.y[kn],Nn)).attr("rel",Tn),Mn.attr("j",Tn),Mn.attr("index",sn),Mn.node.setAttribute("default-marker-size",Nn.pSize),new Li(this.ctx).setSelectionFilter(Mn,sn,Tn),this.addEvents(Mn),wn&&wn.add(Mn))}else xn.globals.pointsArray[sn]===void 0&&(xn.globals.pointsArray[sn]=[]),xn.globals.pointsArray[sn].push([yn.x[kn],yn.y[kn]])}return wn}},{key:"getMarkerConfig",value:function(rn){var an=rn.cssClass,sn=rn.seriesIndex,on=rn.dataPointIndex,cn=on===void 0?null:on,un=rn.radius,pn=un===void 0?null:un,fn=rn.size,mn=fn===void 0?null:fn,xn=rn.strokeWidth,vn=xn===void 0?null:xn,yn=this.w,wn=this.getMarkerStyle(sn),An=mn===null?yn.globals.markers.size[sn]:mn,Cn=yn.config.markers;return cn!==null&&Cn.discrete.length&&Cn.discrete.map(function(kn){kn.seriesIndex===sn&&kn.dataPointIndex===cn&&(wn.pointStrokeColor=kn.strokeColor,wn.pointFillColor=kn.fillColor,An=kn.size,wn.pointShape=kn.shape)}),{pSize:pn===null?An:pn,pRadius:pn!==null?pn:Cn.radius,pointStrokeWidth:vn!==null?vn:Array.isArray(Cn.strokeWidth)?Cn.strokeWidth[sn]:Cn.strokeWidth,pointStrokeColor:wn.pointStrokeColor,pointFillColor:wn.pointFillColor,shape:wn.pointShape||(Array.isArray(Cn.shape)?Cn.shape[sn]:Cn.shape),class:an,pointStrokeOpacity:Array.isArray(Cn.strokeOpacity)?Cn.strokeOpacity[sn]:Cn.strokeOpacity,pointStrokeDashArray:Array.isArray(Cn.strokeDashArray)?Cn.strokeDashArray[sn]:Cn.strokeDashArray,pointFillOpacity:Array.isArray(Cn.fillOpacity)?Cn.fillOpacity[sn]:Cn.fillOpacity,seriesIndex:sn}}},{key:"addEvents",value:function(rn){var an=this.w,sn=new Mi(this.ctx);rn.node.addEventListener("mouseenter",sn.pathMouseEnter.bind(this.ctx,rn)),rn.node.addEventListener("mouseleave",sn.pathMouseLeave.bind(this.ctx,rn)),rn.node.addEventListener("mousedown",sn.pathMouseDown.bind(this.ctx,rn)),rn.node.addEventListener("click",an.config.markers.onClick),rn.node.addEventListener("dblclick",an.config.markers.onDblClick),rn.node.addEventListener("touchstart",sn.pathMouseDown.bind(this.ctx,rn),{passive:!0})}},{key:"getMarkerStyle",value:function(rn){var an=this.w,sn=an.globals.markers.colors,on=an.config.markers.strokeColor||an.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(on)?on[rn]:on,pointFillColor:Array.isArray(sn)?sn[rn]:sn}}}]),ln}(),Ui=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w,this.initialAnim=this.w.config.chart.animations.enabled}return s$1(ln,[{key:"draw",value:function(rn,an,sn){var on=this.w,cn=new Mi(this.ctx),un=sn.realIndex,pn=sn.pointsPos,fn=sn.zRatio,mn=sn.elParent,xn=cn.group({class:"apexcharts-series-markers apexcharts-series-".concat(on.config.chart.type)});if(xn.attr("clip-path","url(#gridRectMarkerMask".concat(on.globals.cuid,")")),Array.isArray(pn.x))for(var vn=0;vn<pn.x.length;vn++){var yn=an+1,wn=!0;an===0&&vn===0&&(yn=0),an===0&&vn===1&&(yn=1);var An=on.globals.markers.size[un];if(fn!==1/0){var Cn=on.config.plotOptions.bubble;An=on.globals.seriesZ[un][yn],Cn.zScaling&&(An/=fn),Cn.minBubbleRadius&&An<Cn.minBubbleRadius&&(An=Cn.minBubbleRadius),Cn.maxBubbleRadius&&An>Cn.maxBubbleRadius&&(An=Cn.maxBubbleRadius)}var kn=pn.x[vn],Mn=pn.y[vn];if(An=An||0,Mn!==null&&on.globals.series[un][yn]!==void 0||(wn=!1),wn){var Tn=this.drawPoint(kn,Mn,An,un,yn,an);xn.add(Tn)}mn.add(xn)}}},{key:"drawPoint",value:function(rn,an,sn,on,cn,un){var pn=this.w,fn=on,mn=new y$1(this.ctx),xn=new Li(this.ctx),vn=new ji(this.ctx),yn=new Vi(this.ctx),wn=new Mi(this.ctx),An=yn.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:fn,dataPointIndex:cn,radius:pn.config.chart.type==="bubble"||pn.globals.comboCharts&&pn.config.series[on]&&pn.config.series[on].type==="bubble"?sn:null}),Cn=vn.fillPath({seriesNumber:on,dataPointIndex:cn,color:An.pointFillColor,patternUnits:"objectBoundingBox",value:pn.globals.series[on][un]}),kn=wn.drawMarker(rn,an,An);if(pn.config.series[fn].data[cn]&&pn.config.series[fn].data[cn].fillColor&&(Cn=pn.config.series[fn].data[cn].fillColor),kn.attr({fill:Cn}),pn.config.chart.dropShadow.enabled){var Mn=pn.config.chart.dropShadow;xn.dropShadow(kn,Mn,on)}if(!this.initialAnim||pn.globals.dataChanged||pn.globals.resized)pn.globals.animationEnded=!0;else{var Tn=pn.config.chart.animations.speed;mn.animateMarker(kn,Tn,pn.globals.easing,function(){window.setTimeout(function(){mn.animationCompleted(kn)},100)})}return kn.attr({rel:cn,j:cn,index:on,"default-marker-size":An.pSize}),xn.setSelectionFilter(kn,on,cn),yn.addEvents(kn),kn.node.classList.add("apexcharts-marker"),kn}},{key:"centerTextInBubble",value:function(rn){var an=this.w;return{y:rn+=parseInt(an.config.dataLabels.style.fontSize,10)/4}}}]),ln}(),qi=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"dataLabelsCorrection",value:function(rn,an,sn,on,cn,un,pn){var fn=this.w,mn=!1,xn=new Mi(this.ctx).getTextRects(sn,pn),vn=xn.width,yn=xn.height;an<0&&(an=0),an>fn.globals.gridHeight+yn&&(an=fn.globals.gridHeight+yn/2),fn.globals.dataLabelsRects[on]===void 0&&(fn.globals.dataLabelsRects[on]=[]),fn.globals.dataLabelsRects[on].push({x:rn,y:an,width:vn,height:yn});var wn=fn.globals.dataLabelsRects[on].length-2,An=fn.globals.lastDrawnDataLabelsIndexes[on]!==void 0?fn.globals.lastDrawnDataLabelsIndexes[on][fn.globals.lastDrawnDataLabelsIndexes[on].length-1]:0;if(fn.globals.dataLabelsRects[on][wn]!==void 0){var Cn=fn.globals.dataLabelsRects[on][An];(rn>Cn.x+Cn.width||an>Cn.y+Cn.height||an+yn<Cn.y||rn+vn<Cn.x)&&(mn=!0)}return(cn===0||un)&&(mn=!0),{x:rn,y:an,textRects:xn,drawnextLabel:mn}}},{key:"drawDataLabel",value:function(rn){var an=this,sn=rn.type,on=rn.pos,cn=rn.i,un=rn.j,pn=rn.isRangeStart,fn=rn.strokeWidth,mn=fn===void 0?2:fn,xn=this.w,vn=new Mi(this.ctx),yn=xn.config.dataLabels,wn=0,An=0,Cn=un,kn=null;if(xn.globals.collapsedSeriesIndices.indexOf(cn)!==-1||!yn.enabled||!Array.isArray(on.x))return kn;kn=vn.group({class:"apexcharts-data-labels"});for(var Mn=0;Mn<on.x.length;Mn++)if(wn=on.x[Mn]+yn.offsetX,An=on.y[Mn]+yn.offsetY+mn,!isNaN(wn)){un===1&&Mn===0&&(Cn=0),un===1&&Mn===1&&(Cn=1);var Tn=xn.globals.series[cn][Cn];sn==="rangeArea"&&(Tn=pn?xn.globals.seriesRangeStart[cn][Cn]:xn.globals.seriesRangeEnd[cn][Cn]);var On="",Pn=function(In){return xn.config.dataLabels.formatter(In,{ctx:an.ctx,seriesIndex:cn,dataPointIndex:Cn,w:xn})};xn.config.chart.type==="bubble"?(On=Pn(Tn=xn.globals.seriesZ[cn][Cn]),An=on.y[Mn],An=new Ui(this.ctx).centerTextInBubble(An,cn,Cn).y):Tn!==void 0&&(On=Pn(Tn));var Nn=xn.config.dataLabels.textAnchor;xn.globals.isSlopeChart&&(Nn=Cn===0?"end":Cn===xn.config.series[cn].data.length-1?"start":"middle"),this.plotDataLabelsText({x:wn,y:An,text:On,i:cn,j:Cn,parent:kn,offsetCorrection:!0,dataLabelsConfig:xn.config.dataLabels,textAnchor:Nn})}return kn}},{key:"plotDataLabelsText",value:function(rn){var an=this.w,sn=new Mi(this.ctx),on=rn.x,cn=rn.y,un=rn.i,pn=rn.j,fn=rn.text,mn=rn.textAnchor,xn=rn.fontSize,vn=rn.parent,yn=rn.dataLabelsConfig,wn=rn.color,An=rn.alwaysDrawDataLabel,Cn=rn.offsetCorrection,kn=rn.className,Mn=null;if(Array.isArray(an.config.dataLabels.enabledOnSeries)&&an.config.dataLabels.enabledOnSeries.indexOf(un)<0)return Mn;var Tn={x:on,y:cn,drawnextLabel:!0,textRects:null};Cn&&(Tn=this.dataLabelsCorrection(on,cn,fn,un,pn,An,parseInt(yn.style.fontSize,10))),an.globals.zoomed||(on=Tn.x,cn=Tn.y),Tn.textRects&&(on<-20-Tn.textRects.width||on>an.globals.gridWidth+Tn.textRects.width+30)&&(fn="");var On=an.globals.dataLabels.style.colors[un];((an.config.chart.type==="bar"||an.config.chart.type==="rangeBar")&&an.config.plotOptions.bar.distributed||an.config.dataLabels.distributed)&&(On=an.globals.dataLabels.style.colors[pn]),typeof On=="function"&&(On=On({series:an.globals.series,seriesIndex:un,dataPointIndex:pn,w:an})),wn&&(On=wn);var Pn=yn.offsetX,Nn=yn.offsetY;if(an.config.chart.type!=="bar"&&an.config.chart.type!=="rangeBar"||(Pn=0,Nn=0),an.globals.isSlopeChart&&(pn!==0&&(Pn=-2*yn.offsetX+5),pn!==0&&pn!==an.config.series[un].data.length-1&&(Pn=0)),Tn.drawnextLabel){if((Mn=sn.drawText({width:100,height:parseInt(yn.style.fontSize,10),x:on+Pn,y:cn+Nn,foreColor:On,textAnchor:mn||yn.textAnchor,text:fn,fontSize:xn||yn.style.fontSize,fontFamily:yn.style.fontFamily,fontWeight:yn.style.fontWeight||"normal"})).attr({class:kn||"apexcharts-datalabel",cx:on,cy:cn}),yn.dropShadow.enabled){var In=yn.dropShadow;new Li(this.ctx).dropShadow(Mn,In)}vn.add(Mn),an.globals.lastDrawnDataLabelsIndexes[un]===void 0&&(an.globals.lastDrawnDataLabelsIndexes[un]=[]),an.globals.lastDrawnDataLabelsIndexes[un].push(pn)}return Mn}},{key:"addBackgroundToDataLabel",value:function(rn,an){var sn=this.w,on=sn.config.dataLabels.background,cn=on.padding,un=on.padding/2,pn=an.width,fn=an.height,mn=new Mi(this.ctx).drawRect(an.x-cn,an.y-un/2,pn+2*cn,fn+un,on.borderRadius,sn.config.chart.background!=="transparent"&&sn.config.chart.background?sn.config.chart.background:"#fff",on.opacity,on.borderWidth,on.borderColor);return on.dropShadow.enabled&&new Li(this.ctx).dropShadow(mn,on.dropShadow),mn}},{key:"dataLabelsBackground",value:function(){var rn=this.w;if(rn.config.chart.type!=="bubble")for(var an=rn.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),sn=0;sn<an.length;sn++){var on=an[sn],cn=on.getBBox(),un=null;if(cn.width&&cn.height&&(un=this.addBackgroundToDataLabel(on,cn)),un){on.parentNode.insertBefore(un.node,on);var pn=on.getAttribute("fill");rn.config.chart.animations.enabled&&!rn.globals.resized&&!rn.globals.dataChanged?un.animate().attr({fill:pn}):un.attr({fill:pn}),on.setAttribute("fill",rn.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var rn=this.w,an=rn.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),sn=rn.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),on=0;on<an.length;on++)sn&&sn.insertBefore(an[on],sn.nextSibling)}}]),ln}(),Zi=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w,this.legendInactiveClass="legend-mouseover-inactive"}return s$1(ln,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(rn){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(v$2.escapeString(rn),"']"))}},{key:"isSeriesHidden",value:function(rn){var an=this.getSeriesByName(rn),sn=parseInt(an.getAttribute("data:realIndex"),10);return{isHidden:an.classList.contains("apexcharts-series-collapsed"),realIndex:sn}}},{key:"addCollapsedClassToSeries",value:function(rn,an){var sn=this.w;function on(cn){for(var un=0;un<cn.length;un++)cn[un].index===an&&rn.node.classList.add("apexcharts-series-collapsed")}on(sn.globals.collapsedSeries),on(sn.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(rn){var an=this.isSeriesHidden(rn);return this.ctx.legend.legendHelpers.toggleDataSeries(an.realIndex,an.isHidden),an.isHidden}},{key:"showSeries",value:function(rn){var an=this.isSeriesHidden(rn);an.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(an.realIndex,!0)}},{key:"hideSeries",value:function(rn){var an=this.isSeriesHidden(rn);an.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(an.realIndex,!1)}},{key:"resetSeries",value:function(){var rn=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],an=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],sn=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],on=this.w,cn=v$2.clone(on.globals.initialSeries);on.globals.previousPaths=[],sn?(on.globals.collapsedSeries=[],on.globals.ancillaryCollapsedSeries=[],on.globals.collapsedSeriesIndices=[],on.globals.ancillaryCollapsedSeriesIndices=[]):cn=this.emptyCollapsedSeries(cn),on.config.series=cn,rn&&(an&&(on.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(cn,on.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(rn){for(var an=this.w,sn=0;sn<rn.length;sn++)an.globals.collapsedSeriesIndices.indexOf(sn)>-1&&(rn[sn].data=[]);return rn}},{key:"highlightSeries",value:function(rn){var an=this.w,sn=this.getSeriesByName(rn),on=parseInt(sn==null?void 0:sn.getAttribute("data:realIndex"),10),cn=an.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"),un=null,pn=null,fn=null;if(an.globals.axisCharts||an.config.chart.type==="radialBar")if(an.globals.axisCharts){un=an.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(on,"']")),pn=an.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(on,"']"));var mn=an.globals.seriesYAxisReverseMap[on];fn=an.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(mn,"']"))}else un=an.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(on+1,"']"));else un=an.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(on+1,"'] path"));for(var xn=0;xn<cn.length;xn++)cn[xn].classList.add(this.legendInactiveClass);if(un)an.globals.axisCharts||un.parentNode.classList.remove(this.legendInactiveClass),un.classList.remove(this.legendInactiveClass),pn!==null&&pn.classList.remove(this.legendInactiveClass),fn!==null&&fn.classList.remove(this.legendInactiveClass);else for(var vn=0;vn<cn.length;vn++)cn[vn].classList.remove(this.legendInactiveClass)}},{key:"toggleSeriesOnHover",value:function(rn,an){var sn=this.w;an||(an=rn.target);var on=sn.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");if(rn.type==="mousemove"){var cn=parseInt(an.getAttribute("rel"),10)-1;this.highlightSeries(sn.globals.seriesNames[cn])}else if(rn.type==="mouseout")for(var un=0;un<on.length;un++)on[un].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(rn,an){var sn=this,on=this.w,cn=on.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),un=function(mn){for(var xn=0;xn<cn.length;xn++)cn[xn].classList[mn](sn.legendInactiveClass)};if(rn.type==="mousemove"){var pn=parseInt(an.getAttribute("rel"),10)-1;un("add");var fn=on.config.plotOptions.heatmap.colorScale.ranges;(function(mn,xn){for(var vn=0;vn<cn.length;vn++){var yn=Number(cn[vn].getAttribute("val"));yn>=mn.from&&(yn<mn.to||mn.to===xn&&yn===xn)&&cn[vn].classList.remove(sn.legendInactiveClass)}})(fn[pn],fn.reduce(function(mn,xn){return Math.max(mn,xn.to)},0))}else rn.type==="mouseout"&&un("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"asc",an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],sn=this.w,on=0;if(sn.config.series.length>1){for(var cn=sn.config.series.map(function(pn,fn){return pn.data&&pn.data.length>0&&sn.globals.collapsedSeriesIndices.indexOf(fn)===-1&&(!sn.globals.comboCharts||an.length===0||an.length&&an.indexOf(sn.config.series[fn].type)>-1)?fn:-1}),un=rn==="asc"?0:cn.length-1;rn==="asc"?un<cn.length:un>=0;rn==="asc"?un++:un--)if(cn[un]!==-1){on=cn[un];break}}return on}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(rn,an){return rn.type==="bar"||rn.type==="column"?an:-1}).filter(function(rn){return rn!==-1}):this.w.config.series.map(function(rn,an){return an})}},{key:"getPreviousPaths",value:function(){var rn=this.w;function an(un,pn,fn){for(var mn=un[pn].childNodes,xn={type:fn,paths:[],realIndex:un[pn].getAttribute("data:realIndex")},vn=0;vn<mn.length;vn++)if(mn[vn].hasAttribute("pathTo")){var yn=mn[vn].getAttribute("pathTo");xn.paths.push({d:yn})}rn.globals.previousPaths.push(xn)}rn.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(un){for(var pn,fn=(pn=un,rn.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(pn,"-series .apexcharts-series"))),mn=0;mn<fn.length;mn++)an(fn,mn,un)});var sn=rn.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(rn.config.chart.type," .apexcharts-series"));if(sn.length>0)for(var on=function(un){for(var pn=rn.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(rn.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(un,"'] rect")),fn=[],mn=function(vn){var yn=function(An){return pn[vn].getAttribute(An)},wn={x:parseFloat(yn("x")),y:parseFloat(yn("y")),width:parseFloat(yn("width")),height:parseFloat(yn("height"))};fn.push({rect:wn,color:pn[vn].getAttribute("color")})},xn=0;xn<pn.length;xn++)mn(xn);rn.globals.previousPaths.push(fn)},cn=0;cn<sn.length;cn++)on(cn);rn.globals.axisCharts||(rn.globals.previousPaths=rn.globals.series)}},{key:"clearPreviousPaths",value:function(){var rn=this.w;rn.globals.previousPaths=[],rn.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var rn=this.w,an=rn.config.noData,sn=new Mi(this.ctx),on=rn.globals.svgWidth/2,cn=rn.globals.svgHeight/2,un="middle";if(rn.globals.noData=!0,rn.globals.animationEnded=!0,an.align==="left"?(on=10,un="start"):an.align==="right"&&(on=rn.globals.svgWidth-10,un="end"),an.verticalAlign==="top"?cn=50:an.verticalAlign==="bottom"&&(cn=rn.globals.svgHeight-50),on+=an.offsetX,cn=cn+parseInt(an.style.fontSize,10)+2+an.offsetY,an.text!==void 0&&an.text!==""){var pn=sn.drawText({x:on,y:cn,text:an.text,textAnchor:un,fontSize:an.style.fontSize,fontFamily:an.style.fontFamily,foreColor:an.style.color,opacity:1,class:"apexcharts-text-nodata"});rn.globals.dom.Paper.add(pn)}}},{key:"setNullSeriesToZeroValues",value:function(rn){for(var an=this.w,sn=0;sn<rn.length;sn++)if(rn[sn].length===0)for(var on=0;on<rn[an.globals.maxValsInArrayIndex].length;on++)rn[sn].push(0);return rn}},{key:"hasAllSeriesEqualX",value:function(){for(var rn=!0,an=this.w,sn=this.filteredSeriesX(),on=0;on<sn.length-1;on++)if(sn[on][0]!==sn[on+1][0]){rn=!1;break}return an.globals.allSeriesHasEqualX=rn,rn}},{key:"filteredSeriesX",value:function(){var rn=this.w.globals.seriesX.map(function(an){return an.length>0?an:[]});return rn}}]),ln}(),$i=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new Pi(this.ctx)}return s$1(ln,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var rn=this.w.config.series.slice(),an=new Zi(this.ctx);if(this.activeSeriesIndex=an.getActiveConfigSeriesIndex(),rn[this.activeSeriesIndex].data!==void 0&&rn[this.activeSeriesIndex].data.length>0&&rn[this.activeSeriesIndex].data[0]!==null&&rn[this.activeSeriesIndex].data[0].x!==void 0&&rn[this.activeSeriesIndex].data[0]!==null)return!0}},{key:"isFormat2DArray",value:function(){var rn=this.w.config.series.slice(),an=new Zi(this.ctx);if(this.activeSeriesIndex=an.getActiveConfigSeriesIndex(),rn[this.activeSeriesIndex].data!==void 0&&rn[this.activeSeriesIndex].data.length>0&&rn[this.activeSeriesIndex].data[0]!==void 0&&rn[this.activeSeriesIndex].data[0]!==null&&rn[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(rn,an){for(var sn=this.w.config,on=this.w.globals,cn=sn.chart.type==="boxPlot"||sn.series[an].type==="boxPlot",un=0;un<rn[an].data.length;un++)if(rn[an].data[un][1]!==void 0&&(Array.isArray(rn[an].data[un][1])&&rn[an].data[un][1].length===4&&!cn?this.twoDSeries.push(v$2.parseNumber(rn[an].data[un][1][3])):rn[an].data[un].length>=5?this.twoDSeries.push(v$2.parseNumber(rn[an].data[un][4])):this.twoDSeries.push(v$2.parseNumber(rn[an].data[un][1])),on.dataFormatXNumeric=!0),sn.xaxis.type==="datetime"){var pn=new Date(rn[an].data[un][0]);pn=new Date(pn).getTime(),this.twoDSeriesX.push(pn)}else this.twoDSeriesX.push(rn[an].data[un][0]);for(var fn=0;fn<rn[an].data.length;fn++)rn[an].data[fn][2]!==void 0&&(this.threeDSeries.push(rn[an].data[fn][2]),on.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(rn,an){var sn=this.w.config,on=this.w.globals,cn=new zi(this.ctx),un=an;on.collapsedSeriesIndices.indexOf(an)>-1&&(un=this.activeSeriesIndex);for(var pn=0;pn<rn[an].data.length;pn++)rn[an].data[pn].y!==void 0&&(Array.isArray(rn[an].data[pn].y)?this.twoDSeries.push(v$2.parseNumber(rn[an].data[pn].y[rn[an].data[pn].y.length-1])):this.twoDSeries.push(v$2.parseNumber(rn[an].data[pn].y))),rn[an].data[pn].goals!==void 0&&Array.isArray(rn[an].data[pn].goals)?(this.seriesGoals[an]===void 0&&(this.seriesGoals[an]=[]),this.seriesGoals[an].push(rn[an].data[pn].goals)):(this.seriesGoals[an]===void 0&&(this.seriesGoals[an]=[]),this.seriesGoals[an].push(null));for(var fn=0;fn<rn[un].data.length;fn++){var mn=typeof rn[un].data[fn].x=="string",xn=Array.isArray(rn[un].data[fn].x),vn=!xn&&!!cn.isValidDate(rn[un].data[fn].x);if(mn||vn)if(mn||sn.xaxis.convertedCatToNumeric){var yn=on.isBarHorizontal&&on.isRangeData;sn.xaxis.type!=="datetime"||yn?(this.fallbackToCategory=!0,this.twoDSeriesX.push(rn[un].data[fn].x),isNaN(rn[un].data[fn].x)||this.w.config.xaxis.type==="category"||typeof rn[un].data[fn].x=="string"||(on.isXNumeric=!0)):this.twoDSeriesX.push(cn.parseDate(rn[un].data[fn].x))}else sn.xaxis.type==="datetime"?this.twoDSeriesX.push(cn.parseDate(rn[un].data[fn].x.toString())):(on.dataFormatXNumeric=!0,on.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(rn[un].data[fn].x)));else xn?(this.fallbackToCategory=!0,this.twoDSeriesX.push(rn[un].data[fn].x)):(on.isXNumeric=!0,on.dataFormatXNumeric=!0,this.twoDSeriesX.push(rn[un].data[fn].x))}if(rn[an].data[0]&&rn[an].data[0].z!==void 0){for(var wn=0;wn<rn[an].data.length;wn++)this.threeDSeries.push(rn[an].data[wn].z);on.isDataXYZ=!0}}},{key:"handleRangeData",value:function(rn,an){var sn=this.w.globals,on={};return this.isFormat2DArray()?on=this.handleRangeDataFormat("array",rn,an):this.isFormatXY()&&(on=this.handleRangeDataFormat("xy",rn,an)),sn.seriesRangeStart.push(on.start===void 0?[]:on.start),sn.seriesRangeEnd.push(on.end===void 0?[]:on.end),sn.seriesRange.push(on.rangeUniques),sn.seriesRange.forEach(function(cn,un){cn&&cn.forEach(function(pn,fn){pn.y.forEach(function(mn,xn){for(var vn=0;vn<pn.y.length;vn++)if(xn!==vn){var yn=mn.y1,wn=mn.y2,An=pn.y[vn].y1;yn<=pn.y[vn].y2&&An<=wn&&(pn.overlaps.indexOf(mn.rangeName)<0&&pn.overlaps.push(mn.rangeName),pn.overlaps.indexOf(pn.y[vn].rangeName)<0&&pn.overlaps.push(pn.y[vn].rangeName))}})})}),on}},{key:"handleCandleStickBoxData",value:function(rn,an){var sn=this.w.globals,on={};return this.isFormat2DArray()?on=this.handleCandleStickBoxDataFormat("array",rn,an):this.isFormatXY()&&(on=this.handleCandleStickBoxDataFormat("xy",rn,an)),sn.seriesCandleO[an]=on.o,sn.seriesCandleH[an]=on.h,sn.seriesCandleM[an]=on.m,sn.seriesCandleL[an]=on.l,sn.seriesCandleC[an]=on.c,on}},{key:"handleRangeDataFormat",value:function(rn,an,sn){var on=[],cn=[],un=an[sn].data.filter(function(xn,vn,yn){return vn===yn.findIndex(function(wn){return wn.x===xn.x})}).map(function(xn,vn){return{x:xn.x,overlaps:[],y:[]}});if(rn==="array")for(var pn=0;pn<an[sn].data.length;pn++)Array.isArray(an[sn].data[pn])?(on.push(an[sn].data[pn][1][0]),cn.push(an[sn].data[pn][1][1])):(on.push(an[sn].data[pn]),cn.push(an[sn].data[pn]));else if(rn==="xy")for(var fn=function(xn){var vn=Array.isArray(an[sn].data[xn].y),yn=v$2.randomId(),wn=an[sn].data[xn].x,An={y1:vn?an[sn].data[xn].y[0]:an[sn].data[xn].y,y2:vn?an[sn].data[xn].y[1]:an[sn].data[xn].y,rangeName:yn};an[sn].data[xn].rangeName=yn;var Cn=un.findIndex(function(kn){return kn.x===wn});un[Cn].y.push(An),on.push(An.y1),cn.push(An.y2)},mn=0;mn<an[sn].data.length;mn++)fn(mn);return{start:on,end:cn,rangeUniques:un}}},{key:"handleCandleStickBoxDataFormat",value:function(rn,an,sn){var on=this.w,cn=on.config.chart.type==="boxPlot"||on.config.series[sn].type==="boxPlot",un=[],pn=[],fn=[],mn=[],xn=[];if(rn==="array")if(cn&&an[sn].data[0].length===6||!cn&&an[sn].data[0].length===5)for(var vn=0;vn<an[sn].data.length;vn++)un.push(an[sn].data[vn][1]),pn.push(an[sn].data[vn][2]),cn?(fn.push(an[sn].data[vn][3]),mn.push(an[sn].data[vn][4]),xn.push(an[sn].data[vn][5])):(mn.push(an[sn].data[vn][3]),xn.push(an[sn].data[vn][4]));else for(var yn=0;yn<an[sn].data.length;yn++)Array.isArray(an[sn].data[yn][1])&&(un.push(an[sn].data[yn][1][0]),pn.push(an[sn].data[yn][1][1]),cn?(fn.push(an[sn].data[yn][1][2]),mn.push(an[sn].data[yn][1][3]),xn.push(an[sn].data[yn][1][4])):(mn.push(an[sn].data[yn][1][2]),xn.push(an[sn].data[yn][1][3])));else if(rn==="xy")for(var wn=0;wn<an[sn].data.length;wn++)Array.isArray(an[sn].data[wn].y)&&(un.push(an[sn].data[wn].y[0]),pn.push(an[sn].data[wn].y[1]),cn?(fn.push(an[sn].data[wn].y[2]),mn.push(an[sn].data[wn].y[3]),xn.push(an[sn].data[wn].y[4])):(mn.push(an[sn].data[wn].y[2]),xn.push(an[sn].data[wn].y[3])));return{o:un,h:pn,m:fn,l:mn,c:xn}}},{key:"parseDataAxisCharts",value:function(rn){var an=this,sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.ctx,on=this.w.config,cn=this.w.globals,un=new zi(sn),pn=on.labels.length>0?on.labels.slice():on.xaxis.categories.slice();cn.isRangeBar=on.chart.type==="rangeBar"&&cn.isBarHorizontal,cn.hasXaxisGroups=on.xaxis.type==="category"&&on.xaxis.group.groups.length>0,cn.hasXaxisGroups&&(cn.groups=on.xaxis.group.groups),rn.forEach(function(wn,An){wn.name!==void 0?cn.seriesNames.push(wn.name):cn.seriesNames.push("series-"+parseInt(An+1,10))}),this.coreUtils.setSeriesYAxisMappings();var fn=[],mn=f$2(new Set(on.series.map(function(wn){return wn.group})));on.series.forEach(function(wn,An){var Cn=mn.indexOf(wn.group);fn[Cn]||(fn[Cn]=[]),fn[Cn].push(cn.seriesNames[An])}),cn.seriesGroups=fn;for(var xn=function(){for(var wn=0;wn<pn.length;wn++)if(typeof pn[wn]=="string"){if(!un.isValidDate(pn[wn]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");an.twoDSeriesX.push(un.parseDate(pn[wn]))}else an.twoDSeriesX.push(pn[wn])},vn=0;vn<rn.length;vn++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],rn[vn].data===void 0)return void console.error("It is a possibility that you may have not included 'data' property in series.");if(on.chart.type!=="rangeBar"&&on.chart.type!=="rangeArea"&&rn[vn].type!=="rangeBar"&&rn[vn].type!=="rangeArea"||(cn.isRangeData=!0,on.chart.type!=="rangeBar"&&on.chart.type!=="rangeArea"||this.handleRangeData(rn,vn)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(rn,vn):this.isFormatXY()&&this.handleFormatXY(rn,vn),on.chart.type!=="candlestick"&&rn[vn].type!=="candlestick"&&on.chart.type!=="boxPlot"&&rn[vn].type!=="boxPlot"||this.handleCandleStickBoxData(rn,vn),cn.series.push(this.twoDSeries),cn.labels.push(this.twoDSeriesX),cn.seriesX.push(this.twoDSeriesX),cn.seriesGoals=this.seriesGoals,vn!==this.activeSeriesIndex||this.fallbackToCategory||(cn.isXNumeric=!0);else{on.xaxis.type==="datetime"?(cn.isXNumeric=!0,xn(),cn.seriesX.push(this.twoDSeriesX)):on.xaxis.type==="numeric"&&(cn.isXNumeric=!0,pn.length>0&&(this.twoDSeriesX=pn,cn.seriesX.push(this.twoDSeriesX))),cn.labels.push(this.twoDSeriesX);var yn=rn[vn].data.map(function(wn){return v$2.parseNumber(wn)});cn.series.push(yn)}cn.seriesZ.push(this.threeDSeries),rn[vn].color!==void 0?cn.seriesColors.push(rn[vn].color):cn.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(rn){var an=this.w.globals,sn=this.w.config;an.series=rn.slice(),an.seriesNames=sn.labels.slice();for(var on=0;on<an.series.length;on++)an.seriesNames[on]===void 0&&an.seriesNames.push("series-"+(on+1));return this.w}},{key:"handleExternalLabelsData",value:function(rn){var an=this.w.config,sn=this.w.globals;an.xaxis.categories.length>0?sn.labels=an.xaxis.categories:an.labels.length>0?sn.labels=an.labels.slice():this.fallbackToCategory?(sn.labels=sn.labels[0],sn.seriesRange.length&&(sn.seriesRange.map(function(on){on.forEach(function(cn){sn.labels.indexOf(cn.x)<0&&cn.x&&sn.labels.push(cn.x)})}),sn.labels=Array.from(new Set(sn.labels.map(JSON.stringify)),JSON.parse)),an.xaxis.convertedCatToNumeric&&(new Ni(an).convertCatToNumericXaxis(an,this.ctx,sn.seriesX[0]),this._generateExternalLabels(rn))):this._generateExternalLabels(rn)}},{key:"_generateExternalLabels",value:function(rn){var an=this.w.globals,sn=this.w.config,on=[];if(an.axisCharts){if(an.series.length>0)if(this.isFormatXY())for(var cn=sn.series.map(function(vn,yn){return vn.data.filter(function(wn,An,Cn){return Cn.findIndex(function(kn){return kn.x===wn.x})===An})}),un=cn.reduce(function(vn,yn,wn,An){return An[vn].length>yn.length?vn:wn},0),pn=0;pn<cn[un].length;pn++)on.push(pn+1);else for(var fn=0;fn<an.series[an.maxValsInArrayIndex].length;fn++)on.push(fn+1);an.seriesX=[];for(var mn=0;mn<rn.length;mn++)an.seriesX.push(on);this.w.globals.isBarHorizontal||(an.isXNumeric=!0)}if(on.length===0){on=an.axisCharts?[]:an.series.map(function(vn,yn){return yn+1});for(var xn=0;xn<rn.length;xn++)an.seriesX.push(on)}an.labels=on,sn.xaxis.convertedCatToNumeric&&(an.categoryLabels=on.map(function(vn){return sn.xaxis.labels.formatter(vn)})),an.noLabelsProvided=!0}},{key:"parseData",value:function(rn){var an=this.w,sn=an.config,on=an.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),on.axisCharts?(this.parseDataAxisCharts(rn),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(rn),sn.chart.stacked){var cn=new Zi(this.ctx);on.series=cn.setNullSeriesToZeroValues(on.series)}this.coreUtils.getSeriesTotals(),on.axisCharts&&(on.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),on.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),on.dataFormatXNumeric||on.isXNumeric&&(sn.xaxis.type!=="numeric"||sn.labels.length!==0||sn.xaxis.categories.length!==0)||this.handleExternalLabelsData(rn);for(var un=this.coreUtils.getCategoryLabels(on.labels),pn=0;pn<un.length;pn++)if(Array.isArray(un[pn])){on.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var rn=this.w,an=[];rn.globals.seriesYAxisMap.forEach(function(sn,on){var cn=0;sn.forEach(function(un){rn.globals.collapsedSeriesIndices.indexOf(un)!==-1&&cn++}),cn>0&&cn==sn.length&&an.push(on)}),rn.globals.ignoreYAxisIndexes=an.map(function(sn){return sn})}}]),ln}(),Ji=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"scaleSvgNode",value:function(rn,an){var sn=parseFloat(rn.getAttributeNS(null,"width")),on=parseFloat(rn.getAttributeNS(null,"height"));rn.setAttributeNS(null,"width",sn*an),rn.setAttributeNS(null,"height",on*an),rn.setAttributeNS(null,"viewBox","0 0 "+sn+" "+on)}},{key:"getSvgString",value:function(rn){var an=this;return new Promise(function(sn){var on=an.w,cn=rn||on.config.chart.toolbar.export.scale||on.config.chart.toolbar.export.width/on.globals.svgWidth;cn||(cn=1);var un=an.w.globals.dom.Paper.svg(),pn=an.w.globals.dom.Paper.node.cloneNode(!0);cn!==1&&an.scaleSvgNode(pn,cn),an.convertImagesToBase64(pn).then(function(){un=new XMLSerializer().serializeToString(pn),sn(un.replace(/&nbsp;/g,"&#160;"))})})}},{key:"convertImagesToBase64",value:function(rn){var an=this,sn=rn.getElementsByTagName("image"),on=Array.from(sn).map(function(cn){var un=cn.getAttributeNS("http://www.w3.org/1999/xlink","href");return un&&!un.startsWith("data:")?an.getBase64FromUrl(un).then(function(pn){cn.setAttributeNS("http://www.w3.org/1999/xlink","href",pn)}).catch(function(pn){console.error("Error converting image to base64:",pn)}):Promise.resolve()});return Promise.all(on)}},{key:"getBase64FromUrl",value:function(rn){return new Promise(function(an,sn){var on=new Image;on.crossOrigin="Anonymous",on.onload=function(){var cn=document.createElement("canvas");cn.width=on.width,cn.height=on.height,cn.getContext("2d").drawImage(on,0,0),an(cn.toDataURL())},on.onerror=sn,on.src=rn})}},{key:"cleanup",value:function(){var rn=this.w,an=rn.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),sn=rn.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),on=rn.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(on,function(cn){cn.setAttribute("width",0)}),an&&an[0]&&(an[0].setAttribute("x",-500),an[0].setAttribute("x1",-500),an[0].setAttribute("x2",-500)),sn&&sn[0]&&(sn[0].setAttribute("y",-100),sn[0].setAttribute("y1",-100),sn[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){var rn=this;return new Promise(function(an){rn.cleanup(),rn.getSvgString().then(function(sn){var on=new Blob([sn],{type:"image/svg+xml;charset=utf-8"});an(URL.createObjectURL(on))})})}},{key:"dataURI",value:function(rn){var an=this;return new Promise(function(sn){var on=an.w,cn=rn?rn.scale||rn.width/on.globals.svgWidth:1;an.cleanup();var un=document.createElement("canvas");un.width=on.globals.svgWidth*cn,un.height=parseInt(on.globals.dom.elWrap.style.height,10)*cn;var pn=on.config.chart.background!=="transparent"&&on.config.chart.background?on.config.chart.background:"#fff",fn=un.getContext("2d");fn.fillStyle=pn,fn.fillRect(0,0,un.width*cn,un.height*cn),an.getSvgString(cn).then(function(mn){var xn="data:image/svg+xml,"+encodeURIComponent(mn),vn=new Image;vn.crossOrigin="anonymous",vn.onload=function(){if(fn.drawImage(vn,0,0),un.msToBlob){var yn=un.msToBlob();sn({blob:yn})}else{var wn=un.toDataURL("image/png");sn({imgURI:wn})}},vn.src=xn})})}},{key:"exportToSVG",value:function(){var rn=this;this.svgUrl().then(function(an){rn.triggerDownload(an,rn.w.config.chart.toolbar.export.svg.filename,".svg")})}},{key:"exportToPng",value:function(){var rn=this,an=this.w.config.chart.toolbar.export.scale,sn=this.w.config.chart.toolbar.export.width,on=an?{scale:an}:sn?{width:sn}:void 0;this.dataURI(on).then(function(cn){var un=cn.imgURI,pn=cn.blob;pn?navigator.msSaveOrOpenBlob(pn,rn.w.globals.chartID+".png"):rn.triggerDownload(un,rn.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(rn){var an=this,sn=rn.series,on=rn.fileName,cn=rn.columnDelimiter,un=cn===void 0?",":cn,pn=rn.lineDelimiter,fn=pn===void 0?`
`:pn,mn=this.w;sn||(sn=mn.config.series);var xn=[],vn=[],yn="",wn=mn.globals.series.map(function(Nn,In){return mn.globals.collapsedSeriesIndices.indexOf(In)===-1?Nn:[]}),An=function(Nn){return typeof mn.config.chart.toolbar.export.csv.categoryFormatter=="function"?mn.config.chart.toolbar.export.csv.categoryFormatter(Nn):mn.config.xaxis.type==="datetime"&&String(Nn).length>=10?new Date(Nn).toDateString():v$2.isNumber(Nn)?Nn:Nn.split(un).join("")},Cn=function(Nn){return typeof mn.config.chart.toolbar.export.csv.valueFormatter=="function"?mn.config.chart.toolbar.export.csv.valueFormatter(Nn):Nn},kn=Math.max.apply(Math,f$2(sn.map(function(Nn){return Nn.data?Nn.data.length:0}))),Mn=new $i(this.ctx),Tn=new Ri(this.ctx),On=function(Nn){var In="";if(mn.globals.axisCharts){if(mn.config.xaxis.type==="category"||mn.config.xaxis.convertedCatToNumeric)if(mn.globals.isBarHorizontal){var jn=mn.globals.yLabelFormatters[0],Fn=new Zi(an.ctx).getActiveConfigSeriesIndex();In=jn(mn.globals.labels[Nn],{seriesIndex:Fn,dataPointIndex:Nn,w:mn})}else In=Tn.getLabel(mn.globals.labels,mn.globals.timescaleLabels,0,Nn).text;mn.config.xaxis.type==="datetime"&&(mn.config.xaxis.categories.length?In=mn.config.xaxis.categories[Nn]:mn.config.labels.length&&(In=mn.config.labels[Nn]))}else In=mn.config.labels[Nn];return In===null?"nullvalue":(Array.isArray(In)&&(In=In.join(" ")),v$2.isNumber(In)?In:In.split(un).join(""))},Pn=function(Nn,In){if(xn.length&&In===0&&vn.push(xn.join(un)),Nn.data){Nn.data=Nn.data.length&&Nn.data||f$2(Array(kn)).map(function(){return""});for(var jn=0;jn<Nn.data.length;jn++){xn=[];var Fn=On(jn);if(Fn!=="nullvalue"){if(Fn||(Mn.isFormatXY()?Fn=sn[In].data[jn].x:Mn.isFormat2DArray()&&(Fn=sn[In].data[jn]?sn[In].data[jn][0]:"")),In===0){xn.push(An(Fn));for(var Un=0;Un<mn.globals.series.length;Un++){var Yn,Qn=Mn.isFormatXY()?(Yn=sn[Un].data[jn])===null||Yn===void 0?void 0:Yn.y:wn[Un][jn];xn.push(Cn(Qn))}}(mn.config.chart.type==="candlestick"||Nn.type&&Nn.type==="candlestick")&&(xn.pop(),xn.push(mn.globals.seriesCandleO[In][jn]),xn.push(mn.globals.seriesCandleH[In][jn]),xn.push(mn.globals.seriesCandleL[In][jn]),xn.push(mn.globals.seriesCandleC[In][jn])),(mn.config.chart.type==="boxPlot"||Nn.type&&Nn.type==="boxPlot")&&(xn.pop(),xn.push(mn.globals.seriesCandleO[In][jn]),xn.push(mn.globals.seriesCandleH[In][jn]),xn.push(mn.globals.seriesCandleM[In][jn]),xn.push(mn.globals.seriesCandleL[In][jn]),xn.push(mn.globals.seriesCandleC[In][jn])),mn.config.chart.type==="rangeBar"&&(xn.pop(),xn.push(mn.globals.seriesRangeStart[In][jn]),xn.push(mn.globals.seriesRangeEnd[In][jn])),xn.length&&vn.push(xn.join(un))}}}};xn.push(mn.config.chart.toolbar.export.csv.headerCategory),mn.config.chart.type==="boxPlot"?(xn.push("minimum"),xn.push("q1"),xn.push("median"),xn.push("q3"),xn.push("maximum")):mn.config.chart.type==="candlestick"?(xn.push("open"),xn.push("high"),xn.push("low"),xn.push("close")):mn.config.chart.type==="rangeBar"?(xn.push("minimum"),xn.push("maximum")):sn.map(function(Nn,In){var jn=(Nn.name?Nn.name:"series-".concat(In))+"";mn.globals.axisCharts&&xn.push(jn.split(un).join("")?jn.split(un).join(""):"series-".concat(In))}),mn.globals.axisCharts||(xn.push(mn.config.chart.toolbar.export.csv.headerValue),vn.push(xn.join(un))),mn.globals.allSeriesHasEqualX||!mn.globals.axisCharts||mn.config.xaxis.categories.length||mn.config.labels.length?sn.map(function(Nn,In){mn.globals.axisCharts?Pn(Nn,In):((xn=[]).push(An(mn.globals.labels[In])),xn.push(Cn(wn[In])),vn.push(xn.join(un)))}):function(){var Nn=new Set,In={};sn.forEach(function(jn,Fn){jn==null||jn.data.forEach(function(Un){var Yn,Qn;if(Mn.isFormatXY())Yn=Un.x,Qn=Un.y;else{if(!Mn.isFormat2DArray())return;Yn=Un[0],Qn=Un[1]}In[Yn]||(In[Yn]=Array(sn.length).fill("")),In[Yn][Fn]=Cn(Qn),Nn.add(Yn)})}),xn.length&&vn.push(xn.join(un)),Array.from(Nn).sort().forEach(function(jn){vn.push([An(jn),In[jn].join(un)])})}(),yn+=vn.join(fn),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+yn),on||mn.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(rn,an,sn){var on=document.createElement("a");on.href=rn,on.download=(an||this.w.globals.chartID)+sn,document.body.appendChild(on),on.click(),document.body.removeChild(on)}}]),ln}(),Qi=function(){function ln(rn,an){i$2(this,ln),this.ctx=rn,this.elgrid=an,this.w=rn.w;var sn=this.w;this.axesUtils=new Ri(rn),this.xaxisLabels=sn.globals.labels.slice(),sn.globals.timescaleLabels.length>0&&!sn.globals.isBarHorizontal&&(this.xaxisLabels=sn.globals.timescaleLabels.slice()),sn.config.xaxis.overwriteCategories&&(this.xaxisLabels=sn.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],sn.config.xaxis.position==="top"?this.offY=0:this.offY=sn.globals.gridHeight,this.offY=this.offY+sn.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=sn.config.chart.type==="bar"&&sn.config.plotOptions.bar.horizontal,this.xaxisFontSize=sn.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=sn.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=sn.config.xaxis.labels.style.colors,this.xaxisBorderWidth=sn.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=sn.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=sn.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=sn.config.xaxis.axisBorder.height,this.yaxis=sn.config.yaxis[0]}return s$1(ln,[{key:"drawXaxis",value:function(){var rn=this.w,an=new Mi(this.ctx),sn=an.group({class:"apexcharts-xaxis",transform:"translate(".concat(rn.config.xaxis.offsetX,", ").concat(rn.config.xaxis.offsetY,")")}),on=an.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(rn.globals.translateXAxisX,", ").concat(rn.globals.translateXAxisY,")")});sn.add(on);for(var cn=[],un=0;un<this.xaxisLabels.length;un++)cn.push(this.xaxisLabels[un]);if(this.drawXAxisLabelAndGroup(!0,an,on,cn,rn.globals.isXNumeric,function(An,Cn){return Cn}),rn.globals.hasXaxisGroups){var pn=rn.globals.groups;cn=[];for(var fn=0;fn<pn.length;fn++)cn.push(pn[fn].title);var mn={};rn.config.xaxis.group.style&&(mn.xaxisFontSize=rn.config.xaxis.group.style.fontSize,mn.xaxisFontFamily=rn.config.xaxis.group.style.fontFamily,mn.xaxisForeColors=rn.config.xaxis.group.style.colors,mn.fontWeight=rn.config.xaxis.group.style.fontWeight,mn.cssClass=rn.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,an,on,cn,!1,function(An,Cn){return pn[An].cols*Cn},mn)}if(rn.config.xaxis.title.text!==void 0){var xn=an.group({class:"apexcharts-xaxis-title"}),vn=an.drawText({x:rn.globals.gridWidth/2+rn.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+(rn.config.xaxis.position==="bottom"?rn.globals.xAxisLabelsHeight:-rn.globals.xAxisLabelsHeight-10)+rn.config.xaxis.title.offsetY,text:rn.config.xaxis.title.text,textAnchor:"middle",fontSize:rn.config.xaxis.title.style.fontSize,fontFamily:rn.config.xaxis.title.style.fontFamily,fontWeight:rn.config.xaxis.title.style.fontWeight,foreColor:rn.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+rn.config.xaxis.title.style.cssClass});xn.add(vn),sn.add(xn)}if(rn.config.xaxis.axisBorder.show){var yn=rn.globals.barPadForNumericAxis,wn=an.drawLine(rn.globals.padHorizontal+rn.config.xaxis.axisBorder.offsetX-yn,this.offY,this.xaxisBorderWidth+yn,this.offY,rn.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&rn.config.grid.show?this.elgrid.elGridBorders.add(wn):sn.add(wn)}return sn}},{key:"drawXAxisLabelAndGroup",value:function(rn,an,sn,on,cn,un){var pn,fn=this,mn=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},xn=[],vn=[],yn=this.w,wn=mn.xaxisFontSize||this.xaxisFontSize,An=mn.xaxisFontFamily||this.xaxisFontFamily,Cn=mn.xaxisForeColors||this.xaxisForeColors,kn=mn.fontWeight||yn.config.xaxis.labels.style.fontWeight,Mn=mn.cssClass||yn.config.xaxis.labels.style.cssClass,Tn=yn.globals.padHorizontal,On=on.length,Pn=yn.config.xaxis.type==="category"?yn.globals.dataPoints:On;if(Pn===0&&On>Pn&&(Pn=On),cn){var Nn=Math.max(Number(yn.config.xaxis.tickAmount)||1,Pn>1?Pn-1:Pn);pn=yn.globals.gridWidth/Math.min(Nn,On-1),Tn=Tn+un(0,pn)/2+yn.config.xaxis.labels.offsetX}else pn=yn.globals.gridWidth/Pn,Tn=Tn+un(0,pn)+yn.config.xaxis.labels.offsetX;for(var In=function(Fn){var Un=Tn-un(Fn,pn)/2+yn.config.xaxis.labels.offsetX;Fn===0&&On===1&&pn/2===Tn&&Pn===1&&(Un=yn.globals.gridWidth/2);var Yn=fn.axesUtils.getLabel(on,yn.globals.timescaleLabels,Un,Fn,xn,wn,rn),Qn=28;if(yn.globals.rotateXLabels&&rn&&(Qn=22),yn.config.xaxis.title.text&&yn.config.xaxis.position==="top"&&(Qn+=parseFloat(yn.config.xaxis.title.style.fontSize)+2),rn||(Qn=Qn+parseFloat(wn)+(yn.globals.xAxisLabelsHeight-yn.globals.xAxisGroupLabelsHeight)+(yn.globals.rotateXLabels?10:0)),Yn=yn.config.xaxis.tickAmount!==void 0&&yn.config.xaxis.tickAmount!=="dataPoints"&&yn.config.xaxis.type!=="datetime"?fn.axesUtils.checkLabelBasedOnTickamount(Fn,Yn,On):fn.axesUtils.checkForOverflowingLabels(Fn,Yn,On,xn,vn),yn.config.xaxis.labels.show){var ir=an.drawText({x:Yn.x,y:fn.offY+yn.config.xaxis.labels.offsetY+Qn-(yn.config.xaxis.position==="top"?yn.globals.xAxisHeight+yn.config.xaxis.axisTicks.height-2:0),text:Yn.text,textAnchor:"middle",fontWeight:Yn.isBold?600:kn,fontSize:wn,fontFamily:An,foreColor:Array.isArray(Cn)?rn&&yn.config.xaxis.convertedCatToNumeric?Cn[yn.globals.minX+Fn-1]:Cn[Fn]:Cn,isPlainText:!1,cssClass:(rn?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+Mn});if(sn.add(ir),ir.on("click",function(tr){if(typeof yn.config.chart.events.xAxisLabelClick=="function"){var vr=Object.assign({},yn,{labelIndex:Fn});yn.config.chart.events.xAxisLabelClick(tr,fn.ctx,vr)}}),rn){var er=document.createElementNS(yn.globals.SVGNS,"title");er.textContent=Array.isArray(Yn.text)?Yn.text.join(" "):Yn.text,ir.node.appendChild(er),Yn.text!==""&&(xn.push(Yn.text),vn.push(Yn))}}Fn<On-1&&(Tn+=un(Fn+1,pn))},jn=0;jn<=On-1;jn++)In(jn)}},{key:"drawXaxisInversed",value:function(rn){var an,sn,on=this,cn=this.w,un=new Mi(this.ctx),pn=cn.config.yaxis[0].opposite?cn.globals.translateYAxisX[rn]:0,fn=un.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:rn}),mn=un.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+pn+", 0)"});fn.add(mn);var xn=[];if(cn.config.yaxis[rn].show)for(var vn=0;vn<this.xaxisLabels.length;vn++)xn.push(this.xaxisLabels[vn]);an=cn.globals.gridHeight/xn.length,sn=-an/2.2;var yn=cn.globals.yLabelFormatters[0],wn=cn.config.yaxis[0].labels;if(wn.show)for(var An=function(Nn){var In=xn[Nn]===void 0?"":xn[Nn];In=yn(In,{seriesIndex:rn,dataPointIndex:Nn,w:cn});var jn=on.axesUtils.getYAxisForeColor(wn.style.colors,rn),Fn=0;Array.isArray(In)&&(Fn=In.length/2*parseInt(wn.style.fontSize,10));var Un=wn.offsetX-15,Yn="end";on.yaxis.opposite&&(Yn="start"),cn.config.yaxis[0].labels.align==="left"?(Un=wn.offsetX,Yn="start"):cn.config.yaxis[0].labels.align==="center"?(Un=wn.offsetX,Yn="middle"):cn.config.yaxis[0].labels.align==="right"&&(Yn="end");var Qn=un.drawText({x:Un,y:sn+an+wn.offsetY-Fn,text:In,textAnchor:Yn,foreColor:Array.isArray(jn)?jn[Nn]:jn,fontSize:wn.style.fontSize,fontFamily:wn.style.fontFamily,fontWeight:wn.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+wn.style.cssClass,maxWidth:wn.maxWidth});mn.add(Qn),Qn.on("click",function(tr){if(typeof cn.config.chart.events.xAxisLabelClick=="function"){var vr=Object.assign({},cn,{labelIndex:Nn});cn.config.chart.events.xAxisLabelClick(tr,on.ctx,vr)}});var ir=document.createElementNS(cn.globals.SVGNS,"title");if(ir.textContent=Array.isArray(In)?In.join(" "):In,Qn.node.appendChild(ir),cn.config.yaxis[rn].labels.rotate!==0){var er=un.rotateAroundCenter(Qn.node);Qn.node.setAttribute("transform","rotate(".concat(cn.config.yaxis[rn].labels.rotate," 0 ").concat(er.y,")"))}sn+=an},Cn=0;Cn<=xn.length-1;Cn++)An(Cn);if(cn.config.yaxis[0].title.text!==void 0){var kn=un.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+pn+", 0)"}),Mn=un.drawText({x:cn.config.yaxis[0].title.offsetX,y:cn.globals.gridHeight/2+cn.config.yaxis[0].title.offsetY,text:cn.config.yaxis[0].title.text,textAnchor:"middle",foreColor:cn.config.yaxis[0].title.style.color,fontSize:cn.config.yaxis[0].title.style.fontSize,fontWeight:cn.config.yaxis[0].title.style.fontWeight,fontFamily:cn.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+cn.config.yaxis[0].title.style.cssClass});kn.add(Mn),fn.add(kn)}var Tn=0;this.isCategoryBarHorizontal&&cn.config.yaxis[0].opposite&&(Tn=cn.globals.gridWidth);var On=cn.config.xaxis.axisBorder;if(On.show){var Pn=un.drawLine(cn.globals.padHorizontal+On.offsetX+Tn,1+On.offsetY,cn.globals.padHorizontal+On.offsetX+Tn,cn.globals.gridHeight+On.offsetY,On.color,0);this.elgrid&&this.elgrid.elGridBorders&&cn.config.grid.show?this.elgrid.elGridBorders.add(Pn):fn.add(Pn)}return cn.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(Tn,xn.length,cn.config.yaxis[0].axisBorder,cn.config.yaxis[0].axisTicks,0,an,fn),fn}},{key:"drawXaxisTicks",value:function(rn,an,sn){var on=this.w,cn=rn;if(!(rn<0||rn-2>on.globals.gridWidth)){var un=this.offY+on.config.xaxis.axisTicks.offsetY;if(an=an+un+on.config.xaxis.axisTicks.height,on.config.xaxis.position==="top"&&(an=un-on.config.xaxis.axisTicks.height),on.config.xaxis.axisTicks.show){var pn=new Mi(this.ctx).drawLine(rn+on.config.xaxis.axisTicks.offsetX,un+on.config.xaxis.offsetY,cn+on.config.xaxis.axisTicks.offsetX,an+on.config.xaxis.offsetY,on.config.xaxis.axisTicks.color);sn.add(pn),pn.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var rn=this.w,an=[],sn=this.xaxisLabels.length,on=rn.globals.padHorizontal;if(rn.globals.timescaleLabels.length>0)for(var cn=0;cn<sn;cn++)on=this.xaxisLabels[cn].position,an.push(on);else for(var un=sn,pn=0;pn<un;pn++){var fn=un;rn.globals.isXNumeric&&rn.config.chart.type!=="bar"&&(fn-=1),on+=rn.globals.gridWidth/fn,an.push(on)}return an}},{key:"xAxisLabelCorrections",value:function(){var rn=this.w,an=new Mi(this.ctx),sn=rn.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),on=rn.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),cn=rn.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),un=rn.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(rn.globals.rotateXLabels||rn.config.xaxis.labels.rotateAlways)for(var pn=0;pn<on.length;pn++){var fn=an.rotateAroundCenter(on[pn]);fn.y=fn.y-1,fn.x=fn.x+1,on[pn].setAttribute("transform","rotate(".concat(rn.config.xaxis.labels.rotate," ").concat(fn.x," ").concat(fn.y,")")),on[pn].setAttribute("text-anchor","end"),sn.setAttribute("transform","translate(0, ".concat(-10,")"));var mn=on[pn].childNodes;rn.config.xaxis.labels.trim&&Array.prototype.forEach.call(mn,function(wn){an.placeTextWithEllipsis(wn,wn.textContent,rn.globals.xAxisLabelsHeight-(rn.config.legend.position==="bottom"?20:10))})}else(function(){for(var wn=rn.globals.gridWidth/(rn.globals.labels.length+1),An=0;An<on.length;An++){var Cn=on[An].childNodes;rn.config.xaxis.labels.trim&&rn.config.xaxis.type!=="datetime"&&Array.prototype.forEach.call(Cn,function(kn){an.placeTextWithEllipsis(kn,kn.textContent,wn)})}})();if(cn.length>0){var xn=cn[cn.length-1].getBBox(),vn=cn[0].getBBox();xn.x<-20&&cn[cn.length-1].parentNode.removeChild(cn[cn.length-1]),vn.x+vn.width>rn.globals.gridWidth&&!rn.globals.isBarHorizontal&&cn[0].parentNode.removeChild(cn[0]);for(var yn=0;yn<un.length;yn++)an.placeTextWithEllipsis(un[yn],un[yn].textContent,rn.config.yaxis[0].labels.maxWidth-(rn.config.yaxis[0].title.text?2*parseFloat(rn.config.yaxis[0].title.style.fontSize):0)-15)}}}]),ln}(),Ki=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w;var an=this.w;this.xaxisLabels=an.globals.labels.slice(),this.axesUtils=new Ri(rn),this.isRangeBar=an.globals.seriesRange.length&&an.globals.isBarHorizontal,an.globals.timescaleLabels.length>0&&(this.xaxisLabels=an.globals.timescaleLabels.slice())}return s$1(ln,[{key:"drawGridArea",value:function(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,an=this.w,sn=new Mi(this.ctx);rn||(rn=sn.group({class:"apexcharts-grid"}));var on=sn.drawLine(an.globals.padHorizontal,1,an.globals.padHorizontal,an.globals.gridHeight,"transparent"),cn=sn.drawLine(an.globals.padHorizontal,an.globals.gridHeight,an.globals.gridWidth,an.globals.gridHeight,"transparent");return rn.add(cn),rn.add(on),rn}},{key:"drawGrid",value:function(){if(this.w.globals.axisCharts){var rn=this.renderGrid();return this.drawGridArea(rn.el),rn}return null}},{key:"createGridMask",value:function(){var rn=this.w,an=rn.globals,sn=new Mi(this.ctx),on=Array.isArray(rn.config.stroke.width)?Math.max.apply(Math,f$2(rn.config.stroke.width)):rn.config.stroke.width,cn=function(xn){var vn=document.createElementNS(an.SVGNS,"clipPath");return vn.setAttribute("id",xn),vn};an.dom.elGridRectMask=cn("gridRectMask".concat(an.cuid)),an.dom.elGridRectBarMask=cn("gridRectBarMask".concat(an.cuid)),an.dom.elGridRectMarkerMask=cn("gridRectMarkerMask".concat(an.cuid)),an.dom.elForecastMask=cn("forecastMask".concat(an.cuid)),an.dom.elNonForecastMask=cn("nonForecastMask".concat(an.cuid));var un=0,pn=0;(["bar","rangeBar","candlestick","boxPlot"].includes(rn.config.chart.type)||rn.globals.comboBarCount>0)&&rn.globals.isXNumeric&&!rn.globals.isBarHorizontal&&(un=Math.max(rn.config.grid.padding.left,an.barPadForNumericAxis),pn=Math.max(rn.config.grid.padding.right,an.barPadForNumericAxis)),an.dom.elGridRect=sn.drawRect(-on/2-2,-on/2-2,an.gridWidth+on+4,an.gridHeight+on+4,0,"#fff"),an.dom.elGridRectBar=sn.drawRect(-on/2-un-2,-on/2-2,an.gridWidth+on+pn+un+4,an.gridHeight+on+4,0,"#fff");var fn=rn.globals.markers.largestSize;an.dom.elGridRectMarker=sn.drawRect(-fn,-fn,an.gridWidth+2*fn,an.gridHeight+2*fn,0,"#fff"),an.dom.elGridRectMask.appendChild(an.dom.elGridRect.node),an.dom.elGridRectBarMask.appendChild(an.dom.elGridRectBar.node),an.dom.elGridRectMarkerMask.appendChild(an.dom.elGridRectMarker.node);var mn=an.dom.baseEl.querySelector("defs");mn.appendChild(an.dom.elGridRectMask),mn.appendChild(an.dom.elGridRectBarMask),mn.appendChild(an.dom.elGridRectMarkerMask),mn.appendChild(an.dom.elForecastMask),mn.appendChild(an.dom.elNonForecastMask)}},{key:"_drawGridLines",value:function(rn){var an=rn.i,sn=rn.x1,on=rn.y1,cn=rn.x2,un=rn.y2,pn=rn.xCount,fn=rn.parent,mn=this.w;if(!(an===0&&mn.globals.skipFirstTimelinelabel||an===pn-1&&mn.globals.skipLastTimelinelabel&&!mn.config.xaxis.labels.formatter||mn.config.chart.type==="radar")){mn.config.grid.xaxis.lines.show&&this._drawGridLine({i:an,x1:sn,y1:on,x2:cn,y2:un,xCount:pn,parent:fn});var xn=0;if(mn.globals.hasXaxisGroups&&mn.config.xaxis.tickPlacement==="between"){var vn=mn.globals.groups;if(vn){for(var yn=0,wn=0;yn<an&&wn<vn.length;wn++)yn+=vn[wn].cols;yn===an&&(xn=.6*mn.globals.xAxisLabelsHeight)}}new Qi(this.ctx).drawXaxisTicks(sn,xn,mn.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(rn){var an=rn.i,sn=rn.x1,on=rn.y1,cn=rn.x2,un=rn.y2,pn=rn.xCount,fn=rn.parent,mn=this.w,xn=fn.node.classList.contains("apexcharts-gridlines-horizontal"),vn=mn.globals.barPadForNumericAxis,yn=on===0&&un===0||sn===0&&cn===0||on===mn.globals.gridHeight&&un===mn.globals.gridHeight||mn.globals.isBarHorizontal&&(an===0||an===pn-1),wn=new Mi(this).drawLine(sn-(xn?vn:0),on,cn+(xn?vn:0),un,mn.config.grid.borderColor,mn.config.grid.strokeDashArray);wn.node.classList.add("apexcharts-gridline"),yn&&mn.config.grid.show?this.elGridBorders.add(wn):fn.add(wn)}},{key:"_drawGridBandRect",value:function(rn){var an=rn.c,sn=rn.x1,on=rn.y1,cn=rn.x2,un=rn.y2,pn=rn.type,fn=this.w,mn=new Mi(this.ctx),xn=fn.globals.barPadForNumericAxis,vn=fn.config.grid[pn].colors[an],yn=mn.drawRect(sn-(pn==="row"?xn:0),on,cn+(pn==="row"?2*xn:0),un,0,vn,fn.config.grid[pn].opacity);this.elg.add(yn),yn.attr("clip-path","url(#gridRectMask".concat(fn.globals.cuid,")")),yn.node.classList.add("apexcharts-grid-".concat(pn))}},{key:"_drawXYLines",value:function(rn){var an=this,sn=rn.xCount,on=rn.tickAmount,cn=this.w;if(cn.config.grid.xaxis.lines.show||cn.config.xaxis.axisTicks.show){var un,pn=cn.globals.padHorizontal,fn=cn.globals.gridHeight;cn.globals.timescaleLabels.length?function(An){for(var Cn=An.xC,kn=An.x1,Mn=An.y1,Tn=An.x2,On=An.y2,Pn=0;Pn<Cn;Pn++)kn=an.xaxisLabels[Pn].position,Tn=an.xaxisLabels[Pn].position,an._drawGridLines({i:Pn,x1:kn,y1:Mn,x2:Tn,y2:On,xCount:sn,parent:an.elgridLinesV})}({xC:sn,x1:pn,y1:0,x2:un,y2:fn}):(cn.globals.isXNumeric&&(sn=cn.globals.xAxisScale.result.length),function(An){for(var Cn=An.xC,kn=An.x1,Mn=An.y1,Tn=An.x2,On=An.y2,Pn=0;Pn<Cn+(cn.globals.isXNumeric?0:1);Pn++)Pn===0&&Cn===1&&cn.globals.dataPoints===1&&(Tn=kn=cn.globals.gridWidth/2),an._drawGridLines({i:Pn,x1:kn,y1:Mn,x2:Tn,y2:On,xCount:sn,parent:an.elgridLinesV}),Tn=kn+=cn.globals.gridWidth/(cn.globals.isXNumeric?Cn-1:Cn)}({xC:sn,x1:pn,y1:0,x2:un,y2:fn}))}if(cn.config.grid.yaxis.lines.show){var mn=0,xn=0,vn=cn.globals.gridWidth,yn=on+1;this.isRangeBar&&(yn=cn.globals.labels.length);for(var wn=0;wn<yn+(this.isRangeBar?1:0);wn++)this._drawGridLine({i:wn,xCount:yn+(this.isRangeBar?1:0),x1:0,y1:mn,x2:vn,y2:xn,parent:this.elgridLinesH}),xn=mn+=cn.globals.gridHeight/(this.isRangeBar?yn:on)}}},{key:"_drawInvertedXYLines",value:function(rn){var an=rn.xCount,sn=this.w;if(sn.config.grid.xaxis.lines.show||sn.config.xaxis.axisTicks.show)for(var on,cn=sn.globals.padHorizontal,un=sn.globals.gridHeight,pn=0;pn<an+1;pn++)sn.config.grid.xaxis.lines.show&&this._drawGridLine({i:pn,xCount:an+1,x1:cn,y1:0,x2:on,y2:un,parent:this.elgridLinesV}),new Qi(this.ctx).drawXaxisTicks(cn,0,sn.globals.dom.elGraphical),on=cn+=sn.globals.gridWidth/an;if(sn.config.grid.yaxis.lines.show)for(var fn=0,mn=0,xn=sn.globals.gridWidth,vn=0;vn<sn.globals.dataPoints+1;vn++)this._drawGridLine({i:vn,xCount:sn.globals.dataPoints+1,x1:0,y1:fn,x2:xn,y2:mn,parent:this.elgridLinesH}),mn=fn+=sn.globals.gridHeight/sn.globals.dataPoints}},{key:"renderGrid",value:function(){var rn=this.w,an=rn.globals,sn=new Mi(this.ctx);this.elg=sn.group({class:"apexcharts-grid"}),this.elgridLinesH=sn.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=sn.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=sn.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),rn.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var on=0;on<an.seriesYAxisMap.length&&an.ignoreYAxisIndexes.includes(on);)on++;on===an.seriesYAxisMap.length&&(on=0);var cn,un=an.yAxisScale[on].result.length-1;if(!an.isBarHorizontal||this.isRangeBar){var pn,fn,mn;cn=this.xaxisLabels.length,this.isRangeBar&&(un=an.labels.length,rn.config.xaxis.tickAmount&&rn.config.xaxis.labels.formatter&&(cn=rn.config.xaxis.tickAmount),((pn=an.yAxisScale)===null||pn===void 0||(fn=pn[on])===null||fn===void 0||(mn=fn.result)===null||mn===void 0?void 0:mn.length)>0&&rn.config.xaxis.type!=="datetime"&&(cn=an.yAxisScale[on].result.length-1)),this._drawXYLines({xCount:cn,tickAmount:un})}else cn=un,un=an.xTickAmount,this._drawInvertedXYLines({xCount:cn,tickAmount:un});return this.drawGridBands(cn,un),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:an.gridWidth/cn}}},{key:"drawGridBands",value:function(rn,an){var sn,on,cn=this,un=this.w;if(((sn=un.config.grid.row.colors)===null||sn===void 0?void 0:sn.length)>0&&function(An,Cn,kn,Mn,Tn,On){for(var Pn=0,Nn=0;Pn<Cn;Pn++,Nn++)Nn>=un.config.grid[An].colors.length&&(Nn=0),cn._drawGridBandRect({c:Nn,x1:kn,y1:Mn,x2:Tn,y2:On,type:An}),Mn+=un.globals.gridHeight/an}("row",an,0,0,un.globals.gridWidth,un.globals.gridHeight/an),((on=un.config.grid.column.colors)===null||on===void 0?void 0:on.length)>0){var pn=un.globals.isBarHorizontal||un.config.xaxis.tickPlacement!=="on"||un.config.xaxis.type!=="category"&&!un.config.xaxis.convertedCatToNumeric?rn:rn-1;un.globals.isXNumeric&&(pn=un.globals.xAxisScale.result.length-1);for(var fn=un.globals.padHorizontal,mn=un.globals.padHorizontal+un.globals.gridWidth/pn,xn=un.globals.gridHeight,vn=0,yn=0;vn<rn;vn++,yn++){var wn;yn>=un.config.grid.column.colors.length&&(yn=0),un.config.xaxis.type==="datetime"&&(fn=this.xaxisLabels[vn].position,mn=(((wn=this.xaxisLabels[vn+1])===null||wn===void 0?void 0:wn.position)||un.globals.gridWidth)-this.xaxisLabels[vn].position),this._drawGridBandRect({c:yn,x1:fn,y1:0,x2:mn,y2:xn,type:"column"}),fn+=un.globals.gridWidth/pn}}}}]),ln}(),ta=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w,this.coreUtils=new Pi(this.ctx)}return s$1(ln,[{key:"niceScale",value:function(rn,an){var sn,on,cn,un,pn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,fn=1e-11,mn=this.w,xn=mn.globals;xn.isBarHorizontal?(sn=mn.config.xaxis,on=Math.max((xn.svgWidth-100)/25,2)):(sn=mn.config.yaxis[pn],on=Math.max((xn.svgHeight-100)/15,2)),v$2.isNumber(on)||(on=10),cn=sn.min!==void 0&&sn.min!==null,un=sn.max!==void 0&&sn.min!==null;var vn=sn.stepSize!==void 0&&sn.stepSize!==null,yn=sn.tickAmount!==void 0&&sn.tickAmount!==null,wn=yn?sn.tickAmount:xn.niceScaleDefaultTicks[Math.min(Math.round(on/2),xn.niceScaleDefaultTicks.length-1)];if(xn.isMultipleYAxis&&!yn&&xn.multiAxisTickAmount>0&&(wn=xn.multiAxisTickAmount,yn=!0),wn=wn==="dataPoints"?xn.dataPoints-1:Math.abs(Math.round(wn)),(rn===Number.MIN_VALUE&&an===0||!v$2.isNumber(rn)&&!v$2.isNumber(an)||rn===Number.MIN_VALUE&&an===-Number.MAX_VALUE)&&(rn=v$2.isNumber(sn.min)?sn.min:0,an=v$2.isNumber(sn.max)?sn.max:rn+wn,xn.allSeriesCollapsed=!1),rn>an){console.warn("axis.min cannot be greater than axis.max: swapping min and max");var An=an;an=rn,rn=An}else rn===an&&(rn=rn===0?0:rn-1,an=an===0?2:an+1);var Cn=[];wn<1&&(wn=1);var kn=wn,Mn=Math.abs(an-rn);!cn&&rn>0&&rn/Mn<.15&&(rn=0,cn=!0),!un&&an<0&&-an/Mn<.15&&(an=0,un=!0);var Tn=(Mn=Math.abs(an-rn))/kn,On=Tn,Pn=Math.floor(Math.log10(On)),Nn=Math.pow(10,Pn),In=Math.ceil(On/Nn);if(Tn=On=(In=xn.niceScaleAllowedMagMsd[xn.yValueDecimal===0?0:1][In])*Nn,xn.isBarHorizontal&&sn.stepSize&&sn.type!=="datetime"?(Tn=sn.stepSize,vn=!0):vn&&(Tn=sn.stepSize),vn&&sn.forceNiceScale){var jn=Math.floor(Math.log10(Tn));Tn*=Math.pow(10,Pn-jn)}if(cn&&un){var Fn=Mn/kn;if(yn)if(vn)if(v$2.mod(Mn,Tn)!=0){var Un=v$2.getGCD(Tn,Fn);Tn=Fn/Un<10?Un:Fn}else v$2.mod(Tn,Fn)==0?Tn=Fn:(Fn=Tn,yn=!1);else Tn=Fn;else if(vn)v$2.mod(Mn,Tn)==0?Fn=Tn:Tn=Fn;else if(v$2.mod(Mn,Tn)==0)Fn=Tn;else{Fn=Mn/(kn=Math.ceil(Mn/Tn));var Yn=v$2.getGCD(Mn,Tn);Mn/Yn<on&&(Fn=Yn),Tn=Fn}kn=Math.round(Mn/Tn)}else{if(cn||un){if(un)if(yn)rn=an-Tn*kn;else{var Qn=rn;rn=Tn*Math.floor(rn/Tn),Math.abs(an-rn)/v$2.getGCD(Mn,Tn)>on&&(rn=an-Tn*wn,rn+=Tn*Math.floor((Qn-rn)/Tn))}else if(cn)if(yn)an=rn+Tn*kn;else{var ir=an;an=Tn*Math.ceil(an/Tn),Math.abs(an-rn)/v$2.getGCD(Mn,Tn)>on&&(an=rn+Tn*wn,an+=Tn*Math.ceil((ir-an)/Tn))}}else if(xn.isMultipleYAxis&&yn){var er=Tn*Math.floor(rn/Tn),tr=er+Tn*kn;tr<an&&(Tn*=2),tr=an,an=(rn=er)+Tn*kn,Mn=Math.abs(an-rn),rn>0&&rn<Math.abs(tr-an)&&(rn=0,an=Tn*kn),an<0&&-an<Math.abs(er-rn)&&(an=0,rn=-Tn*kn)}else rn=Tn*Math.floor(rn/Tn),an=Tn*Math.ceil(an/Tn);Mn=Math.abs(an-rn),Tn=v$2.getGCD(Mn,Tn),kn=Math.round(Mn/Tn)}if(yn||cn||un||(kn=Math.ceil((Mn-fn)/(Tn+fn)))>16&&v$2.getPrimeFactors(kn).length<2&&kn++,!yn&&sn.forceNiceScale&&xn.yValueDecimal===0&&kn>Mn&&(kn=Mn,Tn=Math.round(Mn/kn)),kn>on&&(!yn&&!vn||sn.forceNiceScale)){var vr=v$2.getPrimeFactors(kn),rr=vr.length-1,fr=kn;e:for(var ur=0;ur<rr;ur++)for(var wr=0;wr<=rr-ur;wr++){for(var Xn=Math.min(wr+ur,rr),cr=fr,_r=1,Nr=wr;Nr<=Xn;Nr++)_r*=vr[Nr];if((cr/=_r)<on){fr=cr;break e}}Tn=fr===kn?Mn:Mn/fr,kn=Math.round(Mn/Tn)}xn.isMultipleYAxis&&xn.multiAxisTickAmount==0&&xn.ignoreYAxisIndexes.indexOf(pn)<0&&(xn.multiAxisTickAmount=kn);var Er=rn-Tn,Fr=Tn*fn;do Er+=Tn,Cn.push(v$2.stripNumber(Er,7));while(an-Er>Fr);return{result:Cn,niceMin:Cn[0],niceMax:Cn[Cn.length-1]}}},{key:"linearScale",value:function(rn,an){var sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,on=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,cn=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,un=Math.abs(an-rn),pn=[];if(rn===an)return{result:pn=[rn],niceMin:pn[0],niceMax:pn[pn.length-1]};(sn=this._adjustTicksForSmallRange(sn,on,un))==="dataPoints"&&(sn=this.w.globals.dataPoints-1),cn||(cn=un/sn),cn=Math.round(10*(cn+Number.EPSILON))/10,sn===Number.MAX_VALUE&&(sn=5,cn=1);for(var fn=rn;sn>=0;)pn.push(fn),fn=v$2.preciseAddition(fn,cn),sn-=1;return{result:pn,niceMin:pn[0],niceMax:pn[pn.length-1]}}},{key:"logarithmicScaleNice",value:function(rn,an,sn){an<=0&&(an=Math.max(rn,sn)),rn<=0&&(rn=Math.min(an,sn));for(var on=[],cn=Math.ceil(Math.log(an)/Math.log(sn)+1),un=Math.floor(Math.log(rn)/Math.log(sn));un<cn;un++)on.push(Math.pow(sn,un));return{result:on,niceMin:on[0],niceMax:on[on.length-1]}}},{key:"logarithmicScale",value:function(rn,an,sn){an<=0&&(an=Math.max(rn,sn)),rn<=0&&(rn=Math.min(an,sn));for(var on=[],cn=Math.log(an)/Math.log(sn),un=Math.log(rn)/Math.log(sn),pn=cn-un,fn=Math.round(pn),mn=pn/fn,xn=0,vn=un;xn<fn;xn++,vn+=mn)on.push(Math.pow(sn,vn));return on.push(Math.pow(sn,cn)),{result:on,niceMin:rn,niceMax:an}}},{key:"_adjustTicksForSmallRange",value:function(rn,an,sn){var on=rn;if(an!==void 0&&this.w.config.yaxis[an].labels.formatter&&this.w.config.yaxis[an].tickAmount===void 0){var cn=Number(this.w.config.yaxis[an].labels.formatter(1));v$2.isNumber(cn)&&this.w.globals.yValueDecimal===0&&(on=Math.ceil(sn))}return on<rn?on:rn}},{key:"setYScaleForIndex",value:function(rn,an,sn){var on=this.w.globals,cn=this.w.config,un=on.isBarHorizontal?cn.xaxis:cn.yaxis[rn];on.yAxisScale[rn]===void 0&&(on.yAxisScale[rn]=[]);var pn=Math.abs(sn-an);un.logarithmic&&pn<=5&&(on.invalidLogScale=!0),un.logarithmic&&pn>5?(on.allSeriesCollapsed=!1,on.yAxisScale[rn]=un.forceNiceScale?this.logarithmicScaleNice(an,sn,un.logBase):this.logarithmicScale(an,sn,un.logBase)):sn!==-Number.MAX_VALUE&&v$2.isNumber(sn)&&an!==Number.MAX_VALUE&&v$2.isNumber(an)?(on.allSeriesCollapsed=!1,on.yAxisScale[rn]=this.niceScale(an,sn,rn)):on.yAxisScale[rn]=this.niceScale(Number.MIN_VALUE,0,rn)}},{key:"setXScale",value:function(rn,an){var sn=this.w,on=sn.globals,cn=Math.abs(an-rn);if(an!==-Number.MAX_VALUE&&v$2.isNumber(an)){var un=on.xTickAmount;cn<10&&cn>1&&(un=cn),on.xAxisScale=this.linearScale(rn,an,un,0,sn.config.xaxis.stepSize)}else on.xAxisScale=this.linearScale(0,10,10);return on.xAxisScale}},{key:"scaleMultipleYAxes",value:function(){var rn=this,an=this.w.config,sn=this.w.globals;this.coreUtils.setSeriesYAxisMappings();var on=sn.seriesYAxisMap,cn=sn.minYArr,un=sn.maxYArr;sn.allSeriesCollapsed=!0,sn.barGroups=[],on.forEach(function(pn,fn){var mn=[];pn.forEach(function(xn){var vn,yn=(vn=an.series[xn])===null||vn===void 0?void 0:vn.group;mn.indexOf(yn)<0&&mn.push(yn)}),pn.length>0?function(){var xn,vn,yn=Number.MAX_VALUE,wn=-Number.MAX_VALUE,An=yn,Cn=wn;if(an.chart.stacked)(function(){var Tn=new Array(sn.dataPoints).fill(0),On=[],Pn=[],Nn=[];mn.forEach(function(){On.push(Tn.map(function(){return Number.MIN_VALUE})),Pn.push(Tn.map(function(){return Number.MIN_VALUE})),Nn.push(Tn.map(function(){return Number.MIN_VALUE}))});for(var In=function(Fn){!xn&&an.series[pn[Fn]].type&&(xn=an.series[pn[Fn]].type);var Un=pn[Fn];vn=an.series[Un].group?an.series[Un].group:"axis-".concat(fn),!(sn.collapsedSeriesIndices.indexOf(Un)<0&&sn.ancillaryCollapsedSeriesIndices.indexOf(Un)<0)||(sn.allSeriesCollapsed=!1,mn.forEach(function(Yn,Qn){if(an.series[Un].group===Yn)for(var ir=0;ir<sn.series[Un].length;ir++){var er=sn.series[Un][ir];er>=0?Pn[Qn][ir]+=er:Nn[Qn][ir]+=er,On[Qn][ir]+=er,An=Math.min(An,er),Cn=Math.max(Cn,er)}})),xn!=="bar"&&xn!=="column"||sn.barGroups.push(vn)},jn=0;jn<pn.length;jn++)In(jn);xn||(xn=an.chart.type),xn==="bar"||xn==="column"?mn.forEach(function(Fn,Un){yn=Math.min(yn,Math.min.apply(null,Nn[Un])),wn=Math.max(wn,Math.max.apply(null,Pn[Un]))}):(mn.forEach(function(Fn,Un){An=Math.min(An,Math.min.apply(null,On[Un])),Cn=Math.max(Cn,Math.max.apply(null,On[Un]))}),yn=An,wn=Cn),yn===Number.MIN_VALUE&&wn===Number.MIN_VALUE&&(wn=-Number.MAX_VALUE)})();else for(var kn=0;kn<pn.length;kn++){var Mn=pn[kn];yn=Math.min(yn,cn[Mn]),wn=Math.max(wn,un[Mn]),!(sn.collapsedSeriesIndices.indexOf(Mn)<0&&sn.ancillaryCollapsedSeriesIndices.indexOf(Mn)<0)||(sn.allSeriesCollapsed=!1)}an.yaxis[fn].min!==void 0&&(yn=typeof an.yaxis[fn].min=="function"?an.yaxis[fn].min(yn):an.yaxis[fn].min),an.yaxis[fn].max!==void 0&&(wn=typeof an.yaxis[fn].max=="function"?an.yaxis[fn].max(wn):an.yaxis[fn].max),sn.barGroups=sn.barGroups.filter(function(Tn,On,Pn){return Pn.indexOf(Tn)===On}),rn.setYScaleForIndex(fn,yn,wn),pn.forEach(function(Tn){cn[Tn]=sn.yAxisScale[fn].niceMin,un[Tn]=sn.yAxisScale[fn].niceMax})}():rn.setYScaleForIndex(fn,0,-Number.MAX_VALUE)})}}]),ln}(),ea=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w,this.scales=new ta(rn)}return s$1(ln,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(rn){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,on=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,cn=this.w.config,un=this.w.globals,pn=-Number.MAX_VALUE,fn=Number.MIN_VALUE;on===null&&(on=rn+1);var mn=un.series,xn=mn,vn=mn;cn.chart.type==="candlestick"?(xn=un.seriesCandleL,vn=un.seriesCandleH):cn.chart.type==="boxPlot"?(xn=un.seriesCandleO,vn=un.seriesCandleC):un.isRangeData&&(xn=un.seriesRangeStart,vn=un.seriesRangeEnd);var yn=!1;if(un.seriesX.length>=on){var wn,An=(wn=un.brushSource)===null||wn===void 0?void 0:wn.w.config.chart.brush;(cn.chart.zoom.enabled&&cn.chart.zoom.autoScaleYaxis||An!=null&&An.enabled&&An!=null&&An.autoScaleYaxis)&&(yn=!0)}for(var Cn=rn;Cn<on;Cn++){un.dataPoints=Math.max(un.dataPoints,mn[Cn].length);var kn=cn.series[Cn].type;un.categoryLabels.length&&(un.dataPoints=un.categoryLabels.filter(function(Nn){return Nn!==void 0}).length),un.labels.length&&cn.xaxis.type!=="datetime"&&un.series.reduce(function(Nn,In){return Nn+In.length},0)!==0&&(un.dataPoints=Math.max(un.dataPoints,un.labels.length));var Mn=0,Tn=mn[Cn].length-1;if(yn){if(cn.xaxis.min)for(;Mn<Tn&&un.seriesX[Cn][Mn]<cn.xaxis.min;Mn++);if(cn.xaxis.max)for(;Tn>Mn&&un.seriesX[Cn][Tn]>cn.xaxis.max;Tn--);}for(var On=Mn;On<=Tn&&On<un.series[Cn].length;On++){var Pn=mn[Cn][On];if(Pn!==null&&v$2.isNumber(Pn)){switch(vn[Cn][On]!==void 0&&(pn=Math.max(pn,vn[Cn][On]),an=Math.min(an,vn[Cn][On])),xn[Cn][On]!==void 0&&(an=Math.min(an,xn[Cn][On]),sn=Math.max(sn,xn[Cn][On])),kn){case"candlestick":un.seriesCandleC[Cn][On]!==void 0&&(pn=Math.max(pn,un.seriesCandleH[Cn][On]),an=Math.min(an,un.seriesCandleL[Cn][On]));break;case"boxPlot":un.seriesCandleC[Cn][On]!==void 0&&(pn=Math.max(pn,un.seriesCandleC[Cn][On]),an=Math.min(an,un.seriesCandleO[Cn][On]))}kn&&kn!=="candlestick"&&kn!=="boxPlot"&&kn!=="rangeArea"&&kn!=="rangeBar"&&(pn=Math.max(pn,un.series[Cn][On]),an=Math.min(an,un.series[Cn][On])),un.seriesGoals[Cn]&&un.seriesGoals[Cn][On]&&Array.isArray(un.seriesGoals[Cn][On])&&un.seriesGoals[Cn][On].forEach(function(Nn){pn=Math.max(pn,Nn.value),an=Math.min(an,Nn.value)}),sn=pn,Pn=v$2.noExponents(Pn),v$2.isFloat(Pn)&&(un.yValueDecimal=Math.max(un.yValueDecimal,Pn.toString().split(".")[1].length)),fn>xn[Cn][On]&&xn[Cn][On]<0&&(fn=xn[Cn][On])}else un.hasNullValues=!0}kn!=="bar"&&kn!=="column"||(fn<0&&pn<0&&(pn=0,sn=Math.max(sn,0)),fn===Number.MIN_VALUE&&(fn=0,an=Math.min(an,0)))}return cn.chart.type==="rangeBar"&&un.seriesRangeStart.length&&un.isBarHorizontal&&(fn=an),cn.chart.type==="bar"&&(fn<0&&pn<0&&(pn=0),fn===Number.MIN_VALUE&&(fn=0)),{minY:fn,maxY:pn,lowestY:an,highestY:sn}}},{key:"setYRange",value:function(){var rn=this.w.globals,an=this.w.config;rn.maxY=-Number.MAX_VALUE,rn.minY=Number.MIN_VALUE;var sn,on=Number.MAX_VALUE;if(rn.isMultipleYAxis){on=Number.MAX_VALUE;for(var cn=0;cn<rn.series.length;cn++)sn=this.getMinYMaxY(cn),rn.minYArr[cn]=sn.lowestY,rn.maxYArr[cn]=sn.highestY,on=Math.min(on,sn.lowestY)}return sn=this.getMinYMaxY(0,on,null,rn.series.length),an.chart.type==="bar"?(rn.minY=sn.minY,rn.maxY=sn.maxY):(rn.minY=sn.lowestY,rn.maxY=sn.highestY),on=sn.lowestY,an.chart.stacked&&this._setStackedMinMax(),an.chart.type==="line"||an.chart.type==="area"||an.chart.type==="scatter"||an.chart.type==="candlestick"||an.chart.type==="boxPlot"||an.chart.type==="rangeBar"&&!rn.isBarHorizontal?rn.minY===Number.MIN_VALUE&&on!==-Number.MAX_VALUE&&on!==rn.maxY&&(rn.minY=on):rn.minY=rn.minY!==Number.MIN_VALUE?Math.min(sn.minY,rn.minY):sn.minY,an.yaxis.forEach(function(un,pn){un.max!==void 0&&(typeof un.max=="number"?rn.maxYArr[pn]=un.max:typeof un.max=="function"&&(rn.maxYArr[pn]=un.max(rn.isMultipleYAxis?rn.maxYArr[pn]:rn.maxY)),rn.maxY=rn.maxYArr[pn]),un.min!==void 0&&(typeof un.min=="number"?rn.minYArr[pn]=un.min:typeof un.min=="function"&&(rn.minYArr[pn]=un.min(rn.isMultipleYAxis?rn.minYArr[pn]===Number.MIN_VALUE?0:rn.minYArr[pn]:rn.minY)),rn.minY=rn.minYArr[pn])}),rn.isBarHorizontal&&["min","max"].forEach(function(un){an.xaxis[un]!==void 0&&typeof an.xaxis[un]=="number"&&(un==="min"?rn.minY=an.xaxis[un]:rn.maxY=an.xaxis[un])}),rn.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),rn.minY=on):(this.scales.setYScaleForIndex(0,rn.minY,rn.maxY),rn.minY=rn.yAxisScale[0].niceMin,rn.maxY=rn.yAxisScale[0].niceMax,rn.minYArr[0]=rn.minY,rn.maxYArr[0]=rn.maxY),rn.barGroups=[],rn.lineGroups=[],rn.areaGroups=[],an.series.forEach(function(un){switch(un.type||an.chart.type){case"bar":case"column":rn.barGroups.push(un.group);break;case"line":rn.lineGroups.push(un.group);break;case"area":rn.areaGroups.push(un.group)}}),rn.barGroups=rn.barGroups.filter(function(un,pn,fn){return fn.indexOf(un)===pn}),rn.lineGroups=rn.lineGroups.filter(function(un,pn,fn){return fn.indexOf(un)===pn}),rn.areaGroups=rn.areaGroups.filter(function(un,pn,fn){return fn.indexOf(un)===pn}),{minY:rn.minY,maxY:rn.maxY,minYArr:rn.minYArr,maxYArr:rn.maxYArr,yAxisScale:rn.yAxisScale}}},{key:"setXRange",value:function(){var rn=this.w.globals,an=this.w.config,sn=an.xaxis.type==="numeric"||an.xaxis.type==="datetime"||an.xaxis.type==="category"&&!rn.noLabelsProvided||rn.noLabelsProvided||rn.isXNumeric;if(rn.isXNumeric&&function(){for(var fn=0;fn<rn.series.length;fn++)if(rn.labels[fn])for(var mn=0;mn<rn.labels[fn].length;mn++)rn.labels[fn][mn]!==null&&v$2.isNumber(rn.labels[fn][mn])&&(rn.maxX=Math.max(rn.maxX,rn.labels[fn][mn]),rn.initialMaxX=Math.max(rn.maxX,rn.labels[fn][mn]),rn.minX=Math.min(rn.minX,rn.labels[fn][mn]),rn.initialMinX=Math.min(rn.minX,rn.labels[fn][mn]))}(),rn.noLabelsProvided&&an.xaxis.categories.length===0&&(rn.maxX=rn.labels[rn.labels.length-1],rn.initialMaxX=rn.labels[rn.labels.length-1],rn.minX=1,rn.initialMinX=1),rn.isXNumeric||rn.noLabelsProvided||rn.dataFormatXNumeric){var on=10;if(an.xaxis.tickAmount===void 0)on=Math.round(rn.svgWidth/150),an.xaxis.type==="numeric"&&rn.dataPoints<30&&(on=rn.dataPoints-1),on>rn.dataPoints&&rn.dataPoints!==0&&(on=rn.dataPoints-1);else if(an.xaxis.tickAmount==="dataPoints"){if(rn.series.length>1&&(on=rn.series[rn.maxValsInArrayIndex].length-1),rn.isXNumeric){var cn=rn.maxX-rn.minX;cn<30&&(on=cn-1)}}else on=an.xaxis.tickAmount;if(rn.xTickAmount=on,an.xaxis.max!==void 0&&typeof an.xaxis.max=="number"&&(rn.maxX=an.xaxis.max),an.xaxis.min!==void 0&&typeof an.xaxis.min=="number"&&(rn.minX=an.xaxis.min),an.xaxis.range!==void 0&&(rn.minX=rn.maxX-an.xaxis.range),rn.minX!==Number.MAX_VALUE&&rn.maxX!==-Number.MAX_VALUE)if(an.xaxis.convertedCatToNumeric&&!rn.dataFormatXNumeric){for(var un=[],pn=rn.minX-1;pn<rn.maxX;pn++)un.push(pn+1);rn.xAxisScale={result:un,niceMin:un[0],niceMax:un[un.length-1]}}else rn.xAxisScale=this.scales.setXScale(rn.minX,rn.maxX);else rn.xAxisScale=this.scales.linearScale(0,on,on,0,an.xaxis.stepSize),rn.noLabelsProvided&&rn.labels.length>0&&(rn.xAxisScale=this.scales.linearScale(1,rn.labels.length,on-1,0,an.xaxis.stepSize),rn.seriesX=rn.labels.slice());sn&&(rn.labels=rn.xAxisScale.result.slice())}return rn.isBarHorizontal&&rn.labels.length&&(rn.xTickAmount=rn.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:rn.minX,maxX:rn.maxX}}},{key:"setZRange",value:function(){var rn=this.w.globals;if(rn.isDataXYZ){for(var an=0;an<rn.series.length;an++)if(rn.seriesZ[an]!==void 0)for(var sn=0;sn<rn.seriesZ[an].length;sn++)rn.seriesZ[an][sn]!==null&&v$2.isNumber(rn.seriesZ[an][sn])&&(rn.maxZ=Math.max(rn.maxZ,rn.seriesZ[an][sn]),rn.minZ=Math.min(rn.minZ,rn.seriesZ[an][sn]))}}},{key:"_handleSingleDataPoint",value:function(){var rn=this.w.globals,an=this.w.config;if(rn.minX===rn.maxX){var sn=new zi(this.ctx);if(an.xaxis.type==="datetime"){var on=sn.getDate(rn.minX);an.xaxis.labels.datetimeUTC?on.setUTCDate(on.getUTCDate()-2):on.setDate(on.getDate()-2),rn.minX=new Date(on).getTime();var cn=sn.getDate(rn.maxX);an.xaxis.labels.datetimeUTC?cn.setUTCDate(cn.getUTCDate()+2):cn.setDate(cn.getDate()+2),rn.maxX=new Date(cn).getTime()}else(an.xaxis.type==="numeric"||an.xaxis.type==="category"&&!rn.noLabelsProvided)&&(rn.minX=rn.minX-2,rn.initialMinX=rn.minX,rn.maxX=rn.maxX+2,rn.initialMaxX=rn.maxX)}}},{key:"_getMinXDiff",value:function(){var rn=this.w.globals;rn.isXNumeric&&rn.seriesX.forEach(function(an,sn){if(an.length){an.length===1&&an.push(rn.seriesX[rn.maxValsInArrayIndex][rn.seriesX[rn.maxValsInArrayIndex].length-1]);var on=an.slice();on.sort(function(cn,un){return cn-un}),on.forEach(function(cn,un){if(un>0){var pn=cn-on[un-1];pn>0&&(rn.minXDiff=Math.min(pn,rn.minXDiff))}}),rn.dataPoints!==1&&rn.minXDiff!==Number.MAX_VALUE||(rn.minXDiff=.5)}})}},{key:"_setStackedMinMax",value:function(){var rn=this,an=this.w.globals;if(an.series.length){var sn=an.seriesGroups;sn.length||(sn=[this.w.globals.seriesNames.map(function(un){return un})]);var on={},cn={};sn.forEach(function(un){on[un]=[],cn[un]=[],rn.w.config.series.map(function(pn,fn){return un.indexOf(an.seriesNames[fn])>-1?fn:null}).filter(function(pn){return pn!==null}).forEach(function(pn){for(var fn=0;fn<an.series[an.maxValsInArrayIndex].length;fn++){var mn,xn,vn,yn;on[un][fn]===void 0&&(on[un][fn]=0,cn[un][fn]=0),(rn.w.config.chart.stacked&&!an.comboCharts||rn.w.config.chart.stacked&&an.comboCharts&&(!rn.w.config.chart.stackOnlyBar||((mn=rn.w.config.series)===null||mn===void 0||(xn=mn[pn])===null||xn===void 0?void 0:xn.type)==="bar"||((vn=rn.w.config.series)===null||vn===void 0||(yn=vn[pn])===null||yn===void 0?void 0:yn.type)==="column"))&&an.series[pn][fn]!==null&&v$2.isNumber(an.series[pn][fn])&&(an.series[pn][fn]>0?on[un][fn]+=parseFloat(an.series[pn][fn])+1e-4:cn[un][fn]+=parseFloat(an.series[pn][fn]))}})}),Object.entries(on).forEach(function(un){var pn=p$1(un,1)[0];on[pn].forEach(function(fn,mn){an.maxY=Math.max(an.maxY,on[pn][mn]),an.minY=Math.min(an.minY,cn[pn][mn])})})}}}]),ln}(),ia=function(){function ln(rn,an){i$2(this,ln),this.ctx=rn,this.elgrid=an,this.w=rn.w;var sn=this.w;this.xaxisFontSize=sn.config.xaxis.labels.style.fontSize,this.axisFontFamily=sn.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=sn.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=sn.config.chart.type==="bar"&&sn.config.plotOptions.bar.horizontal,this.xAxisoffX=sn.config.xaxis.position==="bottom"?sn.globals.gridHeight:0,this.drawnLabels=[],this.axesUtils=new Ri(rn)}return s$1(ln,[{key:"drawYaxis",value:function(rn){var an=this.w,sn=new Mi(this.ctx),on=an.config.yaxis[rn].labels.style,cn=on.fontSize,un=on.fontFamily,pn=on.fontWeight,fn=sn.group({class:"apexcharts-yaxis",rel:rn,transform:"translate(".concat(an.globals.translateYAxisX[rn],", 0)")});if(this.axesUtils.isYAxisHidden(rn))return fn;var mn=sn.group({class:"apexcharts-yaxis-texts-g"});fn.add(mn);var xn=an.globals.yAxisScale[rn].result.length-1,vn=an.globals.gridHeight/xn,yn=an.globals.yLabelFormatters[rn],wn=this.axesUtils.checkForReversedLabels(rn,an.globals.yAxisScale[rn].result.slice());if(an.config.yaxis[rn].labels.show){var An=an.globals.translateY+an.config.yaxis[rn].labels.offsetY;an.globals.isBarHorizontal?An=0:an.config.chart.type==="heatmap"&&(An-=vn/2),An+=parseInt(cn,10)/3;for(var Cn=xn;Cn>=0;Cn--){var kn=yn(wn[Cn],Cn,an),Mn=an.config.yaxis[rn].labels.padding;an.config.yaxis[rn].opposite&&an.config.yaxis.length!==0&&(Mn*=-1);var Tn=this.getTextAnchor(an.config.yaxis[rn].labels.align,an.config.yaxis[rn].opposite),On=this.axesUtils.getYAxisForeColor(on.colors,rn),Pn=Array.isArray(On)?On[Cn]:On,Nn=v$2.listToArray(an.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(rn,"'] .apexcharts-yaxis-label tspan"))).map(function(jn){return jn.textContent}),In=sn.drawText({x:Mn,y:An,text:Nn.includes(kn)&&!an.config.yaxis[rn].labels.showDuplicates?"":kn,textAnchor:Tn,fontSize:cn,fontFamily:un,fontWeight:pn,maxWidth:an.config.yaxis[rn].labels.maxWidth,foreColor:Pn,isPlainText:!1,cssClass:"apexcharts-yaxis-label ".concat(on.cssClass)});mn.add(In),this.addTooltip(In,kn),an.config.yaxis[rn].labels.rotate!==0&&this.rotateLabel(sn,In,firstLabel,an.config.yaxis[rn].labels.rotate),An+=vn}}return this.addYAxisTitle(sn,fn,rn),this.addAxisBorder(sn,fn,rn,xn,vn),fn}},{key:"getTextAnchor",value:function(rn,an){return rn==="left"?"start":rn==="center"?"middle":rn==="right"?"end":an?"start":"end"}},{key:"addTooltip",value:function(rn,an){var sn=document.createElementNS(this.w.globals.SVGNS,"title");sn.textContent=Array.isArray(an)?an.join(" "):an,rn.node.appendChild(sn)}},{key:"rotateLabel",value:function(rn,an,sn,on){var cn=rn.rotateAroundCenter(sn.node),un=rn.rotateAroundCenter(an.node);an.node.setAttribute("transform","rotate(".concat(on," ").concat(cn.x," ").concat(un.y,")"))}},{key:"addYAxisTitle",value:function(rn,an,sn){var on=this.w;if(on.config.yaxis[sn].title.text!==void 0){var cn=rn.group({class:"apexcharts-yaxis-title"}),un=on.config.yaxis[sn].opposite?on.globals.translateYAxisX[sn]:0,pn=rn.drawText({x:un,y:on.globals.gridHeight/2+on.globals.translateY+on.config.yaxis[sn].title.offsetY,text:on.config.yaxis[sn].title.text,textAnchor:"end",foreColor:on.config.yaxis[sn].title.style.color,fontSize:on.config.yaxis[sn].title.style.fontSize,fontWeight:on.config.yaxis[sn].title.style.fontWeight,fontFamily:on.config.yaxis[sn].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text ".concat(on.config.yaxis[sn].title.style.cssClass)});cn.add(pn),an.add(cn)}}},{key:"addAxisBorder",value:function(rn,an,sn,on,cn){var un=this.w,pn=un.config.yaxis[sn].axisBorder,fn=31+pn.offsetX;if(un.config.yaxis[sn].opposite&&(fn=-31-pn.offsetX),pn.show){var mn=rn.drawLine(fn,un.globals.translateY+pn.offsetY-2,fn,un.globals.gridHeight+un.globals.translateY+pn.offsetY+2,pn.color,0,pn.width);an.add(mn)}un.config.yaxis[sn].axisTicks.show&&this.axesUtils.drawYAxisTicks(fn,on,pn,un.config.yaxis[sn].axisTicks,sn,cn,an)}},{key:"drawYaxisInversed",value:function(rn){var an=this.w,sn=new Mi(this.ctx),on=sn.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),cn=sn.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(an.globals.translateXAxisX,", ").concat(an.globals.translateXAxisY,")")});on.add(cn);var un=an.globals.yAxisScale[rn].result.length-1,pn=an.globals.gridWidth/un+.1,fn=pn+an.config.xaxis.labels.offsetX,mn=an.globals.xLabelFormatter,xn=this.axesUtils.checkForReversedLabels(rn,an.globals.yAxisScale[rn].result.slice()),vn=an.globals.timescaleLabels;if(vn.length>0&&(this.xaxisLabels=vn.slice(),un=(xn=vn.slice()).length),an.config.xaxis.labels.show)for(var yn=vn.length?0:un;vn.length?yn<vn.length:yn>=0;vn.length?yn++:yn--){var wn=mn(xn[yn],yn,an),An=an.globals.gridWidth+an.globals.padHorizontal-(fn-pn+an.config.xaxis.labels.offsetX);if(vn.length){var Cn=this.axesUtils.getLabel(xn,vn,An,yn,this.drawnLabels,this.xaxisFontSize);An=Cn.x,wn=Cn.text,this.drawnLabels.push(Cn.text),yn===0&&an.globals.skipFirstTimelinelabel&&(wn=""),yn===xn.length-1&&an.globals.skipLastTimelinelabel&&(wn="")}var kn=sn.drawText({x:An,y:this.xAxisoffX+an.config.xaxis.labels.offsetY+30-(an.config.xaxis.position==="top"?an.globals.xAxisHeight+an.config.xaxis.axisTicks.height-2:0),text:wn,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[rn]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:an.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label ".concat(an.config.xaxis.labels.style.cssClass)});cn.add(kn),kn.tspan(wn),this.addTooltip(kn,wn),fn+=pn}return this.inversedYAxisTitleText(on),this.inversedYAxisBorder(on),on}},{key:"inversedYAxisBorder",value:function(rn){var an=this.w,sn=new Mi(this.ctx),on=an.config.xaxis.axisBorder;if(on.show){var cn=0;an.config.chart.type==="bar"&&an.globals.isXNumeric&&(cn-=15);var un=sn.drawLine(an.globals.padHorizontal+cn+on.offsetX,this.xAxisoffX,an.globals.gridWidth,this.xAxisoffX,on.color,0,on.height);this.elgrid&&this.elgrid.elGridBorders&&an.config.grid.show?this.elgrid.elGridBorders.add(un):rn.add(un)}}},{key:"inversedYAxisTitleText",value:function(rn){var an=this.w,sn=new Mi(this.ctx);if(an.config.xaxis.title.text!==void 0){var on=sn.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),cn=sn.drawText({x:an.globals.gridWidth/2+an.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(an.config.xaxis.title.style.fontSize)+an.config.xaxis.title.offsetY+20,text:an.config.xaxis.title.text,textAnchor:"middle",fontSize:an.config.xaxis.title.style.fontSize,fontFamily:an.config.xaxis.title.style.fontFamily,fontWeight:an.config.xaxis.title.style.fontWeight,foreColor:an.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text ".concat(an.config.xaxis.title.style.cssClass)});on.add(cn),rn.add(on)}}},{key:"yAxisTitleRotate",value:function(rn,an){var sn=this.w,on=new Mi(this.ctx),cn=sn.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(rn,"'] .apexcharts-yaxis-texts-g")),un=cn?cn.getBoundingClientRect():{width:0,height:0},pn=sn.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(rn,"'] .apexcharts-yaxis-title text")),fn=pn?pn.getBoundingClientRect():{width:0,height:0};if(pn){var mn=this.xPaddingForYAxisTitle(rn,un,fn,an);pn.setAttribute("x",mn.xPos-(an?10:0));var xn=on.rotateAroundCenter(pn);pn.setAttribute("transform","rotate(".concat(an?-1*sn.config.yaxis[rn].title.rotate:sn.config.yaxis[rn].title.rotate," ").concat(xn.x," ").concat(xn.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(rn,an,sn,on){var cn=this.w,un=0,pn=10;return cn.config.yaxis[rn].title.text===void 0||rn<0?{xPos:un,padd:0}:(on?un=an.width+cn.config.yaxis[rn].title.offsetX+sn.width/2+pn/2:(un=-1*an.width+cn.config.yaxis[rn].title.offsetX+pn/2+sn.width/2,cn.globals.isBarHorizontal&&(pn=25,un=-1*an.width-cn.config.yaxis[rn].title.offsetX-pn)),{xPos:un,padd:pn})}},{key:"setYAxisXPosition",value:function(rn,an){var sn=this.w,on=0,cn=0,un=18,pn=1;sn.config.yaxis.length>1&&(this.multipleYs=!0),sn.config.yaxis.forEach(function(fn,mn){var xn=sn.globals.ignoreYAxisIndexes.includes(mn)||!fn.show||fn.floating||rn[mn].width===0,vn=rn[mn].width+an[mn].width;fn.opposite?sn.globals.isBarHorizontal?(cn=sn.globals.gridWidth+sn.globals.translateX-1,sn.globals.translateYAxisX[mn]=cn-fn.labels.offsetX):(cn=sn.globals.gridWidth+sn.globals.translateX+pn,xn||(pn+=vn+20),sn.globals.translateYAxisX[mn]=cn-fn.labels.offsetX+20):(on=sn.globals.translateX-un,xn||(un+=vn+20),sn.globals.translateYAxisX[mn]=on+fn.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var rn=this.w;v$2.listToArray(rn.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis")).forEach(function(an,sn){var on=rn.config.yaxis[sn];if(on&&!on.floating&&on.labels.align!==void 0){var cn=rn.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(sn,"'] .apexcharts-yaxis-texts-g")),un=v$2.listToArray(rn.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(sn,"'] .apexcharts-yaxis-label"))),pn=cn.getBoundingClientRect();un.forEach(function(fn){fn.setAttribute("text-anchor",on.labels.align)}),on.labels.align!=="left"||on.opposite?on.labels.align==="center"?cn.setAttribute("transform","translate(".concat(pn.width/2*(on.opposite?1:-1),", 0)")):on.labels.align==="right"&&on.opposite&&cn.setAttribute("transform","translate(".concat(pn.width,", 0)")):cn.setAttribute("transform","translate(-".concat(pn.width,", 0)"))}})}}]),ln}(),aa=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w,this.documentEvent=v$2.bind(this.documentEvent,this)}return s$1(ln,[{key:"addEventListener",value:function(rn,an){var sn=this.w;sn.globals.events.hasOwnProperty(rn)?sn.globals.events[rn].push(an):sn.globals.events[rn]=[an]}},{key:"removeEventListener",value:function(rn,an){var sn=this.w;if(sn.globals.events.hasOwnProperty(rn)){var on=sn.globals.events[rn].indexOf(an);on!==-1&&sn.globals.events[rn].splice(on,1)}}},{key:"fireEvent",value:function(rn,an){var sn=this.w;if(sn.globals.events.hasOwnProperty(rn)){an&&an.length||(an=[]);for(var on=sn.globals.events[rn],cn=on.length,un=0;un<cn;un++)on[un].apply(null,an)}}},{key:"setupEventHandlers",value:function(){var rn=this,an=this.w,sn=this.ctx,on=an.globals.dom.baseEl.querySelector(an.globals.chartClass);this.ctx.eventList.forEach(function(cn){on.addEventListener(cn,function(un){var pn=Object.assign({},an,{seriesIndex:an.globals.axisCharts?an.globals.capturedSeriesIndex:0,dataPointIndex:an.globals.capturedDataPointIndex});un.type==="mousemove"||un.type==="touchmove"?typeof an.config.chart.events.mouseMove=="function"&&an.config.chart.events.mouseMove(un,sn,pn):un.type==="mouseleave"||un.type==="touchleave"?typeof an.config.chart.events.mouseLeave=="function"&&an.config.chart.events.mouseLeave(un,sn,pn):(un.type==="mouseup"&&un.which===1||un.type==="touchend")&&(typeof an.config.chart.events.click=="function"&&an.config.chart.events.click(un,sn,pn),sn.ctx.events.fireEvent("click",[un,sn,pn]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(cn){an.globals.dom.baseEl.addEventListener(cn,rn.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(rn){var an=this.w,sn=rn.target.className;if(rn.type==="click"){var on=an.globals.dom.baseEl.querySelector(".apexcharts-menu");on&&on.classList.contains("apexcharts-menu-open")&&sn!=="apexcharts-menu-icon"&&on.classList.remove("apexcharts-menu-open")}an.globals.clientX=rn.type==="touchmove"?rn.touches[0].clientX:rn.clientX,an.globals.clientY=rn.type==="touchmove"?rn.touches[0].clientY:rn.clientY}}]),ln}(),sa=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"setCurrentLocaleValues",value:function(rn){var an=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(an=this.w.config.chart.locales.concat(window.Apex.chart.locales));var sn=an.filter(function(cn){return cn.name===rn})[0];if(!sn)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var on=v$2.extend(Hi,sn);this.w.globals.locale=on.options}}]),ln}(),ra=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"drawAxis",value:function(rn,an){var sn,on,cn=this,un=this.w.globals,pn=this.w.config,fn=new Qi(this.ctx,an),mn=new ia(this.ctx,an);un.axisCharts&&rn!=="radar"&&(un.isBarHorizontal?(on=mn.drawYaxisInversed(0),sn=fn.drawXaxisInversed(0),un.dom.elGraphical.add(sn),un.dom.elGraphical.add(on)):(sn=fn.drawXaxis(),un.dom.elGraphical.add(sn),pn.yaxis.map(function(xn,vn){if(un.ignoreYAxisIndexes.indexOf(vn)===-1&&(on=mn.drawYaxis(vn),un.dom.Paper.add(on),cn.w.config.grid.position==="back")){var yn=un.dom.Paper.children()[1];yn.remove(),un.dom.Paper.add(yn)}})))}}]),ln}(),na=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"drawXCrosshairs",value:function(){var rn=this.w,an=new Mi(this.ctx),sn=new Li(this.ctx),on=rn.config.xaxis.crosshairs.fill.gradient,cn=rn.config.xaxis.crosshairs.dropShadow,un=rn.config.xaxis.crosshairs.fill.type,pn=on.colorFrom,fn=on.colorTo,mn=on.opacityFrom,xn=on.opacityTo,vn=on.stops,yn=cn.enabled,wn=cn.left,An=cn.top,Cn=cn.blur,kn=cn.color,Mn=cn.opacity,Tn=rn.config.xaxis.crosshairs.fill.color;if(rn.config.xaxis.crosshairs.show){un==="gradient"&&(Tn=an.drawGradient("vertical",pn,fn,mn,xn,null,vn,null));var On=an.drawRect();rn.config.xaxis.crosshairs.width===1&&(On=an.drawLine());var Pn=rn.globals.gridHeight;(!v$2.isNumber(Pn)||Pn<0)&&(Pn=0);var Nn=rn.config.xaxis.crosshairs.width;(!v$2.isNumber(Nn)||Nn<0)&&(Nn=0),On.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:Pn,width:Nn,height:Pn,fill:Tn,filter:"none","fill-opacity":rn.config.xaxis.crosshairs.opacity,stroke:rn.config.xaxis.crosshairs.stroke.color,"stroke-width":rn.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":rn.config.xaxis.crosshairs.stroke.dashArray}),yn&&(On=sn.dropShadow(On,{left:wn,top:An,blur:Cn,color:kn,opacity:Mn})),rn.globals.dom.elGraphical.add(On)}}},{key:"drawYCrosshairs",value:function(){var rn=this.w,an=new Mi(this.ctx),sn=rn.config.yaxis[0].crosshairs,on=rn.globals.barPadForNumericAxis;if(rn.config.yaxis[0].crosshairs.show){var cn=an.drawLine(-on,0,rn.globals.gridWidth+on,0,sn.stroke.color,sn.stroke.dashArray,sn.stroke.width);cn.attr({class:"apexcharts-ycrosshairs"}),rn.globals.dom.elGraphical.add(cn)}var un=an.drawLine(-on,0,rn.globals.gridWidth+on,0,sn.stroke.color,0,0);un.attr({class:"apexcharts-ycrosshairs-hidden"}),rn.globals.dom.elGraphical.add(un)}}]),ln}(),oa=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"checkResponsiveConfig",value:function(rn){var an=this,sn=this.w,on=sn.config;if(on.responsive.length!==0){var cn=on.responsive.slice();cn.sort(function(mn,xn){return mn.breakpoint>xn.breakpoint?1:xn.breakpoint>mn.breakpoint?-1:0}).reverse();var un=new Wi({}),pn=function(){var mn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},xn=cn[0].breakpoint,vn=window.innerWidth>0?window.innerWidth:screen.width;if(vn>xn){var yn=v$2.clone(sn.globals.initialConfig);yn.series=v$2.clone(sn.config.series);var wn=Pi.extendArrayProps(un,yn,sn);mn=v$2.extend(wn,mn),mn=v$2.extend(sn.config,mn),an.overrideResponsiveOptions(mn)}else for(var An=0;An<cn.length;An++)vn<cn[An].breakpoint&&(mn=Pi.extendArrayProps(un,cn[An].options,sn),mn=v$2.extend(sn.config,mn),an.overrideResponsiveOptions(mn))};if(rn){var fn=Pi.extendArrayProps(un,rn,sn);fn=v$2.extend(sn.config,fn),pn(fn=v$2.extend(fn,rn))}else pn({})}}},{key:"overrideResponsiveOptions",value:function(rn){var an=new Wi(rn).init({responsiveOverride:!0});this.w.config=an}}]),ln}(),la=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed()}return s$1(ln,[{key:"checkHeatmapDistributed",value:function(){var rn=this.w.config,an=rn.chart,sn=rn.plotOptions;return an.type==="treemap"&&sn.treemap&&sn.treemap.distributed||an.type==="heatmap"&&sn.heatmap&&sn.heatmap.distributed}},{key:"checkBarDistributed",value:function(){var rn=this.w.config,an=rn.chart,sn=rn.plotOptions;return sn.bar&&sn.bar.distributed&&(an.type==="bar"||an.type==="rangeBar")}},{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var rn=this.w,an=new v$2;rn.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(rn.config.theme.mode));var sn=f$2(rn.config.colors||rn.config.fill.colors||[]);rn.globals.colors=this.getColors(sn),this.applySeriesColors(rn.globals.seriesColors,rn.globals.colors),rn.config.theme.monochrome.enabled&&(rn.globals.colors=this.getMonochromeColors(rn.config.theme.monochrome,rn.globals.series,an));var on=rn.globals.colors.slice();this.pushExtraColors(rn.globals.colors),this.applyColorTypes(["fill","stroke"],on),this.applyDataLabelsColors(on),this.applyRadarPolygonsColors(),this.applyMarkersColors(on)}},{key:"getColors",value:function(rn){var an=this,sn=this.w;return rn&&rn.length!==0?Array.isArray(rn)&&rn.length>0&&typeof rn[0]=="function"?(this.isColorFn=!0,sn.config.series.map(function(on,cn){var un=rn[cn]||rn[0];return typeof un=="function"?un({value:sn.globals.axisCharts?sn.globals.series[cn][0]||0:sn.globals.series[cn],seriesIndex:cn,dataPointIndex:cn,w:an.w}):un})):rn:this.predefined()}},{key:"applySeriesColors",value:function(rn,an){rn.forEach(function(sn,on){sn&&(an[on]=sn)})}},{key:"getMonochromeColors",value:function(rn,an,sn){var on=rn.color,cn=rn.shadeIntensity,un=rn.shadeTo,pn=this.isBarDistributed||this.isHeatmapDistributed?an[0].length*an.length:an.length,fn=1/(pn/cn),mn=0;return Array.from({length:pn},function(){var xn=un==="dark"?sn.shadeColor(-1*mn,on):sn.shadeColor(mn,on);return mn+=fn,xn})}},{key:"applyColorTypes",value:function(rn,an){var sn=this,on=this.w;rn.forEach(function(cn){on.globals[cn].colors=on.config[cn].colors===void 0?sn.isColorFn?on.config.colors:an:on.config[cn].colors.slice(),sn.pushExtraColors(on.globals[cn].colors)})}},{key:"applyDataLabelsColors",value:function(rn){var an=this.w;an.globals.dataLabels.style.colors=an.config.dataLabels.style.colors===void 0?rn:an.config.dataLabels.style.colors.slice(),this.pushExtraColors(an.globals.dataLabels.style.colors,50)}},{key:"applyRadarPolygonsColors",value:function(){var rn=this.w;rn.globals.radarPolygons.fill.colors=rn.config.plotOptions.radar.polygons.fill.colors===void 0?[rn.config.theme.mode==="dark"?"#424242":"none"]:rn.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(rn.globals.radarPolygons.fill.colors,20)}},{key:"applyMarkersColors",value:function(rn){var an=this.w;an.globals.markers.colors=an.config.markers.colors===void 0?rn:an.config.markers.colors.slice(),this.pushExtraColors(an.globals.markers.colors)}},{key:"pushExtraColors",value:function(rn,an){var sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,on=this.w,cn=an||on.globals.series.length;if(sn===null&&(sn=this.isBarDistributed||this.isHeatmapDistributed||on.config.chart.type==="heatmap"&&on.config.plotOptions.heatmap&&on.config.plotOptions.heatmap.colorScale.inverse),sn&&on.globals.series.length&&(cn=on.globals.series[on.globals.maxValsInArrayIndex].length*on.globals.series.length),rn.length<cn)for(var un=cn-rn.length,pn=0;pn<un;pn++)rn.push(rn[pn])}},{key:"updateThemeOptions",value:function(rn){rn.chart=rn.chart||{},rn.tooltip=rn.tooltip||{};var an=rn.theme.mode,sn=an==="dark"?"palette4":an==="light"?"palette1":rn.theme.palette||"palette1",on=an==="dark"?"#f6f7f8":an==="light"?"#373d3f":rn.chart.foreColor||"#373d3f";return rn.tooltip.theme=an||"light",rn.chart.foreColor=on,rn.theme.palette=sn,rn}},{key:"predefined",value:function(){var rn={palette1:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"],palette2:["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"],palette3:["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"],palette4:["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"],palette5:["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"],palette6:["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"],palette7:["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"],palette8:["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"],palette9:["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"],palette10:["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"],default:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"]};return rn[this.w.config.theme.palette]||rn.default}}]),ln}(),ha=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(rn){var an=this.w,sn=rn==="title"?an.config.title:an.config.subtitle,on=an.globals.svgWidth/2,cn=sn.offsetY,un="middle";if(sn.align==="left"?(on=10,un="start"):sn.align==="right"&&(on=an.globals.svgWidth-10,un="end"),on+=sn.offsetX,cn=cn+parseInt(sn.style.fontSize,10)+sn.margin/2,sn.text!==void 0){var pn=new Mi(this.ctx).drawText({x:on,y:cn,text:sn.text,textAnchor:un,fontSize:sn.style.fontSize,fontFamily:sn.style.fontFamily,fontWeight:sn.style.fontWeight,foreColor:sn.style.color,opacity:1});pn.node.setAttribute("class","apexcharts-".concat(rn,"-text")),an.globals.dom.Paper.add(pn)}}}]),ln}(),ca=function(){function ln(rn){i$2(this,ln),this.w=rn.w,this.dCtx=rn}return s$1(ln,[{key:"getTitleSubtitleCoords",value:function(rn){var an=this.w,sn=0,on=0,cn=rn==="title"?an.config.title.floating:an.config.subtitle.floating,un=an.globals.dom.baseEl.querySelector(".apexcharts-".concat(rn,"-text"));if(un!==null&&!cn){var pn=un.getBoundingClientRect();sn=pn.width,on=an.globals.axisCharts?pn.height+5:pn.height}return{width:sn,height:on}}},{key:"getLegendsRect",value:function(){var rn=this.w,an=rn.globals.dom.elLegendWrap;rn.config.legend.height||rn.config.legend.position!=="top"&&rn.config.legend.position!=="bottom"||(an.style.maxHeight=rn.globals.svgHeight/2+"px");var sn=Object.assign({},v$2.getBoundingClientRect(an));return an!==null&&!rn.config.legend.floating&&rn.config.legend.show?this.dCtx.lgRect={x:sn.x,y:sn.y,height:sn.height,width:sn.height===0?0:sn.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},rn.config.legend.position!=="left"&&rn.config.legend.position!=="right"||1.5*this.dCtx.lgRect.width>rn.globals.svgWidth&&(this.dCtx.lgRect.width=rn.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getDatalabelsRect",value:function(){var rn=this,an=this.w,sn=[];an.config.series.forEach(function(fn,mn){fn.data.forEach(function(xn,vn){var yn;yn=an.globals.series[mn][vn],on=an.config.dataLabels.formatter(yn,{ctx:rn.dCtx.ctx,seriesIndex:mn,dataPointIndex:vn,w:an}),sn.push(on)})});var on=v$2.getLargestStringFromArr(sn),cn=new Mi(this.dCtx.ctx),un=an.config.dataLabels.style,pn=cn.getTextRects(on,parseInt(un.fontSize),un.fontFamily);return{width:1.05*pn.width,height:pn.height}}},{key:"getLargestStringFromMultiArr",value:function(rn,an){var sn=rn;if(this.w.globals.isMultiLineX){var on=an.map(function(un,pn){return Array.isArray(un)?un.length:1}),cn=Math.max.apply(Math,f$2(on));sn=an[on.indexOf(cn)]}return sn}}]),ln}(),da=function(){function ln(rn){i$2(this,ln),this.w=rn.w,this.dCtx=rn}return s$1(ln,[{key:"getxAxisLabelsCoords",value:function(){var rn,an=this.w,sn=an.globals.labels.slice();if(an.config.xaxis.convertedCatToNumeric&&sn.length===0&&(sn=an.globals.categoryLabels),an.globals.timescaleLabels.length>0){var on=this.getxAxisTimeScaleLabelsCoords();rn={width:on.width,height:on.height},an.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=an.config.legend.position!=="left"&&an.config.legend.position!=="right"||an.config.legend.floating?0:this.dCtx.lgRect.width;var cn=an.globals.xLabelFormatter,un=v$2.getLargestStringFromArr(sn),pn=this.dCtx.dimHelpers.getLargestStringFromMultiArr(un,sn);an.globals.isBarHorizontal&&(pn=un=an.globals.yAxisScale[0].result.reduce(function(An,Cn){return An.length>Cn.length?An:Cn},0));var fn=new Xi(this.dCtx.ctx),mn=un;un=fn.xLabelFormat(cn,un,mn,{i:void 0,dateFormatter:new zi(this.dCtx.ctx).formatDate,w:an}),pn=fn.xLabelFormat(cn,pn,mn,{i:void 0,dateFormatter:new zi(this.dCtx.ctx).formatDate,w:an}),(an.config.xaxis.convertedCatToNumeric&&un===void 0||String(un).trim()==="")&&(pn=un="1");var xn=new Mi(this.dCtx.ctx),vn=xn.getTextRects(un,an.config.xaxis.labels.style.fontSize),yn=vn;if(un!==pn&&(yn=xn.getTextRects(pn,an.config.xaxis.labels.style.fontSize)),(rn={width:vn.width>=yn.width?vn.width:yn.width,height:vn.height>=yn.height?vn.height:yn.height}).width*sn.length>an.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&an.config.xaxis.labels.rotate!==0||an.config.xaxis.labels.rotateAlways){if(!an.globals.isBarHorizontal){an.globals.rotateXLabels=!0;var wn=function(An){return xn.getTextRects(An,an.config.xaxis.labels.style.fontSize,an.config.xaxis.labels.style.fontFamily,"rotate(".concat(an.config.xaxis.labels.rotate," 0 0)"),!1)};vn=wn(un),un!==pn&&(yn=wn(pn)),rn.height=(vn.height>yn.height?vn.height:yn.height)/1.5,rn.width=vn.width>yn.width?vn.width:yn.width}}else an.globals.rotateXLabels=!1}return an.config.xaxis.labels.show||(rn={width:0,height:0}),{width:rn.width,height:rn.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var rn,an=this.w;if(!an.globals.hasXaxisGroups)return{width:0,height:0};var sn,on=((rn=an.config.xaxis.group.style)===null||rn===void 0?void 0:rn.fontSize)||an.config.xaxis.labels.style.fontSize,cn=an.globals.groups.map(function(vn){return vn.title}),un=v$2.getLargestStringFromArr(cn),pn=this.dCtx.dimHelpers.getLargestStringFromMultiArr(un,cn),fn=new Mi(this.dCtx.ctx),mn=fn.getTextRects(un,on),xn=mn;return un!==pn&&(xn=fn.getTextRects(pn,on)),sn={width:mn.width>=xn.width?mn.width:xn.width,height:mn.height>=xn.height?mn.height:xn.height},an.config.xaxis.labels.show||(sn={width:0,height:0}),{width:sn.width,height:sn.height}}},{key:"getxAxisTitleCoords",value:function(){var rn=this.w,an=0,sn=0;if(rn.config.xaxis.title.text!==void 0){var on=new Mi(this.dCtx.ctx).getTextRects(rn.config.xaxis.title.text,rn.config.xaxis.title.style.fontSize);an=on.width,sn=on.height}return{width:an,height:sn}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var rn,an=this.w;this.dCtx.timescaleLabels=an.globals.timescaleLabels.slice();var sn=this.dCtx.timescaleLabels.map(function(cn){return cn.value}),on=sn.reduce(function(cn,un){return cn===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):cn.length>un.length?cn:un},0);return 1.05*(rn=new Mi(this.dCtx.ctx).getTextRects(on,an.config.xaxis.labels.style.fontSize)).width*sn.length>an.globals.gridWidth&&an.config.xaxis.labels.rotate!==0&&(an.globals.overlappingXLabels=!0),rn}},{key:"additionalPaddingXLabels",value:function(rn){var an=this,sn=this.w,on=sn.globals,cn=sn.config,un=cn.xaxis.type,pn=rn.width;on.skipLastTimelinelabel=!1,on.skipFirstTimelinelabel=!1;var fn=sn.config.yaxis[0].opposite&&sn.globals.isBarHorizontal,mn=function(xn,vn){cn.yaxis.length>1&&function(yn){return on.collapsedSeriesIndices.indexOf(yn)!==-1}(vn)||function(yn){if(an.dCtx.timescaleLabels&&an.dCtx.timescaleLabels.length){var wn=an.dCtx.timescaleLabels[0],An=an.dCtx.timescaleLabels[an.dCtx.timescaleLabels.length-1].position+pn/1.75-an.dCtx.yAxisWidthRight,Cn=wn.position-pn/1.75+an.dCtx.yAxisWidthLeft,kn=sn.config.legend.position==="right"&&an.dCtx.lgRect.width>0?an.dCtx.lgRect.width:0;An>on.svgWidth-on.translateX-kn&&(on.skipLastTimelinelabel=!0),Cn<-(yn.show&&!yn.floating||cn.chart.type!=="bar"&&cn.chart.type!=="candlestick"&&cn.chart.type!=="rangeBar"&&cn.chart.type!=="boxPlot"?10:pn/1.75)&&(on.skipFirstTimelinelabel=!0)}else un==="datetime"?an.dCtx.gridPad.right<pn&&!on.rotateXLabels&&(on.skipLastTimelinelabel=!0):un!=="datetime"&&an.dCtx.gridPad.right<pn/2-an.dCtx.yAxisWidthRight&&!on.rotateXLabels&&!sn.config.xaxis.labels.trim&&(an.dCtx.xPadRight=pn/2+1)}(xn)};cn.yaxis.forEach(function(xn,vn){fn?(an.dCtx.gridPad.left<pn&&(an.dCtx.xPadLeft=pn/2+1),an.dCtx.xPadRight=pn/2+1):mn(xn,vn)})}}]),ln}(),ua=function(){function ln(rn){i$2(this,ln),this.w=rn.w,this.dCtx=rn}return s$1(ln,[{key:"getyAxisLabelsCoords",value:function(){var rn=this,an=this.w,sn=[],on=10,cn=new Ri(this.dCtx.ctx);return an.config.yaxis.map(function(un,pn){var fn={seriesIndex:pn,dataPointIndex:-1,w:an},mn=an.globals.yAxisScale[pn],xn=0;if(!cn.isYAxisHidden(pn)&&un.labels.show&&un.labels.minWidth!==void 0&&(xn=un.labels.minWidth),!cn.isYAxisHidden(pn)&&un.labels.show&&mn.result.length){var vn=an.globals.yLabelFormatters[pn],yn=mn.niceMin===Number.MIN_VALUE?0:mn.niceMin,wn=mn.result.reduce(function(Pn,Nn){var In,jn;return((In=String(vn(Pn,fn)))===null||In===void 0?void 0:In.length)>((jn=String(vn(Nn,fn)))===null||jn===void 0?void 0:jn.length)?Pn:Nn},yn),An=wn=vn(wn,fn);if(wn!==void 0&&wn.length!==0||(wn=mn.niceMax),an.globals.isBarHorizontal){on=0;var Cn=an.globals.labels.slice();wn=v$2.getLargestStringFromArr(Cn),wn=vn(wn,{seriesIndex:pn,dataPointIndex:-1,w:an}),An=rn.dCtx.dimHelpers.getLargestStringFromMultiArr(wn,Cn)}var kn=new Mi(rn.dCtx.ctx),Mn="rotate(".concat(un.labels.rotate," 0 0)"),Tn=kn.getTextRects(wn,un.labels.style.fontSize,un.labels.style.fontFamily,Mn,!1),On=Tn;wn!==An&&(On=kn.getTextRects(An,un.labels.style.fontSize,un.labels.style.fontFamily,Mn,!1)),sn.push({width:(xn>On.width||xn>Tn.width?xn:On.width>Tn.width?On.width:Tn.width)+on,height:On.height>Tn.height?On.height:Tn.height})}else sn.push({width:0,height:0})}),sn}},{key:"getyAxisTitleCoords",value:function(){var rn=this,an=this.w,sn=[];return an.config.yaxis.map(function(on,cn){if(on.show&&on.title.text!==void 0){var un=new Mi(rn.dCtx.ctx),pn="rotate(".concat(on.title.rotate," 0 0)"),fn=un.getTextRects(on.title.text,on.title.style.fontSize,on.title.style.fontFamily,pn,!1);sn.push({width:fn.width,height:fn.height})}else sn.push({width:0,height:0})}),sn}},{key:"getTotalYAxisWidth",value:function(){var rn=this.w,an=0,sn=0,on=0,cn=rn.globals.yAxisScale.length>1?10:0,un=new Ri(this.dCtx.ctx),pn=function(fn,mn){var xn=rn.config.yaxis[mn].floating,vn=0;fn.width>0&&!xn?(vn=fn.width+cn,function(yn){return rn.globals.ignoreYAxisIndexes.indexOf(yn)>-1}(mn)&&(vn=vn-fn.width-cn)):vn=xn||un.isYAxisHidden(mn)?0:5,rn.config.yaxis[mn].opposite?on+=vn:sn+=vn,an+=vn};return rn.globals.yLabelsCoords.map(function(fn,mn){pn(fn,mn)}),rn.globals.yTitleCoords.map(function(fn,mn){pn(fn,mn)}),rn.globals.isBarHorizontal&&!rn.config.yaxis[0].floating&&(an=rn.globals.yLabelsCoords[0].width+rn.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=sn,this.dCtx.yAxisWidthRight=on,an}}]),ln}(),ga=function(){function ln(rn){i$2(this,ln),this.w=rn.w,this.dCtx=rn}return s$1(ln,[{key:"gridPadForColumnsInNumericAxis",value:function(rn){var an=this.w,sn=an.config,on=an.globals;if(on.noData||on.collapsedSeries.length+on.ancillaryCollapsedSeries.length===sn.series.length)return 0;var cn=function(wn){return["bar","rangeBar","candlestick","boxPlot"].includes(wn)},un=sn.chart.type,pn=0,fn=cn(un)?sn.series.length:1;on.comboBarCount>0&&(fn=on.comboBarCount),on.collapsedSeries.forEach(function(wn){cn(wn.type)&&(fn-=1)}),sn.chart.stacked&&(fn=1);var mn=cn(un)||on.comboBarCount>0,xn=Math.abs(on.initialMaxX-on.initialMinX);if(mn&&on.isXNumeric&&!on.isBarHorizontal&&fn>0&&xn!==0){xn<=3&&(xn=on.dataPoints);var vn=xn/rn,yn=on.minXDiff&&on.minXDiff/vn>0?on.minXDiff/vn:0;yn>rn/2&&(yn/=2),(pn=yn*parseInt(sn.plotOptions.bar.columnWidth,10)/100)<1&&(pn=1),on.barPadForNumericAxis=pn}return pn}},{key:"gridPadFortitleSubtitle",value:function(){var rn=this,an=this.w,sn=an.globals,on=this.dCtx.isSparkline||!sn.axisCharts?0:10;["title","subtitle"].forEach(function(pn){an.config[pn].text!==void 0?on+=an.config[pn].margin:on+=rn.dCtx.isSparkline||!sn.axisCharts?0:5}),!an.config.legend.show||an.config.legend.position!=="bottom"||an.config.legend.floating||sn.axisCharts||(on+=10);var cn=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),un=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");sn.gridHeight-=cn.height+un.height+on,sn.translateY+=cn.height+un.height+on}},{key:"setGridXPosForDualYAxis",value:function(rn,an){var sn=this.w,on=new Ri(this.dCtx.ctx);sn.config.yaxis.forEach(function(cn,un){sn.globals.ignoreYAxisIndexes.indexOf(un)!==-1||cn.floating||on.isYAxisHidden(un)||(cn.opposite&&(sn.globals.translateX-=an[un].width+rn[un].width+parseInt(cn.labels.style.fontSize,10)/1.2+12),sn.globals.translateX<2&&(sn.globals.translateX=2))})}}]),ln}(),pa=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.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 ca(this),this.dimYAxis=new ua(this),this.dimXAxis=new da(this),this.dimGrid=new ga(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return s$1(ln,[{key:"plotCoords",value:function(){var rn=this,an=this.w,sn=an.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0};var on=Array.isArray(an.config.stroke.width)?Math.max.apply(Math,f$2(an.config.stroke.width)):an.config.stroke.width;this.isSparkline&&((an.config.markers.discrete.length>0||an.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(un){var pn=p$1(un,2),fn=pn[0],mn=pn[1];rn.gridPad[fn]=Math.max(mn,rn.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(on/2,this.gridPad.top),this.gridPad.bottom=Math.max(on/2,this.gridPad.bottom)),sn.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),sn.gridHeight=sn.gridHeight-this.gridPad.top-this.gridPad.bottom,sn.gridWidth=sn.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var cn=this.dimGrid.gridPadForColumnsInNumericAxis(sn.gridWidth);sn.gridWidth=sn.gridWidth-2*cn,sn.translateX=sn.translateX+this.gridPad.left+this.xPadLeft+(cn>0?cn:0),sn.translateY=sn.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var rn=this,an=this.w,sn=an.globals,on=this.dimYAxis.getyAxisLabelsCoords(),cn=this.dimYAxis.getyAxisTitleCoords();sn.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),an.globals.yLabelsCoords=[],an.globals.yTitleCoords=[],an.config.yaxis.map(function(wn,An){an.globals.yLabelsCoords.push({width:on[An].width,index:An}),an.globals.yTitleCoords.push({width:cn[An].width,index:An})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var un=this.dimXAxis.getxAxisLabelsCoords(),pn=this.dimXAxis.getxAxisGroupLabelsCoords(),fn=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(un,fn,pn),sn.translateXAxisY=an.globals.rotateXLabels?this.xAxisHeight/8:-4,sn.translateXAxisX=an.globals.rotateXLabels&&an.globals.isXNumeric&&an.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,an.globals.isBarHorizontal&&(sn.rotateXLabels=!1,sn.translateXAxisY=parseInt(an.config.xaxis.labels.style.fontSize,10)/1.5*-1),sn.translateXAxisY=sn.translateXAxisY+an.config.xaxis.labels.offsetY,sn.translateXAxisX=sn.translateXAxisX+an.config.xaxis.labels.offsetX;var mn=this.yAxisWidth,xn=this.xAxisHeight;sn.xAxisLabelsHeight=this.xAxisHeight-fn.height,sn.xAxisGroupLabelsHeight=sn.xAxisLabelsHeight-un.height,sn.xAxisLabelsWidth=this.xAxisWidth,sn.xAxisHeight=this.xAxisHeight;var vn=10;(an.config.chart.type==="radar"||this.isSparkline)&&(mn=0,xn=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||an.config.chart.type==="treemap")&&(mn=0,xn=0,vn=0),this.isSparkline||an.config.chart.type==="treemap"||this.dimXAxis.additionalPaddingXLabels(un);var yn=function(){sn.translateX=mn+rn.datalabelsCoords.width,sn.gridHeight=sn.svgHeight-rn.lgRect.height-xn-(rn.isSparkline||an.config.chart.type==="treemap"?0:an.globals.rotateXLabels?10:15),sn.gridWidth=sn.svgWidth-mn-2*rn.datalabelsCoords.width};switch(an.config.xaxis.position==="top"&&(vn=sn.xAxisHeight-an.config.xaxis.axisTicks.height-5),an.config.legend.position){case"bottom":sn.translateY=vn,yn();break;case"top":sn.translateY=this.lgRect.height+vn,yn();break;case"left":sn.translateY=vn,sn.translateX=this.lgRect.width+mn+this.datalabelsCoords.width,sn.gridHeight=sn.svgHeight-xn-12,sn.gridWidth=sn.svgWidth-this.lgRect.width-mn-2*this.datalabelsCoords.width;break;case"right":sn.translateY=vn,sn.translateX=mn+this.datalabelsCoords.width,sn.gridHeight=sn.svgHeight-xn-12,sn.gridWidth=sn.svgWidth-this.lgRect.width-mn-2*this.datalabelsCoords.width-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(cn,on),new ia(this.ctx).setYAxisXPosition(on,cn)}},{key:"setDimensionsForNonAxisCharts",value:function(){var rn=this.w,an=rn.globals,sn=rn.config,on=0;rn.config.legend.show&&!rn.config.legend.floating&&(on=20);var cn=sn.chart.type==="pie"||sn.chart.type==="polarArea"||sn.chart.type==="donut"?"pie":"radialBar",un=sn.plotOptions[cn].offsetY,pn=sn.plotOptions[cn].offsetX;if(!sn.legend.show||sn.legend.floating){an.gridHeight=an.svgHeight;var fn=an.dom.elWrap.getBoundingClientRect().width;return an.gridWidth=Math.min(fn,an.gridHeight),an.translateY=un,void(an.translateX=pn+(an.svgWidth-an.gridWidth)/2)}switch(sn.legend.position){case"bottom":an.gridHeight=an.svgHeight-this.lgRect.height,an.gridWidth=an.svgWidth,an.translateY=un-10,an.translateX=pn+(an.svgWidth-an.gridWidth)/2;break;case"top":an.gridHeight=an.svgHeight-this.lgRect.height,an.gridWidth=an.svgWidth,an.translateY=this.lgRect.height+un+10,an.translateX=pn+(an.svgWidth-an.gridWidth)/2;break;case"left":an.gridWidth=an.svgWidth-this.lgRect.width-on,an.gridHeight=sn.chart.height!=="auto"?an.svgHeight:an.gridWidth,an.translateY=un,an.translateX=pn+this.lgRect.width+on;break;case"right":an.gridWidth=an.svgWidth-this.lgRect.width-on-5,an.gridHeight=sn.chart.height!=="auto"?an.svgHeight:an.gridWidth,an.translateY=un,an.translateX=pn+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(rn,an,sn){var on=this.w,cn=on.globals.hasXaxisGroups?2:1,un=sn.height+rn.height+an.height,pn=on.globals.isMultiLineX?1.2:on.globals.LINE_HEIGHT_RATIO,fn=on.globals.rotateXLabels?22:10,mn=on.globals.rotateXLabels&&on.config.legend.position==="bottom"?10:0;this.xAxisHeight=un*pn+cn*fn+mn,this.xAxisWidth=rn.width,this.xAxisHeight-an.height>on.config.xaxis.labels.maxHeight&&(this.xAxisHeight=on.config.xaxis.labels.maxHeight),on.config.xaxis.labels.minHeight&&this.xAxisHeight<on.config.xaxis.labels.minHeight&&(this.xAxisHeight=on.config.xaxis.labels.minHeight),on.config.xaxis.floating&&(this.xAxisHeight=0);var xn=0,vn=0;on.config.yaxis.forEach(function(yn){xn+=yn.labels.minWidth,vn+=yn.labels.maxWidth}),this.yAxisWidth<xn&&(this.yAxisWidth=xn),this.yAxisWidth>vn&&(this.yAxisWidth=vn)}}]),ln}(),fa=function(){function ln(rn){i$2(this,ln),this.w=rn.w,this.lgCtx=rn}return s$1(ln,[{key:"getLegendStyles",value:function(){var rn,an,sn,on=document.createElement("style");on.setAttribute("type","text/css");var cn=((rn=this.lgCtx.ctx)===null||rn===void 0||(an=rn.opts)===null||an===void 0||(sn=an.chart)===null||sn===void 0?void 0:sn.nonce)||this.w.config.chart.nonce;cn&&on.setAttribute("nonce",cn);var un=document.createTextNode(`
      .apexcharts-flip-y {
        transform: scaleY(-1) translateY(-100%);
        transform-origin: top;
        transform-box: fill-box;
      }
      .apexcharts-flip-x {
        transform: scaleX(-1);
        transform-origin: center;
        transform-box: fill-box;
      }
      .apexcharts-legend {
        display: flex;
        overflow: auto;
        padding: 0 10px;
      }
      .apexcharts-legend.apexcharts-legend-group-horizontal {
        flex-direction: column;
      }
      .apexcharts-legend-group {
        display: flex;
      }
      .apexcharts-legend-group-vertical {
        flex-direction: column-reverse;
      }
      .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;
        align-items: flex-start;
      }
      .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {
        justify-content: center;
        align-items: center;
      }
      .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {
        justify-content: flex-end;
        align-items: flex-end;
      }
      .apexcharts-legend-series {
        cursor: pointer;
        line-height: normal;
        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: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        margin-right: 1px;
      }

      .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 on.appendChild(un),on}},{key:"getLegendDimensions",value:function(){var rn=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),an=rn.width;return{clwh:rn.height,clww:an}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(rn,an){var sn=this,on=this.w;if(on.globals.axisCharts||on.config.chart.type==="radialBar"){on.globals.resized=!0;var cn=null,un=null;on.globals.risingSeries=[],on.globals.axisCharts?(cn=on.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(rn,"']")),un=parseInt(cn.getAttribute("data:realIndex"),10)):(cn=on.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(rn+1,"']")),un=parseInt(cn.getAttribute("rel"),10)-1),an?[{cs:on.globals.collapsedSeries,csi:on.globals.collapsedSeriesIndices},{cs:on.globals.ancillaryCollapsedSeries,csi:on.globals.ancillaryCollapsedSeriesIndices}].forEach(function(xn){sn.riseCollapsedSeries(xn.cs,xn.csi,un)}):this.hideSeries({seriesEl:cn,realIndex:un})}else{var pn=on.globals.dom.Paper.findOne(" .apexcharts-series[rel='".concat(rn+1,"'] path")),fn=on.config.chart.type;if(fn==="pie"||fn==="polarArea"||fn==="donut"){var mn=on.config.plotOptions.pie.donut.labels;new Mi(this.lgCtx.ctx).pathMouseDown(pn,null),this.lgCtx.ctx.pie.printDataLabelsInner(pn.node,mn)}pn.fire("click")}}},{key:"getSeriesAfterCollapsing",value:function(rn){var an=rn.realIndex,sn=this.w,on=sn.globals,cn=v$2.clone(sn.config.series);if(on.axisCharts){var un=sn.config.yaxis[on.seriesYAxisReverseMap[an]],pn={index:an,data:cn[an].data.slice(),type:cn[an].type||sn.config.chart.type};if(un&&un.show&&un.showAlways)on.ancillaryCollapsedSeriesIndices.indexOf(an)<0&&(on.ancillaryCollapsedSeries.push(pn),on.ancillaryCollapsedSeriesIndices.push(an));else if(on.collapsedSeriesIndices.indexOf(an)<0){on.collapsedSeries.push(pn),on.collapsedSeriesIndices.push(an);var fn=on.risingSeries.indexOf(an);on.risingSeries.splice(fn,1)}}else on.collapsedSeries.push({index:an,data:cn[an]}),on.collapsedSeriesIndices.push(an);return on.allSeriesCollapsed=on.collapsedSeries.length+on.ancillaryCollapsedSeries.length===sn.config.series.length,this._getSeriesBasedOnCollapsedState(cn)}},{key:"hideSeries",value:function(rn){for(var an=rn.seriesEl,sn=rn.realIndex,on=this.w,cn=this.getSeriesAfterCollapsing({realIndex:sn}),un=an.childNodes,pn=0;pn<un.length;pn++)un[pn].classList.contains("apexcharts-series-markers-wrap")&&(un[pn].classList.contains("apexcharts-hide")?un[pn].classList.remove("apexcharts-hide"):un[pn].classList.add("apexcharts-hide"));this.lgCtx.ctx.updateHelpers._updateSeries(cn,on.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(rn,an,sn){var on=this.w,cn=v$2.clone(on.config.series);if(rn.length>0){for(var un=0;un<rn.length;un++)rn[un].index===sn&&(on.globals.axisCharts?cn[sn].data=rn[un].data.slice():cn[sn]=rn[un].data,typeof cn[sn]!="number"&&(cn[sn].hidden=!1),rn.splice(un,1),an.splice(un,1),on.globals.risingSeries.push(sn));cn=this._getSeriesBasedOnCollapsedState(cn),this.lgCtx.ctx.updateHelpers._updateSeries(cn,on.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(rn){var an=this.w,sn=0;return an.globals.axisCharts?rn.forEach(function(on,cn){an.globals.collapsedSeriesIndices.indexOf(cn)<0&&an.globals.ancillaryCollapsedSeriesIndices.indexOf(cn)<0||(rn[cn].data=[],sn++)}):rn.forEach(function(on,cn){!an.globals.collapsedSeriesIndices.indexOf(cn)<0&&(rn[cn]=0,sn++)}),an.globals.allSeriesCollapsed=sn===rn.length,rn}}]),ln}(),xa=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.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 fa(this)}return s$1(ln,[{key:"init",value:function(){var rn=this.w,an=rn.globals,sn=rn.config,on=sn.legend.showForSingleSeries&&an.series.length===1||this.isBarsDistributed||an.series.length>1;if(this.legendHelpers.appendToForeignObject(),(on||!an.axisCharts)&&sn.legend.show){for(;an.dom.elLegendWrap.firstChild;)an.dom.elLegendWrap.removeChild(an.dom.elLegendWrap.firstChild);this.drawLegends(),sn.legend.position==="bottom"||sn.legend.position==="top"?this.legendAlignHorizontal():sn.legend.position!=="right"&&sn.legend.position!=="left"||this.legendAlignVertical()}}},{key:"createLegendMarker",value:function(rn){var an=rn.i,sn=rn.fillcolor,on=this.w,cn=document.createElement("span");cn.classList.add("apexcharts-legend-marker");var un=on.config.legend.markers.shape||on.config.markers.shape,pn=un;Array.isArray(un)&&(pn=un[an]);var fn=Array.isArray(on.config.legend.markers.size)?parseFloat(on.config.legend.markers.size[an]):parseFloat(on.config.legend.markers.size),mn=Array.isArray(on.config.legend.markers.offsetX)?parseFloat(on.config.legend.markers.offsetX[an]):parseFloat(on.config.legend.markers.offsetX),xn=Array.isArray(on.config.legend.markers.offsetY)?parseFloat(on.config.legend.markers.offsetY[an]):parseFloat(on.config.legend.markers.offsetY),vn=Array.isArray(on.config.legend.markers.strokeWidth)?parseFloat(on.config.legend.markers.strokeWidth[an]):parseFloat(on.config.legend.markers.strokeWidth),yn=cn.style;if(yn.height=2*(fn+vn)+"px",yn.width=2*(fn+vn)+"px",yn.left=mn+"px",yn.top=xn+"px",on.config.legend.markers.customHTML)yn.background="transparent",yn.color=sn[an],Array.isArray(on.config.legend.markers.customHTML)?on.config.legend.markers.customHTML[an]&&(cn.innerHTML=on.config.legend.markers.customHTML[an]()):cn.innerHTML=on.config.legend.markers.customHTML();else{var wn=new Vi(this.ctx).getMarkerConfig({cssClass:"apexcharts-legend-marker apexcharts-marker apexcharts-marker-".concat(pn),seriesIndex:an,strokeWidth:vn,size:fn}),An=window.SVG().addTo(cn).size("100%","100%"),Cn=new Mi(this.ctx).drawMarker(0,0,u$2(u$2({},wn),{},{pointFillColor:Array.isArray(sn)?sn[an]:wn.pointFillColor,shape:pn}));on.globals.dom.Paper.find(".apexcharts-legend-marker.apexcharts-marker").forEach(function(kn){kn.node.classList.contains("apexcharts-marker-triangle")?kn.node.style.transform="translate(50%, 45%)":kn.node.style.transform="translate(50%, 50%)"}),An.add(Cn)}return cn}},{key:"drawLegends",value:function(){var rn=this,an=this,sn=this.w,on=sn.config.legend.fontFamily,cn=sn.globals.seriesNames,un=sn.config.legend.markers.fillColors?sn.config.legend.markers.fillColors.slice():sn.globals.colors.slice();if(sn.config.chart.type==="heatmap"){var pn=sn.config.plotOptions.heatmap.colorScale.ranges;cn=pn.map(function(wn){return wn.name?wn.name:wn.from+" - "+wn.to}),un=pn.map(function(wn){return wn.color})}else this.isBarsDistributed&&(cn=sn.globals.labels.slice());sn.config.legend.customLegendItems.length&&(cn=sn.config.legend.customLegendItems);var fn=sn.globals.legendFormatter,mn=sn.config.legend.inverseOrder,xn=[];sn.globals.seriesGroups.length>1&&sn.config.legend.clusterGroupedSeries&&sn.globals.seriesGroups.forEach(function(wn,An){xn[An]=document.createElement("div"),xn[An].classList.add("apexcharts-legend-group","apexcharts-legend-group-".concat(An)),sn.config.legend.clusterGroupedSeriesOrientation==="horizontal"?sn.globals.dom.elLegendWrap.classList.add("apexcharts-legend-group-horizontal"):xn[An].classList.add("apexcharts-legend-group-vertical")});for(var vn=function(wn){var An,Cn=fn(cn[wn],{seriesIndex:wn,w:sn}),kn=!1,Mn=!1;if(sn.globals.collapsedSeries.length>0)for(var Tn=0;Tn<sn.globals.collapsedSeries.length;Tn++)sn.globals.collapsedSeries[Tn].index===wn&&(kn=!0);if(sn.globals.ancillaryCollapsedSeriesIndices.length>0)for(var On=0;On<sn.globals.ancillaryCollapsedSeriesIndices.length;On++)sn.globals.ancillaryCollapsedSeriesIndices[On]===wn&&(Mn=!0);var Pn=rn.createLegendMarker({i:wn,fillcolor:un});Mi.setAttrs(Pn,{rel:wn+1,"data:collapsed":kn||Mn}),(kn||Mn)&&Pn.classList.add("apexcharts-inactive-legend");var Nn=document.createElement("div"),In=document.createElement("span");In.classList.add("apexcharts-legend-text"),In.innerHTML=Array.isArray(Cn)?Cn.join(" "):Cn;var jn=sn.config.legend.labels.useSeriesColors?sn.globals.colors[wn]:Array.isArray(sn.config.legend.labels.colors)?(An=sn.config.legend.labels.colors)===null||An===void 0?void 0:An[wn]:sn.config.legend.labels.colors;jn||(jn=sn.config.chart.foreColor),In.style.color=jn,In.style.fontSize=parseFloat(sn.config.legend.fontSize)+"px",In.style.fontWeight=sn.config.legend.fontWeight,In.style.fontFamily=on||sn.config.chart.fontFamily,Mi.setAttrs(In,{rel:wn+1,i:wn,"data:default-text":encodeURIComponent(Cn),"data:collapsed":kn||Mn}),Nn.appendChild(Pn),Nn.appendChild(In);var Fn=new Pi(rn.ctx);sn.config.legend.showForZeroSeries||Fn.getSeriesTotalByIndex(wn)===0&&Fn.seriesHaveSameValues(wn)&&!Fn.isSeriesNull(wn)&&sn.globals.collapsedSeriesIndices.indexOf(wn)===-1&&sn.globals.ancillaryCollapsedSeriesIndices.indexOf(wn)===-1&&Nn.classList.add("apexcharts-hidden-zero-series"),sn.config.legend.showForNullSeries||Fn.isSeriesNull(wn)&&sn.globals.collapsedSeriesIndices.indexOf(wn)===-1&&sn.globals.ancillaryCollapsedSeriesIndices.indexOf(wn)===-1&&Nn.classList.add("apexcharts-hidden-null-series"),xn.length?sn.globals.seriesGroups.forEach(function(Un,Yn){var Qn;Un.includes((Qn=sn.config.series[wn])===null||Qn===void 0?void 0:Qn.name)&&(sn.globals.dom.elLegendWrap.appendChild(xn[Yn]),xn[Yn].appendChild(Nn))}):sn.globals.dom.elLegendWrap.appendChild(Nn),sn.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(sn.config.legend.horizontalAlign)),sn.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+sn.config.legend.position),Nn.classList.add("apexcharts-legend-series"),Nn.style.margin="".concat(sn.config.legend.itemMargin.vertical,"px ").concat(sn.config.legend.itemMargin.horizontal,"px"),sn.globals.dom.elLegendWrap.style.width=sn.config.legend.width?sn.config.legend.width+"px":"",sn.globals.dom.elLegendWrap.style.height=sn.config.legend.height?sn.config.legend.height+"px":"",Mi.setAttrs(Nn,{rel:wn+1,seriesName:v$2.escapeString(cn[wn]),"data:collapsed":kn||Mn}),(kn||Mn)&&Nn.classList.add("apexcharts-inactive-legend"),sn.config.legend.onItemClick.toggleDataSeries||Nn.classList.add("apexcharts-no-click")},yn=mn?cn.length-1:0;mn?yn>=0:yn<=cn.length-1;mn?yn--:yn++)vn(yn);sn.globals.dom.elWrap.addEventListener("click",an.onLegendClick,!0),sn.config.legend.onItemHover.highlightDataSeries&&sn.config.legend.customLegendItems.length===0&&(sn.globals.dom.elWrap.addEventListener("mousemove",an.onLegendHovered,!0),sn.globals.dom.elWrap.addEventListener("mouseout",an.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(rn,an){var sn=this.w,on=sn.globals.dom.elLegendWrap,cn=on.clientHeight,un=0,pn=0;if(sn.config.legend.position==="bottom")pn=sn.globals.svgHeight-Math.min(cn,sn.globals.svgHeight/2)-5;else if(sn.config.legend.position==="top"){var fn=new pa(this.ctx),mn=fn.dimHelpers.getTitleSubtitleCoords("title").height,xn=fn.dimHelpers.getTitleSubtitleCoords("subtitle").height;pn=(mn>0?mn-10:0)+(xn>0?xn-10:0)}on.style.position="absolute",un=un+rn+sn.config.legend.offsetX,pn=pn+an+sn.config.legend.offsetY,on.style.left=un+"px",on.style.top=pn+"px",sn.config.legend.position==="right"&&(on.style.left="auto",on.style.right=25+sn.config.legend.offsetX+"px"),["width","height"].forEach(function(vn){on.style[vn]&&(on.style[vn]=parseInt(sn.config.legend[vn],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var rn=this.w;rn.globals.dom.elLegendWrap.style.right=0;var an=new pa(this.ctx),sn=an.dimHelpers.getTitleSubtitleCoords("title"),on=an.dimHelpers.getTitleSubtitleCoords("subtitle"),cn=0;rn.config.legend.position==="top"&&(cn=sn.height+on.height+rn.config.title.margin+rn.config.subtitle.margin-10),this.setLegendWrapXY(20,cn)}},{key:"legendAlignVertical",value:function(){var rn=this.w,an=this.legendHelpers.getLegendDimensions(),sn=0;rn.config.legend.position==="left"&&(sn=20),rn.config.legend.position==="right"&&(sn=rn.globals.svgWidth-an.clww-10),this.setLegendWrapXY(sn,20)}},{key:"onLegendHovered",value:function(rn){var an=this.w,sn=rn.target.classList.contains("apexcharts-legend-series")||rn.target.classList.contains("apexcharts-legend-text")||rn.target.classList.contains("apexcharts-legend-marker");if(an.config.chart.type==="heatmap"||this.isBarsDistributed){if(sn){var on=parseInt(rn.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,on,this.w]),new Zi(this.ctx).highlightRangeInSeries(rn,rn.target)}}else!rn.target.classList.contains("apexcharts-inactive-legend")&&sn&&new Zi(this.ctx).toggleSeriesOnHover(rn,rn.target)}},{key:"onLegendClick",value:function(rn){var an=this.w;if(!an.config.legend.customLegendItems.length&&(rn.target.classList.contains("apexcharts-legend-series")||rn.target.classList.contains("apexcharts-legend-text")||rn.target.classList.contains("apexcharts-legend-marker"))){var sn=parseInt(rn.target.getAttribute("rel"),10)-1,on=rn.target.getAttribute("data:collapsed")==="true",cn=this.w.config.chart.events.legendClick;typeof cn=="function"&&cn(this.ctx,sn,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,sn,this.w]);var un=this.w.config.legend.markers.onClick;typeof un=="function"&&rn.target.classList.contains("apexcharts-legend-marker")&&(un(this.ctx,sn,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,sn,this.w])),an.config.chart.type!=="treemap"&&an.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&an.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(sn,on)}}}]),ln}(),ba=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w;var an=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=an.globals.minX,this.maxX=an.globals.maxX}return s$1(ln,[{key:"createToolbar",value:function(){var rn=this,an=this.w,sn=function(){return document.createElement("div")},on=sn();if(on.setAttribute("class","apexcharts-toolbar"),on.style.top=an.config.chart.toolbar.offsetY+"px",on.style.right=3-an.config.chart.toolbar.offsetX+"px",an.globals.dom.elWrap.appendChild(on),this.elZoom=sn(),this.elZoomIn=sn(),this.elZoomOut=sn(),this.elPan=sn(),this.elSelection=sn(),this.elZoomReset=sn(),this.elMenuIcon=sn(),this.elMenu=sn(),this.elCustomIcons=[],this.t=an.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var cn=0;cn<this.t.customIcons.length;cn++)this.elCustomIcons.push(sn());var un=[],pn=function(vn,yn,wn){var An=vn.toLowerCase();rn.t[An]&&an.config.chart.zoom.enabled&&un.push({el:yn,icon:typeof rn.t[An]=="string"?rn.t[An]:wn,title:rn.localeValues[vn],class:"apexcharts-".concat(An,"-icon")})};pn("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>
`),pn("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 fn=function(vn){rn.t[vn]&&an.config.chart[vn].enabled&&un.push({el:vn==="zoom"?rn.elZoom:rn.elSelection,icon:typeof rn.t[vn]=="string"?rn.t[vn]:vn==="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:rn.localeValues[vn==="zoom"?"selectionZoom":"selection"],class:an.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(vn,"-icon")})};fn("zoom"),fn("selection"),this.t.pan&&an.config.chart.zoom.enabled&&un.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:an.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),pn("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&&un.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 mn=0;mn<this.elCustomIcons.length;mn++)un.push({el:this.elCustomIcons[mn],icon:this.t.customIcons[mn].icon,title:this.t.customIcons[mn].title,index:this.t.customIcons[mn].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[mn].class});un.forEach(function(vn,yn){vn.index&&v$2.moveIndexInArray(un,yn,vn.index)});for(var xn=0;xn<un.length;xn++)Mi.setAttrs(un[xn].el,{class:un[xn].class,title:un[xn].title}),un[xn].el.innerHTML=un[xn].icon,on.appendChild(un[xn].el);this._createHamburgerMenu(on),an.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):an.globals.panEnabled?this.elPan.classList.add(this.selectedClass):an.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(rn){this.elMenuItems=[],rn.appendChild(this.elMenu),Mi.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var an=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],sn=0;sn<an.length;sn++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[sn].innerHTML=an[sn].title,Mi.setAttrs(this.elMenuItems[sn],{class:"apexcharts-menu-item ".concat(an[sn].name),title:an[sn].title}),this.elMenu.appendChild(this.elMenuItems[sn])}},{key:"addToolbarEventListeners",value:function(){var rn=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(sn){sn.classList.contains("exportSVG")?sn.addEventListener("click",rn.handleDownload.bind(rn,"svg")):sn.classList.contains("exportPNG")?sn.addEventListener("click",rn.handleDownload.bind(rn,"png")):sn.classList.contains("exportCSV")&&sn.addEventListener("click",rn.handleDownload.bind(rn,"csv"))});for(var an=0;an<this.t.customIcons.length;an++)this.elCustomIcons[an].addEventListener("click",this.t.customIcons[an].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(rn){this.ctx.getSyncedCharts().forEach(function(an){an.ctx.toolbar.toggleOtherControls();var sn=rn==="selection"?an.ctx.toolbar.elSelection:an.ctx.toolbar.elZoom,on=rn==="selection"?"selectionEnabled":"zoomEnabled";an.w.globals[on]=!an.w.globals[on],sn.classList.contains(an.ctx.toolbar.selectedClass)?sn.classList.remove(an.ctx.toolbar.selectedClass):sn.classList.add(an.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var rn=this.w;this.elZoom||(this.elZoom=rn.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=rn.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=rn.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(rn){this.toggleOtherControls(),rn==="pan"?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var an=rn==="pan"?this.elPan:this.elZoom,sn=rn==="pan"?this.elZoom:this.elPan;an&&an.classList.add(this.selectedClass),sn&&sn.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(rn){rn.ctx.toolbar.toggleOtherControls(),rn.w.globals.panEnabled=!rn.w.globals.panEnabled,rn.ctx.toolbar.elPan.classList.contains(rn.ctx.toolbar.selectedClass)?rn.ctx.toolbar.elPan.classList.remove(rn.ctx.toolbar.selectedClass):rn.ctx.toolbar.elPan.classList.add(rn.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var rn=this,an=this.w;an.globals.panEnabled=!1,an.globals.zoomEnabled=!1,an.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(sn){sn&&sn.classList.remove(rn.selectedClass)})}},{key:"handleZoomIn",value:function(){var rn=this.w;rn.globals.isRangeBar&&(this.minX=rn.globals.minY,this.maxX=rn.globals.maxY);var an=(this.minX+this.maxX)/2,sn=(this.minX+an)/2,on=(this.maxX+an)/2,cn=this._getNewMinXMaxX(sn,on);rn.globals.disableZoomIn||this.zoomUpdateOptions(cn.minX,cn.maxX)}},{key:"handleZoomOut",value:function(){var rn=this.w;if(rn.globals.isRangeBar&&(this.minX=rn.globals.minY,this.maxX=rn.globals.maxY),!(rn.config.xaxis.type==="datetime"&&new Date(this.minX).getUTCFullYear()<1e3)){var an=(this.minX+this.maxX)/2,sn=this.minX-(an-this.minX),on=this.maxX-(an-this.maxX),cn=this._getNewMinXMaxX(sn,on);rn.globals.disableZoomOut||this.zoomUpdateOptions(cn.minX,cn.maxX)}}},{key:"_getNewMinXMaxX",value:function(rn,an){var sn=this.w.config.xaxis.convertedCatToNumeric;return{minX:sn?Math.floor(rn):rn,maxX:sn?Math.floor(an):an}}},{key:"zoomUpdateOptions",value:function(rn,an){var sn=this.w;if(rn!==void 0||an!==void 0){if(!(sn.config.xaxis.convertedCatToNumeric&&(rn<1&&(rn=1,an=sn.globals.dataPoints),an-rn<2))){var on={min:rn,max:an},cn=this.getBeforeZoomRange(on);cn&&(on=cn.xaxis);var un={xaxis:on},pn=v$2.clone(sn.globals.initialConfig.yaxis);sn.config.chart.group||(un.yaxis=pn),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(un,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(on,pn)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(rn,an){typeof this.ev.zoomed=="function"&&this.ev.zoomed(this.ctx,{xaxis:rn,yaxis:an})}},{key:"getBeforeZoomRange",value:function(rn,an){var sn=null;return typeof this.ev.beforeZoom=="function"&&(sn=this.ev.beforeZoom(this,{xaxis:rn,yaxis:an})),sn}},{key:"toggleMenu",value:function(){var rn=this;window.setTimeout(function(){rn.elMenu.classList.contains("apexcharts-menu-open")?rn.elMenu.classList.remove("apexcharts-menu-open"):rn.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(rn){var an=this.w,sn=new Ji(this.ctx);switch(rn){case"svg":sn.exportToSVG(this.ctx);break;case"png":sn.exportToPng(this.ctx);break;case"csv":sn.exportToCSV({series:an.config.series,columnDelimiter:an.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(rn){this.ctx.getSyncedCharts().forEach(function(an){var sn=an.w;if(sn.globals.lastXAxis.min=sn.globals.initialConfig.xaxis.min,sn.globals.lastXAxis.max=sn.globals.initialConfig.xaxis.max,an.updateHelpers.revertDefaultAxisMinMax(),typeof sn.config.chart.events.beforeResetZoom=="function"){var on=sn.config.chart.events.beforeResetZoom(an,sn);on&&an.updateHelpers.revertDefaultAxisMinMax(on)}typeof sn.config.chart.events.zoomed=="function"&&an.ctx.toolbar.zoomCallback({min:sn.config.xaxis.min,max:sn.config.xaxis.max}),sn.globals.zoomed=!1;var cn=an.ctx.series.emptyCollapsedSeries(v$2.clone(sn.globals.initialSeries));an.updateHelpers._updateSeries(cn,sn.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}}]),ln}(),ma=function(ln){h$1(an,ba);var rn=n$1(an);function an(sn){var on;return i$2(this,an),(on=rn.call(this,sn)).ctx=sn,on.w=sn.w,on.dragged=!1,on.graphics=new Mi(on.ctx),on.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend","wheel"],on.clientX=0,on.clientY=0,on.startX=0,on.endX=0,on.dragX=0,on.startY=0,on.endY=0,on.dragY=0,on.moveDirection="none",on.debounceTimer=null,on.debounceDelay=100,on.wheelDelay=400,on}return s$1(an,[{key:"init",value:function(sn){var on=this,cn=sn.xyRatios,un=this.w,pn=this;this.xyRatios=cn,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=un.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.constraints=new kt(0,0,un.globals.gridWidth,un.globals.gridHeight),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),un.globals.dom.Paper.add(this.zoomRect),un.globals.dom.Paper.add(this.selectionRect),un.config.chart.selection.type==="x"?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:un.globals.gridWidth,maxY:un.globals.gridHeight}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):un.config.chart.selection.type==="y"?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:un.globals.gridWidth}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=un.globals.dom.baseEl.querySelector("".concat(un.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(fn){on.hoverArea.addEventListener(fn,pn.svgMouseEvents.bind(pn,cn),{capture:!1,passive:!0})}),un.config.chart.zoom.enabled&&un.config.chart.zoom.allowMouseWheelZoom&&this.hoverArea.addEventListener("wheel",pn.mouseWheelEvent.bind(pn),{capture:!1,passive:!1})}},{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(sn,on){var cn=this.w,un=this.ctx.toolbar,pn=cn.globals.zoomEnabled?cn.config.chart.zoom.type:cn.config.chart.selection.type,fn=cn.config.chart.toolbar.autoSelected;if(on.shiftKey?(this.shiftWasPressed=!0,un.enableZoomPanFromToolbar(fn==="pan"?"zoom":"pan")):this.shiftWasPressed&&(un.enableZoomPanFromToolbar(fn),this.shiftWasPressed=!1),on.target){var mn,xn=on.target.classList;if(on.target.parentNode&&on.target.parentNode!==null&&(mn=on.target.parentNode.classList),!(xn.contains("apexcharts-legend-marker")||xn.contains("apexcharts-legend-text")||mn&&mn.contains("apexcharts-toolbar"))){if(this.clientX=on.type==="touchmove"||on.type==="touchstart"?on.touches[0].clientX:on.type==="touchend"?on.changedTouches[0].clientX:on.clientX,this.clientY=on.type==="touchmove"||on.type==="touchstart"?on.touches[0].clientY:on.type==="touchend"?on.changedTouches[0].clientY:on.clientY,on.type==="mousedown"&&on.which===1||on.type==="touchstart"){var vn=this.gridRect.getBoundingClientRect();this.startX=this.clientX-vn.left-cn.globals.barPadForNumericAxis,this.startY=this.clientY-vn.top,this.dragged=!1,this.w.globals.mousedown=!0}(on.type==="mousemove"&&on.which===1||on.type==="touchmove")&&(this.dragged=!0,cn.globals.panEnabled?(cn.globals.selection=null,this.w.globals.mousedown&&this.panDragging({context:this,zoomtype:pn,xyRatios:sn})):(this.w.globals.mousedown&&cn.globals.zoomEnabled||this.w.globals.mousedown&&cn.globals.selectionEnabled)&&(this.selection=this.selectionDrawing({context:this,zoomtype:pn}))),on.type!=="mouseup"&&on.type!=="touchend"&&on.type!=="mouseleave"||this.handleMouseUp({zoomtype:pn}),this.makeSelectionRectDraggable()}}}},{key:"handleMouseUp",value:function(sn){var on,cn=sn.zoomtype,un=sn.isResized,pn=this.w,fn=(on=this.gridRect)===null||on===void 0?void 0:on.getBoundingClientRect();fn&&(this.w.globals.mousedown||un)&&(this.endX=this.clientX-fn.left-pn.globals.barPadForNumericAxis,this.endY=this.clientY-fn.top,this.dragX=Math.abs(this.endX-this.startX),this.dragY=Math.abs(this.endY-this.startY),(pn.globals.zoomEnabled||pn.globals.selectionEnabled)&&this.selectionDrawn({context:this,zoomtype:cn}),pn.globals.panEnabled&&pn.config.xaxis.convertedCatToNumeric&&this.delayedPanScrolled()),pn.globals.zoomEnabled&&this.hideSelectionRect(this.selectionRect),this.dragged=!1,this.w.globals.mousedown=!1}},{key:"mouseWheelEvent",value:function(sn){var on=this,cn=this.w;sn.preventDefault();var un=Date.now();un-cn.globals.lastWheelExecution>this.wheelDelay&&(this.executeMouseWheelZoom(sn),cn.globals.lastWheelExecution=un),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(function(){un-cn.globals.lastWheelExecution>on.wheelDelay&&(on.executeMouseWheelZoom(sn),cn.globals.lastWheelExecution=un)},this.debounceDelay)}},{key:"executeMouseWheelZoom",value:function(sn){var on,cn=this.w;this.minX=cn.globals.isRangeBar?cn.globals.minY:cn.globals.minX,this.maxX=cn.globals.isRangeBar?cn.globals.maxY:cn.globals.maxX;var un=(on=this.gridRect)===null||on===void 0?void 0:on.getBoundingClientRect();if(un){var pn,fn,mn,xn=(sn.clientX-un.left)/un.width,vn=this.minX,yn=this.maxX,wn=yn-vn;if(sn.deltaY<0){var An=vn+xn*wn;fn=An-(pn=.5*wn)/2,mn=An+pn/2}else fn=vn-(pn=1.5*wn)/2,mn=yn+pn/2;if(!cn.globals.isRangeBar){fn=Math.max(fn,cn.globals.initialMinX),mn=Math.min(mn,cn.globals.initialMaxX);var Cn=.01*(cn.globals.initialMaxX-cn.globals.initialMinX);if(mn-fn<Cn){var kn=(fn+mn)/2;fn=kn-Cn/2,mn=kn+Cn/2}}var Mn=this._getNewMinXMaxX(fn,mn);isNaN(Mn.minX)||isNaN(Mn.maxX)||this.zoomUpdateOptions(Mn.minX,Mn.maxX)}}},{key:"makeSelectionRectDraggable",value:function(){var sn=this,on=this.w;if(this.selectionRect){var cn=this.selectionRect.node.getBoundingClientRect();cn.width>0&&cn.height>0&&(this.selectionRect.select(!1).resize(!1),this.selectionRect.select({createRot:function(){},updateRot:function(){},createHandle:function(un,pn,fn,mn,xn){return xn==="l"||xn==="r"?un.circle(8).css({"stroke-width":1,stroke:"#333",fill:"#fff"}):un.circle(0)},updateHandle:function(un,pn){return un.center(pn[0],pn[1])}}).resize().on("resize",function(){var un=on.globals.zoomEnabled?on.config.chart.zoom.type:on.config.chart.selection.type;sn.handleMouseUp({zoomtype:un,isResized:!0})}))}}},{key:"preselectedSelection",value:function(){var sn=this.w,on=this.xyRatios;if(!sn.globals.zoomEnabled){if(sn.globals.selection!==void 0&&sn.globals.selection!==null)this.drawSelectionRect(u$2(u$2({},sn.globals.selection),{},{translateX:sn.globals.translateX,translateY:sn.globals.translateY}));else if(sn.config.chart.selection.xaxis.min!==void 0&&sn.config.chart.selection.xaxis.max!==void 0){var cn=(sn.config.chart.selection.xaxis.min-sn.globals.minX)/on.xRatio,un=sn.globals.gridWidth-(sn.globals.maxX-sn.config.chart.selection.xaxis.max)/on.xRatio-cn;sn.globals.isRangeBar&&(cn=(sn.config.chart.selection.xaxis.min-sn.globals.yAxisScale[0].niceMin)/on.invertedYRatio,un=(sn.config.chart.selection.xaxis.max-sn.config.chart.selection.xaxis.min)/on.invertedYRatio);var pn={x:cn,y:0,width:un,height:sn.globals.gridHeight,translateX:sn.globals.translateX,translateY:sn.globals.translateY,selectionEnabled:!0};this.drawSelectionRect(pn),this.makeSelectionRectDraggable(),typeof sn.config.chart.events.selection=="function"&&sn.config.chart.events.selection(this.ctx,{xaxis:{min:sn.config.chart.selection.xaxis.min,max:sn.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(sn){var on=sn.x,cn=sn.y,un=sn.width,pn=sn.height,fn=sn.translateX,mn=fn===void 0?0:fn,xn=sn.translateY,vn=xn===void 0?0:xn,yn=this.w,wn=this.zoomRect,An=this.selectionRect;if(this.dragged||yn.globals.selection!==null){var Cn={transform:"translate("+mn+", "+vn+")"};yn.globals.zoomEnabled&&this.dragged&&(un<0&&(un=1),wn.attr({x:on,y:cn,width:un,height:pn,fill:yn.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":yn.config.chart.zoom.zoomedArea.fill.opacity,stroke:yn.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":yn.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":yn.config.chart.zoom.zoomedArea.stroke.opacity}),Mi.setAttrs(wn.node,Cn)),yn.globals.selectionEnabled&&(An.attr({x:on,y:cn,width:un>0?un:0,height:pn>0?pn:0,fill:yn.config.chart.selection.fill.color,"fill-opacity":yn.config.chart.selection.fill.opacity,stroke:yn.config.chart.selection.stroke.color,"stroke-width":yn.config.chart.selection.stroke.width,"stroke-dasharray":yn.config.chart.selection.stroke.dashArray,"stroke-opacity":yn.config.chart.selection.stroke.opacity}),Mi.setAttrs(An.node,Cn))}}},{key:"hideSelectionRect",value:function(sn){sn&&sn.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(sn){var on=sn.context,cn=sn.zoomtype,un=this.w,pn=on,fn=this.gridRect.getBoundingClientRect(),mn=pn.startX-1,xn=pn.startY,vn=!1,yn=!1,wn=pn.clientX-fn.left-un.globals.barPadForNumericAxis,An=pn.clientY-fn.top,Cn=wn-mn,kn=An-xn,Mn={translateX:un.globals.translateX,translateY:un.globals.translateY};return Math.abs(Cn+mn)>un.globals.gridWidth?Cn=un.globals.gridWidth-mn:wn<0&&(Cn=mn),mn>wn&&(vn=!0,Cn=Math.abs(Cn)),xn>An&&(yn=!0,kn=Math.abs(kn)),Mn=u$2(u$2({},Mn=cn==="x"?{x:vn?mn-Cn:mn,y:0,width:Cn,height:un.globals.gridHeight}:cn==="y"?{x:0,y:yn?xn-kn:xn,width:un.globals.gridWidth,height:kn}:{x:vn?mn-Cn:mn,y:yn?xn-kn:xn,width:Cn,height:kn}),{},{translateX:un.globals.translateX,translateY:un.globals.translateY}),pn.drawSelectionRect(Mn),pn.selectionDragging("resizing"),Mn}},{key:"selectionDragging",value:function(sn,on){var cn=this,un=this.w;if(on){on.preventDefault();var pn=on.detail,fn=pn.handler,mn=pn.box,xn=mn.x,vn=mn.y;xn<this.constraints.x&&(xn=this.constraints.x),vn<this.constraints.y&&(vn=this.constraints.y),mn.x2>this.constraints.x2&&(xn=this.constraints.x2-mn.w),mn.y2>this.constraints.y2&&(vn=this.constraints.y2-mn.h),fn.move(xn,vn);var yn=this.xyRatios,wn=this.selectionRect,An=0;sn==="resizing"&&(An=30);var Cn=function(Mn){return parseFloat(wn.node.getAttribute(Mn))},kn={x:Cn("x"),y:Cn("y"),width:Cn("width"),height:Cn("height")};un.globals.selection=kn,typeof un.config.chart.events.selection=="function"&&un.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var Mn,Tn,On,Pn,Nn=cn.gridRect.getBoundingClientRect(),In=wn.node.getBoundingClientRect();un.globals.isRangeBar?(Mn=un.globals.yAxisScale[0].niceMin+(In.left-Nn.left)*yn.invertedYRatio,Tn=un.globals.yAxisScale[0].niceMin+(In.right-Nn.left)*yn.invertedYRatio,On=0,Pn=1):(Mn=un.globals.xAxisScale.niceMin+(In.left-Nn.left)*yn.xRatio,Tn=un.globals.xAxisScale.niceMin+(In.right-Nn.left)*yn.xRatio,On=un.globals.yAxisScale[0].niceMin+(Nn.bottom-In.bottom)*yn.yRatio[0],Pn=un.globals.yAxisScale[0].niceMax-(In.top-Nn.top)*yn.yRatio[0]);var jn={xaxis:{min:Mn,max:Tn},yaxis:{min:On,max:Pn}};un.config.chart.events.selection(cn.ctx,jn),un.config.chart.brush.enabled&&un.config.chart.events.brushScrolled!==void 0&&un.config.chart.events.brushScrolled(cn.ctx,jn)},An))}}},{key:"selectionDrawn",value:function(sn){var on,cn,un=sn.context,pn=sn.zoomtype,fn=this.w,mn=un,xn=this.xyRatios,vn=this.ctx.toolbar,yn=fn.globals.zoomEnabled?mn.zoomRect.node.getBoundingClientRect():mn.selectionRect.node.getBoundingClientRect(),wn=mn.gridRect.getBoundingClientRect(),An=yn.left-wn.left-fn.globals.barPadForNumericAxis,Cn=yn.right-wn.left-fn.globals.barPadForNumericAxis,kn=yn.top-wn.top,Mn=yn.bottom-wn.top;fn.globals.isRangeBar?(on=fn.globals.yAxisScale[0].niceMin+An*xn.invertedYRatio,cn=fn.globals.yAxisScale[0].niceMin+Cn*xn.invertedYRatio):(on=fn.globals.xAxisScale.niceMin+An*xn.xRatio,cn=fn.globals.xAxisScale.niceMin+Cn*xn.xRatio);var Tn=[],On=[];if(fn.config.yaxis.forEach(function(Yn,Qn){var ir=fn.globals.seriesYAxisMap[Qn][0],er=fn.globals.yAxisScale[Qn].niceMax-xn.yRatio[ir]*kn,tr=fn.globals.yAxisScale[Qn].niceMax-xn.yRatio[ir]*Mn;Tn.push(er),On.push(tr)}),mn.dragged&&(mn.dragX>10||mn.dragY>10)&&on!==cn){if(fn.globals.zoomEnabled){var Pn=v$2.clone(fn.globals.initialConfig.yaxis),Nn=v$2.clone(fn.globals.initialConfig.xaxis);if(fn.globals.zoomed=!0,fn.config.xaxis.convertedCatToNumeric&&(on=Math.floor(on),cn=Math.floor(cn),on<1&&(on=1,cn=fn.globals.dataPoints),cn-on<2&&(cn=on+1)),pn!=="xy"&&pn!=="x"||(Nn={min:on,max:cn}),pn!=="xy"&&pn!=="y"||Pn.forEach(function(Yn,Qn){Pn[Qn].min=On[Qn],Pn[Qn].max=Tn[Qn]}),vn){var In=vn.getBeforeZoomRange(Nn,Pn);In&&(Nn=In.xaxis?In.xaxis:Nn,Pn=In.yaxis?In.yaxis:Pn)}var jn={xaxis:Nn};fn.config.chart.group||(jn.yaxis=Pn),mn.ctx.updateHelpers._updateOptions(jn,!1,mn.w.config.chart.animations.dynamicAnimation.enabled),typeof fn.config.chart.events.zoomed=="function"&&vn.zoomCallback(Nn,Pn)}else if(fn.globals.selectionEnabled){var Fn,Un=null;Fn={min:on,max:cn},pn!=="xy"&&pn!=="y"||(Un=v$2.clone(fn.config.yaxis)).forEach(function(Yn,Qn){Un[Qn].min=On[Qn],Un[Qn].max=Tn[Qn]}),fn.globals.selection=mn.selection,typeof fn.config.chart.events.selection=="function"&&fn.config.chart.events.selection(mn.ctx,{xaxis:Fn,yaxis:Un})}}}},{key:"panDragging",value:function(sn){var on=sn.context,cn=this.w,un=on;if(cn.globals.lastClientPosition.x!==void 0){var pn=cn.globals.lastClientPosition.x-un.clientX,fn=cn.globals.lastClientPosition.y-un.clientY;Math.abs(pn)>Math.abs(fn)&&pn>0?this.moveDirection="left":Math.abs(pn)>Math.abs(fn)&&pn<0?this.moveDirection="right":Math.abs(fn)>Math.abs(pn)&&fn>0?this.moveDirection="up":Math.abs(fn)>Math.abs(pn)&&fn<0&&(this.moveDirection="down")}cn.globals.lastClientPosition={x:un.clientX,y:un.clientY};var mn=cn.globals.isRangeBar?cn.globals.minY:cn.globals.minX,xn=cn.globals.isRangeBar?cn.globals.maxY:cn.globals.maxX;cn.config.xaxis.convertedCatToNumeric||un.panScrolled(mn,xn)}},{key:"delayedPanScrolled",value:function(){var sn=this.w,on=sn.globals.minX,cn=sn.globals.maxX,un=(sn.globals.maxX-sn.globals.minX)/2;this.moveDirection==="left"?(on=sn.globals.minX+un,cn=sn.globals.maxX+un):this.moveDirection==="right"&&(on=sn.globals.minX-un,cn=sn.globals.maxX-un),on=Math.floor(on),cn=Math.floor(cn),this.updateScrolledChart({xaxis:{min:on,max:cn}},on,cn)}},{key:"panScrolled",value:function(sn,on){var cn=this.w,un=this.xyRatios,pn=v$2.clone(cn.globals.initialConfig.yaxis),fn=un.xRatio,mn=cn.globals.minX,xn=cn.globals.maxX;cn.globals.isRangeBar&&(fn=un.invertedYRatio,mn=cn.globals.minY,xn=cn.globals.maxY),this.moveDirection==="left"?(sn=mn+cn.globals.gridWidth/15*fn,on=xn+cn.globals.gridWidth/15*fn):this.moveDirection==="right"&&(sn=mn-cn.globals.gridWidth/15*fn,on=xn-cn.globals.gridWidth/15*fn),cn.globals.isRangeBar||(sn<cn.globals.initialMinX||on>cn.globals.initialMaxX)&&(sn=mn,on=xn);var vn={xaxis:{min:sn,max:on}};cn.config.chart.group||(vn.yaxis=pn),this.updateScrolledChart(vn,sn,on)}},{key:"updateScrolledChart",value:function(sn,on,cn){var un=this.w;this.ctx.updateHelpers._updateOptions(sn,!1,!1),typeof un.config.chart.events.scrolled=="function"&&un.config.chart.events.scrolled(this.ctx,{xaxis:{min:on,max:cn}})}}]),an}(),va=function(){function ln(rn){i$2(this,ln),this.w=rn.w,this.ttCtx=rn,this.ctx=rn.ctx}return s$1(ln,[{key:"getNearestValues",value:function(rn){var an=rn.hoverArea,sn=rn.elGrid,on=rn.clientX,cn=rn.clientY,un=this.w,pn=sn.getBoundingClientRect(),fn=pn.width,mn=pn.height,xn=fn/(un.globals.dataPoints-1),vn=mn/un.globals.dataPoints,yn=this.hasBars();!un.globals.comboCharts&&!yn||un.config.xaxis.convertedCatToNumeric||(xn=fn/un.globals.dataPoints);var wn=on-pn.left-un.globals.barPadForNumericAxis,An=cn-pn.top;wn<0||An<0||wn>fn||An>mn?(an.classList.remove("hovering-zoom"),an.classList.remove("hovering-pan")):un.globals.zoomEnabled?(an.classList.remove("hovering-pan"),an.classList.add("hovering-zoom")):un.globals.panEnabled&&(an.classList.remove("hovering-zoom"),an.classList.add("hovering-pan"));var Cn=Math.round(wn/xn),kn=Math.floor(An/vn);yn&&!un.config.xaxis.convertedCatToNumeric&&(Cn=Math.ceil(wn/xn),Cn-=1);var Mn=null,Tn=null,On=un.globals.seriesXvalues.map(function(Fn){return Fn.filter(function(Un){return v$2.isNumber(Un)})}),Pn=un.globals.seriesYvalues.map(function(Fn){return Fn.filter(function(Un){return v$2.isNumber(Un)})});if(un.globals.isXNumeric){var Nn=this.ttCtx.getElGrid().getBoundingClientRect(),In=wn*(Nn.width/fn),jn=An*(Nn.height/mn);Mn=(Tn=this.closestInMultiArray(In,jn,On,Pn)).index,Cn=Tn.j,Mn!==null&&un.globals.hasNullValues&&(On=un.globals.seriesXvalues[Mn],Cn=(Tn=this.closestInArray(In,On)).j)}return un.globals.capturedSeriesIndex=Mn===null?-1:Mn,(!Cn||Cn<1)&&(Cn=0),un.globals.isBarHorizontal?un.globals.capturedDataPointIndex=kn:un.globals.capturedDataPointIndex=Cn,{capturedSeries:Mn,j:un.globals.isBarHorizontal?kn:Cn,hoverX:wn,hoverY:An}}},{key:"getFirstActiveXArray",value:function(rn){for(var an=this.w,sn=0,on=rn.map(function(un,pn){return un.length>0?pn:-1}),cn=0;cn<on.length;cn++)if(on[cn]!==-1&&an.globals.collapsedSeriesIndices.indexOf(cn)===-1&&an.globals.ancillaryCollapsedSeriesIndices.indexOf(cn)===-1){sn=on[cn];break}return sn}},{key:"closestInMultiArray",value:function(rn,an,sn,on){for(var cn,un=this.w,pn=1/0,fn=null,mn=null,xn=0;xn<sn.length;xn++)if(cn=xn,un.globals.collapsedSeriesIndices.indexOf(cn)===-1&&un.globals.ancillaryCollapsedSeriesIndices.indexOf(cn)===-1)for(var vn=sn[xn],yn=on[xn],wn=Math.min(vn.length,yn.length),An=0;An<wn;An++){var Cn=rn-vn[An],kn=Math.sqrt(Cn*Cn);if(!un.globals.allSeriesHasEqualX){var Mn=an-yn[An];kn=Math.sqrt(Cn*Cn+Mn*Mn)}kn<pn&&(pn=kn,fn=xn,mn=An)}return{index:fn,j:mn}}},{key:"closestInArray",value:function(rn,an){for(var sn=an[0],on=null,cn=Math.abs(rn-sn),un=0;un<an.length;un++){var pn=Math.abs(rn-an[un]);pn<cn&&(cn=pn,on=un)}return{j:on}}},{key:"isXoverlap",value:function(rn){var an=[],sn=this.w.globals.seriesX.filter(function(cn){return cn[0]!==void 0});if(sn.length>0)for(var on=0;on<sn.length-1;on++)sn[on][rn]!==void 0&&sn[on+1][rn]!==void 0&&sn[on][rn]!==sn[on+1][rn]&&an.push("unEqual");return an.length===0}},{key:"isInitialSeriesSameLen",value:function(){for(var rn=!0,an=this.w.globals.initialSeries,sn=0;sn<an.length-1;sn++)if(an[sn].data.length!==an[sn+1].data.length){rn=!1;break}return rn}},{key:"getBarsHeight",value:function(rn){return f$2(rn).reduce(function(an,sn){return an+sn.getBBox().height},0)}},{key:"getElMarkers",value:function(rn){return typeof rn=="number"?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(rn,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var rn=this,an=arguments.length>0&&arguments[0]!==void 0&&arguments[0],sn=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");sn=f$2(sn),an&&(sn=sn.filter(function(cn){var un=Number(cn.getAttribute("data:realIndex"));return rn.w.globals.collapsedSeriesIndices.indexOf(un)===-1})),sn.sort(function(cn,un){var pn=Number(cn.getAttribute("data:realIndex")),fn=Number(un.getAttribute("data:realIndex"));return fn<pn?1:fn>pn?-1:0});var on=[];return sn.forEach(function(cn){on.push(cn.querySelector(".apexcharts-marker"))}),on}},{key:"hasMarkers",value:function(rn){return this.getElMarkers(rn).length>0}},{key:"getPathFromPoint",value:function(rn,an){var sn=Number(rn.getAttribute("cx")),on=Number(rn.getAttribute("cy")),cn=rn.getAttribute("shape");return new Mi(this.ctx).getMarkerPath(sn,on,cn,an)}},{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(rn){var an=this.w,sn=an.config.markers.hover.size;return sn===void 0&&(sn=an.globals.markers.size[rn]+an.config.markers.hover.sizeOffset),sn}},{key:"toggleAllTooltipSeriesGroups",value:function(rn){var an=this.w,sn=this.ttCtx;sn.allTooltipSeriesGroups.length===0&&(sn.allTooltipSeriesGroups=an.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var on=sn.allTooltipSeriesGroups,cn=0;cn<on.length;cn++)rn==="enable"?(on[cn].classList.add("apexcharts-active"),on[cn].style.display=an.config.tooltip.items.display):(on[cn].classList.remove("apexcharts-active"),on[cn].style.display="none")}}]),ln}(),ya=function(){function ln(rn){i$2(this,ln),this.w=rn.w,this.ctx=rn.ctx,this.ttCtx=rn,this.tooltipUtil=new va(rn)}return s$1(ln,[{key:"drawSeriesTexts",value:function(rn){var an=rn.shared,sn=an===void 0||an,on=rn.ttItems,cn=rn.i,un=cn===void 0?0:cn,pn=rn.j,fn=pn===void 0?null:pn,mn=rn.y1,xn=rn.y2,vn=rn.e,yn=this.w;yn.config.tooltip.custom!==void 0?this.handleCustomTooltip({i:un,j:fn,y1:mn,y2:xn,w:yn}):this.toggleActiveInactiveSeries(sn,un);var wn=this.getValuesToPrint({i:un,j:fn});this.printLabels({i:un,j:fn,values:wn,ttItems:on,shared:sn,e:vn});var An=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=An.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=An.getBoundingClientRect().height}},{key:"printLabels",value:function(rn){var an,sn=this,on=rn.i,cn=rn.j,un=rn.values,pn=rn.ttItems,fn=rn.shared,mn=rn.e,xn=this.w,vn=[],yn=function(Nn){return xn.globals.seriesGoals[Nn]&&xn.globals.seriesGoals[Nn][cn]&&Array.isArray(xn.globals.seriesGoals[Nn][cn])},wn=un.xVal,An=un.zVal,Cn=un.xAxisTTVal,kn="",Mn=xn.globals.colors[on];cn!==null&&xn.config.plotOptions.bar.distributed&&(Mn=xn.globals.colors[cn]);for(var Tn=function(Nn,In){var jn=sn.getFormatters(on);kn=sn.getSeriesName({fn:jn.yLbTitleFormatter,index:on,seriesIndex:on,j:cn}),xn.config.chart.type==="treemap"&&(kn=jn.yLbTitleFormatter(String(xn.config.series[on].data[cn].x),{series:xn.globals.series,seriesIndex:on,dataPointIndex:cn,w:xn}));var Fn=xn.config.tooltip.inverseOrder?In:Nn;if(xn.globals.axisCharts){var Un=function(ir){var er,tr,vr,rr;return xn.globals.isRangeData?jn.yLbFormatter((er=xn.globals.seriesRangeStart)===null||er===void 0||(tr=er[ir])===null||tr===void 0?void 0:tr[cn],{series:xn.globals.seriesRangeStart,seriesIndex:ir,dataPointIndex:cn,w:xn})+" - "+jn.yLbFormatter((vr=xn.globals.seriesRangeEnd)===null||vr===void 0||(rr=vr[ir])===null||rr===void 0?void 0:rr[cn],{series:xn.globals.seriesRangeEnd,seriesIndex:ir,dataPointIndex:cn,w:xn}):jn.yLbFormatter(xn.globals.series[ir][cn],{series:xn.globals.series,seriesIndex:ir,dataPointIndex:cn,w:xn})};if(fn)jn=sn.getFormatters(Fn),kn=sn.getSeriesName({fn:jn.yLbTitleFormatter,index:Fn,seriesIndex:on,j:cn}),Mn=xn.globals.colors[Fn],an=Un(Fn),yn(Fn)&&(vn=xn.globals.seriesGoals[Fn][cn].map(function(ir){return{attrs:ir,val:jn.yLbFormatter(ir.value,{seriesIndex:Fn,dataPointIndex:cn,w:xn})}}));else{var Yn,Qn=mn==null||(Yn=mn.target)===null||Yn===void 0?void 0:Yn.getAttribute("fill");Qn&&(Qn.indexOf("url")!==-1?Qn.indexOf("Pattern")!==-1&&(Mn=xn.globals.dom.baseEl.querySelector(Qn.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke")):Mn=Qn),an=Un(on),yn(on)&&Array.isArray(xn.globals.seriesGoals[on][cn])&&(vn=xn.globals.seriesGoals[on][cn].map(function(ir){return{attrs:ir,val:jn.yLbFormatter(ir.value,{seriesIndex:on,dataPointIndex:cn,w:xn})}}))}}cn===null&&(an=jn.yLbFormatter(xn.globals.series[on],u$2(u$2({},xn),{},{seriesIndex:on,dataPointIndex:on}))),sn.DOMHandling({i:on,t:Fn,j:cn,ttItems:pn,values:{val:an,goalVals:vn,xVal:wn,xAxisTTVal:Cn,zVal:An},seriesName:kn,shared:fn,pColor:Mn})},On=0,Pn=xn.globals.series.length-1;On<xn.globals.series.length;On++,Pn--)Tn(On,Pn)}},{key:"getFormatters",value:function(rn){var an,sn=this.w,on=sn.globals.yLabelFormatters[rn];return sn.globals.ttVal!==void 0?Array.isArray(sn.globals.ttVal)?(on=sn.globals.ttVal[rn]&&sn.globals.ttVal[rn].formatter,an=sn.globals.ttVal[rn]&&sn.globals.ttVal[rn].title&&sn.globals.ttVal[rn].title.formatter):(on=sn.globals.ttVal.formatter,typeof sn.globals.ttVal.title.formatter=="function"&&(an=sn.globals.ttVal.title.formatter)):an=sn.config.tooltip.y.title.formatter,typeof on!="function"&&(on=sn.globals.yLabelFormatters[0]?sn.globals.yLabelFormatters[0]:function(cn){return cn}),typeof an!="function"&&(an=function(cn){return cn?cn+": ":""}),{yLbFormatter:on,yLbTitleFormatter:an}}},{key:"getSeriesName",value:function(rn){var an=rn.fn,sn=rn.index,on=rn.seriesIndex,cn=rn.j,un=this.w;return an(String(un.globals.seriesNames[sn]),{series:un.globals.series,seriesIndex:on,dataPointIndex:cn,w:un})}},{key:"DOMHandling",value:function(rn){rn.i;var an=rn.t,sn=rn.j,on=rn.ttItems,cn=rn.values,un=rn.seriesName,pn=rn.shared,fn=rn.pColor,mn=this.w,xn=this.ttCtx,vn=cn.val,yn=cn.goalVals,wn=cn.xVal,An=cn.xAxisTTVal,Cn=cn.zVal,kn=null;kn=on[an].children,mn.config.tooltip.fillSeriesColor&&(on[an].style.color=fn,kn[0].style.display="none"),xn.showTooltipTitle&&(xn.tooltipTitle===null&&(xn.tooltipTitle=mn.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),xn.tooltipTitle.innerHTML=wn),xn.isXAxisTooltipEnabled&&(xn.xaxisTooltipText.innerHTML=An!==""?An:wn);var Mn=on[an].querySelector(".apexcharts-tooltip-text-y-label");Mn&&(Mn.innerHTML=un||"");var Tn=on[an].querySelector(".apexcharts-tooltip-text-y-value");Tn&&(Tn.innerHTML=vn!==void 0?vn:""),kn[0]&&kn[0].classList.contains("apexcharts-tooltip-marker")&&(mn.config.tooltip.marker.fillColors&&Array.isArray(mn.config.tooltip.marker.fillColors)&&(fn=mn.config.tooltip.marker.fillColors[an]),kn[0].style.color=fn),mn.config.tooltip.marker.show||(kn[0].style.display="none");var On=on[an].querySelector(".apexcharts-tooltip-text-goals-label"),Pn=on[an].querySelector(".apexcharts-tooltip-text-goals-value");if(yn.length&&mn.globals.seriesGoals[an]){var Nn=function(){var Fn="<div>",Un="<div>";yn.forEach(function(Yn,Qn){Fn+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(Yn.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(Yn.attrs.name,"</div>"),Un+="<div>".concat(Yn.val,"</div>")}),On.innerHTML=Fn+"</div>",Pn.innerHTML=Un+"</div>"};pn?mn.globals.seriesGoals[an][sn]&&Array.isArray(mn.globals.seriesGoals[an][sn])?Nn():(On.innerHTML="",Pn.innerHTML=""):Nn()}else On.innerHTML="",Pn.innerHTML="";if(Cn!==null&&(on[an].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=mn.config.tooltip.z.title,on[an].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=Cn!==void 0?Cn:""),pn&&kn[0]){if(mn.config.tooltip.hideEmptySeries){var In=on[an].querySelector(".apexcharts-tooltip-marker"),jn=on[an].querySelector(".apexcharts-tooltip-text");parseFloat(vn)==0?(In.style.display="none",jn.style.display="none"):(In.style.display="block",jn.style.display="block")}vn==null||mn.globals.ancillaryCollapsedSeriesIndices.indexOf(an)>-1||mn.globals.collapsedSeriesIndices.indexOf(an)>-1||Array.isArray(xn.tConfig.enabledOnSeries)&&xn.tConfig.enabledOnSeries.indexOf(an)===-1?kn[0].parentNode.style.display="none":kn[0].parentNode.style.display=mn.config.tooltip.items.display}else Array.isArray(xn.tConfig.enabledOnSeries)&&xn.tConfig.enabledOnSeries.indexOf(an)===-1&&(kn[0].parentNode.style.display="none")}},{key:"toggleActiveInactiveSeries",value:function(rn,an){var sn=this.w;if(rn)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var on=sn.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group-".concat(an));on&&(on.classList.add("apexcharts-active"),on.style.display=sn.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(rn){var an=rn.i,sn=rn.j,on=this.w,cn=this.ctx.series.filteredSeriesX(),un="",pn="",fn=null,mn=null,xn={series:on.globals.series,seriesIndex:an,dataPointIndex:sn,w:on},vn=on.globals.ttZFormatter;sn===null?mn=on.globals.series[an]:on.globals.isXNumeric&&on.config.chart.type!=="treemap"?(un=cn[an][sn],cn[an].length===0&&(un=cn[this.tooltipUtil.getFirstActiveXArray(cn)][sn])):un=new $i(this.ctx).isFormatXY()?on.config.series[an].data[sn]!==void 0?on.config.series[an].data[sn].x:"":on.globals.labels[sn]!==void 0?on.globals.labels[sn]:"";var yn=un;return on.globals.isXNumeric&&on.config.xaxis.type==="datetime"?un=new Xi(this.ctx).xLabelFormat(on.globals.ttKeyFormatter,yn,yn,{i:void 0,dateFormatter:new zi(this.ctx).formatDate,w:this.w}):un=on.globals.isBarHorizontal?on.globals.yLabelFormatters[0](yn,xn):on.globals.xLabelFormatter(yn,xn),on.config.tooltip.x.formatter!==void 0&&(un=on.globals.ttKeyFormatter(yn,xn)),on.globals.seriesZ.length>0&&on.globals.seriesZ[an].length>0&&(fn=vn(on.globals.seriesZ[an][sn],on)),pn=typeof on.config.xaxis.tooltip.formatter=="function"?on.globals.xaxisTooltipFormatter(yn,xn):un,{val:Array.isArray(mn)?mn.join(" "):mn,xVal:Array.isArray(un)?un.join(" "):un,xAxisTTVal:Array.isArray(pn)?pn.join(" "):pn,zVal:fn}}},{key:"handleCustomTooltip",value:function(rn){var an=rn.i,sn=rn.j,on=rn.y1,cn=rn.y2,un=rn.w,pn=this.ttCtx.getElTooltip(),fn=un.config.tooltip.custom;Array.isArray(fn)&&fn[an]&&(fn=fn[an]);var mn=fn({ctx:this.ctx,series:un.globals.series,seriesIndex:an,dataPointIndex:sn,y1:on,y2:cn,w:un});typeof mn=="string"?pn.innerHTML=mn:(mn instanceof Element||typeof mn.nodeName=="string")&&(pn.innerHTML="",pn.appendChild(mn.cloneNode(!0)))}}]),ln}(),wa=function(){function ln(rn){i$2(this,ln),this.ttCtx=rn,this.ctx=rn.ctx,this.w=rn.w}return s$1(ln,[{key:"moveXCrosshairs",value:function(rn){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,sn=this.ttCtx,on=this.w,cn=sn.getElXCrosshairs(),un=rn-sn.xcrosshairsWidth/2,pn=on.globals.labels.slice().length;if(an!==null&&(un=on.globals.gridWidth/pn*an),cn===null||on.globals.isBarHorizontal||(cn.setAttribute("x",un),cn.setAttribute("x1",un),cn.setAttribute("x2",un),cn.setAttribute("y2",on.globals.gridHeight),cn.classList.add("apexcharts-active")),un<0&&(un=0),un>on.globals.gridWidth&&(un=on.globals.gridWidth),sn.isXAxisTooltipEnabled){var fn=un;on.config.xaxis.crosshairs.width!=="tickWidth"&&on.config.xaxis.crosshairs.width!=="barWidth"||(fn=un+sn.xcrosshairsWidth/2),this.moveXAxisTooltip(fn)}}},{key:"moveYCrosshairs",value:function(rn){var an=this.ttCtx;an.ycrosshairs!==null&&Mi.setAttrs(an.ycrosshairs,{y1:rn,y2:rn}),an.ycrosshairsHidden!==null&&Mi.setAttrs(an.ycrosshairsHidden,{y1:rn,y2:rn})}},{key:"moveXAxisTooltip",value:function(rn){var an=this.w,sn=this.ttCtx;if(sn.xaxisTooltip!==null&&sn.xcrosshairsWidth!==0){sn.xaxisTooltip.classList.add("apexcharts-active");var on=sn.xaxisOffY+an.config.xaxis.tooltip.offsetY+an.globals.translateY+1+an.config.xaxis.offsetY;if(rn-=sn.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(rn)){rn+=an.globals.translateX;var cn;cn=new Mi(this.ctx).getTextRects(sn.xaxisTooltipText.innerHTML),sn.xaxisTooltipText.style.minWidth=cn.width+"px",sn.xaxisTooltip.style.left=rn+"px",sn.xaxisTooltip.style.top=on+"px"}}}},{key:"moveYAxisTooltip",value:function(rn){var an=this.w,sn=this.ttCtx;sn.yaxisTTEls===null&&(sn.yaxisTTEls=an.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var on=parseInt(sn.ycrosshairsHidden.getAttribute("y1"),10),cn=an.globals.translateY+on,un=sn.yaxisTTEls[rn].getBoundingClientRect().height,pn=an.globals.translateYAxisX[rn]-2;an.config.yaxis[rn].opposite&&(pn-=26),cn-=un/2,an.globals.ignoreYAxisIndexes.indexOf(rn)===-1?(sn.yaxisTTEls[rn].classList.add("apexcharts-active"),sn.yaxisTTEls[rn].style.top=cn+"px",sn.yaxisTTEls[rn].style.left=pn+an.config.yaxis[rn].tooltip.offsetX+"px"):sn.yaxisTTEls[rn].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(rn,an){var sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,on=this.w,cn=this.ttCtx,un=cn.getElTooltip(),pn=cn.tooltipRect,fn=sn!==null?parseFloat(sn):1,mn=parseFloat(rn)+fn+5,xn=parseFloat(an)+fn/2;if(mn>on.globals.gridWidth/2&&(mn=mn-pn.ttWidth-fn-10),mn>on.globals.gridWidth-pn.ttWidth-10&&(mn=on.globals.gridWidth-pn.ttWidth),mn<-20&&(mn=-20),on.config.tooltip.followCursor){var vn=cn.getElGrid().getBoundingClientRect();(mn=cn.e.clientX-vn.left)>on.globals.gridWidth/2&&(mn-=cn.tooltipRect.ttWidth),(xn=cn.e.clientY+on.globals.translateY-vn.top)>on.globals.gridHeight/2&&(xn-=cn.tooltipRect.ttHeight)}else on.globals.isBarHorizontal||pn.ttHeight/2+xn>on.globals.gridHeight&&(xn=on.globals.gridHeight-pn.ttHeight+on.globals.translateY);isNaN(mn)||(mn+=on.globals.translateX,un.style.left=mn+"px",un.style.top=xn+"px")}},{key:"moveMarkers",value:function(rn,an){var sn=this.w,on=this.ttCtx;if(sn.globals.markers.size[rn]>0)for(var cn=sn.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(rn,"'] .apexcharts-marker")),un=0;un<cn.length;un++)parseInt(cn[un].getAttribute("rel"),10)===an&&(on.marker.resetPointsSize(),on.marker.enlargeCurrentPoint(an,cn[un]));else on.marker.resetPointsSize(),this.moveDynamicPointOnHover(an,rn)}},{key:"moveDynamicPointOnHover",value:function(rn,an){var sn,on,cn,un,pn=this.w,fn=this.ttCtx,mn=new Mi(this.ctx),xn=pn.globals.pointsArray,vn=fn.tooltipUtil.getHoverMarkerSize(an),yn=pn.config.series[an].type;if(!yn||yn!=="column"&&yn!=="candlestick"&&yn!=="boxPlot"){cn=(sn=xn[an][rn])===null||sn===void 0?void 0:sn[0],un=((on=xn[an][rn])===null||on===void 0?void 0:on[1])||0;var wn=pn.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(an,"'] .apexcharts-series-markers path"));if(wn&&un<pn.globals.gridHeight&&un>0){var An=wn.getAttribute("shape"),Cn=mn.getMarkerPath(cn,un,An,1.5*vn);wn.setAttribute("d",Cn)}this.moveXCrosshairs(cn),fn.fixedTooltip||this.moveTooltip(cn,un,vn)}}},{key:"moveDynamicPointsOnHover",value:function(rn){var an,sn=this.ttCtx,on=sn.w,cn=0,un=0,pn=on.globals.pointsArray,fn=new Zi(this.ctx),mn=new Mi(this.ctx);an=fn.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var xn=sn.tooltipUtil.getHoverMarkerSize(an);if(pn[an]&&(cn=pn[an][rn][0],un=pn[an][rn][1]),!isNaN(cn)){var vn=sn.tooltipUtil.getAllMarkers();if(vn.length)for(var yn=0;yn<on.globals.series.length;yn++){var wn=pn[yn];if(on.globals.comboCharts&&wn===void 0&&vn.splice(yn,0,null),wn&&wn.length){var An=pn[yn][rn][1],Cn=void 0;vn[yn].setAttribute("cx",cn);var kn=vn[yn].getAttribute("shape");if(on.config.chart.type==="rangeArea"&&!on.globals.comboCharts){var Mn=rn+on.globals.series[yn].length;Cn=pn[yn][Mn][1],An-=Math.abs(An-Cn)/2}if(An!==null&&!isNaN(An)&&An<on.globals.gridHeight+xn&&An+xn>0){var Tn=mn.getMarkerPath(cn,An,kn,xn);vn[yn].setAttribute("d",Tn)}else vn[yn].setAttribute("d","")}}this.moveXCrosshairs(cn),sn.fixedTooltip||this.moveTooltip(cn,un||on.globals.gridHeight,xn)}}},{key:"moveStickyTooltipOverBars",value:function(rn,an){var sn=this.w,on=this.ttCtx,cn=sn.globals.columnSeries?sn.globals.columnSeries.length:sn.globals.series.length;sn.config.chart.stacked&&(cn=sn.globals.barGroups.length);var un=cn>=2&&cn%2==0?Math.floor(cn/2):Math.floor(cn/2)+1;sn.globals.isBarHorizontal&&(un=new Zi(this.ctx).getActiveConfigSeriesIndex("desc")+1);var pn=sn.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(un,"'] path[j='").concat(rn,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(un,"'] path[j='").concat(rn,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(un,"'] path[j='").concat(rn,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(un,"'] path[j='").concat(rn,"']"));pn||typeof an!="number"||(pn=sn.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(an,"'] path[j='").concat(rn,`'],
        .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='`).concat(an,"'] path[j='").concat(rn,`'],
        .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='`).concat(an,"'] path[j='").concat(rn,`'],
        .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='`).concat(an,"'] path[j='").concat(rn,"']")));var fn=pn?parseFloat(pn.getAttribute("cx")):0,mn=pn?parseFloat(pn.getAttribute("cy")):0,xn=pn?parseFloat(pn.getAttribute("barWidth")):0,vn=on.getElGrid().getBoundingClientRect(),yn=pn&&(pn.classList.contains("apexcharts-candlestick-area")||pn.classList.contains("apexcharts-boxPlot-area"));sn.globals.isXNumeric?(pn&&!yn&&(fn-=cn%2!=0?xn/2:0),pn&&yn&&(fn-=xn/2)):sn.globals.isBarHorizontal||(fn=on.xAxisTicksPositions[rn-1]+on.dataPointsDividedWidth/2,isNaN(fn)&&(fn=on.xAxisTicksPositions[rn]-on.dataPointsDividedWidth/2)),sn.globals.isBarHorizontal?mn-=on.tooltipRect.ttHeight:sn.config.tooltip.followCursor?mn=on.e.clientY-vn.top-on.tooltipRect.ttHeight/2:mn+on.tooltipRect.ttHeight+15>sn.globals.gridHeight&&(mn=sn.globals.gridHeight),sn.globals.isBarHorizontal||this.moveXCrosshairs(fn),on.fixedTooltip||this.moveTooltip(fn,mn||sn.globals.gridHeight)}}]),ln}(),ka=function(){function ln(rn){i$2(this,ln),this.w=rn.w,this.ttCtx=rn,this.ctx=rn.ctx,this.tooltipPosition=new wa(rn)}return s$1(ln,[{key:"drawDynamicPoints",value:function(){var rn=this.w,an=new Mi(this.ctx),sn=new Vi(this.ctx),on=rn.globals.dom.baseEl.querySelectorAll(".apexcharts-series");on=f$2(on),rn.config.chart.stacked&&on.sort(function(vn,yn){return parseFloat(vn.getAttribute("data:realIndex"))-parseFloat(yn.getAttribute("data:realIndex"))});for(var cn=0;cn<on.length;cn++){var un=on[cn].querySelector(".apexcharts-series-markers-wrap");if(un!==null){var pn=void 0,fn="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));rn.config.chart.type!=="line"&&rn.config.chart.type!=="area"||rn.globals.comboCharts||rn.config.tooltip.intersect||(fn+=" no-pointer-events");var mn=sn.getMarkerConfig({cssClass:fn,seriesIndex:Number(un.getAttribute("data:realIndex"))});(pn=an.drawMarker(0,0,mn)).node.setAttribute("default-marker-size",0);var xn=document.createElementNS(rn.globals.SVGNS,"g");xn.classList.add("apexcharts-series-markers"),xn.appendChild(pn.node),un.appendChild(xn)}}}},{key:"enlargeCurrentPoint",value:function(rn,an){var sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,on=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,cn=this.w;cn.config.chart.type!=="bubble"&&this.newPointSize(rn,an);var un=an.getAttribute("cx"),pn=an.getAttribute("cy");if(sn!==null&&on!==null&&(un=sn,pn=on),this.tooltipPosition.moveXCrosshairs(un),!this.fixedTooltip){if(cn.config.chart.type==="radar"){var fn=this.ttCtx.getElGrid().getBoundingClientRect();un=this.ttCtx.e.clientX-fn.left}this.tooltipPosition.moveTooltip(un,pn,cn.config.markers.hover.size)}}},{key:"enlargePoints",value:function(rn){for(var an=this.w,sn=this,on=this.ttCtx,cn=rn,un=an.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),pn=an.config.markers.hover.size,fn=0;fn<un.length;fn++){var mn=un[fn].getAttribute("rel"),xn=un[fn].getAttribute("index");if(pn===void 0&&(pn=an.globals.markers.size[xn]+an.config.markers.hover.sizeOffset),cn===parseInt(mn,10)){sn.newPointSize(cn,un[fn]);var vn=un[fn].getAttribute("cx"),yn=un[fn].getAttribute("cy");sn.tooltipPosition.moveXCrosshairs(vn),on.fixedTooltip||sn.tooltipPosition.moveTooltip(vn,yn,pn)}else sn.oldPointSize(un[fn])}}},{key:"newPointSize",value:function(rn,an){var sn=this.w,on=sn.config.markers.hover.size,cn=rn===0?an.parentNode.firstChild:an.parentNode.lastChild;if(cn.getAttribute("default-marker-size")!=="0"){var un=parseInt(cn.getAttribute("index"),10);on===void 0&&(on=sn.globals.markers.size[un]+sn.config.markers.hover.sizeOffset),on<0&&(on=0);var pn=this.ttCtx.tooltipUtil.getPathFromPoint(an,on);an.setAttribute("d",pn)}}},{key:"oldPointSize",value:function(rn){var an=parseFloat(rn.getAttribute("default-marker-size")),sn=this.ttCtx.tooltipUtil.getPathFromPoint(rn,an);rn.setAttribute("d",sn)}},{key:"resetPointsSize",value:function(){for(var rn=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),an=0;an<rn.length;an++){var sn=parseFloat(rn[an].getAttribute("default-marker-size"));if(v$2.isNumber(sn)&&sn>0){var on=this.ttCtx.tooltipUtil.getPathFromPoint(rn[an],sn);rn[an].setAttribute("d",on)}else rn[an].setAttribute("d","M0,0")}}}]),ln}(),Aa=function(){function ln(rn){i$2(this,ln),this.w=rn.w;var an=this.w;this.ttCtx=rn,this.isVerticalGroupedRangeBar=!an.globals.isBarHorizontal&&an.config.chart.type==="rangeBar"&&an.config.plotOptions.bar.rangeBarGroupRows}return s$1(ln,[{key:"getAttr",value:function(rn,an){return parseFloat(rn.target.getAttribute(an))}},{key:"handleHeatTreeTooltip",value:function(rn){var an=rn.e,sn=rn.opt,on=rn.x,cn=rn.y,un=rn.type,pn=this.ttCtx,fn=this.w;if(an.target.classList.contains("apexcharts-".concat(un,"-rect"))){var mn=this.getAttr(an,"i"),xn=this.getAttr(an,"j"),vn=this.getAttr(an,"cx"),yn=this.getAttr(an,"cy"),wn=this.getAttr(an,"width"),An=this.getAttr(an,"height");if(pn.tooltipLabels.drawSeriesTexts({ttItems:sn.ttItems,i:mn,j:xn,shared:!1,e:an}),fn.globals.capturedSeriesIndex=mn,fn.globals.capturedDataPointIndex=xn,on=vn+pn.tooltipRect.ttWidth/2+wn,cn=yn+pn.tooltipRect.ttHeight/2-An/2,pn.tooltipPosition.moveXCrosshairs(vn+wn/2),on>fn.globals.gridWidth/2&&(on=vn-pn.tooltipRect.ttWidth/2+wn),pn.w.config.tooltip.followCursor){var Cn=fn.globals.dom.elWrap.getBoundingClientRect();on=fn.globals.clientX-Cn.left-(on>fn.globals.gridWidth/2?pn.tooltipRect.ttWidth:0),cn=fn.globals.clientY-Cn.top-(cn>fn.globals.gridHeight/2?pn.tooltipRect.ttHeight:0)}}return{x:on,y:cn}}},{key:"handleMarkerTooltip",value:function(rn){var an,sn,on=rn.e,cn=rn.opt,un=rn.x,pn=rn.y,fn=this.w,mn=this.ttCtx;if(on.target.classList.contains("apexcharts-marker")){var xn=parseInt(cn.paths.getAttribute("cx"),10),vn=parseInt(cn.paths.getAttribute("cy"),10),yn=parseFloat(cn.paths.getAttribute("val"));if(sn=parseInt(cn.paths.getAttribute("rel"),10),an=parseInt(cn.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,mn.intersect){var wn=v$2.findAncestor(cn.paths,"apexcharts-series");wn&&(an=parseInt(wn.getAttribute("data:realIndex"),10))}if(mn.tooltipLabels.drawSeriesTexts({ttItems:cn.ttItems,i:an,j:sn,shared:!mn.showOnIntersect&&fn.config.tooltip.shared,e:on}),on.type==="mouseup"&&mn.markerClick(on,an,sn),fn.globals.capturedSeriesIndex=an,fn.globals.capturedDataPointIndex=sn,un=xn,pn=vn+fn.globals.translateY-1.4*mn.tooltipRect.ttHeight,mn.w.config.tooltip.followCursor){var An=mn.getElGrid().getBoundingClientRect();pn=mn.e.clientY+fn.globals.translateY-An.top}yn<0&&(pn=vn),mn.marker.enlargeCurrentPoint(sn,cn.paths,un,pn)}return{x:un,y:pn}}},{key:"handleBarTooltip",value:function(rn){var an,sn,on=rn.e,cn=rn.opt,un=this.w,pn=this.ttCtx,fn=pn.getElTooltip(),mn=0,xn=0,vn=0,yn=this.getBarTooltipXY({e:on,opt:cn});if(yn.j!==null||yn.barHeight!==0||yn.barWidth!==0){an=yn.i;var wn=yn.j;if(un.globals.capturedSeriesIndex=an,un.globals.capturedDataPointIndex=wn,un.globals.isBarHorizontal&&pn.tooltipUtil.hasBars()||!un.config.tooltip.shared?(xn=yn.x,vn=yn.y,sn=Array.isArray(un.config.stroke.width)?un.config.stroke.width[an]:un.config.stroke.width,mn=xn):un.globals.comboCharts||un.config.tooltip.shared||(mn/=2),isNaN(vn)&&(vn=un.globals.svgHeight-pn.tooltipRect.ttHeight),parseInt(cn.paths.parentNode.getAttribute("data:realIndex"),10),xn+pn.tooltipRect.ttWidth>un.globals.gridWidth?xn-=pn.tooltipRect.ttWidth:xn<0&&(xn=0),pn.w.config.tooltip.followCursor){var An=pn.getElGrid().getBoundingClientRect();vn=pn.e.clientY-An.top}pn.tooltip===null&&(pn.tooltip=un.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),un.config.tooltip.shared||(un.globals.comboBarCount>0?pn.tooltipPosition.moveXCrosshairs(mn+sn/2):pn.tooltipPosition.moveXCrosshairs(mn)),!pn.fixedTooltip&&(!un.config.tooltip.shared||un.globals.isBarHorizontal&&pn.tooltipUtil.hasBars())&&(vn=vn+un.globals.translateY-pn.tooltipRect.ttHeight/2,fn.style.left=xn+un.globals.translateX+"px",fn.style.top=vn+"px")}}},{key:"getBarTooltipXY",value:function(rn){var an=this,sn=rn.e,on=rn.opt,cn=this.w,un=null,pn=this.ttCtx,fn=0,mn=0,xn=0,vn=0,yn=0,wn=sn.target.classList;if(wn.contains("apexcharts-bar-area")||wn.contains("apexcharts-candlestick-area")||wn.contains("apexcharts-boxPlot-area")||wn.contains("apexcharts-rangebar-area")){var An=sn.target,Cn=An.getBoundingClientRect(),kn=on.elGrid.getBoundingClientRect(),Mn=Cn.height;yn=Cn.height;var Tn=Cn.width,On=parseInt(An.getAttribute("cx"),10),Pn=parseInt(An.getAttribute("cy"),10);vn=parseFloat(An.getAttribute("barWidth"));var Nn=sn.type==="touchmove"?sn.touches[0].clientX:sn.clientX;un=parseInt(An.getAttribute("j"),10),fn=parseInt(An.parentNode.getAttribute("rel"),10)-1;var In=An.getAttribute("data-range-y1"),jn=An.getAttribute("data-range-y2");cn.globals.comboCharts&&(fn=parseInt(An.parentNode.getAttribute("data:realIndex"),10));var Fn=function(Yn){return cn.globals.isXNumeric?On-Tn/2:an.isVerticalGroupedRangeBar?On+Tn/2:On-pn.dataPointsDividedWidth+Tn/2},Un=function(){return Pn-pn.dataPointsDividedHeight+Mn/2-pn.tooltipRect.ttHeight/2};pn.tooltipLabels.drawSeriesTexts({ttItems:on.ttItems,i:fn,j:un,y1:In?parseInt(In,10):null,y2:jn?parseInt(jn,10):null,shared:!pn.showOnIntersect&&cn.config.tooltip.shared,e:sn}),cn.config.tooltip.followCursor?cn.globals.isBarHorizontal?(mn=Nn-kn.left+15,xn=Un()):(mn=Fn(),xn=sn.clientY-kn.top-pn.tooltipRect.ttHeight/2-15):cn.globals.isBarHorizontal?((mn=On)<pn.xyRatios.baseLineInvertedY&&(mn=On-pn.tooltipRect.ttWidth),xn=Un()):(mn=Fn(),xn=Pn)}return{x:mn,y:xn,barHeight:yn,barWidth:vn,i:fn,j:un}}}]),ln}(),Ca=function(){function ln(rn){i$2(this,ln),this.w=rn.w,this.ttCtx=rn}return s$1(ln,[{key:"drawXaxisTooltip",value:function(){var rn=this.w,an=this.ttCtx,sn=rn.config.xaxis.position==="bottom";an.xaxisOffY=sn?rn.globals.gridHeight+1:-rn.globals.xAxisHeight-rn.config.xaxis.axisTicks.height+3;var on=sn?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",cn=rn.globals.dom.elWrap;an.isXAxisTooltipEnabled&&rn.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")===null&&(an.xaxisTooltip=document.createElement("div"),an.xaxisTooltip.setAttribute("class",on+" apexcharts-theme-"+rn.config.tooltip.theme),cn.appendChild(an.xaxisTooltip),an.xaxisTooltipText=document.createElement("div"),an.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),an.xaxisTooltipText.style.fontFamily=rn.config.xaxis.tooltip.style.fontFamily||rn.config.chart.fontFamily,an.xaxisTooltipText.style.fontSize=rn.config.xaxis.tooltip.style.fontSize,an.xaxisTooltip.appendChild(an.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var rn=this.w,an=this.ttCtx,sn=0;sn<rn.config.yaxis.length;sn++){var on=rn.config.yaxis[sn].opposite||rn.config.yaxis[sn].crosshairs.opposite;an.yaxisOffX=on?rn.globals.gridWidth+1:1;var cn="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(sn,on?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left"),un=rn.globals.dom.elWrap;rn.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(sn))===null&&(an.yaxisTooltip=document.createElement("div"),an.yaxisTooltip.setAttribute("class",cn+" apexcharts-theme-"+rn.config.tooltip.theme),un.appendChild(an.yaxisTooltip),sn===0&&(an.yaxisTooltipText=[]),an.yaxisTooltipText[sn]=document.createElement("div"),an.yaxisTooltipText[sn].classList.add("apexcharts-yaxistooltip-text"),an.yaxisTooltip.appendChild(an.yaxisTooltipText[sn]))}}},{key:"setXCrosshairWidth",value:function(){var rn=this.w,an=this.ttCtx,sn=an.getElXCrosshairs();if(an.xcrosshairsWidth=parseInt(rn.config.xaxis.crosshairs.width,10),rn.globals.comboCharts){var on=rn.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(on!==null&&rn.config.xaxis.crosshairs.width==="barWidth"){var cn=parseFloat(on.getAttribute("barWidth"));an.xcrosshairsWidth=cn}else if(rn.config.xaxis.crosshairs.width==="tickWidth"){var un=rn.globals.labels.length;an.xcrosshairsWidth=rn.globals.gridWidth/un}}else if(rn.config.xaxis.crosshairs.width==="tickWidth"){var pn=rn.globals.labels.length;an.xcrosshairsWidth=rn.globals.gridWidth/pn}else if(rn.config.xaxis.crosshairs.width==="barWidth"){var fn=rn.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(fn!==null){var mn=parseFloat(fn.getAttribute("barWidth"));an.xcrosshairsWidth=mn}else an.xcrosshairsWidth=1}rn.globals.isBarHorizontal&&(an.xcrosshairsWidth=0),sn!==null&&an.xcrosshairsWidth>0&&sn.setAttribute("width",an.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var rn=this.w,an=this.ttCtx;an.ycrosshairs=rn.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),an.ycrosshairsHidden=rn.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(rn,an,sn){var on=this.ttCtx,cn=this.w,un=cn.globals,pn=un.seriesYAxisMap[rn];if(on.yaxisTooltips[rn]&&pn.length>0){var fn=un.yLabelFormatters[rn],mn=on.getElGrid().getBoundingClientRect(),xn=pn[0],vn=0;sn.yRatio.length>1&&(vn=xn);var yn=(an-mn.top)*sn.yRatio[vn],wn=un.maxYArr[xn]-un.minYArr[xn],An=un.minYArr[xn]+(wn-yn);cn.config.yaxis[rn].reversed&&(An=un.maxYArr[xn]-(wn-yn)),on.tooltipPosition.moveYCrosshairs(an-mn.top),on.yaxisTooltipText[rn].innerHTML=fn(An),on.tooltipPosition.moveYAxisTooltip(rn)}}}]),ln}(),Sa=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w;var an=this.w;this.tConfig=an.config.tooltip,this.tooltipUtil=new va(this),this.tooltipLabels=new ya(this),this.tooltipPosition=new wa(this),this.marker=new ka(this),this.intersect=new Aa(this),this.axesTooltip=new Ca(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=!an.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return s$1(ln,[{key:"getElTooltip",value:function(rn){return rn||(rn=this),rn.w.globals.dom.baseEl?rn.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(rn){var an=this.w;this.xyRatios=rn,this.isXAxisTooltipEnabled=an.config.xaxis.tooltip.enabled&&an.globals.axisCharts,this.yaxisTooltips=an.config.yaxis.map(function(un,pn){return!!(un.show&&un.tooltip.enabled&&an.globals.axisCharts)}),this.allTooltipSeriesGroups=[],an.globals.axisCharts||(this.showTooltipTitle=!1);var sn=document.createElement("div");if(sn.classList.add("apexcharts-tooltip"),an.config.tooltip.cssClass&&sn.classList.add(an.config.tooltip.cssClass),sn.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),an.globals.dom.elWrap.appendChild(sn),an.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var on=new Qi(this.ctx);this.xAxisTicksPositions=on.getXAxisTicksPositions()}if(!an.globals.comboCharts&&!this.tConfig.intersect&&an.config.chart.type!=="rangeBar"||this.tConfig.shared||(this.showOnIntersect=!0),an.config.markers.size!==0&&an.globals.markers.largestSize!==0||this.marker.drawDynamicPoints(this),an.globals.collapsedSeries.length!==an.globals.series.length){this.dataPointsDividedHeight=an.globals.gridHeight/an.globals.dataPoints,this.dataPointsDividedWidth=an.globals.gridWidth/an.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||an.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,sn.appendChild(this.tooltipTitle));var cn=an.globals.series.length;(an.globals.xyCharts||an.globals.comboCharts)&&this.tConfig.shared&&(cn=this.showOnIntersect?1:an.globals.series.length),this.legendLabels=an.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(cn),this.addSVGEvents()}}},{key:"createTTElements",value:function(rn){for(var an=this,sn=this.w,on=[],cn=this.getElTooltip(),un=function(fn){var mn=document.createElement("div");mn.classList.add("apexcharts-tooltip-series-group","apexcharts-tooltip-series-group-".concat(fn)),mn.style.order=sn.config.tooltip.inverseOrder?rn-fn:fn+1;var xn=document.createElement("span");xn.classList.add("apexcharts-tooltip-marker"),xn.style.color=sn.globals.colors[fn];var vn=sn.config.markers.shape,yn=vn;Array.isArray(vn)&&(yn=vn[fn]),xn.setAttribute("shape",yn),mn.appendChild(xn);var wn=document.createElement("div");wn.classList.add("apexcharts-tooltip-text"),wn.style.fontFamily=an.tConfig.style.fontFamily||sn.config.chart.fontFamily,wn.style.fontSize=an.tConfig.style.fontSize,["y","goals","z"].forEach(function(An){var Cn=document.createElement("div");Cn.classList.add("apexcharts-tooltip-".concat(An,"-group"));var kn=document.createElement("span");kn.classList.add("apexcharts-tooltip-text-".concat(An,"-label")),Cn.appendChild(kn);var Mn=document.createElement("span");Mn.classList.add("apexcharts-tooltip-text-".concat(An,"-value")),Cn.appendChild(Mn),wn.appendChild(Cn)}),mn.appendChild(wn),cn.appendChild(mn),on.push(mn)},pn=0;pn<rn;pn++)un(pn);return on}},{key:"addSVGEvents",value:function(){var rn=this.w,an=rn.config.chart.type,sn=this.getElTooltip(),on=!(an!=="bar"&&an!=="candlestick"&&an!=="boxPlot"&&an!=="rangeBar"),cn=an==="area"||an==="line"||an==="scatter"||an==="bubble"||an==="radar",un=rn.globals.dom.Paper.node,pn=this.getElGrid();pn&&(this.seriesBound=pn.getBoundingClientRect());var fn,mn=[],xn=[],vn={hoverArea:un,elGrid:pn,tooltipEl:sn,tooltipY:mn,tooltipX:xn,ttItems:this.ttItems};if(rn.globals.axisCharts&&(cn?fn=rn.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):on?fn=rn.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):an!=="heatmap"&&an!=="treemap"||(fn=rn.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),fn&&fn.length))for(var yn=0;yn<fn.length;yn++)mn.push(fn[yn].getAttribute("cy")),xn.push(fn[yn].getAttribute("cx"));if(rn.globals.xyCharts&&!this.showOnIntersect||rn.globals.comboCharts&&!this.showOnIntersect||on&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([un],vn);else if(on&&!rn.globals.comboCharts||cn&&this.showOnIntersect)this.addDatapointEventsListeners(vn);else if(!rn.globals.axisCharts||an==="heatmap"||an==="treemap"){var wn=rn.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(wn,vn)}if(this.showOnIntersect){var An=rn.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");An.length>0&&this.addPathsEventListeners(An,vn),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(vn)}}},{key:"drawFixedTooltipRect",value:function(){var rn=this.w,an=this.getElTooltip(),sn=an.getBoundingClientRect(),on=sn.width+10,cn=sn.height+10,un=this.tConfig.fixed.offsetX,pn=this.tConfig.fixed.offsetY,fn=this.tConfig.fixed.position.toLowerCase();return fn.indexOf("right")>-1&&(un=un+rn.globals.svgWidth-on+10),fn.indexOf("bottom")>-1&&(pn=pn+rn.globals.svgHeight-cn-10),an.style.left=un+"px",an.style.top=pn+"px",{x:un,y:pn,ttWidth:on,ttHeight:cn}}},{key:"addDatapointEventsListeners",value:function(rn){var an=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(an,rn)}},{key:"addPathsEventListeners",value:function(rn,an){for(var sn=this,on=function(un){var pn={paths:rn[un],tooltipEl:an.tooltipEl,tooltipY:an.tooltipY,tooltipX:an.tooltipX,elGrid:an.elGrid,hoverArea:an.hoverArea,ttItems:an.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(fn){return rn[un].addEventListener(fn,sn.onSeriesHover.bind(sn,pn),{capture:!1,passive:!0})})},cn=0;cn<rn.length;cn++)on(cn)}},{key:"onSeriesHover",value:function(rn,an){var sn=this,on=Date.now()-this.lastHoverTime;on>=20?this.seriesHover(rn,an):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){sn.seriesHover(rn,an)},20-on))}},{key:"seriesHover",value:function(rn,an){var sn=this;this.lastHoverTime=Date.now();var on=[],cn=this.w;cn.config.chart.group&&(on=this.ctx.getGroupedCharts()),cn.globals.axisCharts&&(cn.globals.minX===-1/0&&cn.globals.maxX===1/0||cn.globals.dataPoints===0)||(on.length?on.forEach(function(un){var pn=sn.getElTooltip(un),fn={paths:rn.paths,tooltipEl:pn,tooltipY:rn.tooltipY,tooltipX:rn.tooltipX,elGrid:rn.elGrid,hoverArea:rn.hoverArea,ttItems:un.w.globals.tooltip.ttItems};un.w.globals.minX===sn.w.globals.minX&&un.w.globals.maxX===sn.w.globals.maxX&&un.w.globals.tooltip.seriesHoverByContext({chartCtx:un,ttCtx:un.w.globals.tooltip,opt:fn,e:an})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:rn,e:an}))}},{key:"seriesHoverByContext",value:function(rn){var an=rn.chartCtx,sn=rn.ttCtx,on=rn.opt,cn=rn.e,un=an.w,pn=this.getElTooltip(an);pn&&(sn.tooltipRect={x:0,y:0,ttWidth:pn.getBoundingClientRect().width,ttHeight:pn.getBoundingClientRect().height},sn.e=cn,sn.tooltipUtil.hasBars()&&!un.globals.comboCharts&&!sn.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new Zi(an).toggleSeriesOnHover(cn,cn.target.parentNode),sn.fixedTooltip&&sn.drawFixedTooltipRect(),un.globals.axisCharts?sn.axisChartsTooltips({e:cn,opt:on,tooltipRect:sn.tooltipRect}):sn.nonAxisChartsTooltips({e:cn,opt:on,tooltipRect:sn.tooltipRect}))}},{key:"axisChartsTooltips",value:function(rn){var an,sn,on=rn.e,cn=rn.opt,un=this.w,pn=cn.elGrid.getBoundingClientRect(),fn=on.type==="touchmove"?on.touches[0].clientX:on.clientX,mn=on.type==="touchmove"?on.touches[0].clientY:on.clientY;if(this.clientY=mn,this.clientX=fn,un.globals.capturedSeriesIndex=-1,un.globals.capturedDataPointIndex=-1,mn<pn.top||mn>pn.top+pn.height)this.handleMouseOut(cn);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!un.config.tooltip.shared){var xn=parseInt(cn.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(xn)<0)return void this.handleMouseOut(cn)}var vn=this.getElTooltip(),yn=this.getElXCrosshairs(),wn=[];un.config.chart.group&&(wn=this.ctx.getSyncedCharts());var An=un.globals.xyCharts||un.config.chart.type==="bar"&&!un.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||un.globals.comboCharts&&this.tooltipUtil.hasBars();if(on.type==="mousemove"||on.type==="touchmove"||on.type==="mouseup"){if(un.globals.collapsedSeries.length+un.globals.ancillaryCollapsedSeries.length===un.globals.series.length)return;yn!==null&&yn.classList.add("apexcharts-active");var Cn=this.yaxisTooltips.filter(function(Tn){return Tn===!0});if(this.ycrosshairs!==null&&Cn.length&&this.ycrosshairs.classList.add("apexcharts-active"),An&&!this.showOnIntersect||wn.length>1)this.handleStickyTooltip(on,fn,mn,cn);else if(un.config.chart.type==="heatmap"||un.config.chart.type==="treemap"){var kn=this.intersect.handleHeatTreeTooltip({e:on,opt:cn,x:an,y:sn,type:un.config.chart.type});an=kn.x,sn=kn.y,vn.style.left=an+"px",vn.style.top=sn+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:on,opt:cn}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:on,opt:cn,x:an,y:sn});if(this.yaxisTooltips.length)for(var Mn=0;Mn<un.config.yaxis.length;Mn++)this.axesTooltip.drawYaxisTooltipText(Mn,mn,this.xyRatios);un.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),cn.tooltipEl.classList.add("apexcharts-active")}else on.type!=="mouseout"&&on.type!=="touchend"||this.handleMouseOut(cn)}}},{key:"nonAxisChartsTooltips",value:function(rn){var an=rn.e,sn=rn.opt,on=rn.tooltipRect,cn=this.w,un=sn.paths.getAttribute("rel"),pn=this.getElTooltip(),fn=cn.globals.dom.elWrap.getBoundingClientRect();if(an.type==="mousemove"||an.type==="touchmove"){cn.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),pn.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:sn.ttItems,i:parseInt(un,10)-1,shared:!1});var mn=cn.globals.clientX-fn.left-on.ttWidth/2,xn=cn.globals.clientY-fn.top-on.ttHeight-10;if(pn.style.left=mn+"px",pn.style.top=xn+"px",cn.config.legend.tooltipHoverFormatter){var vn=un-1,yn=(0,cn.config.legend.tooltipHoverFormatter)(this.legendLabels[vn].getAttribute("data:default-text"),{seriesIndex:vn,dataPointIndex:vn,w:cn});this.legendLabels[vn].innerHTML=yn}}else an.type!=="mouseout"&&an.type!=="touchend"||(pn.classList.remove("apexcharts-active"),cn.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),cn.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(wn){var An=wn.getAttribute("data:default-text");wn.innerHTML=decodeURIComponent(An)}))}},{key:"handleStickyTooltip",value:function(rn,an,sn,on){var cn=this.w,un=this.tooltipUtil.getNearestValues({context:this,hoverArea:on.hoverArea,elGrid:on.elGrid,clientX:an,clientY:sn}),pn=un.j,fn=un.capturedSeries;cn.globals.collapsedSeriesIndices.includes(fn)&&(fn=null);var mn=on.elGrid.getBoundingClientRect();if(un.hoverX<0||un.hoverX>mn.width)this.handleMouseOut(on);else if(fn!==null)this.handleStickyCapturedSeries(rn,fn,on,pn);else if(this.tooltipUtil.isXoverlap(pn)||cn.globals.isBarHorizontal){var xn=cn.globals.series.findIndex(function(vn,yn){return!cn.globals.collapsedSeriesIndices.includes(yn)});this.create(rn,this,xn,pn,on.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(rn,an,sn,on){var cn=this.w;if(!this.tConfig.shared&&cn.globals.series[an][on]===null)return void this.handleMouseOut(sn);if(cn.globals.series[an][on]!==void 0)this.tConfig.shared&&this.tooltipUtil.isXoverlap(on)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(rn,this,an,on,sn.ttItems):this.create(rn,this,an,on,sn.ttItems,!1);else if(this.tooltipUtil.isXoverlap(on)){var un=cn.globals.series.findIndex(function(pn,fn){return!cn.globals.collapsedSeriesIndices.includes(fn)});this.create(rn,this,un,on,sn.ttItems)}}},{key:"deactivateHoverFilter",value:function(){for(var rn=this.w,an=new Mi(this.ctx),sn=rn.globals.dom.Paper.find(".apexcharts-bar-area"),on=0;on<sn.length;on++)an.pathMouseLeave(sn[on])}},{key:"handleMouseOut",value:function(rn){var an=this.w,sn=this.getElXCrosshairs();if(an.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),rn.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),an.config.chart.type!=="bubble"&&this.marker.resetPointsSize(),sn!==null&&sn.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=an.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var on=0;on<this.yaxisTTEls.length;on++)this.yaxisTTEls[on].classList.remove("apexcharts-active")}an.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(cn){var un=cn.getAttribute("data:default-text");cn.innerHTML=decodeURIComponent(un)})}},{key:"markerClick",value:function(rn,an,sn){var on=this.w;typeof on.config.chart.events.markerClick=="function"&&on.config.chart.events.markerClick(rn,this.ctx,{seriesIndex:an,dataPointIndex:sn,w:on}),this.ctx.events.fireEvent("markerClick",[rn,this.ctx,{seriesIndex:an,dataPointIndex:sn,w:on}])}},{key:"create",value:function(rn,an,sn,on,cn){var un,pn,fn,mn,xn,vn,yn,wn,An,Cn,kn,Mn,Tn,On,Pn,Nn,In=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,jn=this.w,Fn=an;rn.type==="mouseup"&&this.markerClick(rn,sn,on),In===null&&(In=this.tConfig.shared);var Un=this.tooltipUtil.hasMarkers(sn),Yn=this.tooltipUtil.getElBars(),Qn=function(){jn.globals.markers.largestSize>0?Fn.marker.enlargePoints(on):Fn.tooltipPosition.moveDynamicPointsOnHover(on)};if(jn.config.legend.tooltipHoverFormatter){var ir=jn.config.legend.tooltipHoverFormatter,er=Array.from(this.legendLabels);er.forEach(function(Nr){var Er=Nr.getAttribute("data:default-text");Nr.innerHTML=decodeURIComponent(Er)});for(var tr=0;tr<er.length;tr++){var vr=er[tr],rr=parseInt(vr.getAttribute("i"),10),fr=decodeURIComponent(vr.getAttribute("data:default-text")),ur=ir(fr,{seriesIndex:In?rr:sn,dataPointIndex:on,w:jn});if(In)vr.innerHTML=jn.globals.collapsedSeriesIndices.indexOf(rr)<0?ur:fr;else if(vr.innerHTML=rr===sn?ur:fr,sn===rr)break}}var wr=u$2(u$2({ttItems:cn,i:sn,j:on},((un=jn.globals.seriesRange)===null||un===void 0||(pn=un[sn])===null||pn===void 0||(fn=pn[on])===null||fn===void 0||(mn=fn.y[0])===null||mn===void 0?void 0:mn.y1)!==void 0&&{y1:(xn=jn.globals.seriesRange)===null||xn===void 0||(vn=xn[sn])===null||vn===void 0||(yn=vn[on])===null||yn===void 0||(wn=yn.y[0])===null||wn===void 0?void 0:wn.y1}),((An=jn.globals.seriesRange)===null||An===void 0||(Cn=An[sn])===null||Cn===void 0||(kn=Cn[on])===null||kn===void 0||(Mn=kn.y[0])===null||Mn===void 0?void 0:Mn.y2)!==void 0&&{y2:(Tn=jn.globals.seriesRange)===null||Tn===void 0||(On=Tn[sn])===null||On===void 0||(Pn=On[on])===null||Pn===void 0||(Nn=Pn.y[0])===null||Nn===void 0?void 0:Nn.y2});if(In){if(Fn.tooltipLabels.drawSeriesTexts(u$2(u$2({},wr),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),Un)Qn();else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(Yn),this.barSeriesHeight>0)){var Xn=new Mi(this.ctx),cr=jn.globals.dom.Paper.find(".apexcharts-bar-area[j='".concat(on,"']"));this.deactivateHoverFilter(),Fn.tooltipPosition.moveStickyTooltipOverBars(on,sn),Fn.tooltipUtil.getAllMarkers(!0).length&&Qn();for(var _r=0;_r<cr.length;_r++)Xn.pathMouseEnter(cr[_r])}}else Fn.tooltipLabels.drawSeriesTexts(u$2({shared:!1},wr)),this.tooltipUtil.hasBars()&&Fn.tooltipPosition.moveStickyTooltipOverBars(on,sn),Un&&Fn.tooltipPosition.moveMarkers(sn,on)}}]),ln}(),La=function(){function ln(rn){i$2(this,ln),this.w=rn.w,this.barCtx=rn,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return s$1(ln,[{key:"handleBarDataLabels",value:function(rn){var an,sn,on=rn.x,cn=rn.y,un=rn.y1,pn=rn.y2,fn=rn.i,mn=rn.j,xn=rn.realIndex,vn=rn.columnGroupIndex,yn=rn.series,wn=rn.barHeight,An=rn.barWidth,Cn=rn.barXPosition,kn=rn.barYPosition,Mn=rn.visibleSeries,Tn=rn.renderedPath,On=this.w,Pn=new Mi(this.barCtx.ctx),Nn=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[xn]:this.barCtx.strokeWidth;On.globals.isXNumeric&&!On.globals.isBarHorizontal?(an=on+parseFloat(An*(Mn+1)),sn=cn+parseFloat(wn*(Mn+1))-Nn):(an=on+parseFloat(An*Mn),sn=cn+parseFloat(wn*Mn));var In,jn=null,Fn=on,Un=cn,Yn={},Qn=On.config.dataLabels,ir=this.barCtx.barOptions.dataLabels,er=this.barCtx.barOptions.dataLabels.total;kn!==void 0&&this.barCtx.isRangeBar&&(sn=kn,Un=kn),Cn!==void 0&&this.barCtx.isVerticalGroupedRangeBar&&(an=Cn,Fn=Cn);var tr=Qn.offsetX,vr=Qn.offsetY,rr={width:0,height:0};if(On.config.dataLabels.enabled){var fr=On.globals.series[fn][mn];rr=Pn.getTextRects(On.config.dataLabels.formatter?On.config.dataLabels.formatter(fr,u$2(u$2({},On),{},{seriesIndex:fn,dataPointIndex:mn,w:On})):On.globals.yLabelFormatters[0](fr),parseFloat(Qn.style.fontSize))}var ur={x:on,y:cn,i:fn,j:mn,realIndex:xn,columnGroupIndex:vn,renderedPath:Tn,bcx:an,bcy:sn,barHeight:wn,barWidth:An,textRects:rr,strokeWidth:Nn,dataLabelsX:Fn,dataLabelsY:Un,dataLabelsConfig:Qn,barDataLabelsConfig:ir,barTotalDataLabelsConfig:er,offX:tr,offY:vr};return Yn=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(ur):this.calculateColumnsDataLabelsPosition(ur),Tn.attr({cy:Yn.bcy,cx:Yn.bcx,j:mn,val:On.globals.series[fn][mn],barHeight:wn,barWidth:An}),In=this.drawCalculatedDataLabels({x:Yn.dataLabelsX,y:Yn.dataLabelsY,val:this.barCtx.isRangeBar?[un,pn]:On.config.chart.stackType==="100%"?yn[xn][mn]:On.globals.series[xn][mn],i:xn,j:mn,barWidth:An,barHeight:wn,textRects:rr,dataLabelsConfig:Qn}),On.config.chart.stacked&&er.enabled&&(jn=this.drawTotalDataLabels({x:Yn.totalDataLabelsX,y:Yn.totalDataLabelsY,barWidth:An,barHeight:wn,realIndex:xn,textAnchor:Yn.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:xn,j:mn}),dataLabelsConfig:Qn,barTotalDataLabelsConfig:er})),{dataLabels:In,totalDataLabels:jn}}},{key:"getStackedTotalDataLabel",value:function(rn){var an=rn.realIndex,sn=rn.j,on=this.w,cn=this.barCtx.stackedSeriesTotals[sn];return this.totalFormatter&&(cn=this.totalFormatter(cn,u$2(u$2({},on),{},{seriesIndex:an,dataPointIndex:sn,w:on}))),cn}},{key:"calculateColumnsDataLabelsPosition",value:function(rn){var an=this,sn=this.w,on=rn.i,cn=rn.j,un=rn.realIndex;rn.columnGroupIndex;var pn,fn,mn=rn.y,xn=rn.bcx,vn=rn.barWidth,yn=rn.barHeight,wn=rn.textRects,An=rn.dataLabelsX,Cn=rn.dataLabelsY,kn=rn.dataLabelsConfig,Mn=rn.barDataLabelsConfig,Tn=rn.barTotalDataLabelsConfig,On=rn.strokeWidth,Pn=rn.offX,Nn=rn.offY,In=xn;yn=Math.abs(yn);var jn=sn.config.plotOptions.bar.dataLabels.orientation==="vertical",Fn=this.barCtx.barHelpers.getZeroValueEncounters({i:on,j:cn}).zeroEncounters;xn-=On/2;var Un=sn.globals.gridWidth/sn.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?An+=vn/2:(An=sn.globals.isXNumeric?xn-vn/2+Pn:xn-Un+vn/2+Pn,Fn>0&&sn.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(An-=vn*Fn)),jn&&(An=An+wn.height/2-On/2-2);var Yn=sn.globals.series[on][cn]<0,Qn=mn;switch(this.barCtx.isReversed&&(Qn=mn+(Yn?yn:-yn)),Mn.position){case"center":Cn=jn?Yn?Qn-yn/2+Nn:Qn+yn/2-Nn:Yn?Qn-yn/2+wn.height/2+Nn:Qn+yn/2+wn.height/2-Nn;break;case"bottom":Cn=jn?Yn?Qn-yn+Nn:Qn+yn-Nn:Yn?Qn-yn+wn.height+On+Nn:Qn+yn-wn.height/2+On-Nn;break;case"top":Cn=jn?Yn?Qn+Nn:Qn-Nn:Yn?Qn-wn.height/2-Nn:Qn+wn.height+Nn}var ir=Qn;if(sn.globals.seriesGroups.forEach(function(vr){var rr;(rr=an.barCtx[vr.join(",")])===null||rr===void 0||rr.prevY.forEach(function(fr){ir=Yn?Math.max(fr[cn],ir):Math.min(fr[cn],ir)})}),this.barCtx.lastActiveBarSerieIndex===un&&Tn.enabled){var er=new Mi(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:un,j:cn}),kn.fontSize);pn=Yn?ir-er.height/2-Nn-Tn.offsetY+18:ir+er.height+Nn+Tn.offsetY-18;var tr=Un;fn=In+(sn.globals.isXNumeric?-vn*sn.globals.barGroups.length/2:sn.globals.barGroups.length*vn/2-(sn.globals.barGroups.length-1)*vn-tr)+Tn.offsetX}return sn.config.chart.stacked||(Cn<0?Cn=0+On:Cn+wn.height/3>sn.globals.gridHeight&&(Cn=sn.globals.gridHeight-On)),{bcx:xn,bcy:mn,dataLabelsX:An,dataLabelsY:Cn,totalDataLabelsX:fn,totalDataLabelsY:pn,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(rn){var an=this,sn=this.w,on=rn.x,cn=rn.i,un=rn.j,pn=rn.realIndex,fn=rn.bcy,mn=rn.barHeight,xn=rn.barWidth,vn=rn.textRects,yn=rn.dataLabelsX,wn=rn.strokeWidth,An=rn.dataLabelsConfig,Cn=rn.barDataLabelsConfig,kn=rn.barTotalDataLabelsConfig,Mn=rn.offX,Tn=rn.offY,On=sn.globals.gridHeight/sn.globals.dataPoints;xn=Math.abs(xn);var Pn,Nn,In=fn-(this.barCtx.isRangeBar?0:On)+mn/2+vn.height/2+Tn-3,jn="start",Fn=sn.globals.series[cn][un]<0,Un=on;switch(this.barCtx.isReversed&&(Un=on+(Fn?-xn:xn),jn=Fn?"start":"end"),Cn.position){case"center":yn=Fn?Un+xn/2-Mn:Math.max(vn.width/2,Un-xn/2)+Mn;break;case"bottom":yn=Fn?Un+xn-wn-Mn:Un-xn+wn+Mn;break;case"top":yn=Fn?Un-wn-Mn:Un-wn+Mn}var Yn=Un;if(sn.globals.seriesGroups.forEach(function(ir){var er;(er=an.barCtx[ir.join(",")])===null||er===void 0||er.prevX.forEach(function(tr){Yn=Fn?Math.min(tr[un],Yn):Math.max(tr[un],Yn)})}),this.barCtx.lastActiveBarSerieIndex===pn&&kn.enabled){var Qn=new Mi(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:pn,j:un}),An.fontSize);Fn?(Pn=Yn-wn-Mn-kn.offsetX,jn="end"):Pn=Yn+Mn+kn.offsetX+(this.barCtx.isReversed?-(xn+wn):wn),Nn=In-vn.height/2+Qn.height/2+kn.offsetY+wn,sn.globals.barGroups.length>1&&(Nn-=sn.globals.barGroups.length/2*(mn/2))}return sn.config.chart.stacked||(An.textAnchor==="start"?yn-vn.width<0?yn=Fn?vn.width+wn:wn:yn+vn.width>sn.globals.gridWidth&&(yn=Fn?sn.globals.gridWidth-wn:sn.globals.gridWidth-vn.width-wn):An.textAnchor==="middle"?yn-vn.width/2<0?yn=vn.width/2+wn:yn+vn.width/2>sn.globals.gridWidth&&(yn=sn.globals.gridWidth-vn.width/2-wn):An.textAnchor==="end"&&(yn<1?yn=vn.width+wn:yn+1>sn.globals.gridWidth&&(yn=sn.globals.gridWidth-vn.width-wn))),{bcx:on,bcy:fn,dataLabelsX:yn,dataLabelsY:In,totalDataLabelsX:Pn,totalDataLabelsY:Nn,totalDataLabelsAnchor:jn}}},{key:"drawCalculatedDataLabels",value:function(rn){var an=rn.x,sn=rn.y,on=rn.val,cn=rn.i,un=rn.j,pn=rn.textRects,fn=rn.barHeight,mn=rn.barWidth,xn=rn.dataLabelsConfig,vn=this.w,yn="rotate(0)";vn.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(yn="rotate(-90, ".concat(an,", ").concat(sn,")"));var wn=new qi(this.barCtx.ctx),An=new Mi(this.barCtx.ctx),Cn=xn.formatter,kn=null,Mn=vn.globals.collapsedSeriesIndices.indexOf(cn)>-1;if(xn.enabled&&!Mn){kn=An.group({class:"apexcharts-data-labels",transform:yn});var Tn="";on!==void 0&&(Tn=Cn(on,u$2(u$2({},vn),{},{seriesIndex:cn,dataPointIndex:un,w:vn}))),!on&&vn.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(Tn="");var On=vn.globals.series[cn][un]<0,Pn=vn.config.plotOptions.bar.dataLabels.position;vn.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(Pn==="top"&&(xn.textAnchor=On?"end":"start"),Pn==="center"&&(xn.textAnchor="middle"),Pn==="bottom"&&(xn.textAnchor=On?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&mn<An.getTextRects(Tn,parseFloat(xn.style.fontSize)).width&&(Tn=""),vn.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?pn.width/1.6>Math.abs(mn)&&(Tn=""):pn.height/1.6>Math.abs(fn)&&(Tn=""));var Nn=u$2({},xn);this.barCtx.isHorizontal&&on<0&&(xn.textAnchor==="start"?Nn.textAnchor="end":xn.textAnchor==="end"&&(Nn.textAnchor="start")),wn.plotDataLabelsText({x:an,y:sn,text:Tn,i:cn,j:un,parent:kn,dataLabelsConfig:Nn,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return kn}},{key:"drawTotalDataLabels",value:function(rn){var an=rn.x,sn=rn.y,on=rn.val,cn=rn.realIndex,un=rn.textAnchor,pn=rn.barTotalDataLabelsConfig;this.w;var fn,mn=new Mi(this.barCtx.ctx);return pn.enabled&&an!==void 0&&sn!==void 0&&this.barCtx.lastActiveBarSerieIndex===cn&&(fn=mn.drawText({x:an,y:sn,foreColor:pn.style.color,text:on,textAnchor:un,fontFamily:pn.style.fontFamily,fontSize:pn.style.fontSize,fontWeight:pn.style.fontWeight})),fn}}]),ln}(),Ma=function(){function ln(rn){i$2(this,ln),this.w=rn.w,this.barCtx=rn}return s$1(ln,[{key:"initVariables",value:function(rn){var an=this.w;this.barCtx.series=rn,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var sn=0;sn<rn.length;sn++)if(rn[sn].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=rn[sn].length),an.globals.isXNumeric)for(var on=0;on<rn[sn].length;on++)an.globals.seriesX[sn][on]>an.globals.minX&&an.globals.seriesX[sn][on]<an.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=an.globals.dataPoints;this.arrBorderRadius=this.createBorderRadiusArr(an.globals.series),this.barCtx.seriesLen===0&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],an.globals.comboCharts||this.checkZeroSeries({series:rn})}},{key:"initialPositions",value:function(rn){var an,sn,on,cn,un,pn,fn,mn,xn=this.w,vn=xn.globals.dataPoints;this.barCtx.isRangeBar&&(vn=xn.globals.labels.length);var yn=this.barCtx.seriesLen;if(xn.config.plotOptions.bar.rangeBarGroupRows&&(yn=1),this.barCtx.isHorizontal)un=(on=xn.globals.gridHeight/vn)/yn,xn.globals.isXNumeric&&(un=(on=xn.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),un=un*parseInt(this.barCtx.barOptions.barHeight,10)/100,String(this.barCtx.barOptions.barHeight).indexOf("%")===-1&&(un=parseInt(this.barCtx.barOptions.barHeight,10)),mn=this.barCtx.baseLineInvertedY+xn.globals.padHorizontal+(this.barCtx.isReversed?xn.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(mn=xn.globals.gridWidth/2),sn=(on-un*this.barCtx.seriesLen)/2;else{if(cn=xn.globals.gridWidth/this.barCtx.visibleItems,xn.config.xaxis.convertedCatToNumeric&&(cn=xn.globals.gridWidth/xn.globals.dataPoints),pn=cn/yn*parseInt(this.barCtx.barOptions.columnWidth,10)/100,xn.globals.isXNumeric){var wn=this.barCtx.xRatio;xn.globals.minXDiff&&xn.globals.minXDiff!==.5&&xn.globals.minXDiff/wn>0&&(cn=xn.globals.minXDiff/wn),(pn=cn/yn*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(pn=1)}String(this.barCtx.barOptions.columnWidth).indexOf("%")===-1&&(pn=parseInt(this.barCtx.barOptions.columnWidth,10)),fn=xn.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?xn.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),xn.globals.isXNumeric?an=this.barCtx.getBarXForNumericXAxis({x:an,j:0,realIndex:rn,barWidth:pn}).x:an=xn.globals.padHorizontal+v$2.noExponents(cn-pn*this.barCtx.seriesLen)/2}return xn.globals.barHeight=un,xn.globals.barWidth=pn,{x:an,y:sn,yDivision:on,xDivision:cn,barHeight:un,barWidth:pn,zeroH:fn,zeroW:mn}}},{key:"initializeStackedPrevVars",value:function(rn){rn.w.globals.seriesGroups.forEach(function(an){rn[an]||(rn[an]={}),rn[an].prevY=[],rn[an].prevX=[],rn[an].prevYF=[],rn[an].prevXF=[],rn[an].prevYVal=[],rn[an].prevXVal=[]})}},{key:"initializeStackedXYVars",value:function(rn){rn.w.globals.seriesGroups.forEach(function(an){rn[an]||(rn[an]={}),rn[an].xArrj=[],rn[an].xArrjF=[],rn[an].xArrjVal=[],rn[an].yArrj=[],rn[an].yArrjF=[],rn[an].yArrjVal=[]})}},{key:"getPathFillColor",value:function(rn,an,sn,on){var cn,un,pn,fn,mn=this.w,xn=this.barCtx.ctx.fill,vn=null,yn=this.barCtx.barOptions.distributed?sn:an,wn=!1;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(An){rn[an][sn]>=An.from&&rn[an][sn]<=An.to&&(vn=An.color,wn=!0)}),{color:xn.fillPath({seriesNumber:this.barCtx.barOptions.distributed?yn:on,dataPointIndex:sn,color:vn,value:rn[an][sn],fillConfig:(cn=mn.config.series[an].data[sn])===null||cn===void 0?void 0:cn.fill,fillType:(un=mn.config.series[an].data[sn])!==null&&un!==void 0&&(pn=un.fill)!==null&&pn!==void 0&&pn.type?(fn=mn.config.series[an].data[sn])===null||fn===void 0?void 0:fn.fill.type:Array.isArray(mn.config.fill.type)?mn.config.fill.type[on]:mn.config.fill.type}),useRangeColor:wn}}},{key:"getStrokeWidth",value:function(rn,an,sn){var on=0,cn=this.w;return this.barCtx.series[rn][an]?this.barCtx.isNullValue=!1:this.barCtx.isNullValue=!0,cn.config.stroke.show&&(this.barCtx.isNullValue||(on=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[sn]:this.barCtx.strokeWidth)),on}},{key:"createBorderRadiusArr",value:function(rn){var an,sn=this.w,on=!this.w.config.chart.stacked||sn.config.plotOptions.bar.borderRadius<=0,cn=rn.length,un=0|((an=rn[0])===null||an===void 0?void 0:an.length),pn=Array.from({length:cn},function(){return Array(un).fill(on?"top":"none")});if(on)return pn;for(var fn=0;fn<un;fn++){for(var mn=[],xn=[],vn=0,yn=0;yn<cn;yn++){var wn=rn[yn][fn];wn>0?(mn.push(yn),vn++):wn<0&&(xn.push(yn),vn++)}if(mn.length>0&&xn.length===0)if(mn.length===1)pn[mn[0]][fn]="both";else{var An,Cn=mn[0],kn=mn[mn.length-1],Mn=r$2(mn);try{for(Mn.s();!(An=Mn.n()).done;){var Tn=An.value;pn[Tn][fn]=Tn===Cn?"bottom":Tn===kn?"top":"none"}}catch(rr){Mn.e(rr)}finally{Mn.f()}}else if(xn.length>0&&mn.length===0)if(xn.length===1)pn[xn[0]][fn]="both";else{var On,Pn=Math.max.apply(Math,xn),Nn=Math.min.apply(Math,xn),In=r$2(xn);try{for(In.s();!(On=In.n()).done;){var jn=On.value;pn[jn][fn]=jn===Pn?"bottom":jn===Nn?"top":"none"}}catch(rr){In.e(rr)}finally{In.f()}}else if(mn.length>0&&xn.length>0){var Fn,Un=mn[mn.length-1],Yn=r$2(mn);try{for(Yn.s();!(Fn=Yn.n()).done;){var Qn=Fn.value;pn[Qn][fn]=Qn===Un?"top":"none"}}catch(rr){Yn.e(rr)}finally{Yn.f()}var ir,er=Math.max.apply(Math,xn),tr=r$2(xn);try{for(tr.s();!(ir=tr.n()).done;){var vr=ir.value;pn[vr][fn]=vr===er?"bottom":"none"}}catch(rr){tr.e(rr)}finally{tr.f()}}else vn===1&&(pn[mn[0]||xn[0]][fn]="both")}return pn}},{key:"barBackground",value:function(rn){var an=rn.j,sn=rn.i,on=rn.x1,cn=rn.x2,un=rn.y1,pn=rn.y2,fn=rn.elSeries,mn=this.w,xn=new Mi(this.barCtx.ctx),vn=new Zi(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&vn===sn){an>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(an%=this.barCtx.barOptions.colors.backgroundBarColors.length);var yn=this.barCtx.barOptions.colors.backgroundBarColors[an],wn=xn.drawRect(on!==void 0?on:0,un!==void 0?un:0,cn!==void 0?cn:mn.globals.gridWidth,pn!==void 0?pn:mn.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,yn,this.barCtx.barOptions.colors.backgroundBarOpacity);fn.add(wn),wn.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(rn){var an,sn=rn.barWidth,on=rn.barXPosition,cn=rn.y1,un=rn.y2,pn=rn.strokeWidth,fn=rn.isReversed,mn=rn.series,xn=rn.seriesGroup,vn=rn.realIndex,yn=rn.i,wn=rn.j,An=rn.w,Cn=new Mi(this.barCtx.ctx);(pn=Array.isArray(pn)?pn[vn]:pn)||(pn=0);var kn=sn,Mn=on;(an=An.config.series[vn].data[wn])!==null&&an!==void 0&&an.columnWidthOffset&&(Mn=on-An.config.series[vn].data[wn].columnWidthOffset/2,kn=sn+An.config.series[vn].data[wn].columnWidthOffset);var Tn=pn/2,On=Mn+Tn,Pn=Mn+kn-Tn,Nn=(mn[yn][wn]>=0?1:-1)*(fn?-1:1);cn+=.001-Tn*Nn,un+=.001+Tn*Nn;var In=Cn.move(On,cn),jn=Cn.move(On,cn),Fn=Cn.line(Pn,cn);if(An.globals.previousPaths.length>0&&(jn=this.barCtx.getPreviousPath(vn,wn,!1)),In=In+Cn.line(On,un)+Cn.line(Pn,un)+Fn+(An.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[vn][wn]==="both"?" Z":" z"),jn=jn+Cn.line(On,cn)+Fn+Fn+Fn+Fn+Fn+Cn.line(On,cn)+(An.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[vn][wn]==="both"?" Z":" z"),this.arrBorderRadius[vn][wn]!=="none"&&(In=Cn.roundPathCorners(In,An.config.plotOptions.bar.borderRadius)),An.config.chart.stacked){var Un=this.barCtx;(Un=this.barCtx[xn]).yArrj.push(un-Tn*Nn),Un.yArrjF.push(Math.abs(cn-un+pn*Nn)),Un.yArrjVal.push(this.barCtx.series[yn][wn])}return{pathTo:In,pathFrom:jn}}},{key:"getBarpaths",value:function(rn){var an,sn=rn.barYPosition,on=rn.barHeight,cn=rn.x1,un=rn.x2,pn=rn.strokeWidth,fn=rn.isReversed,mn=rn.series,xn=rn.seriesGroup,vn=rn.realIndex,yn=rn.i,wn=rn.j,An=rn.w,Cn=new Mi(this.barCtx.ctx);(pn=Array.isArray(pn)?pn[vn]:pn)||(pn=0);var kn=sn,Mn=on;(an=An.config.series[vn].data[wn])!==null&&an!==void 0&&an.barHeightOffset&&(kn=sn-An.config.series[vn].data[wn].barHeightOffset/2,Mn=on+An.config.series[vn].data[wn].barHeightOffset);var Tn=pn/2,On=kn+Tn,Pn=kn+Mn-Tn,Nn=(mn[yn][wn]>=0?1:-1)*(fn?-1:1);cn+=.001+Tn*Nn,un+=.001-Tn*Nn;var In=Cn.move(cn,On),jn=Cn.move(cn,On);An.globals.previousPaths.length>0&&(jn=this.barCtx.getPreviousPath(vn,wn,!1));var Fn=Cn.line(cn,Pn);if(In=In+Cn.line(un,On)+Cn.line(un,Pn)+Fn+(An.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[vn][wn]==="both"?" Z":" z"),jn=jn+Cn.line(cn,On)+Fn+Fn+Fn+Fn+Fn+Cn.line(cn,On)+(An.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[vn][wn]==="both"?" Z":" z"),this.arrBorderRadius[vn][wn]!=="none"&&(In=Cn.roundPathCorners(In,An.config.plotOptions.bar.borderRadius)),An.config.chart.stacked){var Un=this.barCtx;(Un=this.barCtx[xn]).xArrj.push(un+Tn*Nn),Un.xArrjF.push(Math.abs(cn-un-pn*Nn)),Un.xArrjVal.push(this.barCtx.series[yn][wn])}return{pathTo:In,pathFrom:jn}}},{key:"checkZeroSeries",value:function(rn){for(var an=rn.series,sn=this.w,on=0;on<an.length;on++){for(var cn=0,un=0;un<an[sn.globals.maxValsInArrayIndex].length;un++)cn+=an[on][un];cn===0&&this.barCtx.zeroSerieses.push(on)}}},{key:"getXForValue",value:function(rn,an){var sn=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?an:null;return rn!=null&&(sn=an+rn/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?rn/this.barCtx.invertedYRatio:0)),sn}},{key:"getYForValue",value:function(rn,an,sn){var on=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3]?an:null;return rn!=null&&(on=an-rn/this.barCtx.yRatio[sn]+2*(this.barCtx.isReversed?rn/this.barCtx.yRatio[sn]:0)),on}},{key:"getGoalValues",value:function(rn,an,sn,on,cn,un){var pn=this,fn=this.w,mn=[],xn=function(wn,An){var Cn;mn.push((o$1(Cn={},rn,rn==="x"?pn.getXForValue(wn,an,!1):pn.getYForValue(wn,sn,un,!1)),o$1(Cn,"attrs",An),Cn))};if(fn.globals.seriesGoals[on]&&fn.globals.seriesGoals[on][cn]&&Array.isArray(fn.globals.seriesGoals[on][cn])&&fn.globals.seriesGoals[on][cn].forEach(function(wn){xn(wn.value,wn)}),this.barCtx.barOptions.isDumbbell&&fn.globals.seriesRange.length){var vn=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:fn.globals.colors,yn={strokeHeight:rn==="x"?0:fn.globals.markers.size[on],strokeWidth:rn==="x"?fn.globals.markers.size[on]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(vn[on])?vn[on][0]:vn[on]};xn(fn.globals.seriesRangeStart[on][cn],yn),xn(fn.globals.seriesRangeEnd[on][cn],u$2(u$2({},yn),{},{strokeColor:Array.isArray(vn[on])?vn[on][1]:vn[on]}))}return mn}},{key:"drawGoalLine",value:function(rn){var an=rn.barXPosition,sn=rn.barYPosition,on=rn.goalX,cn=rn.goalY,un=rn.barWidth,pn=rn.barHeight,fn=new Mi(this.barCtx.ctx),mn=fn.group({className:"apexcharts-bar-goals-groups"});mn.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:mn.node}),mn.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var xn=null;return this.barCtx.isHorizontal?Array.isArray(on)&&on.forEach(function(vn){if(vn.x>=-1&&vn.x<=fn.w.globals.gridWidth+1){var yn=vn.attrs.strokeHeight!==void 0?vn.attrs.strokeHeight:pn/2,wn=sn+yn+pn/2;xn=fn.drawLine(vn.x,wn-2*yn,vn.x,wn,vn.attrs.strokeColor?vn.attrs.strokeColor:void 0,vn.attrs.strokeDashArray,vn.attrs.strokeWidth?vn.attrs.strokeWidth:2,vn.attrs.strokeLineCap),mn.add(xn)}}):Array.isArray(cn)&&cn.forEach(function(vn){if(vn.y>=-1&&vn.y<=fn.w.globals.gridHeight+1){var yn=vn.attrs.strokeWidth!==void 0?vn.attrs.strokeWidth:un/2,wn=an+yn+un/2;xn=fn.drawLine(wn-2*yn,vn.y,wn,vn.y,vn.attrs.strokeColor?vn.attrs.strokeColor:void 0,vn.attrs.strokeDashArray,vn.attrs.strokeHeight?vn.attrs.strokeHeight:2,vn.attrs.strokeLineCap),mn.add(xn)}}),mn}},{key:"drawBarShadow",value:function(rn){var an=rn.prevPaths,sn=rn.currPaths,on=rn.color,cn=this.w,un=an.x,pn=an.x1,fn=an.barYPosition,mn=sn.x,xn=sn.x1,vn=sn.barYPosition,yn=fn+sn.barHeight,wn=new Mi(this.barCtx.ctx),An=new v$2,Cn=wn.move(pn,yn)+wn.line(un,yn)+wn.line(mn,vn)+wn.line(xn,vn)+wn.line(pn,yn)+(cn.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[realIndex][j]==="both"?" Z":" z");return wn.drawPath({d:Cn,fill:An.shadeColor(.5,v$2.rgb2hex(on)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadow apexcharts-decoration-element"})}},{key:"getZeroValueEncounters",value:function(rn){var an,sn=rn.i,on=rn.j,cn=this.w,un=0,pn=0;return(cn.config.plotOptions.bar.horizontal?cn.globals.series.map(function(fn,mn){return mn}):((an=cn.globals.columnSeries)===null||an===void 0?void 0:an.i.map(function(fn){return fn}))||[]).forEach(function(fn){var mn=cn.globals.seriesPercent[fn][on];mn&&un++,fn<sn&&mn===0&&pn++}),{nonZeroColumns:un,zeroEncounters:pn}}},{key:"getGroupIndex",value:function(rn){var an=this.w,sn=an.globals.seriesGroups.findIndex(function(un){return un.indexOf(an.globals.seriesNames[rn])>-1}),on=this.barCtx.columnGroupIndices,cn=on.indexOf(sn);return cn<0&&(on.push(sn),cn=on.length-1),{groupIndex:sn,columnGroupIndex:cn}}}]),ln}(),Pa=function(){function ln(rn,an){i$2(this,ln),this.ctx=rn,this.w=rn.w;var sn=this.w;this.barOptions=sn.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=sn.config.stroke.width,this.isNullValue=!1,this.isRangeBar=sn.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!sn.globals.isBarHorizontal&&sn.globals.seriesRange.length&&sn.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=an,this.xyRatios!==null&&(this.xRatio=an.xRatio,this.yRatio=an.yRatio,this.invertedXRatio=an.invertedXRatio,this.invertedYRatio=an.invertedYRatio,this.baseLineY=an.baseLineY,this.baseLineInvertedY=an.baseLineInvertedY),this.yaxisIndex=0,this.translationsIndex=0,this.seriesLen=0,this.pathArr=[];var on=new Zi(this.ctx);this.lastActiveBarSerieIndex=on.getActiveConfigSeriesIndex("desc",["bar","column"]),this.columnGroupIndices=[];var cn=on.getBarSeriesIndices(),un=new Pi(this.ctx);this.stackedSeriesTotals=un.getStackedSeriesTotals(this.w.config.series.map(function(pn,fn){return cn.indexOf(fn)===-1?fn:-1}).filter(function(pn){return pn!==-1})),this.barHelpers=new Ma(this)}return s$1(ln,[{key:"draw",value:function(rn,an){var sn=this.w,on=new Mi(this.ctx),cn=new Pi(this.ctx,sn);rn=cn.getLogSeries(rn),this.series=rn,this.yRatio=cn.getLogYRatios(this.yRatio),this.barHelpers.initVariables(rn);var un=on.group({class:"apexcharts-bar-series apexcharts-plot-series"});sn.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 pn=0,fn=0;pn<rn.length;pn++,fn++){var mn,xn,vn,yn,wn=void 0,An=void 0,Cn=[],kn=[],Mn=sn.globals.comboCharts?an[pn]:pn,Tn=this.barHelpers.getGroupIndex(Mn).columnGroupIndex,On=on.group({class:"apexcharts-series",rel:pn+1,seriesName:v$2.escapeString(sn.globals.seriesNames[Mn]),"data:realIndex":Mn});this.ctx.series.addCollapsedClassToSeries(On,Mn),rn[pn].length>0&&(this.visibleI=this.visibleI+1);var Pn=0,Nn=0;this.yRatio.length>1&&(this.yaxisIndex=sn.globals.seriesYAxisReverseMap[Mn],this.translationsIndex=Mn);var In=this.translationsIndex;this.isReversed=sn.config.yaxis[this.yaxisIndex]&&sn.config.yaxis[this.yaxisIndex].reversed;var jn=this.barHelpers.initialPositions(Mn);An=jn.y,Pn=jn.barHeight,xn=jn.yDivision,yn=jn.zeroW,wn=jn.x,Nn=jn.barWidth,mn=jn.xDivision,vn=jn.zeroH,this.isHorizontal||kn.push(wn+Nn/2);var Fn=on.group({class:"apexcharts-datalabels","data:realIndex":Mn});sn.globals.delayedElements.push({el:Fn.node}),Fn.node.classList.add("apexcharts-element-hidden");var Un=on.group({class:"apexcharts-bar-goals-markers"}),Yn=on.group({class:"apexcharts-bar-shadows"});sn.globals.delayedElements.push({el:Yn.node}),Yn.node.classList.add("apexcharts-element-hidden");for(var Qn=0;Qn<rn[pn].length;Qn++){var ir=this.barHelpers.getStrokeWidth(pn,Qn,Mn),er=null,tr={indexes:{i:pn,j:Qn,realIndex:Mn,translationsIndex:In,bc:fn},x:wn,y:An,strokeWidth:ir,elSeries:On};this.isHorizontal?(er=this.drawBarPaths(u$2(u$2({},tr),{},{barHeight:Pn,zeroW:yn,yDivision:xn})),Nn=this.series[pn][Qn]/this.invertedYRatio):(er=this.drawColumnPaths(u$2(u$2({},tr),{},{xDivision:mn,barWidth:Nn,zeroH:vn})),Pn=this.series[pn][Qn]/this.yRatio[In]);var vr=this.barHelpers.getPathFillColor(rn,pn,Qn,Mn);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&Qn>0){var rr,fr=this.barHelpers.drawBarShadow({color:typeof vr.color=="string"&&((rr=vr.color)===null||rr===void 0?void 0:rr.indexOf("url"))===-1?vr.color:v$2.hexToRgba(sn.globals.colors[pn]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:er});Yn.add(fr),sn.config.chart.dropShadow.enabled&&new Li(this.ctx).dropShadow(fr,sn.config.chart.dropShadow,Mn)}this.pathArr.push(er);var ur=this.barHelpers.drawGoalLine({barXPosition:er.barXPosition,barYPosition:er.barYPosition,goalX:er.goalX,goalY:er.goalY,barHeight:Pn,barWidth:Nn});ur&&Un.add(ur),An=er.y,wn=er.x,Qn>0&&kn.push(wn+Nn/2),Cn.push(An),this.renderSeries(u$2(u$2({realIndex:Mn,pathFill:vr.color},vr.useRangeColor?{lineFill:vr.color}:{}),{},{j:Qn,i:pn,columnGroupIndex:Tn,pathFrom:er.pathFrom,pathTo:er.pathTo,strokeWidth:ir,elSeries:On,x:wn,y:An,series:rn,barHeight:Math.abs(er.barHeight?er.barHeight:Pn),barWidth:Math.abs(er.barWidth?er.barWidth:Nn),elDataLabelsWrap:Fn,elGoalsMarkers:Un,elBarShadows:Yn,visibleSeries:this.visibleI,type:"bar"}))}sn.globals.seriesXvalues[Mn]=kn,sn.globals.seriesYvalues[Mn]=Cn,un.add(On)}return un}},{key:"renderSeries",value:function(rn){var an=rn.realIndex,sn=rn.pathFill,on=rn.lineFill,cn=rn.j,un=rn.i,pn=rn.columnGroupIndex,fn=rn.pathFrom,mn=rn.pathTo,xn=rn.strokeWidth,vn=rn.elSeries,yn=rn.x,wn=rn.y,An=rn.y1,Cn=rn.y2,kn=rn.series,Mn=rn.barHeight,Tn=rn.barWidth,On=rn.barXPosition,Pn=rn.barYPosition,Nn=rn.elDataLabelsWrap,In=rn.elGoalsMarkers,jn=rn.elBarShadows,Fn=rn.visibleSeries,Un=rn.type,Yn=rn.classes,Qn=this.w,ir=new Mi(this.ctx);if(!on){var er=typeof Qn.globals.stroke.colors[an]=="function"?function(ur){var wr,Xn=Qn.config.stroke.colors;return Array.isArray(Xn)&&Xn.length>0&&((wr=Xn[ur])||(wr=""),typeof wr=="function")?wr({value:Qn.globals.series[ur][cn],dataPointIndex:cn,w:Qn}):wr}(an):Qn.globals.stroke.colors[an];on=this.barOptions.distributed?Qn.globals.stroke.colors[cn]:er}Qn.config.series[un].data[cn]&&Qn.config.series[un].data[cn].strokeColor&&(on=Qn.config.series[un].data[cn].strokeColor),this.isNullValue&&(sn="none");var tr=cn/Qn.config.chart.animations.animateGradually.delay*(Qn.config.chart.animations.speed/Qn.globals.dataPoints)/2.4,vr=ir.renderPaths({i:un,j:cn,realIndex:an,pathFrom:fn,pathTo:mn,stroke:on,strokeWidth:xn,strokeLineCap:Qn.config.stroke.lineCap,fill:sn,animationDelay:tr,initialSpeed:Qn.config.chart.animations.speed,dataChangeSpeed:Qn.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(Un,"-area ").concat(Yn),chartType:Un});vr.attr("clip-path","url(#gridRectBarMask".concat(Qn.globals.cuid,")"));var rr=Qn.config.forecastDataPoints;rr.count>0&&cn>=Qn.globals.dataPoints-rr.count&&(vr.node.setAttribute("stroke-dasharray",rr.dashArray),vr.node.setAttribute("stroke-width",rr.strokeWidth),vr.node.setAttribute("fill-opacity",rr.fillOpacity)),An!==void 0&&Cn!==void 0&&(vr.attr("data-range-y1",An),vr.attr("data-range-y2",Cn)),new Li(this.ctx).setSelectionFilter(vr,an,cn),vn.add(vr);var fr=new La(this).handleBarDataLabels({x:yn,y:wn,y1:An,y2:Cn,i:un,j:cn,series:kn,realIndex:an,columnGroupIndex:pn,barHeight:Mn,barWidth:Tn,barXPosition:On,barYPosition:Pn,renderedPath:vr,visibleSeries:Fn});return fr.dataLabels!==null&&Nn.add(fr.dataLabels),fr.totalDataLabels&&Nn.add(fr.totalDataLabels),vn.add(Nn),In&&vn.add(In),jn&&vn.add(jn),vn}},{key:"drawBarPaths",value:function(rn){var an,sn=rn.indexes,on=rn.barHeight,cn=rn.strokeWidth,un=rn.zeroW,pn=rn.x,fn=rn.y,mn=rn.yDivision,xn=rn.elSeries,vn=this.w,yn=sn.i,wn=sn.j;if(vn.globals.isXNumeric)an=(fn=(vn.globals.seriesX[yn][wn]-vn.globals.minX)/this.invertedXRatio-on)+on*this.visibleI;else if(vn.config.plotOptions.bar.hideZeroBarsWhenGrouped){var An=0,Cn=0;vn.globals.seriesPercent.forEach(function(Mn,Tn){Mn[wn]&&An++,Tn<yn&&Mn[wn]===0&&Cn++}),An>0&&(on=this.seriesLen*on/An),an=fn+on*this.visibleI,an-=on*Cn}else an=fn+on*this.visibleI;this.isFunnel&&(un-=(this.barHelpers.getXForValue(this.series[yn][wn],un)-un)/2),pn=this.barHelpers.getXForValue(this.series[yn][wn],un);var kn=this.barHelpers.getBarpaths({barYPosition:an,barHeight:on,x1:un,x2:pn,strokeWidth:cn,isReversed:this.isReversed,series:this.series,realIndex:sn.realIndex,i:yn,j:wn,w:vn});return vn.globals.isXNumeric||(fn+=mn),this.barHelpers.barBackground({j:wn,i:yn,y1:an-on*this.visibleI,y2:on*this.seriesLen,elSeries:xn}),{pathTo:kn.pathTo,pathFrom:kn.pathFrom,x1:un,x:pn,y:fn,goalX:this.barHelpers.getGoalValues("x",un,null,yn,wn),barYPosition:an,barHeight:on}}},{key:"drawColumnPaths",value:function(rn){var an,sn=rn.indexes,on=rn.x,cn=rn.y,un=rn.xDivision,pn=rn.barWidth,fn=rn.zeroH,mn=rn.strokeWidth,xn=rn.elSeries,vn=this.w,yn=sn.realIndex,wn=sn.translationsIndex,An=sn.i,Cn=sn.j,kn=sn.bc;if(vn.globals.isXNumeric){var Mn=this.getBarXForNumericXAxis({x:on,j:Cn,realIndex:yn,barWidth:pn});on=Mn.x,an=Mn.barXPosition}else if(vn.config.plotOptions.bar.hideZeroBarsWhenGrouped){var Tn=this.barHelpers.getZeroValueEncounters({i:An,j:Cn}),On=Tn.nonZeroColumns,Pn=Tn.zeroEncounters;On>0&&(pn=this.seriesLen*pn/On),an=on+pn*this.visibleI,an-=pn*Pn}else an=on+pn*this.visibleI;cn=this.barHelpers.getYForValue(this.series[An][Cn],fn,wn);var Nn=this.barHelpers.getColumnPaths({barXPosition:an,barWidth:pn,y1:fn,y2:cn,strokeWidth:mn,isReversed:this.isReversed,series:this.series,realIndex:yn,i:An,j:Cn,w:vn});return vn.globals.isXNumeric||(on+=un),this.barHelpers.barBackground({bc:kn,j:Cn,i:An,x1:an-mn/2-pn*this.visibleI,x2:pn*this.seriesLen+mn/2,elSeries:xn}),{pathTo:Nn.pathTo,pathFrom:Nn.pathFrom,x:on,y:cn,goalY:this.barHelpers.getGoalValues("y",null,fn,An,Cn,wn),barXPosition:an,barWidth:pn}}},{key:"getBarXForNumericXAxis",value:function(rn){var an=rn.x,sn=rn.barWidth,on=rn.realIndex,cn=rn.j,un=this.w,pn=on;return un.globals.seriesX[on].length||(pn=un.globals.maxValsInArrayIndex),v$2.isNumber(un.globals.seriesX[pn][cn])&&(an=(un.globals.seriesX[pn][cn]-un.globals.minX)/this.xRatio-sn*this.seriesLen/2),{barXPosition:an+sn*this.visibleI,x:an}}},{key:"getPreviousPath",value:function(rn,an){for(var sn,on=this.w,cn=0;cn<on.globals.previousPaths.length;cn++){var un=on.globals.previousPaths[cn];un.paths&&un.paths.length>0&&parseInt(un.realIndex,10)===parseInt(rn,10)&&on.globals.previousPaths[cn].paths[an]!==void 0&&(sn=on.globals.previousPaths[cn].paths[an].d)}return sn}}]),ln}(),Ia=function(ln){h$1(an,Pa);var rn=n$1(an);function an(){return i$2(this,an),rn.apply(this,arguments)}return s$1(an,[{key:"draw",value:function(sn,on){var cn=this,un=this.w;this.graphics=new Mi(this.ctx),this.bar=new Pa(this.ctx,this.xyRatios);var pn=new Pi(this.ctx,un);sn=pn.getLogSeries(sn),this.yRatio=pn.getLogYRatios(this.yRatio),this.barHelpers.initVariables(sn),un.config.chart.stackType==="100%"&&(sn=un.globals.comboCharts?on.map(function(An){return un.globals.seriesPercent[An]}):un.globals.seriesPercent.slice()),this.series=sn,this.barHelpers.initializeStackedPrevVars(this);for(var fn=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),mn=0,xn=0,vn=function(An,Cn){var kn=void 0,Mn=void 0,Tn=void 0,On=void 0,Pn=un.globals.comboCharts?on[An]:An,Nn=cn.barHelpers.getGroupIndex(Pn),In=Nn.groupIndex,jn=Nn.columnGroupIndex;cn.groupCtx=cn[un.globals.seriesGroups[In]];var Fn=[],Un=[],Yn=0;cn.yRatio.length>1&&(cn.yaxisIndex=un.globals.seriesYAxisReverseMap[Pn][0],Yn=Pn),cn.isReversed=un.config.yaxis[cn.yaxisIndex]&&un.config.yaxis[cn.yaxisIndex].reversed;var Qn=cn.graphics.group({class:"apexcharts-series",seriesName:v$2.escapeString(un.globals.seriesNames[Pn]),rel:An+1,"data:realIndex":Pn});cn.ctx.series.addCollapsedClassToSeries(Qn,Pn);var ir=cn.graphics.group({class:"apexcharts-datalabels","data:realIndex":Pn}),er=cn.graphics.group({class:"apexcharts-bar-goals-markers"}),tr=0,vr=0,rr=cn.initialPositions(mn,xn,kn,Mn,Tn,On,Yn);xn=rr.y,tr=rr.barHeight,Mn=rr.yDivision,On=rr.zeroW,mn=rr.x,vr=rr.barWidth,kn=rr.xDivision,Tn=rr.zeroH,un.globals.barHeight=tr,un.globals.barWidth=vr,cn.barHelpers.initializeStackedXYVars(cn),cn.groupCtx.prevY.length===1&&cn.groupCtx.prevY[0].every(function(Fr){return isNaN(Fr)})&&(cn.groupCtx.prevY[0]=cn.groupCtx.prevY[0].map(function(){return Tn}),cn.groupCtx.prevYF[0]=cn.groupCtx.prevYF[0].map(function(){return 0}));for(var fr=0;fr<un.globals.dataPoints;fr++){var ur=cn.barHelpers.getStrokeWidth(An,fr,Pn),wr={indexes:{i:An,j:fr,realIndex:Pn,translationsIndex:Yn,bc:Cn},strokeWidth:ur,x:mn,y:xn,elSeries:Qn,columnGroupIndex:jn,seriesGroup:un.globals.seriesGroups[In]},Xn=null;cn.isHorizontal?(Xn=cn.drawStackedBarPaths(u$2(u$2({},wr),{},{zeroW:On,barHeight:tr,yDivision:Mn})),vr=cn.series[An][fr]/cn.invertedYRatio):(Xn=cn.drawStackedColumnPaths(u$2(u$2({},wr),{},{xDivision:kn,barWidth:vr,zeroH:Tn})),tr=cn.series[An][fr]/cn.yRatio[Yn]);var cr=cn.barHelpers.drawGoalLine({barXPosition:Xn.barXPosition,barYPosition:Xn.barYPosition,goalX:Xn.goalX,goalY:Xn.goalY,barHeight:tr,barWidth:vr});cr&&er.add(cr),xn=Xn.y,mn=Xn.x,Fn.push(mn),Un.push(xn);var _r=cn.barHelpers.getPathFillColor(sn,An,fr,Pn),Nr="",Er=un.globals.isBarHorizontal?"apexcharts-flip-x":"apexcharts-flip-y";(cn.barHelpers.arrBorderRadius[Pn][fr]==="bottom"&&un.globals.series[Pn][fr]>0||cn.barHelpers.arrBorderRadius[Pn][fr]==="top"&&un.globals.series[Pn][fr]<0)&&(Nr=Er),Qn=cn.renderSeries(u$2(u$2({realIndex:Pn,pathFill:_r.color},_r.useRangeColor?{lineFill:_r.color}:{}),{},{j:fr,i:An,columnGroupIndex:jn,pathFrom:Xn.pathFrom,pathTo:Xn.pathTo,strokeWidth:ur,elSeries:Qn,x:mn,y:xn,series:sn,barHeight:tr,barWidth:vr,elDataLabelsWrap:ir,elGoalsMarkers:er,type:"bar",visibleSeries:jn,classes:Nr}))}un.globals.seriesXvalues[Pn]=Fn,un.globals.seriesYvalues[Pn]=Un,cn.groupCtx.prevY.push(cn.groupCtx.yArrj),cn.groupCtx.prevYF.push(cn.groupCtx.yArrjF),cn.groupCtx.prevYVal.push(cn.groupCtx.yArrjVal),cn.groupCtx.prevX.push(cn.groupCtx.xArrj),cn.groupCtx.prevXF.push(cn.groupCtx.xArrjF),cn.groupCtx.prevXVal.push(cn.groupCtx.xArrjVal),fn.add(Qn)},yn=0,wn=0;yn<sn.length;yn++,wn++)vn(yn,wn);return fn}},{key:"initialPositions",value:function(sn,on,cn,un,pn,fn,mn){var xn,vn,yn=this.w;if(this.isHorizontal){un=yn.globals.gridHeight/yn.globals.dataPoints;var wn=yn.config.plotOptions.bar.barHeight;xn=String(wn).indexOf("%")===-1?parseInt(wn,10):un*parseInt(wn,10)/100,fn=yn.globals.padHorizontal+(this.isReversed?yn.globals.gridWidth-this.baseLineInvertedY:this.baseLineInvertedY),on=(un-xn)/2}else{vn=cn=yn.globals.gridWidth/yn.globals.dataPoints;var An=yn.config.plotOptions.bar.columnWidth;yn.globals.isXNumeric&&yn.globals.dataPoints>1?vn=(cn=yn.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:String(An).indexOf("%")===-1?vn=parseInt(An,10):vn*=parseInt(An,10)/100,pn=this.isReversed?this.baseLineY[mn]:yn.globals.gridHeight-this.baseLineY[mn],sn=yn.globals.padHorizontal+(cn-vn)/2}var Cn=yn.globals.barGroups.length||1;return{x:sn,y:on,yDivision:un,xDivision:cn,barHeight:xn/Cn,barWidth:vn/Cn,zeroH:pn,zeroW:fn}}},{key:"drawStackedBarPaths",value:function(sn){for(var on,cn=sn.indexes,un=sn.barHeight,pn=sn.strokeWidth,fn=sn.zeroW,mn=sn.x,xn=sn.y,vn=sn.columnGroupIndex,yn=sn.seriesGroup,wn=sn.yDivision,An=sn.elSeries,Cn=this.w,kn=xn+vn*un,Mn=cn.i,Tn=cn.j,On=cn.realIndex,Pn=cn.translationsIndex,Nn=0,In=0;In<this.groupCtx.prevXF.length;In++)Nn+=this.groupCtx.prevXF[In][Tn];var jn;if((jn=yn.indexOf(Cn.config.series[On].name))>0){var Fn=fn;this.groupCtx.prevXVal[jn-1][Tn]<0?Fn=this.series[Mn][Tn]>=0?this.groupCtx.prevX[jn-1][Tn]+Nn-2*(this.isReversed?Nn:0):this.groupCtx.prevX[jn-1][Tn]:this.groupCtx.prevXVal[jn-1][Tn]>=0&&(Fn=this.series[Mn][Tn]>=0?this.groupCtx.prevX[jn-1][Tn]:this.groupCtx.prevX[jn-1][Tn]-Nn+2*(this.isReversed?Nn:0)),on=Fn}else on=fn;mn=this.series[Mn][Tn]===null?on:on+this.series[Mn][Tn]/this.invertedYRatio-2*(this.isReversed?this.series[Mn][Tn]/this.invertedYRatio:0);var Un=this.barHelpers.getBarpaths({barYPosition:kn,barHeight:un,x1:on,x2:mn,strokeWidth:pn,isReversed:this.isReversed,series:this.series,realIndex:cn.realIndex,seriesGroup:yn,i:Mn,j:Tn,w:Cn});return this.barHelpers.barBackground({j:Tn,i:Mn,y1:kn,y2:un,elSeries:An}),xn+=wn,{pathTo:Un.pathTo,pathFrom:Un.pathFrom,goalX:this.barHelpers.getGoalValues("x",fn,null,Mn,Tn,Pn),barXPosition:on,barYPosition:kn,x:mn,y:xn}}},{key:"drawStackedColumnPaths",value:function(sn){var on=sn.indexes,cn=sn.x,un=sn.y,pn=sn.xDivision,fn=sn.barWidth,mn=sn.zeroH,xn=sn.columnGroupIndex,vn=sn.seriesGroup,yn=sn.elSeries,wn=this.w,An=on.i,Cn=on.j,kn=on.bc,Mn=on.realIndex,Tn=on.translationsIndex;if(wn.globals.isXNumeric){var On=wn.globals.seriesX[Mn][Cn];On||(On=0),cn=(On-wn.globals.minX)/this.xRatio-fn/2*wn.globals.barGroups.length}for(var Pn,Nn=cn+xn*fn,In=0,jn=0;jn<this.groupCtx.prevYF.length;jn++)In+=isNaN(this.groupCtx.prevYF[jn][Cn])?0:this.groupCtx.prevYF[jn][Cn];var Fn=An;if(vn&&(Fn=vn.indexOf(wn.globals.seriesNames[Mn])),Fn>0&&!wn.globals.isXNumeric||Fn>0&&wn.globals.isXNumeric&&wn.globals.seriesX[Mn-1][Cn]===wn.globals.seriesX[Mn][Cn]){var Un,Yn,Qn,ir=Math.min(this.yRatio.length+1,Mn+1);if(this.groupCtx.prevY[Fn-1]!==void 0&&this.groupCtx.prevY[Fn-1].length)for(var er=1;er<ir;er++){var tr;if(!isNaN((tr=this.groupCtx.prevY[Fn-er])===null||tr===void 0?void 0:tr[Cn])){Qn=this.groupCtx.prevY[Fn-er][Cn];break}}for(var vr=1;vr<ir;vr++){var rr,fr;if(((rr=this.groupCtx.prevYVal[Fn-vr])===null||rr===void 0?void 0:rr[Cn])<0){Yn=this.series[An][Cn]>=0?Qn-In+2*(this.isReversed?In:0):Qn;break}if(((fr=this.groupCtx.prevYVal[Fn-vr])===null||fr===void 0?void 0:fr[Cn])>=0){Yn=this.series[An][Cn]>=0?Qn:Qn+In-2*(this.isReversed?In:0);break}}Yn===void 0&&(Yn=wn.globals.gridHeight),Pn=(Un=this.groupCtx.prevYF[0])!==null&&Un!==void 0&&Un.every(function(wr){return wr===0})&&this.groupCtx.prevYF.slice(1,Fn).every(function(wr){return wr.every(function(Xn){return isNaN(Xn)})})?mn:Yn}else Pn=mn;un=this.series[An][Cn]?Pn-this.series[An][Cn]/this.yRatio[Tn]+2*(this.isReversed?this.series[An][Cn]/this.yRatio[Tn]:0):Pn;var ur=this.barHelpers.getColumnPaths({barXPosition:Nn,barWidth:fn,y1:Pn,y2:un,yRatio:this.yRatio[Tn],strokeWidth:this.strokeWidth,isReversed:this.isReversed,series:this.series,seriesGroup:vn,realIndex:on.realIndex,i:An,j:Cn,w:wn});return this.barHelpers.barBackground({bc:kn,j:Cn,i:An,x1:Nn,x2:fn,elSeries:yn}),{pathTo:ur.pathTo,pathFrom:ur.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,mn,An,Cn),barXPosition:Nn,x:wn.globals.isXNumeric?cn:cn+pn,y:un}}}]),an}(),Ta=function(ln){h$1(an,Pa);var rn=n$1(an);function an(){return i$2(this,an),rn.apply(this,arguments)}return s$1(an,[{key:"draw",value:function(sn,on,cn){var un=this,pn=this.w,fn=new Mi(this.ctx),mn=pn.globals.comboCharts?on:pn.config.chart.type,xn=new ji(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=pn.config.plotOptions.bar.horizontal;var vn=new Pi(this.ctx,pn);sn=vn.getLogSeries(sn),this.series=sn,this.yRatio=vn.getLogYRatios(this.yRatio),this.barHelpers.initVariables(sn);for(var yn=fn.group({class:"apexcharts-".concat(mn,"-series apexcharts-plot-series")}),wn=function(Cn){un.isBoxPlot=pn.config.chart.type==="boxPlot"||pn.config.series[Cn].type==="boxPlot";var kn,Mn,Tn,On,Pn=void 0,Nn=void 0,In=[],jn=[],Fn=pn.globals.comboCharts?cn[Cn]:Cn,Un=un.barHelpers.getGroupIndex(Fn).columnGroupIndex,Yn=fn.group({class:"apexcharts-series",seriesName:v$2.escapeString(pn.globals.seriesNames[Fn]),rel:Cn+1,"data:realIndex":Fn});un.ctx.series.addCollapsedClassToSeries(Yn,Fn),sn[Cn].length>0&&(un.visibleI=un.visibleI+1);var Qn,ir,er=0;un.yRatio.length>1&&(un.yaxisIndex=pn.globals.seriesYAxisReverseMap[Fn][0],er=Fn);var tr=un.barHelpers.initialPositions(Fn);Nn=tr.y,Qn=tr.barHeight,Mn=tr.yDivision,On=tr.zeroW,Pn=tr.x,ir=tr.barWidth,kn=tr.xDivision,Tn=tr.zeroH,jn.push(Pn+ir/2);for(var vr=fn.group({class:"apexcharts-datalabels","data:realIndex":Fn}),rr=fn.group({class:"apexcharts-bar-goals-markers"}),fr=function(wr){var Xn=un.barHelpers.getStrokeWidth(Cn,wr,Fn),cr=null,_r={indexes:{i:Cn,j:wr,realIndex:Fn,translationsIndex:er},x:Pn,y:Nn,strokeWidth:Xn,elSeries:Yn};cr=un.isHorizontal?un.drawHorizontalBoxPaths(u$2(u$2({},_r),{},{yDivision:Mn,barHeight:Qn,zeroW:On})):un.drawVerticalBoxPaths(u$2(u$2({},_r),{},{xDivision:kn,barWidth:ir,zeroH:Tn})),Nn=cr.y,Pn=cr.x;var Nr=un.barHelpers.drawGoalLine({barXPosition:cr.barXPosition,barYPosition:cr.barYPosition,goalX:cr.goalX,goalY:cr.goalY,barHeight:Qn,barWidth:ir});Nr&&rr.add(Nr),wr>0&&jn.push(Pn+ir/2),In.push(Nn),cr.pathTo.forEach(function(Er,Fr){var Tr=!un.isBoxPlot&&un.candlestickOptions.wick.useFillColor?cr.color[Fr]:pn.globals.stroke.colors[Cn],Vr=xn.fillPath({seriesNumber:Fn,dataPointIndex:wr,color:cr.color[Fr],value:sn[Cn][wr]});un.renderSeries({realIndex:Fn,pathFill:Vr,lineFill:Tr,j:wr,i:Cn,pathFrom:cr.pathFrom,pathTo:Er,strokeWidth:Xn,elSeries:Yn,x:Pn,y:Nn,series:sn,columnGroupIndex:Un,barHeight:Qn,barWidth:ir,elDataLabelsWrap:vr,elGoalsMarkers:rr,visibleSeries:un.visibleI,type:pn.config.chart.type})})},ur=0;ur<pn.globals.dataPoints;ur++)fr(ur);pn.globals.seriesXvalues[Fn]=jn,pn.globals.seriesYvalues[Fn]=In,yn.add(Yn)},An=0;An<sn.length;An++)wn(An);return yn}},{key:"drawVerticalBoxPaths",value:function(sn){var on=sn.indexes,cn=sn.x;sn.y;var un=sn.xDivision,pn=sn.barWidth,fn=sn.zeroH,mn=sn.strokeWidth,xn=this.w,vn=new Mi(this.ctx),yn=on.i,wn=on.j,An=xn.config.plotOptions.candlestick.colors,Cn=this.boxOptions.colors,kn=on.realIndex,Mn=function(vr){return Array.isArray(vr)?vr[kn]:vr},Tn=Mn(An.upward),On=Mn(An.downward),Pn=this.yRatio[on.translationsIndex],Nn=this.getOHLCValue(kn,wn),In=fn,jn=fn,Fn=Nn.o<Nn.c?[Tn]:[On];this.isBoxPlot&&(Fn=[Mn(Cn.lower),Mn(Cn.upper)]);var Un=Math.min(Nn.o,Nn.c),Yn=Math.max(Nn.o,Nn.c),Qn=Nn.m;xn.globals.isXNumeric&&(cn=(xn.globals.seriesX[kn][wn]-xn.globals.minX)/this.xRatio-pn/2);var ir=cn+pn*this.visibleI;this.series[yn][wn]===void 0||this.series[yn][wn]===null?(Un=fn,Yn=fn):(Un=fn-Un/Pn,Yn=fn-Yn/Pn,In=fn-Nn.h/Pn,jn=fn-Nn.l/Pn,Qn=fn-Nn.m/Pn);var er=vn.move(ir,fn),tr=vn.move(ir+pn/2,Un);return xn.globals.previousPaths.length>0&&(tr=this.getPreviousPath(kn,wn,!0)),er=this.isBoxPlot?[vn.move(ir,Un)+vn.line(ir+pn/2,Un)+vn.line(ir+pn/2,In)+vn.line(ir+pn/4,In)+vn.line(ir+pn-pn/4,In)+vn.line(ir+pn/2,In)+vn.line(ir+pn/2,Un)+vn.line(ir+pn,Un)+vn.line(ir+pn,Qn)+vn.line(ir,Qn)+vn.line(ir,Un+mn/2),vn.move(ir,Qn)+vn.line(ir+pn,Qn)+vn.line(ir+pn,Yn)+vn.line(ir+pn/2,Yn)+vn.line(ir+pn/2,jn)+vn.line(ir+pn-pn/4,jn)+vn.line(ir+pn/4,jn)+vn.line(ir+pn/2,jn)+vn.line(ir+pn/2,Yn)+vn.line(ir,Yn)+vn.line(ir,Qn)+"z"]:[vn.move(ir,Yn)+vn.line(ir+pn/2,Yn)+vn.line(ir+pn/2,In)+vn.line(ir+pn/2,Yn)+vn.line(ir+pn,Yn)+vn.line(ir+pn,Un)+vn.line(ir+pn/2,Un)+vn.line(ir+pn/2,jn)+vn.line(ir+pn/2,Un)+vn.line(ir,Un)+vn.line(ir,Yn-mn/2)],tr+=vn.move(ir,Un),xn.globals.isXNumeric||(cn+=un),{pathTo:er,pathFrom:tr,x:cn,y:Yn,goalY:this.barHelpers.getGoalValues("y",null,fn,yn,wn,on.translationsIndex),barXPosition:ir,color:Fn}}},{key:"drawHorizontalBoxPaths",value:function(sn){var on=sn.indexes;sn.x;var cn=sn.y,un=sn.yDivision,pn=sn.barHeight,fn=sn.zeroW,mn=sn.strokeWidth,xn=this.w,vn=new Mi(this.ctx),yn=on.i,wn=on.j,An=this.boxOptions.colors.lower;this.isBoxPlot&&(An=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var Cn=this.invertedYRatio,kn=on.realIndex,Mn=this.getOHLCValue(kn,wn),Tn=fn,On=fn,Pn=Math.min(Mn.o,Mn.c),Nn=Math.max(Mn.o,Mn.c),In=Mn.m;xn.globals.isXNumeric&&(cn=(xn.globals.seriesX[kn][wn]-xn.globals.minX)/this.invertedXRatio-pn/2);var jn=cn+pn*this.visibleI;this.series[yn][wn]===void 0||this.series[yn][wn]===null?(Pn=fn,Nn=fn):(Pn=fn+Pn/Cn,Nn=fn+Nn/Cn,Tn=fn+Mn.h/Cn,On=fn+Mn.l/Cn,In=fn+Mn.m/Cn);var Fn=vn.move(fn,jn),Un=vn.move(Pn,jn+pn/2);return xn.globals.previousPaths.length>0&&(Un=this.getPreviousPath(kn,wn,!0)),Fn=[vn.move(Pn,jn)+vn.line(Pn,jn+pn/2)+vn.line(Tn,jn+pn/2)+vn.line(Tn,jn+pn/2-pn/4)+vn.line(Tn,jn+pn/2+pn/4)+vn.line(Tn,jn+pn/2)+vn.line(Pn,jn+pn/2)+vn.line(Pn,jn+pn)+vn.line(In,jn+pn)+vn.line(In,jn)+vn.line(Pn+mn/2,jn),vn.move(In,jn)+vn.line(In,jn+pn)+vn.line(Nn,jn+pn)+vn.line(Nn,jn+pn/2)+vn.line(On,jn+pn/2)+vn.line(On,jn+pn-pn/4)+vn.line(On,jn+pn/4)+vn.line(On,jn+pn/2)+vn.line(Nn,jn+pn/2)+vn.line(Nn,jn)+vn.line(In,jn)+"z"],Un+=vn.move(Pn,jn),xn.globals.isXNumeric||(cn+=un),{pathTo:Fn,pathFrom:Un,x:Nn,y:cn,goalX:this.barHelpers.getGoalValues("x",fn,null,yn,wn),barYPosition:jn,color:An}}},{key:"getOHLCValue",value:function(sn,on){var cn=this.w,un=new Pi(this.ctx,cn),pn=un.getLogValAtSeriesIndex(cn.globals.seriesCandleH[sn][on],sn),fn=un.getLogValAtSeriesIndex(cn.globals.seriesCandleO[sn][on],sn),mn=un.getLogValAtSeriesIndex(cn.globals.seriesCandleM[sn][on],sn),xn=un.getLogValAtSeriesIndex(cn.globals.seriesCandleC[sn][on],sn),vn=un.getLogValAtSeriesIndex(cn.globals.seriesCandleL[sn][on],sn);return{o:this.isBoxPlot?pn:fn,h:this.isBoxPlot?fn:pn,m:mn,l:this.isBoxPlot?xn:vn,c:this.isBoxPlot?vn:xn}}}]),an}(),za=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"checkColorRange",value:function(){var rn=this.w,an=!1,sn=rn.config.plotOptions[rn.config.chart.type];return sn.colorScale.ranges.length>0&&sn.colorScale.ranges.map(function(on,cn){on.from<=0&&(an=!0)}),an}},{key:"getShadeColor",value:function(rn,an,sn,on){var cn=this.w,un=1,pn=cn.config.plotOptions[rn].shadeIntensity,fn=this.determineColor(rn,an,sn);cn.globals.hasNegs||on?un=cn.config.plotOptions[rn].reverseNegativeShade?fn.percent<0?fn.percent/100*(1.25*pn):(1-fn.percent/100)*(1.25*pn):fn.percent<=0?1-(1+fn.percent/100)*pn:(1-fn.percent/100)*pn:(un=1-fn.percent/100,rn==="treemap"&&(un=(1-fn.percent/100)*(1.25*pn)));var mn=fn.color,xn=new v$2;if(cn.config.plotOptions[rn].enableShades)if(this.w.config.theme.mode==="dark"){var vn=xn.shadeColor(-1*un,fn.color);mn=v$2.hexToRgba(v$2.isColorHex(vn)?vn:v$2.rgb2hex(vn),cn.config.fill.opacity)}else{var yn=xn.shadeColor(un,fn.color);mn=v$2.hexToRgba(v$2.isColorHex(yn)?yn:v$2.rgb2hex(yn),cn.config.fill.opacity)}return{color:mn,colorProps:fn}}},{key:"determineColor",value:function(rn,an,sn){var on=this.w,cn=on.globals.series[an][sn],un=on.config.plotOptions[rn],pn=un.colorScale.inverse?sn:an;un.distributed&&on.config.chart.type==="treemap"&&(pn=sn);var fn=on.globals.colors[pn],mn=null,xn=Math.min.apply(Math,f$2(on.globals.series[an])),vn=Math.max.apply(Math,f$2(on.globals.series[an]));un.distributed||rn!=="heatmap"||(xn=on.globals.minY,vn=on.globals.maxY),un.colorScale.min!==void 0&&(xn=un.colorScale.min<on.globals.minY?un.colorScale.min:on.globals.minY,vn=un.colorScale.max>on.globals.maxY?un.colorScale.max:on.globals.maxY);var yn=Math.abs(vn)+Math.abs(xn),wn=100*cn/(yn===0?yn-1e-6:yn);return un.colorScale.ranges.length>0&&un.colorScale.ranges.map(function(An,Cn){if(cn>=An.from&&cn<=An.to){fn=An.color,mn=An.foreColor?An.foreColor:null,xn=An.from,vn=An.to;var kn=Math.abs(vn)+Math.abs(xn);wn=100*cn/(kn===0?kn-1e-6:kn)}}),{color:fn,foreColor:mn,percent:wn}}},{key:"calculateDataLabels",value:function(rn){var an=rn.text,sn=rn.x,on=rn.y,cn=rn.i,un=rn.j,pn=rn.colorProps,fn=rn.fontSize,mn=this.w.config.dataLabels,xn=new Mi(this.ctx),vn=new qi(this.ctx),yn=null;if(mn.enabled){yn=xn.group({class:"apexcharts-data-labels"});var wn=mn.offsetX,An=mn.offsetY,Cn=sn+wn,kn=on+parseFloat(mn.style.fontSize)/3+An;vn.plotDataLabelsText({x:Cn,y:kn,text:an,i:cn,j:un,color:pn.foreColor,parent:yn,fontSize:fn,dataLabelsConfig:mn})}return yn}},{key:"addListeners",value:function(rn){var an=new Mi(this.ctx);rn.node.addEventListener("mouseenter",an.pathMouseEnter.bind(this,rn)),rn.node.addEventListener("mouseleave",an.pathMouseLeave.bind(this,rn)),rn.node.addEventListener("mousedown",an.pathMouseDown.bind(this,rn))}}]),ln}(),Xa=function(){function ln(rn,an){i$2(this,ln),this.ctx=rn,this.w=rn.w,this.xRatio=an.xRatio,this.yRatio=an.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new za(rn),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return s$1(ln,[{key:"draw",value:function(rn){var an=this.w,sn=new Mi(this.ctx),on=sn.group({class:"apexcharts-heatmap"});on.attr("clip-path","url(#gridRectMask".concat(an.globals.cuid,")"));var cn=an.globals.gridWidth/an.globals.dataPoints,un=an.globals.gridHeight/an.globals.series.length,pn=0,fn=!1;this.negRange=this.helpers.checkColorRange();var mn=rn.slice();an.config.yaxis[0].reversed&&(fn=!0,mn.reverse());for(var xn=fn?0:mn.length-1;fn?xn<mn.length:xn>=0;fn?xn++:xn--){var vn=sn.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:v$2.escapeString(an.globals.seriesNames[xn]),rel:xn+1,"data:realIndex":xn});if(this.ctx.series.addCollapsedClassToSeries(vn,xn),an.config.chart.dropShadow.enabled){var yn=an.config.chart.dropShadow;new Li(this.ctx).dropShadow(vn,yn,xn)}for(var wn=0,An=an.config.plotOptions.heatmap.shadeIntensity,Cn=0,kn=0;kn<an.globals.dataPoints;kn++)if(an.globals.seriesX.length&&!an.globals.allSeriesHasEqualX&&an.globals.minX+an.globals.minXDiff*kn<an.globals.seriesX[xn][Cn])wn+=cn;else{if(Cn>=mn[xn].length)break;var Mn=this.helpers.getShadeColor(an.config.chart.type,xn,Cn,this.negRange),Tn=Mn.color,On=Mn.colorProps;an.config.fill.type==="image"&&(Tn=new ji(this.ctx).fillPath({seriesNumber:xn,dataPointIndex:Cn,opacity:an.globals.hasNegs?On.percent<0?1-(1+On.percent/100):An+On.percent/100:On.percent/100,patternID:v$2.randomId(),width:an.config.fill.image.width?an.config.fill.image.width:cn,height:an.config.fill.image.height?an.config.fill.image.height:un}));var Pn=this.rectRadius,Nn=sn.drawRect(wn,pn,cn,un,Pn);if(Nn.attr({cx:wn,cy:pn}),Nn.node.classList.add("apexcharts-heatmap-rect"),vn.add(Nn),Nn.attr({fill:Tn,i:xn,index:xn,j:Cn,val:rn[xn][Cn],"stroke-width":this.strokeWidth,stroke:an.config.plotOptions.heatmap.useFillColorAsStroke?Tn:an.globals.stroke.colors[0],color:Tn}),this.helpers.addListeners(Nn),an.config.chart.animations.enabled&&!an.globals.dataChanged){var In=1;an.globals.resized||(In=an.config.chart.animations.speed),this.animateHeatMap(Nn,wn,pn,cn,un,In)}if(an.globals.dataChanged){var jn=1;if(this.dynamicAnim.enabled&&an.globals.shouldAnimate){jn=this.dynamicAnim.speed;var Fn=an.globals.previousPaths[xn]&&an.globals.previousPaths[xn][Cn]&&an.globals.previousPaths[xn][Cn].color;Fn||(Fn="rgba(255, 255, 255, 0)"),this.animateHeatColor(Nn,v$2.isColorHex(Fn)?Fn:v$2.rgb2hex(Fn),v$2.isColorHex(Tn)?Tn:v$2.rgb2hex(Tn),jn)}}var Un=(0,an.config.dataLabels.formatter)(an.globals.series[xn][Cn],{value:an.globals.series[xn][Cn],seriesIndex:xn,dataPointIndex:Cn,w:an}),Yn=this.helpers.calculateDataLabels({text:Un,x:wn+cn/2,y:pn+un/2,i:xn,j:Cn,colorProps:On,series:mn});Yn!==null&&vn.add(Yn),wn+=cn,Cn++}pn+=un,on.add(vn)}var Qn=an.globals.yAxisScale[0].result.slice();return an.config.yaxis[0].reversed?Qn.unshift(""):Qn.push(""),an.globals.yAxisScale[0].result=Qn,on}},{key:"animateHeatMap",value:function(rn,an,sn,on,cn,un){var pn=new y$1(this.ctx);pn.animateRect(rn,{x:an+on/2,y:sn+cn/2,width:0,height:0},{x:an,y:sn,width:on,height:cn},un,function(){pn.animationCompleted(rn)})}},{key:"animateHeatColor",value:function(rn,an,sn,on){rn.attr({fill:an}).animate(on).attr({fill:sn})}}]),ln}(),Ra=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"drawYAxisTexts",value:function(rn,an,sn,on){var cn=this.w,un=cn.config.yaxis[0],pn=cn.globals.yLabelFormatters[0];return new Mi(this.ctx).drawText({x:rn+un.labels.offsetX,y:an+un.labels.offsetY,text:pn(on,sn),textAnchor:"middle",fontSize:un.labels.style.fontSize,fontFamily:un.labels.style.fontFamily,foreColor:Array.isArray(un.labels.style.colors)?un.labels.style.colors[sn]:un.labels.style.colors})}}]),ln}(),Ea=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w;var an=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=an.globals.stroke.colors!==void 0?an.globals.stroke.colors:an.globals.colors,this.defaultSize=Math.min(an.globals.gridWidth,an.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=an.globals.gridWidth/2,an.config.chart.type==="radialBar"?this.fullAngle=360:this.fullAngle=Math.abs(an.config.plotOptions.pie.endAngle-an.config.plotOptions.pie.startAngle),this.initialAngle=an.config.plotOptions.pie.startAngle%this.fullAngle,an.globals.radialSize=this.defaultSize/2.05-an.config.stroke.width-(an.config.chart.sparkline.enabled?0:an.config.chart.dropShadow.blur),this.donutSize=an.globals.radialSize*parseInt(an.config.plotOptions.pie.donut.size,10)/100;var sn=an.config.plotOptions.pie.customScale,on=an.globals.gridWidth/2,cn=an.globals.gridHeight/2;this.translateX=on-on*sn,this.translateY=cn-cn*sn,this.dataLabelsGroup=new Mi(this.ctx).group({class:"apexcharts-datalabels-group",transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(sn,")")}),this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return s$1(ln,[{key:"draw",value:function(rn){var an=this,sn=this.w,on=new Mi(this.ctx),cn=on.group({class:"apexcharts-pie"});if(sn.globals.noData)return cn;for(var un=0,pn=0;pn<rn.length;pn++)un+=v$2.negToZero(rn[pn]);var fn=[],mn=on.group();un===0&&(un=1e-5),rn.forEach(function(On){an.maxY=Math.max(an.maxY,On)}),sn.config.yaxis[0].max&&(this.maxY=sn.config.yaxis[0].max),sn.config.grid.position==="back"&&this.chartType==="polarArea"&&this.drawPolarElements(cn);for(var xn=0;xn<rn.length;xn++){var vn=this.fullAngle*v$2.negToZero(rn[xn])/un;fn.push(vn),this.chartType==="polarArea"?(fn[xn]=this.fullAngle/rn.length,this.sliceSizes.push(sn.globals.radialSize*rn[xn]/this.maxY)):this.sliceSizes.push(sn.globals.radialSize)}if(sn.globals.dataChanged){for(var yn,wn=0,An=0;An<sn.globals.previousPaths.length;An++)wn+=v$2.negToZero(sn.globals.previousPaths[An]);for(var Cn=0;Cn<sn.globals.previousPaths.length;Cn++)yn=this.fullAngle*v$2.negToZero(sn.globals.previousPaths[Cn])/wn,this.prevSectorAngleArr.push(yn)}if(this.donutSize<0&&(this.donutSize=0),this.chartType==="donut"){var kn=on.drawCircle(this.donutSize);kn.attr({cx:this.centerX,cy:this.centerY,fill:sn.config.plotOptions.pie.donut.background?sn.config.plotOptions.pie.donut.background:"transparent"}),mn.add(kn)}var Mn=this.drawArcs(fn,rn);if(this.sliceLabels.forEach(function(On){Mn.add(On)}),mn.attr({transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(sn.config.plotOptions.pie.customScale,")")}),mn.add(Mn),cn.add(mn),this.donutDataLabels.show){var Tn=this.renderInnerDataLabels(this.dataLabelsGroup,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});cn.add(Tn)}return sn.config.grid.position==="front"&&this.chartType==="polarArea"&&this.drawPolarElements(cn),cn}},{key:"drawArcs",value:function(rn,an){var sn=this.w,on=new Li(this.ctx),cn=new Mi(this.ctx),un=new ji(this.ctx),pn=cn.group({class:"apexcharts-slices"}),fn=this.initialAngle,mn=this.initialAngle,xn=this.initialAngle,vn=this.initialAngle;this.strokeWidth=sn.config.stroke.show?sn.config.stroke.width:0;for(var yn=0;yn<rn.length;yn++){var wn=cn.group({class:"apexcharts-series apexcharts-pie-series",seriesName:v$2.escapeString(sn.globals.seriesNames[yn]),rel:yn+1,"data:realIndex":yn});pn.add(wn),mn=vn,xn=(fn=xn)+rn[yn],vn=mn+this.prevSectorAngleArr[yn];var An=xn<fn?this.fullAngle+xn-fn:xn-fn,Cn=un.fillPath({seriesNumber:yn,size:this.sliceSizes[yn],value:an[yn]}),kn=this.getChangedPath(mn,vn),Mn=cn.drawPath({d:kn,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[yn]:this.lineColorArr,strokeWidth:0,fill:Cn,fillOpacity:sn.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(yn)});if(Mn.attr({index:0,j:yn}),on.setSelectionFilter(Mn,0,yn),sn.config.chart.dropShadow.enabled){var Tn=sn.config.chart.dropShadow;on.dropShadow(Mn,Tn,yn)}this.addListeners(Mn,this.donutDataLabels),Mi.setAttrs(Mn.node,{"data:angle":An,"data:startAngle":fn,"data:strokeWidth":this.strokeWidth,"data:value":an[yn]});var On={x:0,y:0};this.chartType==="pie"||this.chartType==="polarArea"?On=v$2.polarToCartesian(this.centerX,this.centerY,sn.globals.radialSize/1.25+sn.config.plotOptions.pie.dataLabels.offset,(fn+An/2)%this.fullAngle):this.chartType==="donut"&&(On=v$2.polarToCartesian(this.centerX,this.centerY,(sn.globals.radialSize+this.donutSize)/2+sn.config.plotOptions.pie.dataLabels.offset,(fn+An/2)%this.fullAngle)),wn.add(Mn);var Pn=0;if(!this.initialAnim||sn.globals.resized||sn.globals.dataChanged?this.animBeginArr.push(0):((Pn=An/this.fullAngle*sn.config.chart.animations.speed)===0&&(Pn=1),this.animDur=Pn+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&sn.globals.dataChanged?this.animatePaths(Mn,{size:this.sliceSizes[yn],endAngle:xn,startAngle:fn,prevStartAngle:mn,prevEndAngle:vn,animateStartingPos:!0,i:yn,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:sn.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(Mn,{size:this.sliceSizes[yn],endAngle:xn,startAngle:fn,i:yn,totalItems:rn.length-1,animBeginArr:this.animBeginArr,dur:Pn}),sn.config.plotOptions.pie.expandOnClick&&this.chartType!=="polarArea"&&Mn.node.addEventListener("mouseup",this.pieClicked.bind(this,yn)),sn.globals.selectedDataPoints[0]!==void 0&&sn.globals.selectedDataPoints[0].indexOf(yn)>-1&&this.pieClicked(yn),sn.config.dataLabels.enabled){var Nn=On.x,In=On.y,jn=100*An/this.fullAngle+"%";if(An!==0&&sn.config.plotOptions.pie.dataLabels.minAngleToShowLabel<rn[yn]){var Fn=sn.config.dataLabels.formatter;Fn!==void 0&&(jn=Fn(sn.globals.seriesPercent[yn][0],{seriesIndex:yn,w:sn}));var Un=sn.globals.dataLabels.style.colors[yn],Yn=cn.group({class:"apexcharts-datalabels"}),Qn=cn.drawText({x:Nn,y:In,text:jn,textAnchor:"middle",fontSize:sn.config.dataLabels.style.fontSize,fontFamily:sn.config.dataLabels.style.fontFamily,fontWeight:sn.config.dataLabels.style.fontWeight,foreColor:Un});if(Yn.add(Qn),sn.config.dataLabels.dropShadow.enabled){var ir=sn.config.dataLabels.dropShadow;on.dropShadow(Qn,ir)}Qn.node.classList.add("apexcharts-pie-label"),sn.config.chart.animations.animate&&sn.globals.resized===!1&&(Qn.node.classList.add("apexcharts-pie-label-delay"),Qn.node.style.animationDelay=sn.config.chart.animations.speed/940+"s"),this.sliceLabels.push(Yn)}}}return pn}},{key:"addListeners",value:function(rn,an){var sn=new Mi(this.ctx);rn.node.addEventListener("mouseenter",sn.pathMouseEnter.bind(this,rn)),rn.node.addEventListener("mouseleave",sn.pathMouseLeave.bind(this,rn)),rn.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,rn.node,an)),rn.node.addEventListener("mousedown",sn.pathMouseDown.bind(this,rn)),this.donutDataLabels.total.showAlways||(rn.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,rn.node,an)),rn.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,rn.node,an)))}},{key:"animatePaths",value:function(rn,an){var sn=this.w,on=an.endAngle<an.startAngle?this.fullAngle+an.endAngle-an.startAngle:an.endAngle-an.startAngle,cn=on,un=an.startAngle,pn=an.startAngle;an.prevStartAngle!==void 0&&an.prevEndAngle!==void 0&&(un=an.prevEndAngle,cn=an.prevEndAngle<an.prevStartAngle?this.fullAngle+an.prevEndAngle-an.prevStartAngle:an.prevEndAngle-an.prevStartAngle),an.i===sn.config.series.length-1&&(on+pn>this.fullAngle?an.endAngle=an.endAngle-(on+pn):on+pn<this.fullAngle&&(an.endAngle=an.endAngle+(this.fullAngle-(on+pn)))),on===this.fullAngle&&(on=this.fullAngle-.01),this.animateArc(rn,un,pn,on,cn,an)}},{key:"animateArc",value:function(rn,an,sn,on,cn,un){var pn,fn=this,mn=this.w,xn=new y$1(this.ctx),vn=un.size;(isNaN(an)||isNaN(cn))&&(an=sn,cn=on,un.dur=0);var yn=on,wn=sn,An=an<sn?this.fullAngle+an-sn:an-sn;mn.globals.dataChanged&&un.shouldSetPrevPaths&&un.prevEndAngle&&(pn=fn.getPiePath({me:fn,startAngle:un.prevStartAngle,angle:un.prevEndAngle<un.prevStartAngle?this.fullAngle+un.prevEndAngle-un.prevStartAngle:un.prevEndAngle-un.prevStartAngle,size:vn}),rn.attr({d:pn})),un.dur!==0?rn.animate(un.dur,un.animBeginArr[un.i]).after(function(){fn.chartType!=="pie"&&fn.chartType!=="donut"&&fn.chartType!=="polarArea"||this.animate(mn.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":fn.strokeWidth}),un.i===mn.config.series.length-1&&xn.animationCompleted(rn)}).during(function(Cn){yn=An+(on-An)*Cn,un.animateStartingPos&&(yn=cn+(on-cn)*Cn,wn=an-cn+(sn-(an-cn))*Cn),pn=fn.getPiePath({me:fn,startAngle:wn,angle:yn,size:vn}),rn.node.setAttribute("data:pathOrig",pn),rn.attr({d:pn})}):(pn=fn.getPiePath({me:fn,startAngle:wn,angle:on,size:vn}),un.isTrack||(mn.globals.animationEnded=!0),rn.node.setAttribute("data:pathOrig",pn),rn.attr({d:pn,"stroke-width":fn.strokeWidth}))}},{key:"pieClicked",value:function(rn){var an,sn=this.w,on=this,cn=on.sliceSizes[rn]+(sn.config.plotOptions.pie.expandOnClick?4:0),un=sn.globals.dom.Paper.findOne(".apexcharts-".concat(on.chartType.toLowerCase(),"-slice-").concat(rn));if(un.attr("data:pieClicked")!=="true"){var pn=sn.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(pn,function(vn){vn.setAttribute("data:pieClicked","false");var yn=vn.getAttribute("data:pathOrig");yn&&vn.setAttribute("d",yn)}),sn.globals.capturedDataPointIndex=rn,un.attr("data:pieClicked","true");var fn=parseInt(un.attr("data:startAngle"),10),mn=parseInt(un.attr("data:angle"),10);an=on.getPiePath({me:on,startAngle:fn,angle:mn,size:cn}),mn!==360&&un.plot(an)}else{un.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(un.node,this.donutDataLabels);var xn=un.attr("data:pathOrig");un.attr({d:xn})}}},{key:"getChangedPath",value:function(rn,an){var sn="";return this.dynamicAnim&&this.w.globals.dataChanged&&(sn=this.getPiePath({me:this,startAngle:rn,angle:an-rn,size:this.size})),sn}},{key:"getPiePath",value:function(rn){var an,sn=rn.me,on=rn.startAngle,cn=rn.angle,un=rn.size,pn=new Mi(this.ctx),fn=on,mn=Math.PI*(fn-90)/180,xn=cn+on;Math.ceil(xn)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(xn=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(xn)>this.fullAngle&&(xn-=this.fullAngle);var vn=Math.PI*(xn-90)/180,yn=sn.centerX+un*Math.cos(mn),wn=sn.centerY+un*Math.sin(mn),An=sn.centerX+un*Math.cos(vn),Cn=sn.centerY+un*Math.sin(vn),kn=v$2.polarToCartesian(sn.centerX,sn.centerY,sn.donutSize,xn),Mn=v$2.polarToCartesian(sn.centerX,sn.centerY,sn.donutSize,fn),Tn=cn>180?1:0,On=["M",yn,wn,"A",un,un,0,Tn,1,An,Cn];return an=sn.chartType==="donut"?[].concat(On,["L",kn.x,kn.y,"A",sn.donutSize,sn.donutSize,0,Tn,0,Mn.x,Mn.y,"L",yn,wn,"z"]).join(" "):sn.chartType==="pie"||sn.chartType==="polarArea"?[].concat(On,["L",sn.centerX,sn.centerY,"L",yn,wn]).join(" "):[].concat(On).join(" "),pn.roundPathCorners(an,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(rn){var an=this.w,sn=new ta(this.ctx),on=new Mi(this.ctx),cn=new Ra(this.ctx),un=on.group(),pn=on.group(),fn=sn.niceScale(0,Math.ceil(this.maxY),0),mn=fn.result.reverse(),xn=fn.result.length;this.maxY=fn.niceMax;for(var vn=an.globals.radialSize,yn=vn/(xn-1),wn=0;wn<xn-1;wn++){var An=on.drawCircle(vn);if(An.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":an.config.plotOptions.polarArea.rings.strokeWidth,stroke:an.config.plotOptions.polarArea.rings.strokeColor}),an.config.yaxis[0].show){var Cn=cn.drawYAxisTexts(this.centerX,this.centerY-vn+parseInt(an.config.yaxis[0].labels.style.fontSize,10)/2,wn,mn[wn]);pn.add(Cn)}un.add(An),vn-=yn}this.drawSpokes(rn),rn.add(un),rn.add(pn)}},{key:"renderInnerDataLabels",value:function(rn,an,sn){var on=this.w,cn=new Mi(this.ctx),un=an.total.show;rn.node.innerHTML="",rn.node.style.opacity=sn.opacity;var pn,fn,mn=sn.centerX,xn=this.donutDataLabels.total.label?sn.centerY:sn.centerY-sn.centerY/6;pn=an.name.color===void 0?on.globals.colors[0]:an.name.color;var vn=an.name.fontSize,yn=an.name.fontFamily,wn=an.name.fontWeight;fn=an.value.color===void 0?on.config.chart.foreColor:an.value.color;var An=an.value.formatter,Cn="",kn="";if(un?(pn=an.total.color,vn=an.total.fontSize,yn=an.total.fontFamily,wn=an.total.fontWeight,kn=this.donutDataLabels.total.label?an.total.label:"",Cn=an.total.formatter(on)):on.globals.series.length===1&&(Cn=An(on.globals.series[0],on),kn=on.globals.seriesNames[0]),kn&&(kn=an.name.formatter(kn,an.total.show,on)),an.name.show){var Mn=cn.drawText({x:mn,y:xn+parseFloat(an.name.offsetY),text:kn,textAnchor:"middle",foreColor:pn,fontSize:vn,fontWeight:wn,fontFamily:yn});Mn.node.classList.add("apexcharts-datalabel-label"),rn.add(Mn)}if(an.value.show){var Tn=an.name.show?parseFloat(an.value.offsetY)+16:an.value.offsetY,On=cn.drawText({x:mn,y:xn+Tn,text:Cn,textAnchor:"middle",foreColor:fn,fontWeight:an.value.fontWeight,fontSize:an.value.fontSize,fontFamily:an.value.fontFamily});On.node.classList.add("apexcharts-datalabel-value"),rn.add(On)}return rn}},{key:"printInnerLabels",value:function(rn,an,sn,on){var cn,un=this.w;on?cn=rn.name.color===void 0?un.globals.colors[parseInt(on.parentNode.getAttribute("rel"),10)-1]:rn.name.color:un.globals.series.length>1&&rn.total.show&&(cn=rn.total.color);var pn=un.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),fn=un.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");sn=(0,rn.value.formatter)(sn,un),on||typeof rn.total.formatter!="function"||(sn=rn.total.formatter(un));var mn=an===rn.total.label;an=this.donutDataLabels.total.label?rn.name.formatter(an,mn,un):"",pn!==null&&(pn.textContent=an),fn!==null&&(fn.textContent=sn),pn!==null&&(pn.style.fill=cn)}},{key:"printDataLabelsInner",value:function(rn,an){var sn=this.w,on=rn.getAttribute("data:value"),cn=sn.globals.seriesNames[parseInt(rn.parentNode.getAttribute("rel"),10)-1];sn.globals.series.length>1&&this.printInnerLabels(an,cn,on,rn);var un=sn.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");un!==null&&(un.style.opacity=1)}},{key:"drawSpokes",value:function(rn){var an=this,sn=this.w,on=new Mi(this.ctx),cn=sn.config.plotOptions.polarArea.spokes;if(cn.strokeWidth!==0){for(var un=[],pn=360/sn.globals.series.length,fn=0;fn<sn.globals.series.length;fn++)un.push(v$2.polarToCartesian(this.centerX,this.centerY,sn.globals.radialSize,sn.config.plotOptions.pie.startAngle+pn*fn));un.forEach(function(mn,xn){var vn=on.drawLine(mn.x,mn.y,an.centerX,an.centerY,Array.isArray(cn.connectorColors)?cn.connectorColors[xn]:cn.connectorColors);rn.add(vn)})}}},{key:"revertDataLabelsInner",value:function(){var rn=this.w;if(this.donutDataLabels.show){var an=rn.globals.dom.Paper.findOne(".apexcharts-datalabels-group"),sn=this.renderInnerDataLabels(an,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});rn.globals.dom.Paper.findOne(".apexcharts-radialbar, .apexcharts-pie").add(sn)}}}]),ln}(),Ya=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.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 an=this.w;this.graphics=new Mi(this.ctx),this.lineColorArr=an.globals.stroke.colors!==void 0?an.globals.stroke.colors:an.globals.colors,this.defaultSize=an.globals.svgHeight<an.globals.svgWidth?an.globals.gridHeight:an.globals.gridWidth,this.isLog=an.config.yaxis[0].logarithmic,this.logBase=an.config.yaxis[0].logBase,this.coreUtils=new Pi(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(this.logBase,an.globals.maxY,0):an.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.logBase,this.w.globals.minY,0):an.globals.minY,this.polygons=an.config.plotOptions.radar.polygons,this.strokeWidth=an.config.stroke.show?an.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-an.config.chart.dropShadow.blur,an.config.xaxis.labels.show&&(this.size=this.size-an.globals.xAxisLabelsWidth/1.75),an.config.plotOptions.radar.size!==void 0&&(this.size=an.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return s$1(ln,[{key:"draw",value:function(rn){var an=this,sn=this.w,on=new ji(this.ctx),cn=[],un=new qi(this.ctx);rn.length&&(this.dataPointsLen=rn[sn.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var pn=sn.globals.gridWidth/2,fn=sn.globals.gridHeight/2,mn=pn+sn.config.plotOptions.radar.offsetX,xn=fn+sn.config.plotOptions.radar.offsetY,vn=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(mn||0,", ").concat(xn||0,")")}),yn=[],wn=null,An=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),rn.forEach(function(kn,Mn){var Tn=kn.length===sn.globals.dataPoints,On=an.graphics.group().attr({class:"apexcharts-series","data:longestSeries":Tn,seriesName:v$2.escapeString(sn.globals.seriesNames[Mn]),rel:Mn+1,"data:realIndex":Mn});an.dataRadiusOfPercent[Mn]=[],an.dataRadius[Mn]=[],an.angleArr[Mn]=[],kn.forEach(function(er,tr){var vr=Math.abs(an.maxValue-an.minValue);er-=an.minValue,an.isLog&&(er=an.coreUtils.getLogVal(an.logBase,er,0)),an.dataRadiusOfPercent[Mn][tr]=er/vr,an.dataRadius[Mn][tr]=an.dataRadiusOfPercent[Mn][tr]*an.size,an.angleArr[Mn][tr]=tr*an.disAngle}),yn=an.getDataPointsPos(an.dataRadius[Mn],an.angleArr[Mn]);var Pn=an.createPaths(yn,{x:0,y:0});wn=an.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),An=an.graphics.group({class:"apexcharts-datalabels","data:realIndex":Mn}),sn.globals.delayedElements.push({el:wn.node,index:Mn});var Nn={i:Mn,realIndex:Mn,animationDelay:Mn,initialSpeed:sn.config.chart.animations.speed,dataChangeSpeed:sn.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:sn.globals.stroke.colors[Mn],strokeLineCap:sn.config.stroke.lineCap},In=null;sn.globals.previousPaths.length>0&&(In=an.getPreviousPath(Mn));for(var jn=0;jn<Pn.linePathsTo.length;jn++){var Fn=an.graphics.renderPaths(u$2(u$2({},Nn),{},{pathFrom:In===null?Pn.linePathsFrom[jn]:In,pathTo:Pn.linePathsTo[jn],strokeWidth:Array.isArray(an.strokeWidth)?an.strokeWidth[Mn]:an.strokeWidth,fill:"none",drawShadow:!1}));On.add(Fn);var Un=on.fillPath({seriesNumber:Mn}),Yn=an.graphics.renderPaths(u$2(u$2({},Nn),{},{pathFrom:In===null?Pn.areaPathsFrom[jn]:In,pathTo:Pn.areaPathsTo[jn],strokeWidth:0,fill:Un,drawShadow:!1}));if(sn.config.chart.dropShadow.enabled){var Qn=new Li(an.ctx),ir=sn.config.chart.dropShadow;Qn.dropShadow(Yn,Object.assign({},ir,{noUserSpaceOnUse:!0}),Mn)}On.add(Yn)}kn.forEach(function(er,tr){var vr=new Vi(an.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:Mn,dataPointIndex:tr}),rr=an.graphics.drawMarker(yn[tr].x,yn[tr].y,vr);rr.attr("rel",tr),rr.attr("j",tr),rr.attr("index",Mn),rr.node.setAttribute("default-marker-size",vr.pSize);var fr=an.graphics.group({class:"apexcharts-series-markers"});fr&&fr.add(rr),wn.add(fr),On.add(wn);var ur=sn.config.dataLabels;if(ur.enabled){var wr=ur.formatter(sn.globals.series[Mn][tr],{seriesIndex:Mn,dataPointIndex:tr,w:sn});un.plotDataLabelsText({x:yn[tr].x,y:yn[tr].y,text:wr,textAnchor:"middle",i:Mn,j:Mn,parent:An,offsetCorrection:!1,dataLabelsConfig:u$2({},ur)})}On.add(An)}),cn.push(On)}),this.drawPolygons({parent:vn}),sn.config.xaxis.labels.show){var Cn=this.drawXAxisTexts();vn.add(Cn)}return cn.forEach(function(kn){vn.add(kn)}),vn.add(this.yaxisLabels),vn}},{key:"drawPolygons",value:function(rn){for(var an=this,sn=this.w,on=rn.parent,cn=new Ra(this.ctx),un=sn.globals.yAxisScale[0].result.reverse(),pn=un.length,fn=[],mn=this.size/(pn-1),xn=0;xn<pn;xn++)fn[xn]=mn*xn;fn.reverse();var vn=[],yn=[];fn.forEach(function(wn,An){var Cn=v$2.getPolygonPos(wn,an.dataPointsLen),kn="";Cn.forEach(function(Mn,Tn){if(An===0){var On=an.graphics.drawLine(Mn.x,Mn.y,0,0,Array.isArray(an.polygons.connectorColors)?an.polygons.connectorColors[Tn]:an.polygons.connectorColors);yn.push(On)}Tn===0&&an.yaxisLabelsTextsPos.push({x:Mn.x,y:Mn.y}),kn+=Mn.x+","+Mn.y+" "}),vn.push(kn)}),vn.forEach(function(wn,An){var Cn=an.polygons.strokeColors,kn=an.polygons.strokeWidth,Mn=an.graphics.drawPolygon(wn,Array.isArray(Cn)?Cn[An]:Cn,Array.isArray(kn)?kn[An]:kn,sn.globals.radarPolygons.fill.colors[An]);on.add(Mn)}),yn.forEach(function(wn){on.add(wn)}),sn.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(wn,An){var Cn=cn.drawYAxisTexts(wn.x,wn.y,An,un[An]);an.yaxisLabels.add(Cn)})}},{key:"drawXAxisTexts",value:function(){var rn=this,an=this.w,sn=an.config.xaxis.labels,on=this.graphics.group({class:"apexcharts-xaxis"}),cn=v$2.getPolygonPos(this.size,this.dataPointsLen);return an.globals.labels.forEach(function(un,pn){var fn=an.config.xaxis.labels.formatter,mn=new qi(rn.ctx);if(cn[pn]){var xn=rn.getTextPos(cn[pn],rn.size),vn=fn(un,{seriesIndex:-1,dataPointIndex:pn,w:an});mn.plotDataLabelsText({x:xn.newX,y:xn.newY,text:vn,textAnchor:xn.textAnchor,i:pn,j:pn,parent:on,className:"apexcharts-xaxis-label",color:Array.isArray(sn.style.colors)&&sn.style.colors[pn]?sn.style.colors[pn]:"#a8a8a8",dataLabelsConfig:u$2({textAnchor:xn.textAnchor,dropShadow:{enabled:!1}},sn),offsetCorrection:!1}).on("click",function(yn){if(typeof an.config.chart.events.xAxisLabelClick=="function"){var wn=Object.assign({},an,{labelIndex:pn});an.config.chart.events.xAxisLabelClick(yn,rn.ctx,wn)}})}}),on}},{key:"createPaths",value:function(rn,an){var sn=this,on=[],cn=[],un=[],pn=[];if(rn.length){cn=[this.graphics.move(an.x,an.y)],pn=[this.graphics.move(an.x,an.y)];var fn=this.graphics.move(rn[0].x,rn[0].y),mn=this.graphics.move(rn[0].x,rn[0].y);rn.forEach(function(xn,vn){fn+=sn.graphics.line(xn.x,xn.y),mn+=sn.graphics.line(xn.x,xn.y),vn===rn.length-1&&(fn+="Z",mn+="Z")}),on.push(fn),un.push(mn)}return{linePathsFrom:cn,linePathsTo:on,areaPathsFrom:pn,areaPathsTo:un}}},{key:"getTextPos",value:function(rn,an){var sn="middle",on=rn.x,cn=rn.y;return Math.abs(rn.x)>=10?rn.x>0?(sn="start",on+=10):rn.x<0&&(sn="end",on-=10):sn="middle",Math.abs(rn.y)>=an-10&&(rn.y<0?cn-=10:rn.y>0&&(cn+=10)),{textAnchor:sn,newX:on,newY:cn}}},{key:"getPreviousPath",value:function(rn){for(var an=this.w,sn=null,on=0;on<an.globals.previousPaths.length;on++){var cn=an.globals.previousPaths[on];cn.paths.length>0&&parseInt(cn.realIndex,10)===parseInt(rn,10)&&an.globals.previousPaths[on].paths[0]!==void 0&&(sn=an.globals.previousPaths[on].paths[0].d)}return sn}},{key:"getDataPointsPos",value:function(rn,an){var sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.dataPointsLen;rn=rn||[],an=an||[];for(var on=[],cn=0;cn<sn;cn++){var un={};un.x=rn[cn]*Math.sin(an[cn]),un.y=-rn[cn]*Math.cos(an[cn]),on.push(un)}return on}}]),ln}(),Ha=function(ln){h$1(an,Ea);var rn=n$1(an);function an(sn){var on;i$2(this,an),(on=rn.call(this,sn)).ctx=sn,on.w=sn.w,on.animBeginArr=[0],on.animDur=0;var cn=on.w;return on.startAngle=cn.config.plotOptions.radialBar.startAngle,on.endAngle=cn.config.plotOptions.radialBar.endAngle,on.totalAngle=Math.abs(cn.config.plotOptions.radialBar.endAngle-cn.config.plotOptions.radialBar.startAngle),on.trackStartAngle=cn.config.plotOptions.radialBar.track.startAngle,on.trackEndAngle=cn.config.plotOptions.radialBar.track.endAngle,on.barLabels=on.w.config.plotOptions.radialBar.barLabels,on.donutDataLabels=on.w.config.plotOptions.radialBar.dataLabels,on.radialDataLabels=on.donutDataLabels,on.trackStartAngle||(on.trackStartAngle=on.startAngle),on.trackEndAngle||(on.trackEndAngle=on.endAngle),on.endAngle===360&&(on.endAngle=359.99),on.margin=parseInt(cn.config.plotOptions.radialBar.track.margin,10),on.onBarLabelClick=on.onBarLabelClick.bind(e$2(on)),on}return s$1(an,[{key:"draw",value:function(sn){var on=this.w,cn=new Mi(this.ctx),un=cn.group({class:"apexcharts-radialbar"});if(on.globals.noData)return un;var pn=cn.group(),fn=this.defaultSize/2,mn=on.globals.gridWidth/2,xn=this.defaultSize/2.05;on.config.chart.sparkline.enabled||(xn=xn-on.config.stroke.width-on.config.chart.dropShadow.blur);var vn=on.globals.fill.colors;if(on.config.plotOptions.radialBar.track.show){var yn=this.drawTracks({size:xn,centerX:mn,centerY:fn,colorArr:vn,series:sn});pn.add(yn)}var wn=this.drawArcs({size:xn,centerX:mn,centerY:fn,colorArr:vn,series:sn}),An=360;on.config.plotOptions.radialBar.startAngle<0&&(An=this.totalAngle);var Cn=(360-An)/360;if(on.globals.radialSize=xn-xn*Cn,this.radialDataLabels.value.show){var kn=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);on.globals.radialSize+=kn*Cn}return pn.add(wn.g),on.config.plotOptions.radialBar.hollow.position==="front"&&(wn.g.add(wn.elHollow),wn.dataLabels&&wn.g.add(wn.dataLabels)),un.add(pn),un}},{key:"drawTracks",value:function(sn){var on=this.w,cn=new Mi(this.ctx),un=cn.group({class:"apexcharts-tracks"}),pn=new Li(this.ctx),fn=new ji(this.ctx),mn=this.getStrokeWidth(sn);sn.size=sn.size-mn/2;for(var xn=0;xn<sn.series.length;xn++){var vn=cn.group({class:"apexcharts-radialbar-track apexcharts-track"});un.add(vn),vn.attr({rel:xn+1}),sn.size=sn.size-mn-this.margin;var yn=on.config.plotOptions.radialBar.track,wn=fn.fillPath({seriesNumber:0,size:sn.size,fillColors:Array.isArray(yn.background)?yn.background[xn]:yn.background,solid:!0}),An=this.trackStartAngle,Cn=this.trackEndAngle;Math.abs(Cn)+Math.abs(An)>=360&&(Cn=360-Math.abs(this.startAngle)-.1);var kn=cn.drawPath({d:"",stroke:wn,strokeWidth:mn*parseInt(yn.strokeWidth,10)/100,fill:"none",strokeOpacity:yn.opacity,classes:"apexcharts-radialbar-area"});if(yn.dropShadow.enabled){var Mn=yn.dropShadow;pn.dropShadow(kn,Mn)}vn.add(kn),kn.attr("id","apexcharts-radialbarTrack-"+xn),this.animatePaths(kn,{centerX:sn.centerX,centerY:sn.centerY,endAngle:Cn,startAngle:An,size:sn.size,i:xn,totalItems:2,animBeginArr:0,dur:0,isTrack:!0})}return un}},{key:"drawArcs",value:function(sn){var on=this.w,cn=new Mi(this.ctx),un=new ji(this.ctx),pn=new Li(this.ctx),fn=cn.group(),mn=this.getStrokeWidth(sn);sn.size=sn.size-mn/2;var xn=on.config.plotOptions.radialBar.hollow.background,vn=sn.size-mn*sn.series.length-this.margin*sn.series.length-mn*parseInt(on.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,yn=vn-on.config.plotOptions.radialBar.hollow.margin;on.config.plotOptions.radialBar.hollow.image!==void 0&&(xn=this.drawHollowImage(sn,fn,vn,xn));var wn=this.drawHollow({size:yn,centerX:sn.centerX,centerY:sn.centerY,fill:xn||"transparent"});if(on.config.plotOptions.radialBar.hollow.dropShadow.enabled){var An=on.config.plotOptions.radialBar.hollow.dropShadow;pn.dropShadow(wn,An)}var Cn=1;!this.radialDataLabels.total.show&&on.globals.series.length>1&&(Cn=0);var kn=null;if(this.radialDataLabels.show){var Mn=on.globals.dom.Paper.findOne(".apexcharts-datalabels-group");kn=this.renderInnerDataLabels(Mn,this.radialDataLabels,{hollowSize:vn,centerX:sn.centerX,centerY:sn.centerY,opacity:Cn})}on.config.plotOptions.radialBar.hollow.position==="back"&&(fn.add(wn),kn&&fn.add(kn));var Tn=!1;on.config.plotOptions.radialBar.inverseOrder&&(Tn=!0);for(var On=Tn?sn.series.length-1:0;Tn?On>=0:On<sn.series.length;Tn?On--:On++){var Pn=cn.group({class:"apexcharts-series apexcharts-radial-series",seriesName:v$2.escapeString(on.globals.seriesNames[On])});fn.add(Pn),Pn.attr({rel:On+1,"data:realIndex":On}),this.ctx.series.addCollapsedClassToSeries(Pn,On),sn.size=sn.size-mn-this.margin;var Nn=un.fillPath({seriesNumber:On,size:sn.size,value:sn.series[On]}),In=this.startAngle,jn=void 0,Fn=v$2.negToZero(sn.series[On]>100?100:sn.series[On])/100,Un=Math.round(this.totalAngle*Fn)+this.startAngle,Yn=void 0;on.globals.dataChanged&&(jn=this.startAngle,Yn=Math.round(this.totalAngle*v$2.negToZero(on.globals.previousPaths[On])/100)+jn),Math.abs(Un)+Math.abs(In)>360&&(Un-=.01),Math.abs(Yn)+Math.abs(jn)>360&&(Yn-=.01);var Qn=Un-In,ir=Array.isArray(on.config.stroke.dashArray)?on.config.stroke.dashArray[On]:on.config.stroke.dashArray,er=cn.drawPath({d:"",stroke:Nn,strokeWidth:mn,fill:"none",fillOpacity:on.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+On,strokeDashArray:ir});if(Mi.setAttrs(er.node,{"data:angle":Qn,"data:value":sn.series[On]}),on.config.chart.dropShadow.enabled){var tr=on.config.chart.dropShadow;pn.dropShadow(er,tr,On)}if(pn.setSelectionFilter(er,0,On),this.addListeners(er,this.radialDataLabels),Pn.add(er),er.attr({index:0,j:On}),this.barLabels.enabled){var vr=v$2.polarToCartesian(sn.centerX,sn.centerY,sn.size,In),rr=this.barLabels.formatter(on.globals.seriesNames[On],{seriesIndex:On,w:on}),fr=["apexcharts-radialbar-label"];this.barLabels.onClick||fr.push("apexcharts-no-click");var ur=this.barLabels.useSeriesColors?on.globals.colors[On]:on.config.chart.foreColor;ur||(ur=on.config.chart.foreColor);var wr=vr.x+this.barLabels.offsetX,Xn=vr.y+this.barLabels.offsetY,cr=cn.drawText({x:wr,y:Xn,text:rr,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:ur,cssClass:fr.join(" ")});cr.on("click",this.onBarLabelClick),cr.attr({rel:On+1}),In!==0&&cr.attr({"transform-origin":"".concat(wr," ").concat(Xn),transform:"rotate(".concat(In," 0 0)")}),Pn.add(cr)}var _r=0;!this.initialAnim||on.globals.resized||on.globals.dataChanged||(_r=on.config.chart.animations.speed),on.globals.dataChanged&&(_r=on.config.chart.animations.dynamicAnimation.speed),this.animDur=_r/(1.2*sn.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(er,{centerX:sn.centerX,centerY:sn.centerY,endAngle:Un,startAngle:In,prevEndAngle:Yn,prevStartAngle:jn,size:sn.size,i:On,totalItems:2,animBeginArr:this.animBeginArr,dur:_r,shouldSetPrevPaths:!0})}return{g:fn,elHollow:wn,dataLabels:kn}}},{key:"drawHollow",value:function(sn){var on=new Mi(this.ctx).drawCircle(2*sn.size);return on.attr({class:"apexcharts-radialbar-hollow",cx:sn.centerX,cy:sn.centerY,r:sn.size,fill:sn.fill}),on}},{key:"drawHollowImage",value:function(sn,on,cn,un){var pn=this.w,fn=new ji(this.ctx),mn=v$2.randomId(),xn=pn.config.plotOptions.radialBar.hollow.image;if(pn.config.plotOptions.radialBar.hollow.imageClipped)fn.clippedImgArea({width:cn,height:cn,image:xn,patternID:"pattern".concat(pn.globals.cuid).concat(mn)}),un="url(#pattern".concat(pn.globals.cuid).concat(mn,")");else{var vn=pn.config.plotOptions.radialBar.hollow.imageWidth,yn=pn.config.plotOptions.radialBar.hollow.imageHeight;if(vn===void 0&&yn===void 0){var wn=pn.globals.dom.Paper.image(xn,function(Cn){this.move(sn.centerX-Cn.width/2+pn.config.plotOptions.radialBar.hollow.imageOffsetX,sn.centerY-Cn.height/2+pn.config.plotOptions.radialBar.hollow.imageOffsetY)});on.add(wn)}else{var An=pn.globals.dom.Paper.image(xn,function(Cn){this.move(sn.centerX-vn/2+pn.config.plotOptions.radialBar.hollow.imageOffsetX,sn.centerY-yn/2+pn.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(vn,yn)});on.add(An)}}return un}},{key:"getStrokeWidth",value:function(sn){var on=this.w;return sn.size*(100-parseInt(on.config.plotOptions.radialBar.hollow.size,10))/100/(sn.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(sn){var on=parseInt(sn.target.getAttribute("rel"),10)-1,cn=this.barLabels.onClick,un=this.w;cn&&cn(un.globals.seriesNames[on],{w:un,seriesIndex:on})}}]),an}(),Oa=function(ln){h$1(an,Pa);var rn=n$1(an);function an(){return i$2(this,an),rn.apply(this,arguments)}return s$1(an,[{key:"draw",value:function(sn,on){var cn=this.w,un=new Mi(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=sn,this.seriesRangeStart=cn.globals.seriesRangeStart,this.seriesRangeEnd=cn.globals.seriesRangeEnd,this.barHelpers.initVariables(sn);for(var pn=un.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),fn=0;fn<sn.length;fn++){var mn,xn,vn,yn,wn=void 0,An=void 0,Cn=cn.globals.comboCharts?on[fn]:fn,kn=this.barHelpers.getGroupIndex(Cn).columnGroupIndex,Mn=un.group({class:"apexcharts-series",seriesName:v$2.escapeString(cn.globals.seriesNames[Cn]),rel:fn+1,"data:realIndex":Cn});this.ctx.series.addCollapsedClassToSeries(Mn,Cn),sn[fn].length>0&&(this.visibleI=this.visibleI+1);var Tn=0,On=0,Pn=0;this.yRatio.length>1&&(this.yaxisIndex=cn.globals.seriesYAxisReverseMap[Cn][0],Pn=Cn);var Nn=this.barHelpers.initialPositions(Cn);An=Nn.y,yn=Nn.zeroW,wn=Nn.x,On=Nn.barWidth,Tn=Nn.barHeight,mn=Nn.xDivision,xn=Nn.yDivision,vn=Nn.zeroH;for(var In=un.group({class:"apexcharts-datalabels","data:realIndex":Cn}),jn=un.group({class:"apexcharts-rangebar-goals-markers"}),Fn=0;Fn<cn.globals.dataPoints;Fn++){var Un=this.barHelpers.getStrokeWidth(fn,Fn,Cn),Yn=this.seriesRangeStart[fn][Fn],Qn=this.seriesRangeEnd[fn][Fn],ir=null,er=null,tr=null,vr={x:wn,y:An,strokeWidth:Un,elSeries:Mn},rr=this.seriesLen;if(cn.config.plotOptions.bar.rangeBarGroupRows&&(rr=1),cn.config.series[fn].data[Fn]===void 0)break;if(this.isHorizontal){tr=An+Tn*this.visibleI;var fr=(xn-Tn*rr)/2;if(cn.config.series[fn].data[Fn].x){var ur=this.detectOverlappingBars({i:fn,j:Fn,barYPosition:tr,srty:fr,barHeight:Tn,yDivision:xn,initPositions:Nn});Tn=ur.barHeight,tr=ur.barYPosition}On=(ir=this.drawRangeBarPaths(u$2({indexes:{i:fn,j:Fn,realIndex:Cn},barHeight:Tn,barYPosition:tr,zeroW:yn,yDivision:xn,y1:Yn,y2:Qn},vr))).barWidth}else{cn.globals.isXNumeric&&(wn=(cn.globals.seriesX[fn][Fn]-cn.globals.minX)/this.xRatio-On/2),er=wn+On*this.visibleI;var wr=(mn-On*rr)/2;if(cn.config.series[fn].data[Fn].x){var Xn=this.detectOverlappingBars({i:fn,j:Fn,barXPosition:er,srtx:wr,barWidth:On,xDivision:mn,initPositions:Nn});On=Xn.barWidth,er=Xn.barXPosition}Tn=(ir=this.drawRangeColumnPaths(u$2({indexes:{i:fn,j:Fn,realIndex:Cn,translationsIndex:Pn},barWidth:On,barXPosition:er,zeroH:vn,xDivision:mn},vr))).barHeight}var cr=this.barHelpers.drawGoalLine({barXPosition:ir.barXPosition,barYPosition:tr,goalX:ir.goalX,goalY:ir.goalY,barHeight:Tn,barWidth:On});cr&&jn.add(cr),An=ir.y,wn=ir.x;var _r=this.barHelpers.getPathFillColor(sn,fn,Fn,Cn);this.renderSeries({realIndex:Cn,pathFill:_r.color,lineFill:_r.useRangeColor?_r.color:cn.globals.stroke.colors[Cn],j:Fn,i:fn,x:wn,y:An,y1:Yn,y2:Qn,pathFrom:ir.pathFrom,pathTo:ir.pathTo,strokeWidth:Un,elSeries:Mn,series:sn,barHeight:Tn,barWidth:On,barXPosition:er,barYPosition:tr,columnGroupIndex:kn,elDataLabelsWrap:In,elGoalsMarkers:jn,visibleSeries:this.visibleI,type:"rangebar"})}pn.add(Mn)}return pn}},{key:"detectOverlappingBars",value:function(sn){var on=sn.i,cn=sn.j,un=sn.barYPosition,pn=sn.barXPosition,fn=sn.srty,mn=sn.srtx,xn=sn.barHeight,vn=sn.barWidth,yn=sn.yDivision,wn=sn.xDivision,An=sn.initPositions,Cn=this.w,kn=[],Mn=Cn.config.series[on].data[cn].rangeName,Tn=Cn.config.series[on].data[cn].x,On=Array.isArray(Tn)?Tn.join(" "):Tn,Pn=Cn.globals.labels.map(function(In){return Array.isArray(In)?In.join(" "):In}).indexOf(On),Nn=Cn.globals.seriesRange[on].findIndex(function(In){return In.x===On&&In.overlaps.length>0});return this.isHorizontal?(un=Cn.config.plotOptions.bar.rangeBarGroupRows?fn+yn*Pn:fn+xn*this.visibleI+yn*Pn,Nn>-1&&!Cn.config.plotOptions.bar.rangeBarOverlap&&(kn=Cn.globals.seriesRange[on][Nn].overlaps).indexOf(Mn)>-1&&(un=(xn=An.barHeight/kn.length)*this.visibleI+yn*(100-parseInt(this.barOptions.barHeight,10))/100/2+xn*(this.visibleI+kn.indexOf(Mn))+yn*Pn)):(Pn>-1&&!Cn.globals.timescaleLabels.length&&(pn=Cn.config.plotOptions.bar.rangeBarGroupRows?mn+wn*Pn:mn+vn*this.visibleI+wn*Pn),Nn>-1&&!Cn.config.plotOptions.bar.rangeBarOverlap&&(kn=Cn.globals.seriesRange[on][Nn].overlaps).indexOf(Mn)>-1&&(pn=(vn=An.barWidth/kn.length)*this.visibleI+wn*(100-parseInt(this.barOptions.barWidth,10))/100/2+vn*(this.visibleI+kn.indexOf(Mn))+wn*Pn)),{barYPosition:un,barXPosition:pn,barHeight:xn,barWidth:vn}}},{key:"drawRangeColumnPaths",value:function(sn){var on=sn.indexes,cn=sn.x,un=sn.xDivision,pn=sn.barWidth,fn=sn.barXPosition,mn=sn.zeroH,xn=this.w,vn=on.i,yn=on.j,wn=on.realIndex,An=on.translationsIndex,Cn=this.yRatio[An],kn=this.getRangeValue(wn,yn),Mn=Math.min(kn.start,kn.end),Tn=Math.max(kn.start,kn.end);this.series[vn][yn]===void 0||this.series[vn][yn]===null?Mn=mn:(Mn=mn-Mn/Cn,Tn=mn-Tn/Cn);var On=Math.abs(Tn-Mn),Pn=this.barHelpers.getColumnPaths({barXPosition:fn,barWidth:pn,y1:Mn,y2:Tn,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:wn,i:wn,j:yn,w:xn});if(xn.globals.isXNumeric){var Nn=this.getBarXForNumericXAxis({x:cn,j:yn,realIndex:wn,barWidth:pn});cn=Nn.x,fn=Nn.barXPosition}else cn+=un;return{pathTo:Pn.pathTo,pathFrom:Pn.pathFrom,barHeight:On,x:cn,y:kn.start<0&&kn.end<0?Mn:Tn,goalY:this.barHelpers.getGoalValues("y",null,mn,vn,yn,An),barXPosition:fn}}},{key:"preventBarOverflow",value:function(sn){var on=this.w;return sn<0&&(sn=0),sn>on.globals.gridWidth&&(sn=on.globals.gridWidth),sn}},{key:"drawRangeBarPaths",value:function(sn){var on=sn.indexes,cn=sn.y,un=sn.y1,pn=sn.y2,fn=sn.yDivision,mn=sn.barHeight,xn=sn.barYPosition,vn=sn.zeroW,yn=this.w,wn=on.realIndex,An=on.j,Cn=this.preventBarOverflow(vn+un/this.invertedYRatio),kn=this.preventBarOverflow(vn+pn/this.invertedYRatio),Mn=this.getRangeValue(wn,An),Tn=Math.abs(kn-Cn),On=this.barHelpers.getBarpaths({barYPosition:xn,barHeight:mn,x1:Cn,x2:kn,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:wn,realIndex:wn,j:An,w:yn});return yn.globals.isXNumeric||(cn+=fn),{pathTo:On.pathTo,pathFrom:On.pathFrom,barWidth:Tn,x:Mn.start<0&&Mn.end<0?Cn:kn,goalX:this.barHelpers.getGoalValues("x",vn,null,wn,An),y:cn}}},{key:"getRangeValue",value:function(sn,on){var cn=this.w;return{start:cn.globals.seriesRangeStart[sn][on],end:cn.globals.seriesRangeEnd[sn][on]}}}]),an}(),Fa=function(){function ln(rn){i$2(this,ln),this.w=rn.w,this.lineCtx=rn}return s$1(ln,[{key:"sameValueSeriesFix",value:function(rn,an){var sn=this.w;if((sn.config.fill.type==="gradient"||sn.config.fill.type[rn]==="gradient")&&new Pi(this.lineCtx.ctx,sn).seriesHaveSameValues(rn)){var on=an[rn].slice();on[on.length-1]=on[on.length-1]+1e-6,an[rn]=on}return an}},{key:"calculatePoints",value:function(rn){var an=rn.series,sn=rn.realIndex,on=rn.x,cn=rn.y,un=rn.i,pn=rn.j,fn=rn.prevY,mn=this.w,xn=[],vn=[],yn=this.lineCtx.categoryAxisCorrection+mn.config.markers.offsetX;return mn.globals.isXNumeric&&(yn=(mn.globals.seriesX[sn][0]-mn.globals.minX)/this.lineCtx.xRatio+mn.config.markers.offsetX),pn===0&&(xn.push(yn),vn.push(v$2.isNumber(an[un][0])?fn+mn.config.markers.offsetY:null)),xn.push(on+mn.config.markers.offsetX),vn.push(v$2.isNumber(an[un][pn+1])?cn+mn.config.markers.offsetY:null),{x:xn,y:vn}}},{key:"checkPreviousPaths",value:function(rn){for(var an=rn.pathFromLine,sn=rn.pathFromArea,on=rn.realIndex,cn=this.w,un=0;un<cn.globals.previousPaths.length;un++){var pn=cn.globals.previousPaths[un];(pn.type==="line"||pn.type==="area")&&pn.paths.length>0&&parseInt(pn.realIndex,10)===parseInt(on,10)&&(pn.type==="line"?(this.lineCtx.appendPathFrom=!1,an=cn.globals.previousPaths[un].paths[0].d):pn.type==="area"&&(this.lineCtx.appendPathFrom=!1,sn=cn.globals.previousPaths[un].paths[0].d,cn.config.stroke.show&&cn.globals.previousPaths[un].paths[1]&&(an=cn.globals.previousPaths[un].paths[1].d)))}return{pathFromLine:an,pathFromArea:sn}}},{key:"determineFirstPrevY",value:function(rn){var an,sn,on,cn=rn.i,un=rn.realIndex,pn=rn.series,fn=rn.prevY,mn=rn.lineYPosition,xn=rn.translationsIndex,vn=this.w,yn=vn.config.chart.stacked&&!vn.globals.comboCharts||vn.config.chart.stacked&&vn.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((an=this.w.config.series[un])===null||an===void 0?void 0:an.type)==="bar"||((sn=this.w.config.series[un])===null||sn===void 0?void 0:sn.type)==="column");if(((on=pn[cn])===null||on===void 0?void 0:on[0])!==void 0)fn=(mn=yn&&cn>0?this.lineCtx.prevSeriesY[cn-1][0]:this.lineCtx.zeroY)-pn[cn][0]/this.lineCtx.yRatio[xn]+2*(this.lineCtx.isReversed?pn[cn][0]/this.lineCtx.yRatio[xn]:0);else if(yn&&cn>0&&pn[cn][0]===void 0){for(var wn=cn-1;wn>=0;wn--)if(pn[wn][0]!==null&&pn[wn][0]!==void 0){fn=mn=this.lineCtx.prevSeriesY[wn][0];break}}return{prevY:fn,lineYPosition:mn}}}]),ln}(),Da=function(ln){for(var rn,an,sn,on,cn=function(xn){for(var vn=[],yn=xn[0],wn=xn[1],An=vn[0]=Wa(yn,wn),Cn=1,kn=xn.length-1;Cn<kn;Cn++)yn=wn,wn=xn[Cn+1],vn[Cn]=.5*(An+(An=Wa(yn,wn)));return vn[Cn]=An,vn}(ln),un=ln.length-1,pn=[],fn=0;fn<un;fn++)sn=Wa(ln[fn],ln[fn+1]),Math.abs(sn)<1e-6?cn[fn]=cn[fn+1]=0:(on=(rn=cn[fn]/sn)*rn+(an=cn[fn+1]/sn)*an)>9&&(on=3*sn/Math.sqrt(on),cn[fn]=on*rn,cn[fn+1]=on*an);for(var mn=0;mn<=un;mn++)on=(ln[Math.min(un,mn+1)][0]-ln[Math.max(0,mn-1)][0])/(6*(1+cn[mn]*cn[mn])),pn.push([on||0,cn[mn]*on||0]);return pn},_a=function(ln){var rn=Da(ln),an=ln[1],sn=ln[0],on=[],cn=rn[1],un=rn[0];on.push(sn,[sn[0]+un[0],sn[1]+un[1],an[0]-cn[0],an[1]-cn[1],an[0],an[1]]);for(var pn=2,fn=rn.length;pn<fn;pn++){var mn=ln[pn],xn=rn[pn];on.push([mn[0]-xn[0],mn[1]-xn[1],mn[0],mn[1]])}return on},Na=function(ln,rn,an){var sn=ln.slice(rn,an);if(rn){if(an-rn>1&&sn[1].length<6){var on=sn[0].length;sn[1]=[2*sn[0][on-2]-sn[0][on-4],2*sn[0][on-1]-sn[0][on-3]].concat(sn[1])}sn[0]=sn[0].slice(-2)}return sn};function Wa(ln,rn){return(rn[1]-ln[1])/(rn[0]-ln[0])}var Ba=function(){function ln(rn,an,sn){i$2(this,ln),this.ctx=rn,this.w=rn.w,this.xyRatios=an,this.pointsChart=!(this.w.config.chart.type!=="bubble"&&this.w.config.chart.type!=="scatter")||sn,this.scatter=new Ui(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Fa(this),this.markers=new Vi(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return s$1(ln,[{key:"draw",value:function(rn,an,sn,on){var cn,un=this.w,pn=new Mi(this.ctx),fn=un.globals.comboCharts?an:un.config.chart.type,mn=pn.group({class:"apexcharts-".concat(fn,"-series apexcharts-plot-series")}),xn=new Pi(this.ctx,un);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,rn=xn.getLogSeries(rn),this.yRatio=xn.getLogYRatios(this.yRatio),this.prevSeriesY=[];for(var vn=[],yn=0;yn<rn.length;yn++){rn=this.lineHelpers.sameValueSeriesFix(yn,rn);var wn=un.globals.comboCharts?sn[yn]:yn,An=this.yRatio.length>1?wn:0;this._initSerieVariables(rn,yn,wn);var Cn=[],kn=[],Mn=[],Tn=un.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,wn),un.globals.isXNumeric&&un.globals.seriesX.length>0&&(Tn=(un.globals.seriesX[wn][0]-un.globals.minX)/this.xRatio),Mn.push(Tn);var On,Pn=Tn,Nn=void 0,In=Pn,jn=this.zeroY,Fn=this.zeroY;jn=this.lineHelpers.determineFirstPrevY({i:yn,realIndex:wn,series:rn,prevY:jn,lineYPosition:0,translationsIndex:An}).prevY,un.config.stroke.curve==="monotoneCubic"&&rn[yn][0]===null?Cn.push(null):Cn.push(jn),On=jn,fn==="rangeArea"&&(Nn=Fn=this.lineHelpers.determineFirstPrevY({i:yn,realIndex:wn,series:on,prevY:Fn,lineYPosition:0,translationsIndex:An}).prevY,kn.push(Cn[0]!==null?Fn:null));var Un=this._calculatePathsFrom({type:fn,series:rn,i:yn,realIndex:wn,translationsIndex:An,prevX:In,prevY:jn,prevY2:Fn}),Yn=[Cn[0]],Qn=[kn[0]],ir={type:fn,series:rn,realIndex:wn,translationsIndex:An,i:yn,x:Tn,y:1,pX:Pn,pY:On,pathsFrom:Un,linePaths:[],areaPaths:[],seriesIndex:sn,lineYPosition:0,xArrj:Mn,yArrj:Cn,y2Arrj:kn,seriesRangeEnd:on},er=this._iterateOverDataPoints(u$2(u$2({},ir),{},{iterations:fn==="rangeArea"?rn[yn].length-1:void 0,isRangeStart:!0}));if(fn==="rangeArea"){for(var tr=this._calculatePathsFrom({series:on,i:yn,realIndex:wn,prevX:In,prevY:Fn}),vr=this._iterateOverDataPoints(u$2(u$2({},ir),{},{series:on,xArrj:[Tn],yArrj:Yn,y2Arrj:Qn,pY:Nn,areaPaths:er.areaPaths,pathsFrom:tr,iterations:on[yn].length-1,isRangeStart:!1})),rr=er.linePaths.length/2,fr=0;fr<rr;fr++)er.linePaths[fr]=vr.linePaths[fr+rr]+er.linePaths[fr];er.linePaths.splice(rr),er.pathFromLine=vr.pathFromLine+er.pathFromLine}else er.pathFromArea+="z";this._handlePaths({type:fn,realIndex:wn,i:yn,paths:er}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),vn.push(this.elSeries)}if(((cn=un.config.series[0])===null||cn===void 0?void 0:cn.zIndex)!==void 0&&vn.sort(function(Xn,cr){return Number(Xn.node.getAttribute("zIndex"))-Number(cr.node.getAttribute("zIndex"))}),un.config.chart.stacked)for(var ur=vn.length-1;ur>=0;ur--)mn.add(vn[ur]);else for(var wr=0;wr<vn.length;wr++)mn.add(vn[wr]);return mn}},{key:"_initSerieVariables",value:function(rn,an,sn){var on=this.w,cn=new Mi(this.ctx);this.xDivision=on.globals.gridWidth/(on.globals.dataPoints-(on.config.xaxis.tickPlacement==="on"?1:0)),this.strokeWidth=Array.isArray(on.config.stroke.width)?on.config.stroke.width[sn]:on.config.stroke.width;var un=0;if(this.yRatio.length>1&&(this.yaxisIndex=on.globals.seriesYAxisReverseMap[sn],un=sn),this.isReversed=on.config.yaxis[this.yaxisIndex]&&on.config.yaxis[this.yaxisIndex].reversed,this.zeroY=on.globals.gridHeight-this.baseLineY[un]-(this.isReversed?on.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[un]:0),this.areaBottomY=this.zeroY,(this.zeroY>on.globals.gridHeight||on.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=on.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=cn.group({class:"apexcharts-series",zIndex:on.config.series[sn].zIndex!==void 0?on.config.series[sn].zIndex:sn,seriesName:v$2.escapeString(on.globals.seriesNames[sn])}),this.elPointsMain=cn.group({class:"apexcharts-series-markers-wrap","data:realIndex":sn}),on.globals.hasNullValues){var pn=this.markers.plotChartMarkers({pointsPos:{x:[0],y:[on.globals.gridHeight+on.globals.markers.largestSize]},seriesIndex:an,j:0,pSize:.1,alwaysDrawMarker:!0,isVirtualPoint:!0});pn!==null&&this.elPointsMain.add(pn)}this.elDataLabelsWrap=cn.group({class:"apexcharts-datalabels","data:realIndex":sn});var fn=rn[an].length===on.globals.dataPoints;this.elSeries.attr({"data:longestSeries":fn,rel:an+1,"data:realIndex":sn}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(rn){var an,sn,on,cn,un=rn.type,pn=rn.series,fn=rn.i,mn=rn.realIndex,xn=rn.translationsIndex,vn=rn.prevX,yn=rn.prevY,wn=rn.prevY2,An=this.w,Cn=new Mi(this.ctx);if(pn[fn][0]===null){for(var kn=0;kn<pn[fn].length;kn++)if(pn[fn][kn]!==null){vn=this.xDivision*kn,yn=this.zeroY-pn[fn][kn]/this.yRatio[xn],an=Cn.move(vn,yn),sn=Cn.move(vn,this.areaBottomY);break}}else an=Cn.move(vn,yn),un==="rangeArea"&&(an=Cn.move(vn,wn)+Cn.line(vn,yn)),sn=Cn.move(vn,this.areaBottomY)+Cn.line(vn,yn);if(on=Cn.move(0,this.areaBottomY)+Cn.line(0,this.areaBottomY),cn=Cn.move(0,this.areaBottomY)+Cn.line(0,this.areaBottomY),An.globals.previousPaths.length>0){var Mn=this.lineHelpers.checkPreviousPaths({pathFromLine:on,pathFromArea:cn,realIndex:mn});on=Mn.pathFromLine,cn=Mn.pathFromArea}return{prevX:vn,prevY:yn,linePath:an,areaPath:sn,pathFromLine:on,pathFromArea:cn}}},{key:"_handlePaths",value:function(rn){var an=rn.type,sn=rn.realIndex,on=rn.i,cn=rn.paths,un=this.w,pn=new Mi(this.ctx),fn=new ji(this.ctx);this.prevSeriesY.push(cn.yArrj),un.globals.seriesXvalues[sn]=cn.xArrj,un.globals.seriesYvalues[sn]=cn.yArrj;var mn=un.config.forecastDataPoints;if(mn.count>0&&an!=="rangeArea"){var xn=un.globals.seriesXvalues[sn][un.globals.seriesXvalues[sn].length-mn.count-1],vn=pn.drawRect(xn,0,un.globals.gridWidth,un.globals.gridHeight,0);un.globals.dom.elForecastMask.appendChild(vn.node);var yn=pn.drawRect(0,0,xn,un.globals.gridHeight,0);un.globals.dom.elNonForecastMask.appendChild(yn.node)}this.pointsChart||un.globals.delayedElements.push({el:this.elPointsMain.node,index:sn});var wn={i:on,realIndex:sn,animationDelay:on,initialSpeed:un.config.chart.animations.speed,dataChangeSpeed:un.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(an)};if(an==="area")for(var An=fn.fillPath({seriesNumber:sn}),Cn=0;Cn<cn.areaPaths.length;Cn++){var kn=pn.renderPaths(u$2(u$2({},wn),{},{pathFrom:cn.pathFromArea,pathTo:cn.areaPaths[Cn],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:An}));this.elSeries.add(kn)}if(un.config.stroke.show&&!this.pointsChart){var Mn=null;if(an==="line")Mn=fn.fillPath({seriesNumber:sn,i:on});else if(un.config.stroke.fill.type==="solid")Mn=un.globals.stroke.colors[sn];else{var Tn=un.config.fill;un.config.fill=un.config.stroke.fill,Mn=fn.fillPath({seriesNumber:sn,i:on}),un.config.fill=Tn}for(var On=0;On<cn.linePaths.length;On++){var Pn=Mn;an==="rangeArea"&&(Pn=fn.fillPath({seriesNumber:sn}));var Nn=u$2(u$2({},wn),{},{pathFrom:cn.pathFromLine,pathTo:cn.linePaths[On],stroke:Mn,strokeWidth:this.strokeWidth,strokeLineCap:un.config.stroke.lineCap,fill:an==="rangeArea"?Pn:"none"}),In=pn.renderPaths(Nn);if(this.elSeries.add(In),In.attr("fill-rule","evenodd"),mn.count>0&&an!=="rangeArea"){var jn=pn.renderPaths(Nn);jn.node.setAttribute("stroke-dasharray",mn.dashArray),mn.strokeWidth&&jn.node.setAttribute("stroke-width",mn.strokeWidth),this.elSeries.add(jn),jn.attr("clip-path","url(#forecastMask".concat(un.globals.cuid,")")),In.attr("clip-path","url(#nonForecastMask".concat(un.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(rn){var an,sn,on=this,cn=rn.type,un=rn.series,pn=rn.iterations,fn=rn.realIndex,mn=rn.translationsIndex,xn=rn.i,vn=rn.x,yn=rn.y,wn=rn.pX,An=rn.pY,Cn=rn.pathsFrom,kn=rn.linePaths,Mn=rn.areaPaths,Tn=rn.seriesIndex,On=rn.lineYPosition,Pn=rn.xArrj,Nn=rn.yArrj,In=rn.y2Arrj,jn=rn.isRangeStart,Fn=rn.seriesRangeEnd,Un=this.w,Yn=new Mi(this.ctx),Qn=this.yRatio,ir=Cn.prevY,er=Cn.linePath,tr=Cn.areaPath,vr=Cn.pathFromLine,rr=Cn.pathFromArea,fr=v$2.isNumber(Un.globals.minYArr[fn])?Un.globals.minYArr[fn]:Un.globals.minY;pn||(pn=Un.globals.dataPoints>1?Un.globals.dataPoints-1:Un.globals.dataPoints);var ur=function(Xr,Wr){return Wr-Xr/Qn[mn]+2*(on.isReversed?Xr/Qn[mn]:0)},wr=yn,Xn=Un.config.chart.stacked&&!Un.globals.comboCharts||Un.config.chart.stacked&&Un.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((an=this.w.config.series[fn])===null||an===void 0?void 0:an.type)==="bar"||((sn=this.w.config.series[fn])===null||sn===void 0?void 0:sn.type)==="column"),cr=Un.config.stroke.curve;Array.isArray(cr)&&(cr=Array.isArray(Tn)?cr[Tn[xn]]:cr[xn]);for(var _r,Nr=0,Er=0;Er<pn&&un[xn].length!==0;Er++){var Fr=un[xn][Er+1]===void 0||un[xn][Er+1]===null;if(Un.globals.isXNumeric){var Tr=Un.globals.seriesX[fn][Er+1];Un.globals.seriesX[fn][Er+1]===void 0&&(Tr=Un.globals.seriesX[fn][pn-1]),vn=(Tr-Un.globals.minX)/this.xRatio}else vn+=this.xDivision;Xn?xn>0&&Un.globals.collapsedSeries.length<Un.config.series.length-1?On=this.prevSeriesY[function(Xr){for(var Wr=Xr;Wr>0;Wr--){if(!(Un.globals.collapsedSeriesIndices.indexOf((Tn==null?void 0:Tn[Wr])||Wr)>-1))return Wr;Wr--}return 0}(xn-1)][Er+1]:On=this.zeroY:On=this.zeroY,Fr?yn=ur(fr,On):(yn=ur(un[xn][Er+1],On),cn==="rangeArea"&&(wr=ur(Fn[xn][Er+1],On))),Pn.push(un[xn][Er+1]===null?null:vn),!Fr||Un.config.stroke.curve!=="smooth"&&Un.config.stroke.curve!=="monotoneCubic"?(Nn.push(yn),In.push(wr)):(Nn.push(null),In.push(null));var Vr=this.lineHelpers.calculatePoints({series:un,x:vn,y:yn,realIndex:fn,i:xn,j:Er,prevY:ir}),Pr=this._createPaths({type:cn,series:un,i:xn,realIndex:fn,j:Er,x:vn,y:yn,y2:wr,xArrj:Pn,yArrj:Nn,y2Arrj:In,pX:wn,pY:An,pathState:Nr,segmentStartX:_r,linePath:er,areaPath:tr,linePaths:kn,areaPaths:Mn,curve:cr,isRangeStart:jn});Mn=Pr.areaPaths,kn=Pr.linePaths,wn=Pr.pX,An=Pr.pY,Nr=Pr.pathState,_r=Pr.segmentStartX,tr=Pr.areaPath,er=Pr.linePath,!this.appendPathFrom||Un.globals.hasNullValues||cr==="monotoneCubic"&&cn==="rangeArea"||(vr+=Yn.line(vn,this.areaBottomY),rr+=Yn.line(vn,this.areaBottomY)),this.handleNullDataPoints(un,Vr,xn,Er,fn),this._handleMarkersAndLabels({type:cn,pointsPos:Vr,i:xn,j:Er,realIndex:fn,isRangeStart:jn})}return{yArrj:Nn,xArrj:Pn,pathFromArea:rr,areaPaths:Mn,pathFromLine:vr,linePaths:kn,linePath:er,areaPath:tr}}},{key:"_handleMarkersAndLabels",value:function(rn){var an=rn.type,sn=rn.pointsPos,on=rn.isRangeStart,cn=rn.i,un=rn.j,pn=rn.realIndex,fn=this.w,mn=new qi(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,un,{realIndex:pn,pointsPos:sn,zRatio:this.zRatio,elParent:this.elPointsMain});else{fn.globals.series[cn].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var xn=this.markers.plotChartMarkers({pointsPos:sn,seriesIndex:pn,j:un+1});xn!==null&&this.elPointsMain.add(xn)}var vn=mn.drawDataLabel({type:an,isRangeStart:on,pos:sn,i:pn,j:un+1});vn!==null&&this.elDataLabelsWrap.add(vn)}},{key:"_createPaths",value:function(rn){var an=rn.type,sn=rn.series,on=rn.i;rn.realIndex;var cn,un=rn.j,pn=rn.x,fn=rn.y,mn=rn.xArrj,xn=rn.yArrj,vn=rn.y2,yn=rn.y2Arrj,wn=rn.pX,An=rn.pY,Cn=rn.pathState,kn=rn.segmentStartX,Mn=rn.linePath,Tn=rn.areaPath,On=rn.linePaths,Pn=rn.areaPaths,Nn=rn.curve,In=rn.isRangeStart,jn=new Mi(this.ctx),Fn=this.areaBottomY,Un=an==="rangeArea",Yn=an==="rangeArea"&&In;switch(Nn){case"monotoneCubic":var Qn=In?xn:yn;switch(Cn){case 0:if(Qn[un+1]===null)break;Cn=1;case 1:if(!(Un?mn.length===sn[on].length:un===sn[on].length-2))break;case 2:var ir=In?mn:mn.slice().reverse(),er=In?Qn:Qn.slice().reverse(),tr=(cn=er,ir.map(function(Tr,Vr){return[Tr,cn[Vr]]}).filter(function(Tr){return Tr[1]!==null})),vr=tr.length>1?_a(tr):tr,rr=[];Un&&(Yn?Pn=tr:rr=Pn.reverse());var fr=0,ur=0;if(function(Tr,Vr){for(var Pr=function(Bs){var Ns=[],tl=0;return Bs.forEach(function(Fl){Fl!==null?tl++:tl>0&&(Ns.push(tl),tl=0)}),tl>0&&Ns.push(tl),Ns}(Tr),Xr=[],Wr=0,Ss=0;Wr<Pr.length;Ss+=Pr[Wr++])Xr[Wr]=Na(Vr,Ss,Ss+Pr[Wr]);return Xr}(er,vr).forEach(function(Tr){fr++;var Vr=function(Wr){for(var Ss="",Bs=0;Bs<Wr.length;Bs++){var Ns=Wr[Bs],tl=Ns.length;tl>4?(Ss+="C".concat(Ns[0],", ").concat(Ns[1]),Ss+=", ".concat(Ns[2],", ").concat(Ns[3]),Ss+=", ".concat(Ns[4],", ").concat(Ns[5])):tl>2&&(Ss+="S".concat(Ns[0],", ").concat(Ns[1]),Ss+=", ".concat(Ns[2],", ").concat(Ns[3]))}return Ss}(Tr),Pr=ur,Xr=(ur+=Tr.length)-1;Yn?Mn=jn.move(tr[Pr][0],tr[Pr][1])+Vr:Un?Mn=jn.move(rr[Pr][0],rr[Pr][1])+jn.line(tr[Pr][0],tr[Pr][1])+Vr+jn.line(rr[Xr][0],rr[Xr][1]):(Mn=jn.move(tr[Pr][0],tr[Pr][1])+Vr,Tn=Mn+jn.line(tr[Xr][0],Fn)+jn.line(tr[Pr][0],Fn)+"z",Pn.push(Tn)),On.push(Mn)}),Un&&fr>1&&!Yn){var wr=On.slice(fr).reverse();On.splice(fr),wr.forEach(function(Tr){return On.push(Tr)})}Cn=0}break;case"smooth":var Xn=.35*(pn-wn);if(sn[on][un]===null)Cn=0;else switch(Cn){case 0:if(kn=wn,Mn=Yn?jn.move(wn,yn[un])+jn.line(wn,An):jn.move(wn,An),Tn=jn.move(wn,An),sn[on][un+1]===null||sn[on][un+1]===void 0){On.push(Mn),Pn.push(Tn);break}if(Cn=1,un<sn[on].length-2){var cr=jn.curve(wn+Xn,An,pn-Xn,fn,pn,fn);Mn+=cr,Tn+=cr;break}case 1:if(sn[on][un+1]===null)Mn+=Yn?jn.line(wn,vn):jn.move(wn,An),Tn+=jn.line(wn,Fn)+jn.line(kn,Fn)+"z",On.push(Mn),Pn.push(Tn),Cn=-1;else{var _r=jn.curve(wn+Xn,An,pn-Xn,fn,pn,fn);Mn+=_r,Tn+=_r,un>=sn[on].length-2&&(Yn&&(Mn+=jn.curve(pn,fn,pn,fn,pn,vn)+jn.move(pn,vn)),Tn+=jn.curve(pn,fn,pn,fn,pn,Fn)+jn.line(kn,Fn)+"z",On.push(Mn),Pn.push(Tn),Cn=-1)}}wn=pn,An=fn;break;default:var Nr=function(Tr,Vr,Pr){var Xr=[];switch(Tr){case"stepline":Xr=jn.line(Vr,null,"H")+jn.line(null,Pr,"V");break;case"linestep":Xr=jn.line(null,Pr,"V")+jn.line(Vr,null,"H");break;case"straight":Xr=jn.line(Vr,Pr)}return Xr};if(sn[on][un]===null)Cn=0;else switch(Cn){case 0:if(kn=wn,Mn=Yn?jn.move(wn,yn[un])+jn.line(wn,An):jn.move(wn,An),Tn=jn.move(wn,An),sn[on][un+1]===null||sn[on][un+1]===void 0){On.push(Mn),Pn.push(Tn);break}if(Cn=1,un<sn[on].length-2){var Er=Nr(Nn,pn,fn);Mn+=Er,Tn+=Er;break}case 1:if(sn[on][un+1]===null)Mn+=Yn?jn.line(wn,vn):jn.move(wn,An),Tn+=jn.line(wn,Fn)+jn.line(kn,Fn)+"z",On.push(Mn),Pn.push(Tn),Cn=-1;else{var Fr=Nr(Nn,pn,fn);Mn+=Fr,Tn+=Fr,un>=sn[on].length-2&&(Yn&&(Mn+=jn.line(pn,vn)),Tn+=jn.line(pn,Fn)+jn.line(kn,Fn)+"z",On.push(Mn),Pn.push(Tn),Cn=-1)}}wn=pn,An=fn}return{linePaths:On,areaPaths:Pn,pX:wn,pY:An,pathState:Cn,segmentStartX:kn,linePath:Mn,areaPath:Tn}}},{key:"handleNullDataPoints",value:function(rn,an,sn,on,cn){var un=this.w;if(rn[sn][on]===null&&un.config.markers.showNullDataPoints||rn[sn].length===1){var pn=this.strokeWidth-un.config.markers.strokeWidth/2;pn>0||(pn=0);var fn=this.markers.plotChartMarkers({pointsPos:an,seriesIndex:cn,j:on+1,pSize:pn,alwaysDrawMarker:!0});fn!==null&&this.elPointsMain.add(fn)}}}]),ln}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function ln(pn,fn,mn,xn){this.xoffset=pn,this.yoffset=fn,this.height=xn,this.width=mn,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(vn){var yn,wn=[],An=this.xoffset,Cn=this.yoffset,kn=cn(vn)/this.height,Mn=cn(vn)/this.width;if(this.width>=this.height)for(yn=0;yn<vn.length;yn++)wn.push([An,Cn,An+kn,Cn+vn[yn]/kn]),Cn+=vn[yn]/kn;else for(yn=0;yn<vn.length;yn++)wn.push([An,Cn,An+vn[yn]/Mn,Cn+Mn]),An+=vn[yn]/Mn;return wn},this.cutArea=function(vn){var yn;if(this.width>=this.height){var wn=vn/this.height,An=this.width-wn;yn=new ln(this.xoffset+wn,this.yoffset,An,this.height)}else{var Cn=vn/this.width,kn=this.height-Cn;yn=new ln(this.xoffset,this.yoffset+Cn,this.width,kn)}return yn}}function rn(pn,fn,mn,xn,vn){xn=xn===void 0?0:xn,vn=vn===void 0?0:vn;var yn=an(function(wn,An){var Cn,kn=[],Mn=An/cn(wn);for(Cn=0;Cn<wn.length;Cn++)kn[Cn]=wn[Cn]*Mn;return kn}(pn,fn*mn),[],new ln(xn,vn,fn,mn),[]);return function(wn){var An,Cn,kn=[];for(An=0;An<wn.length;An++)for(Cn=0;Cn<wn[An].length;Cn++)kn.push(wn[An][Cn]);return kn}(yn)}function an(pn,fn,mn,xn){var vn,yn,wn;if(pn.length!==0)return vn=mn.shortestEdge(),function(An,Cn,kn){var Mn;if(An.length===0)return!0;(Mn=An.slice()).push(Cn);var Tn=sn(An,kn),On=sn(Mn,kn);return Tn>=On}(fn,yn=pn[0],vn)?(fn.push(yn),an(pn.slice(1),fn,mn,xn)):(wn=mn.cutArea(cn(fn),xn),xn.push(mn.getCoordinates(fn)),an(pn,[],wn,xn)),xn;xn.push(mn.getCoordinates(fn))}function sn(pn,fn){var mn=Math.min.apply(Math,pn),xn=Math.max.apply(Math,pn),vn=cn(pn);return Math.max(Math.pow(fn,2)*xn/Math.pow(vn,2),Math.pow(vn,2)/(Math.pow(fn,2)*mn))}function on(pn){return pn&&pn.constructor===Array}function cn(pn){var fn,mn=0;for(fn=0;fn<pn.length;fn++)mn+=pn[fn];return mn}function un(pn){var fn,mn=0;if(on(pn[0]))for(fn=0;fn<pn.length;fn++)mn+=un(pn[fn]);else mn=cn(pn);return mn}return function pn(fn,mn,xn,vn,yn){vn=vn===void 0?0:vn,yn=yn===void 0?0:yn;var wn,An,Cn=[],kn=[];if(on(fn[0])){for(An=0;An<fn.length;An++)Cn[An]=un(fn[An]);for(wn=rn(Cn,mn,xn,vn,yn),An=0;An<fn.length;An++)kn.push(pn(fn[An],wn[An][2]-wn[An][0],wn[An][3]-wn[An][1],wn[An][0],wn[An][1]))}else kn=rn(fn,mn,xn,vn,yn);return kn}}();var Ga=function(){function ln(rn,an){i$2(this,ln),this.ctx=rn,this.w=rn.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new za(rn),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return s$1(ln,[{key:"draw",value:function(rn){var an=this,sn=this.w,on=new Mi(this.ctx),cn=new ji(this.ctx),un=on.group({class:"apexcharts-treemap"});if(sn.globals.noData)return un;var pn=[];return rn.forEach(function(fn){var mn=fn.map(function(xn){return Math.abs(xn)});pn.push(mn)}),this.negRange=this.helpers.checkColorRange(),sn.config.series.forEach(function(fn,mn){fn.data.forEach(function(xn){Array.isArray(an.labels[mn])||(an.labels[mn]=[]),an.labels[mn].push(xn.x)})}),window.TreemapSquared.generate(pn,sn.globals.gridWidth,sn.globals.gridHeight).forEach(function(fn,mn){var xn=on.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:v$2.escapeString(sn.globals.seriesNames[mn]),rel:mn+1,"data:realIndex":mn});if(sn.config.chart.dropShadow.enabled){var vn=sn.config.chart.dropShadow;new Li(an.ctx).dropShadow(un,vn,mn)}var yn=on.group({class:"apexcharts-data-labels"}),wn={xMin:1/0,yMin:1/0,xMax:-1/0,yMax:-1/0};fn.forEach(function(vr,rr){var fr=vr[0],ur=vr[1],wr=vr[2],Xn=vr[3];wn.xMin=Math.min(wn.xMin,fr),wn.yMin=Math.min(wn.yMin,ur),wn.xMax=Math.max(wn.xMax,wr),wn.yMax=Math.max(wn.yMax,Xn);var cr=an.helpers.getShadeColor(sn.config.chart.type,mn,rr,an.negRange),_r=cr.color,Nr=cn.fillPath({color:_r,seriesNumber:mn,dataPointIndex:rr}),Er=on.drawRect(fr,ur,wr-fr,Xn-ur,sn.config.plotOptions.treemap.borderRadius,"#fff",1,an.strokeWidth,sn.config.plotOptions.treemap.useFillColorAsStroke?_r:sn.globals.stroke.colors[mn]);Er.attr({cx:fr,cy:ur,index:mn,i:mn,j:rr,width:wr-fr,height:Xn-ur,fill:Nr}),Er.node.classList.add("apexcharts-treemap-rect"),an.helpers.addListeners(Er);var Fr={x:fr+(wr-fr)/2,y:ur+(Xn-ur)/2,width:0,height:0},Tr={x:fr,y:ur,width:wr-fr,height:Xn-ur};if(sn.config.chart.animations.enabled&&!sn.globals.dataChanged){var Vr=1;sn.globals.resized||(Vr=sn.config.chart.animations.speed),an.animateTreemap(Er,Fr,Tr,Vr)}if(sn.globals.dataChanged){var Pr=1;an.dynamicAnim.enabled&&sn.globals.shouldAnimate&&(Pr=an.dynamicAnim.speed,sn.globals.previousPaths[mn]&&sn.globals.previousPaths[mn][rr]&&sn.globals.previousPaths[mn][rr].rect&&(Fr=sn.globals.previousPaths[mn][rr].rect),an.animateTreemap(Er,Fr,Tr,Pr))}var Xr=an.getFontSize(vr),Wr=sn.config.dataLabels.formatter(an.labels[mn][rr],{value:sn.globals.series[mn][rr],seriesIndex:mn,dataPointIndex:rr,w:sn});sn.config.plotOptions.treemap.dataLabels.format==="truncate"&&(Xr=parseInt(sn.config.dataLabels.style.fontSize,10),Wr=an.truncateLabels(Wr,Xr,fr,ur,wr,Xn));var Ss=null;sn.globals.series[mn][rr]&&(Ss=an.helpers.calculateDataLabels({text:Wr,x:(fr+wr)/2,y:(ur+Xn)/2+an.strokeWidth/2+Xr/3,i:mn,j:rr,colorProps:cr,fontSize:Xr,series:rn})),sn.config.dataLabels.enabled&&Ss&&an.rotateToFitLabel(Ss,Xr,Wr,fr,ur,wr,Xn),xn.add(Er),Ss!==null&&xn.add(Ss)});var An=sn.config.plotOptions.treemap.seriesTitle;if(sn.config.series.length>1&&An&&An.show){var Cn=sn.config.series[mn].name||"";if(Cn&&wn.xMin<1/0&&wn.yMin<1/0){var kn=An.offsetX,Mn=An.offsetY,Tn=An.borderColor,On=An.borderWidth,Pn=An.borderRadius,Nn=An.style,In=Nn.color||sn.config.chart.foreColor,jn={left:Nn.padding.left,right:Nn.padding.right,top:Nn.padding.top,bottom:Nn.padding.bottom},Fn=on.getTextRects(Cn,Nn.fontSize,Nn.fontFamily),Un=Fn.width+jn.left+jn.right,Yn=Fn.height+jn.top+jn.bottom,Qn=wn.xMin+(kn||0),ir=wn.yMin+(Mn||0),er=on.drawRect(Qn,ir,Un,Yn,Pn,Nn.background,1,On,Tn),tr=on.drawText({x:Qn+jn.left,y:ir+jn.top+.75*Fn.height,text:Cn,fontSize:Nn.fontSize,fontFamily:Nn.fontFamily,fontWeight:Nn.fontWeight,foreColor:In,cssClass:Nn.cssClass||""});xn.add(er),xn.add(tr)}}xn.add(yn),un.add(xn)}),un}},{key:"getFontSize",value:function(rn){var an=this.w,sn=function on(cn){var un,pn=0;if(Array.isArray(cn[0]))for(un=0;un<cn.length;un++)pn+=on(cn[un]);else for(un=0;un<cn.length;un++)pn+=cn[un].length;return pn}(this.labels)/function on(cn){var un,pn=0;if(Array.isArray(cn[0]))for(un=0;un<cn.length;un++)pn+=on(cn[un]);else for(un=0;un<cn.length;un++)pn+=1;return pn}(this.labels);return function(on,cn){var un=on*cn,pn=Math.pow(un,.5);return Math.min(pn/sn,parseInt(an.config.dataLabels.style.fontSize,10))}(rn[2]-rn[0],rn[3]-rn[1])}},{key:"rotateToFitLabel",value:function(rn,an,sn,on,cn,un,pn){var fn=new Mi(this.ctx),mn=fn.getTextRects(sn,an);if(mn.width+this.w.config.stroke.width+5>un-on&&mn.width<=pn-cn){var xn=fn.rotateAroundCenter(rn.node);rn.node.setAttribute("transform","rotate(-90 ".concat(xn.x," ").concat(xn.y,") translate(").concat(mn.height/3,")"))}}},{key:"truncateLabels",value:function(rn,an,sn,on,cn,un){var pn=new Mi(this.ctx),fn=pn.getTextRects(rn,an).width+this.w.config.stroke.width+5>cn-sn&&un-on>cn-sn?un-on:cn-sn,mn=pn.getTextBasedOnMaxWidth({text:rn,maxWidth:fn,fontSize:an});return rn.length!==mn.length&&fn/an<5?"":mn}},{key:"animateTreemap",value:function(rn,an,sn,on){var cn=new y$1(this.ctx);cn.animateRect(rn,an,sn,on,function(){cn.animationCompleted(rn)})}}]),ln}(),ja=86400,Va=10/ja,Ua=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return s$1(ln,[{key:"calculateTimeScaleTicks",value:function(rn,an){var sn=this,on=this.w;if(on.globals.allSeriesCollapsed)return on.globals.labels=[],on.globals.timescaleLabels=[],[];var cn=new zi(this.ctx),un=(an-rn)/864e5;this.determineInterval(un),on.globals.disableZoomIn=!1,on.globals.disableZoomOut=!1,un<Va?on.globals.disableZoomIn=!0:un>5e4&&(on.globals.disableZoomOut=!0);var pn=cn.getTimeUnitsfromTimestamp(rn,an,this.utc),fn=on.globals.gridWidth/un,mn=fn/24,xn=mn/60,vn=xn/60,yn=Math.floor(24*un),wn=Math.floor(1440*un),An=Math.floor(un*ja),Cn=Math.floor(un),kn=Math.floor(un/30),Mn=Math.floor(un/365),Tn={minMillisecond:pn.minMillisecond,minSecond:pn.minSecond,minMinute:pn.minMinute,minHour:pn.minHour,minDate:pn.minDate,minMonth:pn.minMonth,minYear:pn.minYear},On={firstVal:Tn,currentMillisecond:Tn.minMillisecond,currentSecond:Tn.minSecond,currentMinute:Tn.minMinute,currentHour:Tn.minHour,currentMonthDate:Tn.minDate,currentDate:Tn.minDate,currentMonth:Tn.minMonth,currentYear:Tn.minYear,daysWidthOnXAxis:fn,hoursWidthOnXAxis:mn,minutesWidthOnXAxis:xn,secondsWidthOnXAxis:vn,numberOfSeconds:An,numberOfMinutes:wn,numberOfHours:yn,numberOfDays:Cn,numberOfMonths:kn,numberOfYears:Mn};switch(this.tickInterval){case"years":this.generateYearScale(On);break;case"months":case"half_year":this.generateMonthScale(On);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(On);break;case"hours":this.generateHourScale(On);break;case"minutes_fives":case"minutes":this.generateMinuteScale(On);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(On)}var Pn=this.timeScaleArray.map(function(Nn){var In={position:Nn.position,unit:Nn.unit,year:Nn.year,day:Nn.day?Nn.day:1,hour:Nn.hour?Nn.hour:0,month:Nn.month+1};return Nn.unit==="month"?u$2(u$2({},In),{},{day:1,value:Nn.value+1}):Nn.unit==="day"||Nn.unit==="hour"?u$2(u$2({},In),{},{value:Nn.value}):Nn.unit==="minute"?u$2(u$2({},In),{},{value:Nn.value,minute:Nn.value}):Nn.unit==="second"?u$2(u$2({},In),{},{value:Nn.value,minute:Nn.minute,second:Nn.second}):Nn});return Pn.filter(function(Nn){var In=1,jn=Math.ceil(on.globals.gridWidth/120),Fn=Nn.value;on.config.xaxis.tickAmount!==void 0&&(jn=on.config.xaxis.tickAmount),Pn.length>jn&&(In=Math.floor(Pn.length/jn));var Un=!1,Yn=!1;switch(sn.tickInterval){case"years":Nn.unit==="year"&&(Un=!0);break;case"half_year":In=7,Nn.unit==="year"&&(Un=!0);break;case"months":In=1,Nn.unit==="year"&&(Un=!0);break;case"months_fortnight":In=15,Nn.unit!=="year"&&Nn.unit!=="month"||(Un=!0),Fn===30&&(Yn=!0);break;case"months_days":In=10,Nn.unit==="month"&&(Un=!0),Fn===30&&(Yn=!0);break;case"week_days":In=8,Nn.unit==="month"&&(Un=!0);break;case"days":In=1,Nn.unit==="month"&&(Un=!0);break;case"hours":Nn.unit==="day"&&(Un=!0);break;case"minutes_fives":case"seconds_fives":Fn%5!=0&&(Yn=!0);break;case"seconds_tens":Fn%10!=0&&(Yn=!0)}if(sn.tickInterval==="hours"||sn.tickInterval==="minutes_fives"||sn.tickInterval==="seconds_tens"||sn.tickInterval==="seconds_fives"){if(!Yn)return!0}else if((Fn%In==0||Un)&&!Yn)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(rn,an){var sn=this.w,on=this.formatDates(rn),cn=this.removeOverlappingTS(on);sn.globals.timescaleLabels=cn.slice(),new pa(this.ctx).plotCoords()}},{key:"determineInterval",value:function(rn){var an=24*rn,sn=60*an;switch(!0){case rn/365>5:this.tickInterval="years";break;case rn>800:this.tickInterval="half_year";break;case rn>180:this.tickInterval="months";break;case rn>90:this.tickInterval="months_fortnight";break;case rn>60:this.tickInterval="months_days";break;case rn>30:this.tickInterval="week_days";break;case rn>2:this.tickInterval="days";break;case an>2.4:this.tickInterval="hours";break;case sn>15:this.tickInterval="minutes_fives";break;case sn>5:this.tickInterval="minutes";break;case sn>1:this.tickInterval="seconds_tens";break;case 60*sn>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(rn){var an=rn.firstVal,sn=rn.currentMonth,on=rn.currentYear,cn=rn.daysWidthOnXAxis,un=rn.numberOfYears,pn=an.minYear,fn=0,mn=new zi(this.ctx),xn="year";if(an.minDate>1||an.minMonth>0){var vn=mn.determineRemainingDaysOfYear(an.minYear,an.minMonth,an.minDate);fn=(mn.determineDaysOfYear(an.minYear)-vn+1)*cn,pn=an.minYear+1,this.timeScaleArray.push({position:fn,value:pn,unit:xn,year:pn,month:v$2.monthMod(sn+1)})}else an.minDate===1&&an.minMonth===0&&this.timeScaleArray.push({position:fn,value:pn,unit:xn,year:on,month:v$2.monthMod(sn+1)});for(var yn=pn,wn=fn,An=0;An<un;An++)yn++,wn=mn.determineDaysOfYear(yn-1)*cn+wn,this.timeScaleArray.push({position:wn,value:yn,unit:xn,year:yn,month:1})}},{key:"generateMonthScale",value:function(rn){var an=rn.firstVal,sn=rn.currentMonthDate,on=rn.currentMonth,cn=rn.currentYear,un=rn.daysWidthOnXAxis,pn=rn.numberOfMonths,fn=on,mn=0,xn=new zi(this.ctx),vn="month",yn=0;if(an.minDate>1){mn=(xn.determineDaysOfMonths(on+1,an.minYear)-sn+1)*un,fn=v$2.monthMod(on+1);var wn=cn+yn,An=v$2.monthMod(fn),Cn=fn;fn===0&&(vn="year",Cn=wn,An=1,wn+=yn+=1),this.timeScaleArray.push({position:mn,value:Cn,unit:vn,year:wn,month:An})}else this.timeScaleArray.push({position:mn,value:fn,unit:vn,year:cn,month:v$2.monthMod(on)});for(var kn=fn+1,Mn=mn,Tn=0,On=1;Tn<pn;Tn++,On++){(kn=v$2.monthMod(kn))===0?(vn="year",yn+=1):vn="month";var Pn=this._getYear(cn,kn,yn);Mn=xn.determineDaysOfMonths(kn,Pn)*un+Mn;var Nn=kn===0?Pn:kn;this.timeScaleArray.push({position:Mn,value:Nn,unit:vn,year:Pn,month:kn===0?1:kn}),kn++}}},{key:"generateDayScale",value:function(rn){var an=rn.firstVal,sn=rn.currentMonth,on=rn.currentYear,cn=rn.hoursWidthOnXAxis,un=rn.numberOfDays,pn=new zi(this.ctx),fn="day",mn=an.minDate+1,xn=mn,vn=function(On,Pn,Nn){return On>pn.determineDaysOfMonths(Pn+1,Nn)&&(xn=1,fn="month",wn=Pn+=1),Pn},yn=(24-an.minHour)*cn,wn=mn,An=vn(xn,sn,on);an.minHour===0&&an.minDate===1?(yn=0,wn=v$2.monthMod(an.minMonth),fn="month",xn=an.minDate):an.minDate!==1&&an.minHour===0&&an.minMinute===0&&(yn=0,mn=an.minDate,wn=mn,An=vn(xn=mn,sn,on),wn!==1&&(fn="day")),this.timeScaleArray.push({position:yn,value:wn,unit:fn,year:this._getYear(on,An,0),month:v$2.monthMod(An),day:xn});for(var Cn=yn,kn=0;kn<un;kn++){fn="day",An=vn(xn+=1,An,this._getYear(on,An,0));var Mn=this._getYear(on,An,0);Cn=24*cn+Cn;var Tn=xn===1?v$2.monthMod(An):xn;this.timeScaleArray.push({position:Cn,value:Tn,unit:fn,year:Mn,month:v$2.monthMod(An),day:Tn})}}},{key:"generateHourScale",value:function(rn){var an=rn.firstVal,sn=rn.currentDate,on=rn.currentMonth,cn=rn.currentYear,un=rn.minutesWidthOnXAxis,pn=rn.numberOfHours,fn=new zi(this.ctx),mn="hour",xn=function(In,jn){return In>fn.determineDaysOfMonths(jn+1,cn)&&(kn=1,jn+=1),{month:jn,date:kn}},vn=function(In,jn){return In>fn.determineDaysOfMonths(jn+1,cn)?jn+=1:jn},yn=60-(an.minMinute+an.minSecond/60),wn=yn*un,An=an.minHour+1,Cn=An;yn===60&&(wn=0,Cn=An=an.minHour);var kn=sn;Cn>=24&&(Cn=0,mn="day",An=kn+=1);var Mn=xn(kn,on).month;Mn=vn(kn,Mn),An>31&&(An=kn=1),this.timeScaleArray.push({position:wn,value:An,unit:mn,day:kn,hour:Cn,year:cn,month:v$2.monthMod(Mn)}),Cn++;for(var Tn=wn,On=0;On<pn;On++){mn="hour",Cn>=24&&(Cn=0,mn="day",Mn=xn(kn+=1,Mn).month,Mn=vn(kn,Mn));var Pn=this._getYear(cn,Mn,0);Tn=60*un+Tn;var Nn=Cn===0?kn:Cn;this.timeScaleArray.push({position:Tn,value:Nn,unit:mn,hour:Cn,day:kn,year:Pn,month:v$2.monthMod(Mn)}),Cn++}}},{key:"generateMinuteScale",value:function(rn){for(var an=rn.currentMillisecond,sn=rn.currentSecond,on=rn.currentMinute,cn=rn.currentHour,un=rn.currentDate,pn=rn.currentMonth,fn=rn.currentYear,mn=rn.minutesWidthOnXAxis,xn=rn.secondsWidthOnXAxis,vn=rn.numberOfMinutes,yn=on+1,wn=un,An=pn,Cn=fn,kn=cn,Mn=(60-sn-an/1e3)*xn,Tn=0;Tn<vn;Tn++)yn>=60&&(yn=0,(kn+=1)===24&&(kn=0)),this.timeScaleArray.push({position:Mn,value:yn,unit:"minute",hour:kn,minute:yn,day:wn,year:this._getYear(Cn,An,0),month:v$2.monthMod(An)}),Mn+=mn,yn++}},{key:"generateSecondScale",value:function(rn){for(var an=rn.currentMillisecond,sn=rn.currentSecond,on=rn.currentMinute,cn=rn.currentHour,un=rn.currentDate,pn=rn.currentMonth,fn=rn.currentYear,mn=rn.secondsWidthOnXAxis,xn=rn.numberOfSeconds,vn=sn+1,yn=on,wn=un,An=pn,Cn=fn,kn=cn,Mn=(1e3-an)/1e3*mn,Tn=0;Tn<xn;Tn++)vn>=60&&(vn=0,++yn>=60&&(yn=0,++kn===24&&(kn=0))),this.timeScaleArray.push({position:Mn,value:vn,unit:"second",hour:kn,minute:yn,second:vn,day:wn,year:this._getYear(Cn,An,0),month:v$2.monthMod(An)}),Mn+=mn,vn++}},{key:"createRawDateString",value:function(rn,an){var sn=rn.year;return rn.month===0&&(rn.month=1),sn+="-"+("0"+rn.month.toString()).slice(-2),rn.unit==="day"?sn+=rn.unit==="day"?"-"+("0"+an).slice(-2):"-01":sn+="-"+("0"+(rn.day?rn.day:"1")).slice(-2),rn.unit==="hour"?sn+=rn.unit==="hour"?"T"+("0"+an).slice(-2):"T00":sn+="T"+("0"+(rn.hour?rn.hour:"0")).slice(-2),rn.unit==="minute"?sn+=":"+("0"+an).slice(-2):sn+=":"+(rn.minute?("0"+rn.minute).slice(-2):"00"),rn.unit==="second"?sn+=":"+("0"+an).slice(-2):sn+=":00",this.utc&&(sn+=".000Z"),sn}},{key:"formatDates",value:function(rn){var an=this,sn=this.w;return rn.map(function(on){var cn=on.value.toString(),un=new zi(an.ctx),pn=an.createRawDateString(on,cn),fn=un.getDate(un.parseDate(pn));if(an.utc||(fn=un.getDate(un.parseDateWithTimezone(pn))),sn.config.xaxis.labels.format===void 0){var mn="dd MMM",xn=sn.config.xaxis.labels.datetimeFormatter;on.unit==="year"&&(mn=xn.year),on.unit==="month"&&(mn=xn.month),on.unit==="day"&&(mn=xn.day),on.unit==="hour"&&(mn=xn.hour),on.unit==="minute"&&(mn=xn.minute),on.unit==="second"&&(mn=xn.second),cn=un.formatDate(fn,mn)}else cn=un.formatDate(fn,sn.config.xaxis.labels.format);return{dateString:pn,position:on.position,value:cn,unit:on.unit,year:on.year,month:on.month}})}},{key:"removeOverlappingTS",value:function(rn){var an,sn=this,on=new Mi(this.ctx),cn=!1;rn.length>0&&rn[0].value&&rn.every(function(fn){return fn.value.length===rn[0].value.length})&&(cn=!0,an=on.getTextRects(rn[0].value).width);var un=0,pn=rn.map(function(fn,mn){if(mn>0&&sn.w.config.xaxis.labels.hideOverlappingLabels){var xn=cn?an:on.getTextRects(rn[un].value).width,vn=rn[un].position;return fn.position>vn+xn+10?(un=mn,fn):null}return fn});return pn=pn.filter(function(fn){return fn!==null})}},{key:"_getYear",value:function(rn,an,sn){return rn+Math.floor(an/12)+sn}}]),ln}(),qa=function(){function ln(rn,an){i$2(this,ln),this.ctx=an,this.w=an.w,this.el=rn}return s$1(ln,[{key:"setupElements",value:function(){var rn=this.w,an=rn.globals,sn=rn.config,on=sn.chart.type;an.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].includes(on),an.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].includes(on),an.isBarHorizontal=["bar","rangeBar","boxPlot"].includes(on)&&sn.plotOptions.bar.horizontal,an.chartClass=".apexcharts".concat(an.chartID),an.dom.baseEl=this.el,an.dom.elWrap=document.createElement("div"),Mi.setAttrs(an.dom.elWrap,{id:an.chartClass.substring(1),class:"apexcharts-canvas ".concat(an.chartClass.substring(1))}),this.el.appendChild(an.dom.elWrap),an.dom.Paper=window.SVG().addTo(an.dom.elWrap),an.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(sn.chart.offsetX,", ").concat(sn.chart.offsetY,")")}),an.dom.Paper.node.style.background=sn.theme.mode!=="dark"||sn.chart.background?sn.theme.mode!=="light"||sn.chart.background?sn.chart.background:"#fff":"#424242",this.setSVGDimensions(),an.dom.elLegendForeign=document.createElementNS(an.SVGNS,"foreignObject"),Mi.setAttrs(an.dom.elLegendForeign,{x:0,y:0,width:an.svgWidth,height:an.svgHeight}),an.dom.elLegendWrap=document.createElement("div"),an.dom.elLegendWrap.classList.add("apexcharts-legend"),an.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),an.dom.elLegendForeign.appendChild(an.dom.elLegendWrap),an.dom.Paper.node.appendChild(an.dom.elLegendForeign),an.dom.elGraphical=an.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),an.dom.elDefs=an.dom.Paper.defs(),an.dom.Paper.add(an.dom.elGraphical),an.dom.elGraphical.add(an.dom.elDefs)}},{key:"plotChartType",value:function(rn,an){var sn=this.w,on=this.ctx,cn=sn.config,un=sn.globals,pn={line:{series:[],i:[]},area:{series:[],i:[]},scatter:{series:[],i:[]},bubble:{series:[],i:[]},column:{series:[],i:[]},candlestick:{series:[],i:[]},boxPlot:{series:[],i:[]},rangeBar:{series:[],i:[]},rangeArea:{series:[],seriesRangeEnd:[],i:[]}},fn=cn.chart.type||"line",mn=null,xn=0;un.series.forEach(function(In,jn){var Fn=rn[jn].type||fn;pn[Fn]?(Fn==="rangeArea"?(pn[Fn].series.push(un.seriesRangeStart[jn]),pn[Fn].seriesRangeEnd.push(un.seriesRangeEnd[jn])):pn[Fn].series.push(In),pn[Fn].i.push(jn),Fn!=="column"&&Fn!=="bar"||(sn.globals.columnSeries=pn.column)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar"].includes(Fn)?mn=Fn:Fn==="bar"?(pn.column.series.push(In),pn.column.i.push(jn)):console.warn("You have specified an unrecognized series type (".concat(Fn,").")),fn!==Fn&&Fn!=="scatter"&&xn++}),xn>0&&(mn&&console.warn("Chart or series type ".concat(mn," cannot appear with other chart or series types.")),pn.column.series.length>0&&cn.plotOptions.bar.horizontal&&(xn-=pn.column.series.length,pn.column={series:[],i:[]},sn.globals.columnSeries={series:[],i:[]},console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"))),un.comboCharts||(un.comboCharts=xn>0);var vn=new Ba(on,an),yn=new Ta(on,an);on.pie=new Ea(on);var wn=new Ha(on);on.rangeBar=new Oa(on,an);var An=new Ya(on),Cn=[];if(un.comboCharts){var kn,Mn,Tn=new Pi(on);if(pn.area.series.length>0&&(kn=Cn).push.apply(kn,f$2(Tn.drawSeriesByGroup(pn.area,un.areaGroups,"area",vn))),pn.column.series.length>0)if(cn.chart.stacked){var On=new Ia(on,an);Cn.push(On.draw(pn.column.series,pn.column.i))}else on.bar=new Pa(on,an),Cn.push(on.bar.draw(pn.column.series,pn.column.i));if(pn.rangeArea.series.length>0&&Cn.push(vn.draw(pn.rangeArea.series,"rangeArea",pn.rangeArea.i,pn.rangeArea.seriesRangeEnd)),pn.line.series.length>0&&(Mn=Cn).push.apply(Mn,f$2(Tn.drawSeriesByGroup(pn.line,un.lineGroups,"line",vn))),pn.candlestick.series.length>0&&Cn.push(yn.draw(pn.candlestick.series,"candlestick",pn.candlestick.i)),pn.boxPlot.series.length>0&&Cn.push(yn.draw(pn.boxPlot.series,"boxPlot",pn.boxPlot.i)),pn.rangeBar.series.length>0&&Cn.push(on.rangeBar.draw(pn.rangeBar.series,pn.rangeBar.i)),pn.scatter.series.length>0){var Pn=new Ba(on,an,!0);Cn.push(Pn.draw(pn.scatter.series,"scatter",pn.scatter.i))}if(pn.bubble.series.length>0){var Nn=new Ba(on,an,!0);Cn.push(Nn.draw(pn.bubble.series,"bubble",pn.bubble.i))}}else switch(cn.chart.type){case"line":Cn=vn.draw(un.series,"line");break;case"area":Cn=vn.draw(un.series,"area");break;case"bar":cn.chart.stacked?Cn=new Ia(on,an).draw(un.series):(on.bar=new Pa(on,an),Cn=on.bar.draw(un.series));break;case"candlestick":Cn=new Ta(on,an).draw(un.series,"candlestick");break;case"boxPlot":Cn=new Ta(on,an).draw(un.series,cn.chart.type);break;case"rangeBar":Cn=on.rangeBar.draw(un.series);break;case"rangeArea":Cn=vn.draw(un.seriesRangeStart,"rangeArea",void 0,un.seriesRangeEnd);break;case"heatmap":Cn=new Xa(on,an).draw(un.series);break;case"treemap":Cn=new Ga(on,an).draw(un.series);break;case"pie":case"donut":case"polarArea":Cn=on.pie.draw(un.series);break;case"radialBar":Cn=wn.draw(un.series);break;case"radar":Cn=An.draw(un.series);break;default:Cn=vn.draw(un.series)}return Cn}},{key:"setSVGDimensions",value:function(){var rn=this.w,an=rn.globals,sn=rn.config;sn.chart.width=sn.chart.width||"100%",sn.chart.height=sn.chart.height||"auto",an.svgWidth=sn.chart.width,an.svgHeight=sn.chart.height;var on=v$2.getDimensions(this.el),cn=sn.chart.width.toString().split(/[0-9]+/g).pop();cn==="%"?v$2.isNumber(on[0])&&(on[0].width===0&&(on=v$2.getDimensions(this.el.parentNode)),an.svgWidth=on[0]*parseInt(sn.chart.width,10)/100):cn!=="px"&&cn!==""||(an.svgWidth=parseInt(sn.chart.width,10));var un=String(sn.chart.height).toString().split(/[0-9]+/g).pop();if(an.svgHeight!=="auto"&&an.svgHeight!=="")if(un==="%"){var pn=v$2.getDimensions(this.el.parentNode);an.svgHeight=pn[1]*parseInt(sn.chart.height,10)/100}else an.svgHeight=parseInt(sn.chart.height,10);else an.svgHeight=an.axisCharts?an.svgWidth/1.61:an.svgWidth/1.2;if(an.svgWidth=Math.max(an.svgWidth,0),an.svgHeight=Math.max(an.svgHeight,0),Mi.setAttrs(an.dom.Paper.node,{width:an.svgWidth,height:an.svgHeight}),un!=="%"){var fn=sn.chart.sparkline.enabled?0:an.axisCharts?sn.chart.parentHeightOffset:0;an.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(an.svgHeight+fn,"px")}an.dom.elWrap.style.width="".concat(an.svgWidth,"px"),an.dom.elWrap.style.height="".concat(an.svgHeight,"px")}},{key:"shiftGraphPosition",value:function(){var rn=this.w.globals,an=rn.translateY,sn=rn.translateX;Mi.setAttrs(rn.dom.elGraphical.node,{transform:"translate(".concat(sn,", ").concat(an,")")})}},{key:"resizeNonAxisCharts",value:function(){var rn=this.w,an=rn.globals,sn=0,on=rn.config.chart.sparkline.enabled?1:15;on+=rn.config.grid.padding.bottom,["top","bottom"].includes(rn.config.legend.position)&&rn.config.legend.show&&!rn.config.legend.floating&&(sn=new xa(this.ctx).legendHelpers.getLegendDimensions().clwh+7);var cn=rn.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),un=2.05*rn.globals.radialSize;if(cn&&!rn.config.chart.sparkline.enabled&&rn.config.plotOptions.radialBar.startAngle!==0){var pn=v$2.getBoundingClientRect(cn);un=pn.bottom;var fn=pn.bottom-pn.top;un=Math.max(2.05*rn.globals.radialSize,fn)}var mn=Math.ceil(un+an.translateY+sn+on);an.dom.elLegendForeign&&an.dom.elLegendForeign.setAttribute("height",mn),rn.config.chart.height&&String(rn.config.chart.height).includes("%")||(an.dom.elWrap.style.height="".concat(mn,"px"),Mi.setAttrs(an.dom.Paper.node,{height:mn}),an.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(mn,"px"))}},{key:"coreCalculations",value:function(){new ea(this.ctx).init()}},{key:"resetGlobals",value:function(){var rn=this,an=function(){return rn.w.config.series.map(function(){return[]})},sn=new Bi,on=this.w.globals;sn.initGlobalVars(on),on.seriesXvalues=an(),on.seriesYvalues=an()}},{key:"isMultipleY",value:function(){return!!(Array.isArray(this.w.config.yaxis)&&this.w.config.yaxis.length>1)&&(this.w.globals.isMultipleYAxis=!0,!0)}},{key:"xySettings",value:function(){var rn=this.w,an=null;if(rn.globals.axisCharts){if(rn.config.xaxis.crosshairs.position==="back"&&new na(this.ctx).drawXCrosshairs(),rn.config.yaxis[0].crosshairs.position==="back"&&new na(this.ctx).drawYCrosshairs(),rn.config.xaxis.type==="datetime"&&rn.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new Ua(this.ctx);var sn=[];isFinite(rn.globals.minX)&&isFinite(rn.globals.maxX)&&!rn.globals.isBarHorizontal?sn=this.ctx.timeScale.calculateTimeScaleTicks(rn.globals.minX,rn.globals.maxX):rn.globals.isBarHorizontal&&(sn=this.ctx.timeScale.calculateTimeScaleTicks(rn.globals.minY,rn.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(sn)}an=new Pi(this.ctx).getCalculatedRatios()}return an}},{key:"updateSourceChart",value:function(rn){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:rn.w.globals.minX,max:rn.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var rn=this,an=this.ctx,sn=this.w;if(sn.config.chart.brush.enabled&&typeof sn.config.chart.events.selection!="function"){var on=Array.isArray(sn.config.chart.brush.targets)?sn.config.chart.brush.targets:[sn.config.chart.brush.target];on.forEach(function(cn){var un=an.constructor.getChartByID(cn);un.w.globals.brushSource=rn.ctx,typeof un.w.config.chart.events.zoomed!="function"&&(un.w.config.chart.events.zoomed=function(){return rn.updateSourceChart(un)}),typeof un.w.config.chart.events.scrolled!="function"&&(un.w.config.chart.events.scrolled=function(){return rn.updateSourceChart(un)})}),sn.config.chart.events.selection=function(cn,un){on.forEach(function(pn){an.constructor.getChartByID(pn).ctx.updateHelpers._updateOptions({xaxis:{min:un.xaxis.min,max:un.xaxis.max}},!1,!1,!1,!1)})}}}}]),ln}(),Za=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"_updateOptions",value:function(rn){var an=this,sn=arguments.length>1&&arguments[1]!==void 0&&arguments[1],on=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],cn=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],un=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return new Promise(function(pn){var fn=[an.ctx];cn&&(fn=an.ctx.getSyncedCharts()),an.ctx.w.globals.isExecCalled&&(fn=[an.ctx],an.ctx.w.globals.isExecCalled=!1),fn.forEach(function(mn,xn){var vn=mn.w;if(vn.globals.shouldAnimate=on,sn||(vn.globals.resized=!0,vn.globals.dataChanged=!0,on&&mn.series.getPreviousPaths()),rn&&b$2(rn)==="object"&&(mn.config=new Wi(rn),rn=Pi.extendArrayProps(mn.config,rn,vn),mn.w.globals.chartID!==an.ctx.w.globals.chartID&&delete rn.series,vn.config=v$2.extend(vn.config,rn),un&&(vn.globals.lastXAxis=rn.xaxis?v$2.clone(rn.xaxis):[],vn.globals.lastYAxis=rn.yaxis?v$2.clone(rn.yaxis):[],vn.globals.initialConfig=v$2.extend({},vn.config),vn.globals.initialSeries=v$2.clone(vn.config.series),rn.series))){for(var yn=0;yn<vn.globals.collapsedSeriesIndices.length;yn++){var wn=vn.config.series[vn.globals.collapsedSeriesIndices[yn]];vn.globals.collapsedSeries[yn].data=vn.globals.axisCharts?wn.data.slice():wn}for(var An=0;An<vn.globals.ancillaryCollapsedSeriesIndices.length;An++){var Cn=vn.config.series[vn.globals.ancillaryCollapsedSeriesIndices[An]];vn.globals.ancillaryCollapsedSeries[An].data=vn.globals.axisCharts?Cn.data.slice():Cn}mn.series.emptyCollapsedSeries(vn.config.series)}return mn.update(rn).then(function(){xn===fn.length-1&&pn(mn)})})})}},{key:"_updateSeries",value:function(rn,an){var sn=this,on=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(cn){var un,pn=sn.w;return pn.globals.shouldAnimate=an,pn.globals.dataChanged=!0,an&&sn.ctx.series.getPreviousPaths(),pn.globals.axisCharts?((un=rn.map(function(fn,mn){return sn._extendSeries(fn,mn)})).length===0&&(un=[{data:[]}]),pn.config.series=un):pn.config.series=rn.slice(),on&&(pn.globals.initialConfig.series=v$2.clone(pn.config.series),pn.globals.initialSeries=v$2.clone(pn.config.series)),sn.ctx.update().then(function(){cn(sn.ctx)})})}},{key:"_extendSeries",value:function(rn,an){var sn=this.w,on=sn.config.series[an];return u$2(u$2({},sn.config.series[an]),{},{name:rn.name?rn.name:on==null?void 0:on.name,color:rn.color?rn.color:on==null?void 0:on.color,type:rn.type?rn.type:on==null?void 0:on.type,group:rn.group?rn.group:on==null?void 0:on.group,hidden:rn.hidden!==void 0?rn.hidden:on==null?void 0:on.hidden,data:rn.data?rn.data:on==null?void 0:on.data,zIndex:rn.zIndex!==void 0?rn.zIndex:an})}},{key:"toggleDataPointSelection",value:function(rn,an){var sn=this.w,on=null,cn=".apexcharts-series[data\\:realIndex='".concat(rn,"']");return sn.globals.axisCharts?on=sn.globals.dom.Paper.findOne("".concat(cn," path[j='").concat(an,"'], ").concat(cn," circle[j='").concat(an,"'], ").concat(cn," rect[j='").concat(an,"']")):an===void 0&&(on=sn.globals.dom.Paper.findOne("".concat(cn," path[j='").concat(rn,"']")),sn.config.chart.type!=="pie"&&sn.config.chart.type!=="polarArea"&&sn.config.chart.type!=="donut"||this.ctx.pie.pieClicked(rn)),on?(new Mi(this.ctx).pathMouseDown(on,null),on.node?on.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(rn){var an=this.w;if(["min","max"].forEach(function(on){rn.xaxis[on]!==void 0&&(an.config.xaxis[on]=rn.xaxis[on],an.globals.lastXAxis[on]=rn.xaxis[on])}),rn.xaxis.categories&&rn.xaxis.categories.length&&(an.config.xaxis.categories=rn.xaxis.categories),an.config.xaxis.convertedCatToNumeric){var sn=new Ni(rn);rn=sn.convertCatToNumericXaxis(rn,this.ctx)}return rn}},{key:"forceYAxisUpdate",value:function(rn){return rn.chart&&rn.chart.stacked&&rn.chart.stackType==="100%"&&(Array.isArray(rn.yaxis)?rn.yaxis.forEach(function(an,sn){rn.yaxis[sn].min=0,rn.yaxis[sn].max=100}):(rn.yaxis.min=0,rn.yaxis.max=100)),rn}},{key:"revertDefaultAxisMinMax",value:function(rn){var an=this,sn=this.w,on=sn.globals.lastXAxis,cn=sn.globals.lastYAxis;rn&&rn.xaxis&&(on=rn.xaxis),rn&&rn.yaxis&&(cn=rn.yaxis),sn.config.xaxis.min=on.min,sn.config.xaxis.max=on.max;var un=function(pn){cn[pn]!==void 0&&(sn.config.yaxis[pn].min=cn[pn].min,sn.config.yaxis[pn].max=cn[pn].max)};sn.config.yaxis.map(function(pn,fn){sn.globals.zoomed||cn[fn]!==void 0?un(fn):an.ctx.opts.yaxis[fn]!==void 0&&(pn.min=an.ctx.opts.yaxis[fn].min,pn.max=an.ctx.opts.yaxis[fn].max)})}}]),ln}();(function(){function ln(){for(var cn=arguments.length>0&&arguments[0]!==vn?arguments[0]:[],un=arguments.length>1?arguments[1]:vn,pn=arguments.length>2?arguments[2]:vn,fn=arguments.length>3?arguments[3]:vn,mn=arguments.length>4?arguments[4]:vn,xn=arguments.length>5?arguments[5]:vn,vn=arguments.length>6?arguments[6]:vn,yn=cn.slice(un,pn||vn),wn=fn.slice(mn,xn||vn),An=0,Cn={pos:[0,0],start:[0,0]},kn={pos:[0,0],start:[0,0]};yn[An]=rn.call(Cn,yn[An]),wn[An]=rn.call(kn,wn[An]),yn[An][0]!=wn[An][0]||yn[An][0]=="M"||yn[An][0]=="A"&&(yn[An][4]!=wn[An][4]||yn[An][5]!=wn[An][5])?(Array.prototype.splice.apply(yn,[An,1].concat(sn.call(Cn,yn[An]))),Array.prototype.splice.apply(wn,[An,1].concat(sn.call(kn,wn[An])))):(yn[An]=an.call(Cn,yn[An]),wn[An]=an.call(kn,wn[An])),!(++An==yn.length&&An==wn.length);)An==yn.length&&yn.push(["C",Cn.pos[0],Cn.pos[1],Cn.pos[0],Cn.pos[1],Cn.pos[0],Cn.pos[1]]),An==wn.length&&wn.push(["C",kn.pos[0],kn.pos[1],kn.pos[0],kn.pos[1],kn.pos[0],kn.pos[1]]);return{start:yn,dest:wn}}function rn(cn){switch(cn[0]){case"z":case"Z":cn[0]="L",cn[1]=this.start[0],cn[2]=this.start[1];break;case"H":cn[0]="L",cn[2]=this.pos[1];break;case"V":cn[0]="L",cn[2]=cn[1],cn[1]=this.pos[0];break;case"T":cn[0]="Q",cn[3]=cn[1],cn[4]=cn[2],cn[1]=this.reflection[1],cn[2]=this.reflection[0];break;case"S":cn[0]="C",cn[6]=cn[4],cn[5]=cn[3],cn[4]=cn[2],cn[3]=cn[1],cn[2]=this.reflection[1],cn[1]=this.reflection[0]}return cn}function an(cn){var un=cn.length;return this.pos=[cn[un-2],cn[un-1]],"SCQT".indexOf(cn[0])!=-1&&(this.reflection=[2*this.pos[0]-cn[un-4],2*this.pos[1]-cn[un-3]]),cn}function sn(cn){var un=[cn];switch(cn[0]){case"M":return this.pos=this.start=[cn[1],cn[2]],un;case"L":cn[5]=cn[3]=cn[1],cn[6]=cn[4]=cn[2],cn[1]=this.pos[0],cn[2]=this.pos[1];break;case"Q":cn[6]=cn[4],cn[5]=cn[3],cn[4]=1*cn[4]/3+2*cn[2]/3,cn[3]=1*cn[3]/3+2*cn[1]/3,cn[2]=1*this.pos[1]/3+2*cn[2]/3,cn[1]=1*this.pos[0]/3+2*cn[1]/3;break;case"A":un=function(pn,fn){var mn,xn,vn,yn,wn,An,Cn,kn,Mn,Tn,On,Pn,Nn,In,jn,Fn,Un,Yn,Qn,ir,er,tr,vr,rr,fr,ur,wr=Math.abs(fn[1]),Xn=Math.abs(fn[2]),cr=fn[3]%360,_r=fn[4],Nr=fn[5],Er=fn[6],Fr=fn[7],Tr=new bt(pn),Vr=new bt(Er,Fr),Pr=[];if(wr===0||Xn===0||Tr.x===Vr.x&&Tr.y===Vr.y)return[["C",Tr.x,Tr.y,Vr.x,Vr.y,Vr.x,Vr.y]];for(mn=new bt((Tr.x-Vr.x)/2,(Tr.y-Vr.y)/2).transform(new vt().rotate(cr)),xn=mn.x*mn.x/(wr*wr)+mn.y*mn.y/(Xn*Xn),xn>1&&(wr*=xn=Math.sqrt(xn),Xn*=xn),vn=new vt().rotate(cr).scale(1/wr,1/Xn).rotate(-cr),Tr=Tr.transform(vn),Vr=Vr.transform(vn),yn=[Vr.x-Tr.x,Vr.y-Tr.y],An=yn[0]*yn[0]+yn[1]*yn[1],wn=Math.sqrt(An),yn[0]/=wn,yn[1]/=wn,Cn=An<4?Math.sqrt(1-An/4):0,_r===Nr&&(Cn*=-1),kn=new bt((Vr.x+Tr.x)/2+Cn*-yn[1],(Vr.y+Tr.y)/2+Cn*yn[0]),Mn=new bt(Tr.x-kn.x,Tr.y-kn.y),Tn=new bt(Vr.x-kn.x,Vr.y-kn.y),On=Math.acos(Mn.x/Math.sqrt(Mn.x*Mn.x+Mn.y*Mn.y)),Mn.y<0&&(On*=-1),Pn=Math.acos(Tn.x/Math.sqrt(Tn.x*Tn.x+Tn.y*Tn.y)),Tn.y<0&&(Pn*=-1),Nr&&On>Pn&&(Pn+=2*Math.PI),!Nr&&On<Pn&&(Pn-=2*Math.PI),In=Math.ceil(2*Math.abs(On-Pn)/Math.PI),Fn=[],Un=On,Nn=(Pn-On)/In,jn=4*Math.tan(Nn/4)/3,er=0;er<=In;er++)Qn=Math.cos(Un),Yn=Math.sin(Un),ir=new bt(kn.x+Qn,kn.y+Yn),Fn[er]=[new bt(ir.x+jn*Yn,ir.y-jn*Qn),ir,new bt(ir.x-jn*Yn,ir.y+jn*Qn)],Un+=Nn;for(Fn[0][0]=Fn[0][1].clone(),Fn[Fn.length-1][2]=Fn[Fn.length-1][1].clone(),vn=new vt().rotate(cr).scale(wr,Xn).rotate(-cr),er=0,tr=Fn.length;er<tr;er++)Fn[er][0]=Fn[er][0].transform(vn),Fn[er][1]=Fn[er][1].transform(vn),Fn[er][2]=Fn[er][2].transform(vn);for(er=1,tr=Fn.length;er<tr;er++)vr=(ir=Fn[er-1][2]).x,rr=ir.y,fr=(ir=Fn[er][0]).x,ur=ir.y,Er=(ir=Fn[er][1]).x,Fr=ir.y,Pr.push(["C",vr,rr,fr,ur,Er,Fr]);return Pr}(this.pos,cn),cn=un[0]}return cn[0]="C",this.pos=[cn[5],cn[6]],this.reflection=[2*cn[5]-cn[3],2*cn[6]-cn[4]],un}function on(){var cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],un=arguments.length>1?arguments[1]:void 0;if(un===!1)return!1;for(var pn=un,fn=cn.length;pn<fn;++pn)if(cn[pn][0]=="M")return pn;return!1}Q$1(Ee,{morph:function(cn,un,pn,fn,mn){for(var xn=this.parse(cn),vn=this.parse(un),yn=0,wn=0,An=!1,Cn=!1;yn!==!1||wn!==!1;){var kn;An=on(xn,yn!==!1&&yn+1),Cn=on(vn,wn!==!1&&wn+1),yn===!1&&(yn=(kn=new Ee(Mn.start).bbox()).height==0||kn.width==0?xn.push(xn[0])-1:xn.push(["M",kn.x+kn.width/2,kn.y+kn.height/2])-1),wn===!1&&(wn=(kn=new Ee(Mn.dest).bbox()).height==0||kn.width==0?vn.push(vn[0])-1:vn.push(["M",kn.x+kn.width/2,kn.y+kn.height/2])-1);var Mn=ln(xn,yn,An,vn,wn,Cn);xn=xn.slice(0,yn).concat(Mn.start,An===!1?[]:xn.slice(An)),vn=vn.slice(0,wn).concat(Mn.dest,Cn===!1?[]:vn.slice(Cn)),yn=An!==!1&&yn+Mn.start.length,wn=Cn!==!1&&wn+Mn.dest.length}this._array=xn,this.destination=new Ee,this.destination._array=vn;var Tn=this.fromArray(xn.map(function(On,Pn){var Nn=vn[Pn].map(function(In,jn){return jn===0?In:fn.step(On[jn],vn[Pn][jn],pn,mn[Pn],mn)});return Nn}));return Tn}})})();const $a=ln=>(ln.changedTouches&&(ln=ln.changedTouches[0]),{x:ln.clientX,y:ln.clientY});class Ja{constructor(rn){rn.remember("_draggable",this),this.el=rn,this.drag=this.drag.bind(this),this.startDrag=this.startDrag.bind(this),this.endDrag=this.endDrag.bind(this)}init(rn){rn?(this.el.on("mousedown.drag",this.startDrag),this.el.on("touchstart.drag",this.startDrag,{passive:!1})):(this.el.off("mousedown.drag"),this.el.off("touchstart.drag"))}startDrag(rn){const an=!rn.type.indexOf("mouse");if(an&&rn.which!==1&&rn.buttons!==0||this.el.dispatch("beforedrag",{event:rn,handler:this}).defaultPrevented)return;rn.preventDefault(),rn.stopPropagation(),this.init(!1),this.box=this.el.bbox(),this.lastClick=this.el.point($a(rn));const sn=(an?"mouseup":"touchend")+".drag";zt(window,(an?"mousemove":"touchmove")+".drag",this.drag,this,{passive:!1}),zt(window,sn,this.endDrag,this,{passive:!1}),this.el.fire("dragstart",{event:rn,handler:this,box:this.box})}drag(rn){const{box:an,lastClick:sn}=this,on=this.el.point($a(rn)),cn=on.x-sn.x,un=on.y-sn.y;if(!cn&&!un)return an;const pn=an.x+cn,fn=an.y+un;this.box=new kt(pn,fn,an.w,an.h),this.lastClick=on,this.el.dispatch("dragmove",{event:rn,handler:this,box:this.box}).defaultPrevented||this.move(pn,fn)}move(rn,an){this.el.type==="svg"?gi.prototype.move.call(this.el,rn,an):this.el.move(rn,an)}endDrag(rn){this.drag(rn),this.el.fire("dragend",{event:rn,handler:this,box:this.box}),Xt(window,"mousemove.drag"),Xt(window,"touchmove.drag"),Xt(window,"mouseup.drag"),Xt(window,"touchend.drag"),this.init(!0)}}/*!
* @svgdotjs/svg.select.js - An extension of svg.js which allows to select elements with mouse
* @version 4.0.1
* https://github.com/svgdotjs/svg.select.js
*
* @copyright Ulrich-Matthias Schäfer
* @license MIT
*
* BUILT: Mon Jul 01 2024 15:04:42 GMT+0200 (Central European Summer Time)
*/function Qa(ln,rn,an,sn=null){return function(on){on.preventDefault(),on.stopPropagation();var cn=on.pageX||on.touches[0].pageX,un=on.pageY||on.touches[0].pageY;rn.fire(ln,{x:cn,y:un,event:on,index:sn,points:an})}}function Ka([ln,rn],{a:an,b:sn,c:on,d:cn,e:un,f:pn}){return[ln*an+rn*on+un,ln*sn+rn*cn+pn]}Q$1(Gt,{draggable(ln=!0){return(this.remember("_draggable")||new Ja(this)).init(ln),this}});let ts=class{constructor(ln){this.el=ln,ln.remember("_selectHandler",this),this.selection=new gi,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const rn=F$1();this.observer=new rn.MutationObserver(this.mutationHandler)}init(ln){this.createHandle=ln.createHandle||this.createHandleFn,this.createRot=ln.createRot||this.createRotFn,this.updateHandle=ln.updateHandle||this.updateHandleFn,this.updateRot=ln.updateRot||this.updateRotFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createResizeHandles(),this.updateResizeHandles(),this.createRotationHandle(),this.updateRotationHandle(),this.observer.observe(this.el.node,{attributes:!0})}active(ln,rn){if(!ln)return this.selection.clear().remove(),void this.observer.disconnect();this.init(rn)}createSelection(){this.selection.polygon(this.handlePoints).addClass("svg_select_shape")}updateSelection(){this.selection.get(0).plot(this.handlePoints)}createResizeHandles(){this.handlePoints.forEach((ln,rn,an)=>{const sn=this.order[rn];this.createHandle.call(this,this.selection,ln,rn,an,sn),this.selection.get(rn+1).addClass("svg_select_handle svg_select_handle_"+sn).on("mousedown.selection touchstart.selection",Qa(sn,this.el,this.handlePoints,rn))})}createHandleFn(ln){ln.polyline()}updateHandleFn(ln,rn,an,sn){const on=sn.at(an-1),cn=sn[(an+1)%sn.length],un=rn,pn=[un[0]-on[0],un[1]-on[1]],fn=[un[0]-cn[0],un[1]-cn[1]],mn=Math.sqrt(pn[0]*pn[0]+pn[1]*pn[1]),xn=Math.sqrt(fn[0]*fn[0]+fn[1]*fn[1]),vn=[pn[0]/mn,pn[1]/mn],yn=[fn[0]/xn,fn[1]/xn],wn=[un[0]-10*vn[0],un[1]-10*vn[1]],An=[un[0]-10*yn[0],un[1]-10*yn[1]];ln.plot([wn,un,An])}updateResizeHandles(){this.handlePoints.forEach((ln,rn,an)=>{const sn=this.order[rn];this.updateHandle.call(this,this.selection.get(rn+1),ln,rn,an,sn)})}createRotFn(ln){ln.line(),ln.circle(5)}getPoint(ln){return this.handlePoints[this.order.indexOf(ln)]}getPointHandle(ln){return this.selection.get(this.order.indexOf(ln)+1)}updateRotFn(ln,rn){const an=this.getPoint("t");ln.get(0).plot(an[0],an[1],rn[0],rn[1]),ln.get(1).center(rn[0],rn[1])}createRotationHandle(){const ln=this.selection.group().addClass("svg_select_handle_rot").on("mousedown.selection touchstart.selection",Qa("rot",this.el,this.handlePoints));this.createRot.call(this,ln)}updateRotationHandle(){const ln=this.selection.findOne("g.svg_select_handle_rot");this.updateRot(ln,this.rotationPoint,this.handlePoints)}updatePoints(){const ln=this.el.bbox(),rn=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.handlePoints=this.getHandlePoints(ln).map(an=>Ka(an,rn)),this.rotationPoint=Ka(this.getRotationPoint(ln),rn)}getHandlePoints({x:ln,x2:rn,y:an,y2:sn,cx:on,cy:cn}=this.el.bbox()){return[[ln,an],[on,an],[rn,an],[rn,cn],[rn,sn],[on,sn],[ln,sn],[ln,cn]]}getRotationPoint({y:ln,cx:rn}=this.el.bbox()){return[rn,ln-20]}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updateResizeHandles(),this.updateRotationHandle()}};const es$1=ln=>function(rn=!0,an={}){typeof rn=="object"&&(an=rn,rn=!0);let sn=this.remember("_"+ln.name);return sn||(rn.prototype instanceof ts?(sn=new rn(this),rn=!0):sn=new ln(this),this.remember("_"+ln.name,sn)),sn.active(rn,an),this};/*!
* @svgdotjs/svg.resize.js - An extension for svg.js which allows to resize elements which are selected
* @version 2.0.4
* https://github.com/svgdotjs/svg.resize.js
*
* @copyright [object Object]
* @license MIT
*
* BUILT: Fri Sep 13 2024 12:43:14 GMT+0200 (Central European Summer Time)
*//*!
* @svgdotjs/svg.select.js - An extension of svg.js which allows to select elements with mouse
* @version 4.0.1
* https://github.com/svgdotjs/svg.select.js
*
* @copyright Ulrich-Matthias Schäfer
* @license MIT
*
* BUILT: Mon Jul 01 2024 15:04:42 GMT+0200 (Central European Summer Time)
*/function is(ln,rn,an,sn=null){return function(on){on.preventDefault(),on.stopPropagation();var cn=on.pageX||on.touches[0].pageX,un=on.pageY||on.touches[0].pageY;rn.fire(ln,{x:cn,y:un,event:on,index:sn,points:an})}}function as([ln,rn],{a:an,b:sn,c:on,d:cn,e:un,f:pn}){return[ln*an+rn*on+un,ln*sn+rn*cn+pn]}Q$1(Gt,{select:es$1(ts)}),Q$1([Ge,je,xe],{pointSelect:es$1(class{constructor(ln){this.el=ln,ln.remember("_pointSelectHandler",this),this.selection=new gi,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const rn=F$1();this.observer=new rn.MutationObserver(this.mutationHandler)}init(ln){this.createHandle=ln.createHandle||this.createHandleFn,this.updateHandle=ln.updateHandle||this.updateHandleFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createPointHandles(),this.updatePointHandles(),this.observer.observe(this.el.node,{attributes:!0})}active(ln,rn){if(!ln)return this.selection.clear().remove(),void this.observer.disconnect();this.init(rn)}createSelection(){this.selection.polygon(this.points).addClass("svg_select_shape_pointSelect")}updateSelection(){this.selection.get(0).plot(this.points)}createPointHandles(){this.points.forEach((ln,rn,an)=>{this.createHandle.call(this,this.selection,ln,rn,an),this.selection.get(rn+1).addClass("svg_select_handle_point").on("mousedown.selection touchstart.selection",Qa("point",this.el,this.points,rn))})}createHandleFn(ln){ln.circle(5)}updateHandleFn(ln,rn){ln.center(rn[0],rn[1])}updatePointHandles(){this.points.forEach((ln,rn,an)=>{this.updateHandle.call(this,this.selection.get(rn+1),ln,rn,an)})}updatePoints(){const ln=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.points=this.el.array().map(rn=>Ka(rn,ln))}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updatePointHandles()}})});class ss{constructor(rn){this.el=rn,rn.remember("_selectHandler",this),this.selection=new gi,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const an=F$1();this.observer=new an.MutationObserver(this.mutationHandler)}init(rn){this.createHandle=rn.createHandle||this.createHandleFn,this.createRot=rn.createRot||this.createRotFn,this.updateHandle=rn.updateHandle||this.updateHandleFn,this.updateRot=rn.updateRot||this.updateRotFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createResizeHandles(),this.updateResizeHandles(),this.createRotationHandle(),this.updateRotationHandle(),this.observer.observe(this.el.node,{attributes:!0})}active(rn,an){if(!rn)return this.selection.clear().remove(),void this.observer.disconnect();this.init(an)}createSelection(){this.selection.polygon(this.handlePoints).addClass("svg_select_shape")}updateSelection(){this.selection.get(0).plot(this.handlePoints)}createResizeHandles(){this.handlePoints.forEach((rn,an,sn)=>{const on=this.order[an];this.createHandle.call(this,this.selection,rn,an,sn,on),this.selection.get(an+1).addClass("svg_select_handle svg_select_handle_"+on).on("mousedown.selection touchstart.selection",is(on,this.el,this.handlePoints,an))})}createHandleFn(rn){rn.polyline()}updateHandleFn(rn,an,sn,on){const cn=on.at(sn-1),un=on[(sn+1)%on.length],pn=an,fn=[pn[0]-cn[0],pn[1]-cn[1]],mn=[pn[0]-un[0],pn[1]-un[1]],xn=Math.sqrt(fn[0]*fn[0]+fn[1]*fn[1]),vn=Math.sqrt(mn[0]*mn[0]+mn[1]*mn[1]),yn=[fn[0]/xn,fn[1]/xn],wn=[mn[0]/vn,mn[1]/vn],An=[pn[0]-10*yn[0],pn[1]-10*yn[1]],Cn=[pn[0]-10*wn[0],pn[1]-10*wn[1]];rn.plot([An,pn,Cn])}updateResizeHandles(){this.handlePoints.forEach((rn,an,sn)=>{const on=this.order[an];this.updateHandle.call(this,this.selection.get(an+1),rn,an,sn,on)})}createRotFn(rn){rn.line(),rn.circle(5)}getPoint(rn){return this.handlePoints[this.order.indexOf(rn)]}getPointHandle(rn){return this.selection.get(this.order.indexOf(rn)+1)}updateRotFn(rn,an){const sn=this.getPoint("t");rn.get(0).plot(sn[0],sn[1],an[0],an[1]),rn.get(1).center(an[0],an[1])}createRotationHandle(){const rn=this.selection.group().addClass("svg_select_handle_rot").on("mousedown.selection touchstart.selection",is("rot",this.el,this.handlePoints));this.createRot.call(this,rn)}updateRotationHandle(){const rn=this.selection.findOne("g.svg_select_handle_rot");this.updateRot(rn,this.rotationPoint,this.handlePoints)}updatePoints(){const rn=this.el.bbox(),an=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.handlePoints=this.getHandlePoints(rn).map(sn=>as(sn,an)),this.rotationPoint=as(this.getRotationPoint(rn),an)}getHandlePoints({x:rn,x2:an,y:sn,y2:on,cx:cn,cy:un}=this.el.bbox()){return[[rn,sn],[cn,sn],[an,sn],[an,un],[an,on],[cn,on],[rn,on],[rn,un]]}getRotationPoint({y:rn,cx:an}=this.el.bbox()){return[an,rn-20]}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updateResizeHandles(),this.updateRotationHandle()}}const rs=ln=>function(rn=!0,an={}){typeof rn=="object"&&(an=rn,rn=!0);let sn=this.remember("_"+ln.name);return sn||(rn.prototype instanceof ss?(sn=new rn(this),rn=!0):sn=new ln(this),this.remember("_"+ln.name,sn)),sn.active(rn,an),this};Q$1(Gt,{select:rs(ss)}),Q$1([Ge,je,xe],{pointSelect:rs(class{constructor(ln){this.el=ln,ln.remember("_pointSelectHandler",this),this.selection=new gi,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const rn=F$1();this.observer=new rn.MutationObserver(this.mutationHandler)}init(ln){this.createHandle=ln.createHandle||this.createHandleFn,this.updateHandle=ln.updateHandle||this.updateHandleFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createPointHandles(),this.updatePointHandles(),this.observer.observe(this.el.node,{attributes:!0})}active(ln,rn){if(!ln)return this.selection.clear().remove(),void this.observer.disconnect();this.init(rn)}createSelection(){this.selection.polygon(this.points).addClass("svg_select_shape_pointSelect")}updateSelection(){this.selection.get(0).plot(this.points)}createPointHandles(){this.points.forEach((ln,rn,an)=>{this.createHandle.call(this,this.selection,ln,rn,an),this.selection.get(rn+1).addClass("svg_select_handle_point").on("mousedown.selection touchstart.selection",is("point",this.el,this.points,rn))})}createHandleFn(ln){ln.circle(5)}updateHandleFn(ln,rn){ln.center(rn[0],rn[1])}updatePointHandles(){this.points.forEach((ln,rn,an)=>{this.updateHandle.call(this,this.selection.get(rn+1),ln,rn,an)})}updatePoints(){const ln=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.points=this.el.array().map(rn=>as(rn,ln))}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updatePointHandles()}})});const ns=ln=>(ln.changedTouches&&(ln=ln.changedTouches[0]),{x:ln.clientX,y:ln.clientY}),os=ln=>{let rn=1/0,an=1/0,sn=-1/0,on=-1/0;for(let cn=0;cn<ln.length;cn++){const un=ln[cn];rn=Math.min(rn,un[0]),an=Math.min(an,un[1]),sn=Math.max(sn,un[0]),on=Math.max(on,un[1])}return new kt(rn,an,sn-rn,on-an)};class ls{constructor(rn){this.el=rn,rn.remember("_ResizeHandler",this),this.lastCoordinates=null,this.eventType="",this.lastEvent=null,this.handleResize=this.handleResize.bind(this),this.resize=this.resize.bind(this),this.endResize=this.endResize.bind(this),this.rotate=this.rotate.bind(this),this.movePoint=this.movePoint.bind(this)}active(rn,an){this.preserveAspectRatio=an.preserveAspectRatio??!1,this.aroundCenter=an.aroundCenter??!1,this.grid=an.grid??0,this.degree=an.degree??0,this.el.off(".resize"),rn&&(this.el.on(["lt.resize","rt.resize","rb.resize","lb.resize","t.resize","r.resize","b.resize","l.resize","rot.resize","point.resize"],this.handleResize),this.lastEvent&&(this.eventType==="rot"?this.rotate(this.lastEvent):this.eventType==="point"?this.movePoint(this.lastEvent):this.resize(this.lastEvent)))}handleResize(rn){this.eventType=rn.type;const{event:an,index:sn,points:on}=rn.detail,cn=!an.type.indexOf("mouse");if(cn&&(an.which||an.buttons)!==1||this.el.dispatch("beforeresize",{event:rn,handler:this}).defaultPrevented)return;this.box=this.el.bbox(),this.startPoint=this.el.point(ns(an)),this.index=sn,this.points=on.slice();const un=(cn?"mousemove":"touchmove")+".resize",pn=(cn?"mouseup":"touchcancel.resize touchend")+".resize";rn.type==="point"?zt(window,un,this.movePoint):rn.type==="rot"?zt(window,un,this.rotate):zt(window,un,this.resize),zt(window,pn,this.endResize)}resize(rn){this.lastEvent=rn;const an=this.snapToGrid(this.el.point(ns(rn)));let sn=an.x-this.startPoint.x,on=an.y-this.startPoint.y;this.preserveAspectRatio&&this.aroundCenter&&(sn*=2,on*=2);const cn=this.box.x+sn,un=this.box.y+on,pn=this.box.x2+sn,fn=this.box.y2+on;let mn=new kt(this.box);if(this.eventType.includes("l")&&(mn.x=Math.min(cn,this.box.x2),mn.x2=Math.max(cn,this.box.x2)),this.eventType.includes("r")&&(mn.x=Math.min(pn,this.box.x),mn.x2=Math.max(pn,this.box.x)),this.eventType.includes("t")&&(mn.y=Math.min(un,this.box.y2),mn.y2=Math.max(un,this.box.y2)),this.eventType.includes("b")&&(mn.y=Math.min(fn,this.box.y),mn.y2=Math.max(fn,this.box.y)),mn.width=mn.x2-mn.x,mn.height=mn.y2-mn.y,this.preserveAspectRatio){const xn=mn.width/this.box.width,vn=mn.height/this.box.height,yn=["lt","t","rt","r","rb","b","lb","l"],wn=(yn.indexOf(this.eventType)+4)%yn.length,An=this.aroundCenter?[this.box.cx,this.box.cy]:this.points[wn];let Cn=this.eventType.includes("t")||this.eventType.includes("b")?vn:xn;Cn=this.eventType.length===2?Math.max(xn,vn):Cn,mn=function(kn,Mn,Tn){const On=[[kn.x,kn.y],[kn.x+kn.width,kn.y],[kn.x+kn.width,kn.y+kn.height],[kn.x,kn.y+kn.height]].map(([Pn,Nn])=>{const In=Pn-Mn[0],jn=(Nn-Mn[1])*Tn;return[In*Tn+Mn[0],jn+Mn[1]]});return os(On)}(this.box,An,Cn)}this.el.dispatch("resize",{box:new kt(mn),angle:0,eventType:this.eventType,event:rn,handler:this}).defaultPrevented||this.el.size(mn.width,mn.height).move(mn.x,mn.y)}movePoint(rn){this.lastEvent=rn;const{x:an,y:sn}=this.snapToGrid(this.el.point(ns(rn))),on=this.el.array().slice();on[this.index]=[an,sn],this.el.dispatch("resize",{box:os(on),angle:0,eventType:this.eventType,event:rn,handler:this}).defaultPrevented||this.el.plot(on)}rotate(rn){this.lastEvent=rn;const an=this.startPoint,sn=this.el.point(ns(rn)),{cx:on,cy:cn}=this.box,un=an.x-on,pn=an.y-cn,fn=sn.x-on,mn=sn.y-cn,xn=Math.sqrt(un*un+pn*pn)*Math.sqrt(fn*fn+mn*mn);if(xn===0)return;let vn=Math.acos((un*fn+pn*mn)/xn)/Math.PI*180;if(!vn)return;sn.x<an.x&&(vn=-vn);const yn=new vt(this.el),{x:wn,y:An}=new bt(on,cn).transformO(yn),{rotate:Cn}=yn.decompose(),kn=this.snapToAngle(Cn+vn)-Cn;this.el.dispatch("resize",{box:this.box,angle:kn,eventType:this.eventType,event:rn,handler:this}).defaultPrevented||this.el.transform(yn.rotateO(kn,wn,An))}endResize(rn){this.eventType!=="rot"&&this.eventType!=="point"&&this.resize(rn),this.lastEvent=null,this.eventType="",Xt(window,"mousemove.resize touchmove.resize"),Xt(window,"mouseup.resize touchend.resize")}snapToGrid(rn){return this.grid&&(rn.x=Math.round(rn.x/this.grid)*this.grid,rn.y=Math.round(rn.y/this.grid)*this.grid),rn}snapToAngle(rn){return this.degree&&(rn=Math.round(rn/this.degree)*this.degree),rn}}Q$1(Gt,{resize:function(ln=!0,rn={}){typeof ln=="object"&&(rn=ln,ln=!0);let an=this.remember("_ResizeHandler");return an||(ln.prototype instanceof ls?(an=new ln(this),ln=!0):an=new ls(this),this.remember("_resizeHandler",an)),an.active(ln,rn),this}}),window.SVG===void 0&&(window.SVG=yi),window.Apex===void 0&&(window.Apex={});var hs=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","highlightSeries","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 y$1(this.ctx),this.ctx.axes=new ra(this.ctx),this.ctx.core=new qa(this.ctx.el,this.ctx),this.ctx.config=new Wi({}),this.ctx.data=new $i(this.ctx),this.ctx.grid=new Ki(this.ctx),this.ctx.graphics=new Mi(this.ctx),this.ctx.coreUtils=new Pi(this.ctx),this.ctx.crosshairs=new na(this.ctx),this.ctx.events=new aa(this.ctx),this.ctx.exports=new Ji(this.ctx),this.ctx.fill=new ji(this.ctx),this.ctx.localization=new sa(this.ctx),this.ctx.options=new Oi,this.ctx.responsive=new oa(this.ctx),this.ctx.series=new Zi(this.ctx),this.ctx.theme=new la(this.ctx),this.ctx.formatters=new Xi(this.ctx),this.ctx.titleSubtitle=new ha(this.ctx),this.ctx.legend=new xa(this.ctx),this.ctx.toolbar=new ba(this.ctx),this.ctx.tooltip=new Sa(this.ctx),this.ctx.dimensions=new pa(this.ctx),this.ctx.updateHelpers=new Za(this.ctx),this.ctx.zoomPanSelection=new ma(this.ctx),this.ctx.w.globals.tooltip=new Sa(this.ctx)}}]),ln}(),cs=function(){function ln(rn){i$2(this,ln),this.ctx=rn,this.w=rn.w}return s$1(ln,[{key:"clear",value:function(rn){var an=rn.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:an})}},{key:"killSVG",value:function(rn){rn.each(function(){this.removeClass("*"),this.off()},!0),rn.clear()}},{key:"clearDomElements",value:function(rn){var an=this,sn=rn.isUpdating,on=this.w.globals.dom.Paper.node;on.parentNode&&on.parentNode.parentNode&&!sn&&(on.parentNode.parentNode.style.minHeight="unset");var cn=this.w.globals.dom.baseEl;cn&&this.ctx.eventList.forEach(function(pn){cn.removeEventListener(pn,an.ctx.events.documentEvent)});var un=this.w.globals.dom;if(this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(un.Paper),un.Paper.remove(),un.elWrap=null,un.elGraphical=null,un.elLegendWrap=null,un.elLegendForeign=null,un.baseEl=null,un.elGridRect=null,un.elGridRectMask=null,un.elGridRectBarMask=null,un.elGridRectMarkerMask=null,un.elForecastMask=null,un.elNonForecastMask=null,un.elDefs=null}}]),ln}(),ds=new WeakMap,us=function(){function ln(rn,an){i$2(this,ln),this.opts=an,this.ctx=this,this.w=new Gi(an).init(),this.el=rn,this.w.globals.cuid=v$2.randomId(),this.w.globals.chartID=this.w.config.chart.id?v$2.escapeString(this.w.config.chart.id):this.w.globals.cuid,new hs(this).initModules(),this.create=v$2.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return s$1(ln,[{key:"render",value:function(){var rn=this;return new Promise(function(an,sn){if(v$2.elementExists(rn.el)){Apex._chartInstances===void 0&&(Apex._chartInstances=[]),rn.w.config.chart.id&&Apex._chartInstances.push({id:rn.w.globals.chartID,group:rn.w.config.chart.group,chart:rn}),rn.setLocale(rn.w.config.chart.defaultLocale);var on=rn.w.config.chart.events.beforeMount;typeof on=="function"&&on(rn,rn.w),rn.events.fireEvent("beforeMount",[rn,rn.w]),window.addEventListener("resize",rn.windowResizeHandler),function(yn,wn){var An=!1;if(yn.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var Cn=yn.getBoundingClientRect();yn.style.display!=="none"&&Cn.width!==0||(An=!0)}var kn=new ResizeObserver(function(Mn){An&&wn.call(yn,Mn),An=!0});yn.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(yn.children).forEach(function(Mn){return kn.observe(Mn)}):kn.observe(yn),ds.set(wn,kn)}(rn.el.parentNode,rn.parentResizeHandler);var cn=rn.el.getRootNode&&rn.el.getRootNode(),un=v$2.is("ShadowRoot",cn),pn=rn.el.ownerDocument,fn=un?cn.getElementById("apexcharts-css"):pn.getElementById("apexcharts-css");if(!fn){var mn;(fn=document.createElement("style")).id="apexcharts-css",fn.textContent=`@keyframes opaque {
  0% {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes resizeanim {

  0%,
  to {
    opacity: 0
  }
}

.apexcharts-canvas {
  position: relative;
  direction: ltr !important;
  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
}

rect.legend-mouseover-inactive,
.legend-mouseover-inactive rect,
.legend-mouseover-inactive path,
.legend-mouseover-inactive circle,
.legend-mouseover-inactive line,
.legend-mouseover-inactive text.apexcharts-yaxis-title-text,
.legend-mouseover-inactive text.apexcharts-yaxis-label {
  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 {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
  margin-right: 4px;
  text-align: center;
  vertical-align: middle;
  color: inherit;
}

.apexcharts-tooltip-marker::before {
  content: "";
  display: inline-block;
  width: 100%;
  text-align: center;
  color: currentcolor;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-size: 26px;
  line-height: 14px;
  font-weight: 900;
}

.apexcharts-tooltip-marker[shape="circle"]::before {
  content: "\\25CF";
}

.apexcharts-tooltip-marker[shape="square"]::before,
.apexcharts-tooltip-marker[shape="rect"]::before {
  content: "\\25A0";
  transform: translate(-1px, -2px);
}

.apexcharts-tooltip-marker[shape="line"]::before {
  content: "\\2500";
}

.apexcharts-tooltip-marker[shape="diamond"]::before {
  content: "\\25C6";
  font-size: 28px;
}

.apexcharts-tooltip-marker[shape="triangle"]::before {
  content: "\\25B2";
  font-size: 22px;
}

.apexcharts-tooltip-marker[shape="cross"]::before {
  content: "\\2715";
  font-size: 18px;
}

.apexcharts-tooltip-marker[shape="plus"]::before {
  content: "\\2715";
  transform: rotate(45deg) translate(-1px, -1px);
  font-size: 18px;
}

.apexcharts-tooltip-marker[shape="star"]::before {
  content: "\\2605";
  font-size: 18px;
}

.apexcharts-tooltip-marker[shape="sparkle"]::before {
  content: "\\2726";
  font-size: 20px;
}

.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-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_shape {
  stroke-width: 1;
  stroke-dasharray: 10 10;
  stroke: black;
  stroke-opacity: 0.1;
  pointer-events: none;
  fill: none;
}

.svg_select_handle {
  stroke-width: 3;
  stroke: black;
  fill: none;
}

.svg_select_handle_r {
  cursor: e-resize;
}

.svg_select_handle_l {
  cursor: w-resize;
}

.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-gridline,
.apexcharts-line,
.apexcharts-point-annotation-label,
.apexcharts-radar-series path:not(.apexcharts-marker),
.apexcharts-radar-series polygon,
.apexcharts-toolbar svg,
.apexcharts-tooltip .apexcharts-marker,
.apexcharts-xaxis-annotation-label,
.apexcharts-yaxis-annotation-label,
.apexcharts-zoom-rect,
.no-pointer-events {
  pointer-events: none
}

.apexcharts-tooltip-active .apexcharts-marker {
  transition: .15s ease all
}

.apexcharts-radar-series .apexcharts-yaxis {
  pointer-events: none;
}

.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 xn=((mn=rn.opts.chart)===null||mn===void 0?void 0:mn.nonce)||rn.w.config.chart.nonce;xn&&fn.setAttribute("nonce",xn),un?cn.prepend(fn):pn.head.appendChild(fn)}var vn=rn.create(rn.w.config.series,{});if(!vn)return an(rn);rn.mount(vn).then(function(){typeof rn.w.config.chart.events.mounted=="function"&&rn.w.config.chart.events.mounted(rn,rn.w),rn.events.fireEvent("mounted",[rn,rn.w]),an(vn)}).catch(function(yn){sn(yn)})}else sn(new Error("Element not found"))})}},{key:"create",value:function(rn,an){var sn=this,on=this.w;new hs(this).initModules();var cn=this.w.globals;if(cn.noData=!1,cn.animationEnded=!1,!v$2.elementExists(this.el))return cn.animationEnded=!0,this.destroy(),null;if(this.responsive.checkResponsiveConfig(an),on.config.xaxis.convertedCatToNumeric&&new Ni(on.config).convertCatToNumericXaxis(on.config,this.ctx),this.core.setupElements(),on.config.chart.type==="treemap"&&(on.config.grid.show=!1,on.config.yaxis[0].show=!1),cn.svgWidth===0)return cn.animationEnded=!0,null;var un=rn;rn.forEach(function(yn,wn){yn.hidden&&(un=sn.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:wn}))});var pn=Pi.checkComboSeries(un,on.config.chart.type);cn.comboCharts=pn.comboCharts,cn.comboBarCount=pn.comboBarCount;var fn=un.every(function(yn){return yn.data&&yn.data.length===0});(un.length===0||fn&&cn.collapsedSeries.length<1)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(un),this.theme.init(),new Vi(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),cn.noData&&cn.collapsedSeries.length!==cn.series.length&&!on.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),cn.axisCharts&&(this.core.coreCalculations(),on.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=on.globals.minX,this.ctx.toolbar.maxX=on.globals.maxX),this.formatters.heatmapLabelFormatters(),new Pi(this).getLargestMarkerSize(),this.dimensions.plotCoords();var mn=this.core.xySettings();this.grid.createGridMask();var xn=this.core.plotChartType(un,mn),vn=new qi(this);return vn.bringForward(),on.config.dataLabels.background.enabled&&vn.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:xn,xyRatios:mn,dimensions:{plot:{left:on.globals.translateX,top:on.globals.translateY,width:on.globals.gridWidth,height:on.globals.gridHeight}}}}},{key:"mount",value:function(){var rn=this,an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,sn=this,on=sn.w;return new Promise(function(cn,un){if(sn.el===null)return un(new Error("Not enough data to display or target element not found"));(an===null||on.globals.allSeriesCollapsed)&&sn.series.handleNoData(),sn.grid=new Ki(sn);var pn,fn,mn=sn.grid.drawGrid();if(sn.annotations=new Fi(sn),sn.annotations.drawImageAnnos(),sn.annotations.drawTextAnnos(),on.config.grid.position==="back"&&(mn&&on.globals.dom.elGraphical.add(mn.el),mn!=null&&(pn=mn.elGridBorders)!==null&&pn!==void 0&&pn.node&&on.globals.dom.elGraphical.add(mn.elGridBorders)),Array.isArray(an.elGraph))for(var xn=0;xn<an.elGraph.length;xn++)on.globals.dom.elGraphical.add(an.elGraph[xn]);else on.globals.dom.elGraphical.add(an.elGraph);on.config.grid.position==="front"&&(mn&&on.globals.dom.elGraphical.add(mn.el),mn!=null&&(fn=mn.elGridBorders)!==null&&fn!==void 0&&fn.node&&on.globals.dom.elGraphical.add(mn.elGridBorders)),on.config.xaxis.crosshairs.position==="front"&&sn.crosshairs.drawXCrosshairs(),on.config.yaxis[0].crosshairs.position==="front"&&sn.crosshairs.drawYCrosshairs(),on.config.chart.type!=="treemap"&&sn.axes.drawAxis(on.config.chart.type,mn);var vn=new Qi(rn.ctx,mn),yn=new ia(rn.ctx,mn);if(mn!==null&&(vn.xAxisLabelCorrections(mn.xAxisTickWidth),yn.setYAxisTextAlignments(),on.config.yaxis.map(function(An,Cn){on.globals.ignoreYAxisIndexes.indexOf(Cn)===-1&&yn.yAxisTitleRotate(Cn,An.opposite)})),sn.annotations.drawAxesAnnotations(),!on.globals.noData){if(on.config.tooltip.enabled&&!on.globals.noData&&sn.w.globals.tooltip.drawTooltip(an.xyRatios),on.globals.axisCharts&&(on.globals.isXNumeric||on.config.xaxis.convertedCatToNumeric||on.globals.isRangeBar))(on.config.chart.zoom.enabled||on.config.chart.selection&&on.config.chart.selection.enabled||on.config.chart.pan&&on.config.chart.pan.enabled)&&sn.zoomPanSelection.init({xyRatios:an.xyRatios});else{var wn=on.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(An){wn[An]=!1})}on.config.chart.toolbar.show&&!on.globals.allSeriesCollapsed&&sn.toolbar.createToolbar()}on.globals.memory.methodsToExec.length>0&&on.globals.memory.methodsToExec.forEach(function(An){An.method(An.params,!1,An.context)}),on.globals.axisCharts||on.globals.noData||sn.core.resizeNonAxisCharts(),cn(sn)})}},{key:"destroy",value:function(){window.removeEventListener("resize",this.windowResizeHandler),function(an,sn){var on=ds.get(sn);on&&(on.disconnect(),ds.delete(sn))}(this.el.parentNode,this.parentResizeHandler);var rn=this.w.config.chart.id;rn&&Apex._chartInstances.forEach(function(an,sn){an.id===v$2.escapeString(rn)&&Apex._chartInstances.splice(sn,1)}),new cs(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(rn){var an=this,sn=arguments.length>1&&arguments[1]!==void 0&&arguments[1],on=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],cn=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],un=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],pn=this.w;return pn.globals.selection=void 0,rn.series&&(this.series.resetSeries(!1,!0,!1),rn.series.length&&rn.series[0].data&&(rn.series=rn.series.map(function(fn,mn){return an.updateHelpers._extendSeries(fn,mn)})),this.updateHelpers.revertDefaultAxisMinMax()),rn.xaxis&&(rn=this.updateHelpers.forceXAxisUpdate(rn)),rn.yaxis&&(rn=this.updateHelpers.forceYAxisUpdate(rn)),pn.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),rn.theme&&(rn=this.theme.updateThemeOptions(rn)),this.updateHelpers._updateOptions(rn,sn,on,cn,un)}},{key:"updateSeries",value:function(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],an=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],sn=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(rn,an,sn)}},{key:"appendSeries",value:function(rn){var an=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],sn=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],on=this.w.config.series.slice();return on.push(rn),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(on,an,sn)}},{key:"appendData",value:function(rn){var an=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],sn=this;sn.w.globals.dataChanged=!0,sn.series.getPreviousPaths();for(var on=sn.w.config.series.slice(),cn=0;cn<on.length;cn++)if(rn[cn]!==null&&rn[cn]!==void 0)for(var un=0;un<rn[cn].data.length;un++)on[cn].data.push(rn[cn].data[un]);return sn.w.config.series=on,an&&(sn.w.globals.initialSeries=v$2.clone(sn.w.config.series)),this.update()}},{key:"update",value:function(rn){var an=this;return new Promise(function(sn,on){new cs(an.ctx).clear({isUpdating:!0});var cn=an.create(an.w.config.series,rn);if(!cn)return sn(an);an.mount(cn).then(function(){typeof an.w.config.chart.events.updated=="function"&&an.w.config.chart.events.updated(an,an.w),an.events.fireEvent("updated",[an,an.w]),an.w.globals.isDirty=!0,sn(an)}).catch(function(un){on(un)})})}},{key:"getSyncedCharts",value:function(){var rn=this.getGroupedCharts(),an=[this];return rn.length&&(an=[],rn.forEach(function(sn){an.push(sn)})),an}},{key:"getGroupedCharts",value:function(){var rn=this;return Apex._chartInstances.filter(function(an){if(an.group)return!0}).map(function(an){return rn.w.config.chart.group===an.group?an.chart:rn})}},{key:"toggleSeries",value:function(rn){return this.series.toggleSeries(rn)}},{key:"highlightSeriesOnLegendHover",value:function(rn,an){return this.series.toggleSeriesOnHover(rn,an)}},{key:"showSeries",value:function(rn){this.series.showSeries(rn)}},{key:"hideSeries",value:function(rn){this.series.hideSeries(rn)}},{key:"highlightSeries",value:function(rn){this.series.highlightSeries(rn)}},{key:"isSeriesHidden",value:function(rn){this.series.isSeriesHidden(rn)}},{key:"resetSeries",value:function(){var rn=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],an=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.series.resetSeries(rn,an)}},{key:"addEventListener",value:function(rn,an){this.events.addEventListener(rn,an)}},{key:"removeEventListener",value:function(rn,an){this.events.removeEventListener(rn,an)}},{key:"addXaxisAnnotation",value:function(rn){var an=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,on=this;sn&&(on=sn),on.annotations.addXaxisAnnotationExternal(rn,an,on)}},{key:"addYaxisAnnotation",value:function(rn){var an=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,on=this;sn&&(on=sn),on.annotations.addYaxisAnnotationExternal(rn,an,on)}},{key:"addPointAnnotation",value:function(rn){var an=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,on=this;sn&&(on=sn),on.annotations.addPointAnnotationExternal(rn,an,on)}},{key:"clearAnnotations",value:function(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,an=this;rn&&(an=rn),an.annotations.clearAnnotations(an)}},{key:"removeAnnotation",value:function(rn){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,sn=this;an&&(sn=an),sn.annotations.removeAnnotation(sn,rn)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(rn,an){return this.coreUtils.getSeriesTotalsXRange(rn,an)}},{key:"getHighestValueInSeries",value:function(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new ea(this.ctx).getMinYMaxY(rn).highestY}},{key:"getLowestValueInSeries",value:function(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new ea(this.ctx).getMinYMaxY(rn).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(rn,an){return this.updateHelpers.toggleDataPointSelection(rn,an)}},{key:"zoomX",value:function(rn,an){this.ctx.toolbar.zoomUpdateOptions(rn,an)}},{key:"setLocale",value:function(rn){this.localization.setCurrentLocaleValues(rn)}},{key:"dataURI",value:function(rn){return new Ji(this.ctx).dataURI(rn)}},{key:"exportToCSV",value:function(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new Ji(this.ctx).exportToCSV(rn)}},{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 rn=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){rn.w.globals.resized=!0,rn.w.globals.dataChanged=!1,rn.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var rn=this.w.config.chart.redrawOnWindowResize;typeof rn=="function"&&(rn=rn()),rn&&this._windowResize()}}],[{key:"getChartByID",value:function(rn){var an=v$2.escapeString(rn);if(Apex._chartInstances){var sn=Apex._chartInstances.filter(function(on){return on.id===an})[0];return sn&&sn.chart}}},{key:"initOnLoad",value:function(){for(var rn=document.querySelectorAll("[data-apexcharts]"),an=0;an<rn.length;an++)new ln(rn[an],JSON.parse(rn[an].getAttribute("data-options"))).render()}},{key:"exec",value:function(rn,an){var sn=this.getChartByID(rn);if(sn){sn.w.globals.isExecCalled=!0;var on=null;if(sn.publicMethods.indexOf(an)!==-1){for(var cn=arguments.length,un=new Array(cn>2?cn-2:0),pn=2;pn<cn;pn++)un[pn-2]=arguments[pn];on=sn[an].apply(sn,un)}return on}}},{key:"merge",value:function(rn,an){return v$2.extend(rn,an)}}]),ln}();const apexcharts_esm=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"})),require$$1=getAugmentedNamespace(apexcharts_esm);var propTypes={exports:{}},ReactPropTypesSecret_1,hasRequiredReactPropTypesSecret;function requireReactPropTypesSecret(){if(hasRequiredReactPropTypesSecret)return ReactPropTypesSecret_1;hasRequiredReactPropTypesSecret=1;var ln="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ReactPropTypesSecret_1=ln,ReactPropTypesSecret_1}var factoryWithThrowingShims,hasRequiredFactoryWithThrowingShims;function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var ln=requireReactPropTypesSecret();function rn(){}function an(){}return an.resetWarningCache=rn,factoryWithThrowingShims=function(){function sn(un,pn,fn,mn,xn,vn){if(vn!==ln){var yn=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw yn.name="Invariant Violation",yn}}sn.isRequired=sn;function on(){return sn}var cn={array:sn,bigint:sn,bool:sn,func:sn,number:sn,object:sn,string:sn,symbol:sn,any:sn,arrayOf:on,element:sn,elementType:sn,instanceOf:on,node:sn,objectOf:on,oneOf:on,oneOfType:on,shape:on,exact:on,checkPropTypes:an,resetWarningCache:rn};return cn.PropTypes=cn,cn},factoryWithThrowingShims}var hasRequiredPropTypes;function requirePropTypes(){return hasRequiredPropTypes||(hasRequiredPropTypes=1,propTypes.exports=requireFactoryWithThrowingShims()()),propTypes.exports}var hasRequiredReactApexcharts_min;function requireReactApexcharts_min(){return hasRequiredReactApexcharts_min||(hasRequiredReactApexcharts_min=1,function(ln){Object.defineProperty(ln,"__esModule",{value:!0}),ln.default=On;var rn=pn(requireReact()),an=cn(require$$1),sn=cn(requirePropTypes()),on=["type","width","height","series","options"];function cn(Pn){return Pn&&Pn.__esModule?Pn:{default:Pn}}function un(Pn){var Nn,In;return typeof WeakMap!="function"?null:(Nn=new WeakMap,In=new WeakMap,(un=function(jn){return jn?In:Nn})(Pn))}function pn(Pn,Nn){if(!Nn&&Pn&&Pn.__esModule)return Pn;if(Pn===null||vn(Pn)!="object"&&typeof Pn!="function")return{default:Pn};if(Nn=un(Nn),Nn&&Nn.has(Pn))return Nn.get(Pn);var In,jn,Fn={__proto__:null},Un=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(In in Pn)In!=="default"&&{}.hasOwnProperty.call(Pn,In)&&((jn=Un?Object.getOwnPropertyDescriptor(Pn,In):null)&&(jn.get||jn.set)?Object.defineProperty(Fn,In,jn):Fn[In]=Pn[In]);return Fn.default=Pn,Nn&&Nn.set(Pn,Fn),Fn}function fn(){return(fn=Object.assign?Object.assign.bind():function(Pn){for(var Nn=1;Nn<arguments.length;Nn++){var In,jn=arguments[Nn];for(In in jn)!{}.hasOwnProperty.call(jn,In)||(Pn[In]=jn[In])}return Pn}).apply(null,arguments)}function mn(Pn,Nn){if(Pn==null)return{};var In,jn=xn(Pn,Nn);if(Object.getOwnPropertySymbols)for(var Fn=Object.getOwnPropertySymbols(Pn),Un=0;Un<Fn.length;Un++)In=Fn[Un],Nn.includes(In)||{}.propertyIsEnumerable.call(Pn,In)&&(jn[In]=Pn[In]);return jn}function xn(Pn,Nn){if(Pn==null)return{};var In,jn={};for(In in Pn)if({}.hasOwnProperty.call(Pn,In)){if(Nn.includes(In))continue;jn[In]=Pn[In]}return jn}function vn(Pn){return(vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Nn){return typeof Nn}:function(Nn){return Nn&&typeof Symbol=="function"&&Nn.constructor===Symbol&&Nn!==Symbol.prototype?"symbol":typeof Nn})(Pn)}function yn(Pn,Nn){var In,jn=Object.keys(Pn);return Object.getOwnPropertySymbols&&(In=Object.getOwnPropertySymbols(Pn),Nn&&(In=In.filter(function(Fn){return Object.getOwnPropertyDescriptor(Pn,Fn).enumerable})),jn.push.apply(jn,In)),jn}function wn(Pn){for(var Nn=1;Nn<arguments.length;Nn++){var In=arguments[Nn]!=null?arguments[Nn]:{};Nn%2?yn(Object(In),!0).forEach(function(jn){An(Pn,jn,In[jn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Pn,Object.getOwnPropertyDescriptors(In)):yn(Object(In)).forEach(function(jn){Object.defineProperty(Pn,jn,Object.getOwnPropertyDescriptor(In,jn))})}return Pn}function An(Pn,Nn,In){return(Nn=Cn(Nn))in Pn?Object.defineProperty(Pn,Nn,{value:In,enumerable:!0,configurable:!0,writable:!0}):Pn[Nn]=In,Pn}function Cn(Pn){return Pn=kn(Pn,"string"),vn(Pn)=="symbol"?Pn:Pn+""}function kn(Pn,Nn){if(vn(Pn)!="object"||!Pn)return Pn;var In=Pn[Symbol.toPrimitive];if(In===void 0)return(Nn==="string"?String:Number)(Pn);if(In=In.call(Pn,Nn),vn(In)!="object")return In;throw new TypeError("@@toPrimitive must return a primitive value.")}function Mn(Pn,Nn){var In=wn({},Pn);return Nn.forEach(function(jn){delete In[jn]}),In}function Tn(Pn,Nn){var In=2<arguments.length&&arguments[2]!==void 0?arguments[2]:new WeakSet;if(Pn!==Nn){if(vn(Pn)!=="object"||Pn===null||vn(Nn)!=="object"||Nn===null)return!1;if(!In.has(Pn)&&!In.has(Nn)){In.add(Pn),In.add(Nn);var jn=Object.keys(Pn),Fn=Object.keys(Nn);if(jn.length!==Fn.length)return!1;for(var Un=0,Yn=jn;Un<Yn.length;Un++){var Qn=Yn[Un];if(!Fn.includes(Qn)||!Tn(Pn[Qn],Nn[Qn],In))return!1}}}return!0}function On(fr){function Nn(ur){return ur&&vn(ur)==="object"&&!Array.isArray(ur)}var Qn=fr.type,In=Qn===void 0?"line":Qn,Qn=fr.width,jn=Qn===void 0?"100%":Qn,Qn=fr.height,Fn=Qn===void 0?"auto":Qn,Un=fr.series,Yn=fr.options,Qn=mn(fr,on),ir=(0,rn.useRef)(null),er=(0,rn.useRef)(null),tr=(0,rn.useRef)(),vr=((0,rn.useEffect)(function(){tr.current=Yn;var ur=ir.current;return er.current=new an.default(ur,vr()),er.current.render(),function(){er.current&&typeof er.current.destroy=="function"&&er.current.destroy()}},[]),(0,rn.useEffect)(function(){var ur=!Tn(er.current.w.config.series,Un),wr=!Tn(tr.current,Yn)||Fn!==er.current.opts.chart.height||jn!==er.current.opts.chart.width;(ur||wr)&&(!ur||wr?er.current.updateOptions(vr()):er.current.updateSeries(Un)),tr.current=Yn},[Yn,Un,Fn,jn]),function(){return rr(Yn,{chart:{type:In,height:Fn,width:jn},series:Un})}),rr=function(ur,wr){var Xn=wn({},ur);return Nn(ur)&&Nn(wr)&&Object.keys(wr).forEach(function(cr){Nn(wr[cr])&&cr in ur?Xn[cr]=rr(ur[cr],wr[cr]):Object.assign(Xn,An({},cr,wr[cr]))}),Xn},fr=Mn(Qn,Object.keys(On.propTypes));return rn.default.createElement("div",fn({ref:ir},fr))}On.propTypes={type:sn.default.string.isRequired,series:sn.default.array.isRequired,options:sn.default.object.isRequired,width:sn.default.oneOfType([sn.default.string,sn.default.number]),height:sn.default.oneOfType([sn.default.string,sn.default.number])}}(reactApexcharts_min)),reactApexcharts_min}var reactApexcharts_minExports=requireReactApexcharts_min();const Chart=getDefaultExportFromCjs(reactApexcharts_minExports);function LineChartOne(){const ln={legend:{show:!1,position:"top",horizontalAlign:"left"},colors:["#465FFF","#9CB9FF"],chart:{fontFamily:"Outfit, sans-serif",height:310,type:"line",toolbar:{show:!1}},stroke:{curve:"straight",width:[2,2]},fill:{type:"gradient",gradient:{opacityFrom:.55,opacityTo:0}},markers:{size:0,strokeColors:"#fff",strokeWidth:2,hover:{size:6}},grid:{xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}}},dataLabels:{enabled:!1},tooltip:{enabled:!0,x:{format:"dd MMM yyyy"}},xaxis:{type:"category",categories:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],axisBorder:{show:!1},axisTicks:{show:!1},tooltip:{enabled:!1}},yaxis:{labels:{style:{fontSize:"12px",colors:["#6B7280"]}},title:{text:"",style:{fontSize:"0px"}}}},rn=[{name:"Sales",data:[180,190,170,160,175,165,170,205,230,210,240,235]},{name:"Revenue",data:[40,30,50,40,55,40,70,100,110,120,150,140]}];return jsxRuntimeExports.jsx("div",{className:"max-w-full overflow-x-auto custom-scrollbar",children:jsxRuntimeExports.jsx("div",{id:"chartEight",className:"min-w-[1000px]",children:jsxRuntimeExports.jsx(Chart,{options:ln,series:rn,type:"area",height:310})})})}function LineChart(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"React.js Chart Dashboard | TailAdmin - React.js Admin Dashboard Template",description:"This is React.js Chart Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),jsxRuntimeExports.jsx(PageBreadcrumb,{pageTitle:"Line Chart"}),jsxRuntimeExports.jsx("div",{className:"space-y-6",children:jsxRuntimeExports.jsx(ComponentCard,{title:"Line Chart 1",children:jsxRuntimeExports.jsx(LineChartOne,{})})})]})}function BarChartOne(){const ln={colors:["#465fff"],chart:{fontFamily:"Outfit, sans-serif",type:"bar",height:180,toolbar:{show:!1}},plotOptions:{bar:{horizontal:!1,columnWidth:"39%",borderRadius:5,borderRadiusApplication:"end"}},dataLabels:{enabled:!1},stroke:{show:!0,width:4,colors:["transparent"]},xaxis:{categories:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],axisBorder:{show:!1},axisTicks:{show:!1}},legend:{show:!0,position:"top",horizontalAlign:"left",fontFamily:"Outfit"},yaxis:{title:{text:void 0}},grid:{yaxis:{lines:{show:!0}}},fill:{opacity:1},tooltip:{x:{show:!1},y:{formatter:an=>`${an}`}}},rn=[{name:"Sales",data:[168,385,201,298,187,195,291,110,215,390,280,112]}];return jsxRuntimeExports.jsx("div",{className:"max-w-full overflow-x-auto custom-scrollbar",children:jsxRuntimeExports.jsx("div",{id:"chartOne",className:"min-w-[1000px]",children:jsxRuntimeExports.jsx(Chart,{options:ln,series:rn,type:"bar",height:180})})})}function BarChart(){return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(PageMeta,{title:"React.js Chart Dashboard | TailAdmin - React.js Admin Dashboard Template",description:"This is React.js Chart Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),jsxRuntimeExports.jsx(PageBreadcrumb,{pageTitle:"Bar Chart"}),jsxRuntimeExports.jsx("div",{className:"space-y-6",children:jsxRuntimeExports.jsx(ComponentCard,{title:"Bar Chart 1",children:jsxRuntimeExports.jsx(BarChartOne,{})})})]})}var reactDomExports=requireReactDom(),n,l$1,u$1,i$1,t,r$1,o,f$1,e$1,c$1={},s=[],a$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(ln,rn){for(var an in rn)ln[an]=rn[an];return ln}function v$1(ln){var rn=ln.parentNode;rn&&rn.removeChild(ln)}function y(ln,rn,an){var sn,on,cn,un={};for(cn in rn)cn=="key"?sn=rn[cn]:cn=="ref"?on=rn[cn]:un[cn]=rn[cn];if(arguments.length>2&&(un.children=arguments.length>3?n.call(arguments,2):an),typeof ln=="function"&&ln.defaultProps!=null)for(cn in ln.defaultProps)un[cn]===void 0&&(un[cn]=ln.defaultProps[cn]);return p(ln,un,sn,on,null)}function p(ln,rn,an,sn,on){var cn={type:ln,props:rn,key:an,ref:sn,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:on??++u$1};return on==null&&l$1.vnode!=null&&l$1.vnode(cn),cn}function d(){return{current:null}}function _(ln){return ln.children}function k$1(ln,rn,an,sn,on){var cn;for(cn in an)cn==="children"||cn==="key"||cn in rn||g$2(ln,cn,null,an[cn],sn);for(cn in rn)on&&typeof rn[cn]!="function"||cn==="children"||cn==="key"||cn==="value"||cn==="checked"||an[cn]===rn[cn]||g$2(ln,cn,rn[cn],an[cn],sn)}function b$1(ln,rn,an){rn[0]==="-"?ln.setProperty(rn,an??""):ln[rn]=an==null?"":typeof an!="number"||a$1.test(rn)?an:an+"px"}function g$2(ln,rn,an,sn,on){var cn;e:if(rn==="style")if(typeof an=="string")ln.style.cssText=an;else{if(typeof sn=="string"&&(ln.style.cssText=sn=""),sn)for(rn in sn)an&&rn in an||b$1(ln.style,rn,"");if(an)for(rn in an)sn&&an[rn]===sn[rn]||b$1(ln.style,rn,an[rn])}else if(rn[0]==="o"&&rn[1]==="n")cn=rn!==(rn=rn.replace(/Capture$/,"")),rn=rn.toLowerCase()in ln?rn.toLowerCase().slice(2):rn.slice(2),ln.l||(ln.l={}),ln.l[rn+cn]=an,an?sn||ln.addEventListener(rn,cn?w$2:m$1,cn):ln.removeEventListener(rn,cn?w$2:m$1,cn);else if(rn!=="dangerouslySetInnerHTML"){if(on)rn=rn.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(rn!=="width"&&rn!=="height"&&rn!=="href"&&rn!=="list"&&rn!=="form"&&rn!=="tabIndex"&&rn!=="download"&&rn in ln)try{ln[rn]=an??"";break e}catch{}typeof an=="function"||(an==null||an===!1&&rn.indexOf("-")==-1?ln.removeAttribute(rn):ln.setAttribute(rn,an))}}function m$1(ln){t=!0;try{return this.l[ln.type+!1](l$1.event?l$1.event(ln):ln)}finally{t=!1}}function w$2(ln){t=!0;try{return this.l[ln.type+!0](l$1.event?l$1.event(ln):ln)}finally{t=!1}}function x$1(ln,rn){this.props=ln,this.context=rn}function A(ln,rn){if(rn==null)return ln.__?A(ln.__,ln.__.__k.indexOf(ln)+1):null;for(var an;rn<ln.__k.length;rn++)if((an=ln.__k[rn])!=null&&an.__e!=null)return an.__e;return typeof ln.type=="function"?A(ln):null}function P$1(ln){var rn,an;if((ln=ln.__)!=null&&ln.__c!=null){for(ln.__e=ln.__c.base=null,rn=0;rn<ln.__k.length;rn++)if((an=ln.__k[rn])!=null&&an.__e!=null){ln.__e=ln.__c.base=an.__e;break}return P$1(ln)}}function C$1(ln){t?setTimeout(ln):f$1(ln)}function T$1(ln){(!ln.__d&&(ln.__d=!0)&&r$1.push(ln)&&!$$1.__r++||o!==l$1.debounceRendering)&&((o=l$1.debounceRendering)||C$1)($$1)}function $$1(){var ln,rn,an,sn,on,cn,un,pn;for(r$1.sort(function(fn,mn){return fn.__v.__b-mn.__v.__b});ln=r$1.shift();)ln.__d&&(rn=r$1.length,sn=void 0,on=void 0,un=(cn=(an=ln).__v).__e,(pn=an.__P)&&(sn=[],(on=h({},cn)).__v=cn.__v+1,M(pn,cn,on,an.__n,pn.ownerSVGElement!==void 0,cn.__h!=null?[un]:null,sn,un??A(cn),cn.__h),N(sn,cn),cn.__e!=un&&P$1(cn)),r$1.length>rn&&r$1.sort(function(fn,mn){return fn.__v.__b-mn.__v.__b}));$$1.__r=0}function H$1(ln,rn,an,sn,on,cn,un,pn,fn,mn){var xn,vn,yn,wn,An,Cn,kn,Mn=sn&&sn.__k||s,Tn=Mn.length;for(an.__k=[],xn=0;xn<rn.length;xn++)if((wn=an.__k[xn]=(wn=rn[xn])==null||typeof wn=="boolean"?null:typeof wn=="string"||typeof wn=="number"||typeof wn=="bigint"?p(null,wn,null,null,wn):Array.isArray(wn)?p(_,{children:wn},null,null,null):wn.__b>0?p(wn.type,wn.props,wn.key,wn.ref?wn.ref:null,wn.__v):wn)!=null){if(wn.__=an,wn.__b=an.__b+1,(yn=Mn[xn])===null||yn&&wn.key==yn.key&&wn.type===yn.type)Mn[xn]=void 0;else for(vn=0;vn<Tn;vn++){if((yn=Mn[vn])&&wn.key==yn.key&&wn.type===yn.type){Mn[vn]=void 0;break}yn=null}M(ln,wn,yn=yn||c$1,on,cn,un,pn,fn,mn),An=wn.__e,(vn=wn.ref)&&yn.ref!=vn&&(kn||(kn=[]),yn.ref&&kn.push(yn.ref,null,wn),kn.push(vn,wn.__c||An,wn)),An!=null?(Cn==null&&(Cn=An),typeof wn.type=="function"&&wn.__k===yn.__k?wn.__d=fn=I$1(wn,fn,ln):fn=z$1(ln,wn,yn,Mn,An,fn),typeof an.type=="function"&&(an.__d=fn)):fn&&yn.__e==fn&&fn.parentNode!=ln&&(fn=A(yn))}for(an.__e=Cn,xn=Tn;xn--;)Mn[xn]!=null&&(typeof an.type=="function"&&Mn[xn].__e!=null&&Mn[xn].__e==an.__d&&(an.__d=L$1(sn).nextSibling),q(Mn[xn],Mn[xn]));if(kn)for(xn=0;xn<kn.length;xn++)S(kn[xn],kn[++xn],kn[++xn])}function I$1(ln,rn,an){for(var sn,on=ln.__k,cn=0;on&&cn<on.length;cn++)(sn=on[cn])&&(sn.__=ln,rn=typeof sn.type=="function"?I$1(sn,rn,an):z$1(an,sn,sn,on,sn.__e,rn));return rn}function j$3(ln,rn){return rn=rn||[],ln==null||typeof ln=="boolean"||(Array.isArray(ln)?ln.some(function(an){j$3(an,rn)}):rn.push(ln)),rn}function z$1(ln,rn,an,sn,on,cn){var un,pn,fn;if(rn.__d!==void 0)un=rn.__d,rn.__d=void 0;else if(an==null||on!=cn||on.parentNode==null)e:if(cn==null||cn.parentNode!==ln)ln.appendChild(on),un=null;else{for(pn=cn,fn=0;(pn=pn.nextSibling)&&fn<sn.length;fn+=1)if(pn==on)break e;ln.insertBefore(on,cn),un=cn}return un!==void 0?un:on.nextSibling}function L$1(ln){var rn,an,sn;if(ln.type==null||typeof ln.type=="string")return ln.__e;if(ln.__k){for(rn=ln.__k.length-1;rn>=0;rn--)if((an=ln.__k[rn])&&(sn=L$1(an)))return sn}return null}function M(ln,rn,an,sn,on,cn,un,pn,fn){var mn,xn,vn,yn,wn,An,Cn,kn,Mn,Tn,On,Pn,Nn,In,jn,Fn=rn.type;if(rn.constructor!==void 0)return null;an.__h!=null&&(fn=an.__h,pn=rn.__e=an.__e,rn.__h=null,cn=[pn]),(mn=l$1.__b)&&mn(rn);try{e:if(typeof Fn=="function"){if(kn=rn.props,Mn=(mn=Fn.contextType)&&sn[mn.__c],Tn=mn?Mn?Mn.props.value:mn.__:sn,an.__c?Cn=(xn=rn.__c=an.__c).__=xn.__E:("prototype"in Fn&&Fn.prototype.render?rn.__c=xn=new Fn(kn,Tn):(rn.__c=xn=new x$1(kn,Tn),xn.constructor=Fn,xn.render=B$1),Mn&&Mn.sub(xn),xn.props=kn,xn.state||(xn.state={}),xn.context=Tn,xn.__n=sn,vn=xn.__d=!0,xn.__h=[],xn._sb=[]),xn.__s==null&&(xn.__s=xn.state),Fn.getDerivedStateFromProps!=null&&(xn.__s==xn.state&&(xn.__s=h({},xn.__s)),h(xn.__s,Fn.getDerivedStateFromProps(kn,xn.__s))),yn=xn.props,wn=xn.state,xn.__v=rn,vn)Fn.getDerivedStateFromProps==null&&xn.componentWillMount!=null&&xn.componentWillMount(),xn.componentDidMount!=null&&xn.__h.push(xn.componentDidMount);else{if(Fn.getDerivedStateFromProps==null&&kn!==yn&&xn.componentWillReceiveProps!=null&&xn.componentWillReceiveProps(kn,Tn),!xn.__e&&xn.shouldComponentUpdate!=null&&xn.shouldComponentUpdate(kn,xn.__s,Tn)===!1||rn.__v===an.__v){for(rn.__v!==an.__v&&(xn.props=kn,xn.state=xn.__s,xn.__d=!1),rn.__e=an.__e,rn.__k=an.__k,rn.__k.forEach(function(Un){Un&&(Un.__=rn)}),On=0;On<xn._sb.length;On++)xn.__h.push(xn._sb[On]);xn._sb=[],xn.__h.length&&un.push(xn);break e}xn.componentWillUpdate!=null&&xn.componentWillUpdate(kn,xn.__s,Tn),xn.componentDidUpdate!=null&&xn.__h.push(function(){xn.componentDidUpdate(yn,wn,An)})}if(xn.context=Tn,xn.props=kn,xn.__P=ln,Pn=l$1.__r,Nn=0,"prototype"in Fn&&Fn.prototype.render){for(xn.state=xn.__s,xn.__d=!1,Pn&&Pn(rn),mn=xn.render(xn.props,xn.state,xn.context),In=0;In<xn._sb.length;In++)xn.__h.push(xn._sb[In]);xn._sb=[]}else do xn.__d=!1,Pn&&Pn(rn),mn=xn.render(xn.props,xn.state,xn.context),xn.state=xn.__s;while(xn.__d&&++Nn<25);xn.state=xn.__s,xn.getChildContext!=null&&(sn=h(h({},sn),xn.getChildContext())),vn||xn.getSnapshotBeforeUpdate==null||(An=xn.getSnapshotBeforeUpdate(yn,wn)),jn=mn!=null&&mn.type===_&&mn.key==null?mn.props.children:mn,H$1(ln,Array.isArray(jn)?jn:[jn],rn,an,sn,on,cn,un,pn,fn),xn.base=rn.__e,rn.__h=null,xn.__h.length&&un.push(xn),Cn&&(xn.__E=xn.__=null),xn.__e=!1}else cn==null&&rn.__v===an.__v?(rn.__k=an.__k,rn.__e=an.__e):rn.__e=O(an.__e,rn,an,sn,on,cn,un,fn);(mn=l$1.diffed)&&mn(rn)}catch(Un){rn.__v=null,(fn||cn!=null)&&(rn.__e=pn,rn.__h=!!fn,cn[cn.indexOf(pn)]=null),l$1.__e(Un,rn,an)}}function N(ln,rn){l$1.__c&&l$1.__c(rn,ln),ln.some(function(an){try{ln=an.__h,an.__h=[],ln.some(function(sn){sn.call(an)})}catch(sn){l$1.__e(sn,an.__v)}})}function O(ln,rn,an,sn,on,cn,un,pn){var fn,mn,xn,vn=an.props,yn=rn.props,wn=rn.type,An=0;if(wn==="svg"&&(on=!0),cn!=null){for(;An<cn.length;An++)if((fn=cn[An])&&"setAttribute"in fn==!!wn&&(wn?fn.localName===wn:fn.nodeType===3)){ln=fn,cn[An]=null;break}}if(ln==null){if(wn===null)return document.createTextNode(yn);ln=on?document.createElementNS("http://www.w3.org/2000/svg",wn):document.createElement(wn,yn.is&&yn),cn=null,pn=!1}if(wn===null)vn===yn||pn&&ln.data===yn||(ln.data=yn);else{if(cn=cn&&n.call(ln.childNodes),mn=(vn=an.props||c$1).dangerouslySetInnerHTML,xn=yn.dangerouslySetInnerHTML,!pn){if(cn!=null)for(vn={},An=0;An<ln.attributes.length;An++)vn[ln.attributes[An].name]=ln.attributes[An].value;(xn||mn)&&(xn&&(mn&&xn.__html==mn.__html||xn.__html===ln.innerHTML)||(ln.innerHTML=xn&&xn.__html||""))}if(k$1(ln,yn,vn,on,pn),xn)rn.__k=[];else if(An=rn.props.children,H$1(ln,Array.isArray(An)?An:[An],rn,an,sn,on&&wn!=="foreignObject",cn,un,cn?cn[0]:an.__k&&A(an,0),pn),cn!=null)for(An=cn.length;An--;)cn[An]!=null&&v$1(cn[An]);pn||("value"in yn&&(An=yn.value)!==void 0&&(An!==ln.value||wn==="progress"&&!An||wn==="option"&&An!==vn.value)&&g$2(ln,"value",An,vn.value,!1),"checked"in yn&&(An=yn.checked)!==void 0&&An!==ln.checked&&g$2(ln,"checked",An,vn.checked,!1))}return ln}function S(ln,rn,an){try{typeof ln=="function"?ln(rn):ln.current=rn}catch(sn){l$1.__e(sn,an)}}function q(ln,rn,an){var sn,on;if(l$1.unmount&&l$1.unmount(ln),(sn=ln.ref)&&(sn.current&&sn.current!==ln.__e||S(sn,null,rn)),(sn=ln.__c)!=null){if(sn.componentWillUnmount)try{sn.componentWillUnmount()}catch(cn){l$1.__e(cn,rn)}sn.base=sn.__P=null,ln.__c=void 0}if(sn=ln.__k)for(on=0;on<sn.length;on++)sn[on]&&q(sn[on],rn,an||typeof ln.type!="function");an||ln.__e==null||v$1(ln.__e),ln.__=ln.__e=ln.__d=void 0}function B$1(ln,rn,an){return this.constructor(ln,an)}function D$1(ln,rn,an){var sn,on,cn;l$1.__&&l$1.__(ln,rn),on=(sn=!1)?null:rn.__k,cn=[],M(rn,ln=rn.__k=y(_,null,[ln]),on||c$1,c$1,rn.ownerSVGElement!==void 0,on?null:rn.firstChild?n.call(rn.childNodes):null,cn,on?on.__e:rn.firstChild,sn),N(cn,ln)}function G$1(ln,rn){var an={__c:rn="__cC"+e$1++,__:ln,Consumer:function(sn,on){return sn.children(on)},Provider:function(sn){var on,cn;return this.getChildContext||(on=[],(cn={})[rn]=this,this.getChildContext=function(){return cn},this.shouldComponentUpdate=function(un){this.props.value!==un.value&&on.some(function(pn){pn.__e=!0,T$1(pn)})},this.sub=function(un){on.push(un);var pn=un.componentWillUnmount;un.componentWillUnmount=function(){on.splice(on.indexOf(un),1),pn&&pn.call(un)}}),sn.children}};return an.Provider.__=an.Consumer.contextType=an}n=s.slice,l$1={__e:function(ln,rn,an,sn){for(var on,cn,un;rn=rn.__;)if((on=rn.__c)&&!on.__)try{if((cn=on.constructor)&&cn.getDerivedStateFromError!=null&&(on.setState(cn.getDerivedStateFromError(ln)),un=on.__d),on.componentDidCatch!=null&&(on.componentDidCatch(ln,sn||{}),un=on.__d),un)return on.__E=on}catch(pn){ln=pn}throw ln}},u$1=0,i$1=function(ln){return ln!=null&&ln.constructor===void 0},t=!1,x$1.prototype.setState=function(ln,rn){var an;an=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=h({},this.state),typeof ln=="function"&&(ln=ln(h({},an),this.props)),ln&&h(an,ln),ln!=null&&this.__v&&(rn&&this._sb.push(rn),T$1(this))},x$1.prototype.forceUpdate=function(ln){this.__v&&(this.__e=!0,ln&&this.__h.push(ln),T$1(this))},x$1.prototype.render=_,r$1=[],f$1=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$$1.__r=0,e$1=0;var r,u,i,f=[],c=[],e=l$1.__b,a=l$1.__r,v=l$1.diffed,l=l$1.__c,m=l$1.unmount;function b(){for(var ln;ln=f.shift();)if(ln.__P&&ln.__H)try{ln.__H.__h.forEach(k),ln.__H.__h.forEach(w$1),ln.__H.__h=[]}catch(rn){ln.__H.__h=[],l$1.__e(rn,ln.__v)}}l$1.__b=function(ln){r=null,e&&e(ln)},l$1.__r=function(ln){a&&a(ln);var rn=(r=ln.__c).__H;rn&&(u===r?(rn.__h=[],r.__h=[],rn.__.forEach(function(an){an.__N&&(an.__=an.__N),an.__V=c,an.__N=an.i=void 0})):(rn.__h.forEach(k),rn.__h.forEach(w$1),rn.__h=[])),u=r},l$1.diffed=function(ln){v&&v(ln);var rn=ln.__c;rn&&rn.__H&&(rn.__H.__h.length&&(f.push(rn)!==1&&i===l$1.requestAnimationFrame||((i=l$1.requestAnimationFrame)||j$2)(b)),rn.__H.__.forEach(function(an){an.i&&(an.__H=an.i),an.__V!==c&&(an.__=an.__V),an.i=void 0,an.__V=c})),u=r=null},l$1.__c=function(ln,rn){rn.some(function(an){try{an.__h.forEach(k),an.__h=an.__h.filter(function(sn){return!sn.__||w$1(sn)})}catch(sn){rn.some(function(on){on.__h&&(on.__h=[])}),rn=[],l$1.__e(sn,an.__v)}}),l&&l(ln,rn)},l$1.unmount=function(ln){m&&m(ln);var rn,an=ln.__c;an&&an.__H&&(an.__H.__.forEach(function(sn){try{k(sn)}catch(on){rn=on}}),an.__H=void 0,rn&&l$1.__e(rn,an.__v))};var g$1=typeof requestAnimationFrame=="function";function j$2(ln){var rn,an=function(){clearTimeout(sn),g$1&&cancelAnimationFrame(rn),setTimeout(ln)},sn=setTimeout(an,100);g$1&&(rn=requestAnimationFrame(an))}function k(ln){var rn=r,an=ln.__c;typeof an=="function"&&(ln.__c=void 0,an()),r=rn}function w$1(ln){var rn=r;ln.__c=ln.__(),r=rn}function g(ln,rn){for(var an in rn)ln[an]=rn[an];return ln}function C(ln,rn){for(var an in ln)if(an!=="__source"&&!(an in rn))return!0;for(var sn in rn)if(sn!=="__source"&&ln[sn]!==rn[sn])return!0;return!1}function w(ln){this.props=ln}(w.prototype=new x$1).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(ln,rn){return C(this.props,ln)||C(this.state,rn)};var x=l$1.__b;l$1.__b=function(ln){ln.type&&ln.type.__f&&ln.ref&&(ln.props.ref=ln.ref,ln.ref=null),x&&x(ln)};var T=l$1.__e;l$1.__e=function(ln,rn,an,sn){if(ln.then){for(var on,cn=rn;cn=cn.__;)if((on=cn.__c)&&on.__c)return rn.__e==null&&(rn.__e=an.__e,rn.__k=an.__k),on.__c(ln,rn)}T(ln,rn,an,sn)};var I=l$1.unmount;function L(ln,rn,an){return ln&&(ln.__c&&ln.__c.__H&&(ln.__c.__H.__.forEach(function(sn){typeof sn.__c=="function"&&sn.__c()}),ln.__c.__H=null),(ln=g({},ln)).__c!=null&&(ln.__c.__P===an&&(ln.__c.__P=rn),ln.__c=null),ln.__k=ln.__k&&ln.__k.map(function(sn){return L(sn,rn,an)})),ln}function U(ln,rn,an){return ln&&(ln.__v=null,ln.__k=ln.__k&&ln.__k.map(function(sn){return U(sn,rn,an)}),ln.__c&&ln.__c.__P===rn&&(ln.__e&&an.insertBefore(ln.__e,ln.__d),ln.__c.__e=!0,ln.__c.__P=an)),ln}function D(){this.__u=0,this.t=null,this.__b=null}function F(ln){var rn=ln.__.__c;return rn&&rn.__a&&rn.__a(ln)}function V(){this.u=null,this.o=null}l$1.unmount=function(ln){var rn=ln.__c;rn&&rn.__R&&rn.__R(),rn&&ln.__h===!0&&(ln.type=null),I&&I(ln)},(D.prototype=new x$1).__c=function(ln,rn){var an=rn.__c,sn=this;sn.t==null&&(sn.t=[]),sn.t.push(an);var on=F(sn.__v),cn=!1,un=function(){cn||(cn=!0,an.__R=null,on?on(pn):pn())};an.__R=un;var pn=function(){if(!--sn.__u){if(sn.state.__a){var mn=sn.state.__a;sn.__v.__k[0]=U(mn,mn.__c.__P,mn.__c.__O)}var xn;for(sn.setState({__a:sn.__b=null});xn=sn.t.pop();)xn.forceUpdate()}},fn=rn.__h===!0;sn.__u++||fn||sn.setState({__a:sn.__b=sn.__v.__k[0]}),ln.then(un,un)},D.prototype.componentWillUnmount=function(){this.t=[]},D.prototype.render=function(ln,rn){if(this.__b){if(this.__v.__k){var an=document.createElement("div"),sn=this.__v.__k[0].__c;this.__v.__k[0]=L(this.__b,an,sn.__O=sn.__P)}this.__b=null}var on=rn.__a&&y(_,null,ln.fallback);return on&&(on.__h=null),[y(_,null,rn.__a?null:ln.children),on]};var W=function(ln,rn,an){if(++an[1]===an[0]&&ln.o.delete(rn),ln.props.revealOrder&&(ln.props.revealOrder[0]!=="t"||!ln.o.size))for(an=ln.u;an;){for(;an.length>3;)an.pop()();if(an[1]<an[0])break;ln.u=an=an[2]}};function P(ln){return this.getChildContext=function(){return ln.context},ln.children}function $(ln){var rn=this,an=ln.i;rn.componentWillUnmount=function(){D$1(null,rn.l),rn.l=null,rn.i=null},rn.i&&rn.i!==an&&rn.componentWillUnmount(),ln.__v?(rn.l||(rn.i=an,rn.l={nodeType:1,parentNode:an,childNodes:[],appendChild:function(sn){this.childNodes.push(sn),rn.i.appendChild(sn)},insertBefore:function(sn,on){this.childNodes.push(sn),rn.i.appendChild(sn)},removeChild:function(sn){this.childNodes.splice(this.childNodes.indexOf(sn)>>>1,1),rn.i.removeChild(sn)}}),D$1(y(P,{context:rn.context},ln.__v),rn.l)):rn.l&&rn.componentWillUnmount()}function j$1(ln,rn){var an=y($,{__v:ln,i:rn});return an.containerInfo=rn,an}(V.prototype=new x$1).__a=function(ln){var rn=this,an=F(rn.__v),sn=rn.o.get(ln);return sn[0]++,function(on){var cn=function(){rn.props.revealOrder?(sn.push(on),W(rn,ln,sn)):on()};an?an(cn):cn()}},V.prototype.render=function(ln){this.u=null,this.o=new Map;var rn=j$3(ln.children);ln.revealOrder&&ln.revealOrder[0]==="b"&&rn.reverse();for(var an=rn.length;an--;)this.o.set(rn[an],this.u=[1,0,this.u]);return ln.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var ln=this;this.o.forEach(function(rn,an){W(ln,an,rn)})};var z=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,B=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,H=typeof document<"u",Z=function(ln){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(ln)};x$1.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(ln){Object.defineProperty(x$1.prototype,ln,{configurable:!0,get:function(){return this["UNSAFE_"+ln]},set:function(rn){Object.defineProperty(this,ln,{configurable:!0,writable:!0,value:rn})}})});var G=l$1.event;function J(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}l$1.event=function(ln){return G&&(ln=G(ln)),ln.persist=J,ln.isPropagationStopped=K,ln.isDefaultPrevented=Q,ln.nativeEvent=ln};var nn={configurable:!0,get:function(){return this.class}},tn=l$1.vnode;l$1.vnode=function(ln){var rn=ln.type,an=ln.props,sn=an;if(typeof rn=="string"){var on=rn.indexOf("-")===-1;for(var cn in sn={},an){var un=an[cn];H&&cn==="children"&&rn==="noscript"||cn==="value"&&"defaultValue"in an&&un==null||(cn==="defaultValue"&&"value"in an&&an.value==null?cn="value":cn==="download"&&un===!0?un="":/ondoubleclick/i.test(cn)?cn="ondblclick":/^onchange(textarea|input)/i.test(cn+rn)&&!Z(an.type)?cn="oninput":/^onfocus$/i.test(cn)?cn="onfocusin":/^onblur$/i.test(cn)?cn="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(cn)?cn=cn.toLowerCase():on&&B.test(cn)?cn=cn.replace(/[A-Z0-9]/g,"-$&").toLowerCase():un===null&&(un=void 0),/^oninput$/i.test(cn)&&(cn=cn.toLowerCase(),sn[cn]&&(cn="oninputCapture")),sn[cn]=un)}rn=="select"&&sn.multiple&&Array.isArray(sn.value)&&(sn.value=j$3(an.children).forEach(function(pn){pn.props.selected=sn.value.indexOf(pn.props.value)!=-1})),rn=="select"&&sn.defaultValue!=null&&(sn.value=j$3(an.children).forEach(function(pn){pn.props.selected=sn.multiple?sn.defaultValue.indexOf(pn.props.value)!=-1:sn.defaultValue==pn.props.value})),ln.props=sn,an.class!=an.className&&(nn.enumerable="className"in an,an.className!=null&&(sn.class=an.className),Object.defineProperty(sn,"className",nn))}ln.$$typeof=z,tn&&tn(ln)};var en=l$1.__r;l$1.__r=function(ln){en&&en(ln),ln.__c};const styleTexts=[],styleEls=new Map;function injectStyles(ln){styleTexts.push(ln),styleEls.forEach(rn=>{appendStylesTo(rn,ln)})}function ensureElHasStyles(ln){ln.isConnected&&ln.getRootNode&&registerStylesRoot(ln.getRootNode())}function registerStylesRoot(ln){let rn=styleEls.get(ln);if(!rn||!rn.isConnected){if(rn=ln.querySelector("style[data-fullcalendar]"),!rn){rn=document.createElement("style"),rn.setAttribute("data-fullcalendar","");const an=getNonceValue();an&&(rn.nonce=an);const sn=ln===document?document.head:ln,on=ln===document?sn.querySelector("script,link[rel=stylesheet],link[as=style],style"):sn.firstChild;sn.insertBefore(rn,on)}styleEls.set(ln,rn),hydrateStylesRoot(rn)}}function hydrateStylesRoot(ln){for(const rn of styleTexts)appendStylesTo(ln,rn)}function appendStylesTo(ln,rn){const{sheet:an}=ln,sn=an.cssRules.length;rn.split("}").forEach((on,cn)=>{on=on.trim(),on&&an.insertRule(on+"}",sn+cn)})}let queriedNonceValue;function getNonceValue(){return queriedNonceValue===void 0&&(queriedNonceValue=queryNonceValue()),queriedNonceValue}function queryNonceValue(){const ln=document.querySelector('meta[name="csp-nonce"]');if(ln&&ln.hasAttribute("content"))return ln.getAttribute("content");const rn=document.querySelector("script[nonce]");return rn&&rn.nonce||""}typeof document<"u"&&registerStylesRoot(document);var css_248z$2=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';injectStyles(css_248z$2);class DelayedRunner{constructor(rn){this.drainedOption=rn,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(rn){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),rn==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),rn))}pause(rn=""){let{pauseDepths:an}=this;an[rn]=(an[rn]||0)+1,this.clearTimeout()}resume(rn="",an){let{pauseDepths:sn}=this;rn in sn&&(an?delete sn[rn]:(sn[rn]-=1,sn[rn]<=0&&delete sn[rn]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function removeElement(ln){ln.parentNode&&ln.parentNode.removeChild(ln)}function elementClosest(ln,rn){if(ln.closest)return ln.closest(rn);if(!document.documentElement.contains(ln))return null;do{if(elementMatches(ln,rn))return ln;ln=ln.parentElement||ln.parentNode}while(ln!==null&&ln.nodeType===1);return null}function elementMatches(ln,rn){return(ln.matches||ln.matchesSelector||ln.msMatchesSelector).call(ln,rn)}function findElements(ln,rn){let an=ln instanceof HTMLElement?[ln]:ln,sn=[];for(let on=0;on<an.length;on+=1){let cn=an[on].querySelectorAll(rn);for(let un=0;un<cn.length;un+=1)sn.push(cn[un])}return sn}const PIXEL_PROP_RE=/(top|left|right|bottom|width|height)$/i;function applyStyle(ln,rn){for(let an in rn)applyStyleProp(ln,an,rn[an])}function applyStyleProp(ln,rn,an){an==null?ln.style[rn]="":typeof an=="number"&&PIXEL_PROP_RE.test(rn)?ln.style[rn]=`${an}px`:ln.style[rn]=an}function getEventTargetViaRoot(ln){var rn,an;return(an=(rn=ln.composedPath)===null||rn===void 0?void 0:rn.call(ln)[0])!==null&&an!==void 0?an:ln.target}let guid$1=0;function getUniqueDomId(){return guid$1+=1,"fc-dom-"+guid$1}function preventDefault(ln){ln.preventDefault()}function buildDelegationHandler(ln,rn){return an=>{let sn=elementClosest(an.target,ln);sn&&rn.call(sn,an,sn)}}function listenBySelector(ln,rn,an,sn){let on=buildDelegationHandler(an,sn);return ln.addEventListener(rn,on),()=>{ln.removeEventListener(rn,on)}}function listenToHoverBySelector(ln,rn,an,sn){let on;return listenBySelector(ln,"mouseover",rn,(cn,un)=>{if(un!==on){on=un,an(cn,un);let pn=fn=>{on=null,sn(fn,un),un.removeEventListener("mouseleave",pn)};un.addEventListener("mouseleave",pn)}})}const transitionEventNames=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function whenTransitionDone(ln,rn){let an=sn=>{rn(sn),transitionEventNames.forEach(on=>{ln.removeEventListener(on,an)})};transitionEventNames.forEach(sn=>{ln.addEventListener(sn,an)})}function createAriaClickAttrs(ln){return Object.assign({onClick:ln},createAriaKeyboardAttrs(ln))}function createAriaKeyboardAttrs(ln){return{tabIndex:0,onKeyDown(rn){(rn.key==="Enter"||rn.key===" ")&&(ln(rn),rn.preventDefault())}}}let guidNumber=0;function guid(){return guidNumber+=1,String(guidNumber)}function disableCursor(){document.body.classList.add("fc-not-allowed")}function enableCursor(){document.body.classList.remove("fc-not-allowed")}function preventSelection(ln){ln.style.userSelect="none",ln.style.webkitUserSelect="none",ln.addEventListener("selectstart",preventDefault)}function allowSelection(ln){ln.style.userSelect="",ln.style.webkitUserSelect="",ln.removeEventListener("selectstart",preventDefault)}function preventContextMenu(ln){ln.addEventListener("contextmenu",preventDefault)}function allowContextMenu(ln){ln.removeEventListener("contextmenu",preventDefault)}function parseFieldSpecs(ln){let rn=[],an=[],sn,on;for(typeof ln=="string"?an=ln.split(/\s*,\s*/):typeof ln=="function"?an=[ln]:Array.isArray(ln)&&(an=ln),sn=0;sn<an.length;sn+=1)on=an[sn],typeof on=="string"?rn.push(on.charAt(0)==="-"?{field:on.substring(1),order:-1}:{field:on,order:1}):typeof on=="function"&&rn.push({func:on});return rn}function compareByFieldSpecs(ln,rn,an){let sn,on;for(sn=0;sn<an.length;sn+=1)if(on=compareByFieldSpec(ln,rn,an[sn]),on)return on;return 0}function compareByFieldSpec(ln,rn,an){return an.func?an.func(ln,rn):flexibleCompare(ln[an.field],rn[an.field])*(an.order||1)}function flexibleCompare(ln,rn){return!ln&&!rn?0:rn==null?-1:ln==null?1:typeof ln=="string"||typeof rn=="string"?String(ln).localeCompare(String(rn)):ln-rn}function padStart(ln,rn){let an=String(ln);return"000".substr(0,rn-an.length)+an}function formatWithOrdinals(ln,rn,an){return typeof ln=="function"?ln(...rn):typeof ln=="string"?rn.reduce((sn,on,cn)=>sn.replace("$"+cn,on||""),ln):an}function compareNumbers(ln,rn){return ln-rn}function isInt(ln){return ln%1===0}function computeSmallestCellWidth(ln){let rn=ln.querySelector(".fc-scrollgrid-shrink-frame"),an=ln.querySelector(".fc-scrollgrid-shrink-cushion");if(!rn)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!an)throw new Error("needs fc-scrollgrid-shrink-cushion className");return ln.getBoundingClientRect().width-rn.getBoundingClientRect().width+an.getBoundingClientRect().width}const INTERNAL_UNITS=["years","months","days","milliseconds"],PARSE_RE=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function createDuration(ln,rn){return typeof ln=="string"?parseString(ln):typeof ln=="object"&&ln?parseObject(ln):typeof ln=="number"?parseObject({[rn||"milliseconds"]:ln}):null}function parseString(ln){let rn=PARSE_RE.exec(ln);if(rn){let an=rn[1]?-1:1;return{years:0,months:0,days:an*(rn[2]?parseInt(rn[2],10):0),milliseconds:an*((rn[3]?parseInt(rn[3],10):0)*60*60*1e3+(rn[4]?parseInt(rn[4],10):0)*60*1e3+(rn[5]?parseInt(rn[5],10):0)*1e3+(rn[6]?parseInt(rn[6],10):0))}}return null}function parseObject(ln){let rn={years:ln.years||ln.year||0,months:ln.months||ln.month||0,days:ln.days||ln.day||0,milliseconds:(ln.hours||ln.hour||0)*60*60*1e3+(ln.minutes||ln.minute||0)*60*1e3+(ln.seconds||ln.second||0)*1e3+(ln.milliseconds||ln.millisecond||ln.ms||0)},an=ln.weeks||ln.week;return an&&(rn.days+=an*7,rn.specifiedWeeks=!0),rn}function durationsEqual(ln,rn){return ln.years===rn.years&&ln.months===rn.months&&ln.days===rn.days&&ln.milliseconds===rn.milliseconds}function addDurations(ln,rn){return{years:ln.years+rn.years,months:ln.months+rn.months,days:ln.days+rn.days,milliseconds:ln.milliseconds+rn.milliseconds}}function subtractDurations(ln,rn){return{years:ln.years-rn.years,months:ln.months-rn.months,days:ln.days-rn.days,milliseconds:ln.milliseconds-rn.milliseconds}}function multiplyDuration(ln,rn){return{years:ln.years*rn,months:ln.months*rn,days:ln.days*rn,milliseconds:ln.milliseconds*rn}}function asRoughYears(ln){return asRoughDays(ln)/365}function asRoughMonths(ln){return asRoughDays(ln)/30}function asRoughDays(ln){return asRoughMs(ln)/864e5}function asRoughMs(ln){return ln.years*(365*864e5)+ln.months*(30*864e5)+ln.days*864e5+ln.milliseconds}function wholeDivideDurations(ln,rn){let an=null;for(let sn=0;sn<INTERNAL_UNITS.length;sn+=1){let on=INTERNAL_UNITS[sn];if(rn[on]){let cn=ln[on]/rn[on];if(!isInt(cn)||an!==null&&an!==cn)return null;an=cn}else if(ln[on])return null}return an}function greatestDurationDenominator(ln){let rn=ln.milliseconds;if(rn){if(rn%1e3!==0)return{unit:"millisecond",value:rn};if(rn%(1e3*60)!==0)return{unit:"second",value:rn/1e3};if(rn%(1e3*60*60)!==0)return{unit:"minute",value:rn/(1e3*60)};if(rn)return{unit:"hour",value:rn/(1e3*60*60)}}return ln.days?ln.specifiedWeeks&&ln.days%7===0?{unit:"week",value:ln.days/7}:{unit:"day",value:ln.days}:ln.months?{unit:"month",value:ln.months}:ln.years?{unit:"year",value:ln.years}:{unit:"millisecond",value:0}}function isArraysEqual(ln,rn,an){if(ln===rn)return!0;let sn=ln.length,on;if(sn!==rn.length)return!1;for(on=0;on<sn;on+=1)if(!(an?an(ln[on],rn[on]):ln[on]===rn[on]))return!1;return!0}const DAY_IDS=["sun","mon","tue","wed","thu","fri","sat"];function addWeeks(ln,rn){let an=dateToUtcArray(ln);return an[2]+=rn*7,arrayToUtcDate(an)}function addDays(ln,rn){let an=dateToUtcArray(ln);return an[2]+=rn,arrayToUtcDate(an)}function addMs(ln,rn){let an=dateToUtcArray(ln);return an[6]+=rn,arrayToUtcDate(an)}function diffWeeks(ln,rn){return diffDays(ln,rn)/7}function diffDays(ln,rn){return(rn.valueOf()-ln.valueOf())/(1e3*60*60*24)}function diffHours(ln,rn){return(rn.valueOf()-ln.valueOf())/(1e3*60*60)}function diffMinutes(ln,rn){return(rn.valueOf()-ln.valueOf())/(1e3*60)}function diffSeconds(ln,rn){return(rn.valueOf()-ln.valueOf())/1e3}function diffDayAndTime(ln,rn){let an=startOfDay(ln),sn=startOfDay(rn);return{years:0,months:0,days:Math.round(diffDays(an,sn)),milliseconds:rn.valueOf()-sn.valueOf()-(ln.valueOf()-an.valueOf())}}function diffWholeWeeks(ln,rn){let an=diffWholeDays(ln,rn);return an!==null&&an%7===0?an/7:null}function diffWholeDays(ln,rn){return timeAsMs(ln)===timeAsMs(rn)?Math.round(diffDays(ln,rn)):null}function startOfDay(ln){return arrayToUtcDate([ln.getUTCFullYear(),ln.getUTCMonth(),ln.getUTCDate()])}function startOfHour(ln){return arrayToUtcDate([ln.getUTCFullYear(),ln.getUTCMonth(),ln.getUTCDate(),ln.getUTCHours()])}function startOfMinute(ln){return arrayToUtcDate([ln.getUTCFullYear(),ln.getUTCMonth(),ln.getUTCDate(),ln.getUTCHours(),ln.getUTCMinutes()])}function startOfSecond(ln){return arrayToUtcDate([ln.getUTCFullYear(),ln.getUTCMonth(),ln.getUTCDate(),ln.getUTCHours(),ln.getUTCMinutes(),ln.getUTCSeconds()])}function weekOfYear(ln,rn,an){let sn=ln.getUTCFullYear(),on=weekOfGivenYear(ln,sn,rn,an);if(on<1)return weekOfGivenYear(ln,sn-1,rn,an);let cn=weekOfGivenYear(ln,sn+1,rn,an);return cn>=1?Math.min(on,cn):on}function weekOfGivenYear(ln,rn,an,sn){let on=arrayToUtcDate([rn,0,1+firstWeekOffset(rn,an,sn)]),cn=startOfDay(ln),un=Math.round(diffDays(on,cn));return Math.floor(un/7)+1}function firstWeekOffset(ln,rn,an){let sn=7+rn-an;return-((7+arrayToUtcDate([ln,0,sn]).getUTCDay()-rn)%7)+sn-1}function dateToLocalArray(ln){return[ln.getFullYear(),ln.getMonth(),ln.getDate(),ln.getHours(),ln.getMinutes(),ln.getSeconds(),ln.getMilliseconds()]}function arrayToLocalDate(ln){return new Date(ln[0],ln[1]||0,ln[2]==null?1:ln[2],ln[3]||0,ln[4]||0,ln[5]||0)}function dateToUtcArray(ln){return[ln.getUTCFullYear(),ln.getUTCMonth(),ln.getUTCDate(),ln.getUTCHours(),ln.getUTCMinutes(),ln.getUTCSeconds(),ln.getUTCMilliseconds()]}function arrayToUtcDate(ln){return ln.length===1&&(ln=ln.concat([0])),new Date(Date.UTC(...ln))}function isValidDate(ln){return!isNaN(ln.valueOf())}function timeAsMs(ln){return ln.getUTCHours()*1e3*60*60+ln.getUTCMinutes()*1e3*60+ln.getUTCSeconds()*1e3+ln.getUTCMilliseconds()}function buildIsoString(ln,rn,an=!1){let sn=ln.toISOString();return sn=sn.replace(".000",""),an&&(sn=sn.replace("T00:00:00Z","")),sn.length>10&&(rn==null?sn=sn.replace("Z",""):rn!==0&&(sn=sn.replace("Z",formatTimeZoneOffset(rn,!0)))),sn}function formatDayString(ln){return ln.toISOString().replace(/T.*$/,"")}function formatIsoMonthStr(ln){return ln.toISOString().match(/^\d{4}-\d{2}/)[0]}function formatIsoTimeString(ln){return padStart(ln.getUTCHours(),2)+":"+padStart(ln.getUTCMinutes(),2)+":"+padStart(ln.getUTCSeconds(),2)}function formatTimeZoneOffset(ln,rn=!1){let an=ln<0?"-":"+",sn=Math.abs(ln),on=Math.floor(sn/60),cn=Math.round(sn%60);return rn?`${an+padStart(on,2)}:${padStart(cn,2)}`:`GMT${an}${on}${cn?`:${padStart(cn,2)}`:""}`}function memoize(ln,rn,an){let sn,on;return function(...cn){if(!sn)on=ln.apply(this,cn);else if(!isArraysEqual(sn,cn)){let un=ln.apply(this,cn);(!rn||!rn(un,on))&&(on=un)}return sn=cn,on}}function memoizeObjArg(ln,rn,an){let sn,on;return cn=>(sn?isPropsEqual(sn,cn)||(on=ln.call(this,cn)):on=ln.call(this,cn),sn=cn,on)}const EXTENDED_SETTINGS_AND_SEVERITIES={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},STANDARD_DATE_PROP_SEVERITIES={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},MERIDIEM_RE=/\s*([ap])\.?m\.?/i,COMMA_RE=/,/g,MULTI_SPACE_RE=/\s+/g,LTR_RE=/\u200e/g,UTC_RE=/UTC|GMT/;class NativeFormatter{constructor(rn){let an={},sn={},on=0;for(let cn in rn)cn in EXTENDED_SETTINGS_AND_SEVERITIES?(sn[cn]=rn[cn],on=Math.max(EXTENDED_SETTINGS_AND_SEVERITIES[cn],on)):(an[cn]=rn[cn],cn in STANDARD_DATE_PROP_SEVERITIES&&(on=Math.max(STANDARD_DATE_PROP_SEVERITIES[cn],on)));this.standardDateProps=an,this.extendedSettings=sn,this.severity=on,this.buildFormattingFunc=memoize(buildFormattingFunc)}format(rn,an){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,an)(rn)}formatRange(rn,an,sn,on){let{standardDateProps:cn,extendedSettings:un}=this,pn=computeMarkerDiffSeverity(rn.marker,an.marker,sn.calendarSystem);if(!pn)return this.format(rn,sn);let fn=pn;fn>1&&(cn.year==="numeric"||cn.year==="2-digit")&&(cn.month==="numeric"||cn.month==="2-digit")&&(cn.day==="numeric"||cn.day==="2-digit")&&(fn=1);let mn=this.format(rn,sn),xn=this.format(an,sn);if(mn===xn)return mn;let vn=computePartialFormattingOptions(cn,fn),yn=buildFormattingFunc(vn,un,sn),wn=yn(rn),An=yn(an),Cn=findCommonInsertion(mn,wn,xn,An),kn=un.separator||on||sn.defaultSeparator||"";return Cn?Cn.before+wn+kn+An+Cn.after:mn+kn+xn}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function buildFormattingFunc(ln,rn,an){let sn=Object.keys(ln).length;return sn===1&&ln.timeZoneName==="short"?on=>formatTimeZoneOffset(on.timeZoneOffset):sn===0&&rn.week?on=>formatWeekNumber(an.computeWeekNumber(on.marker),an.weekText,an.weekTextLong,an.locale,rn.week):buildNativeFormattingFunc(ln,rn,an)}function buildNativeFormattingFunc(ln,rn,an){ln=Object.assign({},ln),rn=Object.assign({},rn),sanitizeSettings(ln,rn),ln.timeZone="UTC";let sn=new Intl.DateTimeFormat(an.locale.codes,ln),on;if(rn.omitZeroMinute){let cn=Object.assign({},ln);delete cn.minute,on=new Intl.DateTimeFormat(an.locale.codes,cn)}return cn=>{let{marker:un}=cn,pn;on&&!un.getUTCMinutes()?pn=on:pn=sn;let fn=pn.format(un);return postProcess(fn,cn,ln,rn,an)}}function sanitizeSettings(ln,rn){ln.timeZoneName&&(ln.hour||(ln.hour="2-digit"),ln.minute||(ln.minute="2-digit")),ln.timeZoneName==="long"&&(ln.timeZoneName="short"),rn.omitZeroMinute&&(ln.second||ln.millisecond)&&delete rn.omitZeroMinute}function postProcess(ln,rn,an,sn,on){return ln=ln.replace(LTR_RE,""),an.timeZoneName==="short"&&(ln=injectTzoStr(ln,on.timeZone==="UTC"||rn.timeZoneOffset==null?"UTC":formatTimeZoneOffset(rn.timeZoneOffset))),sn.omitCommas&&(ln=ln.replace(COMMA_RE,"").trim()),sn.omitZeroMinute&&(ln=ln.replace(":00","")),sn.meridiem===!1?ln=ln.replace(MERIDIEM_RE,"").trim():sn.meridiem==="narrow"?ln=ln.replace(MERIDIEM_RE,(cn,un)=>un.toLocaleLowerCase()):sn.meridiem==="short"?ln=ln.replace(MERIDIEM_RE,(cn,un)=>`${un.toLocaleLowerCase()}m`):sn.meridiem==="lowercase"&&(ln=ln.replace(MERIDIEM_RE,cn=>cn.toLocaleLowerCase())),ln=ln.replace(MULTI_SPACE_RE," "),ln=ln.trim(),ln}function injectTzoStr(ln,rn){let an=!1;return ln=ln.replace(UTC_RE,()=>(an=!0,rn)),an||(ln+=` ${rn}`),ln}function formatWeekNumber(ln,rn,an,sn,on){let cn=[];return on==="long"?cn.push(an):(on==="short"||on==="narrow")&&cn.push(rn),(on==="long"||on==="short")&&cn.push(" "),cn.push(sn.simpleNumberFormat.format(ln)),sn.options.direction==="rtl"&&cn.reverse(),cn.join("")}function computeMarkerDiffSeverity(ln,rn,an){return an.getMarkerYear(ln)!==an.getMarkerYear(rn)?5:an.getMarkerMonth(ln)!==an.getMarkerMonth(rn)?4:an.getMarkerDay(ln)!==an.getMarkerDay(rn)?2:timeAsMs(ln)!==timeAsMs(rn)?1:0}function computePartialFormattingOptions(ln,rn){let an={};for(let sn in ln)(!(sn in STANDARD_DATE_PROP_SEVERITIES)||STANDARD_DATE_PROP_SEVERITIES[sn]<=rn)&&(an[sn]=ln[sn]);return an}function findCommonInsertion(ln,rn,an,sn){let on=0;for(;on<ln.length;){let cn=ln.indexOf(rn,on);if(cn===-1)break;let un=ln.substr(0,cn);on=cn+rn.length;let pn=ln.substr(on),fn=0;for(;fn<an.length;){let mn=an.indexOf(sn,fn);if(mn===-1)break;let xn=an.substr(0,mn);fn=mn+sn.length;let vn=an.substr(fn);if(un===xn&&pn===vn)return{before:un,after:pn}}}return null}function expandZonedMarker(ln,rn){let an=rn.markerToArray(ln.marker);return{marker:ln.marker,timeZoneOffset:ln.timeZoneOffset,array:an,year:an[0],month:an[1],day:an[2],hour:an[3],minute:an[4],second:an[5],millisecond:an[6]}}function createVerboseFormattingArg(ln,rn,an,sn){let on=expandZonedMarker(ln,an.calendarSystem),cn=rn?expandZonedMarker(rn,an.calendarSystem):null;return{date:on,start:on,end:cn,timeZone:an.timeZone,localeCodes:an.locale.codes,defaultSeparator:sn||an.defaultSeparator}}class CmdFormatter{constructor(rn){this.cmdStr=rn}format(rn,an,sn){return an.cmdFormatter(this.cmdStr,createVerboseFormattingArg(rn,null,an,sn))}formatRange(rn,an,sn,on){return sn.cmdFormatter(this.cmdStr,createVerboseFormattingArg(rn,an,sn,on))}}class FuncFormatter{constructor(rn){this.func=rn}format(rn,an,sn){return this.func(createVerboseFormattingArg(rn,null,an,sn))}formatRange(rn,an,sn,on){return this.func(createVerboseFormattingArg(rn,an,sn,on))}}function createFormatter(ln){return typeof ln=="object"&&ln?new NativeFormatter(ln):typeof ln=="string"?new CmdFormatter(ln):typeof ln=="function"?new FuncFormatter(ln):null}const BASE_OPTION_REFINERS={navLinkDayClick:identity,navLinkWeekClick:identity,duration:createDuration,bootstrapFontAwesome:identity,buttonIcons:identity,customButtons:identity,defaultAllDayEventDuration:createDuration,defaultTimedEventDuration:createDuration,nextDayThreshold:createDuration,scrollTime:createDuration,scrollTimeReset:Boolean,slotMinTime:createDuration,slotMaxTime:createDuration,dayPopoverFormat:createFormatter,slotDuration:createDuration,snapDuration:createDuration,headerToolbar:identity,footerToolbar:identity,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:createFormatter,dayHeaderClassNames:identity,dayHeaderContent:identity,dayHeaderDidMount:identity,dayHeaderWillUnmount:identity,dayCellClassNames:identity,dayCellContent:identity,dayCellDidMount:identity,dayCellWillUnmount:identity,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:identity,weekNumbers:Boolean,weekNumberClassNames:identity,weekNumberContent:identity,weekNumberDidMount:identity,weekNumberWillUnmount:identity,editable:Boolean,viewClassNames:identity,viewDidMount:identity,viewWillUnmount:identity,nowIndicator:Boolean,nowIndicatorClassNames:identity,nowIndicatorContent:identity,nowIndicatorDidMount:identity,nowIndicatorWillUnmount:identity,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:identity,locale:identity,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:identity,eventOrder:parseFieldSpecs,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:identity,contentHeight:identity,direction:String,weekNumberFormat:createFormatter,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:identity,initialDate:identity,now:identity,eventDataTransform:identity,stickyHeaderDates:identity,stickyFooterScrollbar:identity,viewHeight:identity,defaultAllDay:Boolean,eventSourceFailure:identity,eventSourceSuccess:identity,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:identity,eventConstraint:identity,eventAllow:identity,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:identity,eventContent:identity,eventDidMount:identity,eventWillUnmount:identity,selectConstraint:identity,selectOverlap:identity,selectAllow:identity,droppable:Boolean,unselectCancel:String,slotLabelFormat:identity,slotLaneClassNames:identity,slotLaneContent:identity,slotLaneDidMount:identity,slotLaneWillUnmount:identity,slotLabelClassNames:identity,slotLabelContent:identity,slotLabelDidMount:identity,slotLabelWillUnmount:identity,dayMaxEvents:identity,dayMaxEventRows:identity,dayMinWidth:Number,slotLabelInterval:createDuration,allDayText:String,allDayClassNames:identity,allDayContent:identity,allDayDidMount:identity,allDayWillUnmount:identity,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:createFormatter,rerenderDelay:Number,moreLinkText:identity,moreLinkHint:identity,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:identity,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:createDuration,hiddenDays:identity,fixedWeekCount:Boolean,validRange:identity,visibleRange:identity,titleFormat:identity,eventInteractive:Boolean,noEventsText:String,viewHint:identity,navLinkHint:identity,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:identity,moreLinkClassNames:identity,moreLinkContent:identity,moreLinkDidMount:identity,moreLinkWillUnmount:identity,monthStartFormat:createFormatter,handleCustomRendering:identity,customRenderingMetaMap:identity,customRenderingReplaces:Boolean},BASE_OPTION_DEFAULTS={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},CALENDAR_LISTENER_REFINERS={datesSet:identity,eventsSet:identity,eventAdd:identity,eventChange:identity,eventRemove:identity,windowResize:identity,eventClick:identity,eventMouseEnter:identity,eventMouseLeave:identity,select:identity,unselect:identity,loading:identity,_unmount:identity,_beforeprint:identity,_afterprint:identity,_noEventDrop:identity,_noEventResize:identity,_resize:identity,_scrollRequest:identity},CALENDAR_OPTION_REFINERS={buttonText:identity,buttonHints:identity,views:identity,plugins:identity,initialEvents:identity,events:identity,eventSources:identity},COMPLEX_OPTION_COMPARATORS={headerToolbar:isMaybeObjectsEqual,footerToolbar:isMaybeObjectsEqual,buttonText:isMaybeObjectsEqual,buttonHints:isMaybeObjectsEqual,buttonIcons:isMaybeObjectsEqual,dateIncrement:isMaybeObjectsEqual,plugins:isMaybeArraysEqual,events:isMaybeArraysEqual,eventSources:isMaybeArraysEqual,resources:isMaybeArraysEqual};function isMaybeObjectsEqual(ln,rn){return typeof ln=="object"&&typeof rn=="object"&&ln&&rn?isPropsEqual(ln,rn):ln===rn}function isMaybeArraysEqual(ln,rn){return Array.isArray(ln)&&Array.isArray(rn)?isArraysEqual(ln,rn):ln===rn}const VIEW_OPTION_REFINERS={type:String,component:identity,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:identity,usesMinMaxTime:Boolean,classNames:identity,content:identity,didMount:identity,willUnmount:identity};function mergeRawOptions(ln){return mergeProps(ln,COMPLEX_OPTION_COMPARATORS)}function refineProps(ln,rn){let an={},sn={};for(let on in rn)on in ln&&(an[on]=rn[on](ln[on]));for(let on in ln)on in rn||(sn[on]=ln[on]);return{refined:an,extra:sn}}function identity(ln){return ln}const{hasOwnProperty}=Object.prototype;function mergeProps(ln,rn){let an={};if(rn){for(let sn in rn)if(rn[sn]===isMaybeObjectsEqual){let on=[];for(let cn=ln.length-1;cn>=0;cn-=1){let un=ln[cn][sn];if(typeof un=="object"&&un)on.unshift(un);else if(un!==void 0){an[sn]=un;break}}on.length&&(an[sn]=mergeProps(on))}}for(let sn=ln.length-1;sn>=0;sn-=1){let on=ln[sn];for(let cn in on)cn in an||(an[cn]=on[cn])}return an}function filterHash(ln,rn){let an={};for(let sn in ln)rn(ln[sn],sn)&&(an[sn]=ln[sn]);return an}function mapHash(ln,rn){let an={};for(let sn in ln)an[sn]=rn(ln[sn],sn);return an}function arrayToHash(ln){let rn={};for(let an of ln)rn[an]=!0;return rn}function hashValuesToArray(ln){let rn=[];for(let an in ln)rn.push(ln[an]);return rn}function isPropsEqual(ln,rn){if(ln===rn)return!0;for(let an in ln)if(hasOwnProperty.call(ln,an)&&!(an in rn))return!1;for(let an in rn)if(hasOwnProperty.call(rn,an)&&ln[an]!==rn[an])return!1;return!0}const HANDLER_RE=/^on[A-Z]/;function isNonHandlerPropsEqual(ln,rn){const an=getUnequalProps(ln,rn);for(let sn of an)if(!HANDLER_RE.test(sn))return!1;return!0}function getUnequalProps(ln,rn){let an=[];for(let sn in ln)hasOwnProperty.call(ln,sn)&&(sn in rn||an.push(sn));for(let sn in rn)hasOwnProperty.call(rn,sn)&&ln[sn]!==rn[sn]&&an.push(sn);return an}function compareObjs(ln,rn,an={}){if(ln===rn)return!0;for(let sn in rn)if(!(sn in ln&&isObjValsEqual(ln[sn],rn[sn],an[sn])))return!1;for(let sn in ln)if(!(sn in rn))return!1;return!0}function isObjValsEqual(ln,rn,an){return ln===rn||an===!0?!0:an?an(ln,rn):!1}function collectFromHash(ln,rn=0,an,sn=1){let on=[];an==null&&(an=Object.keys(ln).length);for(let cn=rn;cn<an;cn+=sn){let un=ln[cn];un!==void 0&&on.push(un)}return on}let calendarSystemClassMap={};function registerCalendarSystem(ln,rn){calendarSystemClassMap[ln]=rn}function createCalendarSystem(ln){return new calendarSystemClassMap[ln]}class GregorianCalendarSystem{getMarkerYear(rn){return rn.getUTCFullYear()}getMarkerMonth(rn){return rn.getUTCMonth()}getMarkerDay(rn){return rn.getUTCDate()}arrayToMarker(rn){return arrayToUtcDate(rn)}markerToArray(rn){return dateToUtcArray(rn)}}registerCalendarSystem("gregory",GregorianCalendarSystem);const ISO_RE=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function parse(ln){let rn=ISO_RE.exec(ln);if(rn){let an=new Date(Date.UTC(Number(rn[1]),rn[3]?Number(rn[3])-1:0,Number(rn[5]||1),Number(rn[7]||0),Number(rn[8]||0),Number(rn[10]||0),rn[12]?+`0.${rn[12]}`*1e3:0));if(isValidDate(an)){let sn=null;return rn[13]&&(sn=(rn[15]==="-"?-1:1)*(Number(rn[16]||0)*60+Number(rn[18]||0))),{marker:an,isTimeUnspecified:!rn[6],timeZoneOffset:sn}}}return null}class DateEnv{constructor(rn){let an=this.timeZone=rn.timeZone,sn=an!=="local"&&an!=="UTC";rn.namedTimeZoneImpl&&sn&&(this.namedTimeZoneImpl=new rn.namedTimeZoneImpl(an)),this.canComputeOffset=!!(!sn||this.namedTimeZoneImpl),this.calendarSystem=createCalendarSystem(rn.calendarSystem),this.locale=rn.locale,this.weekDow=rn.locale.week.dow,this.weekDoy=rn.locale.week.doy,rn.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof rn.firstDay=="number"&&(this.weekDow=rn.firstDay),typeof rn.weekNumberCalculation=="function"&&(this.weekNumberFunc=rn.weekNumberCalculation),this.weekText=rn.weekText!=null?rn.weekText:rn.locale.options.weekText,this.weekTextLong=(rn.weekTextLong!=null?rn.weekTextLong:rn.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=rn.cmdFormatter,this.defaultSeparator=rn.defaultSeparator}createMarker(rn){let an=this.createMarkerMeta(rn);return an===null?null:an.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):arrayToUtcDate(dateToLocalArray(new Date))}createMarkerMeta(rn){if(typeof rn=="string")return this.parse(rn);let an=null;return typeof rn=="number"?an=this.timestampToMarker(rn):rn instanceof Date?(rn=rn.valueOf(),isNaN(rn)||(an=this.timestampToMarker(rn))):Array.isArray(rn)&&(an=arrayToUtcDate(rn)),an===null||!isValidDate(an)?null:{marker:an,isTimeUnspecified:!1,forcedTzo:null}}parse(rn){let an=parse(rn);if(an===null)return null;let{marker:sn}=an,on=null;return an.timeZoneOffset!==null&&(this.canComputeOffset?sn=this.timestampToMarker(sn.valueOf()-an.timeZoneOffset*60*1e3):on=an.timeZoneOffset),{marker:sn,isTimeUnspecified:an.isTimeUnspecified,forcedTzo:on}}getYear(rn){return this.calendarSystem.getMarkerYear(rn)}getMonth(rn){return this.calendarSystem.getMarkerMonth(rn)}getDay(rn){return this.calendarSystem.getMarkerDay(rn)}add(rn,an){let sn=this.calendarSystem.markerToArray(rn);return sn[0]+=an.years,sn[1]+=an.months,sn[2]+=an.days,sn[6]+=an.milliseconds,this.calendarSystem.arrayToMarker(sn)}subtract(rn,an){let sn=this.calendarSystem.markerToArray(rn);return sn[0]-=an.years,sn[1]-=an.months,sn[2]-=an.days,sn[6]-=an.milliseconds,this.calendarSystem.arrayToMarker(sn)}addYears(rn,an){let sn=this.calendarSystem.markerToArray(rn);return sn[0]+=an,this.calendarSystem.arrayToMarker(sn)}addMonths(rn,an){let sn=this.calendarSystem.markerToArray(rn);return sn[1]+=an,this.calendarSystem.arrayToMarker(sn)}diffWholeYears(rn,an){let{calendarSystem:sn}=this;return timeAsMs(rn)===timeAsMs(an)&&sn.getMarkerDay(rn)===sn.getMarkerDay(an)&&sn.getMarkerMonth(rn)===sn.getMarkerMonth(an)?sn.getMarkerYear(an)-sn.getMarkerYear(rn):null}diffWholeMonths(rn,an){let{calendarSystem:sn}=this;return timeAsMs(rn)===timeAsMs(an)&&sn.getMarkerDay(rn)===sn.getMarkerDay(an)?sn.getMarkerMonth(an)-sn.getMarkerMonth(rn)+(sn.getMarkerYear(an)-sn.getMarkerYear(rn))*12:null}greatestWholeUnit(rn,an){let sn=this.diffWholeYears(rn,an);return sn!==null?{unit:"year",value:sn}:(sn=this.diffWholeMonths(rn,an),sn!==null?{unit:"month",value:sn}:(sn=diffWholeWeeks(rn,an),sn!==null?{unit:"week",value:sn}:(sn=diffWholeDays(rn,an),sn!==null?{unit:"day",value:sn}:(sn=diffHours(rn,an),isInt(sn)?{unit:"hour",value:sn}:(sn=diffMinutes(rn,an),isInt(sn)?{unit:"minute",value:sn}:(sn=diffSeconds(rn,an),isInt(sn)?{unit:"second",value:sn}:{unit:"millisecond",value:an.valueOf()-rn.valueOf()}))))))}countDurationsBetween(rn,an,sn){let on;return sn.years&&(on=this.diffWholeYears(rn,an),on!==null)?on/asRoughYears(sn):sn.months&&(on=this.diffWholeMonths(rn,an),on!==null)?on/asRoughMonths(sn):sn.days&&(on=diffWholeDays(rn,an),on!==null)?on/asRoughDays(sn):(an.valueOf()-rn.valueOf())/asRoughMs(sn)}startOf(rn,an){return an==="year"?this.startOfYear(rn):an==="month"?this.startOfMonth(rn):an==="week"?this.startOfWeek(rn):an==="day"?startOfDay(rn):an==="hour"?startOfHour(rn):an==="minute"?startOfMinute(rn):an==="second"?startOfSecond(rn):null}startOfYear(rn){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(rn)])}startOfMonth(rn){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(rn),this.calendarSystem.getMarkerMonth(rn)])}startOfWeek(rn){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(rn),this.calendarSystem.getMarkerMonth(rn),rn.getUTCDate()-(rn.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(rn){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(rn)):weekOfYear(rn,this.weekDow,this.weekDoy)}format(rn,an,sn={}){return an.format({marker:rn,timeZoneOffset:sn.forcedTzo!=null?sn.forcedTzo:this.offsetForMarker(rn)},this)}formatRange(rn,an,sn,on={}){return on.isEndExclusive&&(an=addMs(an,-1)),sn.formatRange({marker:rn,timeZoneOffset:on.forcedStartTzo!=null?on.forcedStartTzo:this.offsetForMarker(rn)},{marker:an,timeZoneOffset:on.forcedEndTzo!=null?on.forcedEndTzo:this.offsetForMarker(an)},this,on.defaultSeparator)}formatIso(rn,an={}){let sn=null;return an.omitTimeZoneOffset||(an.forcedTzo!=null?sn=an.forcedTzo:sn=this.offsetForMarker(rn)),buildIsoString(rn,sn,an.omitTime)}timestampToMarker(rn){return this.timeZone==="local"?arrayToUtcDate(dateToLocalArray(new Date(rn))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(rn):arrayToUtcDate(this.namedTimeZoneImpl.timestampToArray(rn))}offsetForMarker(rn){return this.timeZone==="local"?-arrayToLocalDate(dateToUtcArray(rn)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(rn)):null}toDate(rn,an){return this.timeZone==="local"?arrayToLocalDate(dateToUtcArray(rn)):this.timeZone==="UTC"?new Date(rn.valueOf()):this.namedTimeZoneImpl?new Date(rn.valueOf()-this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(rn))*1e3*60):new Date(rn.valueOf()-(an||0))}}class Theme{constructor(rn){this.iconOverrideOption&&this.setIconOverride(rn[this.iconOverrideOption])}setIconOverride(rn){let an,sn;if(typeof rn=="object"&&rn){an=Object.assign({},this.iconClasses);for(sn in rn)an[sn]=this.applyIconOverridePrefix(rn[sn]);this.iconClasses=an}else rn===!1&&(this.iconClasses={})}applyIconOverridePrefix(rn){let an=this.iconOverridePrefix;return an&&rn.indexOf(an)!==0&&(rn=an+rn),rn}getClass(rn){return this.classes[rn]||""}getIconClass(rn,an){let sn;return an&&this.rtlIconClasses?sn=this.rtlIconClasses[rn]||this.iconClasses[rn]:sn=this.iconClasses[rn],sn?`${this.baseIconClass} ${sn}`:""}getCustomButtonIconClass(rn){let an;return this.iconOverrideCustomButtonOption&&(an=rn[this.iconOverrideCustomButtonOption],an)?`${this.baseIconClass} ${this.applyIconOverridePrefix(an)}`:""}}Theme.prototype.classes={};Theme.prototype.iconClasses={};Theme.prototype.baseIconClass="";Theme.prototype.iconOverridePrefix="";function flushSync(ln){ln();let rn=l$1.debounceRendering,an=[];function sn(on){an.push(on)}for(l$1.debounceRendering=sn,D$1(y(FakeComponent,{}),document.createElement("div"));an.length;)an.shift()();l$1.debounceRendering=rn}class FakeComponent extends x$1{render(){return y("div",{})}componentDidMount(){this.setState({})}}function createContext(ln){let rn=G$1(ln),an=rn.Provider;return rn.Provider=function(){let sn=!this.getChildContext,on=an.apply(this,arguments);if(sn){let cn=[];this.shouldComponentUpdate=un=>{this.props.value!==un.value&&cn.forEach(pn=>{pn.context=un.value,pn.forceUpdate()})},this.sub=un=>{cn.push(un);let pn=un.componentWillUnmount;un.componentWillUnmount=()=>{cn.splice(cn.indexOf(un),1),pn&&pn.call(un)}}}return on},rn}class ScrollResponder{constructor(rn,an,sn,on){this.execFunc=rn,this.emitter=an,this.scrollTime=sn,this.scrollTimeReset=on,this.handleScrollRequest=cn=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},cn),this.drain()},an.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(rn){rn&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const ViewContextType=createContext({});function buildViewContext(ln,rn,an,sn,on,cn,un,pn,fn,mn,xn,vn,yn){return{dateEnv:on,options:an,pluginHooks:un,emitter:mn,dispatch:pn,getCurrentData:fn,calendarApi:xn,viewSpec:ln,viewApi:rn,dateProfileGenerator:sn,theme:cn,isRtl:an.direction==="rtl",addResizeHandler(wn){mn.on("_resize",wn)},removeResizeHandler(wn){mn.off("_resize",wn)},createScrollResponder(wn){return new ScrollResponder(wn,mn,createDuration(an.scrollTime),an.scrollTimeReset)},registerInteractiveComponent:vn,unregisterInteractiveComponent:yn}}class PureComponent extends x$1{shouldComponentUpdate(rn,an){return this.debug&&console.log(getUnequalProps(rn,this.props),getUnequalProps(an,this.state)),!compareObjs(this.props,rn,this.propEquality)||!compareObjs(this.state,an,this.stateEquality)}safeSetState(rn){compareObjs(this.state,Object.assign(Object.assign({},this.state),rn),this.stateEquality)||this.setState(rn)}}PureComponent.addPropsEquality=addPropsEquality;PureComponent.addStateEquality=addStateEquality;PureComponent.contextType=ViewContextType;PureComponent.prototype.propEquality={};PureComponent.prototype.stateEquality={};class BaseComponent extends PureComponent{}BaseComponent.contextType=ViewContextType;function addPropsEquality(ln){let rn=Object.create(this.prototype.propEquality);Object.assign(rn,ln),this.prototype.propEquality=rn}function addStateEquality(ln){let rn=Object.create(this.prototype.stateEquality);Object.assign(rn,ln),this.prototype.stateEquality=rn}function setRef(ln,rn){typeof ln=="function"?ln(rn):ln&&(ln.current=rn)}class ContentInjector extends BaseComponent{constructor(){super(...arguments),this.id=guid(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=rn=>{const{options:an}=this.context,{generatorName:sn}=this.props;(!an.customRenderingReplaces||!hasCustomRenderingHandler(sn,an))&&this.updateElRef(rn)},this.updateElRef=rn=>{this.props.elRef&&setRef(this.props.elRef,rn)}}render(){const{props:rn,context:an}=this,{options:sn}=an,{customGenerator:on,defaultGenerator:cn,renderProps:un}=rn,pn=buildElAttrs(rn,[],this.handleEl);let fn=!1,mn,xn=[],vn;if(on!=null){const yn=typeof on=="function"?on(un,y):on;if(yn===!0)fn=!0;else{const wn=yn&&typeof yn=="object";wn&&"html"in yn?pn.dangerouslySetInnerHTML={__html:yn.html}:wn&&"domNodes"in yn?xn=Array.prototype.slice.call(yn.domNodes):(wn?i$1(yn):typeof yn!="function")?mn=yn:vn=yn}}else fn=!hasCustomRenderingHandler(rn.generatorName,sn);return fn&&cn&&(mn=cn(un)),this.queuedDomNodes=xn,this.currentGeneratorMeta=vn,y(rn.elTag,pn,mn)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(rn){var an;const{props:sn,context:on}=this,{handleCustomRendering:cn,customRenderingMetaMap:un}=on.options;if(cn){const pn=(an=this.currentGeneratorMeta)!==null&&an!==void 0?an:un==null?void 0:un[sn.generatorName];pn&&cn(Object.assign(Object.assign({id:this.id,isActive:rn,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:pn},sn),{elClasses:(sn.elClasses||[]).filter(isTruthy)}))}}applyQueueudDomNodes(){const{queuedDomNodes:rn,currentDomNodes:an}=this,sn=this.base;if(!isArraysEqual(rn,an)){an.forEach(removeElement);for(let on of rn)sn.appendChild(on);this.currentDomNodes=rn}}}ContentInjector.addPropsEquality({elClasses:isArraysEqual,elStyle:isPropsEqual,elAttrs:isNonHandlerPropsEqual,renderProps:isPropsEqual});function hasCustomRenderingHandler(ln,rn){var an;return!!(rn.handleCustomRendering&&ln&&(!((an=rn.customRenderingMetaMap)===null||an===void 0)&&an[ln]))}function buildElAttrs(ln,rn,an){const sn=Object.assign(Object.assign({},ln.elAttrs),{ref:an});return(ln.elClasses||rn)&&(sn.className=(ln.elClasses||[]).concat(rn||[]).concat(sn.className||[]).filter(Boolean).join(" ")),ln.elStyle&&(sn.style=ln.elStyle),sn}function isTruthy(ln){return!!ln}const RenderId=createContext(0);class ContentContainer extends x$1{constructor(){super(...arguments),this.InnerContent=InnerContentInjector.bind(void 0,this),this.handleEl=rn=>{this.el=rn,this.props.elRef&&(setRef(this.props.elRef,rn),rn&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:rn}=this,an=generateClassNames(rn.classNameGenerator,rn.renderProps);if(rn.children){const sn=buildElAttrs(rn,an,this.handleEl),on=rn.children(this.InnerContent,rn.renderProps,sn);return rn.elTag?y(rn.elTag,sn,on):on}else return y(ContentInjector,Object.assign(Object.assign({},rn),{elRef:this.handleEl,elTag:rn.elTag||"div",elClasses:(rn.elClasses||[]).concat(an),renderId:this.context}))}componentDidMount(){var rn,an;this.el?(an=(rn=this.props).didMount)===null||an===void 0||an.call(rn,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var rn,an;(an=(rn=this.props).willUnmount)===null||an===void 0||an.call(rn,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}ContentContainer.contextType=RenderId;function InnerContentInjector(ln,rn){const an=ln.props;return y(ContentInjector,Object.assign({renderProps:an.renderProps,generatorName:an.generatorName,customGenerator:an.customGenerator,defaultGenerator:an.defaultGenerator,renderId:ln.context},rn))}function generateClassNames(ln,rn){const an=typeof ln=="function"?ln(rn):ln||[];return typeof an=="string"?[an]:an}class ViewContainer extends BaseComponent{render(){let{props:rn,context:an}=this,{options:sn}=an,on={view:an.viewApi};return y(ContentContainer,Object.assign({},rn,{elTag:rn.elTag||"div",elClasses:[...buildViewClassNames(rn.viewSpec),...rn.elClasses||[]],renderProps:on,classNameGenerator:sn.viewClassNames,generatorName:void 0,didMount:sn.viewDidMount,willUnmount:sn.viewWillUnmount}),()=>rn.children)}}function buildViewClassNames(ln){return[`fc-${ln.type}-view`,"fc-view"]}function parseRange(ln,rn){let an=null,sn=null;return ln.start&&(an=rn.createMarker(ln.start)),ln.end&&(sn=rn.createMarker(ln.end)),!an&&!sn||an&&sn&&sn<an?null:{start:an,end:sn}}function invertRanges(ln,rn){let an=[],{start:sn}=rn,on,cn;for(ln.sort(compareRanges),on=0;on<ln.length;on+=1)cn=ln[on],cn.start>sn&&an.push({start:sn,end:cn.start}),cn.end>sn&&(sn=cn.end);return sn<rn.end&&an.push({start:sn,end:rn.end}),an}function compareRanges(ln,rn){return ln.start.valueOf()-rn.start.valueOf()}function intersectRanges(ln,rn){let{start:an,end:sn}=ln,on=null;return rn.start!==null&&(an===null?an=rn.start:an=new Date(Math.max(an.valueOf(),rn.start.valueOf()))),rn.end!=null&&(sn===null?sn=rn.end:sn=new Date(Math.min(sn.valueOf(),rn.end.valueOf()))),(an===null||sn===null||an<sn)&&(on={start:an,end:sn}),on}function rangesEqual(ln,rn){return(ln.start===null?null:ln.start.valueOf())===(rn.start===null?null:rn.start.valueOf())&&(ln.end===null?null:ln.end.valueOf())===(rn.end===null?null:rn.end.valueOf())}function rangesIntersect(ln,rn){return(ln.end===null||rn.start===null||ln.end>rn.start)&&(ln.start===null||rn.end===null||ln.start<rn.end)}function rangeContainsRange(ln,rn){return(ln.start===null||rn.start!==null&&rn.start>=ln.start)&&(ln.end===null||rn.end!==null&&rn.end<=ln.end)}function rangeContainsMarker(ln,rn){return(ln.start===null||rn>=ln.start)&&(ln.end===null||rn<ln.end)}function constrainMarkerToRange(ln,rn){return rn.start!=null&&ln<rn.start?rn.start:rn.end!=null&&ln>=rn.end?new Date(rn.end.valueOf()-1):ln}function computeAlignedDayRange(ln){let rn=Math.floor(diffDays(ln.start,ln.end))||1,an=startOfDay(ln.start),sn=addDays(an,rn);return{start:an,end:sn}}function computeVisibleDayRange(ln,rn=createDuration(0)){let an=null,sn=null;if(ln.end){sn=startOfDay(ln.end);let on=ln.end.valueOf()-sn.valueOf();on&&on>=asRoughMs(rn)&&(sn=addDays(sn,1))}return ln.start&&(an=startOfDay(ln.start),sn&&sn<=an&&(sn=addDays(an,1))),{start:an,end:sn}}function diffDates(ln,rn,an,sn){return sn==="year"?createDuration(an.diffWholeYears(ln,rn),"year"):sn==="month"?createDuration(an.diffWholeMonths(ln,rn),"month"):diffDayAndTime(ln,rn)}function reduceCurrentDate(ln,rn){switch(rn.type){case"CHANGE_DATE":return rn.dateMarker;default:return ln}}function getInitialDate(ln,rn){let an=ln.initialDate;return an!=null?rn.createMarker(an):getNow(ln.now,rn)}function getNow(ln,rn){return typeof ln=="function"&&(ln=ln()),ln==null?rn.createNowMarker():rn.createMarker(ln)}class DateProfileGenerator{constructor(rn){this.props=rn,this.nowDate=getNow(rn.nowInput,rn.dateEnv),this.initHiddenDays()}buildPrev(rn,an,sn){let{dateEnv:on}=this.props,cn=on.subtract(on.startOf(an,rn.currentRangeUnit),rn.dateIncrement);return this.build(cn,-1,sn)}buildNext(rn,an,sn){let{dateEnv:on}=this.props,cn=on.add(on.startOf(an,rn.currentRangeUnit),rn.dateIncrement);return this.build(cn,1,sn)}build(rn,an,sn=!0){let{props:on}=this,cn,un,pn,fn,mn,xn;return cn=this.buildValidRange(),cn=this.trimHiddenDays(cn),sn&&(rn=constrainMarkerToRange(rn,cn)),un=this.buildCurrentRangeInfo(rn,an),pn=/^(year|month|week|day)$/.test(un.unit),fn=this.buildRenderRange(this.trimHiddenDays(un.range),un.unit,pn),fn=this.trimHiddenDays(fn),mn=fn,on.showNonCurrentDates||(mn=intersectRanges(mn,un.range)),mn=this.adjustActiveRange(mn),mn=intersectRanges(mn,cn),xn=rangesIntersect(un.range,cn),rangeContainsMarker(fn,rn)||(rn=fn.start),{currentDate:rn,validRange:cn,currentRange:un.range,currentRangeUnit:un.unit,isRangeAllDay:pn,activeRange:mn,renderRange:fn,slotMinTime:on.slotMinTime,slotMaxTime:on.slotMaxTime,isValid:xn,dateIncrement:this.buildDateIncrement(un.duration)}}buildValidRange(){let rn=this.props.validRangeInput,an=typeof rn=="function"?rn.call(this.props.calendarApi,this.nowDate):rn;return this.refineRange(an)||{start:null,end:null}}buildCurrentRangeInfo(rn,an){let{props:sn}=this,on=null,cn=null,un=null,pn;return sn.duration?(on=sn.duration,cn=sn.durationUnit,un=this.buildRangeFromDuration(rn,an,on,cn)):(pn=this.props.dayCount)?(cn="day",un=this.buildRangeFromDayCount(rn,an,pn)):(un=this.buildCustomVisibleRange(rn))?cn=sn.dateEnv.greatestWholeUnit(un.start,un.end).unit:(on=this.getFallbackDuration(),cn=greatestDurationDenominator(on).unit,un=this.buildRangeFromDuration(rn,an,on,cn)),{duration:on,unit:cn,range:un}}getFallbackDuration(){return createDuration({day:1})}adjustActiveRange(rn){let{dateEnv:an,usesMinMaxTime:sn,slotMinTime:on,slotMaxTime:cn}=this.props,{start:un,end:pn}=rn;return sn&&(asRoughDays(on)<0&&(un=startOfDay(un),un=an.add(un,on)),asRoughDays(cn)>1&&(pn=startOfDay(pn),pn=addDays(pn,-1),pn=an.add(pn,cn))),{start:un,end:pn}}buildRangeFromDuration(rn,an,sn,on){let{dateEnv:cn,dateAlignment:un}=this.props,pn,fn,mn;if(!un){let{dateIncrement:vn}=this.props;vn&&asRoughMs(vn)<asRoughMs(sn)?un=greatestDurationDenominator(vn).unit:un=on}asRoughDays(sn)<=1&&this.isHiddenDay(pn)&&(pn=this.skipHiddenDays(pn,an),pn=startOfDay(pn));function xn(){pn=cn.startOf(rn,un),fn=cn.add(pn,sn),mn={start:pn,end:fn}}return xn(),this.trimHiddenDays(mn)||(rn=this.skipHiddenDays(rn,an),xn()),mn}buildRangeFromDayCount(rn,an,sn){let{dateEnv:on,dateAlignment:cn}=this.props,un=0,pn=rn,fn;cn&&(pn=on.startOf(pn,cn)),pn=startOfDay(pn),pn=this.skipHiddenDays(pn,an),fn=pn;do fn=addDays(fn,1),this.isHiddenDay(fn)||(un+=1);while(un<sn);return{start:pn,end:fn}}buildCustomVisibleRange(rn){let{props:an}=this,sn=an.visibleRangeInput,on=typeof sn=="function"?sn.call(an.calendarApi,an.dateEnv.toDate(rn)):sn,cn=this.refineRange(on);return cn&&(cn.start==null||cn.end==null)?null:cn}buildRenderRange(rn,an,sn){return rn}buildDateIncrement(rn){let{dateIncrement:an}=this.props,sn;return an||((sn=this.props.dateAlignment)?createDuration(1,sn):rn||createDuration({days:1}))}refineRange(rn){if(rn){let an=parseRange(rn,this.props.dateEnv);return an&&(an=computeVisibleDayRange(an)),an}return null}initHiddenDays(){let rn=this.props.hiddenDays||[],an=[],sn=0,on;for(this.props.weekends===!1&&rn.push(0,6),on=0;on<7;on+=1)(an[on]=rn.indexOf(on)!==-1)||(sn+=1);if(!sn)throw new Error("invalid hiddenDays");this.isHiddenDayHash=an}trimHiddenDays(rn){let{start:an,end:sn}=rn;return an&&(an=this.skipHiddenDays(an)),sn&&(sn=this.skipHiddenDays(sn,-1,!0)),an==null||sn==null||an<sn?{start:an,end:sn}:null}isHiddenDay(rn){return rn instanceof Date&&(rn=rn.getUTCDay()),this.isHiddenDayHash[rn]}skipHiddenDays(rn,an=1,sn=!1){for(;this.isHiddenDayHash[(rn.getUTCDay()+(sn?an:0)+7)%7];)rn=addDays(rn,an);return rn}}function createEventInstance(ln,rn,an,sn){return{instanceId:guid(),defId:ln,range:rn,forcedStartTzo:an??null,forcedEndTzo:sn??null}}function parseRecurring(ln,rn,an,sn){for(let on=0;on<sn.length;on+=1){let cn=sn[on].parse(ln,an);if(cn){let{allDay:un}=ln;return un==null&&(un=rn,un==null&&(un=cn.allDayGuess,un==null&&(un=!1))),{allDay:un,duration:cn.duration,typeData:cn.typeData,typeId:on}}}return null}function expandRecurring(ln,rn,an){let{dateEnv:sn,pluginHooks:on,options:cn}=an,{defs:un,instances:pn}=ln;pn=filterHash(pn,fn=>!un[fn.defId].recurringDef);for(let fn in un){let mn=un[fn];if(mn.recurringDef){let{duration:xn}=mn.recurringDef;xn||(xn=mn.allDay?cn.defaultAllDayEventDuration:cn.defaultTimedEventDuration);let vn=expandRecurringRanges(mn,xn,rn,sn,on.recurringTypes);for(let yn of vn){let wn=createEventInstance(fn,{start:yn,end:sn.add(yn,xn)});pn[wn.instanceId]=wn}}}return{defs:un,instances:pn}}function expandRecurringRanges(ln,rn,an,sn,on){let un=on[ln.recurringDef.typeId].expand(ln.recurringDef.typeData,{start:sn.subtract(an.start,rn),end:an.end},sn);return ln.allDay&&(un=un.map(startOfDay)),un}const EVENT_NON_DATE_REFINERS={id:String,groupId:String,title:String,url:String,interactive:Boolean},EVENT_DATE_REFINERS={start:identity,end:identity,date:identity,allDay:Boolean},EVENT_REFINERS=Object.assign(Object.assign(Object.assign({},EVENT_NON_DATE_REFINERS),EVENT_DATE_REFINERS),{extendedProps:identity});function parseEvent(ln,rn,an,sn,on=buildEventRefiners(an),cn,un){let{refined:pn,extra:fn}=refineEventDef(ln,an,on),mn=computeIsDefaultAllDay(rn,an),xn=parseRecurring(pn,mn,an.dateEnv,an.pluginHooks.recurringTypes);if(xn){let yn=parseEventDef(pn,fn,rn?rn.sourceId:"",xn.allDay,!!xn.duration,an,cn);return yn.recurringDef={typeId:xn.typeId,typeData:xn.typeData,duration:xn.duration},{def:yn,instance:null}}let vn=parseSingle(pn,mn,an,sn);if(vn){let yn=parseEventDef(pn,fn,rn?rn.sourceId:"",vn.allDay,vn.hasEnd,an,cn),wn=createEventInstance(yn.defId,vn.range,vn.forcedStartTzo,vn.forcedEndTzo);return un&&yn.publicId&&un[yn.publicId]&&(wn.instanceId=un[yn.publicId]),{def:yn,instance:wn}}return null}function refineEventDef(ln,rn,an=buildEventRefiners(rn)){return refineProps(ln,an)}function buildEventRefiners(ln){return Object.assign(Object.assign(Object.assign({},EVENT_UI_REFINERS),EVENT_REFINERS),ln.pluginHooks.eventRefiners)}function parseEventDef(ln,rn,an,sn,on,cn,un){let pn={title:ln.title||"",groupId:ln.groupId||"",publicId:ln.id||"",url:ln.url||"",recurringDef:null,defId:(un&&ln.id?un[ln.id]:"")||guid(),sourceId:an,allDay:sn,hasEnd:on,interactive:ln.interactive,ui:createEventUi(ln,cn),extendedProps:Object.assign(Object.assign({},ln.extendedProps||{}),rn)};for(let fn of cn.pluginHooks.eventDefMemberAdders)Object.assign(pn,fn(ln));return Object.freeze(pn.ui.classNames),Object.freeze(pn.extendedProps),pn}function parseSingle(ln,rn,an,sn){let{allDay:on}=ln,cn,un=null,pn=!1,fn,mn=null,xn=ln.start!=null?ln.start:ln.date;if(cn=an.dateEnv.createMarkerMeta(xn),cn)un=cn.marker;else if(!sn)return null;return ln.end!=null&&(fn=an.dateEnv.createMarkerMeta(ln.end)),on==null&&(rn!=null?on=rn:on=(!cn||cn.isTimeUnspecified)&&(!fn||fn.isTimeUnspecified)),on&&un&&(un=startOfDay(un)),fn&&(mn=fn.marker,on&&(mn=startOfDay(mn)),un&&mn<=un&&(mn=null)),mn?pn=!0:sn||(pn=an.options.forceEventDuration||!1,mn=an.dateEnv.add(un,on?an.options.defaultAllDayEventDuration:an.options.defaultTimedEventDuration)),{allDay:on,hasEnd:pn,range:{start:un,end:mn},forcedStartTzo:cn?cn.forcedTzo:null,forcedEndTzo:fn?fn.forcedTzo:null}}function computeIsDefaultAllDay(ln,rn){let an=null;return ln&&(an=ln.defaultAllDay),an==null&&(an=rn.options.defaultAllDay),an}function parseEvents(ln,rn,an,sn,on,cn){let un=createEmptyEventStore(),pn=buildEventRefiners(an);for(let fn of ln){let mn=parseEvent(fn,rn,an,sn,pn,on,cn);mn&&eventTupleToStore(mn,un)}return un}function eventTupleToStore(ln,rn=createEmptyEventStore()){return rn.defs[ln.def.defId]=ln.def,ln.instance&&(rn.instances[ln.instance.instanceId]=ln.instance),rn}function getRelevantEvents(ln,rn){let an=ln.instances[rn];if(an){let sn=ln.defs[an.defId],on=filterEventStoreDefs(ln,cn=>isEventDefsGrouped(sn,cn));return on.defs[sn.defId]=sn,on.instances[an.instanceId]=an,on}return createEmptyEventStore()}function isEventDefsGrouped(ln,rn){return!!(ln.groupId&&ln.groupId===rn.groupId)}function createEmptyEventStore(){return{defs:{},instances:{}}}function mergeEventStores(ln,rn){return{defs:Object.assign(Object.assign({},ln.defs),rn.defs),instances:Object.assign(Object.assign({},ln.instances),rn.instances)}}function filterEventStoreDefs(ln,rn){let an=filterHash(ln.defs,rn),sn=filterHash(ln.instances,on=>an[on.defId]);return{defs:an,instances:sn}}function excludeSubEventStore(ln,rn){let{defs:an,instances:sn}=ln,on={},cn={};for(let un in an)rn.defs[un]||(on[un]=an[un]);for(let un in sn)!rn.instances[un]&&on[sn[un].defId]&&(cn[un]=sn[un]);return{defs:on,instances:cn}}function normalizeConstraint(ln,rn){return Array.isArray(ln)?parseEvents(ln,null,rn,!0):typeof ln=="object"&&ln?parseEvents([ln],null,rn,!0):ln!=null?String(ln):null}function parseClassNames(ln){return Array.isArray(ln)?ln:typeof ln=="string"?ln.split(/\s+/):[]}const EVENT_UI_REFINERS={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:identity,overlap:identity,allow:identity,className:parseClassNames,classNames:parseClassNames,color:String,backgroundColor:String,borderColor:String,textColor:String},EMPTY_EVENT_UI={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function createEventUi(ln,rn){let an=normalizeConstraint(ln.constraint,rn);return{display:ln.display||null,startEditable:ln.startEditable!=null?ln.startEditable:ln.editable,durationEditable:ln.durationEditable!=null?ln.durationEditable:ln.editable,constraints:an!=null?[an]:[],overlap:ln.overlap!=null?ln.overlap:null,allows:ln.allow!=null?[ln.allow]:[],backgroundColor:ln.backgroundColor||ln.color||"",borderColor:ln.borderColor||ln.color||"",textColor:ln.textColor||"",classNames:(ln.className||[]).concat(ln.classNames||[])}}function combineEventUis(ln){return ln.reduce(combineTwoEventUis,EMPTY_EVENT_UI)}function combineTwoEventUis(ln,rn){return{display:rn.display!=null?rn.display:ln.display,startEditable:rn.startEditable!=null?rn.startEditable:ln.startEditable,durationEditable:rn.durationEditable!=null?rn.durationEditable:ln.durationEditable,constraints:ln.constraints.concat(rn.constraints),overlap:typeof rn.overlap=="boolean"?rn.overlap:ln.overlap,allows:ln.allows.concat(rn.allows),backgroundColor:rn.backgroundColor||ln.backgroundColor,borderColor:rn.borderColor||ln.borderColor,textColor:rn.textColor||ln.textColor,classNames:ln.classNames.concat(rn.classNames)}}const EVENT_SOURCE_REFINERS={id:String,defaultAllDay:Boolean,url:String,format:String,events:identity,eventDataTransform:identity,success:identity,failure:identity};function parseEventSource(ln,rn,an=buildEventSourceRefiners(rn)){let sn;if(typeof ln=="string"?sn={url:ln}:typeof ln=="function"||Array.isArray(ln)?sn={events:ln}:typeof ln=="object"&&ln&&(sn=ln),sn){let{refined:on,extra:cn}=refineProps(sn,an),un=buildEventSourceMeta(on,rn);if(un)return{_raw:ln,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:on.defaultAllDay,eventDataTransform:on.eventDataTransform,success:on.success,failure:on.failure,publicId:on.id||"",sourceId:guid(),sourceDefId:un.sourceDefId,meta:un.meta,ui:createEventUi(on,rn),extendedProps:cn}}return null}function buildEventSourceRefiners(ln){return Object.assign(Object.assign(Object.assign({},EVENT_UI_REFINERS),EVENT_SOURCE_REFINERS),ln.pluginHooks.eventSourceRefiners)}function buildEventSourceMeta(ln,rn){let an=rn.pluginHooks.eventSourceDefs;for(let sn=an.length-1;sn>=0;sn-=1){let cn=an[sn].parseMeta(ln);if(cn)return{sourceDefId:sn,meta:cn}}return null}function reduceEventStore(ln,rn,an,sn,on){switch(rn.type){case"RECEIVE_EVENTS":return receiveRawEvents(ln,an[rn.sourceId],rn.fetchId,rn.fetchRange,rn.rawEvents,on);case"RESET_RAW_EVENTS":return resetRawEvents(ln,an[rn.sourceId],rn.rawEvents,sn.activeRange,on);case"ADD_EVENTS":return addEvent(ln,rn.eventStore,sn?sn.activeRange:null,on);case"RESET_EVENTS":return rn.eventStore;case"MERGE_EVENTS":return mergeEventStores(ln,rn.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return sn?expandRecurring(ln,sn.activeRange,on):ln;case"REMOVE_EVENTS":return excludeSubEventStore(ln,rn.eventStore);case"REMOVE_EVENT_SOURCE":return excludeEventsBySourceId(ln,rn.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return filterEventStoreDefs(ln,cn=>!cn.sourceId);case"REMOVE_ALL_EVENTS":return createEmptyEventStore();default:return ln}}function receiveRawEvents(ln,rn,an,sn,on,cn){if(rn&&an===rn.latestFetchId){let un=parseEvents(transformRawEvents(on,rn,cn),rn,cn);return sn&&(un=expandRecurring(un,sn,cn)),mergeEventStores(excludeEventsBySourceId(ln,rn.sourceId),un)}return ln}function resetRawEvents(ln,rn,an,sn,on){const{defIdMap:cn,instanceIdMap:un}=buildPublicIdMaps(ln);let pn=parseEvents(transformRawEvents(an,rn,on),rn,on,!1,cn,un);return expandRecurring(pn,sn,on)}function transformRawEvents(ln,rn,an){let sn=an.options.eventDataTransform,on=rn?rn.eventDataTransform:null;return on&&(ln=transformEachRawEvent(ln,on)),sn&&(ln=transformEachRawEvent(ln,sn)),ln}function transformEachRawEvent(ln,rn){let an;if(!rn)an=ln;else{an=[];for(let sn of ln){let on=rn(sn);on?an.push(on):on==null&&an.push(sn)}}return an}function addEvent(ln,rn,an,sn){return an&&(rn=expandRecurring(rn,an,sn)),mergeEventStores(ln,rn)}function rezoneEventStoreDates(ln,rn,an){let{defs:sn}=ln,on=mapHash(ln.instances,cn=>sn[cn.defId].allDay?cn:Object.assign(Object.assign({},cn),{range:{start:an.createMarker(rn.toDate(cn.range.start,cn.forcedStartTzo)),end:an.createMarker(rn.toDate(cn.range.end,cn.forcedEndTzo))},forcedStartTzo:an.canComputeOffset?null:cn.forcedStartTzo,forcedEndTzo:an.canComputeOffset?null:cn.forcedEndTzo}));return{defs:sn,instances:on}}function excludeEventsBySourceId(ln,rn){return filterEventStoreDefs(ln,an=>an.sourceId!==rn)}function excludeInstances(ln,rn){return{defs:ln.defs,instances:filterHash(ln.instances,an=>!rn[an.instanceId])}}function buildPublicIdMaps(ln){const{defs:rn,instances:an}=ln,sn={},on={};for(let cn in rn){const un=rn[cn],{publicId:pn}=un;pn&&(sn[pn]=cn)}for(let cn in an){const un=an[cn],pn=rn[un.defId],{publicId:fn}=pn;fn&&(on[fn]=cn)}return{defIdMap:sn,instanceIdMap:on}}class Emitter{constructor(){this.handlers={},this.thisContext=null}setThisContext(rn){this.thisContext=rn}setOptions(rn){this.options=rn}on(rn,an){addToHash(this.handlers,rn,an)}off(rn,an){removeFromHash(this.handlers,rn,an)}trigger(rn,...an){let sn=this.handlers[rn]||[],on=this.options&&this.options[rn],cn=[].concat(on||[],sn);for(let un of cn)un.apply(this.thisContext,an)}hasHandlers(rn){return!!(this.handlers[rn]&&this.handlers[rn].length||this.options&&this.options[rn])}}function addToHash(ln,rn,an){(ln[rn]||(ln[rn]=[])).push(an)}function removeFromHash(ln,rn,an){an?ln[rn]&&(ln[rn]=ln[rn].filter(sn=>sn!==an)):delete ln[rn]}const DEF_DEFAULTS={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function parseBusinessHours(ln,rn){return parseEvents(refineInputs(ln),null,rn)}function refineInputs(ln){let rn;return ln===!0?rn=[{}]:Array.isArray(ln)?rn=ln.filter(an=>an.daysOfWeek):typeof ln=="object"&&ln?rn=[ln]:rn=[],rn=rn.map(an=>Object.assign(Object.assign({},DEF_DEFAULTS),an)),rn}function triggerDateSelect(ln,rn,an){an.emitter.trigger("select",Object.assign(Object.assign({},buildDateSpanApiWithContext(ln,an)),{jsEvent:rn?rn.origEvent:null,view:an.viewApi||an.calendarApi.view}))}function triggerDateUnselect(ln,rn){rn.emitter.trigger("unselect",{jsEvent:ln?ln.origEvent:null,view:rn.viewApi||rn.calendarApi.view})}function buildDateSpanApiWithContext(ln,rn){let an={};for(let sn of rn.pluginHooks.dateSpanTransforms)Object.assign(an,sn(ln,rn));return Object.assign(an,buildDateSpanApi(ln,rn.dateEnv)),an}function getDefaultEventEnd(ln,rn,an){let{dateEnv:sn,options:on}=an,cn=rn;return ln?(cn=startOfDay(cn),cn=sn.add(cn,on.defaultAllDayEventDuration)):cn=sn.add(cn,on.defaultTimedEventDuration),cn}function applyMutationToEventStore(ln,rn,an,sn){let on=compileEventUis(ln.defs,rn),cn=createEmptyEventStore();for(let un in ln.defs){let pn=ln.defs[un];cn.defs[un]=applyMutationToEventDef(pn,on[un],an,sn)}for(let un in ln.instances){let pn=ln.instances[un],fn=cn.defs[pn.defId];cn.instances[un]=applyMutationToEventInstance(pn,fn,on[pn.defId],an,sn)}return cn}function applyMutationToEventDef(ln,rn,an,sn){let on=an.standardProps||{};on.hasEnd==null&&rn.durationEditable&&(an.startDelta||an.endDelta)&&(on.hasEnd=!0);let cn=Object.assign(Object.assign(Object.assign({},ln),on),{ui:Object.assign(Object.assign({},ln.ui),on.ui)});an.extendedProps&&(cn.extendedProps=Object.assign(Object.assign({},cn.extendedProps),an.extendedProps));for(let un of sn.pluginHooks.eventDefMutationAppliers)un(cn,an,sn);return!cn.hasEnd&&sn.options.forceEventDuration&&(cn.hasEnd=!0),cn}function applyMutationToEventInstance(ln,rn,an,sn,on){let{dateEnv:cn}=on,un=sn.standardProps&&sn.standardProps.allDay===!0,pn=sn.standardProps&&sn.standardProps.hasEnd===!1,fn=Object.assign({},ln);return un&&(fn.range=computeAlignedDayRange(fn.range)),sn.datesDelta&&an.startEditable&&(fn.range={start:cn.add(fn.range.start,sn.datesDelta),end:cn.add(fn.range.end,sn.datesDelta)}),sn.startDelta&&an.durationEditable&&(fn.range={start:cn.add(fn.range.start,sn.startDelta),end:fn.range.end}),sn.endDelta&&an.durationEditable&&(fn.range={start:fn.range.start,end:cn.add(fn.range.end,sn.endDelta)}),pn&&(fn.range={start:fn.range.start,end:getDefaultEventEnd(rn.allDay,fn.range.start,on)}),rn.allDay&&(fn.range={start:startOfDay(fn.range.start),end:startOfDay(fn.range.end)}),fn.range.end<fn.range.start&&(fn.range.end=getDefaultEventEnd(rn.allDay,fn.range.start,on)),fn}class EventSourceImpl{constructor(rn,an){this.context=rn,this.internalEventSource=an}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class EventImpl{constructor(rn,an,sn){this._context=rn,this._def=an,this._instance=sn||null}setProp(rn,an){if(rn in EVENT_DATE_REFINERS)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(rn==="id")an=EVENT_NON_DATE_REFINERS[rn](an),this.mutate({standardProps:{publicId:an}});else if(rn in EVENT_NON_DATE_REFINERS)an=EVENT_NON_DATE_REFINERS[rn](an),this.mutate({standardProps:{[rn]:an}});else if(rn in EVENT_UI_REFINERS){let sn=EVENT_UI_REFINERS[rn](an);rn==="color"?sn={backgroundColor:an,borderColor:an}:rn==="editable"?sn={startEditable:an,durationEditable:an}:sn={[rn]:an},this.mutate({standardProps:{ui:sn}})}else console.warn(`Could not set prop '${rn}'. Use setExtendedProp instead.`)}setExtendedProp(rn,an){this.mutate({extendedProps:{[rn]:an}})}setStart(rn,an={}){let{dateEnv:sn}=this._context,on=sn.createMarker(rn);if(on&&this._instance){let cn=this._instance.range,un=diffDates(cn.start,on,sn,an.granularity);an.maintainDuration?this.mutate({datesDelta:un}):this.mutate({startDelta:un})}}setEnd(rn,an={}){let{dateEnv:sn}=this._context,on;if(!(rn!=null&&(on=sn.createMarker(rn),!on))&&this._instance)if(on){let cn=diffDates(this._instance.range.end,on,sn,an.granularity);this.mutate({endDelta:cn})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(rn,an,sn={}){let{dateEnv:on}=this._context,cn={allDay:sn.allDay},un=on.createMarker(rn),pn;if(un&&!(an!=null&&(pn=on.createMarker(an),!pn))&&this._instance){let fn=this._instance.range;sn.allDay===!0&&(fn=computeAlignedDayRange(fn));let mn=diffDates(fn.start,un,on,sn.granularity);if(pn){let xn=diffDates(fn.end,pn,on,sn.granularity);durationsEqual(mn,xn)?this.mutate({datesDelta:mn,standardProps:cn}):this.mutate({startDelta:mn,endDelta:xn,standardProps:cn})}else cn.hasEnd=!1,this.mutate({datesDelta:mn,standardProps:cn})}}moveStart(rn){let an=createDuration(rn);an&&this.mutate({startDelta:an})}moveEnd(rn){let an=createDuration(rn);an&&this.mutate({endDelta:an})}moveDates(rn){let an=createDuration(rn);an&&this.mutate({datesDelta:an})}setAllDay(rn,an={}){let sn={allDay:rn},{maintainDuration:on}=an;on==null&&(on=this._context.options.allDayMaintainDuration),this._def.allDay!==rn&&(sn.hasEnd=on),this.mutate({standardProps:sn})}formatRange(rn){let{dateEnv:an}=this._context,sn=this._instance,on=createFormatter(rn);return this._def.hasEnd?an.formatRange(sn.range.start,sn.range.end,on,{forcedStartTzo:sn.forcedStartTzo,forcedEndTzo:sn.forcedEndTzo}):an.format(sn.range.start,on,{forcedTzo:sn.forcedStartTzo})}mutate(rn){let an=this._instance;if(an){let sn=this._def,on=this._context,{eventStore:cn}=on.getCurrentData(),un=getRelevantEvents(cn,an.instanceId);un=applyMutationToEventStore(un,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},rn,on);let fn=new EventImpl(on,sn,an);this._def=un.defs[sn.defId],this._instance=un.instances[an.instanceId],on.dispatch({type:"MERGE_EVENTS",eventStore:un}),on.emitter.trigger("eventChange",{oldEvent:fn,event:this,relatedEvents:buildEventApis(un,on,an),revert(){on.dispatch({type:"RESET_EVENTS",eventStore:cn})}})}}remove(){let rn=this._context,an=eventApiToStore(this);rn.dispatch({type:"REMOVE_EVENTS",eventStore:an}),rn.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){rn.dispatch({type:"MERGE_EVENTS",eventStore:an})}})}get source(){let{sourceId:rn}=this._def;return rn?new EventSourceImpl(this._context,this._context.getCurrentData().eventSources[rn]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let rn=this._instance;return rn?this._context.dateEnv.formatIso(rn.range.start,{omitTime:this._def.allDay,forcedTzo:rn.forcedStartTzo}):""}get endStr(){let rn=this._instance;return rn&&this._def.hasEnd?this._context.dateEnv.formatIso(rn.range.end,{omitTime:this._def.allDay,forcedTzo:rn.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(rn={}){let an=this._def,{ui:sn}=an,{startStr:on,endStr:cn}=this,un={allDay:an.allDay};return an.title&&(un.title=an.title),on&&(un.start=on),cn&&(un.end=cn),an.publicId&&(un.id=an.publicId),an.groupId&&(un.groupId=an.groupId),an.url&&(un.url=an.url),sn.display&&sn.display!=="auto"&&(un.display=sn.display),rn.collapseColor&&sn.backgroundColor&&sn.backgroundColor===sn.borderColor?un.color=sn.backgroundColor:(sn.backgroundColor&&(un.backgroundColor=sn.backgroundColor),sn.borderColor&&(un.borderColor=sn.borderColor)),sn.textColor&&(un.textColor=sn.textColor),sn.classNames.length&&(un.classNames=sn.classNames),Object.keys(an.extendedProps).length&&(rn.collapseExtendedProps?Object.assign(un,an.extendedProps):un.extendedProps=an.extendedProps),un}toJSON(){return this.toPlainObject()}}function eventApiToStore(ln){let rn=ln._def,an=ln._instance;return{defs:{[rn.defId]:rn},instances:an?{[an.instanceId]:an}:{}}}function buildEventApis(ln,rn,an){let{defs:sn,instances:on}=ln,cn=[],un=an?an.instanceId:"";for(let pn in on){let fn=on[pn],mn=sn[fn.defId];fn.instanceId!==un&&cn.push(new EventImpl(rn,mn,fn))}return cn}function sliceEventStore(ln,rn,an,sn){let on={},cn={},un={},pn=[],fn=[],mn=compileEventUis(ln.defs,rn);for(let xn in ln.defs){let vn=ln.defs[xn];mn[vn.defId].display==="inverse-background"&&(vn.groupId?(on[vn.groupId]=[],un[vn.groupId]||(un[vn.groupId]=vn)):cn[xn]=[])}for(let xn in ln.instances){let vn=ln.instances[xn],yn=ln.defs[vn.defId],wn=mn[yn.defId],An=vn.range,Cn=!yn.allDay&&sn?computeVisibleDayRange(An,sn):An,kn=intersectRanges(Cn,an);kn&&(wn.display==="inverse-background"?yn.groupId?on[yn.groupId].push(kn):cn[vn.defId].push(kn):wn.display!=="none"&&(wn.display==="background"?pn:fn).push({def:yn,ui:wn,instance:vn,range:kn,isStart:Cn.start&&Cn.start.valueOf()===kn.start.valueOf(),isEnd:Cn.end&&Cn.end.valueOf()===kn.end.valueOf()}))}for(let xn in on){let vn=on[xn],yn=invertRanges(vn,an);for(let wn of yn){let An=un[xn],Cn=mn[An.defId];pn.push({def:An,ui:Cn,instance:null,range:wn,isStart:!1,isEnd:!1})}}for(let xn in cn){let vn=cn[xn],yn=invertRanges(vn,an);for(let wn of yn)pn.push({def:ln.defs[xn],ui:mn[xn],instance:null,range:wn,isStart:!1,isEnd:!1})}return{bg:pn,fg:fn}}function hasBgRendering(ln){return ln.ui.display==="background"||ln.ui.display==="inverse-background"}function setElSeg(ln,rn){ln.fcSeg=rn}function getElSeg(ln){return ln.fcSeg||ln.parentNode.fcSeg||null}function compileEventUis(ln,rn){return mapHash(ln,an=>compileEventUi(an,rn))}function compileEventUi(ln,rn){let an=[];return rn[""]&&an.push(rn[""]),rn[ln.defId]&&an.push(rn[ln.defId]),an.push(ln.ui),combineEventUis(an)}function sortEventSegs(ln,rn){let an=ln.map(buildSegCompareObj);return an.sort((sn,on)=>compareByFieldSpecs(sn,on,rn)),an.map(sn=>sn._seg)}function buildSegCompareObj(ln){let{eventRange:rn}=ln,an=rn.def,sn=rn.instance?rn.instance.range:rn.range,on=sn.start?sn.start.valueOf():0,cn=sn.end?sn.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},an.extendedProps),an),{id:an.publicId,start:on,end:cn,duration:cn-on,allDay:Number(an.allDay),_seg:ln})}function computeSegDraggable(ln,rn){let{pluginHooks:an}=rn,sn=an.isDraggableTransformers,{def:on,ui:cn}=ln.eventRange,un=cn.startEditable;for(let pn of sn)un=pn(un,on,cn,rn);return un}function computeSegStartResizable(ln,rn){return ln.isStart&&ln.eventRange.ui.durationEditable&&rn.options.eventResizableFromStart}function computeSegEndResizable(ln,rn){return ln.isEnd&&ln.eventRange.ui.durationEditable}function buildSegTimeText(ln,rn,an,sn,on,cn,un){let{dateEnv:pn,options:fn}=an,{displayEventTime:mn,displayEventEnd:xn}=fn,vn=ln.eventRange.def,yn=ln.eventRange.instance;mn==null&&(mn=sn!==!1),xn==null&&(xn=on!==!1);let wn=yn.range.start,An=yn.range.end,Cn=ln.start||ln.eventRange.range.start,kn=ln.end||ln.eventRange.range.end,Mn=startOfDay(wn).valueOf()===startOfDay(Cn).valueOf(),Tn=startOfDay(addMs(An,-1)).valueOf()===startOfDay(addMs(kn,-1)).valueOf();return mn&&!vn.allDay&&(Mn||Tn)?(Cn=Mn?wn:Cn,kn=Tn?An:kn,xn&&vn.hasEnd?pn.formatRange(Cn,kn,rn,{forcedStartTzo:yn.forcedStartTzo,forcedEndTzo:yn.forcedEndTzo}):pn.format(Cn,rn,{forcedTzo:yn.forcedStartTzo})):""}function getSegMeta(ln,rn,an){let sn=ln.eventRange.range;return{isPast:sn.end<=(an||rn.start),isFuture:sn.start>=(an||rn.end),isToday:rn&&rangeContainsMarker(rn,sn.start)}}function getEventClassNames(ln){let rn=["fc-event"];return ln.isMirror&&rn.push("fc-event-mirror"),ln.isDraggable&&rn.push("fc-event-draggable"),(ln.isStartResizable||ln.isEndResizable)&&rn.push("fc-event-resizable"),ln.isDragging&&rn.push("fc-event-dragging"),ln.isResizing&&rn.push("fc-event-resizing"),ln.isSelected&&rn.push("fc-event-selected"),ln.isStart&&rn.push("fc-event-start"),ln.isEnd&&rn.push("fc-event-end"),ln.isPast&&rn.push("fc-event-past"),ln.isToday&&rn.push("fc-event-today"),ln.isFuture&&rn.push("fc-event-future"),rn}function buildEventRangeKey(ln){return ln.instance?ln.instance.instanceId:`${ln.def.defId}:${ln.range.start.toISOString()}`}function getSegAnchorAttrs(ln,rn){let{def:an,instance:sn}=ln.eventRange,{url:on}=an;if(on)return{href:on};let{emitter:cn,options:un}=rn,{eventInteractive:pn}=un;return pn==null&&(pn=an.interactive,pn==null&&(pn=!!cn.hasHandlers("eventClick"))),pn?createAriaKeyboardAttrs(fn=>{cn.trigger("eventClick",{el:fn.target,event:new EventImpl(rn,an,sn),jsEvent:fn,view:rn.viewApi})}):{}}const STANDARD_PROPS={start:identity,end:identity,allDay:Boolean};function parseDateSpan(ln,rn,an){let sn=parseOpenDateSpan(ln,rn),{range:on}=sn;if(!on.start)return null;if(!on.end){if(an==null)return null;on.end=rn.add(on.start,an)}return sn}function parseOpenDateSpan(ln,rn){let{refined:an,extra:sn}=refineProps(ln,STANDARD_PROPS),on=an.start?rn.createMarkerMeta(an.start):null,cn=an.end?rn.createMarkerMeta(an.end):null,{allDay:un}=an;return un==null&&(un=on&&on.isTimeUnspecified&&(!cn||cn.isTimeUnspecified)),Object.assign({range:{start:on?on.marker:null,end:cn?cn.marker:null},allDay:un},sn)}function isDateSpansEqual(ln,rn){return rangesEqual(ln.range,rn.range)&&ln.allDay===rn.allDay&&isSpanPropsEqual(ln,rn)}function isSpanPropsEqual(ln,rn){for(let an in rn)if(an!=="range"&&an!=="allDay"&&ln[an]!==rn[an])return!1;for(let an in ln)if(!(an in rn))return!1;return!0}function buildDateSpanApi(ln,rn){return Object.assign(Object.assign({},buildRangeApi(ln.range,rn,ln.allDay)),{allDay:ln.allDay})}function buildRangeApiWithTimeZone(ln,rn,an){return Object.assign(Object.assign({},buildRangeApi(ln,rn,an)),{timeZone:rn.timeZone})}function buildRangeApi(ln,rn,an){return{start:rn.toDate(ln.start),end:rn.toDate(ln.end),startStr:rn.formatIso(ln.start,{omitTime:an}),endStr:rn.formatIso(ln.end,{omitTime:an})}}function fabricateEventRange(ln,rn,an){let sn=refineEventDef({editable:!1},an),on=parseEventDef(sn.refined,sn.extra,"",ln.allDay,!0,an);return{def:on,ui:compileEventUi(on,rn),instance:createEventInstance(on.defId,ln.range),range:ln.range,isStart:!0,isEnd:!0}}function unpromisify(ln,rn,an){let sn=!1,on=function(pn){sn||(sn=!0,rn(pn))},cn=function(pn){sn||(sn=!0,an(pn))},un=ln(on,cn);un&&typeof un.then=="function"&&un.then(on,cn)}class JsonRequestError extends Error{constructor(rn,an){super(rn),this.response=an}}function requestJson(ln,rn,an){ln=ln.toUpperCase();const sn={method:ln};return ln==="GET"?rn+=(rn.indexOf("?")===-1?"?":"&")+new URLSearchParams(an):(sn.body=new URLSearchParams(an),sn.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(rn,sn).then(on=>{if(on.ok)return on.json().then(cn=>[cn,on],()=>{throw new JsonRequestError("Failure parsing JSON",on)});throw new JsonRequestError("Request failed",on)})}let canVGrowWithinCell;function getCanVGrowWithinCell(){return canVGrowWithinCell==null&&(canVGrowWithinCell=computeCanVGrowWithinCell()),canVGrowWithinCell}function computeCanVGrowWithinCell(){if(typeof document>"u")return!0;let ln=document.createElement("div");ln.style.position="absolute",ln.style.top="0px",ln.style.left="0px",ln.innerHTML="<table><tr><td><div></div></td></tr></table>",ln.querySelector("table").style.height="100px",ln.querySelector("div").style.height="100%",document.body.appendChild(ln);let an=ln.querySelector("div").offsetHeight>0;return document.body.removeChild(ln),an}class CalendarRoot extends BaseComponent{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{flushSync(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{flushSync(()=>{this.setState({forPrint:!1})})}}render(){let{props:rn}=this,{options:an}=rn,{forPrint:sn}=this.state,on=sn||an.height==="auto"||an.contentHeight==="auto",cn=!on&&an.height!=null?an.height:"",un=["fc",sn?"fc-media-print":"fc-media-screen",`fc-direction-${an.direction}`,rn.theme.getClass("root")];return getCanVGrowWithinCell()||un.push("fc-liquid-hack"),rn.children(un,cn,on,sn)}componentDidMount(){let{emitter:rn}=this.props;rn.on("_beforeprint",this.handleBeforePrint),rn.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:rn}=this.props;rn.off("_beforeprint",this.handleBeforePrint),rn.off("_afterprint",this.handleAfterPrint)}}class Interaction{constructor(rn){this.component=rn.component,this.isHitComboAllowed=rn.isHitComboAllowed||null}destroy(){}}function parseInteractionSettings(ln,rn){return{component:ln,el:rn.el,useEventCenter:rn.useEventCenter!=null?rn.useEventCenter:!0,isHitComboAllowed:rn.isHitComboAllowed||null}}function interactionSettingsToStore(ln){return{[ln.component.uid]:ln}}const interactionSettingsStore={};class CalendarImpl{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(rn){this.currentDataManager.dispatch(rn)}get view(){return this.getCurrentData().viewApi}batchRendering(rn){rn()}updateSize(){this.trigger("_resize",!0)}setOption(rn,an){this.dispatch({type:"SET_OPTION",optionName:rn,rawOptionValue:an})}getOption(rn){return this.currentDataManager.currentCalendarOptionsInput[rn]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(rn,an){let{currentDataManager:sn}=this;sn.currentCalendarOptionsRefiners[rn]?sn.emitter.on(rn,an):console.warn(`Unknown listener name '${rn}'`)}off(rn,an){this.currentDataManager.emitter.off(rn,an)}trigger(rn,...an){this.currentDataManager.emitter.trigger(rn,...an)}changeView(rn,an){this.batchRendering(()=>{if(this.unselect(),an)if(an.start&&an.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:rn}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:an});else{let{dateEnv:sn}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:rn,dateMarker:sn.createMarker(an)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:rn})})}zoomTo(rn,an){let sn=this.getCurrentData(),on;an=an||"day",on=sn.viewSpecs[an]||this.getUnitViewSpec(an),this.unselect(),on?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:on.type,dateMarker:rn}):this.dispatch({type:"CHANGE_DATE",dateMarker:rn})}getUnitViewSpec(rn){let{viewSpecs:an,toolbarConfig:sn}=this.getCurrentData(),on=[].concat(sn.header?sn.header.viewsWithButtons:[],sn.footer?sn.footer.viewsWithButtons:[]),cn,un;for(let pn in an)on.push(pn);for(cn=0;cn<on.length;cn+=1)if(un=an[on[cn]],un&&un.singleUnit===rn)return un;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let rn=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:rn.dateEnv.addYears(rn.currentDate,-1)})}nextYear(){let rn=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:rn.dateEnv.addYears(rn.currentDate,1)})}today(){let rn=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:getNow(rn.calendarOptions.now,rn.dateEnv)})}gotoDate(rn){let an=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:an.dateEnv.createMarker(rn)})}incrementDate(rn){let an=this.getCurrentData(),sn=createDuration(rn);sn&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:an.dateEnv.add(an.currentDate,sn)}))}getDate(){let rn=this.getCurrentData();return rn.dateEnv.toDate(rn.currentDate)}formatDate(rn,an){let{dateEnv:sn}=this.getCurrentData();return sn.format(sn.createMarker(rn),createFormatter(an))}formatRange(rn,an,sn){let{dateEnv:on}=this.getCurrentData();return on.formatRange(on.createMarker(rn),on.createMarker(an),createFormatter(sn),sn)}formatIso(rn,an){let{dateEnv:sn}=this.getCurrentData();return sn.formatIso(sn.createMarker(rn),{omitTime:an})}select(rn,an){let sn;an==null?rn.start!=null?sn=rn:sn={start:rn,end:null}:sn={start:rn,end:an};let on=this.getCurrentData(),cn=parseDateSpan(sn,on.dateEnv,createDuration({days:1}));cn&&(this.dispatch({type:"SELECT_DATES",selection:cn}),triggerDateSelect(cn,null,on))}unselect(rn){let an=this.getCurrentData();an.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),triggerDateUnselect(rn,an))}addEvent(rn,an){if(rn instanceof EventImpl){let un=rn._def,pn=rn._instance;return this.getCurrentData().eventStore.defs[un.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:eventTupleToStore({def:un,instance:pn})}),this.triggerEventAdd(rn)),rn}let sn=this.getCurrentData(),on;if(an instanceof EventSourceImpl)on=an.internalEventSource;else if(typeof an=="boolean")an&&([on]=hashValuesToArray(sn.eventSources));else if(an!=null){let un=this.getEventSourceById(an);if(!un)return console.warn(`Could not find an event source with ID "${an}"`),null;on=un.internalEventSource}let cn=parseEvent(rn,on,sn,!1);if(cn){let un=new EventImpl(sn,cn.def,cn.def.recurringDef?null:cn.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:eventTupleToStore(cn)}),this.triggerEventAdd(un),un}return null}triggerEventAdd(rn){let{emitter:an}=this.getCurrentData();an.trigger("eventAdd",{event:rn,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:eventApiToStore(rn)})}})}getEventById(rn){let an=this.getCurrentData(),{defs:sn,instances:on}=an.eventStore;rn=String(rn);for(let cn in sn){let un=sn[cn];if(un.publicId===rn){if(un.recurringDef)return new EventImpl(an,un,null);for(let pn in on){let fn=on[pn];if(fn.defId===un.defId)return new EventImpl(an,un,fn)}}}return null}getEvents(){let rn=this.getCurrentData();return buildEventApis(rn.eventStore,rn)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let rn=this.getCurrentData(),an=rn.eventSources,sn=[];for(let on in an)sn.push(new EventSourceImpl(rn,an[on]));return sn}getEventSourceById(rn){let an=this.getCurrentData(),sn=an.eventSources;rn=String(rn);for(let on in sn)if(sn[on].publicId===rn)return new EventSourceImpl(an,sn[on]);return null}addEventSource(rn){let an=this.getCurrentData();if(rn instanceof EventSourceImpl)return an.eventSources[rn.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[rn.internalEventSource]}),rn;let sn=parseEventSource(rn,an);return sn?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[sn]}),new EventSourceImpl(an,sn)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(rn){let an=createDuration(rn);an&&this.trigger("_scrollRequest",{time:an})}}function pointInsideRect(ln,rn){return ln.left>=rn.left&&ln.left<rn.right&&ln.top>=rn.top&&ln.top<rn.bottom}function intersectRects(ln,rn){let an={left:Math.max(ln.left,rn.left),right:Math.min(ln.right,rn.right),top:Math.max(ln.top,rn.top),bottom:Math.min(ln.bottom,rn.bottom)};return an.left<an.right&&an.top<an.bottom?an:!1}function constrainPoint(ln,rn){return{left:Math.min(Math.max(ln.left,rn.left),rn.right),top:Math.min(Math.max(ln.top,rn.top),rn.bottom)}}function getRectCenter(ln){return{left:(ln.left+ln.right)/2,top:(ln.top+ln.bottom)/2}}function diffPoints(ln,rn){return{left:ln.left-rn.left,top:ln.top-rn.top}}const EMPTY_EVENT_STORE=createEmptyEventStore();class Splitter{constructor(){this.getKeysForEventDefs=memoize(this._getKeysForEventDefs),this.splitDateSelection=memoize(this._splitDateSpan),this.splitEventStore=memoize(this._splitEventStore),this.splitIndividualUi=memoize(this._splitIndividualUi),this.splitEventDrag=memoize(this._splitInteraction),this.splitEventResize=memoize(this._splitInteraction),this.eventUiBuilders={}}splitProps(rn){let an=this.getKeyInfo(rn),sn=this.getKeysForEventDefs(rn.eventStore),on=this.splitDateSelection(rn.dateSelection),cn=this.splitIndividualUi(rn.eventUiBases,sn),un=this.splitEventStore(rn.eventStore,sn),pn=this.splitEventDrag(rn.eventDrag),fn=this.splitEventResize(rn.eventResize),mn={};this.eventUiBuilders=mapHash(an,(xn,vn)=>this.eventUiBuilders[vn]||memoize(buildEventUiForKey));for(let xn in an){let vn=an[xn],yn=un[xn]||EMPTY_EVENT_STORE,wn=this.eventUiBuilders[xn];mn[xn]={businessHours:vn.businessHours||rn.businessHours,dateSelection:on[xn]||null,eventStore:yn,eventUiBases:wn(rn.eventUiBases[""],vn.ui,cn[xn]),eventSelection:yn.instances[rn.eventSelection]?rn.eventSelection:"",eventDrag:pn[xn]||null,eventResize:fn[xn]||null}}return mn}_splitDateSpan(rn){let an={};if(rn){let sn=this.getKeysForDateSpan(rn);for(let on of sn)an[on]=rn}return an}_getKeysForEventDefs(rn){return mapHash(rn.defs,an=>this.getKeysForEventDef(an))}_splitEventStore(rn,an){let{defs:sn,instances:on}=rn,cn={};for(let un in sn)for(let pn of an[un])cn[pn]||(cn[pn]=createEmptyEventStore()),cn[pn].defs[un]=sn[un];for(let un in on){let pn=on[un];for(let fn of an[pn.defId])cn[fn]&&(cn[fn].instances[un]=pn)}return cn}_splitIndividualUi(rn,an){let sn={};for(let on in rn)if(on)for(let cn of an[on])sn[cn]||(sn[cn]={}),sn[cn][on]=rn[on];return sn}_splitInteraction(rn){let an={};if(rn){let sn=this._splitEventStore(rn.affectedEvents,this._getKeysForEventDefs(rn.affectedEvents)),on=this._getKeysForEventDefs(rn.mutatedEvents),cn=this._splitEventStore(rn.mutatedEvents,on),un=pn=>{an[pn]||(an[pn]={affectedEvents:sn[pn]||EMPTY_EVENT_STORE,mutatedEvents:cn[pn]||EMPTY_EVENT_STORE,isEvent:rn.isEvent})};for(let pn in sn)un(pn);for(let pn in cn)un(pn)}return an}}function buildEventUiForKey(ln,rn,an){let sn=[];ln&&sn.push(ln),rn&&sn.push(rn);let on={"":combineEventUis(sn)};return an&&Object.assign(on,an),on}function getDateMeta(ln,rn,an,sn){return{dow:ln.getUTCDay(),isDisabled:!!(sn&&!rangeContainsMarker(sn.activeRange,ln)),isOther:!!(sn&&!rangeContainsMarker(sn.currentRange,ln)),isToday:!!(rn&&rangeContainsMarker(rn,ln)),isPast:!!(rn&&ln<rn.start),isFuture:!!(rn&&ln>=rn.end)}}function getDayClassNames(ln,rn){let an=["fc-day",`fc-day-${DAY_IDS[ln.dow]}`];return ln.isDisabled?an.push("fc-day-disabled"):(ln.isToday&&(an.push("fc-day-today"),an.push(rn.getClass("today"))),ln.isPast&&an.push("fc-day-past"),ln.isFuture&&an.push("fc-day-future"),ln.isOther&&an.push("fc-day-other")),an}const DAY_FORMAT=createFormatter({year:"numeric",month:"long",day:"numeric"}),WEEK_FORMAT=createFormatter({week:"long"});function buildNavLinkAttrs(ln,rn,an="day",sn=!0){const{dateEnv:on,options:cn,calendarApi:un}=ln;let pn=on.format(rn,an==="week"?WEEK_FORMAT:DAY_FORMAT);if(cn.navLinks){let fn=on.toDate(rn);const mn=xn=>{let vn=an==="day"?cn.navLinkDayClick:an==="week"?cn.navLinkWeekClick:null;typeof vn=="function"?vn.call(un,on.toDate(rn),xn):(typeof vn=="string"&&(an=vn),un.zoomTo(rn,an))};return Object.assign({title:formatWithOrdinals(cn.navLinkHint,[pn,fn],pn),"data-navlink":""},sn?createAriaClickAttrs(mn):{onClick:mn})}return{"aria-label":pn}}let _isRtlScrollbarOnLeft=null;function getIsRtlScrollbarOnLeft(){return _isRtlScrollbarOnLeft===null&&(_isRtlScrollbarOnLeft=computeIsRtlScrollbarOnLeft()),_isRtlScrollbarOnLeft}function computeIsRtlScrollbarOnLeft(){let ln=document.createElement("div");applyStyle(ln,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),ln.innerHTML="<div></div>",document.body.appendChild(ln);let an=ln.firstChild.getBoundingClientRect().left>ln.getBoundingClientRect().left;return removeElement(ln),an}let _scrollbarWidths;function getScrollbarWidths(){return _scrollbarWidths||(_scrollbarWidths=computeScrollbarWidths()),_scrollbarWidths}function computeScrollbarWidths(){let ln=document.createElement("div");ln.style.overflow="scroll",ln.style.position="absolute",ln.style.top="-9999px",ln.style.left="-9999px",document.body.appendChild(ln);let rn=computeScrollbarWidthsForEl(ln);return document.body.removeChild(ln),rn}function computeScrollbarWidthsForEl(ln){return{x:ln.offsetHeight-ln.clientHeight,y:ln.offsetWidth-ln.clientWidth}}function computeEdges(ln,rn=!1){let an=window.getComputedStyle(ln),sn=parseInt(an.borderLeftWidth,10)||0,on=parseInt(an.borderRightWidth,10)||0,cn=parseInt(an.borderTopWidth,10)||0,un=parseInt(an.borderBottomWidth,10)||0,pn=computeScrollbarWidthsForEl(ln),fn=pn.y-sn-on,mn=pn.x-cn-un,xn={borderLeft:sn,borderRight:on,borderTop:cn,borderBottom:un,scrollbarBottom:mn,scrollbarLeft:0,scrollbarRight:0};return getIsRtlScrollbarOnLeft()&&an.direction==="rtl"?xn.scrollbarLeft=fn:xn.scrollbarRight=fn,rn&&(xn.paddingLeft=parseInt(an.paddingLeft,10)||0,xn.paddingRight=parseInt(an.paddingRight,10)||0,xn.paddingTop=parseInt(an.paddingTop,10)||0,xn.paddingBottom=parseInt(an.paddingBottom,10)||0),xn}function computeInnerRect(ln,rn=!1,an){let sn=computeRect(ln),on=computeEdges(ln,rn),cn={left:sn.left+on.borderLeft+on.scrollbarLeft,right:sn.right-on.borderRight-on.scrollbarRight,top:sn.top+on.borderTop,bottom:sn.bottom-on.borderBottom-on.scrollbarBottom};return rn&&(cn.left+=on.paddingLeft,cn.right-=on.paddingRight,cn.top+=on.paddingTop,cn.bottom-=on.paddingBottom),cn}function computeRect(ln){let rn=ln.getBoundingClientRect();return{left:rn.left+window.scrollX,top:rn.top+window.scrollY,right:rn.right+window.scrollX,bottom:rn.bottom+window.scrollY}}function computeClippedClientRect(ln){let rn=getClippingParents(ln),an=ln.getBoundingClientRect();for(let sn of rn){let on=intersectRects(an,sn.getBoundingClientRect());if(on)an=on;else return null}return an}function getClippingParents(ln){let rn=[];for(;ln instanceof HTMLElement;){let an=window.getComputedStyle(ln);if(an.position==="fixed")break;/(auto|scroll)/.test(an.overflow+an.overflowY+an.overflowX)&&rn.push(ln),ln=ln.parentNode}return rn}class PositionCache{constructor(rn,an,sn,on){this.els=an;let cn=this.originClientRect=rn.getBoundingClientRect();sn&&this.buildElHorizontals(cn.left),on&&this.buildElVerticals(cn.top)}buildElHorizontals(rn){let an=[],sn=[];for(let on of this.els){let cn=on.getBoundingClientRect();an.push(cn.left-rn),sn.push(cn.right-rn)}this.lefts=an,this.rights=sn}buildElVerticals(rn){let an=[],sn=[];for(let on of this.els){let cn=on.getBoundingClientRect();an.push(cn.top-rn),sn.push(cn.bottom-rn)}this.tops=an,this.bottoms=sn}leftToIndex(rn){let{lefts:an,rights:sn}=this,on=an.length,cn;for(cn=0;cn<on;cn+=1)if(rn>=an[cn]&&rn<sn[cn])return cn}topToIndex(rn){let{tops:an,bottoms:sn}=this,on=an.length,cn;for(cn=0;cn<on;cn+=1)if(rn>=an[cn]&&rn<sn[cn])return cn}getWidth(rn){return this.rights[rn]-this.lefts[rn]}getHeight(rn){return this.bottoms[rn]-this.tops[rn]}similarTo(rn){return similarNumArrays(this.tops||[],rn.tops||[])&&similarNumArrays(this.bottoms||[],rn.bottoms||[])&&similarNumArrays(this.lefts||[],rn.lefts||[])&&similarNumArrays(this.rights||[],rn.rights||[])}}function similarNumArrays(ln,rn){const an=ln.length;if(an!==rn.length)return!1;for(let sn=0;sn<an;sn++)if(Math.round(ln[sn])!==Math.round(rn[sn]))return!1;return!0}class ScrollController{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class ElementScrollController extends ScrollController{constructor(rn){super(),this.el=rn}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(rn){this.el.scrollTop=rn}setScrollLeft(rn){this.el.scrollLeft=rn}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class WindowScrollController extends ScrollController{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(rn){window.scroll(window.scrollX,rn)}setScrollLeft(rn){window.scroll(rn,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class DateComponent extends BaseComponent{constructor(){super(...arguments),this.uid=guid()}prepareHits(){}queryHit(rn,an,sn,on){return null}isValidSegDownEl(rn){return!this.props.eventDrag&&!this.props.eventResize&&!elementClosest(rn,".fc-event-mirror")}isValidDateDownEl(rn){return!elementClosest(rn,".fc-event:not(.fc-bg-event)")&&!elementClosest(rn,".fc-more-link")&&!elementClosest(rn,"a[data-navlink]")&&!elementClosest(rn,".fc-popover")}}class SegHierarchy{constructor(rn=an=>an.thickness||1){this.getEntryThickness=rn,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(rn){let an=[];for(let sn of rn)this.insertEntry(sn,an);return an}insertEntry(rn,an){let sn=this.findInsertion(rn);this.isInsertionValid(sn,rn)?this.insertEntryAt(rn,sn):this.handleInvalidInsertion(sn,rn,an)}isInsertionValid(rn,an){return(this.maxCoord===-1||rn.levelCoord+this.getEntryThickness(an)<=this.maxCoord)&&(this.maxStackCnt===-1||rn.stackCnt<this.maxStackCnt)}handleInvalidInsertion(rn,an,sn){if(this.allowReslicing&&rn.touchingEntry){const on=Object.assign(Object.assign({},an),{span:intersectSpans(an.span,rn.touchingEntry.span)});sn.push(on),this.splitEntry(an,rn.touchingEntry,sn)}else sn.push(an)}splitEntry(rn,an,sn){let on=rn.span,cn=an.span;on.start<cn.start&&this.insertEntry({index:rn.index,thickness:rn.thickness,span:{start:on.start,end:cn.start}},sn),on.end>cn.end&&this.insertEntry({index:rn.index,thickness:rn.thickness,span:{start:cn.end,end:on.end}},sn)}insertEntryAt(rn,an){let{entriesByLevel:sn,levelCoords:on}=this;an.lateral===-1?(insertAt(on,an.level,an.levelCoord),insertAt(sn,an.level,[rn])):insertAt(sn[an.level],an.lateral,rn),this.stackCnts[buildEntryKey(rn)]=an.stackCnt}findInsertion(rn){let{levelCoords:an,entriesByLevel:sn,strictOrder:on,stackCnts:cn}=this,un=an.length,pn=0,fn=-1,mn=-1,xn=null,vn=0;for(let An=0;An<un;An+=1){const Cn=an[An];if(!on&&Cn>=pn+this.getEntryThickness(rn))break;let kn=sn[An],Mn,Tn=binarySearch(kn,rn.span.start,getEntrySpanEnd),On=Tn[0]+Tn[1];for(;(Mn=kn[On])&&Mn.span.start<rn.span.end;){let Pn=Cn+this.getEntryThickness(Mn);Pn>pn&&(pn=Pn,xn=Mn,fn=An,mn=On),Pn===pn&&(vn=Math.max(vn,cn[buildEntryKey(Mn)]+1)),On+=1}}let yn=0;if(xn)for(yn=fn+1;yn<un&&an[yn]<pn;)yn+=1;let wn=-1;return yn<un&&an[yn]===pn&&(wn=binarySearch(sn[yn],rn.span.end,getEntrySpanEnd)[0]),{touchingLevel:fn,touchingLateral:mn,touchingEntry:xn,stackCnt:vn,levelCoord:pn,level:yn,lateral:wn}}toRects(){let{entriesByLevel:rn,levelCoords:an}=this,sn=rn.length,on=[];for(let cn=0;cn<sn;cn+=1){let un=rn[cn],pn=an[cn];for(let fn of un)on.push(Object.assign(Object.assign({},fn),{thickness:this.getEntryThickness(fn),levelCoord:pn}))}return on}}function getEntrySpanEnd(ln){return ln.span.end}function buildEntryKey(ln){return ln.index+":"+ln.span.start}function groupIntersectingEntries(ln){let rn=[];for(let an of ln){let sn=[],on={span:an.span,entries:[an]};for(let cn of rn)intersectSpans(cn.span,on.span)?on={entries:cn.entries.concat(on.entries),span:joinSpans(cn.span,on.span)}:sn.push(cn);sn.push(on),rn=sn}return rn}function joinSpans(ln,rn){return{start:Math.min(ln.start,rn.start),end:Math.max(ln.end,rn.end)}}function intersectSpans(ln,rn){let an=Math.max(ln.start,rn.start),sn=Math.min(ln.end,rn.end);return an<sn?{start:an,end:sn}:null}function insertAt(ln,rn,an){ln.splice(rn,0,an)}function binarySearch(ln,rn,an){let sn=0,on=ln.length;if(!on||rn<an(ln[sn]))return[0,0];if(rn>an(ln[on-1]))return[on,0];for(;sn<on;){let cn=Math.floor(sn+(on-sn)/2),un=an(ln[cn]);if(rn<un)on=cn;else if(rn>un)sn=cn+1;else return[cn,1]}return[sn,0]}class ElementDragging{constructor(rn,an){this.emitter=new Emitter}destroy(){}setMirrorIsVisible(rn){}setMirrorNeedsRevert(rn){}setAutoScrollEnabled(rn){}}const config={};function computeFallbackHeaderFormat(ln,rn){return!ln||rn>10?createFormatter({weekday:"short"}):rn>1?createFormatter({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):createFormatter({weekday:"long"})}const CLASS_NAME="fc-col-header-cell";function renderInner$1(ln){return ln.text}class TableDateCell extends BaseComponent{render(){let{dateEnv:rn,options:an,theme:sn,viewApi:on}=this.context,{props:cn}=this,{date:un,dateProfile:pn}=cn,fn=getDateMeta(un,cn.todayRange,null,pn),mn=[CLASS_NAME].concat(getDayClassNames(fn,sn)),xn=rn.format(un,cn.dayHeaderFormat),vn=!fn.isDisabled&&cn.colCnt>1?buildNavLinkAttrs(this.context,un):{},yn=Object.assign(Object.assign(Object.assign({date:rn.toDate(un),view:on},cn.extraRenderProps),{text:xn}),fn);return y(ContentContainer,{elTag:"th",elClasses:mn,elAttrs:Object.assign({role:"columnheader",colSpan:cn.colSpan,"data-date":fn.isDisabled?void 0:formatDayString(un)},cn.extraDataAttrs),renderProps:yn,generatorName:"dayHeaderContent",customGenerator:an.dayHeaderContent,defaultGenerator:renderInner$1,classNameGenerator:an.dayHeaderClassNames,didMount:an.dayHeaderDidMount,willUnmount:an.dayHeaderWillUnmount},wn=>y("div",{className:"fc-scrollgrid-sync-inner"},!fn.isDisabled&&y(wn,{elTag:"a",elAttrs:vn,elClasses:["fc-col-header-cell-cushion",cn.isSticky&&"fc-sticky"]})))}}const WEEKDAY_FORMAT=createFormatter({weekday:"long"});class TableDowCell extends BaseComponent{render(){let{props:rn}=this,{dateEnv:an,theme:sn,viewApi:on,options:cn}=this.context,un=addDays(new Date(2592e5),rn.dow),pn={dow:rn.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},fn=an.format(un,rn.dayHeaderFormat),mn=Object.assign(Object.assign(Object.assign(Object.assign({date:un},pn),{view:on}),rn.extraRenderProps),{text:fn});return y(ContentContainer,{elTag:"th",elClasses:[CLASS_NAME,...getDayClassNames(pn,sn),...rn.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:rn.colSpan},rn.extraDataAttrs),renderProps:mn,generatorName:"dayHeaderContent",customGenerator:cn.dayHeaderContent,defaultGenerator:renderInner$1,classNameGenerator:cn.dayHeaderClassNames,didMount:cn.dayHeaderDidMount,willUnmount:cn.dayHeaderWillUnmount},xn=>y("div",{className:"fc-scrollgrid-sync-inner"},y(xn,{elTag:"a",elClasses:["fc-col-header-cell-cushion",rn.isSticky&&"fc-sticky"],elAttrs:{"aria-label":an.format(un,WEEKDAY_FORMAT)}})))}}class NowTimer extends x$1{constructor(rn,an){super(rn,an),this.initialNowDate=getNow(an.options.now,an.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:rn,state:an}=this;return rn.children(an.nowDate,an.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(rn){rn.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:rn,context:an}=this,sn=addMs(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),on=an.dateEnv.startOf(sn,rn.unit),cn=an.dateEnv.add(on,createDuration(1,rn.unit)),un=cn.valueOf()-sn.valueOf();return un=Math.min(1e3*60*60*24,un),{currentState:{nowDate:on,todayRange:buildDayRange(on)},nextState:{nowDate:cn,todayRange:buildDayRange(cn)},waitMs:un}}setTimeout(){let{nextState:rn,waitMs:an}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(rn,()=>{this.setTimeout()})},an)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}NowTimer.contextType=ViewContextType;function buildDayRange(ln){let rn=startOfDay(ln),an=addDays(rn,1);return{start:rn,end:an}}class DayHeader extends BaseComponent{constructor(){super(...arguments),this.createDayHeaderFormatter=memoize(createDayHeaderFormatter)}render(){let{context:rn}=this,{dates:an,dateProfile:sn,datesRepDistinctDays:on,renderIntro:cn}=this.props,un=this.createDayHeaderFormatter(rn.options.dayHeaderFormat,on,an.length);return y(NowTimer,{unit:"day"},(pn,fn)=>y("tr",{role:"row"},cn&&cn("day"),an.map(mn=>on?y(TableDateCell,{key:mn.toISOString(),date:mn,dateProfile:sn,todayRange:fn,colCnt:an.length,dayHeaderFormat:un}):y(TableDowCell,{key:mn.getUTCDay(),dow:mn.getUTCDay(),dayHeaderFormat:un}))))}}function createDayHeaderFormatter(ln,rn,an){return ln||computeFallbackHeaderFormat(rn,an)}class DaySeriesModel{constructor(rn,an){let sn=rn.start,{end:on}=rn,cn=[],un=[],pn=-1;for(;sn<on;)an.isHiddenDay(sn)?cn.push(pn+.5):(pn+=1,cn.push(pn),un.push(sn)),sn=addDays(sn,1);this.dates=un,this.indices=cn,this.cnt=un.length}sliceRange(rn){let an=this.getDateDayIndex(rn.start),sn=this.getDateDayIndex(addDays(rn.end,-1)),on=Math.max(0,an),cn=Math.min(this.cnt-1,sn);return on=Math.ceil(on),cn=Math.floor(cn),on<=cn?{firstIndex:on,lastIndex:cn,isStart:an===on,isEnd:sn===cn}:null}getDateDayIndex(rn){let{indices:an}=this,sn=Math.floor(diffDays(this.dates[0],rn));return sn<0?an[0]-1:sn>=an.length?an[an.length-1]+1:an[sn]}}class DayTableModel{constructor(rn,an){let{dates:sn}=rn,on,cn,un;if(an){for(cn=sn[0].getUTCDay(),on=1;on<sn.length&&sn[on].getUTCDay()!==cn;on+=1);un=Math.ceil(sn.length/on)}else un=1,on=sn.length;this.rowCnt=un,this.colCnt=on,this.daySeries=rn,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let rn=[];for(let an=0;an<this.rowCnt;an+=1){let sn=[];for(let on=0;on<this.colCnt;on+=1)sn.push(this.buildCell(an,on));rn.push(sn)}return rn}buildCell(rn,an){let sn=this.daySeries.dates[rn*this.colCnt+an];return{key:sn.toISOString(),date:sn}}buildHeaderDates(){let rn=[];for(let an=0;an<this.colCnt;an+=1)rn.push(this.cells[0][an].date);return rn}sliceRange(rn){let{colCnt:an}=this,sn=this.daySeries.sliceRange(rn),on=[];if(sn){let{firstIndex:cn,lastIndex:un}=sn,pn=cn;for(;pn<=un;){let fn=Math.floor(pn/an),mn=Math.min((fn+1)*an,un+1);on.push({row:fn,firstCol:pn%an,lastCol:(mn-1)%an,isStart:sn.isStart&&pn===cn,isEnd:sn.isEnd&&mn-1===un}),pn=mn}}return on}}class Slicer{constructor(){this.sliceBusinessHours=memoize(this._sliceBusinessHours),this.sliceDateSelection=memoize(this._sliceDateSpan),this.sliceEventStore=memoize(this._sliceEventStore),this.sliceEventDrag=memoize(this._sliceInteraction),this.sliceEventResize=memoize(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(rn,an,sn,on,...cn){let{eventUiBases:un}=rn,pn=this.sliceEventStore(rn.eventStore,un,an,sn,...cn);return{dateSelectionSegs:this.sliceDateSelection(rn.dateSelection,an,sn,un,on,...cn),businessHourSegs:this.sliceBusinessHours(rn.businessHours,an,sn,on,...cn),fgEventSegs:pn.fg,bgEventSegs:pn.bg,eventDrag:this.sliceEventDrag(rn.eventDrag,un,an,sn,...cn),eventResize:this.sliceEventResize(rn.eventResize,un,an,sn,...cn),eventSelection:rn.eventSelection}}sliceNowDate(rn,an,sn,on,...cn){return this._sliceDateSpan({range:{start:rn,end:addMs(rn,1)},allDay:!1},an,sn,{},on,...cn)}_sliceBusinessHours(rn,an,sn,on,...cn){return rn?this._sliceEventStore(expandRecurring(rn,computeActiveRange(an,!!sn),on),{},an,sn,...cn).bg:[]}_sliceEventStore(rn,an,sn,on,...cn){if(rn){let un=sliceEventStore(rn,an,computeActiveRange(sn,!!on),on);return{bg:this.sliceEventRanges(un.bg,cn),fg:this.sliceEventRanges(un.fg,cn)}}return{bg:[],fg:[]}}_sliceInteraction(rn,an,sn,on,...cn){if(!rn)return null;let un=sliceEventStore(rn.mutatedEvents,an,computeActiveRange(sn,!!on),on);return{segs:this.sliceEventRanges(un.fg,cn),affectedInstances:rn.affectedEvents.instances,isEvent:rn.isEvent}}_sliceDateSpan(rn,an,sn,on,cn,...un){if(!rn)return[];let pn=computeActiveRange(an,!!sn),fn=intersectRanges(rn.range,pn);if(fn){rn=Object.assign(Object.assign({},rn),{range:fn});let mn=fabricateEventRange(rn,on,cn),xn=this.sliceRange(rn.range,...un);for(let vn of xn)vn.eventRange=mn;return xn}return[]}sliceEventRanges(rn,an){let sn=[];for(let on of rn)sn.push(...this.sliceEventRange(on,an));return sn}sliceEventRange(rn,an){let sn=rn.range;this.forceDayIfListItem&&rn.ui.display==="list-item"&&(sn={start:sn.start,end:addDays(sn.start,1)});let on=this.sliceRange(sn,...an);for(let cn of on)cn.eventRange=rn,cn.isStart=rn.isStart&&cn.isStart,cn.isEnd=rn.isEnd&&cn.isEnd;return on}}function computeActiveRange(ln,rn){let an=ln.activeRange;return rn?an:{start:addMs(an.start,ln.slotMinTime.milliseconds),end:addMs(an.end,ln.slotMaxTime.milliseconds-864e5)}}function isInteractionValid(ln,rn,an){let{instances:sn}=ln.mutatedEvents;for(let on in sn)if(!rangeContainsRange(rn.validRange,sn[on].range))return!1;return isNewPropsValid({eventDrag:ln},an)}function isDateSelectionValid(ln,rn,an){return rangeContainsRange(rn.validRange,ln.range)?isNewPropsValid({dateSelection:ln},an):!1}function isNewPropsValid(ln,rn){let an=rn.getCurrentData(),sn=Object.assign({businessHours:an.businessHours,dateSelection:"",eventStore:an.eventStore,eventUiBases:an.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},ln);return(rn.pluginHooks.isPropsValid||isPropsValid)(sn,rn)}function isPropsValid(ln,rn,an={},sn){return!(ln.eventDrag&&!isInteractionPropsValid(ln,rn,an,sn)||ln.dateSelection&&!isDateSelectionPropsValid(ln,rn,an,sn))}function isInteractionPropsValid(ln,rn,an,sn){let on=rn.getCurrentData(),cn=ln.eventDrag,un=cn.mutatedEvents,pn=un.defs,fn=un.instances,mn=compileEventUis(pn,cn.isEvent?ln.eventUiBases:{"":on.selectionConfig});sn&&(mn=mapHash(mn,sn));let xn=excludeInstances(ln.eventStore,cn.affectedEvents.instances),vn=xn.defs,yn=xn.instances,wn=compileEventUis(vn,ln.eventUiBases);for(let An in fn){let Cn=fn[An],kn=Cn.range,Mn=mn[Cn.defId],Tn=pn[Cn.defId];if(!allConstraintsPass(Mn.constraints,kn,xn,ln.businessHours,rn))return!1;let{eventOverlap:On}=rn.options,Pn=typeof On=="function"?On:null;for(let In in yn){let jn=yn[In];if(rangesIntersect(kn,jn.range)&&(wn[jn.defId].overlap===!1&&cn.isEvent||Mn.overlap===!1||Pn&&!Pn(new EventImpl(rn,vn[jn.defId],jn),new EventImpl(rn,Tn,Cn))))return!1}let Nn=on.eventStore;for(let In of Mn.allows){let jn=Object.assign(Object.assign({},an),{range:Cn.range,allDay:Tn.allDay}),Fn=Nn.defs[Tn.defId],Un=Nn.instances[An],Yn;if(Fn?Yn=new EventImpl(rn,Fn,Un):Yn=new EventImpl(rn,Tn),!In(buildDateSpanApiWithContext(jn,rn),Yn))return!1}}return!0}function isDateSelectionPropsValid(ln,rn,an,sn){let on=ln.eventStore,cn=on.defs,un=on.instances,pn=ln.dateSelection,fn=pn.range,{selectionConfig:mn}=rn.getCurrentData();if(sn&&(mn=sn(mn)),!allConstraintsPass(mn.constraints,fn,on,ln.businessHours,rn))return!1;let{selectOverlap:xn}=rn.options,vn=typeof xn=="function"?xn:null;for(let yn in un){let wn=un[yn];if(rangesIntersect(fn,wn.range)&&(mn.overlap===!1||vn&&!vn(new EventImpl(rn,cn[wn.defId],wn),null)))return!1}for(let yn of mn.allows){let wn=Object.assign(Object.assign({},an),pn);if(!yn(buildDateSpanApiWithContext(wn,rn),null))return!1}return!0}function allConstraintsPass(ln,rn,an,sn,on){for(let cn of ln)if(!anyRangesContainRange(constraintToRanges(cn,rn,an,sn,on),rn))return!1;return!0}function constraintToRanges(ln,rn,an,sn,on){return ln==="businessHours"?eventStoreToRanges(expandRecurring(sn,rn,on)):typeof ln=="string"?eventStoreToRanges(filterEventStoreDefs(an,cn=>cn.groupId===ln)):typeof ln=="object"&&ln?eventStoreToRanges(expandRecurring(ln,rn,on)):[]}function eventStoreToRanges(ln){let{instances:rn}=ln,an=[];for(let sn in rn)an.push(rn[sn].range);return an}function anyRangesContainRange(ln,rn){for(let an of ln)if(rangeContainsRange(an,rn))return!0;return!1}const VISIBLE_HIDDEN_RE=/^(visible|hidden)$/;class Scroller extends BaseComponent{constructor(){super(...arguments),this.handleEl=rn=>{this.el=rn,setRef(this.props.elRef,rn)}}render(){let{props:rn}=this,{liquid:an,liquidIsAbsolute:sn}=rn,on=an&&sn,cn=["fc-scroller"];return an&&(sn?cn.push("fc-scroller-liquid-absolute"):cn.push("fc-scroller-liquid")),y("div",{ref:this.handleEl,className:cn.join(" "),style:{overflowX:rn.overflowX,overflowY:rn.overflowY,left:on&&-(rn.overcomeLeft||0)||"",right:on&&-(rn.overcomeRight||0)||"",bottom:on&&-(rn.overcomeBottom||0)||"",marginLeft:!on&&-(rn.overcomeLeft||0)||"",marginRight:!on&&-(rn.overcomeRight||0)||"",marginBottom:!on&&-(rn.overcomeBottom||0)||"",maxHeight:rn.maxHeight||""}},rn.children)}needsXScrolling(){if(VISIBLE_HIDDEN_RE.test(this.props.overflowX))return!1;let{el:rn}=this,an=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:sn}=rn;for(let on=0;on<sn.length;on+=1)if(sn[on].getBoundingClientRect().width>an)return!0;return!1}needsYScrolling(){if(VISIBLE_HIDDEN_RE.test(this.props.overflowY))return!1;let{el:rn}=this,an=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:sn}=rn;for(let on=0;on<sn.length;on+=1)if(sn[on].getBoundingClientRect().height>an)return!0;return!1}getXScrollbarWidth(){return VISIBLE_HIDDEN_RE.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return VISIBLE_HIDDEN_RE.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class RefMap{constructor(rn){this.masterCallback=rn,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(an,sn)=>{let{depths:on,currentMap:cn}=this,un=!1,pn=!1;an!==null?(un=sn in cn,cn[sn]=an,on[sn]=(on[sn]||0)+1,pn=!0):(on[sn]-=1,on[sn]||(delete cn[sn],delete this.callbackMap[sn],un=!0)),this.masterCallback&&(un&&this.masterCallback(null,String(sn)),pn&&this.masterCallback(an,String(sn)))}}createRef(rn){let an=this.callbackMap[rn];return an||(an=this.callbackMap[rn]=sn=>{this.handleValue(sn,String(rn))}),an}collect(rn,an,sn){return collectFromHash(this.currentMap,rn,an,sn)}getAll(){return hashValuesToArray(this.currentMap)}}function computeShrinkWidth(ln){let rn=findElements(ln,".fc-scrollgrid-shrink"),an=0;for(let sn of rn)an=Math.max(an,computeSmallestCellWidth(sn));return Math.ceil(an)}function getSectionHasLiquidHeight(ln,rn){return ln.liquid&&rn.liquid}function getAllowYScrolling(ln,rn){return rn.maxHeight!=null||getSectionHasLiquidHeight(ln,rn)}function renderChunkContent(ln,rn,an,sn){let{expandRows:on}=an;return typeof rn.content=="function"?rn.content(an):y("table",{role:"presentation",className:[rn.tableClassName,ln.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:an.tableMinWidth,width:an.clientWidth,height:on?an.clientHeight:""}},an.tableColGroupNode,y(sn?"thead":"tbody",{role:"presentation"},typeof rn.rowContent=="function"?rn.rowContent(an):rn.rowContent))}function isColPropsEqual(ln,rn){return isArraysEqual(ln,rn,isPropsEqual)}function renderMicroColGroup(ln,rn){let an=[];for(let sn of ln){let on=sn.span||1;for(let cn=0;cn<on;cn+=1)an.push(y("col",{style:{width:sn.width==="shrink"?sanitizeShrinkWidth(rn):sn.width||"",minWidth:sn.minWidth||""}}))}return y("colgroup",{},...an)}function sanitizeShrinkWidth(ln){return ln??4}function hasShrinkWidth(ln){for(let rn of ln)if(rn.width==="shrink")return!0;return!1}function getScrollGridClassNames(ln,rn){let an=["fc-scrollgrid",rn.theme.getClass("table")];return ln&&an.push("fc-scrollgrid-liquid"),an}function getSectionClassNames(ln,rn){let an=["fc-scrollgrid-section",`fc-scrollgrid-section-${ln.type}`,ln.className];return rn&&ln.liquid&&ln.maxHeight==null&&an.push("fc-scrollgrid-section-liquid"),ln.isSticky&&an.push("fc-scrollgrid-section-sticky"),an}function renderScrollShim(ln){return y("div",{className:"fc-scrollgrid-sticky-shim",style:{width:ln.clientWidth,minWidth:ln.tableMinWidth}})}function getStickyHeaderDates(ln){let{stickyHeaderDates:rn}=ln;return(rn==null||rn==="auto")&&(rn=ln.height==="auto"||ln.viewHeight==="auto"),rn}function getStickyFooterScrollbar(ln){let{stickyFooterScrollbar:rn}=ln;return(rn==null||rn==="auto")&&(rn=ln.height==="auto"||ln.viewHeight==="auto"),rn}class SimpleScrollGrid extends BaseComponent{constructor(){super(...arguments),this.processCols=memoize(rn=>rn,isColPropsEqual),this.renderMicroColGroup=memoize(renderMicroColGroup),this.scrollerRefs=new RefMap,this.scrollerElRefs=new RefMap(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:rn,state:an,context:sn}=this,on=rn.sections||[],cn=this.processCols(rn.cols),un=this.renderMicroColGroup(cn,an.shrinkWidth),pn=getScrollGridClassNames(rn.liquid,sn);rn.collapsibleWidth&&pn.push("fc-scrollgrid-collapsible");let fn=on.length,mn=0,xn,vn=[],yn=[],wn=[];for(;mn<fn&&(xn=on[mn]).type==="header";)vn.push(this.renderSection(xn,un,!0)),mn+=1;for(;mn<fn&&(xn=on[mn]).type==="body";)yn.push(this.renderSection(xn,un,!1)),mn+=1;for(;mn<fn&&(xn=on[mn]).type==="footer";)wn.push(this.renderSection(xn,un,!0)),mn+=1;let An=!getCanVGrowWithinCell();const Cn={role:"rowgroup"};return y("table",{role:"grid",className:pn.join(" "),style:{height:rn.height}},!!(!An&&vn.length)&&y("thead",Cn,...vn),!!(!An&&yn.length)&&y("tbody",Cn,...yn),!!(!An&&wn.length)&&y("tfoot",Cn,...wn),An&&y("tbody",Cn,...vn,...yn,...wn))}renderSection(rn,an,sn){return"outerContent"in rn?y(_,{key:rn.key},rn.outerContent):y("tr",{key:rn.key,role:"presentation",className:getSectionClassNames(rn,this.props.liquid).join(" ")},this.renderChunkTd(rn,an,rn.chunk,sn))}renderChunkTd(rn,an,sn,on){if("outerContent"in sn)return sn.outerContent;let{props:cn}=this,{forceYScrollbars:un,scrollerClientWidths:pn,scrollerClientHeights:fn}=this.state,mn=getAllowYScrolling(cn,rn),xn=getSectionHasLiquidHeight(cn,rn),vn=cn.liquid?un?"scroll":mn?"auto":"hidden":"visible",yn=rn.key,wn=renderChunkContent(rn,sn,{tableColGroupNode:an,tableMinWidth:"",clientWidth:!cn.collapsibleWidth&&pn[yn]!==void 0?pn[yn]:null,clientHeight:fn[yn]!==void 0?fn[yn]:null,expandRows:rn.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},on);return y(on?"th":"td",{ref:sn.elRef,role:"presentation"},y("div",{className:`fc-scroller-harness${xn?" fc-scroller-harness-liquid":""}`},y(Scroller,{ref:this.scrollerRefs.createRef(yn),elRef:this.scrollerElRefs.createRef(yn),overflowY:vn,overflowX:cn.liquid?"hidden":"visible",maxHeight:rn.maxHeight,liquid:xn,liquidIsAbsolute:!0},wn)))}_handleScrollerEl(rn,an){let sn=getSectionByKey(this.props.sections,an);sn&&setRef(sn.chunk.scrollerElRef,rn)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return hasShrinkWidth(this.props.cols)?computeShrinkWidth(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let rn=getScrollbarWidths(),{scrollerRefs:an,scrollerElRefs:sn}=this,on=!1,cn={},un={};for(let pn in an.currentMap){let fn=an.currentMap[pn];if(fn&&fn.needsYScrolling()){on=!0;break}}for(let pn of this.props.sections){let fn=pn.key,mn=sn.currentMap[fn];if(mn){let xn=mn.parentNode;cn[fn]=Math.floor(xn.getBoundingClientRect().width-(on?rn.y:0)),un[fn]=Math.floor(xn.getBoundingClientRect().height)}}return{forceYScrollbars:on,scrollerClientWidths:cn,scrollerClientHeights:un}}}SimpleScrollGrid.addStateEquality({scrollerClientWidths:isPropsEqual,scrollerClientHeights:isPropsEqual});function getSectionByKey(ln,rn){for(let an of ln)if(an.key===rn)return an;return null}class EventContainer extends BaseComponent{constructor(){super(...arguments),this.handleEl=rn=>{this.el=rn,rn&&setElSeg(rn,this.props.seg)}}render(){const{props:rn,context:an}=this,{options:sn}=an,{seg:on}=rn,{eventRange:cn}=on,{ui:un}=cn,pn={event:new EventImpl(an,cn.def,cn.instance),view:an.viewApi,timeText:rn.timeText,textColor:un.textColor,backgroundColor:un.backgroundColor,borderColor:un.borderColor,isDraggable:!rn.disableDragging&&computeSegDraggable(on,an),isStartResizable:!rn.disableResizing&&computeSegStartResizable(on,an),isEndResizable:!rn.disableResizing&&computeSegEndResizable(on),isMirror:!!(rn.isDragging||rn.isResizing||rn.isDateSelecting),isStart:!!on.isStart,isEnd:!!on.isEnd,isPast:!!rn.isPast,isFuture:!!rn.isFuture,isToday:!!rn.isToday,isSelected:!!rn.isSelected,isDragging:!!rn.isDragging,isResizing:!!rn.isResizing};return y(ContentContainer,Object.assign({},rn,{elRef:this.handleEl,elClasses:[...getEventClassNames(pn),...on.eventRange.ui.classNames,...rn.elClasses||[]],renderProps:pn,generatorName:"eventContent",customGenerator:sn.eventContent,defaultGenerator:rn.defaultGenerator,classNameGenerator:sn.eventClassNames,didMount:sn.eventDidMount,willUnmount:sn.eventWillUnmount}))}componentDidUpdate(rn){this.el&&this.props.seg!==rn.seg&&setElSeg(this.el,this.props.seg)}}class StandardEvent extends BaseComponent{render(){let{props:rn,context:an}=this,{options:sn}=an,{seg:on}=rn,{ui:cn}=on.eventRange,un=sn.eventTimeFormat||rn.defaultTimeFormat,pn=buildSegTimeText(on,un,an,rn.defaultDisplayEventTime,rn.defaultDisplayEventEnd);return y(EventContainer,Object.assign({},rn,{elTag:"a",elStyle:{borderColor:cn.borderColor,backgroundColor:cn.backgroundColor},elAttrs:getSegAnchorAttrs(on,an),defaultGenerator:renderInnerContent$1$1,timeText:pn}),(fn,mn)=>y(_,null,y(fn,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:mn.textColor}}),!!mn.isStartResizable&&y("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!mn.isEndResizable&&y("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function renderInnerContent$1$1(ln){return y("div",{className:"fc-event-main-frame"},ln.timeText&&y("div",{className:"fc-event-time"},ln.timeText),y("div",{className:"fc-event-title-container"},y("div",{className:"fc-event-title fc-sticky"},ln.event.title||y(_,null," "))))}const NowIndicatorContainer=ln=>y(ViewContextType.Consumer,null,rn=>{let{options:an}=rn,sn={isAxis:ln.isAxis,date:rn.dateEnv.toDate(ln.date),view:rn.viewApi};return y(ContentContainer,Object.assign({},ln,{elTag:ln.elTag||"div",renderProps:sn,generatorName:"nowIndicatorContent",customGenerator:an.nowIndicatorContent,classNameGenerator:an.nowIndicatorClassNames,didMount:an.nowIndicatorDidMount,willUnmount:an.nowIndicatorWillUnmount}))}),DAY_NUM_FORMAT=createFormatter({day:"numeric"});class DayCellContainer extends BaseComponent{constructor(){super(...arguments),this.refineRenderProps=memoizeObjArg(refineRenderProps)}render(){let{props:rn,context:an}=this,{options:sn}=an,on=this.refineRenderProps({date:rn.date,dateProfile:rn.dateProfile,todayRange:rn.todayRange,isMonthStart:rn.isMonthStart||!1,showDayNumber:rn.showDayNumber,extraRenderProps:rn.extraRenderProps,viewApi:an.viewApi,dateEnv:an.dateEnv,monthStartFormat:sn.monthStartFormat});return y(ContentContainer,Object.assign({},rn,{elClasses:[...getDayClassNames(on,an.theme),...rn.elClasses||[]],elAttrs:Object.assign(Object.assign({},rn.elAttrs),on.isDisabled?{}:{"data-date":formatDayString(rn.date)}),renderProps:on,generatorName:"dayCellContent",customGenerator:sn.dayCellContent,defaultGenerator:rn.defaultGenerator,classNameGenerator:on.isDisabled?void 0:sn.dayCellClassNames,didMount:sn.dayCellDidMount,willUnmount:sn.dayCellWillUnmount}))}}function hasCustomDayCellContent(ln){return!!(ln.dayCellContent||hasCustomRenderingHandler("dayCellContent",ln))}function refineRenderProps(ln){let{date:rn,dateEnv:an,dateProfile:sn,isMonthStart:on}=ln,cn=getDateMeta(rn,ln.todayRange,null,sn),un=ln.showDayNumber?an.format(rn,on?ln.monthStartFormat:DAY_NUM_FORMAT):"";return Object.assign(Object.assign(Object.assign({date:an.toDate(rn),view:ln.viewApi},cn),{isMonthStart:on,dayNumberText:un}),ln.extraRenderProps)}class BgEvent extends BaseComponent{render(){let{props:rn}=this,{seg:an}=rn;return y(EventContainer,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:an.eventRange.ui.backgroundColor},defaultGenerator:renderInnerContent$2,seg:an,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:rn.isPast,isFuture:rn.isFuture,isToday:rn.isToday,disableDragging:!0,disableResizing:!0})}}function renderInnerContent$2(ln){let{title:rn}=ln.event;return rn&&y("div",{className:"fc-event-title"},ln.event.title)}function renderFill(ln){return y("div",{className:`fc-${ln}`})}const WeekNumberContainer=ln=>y(ViewContextType.Consumer,null,rn=>{let{dateEnv:an,options:sn}=rn,{date:on}=ln,cn=sn.weekNumberFormat||ln.defaultFormat,un=an.computeWeekNumber(on),pn=an.format(on,cn);return y(ContentContainer,Object.assign({},ln,{renderProps:{num:un,text:pn,date:on},generatorName:"weekNumberContent",customGenerator:sn.weekNumberContent,defaultGenerator:renderInner,classNameGenerator:sn.weekNumberClassNames,didMount:sn.weekNumberDidMount,willUnmount:sn.weekNumberWillUnmount}))});function renderInner(ln){return ln.text}const PADDING_FROM_VIEWPORT=10;class Popover extends BaseComponent{constructor(){super(...arguments),this.state={titleId:getUniqueDomId()},this.handleRootEl=rn=>{this.rootEl=rn,this.props.elRef&&setRef(this.props.elRef,rn)},this.handleDocumentMouseDown=rn=>{const an=getEventTargetViaRoot(rn);this.rootEl.contains(an)||this.handleCloseClick()},this.handleDocumentKeyDown=rn=>{rn.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:rn}=this.props;rn&&rn()}}render(){let{theme:rn,options:an}=this.context,{props:sn,state:on}=this,cn=["fc-popover",rn.getClass("popover")].concat(sn.extraClassNames||[]);return j$1(y("div",Object.assign({},sn.extraAttrs,{id:sn.id,className:cn.join(" "),"aria-labelledby":on.titleId,ref:this.handleRootEl}),y("div",{className:"fc-popover-header "+rn.getClass("popoverHeader")},y("span",{className:"fc-popover-title",id:on.titleId},sn.title),y("span",{className:"fc-popover-close "+rn.getIconClass("close"),title:an.closeHint,onClick:this.handleCloseClick})),y("div",{className:"fc-popover-body "+rn.getClass("popoverContent")},sn.children)),sn.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:rn}=this.context,{alignmentEl:an,alignGridTop:sn}=this.props,{rootEl:on}=this,cn=computeClippedClientRect(an);if(cn){let un=on.getBoundingClientRect(),pn=sn?elementClosest(an,".fc-scrollgrid").getBoundingClientRect().top:cn.top,fn=rn?cn.right-un.width:cn.left;pn=Math.max(pn,PADDING_FROM_VIEWPORT),fn=Math.min(fn,document.documentElement.clientWidth-PADDING_FROM_VIEWPORT-un.width),fn=Math.max(fn,PADDING_FROM_VIEWPORT);let mn=on.offsetParent.getBoundingClientRect();applyStyle(on,{top:pn-mn.top,left:fn-mn.left})}}}class MorePopover extends DateComponent{constructor(){super(...arguments),this.handleRootEl=rn=>{this.rootEl=rn,rn?this.context.registerInteractiveComponent(this,{el:rn,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:rn,dateEnv:an}=this.context,{props:sn}=this,{startDate:on,todayRange:cn,dateProfile:un}=sn,pn=an.format(on,rn.dayPopoverFormat);return y(DayCellContainer,{elRef:this.handleRootEl,date:on,dateProfile:un,todayRange:cn},(fn,mn,xn)=>y(Popover,{elRef:xn.ref,id:sn.id,title:pn,extraClassNames:["fc-more-popover"].concat(xn.className||[]),extraAttrs:xn,parentEl:sn.parentEl,alignmentEl:sn.alignmentEl,alignGridTop:sn.alignGridTop,onClose:sn.onClose},hasCustomDayCellContent(rn)&&y(fn,{elTag:"div",elClasses:["fc-more-popover-misc"]}),sn.children))}queryHit(rn,an,sn,on){let{rootEl:cn,props:un}=this;return rn>=0&&rn<sn&&an>=0&&an<on?{dateProfile:un.dateProfile,dateSpan:Object.assign({allDay:!un.forceTimed,range:{start:un.startDate,end:un.endDate}},un.extraDateSpan),dayEl:cn,rect:{left:0,top:0,right:sn,bottom:on},layer:1}:null}}class MoreLinkContainer extends BaseComponent{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:getUniqueDomId()},this.handleLinkEl=rn=>{this.linkEl=rn,this.props.elRef&&setRef(this.props.elRef,rn)},this.handleClick=rn=>{let{props:an,context:sn}=this,{moreLinkClick:on}=sn.options,cn=computeRange(an).start;function un(pn){let{def:fn,instance:mn,range:xn}=pn.eventRange;return{event:new EventImpl(sn,fn,mn),start:sn.dateEnv.toDate(xn.start),end:sn.dateEnv.toDate(xn.end),isStart:pn.isStart,isEnd:pn.isEnd}}typeof on=="function"&&(on=on({date:cn,allDay:!!an.allDayDate,allSegs:an.allSegs.map(un),hiddenSegs:an.hiddenSegs.map(un),jsEvent:rn,view:sn.viewApi})),!on||on==="popover"?this.setState({isPopoverOpen:!0}):typeof on=="string"&&sn.calendarApi.zoomTo(cn,on)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:rn,state:an}=this;return y(ViewContextType.Consumer,null,sn=>{let{viewApi:on,options:cn,calendarApi:un}=sn,{moreLinkText:pn}=cn,{moreCnt:fn}=rn,mn=computeRange(rn),xn=typeof pn=="function"?pn.call(un,fn):`+${fn} ${pn}`,vn=formatWithOrdinals(cn.moreLinkHint,[fn],xn),yn={num:fn,shortText:`+${fn}`,text:xn,view:on};return y(_,null,!!rn.moreCnt&&y(ContentContainer,{elTag:rn.elTag||"a",elRef:this.handleLinkEl,elClasses:[...rn.elClasses||[],"fc-more-link"],elStyle:rn.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},rn.elAttrs),createAriaClickAttrs(this.handleClick)),{title:vn,"aria-expanded":an.isPopoverOpen,"aria-controls":an.isPopoverOpen?an.popoverId:""}),renderProps:yn,generatorName:"moreLinkContent",customGenerator:cn.moreLinkContent,defaultGenerator:rn.defaultGenerator||renderMoreLinkInner$1,classNameGenerator:cn.moreLinkClassNames,didMount:cn.moreLinkDidMount,willUnmount:cn.moreLinkWillUnmount},rn.children),an.isPopoverOpen&&y(MorePopover,{id:an.popoverId,startDate:mn.start,endDate:mn.end,dateProfile:rn.dateProfile,todayRange:rn.todayRange,extraDateSpan:rn.extraDateSpan,parentEl:this.parentEl,alignmentEl:rn.alignmentElRef?rn.alignmentElRef.current:this.linkEl,alignGridTop:rn.alignGridTop,forceTimed:rn.forceTimed,onClose:this.handlePopoverClose},rn.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=elementClosest(this.linkEl,".fc-view-harness"))}}function renderMoreLinkInner$1(ln){return ln.text}function computeRange(ln){if(ln.allDayDate)return{start:ln.allDayDate,end:addDays(ln.allDayDate,1)};let{hiddenSegs:rn}=ln;return{start:computeEarliestSegStart(rn),end:computeLatestSegEnd(rn)}}function computeEarliestSegStart(ln){return ln.reduce(pickEarliestStart).eventRange.range.start}function pickEarliestStart(ln,rn){return ln.eventRange.range.start<rn.eventRange.range.start?ln:rn}function computeLatestSegEnd(ln){return ln.reduce(pickLatestEnd).eventRange.range.end}function pickLatestEnd(ln,rn){return ln.eventRange.range.end>rn.eventRange.range.end?ln:rn}class Store{constructor(){this.handlers=[]}set(rn){this.currentValue=rn;for(let an of this.handlers)an(rn)}subscribe(rn){this.handlers.push(rn),this.currentValue!==void 0&&rn(this.currentValue)}}class CustomRenderingStore extends Store{constructor(){super(...arguments),this.map=new Map}handle(rn){const{map:an}=this;let sn=!1;rn.isActive?(an.set(rn.id,rn),sn=!0):an.has(rn.id)&&(an.delete(rn.id),sn=!0),sn&&this.set(an)}}const globalLocales=[],MINIMAL_RAW_EN_LOCALE={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},RAW_EN_LOCALE=Object.assign(Object.assign({},MINIMAL_RAW_EN_LOCALE),{buttonHints:{prev:"Previous $0",next:"Next $0",today(ln,rn){return rn==="day"?"Today":`This ${ln}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(ln){return`Show ${ln} more event${ln===1?"":"s"}`}});function organizeRawLocales(ln){let rn=ln.length>0?ln[0].code:"en",an=globalLocales.concat(ln),sn={en:RAW_EN_LOCALE};for(let on of an)sn[on.code]=on;return{map:sn,defaultCode:rn}}function buildLocale(ln,rn){return typeof ln=="object"&&!Array.isArray(ln)?parseLocale(ln.code,[ln.code],ln):queryLocale(ln,rn)}function queryLocale(ln,rn){let an=[].concat(ln||[]),sn=queryRawLocale(an,rn)||RAW_EN_LOCALE;return parseLocale(ln,an,sn)}function queryRawLocale(ln,rn){for(let an=0;an<ln.length;an+=1){let sn=ln[an].toLocaleLowerCase().split("-");for(let on=sn.length;on>0;on-=1){let cn=sn.slice(0,on).join("-");if(rn[cn])return rn[cn]}}return null}function parseLocale(ln,rn,an){let sn=mergeProps([MINIMAL_RAW_EN_LOCALE,an],["buttonText"]);delete sn.code;let{week:on}=sn;return delete sn.week,{codeArg:ln,codes:rn,week:on,simpleNumberFormat:new Intl.NumberFormat(ln),options:sn}}function createPlugin(ln){return{id:guid(),name:ln.name,premiumReleaseDate:ln.premiumReleaseDate?new Date(ln.premiumReleaseDate):void 0,deps:ln.deps||[],reducers:ln.reducers||[],isLoadingFuncs:ln.isLoadingFuncs||[],contextInit:[].concat(ln.contextInit||[]),eventRefiners:ln.eventRefiners||{},eventDefMemberAdders:ln.eventDefMemberAdders||[],eventSourceRefiners:ln.eventSourceRefiners||{},isDraggableTransformers:ln.isDraggableTransformers||[],eventDragMutationMassagers:ln.eventDragMutationMassagers||[],eventDefMutationAppliers:ln.eventDefMutationAppliers||[],dateSelectionTransformers:ln.dateSelectionTransformers||[],datePointTransforms:ln.datePointTransforms||[],dateSpanTransforms:ln.dateSpanTransforms||[],views:ln.views||{},viewPropsTransformers:ln.viewPropsTransformers||[],isPropsValid:ln.isPropsValid||null,externalDefTransforms:ln.externalDefTransforms||[],viewContainerAppends:ln.viewContainerAppends||[],eventDropTransformers:ln.eventDropTransformers||[],componentInteractions:ln.componentInteractions||[],calendarInteractions:ln.calendarInteractions||[],themeClasses:ln.themeClasses||{},eventSourceDefs:ln.eventSourceDefs||[],cmdFormatter:ln.cmdFormatter,recurringTypes:ln.recurringTypes||[],namedTimeZonedImpl:ln.namedTimeZonedImpl,initialView:ln.initialView||"",elementDraggingImpl:ln.elementDraggingImpl,optionChangeHandlers:ln.optionChangeHandlers||{},scrollGridImpl:ln.scrollGridImpl||null,listenerRefiners:ln.listenerRefiners||{},optionRefiners:ln.optionRefiners||{},propSetHandlers:ln.propSetHandlers||{}}}function buildPluginHooks(ln,rn){let an={},sn={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function on(cn){for(let un of cn){const pn=un.name,fn=an[pn];fn===void 0?(an[pn]=un.id,on(un.deps),sn=combineHooks(sn,un)):fn!==un.id&&console.warn(`Duplicate plugin '${pn}'`)}}return ln&&on(ln),on(rn),sn}function buildBuildPluginHooks(){let ln=[],rn=[],an;return(sn,on)=>((!an||!isArraysEqual(sn,ln)||!isArraysEqual(on,rn))&&(an=buildPluginHooks(sn,on)),ln=sn,rn=on,an)}function combineHooks(ln,rn){return{premiumReleaseDate:compareOptionalDates(ln.premiumReleaseDate,rn.premiumReleaseDate),reducers:ln.reducers.concat(rn.reducers),isLoadingFuncs:ln.isLoadingFuncs.concat(rn.isLoadingFuncs),contextInit:ln.contextInit.concat(rn.contextInit),eventRefiners:Object.assign(Object.assign({},ln.eventRefiners),rn.eventRefiners),eventDefMemberAdders:ln.eventDefMemberAdders.concat(rn.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},ln.eventSourceRefiners),rn.eventSourceRefiners),isDraggableTransformers:ln.isDraggableTransformers.concat(rn.isDraggableTransformers),eventDragMutationMassagers:ln.eventDragMutationMassagers.concat(rn.eventDragMutationMassagers),eventDefMutationAppliers:ln.eventDefMutationAppliers.concat(rn.eventDefMutationAppliers),dateSelectionTransformers:ln.dateSelectionTransformers.concat(rn.dateSelectionTransformers),datePointTransforms:ln.datePointTransforms.concat(rn.datePointTransforms),dateSpanTransforms:ln.dateSpanTransforms.concat(rn.dateSpanTransforms),views:Object.assign(Object.assign({},ln.views),rn.views),viewPropsTransformers:ln.viewPropsTransformers.concat(rn.viewPropsTransformers),isPropsValid:rn.isPropsValid||ln.isPropsValid,externalDefTransforms:ln.externalDefTransforms.concat(rn.externalDefTransforms),viewContainerAppends:ln.viewContainerAppends.concat(rn.viewContainerAppends),eventDropTransformers:ln.eventDropTransformers.concat(rn.eventDropTransformers),calendarInteractions:ln.calendarInteractions.concat(rn.calendarInteractions),componentInteractions:ln.componentInteractions.concat(rn.componentInteractions),themeClasses:Object.assign(Object.assign({},ln.themeClasses),rn.themeClasses),eventSourceDefs:ln.eventSourceDefs.concat(rn.eventSourceDefs),cmdFormatter:rn.cmdFormatter||ln.cmdFormatter,recurringTypes:ln.recurringTypes.concat(rn.recurringTypes),namedTimeZonedImpl:rn.namedTimeZonedImpl||ln.namedTimeZonedImpl,initialView:ln.initialView||rn.initialView,elementDraggingImpl:ln.elementDraggingImpl||rn.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},ln.optionChangeHandlers),rn.optionChangeHandlers),scrollGridImpl:rn.scrollGridImpl||ln.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},ln.listenerRefiners),rn.listenerRefiners),optionRefiners:Object.assign(Object.assign({},ln.optionRefiners),rn.optionRefiners),propSetHandlers:Object.assign(Object.assign({},ln.propSetHandlers),rn.propSetHandlers)}}function compareOptionalDates(ln,rn){return ln===void 0?rn:rn===void 0?ln:new Date(Math.max(ln.valueOf(),rn.valueOf()))}class StandardTheme extends Theme{}StandardTheme.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};StandardTheme.prototype.baseIconClass="fc-icon";StandardTheme.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"};StandardTheme.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};StandardTheme.prototype.iconOverrideOption="buttonIcons";StandardTheme.prototype.iconOverrideCustomButtonOption="icon";StandardTheme.prototype.iconOverridePrefix="fc-icon-";function compileViewDefs(ln,rn){let an={},sn;for(sn in ln)ensureViewDef(sn,an,ln,rn);for(sn in rn)ensureViewDef(sn,an,ln,rn);return an}function ensureViewDef(ln,rn,an,sn){if(rn[ln])return rn[ln];let on=buildViewDef(ln,rn,an,sn);return on&&(rn[ln]=on),on}function buildViewDef(ln,rn,an,sn){let on=an[ln],cn=sn[ln],un=xn=>on&&on[xn]!==null?on[xn]:cn&&cn[xn]!==null?cn[xn]:null,pn=un("component"),fn=un("superType"),mn=null;if(fn){if(fn===ln)throw new Error("Can't have a custom view type that references itself");mn=ensureViewDef(fn,rn,an,sn)}return!pn&&mn&&(pn=mn.component),pn?{type:ln,component:pn,defaults:Object.assign(Object.assign({},mn?mn.defaults:{}),on?on.rawOptions:{}),overrides:Object.assign(Object.assign({},mn?mn.overrides:{}),cn?cn.rawOptions:{})}:null}function parseViewConfigs(ln){return mapHash(ln,parseViewConfig)}function parseViewConfig(ln){let rn=typeof ln=="function"?{component:ln}:ln,{component:an}=rn;return rn.content?an=createViewHookComponent(rn):an&&!(an.prototype instanceof BaseComponent)&&(an=createViewHookComponent(Object.assign(Object.assign({},rn),{content:an}))),{superType:rn.type,component:an,rawOptions:rn}}function createViewHookComponent(ln){return rn=>y(ViewContextType.Consumer,null,an=>y(ContentContainer,{elTag:"div",elClasses:buildViewClassNames(an.viewSpec),renderProps:Object.assign(Object.assign({},rn),{nextDayThreshold:an.options.nextDayThreshold}),generatorName:void 0,customGenerator:ln.content,classNameGenerator:ln.classNames,didMount:ln.didMount,willUnmount:ln.willUnmount}))}function buildViewSpecs(ln,rn,an,sn){let on=parseViewConfigs(ln),cn=parseViewConfigs(rn.views),un=compileViewDefs(on,cn);return mapHash(un,pn=>buildViewSpec(pn,cn,rn,an,sn))}function buildViewSpec(ln,rn,an,sn,on){let cn=ln.overrides.duration||ln.defaults.duration||sn.duration||an.duration,un=null,pn="",fn="",mn={};if(cn&&(un=createDurationCached(cn),un)){let yn=greatestDurationDenominator(un);pn=yn.unit,yn.value===1&&(fn=pn,mn=rn[pn]?rn[pn].rawOptions:{})}let xn=yn=>{let wn=yn.buttonText||{},An=ln.defaults.buttonTextKey;return An!=null&&wn[An]!=null?wn[An]:wn[ln.type]!=null?wn[ln.type]:wn[fn]!=null?wn[fn]:null},vn=yn=>{let wn=yn.buttonHints||{},An=ln.defaults.buttonTextKey;return An!=null&&wn[An]!=null?wn[An]:wn[ln.type]!=null?wn[ln.type]:wn[fn]!=null?wn[fn]:null};return{type:ln.type,component:ln.component,duration:un,durationUnit:pn,singleUnit:fn,optionDefaults:ln.defaults,optionOverrides:Object.assign(Object.assign({},mn),ln.overrides),buttonTextOverride:xn(sn)||xn(an)||ln.overrides.buttonText,buttonTextDefault:xn(on)||ln.defaults.buttonText||xn(BASE_OPTION_DEFAULTS)||ln.type,buttonTitleOverride:vn(sn)||vn(an)||ln.overrides.buttonHint,buttonTitleDefault:vn(on)||ln.defaults.buttonHint||vn(BASE_OPTION_DEFAULTS)}}let durationInputMap={};function createDurationCached(ln){let rn=JSON.stringify(ln),an=durationInputMap[rn];return an===void 0&&(an=createDuration(ln),durationInputMap[rn]=an),an}function reduceViewType(ln,rn){switch(rn.type){case"CHANGE_VIEW_TYPE":ln=rn.viewType}return ln}function reduceDynamicOptionOverrides(ln,rn){switch(rn.type){case"SET_OPTION":return Object.assign(Object.assign({},ln),{[rn.optionName]:rn.rawOptionValue});default:return ln}}function reduceDateProfile(ln,rn,an,sn){let on;switch(rn.type){case"CHANGE_VIEW_TYPE":return sn.build(rn.dateMarker||an);case"CHANGE_DATE":return sn.build(rn.dateMarker);case"PREV":if(on=sn.buildPrev(ln,an),on.isValid)return on;break;case"NEXT":if(on=sn.buildNext(ln,an),on.isValid)return on;break}return ln}function initEventSources(ln,rn,an){let sn=rn?rn.activeRange:null;return addSources({},parseInitialSources(ln,an),sn,an)}function reduceEventSources(ln,rn,an,sn){let on=an?an.activeRange:null;switch(rn.type){case"ADD_EVENT_SOURCES":return addSources(ln,rn.sources,on,sn);case"REMOVE_EVENT_SOURCE":return removeSource(ln,rn.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return an?fetchDirtySources(ln,on,sn):ln;case"FETCH_EVENT_SOURCES":return fetchSourcesByIds(ln,rn.sourceIds?arrayToHash(rn.sourceIds):excludeStaticSources(ln,sn),on,rn.isRefetch||!1,sn);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return receiveResponse(ln,rn.sourceId,rn.fetchId,rn.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return ln}}function reduceEventSourcesNewTimeZone(ln,rn,an){let sn=rn?rn.activeRange:null;return fetchSourcesByIds(ln,excludeStaticSources(ln,an),sn,!0,an)}function computeEventSourcesLoading(ln){for(let rn in ln)if(ln[rn].isFetching)return!0;return!1}function addSources(ln,rn,an,sn){let on={};for(let cn of rn)on[cn.sourceId]=cn;return an&&(on=fetchDirtySources(on,an,sn)),Object.assign(Object.assign({},ln),on)}function removeSource(ln,rn){return filterHash(ln,an=>an.sourceId!==rn)}function fetchDirtySources(ln,rn,an){return fetchSourcesByIds(ln,filterHash(ln,sn=>isSourceDirty(sn,rn,an)),rn,!1,an)}function isSourceDirty(ln,rn,an){return doesSourceNeedRange(ln,an)?!an.options.lazyFetching||!ln.fetchRange||ln.isFetching||rn.start<ln.fetchRange.start||rn.end>ln.fetchRange.end:!ln.latestFetchId}function fetchSourcesByIds(ln,rn,an,sn,on){let cn={};for(let un in ln){let pn=ln[un];rn[un]?cn[un]=fetchSource(pn,an,sn,on):cn[un]=pn}return cn}function fetchSource(ln,rn,an,sn){let{options:on,calendarApi:cn}=sn,un=sn.pluginHooks.eventSourceDefs[ln.sourceDefId],pn=guid();return un.fetch({eventSource:ln,range:rn,isRefetch:an,context:sn},fn=>{let{rawEvents:mn}=fn;on.eventSourceSuccess&&(mn=on.eventSourceSuccess.call(cn,mn,fn.response)||mn),ln.success&&(mn=ln.success.call(cn,mn,fn.response)||mn),sn.dispatch({type:"RECEIVE_EVENTS",sourceId:ln.sourceId,fetchId:pn,fetchRange:rn,rawEvents:mn})},fn=>{let mn=!1;on.eventSourceFailure&&(on.eventSourceFailure.call(cn,fn),mn=!0),ln.failure&&(ln.failure(fn),mn=!0),mn||console.warn(fn.message,fn),sn.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:ln.sourceId,fetchId:pn,fetchRange:rn,error:fn})}),Object.assign(Object.assign({},ln),{isFetching:!0,latestFetchId:pn})}function receiveResponse(ln,rn,an,sn){let on=ln[rn];return on&&an===on.latestFetchId?Object.assign(Object.assign({},ln),{[rn]:Object.assign(Object.assign({},on),{isFetching:!1,fetchRange:sn})}):ln}function excludeStaticSources(ln,rn){return filterHash(ln,an=>doesSourceNeedRange(an,rn))}function parseInitialSources(ln,rn){let an=buildEventSourceRefiners(rn),sn=[].concat(ln.eventSources||[]),on=[];ln.initialEvents&&sn.unshift(ln.initialEvents),ln.events&&sn.unshift(ln.events);for(let cn of sn){let un=parseEventSource(cn,rn,an);un&&on.push(un)}return on}function doesSourceNeedRange(ln,rn){return!rn.pluginHooks.eventSourceDefs[ln.sourceDefId].ignoreRange}function reduceDateSelection(ln,rn){switch(rn.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return rn.selection;default:return ln}}function reduceSelectedEvent(ln,rn){switch(rn.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return rn.eventInstanceId;default:return ln}}function reduceEventDrag(ln,rn){let an;switch(rn.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return an=rn.state,{affectedEvents:an.affectedEvents,mutatedEvents:an.mutatedEvents,isEvent:an.isEvent};default:return ln}}function reduceEventResize(ln,rn){let an;switch(rn.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return an=rn.state,{affectedEvents:an.affectedEvents,mutatedEvents:an.mutatedEvents,isEvent:an.isEvent};default:return ln}}function parseToolbars(ln,rn,an,sn,on){let cn=ln.headerToolbar?parseToolbar(ln.headerToolbar,ln,rn,an,sn,on):null,un=ln.footerToolbar?parseToolbar(ln.footerToolbar,ln,rn,an,sn,on):null;return{header:cn,footer:un}}function parseToolbar(ln,rn,an,sn,on,cn){let un={},pn=[],fn=!1;for(let mn in ln){let xn=ln[mn],vn=parseSection(xn,rn,an,sn,on,cn);un[mn]=vn.widgets,pn.push(...vn.viewsWithButtons),fn=fn||vn.hasTitle}return{sectionWidgets:un,viewsWithButtons:pn,hasTitle:fn}}function parseSection(ln,rn,an,sn,on,cn){let un=rn.direction==="rtl",pn=rn.customButtons||{},fn=an.buttonText||{},mn=rn.buttonText||{},xn=an.buttonHints||{},vn=rn.buttonHints||{},yn=ln?ln.split(" "):[],wn=[],An=!1;return{widgets:yn.map(kn=>kn.split(",").map(Mn=>{if(Mn==="title")return An=!0,{buttonName:Mn};let Tn,On,Pn,Nn,In,jn;if(Tn=pn[Mn])Pn=Fn=>{Tn.click&&Tn.click.call(Fn.target,Fn,Fn.target)},(Nn=sn.getCustomButtonIconClass(Tn))||(Nn=sn.getIconClass(Mn,un))||(In=Tn.text),jn=Tn.hint||Tn.text;else if(On=on[Mn]){wn.push(Mn),Pn=()=>{cn.changeView(Mn)},(In=On.buttonTextOverride)||(Nn=sn.getIconClass(Mn,un))||(In=On.buttonTextDefault);let Fn=On.buttonTextOverride||On.buttonTextDefault;jn=formatWithOrdinals(On.buttonTitleOverride||On.buttonTitleDefault||rn.viewHint,[Fn,Mn],Fn)}else if(cn[Mn])if(Pn=()=>{cn[Mn]()},(In=fn[Mn])||(Nn=sn.getIconClass(Mn,un))||(In=mn[Mn]),Mn==="prevYear"||Mn==="nextYear"){let Fn=Mn==="prevYear"?"prev":"next";jn=formatWithOrdinals(xn[Fn]||vn[Fn],[mn.year||"year","year"],mn[Mn])}else jn=Fn=>formatWithOrdinals(xn[Mn]||vn[Mn],[mn[Fn]||Fn,Fn],mn[Mn]);return{buttonName:Mn,buttonClick:Pn,buttonIcon:Nn,buttonText:In,buttonHint:jn}})),viewsWithButtons:wn,hasTitle:An}}class ViewImpl{constructor(rn,an,sn){this.type=rn,this.getCurrentData=an,this.dateEnv=sn}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(rn){return this.getCurrentData().options[rn]}}let eventSourceDef$2={ignoreRange:!0,parseMeta(ln){return Array.isArray(ln.events)?ln.events:null},fetch(ln,rn){rn({rawEvents:ln.eventSource.meta})}};const arrayEventSourcePlugin=createPlugin({name:"array-event-source",eventSourceDefs:[eventSourceDef$2]});let eventSourceDef$1={parseMeta(ln){return typeof ln.events=="function"?ln.events:null},fetch(ln,rn,an){const{dateEnv:sn}=ln.context,on=ln.eventSource.meta;unpromisify(on.bind(null,buildRangeApiWithTimeZone(ln.range,sn)),cn=>rn({rawEvents:cn}),an)}};const funcEventSourcePlugin=createPlugin({name:"func-event-source",eventSourceDefs:[eventSourceDef$1]}),JSON_FEED_EVENT_SOURCE_REFINERS={method:String,extraParams:identity,startParam:String,endParam:String,timeZoneParam:String};let eventSourceDef={parseMeta(ln){return ln.url&&(ln.format==="json"||!ln.format)?{url:ln.url,format:"json",method:(ln.method||"GET").toUpperCase(),extraParams:ln.extraParams,startParam:ln.startParam,endParam:ln.endParam,timeZoneParam:ln.timeZoneParam}:null},fetch(ln,rn,an){const{meta:sn}=ln.eventSource,on=buildRequestParams(sn,ln.range,ln.context);requestJson(sn.method,sn.url,on).then(([cn,un])=>{rn({rawEvents:cn,response:un})},an)}};const jsonFeedEventSourcePlugin=createPlugin({name:"json-event-source",eventSourceRefiners:JSON_FEED_EVENT_SOURCE_REFINERS,eventSourceDefs:[eventSourceDef]});function buildRequestParams(ln,rn,an){let{dateEnv:sn,options:on}=an,cn,un,pn,fn,mn={};return cn=ln.startParam,cn==null&&(cn=on.startParam),un=ln.endParam,un==null&&(un=on.endParam),pn=ln.timeZoneParam,pn==null&&(pn=on.timeZoneParam),typeof ln.extraParams=="function"?fn=ln.extraParams():fn=ln.extraParams||{},Object.assign(mn,fn),mn[cn]=sn.formatIso(rn.start),mn[un]=sn.formatIso(rn.end),sn.timeZone!=="local"&&(mn[pn]=sn.timeZone),mn}const SIMPLE_RECURRING_REFINERS={daysOfWeek:identity,startTime:createDuration,endTime:createDuration,duration:createDuration,startRecur:identity,endRecur:identity};let recurring={parse(ln,rn){if(ln.daysOfWeek||ln.startTime||ln.endTime||ln.startRecur||ln.endRecur){let an={daysOfWeek:ln.daysOfWeek||null,startTime:ln.startTime||null,endTime:ln.endTime||null,startRecur:ln.startRecur?rn.createMarker(ln.startRecur):null,endRecur:ln.endRecur?rn.createMarker(ln.endRecur):null},sn;return ln.duration&&(sn=ln.duration),!sn&&ln.startTime&&ln.endTime&&(sn=subtractDurations(ln.endTime,ln.startTime)),{allDayGuess:!ln.startTime&&!ln.endTime,duration:sn,typeData:an}}return null},expand(ln,rn,an){let sn=intersectRanges(rn,{start:ln.startRecur,end:ln.endRecur});return sn?expandRanges(ln.daysOfWeek,ln.startTime,sn,an):[]}};const simpleRecurringEventsPlugin=createPlugin({name:"simple-recurring-event",recurringTypes:[recurring],eventRefiners:SIMPLE_RECURRING_REFINERS});function expandRanges(ln,rn,an,sn){let on=ln?arrayToHash(ln):null,cn=startOfDay(an.start),un=an.end,pn=[];for(;cn<un;){let fn;(!on||on[cn.getUTCDay()])&&(rn?fn=sn.add(cn,rn):fn=cn,pn.push(fn)),cn=addDays(cn,1)}return pn}const changeHandlerPlugin=createPlugin({name:"change-handler",optionChangeHandlers:{events(ln,rn){handleEventSources([ln],rn)},eventSources:handleEventSources}});function handleEventSources(ln,rn){let an=hashValuesToArray(rn.getCurrentData().eventSources);if(an.length===1&&ln.length===1&&Array.isArray(an[0]._raw)&&Array.isArray(ln[0])){rn.dispatch({type:"RESET_RAW_EVENTS",sourceId:an[0].sourceId,rawEvents:ln[0]});return}let sn=[];for(let on of ln){let cn=!1;for(let un=0;un<an.length;un+=1)if(an[un]._raw===on){an.splice(un,1),cn=!0;break}cn||sn.push(on)}for(let on of an)rn.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:on.sourceId});for(let on of sn)rn.calendarApi.addEventSource(on)}function handleDateProfile(ln,rn){rn.emitter.trigger("datesSet",Object.assign(Object.assign({},buildRangeApiWithTimeZone(ln.activeRange,rn.dateEnv)),{view:rn.viewApi}))}function handleEventStore(ln,rn){let{emitter:an}=rn;an.hasHandlers("eventsSet")&&an.trigger("eventsSet",buildEventApis(ln,rn))}const globalPlugins=[arrayEventSourcePlugin,funcEventSourcePlugin,jsonFeedEventSourcePlugin,simpleRecurringEventsPlugin,changeHandlerPlugin,createPlugin({name:"misc",isLoadingFuncs:[ln=>computeEventSourcesLoading(ln.eventSources)],propSetHandlers:{dateProfile:handleDateProfile,eventStore:handleEventStore}})];class TaskRunner{constructor(rn,an){this.runTaskOption=rn,this.drainedOption=an,this.queue=[],this.delayedRunner=new DelayedRunner(this.drain.bind(this))}request(rn,an){this.queue.push(rn),this.delayedRunner.request(an)}pause(rn){this.delayedRunner.pause(rn)}resume(rn,an){this.delayedRunner.resume(rn,an)}drain(){let{queue:rn}=this;for(;rn.length;){let an=[],sn;for(;sn=rn.shift();)this.runTask(sn),an.push(sn);this.drained(an)}}runTask(rn){this.runTaskOption&&this.runTaskOption(rn)}drained(rn){this.drainedOption&&this.drainedOption(rn)}}function buildTitle(ln,rn,an){let sn;return/^(year|month)$/.test(ln.currentRangeUnit)?sn=ln.currentRange:sn=ln.activeRange,an.formatRange(sn.start,sn.end,createFormatter(rn.titleFormat||buildTitleFormat(ln)),{isEndExclusive:ln.isRangeAllDay,defaultSeparator:rn.titleRangeSeparator})}function buildTitleFormat(ln){let{currentRangeUnit:rn}=ln;if(rn==="year")return{year:"numeric"};if(rn==="month")return{year:"numeric",month:"long"};let an=diffWholeDays(ln.currentRange.start,ln.currentRange.end);return an!==null&&an>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class CalendarDataManager{constructor(rn){this.computeCurrentViewData=memoize(this._computeCurrentViewData),this.organizeRawLocales=memoize(organizeRawLocales),this.buildLocale=memoize(buildLocale),this.buildPluginHooks=buildBuildPluginHooks(),this.buildDateEnv=memoize(buildDateEnv$1),this.buildTheme=memoize(buildTheme),this.parseToolbars=memoize(parseToolbars),this.buildViewSpecs=memoize(buildViewSpecs),this.buildDateProfileGenerator=memoizeObjArg(buildDateProfileGenerator),this.buildViewApi=memoize(buildViewApi),this.buildViewUiProps=memoizeObjArg(buildViewUiProps),this.buildEventUiBySource=memoize(buildEventUiBySource,isPropsEqual),this.buildEventUiBases=memoize(buildEventUiBases),this.parseContextBusinessHours=memoizeObjArg(parseContextBusinessHours),this.buildTitle=memoize(buildTitle),this.emitter=new Emitter,this.actionRunner=new TaskRunner(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=yn=>{this.actionRunner.request(yn)},this.props=rn,this.actionRunner.pause();let an={},sn=this.computeOptionsData(rn.optionOverrides,an,rn.calendarApi),on=sn.calendarOptions.initialView||sn.pluginHooks.initialView,cn=this.computeCurrentViewData(on,sn,rn.optionOverrides,an);rn.calendarApi.currentDataManager=this,this.emitter.setThisContext(rn.calendarApi),this.emitter.setOptions(cn.options);let un=getInitialDate(sn.calendarOptions,sn.dateEnv),pn=cn.dateProfileGenerator.build(un);rangeContainsMarker(pn.activeRange,un)||(un=pn.currentRange.start);let fn={dateEnv:sn.dateEnv,options:sn.calendarOptions,pluginHooks:sn.pluginHooks,calendarApi:rn.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let yn of sn.pluginHooks.contextInit)yn(fn);let mn=initEventSources(sn.calendarOptions,pn,fn),xn={dynamicOptionOverrides:an,currentViewType:on,currentDate:un,dateProfile:pn,businessHours:this.parseContextBusinessHours(fn),eventSources:mn,eventUiBases:{},eventStore:createEmptyEventStore(),renderableEventStore:createEmptyEventStore(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(fn).selectionConfig},vn=Object.assign(Object.assign({},fn),xn);for(let yn of sn.pluginHooks.reducers)Object.assign(xn,yn(null,null,vn));computeIsLoading(xn,fn)&&this.emitter.trigger("loading",!0),this.state=xn,this.updateData(),this.actionRunner.resume()}resetOptions(rn,an){let{props:sn}=this;an===void 0?sn.optionOverrides=rn:(sn.optionOverrides=Object.assign(Object.assign({},sn.optionOverrides||{}),rn),this.optionsForRefining.push(...an)),(an===void 0||an.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(rn){let{props:an,state:sn,emitter:on}=this,cn=reduceDynamicOptionOverrides(sn.dynamicOptionOverrides,rn),un=this.computeOptionsData(an.optionOverrides,cn,an.calendarApi),pn=reduceViewType(sn.currentViewType,rn),fn=this.computeCurrentViewData(pn,un,an.optionOverrides,cn);an.calendarApi.currentDataManager=this,on.setThisContext(an.calendarApi),on.setOptions(fn.options);let mn={dateEnv:un.dateEnv,options:un.calendarOptions,pluginHooks:un.pluginHooks,calendarApi:an.calendarApi,dispatch:this.dispatch,emitter:on,getCurrentData:this.getCurrentData},{currentDate:xn,dateProfile:vn}=sn;this.data&&this.data.dateProfileGenerator!==fn.dateProfileGenerator&&(vn=fn.dateProfileGenerator.build(xn)),xn=reduceCurrentDate(xn,rn),vn=reduceDateProfile(vn,rn,xn,fn.dateProfileGenerator),(rn.type==="PREV"||rn.type==="NEXT"||!rangeContainsMarker(vn.currentRange,xn))&&(xn=vn.currentRange.start);let yn=reduceEventSources(sn.eventSources,rn,vn,mn),wn=reduceEventStore(sn.eventStore,rn,yn,vn,mn),Cn=computeEventSourcesLoading(yn)&&!fn.options.progressiveEventRendering&&sn.renderableEventStore||wn,{eventUiSingleBase:kn,selectionConfig:Mn}=this.buildViewUiProps(mn),Tn=this.buildEventUiBySource(yn),On=this.buildEventUiBases(Cn.defs,kn,Tn),Pn={dynamicOptionOverrides:cn,currentViewType:pn,currentDate:xn,dateProfile:vn,eventSources:yn,eventStore:wn,renderableEventStore:Cn,selectionConfig:Mn,eventUiBases:On,businessHours:this.parseContextBusinessHours(mn),dateSelection:reduceDateSelection(sn.dateSelection,rn),eventSelection:reduceSelectedEvent(sn.eventSelection,rn),eventDrag:reduceEventDrag(sn.eventDrag,rn),eventResize:reduceEventResize(sn.eventResize,rn)},Nn=Object.assign(Object.assign({},mn),Pn);for(let Fn of un.pluginHooks.reducers)Object.assign(Pn,Fn(sn,rn,Nn));let In=computeIsLoading(sn,mn),jn=computeIsLoading(Pn,mn);!In&&jn?on.trigger("loading",!0):In&&!jn&&on.trigger("loading",!1),this.state=Pn,an.onAction&&an.onAction(rn)}updateData(){let{props:rn,state:an}=this,sn=this.data,on=this.computeOptionsData(rn.optionOverrides,an.dynamicOptionOverrides,rn.calendarApi),cn=this.computeCurrentViewData(an.currentViewType,on,rn.optionOverrides,an.dynamicOptionOverrides),un=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(an.dateProfile,cn.options,on.dateEnv),calendarApi:rn.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},on),cn),an),pn=on.pluginHooks.optionChangeHandlers,fn=sn&&sn.calendarOptions,mn=on.calendarOptions;if(fn&&fn!==mn){fn.timeZone!==mn.timeZone&&(an.eventSources=un.eventSources=reduceEventSourcesNewTimeZone(un.eventSources,an.dateProfile,un),an.eventStore=un.eventStore=rezoneEventStoreDates(un.eventStore,sn.dateEnv,un.dateEnv),an.renderableEventStore=un.renderableEventStore=rezoneEventStoreDates(un.renderableEventStore,sn.dateEnv,un.dateEnv));for(let xn in pn)(this.optionsForHandling.indexOf(xn)!==-1||fn[xn]!==mn[xn])&&pn[xn](mn[xn],un)}this.optionsForHandling=[],rn.onData&&rn.onData(un)}computeOptionsData(rn,an,sn){if(!this.optionsForRefining.length&&rn===this.stableOptionOverrides&&an===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:on,pluginHooks:cn,localeDefaults:un,availableLocaleData:pn,extra:fn}=this.processRawCalendarOptions(rn,an);warnUnknownOptions(fn);let mn=this.buildDateEnv(on.timeZone,on.locale,on.weekNumberCalculation,on.firstDay,on.weekText,cn,pn,on.defaultRangeSeparator),xn=this.buildViewSpecs(cn.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,un),vn=this.buildTheme(on,cn),yn=this.parseToolbars(on,this.stableOptionOverrides,vn,xn,sn);return this.stableCalendarOptionsData={calendarOptions:on,pluginHooks:cn,dateEnv:mn,viewSpecs:xn,theme:vn,toolbarConfig:yn,localeDefaults:un,availableRawLocales:pn.map}}processRawCalendarOptions(rn,an){let{locales:sn,locale:on}=mergeRawOptions([BASE_OPTION_DEFAULTS,rn,an]),cn=this.organizeRawLocales(sn),un=cn.map,pn=this.buildLocale(on||cn.defaultCode,un).options,fn=this.buildPluginHooks(rn.plugins||[],globalPlugins),mn=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},BASE_OPTION_REFINERS),CALENDAR_LISTENER_REFINERS),CALENDAR_OPTION_REFINERS),fn.listenerRefiners),fn.optionRefiners),xn={},vn=mergeRawOptions([BASE_OPTION_DEFAULTS,pn,rn,an]),yn={},wn=this.currentCalendarOptionsInput,An=this.currentCalendarOptionsRefined,Cn=!1;for(let kn in vn)this.optionsForRefining.indexOf(kn)===-1&&(vn[kn]===wn[kn]||COMPLEX_OPTION_COMPARATORS[kn]&&kn in wn&&COMPLEX_OPTION_COMPARATORS[kn](wn[kn],vn[kn]))?yn[kn]=An[kn]:mn[kn]?(yn[kn]=mn[kn](vn[kn]),Cn=!0):xn[kn]=wn[kn];return Cn&&(this.currentCalendarOptionsInput=vn,this.currentCalendarOptionsRefined=yn,this.stableOptionOverrides=rn,this.stableDynamicOptionOverrides=an),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:fn,availableLocaleData:cn,localeDefaults:pn,extra:xn}}_computeCurrentViewData(rn,an,sn,on){let cn=an.viewSpecs[rn];if(!cn)throw new Error(`viewType "${rn}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:un,extra:pn}=this.processRawViewOptions(cn,an.pluginHooks,an.localeDefaults,sn,on);warnUnknownOptions(pn);let fn=this.buildDateProfileGenerator({dateProfileGeneratorClass:cn.optionDefaults.dateProfileGeneratorClass,duration:cn.duration,durationUnit:cn.durationUnit,usesMinMaxTime:cn.optionDefaults.usesMinMaxTime,dateEnv:an.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:un.slotMinTime,slotMaxTime:un.slotMaxTime,showNonCurrentDates:un.showNonCurrentDates,dayCount:un.dayCount,dateAlignment:un.dateAlignment,dateIncrement:un.dateIncrement,hiddenDays:un.hiddenDays,weekends:un.weekends,nowInput:un.now,validRangeInput:un.validRange,visibleRangeInput:un.visibleRange,fixedWeekCount:un.fixedWeekCount}),mn=this.buildViewApi(rn,this.getCurrentData,an.dateEnv);return{viewSpec:cn,options:un,dateProfileGenerator:fn,viewApi:mn}}processRawViewOptions(rn,an,sn,on,cn){let un=mergeRawOptions([BASE_OPTION_DEFAULTS,rn.optionDefaults,sn,on,rn.optionOverrides,cn]),pn=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},BASE_OPTION_REFINERS),CALENDAR_LISTENER_REFINERS),CALENDAR_OPTION_REFINERS),VIEW_OPTION_REFINERS),an.listenerRefiners),an.optionRefiners),fn={},mn=this.currentViewOptionsInput,xn=this.currentViewOptionsRefined,vn=!1,yn={};for(let wn in un)un[wn]===mn[wn]||COMPLEX_OPTION_COMPARATORS[wn]&&COMPLEX_OPTION_COMPARATORS[wn](un[wn],mn[wn])?fn[wn]=xn[wn]:(un[wn]===this.currentCalendarOptionsInput[wn]||COMPLEX_OPTION_COMPARATORS[wn]&&COMPLEX_OPTION_COMPARATORS[wn](un[wn],this.currentCalendarOptionsInput[wn])?wn in this.currentCalendarOptionsRefined&&(fn[wn]=this.currentCalendarOptionsRefined[wn]):pn[wn]?fn[wn]=pn[wn](un[wn]):yn[wn]=un[wn],vn=!0);return vn&&(this.currentViewOptionsInput=un,this.currentViewOptionsRefined=fn),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:yn}}}function buildDateEnv$1(ln,rn,an,sn,on,cn,un,pn){let fn=buildLocale(rn||un.defaultCode,un.map);return new DateEnv({calendarSystem:"gregory",timeZone:ln,namedTimeZoneImpl:cn.namedTimeZonedImpl,locale:fn,weekNumberCalculation:an,firstDay:sn,weekText:on,cmdFormatter:cn.cmdFormatter,defaultSeparator:pn})}function buildTheme(ln,rn){let an=rn.themeClasses[ln.themeSystem]||StandardTheme;return new an(ln)}function buildDateProfileGenerator(ln){let rn=ln.dateProfileGeneratorClass||DateProfileGenerator;return new rn(ln)}function buildViewApi(ln,rn,an){return new ViewImpl(ln,rn,an)}function buildEventUiBySource(ln){return mapHash(ln,rn=>rn.ui)}function buildEventUiBases(ln,rn,an){let sn={"":rn};for(let on in ln){let cn=ln[on];cn.sourceId&&an[cn.sourceId]&&(sn[on]=an[cn.sourceId])}return sn}function buildViewUiProps(ln){let{options:rn}=ln;return{eventUiSingleBase:createEventUi({display:rn.eventDisplay,editable:rn.editable,startEditable:rn.eventStartEditable,durationEditable:rn.eventDurationEditable,constraint:rn.eventConstraint,overlap:typeof rn.eventOverlap=="boolean"?rn.eventOverlap:void 0,allow:rn.eventAllow,backgroundColor:rn.eventBackgroundColor,borderColor:rn.eventBorderColor,textColor:rn.eventTextColor,color:rn.eventColor},ln),selectionConfig:createEventUi({constraint:rn.selectConstraint,overlap:typeof rn.selectOverlap=="boolean"?rn.selectOverlap:void 0,allow:rn.selectAllow},ln)}}function computeIsLoading(ln,rn){for(let an of rn.pluginHooks.isLoadingFuncs)if(an(ln))return!0;return!1}function parseContextBusinessHours(ln){return parseBusinessHours(ln.options.businessHours,ln)}function warnUnknownOptions(ln,rn){for(let an in ln)console.warn(`Unknown option '${an}'`)}class ToolbarSection extends BaseComponent{render(){let rn=this.props.widgetGroups.map(an=>this.renderWidgetGroup(an));return y("div",{className:"fc-toolbar-chunk"},...rn)}renderWidgetGroup(rn){let{props:an}=this,{theme:sn}=this.context,on=[],cn=!0;for(let un of rn){let{buttonName:pn,buttonClick:fn,buttonText:mn,buttonIcon:xn,buttonHint:vn}=un;if(pn==="title")cn=!1,on.push(y("h2",{className:"fc-toolbar-title",id:an.titleId},an.title));else{let yn=pn===an.activeButton,wn=!an.isTodayEnabled&&pn==="today"||!an.isPrevEnabled&&pn==="prev"||!an.isNextEnabled&&pn==="next",An=[`fc-${pn}-button`,sn.getClass("button")];yn&&An.push(sn.getClass("buttonActive")),on.push(y("button",{type:"button",title:typeof vn=="function"?vn(an.navUnit):vn,disabled:wn,"aria-pressed":yn,className:An.join(" "),onClick:fn},mn||(xn?y("span",{className:xn,role:"img"}):"")))}}if(on.length>1){let un=cn&&sn.getClass("buttonGroup")||"";return y("div",{className:un},...on)}return on[0]}}class Toolbar extends BaseComponent{render(){let{model:rn,extraClassName:an}=this.props,sn=!1,on,cn,un=rn.sectionWidgets,pn=un.center;return un.left?(sn=!0,on=un.left):on=un.start,un.right?(sn=!0,cn=un.right):cn=un.end,y("div",{className:[an||"","fc-toolbar",sn?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",on||[]),this.renderSection("center",pn||[]),this.renderSection("end",cn||[]))}renderSection(rn,an){let{props:sn}=this;return y(ToolbarSection,{key:rn,widgetGroups:an,title:sn.title,navUnit:sn.navUnit,activeButton:sn.activeButton,isTodayEnabled:sn.isTodayEnabled,isPrevEnabled:sn.isPrevEnabled,isNextEnabled:sn.isNextEnabled,titleId:sn.titleId})}}class ViewHarness extends BaseComponent{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=rn=>{this.el=rn,setRef(this.props.elRef,rn),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:rn,state:an}=this,{aspectRatio:sn}=rn,on=["fc-view-harness",sn||rn.liquid||rn.height?"fc-view-harness-active":"fc-view-harness-passive"],cn="",un="";return sn?an.availableWidth!==null?cn=an.availableWidth/sn:un=`${1/sn*100}%`:cn=rn.height||"",y("div",{"aria-labelledby":rn.labeledById,ref:this.handleEl,className:on.join(" "),style:{height:cn,paddingBottom:un}},rn.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class EventClicking extends Interaction{constructor(rn){super(rn),this.handleSegClick=(an,sn)=>{let{component:on}=this,{context:cn}=on,un=getElSeg(sn);if(un&&on.isValidSegDownEl(an.target)){let pn=elementClosest(an.target,".fc-event-forced-url"),fn=pn?pn.querySelector("a[href]").href:"";cn.emitter.trigger("eventClick",{el:sn,event:new EventImpl(on.context,un.eventRange.def,un.eventRange.instance),jsEvent:an,view:cn.viewApi}),fn&&!an.defaultPrevented&&(window.location.href=fn)}},this.destroy=listenBySelector(rn.el,"click",".fc-event",this.handleSegClick)}}class EventHovering extends Interaction{constructor(rn){super(rn),this.handleEventElRemove=an=>{an===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(an,sn)=>{getElSeg(sn)&&(this.currentSegEl=sn,this.triggerEvent("eventMouseEnter",an,sn))},this.handleSegLeave=(an,sn)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",an,sn))},this.removeHoverListeners=listenToHoverBySelector(rn.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(rn,an,sn){let{component:on}=this,{context:cn}=on,un=getElSeg(sn);(!an||on.isValidSegDownEl(an.target))&&cn.emitter.trigger(rn,{el:sn,event:new EventImpl(cn,un.eventRange.def,un.eventRange.instance),jsEvent:an,view:cn.viewApi})}}class CalendarContent extends PureComponent{constructor(){super(...arguments),this.buildViewContext=memoize(buildViewContext),this.buildViewPropTransformers=memoize(buildViewPropTransformers),this.buildToolbarProps=memoize(buildToolbarProps),this.headerRef=d(),this.footerRef=d(),this.interactionsStore={},this.state={viewLabelId:getUniqueDomId()},this.registerInteractiveComponent=(rn,an)=>{let sn=parseInteractionSettings(rn,an),un=[EventClicking,EventHovering].concat(this.props.pluginHooks.componentInteractions).map(pn=>new pn(sn));this.interactionsStore[rn.uid]=un,interactionSettingsStore[rn.uid]=sn},this.unregisterInteractiveComponent=rn=>{let an=this.interactionsStore[rn.uid];if(an){for(let sn of an)sn.destroy();delete this.interactionsStore[rn.uid]}delete interactionSettingsStore[rn.uid]},this.resizeRunner=new DelayedRunner(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=rn=>{let{options:an}=this.props;an.handleWindowResize&&rn.target===window&&this.resizeRunner.request(an.windowResizeDelay)}}render(){let{props:rn}=this,{toolbarConfig:an,options:sn}=rn,on=this.buildToolbarProps(rn.viewSpec,rn.dateProfile,rn.dateProfileGenerator,rn.currentDate,getNow(rn.options.now,rn.dateEnv),rn.viewTitle),cn=!1,un="",pn;rn.isHeightAuto||rn.forPrint?un="":sn.height!=null?cn=!0:sn.contentHeight!=null?un=sn.contentHeight:pn=Math.max(sn.aspectRatio,.5);let fn=this.buildViewContext(rn.viewSpec,rn.viewApi,rn.options,rn.dateProfileGenerator,rn.dateEnv,rn.theme,rn.pluginHooks,rn.dispatch,rn.getCurrentData,rn.emitter,rn.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),mn=an.header&&an.header.hasTitle?this.state.viewLabelId:void 0;return y(ViewContextType.Provider,{value:fn},an.header&&y(Toolbar,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:an.header,titleId:mn},on)),y(ViewHarness,{liquid:cn,height:un,aspectRatio:pn,labeledById:mn},this.renderView(rn),this.buildAppendContent()),an.footer&&y(Toolbar,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:an.footer,titleId:""},on)))}componentDidMount(){let{props:rn}=this;this.calendarInteractions=rn.pluginHooks.calendarInteractions.map(sn=>new sn(rn)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:an}=rn.pluginHooks;for(let sn in an)an[sn](rn[sn],rn)}componentDidUpdate(rn){let{props:an}=this,{propSetHandlers:sn}=an.pluginHooks;for(let on in sn)an[on]!==rn[on]&&sn[on](an[on],an)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let rn of this.calendarInteractions)rn.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:rn}=this,an=rn.pluginHooks.viewContainerAppends.map(sn=>sn(rn));return y(_,{},...an)}renderView(rn){let{pluginHooks:an}=rn,{viewSpec:sn}=rn,on={dateProfile:rn.dateProfile,businessHours:rn.businessHours,eventStore:rn.renderableEventStore,eventUiBases:rn.eventUiBases,dateSelection:rn.dateSelection,eventSelection:rn.eventSelection,eventDrag:rn.eventDrag,eventResize:rn.eventResize,isHeightAuto:rn.isHeightAuto,forPrint:rn.forPrint},cn=this.buildViewPropTransformers(an.viewPropsTransformers);for(let pn of cn)Object.assign(on,pn.transform(on,rn));let un=sn.component;return y(un,Object.assign({},on))}}function buildToolbarProps(ln,rn,an,sn,on,cn){let un=an.build(on,void 0,!1),pn=an.buildPrev(rn,sn,!1),fn=an.buildNext(rn,sn,!1);return{title:cn,activeButton:ln.type,navUnit:ln.singleUnit,isTodayEnabled:un.isValid&&!rangeContainsMarker(rn.currentRange,on),isPrevEnabled:pn.isValid,isNextEnabled:fn.isValid}}function buildViewPropTransformers(ln){return ln.map(rn=>new rn)}let Calendar$1=class extends CalendarImpl{constructor(rn,an={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=sn=>{switch(sn.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=sn=>{this.currentData=sn,this.renderRunner.request(sn.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:sn}=this;flushSync(()=>{D$1(y(CalendarRoot,{options:sn.calendarOptions,theme:sn.theme,emitter:sn.emitter},(on,cn,un,pn)=>(this.setClassNames(on),this.setHeight(cn),y(RenderId.Provider,{value:this.customContentRenderId},y(CalendarContent,Object.assign({isHeightAuto:un,forPrint:pn},sn))))),this.el)})}else this.isRendered&&(this.isRendered=!1,D$1(null,this.el),this.setClassNames([]),this.setHeight(""))},ensureElHasStyles(rn),this.el=rn,this.renderRunner=new DelayedRunner(this.handleRenderRequest),new CalendarDataManager({optionOverrides:an,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let rn=this.isRendering;rn?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),rn&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){flushSync(()=>{super.updateSize()})}batchRendering(rn){this.renderRunner.pause("batchRendering"),rn(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(rn,an){this.currentDataManager.resetOptions(rn,an)}setClassNames(rn){if(!isArraysEqual(rn,this.currentClassNames)){let{classList:an}=this.el;for(let sn of this.currentClassNames)an.remove(sn);for(let sn of rn)an.add(sn);this.currentClassNames=rn}}setHeight(rn){applyStyleProp(this.el,"height",rn)}};const reactMajorVersion=parseInt(String(React.version).split(".")[0]),syncRenderingByDefault=reactMajorVersion<18;class FullCalendar extends reactExports.Component{constructor(){super(...arguments),this.elRef=reactExports.createRef(),this.isUpdating=!1,this.isUnmounting=!1,this.state={customRenderingMap:new Map},this.requestResize=()=>{this.isUnmounting||(this.cancelResize(),this.resizeId=requestAnimationFrame(()=>{this.doResize()}))}}render(){const rn=[];for(const an of this.state.customRenderingMap.values())rn.push(React.createElement(CustomRenderingComponent,{key:an.id,customRendering:an}));return React.createElement("div",{ref:this.elRef},rn)}componentDidMount(){this.isUnmounting=!1;const rn=new CustomRenderingStore;this.handleCustomRendering=rn.handle.bind(rn),this.calendar=new Calendar$1(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),this.calendar.on("_beforeprint",()=>{reactDomExports.flushSync(()=>{})});let an;rn.subscribe(sn=>{const on=Date.now(),cn=!an;(syncRenderingByDefault||cn||this.isUpdating||this.isUnmounting||on-an<100?runNow:reactDomExports.flushSync)(()=>{this.setState({customRenderingMap:sn},()=>{an=on,cn?this.doResize():this.requestResize()})})})}componentDidUpdate(){this.isUpdating=!0,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.isUpdating=!1}componentWillUnmount(){this.isUnmounting=!0,this.cancelResize(),this.calendar.destroy()}doResize(){this.calendar.updateSize()}cancelResize(){this.resizeId!==void 0&&(cancelAnimationFrame(this.resizeId),this.resizeId=void 0)}getApi(){return this.calendar}}FullCalendar.act=runNow;class CustomRenderingComponent extends reactExports.PureComponent{render(){const{customRendering:rn}=this.props,{generatorMeta:an}=rn,sn=typeof an=="function"?an(rn.renderProps):an;return reactDomExports.createPortal(sn,rn.containerEl)}}function runNow(ln){ln()}class TableView extends DateComponent{constructor(){super(...arguments),this.headerElRef=d()}renderSimpleLayout(rn,an){let{props:sn,context:on}=this,cn=[],un=getStickyHeaderDates(on.options);return rn&&cn.push({type:"header",key:"header",isSticky:un,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:rn}}),cn.push({type:"body",key:"body",liquid:!0,chunk:{content:an}}),y(ViewContainer,{elClasses:["fc-daygrid"],viewSpec:on.viewSpec},y(SimpleScrollGrid,{liquid:!sn.isHeightAuto&&!sn.forPrint,collapsibleWidth:sn.forPrint,cols:[],sections:cn}))}renderHScrollLayout(rn,an,sn,on){let cn=this.context.pluginHooks.scrollGridImpl;if(!cn)throw new Error("No ScrollGrid implementation");let{props:un,context:pn}=this,fn=!un.forPrint&&getStickyHeaderDates(pn.options),mn=!un.forPrint&&getStickyFooterScrollbar(pn.options),xn=[];return rn&&xn.push({type:"header",key:"header",isSticky:fn,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:rn}]}),xn.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:an}]}),mn&&xn.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:renderScrollShim}]}),y(ViewContainer,{elClasses:["fc-daygrid"],viewSpec:pn.viewSpec},y(cn,{liquid:!un.isHeightAuto&&!un.forPrint,forPrint:un.forPrint,collapsibleWidth:un.forPrint,colGroups:[{cols:[{span:sn,minWidth:on}]}],sections:xn}))}}function splitSegsByRow(ln,rn){let an=[];for(let sn=0;sn<rn;sn+=1)an[sn]=[];for(let sn of ln)an[sn.row].push(sn);return an}function splitSegsByFirstCol(ln,rn){let an=[];for(let sn=0;sn<rn;sn+=1)an[sn]=[];for(let sn of ln)an[sn.firstCol].push(sn);return an}function splitInteractionByRow(ln,rn){let an=[];if(ln){for(let sn=0;sn<rn;sn+=1)an[sn]={affectedInstances:ln.affectedInstances,isEvent:ln.isEvent,segs:[]};for(let sn of ln.segs)an[sn.row].segs.push(sn)}else for(let sn=0;sn<rn;sn+=1)an[sn]=null;return an}const DEFAULT_TABLE_EVENT_TIME_FORMAT=createFormatter({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function hasListItemDisplay(ln){let{display:rn}=ln.eventRange.ui;return rn==="list-item"||rn==="auto"&&!ln.eventRange.def.allDay&&ln.firstCol===ln.lastCol&&ln.isStart&&ln.isEnd}class TableBlockEvent extends BaseComponent{render(){let{props:rn}=this;return y(StandardEvent,Object.assign({},rn,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:DEFAULT_TABLE_EVENT_TIME_FORMAT,defaultDisplayEventEnd:rn.defaultDisplayEventEnd,disableResizing:!rn.seg.eventRange.def.allDay}))}}class TableListItemEvent extends BaseComponent{render(){let{props:rn,context:an}=this,{options:sn}=an,{seg:on}=rn,cn=sn.eventTimeFormat||DEFAULT_TABLE_EVENT_TIME_FORMAT,un=buildSegTimeText(on,cn,an,!0,rn.defaultDisplayEventEnd);return y(EventContainer,Object.assign({},rn,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:getSegAnchorAttrs(rn.seg,an),defaultGenerator:renderInnerContent$1,timeText:un,isResizing:!1,isDateSelecting:!1}))}}function renderInnerContent$1(ln){return y(_,null,y("div",{className:"fc-daygrid-event-dot",style:{borderColor:ln.borderColor||ln.backgroundColor}}),ln.timeText&&y("div",{className:"fc-event-time"},ln.timeText),y("div",{className:"fc-event-title"},ln.event.title||y(_,null," ")))}class TableCellMoreLink extends BaseComponent{constructor(){super(...arguments),this.compileSegs=memoize(compileSegs)}render(){let{props:rn}=this,{allSegs:an,invisibleSegs:sn}=this.compileSegs(rn.singlePlacements);return y(MoreLinkContainer,{elClasses:["fc-daygrid-more-link"],dateProfile:rn.dateProfile,todayRange:rn.todayRange,allDayDate:rn.allDayDate,moreCnt:rn.moreCnt,allSegs:an,hiddenSegs:sn,alignmentElRef:rn.alignmentElRef,alignGridTop:rn.alignGridTop,extraDateSpan:rn.extraDateSpan,popoverContent:()=>{let on=(rn.eventDrag?rn.eventDrag.affectedInstances:null)||(rn.eventResize?rn.eventResize.affectedInstances:null)||{};return y(_,null,an.map(cn=>{let un=cn.eventRange.instance.instanceId;return y("div",{className:"fc-daygrid-event-harness",key:un,style:{visibility:on[un]?"hidden":""}},hasListItemDisplay(cn)?y(TableListItemEvent,Object.assign({seg:cn,isDragging:!1,isSelected:un===rn.eventSelection,defaultDisplayEventEnd:!1},getSegMeta(cn,rn.todayRange))):y(TableBlockEvent,Object.assign({seg:cn,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:un===rn.eventSelection,defaultDisplayEventEnd:!1},getSegMeta(cn,rn.todayRange))))}))}})}}function compileSegs(ln){let rn=[],an=[];for(let sn of ln)rn.push(sn.seg),sn.isVisible||an.push(sn.seg);return{allSegs:rn,invisibleSegs:an}}const DEFAULT_WEEK_NUM_FORMAT$1=createFormatter({week:"narrow"});let TableCell$1=class extends DateComponent{constructor(){super(...arguments),this.rootElRef=d(),this.state={dayNumberId:getUniqueDomId()},this.handleRootEl=rn=>{setRef(this.rootElRef,rn),setRef(this.props.elRef,rn)}}render(){let{context:rn,props:an,state:sn,rootElRef:on}=this,{options:cn,dateEnv:un}=rn,{date:pn,dateProfile:fn}=an;const mn=an.showDayNumber&&shouldDisplayMonthStart(pn,fn.currentRange,un);return y(DayCellContainer,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...an.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},an.extraDataAttrs),an.showDayNumber?{"aria-labelledby":sn.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:renderTopInner,date:pn,dateProfile:fn,todayRange:an.todayRange,showDayNumber:an.showDayNumber,isMonthStart:mn,extraRenderProps:an.extraRenderProps},(xn,vn)=>y("div",{ref:an.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:an.minHeight}},an.showWeekNumber&&y(WeekNumberContainer,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:buildNavLinkAttrs(rn,pn,"week"),date:pn,defaultFormat:DEFAULT_WEEK_NUM_FORMAT$1}),!vn.isDisabled&&(an.showDayNumber||hasCustomDayCellContent(cn)||an.forceDayTop)?y("div",{className:"fc-daygrid-day-top"},y(xn,{elTag:"a",elClasses:["fc-daygrid-day-number",mn&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},buildNavLinkAttrs(rn,pn)),{id:sn.dayNumberId})})):an.showDayNumber?y("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},y("a",{className:"fc-daygrid-day-number"}," ")):void 0,y("div",{className:"fc-daygrid-day-events",ref:an.fgContentElRef},an.fgContent,y("div",{className:"fc-daygrid-day-bottom",style:{marginTop:an.moreMarginTop}},y(TableCellMoreLink,{allDayDate:pn,singlePlacements:an.singlePlacements,moreCnt:an.moreCnt,alignmentElRef:on,alignGridTop:!an.showDayNumber,extraDateSpan:an.extraDateSpan,dateProfile:an.dateProfile,eventSelection:an.eventSelection,eventDrag:an.eventDrag,eventResize:an.eventResize,todayRange:an.todayRange}))),y("div",{className:"fc-daygrid-day-bg"},an.bgContent)))}};function renderTopInner(ln){return ln.dayNumberText||y(_,null," ")}function shouldDisplayMonthStart(ln,rn,an){const{start:sn,end:on}=rn,cn=addMs(on,-1),un=an.getYear(sn),pn=an.getMonth(sn),fn=an.getYear(cn),mn=an.getMonth(cn);return!(un===fn&&pn===mn)&&(ln.valueOf()===sn.valueOf()||an.getDay(ln)===1&&ln.valueOf()<on.valueOf())}function generateSegKey(ln){return ln.eventRange.instance.instanceId+":"+ln.firstCol}function generateSegUid(ln){return generateSegKey(ln)+":"+ln.lastCol}function computeFgSegPlacement(ln,rn,an,sn,on,cn,un){let pn=new DayGridSegHierarchy(Mn=>{let Tn=ln[Mn.index].eventRange.instance.instanceId+":"+Mn.span.start+":"+(Mn.span.end-1);return on[Tn]||1});pn.allowReslicing=!0,pn.strictOrder=sn,rn===!0||an===!0?(pn.maxCoord=cn,pn.hiddenConsumes=!0):typeof rn=="number"?pn.maxStackCnt=rn:typeof an=="number"&&(pn.maxStackCnt=an,pn.hiddenConsumes=!0);let fn=[],mn=[];for(let Mn=0;Mn<ln.length;Mn+=1){let Tn=ln[Mn],On=generateSegUid(Tn);on[On]!=null?fn.push({index:Mn,span:{start:Tn.firstCol,end:Tn.lastCol+1}}):mn.push(Tn)}let xn=pn.addSegs(fn),vn=pn.toRects(),{singleColPlacements:yn,multiColPlacements:wn,leftoverMargins:An}=placeRects(vn,ln,un),Cn=[],kn=[];for(let Mn of mn){wn[Mn.firstCol].push({seg:Mn,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let Tn=Mn.firstCol;Tn<=Mn.lastCol;Tn+=1)yn[Tn].push({seg:resliceSeg(Mn,Tn,Tn+1,un),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let Mn=0;Mn<un.length;Mn+=1)Cn.push(0);for(let Mn of xn){let Tn=ln[Mn.index],On=Mn.span;wn[On.start].push({seg:resliceSeg(Tn,On.start,On.end,un),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let Pn=On.start;Pn<On.end;Pn+=1)Cn[Pn]+=1,yn[Pn].push({seg:resliceSeg(Tn,Pn,Pn+1,un),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let Mn=0;Mn<un.length;Mn+=1)kn.push(An[Mn]);return{singleColPlacements:yn,multiColPlacements:wn,moreCnts:Cn,moreMarginTops:kn}}function placeRects(ln,rn,an){let sn=groupRectsByEachCol(ln,an.length),on=[],cn=[],un=[];for(let pn=0;pn<an.length;pn+=1){let fn=sn[pn],mn=[],xn=0,vn=0;for(let wn of fn){let An=rn[wn.index];mn.push({seg:resliceSeg(An,pn,pn+1,an),isVisible:!0,isAbsolute:!1,absoluteTop:wn.levelCoord,marginTop:wn.levelCoord-xn}),xn=wn.levelCoord+wn.thickness}let yn=[];xn=0,vn=0;for(let wn of fn){let An=rn[wn.index],Cn=wn.span.end-wn.span.start>1,kn=wn.span.start===pn;vn+=wn.levelCoord-xn,xn=wn.levelCoord+wn.thickness,Cn?(vn+=wn.thickness,kn&&yn.push({seg:resliceSeg(An,wn.span.start,wn.span.end,an),isVisible:!0,isAbsolute:!0,absoluteTop:wn.levelCoord,marginTop:0})):kn&&(yn.push({seg:resliceSeg(An,wn.span.start,wn.span.end,an),isVisible:!0,isAbsolute:!1,absoluteTop:wn.levelCoord,marginTop:vn}),vn=0)}on.push(mn),cn.push(yn),un.push(vn)}return{singleColPlacements:on,multiColPlacements:cn,leftoverMargins:un}}function groupRectsByEachCol(ln,rn){let an=[];for(let sn=0;sn<rn;sn+=1)an.push([]);for(let sn of ln)for(let on=sn.span.start;on<sn.span.end;on+=1)an[on].push(sn);return an}function resliceSeg(ln,rn,an,sn){if(ln.firstCol===rn&&ln.lastCol===an-1)return ln;let on=ln.eventRange,cn=on.range,un=intersectRanges(cn,{start:sn[rn].date,end:addDays(sn[an-1].date,1)});return Object.assign(Object.assign({},ln),{firstCol:rn,lastCol:an-1,eventRange:{def:on.def,ui:Object.assign(Object.assign({},on.ui),{durationEditable:!1}),instance:on.instance,range:un},isStart:ln.isStart&&un.start.valueOf()===cn.start.valueOf(),isEnd:ln.isEnd&&un.end.valueOf()===cn.end.valueOf()})}class DayGridSegHierarchy extends SegHierarchy{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(rn){const an=super.addSegs(rn),{entriesByLevel:sn}=this,on=cn=>!this.forceHidden[buildEntryKey(cn)];for(let cn=0;cn<sn.length;cn+=1)sn[cn]=sn[cn].filter(on);return an}handleInvalidInsertion(rn,an,sn){const{entriesByLevel:on,forceHidden:cn}=this,{touchingEntry:un,touchingLevel:pn,touchingLateral:fn}=rn;if(this.hiddenConsumes&&un){const mn=buildEntryKey(un);if(!cn[mn])if(this.allowReslicing){const xn=Object.assign(Object.assign({},un),{span:intersectSpans(un.span,an.span)}),vn=buildEntryKey(xn);cn[vn]=!0,on[pn][fn]=xn,sn.push(xn),this.splitEntry(un,an,sn)}else cn[mn]=!0,sn.push(un)}super.handleInvalidInsertion(rn,an,sn)}}let TableRow$1=class extends DateComponent{constructor(){super(...arguments),this.cellElRefs=new RefMap,this.frameElRefs=new RefMap,this.fgElRefs=new RefMap,this.segHarnessRefs=new RefMap,this.rootElRef=d(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=rn=>{rn&&this.updateSizing(!0)}}render(){let{props:rn,state:an,context:sn}=this,{options:on}=sn,cn=rn.cells.length,un=splitSegsByFirstCol(rn.businessHourSegs,cn),pn=splitSegsByFirstCol(rn.bgEventSegs,cn),fn=splitSegsByFirstCol(this.getHighlightSegs(),cn),mn=splitSegsByFirstCol(this.getMirrorSegs(),cn),{singleColPlacements:xn,multiColPlacements:vn,moreCnts:yn,moreMarginTops:wn}=computeFgSegPlacement(sortEventSegs(rn.fgEventSegs,on.eventOrder),rn.dayMaxEvents,rn.dayMaxEventRows,on.eventOrderStrict,an.segHeights,an.maxContentHeight,rn.cells),An=rn.eventDrag&&rn.eventDrag.affectedInstances||rn.eventResize&&rn.eventResize.affectedInstances||{};return y("tr",{ref:this.rootElRef,role:"row"},rn.renderIntro&&rn.renderIntro(),rn.cells.map((Cn,kn)=>{let Mn=this.renderFgSegs(kn,rn.forPrint?xn[kn]:vn[kn],rn.todayRange,An),Tn=this.renderFgSegs(kn,buildMirrorPlacements(mn[kn],vn),rn.todayRange,{},!!rn.eventDrag,!!rn.eventResize,!1);return y(TableCell$1,{key:Cn.key,elRef:this.cellElRefs.createRef(Cn.key),innerElRef:this.frameElRefs.createRef(Cn.key),dateProfile:rn.dateProfile,date:Cn.date,showDayNumber:rn.showDayNumbers,showWeekNumber:rn.showWeekNumbers&&kn===0,forceDayTop:rn.showWeekNumbers,todayRange:rn.todayRange,eventSelection:rn.eventSelection,eventDrag:rn.eventDrag,eventResize:rn.eventResize,extraRenderProps:Cn.extraRenderProps,extraDataAttrs:Cn.extraDataAttrs,extraClassNames:Cn.extraClassNames,extraDateSpan:Cn.extraDateSpan,moreCnt:yn[kn],moreMarginTop:wn[kn],singlePlacements:xn[kn],fgContentElRef:this.fgElRefs.createRef(Cn.key),fgContent:y(_,null,y(_,null,Mn),y(_,null,Tn)),bgContent:y(_,null,this.renderFillSegs(fn[kn],"highlight"),this.renderFillSegs(un[kn],"non-business"),this.renderFillSegs(pn[kn],"bg-event")),minHeight:rn.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(rn,an){let sn=this.props;this.updateSizing(!isPropsEqual(rn,sn))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:rn}=this;return rn.eventDrag&&rn.eventDrag.segs.length?rn.eventDrag.segs:rn.eventResize&&rn.eventResize.segs.length?rn.eventResize.segs:rn.dateSelectionSegs}getMirrorSegs(){let{props:rn}=this;return rn.eventResize&&rn.eventResize.segs.length?rn.eventResize.segs:[]}renderFgSegs(rn,an,sn,on,cn,un,pn){let{context:fn}=this,{eventSelection:mn}=this.props,{framePositions:xn}=this.state,vn=this.props.cells.length===1,yn=cn||un||pn,wn=[];if(xn)for(let An of an){let{seg:Cn}=An,{instanceId:kn}=Cn.eventRange.instance,Mn=An.isVisible&&!on[kn],Tn=An.isAbsolute,On="",Pn="";Tn&&(fn.isRtl?(Pn=0,On=xn.lefts[Cn.lastCol]-xn.lefts[Cn.firstCol]):(On=0,Pn=xn.rights[Cn.firstCol]-xn.rights[Cn.lastCol])),wn.push(y("div",{className:"fc-daygrid-event-harness"+(Tn?" fc-daygrid-event-harness-abs":""),key:generateSegKey(Cn),ref:yn?null:this.segHarnessRefs.createRef(generateSegUid(Cn)),style:{visibility:Mn?"":"hidden",marginTop:Tn?"":An.marginTop,top:Tn?An.absoluteTop:"",left:On,right:Pn}},hasListItemDisplay(Cn)?y(TableListItemEvent,Object.assign({seg:Cn,isDragging:cn,isSelected:kn===mn,defaultDisplayEventEnd:vn},getSegMeta(Cn,sn))):y(TableBlockEvent,Object.assign({seg:Cn,isDragging:cn,isResizing:un,isDateSelecting:pn,isSelected:kn===mn,defaultDisplayEventEnd:vn},getSegMeta(Cn,sn)))))}return wn}renderFillSegs(rn,an){let{isRtl:sn}=this.context,{todayRange:on}=this.props,{framePositions:cn}=this.state,un=[];if(cn)for(let pn of rn){let fn=sn?{right:0,left:cn.lefts[pn.lastCol]-cn.lefts[pn.firstCol]}:{left:0,right:cn.rights[pn.firstCol]-cn.rights[pn.lastCol]};un.push(y("div",{key:buildEventRangeKey(pn.eventRange),className:"fc-daygrid-bg-harness",style:fn},an==="bg-event"?y(BgEvent,Object.assign({seg:pn},getSegMeta(pn,on))):renderFill(an)))}return y(_,{},...un)}updateSizing(rn){let{props:an,state:sn,frameElRefs:on}=this;if(!an.forPrint&&an.clientWidth!==null){if(rn){let fn=an.cells.map(mn=>on.currentMap[mn.key]);if(fn.length){let mn=this.rootElRef.current,xn=new PositionCache(mn,fn,!0,!1);(!sn.framePositions||!sn.framePositions.similarTo(xn))&&this.setState({framePositions:new PositionCache(mn,fn,!0,!1)})}}const cn=this.state.segHeights,un=this.querySegHeights(),pn=an.dayMaxEvents===!0||an.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},cn),un),maxContentHeight:pn?this.computeMaxContentHeight():null})}}querySegHeights(){let rn=this.segHarnessRefs.currentMap,an={};for(let sn in rn){let on=Math.round(rn[sn].getBoundingClientRect().height);an[sn]=Math.max(an[sn]||0,on)}return an}computeMaxContentHeight(){let rn=this.props.cells[0].key,an=this.cellElRefs.currentMap[rn],sn=this.fgElRefs.currentMap[rn];return an.getBoundingClientRect().bottom-sn.getBoundingClientRect().top}getCellEls(){let rn=this.cellElRefs.currentMap;return this.props.cells.map(an=>rn[an.key])}};TableRow$1.addStateEquality({segHeights:isPropsEqual});function buildMirrorPlacements(ln,rn){if(!ln.length)return[];let an=buildAbsoluteTopHash(rn);return ln.map(sn=>({seg:sn,isVisible:!0,isAbsolute:!0,absoluteTop:an[sn.eventRange.instance.instanceId],marginTop:0}))}function buildAbsoluteTopHash(ln){let rn={};for(let an of ln)for(let sn of an)rn[sn.seg.eventRange.instance.instanceId]=sn.absoluteTop;return rn}class TableRows extends DateComponent{constructor(){super(...arguments),this.splitBusinessHourSegs=memoize(splitSegsByRow),this.splitBgEventSegs=memoize(splitSegsByRow),this.splitFgEventSegs=memoize(splitSegsByRow),this.splitDateSelectionSegs=memoize(splitSegsByRow),this.splitEventDrag=memoize(splitInteractionByRow),this.splitEventResize=memoize(splitInteractionByRow),this.rowRefs=new RefMap}render(){let{props:rn,context:an}=this,sn=rn.cells.length,on=this.splitBusinessHourSegs(rn.businessHourSegs,sn),cn=this.splitBgEventSegs(rn.bgEventSegs,sn),un=this.splitFgEventSegs(rn.fgEventSegs,sn),pn=this.splitDateSelectionSegs(rn.dateSelectionSegs,sn),fn=this.splitEventDrag(rn.eventDrag,sn),mn=this.splitEventResize(rn.eventResize,sn),xn=sn>=7&&rn.clientWidth?rn.clientWidth/an.options.aspectRatio/6:null;return y(NowTimer,{unit:"day"},(vn,yn)=>y(_,null,rn.cells.map((wn,An)=>y(TableRow$1,{ref:this.rowRefs.createRef(An),key:wn.length?wn[0].date.toISOString():An,showDayNumbers:sn>1,showWeekNumbers:rn.showWeekNumbers,todayRange:yn,dateProfile:rn.dateProfile,cells:wn,renderIntro:rn.renderRowIntro,businessHourSegs:on[An],eventSelection:rn.eventSelection,bgEventSegs:cn[An].filter(isSegAllDay),fgEventSegs:un[An],dateSelectionSegs:pn[An],eventDrag:fn[An],eventResize:mn[An],dayMaxEvents:rn.dayMaxEvents,dayMaxEventRows:rn.dayMaxEventRows,clientWidth:rn.clientWidth,clientHeight:rn.clientHeight,cellMinHeight:xn,forPrint:rn.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const rn=this.rowRefs.currentMap[0].getCellEls()[0],an=rn?rn.closest(".fc-daygrid-body"):null;an&&(this.rootEl=an,this.context.registerInteractiveComponent(this,{el:an,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new PositionCache(this.rootEl,this.rowRefs.collect().map(rn=>rn.getCellEls()[0]),!1,!0),this.colPositions=new PositionCache(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(rn,an){let{colPositions:sn,rowPositions:on}=this,cn=sn.leftToIndex(rn),un=on.topToIndex(an);if(un!=null&&cn!=null){let pn=this.props.cells[un][cn];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(un,cn),allDay:!0},pn.extraDateSpan),dayEl:this.getCellEl(un,cn),rect:{left:sn.lefts[cn],right:sn.rights[cn],top:on.tops[un],bottom:on.bottoms[un]},layer:0}}return null}getCellEl(rn,an){return this.rowRefs.currentMap[rn].getCellEls()[an]}getCellRange(rn,an){let sn=this.props.cells[rn][an].date,on=addDays(sn,1);return{start:sn,end:on}}}function isSegAllDay(ln){return ln.eventRange.def.allDay}let Table$1=class extends DateComponent{constructor(){super(...arguments),this.elRef=d(),this.needsScrollReset=!1}render(){let{props:rn}=this,{dayMaxEventRows:an,dayMaxEvents:sn,expandRows:on}=rn,cn=sn===!0||an===!0;cn&&!on&&(cn=!1,an=null,sn=null);let un=["fc-daygrid-body",cn?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",on?"":"fc-daygrid-body-natural"];return y("div",{ref:this.elRef,className:un.join(" "),style:{width:rn.clientWidth,minWidth:rn.tableMinWidth}},y("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:rn.clientWidth,minWidth:rn.tableMinWidth,height:on?rn.clientHeight:""}},rn.colGroupNode,y("tbody",{role:"presentation"},y(TableRows,{dateProfile:rn.dateProfile,cells:rn.cells,renderRowIntro:rn.renderRowIntro,showWeekNumbers:rn.showWeekNumbers,clientWidth:rn.clientWidth,clientHeight:rn.clientHeight,businessHourSegs:rn.businessHourSegs,bgEventSegs:rn.bgEventSegs,fgEventSegs:rn.fgEventSegs,dateSelectionSegs:rn.dateSelectionSegs,eventSelection:rn.eventSelection,eventDrag:rn.eventDrag,eventResize:rn.eventResize,dayMaxEvents:sn,dayMaxEventRows:an,forPrint:rn.forPrint,isHitComboAllowed:rn.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(rn){rn.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const rn=getScrollSubjectEl(this.elRef.current,this.props.dateProfile);if(rn){const an=rn.closest(".fc-daygrid-body"),sn=an.closest(".fc-scroller"),on=rn.getBoundingClientRect().top-an.getBoundingClientRect().top;sn.scrollTop=on?on+1:0}this.needsScrollReset=!1}}};function getScrollSubjectEl(ln,rn){let an;return rn.currentRangeUnit.match(/year|month/)&&(an=ln.querySelector(`[data-date="${formatIsoMonthStr(rn.currentDate)}-01"]`)),an||(an=ln.querySelector(`[data-date="${formatDayString(rn.currentDate)}"]`)),an}class DayTableSlicer extends Slicer{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(rn,an){return an.sliceRange(rn)}}class DayTable extends DateComponent{constructor(){super(...arguments),this.slicer=new DayTableSlicer,this.tableRef=d()}render(){let{props:rn,context:an}=this;return y(Table$1,Object.assign({ref:this.tableRef},this.slicer.sliceProps(rn,rn.dateProfile,rn.nextDayThreshold,an,rn.dayTableModel),{dateProfile:rn.dateProfile,cells:rn.dayTableModel.cells,colGroupNode:rn.colGroupNode,tableMinWidth:rn.tableMinWidth,renderRowIntro:rn.renderRowIntro,dayMaxEvents:rn.dayMaxEvents,dayMaxEventRows:rn.dayMaxEventRows,showWeekNumbers:rn.showWeekNumbers,expandRows:rn.expandRows,headerAlignElRef:rn.headerAlignElRef,clientWidth:rn.clientWidth,clientHeight:rn.clientHeight,forPrint:rn.forPrint}))}}class DayTableView extends TableView{constructor(){super(...arguments),this.buildDayTableModel=memoize(buildDayTableModel),this.headerRef=d(),this.tableRef=d()}render(){let{options:rn,dateProfileGenerator:an}=this.context,{props:sn}=this,on=this.buildDayTableModel(sn.dateProfile,an),cn=rn.dayHeaders&&y(DayHeader,{ref:this.headerRef,dateProfile:sn.dateProfile,dates:on.headerDates,datesRepDistinctDays:on.rowCnt===1}),un=pn=>y(DayTable,{ref:this.tableRef,dateProfile:sn.dateProfile,dayTableModel:on,businessHours:sn.businessHours,dateSelection:sn.dateSelection,eventStore:sn.eventStore,eventUiBases:sn.eventUiBases,eventSelection:sn.eventSelection,eventDrag:sn.eventDrag,eventResize:sn.eventResize,nextDayThreshold:rn.nextDayThreshold,colGroupNode:pn.tableColGroupNode,tableMinWidth:pn.tableMinWidth,dayMaxEvents:rn.dayMaxEvents,dayMaxEventRows:rn.dayMaxEventRows,showWeekNumbers:rn.weekNumbers,expandRows:!sn.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:pn.clientWidth,clientHeight:pn.clientHeight,forPrint:sn.forPrint});return rn.dayMinWidth?this.renderHScrollLayout(cn,un,on.colCnt,rn.dayMinWidth):this.renderSimpleLayout(cn,un)}}function buildDayTableModel(ln,rn){let an=new DaySeriesModel(ln.renderRange,rn);return new DayTableModel(an,/year|month|week/.test(ln.currentRangeUnit))}class TableDateProfileGenerator extends DateProfileGenerator{buildRenderRange(rn,an,sn){let on=super.buildRenderRange(rn,an,sn),{props:cn}=this;return buildDayTableRenderRange({currentRange:on,snapToWeek:/^(year|month)$/.test(an),fixedWeekCount:cn.fixedWeekCount,dateEnv:cn.dateEnv})}}function buildDayTableRenderRange(ln){let{dateEnv:rn,currentRange:an}=ln,{start:sn,end:on}=an,cn;if(ln.snapToWeek&&(sn=rn.startOfWeek(sn),cn=rn.startOfWeek(on),cn.valueOf()!==on.valueOf()&&(on=addWeeks(cn,1))),ln.fixedWeekCount){let un=rn.startOfWeek(rn.startOfMonth(addDays(an.end,-1))),pn=Math.ceil(diffWeeks(un,on));on=addWeeks(on,6-pn)}return{start:sn,end:on}}var css_248z$1=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';injectStyles(css_248z$1);var index$2=createPlugin({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:DayTableView,dateProfileGeneratorClass:TableDateProfileGenerator},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class AllDaySplitter extends Splitter{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(rn){return rn.allDay?["allDay"]:["timed"]}getKeysForEventDef(rn){return rn.allDay?hasBgRendering(rn)?["timed","allDay"]:["allDay"]:["timed"]}}const DEFAULT_SLAT_LABEL_FORMAT=createFormatter({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function TimeColsAxisCell(ln){let rn=["fc-timegrid-slot","fc-timegrid-slot-label",ln.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return y(ViewContextType.Consumer,null,an=>{if(!ln.isLabeled)return y("td",{className:rn.join(" "),"data-time":ln.isoTimeStr});let{dateEnv:sn,options:on,viewApi:cn}=an,un=on.slotLabelFormat==null?DEFAULT_SLAT_LABEL_FORMAT:Array.isArray(on.slotLabelFormat)?createFormatter(on.slotLabelFormat[0]):createFormatter(on.slotLabelFormat),pn={level:0,time:ln.time,date:sn.toDate(ln.date),view:cn,text:sn.format(ln.date,un)};return y(ContentContainer,{elTag:"td",elClasses:rn,elAttrs:{"data-time":ln.isoTimeStr},renderProps:pn,generatorName:"slotLabelContent",customGenerator:on.slotLabelContent,defaultGenerator:renderInnerContent,classNameGenerator:on.slotLabelClassNames,didMount:on.slotLabelDidMount,willUnmount:on.slotLabelWillUnmount},fn=>y("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},y(fn,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function renderInnerContent(ln){return ln.text}class TimeBodyAxis extends BaseComponent{render(){return this.props.slatMetas.map(rn=>y("tr",{key:rn.key},y(TimeColsAxisCell,Object.assign({},rn))))}}const DEFAULT_WEEK_NUM_FORMAT=createFormatter({week:"short"}),AUTO_ALL_DAY_MAX_EVENT_ROWS=5;class TimeColsView extends DateComponent{constructor(){super(...arguments),this.allDaySplitter=new AllDaySplitter,this.headerElRef=d(),this.rootElRef=d(),this.scrollerElRef=d(),this.state={slatCoords:null},this.handleScrollTopRequest=rn=>{let an=this.scrollerElRef.current;an&&(an.scrollTop=rn)},this.renderHeadAxis=(rn,an="")=>{let{options:sn}=this.context,{dateProfile:on}=this.props,cn=on.renderRange,pn=diffDays(cn.start,cn.end)===1?buildNavLinkAttrs(this.context,cn.start,"week"):{};return sn.weekNumbers&&rn==="day"?y(WeekNumberContainer,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:cn.start,defaultFormat:DEFAULT_WEEK_NUM_FORMAT},fn=>y("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:an}},y(fn,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:pn}))):y("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},y("div",{className:"fc-timegrid-axis-frame",style:{height:an}}))},this.renderTableRowAxis=rn=>{let{options:an,viewApi:sn}=this.context,on={text:an.allDayText,view:sn};return y(ContentContainer,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:on,generatorName:"allDayContent",customGenerator:an.allDayContent,defaultGenerator:renderAllDayInner,classNameGenerator:an.allDayClassNames,didMount:an.allDayDidMount,willUnmount:an.allDayWillUnmount},cn=>y("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",rn==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:rn}},y(cn,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=rn=>{this.setState({slatCoords:rn})}}renderSimpleLayout(rn,an,sn){let{context:on,props:cn}=this,un=[],pn=getStickyHeaderDates(on.options);return rn&&un.push({type:"header",key:"header",isSticky:pn,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:rn}}),an&&(un.push({type:"body",key:"all-day",chunk:{content:an}}),un.push({type:"body",key:"all-day-divider",outerContent:y("tr",{role:"presentation",className:"fc-scrollgrid-section"},y("td",{className:"fc-timegrid-divider "+on.theme.getClass("tableCellShaded")}))})),un.push({type:"body",key:"body",liquid:!0,expandRows:!!on.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:sn}}),y(ViewContainer,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:on.viewSpec},y(SimpleScrollGrid,{liquid:!cn.isHeightAuto&&!cn.forPrint,collapsibleWidth:cn.forPrint,cols:[{width:"shrink"}],sections:un}))}renderHScrollLayout(rn,an,sn,on,cn,un,pn){let fn=this.context.pluginHooks.scrollGridImpl;if(!fn)throw new Error("No ScrollGrid implementation");let{context:mn,props:xn}=this,vn=!xn.forPrint&&getStickyHeaderDates(mn.options),yn=!xn.forPrint&&getStickyFooterScrollbar(mn.options),wn=[];rn&&wn.push({type:"header",key:"header",isSticky:vn,syncRowHeights:!0,chunks:[{key:"axis",rowContent:Cn=>y("tr",{role:"presentation"},this.renderHeadAxis("day",Cn.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:rn}]}),an&&(wn.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:Cn=>y("tr",{role:"presentation"},this.renderTableRowAxis(Cn.rowSyncHeights[0]))},{key:"cols",content:an}]}),wn.push({key:"all-day-divider",type:"body",outerContent:y("tr",{role:"presentation",className:"fc-scrollgrid-section"},y("td",{colSpan:2,className:"fc-timegrid-divider "+mn.theme.getClass("tableCellShaded")}))}));let An=mn.options.nowIndicator;return wn.push({type:"body",key:"body",liquid:!0,expandRows:!!mn.options.expandRows,chunks:[{key:"axis",content:Cn=>y("div",{className:"fc-timegrid-axis-chunk"},y("table",{"aria-hidden":!0,style:{height:Cn.expandRows?Cn.clientHeight:""}},Cn.tableColGroupNode,y("tbody",null,y(TimeBodyAxis,{slatMetas:un}))),y("div",{className:"fc-timegrid-now-indicator-container"},y(NowTimer,{unit:An?"minute":"day"},kn=>{let Mn=An&&pn&&pn.safeComputeTop(kn);return typeof Mn=="number"?y(NowIndicatorContainer,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:Mn},isAxis:!0,date:kn}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:sn}]}),yn&&wn.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:renderScrollShim},{key:"cols",content:renderScrollShim}]}),y(ViewContainer,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:mn.viewSpec},y(fn,{liquid:!xn.isHeightAuto&&!xn.forPrint,forPrint:xn.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:on,minWidth:cn}]}],sections:wn}))}getAllDayMaxEventProps(){let{dayMaxEvents:rn,dayMaxEventRows:an}=this.context.options;return(rn===!0||an===!0)&&(rn=void 0,an=AUTO_ALL_DAY_MAX_EVENT_ROWS),{dayMaxEvents:rn,dayMaxEventRows:an}}}function renderAllDayInner(ln){return ln.text}class TimeColsSlatsCoords{constructor(rn,an,sn){this.positions=rn,this.dateProfile=an,this.slotDuration=sn}safeComputeTop(rn){let{dateProfile:an}=this;if(rangeContainsMarker(an.currentRange,rn)){let sn=startOfDay(rn),on=rn.valueOf()-sn.valueOf();if(on>=asRoughMs(an.slotMinTime)&&on<asRoughMs(an.slotMaxTime))return this.computeTimeTop(createDuration(on))}return null}computeDateTop(rn,an){return an||(an=startOfDay(rn)),this.computeTimeTop(createDuration(rn.valueOf()-an.valueOf()))}computeTimeTop(rn){let{positions:an,dateProfile:sn}=this,on=an.els.length,cn=(rn.milliseconds-asRoughMs(sn.slotMinTime))/asRoughMs(this.slotDuration),un,pn;return cn=Math.max(0,cn),cn=Math.min(on,cn),un=Math.floor(cn),un=Math.min(un,on-1),pn=cn-un,an.tops[un]+an.getHeight(un)*pn}}class TimeColsSlatsBody extends BaseComponent{render(){let{props:rn,context:an}=this,{options:sn}=an,{slatElRefs:on}=rn;return y("tbody",null,rn.slatMetas.map((cn,un)=>{let pn={time:cn.time,date:an.dateEnv.toDate(cn.date),view:an.viewApi};return y("tr",{key:cn.key,ref:on.createRef(cn.key)},rn.axis&&y(TimeColsAxisCell,Object.assign({},cn)),y(ContentContainer,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!cn.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":cn.isoTimeStr},renderProps:pn,generatorName:"slotLaneContent",customGenerator:sn.slotLaneContent,classNameGenerator:sn.slotLaneClassNames,didMount:sn.slotLaneDidMount,willUnmount:sn.slotLaneWillUnmount}))}))}}class TimeColsSlats extends BaseComponent{constructor(){super(...arguments),this.rootElRef=d(),this.slatElRefs=new RefMap}render(){let{props:rn,context:an}=this;return y("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},y("table",{"aria-hidden":!0,className:an.theme.getClass("table"),style:{minWidth:rn.tableMinWidth,width:rn.clientWidth,height:rn.minHeight}},rn.tableColGroupNode,y(TimeColsSlatsBody,{slatElRefs:this.slatElRefs,axis:rn.axis,slatMetas:rn.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:rn,props:an}=this;an.onCoords&&an.clientWidth!==null&&this.rootElRef.current.offsetHeight&&an.onCoords(new TimeColsSlatsCoords(new PositionCache(this.rootElRef.current,collectSlatEls(this.slatElRefs.currentMap,an.slatMetas),!1,!0),this.props.dateProfile,rn.options.slotDuration))}}function collectSlatEls(ln,rn){return rn.map(an=>ln[an.key])}function splitSegsByCol(ln,rn){let an=[],sn;for(sn=0;sn<rn;sn+=1)an.push([]);if(ln)for(sn=0;sn<ln.length;sn+=1)an[ln[sn].col].push(ln[sn]);return an}function splitInteractionByCol(ln,rn){let an=[];if(ln){for(let sn=0;sn<rn;sn+=1)an[sn]={affectedInstances:ln.affectedInstances,isEvent:ln.isEvent,segs:[]};for(let sn of ln.segs)an[sn.col].segs.push(sn)}else for(let sn=0;sn<rn;sn+=1)an[sn]=null;return an}class TimeColMoreLink extends BaseComponent{render(){let{props:rn}=this;return y(MoreLinkContainer,{elClasses:["fc-timegrid-more-link"],elStyle:{top:rn.top,bottom:rn.bottom},allDayDate:null,moreCnt:rn.hiddenSegs.length,allSegs:rn.hiddenSegs,hiddenSegs:rn.hiddenSegs,extraDateSpan:rn.extraDateSpan,dateProfile:rn.dateProfile,todayRange:rn.todayRange,popoverContent:()=>renderPlainFgSegs(rn.hiddenSegs,rn),defaultGenerator:renderMoreLinkInner,forceTimed:!0},an=>y(an,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function renderMoreLinkInner(ln){return ln.shortText}function buildPositioning(ln,rn,an){let sn=new SegHierarchy;rn!=null&&(sn.strictOrder=rn),an!=null&&(sn.maxStackCnt=an);let on=sn.addSegs(ln),cn=groupIntersectingEntries(on),un=buildWeb(sn);return un=stretchWeb(un,1),{segRects:webToRects(un),hiddenGroups:cn}}function buildWeb(ln){const{entriesByLevel:rn}=ln,an=cacheable((sn,on)=>sn+":"+on,(sn,on)=>{let cn=findNextLevelSegs(ln,sn,on),un=buildNodes(cn,an),pn=rn[sn][on];return[Object.assign(Object.assign({},pn),{nextLevelNodes:un[0]}),pn.thickness+un[1]]});return buildNodes(rn.length?{level:0,lateralStart:0,lateralEnd:rn[0].length}:null,an)[0]}function buildNodes(ln,rn){if(!ln)return[[],0];let{level:an,lateralStart:sn,lateralEnd:on}=ln,cn=sn,un=[];for(;cn<on;)un.push(rn(an,cn)),cn+=1;return un.sort(cmpDescPressures),[un.map(extractNode),un[0][1]]}function cmpDescPressures(ln,rn){return rn[1]-ln[1]}function extractNode(ln){return ln[0]}function findNextLevelSegs(ln,rn,an){let{levelCoords:sn,entriesByLevel:on}=ln,cn=on[rn][an],un=sn[rn]+cn.thickness,pn=sn.length,fn=rn;for(;fn<pn&&sn[fn]<un;fn+=1);for(;fn<pn;fn+=1){let mn=on[fn],xn,vn=binarySearch(mn,cn.span.start,getEntrySpanEnd),yn=vn[0]+vn[1],wn=yn;for(;(xn=mn[wn])&&xn.span.start<cn.span.end;)wn+=1;if(yn<wn)return{level:fn,lateralStart:yn,lateralEnd:wn}}return null}function stretchWeb(ln,rn){const an=cacheable((sn,on,cn)=>buildEntryKey(sn),(sn,on,cn)=>{let{nextLevelNodes:un,thickness:pn}=sn,fn=pn+cn,mn=pn/fn,xn,vn=[];if(!un.length)xn=rn;else for(let wn of un)if(xn===void 0){let An=an(wn,on,fn);xn=An[0],vn.push(An[1])}else{let An=an(wn,xn,0);vn.push(An[1])}let yn=(xn-on)*mn;return[xn-yn,Object.assign(Object.assign({},sn),{thickness:yn,nextLevelNodes:vn})]});return ln.map(sn=>an(sn,0,0)[1])}function webToRects(ln){let rn=[];const an=cacheable((on,cn,un)=>buildEntryKey(on),(on,cn,un)=>{let pn=Object.assign(Object.assign({},on),{levelCoord:cn,stackDepth:un,stackForward:0});return rn.push(pn),pn.stackForward=sn(on.nextLevelNodes,cn+on.thickness,un+1)+1});function sn(on,cn,un){let pn=0;for(let fn of on)pn=Math.max(an(fn,cn,un),pn);return pn}return sn(ln,0,0),rn}function cacheable(ln,rn){const an={};return(...sn)=>{let on=ln(...sn);return on in an?an[on]:an[on]=rn(...sn)}}function computeSegVCoords(ln,rn,an=null,sn=0){let on=[];if(an)for(let cn=0;cn<ln.length;cn+=1){let un=ln[cn],pn=an.computeDateTop(un.start,rn),fn=Math.max(pn+(sn||0),an.computeDateTop(un.end,rn));on.push({start:Math.round(pn),end:Math.round(fn)})}return on}function computeFgSegPlacements(ln,rn,an,sn){let on=[],cn=[];for(let mn=0;mn<ln.length;mn+=1){let xn=rn[mn];xn?on.push({index:mn,thickness:1,span:xn}):cn.push(ln[mn])}let{segRects:un,hiddenGroups:pn}=buildPositioning(on,an,sn),fn=[];for(let mn of un)fn.push({seg:ln[mn.index],rect:mn});for(let mn of cn)fn.push({seg:mn,rect:null});return{segPlacements:fn,hiddenGroups:pn}}const DEFAULT_TIME_FORMAT=createFormatter({hour:"numeric",minute:"2-digit",meridiem:!1});class TimeColEvent extends BaseComponent{render(){return y(StandardEvent,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:DEFAULT_TIME_FORMAT}))}}class TimeCol extends BaseComponent{constructor(){super(...arguments),this.sortEventSegs=memoize(sortEventSegs)}render(){let{props:rn,context:an}=this,{options:sn}=an,on=sn.selectMirror,cn=rn.eventDrag&&rn.eventDrag.segs||rn.eventResize&&rn.eventResize.segs||on&&rn.dateSelectionSegs||[],un=rn.eventDrag&&rn.eventDrag.affectedInstances||rn.eventResize&&rn.eventResize.affectedInstances||{},pn=this.sortEventSegs(rn.fgEventSegs,sn.eventOrder);return y(DayCellContainer,{elTag:"td",elRef:rn.elRef,elClasses:["fc-timegrid-col",...rn.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},rn.extraDataAttrs),date:rn.date,dateProfile:rn.dateProfile,todayRange:rn.todayRange,extraRenderProps:rn.extraRenderProps},fn=>y("div",{className:"fc-timegrid-col-frame"},y("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(rn.businessHourSegs,"non-business"),this.renderFillSegs(rn.bgEventSegs,"bg-event"),this.renderFillSegs(rn.dateSelectionSegs,"highlight")),y("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(pn,un,!1,!1,!1)),y("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(cn,{},!!rn.eventDrag,!!rn.eventResize,!!on,"mirror")),y("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(rn.nowIndicatorSegs)),hasCustomDayCellContent(sn)&&y(fn,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(rn,an,sn,on,cn,un){let{props:pn}=this;return pn.forPrint?renderPlainFgSegs(rn,pn):this.renderPositionedFgSegs(rn,an,sn,on,cn,un)}renderPositionedFgSegs(rn,an,sn,on,cn,un){let{eventMaxStack:pn,eventShortHeight:fn,eventOrderStrict:mn,eventMinHeight:xn}=this.context.options,{date:vn,slatCoords:yn,eventSelection:wn,todayRange:An,nowDate:Cn}=this.props,kn=sn||on||cn,Mn=computeSegVCoords(rn,vn,yn,xn),{segPlacements:Tn,hiddenGroups:On}=computeFgSegPlacements(rn,Mn,mn,pn);return y(_,null,this.renderHiddenGroups(On,rn),Tn.map(Pn=>{let{seg:Nn,rect:In}=Pn,jn=Nn.eventRange.instance.instanceId,Fn=kn||!!(!an[jn]&&In),Un=computeSegVStyle(In&&In.span),Yn=!kn&&In?this.computeSegHStyle(In):{left:0,right:0},Qn=!!In&&In.stackForward>0,ir=!!In&&In.span.end-In.span.start<fn;return y("div",{className:"fc-timegrid-event-harness"+(Qn?" fc-timegrid-event-harness-inset":""),key:un||jn,style:Object.assign(Object.assign({visibility:Fn?"":"hidden"},Un),Yn)},y(TimeColEvent,Object.assign({seg:Nn,isDragging:sn,isResizing:on,isDateSelecting:cn,isSelected:jn===wn,isShort:ir},getSegMeta(Nn,An,Cn))))}))}renderHiddenGroups(rn,an){let{extraDateSpan:sn,dateProfile:on,todayRange:cn,nowDate:un,eventSelection:pn,eventDrag:fn,eventResize:mn}=this.props;return y(_,null,rn.map(xn=>{let vn=computeSegVStyle(xn.span),yn=compileSegsFromEntries(xn.entries,an);return y(TimeColMoreLink,{key:buildIsoString(computeEarliestSegStart(yn)),hiddenSegs:yn,top:vn.top,bottom:vn.bottom,extraDateSpan:sn,dateProfile:on,todayRange:cn,nowDate:un,eventSelection:pn,eventDrag:fn,eventResize:mn})}))}renderFillSegs(rn,an){let{props:sn,context:on}=this,un=computeSegVCoords(rn,sn.date,sn.slatCoords,on.options.eventMinHeight).map((pn,fn)=>{let mn=rn[fn];return y("div",{key:buildEventRangeKey(mn.eventRange),className:"fc-timegrid-bg-harness",style:computeSegVStyle(pn)},an==="bg-event"?y(BgEvent,Object.assign({seg:mn},getSegMeta(mn,sn.todayRange,sn.nowDate))):renderFill(an))});return y(_,null,un)}renderNowIndicator(rn){let{slatCoords:an,date:sn}=this.props;return an?rn.map((on,cn)=>y(NowIndicatorContainer,{key:cn,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:an.computeDateTop(on.start,sn)},isAxis:!1,date:sn})):null}computeSegHStyle(rn){let{isRtl:an,options:sn}=this.context,on=sn.slotEventOverlap,cn=rn.levelCoord,un=rn.levelCoord+rn.thickness,pn,fn;on&&(un=Math.min(1,cn+(un-cn)*2)),an?(pn=1-un,fn=cn):(pn=cn,fn=1-un);let mn={zIndex:rn.stackDepth+1,left:pn*100+"%",right:fn*100+"%"};return on&&!rn.stackForward&&(mn[an?"marginLeft":"marginRight"]=10*2),mn}}function renderPlainFgSegs(ln,{todayRange:rn,nowDate:an,eventSelection:sn,eventDrag:on,eventResize:cn}){let un=(on?on.affectedInstances:null)||(cn?cn.affectedInstances:null)||{};return y(_,null,ln.map(pn=>{let fn=pn.eventRange.instance.instanceId;return y("div",{key:fn,style:{visibility:un[fn]?"hidden":""}},y(TimeColEvent,Object.assign({seg:pn,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:fn===sn,isShort:!1},getSegMeta(pn,rn,an))))}))}function computeSegVStyle(ln){return ln?{top:ln.start,bottom:-ln.end}:{top:"",bottom:""}}function compileSegsFromEntries(ln,rn){return ln.map(an=>rn[an.index])}class TimeColsContent extends BaseComponent{constructor(){super(...arguments),this.splitFgEventSegs=memoize(splitSegsByCol),this.splitBgEventSegs=memoize(splitSegsByCol),this.splitBusinessHourSegs=memoize(splitSegsByCol),this.splitNowIndicatorSegs=memoize(splitSegsByCol),this.splitDateSelectionSegs=memoize(splitSegsByCol),this.splitEventDrag=memoize(splitInteractionByCol),this.splitEventResize=memoize(splitInteractionByCol),this.rootElRef=d(),this.cellElRefs=new RefMap}render(){let{props:rn,context:an}=this,sn=an.options.nowIndicator&&rn.slatCoords&&rn.slatCoords.safeComputeTop(rn.nowDate),on=rn.cells.length,cn=this.splitFgEventSegs(rn.fgEventSegs,on),un=this.splitBgEventSegs(rn.bgEventSegs,on),pn=this.splitBusinessHourSegs(rn.businessHourSegs,on),fn=this.splitNowIndicatorSegs(rn.nowIndicatorSegs,on),mn=this.splitDateSelectionSegs(rn.dateSelectionSegs,on),xn=this.splitEventDrag(rn.eventDrag,on),vn=this.splitEventResize(rn.eventResize,on);return y("div",{className:"fc-timegrid-cols",ref:this.rootElRef},y("table",{role:"presentation",style:{minWidth:rn.tableMinWidth,width:rn.clientWidth}},rn.tableColGroupNode,y("tbody",{role:"presentation"},y("tr",{role:"row"},rn.axis&&y("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},y("div",{className:"fc-timegrid-col-frame"},y("div",{className:"fc-timegrid-now-indicator-container"},typeof sn=="number"&&y(NowIndicatorContainer,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:sn},isAxis:!0,date:rn.nowDate})))),rn.cells.map((yn,wn)=>y(TimeCol,{key:yn.key,elRef:this.cellElRefs.createRef(yn.key),dateProfile:rn.dateProfile,date:yn.date,nowDate:rn.nowDate,todayRange:rn.todayRange,extraRenderProps:yn.extraRenderProps,extraDataAttrs:yn.extraDataAttrs,extraClassNames:yn.extraClassNames,extraDateSpan:yn.extraDateSpan,fgEventSegs:cn[wn],bgEventSegs:un[wn],businessHourSegs:pn[wn],nowIndicatorSegs:fn[wn],dateSelectionSegs:mn[wn],eventDrag:xn[wn],eventResize:vn[wn],slatCoords:rn.slatCoords,eventSelection:rn.eventSelection,forPrint:rn.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:rn}=this;rn.onColCoords&&rn.clientWidth!==null&&rn.onColCoords(new PositionCache(this.rootElRef.current,collectCellEls(this.cellElRefs.currentMap,rn.cells),!0,!1))}}function collectCellEls(ln,rn){return rn.map(an=>ln[an.key])}class TimeCols extends DateComponent{constructor(){super(...arguments),this.processSlotOptions=memoize(processSlotOptions),this.state={slatCoords:null},this.handleRootEl=rn=>{rn?this.context.registerInteractiveComponent(this,{el:rn,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=rn=>{let{onScrollTopRequest:an}=this.props,{slatCoords:sn}=this.state;if(an&&sn){if(rn.time){let on=sn.computeTimeTop(rn.time);on=Math.ceil(on),on&&(on+=1),an(on)}return!0}return!1},this.handleColCoords=rn=>{this.colCoords=rn},this.handleSlatCoords=rn=>{this.setState({slatCoords:rn}),this.props.onSlatCoords&&this.props.onSlatCoords(rn)}}render(){let{props:rn,state:an}=this;return y("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:rn.clientWidth,minWidth:rn.tableMinWidth}},y(TimeColsSlats,{axis:rn.axis,dateProfile:rn.dateProfile,slatMetas:rn.slatMetas,clientWidth:rn.clientWidth,minHeight:rn.expandRows?rn.clientHeight:"",tableMinWidth:rn.tableMinWidth,tableColGroupNode:rn.axis?rn.tableColGroupNode:null,onCoords:this.handleSlatCoords}),y(TimeColsContent,{cells:rn.cells,axis:rn.axis,dateProfile:rn.dateProfile,businessHourSegs:rn.businessHourSegs,bgEventSegs:rn.bgEventSegs,fgEventSegs:rn.fgEventSegs,dateSelectionSegs:rn.dateSelectionSegs,eventSelection:rn.eventSelection,eventDrag:rn.eventDrag,eventResize:rn.eventResize,todayRange:rn.todayRange,nowDate:rn.nowDate,nowIndicatorSegs:rn.nowIndicatorSegs,clientWidth:rn.clientWidth,tableMinWidth:rn.tableMinWidth,tableColGroupNode:rn.tableColGroupNode,slatCoords:an.slatCoords,onColCoords:this.handleColCoords,forPrint:rn.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(rn){this.scrollResponder.update(rn.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(rn,an){let{dateEnv:sn,options:on}=this.context,{colCoords:cn}=this,{dateProfile:un}=this.props,{slatCoords:pn}=this.state,{snapDuration:fn,snapsPerSlot:mn}=this.processSlotOptions(this.props.slotDuration,on.snapDuration),xn=cn.leftToIndex(rn),vn=pn.positions.topToIndex(an);if(xn!=null&&vn!=null){let yn=this.props.cells[xn],wn=pn.positions.tops[vn],An=pn.positions.getHeight(vn),Cn=(an-wn)/An,kn=Math.floor(Cn*mn),Mn=vn*mn+kn,Tn=this.props.cells[xn].date,On=addDurations(un.slotMinTime,multiplyDuration(fn,Mn)),Pn=sn.add(Tn,On),Nn=sn.add(Pn,fn);return{dateProfile:un,dateSpan:Object.assign({range:{start:Pn,end:Nn},allDay:!1},yn.extraDateSpan),dayEl:cn.els[xn],rect:{left:cn.lefts[xn],right:cn.rights[xn],top:wn,bottom:wn+An},layer:0}}return null}}function processSlotOptions(ln,rn){let an=rn||ln,sn=wholeDivideDurations(ln,an);return sn===null&&(an=ln,sn=1),{snapDuration:an,snapsPerSlot:sn}}class DayTimeColsSlicer extends Slicer{sliceRange(rn,an){let sn=[];for(let on=0;on<an.length;on+=1){let cn=intersectRanges(rn,an[on]);cn&&sn.push({start:cn.start,end:cn.end,isStart:cn.start.valueOf()===rn.start.valueOf(),isEnd:cn.end.valueOf()===rn.end.valueOf(),col:on})}return sn}}class DayTimeCols extends DateComponent{constructor(){super(...arguments),this.buildDayRanges=memoize(buildDayRanges),this.slicer=new DayTimeColsSlicer,this.timeColsRef=d()}render(){let{props:rn,context:an}=this,{dateProfile:sn,dayTableModel:on}=rn,{nowIndicator:cn,nextDayThreshold:un}=an.options,pn=this.buildDayRanges(on,sn,an.dateEnv);return y(NowTimer,{unit:cn?"minute":"day"},(fn,mn)=>y(TimeCols,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(rn,sn,null,an,pn),{forPrint:rn.forPrint,axis:rn.axis,dateProfile:sn,slatMetas:rn.slatMetas,slotDuration:rn.slotDuration,cells:on.cells[0],tableColGroupNode:rn.tableColGroupNode,tableMinWidth:rn.tableMinWidth,clientWidth:rn.clientWidth,clientHeight:rn.clientHeight,expandRows:rn.expandRows,nowDate:fn,nowIndicatorSegs:cn&&this.slicer.sliceNowDate(fn,sn,un,an,pn),todayRange:mn,onScrollTopRequest:rn.onScrollTopRequest,onSlatCoords:rn.onSlatCoords})))}}function buildDayRanges(ln,rn,an){let sn=[];for(let on of ln.headerDates)sn.push({start:an.add(on,rn.slotMinTime),end:an.add(on,rn.slotMaxTime)});return sn}const STOCK_SUB_DURATIONS=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function buildSlatMetas(ln,rn,an,sn,on){let cn=new Date(0),un=ln,pn=createDuration(0),fn=an||computeLabelInterval(sn),mn=[];for(;asRoughMs(un)<asRoughMs(rn);){let xn=on.add(cn,un),vn=wholeDivideDurations(pn,fn)!==null;mn.push({date:xn,time:un,key:xn.toISOString(),isoTimeStr:formatIsoTimeString(xn),isLabeled:vn}),un=addDurations(un,sn),pn=addDurations(pn,sn)}return mn}function computeLabelInterval(ln){let rn,an,sn;for(rn=STOCK_SUB_DURATIONS.length-1;rn>=0;rn-=1)if(an=createDuration(STOCK_SUB_DURATIONS[rn]),sn=wholeDivideDurations(an,ln),sn!==null&&sn>1)return an;return ln}class DayTimeColsView extends TimeColsView{constructor(){super(...arguments),this.buildTimeColsModel=memoize(buildTimeColsModel),this.buildSlatMetas=memoize(buildSlatMetas)}render(){let{options:rn,dateEnv:an,dateProfileGenerator:sn}=this.context,{props:on}=this,{dateProfile:cn}=on,un=this.buildTimeColsModel(cn,sn),pn=this.allDaySplitter.splitProps(on),fn=this.buildSlatMetas(cn.slotMinTime,cn.slotMaxTime,rn.slotLabelInterval,rn.slotDuration,an),{dayMinWidth:mn}=rn,xn=!mn,vn=mn,yn=rn.dayHeaders&&y(DayHeader,{dates:un.headerDates,dateProfile:cn,datesRepDistinctDays:!0,renderIntro:xn?this.renderHeadAxis:null}),wn=rn.allDaySlot!==!1&&(Cn=>y(DayTable,Object.assign({},pn.allDay,{dateProfile:cn,dayTableModel:un,nextDayThreshold:rn.nextDayThreshold,tableMinWidth:Cn.tableMinWidth,colGroupNode:Cn.tableColGroupNode,renderRowIntro:xn?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:Cn.clientWidth,clientHeight:Cn.clientHeight,forPrint:on.forPrint},this.getAllDayMaxEventProps()))),An=Cn=>y(DayTimeCols,Object.assign({},pn.timed,{dayTableModel:un,dateProfile:cn,axis:xn,slotDuration:rn.slotDuration,slatMetas:fn,forPrint:on.forPrint,tableColGroupNode:Cn.tableColGroupNode,tableMinWidth:Cn.tableMinWidth,clientWidth:Cn.clientWidth,clientHeight:Cn.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:Cn.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return vn?this.renderHScrollLayout(yn,wn,An,un.colCnt,mn,fn,this.state.slatCoords):this.renderSimpleLayout(yn,wn,An)}}function buildTimeColsModel(ln,rn){let an=new DaySeriesModel(ln.renderRange,rn);return new DayTableModel(an,!1)}var css_248z='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';injectStyles(css_248z);const OPTION_REFINERS$1={allDaySlot:Boolean};var index$1=createPlugin({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:OPTION_REFINERS$1,views:{timeGrid:{component:DayTimeColsView,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});config.touchMouseIgnoreWait=500;let ignoreMouseDepth=0,listenerCnt=0,isWindowTouchMoveCancelled=!1;class PointerDragging{constructor(rn){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=an=>{if(!this.shouldIgnoreMouse()&&isPrimaryMouseButton(an)&&this.tryStart(an)){let sn=this.createEventFromMouse(an,!0);this.emitter.trigger("pointerdown",sn),this.initScrollWatch(sn),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=an=>{let sn=this.createEventFromMouse(an);this.recordCoords(sn),this.emitter.trigger("pointermove",sn)},this.handleMouseUp=an=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(an)),this.cleanup()},this.handleTouchStart=an=>{if(this.tryStart(an)){this.isTouchDragging=!0;let sn=this.createEventFromTouch(an,!0);this.emitter.trigger("pointerdown",sn),this.initScrollWatch(sn);let on=an.target;this.shouldIgnoreMove||on.addEventListener("touchmove",this.handleTouchMove),on.addEventListener("touchend",this.handleTouchEnd),on.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=an=>{let sn=this.createEventFromTouch(an);this.recordCoords(sn),this.emitter.trigger("pointermove",sn)},this.handleTouchEnd=an=>{if(this.isDragging){let sn=an.target;sn.removeEventListener("touchmove",this.handleTouchMove),sn.removeEventListener("touchend",this.handleTouchEnd),sn.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(an)),this.cleanup(),this.isTouchDragging=!1,startIgnoringMouse()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=an=>{if(!this.shouldIgnoreMove){let sn=window.scrollX-this.prevScrollX+this.prevPageX,on=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:an,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:sn,pageY:on,deltaX:sn-this.origPageX,deltaY:on-this.origPageY})}},this.containerEl=rn,this.emitter=new Emitter,rn.addEventListener("mousedown",this.handleMouseDown),rn.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),listenerCreated()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),listenerDestroyed()}tryStart(rn){let an=this.querySubjectEl(rn),sn=rn.target;return an&&(!this.handleSelector||elementClosest(sn,this.handleSelector))?(this.subjectEl=an,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){isWindowTouchMoveCancelled=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(rn){return this.selector?elementClosest(rn.target,this.selector):this.containerEl}shouldIgnoreMouse(){return ignoreMouseDepth||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(isWindowTouchMoveCancelled=!0)}initScrollWatch(rn){this.shouldWatchScroll&&(this.recordCoords(rn),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(rn){this.shouldWatchScroll&&(this.prevPageX=rn.pageX,this.prevPageY=rn.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(rn,an){let sn=0,on=0;return an?(this.origPageX=rn.pageX,this.origPageY=rn.pageY):(sn=rn.pageX-this.origPageX,on=rn.pageY-this.origPageY),{origEvent:rn,isTouch:!1,subjectEl:this.subjectEl,pageX:rn.pageX,pageY:rn.pageY,deltaX:sn,deltaY:on}}createEventFromTouch(rn,an){let sn=rn.touches,on,cn,un=0,pn=0;return sn&&sn.length?(on=sn[0].pageX,cn=sn[0].pageY):(on=rn.pageX,cn=rn.pageY),an?(this.origPageX=on,this.origPageY=cn):(un=on-this.origPageX,pn=cn-this.origPageY),{origEvent:rn,isTouch:!0,subjectEl:this.subjectEl,pageX:on,pageY:cn,deltaX:un,deltaY:pn}}}function isPrimaryMouseButton(ln){return ln.button===0&&!ln.ctrlKey}function startIgnoringMouse(){ignoreMouseDepth+=1,setTimeout(()=>{ignoreMouseDepth-=1},config.touchMouseIgnoreWait)}function listenerCreated(){listenerCnt+=1,listenerCnt===1&&window.addEventListener("touchmove",onWindowTouchMove,{passive:!1})}function listenerDestroyed(){listenerCnt-=1,listenerCnt||window.removeEventListener("touchmove",onWindowTouchMove,{passive:!1})}function onWindowTouchMove(ln){isWindowTouchMoveCancelled&&ln.preventDefault()}class ElementMirror{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(rn,an,sn){this.sourceEl=rn,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=an-window.scrollX,this.origScreenY=sn-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(rn,an){this.deltaX=rn-window.scrollX-this.origScreenX,this.deltaY=an-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(rn){rn?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=rn,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=rn)}stop(rn,an){let sn=()=>{this.cleanup(),an()};rn&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(sn,this.revertDuration):setTimeout(sn,0)}doRevertAnimation(rn,an){let sn=this.mirrorEl,on=this.sourceEl.getBoundingClientRect();sn.style.transition="top "+an+"ms,left "+an+"ms",applyStyle(sn,{left:on.left,top:on.top}),whenTransitionDone(sn,()=>{sn.style.transition="",rn()})}cleanup(){this.mirrorEl&&(removeElement(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&applyStyle(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let rn=this.sourceElRect,an=this.mirrorEl;return an||(an=this.mirrorEl=this.sourceEl.cloneNode(!0),an.style.userSelect="none",an.style.webkitUserSelect="none",an.style.pointerEvents="none",an.classList.add("fc-event-dragging"),applyStyle(an,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:rn.right-rn.left,height:rn.bottom-rn.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(an)),an}}class ScrollGeomCache extends ScrollController{constructor(rn,an){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=rn,this.doesListening=an,this.scrollTop=this.origScrollTop=rn.getScrollTop(),this.scrollLeft=this.origScrollLeft=rn.getScrollLeft(),this.scrollWidth=rn.getScrollWidth(),this.scrollHeight=rn.getScrollHeight(),this.clientWidth=rn.getClientWidth(),this.clientHeight=rn.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(rn){this.scrollController.setScrollTop(rn),this.doesListening||(this.scrollTop=Math.max(Math.min(rn,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(rn){this.scrollController.setScrollLeft(rn),this.doesListening||(this.scrollLeft=Math.max(Math.min(rn,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class ElementScrollGeomCache extends ScrollGeomCache{constructor(rn,an){super(new ElementScrollController(rn),an)}getEventTarget(){return this.scrollController.el}computeClientRect(){return computeInnerRect(this.scrollController.el)}}class WindowScrollGeomCache extends ScrollGeomCache{constructor(rn){super(new WindowScrollController,rn)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const getTime=typeof performance=="function"?performance.now:Date.now;class AutoScroller{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let rn=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(rn){let an=getTime();this.handleSide(rn,(an-this.msSinceRequest)/1e3),this.requestAnimation(an)}else this.isAnimating=!1}}}start(rn,an,sn){this.isEnabled&&(this.scrollCaches=this.buildCaches(sn),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(rn,an))}handleMove(rn,an){if(this.isEnabled){let sn=rn-window.scrollX,on=an-window.scrollY,cn=this.pointerScreenY===null?0:on-this.pointerScreenY,un=this.pointerScreenX===null?0:sn-this.pointerScreenX;cn<0?this.everMovedUp=!0:cn>0&&(this.everMovedDown=!0),un<0?this.everMovedLeft=!0:un>0&&(this.everMovedRight=!0),this.pointerScreenX=sn,this.pointerScreenY=on,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(getTime()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let rn of this.scrollCaches)rn.destroy();this.scrollCaches=null}}requestAnimation(rn){this.msSinceRequest=rn,requestAnimationFrame(this.animate)}handleSide(rn,an){let{scrollCache:sn}=rn,{edgeThreshold:on}=this,cn=on-rn.distance,un=cn*cn/(on*on)*this.maxVelocity*an,pn=1;switch(rn.name){case"left":pn=-1;case"right":sn.setScrollLeft(sn.getScrollLeft()+un*pn);break;case"top":pn=-1;case"bottom":sn.setScrollTop(sn.getScrollTop()+un*pn);break}}computeBestEdge(rn,an){let{edgeThreshold:sn}=this,on=null,cn=this.scrollCaches||[];for(let un of cn){let pn=un.clientRect,fn=rn-pn.left,mn=pn.right-rn,xn=an-pn.top,vn=pn.bottom-an;fn>=0&&mn>=0&&xn>=0&&vn>=0&&(xn<=sn&&this.everMovedUp&&un.canScrollUp()&&(!on||on.distance>xn)&&(on={scrollCache:un,name:"top",distance:xn}),vn<=sn&&this.everMovedDown&&un.canScrollDown()&&(!on||on.distance>vn)&&(on={scrollCache:un,name:"bottom",distance:vn}),fn<=sn&&this.everMovedLeft&&un.canScrollLeft()&&(!on||on.distance>fn)&&(on={scrollCache:un,name:"left",distance:fn}),mn<=sn&&this.everMovedRight&&un.canScrollRight()&&(!on||on.distance>mn)&&(on={scrollCache:un,name:"right",distance:mn}))}return on}buildCaches(rn){return this.queryScrollEls(rn).map(an=>an===window?new WindowScrollGeomCache(!1):new ElementScrollGeomCache(an,!1))}queryScrollEls(rn){let an=[];for(let sn of this.scrollQuery)typeof sn=="object"?an.push(sn):an.push(...Array.prototype.slice.call(rn.getRootNode().querySelectorAll(sn)));return an}}class FeaturefulElementDragging extends ElementDragging{constructor(rn,an){super(rn),this.containerEl=rn,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=on=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,preventSelection(document.body),preventContextMenu(document.body),on.isTouch||on.origEvent.preventDefault(),this.emitter.trigger("pointerdown",on),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(on.subjectEl,on.pageX,on.pageY),this.startDelay(on),this.minDistance||this.handleDistanceSurpassed(on)))},this.onPointerMove=on=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",on),!this.isDistanceSurpassed){let cn=this.minDistance,un,{deltaX:pn,deltaY:fn}=on;un=pn*pn+fn*fn,un>=cn*cn&&this.handleDistanceSurpassed(on)}this.isDragging&&(on.origEvent.type!=="scroll"&&(this.mirror.handleMove(on.pageX,on.pageY),this.autoScroller.handleMove(on.pageX,on.pageY)),this.emitter.trigger("dragmove",on))}},this.onPointerUp=on=>{this.isInteracting&&(this.isInteracting=!1,allowSelection(document.body),allowContextMenu(document.body),this.emitter.trigger("pointerup",on),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(on)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let sn=this.pointer=new PointerDragging(rn);sn.emitter.on("pointerdown",this.onPointerDown),sn.emitter.on("pointermove",this.onPointerMove),sn.emitter.on("pointerup",this.onPointerUp),an&&(sn.selector=an),this.mirror=new ElementMirror,this.autoScroller=new AutoScroller}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(rn){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(rn)},this.delay):this.handleDelayEnd(rn)}handleDelayEnd(rn){this.isDelayEnded=!0,this.tryStartDrag(rn)}handleDistanceSurpassed(rn){this.isDistanceSurpassed=!0,this.tryStartDrag(rn)}tryStartDrag(rn){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(rn.pageX,rn.pageY,this.containerEl),this.emitter.trigger("dragstart",rn),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(rn){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,rn))}stopDrag(rn){this.isDragging=!1,this.emitter.trigger("dragend",rn)}setIgnoreMove(rn){this.pointer.shouldIgnoreMove=rn}setMirrorIsVisible(rn){this.mirror.setIsVisible(rn)}setMirrorNeedsRevert(rn){this.mirrorNeedsRevert=rn}setAutoScrollEnabled(rn){this.autoScroller.isEnabled=rn}}class OffsetTracker{constructor(rn){this.el=rn,this.origRect=computeRect(rn),this.scrollCaches=getClippingParents(rn).map(an=>new ElementScrollGeomCache(an,!0))}destroy(){for(let rn of this.scrollCaches)rn.destroy()}computeLeft(){let rn=this.origRect.left;for(let an of this.scrollCaches)rn+=an.origScrollLeft-an.getScrollLeft();return rn}computeTop(){let rn=this.origRect.top;for(let an of this.scrollCaches)rn+=an.origScrollTop-an.getScrollTop();return rn}isWithinClipping(rn,an){let sn={left:rn,top:an};for(let on of this.scrollCaches)if(!isIgnoredClipping(on.getEventTarget())&&!pointInsideRect(sn,on.clientRect))return!1;return!0}}function isIgnoredClipping(ln){let rn=ln.tagName;return rn==="HTML"||rn==="BODY"}class HitDragging{constructor(rn,an){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=sn=>{let{dragging:on}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(sn),this.initialHit||!this.requireInitial?(on.setIgnoreMove(!1),this.emitter.trigger("pointerdown",sn)):on.setIgnoreMove(!0)},this.handleDragStart=sn=>{this.emitter.trigger("dragstart",sn),this.handleMove(sn,!0)},this.handleDragMove=sn=>{this.emitter.trigger("dragmove",sn),this.handleMove(sn)},this.handlePointerUp=sn=>{this.releaseHits(),this.emitter.trigger("pointerup",sn)},this.handleDragEnd=sn=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,sn),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",sn)},this.droppableStore=an,rn.emitter.on("pointerdown",this.handlePointerDown),rn.emitter.on("dragstart",this.handleDragStart),rn.emitter.on("dragmove",this.handleDragMove),rn.emitter.on("pointerup",this.handlePointerUp),rn.emitter.on("dragend",this.handleDragEnd),this.dragging=rn,this.emitter=new Emitter}processFirstCoord(rn){let an={left:rn.pageX,top:rn.pageY},sn=an,on=rn.subjectEl,cn;on instanceof HTMLElement&&(cn=computeRect(on),sn=constrainPoint(sn,cn));let un=this.initialHit=this.queryHitForOffset(sn.left,sn.top);if(un){if(this.useSubjectCenter&&cn){let pn=intersectRects(cn,un.rect);pn&&(sn=getRectCenter(pn))}this.coordAdjust=diffPoints(sn,an)}else this.coordAdjust={left:0,top:0}}handleMove(rn,an){let sn=this.queryHitForOffset(rn.pageX+this.coordAdjust.left,rn.pageY+this.coordAdjust.top);(an||!isHitsEqual(this.movingHit,sn))&&(this.movingHit=sn,this.emitter.trigger("hitupdate",sn,!1,rn))}prepareHits(){this.offsetTrackers=mapHash(this.droppableStore,rn=>(rn.component.prepareHits(),new OffsetTracker(rn.el)))}releaseHits(){let{offsetTrackers:rn}=this;for(let an in rn)rn[an].destroy();this.offsetTrackers={}}queryHitForOffset(rn,an){let{droppableStore:sn,offsetTrackers:on}=this,cn=null;for(let un in sn){let pn=sn[un].component,fn=on[un];if(fn&&fn.isWithinClipping(rn,an)){let mn=fn.computeLeft(),xn=fn.computeTop(),vn=rn-mn,yn=an-xn,{origRect:wn}=fn,An=wn.right-wn.left,Cn=wn.bottom-wn.top;if(vn>=0&&vn<An&&yn>=0&&yn<Cn){let kn=pn.queryHit(vn,yn,An,Cn);kn&&rangeContainsRange(kn.dateProfile.activeRange,kn.dateSpan.range)&&(this.disablePointCheck||fn.el.contains(fn.el.getRootNode().elementFromPoint(vn+mn-window.scrollX,yn+xn-window.scrollY)))&&(!cn||kn.layer>cn.layer)&&(kn.componentId=un,kn.context=pn.context,kn.rect.left+=mn,kn.rect.right+=mn,kn.rect.top+=xn,kn.rect.bottom+=xn,cn=kn)}}}return cn}}function isHitsEqual(ln,rn){return!ln&&!rn?!0:!!ln!=!!rn?!1:isDateSpansEqual(ln.dateSpan,rn.dateSpan)}function buildDatePointApiWithContext(ln,rn){let an={};for(let sn of rn.pluginHooks.datePointTransforms)Object.assign(an,sn(ln,rn));return Object.assign(an,buildDatePointApi(ln,rn.dateEnv)),an}function buildDatePointApi(ln,rn){return{date:rn.toDate(ln.range.start),dateStr:rn.formatIso(ln.range.start,{omitTime:ln.allDay}),allDay:ln.allDay}}class DateClicking extends Interaction{constructor(rn){super(rn),this.handlePointerDown=sn=>{let{dragging:on}=this,cn=sn.origEvent.target;on.setIgnoreMove(!this.component.isValidDateDownEl(cn))},this.handleDragEnd=sn=>{let{component:on}=this,{pointer:cn}=this.dragging;if(!cn.wasTouchScroll){let{initialHit:un,finalHit:pn}=this.hitDragging;if(un&&pn&&isHitsEqual(un,pn)){let{context:fn}=on,mn=Object.assign(Object.assign({},buildDatePointApiWithContext(un.dateSpan,fn)),{dayEl:un.dayEl,jsEvent:sn.origEvent,view:fn.viewApi||fn.calendarApi.view});fn.emitter.trigger("dateClick",mn)}}},this.dragging=new FeaturefulElementDragging(rn.el),this.dragging.autoScroller.isEnabled=!1;let an=this.hitDragging=new HitDragging(this.dragging,interactionSettingsToStore(rn));an.emitter.on("pointerdown",this.handlePointerDown),an.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class DateSelecting extends Interaction{constructor(rn){super(rn),this.dragSelection=null,this.handlePointerDown=un=>{let{component:pn,dragging:fn}=this,{options:mn}=pn.context,xn=mn.selectable&&pn.isValidDateDownEl(un.origEvent.target);fn.setIgnoreMove(!xn),fn.delay=un.isTouch?getComponentTouchDelay$1(pn):null},this.handleDragStart=un=>{this.component.context.calendarApi.unselect(un)},this.handleHitUpdate=(un,pn)=>{let{context:fn}=this.component,mn=null,xn=!1;if(un){let vn=this.hitDragging.initialHit;un.componentId===vn.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(vn,un)||(mn=joinHitsIntoSelection(vn,un,fn.pluginHooks.dateSelectionTransformers)),(!mn||!isDateSelectionValid(mn,un.dateProfile,fn))&&(xn=!0,mn=null)}mn?fn.dispatch({type:"SELECT_DATES",selection:mn}):pn||fn.dispatch({type:"UNSELECT_DATES"}),xn?disableCursor():enableCursor(),pn||(this.dragSelection=mn)},this.handlePointerUp=un=>{this.dragSelection&&(triggerDateSelect(this.dragSelection,un,this.component.context),this.dragSelection=null)};let{component:an}=rn,{options:sn}=an.context,on=this.dragging=new FeaturefulElementDragging(rn.el);on.touchScrollAllowed=!1,on.minDistance=sn.selectMinDistance||0,on.autoScroller.isEnabled=sn.dragScroll;let cn=this.hitDragging=new HitDragging(this.dragging,interactionSettingsToStore(rn));cn.emitter.on("pointerdown",this.handlePointerDown),cn.emitter.on("dragstart",this.handleDragStart),cn.emitter.on("hitupdate",this.handleHitUpdate),cn.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function getComponentTouchDelay$1(ln){let{options:rn}=ln.context,an=rn.selectLongPressDelay;return an==null&&(an=rn.longPressDelay),an}function joinHitsIntoSelection(ln,rn,an){let sn=ln.dateSpan,on=rn.dateSpan,cn=[sn.range.start,sn.range.end,on.range.start,on.range.end];cn.sort(compareNumbers);let un={};for(let pn of an){let fn=pn(ln,rn);if(fn===!1)return null;fn&&Object.assign(un,fn)}return un.range={start:cn[0],end:cn[3]},un.allDay=sn.allDay,un}class EventDragging extends Interaction{constructor(rn){super(rn),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=un=>{let pn=un.origEvent.target,{component:fn,dragging:mn}=this,{mirror:xn}=mn,{options:vn}=fn.context,yn=fn.context;this.subjectEl=un.subjectEl;let wn=this.subjectSeg=getElSeg(un.subjectEl),Cn=(this.eventRange=wn.eventRange).instance.instanceId;this.relevantEvents=getRelevantEvents(yn.getCurrentData().eventStore,Cn),mn.minDistance=un.isTouch?0:vn.eventDragMinDistance,mn.delay=un.isTouch&&Cn!==fn.props.eventSelection?getComponentTouchDelay(fn):null,vn.fixedMirrorParent?xn.parentNode=vn.fixedMirrorParent:xn.parentNode=elementClosest(pn,".fc"),xn.revertDuration=vn.dragRevertDuration;let kn=fn.isValidSegDownEl(pn)&&!elementClosest(pn,".fc-event-resizer");mn.setIgnoreMove(!kn),this.isDragging=kn&&un.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=un=>{let pn=this.component.context,fn=this.eventRange,mn=fn.instance.instanceId;un.isTouch?mn!==this.component.props.eventSelection&&pn.dispatch({type:"SELECT_EVENT",eventInstanceId:mn}):pn.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(pn.calendarApi.unselect(un),pn.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new EventImpl(pn,fn.def,fn.instance),jsEvent:un.origEvent,view:pn.viewApi}))},this.handleHitUpdate=(un,pn)=>{if(!this.isDragging)return;let fn=this.relevantEvents,mn=this.hitDragging.initialHit,xn=this.component.context,vn=null,yn=null,wn=null,An=!1,Cn={affectedEvents:fn,mutatedEvents:createEmptyEventStore(),isEvent:!0};if(un){vn=un.context;let kn=vn.options;xn===vn||kn.editable&&kn.droppable?(yn=computeEventMutation(mn,un,this.eventRange.instance.range.start,vn.getCurrentData().pluginHooks.eventDragMutationMassagers),yn&&(wn=applyMutationToEventStore(fn,vn.getCurrentData().eventUiBases,yn,vn),Cn.mutatedEvents=wn,isInteractionValid(Cn,un.dateProfile,vn)||(An=!0,yn=null,wn=null,Cn.mutatedEvents=createEmptyEventStore()))):vn=null}this.displayDrag(vn,Cn),An?disableCursor():enableCursor(),pn||(xn===vn&&isHitsEqual(mn,un)&&(yn=null),this.dragging.setMirrorNeedsRevert(!yn),this.dragging.setMirrorIsVisible(!un||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=vn,this.validMutation=yn,this.mutatedRelevantEvents=wn)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=un=>{if(this.isDragging){let pn=this.component.context,fn=pn.viewApi,{receivingContext:mn,validMutation:xn}=this,vn=this.eventRange.def,yn=this.eventRange.instance,wn=new EventImpl(pn,vn,yn),An=this.relevantEvents,Cn=this.mutatedRelevantEvents,{finalHit:kn}=this.hitDragging;if(this.clearDrag(),pn.emitter.trigger("eventDragStop",{el:this.subjectEl,event:wn,jsEvent:un.origEvent,view:fn}),xn){if(mn===pn){let Mn=new EventImpl(pn,Cn.defs[vn.defId],yn?Cn.instances[yn.instanceId]:null);pn.dispatch({type:"MERGE_EVENTS",eventStore:Cn});let Tn={oldEvent:wn,event:Mn,relatedEvents:buildEventApis(Cn,pn,yn),revert(){pn.dispatch({type:"MERGE_EVENTS",eventStore:An})}},On={};for(let Pn of pn.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(On,Pn(xn,pn));pn.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},Tn),On),{el:un.subjectEl,delta:xn.datesDelta,jsEvent:un.origEvent,view:fn})),pn.emitter.trigger("eventChange",Tn)}else if(mn){let Mn={event:wn,relatedEvents:buildEventApis(An,pn,yn),revert(){pn.dispatch({type:"MERGE_EVENTS",eventStore:An})}};pn.emitter.trigger("eventLeave",Object.assign(Object.assign({},Mn),{draggedEl:un.subjectEl,view:fn})),pn.dispatch({type:"REMOVE_EVENTS",eventStore:An}),pn.emitter.trigger("eventRemove",Mn);let Tn=Cn.defs[vn.defId],On=Cn.instances[yn.instanceId],Pn=new EventImpl(mn,Tn,On);mn.dispatch({type:"MERGE_EVENTS",eventStore:Cn});let Nn={event:Pn,relatedEvents:buildEventApis(Cn,mn,On),revert(){mn.dispatch({type:"REMOVE_EVENTS",eventStore:Cn})}};mn.emitter.trigger("eventAdd",Nn),un.isTouch&&mn.dispatch({type:"SELECT_EVENT",eventInstanceId:yn.instanceId}),mn.emitter.trigger("drop",Object.assign(Object.assign({},buildDatePointApiWithContext(kn.dateSpan,mn)),{draggedEl:un.subjectEl,jsEvent:un.origEvent,view:kn.context.viewApi})),mn.emitter.trigger("eventReceive",Object.assign(Object.assign({},Nn),{draggedEl:un.subjectEl,view:kn.context.viewApi}))}}else pn.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:an}=this,{options:sn}=an.context,on=this.dragging=new FeaturefulElementDragging(rn.el);on.pointer.selector=EventDragging.SELECTOR,on.touchScrollAllowed=!1,on.autoScroller.isEnabled=sn.dragScroll;let cn=this.hitDragging=new HitDragging(this.dragging,interactionSettingsStore);cn.useSubjectCenter=rn.useEventCenter,cn.emitter.on("pointerdown",this.handlePointerDown),cn.emitter.on("dragstart",this.handleDragStart),cn.emitter.on("hitupdate",this.handleHitUpdate),cn.emitter.on("pointerup",this.handlePointerUp),cn.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(rn,an){let sn=this.component.context,on=this.receivingContext;on&&on!==rn&&(on===sn?on.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:an.affectedEvents,mutatedEvents:createEmptyEventStore(),isEvent:!0}}):on.dispatch({type:"UNSET_EVENT_DRAG"})),rn&&rn.dispatch({type:"SET_EVENT_DRAG",state:an})}clearDrag(){let rn=this.component.context,{receivingContext:an}=this;an&&an.dispatch({type:"UNSET_EVENT_DRAG"}),rn!==an&&rn.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}EventDragging.SELECTOR=".fc-event-draggable, .fc-event-resizable";function computeEventMutation(ln,rn,an,sn){let on=ln.dateSpan,cn=rn.dateSpan,un=on.range.start,pn=cn.range.start,fn={};on.allDay!==cn.allDay&&(fn.allDay=cn.allDay,fn.hasEnd=rn.context.options.allDayMaintainDuration,cn.allDay?un=startOfDay(an):un=an);let mn=diffDates(un,pn,ln.context.dateEnv,ln.componentId===rn.componentId?ln.largeUnit:null);mn.milliseconds&&(fn.allDay=!1);let xn={datesDelta:mn,standardProps:fn};for(let vn of sn)vn(xn,ln,rn);return xn}function getComponentTouchDelay(ln){let{options:rn}=ln.context,an=rn.eventLongPressDelay;return an==null&&(an=rn.longPressDelay),an}class EventResizing extends Interaction{constructor(rn){super(rn),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=cn=>{let{component:un}=this,pn=this.querySegEl(cn),fn=getElSeg(pn),mn=this.eventRange=fn.eventRange;this.dragging.minDistance=un.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(cn.origEvent.target)||cn.isTouch&&this.component.props.eventSelection!==mn.instance.instanceId)},this.handleDragStart=cn=>{let{context:un}=this.component,pn=this.eventRange;this.relevantEvents=getRelevantEvents(un.getCurrentData().eventStore,this.eventRange.instance.instanceId);let fn=this.querySegEl(cn);this.draggingSegEl=fn,this.draggingSeg=getElSeg(fn),un.calendarApi.unselect(),un.emitter.trigger("eventResizeStart",{el:fn,event:new EventImpl(un,pn.def,pn.instance),jsEvent:cn.origEvent,view:un.viewApi})},this.handleHitUpdate=(cn,un,pn)=>{let{context:fn}=this.component,mn=this.relevantEvents,xn=this.hitDragging.initialHit,vn=this.eventRange.instance,yn=null,wn=null,An=!1,Cn={affectedEvents:mn,mutatedEvents:createEmptyEventStore(),isEvent:!0};cn&&(cn.componentId===xn.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(xn,cn)||(yn=computeMutation(xn,cn,pn.subjectEl.classList.contains("fc-event-resizer-start"),vn.range))),yn&&(wn=applyMutationToEventStore(mn,fn.getCurrentData().eventUiBases,yn,fn),Cn.mutatedEvents=wn,isInteractionValid(Cn,cn.dateProfile,fn)||(An=!0,yn=null,wn=null,Cn.mutatedEvents=null)),wn?fn.dispatch({type:"SET_EVENT_RESIZE",state:Cn}):fn.dispatch({type:"UNSET_EVENT_RESIZE"}),An?disableCursor():enableCursor(),un||(yn&&isHitsEqual(xn,cn)&&(yn=null),this.validMutation=yn,this.mutatedRelevantEvents=wn)},this.handleDragEnd=cn=>{let{context:un}=this.component,pn=this.eventRange.def,fn=this.eventRange.instance,mn=new EventImpl(un,pn,fn),xn=this.relevantEvents,vn=this.mutatedRelevantEvents;if(un.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:mn,jsEvent:cn.origEvent,view:un.viewApi}),this.validMutation){let yn=new EventImpl(un,vn.defs[pn.defId],fn?vn.instances[fn.instanceId]:null);un.dispatch({type:"MERGE_EVENTS",eventStore:vn});let wn={oldEvent:mn,event:yn,relatedEvents:buildEventApis(vn,un,fn),revert(){un.dispatch({type:"MERGE_EVENTS",eventStore:xn})}};un.emitter.trigger("eventResize",Object.assign(Object.assign({},wn),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||createDuration(0),endDelta:this.validMutation.endDelta||createDuration(0),jsEvent:cn.origEvent,view:un.viewApi})),un.emitter.trigger("eventChange",wn)}else un.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:an}=rn,sn=this.dragging=new FeaturefulElementDragging(rn.el);sn.pointer.selector=".fc-event-resizer",sn.touchScrollAllowed=!1,sn.autoScroller.isEnabled=an.context.options.dragScroll;let on=this.hitDragging=new HitDragging(this.dragging,interactionSettingsToStore(rn));on.emitter.on("pointerdown",this.handlePointerDown),on.emitter.on("dragstart",this.handleDragStart),on.emitter.on("hitupdate",this.handleHitUpdate),on.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(rn){return elementClosest(rn.subjectEl,".fc-event")}}function computeMutation(ln,rn,an,sn){let on=ln.context.dateEnv,cn=ln.dateSpan.range.start,un=rn.dateSpan.range.start,pn=diffDates(cn,un,on,ln.largeUnit);if(an){if(on.add(sn.start,pn)<sn.end)return{startDelta:pn}}else if(on.add(sn.end,pn)>sn.start)return{endDelta:pn};return null}class UnselectAuto{constructor(rn){this.context=rn,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=sn=>{sn.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=sn=>{let on=this.context.options.unselectCancel,cn=getEventTargetViaRoot(sn.origEvent);this.matchesCancel=!!elementClosest(cn,on),this.matchesEvent=!!elementClosest(cn,EventDragging.SELECTOR)},this.onDocumentPointerUp=sn=>{let{context:on}=this,{documentPointer:cn}=this,un=on.getCurrentData();if(!cn.wasTouchScroll){if(un.dateSelection&&!this.isRecentPointerDateSelect){let pn=on.options.unselectAuto;pn&&(!pn||!this.matchesCancel)&&on.calendarApi.unselect(sn)}un.eventSelection&&!this.matchesEvent&&on.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let an=this.documentPointer=new PointerDragging(document);an.shouldIgnoreMove=!0,an.shouldWatchScroll=!1,an.emitter.on("pointerdown",this.onDocumentPointerDown),an.emitter.on("pointerup",this.onDocumentPointerUp),rn.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const OPTION_REFINERS={fixedMirrorParent:identity},LISTENER_REFINERS={dateClick:identity,eventDragStart:identity,eventDragStop:identity,eventDrop:identity,eventResizeStart:identity,eventResizeStop:identity,eventResize:identity,drop:identity,eventReceive:identity,eventLeave:identity};config.dataAttrPrefix="";var index=createPlugin({name:"@fullcalendar/interaction",componentInteractions:[DateClicking,DateSelecting,EventDragging,EventResizing],calendarInteractions:[UnselectAuto],elementDraggingImpl:FeaturefulElementDragging,optionRefiners:OPTION_REFINERS,listenerRefiners:LISTENER_REFINERS});const Calendar=()=>{const[ln,rn]=reactExports.useState(null),[an,sn]=reactExports.useState(""),[on,cn]=reactExports.useState(""),[un,pn]=reactExports.useState(""),[fn,mn]=reactExports.useState(""),[xn,vn]=reactExports.useState([]),yn=reactExports.useRef(null),{isOpen:wn,openModal:An,closeModal:Cn}=useModal(),kn={Danger:"danger",Success:"success",Primary:"primary",Warning:"warning"};reactExports.useEffect(()=>{vn([{id:"1",title:"Event Conf.",start:new Date().toISOString().split("T")[0],extendedProps:{calendar:"Danger"}},{id:"2",title:"Meeting",start:new Date(Date.now()+864e5).toISOString().split("T")[0],extendedProps:{calendar:"Success"}},{id:"3",title:"Workshop",start:new Date(Date.now()+1728e5).toISOString().split("T")[0],end:new Date(Date.now()+2592e5).toISOString().split("T")[0],extendedProps:{calendar:"Primary"}}])},[]);const Mn=Nn=>{Pn(),cn(Nn.startStr),pn(Nn.endStr||Nn.startStr),An()},Tn=Nn=>{var jn,Fn;const In=Nn.event;rn(In),sn(In.title),cn(((jn=In.start)==null?void 0:jn.toISOString().split("T")[0])||""),pn(((Fn=In.end)==null?void 0:Fn.toISOString().split("T")[0])||""),mn(In.extendedProps.calendar),An()},On=()=>{if(ln)vn(Nn=>Nn.map(In=>In.id===ln.id?{...In,title:an,start:on,end:un,extendedProps:{calendar:fn}}:In));else{const Nn={id:Date.now().toString(),title:an,start:on,end:un,allDay:!0,extendedProps:{calendar:fn}};vn(In=>[...In,Nn])}Cn(),Pn()},Pn=()=>{sn(""),cn(""),pn(""),mn(""),rn(null)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"React.js Calendar Dashboard | TailAdmin - Next.js Admin Dashboard Template",description:"This is React.js Calendar Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),jsxRuntimeExports.jsxs("div",{className:"rounded-2xl border  border-gray-200 bg-white dark:border-gray-800 dark:bg-white/[0.03]",children:[jsxRuntimeExports.jsx("div",{className:"custom-calendar",children:jsxRuntimeExports.jsx(FullCalendar,{ref:yn,plugins:[index$2,index$1,index],initialView:"dayGridMonth",headerToolbar:{left:"prev,next addEventButton",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},events:xn,selectable:!0,select:Mn,eventClick:Tn,eventContent:renderEventContent,customButtons:{addEventButton:{text:"Add Event +",click:An}}})}),jsxRuntimeExports.jsx(Modal,{isOpen:wn,onClose:Cn,className:"max-w-[700px] p-6 lg:p-10",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col px-2 overflow-y-auto custom-scrollbar",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h5",{className:"mb-2 font-semibold text-gray-800 modal-title text-theme-xl dark:text-white/90 lg:text-2xl",children:ln?"Edit Event":"Add Event"}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Plan your next big moment: schedule or edit an event to stay on track"})]}),jsxRuntimeExports.jsxs("div",{className:"mt-8",children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"mb-1.5 block text-sm font-medium text-gray-700 dark:text-gray-400",children:"Event Title"}),jsxRuntimeExports.jsx("input",{id:"event-title",type:"text",value:an,onChange:Nn=>sn(Nn.target.value),className:"dark:bg-dark-900 h-11 w-full rounded-lg border border-gray-300 bg-transparent px-4 py-2.5 text-sm text-gray-800 shadow-theme-xs placeholder:text-gray-400 focus:border-brand-300 focus:outline-hidden focus:ring-3 focus:ring-brand-500/10 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30 dark:focus:border-brand-800"})]})}),jsxRuntimeExports.jsxs("div",{className:"mt-6",children:[jsxRuntimeExports.jsx("label",{className:"block mb-4 text-sm font-medium text-gray-700 dark:text-gray-400",children:"Event Color"}),jsxRuntimeExports.jsx("div",{className:"flex flex-wrap items-center gap-4 sm:gap-5",children:Object.entries(kn).map(([Nn,In])=>jsxRuntimeExports.jsx("div",{className:"n-chk",children:jsxRuntimeExports.jsx("div",{className:`form-check form-check-${In} form-check-inline`,children:jsxRuntimeExports.jsxs("label",{className:"flex items-center text-sm text-gray-700 form-check-label dark:text-gray-400",htmlFor:`modal${Nn}`,children:[jsxRuntimeExports.jsxs("span",{className:"relative",children:[jsxRuntimeExports.jsx("input",{className:"sr-only form-check-input",type:"radio",name:"event-level",value:Nn,id:`modal${Nn}`,checked:fn===Nn,onChange:()=>mn(Nn)}),jsxRuntimeExports.jsx("span",{className:"flex items-center justify-center w-5 h-5 mr-2 border border-gray-300 rounded-full box dark:border-gray-700",children:jsxRuntimeExports.jsx("span",{className:`h-2 w-2 rounded-full bg-white ${fn===Nn?"block":"hidden"}`})})]}),Nn]})})},Nn))})]}),jsxRuntimeExports.jsxs("div",{className:"mt-6",children:[jsxRuntimeExports.jsx("label",{className:"mb-1.5 block text-sm font-medium text-gray-700 dark:text-gray-400",children:"Enter Start Date"}),jsxRuntimeExports.jsx("div",{className:"relative",children:jsxRuntimeExports.jsx("input",{id:"event-start-date",type:"date",value:on,onChange:Nn=>cn(Nn.target.value),className:"dark:bg-dark-900 h-11 w-full appearance-none rounded-lg border border-gray-300 bg-transparent bg-none px-4 py-2.5 pl-4 pr-11 text-sm text-gray-800 shadow-theme-xs placeholder:text-gray-400 focus:border-brand-300 focus:outline-hidden focus:ring-3 focus:ring-brand-500/10 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30 dark:focus:border-brand-800"})})]}),jsxRuntimeExports.jsxs("div",{className:"mt-6",children:[jsxRuntimeExports.jsx("label",{className:"mb-1.5 block text-sm font-medium text-gray-700 dark:text-gray-400",children:"Enter End Date"}),jsxRuntimeExports.jsx("div",{className:"relative",children:jsxRuntimeExports.jsx("input",{id:"event-end-date",type:"date",value:un,onChange:Nn=>pn(Nn.target.value),className:"dark:bg-dark-900 h-11 w-full appearance-none rounded-lg border border-gray-300 bg-transparent bg-none px-4 py-2.5 pl-4 pr-11 text-sm text-gray-800 shadow-theme-xs placeholder:text-gray-400 focus:border-brand-300 focus:outline-hidden focus:ring-3 focus:ring-brand-500/10 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30 dark:focus:border-brand-800"})})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 mt-6 modal-footer sm:justify-end",children:[jsxRuntimeExports.jsx("button",{onClick:Cn,type:"button",className:"flex w-full justify-center rounded-lg border border-gray-300 bg-white px-4 py-2.5 text-sm font-medium text-gray-700 hover:bg-gray-50 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/[0.03] sm:w-auto",children:"Close"}),jsxRuntimeExports.jsx("button",{onClick:On,type:"button",className:"btn btn-success btn-update-event flex w-full justify-center rounded-lg bg-brand-500 px-4 py-2.5 text-sm font-medium text-white hover:bg-brand-600 sm:w-auto",children:ln?"Update Changes":"Add Event"})]})]})})]})]})},renderEventContent=ln=>{const rn=`fc-bg-${ln.event.extendedProps.calendar.toLowerCase()}`;return jsxRuntimeExports.jsxs("div",{className:`event-fc-color flex fc-event-main ${rn} p-1 rounded-sm`,children:[jsxRuntimeExports.jsx("div",{className:"fc-daygrid-event-dot"}),jsxRuntimeExports.jsx("div",{className:"fc-event-time",children:ln.timeText}),jsxRuntimeExports.jsx("div",{className:"fc-event-title",children:ln.event.title})]})},Table=({children:ln,className:rn})=>jsxRuntimeExports.jsx("table",{className:`min-w-full  ${rn}`,children:ln}),TableHeader=({children:ln,className:rn})=>jsxRuntimeExports.jsx("thead",{className:rn,children:ln}),TableBody=({children:ln,className:rn})=>jsxRuntimeExports.jsx("tbody",{className:rn,children:ln}),TableRow=({children:ln,className:rn})=>jsxRuntimeExports.jsx("tr",{className:rn,children:ln}),TableCell=({children:ln,isHeader:rn=!1,className:an})=>{const sn=rn?"th":"td";return jsxRuntimeExports.jsx(sn,{className:` ${an}`,children:ln})},tableData$1=[{id:1,user:{image:"/images/user/user-17.jpg",name:"Lindsey Curtis",role:"Web Designer"},projectName:"Agency Website",team:{images:["/images/user/user-22.jpg","/images/user/user-23.jpg","/images/user/user-24.jpg"]},budget:"3.9K",status:"Active"},{id:2,user:{image:"/images/user/user-18.jpg",name:"Kaiya George",role:"Project Manager"},projectName:"Technology",team:{images:["/images/user/user-25.jpg","/images/user/user-26.jpg"]},budget:"24.9K",status:"Pending"},{id:3,user:{image:"/images/user/user-17.jpg",name:"Zain Geidt",role:"Content Writing"},projectName:"Blog Writing",team:{images:["/images/user/user-27.jpg"]},budget:"12.7K",status:"Active"},{id:4,user:{image:"/images/user/user-20.jpg",name:"Abram Schleifer",role:"Digital Marketer"},projectName:"Social Media",team:{images:["/images/user/user-28.jpg","/images/user/user-29.jpg","/images/user/user-30.jpg"]},budget:"2.8K",status:"Cancel"},{id:5,user:{image:"/images/user/user-21.jpg",name:"Carla George",role:"Front-end Developer"},projectName:"Website",team:{images:["/images/user/user-31.jpg","/images/user/user-32.jpg","/images/user/user-33.jpg"]},budget:"4.5K",status:"Active"}];function BasicTableOne(){return jsxRuntimeExports.jsx("div",{className:"overflow-hidden rounded-xl border border-gray-200 bg-white dark:border-white/[0.05] dark:bg-white/[0.03]",children:jsxRuntimeExports.jsx("div",{className:"max-w-full overflow-x-auto",children:jsxRuntimeExports.jsxs(Table,{children:[jsxRuntimeExports.jsx(TableHeader,{className:"border-b border-gray-100 dark:border-white/[0.05]",children:jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{isHeader:!0,className:"px-5 py-3 font-medium text-gray-500 text-start text-theme-xs dark:text-gray-400",children:"User"}),jsxRuntimeExports.jsx(TableCell,{isHeader:!0,className:"px-5 py-3 font-medium text-gray-500 text-start text-theme-xs dark:text-gray-400",children:"Project Name"}),jsxRuntimeExports.jsx(TableCell,{isHeader:!0,className:"px-5 py-3 font-medium text-gray-500 text-start text-theme-xs dark:text-gray-400",children:"Team"}),jsxRuntimeExports.jsx(TableCell,{isHeader:!0,className:"px-5 py-3 font-medium text-gray-500 text-start text-theme-xs dark:text-gray-400",children:"Status"}),jsxRuntimeExports.jsx(TableCell,{isHeader:!0,className:"px-5 py-3 font-medium text-gray-500 text-start text-theme-xs dark:text-gray-400",children:"Budget"})]})}),jsxRuntimeExports.jsx(TableBody,{className:"divide-y divide-gray-100 dark:divide-white/[0.05]",children:tableData$1.map(ln=>jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{className:"px-5 py-4 sm:px-6 text-start",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx("div",{className:"w-10 h-10 overflow-hidden rounded-full",children:jsxRuntimeExports.jsx("img",{width:40,height:40,src:ln.user.image,alt:ln.user.name})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("span",{className:"block font-medium text-gray-800 text-theme-sm dark:text-white/90",children:ln.user.name}),jsxRuntimeExports.jsx("span",{className:"block text-gray-500 text-theme-xs dark:text-gray-400",children:ln.user.role})]})]})}),jsxRuntimeExports.jsx(TableCell,{className:"px-4 py-3 text-gray-500 text-start text-theme-sm dark:text-gray-400",children:ln.projectName}),jsxRuntimeExports.jsx(TableCell,{className:"px-4 py-3 text-gray-500 text-start text-theme-sm dark:text-gray-400",children:jsxRuntimeExports.jsx("div",{className:"flex -space-x-2",children:ln.team.images.map((rn,an)=>jsxRuntimeExports.jsx("div",{className:"w-6 h-6 overflow-hidden border-2 border-white rounded-full dark:border-gray-900",children:jsxRuntimeExports.jsx("img",{width:24,height:24,src:rn,alt:`Team member ${an+1}`,className:"w-full size-6"})},an))})}),jsxRuntimeExports.jsx(TableCell,{className:"px-4 py-3 text-gray-500 text-start text-theme-sm dark:text-gray-400",children:jsxRuntimeExports.jsx(Badge,{size:"sm",color:ln.status==="Active"?"success":ln.status==="Pending"?"warning":"error",children:ln.status})}),jsxRuntimeExports.jsx(TableCell,{className:"px-4 py-3 text-gray-500 text-theme-sm dark:text-gray-400",children:ln.budget})]},ln.id))})]})})})}function BasicTables(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"React.js Basic Tables Dashboard | TailAdmin - Next.js Admin Dashboard Template",description:"This is React.js Basic Tables Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),jsxRuntimeExports.jsx(PageBreadcrumb,{pageTitle:"Basic Tables"}),jsxRuntimeExports.jsx("div",{className:"space-y-6",children:jsxRuntimeExports.jsx(ComponentCard,{title:"Basic Table 1",children:jsxRuntimeExports.jsx(BasicTableOne,{})})})]})}const Select=({options:ln,placeholder:rn="Select an option",onChange:an,className:sn="",defaultValue:on=""})=>{const[cn,un]=reactExports.useState(on),pn=fn=>{const mn=fn.target.value;un(mn),an(mn)};return jsxRuntimeExports.jsxs("select",{className:`h-11 w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-4 py-2.5 pr-11 text-sm shadow-theme-xs placeholder:text-gray-400 focus:border-brand-300 focus:outline-hidden focus:ring-3 focus:ring-brand-500/10 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30 dark:focus:border-brand-800 ${cn?"text-gray-800 dark:text-white/90":"text-gray-400 dark:text-gray-400"} ${sn}`,value:cn,onChange:pn,children:[jsxRuntimeExports.jsx("option",{value:"",disabled:!0,className:"text-gray-700 dark:bg-gray-900 dark:text-gray-400",children:rn}),ln.map(fn=>jsxRuntimeExports.jsx("option",{value:fn.value,className:"text-gray-700 dark:bg-gray-900 dark:text-gray-400",children:fn.label},fn.value))]})};var HOOKS=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],defaults={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(ln){return typeof console<"u"&&console.warn(ln)},getWeek:function(ln){var rn=new Date(ln.getTime());rn.setHours(0,0,0,0),rn.setDate(rn.getDate()+3-(rn.getDay()+6)%7);var an=new Date(rn.getFullYear(),0,4);return 1+Math.round(((rn.getTime()-an.getTime())/864e5-3+(an.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},english={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(ln){var rn=ln%100;if(rn>3&&rn<21)return"th";switch(rn%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},pad=function(ln,rn){return rn===void 0&&(rn=2),("000"+ln).slice(rn*-1)},int=function(ln){return ln===!0?1:0};function debounce(ln,rn){var an;return function(){var sn=this,on=arguments;clearTimeout(an),an=setTimeout(function(){return ln.apply(sn,on)},rn)}}var arrayify=function(ln){return ln instanceof Array?ln:[ln]};function toggleClass(ln,rn,an){if(an===!0)return ln.classList.add(rn);ln.classList.remove(rn)}function createElement(ln,rn,an){var sn=window.document.createElement(ln);return rn=rn||"",an=an||"",sn.className=rn,an!==void 0&&(sn.textContent=an),sn}function clearNode(ln){for(;ln.firstChild;)ln.removeChild(ln.firstChild)}function findParent(ln,rn){if(rn(ln))return ln;if(ln.parentNode)return findParent(ln.parentNode,rn)}function createNumberInput(ln,rn){var an=createElement("div","numInputWrapper"),sn=createElement("input","numInput "+ln),on=createElement("span","arrowUp"),cn=createElement("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?sn.type="number":(sn.type="text",sn.pattern="\\d*"),rn!==void 0)for(var un in rn)sn.setAttribute(un,rn[un]);return an.appendChild(sn),an.appendChild(on),an.appendChild(cn),an}function getEventTarget(ln){try{if(typeof ln.composedPath=="function"){var rn=ln.composedPath();return rn[0]}return ln.target}catch{return ln.target}}var doNothing=function(){},monthToStr=function(ln,rn,an){return an.months[rn?"shorthand":"longhand"][ln]},revFormat={D:doNothing,F:function(ln,rn,an){ln.setMonth(an.months.longhand.indexOf(rn))},G:function(ln,rn){ln.setHours((ln.getHours()>=12?12:0)+parseFloat(rn))},H:function(ln,rn){ln.setHours(parseFloat(rn))},J:function(ln,rn){ln.setDate(parseFloat(rn))},K:function(ln,rn,an){ln.setHours(ln.getHours()%12+12*int(new RegExp(an.amPM[1],"i").test(rn)))},M:function(ln,rn,an){ln.setMonth(an.months.shorthand.indexOf(rn))},S:function(ln,rn){ln.setSeconds(parseFloat(rn))},U:function(ln,rn){return new Date(parseFloat(rn)*1e3)},W:function(ln,rn,an){var sn=parseInt(rn),on=new Date(ln.getFullYear(),0,2+(sn-1)*7,0,0,0,0);return on.setDate(on.getDate()-on.getDay()+an.firstDayOfWeek),on},Y:function(ln,rn){ln.setFullYear(parseFloat(rn))},Z:function(ln,rn){return new Date(rn)},d:function(ln,rn){ln.setDate(parseFloat(rn))},h:function(ln,rn){ln.setHours((ln.getHours()>=12?12:0)+parseFloat(rn))},i:function(ln,rn){ln.setMinutes(parseFloat(rn))},j:function(ln,rn){ln.setDate(parseFloat(rn))},l:doNothing,m:function(ln,rn){ln.setMonth(parseFloat(rn)-1)},n:function(ln,rn){ln.setMonth(parseFloat(rn)-1)},s:function(ln,rn){ln.setSeconds(parseFloat(rn))},u:function(ln,rn){return new Date(parseFloat(rn))},w:doNothing,y:function(ln,rn){ln.setFullYear(2e3+parseFloat(rn))}},tokenRegex={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},formats={Z:function(ln){return ln.toISOString()},D:function(ln,rn,an){return rn.weekdays.shorthand[formats.w(ln,rn,an)]},F:function(ln,rn,an){return monthToStr(formats.n(ln,rn,an)-1,!1,rn)},G:function(ln,rn,an){return pad(formats.h(ln,rn,an))},H:function(ln){return pad(ln.getHours())},J:function(ln,rn){return rn.ordinal!==void 0?ln.getDate()+rn.ordinal(ln.getDate()):ln.getDate()},K:function(ln,rn){return rn.amPM[int(ln.getHours()>11)]},M:function(ln,rn){return monthToStr(ln.getMonth(),!0,rn)},S:function(ln){return pad(ln.getSeconds())},U:function(ln){return ln.getTime()/1e3},W:function(ln,rn,an){return an.getWeek(ln)},Y:function(ln){return pad(ln.getFullYear(),4)},d:function(ln){return pad(ln.getDate())},h:function(ln){return ln.getHours()%12?ln.getHours()%12:12},i:function(ln){return pad(ln.getMinutes())},j:function(ln){return ln.getDate()},l:function(ln,rn){return rn.weekdays.longhand[ln.getDay()]},m:function(ln){return pad(ln.getMonth()+1)},n:function(ln){return ln.getMonth()+1},s:function(ln){return ln.getSeconds()},u:function(ln){return ln.getTime()},w:function(ln){return ln.getDay()},y:function(ln){return String(ln.getFullYear()).substring(2)}},createDateFormatter=function(ln){var rn=ln.config,an=rn===void 0?defaults:rn,sn=ln.l10n,on=sn===void 0?english:sn,cn=ln.isMobile,un=cn===void 0?!1:cn;return function(pn,fn,mn){var xn=mn||on;return an.formatDate!==void 0&&!un?an.formatDate(pn,fn,xn):fn.split("").map(function(vn,yn,wn){return formats[vn]&&wn[yn-1]!=="\\"?formats[vn](pn,xn,an):vn!=="\\"?vn:""}).join("")}},createDateParser=function(ln){var rn=ln.config,an=rn===void 0?defaults:rn,sn=ln.l10n,on=sn===void 0?english:sn;return function(cn,un,pn,fn){if(!(cn!==0&&!cn)){var mn=fn||on,xn,vn=cn;if(cn instanceof Date)xn=new Date(cn.getTime());else if(typeof cn!="string"&&cn.toFixed!==void 0)xn=new Date(cn);else if(typeof cn=="string"){var yn=un||(an||defaults).dateFormat,wn=String(cn).trim();if(wn==="today")xn=new Date,pn=!0;else if(an&&an.parseDate)xn=an.parseDate(cn,yn);else if(/Z$/.test(wn)||/GMT$/.test(wn))xn=new Date(cn);else{for(var An=void 0,Cn=[],kn=0,Mn=0,Tn="";kn<yn.length;kn++){var On=yn[kn],Pn=On==="\\",Nn=yn[kn-1]==="\\"||Pn;if(tokenRegex[On]&&!Nn){Tn+=tokenRegex[On];var In=new RegExp(Tn).exec(cn);In&&(An=!0)&&Cn[On!=="Y"?"push":"unshift"]({fn:revFormat[On],val:In[++Mn]})}else Pn||(Tn+=".")}xn=!an||!an.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),Cn.forEach(function(jn){var Fn=jn.fn,Un=jn.val;return xn=Fn(xn,Un,mn)||xn}),xn=An?xn:void 0}}if(!(xn instanceof Date&&!isNaN(xn.getTime()))){an.errorHandler(new Error("Invalid date provided: "+vn));return}return pn===!0&&xn.setHours(0,0,0,0),xn}}};function compareDates(ln,rn,an){return an===void 0&&(an=!0),an!==!1?new Date(ln.getTime()).setHours(0,0,0,0)-new Date(rn.getTime()).setHours(0,0,0,0):ln.getTime()-rn.getTime()}var isBetween=function(ln,rn,an){return ln>Math.min(rn,an)&&ln<Math.max(rn,an)},calculateSecondsSinceMidnight=function(ln,rn,an){return ln*3600+rn*60+an},parseSeconds=function(ln){var rn=Math.floor(ln/3600),an=(ln-rn*3600)/60;return[rn,an,ln-rn*3600-an*60]},duration={DAY:864e5};function getDefaultHours(ln){var rn=ln.defaultHour,an=ln.defaultMinute,sn=ln.defaultSeconds;if(ln.minDate!==void 0){var on=ln.minDate.getHours(),cn=ln.minDate.getMinutes(),un=ln.minDate.getSeconds();rn<on&&(rn=on),rn===on&&an<cn&&(an=cn),rn===on&&an===cn&&sn<un&&(sn=ln.minDate.getSeconds())}if(ln.maxDate!==void 0){var pn=ln.maxDate.getHours(),fn=ln.maxDate.getMinutes();rn=Math.min(rn,pn),rn===pn&&(an=Math.min(fn,an)),rn===pn&&an===fn&&(sn=ln.maxDate.getSeconds())}return{hours:rn,minutes:an,seconds:sn}}typeof Object.assign!="function"&&(Object.assign=function(ln){for(var rn=[],an=1;an<arguments.length;an++)rn[an-1]=arguments[an];if(!ln)throw TypeError("Cannot convert undefined or null to object");for(var sn=function(pn){pn&&Object.keys(pn).forEach(function(fn){return ln[fn]=pn[fn]})},on=0,cn=rn;on<cn.length;on++){var un=cn[on];sn(un)}return ln});var __assign=function(){return __assign=Object.assign||function(ln){for(var rn,an=1,sn=arguments.length;an<sn;an++){rn=arguments[an];for(var on in rn)Object.prototype.hasOwnProperty.call(rn,on)&&(ln[on]=rn[on])}return ln},__assign.apply(this,arguments)},__spreadArrays=function(){for(var ln=0,rn=0,an=arguments.length;rn<an;rn++)ln+=arguments[rn].length;for(var sn=Array(ln),on=0,rn=0;rn<an;rn++)for(var cn=arguments[rn],un=0,pn=cn.length;un<pn;un++,on++)sn[on]=cn[un];return sn},DEBOUNCED_CHANGE_MS=300;function FlatpickrInstance(ln,rn){var an={config:__assign(__assign({},defaults),flatpickr.defaultConfig),l10n:english};an.parseDate=createDateParser({config:an.config,l10n:an.l10n}),an._handlers=[],an.pluginElements=[],an.loadedPlugins=[],an._bind=Cn,an._setHoursFromDate=yn,an._positionCalendar=Ol,an.changeMonth=cr,an.changeYear=Vr,an.clear=_r,an.close=Nr,an.onMouseOver=Bs,an._createElement=createElement,an.createDay=In,an.destroy=Er,an.isEnabled=Pr,an.jumpToDate=Tn,an.updateValue=ol,an.open=tl,an.redraw=kl,an.set=Es,an.setDate=nl,an.toggle=zs;function sn(){an.utils={getDaysInMonth:function(Wn,qn){return Wn===void 0&&(Wn=an.currentMonth),qn===void 0&&(qn=an.currentYear),Wn===1&&(qn%4===0&&qn%100!==0||qn%400===0)?29:an.l10n.daysInMonth[Wn]}}}function on(){an.element=an.input=ln,an.isOpen=!1,Ll(),sl(),Po(),$l(),sn(),an.isMobile||Nn(),Mn(),(an.selectedDates.length||an.config.noCalendar)&&(an.config.enableTime&&yn(an.config.noCalendar?an.latestSelectedDateObj:void 0),ol(!1)),pn();var Wn=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!an.isMobile&&Wn&&Ol(),_s("onReady")}function cn(){var Wn;return((Wn=an.calendarContainer)===null||Wn===void 0?void 0:Wn.getRootNode()).activeElement||document.activeElement}function un(Wn){return Wn.bind(an)}function pn(){var Wn=an.config;Wn.weekNumbers===!1&&Wn.showMonths===1||Wn.noCalendar!==!0&&window.requestAnimationFrame(function(){if(an.calendarContainer!==void 0&&(an.calendarContainer.style.visibility="hidden",an.calendarContainer.style.display="block"),an.daysContainer!==void 0){var qn=(an.days.offsetWidth+1)*Wn.showMonths;an.daysContainer.style.width=qn+"px",an.calendarContainer.style.width=qn+(an.weekWrapper!==void 0?an.weekWrapper.offsetWidth:0)+"px",an.calendarContainer.style.removeProperty("visibility"),an.calendarContainer.style.removeProperty("display")}})}function fn(Wn){if(an.selectedDates.length===0){var qn=an.config.minDate===void 0||compareDates(new Date,an.config.minDate)>=0?new Date:new Date(an.config.minDate.getTime()),ar=getDefaultHours(an.config);qn.setHours(ar.hours,ar.minutes,ar.seconds,qn.getMilliseconds()),an.selectedDates=[qn],an.latestSelectedDateObj=qn}Wn!==void 0&&Wn.type!=="blur"&&io(Wn);var br=an._input.value;vn(),ol(),an._input.value!==br&&an._debouncedChange()}function mn(Wn,qn){return Wn%12+12*int(qn===an.l10n.amPM[1])}function xn(Wn){switch(Wn%24){case 0:case 12:return 12;default:return Wn%12}}function vn(){if(!(an.hourElement===void 0||an.minuteElement===void 0)){var Wn=(parseInt(an.hourElement.value.slice(-2),10)||0)%24,qn=(parseInt(an.minuteElement.value,10)||0)%60,ar=an.secondElement!==void 0?(parseInt(an.secondElement.value,10)||0)%60:0;an.amPM!==void 0&&(Wn=mn(Wn,an.amPM.textContent));var br=an.config.minTime!==void 0||an.config.minDate&&an.minDateHasTime&&an.latestSelectedDateObj&&compareDates(an.latestSelectedDateObj,an.config.minDate,!0)===0,Ir=an.config.maxTime!==void 0||an.config.maxDate&&an.maxDateHasTime&&an.latestSelectedDateObj&&compareDates(an.latestSelectedDateObj,an.config.maxDate,!0)===0;if(an.config.maxTime!==void 0&&an.config.minTime!==void 0&&an.config.minTime>an.config.maxTime){var Hr=calculateSecondsSinceMidnight(an.config.minTime.getHours(),an.config.minTime.getMinutes(),an.config.minTime.getSeconds()),ps=calculateSecondsSinceMidnight(an.config.maxTime.getHours(),an.config.maxTime.getMinutes(),an.config.maxTime.getSeconds()),$r=calculateSecondsSinceMidnight(Wn,qn,ar);if($r>ps&&$r<Hr){var ms=parseSeconds(Hr);Wn=ms[0],qn=ms[1],ar=ms[2]}}else{if(Ir){var Ur=an.config.maxTime!==void 0?an.config.maxTime:an.config.maxDate;Wn=Math.min(Wn,Ur.getHours()),Wn===Ur.getHours()&&(qn=Math.min(qn,Ur.getMinutes())),qn===Ur.getMinutes()&&(ar=Math.min(ar,Ur.getSeconds()))}if(br){var Kr=an.config.minTime!==void 0?an.config.minTime:an.config.minDate;Wn=Math.max(Wn,Kr.getHours()),Wn===Kr.getHours()&&qn<Kr.getMinutes()&&(qn=Kr.getMinutes()),qn===Kr.getMinutes()&&(ar=Math.max(ar,Kr.getSeconds()))}}wn(Wn,qn,ar)}}function yn(Wn){var qn=Wn||an.latestSelectedDateObj;qn&&qn instanceof Date&&wn(qn.getHours(),qn.getMinutes(),qn.getSeconds())}function wn(Wn,qn,ar){an.latestSelectedDateObj!==void 0&&an.latestSelectedDateObj.setHours(Wn%24,qn,ar||0,0),!(!an.hourElement||!an.minuteElement||an.isMobile)&&(an.hourElement.value=pad(an.config.time_24hr?Wn:(12+Wn)%12+12*int(Wn%12===0)),an.minuteElement.value=pad(qn),an.amPM!==void 0&&(an.amPM.textContent=an.l10n.amPM[int(Wn>=12)]),an.secondElement!==void 0&&(an.secondElement.value=pad(ar)))}function An(Wn){var qn=getEventTarget(Wn),ar=parseInt(qn.value)+(Wn.delta||0);(ar/1e3>1||Wn.key==="Enter"&&!/[^\d]/.test(ar.toString()))&&Vr(ar)}function Cn(Wn,qn,ar,br){if(qn instanceof Array)return qn.forEach(function(Ir){return Cn(Wn,Ir,ar,br)});if(Wn instanceof Array)return Wn.forEach(function(Ir){return Cn(Ir,qn,ar,br)});Wn.addEventListener(qn,ar,br),an._handlers.push({remove:function(){return Wn.removeEventListener(qn,ar,br)}})}function kn(){_s("onChange")}function Mn(){if(an.config.wrap&&["open","close","toggle","clear"].forEach(function(ar){Array.prototype.forEach.call(an.element.querySelectorAll("[data-"+ar+"]"),function(br){return Cn(br,"click",an[ar])})}),an.isMobile){ll();return}var Wn=debounce(Ns,50);if(an._debouncedChange=debounce(kn,DEBOUNCED_CHANGE_MS),an.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&Cn(an.daysContainer,"mouseover",function(ar){an.config.mode==="range"&&Bs(getEventTarget(ar))}),Cn(an._input,"keydown",Ss),an.calendarContainer!==void 0&&Cn(an.calendarContainer,"keydown",Ss),!an.config.inline&&!an.config.static&&Cn(window,"resize",Wn),window.ontouchstart!==void 0?Cn(window.document,"touchstart",Tr):Cn(window.document,"mousedown",Tr),Cn(window.document,"focus",Tr,{capture:!0}),an.config.clickOpens===!0&&(Cn(an._input,"focus",an.open),Cn(an._input,"click",an.open)),an.daysContainer!==void 0&&(Cn(an.monthNav,"click",ao),Cn(an.monthNav,["keyup","increment"],An),Cn(an.daysContainer,"click",Lr)),an.timeContainer!==void 0&&an.minuteElement!==void 0&&an.hourElement!==void 0){var qn=function(ar){return getEventTarget(ar).select()};Cn(an.timeContainer,["increment"],fn),Cn(an.timeContainer,"blur",fn,{capture:!0}),Cn(an.timeContainer,"click",On),Cn([an.hourElement,an.minuteElement],["focus","click"],qn),an.secondElement!==void 0&&Cn(an.secondElement,"focus",function(){return an.secondElement&&an.secondElement.select()}),an.amPM!==void 0&&Cn(an.amPM,"click",function(ar){fn(ar)})}an.config.allowInput&&Cn(an._input,"blur",Wr)}function Tn(Wn,qn){var ar=Wn!==void 0?an.parseDate(Wn):an.latestSelectedDateObj||(an.config.minDate&&an.config.minDate>an.now?an.config.minDate:an.config.maxDate&&an.config.maxDate<an.now?an.config.maxDate:an.now),br=an.currentYear,Ir=an.currentMonth;try{ar!==void 0&&(an.currentYear=ar.getFullYear(),an.currentMonth=ar.getMonth())}catch(Hr){Hr.message="Invalid date supplied: "+ar,an.config.errorHandler(Hr)}qn&&an.currentYear!==br&&(_s("onYearChange"),er()),qn&&(an.currentYear!==br||an.currentMonth!==Ir)&&_s("onMonthChange"),an.redraw()}function On(Wn){var qn=getEventTarget(Wn);~qn.className.indexOf("arrow")&&Pn(Wn,qn.classList.contains("arrowUp")?1:-1)}function Pn(Wn,qn,ar){var br=Wn&&getEventTarget(Wn),Ir=ar||br&&br.parentNode&&br.parentNode.firstChild,Hr=yl("increment");Hr.delta=qn,Ir&&Ir.dispatchEvent(Hr)}function Nn(){var Wn=window.document.createDocumentFragment();if(an.calendarContainer=createElement("div","flatpickr-calendar"),an.calendarContainer.tabIndex=-1,!an.config.noCalendar){if(Wn.appendChild(rr()),an.innerContainer=createElement("div","flatpickr-innerContainer"),an.config.weekNumbers){var qn=Xn(),ar=qn.weekWrapper,br=qn.weekNumbers;an.innerContainer.appendChild(ar),an.weekNumbers=br,an.weekWrapper=ar}an.rContainer=createElement("div","flatpickr-rContainer"),an.rContainer.appendChild(ur()),an.daysContainer||(an.daysContainer=createElement("div","flatpickr-days"),an.daysContainer.tabIndex=-1),ir(),an.rContainer.appendChild(an.daysContainer),an.innerContainer.appendChild(an.rContainer),Wn.appendChild(an.innerContainer)}an.config.enableTime&&Wn.appendChild(fr()),toggleClass(an.calendarContainer,"rangeMode",an.config.mode==="range"),toggleClass(an.calendarContainer,"animate",an.config.animate===!0),toggleClass(an.calendarContainer,"multiMonth",an.config.showMonths>1),an.calendarContainer.appendChild(Wn);var Ir=an.config.appendTo!==void 0&&an.config.appendTo.nodeType!==void 0;if((an.config.inline||an.config.static)&&(an.calendarContainer.classList.add(an.config.inline?"inline":"static"),an.config.inline&&(!Ir&&an.element.parentNode?an.element.parentNode.insertBefore(an.calendarContainer,an._input.nextSibling):an.config.appendTo!==void 0&&an.config.appendTo.appendChild(an.calendarContainer)),an.config.static)){var Hr=createElement("div","flatpickr-wrapper");an.element.parentNode&&an.element.parentNode.insertBefore(Hr,an.element),Hr.appendChild(an.element),an.altInput&&Hr.appendChild(an.altInput),Hr.appendChild(an.calendarContainer)}!an.config.static&&!an.config.inline&&(an.config.appendTo!==void 0?an.config.appendTo:window.document.body).appendChild(an.calendarContainer)}function In(Wn,qn,ar,br){var Ir=Pr(qn,!0),Hr=createElement("span",Wn,qn.getDate().toString());return Hr.dateObj=qn,Hr.$i=br,Hr.setAttribute("aria-label",an.formatDate(qn,an.config.ariaDateFormat)),Wn.indexOf("hidden")===-1&&compareDates(qn,an.now)===0&&(an.todayDateElem=Hr,Hr.classList.add("today"),Hr.setAttribute("aria-current","date")),Ir?(Hr.tabIndex=-1,Ws(qn)&&(Hr.classList.add("selected"),an.selectedDateElem=Hr,an.config.mode==="range"&&(toggleClass(Hr,"startRange",an.selectedDates[0]&&compareDates(qn,an.selectedDates[0],!0)===0),toggleClass(Hr,"endRange",an.selectedDates[1]&&compareDates(qn,an.selectedDates[1],!0)===0),Wn==="nextMonthDay"&&Hr.classList.add("inRange")))):Hr.classList.add("flatpickr-disabled"),an.config.mode==="range"&&Bo(qn)&&!Ws(qn)&&Hr.classList.add("inRange"),an.weekNumbers&&an.config.showMonths===1&&Wn!=="prevMonthDay"&&br%7===6&&an.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+an.config.getWeek(qn)+"</span>"),_s("onDayCreate",Hr),Hr}function jn(Wn){Wn.focus(),an.config.mode==="range"&&Bs(Wn)}function Fn(Wn){for(var qn=Wn>0?0:an.config.showMonths-1,ar=Wn>0?an.config.showMonths:-1,br=qn;br!=ar;br+=Wn)for(var Ir=an.daysContainer.children[br],Hr=Wn>0?0:Ir.children.length-1,ps=Wn>0?Ir.children.length:-1,$r=Hr;$r!=ps;$r+=Wn){var ms=Ir.children[$r];if(ms.className.indexOf("hidden")===-1&&Pr(ms.dateObj))return ms}}function Un(Wn,qn){for(var ar=Wn.className.indexOf("Month")===-1?Wn.dateObj.getMonth():an.currentMonth,br=qn>0?an.config.showMonths:-1,Ir=qn>0?1:-1,Hr=ar-an.currentMonth;Hr!=br;Hr+=Ir)for(var ps=an.daysContainer.children[Hr],$r=ar-an.currentMonth===Hr?Wn.$i+qn:qn<0?ps.children.length-1:0,ms=ps.children.length,Ur=$r;Ur>=0&&Ur<ms&&Ur!=(qn>0?ms:-1);Ur+=Ir){var Kr=ps.children[Ur];if(Kr.className.indexOf("hidden")===-1&&Pr(Kr.dateObj)&&Math.abs(Wn.$i-Ur)>=Math.abs(qn))return jn(Kr)}an.changeMonth(Ir),Yn(Fn(Ir),0)}function Yn(Wn,qn){var ar=cn(),br=Xr(ar||document.body),Ir=Wn!==void 0?Wn:br?ar:an.selectedDateElem!==void 0&&Xr(an.selectedDateElem)?an.selectedDateElem:an.todayDateElem!==void 0&&Xr(an.todayDateElem)?an.todayDateElem:Fn(qn>0?1:-1);Ir===void 0?an._input.focus():br?Un(Ir,qn):jn(Ir)}function Qn(Wn,qn){for(var ar=(new Date(Wn,qn,1).getDay()-an.l10n.firstDayOfWeek+7)%7,br=an.utils.getDaysInMonth((qn-1+12)%12,Wn),Ir=an.utils.getDaysInMonth(qn,Wn),Hr=window.document.createDocumentFragment(),ps=an.config.showMonths>1,$r=ps?"prevMonthDay hidden":"prevMonthDay",ms=ps?"nextMonthDay hidden":"nextMonthDay",Ur=br+1-ar,Kr=0;Ur<=br;Ur++,Kr++)Hr.appendChild(In("flatpickr-day "+$r,new Date(Wn,qn-1,Ur),Ur,Kr));for(Ur=1;Ur<=Ir;Ur++,Kr++)Hr.appendChild(In("flatpickr-day",new Date(Wn,qn,Ur),Ur,Kr));for(var Os=Ir+1;Os<=42-ar&&(an.config.showMonths===1||Kr%7!==0);Os++,Kr++)Hr.appendChild(In("flatpickr-day "+ms,new Date(Wn,qn+1,Os%Ir),Os,Kr));var Vl=createElement("div","dayContainer");return Vl.appendChild(Hr),Vl}function ir(){if(an.daysContainer!==void 0){clearNode(an.daysContainer),an.weekNumbers&&clearNode(an.weekNumbers);for(var Wn=document.createDocumentFragment(),qn=0;qn<an.config.showMonths;qn++){var ar=new Date(an.currentYear,an.currentMonth,1);ar.setMonth(an.currentMonth+qn),Wn.appendChild(Qn(ar.getFullYear(),ar.getMonth()))}an.daysContainer.appendChild(Wn),an.days=an.daysContainer.firstChild,an.config.mode==="range"&&an.selectedDates.length===1&&Bs()}}function er(){if(!(an.config.showMonths>1||an.config.monthSelectorType!=="dropdown")){var Wn=function(br){return an.config.minDate!==void 0&&an.currentYear===an.config.minDate.getFullYear()&&br<an.config.minDate.getMonth()?!1:!(an.config.maxDate!==void 0&&an.currentYear===an.config.maxDate.getFullYear()&&br>an.config.maxDate.getMonth())};an.monthsDropdownContainer.tabIndex=-1,an.monthsDropdownContainer.innerHTML="";for(var qn=0;qn<12;qn++)if(Wn(qn)){var ar=createElement("option","flatpickr-monthDropdown-month");ar.value=new Date(an.currentYear,qn).getMonth().toString(),ar.textContent=monthToStr(qn,an.config.shorthandCurrentMonth,an.l10n),ar.tabIndex=-1,an.currentMonth===qn&&(ar.selected=!0),an.monthsDropdownContainer.appendChild(ar)}}}function tr(){var Wn=createElement("div","flatpickr-month"),qn=window.document.createDocumentFragment(),ar;an.config.showMonths>1||an.config.monthSelectorType==="static"?ar=createElement("span","cur-month"):(an.monthsDropdownContainer=createElement("select","flatpickr-monthDropdown-months"),an.monthsDropdownContainer.setAttribute("aria-label",an.l10n.monthAriaLabel),Cn(an.monthsDropdownContainer,"change",function(ps){var $r=getEventTarget(ps),ms=parseInt($r.value,10);an.changeMonth(ms-an.currentMonth),_s("onMonthChange")}),er(),ar=an.monthsDropdownContainer);var br=createNumberInput("cur-year",{tabindex:"-1"}),Ir=br.getElementsByTagName("input")[0];Ir.setAttribute("aria-label",an.l10n.yearAriaLabel),an.config.minDate&&Ir.setAttribute("min",an.config.minDate.getFullYear().toString()),an.config.maxDate&&(Ir.setAttribute("max",an.config.maxDate.getFullYear().toString()),Ir.disabled=!!an.config.minDate&&an.config.minDate.getFullYear()===an.config.maxDate.getFullYear());var Hr=createElement("div","flatpickr-current-month");return Hr.appendChild(ar),Hr.appendChild(br),qn.appendChild(Hr),Wn.appendChild(qn),{container:Wn,yearElement:Ir,monthElement:ar}}function vr(){clearNode(an.monthNav),an.monthNav.appendChild(an.prevMonthNav),an.config.showMonths&&(an.yearElements=[],an.monthElements=[]);for(var Wn=an.config.showMonths;Wn--;){var qn=tr();an.yearElements.push(qn.yearElement),an.monthElements.push(qn.monthElement),an.monthNav.appendChild(qn.container)}an.monthNav.appendChild(an.nextMonthNav)}function rr(){return an.monthNav=createElement("div","flatpickr-months"),an.yearElements=[],an.monthElements=[],an.prevMonthNav=createElement("span","flatpickr-prev-month"),an.prevMonthNav.innerHTML=an.config.prevArrow,an.nextMonthNav=createElement("span","flatpickr-next-month"),an.nextMonthNav.innerHTML=an.config.nextArrow,vr(),Object.defineProperty(an,"_hidePrevMonthArrow",{get:function(){return an.__hidePrevMonthArrow},set:function(Wn){an.__hidePrevMonthArrow!==Wn&&(toggleClass(an.prevMonthNav,"flatpickr-disabled",Wn),an.__hidePrevMonthArrow=Wn)}}),Object.defineProperty(an,"_hideNextMonthArrow",{get:function(){return an.__hideNextMonthArrow},set:function(Wn){an.__hideNextMonthArrow!==Wn&&(toggleClass(an.nextMonthNav,"flatpickr-disabled",Wn),an.__hideNextMonthArrow=Wn)}}),an.currentYearElement=an.yearElements[0],Eo(),an.monthNav}function fr(){an.calendarContainer.classList.add("hasTime"),an.config.noCalendar&&an.calendarContainer.classList.add("noCalendar");var Wn=getDefaultHours(an.config);an.timeContainer=createElement("div","flatpickr-time"),an.timeContainer.tabIndex=-1;var qn=createElement("span","flatpickr-time-separator",":"),ar=createNumberInput("flatpickr-hour",{"aria-label":an.l10n.hourAriaLabel});an.hourElement=ar.getElementsByTagName("input")[0];var br=createNumberInput("flatpickr-minute",{"aria-label":an.l10n.minuteAriaLabel});if(an.minuteElement=br.getElementsByTagName("input")[0],an.hourElement.tabIndex=an.minuteElement.tabIndex=-1,an.hourElement.value=pad(an.latestSelectedDateObj?an.latestSelectedDateObj.getHours():an.config.time_24hr?Wn.hours:xn(Wn.hours)),an.minuteElement.value=pad(an.latestSelectedDateObj?an.latestSelectedDateObj.getMinutes():Wn.minutes),an.hourElement.setAttribute("step",an.config.hourIncrement.toString()),an.minuteElement.setAttribute("step",an.config.minuteIncrement.toString()),an.hourElement.setAttribute("min",an.config.time_24hr?"0":"1"),an.hourElement.setAttribute("max",an.config.time_24hr?"23":"12"),an.hourElement.setAttribute("maxlength","2"),an.minuteElement.setAttribute("min","0"),an.minuteElement.setAttribute("max","59"),an.minuteElement.setAttribute("maxlength","2"),an.timeContainer.appendChild(ar),an.timeContainer.appendChild(qn),an.timeContainer.appendChild(br),an.config.time_24hr&&an.timeContainer.classList.add("time24hr"),an.config.enableSeconds){an.timeContainer.classList.add("hasSeconds");var Ir=createNumberInput("flatpickr-second");an.secondElement=Ir.getElementsByTagName("input")[0],an.secondElement.value=pad(an.latestSelectedDateObj?an.latestSelectedDateObj.getSeconds():Wn.seconds),an.secondElement.setAttribute("step",an.minuteElement.getAttribute("step")),an.secondElement.setAttribute("min","0"),an.secondElement.setAttribute("max","59"),an.secondElement.setAttribute("maxlength","2"),an.timeContainer.appendChild(createElement("span","flatpickr-time-separator",":")),an.timeContainer.appendChild(Ir)}return an.config.time_24hr||(an.amPM=createElement("span","flatpickr-am-pm",an.l10n.amPM[int((an.latestSelectedDateObj?an.hourElement.value:an.config.defaultHour)>11)]),an.amPM.title=an.l10n.toggleTitle,an.amPM.tabIndex=-1,an.timeContainer.appendChild(an.amPM)),an.timeContainer}function ur(){an.weekdayContainer?clearNode(an.weekdayContainer):an.weekdayContainer=createElement("div","flatpickr-weekdays");for(var Wn=an.config.showMonths;Wn--;){var qn=createElement("div","flatpickr-weekdaycontainer");an.weekdayContainer.appendChild(qn)}return wr(),an.weekdayContainer}function wr(){if(an.weekdayContainer){var Wn=an.l10n.firstDayOfWeek,qn=__spreadArrays(an.l10n.weekdays.shorthand);Wn>0&&Wn<qn.length&&(qn=__spreadArrays(qn.splice(Wn,qn.length),qn.splice(0,Wn)));for(var ar=an.config.showMonths;ar--;)an.weekdayContainer.children[ar].innerHTML=`
      <span class='flatpickr-weekday'>
        `+qn.join("</span><span class='flatpickr-weekday'>")+`
      </span>
      `}}function Xn(){an.calendarContainer.classList.add("hasWeeks");var Wn=createElement("div","flatpickr-weekwrapper");Wn.appendChild(createElement("span","flatpickr-weekday",an.l10n.weekAbbreviation));var qn=createElement("div","flatpickr-weeks");return Wn.appendChild(qn),{weekWrapper:Wn,weekNumbers:qn}}function cr(Wn,qn){qn===void 0&&(qn=!0);var ar=qn?Wn:Wn-an.currentMonth;ar<0&&an._hidePrevMonthArrow===!0||ar>0&&an._hideNextMonthArrow===!0||(an.currentMonth+=ar,(an.currentMonth<0||an.currentMonth>11)&&(an.currentYear+=an.currentMonth>11?1:-1,an.currentMonth=(an.currentMonth+12)%12,_s("onYearChange"),er()),ir(),_s("onMonthChange"),Eo())}function _r(Wn,qn){if(Wn===void 0&&(Wn=!0),qn===void 0&&(qn=!0),an.input.value="",an.altInput!==void 0&&(an.altInput.value=""),an.mobileInput!==void 0&&(an.mobileInput.value=""),an.selectedDates=[],an.latestSelectedDateObj=void 0,qn===!0&&(an.currentYear=an._initialDate.getFullYear(),an.currentMonth=an._initialDate.getMonth()),an.config.enableTime===!0){var ar=getDefaultHours(an.config),br=ar.hours,Ir=ar.minutes,Hr=ar.seconds;wn(br,Ir,Hr)}an.redraw(),Wn&&_s("onChange")}function Nr(){an.isOpen=!1,an.isMobile||(an.calendarContainer!==void 0&&an.calendarContainer.classList.remove("open"),an._input!==void 0&&an._input.classList.remove("active")),_s("onClose")}function Er(){an.config!==void 0&&_s("onDestroy");for(var Wn=an._handlers.length;Wn--;)an._handlers[Wn].remove();if(an._handlers=[],an.mobileInput)an.mobileInput.parentNode&&an.mobileInput.parentNode.removeChild(an.mobileInput),an.mobileInput=void 0;else if(an.calendarContainer&&an.calendarContainer.parentNode)if(an.config.static&&an.calendarContainer.parentNode){var qn=an.calendarContainer.parentNode;if(qn.lastChild&&qn.removeChild(qn.lastChild),qn.parentNode){for(;qn.firstChild;)qn.parentNode.insertBefore(qn.firstChild,qn);qn.parentNode.removeChild(qn)}}else an.calendarContainer.parentNode.removeChild(an.calendarContainer);an.altInput&&(an.input.type="text",an.altInput.parentNode&&an.altInput.parentNode.removeChild(an.altInput),delete an.altInput),an.input&&(an.input.type=an.input._type,an.input.classList.remove("flatpickr-input"),an.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(ar){try{delete an[ar]}catch{}})}function Fr(Wn){return an.calendarContainer.contains(Wn)}function Tr(Wn){if(an.isOpen&&!an.config.inline){var qn=getEventTarget(Wn),ar=Fr(qn),br=qn===an.input||qn===an.altInput||an.element.contains(qn)||Wn.path&&Wn.path.indexOf&&(~Wn.path.indexOf(an.input)||~Wn.path.indexOf(an.altInput)),Ir=!br&&!ar&&!Fr(Wn.relatedTarget),Hr=!an.config.ignoredFocusElements.some(function(ps){return ps.contains(qn)});Ir&&Hr&&(an.config.allowInput&&an.setDate(an._input.value,!1,an.config.altInput?an.config.altFormat:an.config.dateFormat),an.timeContainer!==void 0&&an.minuteElement!==void 0&&an.hourElement!==void 0&&an.input.value!==""&&an.input.value!==void 0&&fn(),an.close(),an.config&&an.config.mode==="range"&&an.selectedDates.length===1&&an.clear(!1))}}function Vr(Wn){if(!(!Wn||an.config.minDate&&Wn<an.config.minDate.getFullYear()||an.config.maxDate&&Wn>an.config.maxDate.getFullYear())){var qn=Wn,ar=an.currentYear!==qn;an.currentYear=qn||an.currentYear,an.config.maxDate&&an.currentYear===an.config.maxDate.getFullYear()?an.currentMonth=Math.min(an.config.maxDate.getMonth(),an.currentMonth):an.config.minDate&&an.currentYear===an.config.minDate.getFullYear()&&(an.currentMonth=Math.max(an.config.minDate.getMonth(),an.currentMonth)),ar&&(an.redraw(),_s("onYearChange"),er())}}function Pr(Wn,qn){var ar;qn===void 0&&(qn=!0);var br=an.parseDate(Wn,void 0,qn);if(an.config.minDate&&br&&compareDates(br,an.config.minDate,qn!==void 0?qn:!an.minDateHasTime)<0||an.config.maxDate&&br&&compareDates(br,an.config.maxDate,qn!==void 0?qn:!an.maxDateHasTime)>0)return!1;if(!an.config.enable&&an.config.disable.length===0)return!0;if(br===void 0)return!1;for(var Ir=!!an.config.enable,Hr=(ar=an.config.enable)!==null&&ar!==void 0?ar:an.config.disable,ps=0,$r=void 0;ps<Hr.length;ps++){if($r=Hr[ps],typeof $r=="function"&&$r(br))return Ir;if($r instanceof Date&&br!==void 0&&$r.getTime()===br.getTime())return Ir;if(typeof $r=="string"){var ms=an.parseDate($r,void 0,!0);return ms&&ms.getTime()===br.getTime()?Ir:!Ir}else if(typeof $r=="object"&&br!==void 0&&$r.from&&$r.to&&br.getTime()>=$r.from.getTime()&&br.getTime()<=$r.to.getTime())return Ir}return!Ir}function Xr(Wn){return an.daysContainer!==void 0?Wn.className.indexOf("hidden")===-1&&Wn.className.indexOf("flatpickr-disabled")===-1&&an.daysContainer.contains(Wn):!1}function Wr(Wn){var qn=Wn.target===an._input,ar=an._input.value.trimEnd()!==tu();qn&&ar&&!(Wn.relatedTarget&&Fr(Wn.relatedTarget))&&an.setDate(an._input.value,!0,Wn.target===an.altInput?an.config.altFormat:an.config.dateFormat)}function Ss(Wn){var qn=getEventTarget(Wn),ar=an.config.wrap?ln.contains(qn):qn===an._input,br=an.config.allowInput,Ir=an.isOpen&&(!br||!ar),Hr=an.config.inline&&ar&&!br;if(Wn.keyCode===13&&ar){if(br)return an.setDate(an._input.value,!0,qn===an.altInput?an.config.altFormat:an.config.dateFormat),an.close(),qn.blur();an.open()}else if(Fr(qn)||Ir||Hr){var ps=!!an.timeContainer&&an.timeContainer.contains(qn);switch(Wn.keyCode){case 13:ps?(Wn.preventDefault(),fn(),Xl()):Lr(Wn);break;case 27:Wn.preventDefault(),Xl();break;case 8:case 46:ar&&!an.config.allowInput&&(Wn.preventDefault(),an.clear());break;case 37:case 39:if(!ps&&!ar){Wn.preventDefault();var $r=cn();if(an.daysContainer!==void 0&&(br===!1||$r&&Xr($r))){var ms=Wn.keyCode===39?1:-1;Wn.ctrlKey?(Wn.stopPropagation(),cr(ms),Yn(Fn(1),0)):Yn(void 0,ms)}}else an.hourElement&&an.hourElement.focus();break;case 38:case 40:Wn.preventDefault();var Ur=Wn.keyCode===40?1:-1;an.daysContainer&&qn.$i!==void 0||qn===an.input||qn===an.altInput?Wn.ctrlKey?(Wn.stopPropagation(),Vr(an.currentYear-Ur),Yn(Fn(1),0)):ps||Yn(void 0,Ur*7):qn===an.currentYearElement?Vr(an.currentYear-Ur):an.config.enableTime&&(!ps&&an.hourElement&&an.hourElement.focus(),fn(Wn),an._debouncedChange());break;case 9:if(ps){var Kr=[an.hourElement,an.minuteElement,an.secondElement,an.amPM].concat(an.pluginElements).filter(function(Gs){return Gs}),Os=Kr.indexOf(qn);if(Os!==-1){var Vl=Kr[Os+(Wn.shiftKey?-1:1)];Wn.preventDefault(),(Vl||an._input).focus()}}else!an.config.noCalendar&&an.daysContainer&&an.daysContainer.contains(qn)&&Wn.shiftKey&&(Wn.preventDefault(),an._input.focus());break}}if(an.amPM!==void 0&&qn===an.amPM)switch(Wn.key){case an.l10n.amPM[0].charAt(0):case an.l10n.amPM[0].charAt(0).toLowerCase():an.amPM.textContent=an.l10n.amPM[0],vn(),ol();break;case an.l10n.amPM[1].charAt(0):case an.l10n.amPM[1].charAt(0).toLowerCase():an.amPM.textContent=an.l10n.amPM[1],vn(),ol();break}(ar||Fr(qn))&&_s("onKeyDown",Wn)}function Bs(Wn,qn){if(qn===void 0&&(qn="flatpickr-day"),!(an.selectedDates.length!==1||Wn&&(!Wn.classList.contains(qn)||Wn.classList.contains("flatpickr-disabled")))){for(var ar=Wn?Wn.dateObj.getTime():an.days.firstElementChild.dateObj.getTime(),br=an.parseDate(an.selectedDates[0],void 0,!0).getTime(),Ir=Math.min(ar,an.selectedDates[0].getTime()),Hr=Math.max(ar,an.selectedDates[0].getTime()),ps=!1,$r=0,ms=0,Ur=Ir;Ur<Hr;Ur+=duration.DAY)Pr(new Date(Ur),!0)||(ps=ps||Ur>Ir&&Ur<Hr,Ur<br&&(!$r||Ur>$r)?$r=Ur:Ur>br&&(!ms||Ur<ms)&&(ms=Ur));var Kr=Array.from(an.rContainer.querySelectorAll("*:nth-child(-n+"+an.config.showMonths+") > ."+qn));Kr.forEach(function(Os){var Vl=Os.dateObj,Gs=Vl.getTime(),Xs=$r>0&&Gs<$r||ms>0&&Gs>ms;if(Xs){Os.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Qs){Os.classList.remove(Qs)});return}else if(ps&&!Xs)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Qs){Os.classList.remove(Qs)}),Wn!==void 0&&(Wn.classList.add(ar<=an.selectedDates[0].getTime()?"startRange":"endRange"),br<ar&&Gs===br?Os.classList.add("startRange"):br>ar&&Gs===br&&Os.classList.add("endRange"),Gs>=$r&&(ms===0||Gs<=ms)&&isBetween(Gs,br,ar)&&Os.classList.add("inRange"))})}}function Ns(){an.isOpen&&!an.config.static&&!an.config.inline&&Ol()}function tl(Wn,qn){if(qn===void 0&&(qn=an._positionElement),an.isMobile===!0){if(Wn){Wn.preventDefault();var ar=getEventTarget(Wn);ar&&ar.blur()}an.mobileInput!==void 0&&(an.mobileInput.focus(),an.mobileInput.click()),_s("onOpen");return}else if(an._input.disabled||an.config.inline)return;var br=an.isOpen;an.isOpen=!0,br||(an.calendarContainer.classList.add("open"),an._input.classList.add("active"),_s("onOpen"),Ol(qn)),an.config.enableTime===!0&&an.config.noCalendar===!0&&an.config.allowInput===!1&&(Wn===void 0||!an.timeContainer.contains(Wn.relatedTarget))&&setTimeout(function(){return an.hourElement.select()},50)}function Fl(Wn){return function(qn){var ar=an.config["_"+Wn+"Date"]=an.parseDate(qn,an.config.dateFormat),br=an.config["_"+(Wn==="min"?"max":"min")+"Date"];ar!==void 0&&(an[Wn==="min"?"minDateHasTime":"maxDateHasTime"]=ar.getHours()>0||ar.getMinutes()>0||ar.getSeconds()>0),an.selectedDates&&(an.selectedDates=an.selectedDates.filter(function(Ir){return Pr(Ir)}),!an.selectedDates.length&&Wn==="min"&&yn(ar),ol()),an.daysContainer&&(kl(),ar!==void 0?an.currentYearElement[Wn]=ar.getFullYear().toString():an.currentYearElement.removeAttribute(Wn),an.currentYearElement.disabled=!!br&&ar!==void 0&&br.getFullYear()===ar.getFullYear())}}function Ll(){var Wn=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],qn=__assign(__assign({},JSON.parse(JSON.stringify(ln.dataset||{}))),rn),ar={};an.config.parseDate=qn.parseDate,an.config.formatDate=qn.formatDate,Object.defineProperty(an.config,"enable",{get:function(){return an.config._enable},set:function(Kr){an.config._enable=ro(Kr)}}),Object.defineProperty(an.config,"disable",{get:function(){return an.config._disable},set:function(Kr){an.config._disable=ro(Kr)}});var br=qn.mode==="time";if(!qn.dateFormat&&(qn.enableTime||br)){var Ir=flatpickr.defaultConfig.dateFormat||defaults.dateFormat;ar.dateFormat=qn.noCalendar||br?"H:i"+(qn.enableSeconds?":S":""):Ir+" H:i"+(qn.enableSeconds?":S":"")}if(qn.altInput&&(qn.enableTime||br)&&!qn.altFormat){var Hr=flatpickr.defaultConfig.altFormat||defaults.altFormat;ar.altFormat=qn.noCalendar||br?"h:i"+(qn.enableSeconds?":S K":" K"):Hr+(" h:i"+(qn.enableSeconds?":S":"")+" K")}Object.defineProperty(an.config,"minDate",{get:function(){return an.config._minDate},set:Fl("min")}),Object.defineProperty(an.config,"maxDate",{get:function(){return an.config._maxDate},set:Fl("max")});var ps=function(Kr){return function(Os){an.config[Kr==="min"?"_minTime":"_maxTime"]=an.parseDate(Os,"H:i:S")}};Object.defineProperty(an.config,"minTime",{get:function(){return an.config._minTime},set:ps("min")}),Object.defineProperty(an.config,"maxTime",{get:function(){return an.config._maxTime},set:ps("max")}),qn.mode==="time"&&(an.config.noCalendar=!0,an.config.enableTime=!0),Object.assign(an.config,ar,qn);for(var $r=0;$r<Wn.length;$r++)an.config[Wn[$r]]=an.config[Wn[$r]]===!0||an.config[Wn[$r]]==="true";HOOKS.filter(function(Kr){return an.config[Kr]!==void 0}).forEach(function(Kr){an.config[Kr]=arrayify(an.config[Kr]||[]).map(un)}),an.isMobile=!an.config.disableMobile&&!an.config.inline&&an.config.mode==="single"&&!an.config.disable.length&&!an.config.enable&&!an.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var $r=0;$r<an.config.plugins.length;$r++){var ms=an.config.plugins[$r](an)||{};for(var Ur in ms)HOOKS.indexOf(Ur)>-1?an.config[Ur]=arrayify(ms[Ur]).map(un).concat(an.config[Ur]):typeof qn[Ur]>"u"&&(an.config[Ur]=ms[Ur])}qn.altInputClass||(an.config.altInputClass=bl().className+" "+an.config.altInputClass),_s("onParseConfig")}function bl(){return an.config.wrap?ln.querySelector("[data-input]"):ln}function sl(){typeof an.config.locale!="object"&&typeof flatpickr.l10ns[an.config.locale]>"u"&&an.config.errorHandler(new Error("flatpickr: invalid locale "+an.config.locale)),an.l10n=__assign(__assign({},flatpickr.l10ns.default),typeof an.config.locale=="object"?an.config.locale:an.config.locale!=="default"?flatpickr.l10ns[an.config.locale]:void 0),tokenRegex.D="("+an.l10n.weekdays.shorthand.join("|")+")",tokenRegex.l="("+an.l10n.weekdays.longhand.join("|")+")",tokenRegex.M="("+an.l10n.months.shorthand.join("|")+")",tokenRegex.F="("+an.l10n.months.longhand.join("|")+")",tokenRegex.K="("+an.l10n.amPM[0]+"|"+an.l10n.amPM[1]+"|"+an.l10n.amPM[0].toLowerCase()+"|"+an.l10n.amPM[1].toLowerCase()+")";var Wn=__assign(__assign({},rn),JSON.parse(JSON.stringify(ln.dataset||{})));Wn.time_24hr===void 0&&flatpickr.defaultConfig.time_24hr===void 0&&(an.config.time_24hr=an.l10n.time_24hr),an.formatDate=createDateFormatter(an),an.parseDate=createDateParser({config:an.config,l10n:an.l10n})}function Ol(Wn){if(typeof an.config.position=="function")return void an.config.position(an,Wn);if(an.calendarContainer!==void 0){_s("onPreCalendarPosition");var qn=Wn||an._positionElement,ar=Array.prototype.reduce.call(an.calendarContainer.children,function(Co,tc){return Co+tc.offsetHeight},0),br=an.calendarContainer.offsetWidth,Ir=an.config.position.split(" "),Hr=Ir[0],ps=Ir.length>1?Ir[1]:null,$r=qn.getBoundingClientRect(),ms=window.innerHeight-$r.bottom,Ur=Hr==="above"||Hr!=="below"&&ms<ar&&$r.top>ar,Kr=window.pageYOffset+$r.top+(Ur?-ar-2:qn.offsetHeight+2);if(toggleClass(an.calendarContainer,"arrowTop",!Ur),toggleClass(an.calendarContainer,"arrowBottom",Ur),!an.config.inline){var Os=window.pageXOffset+$r.left,Vl=!1,Gs=!1;ps==="center"?(Os-=(br-$r.width)/2,Vl=!0):ps==="right"&&(Os-=br-$r.width,Gs=!0),toggleClass(an.calendarContainer,"arrowLeft",!Vl&&!Gs),toggleClass(an.calendarContainer,"arrowCenter",Vl),toggleClass(an.calendarContainer,"arrowRight",Gs);var Xs=window.document.body.offsetWidth-(window.pageXOffset+$r.right),Qs=Os+br>window.document.body.offsetWidth,Ho=Xs+br>window.document.body.offsetWidth;if(toggleClass(an.calendarContainer,"rightMost",Qs),!an.config.static)if(an.calendarContainer.style.top=Kr+"px",!Qs)an.calendarContainer.style.left=Os+"px",an.calendarContainer.style.right="auto";else if(!Ho)an.calendarContainer.style.left="auto",an.calendarContainer.style.right=Xs+"px";else{var zo=no();if(zo===void 0)return;var md=window.document.body.offsetWidth,Fo=Math.max(0,md/2-br/2),nu=".flatpickr-calendar.centerMost:before",Ao=".flatpickr-calendar.centerMost:after",ec=zo.cssRules.length,Wl="{left:"+$r.left+"px;right:auto;}";toggleClass(an.calendarContainer,"rightMost",!1),toggleClass(an.calendarContainer,"centerMost",!0),zo.insertRule(nu+","+Ao+Wl,ec),an.calendarContainer.style.left=Fo+"px",an.calendarContainer.style.right="auto"}}}}function no(){for(var Wn=null,qn=0;qn<document.styleSheets.length;qn++){var ar=document.styleSheets[qn];if(ar.cssRules){try{ar.cssRules}catch{continue}Wn=ar;break}}return Wn??Jo()}function Jo(){var Wn=document.createElement("style");return document.head.appendChild(Wn),Wn.sheet}function kl(){an.config.noCalendar||an.isMobile||(er(),Eo(),ir())}function Xl(){an._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(an.close,0):an.close()}function Lr(Wn){Wn.preventDefault(),Wn.stopPropagation();var qn=function(Kr){return Kr.classList&&Kr.classList.contains("flatpickr-day")&&!Kr.classList.contains("flatpickr-disabled")&&!Kr.classList.contains("notAllowed")},ar=findParent(getEventTarget(Wn),qn);if(ar!==void 0){var br=ar,Ir=an.latestSelectedDateObj=new Date(br.dateObj.getTime()),Hr=(Ir.getMonth()<an.currentMonth||Ir.getMonth()>an.currentMonth+an.config.showMonths-1)&&an.config.mode!=="range";if(an.selectedDateElem=br,an.config.mode==="single")an.selectedDates=[Ir];else if(an.config.mode==="multiple"){var ps=Ws(Ir);ps?an.selectedDates.splice(parseInt(ps),1):an.selectedDates.push(Ir)}else an.config.mode==="range"&&(an.selectedDates.length===2&&an.clear(!1,!1),an.latestSelectedDateObj=Ir,an.selectedDates.push(Ir),compareDates(Ir,an.selectedDates[0],!0)!==0&&an.selectedDates.sort(function(Kr,Os){return Kr.getTime()-Os.getTime()}));if(vn(),Hr){var $r=an.currentYear!==Ir.getFullYear();an.currentYear=Ir.getFullYear(),an.currentMonth=Ir.getMonth(),$r&&(_s("onYearChange"),er()),_s("onMonthChange")}if(Eo(),ir(),ol(),!Hr&&an.config.mode!=="range"&&an.config.showMonths===1?jn(br):an.selectedDateElem!==void 0&&an.hourElement===void 0&&an.selectedDateElem&&an.selectedDateElem.focus(),an.hourElement!==void 0&&an.hourElement!==void 0&&an.hourElement.focus(),an.config.closeOnSelect){var ms=an.config.mode==="single"&&!an.config.enableTime,Ur=an.config.mode==="range"&&an.selectedDates.length===2&&!an.config.enableTime;(ms||Ur)&&Xl()}kn()}}var Rr={locale:[sl,wr],showMonths:[vr,pn,ur],minDate:[Tn],maxDate:[Tn],positionElement:[Ul],clickOpens:[function(){an.config.clickOpens===!0?(Cn(an._input,"focus",an.open),Cn(an._input,"click",an.open)):(an._input.removeEventListener("focus",an.open),an._input.removeEventListener("click",an.open))}]};function Es(Wn,qn){if(Wn!==null&&typeof Wn=="object"){Object.assign(an.config,Wn);for(var ar in Wn)Rr[ar]!==void 0&&Rr[ar].forEach(function(br){return br()})}else an.config[Wn]=qn,Rr[Wn]!==void 0?Rr[Wn].forEach(function(br){return br()}):HOOKS.indexOf(Wn)>-1&&(an.config[Wn]=arrayify(qn));an.redraw(),ol(!0)}function Vs(Wn,qn){var ar=[];if(Wn instanceof Array)ar=Wn.map(function(br){return an.parseDate(br,qn)});else if(Wn instanceof Date||typeof Wn=="number")ar=[an.parseDate(Wn,qn)];else if(typeof Wn=="string")switch(an.config.mode){case"single":case"time":ar=[an.parseDate(Wn,qn)];break;case"multiple":ar=Wn.split(an.config.conjunction).map(function(br){return an.parseDate(br,qn)});break;case"range":ar=Wn.split(an.l10n.rangeSeparator).map(function(br){return an.parseDate(br,qn)});break}else an.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(Wn)));an.selectedDates=an.config.allowInvalidPreload?ar:ar.filter(function(br){return br instanceof Date&&Pr(br,!1)}),an.config.mode==="range"&&an.selectedDates.sort(function(br,Ir){return br.getTime()-Ir.getTime()})}function nl(Wn,qn,ar){if(qn===void 0&&(qn=!1),ar===void 0&&(ar=an.config.dateFormat),Wn!==0&&!Wn||Wn instanceof Array&&Wn.length===0)return an.clear(qn);Vs(Wn,ar),an.latestSelectedDateObj=an.selectedDates[an.selectedDates.length-1],an.redraw(),Tn(void 0,qn),yn(),an.selectedDates.length===0&&an.clear(!1),ol(qn),qn&&_s("onChange")}function ro(Wn){return Wn.slice().map(function(qn){return typeof qn=="string"||typeof qn=="number"||qn instanceof Date?an.parseDate(qn,void 0,!0):qn&&typeof qn=="object"&&qn.from&&qn.to?{from:an.parseDate(qn.from,void 0),to:an.parseDate(qn.to,void 0)}:qn}).filter(function(qn){return qn})}function $l(){an.selectedDates=[],an.now=an.parseDate(an.config.now)||new Date;var Wn=an.config.defaultDate||((an.input.nodeName==="INPUT"||an.input.nodeName==="TEXTAREA")&&an.input.placeholder&&an.input.value===an.input.placeholder?null:an.input.value);Wn&&Vs(Wn,an.config.dateFormat),an._initialDate=an.selectedDates.length>0?an.selectedDates[0]:an.config.minDate&&an.config.minDate.getTime()>an.now.getTime()?an.config.minDate:an.config.maxDate&&an.config.maxDate.getTime()<an.now.getTime()?an.config.maxDate:an.now,an.currentYear=an._initialDate.getFullYear(),an.currentMonth=an._initialDate.getMonth(),an.selectedDates.length>0&&(an.latestSelectedDateObj=an.selectedDates[0]),an.config.minTime!==void 0&&(an.config.minTime=an.parseDate(an.config.minTime,"H:i")),an.config.maxTime!==void 0&&(an.config.maxTime=an.parseDate(an.config.maxTime,"H:i")),an.minDateHasTime=!!an.config.minDate&&(an.config.minDate.getHours()>0||an.config.minDate.getMinutes()>0||an.config.minDate.getSeconds()>0),an.maxDateHasTime=!!an.config.maxDate&&(an.config.maxDate.getHours()>0||an.config.maxDate.getMinutes()>0||an.config.maxDate.getSeconds()>0)}function Po(){if(an.input=bl(),!an.input){an.config.errorHandler(new Error("Invalid input element specified"));return}an.input._type=an.input.type,an.input.type="text",an.input.classList.add("flatpickr-input"),an._input=an.input,an.config.altInput&&(an.altInput=createElement(an.input.nodeName,an.config.altInputClass),an._input=an.altInput,an.altInput.placeholder=an.input.placeholder,an.altInput.disabled=an.input.disabled,an.altInput.required=an.input.required,an.altInput.tabIndex=an.input.tabIndex,an.altInput.type="text",an.input.setAttribute("type","hidden"),!an.config.static&&an.input.parentNode&&an.input.parentNode.insertBefore(an.altInput,an.input.nextSibling)),an.config.allowInput||an._input.setAttribute("readonly","readonly"),Ul()}function Ul(){an._positionElement=an.config.positionElement||an._input}function ll(){var Wn=an.config.enableTime?an.config.noCalendar?"time":"datetime-local":"date";an.mobileInput=createElement("input",an.input.className+" flatpickr-mobile"),an.mobileInput.tabIndex=1,an.mobileInput.type=Wn,an.mobileInput.disabled=an.input.disabled,an.mobileInput.required=an.input.required,an.mobileInput.placeholder=an.input.placeholder,an.mobileFormatStr=Wn==="datetime-local"?"Y-m-d\\TH:i:S":Wn==="date"?"Y-m-d":"H:i:S",an.selectedDates.length>0&&(an.mobileInput.defaultValue=an.mobileInput.value=an.formatDate(an.selectedDates[0],an.mobileFormatStr)),an.config.minDate&&(an.mobileInput.min=an.formatDate(an.config.minDate,"Y-m-d")),an.config.maxDate&&(an.mobileInput.max=an.formatDate(an.config.maxDate,"Y-m-d")),an.input.getAttribute("step")&&(an.mobileInput.step=String(an.input.getAttribute("step"))),an.input.type="hidden",an.altInput!==void 0&&(an.altInput.type="hidden");try{an.input.parentNode&&an.input.parentNode.insertBefore(an.mobileInput,an.input.nextSibling)}catch{}Cn(an.mobileInput,"change",function(qn){an.setDate(getEventTarget(qn).value,!1,an.mobileFormatStr),_s("onChange"),_s("onClose")})}function zs(Wn){if(an.isOpen===!0)return an.close();an.open(Wn)}function _s(Wn,qn){if(an.config!==void 0){var ar=an.config[Wn];if(ar!==void 0&&ar.length>0)for(var br=0;ar[br]&&br<ar.length;br++)ar[br](an.selectedDates,an.input.value,an,qn);Wn==="onChange"&&(an.input.dispatchEvent(yl("change")),an.input.dispatchEvent(yl("input")))}}function yl(Wn){var qn=document.createEvent("Event");return qn.initEvent(Wn,!0,!0),qn}function Ws(Wn){for(var qn=0;qn<an.selectedDates.length;qn++){var ar=an.selectedDates[qn];if(ar instanceof Date&&compareDates(ar,Wn)===0)return""+qn}return!1}function Bo(Wn){return an.config.mode!=="range"||an.selectedDates.length<2?!1:compareDates(Wn,an.selectedDates[0])>=0&&compareDates(Wn,an.selectedDates[1])<=0}function Eo(){an.config.noCalendar||an.isMobile||!an.monthNav||(an.yearElements.forEach(function(Wn,qn){var ar=new Date(an.currentYear,an.currentMonth,1);ar.setMonth(an.currentMonth+qn),an.config.showMonths>1||an.config.monthSelectorType==="static"?an.monthElements[qn].textContent=monthToStr(ar.getMonth(),an.config.shorthandCurrentMonth,an.l10n)+" ":an.monthsDropdownContainer.value=ar.getMonth().toString(),Wn.value=ar.getFullYear().toString()}),an._hidePrevMonthArrow=an.config.minDate!==void 0&&(an.currentYear===an.config.minDate.getFullYear()?an.currentMonth<=an.config.minDate.getMonth():an.currentYear<an.config.minDate.getFullYear()),an._hideNextMonthArrow=an.config.maxDate!==void 0&&(an.currentYear===an.config.maxDate.getFullYear()?an.currentMonth+1>an.config.maxDate.getMonth():an.currentYear>an.config.maxDate.getFullYear()))}function tu(Wn){var qn=Wn||(an.config.altInput?an.config.altFormat:an.config.dateFormat);return an.selectedDates.map(function(ar){return an.formatDate(ar,qn)}).filter(function(ar,br,Ir){return an.config.mode!=="range"||an.config.enableTime||Ir.indexOf(ar)===br}).join(an.config.mode!=="range"?an.config.conjunction:an.l10n.rangeSeparator)}function ol(Wn){Wn===void 0&&(Wn=!0),an.mobileInput!==void 0&&an.mobileFormatStr&&(an.mobileInput.value=an.latestSelectedDateObj!==void 0?an.formatDate(an.latestSelectedDateObj,an.mobileFormatStr):""),an.input.value=tu(an.config.dateFormat),an.altInput!==void 0&&(an.altInput.value=tu(an.config.altFormat)),Wn!==!1&&_s("onValueUpdate")}function ao(Wn){var qn=getEventTarget(Wn),ar=an.prevMonthNav.contains(qn),br=an.nextMonthNav.contains(qn);ar||br?cr(ar?-1:1):an.yearElements.indexOf(qn)>=0?qn.select():qn.classList.contains("arrowUp")?an.changeYear(an.currentYear+1):qn.classList.contains("arrowDown")&&an.changeYear(an.currentYear-1)}function io(Wn){Wn.preventDefault();var qn=Wn.type==="keydown",ar=getEventTarget(Wn),br=ar;an.amPM!==void 0&&ar===an.amPM&&(an.amPM.textContent=an.l10n.amPM[int(an.amPM.textContent===an.l10n.amPM[0])]);var Ir=parseFloat(br.getAttribute("min")),Hr=parseFloat(br.getAttribute("max")),ps=parseFloat(br.getAttribute("step")),$r=parseInt(br.value,10),ms=Wn.delta||(qn?Wn.which===38?1:-1:0),Ur=$r+ps*ms;if(typeof br.value<"u"&&br.value.length===2){var Kr=br===an.hourElement,Os=br===an.minuteElement;Ur<Ir?(Ur=Hr+Ur+int(!Kr)+(int(Kr)&&int(!an.amPM)),Os&&Pn(void 0,-1,an.hourElement)):Ur>Hr&&(Ur=br===an.hourElement?Ur-Hr-int(!an.amPM):Ir,Os&&Pn(void 0,1,an.hourElement)),an.amPM&&Kr&&(ps===1?Ur+$r===23:Math.abs(Ur-$r)>ps)&&(an.amPM.textContent=an.l10n.amPM[int(an.amPM.textContent===an.l10n.amPM[0])]),br.value=pad(Ur)}}return on(),an}function _flatpickr(ln,rn){for(var an=Array.prototype.slice.call(ln).filter(function(un){return un instanceof HTMLElement}),sn=[],on=0;on<an.length;on++){var cn=an[on];try{if(cn.getAttribute("data-fp-omit")!==null)continue;cn._flatpickr!==void 0&&(cn._flatpickr.destroy(),cn._flatpickr=void 0),cn._flatpickr=FlatpickrInstance(cn,rn||{}),sn.push(cn._flatpickr)}catch(un){console.error(un)}}return sn.length===1?sn[0]:sn}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(ln){return _flatpickr(this,ln)},HTMLElement.prototype.flatpickr=function(ln){return _flatpickr([this],ln)});var flatpickr=function(ln,rn){return typeof ln=="string"?_flatpickr(window.document.querySelectorAll(ln),rn):ln instanceof Node?_flatpickr([ln],rn):_flatpickr(ln,rn)};flatpickr.defaultConfig={};flatpickr.l10ns={en:__assign({},english),default:__assign({},english)};flatpickr.localize=function(ln){flatpickr.l10ns.default=__assign(__assign({},flatpickr.l10ns.default),ln)};flatpickr.setDefaults=function(ln){flatpickr.defaultConfig=__assign(__assign({},flatpickr.defaultConfig),ln)};flatpickr.parseDate=createDateParser({});flatpickr.formatDate=createDateFormatter({});flatpickr.compareDates=compareDates;typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(ln){return _flatpickr(this,ln)});Date.prototype.fp_incr=function(ln){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof ln=="string"?parseInt(ln,10):ln))};typeof window<"u"&&(window.flatpickr=flatpickr);function DatePicker({id:ln,mode:rn,onChange:an,label:sn,defaultDate:on,placeholder:cn}){return reactExports.useEffect(()=>{const un=flatpickr(`#${ln}`,{mode:rn||"single",static:!0,monthSelectorType:"static",dateFormat:"Y-m-d",defaultDate:on,onChange:an});return()=>{Array.isArray(un)||un.destroy()}},[rn,an,ln,on]),jsxRuntimeExports.jsxs("div",{children:[sn&&jsxRuntimeExports.jsx(Label,{htmlFor:ln,children:sn}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("input",{id:ln,placeholder:cn,className:"h-11 w-full rounded-lg border appearance-none px-4 py-2.5 text-sm shadow-theme-xs placeholder:text-gray-400 focus:outline-hidden focus:ring-3  dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30  bg-transparent text-gray-800 border-gray-300 focus:border-brand-300 focus:ring-brand-500/20 dark:border-gray-700  dark:focus:border-brand-800"}),jsxRuntimeExports.jsx("span",{className:"absolute text-gray-500 -translate-y-1/2 pointer-events-none right-3 top-1/2 dark:text-gray-400",children:jsxRuntimeExports.jsx(SvgCalenderLine,{className:"size-6"})})]})]})}function DefaultInputs(){const[ln,rn]=reactExports.useState(!1),an=[{value:"marketing",label:"Marketing"},{value:"template",label:"Template"},{value:"development",label:"Development"}],sn=on=>{console.log("Selected value:",on)};return jsxRuntimeExports.jsx(ComponentCard,{title:"Default Inputs",children:jsxRuntimeExports.jsxs("div",{className:"space-y-6",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{htmlFor:"input",children:"Input"}),jsxRuntimeExports.jsx(Input,{type:"text",id:"input"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{htmlFor:"inputTwo",children:"Input with Placeholder"}),jsxRuntimeExports.jsx(Input,{type:"text",id:"inputTwo",placeholder:"info@gmail.com"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Select Input"}),jsxRuntimeExports.jsx(Select,{options:an,placeholder:"Select an option",onChange:sn,className:"dark:bg-dark-900"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Password Input"}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx(Input,{type:ln?"text":"password",placeholder:"Enter your password"}),jsxRuntimeExports.jsx("button",{onClick:()=>rn(!ln),className:"absolute z-30 -translate-y-1/2 cursor-pointer right-4 top-1/2",children:ln?jsxRuntimeExports.jsx(SvgEye,{className:"fill-gray-500 dark:fill-gray-400 size-5"}):jsxRuntimeExports.jsx(SvgEyeClose,{className:"fill-gray-500 dark:fill-gray-400 size-5"})})]})]}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(DatePicker,{id:"date-picker",label:"Date Picker Input",placeholder:"Select a date",onChange:(on,cn)=>{console.log({dates:on,currentDateString:cn})}})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{htmlFor:"tm",children:"Time Picker Input"}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx(Input,{type:"time",id:"tm",name:"tm",onChange:on=>console.log(on.target.value)}),jsxRuntimeExports.jsx("span",{className:"absolute text-gray-500 -translate-y-1/2 pointer-events-none right-3 top-1/2 dark:text-gray-400",children:jsxRuntimeExports.jsx(SvgTime,{className:"size-6"})})]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{htmlFor:"tm",children:"Input with Payment"}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx(Input,{type:"text",placeholder:"Card number",className:"pl-[62px]"}),jsxRuntimeExports.jsx("span",{className:"absolute left-0 top-1/2 flex h-11 w-[46px] -translate-y-1/2 items-center justify-center border-r border-gray-200 dark:border-gray-800",children:jsxRuntimeExports.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("circle",{cx:"6.25",cy:"10",r:"5.625",fill:"#E80B26"}),jsxRuntimeExports.jsx("circle",{cx:"13.75",cy:"10",r:"5.625",fill:"#F59D31"}),jsxRuntimeExports.jsx("path",{d:"M10 14.1924C11.1508 13.1625 11.875 11.6657 11.875 9.99979C11.875 8.33383 11.1508 6.8371 10 5.80713C8.84918 6.8371 8.125 8.33383 8.125 9.99979C8.125 11.6657 8.84918 13.1625 10 14.1924Z",fill:"#FC6020"})]})})]})]})]})})}const PhoneInput=({countries:ln,placeholder:rn="+1 (555) 000-0000",onChange:an,selectPosition:sn="start"})=>{const[on,cn]=reactExports.useState("US"),[un,pn]=reactExports.useState("+1"),fn=ln.reduce((vn,{code:yn,label:wn})=>({...vn,[yn]:wn}),{}),mn=vn=>{const yn=vn.target.value;cn(yn),pn(fn[yn]),an&&an(fn[yn])},xn=vn=>{const yn=vn.target.value;pn(yn),an&&an(yn)};return jsxRuntimeExports.jsxs("div",{className:"relative flex",children:[sn==="start"&&jsxRuntimeExports.jsxs("div",{className:"absolute",children:[jsxRuntimeExports.jsx("select",{value:on,onChange:mn,className:"appearance-none bg-none rounded-l-lg border-0 border-r border-gray-200 bg-transparent py-3 pl-3.5 pr-8 leading-tight text-gray-700 focus:border-brand-300 focus:outline-hidden focus:ring-3 focus:ring-brand-500/10 dark:border-gray-800 dark:text-gray-400",children:ln.map(vn=>jsxRuntimeExports.jsx("option",{value:vn.code,className:"text-gray-700 dark:bg-gray-900 dark:text-gray-400",children:vn.code},vn.code))}),jsxRuntimeExports.jsx("div",{className:"absolute inset-y-0 flex items-center text-gray-700 pointer-events-none bg-none right-3 dark:text-gray-400",children:jsxRuntimeExports.jsx("svg",{className:"stroke-current",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M4.79175 7.396L10.0001 12.6043L15.2084 7.396",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),jsxRuntimeExports.jsx("input",{type:"tel",value:un,onChange:xn,placeholder:rn,className:`dark:bg-dark-900 h-11 w-full ${sn==="start"?"pl-[84px]":"pr-[84px]"} rounded-lg border border-gray-300 bg-transparent py-3 px-4 text-sm text-gray-800 shadow-theme-xs placeholder:text-gray-400 focus:border-brand-300 focus:outline-hidden focus:ring-3 focus:ring-brand-500/10 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30 dark:focus:border-brand-800`}),sn==="end"&&jsxRuntimeExports.jsxs("div",{className:"absolute right-0",children:[jsxRuntimeExports.jsx("select",{value:on,onChange:mn,className:"appearance-none bg-none rounded-r-lg border-0 border-l border-gray-200 bg-transparent py-3 pl-3.5 pr-8 leading-tight text-gray-700 focus:border-brand-300 focus:outline-hidden focus:ring-3 focus:ring-brand-500/10 dark:border-gray-800 dark:text-gray-400",children:ln.map(vn=>jsxRuntimeExports.jsx("option",{value:vn.code,className:"text-gray-700 dark:bg-gray-900 dark:text-gray-400",children:vn.code},vn.code))}),jsxRuntimeExports.jsx("div",{className:"absolute inset-y-0 flex items-center text-gray-700 pointer-events-none right-3 dark:text-gray-400",children:jsxRuntimeExports.jsx("svg",{className:"stroke-current",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M4.79175 7.396L10.0001 12.6043L15.2084 7.396",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})};function InputGroup(){const ln=[{code:"US",label:"+1"},{code:"GB",label:"+44"},{code:"CA",label:"+1"},{code:"AU",label:"+61"}],rn=an=>{console.log("Updated phone number:",an)};return jsxRuntimeExports.jsx(ComponentCard,{title:"Input Group",children:jsxRuntimeExports.jsxs("div",{className:"space-y-6",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Email"}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx(Input,{placeholder:"info@gmail.com",type:"text",className:"pl-[62px]"}),jsxRuntimeExports.jsx("span",{className:"absolute left-0 top-1/2 -translate-y-1/2 border-r border-gray-200 px-3.5 py-3 text-gray-500 dark:border-gray-800 dark:text-gray-400",children:jsxRuntimeExports.jsx(SvgEnvelope,{className:"size-6"})})]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Phone"}),jsxRuntimeExports.jsx(PhoneInput,{selectPosition:"start",countries:ln,placeholder:"+1 (555) 000-0000",onChange:rn})]})," ",jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Phone"}),jsxRuntimeExports.jsx(PhoneInput,{selectPosition:"end",countries:ln,placeholder:"+1 (555) 000-0000",onChange:rn})]})]})})}var propTypesExports=requirePropTypes();const PropTypes=getDefaultExportFromCjs(propTypesExports);function __awaiter(ln,rn,an,sn){function on(cn){return cn instanceof an?cn:new an(function(un){un(cn)})}return new(an||(an=Promise))(function(cn,un){function pn(xn){try{mn(sn.next(xn))}catch(vn){un(vn)}}function fn(xn){try{mn(sn.throw(xn))}catch(vn){un(vn)}}function mn(xn){xn.done?cn(xn.value):on(xn.value).then(pn,fn)}mn((sn=sn.apply(ln,rn||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const COMMON_MIME_TYPES=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function toFileWithPath(ln,rn,an){const sn=withMimeType(ln),{webkitRelativePath:on}=ln,cn=typeof rn=="string"?rn:typeof on=="string"&&on.length>0?on:`./${ln.name}`;return typeof sn.path!="string"&&setObjProp(sn,"path",cn),setObjProp(sn,"relativePath",cn),sn}function withMimeType(ln){const{name:rn}=ln;if(rn&&rn.lastIndexOf(".")!==-1&&!ln.type){const sn=rn.split(".").pop().toLowerCase(),on=COMMON_MIME_TYPES.get(sn);on&&Object.defineProperty(ln,"type",{value:on,writable:!1,configurable:!1,enumerable:!0})}return ln}function setObjProp(ln,rn,an){Object.defineProperty(ln,rn,{value:an,writable:!1,configurable:!1,enumerable:!0})}const FILES_TO_IGNORE=[".DS_Store","Thumbs.db"];function fromEvent(ln){return __awaiter(this,void 0,void 0,function*(){return isObject(ln)&&isDataTransfer(ln.dataTransfer)?getDataTransferFiles(ln.dataTransfer,ln.type):isChangeEvt(ln)?getInputFiles(ln):Array.isArray(ln)&&ln.every(rn=>"getFile"in rn&&typeof rn.getFile=="function")?getFsHandleFiles(ln):[]})}function isDataTransfer(ln){return isObject(ln)}function isChangeEvt(ln){return isObject(ln)&&isObject(ln.target)}function isObject(ln){return typeof ln=="object"&&ln!==null}function getInputFiles(ln){return fromList(ln.target.files).map(rn=>toFileWithPath(rn))}function getFsHandleFiles(ln){return __awaiter(this,void 0,void 0,function*(){return(yield Promise.all(ln.map(an=>an.getFile()))).map(an=>toFileWithPath(an))})}function getDataTransferFiles(ln,rn){return __awaiter(this,void 0,void 0,function*(){if(ln.items){const an=fromList(ln.items).filter(on=>on.kind==="file");if(rn!=="drop")return an;const sn=yield Promise.all(an.map(toFilePromises));return noIgnoredFiles(flatten(sn))}return noIgnoredFiles(fromList(ln.files).map(an=>toFileWithPath(an)))})}function noIgnoredFiles(ln){return ln.filter(rn=>FILES_TO_IGNORE.indexOf(rn.name)===-1)}function fromList(ln){if(ln===null)return[];const rn=[];for(let an=0;an<ln.length;an++){const sn=ln[an];rn.push(sn)}return rn}function toFilePromises(ln){if(typeof ln.webkitGetAsEntry!="function")return fromDataTransferItem(ln);const rn=ln.webkitGetAsEntry();return rn&&rn.isDirectory?fromDirEntry(rn):fromDataTransferItem(ln,rn)}function flatten(ln){return ln.reduce((rn,an)=>[...rn,...Array.isArray(an)?flatten(an):[an]],[])}function fromDataTransferItem(ln,rn){return __awaiter(this,void 0,void 0,function*(){var an;if(globalThis.isSecureContext&&typeof ln.getAsFileSystemHandle=="function"){const cn=yield ln.getAsFileSystemHandle();if(cn===null)throw new Error(`${ln} is not a File`);if(cn!==void 0){const un=yield cn.getFile();return un.handle=cn,toFileWithPath(un)}}const sn=ln.getAsFile();if(!sn)throw new Error(`${ln} is not a File`);return toFileWithPath(sn,(an=rn==null?void 0:rn.fullPath)!==null&&an!==void 0?an:void 0)})}function fromEntry(ln){return __awaiter(this,void 0,void 0,function*(){return ln.isDirectory?fromDirEntry(ln):fromFileEntry(ln)})}function fromDirEntry(ln){const rn=ln.createReader();return new Promise((an,sn)=>{const on=[];function cn(){rn.readEntries(un=>__awaiter(this,void 0,void 0,function*(){if(un.length){const pn=Promise.all(un.map(fromEntry));on.push(pn),cn()}else try{const pn=yield Promise.all(on);an(pn)}catch(pn){sn(pn)}}),un=>{sn(un)})}cn()})}function fromFileEntry(ln){return __awaiter(this,void 0,void 0,function*(){return new Promise((rn,an)=>{ln.file(sn=>{const on=toFileWithPath(sn,ln.fullPath);rn(on)},sn=>{an(sn)})})})}var es={},hasRequiredEs;function requireEs(){return hasRequiredEs||(hasRequiredEs=1,es.__esModule=!0,es.default=function(ln,rn){if(ln&&rn){var an=Array.isArray(rn)?rn:rn.split(",");if(an.length===0)return!0;var sn=ln.name||"",on=(ln.type||"").toLowerCase(),cn=on.replace(/\/.*$/,"");return an.some(function(un){var pn=un.trim().toLowerCase();return pn.charAt(0)==="."?sn.toLowerCase().endsWith(pn):pn.endsWith("/*")?cn===pn.replace(/\/.*$/,""):on===pn})}return!0}),es}var esExports=requireEs();const _accepts=getDefaultExportFromCjs(esExports);function _toConsumableArray$1(ln){return _arrayWithoutHoles$1(ln)||_iterableToArray$1(ln)||_unsupportedIterableToArray$1(ln)||_nonIterableSpread$1()}function _nonIterableSpread$1(){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 _iterableToArray$1(ln){if(typeof Symbol<"u"&&ln[Symbol.iterator]!=null||ln["@@iterator"]!=null)return Array.from(ln)}function _arrayWithoutHoles$1(ln){if(Array.isArray(ln))return _arrayLikeToArray$1(ln)}function ownKeys$1(ln,rn){var an=Object.keys(ln);if(Object.getOwnPropertySymbols){var sn=Object.getOwnPropertySymbols(ln);rn&&(sn=sn.filter(function(on){return Object.getOwnPropertyDescriptor(ln,on).enumerable})),an.push.apply(an,sn)}return an}function _objectSpread$1(ln){for(var rn=1;rn<arguments.length;rn++){var an=arguments[rn]!=null?arguments[rn]:{};rn%2?ownKeys$1(Object(an),!0).forEach(function(sn){_defineProperty$1(ln,sn,an[sn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ln,Object.getOwnPropertyDescriptors(an)):ownKeys$1(Object(an)).forEach(function(sn){Object.defineProperty(ln,sn,Object.getOwnPropertyDescriptor(an,sn))})}return ln}function _defineProperty$1(ln,rn,an){return rn in ln?Object.defineProperty(ln,rn,{value:an,enumerable:!0,configurable:!0,writable:!0}):ln[rn]=an,ln}function _slicedToArray$1(ln,rn){return _arrayWithHoles$1(ln)||_iterableToArrayLimit$1(ln,rn)||_unsupportedIterableToArray$1(ln,rn)||_nonIterableRest$1()}function _nonIterableRest$1(){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 _unsupportedIterableToArray$1(ln,rn){if(ln){if(typeof ln=="string")return _arrayLikeToArray$1(ln,rn);var an=Object.prototype.toString.call(ln).slice(8,-1);if(an==="Object"&&ln.constructor&&(an=ln.constructor.name),an==="Map"||an==="Set")return Array.from(ln);if(an==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(an))return _arrayLikeToArray$1(ln,rn)}}function _arrayLikeToArray$1(ln,rn){(rn==null||rn>ln.length)&&(rn=ln.length);for(var an=0,sn=new Array(rn);an<rn;an++)sn[an]=ln[an];return sn}function _iterableToArrayLimit$1(ln,rn){var an=ln==null?null:typeof Symbol<"u"&&ln[Symbol.iterator]||ln["@@iterator"];if(an!=null){var sn=[],on=!0,cn=!1,un,pn;try{for(an=an.call(ln);!(on=(un=an.next()).done)&&(sn.push(un.value),!(rn&&sn.length===rn));on=!0);}catch(fn){cn=!0,pn=fn}finally{try{!on&&an.return!=null&&an.return()}finally{if(cn)throw pn}}return sn}}function _arrayWithHoles$1(ln){if(Array.isArray(ln))return ln}var accepts=typeof _accepts=="function"?_accepts:_accepts.default,FILE_INVALID_TYPE="file-invalid-type",FILE_TOO_LARGE="file-too-large",FILE_TOO_SMALL="file-too-small",TOO_MANY_FILES="too-many-files",getInvalidTypeRejectionErr=function(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",an=rn.split(","),sn=an.length>1?"one of ".concat(an.join(", ")):an[0];return{code:FILE_INVALID_TYPE,message:"File type must be ".concat(sn)}},getTooLargeRejectionErr=function(rn){return{code:FILE_TOO_LARGE,message:"File is larger than ".concat(rn," ").concat(rn===1?"byte":"bytes")}},getTooSmallRejectionErr=function(rn){return{code:FILE_TOO_SMALL,message:"File is smaller than ".concat(rn," ").concat(rn===1?"byte":"bytes")}},TOO_MANY_FILES_REJECTION={code:TOO_MANY_FILES,message:"Too many files"};function fileAccepted(ln,rn){var an=ln.type==="application/x-moz-file"||accepts(ln,rn);return[an,an?null:getInvalidTypeRejectionErr(rn)]}function fileMatchSize(ln,rn,an){if(isDefined(ln.size))if(isDefined(rn)&&isDefined(an)){if(ln.size>an)return[!1,getTooLargeRejectionErr(an)];if(ln.size<rn)return[!1,getTooSmallRejectionErr(rn)]}else{if(isDefined(rn)&&ln.size<rn)return[!1,getTooSmallRejectionErr(rn)];if(isDefined(an)&&ln.size>an)return[!1,getTooLargeRejectionErr(an)]}return[!0,null]}function isDefined(ln){return ln!=null}function allFilesAccepted(ln){var rn=ln.files,an=ln.accept,sn=ln.minSize,on=ln.maxSize,cn=ln.multiple,un=ln.maxFiles,pn=ln.validator;return!cn&&rn.length>1||cn&&un>=1&&rn.length>un?!1:rn.every(function(fn){var mn=fileAccepted(fn,an),xn=_slicedToArray$1(mn,1),vn=xn[0],yn=fileMatchSize(fn,sn,on),wn=_slicedToArray$1(yn,1),An=wn[0],Cn=pn?pn(fn):null;return vn&&An&&!Cn})}function isPropagationStopped(ln){return typeof ln.isPropagationStopped=="function"?ln.isPropagationStopped():typeof ln.cancelBubble<"u"?ln.cancelBubble:!1}function isEvtWithFiles(ln){return ln.dataTransfer?Array.prototype.some.call(ln.dataTransfer.types,function(rn){return rn==="Files"||rn==="application/x-moz-file"}):!!ln.target&&!!ln.target.files}function onDocumentDragOver(ln){ln.preventDefault()}function isIe(ln){return ln.indexOf("MSIE")!==-1||ln.indexOf("Trident/")!==-1}function isEdge(ln){return ln.indexOf("Edge/")!==-1}function isIeOrEdge(){var ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return isIe(ln)||isEdge(ln)}function composeEventHandlers(){for(var ln=arguments.length,rn=new Array(ln),an=0;an<ln;an++)rn[an]=arguments[an];return function(sn){for(var on=arguments.length,cn=new Array(on>1?on-1:0),un=1;un<on;un++)cn[un-1]=arguments[un];return rn.some(function(pn){return!isPropagationStopped(sn)&&pn&&pn.apply(void 0,[sn].concat(cn)),isPropagationStopped(sn)})}}function canUseFileSystemAccessAPI(){return"showOpenFilePicker"in window}function pickerOptionsFromAccept(ln){if(isDefined(ln)){var rn=Object.entries(ln).filter(function(an){var sn=_slicedToArray$1(an,2),on=sn[0],cn=sn[1],un=!0;return isMIMEType(on)||(console.warn('Skipped "'.concat(on,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),un=!1),(!Array.isArray(cn)||!cn.every(isExt))&&(console.warn('Skipped "'.concat(on,'" because an invalid file extension was provided.')),un=!1),un}).reduce(function(an,sn){var on=_slicedToArray$1(sn,2),cn=on[0],un=on[1];return _objectSpread$1(_objectSpread$1({},an),{},_defineProperty$1({},cn,un))},{});return[{description:"Files",accept:rn}]}return ln}function acceptPropAsAcceptAttr(ln){if(isDefined(ln))return Object.entries(ln).reduce(function(rn,an){var sn=_slicedToArray$1(an,2),on=sn[0],cn=sn[1];return[].concat(_toConsumableArray$1(rn),[on],_toConsumableArray$1(cn))},[]).filter(function(rn){return isMIMEType(rn)||isExt(rn)}).join(",")}function isAbort(ln){return ln instanceof DOMException&&(ln.name==="AbortError"||ln.code===ln.ABORT_ERR)}function isSecurityError(ln){return ln instanceof DOMException&&(ln.name==="SecurityError"||ln.code===ln.SECURITY_ERR)}function isMIMEType(ln){return ln==="audio/*"||ln==="video/*"||ln==="image/*"||ln==="text/*"||ln==="application/*"||/\w+\/[-+.\w]+/g.test(ln)}function isExt(ln){return/^.*\.[\w]+$/.test(ln)}var _excluded=["children"],_excluded2=["open"],_excluded3=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],_excluded4=["refKey","onChange","onClick"];function _toConsumableArray(ln){return _arrayWithoutHoles(ln)||_iterableToArray(ln)||_unsupportedIterableToArray(ln)||_nonIterableSpread()}function _nonIterableSpread(){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 _iterableToArray(ln){if(typeof Symbol<"u"&&ln[Symbol.iterator]!=null||ln["@@iterator"]!=null)return Array.from(ln)}function _arrayWithoutHoles(ln){if(Array.isArray(ln))return _arrayLikeToArray(ln)}function _slicedToArray(ln,rn){return _arrayWithHoles(ln)||_iterableToArrayLimit(ln,rn)||_unsupportedIterableToArray(ln,rn)||_nonIterableRest()}function _nonIterableRest(){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 _unsupportedIterableToArray(ln,rn){if(ln){if(typeof ln=="string")return _arrayLikeToArray(ln,rn);var an=Object.prototype.toString.call(ln).slice(8,-1);if(an==="Object"&&ln.constructor&&(an=ln.constructor.name),an==="Map"||an==="Set")return Array.from(ln);if(an==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(an))return _arrayLikeToArray(ln,rn)}}function _arrayLikeToArray(ln,rn){(rn==null||rn>ln.length)&&(rn=ln.length);for(var an=0,sn=new Array(rn);an<rn;an++)sn[an]=ln[an];return sn}function _iterableToArrayLimit(ln,rn){var an=ln==null?null:typeof Symbol<"u"&&ln[Symbol.iterator]||ln["@@iterator"];if(an!=null){var sn=[],on=!0,cn=!1,un,pn;try{for(an=an.call(ln);!(on=(un=an.next()).done)&&(sn.push(un.value),!(rn&&sn.length===rn));on=!0);}catch(fn){cn=!0,pn=fn}finally{try{!on&&an.return!=null&&an.return()}finally{if(cn)throw pn}}return sn}}function _arrayWithHoles(ln){if(Array.isArray(ln))return ln}function ownKeys(ln,rn){var an=Object.keys(ln);if(Object.getOwnPropertySymbols){var sn=Object.getOwnPropertySymbols(ln);rn&&(sn=sn.filter(function(on){return Object.getOwnPropertyDescriptor(ln,on).enumerable})),an.push.apply(an,sn)}return an}function _objectSpread(ln){for(var rn=1;rn<arguments.length;rn++){var an=arguments[rn]!=null?arguments[rn]:{};rn%2?ownKeys(Object(an),!0).forEach(function(sn){_defineProperty(ln,sn,an[sn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ln,Object.getOwnPropertyDescriptors(an)):ownKeys(Object(an)).forEach(function(sn){Object.defineProperty(ln,sn,Object.getOwnPropertyDescriptor(an,sn))})}return ln}function _defineProperty(ln,rn,an){return rn in ln?Object.defineProperty(ln,rn,{value:an,enumerable:!0,configurable:!0,writable:!0}):ln[rn]=an,ln}function _objectWithoutProperties(ln,rn){if(ln==null)return{};var an=_objectWithoutPropertiesLoose(ln,rn),sn,on;if(Object.getOwnPropertySymbols){var cn=Object.getOwnPropertySymbols(ln);for(on=0;on<cn.length;on++)sn=cn[on],!(rn.indexOf(sn)>=0)&&Object.prototype.propertyIsEnumerable.call(ln,sn)&&(an[sn]=ln[sn])}return an}function _objectWithoutPropertiesLoose(ln,rn){if(ln==null)return{};var an={},sn=Object.keys(ln),on,cn;for(cn=0;cn<sn.length;cn++)on=sn[cn],!(rn.indexOf(on)>=0)&&(an[on]=ln[on]);return an}var Dropzone=reactExports.forwardRef(function(ln,rn){var an=ln.children,sn=_objectWithoutProperties(ln,_excluded),on=useDropzone(sn),cn=on.open,un=_objectWithoutProperties(on,_excluded2);return reactExports.useImperativeHandle(rn,function(){return{open:cn}},[cn]),React.createElement(reactExports.Fragment,null,an(_objectSpread(_objectSpread({},un),{},{open:cn})))});Dropzone.displayName="Dropzone";var defaultProps={disabled:!1,getFilesFromEvent:fromEvent,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Dropzone.defaultProps=defaultProps;Dropzone.propTypes={children:PropTypes.func,accept:PropTypes.objectOf(PropTypes.arrayOf(PropTypes.string)),multiple:PropTypes.bool,preventDropOnDocument:PropTypes.bool,noClick:PropTypes.bool,noKeyboard:PropTypes.bool,noDrag:PropTypes.bool,noDragEventsBubbling:PropTypes.bool,minSize:PropTypes.number,maxSize:PropTypes.number,maxFiles:PropTypes.number,disabled:PropTypes.bool,getFilesFromEvent:PropTypes.func,onFileDialogCancel:PropTypes.func,onFileDialogOpen:PropTypes.func,useFsAccessApi:PropTypes.bool,autoFocus:PropTypes.bool,onDragEnter:PropTypes.func,onDragLeave:PropTypes.func,onDragOver:PropTypes.func,onDrop:PropTypes.func,onDropAccepted:PropTypes.func,onDropRejected:PropTypes.func,onError:PropTypes.func,validator:PropTypes.func};var initialState={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function useDropzone(){var ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},rn=_objectSpread(_objectSpread({},defaultProps),ln),an=rn.accept,sn=rn.disabled,on=rn.getFilesFromEvent,cn=rn.maxSize,un=rn.minSize,pn=rn.multiple,fn=rn.maxFiles,mn=rn.onDragEnter,xn=rn.onDragLeave,vn=rn.onDragOver,yn=rn.onDrop,wn=rn.onDropAccepted,An=rn.onDropRejected,Cn=rn.onFileDialogCancel,kn=rn.onFileDialogOpen,Mn=rn.useFsAccessApi,Tn=rn.autoFocus,On=rn.preventDropOnDocument,Pn=rn.noClick,Nn=rn.noKeyboard,In=rn.noDrag,jn=rn.noDragEventsBubbling,Fn=rn.onError,Un=rn.validator,Yn=reactExports.useMemo(function(){return acceptPropAsAcceptAttr(an)},[an]),Qn=reactExports.useMemo(function(){return pickerOptionsFromAccept(an)},[an]),ir=reactExports.useMemo(function(){return typeof kn=="function"?kn:noop},[kn]),er=reactExports.useMemo(function(){return typeof Cn=="function"?Cn:noop},[Cn]),tr=reactExports.useRef(null),vr=reactExports.useRef(null),rr=reactExports.useReducer(reducer,initialState),fr=_slicedToArray(rr,2),ur=fr[0],wr=fr[1],Xn=ur.isFocused,cr=ur.isFileDialogActive,_r=reactExports.useRef(typeof window<"u"&&window.isSecureContext&&Mn&&canUseFileSystemAccessAPI()),Nr=function(){!_r.current&&cr&&setTimeout(function(){if(vr.current){var Rr=vr.current.files;Rr.length||(wr({type:"closeDialog"}),er())}},300)};reactExports.useEffect(function(){return window.addEventListener("focus",Nr,!1),function(){window.removeEventListener("focus",Nr,!1)}},[vr,cr,er,_r]);var Er=reactExports.useRef([]),Fr=function(Rr){tr.current&&tr.current.contains(Rr.target)||(Rr.preventDefault(),Er.current=[])};reactExports.useEffect(function(){return On&&(document.addEventListener("dragover",onDocumentDragOver,!1),document.addEventListener("drop",Fr,!1)),function(){On&&(document.removeEventListener("dragover",onDocumentDragOver),document.removeEventListener("drop",Fr))}},[tr,On]),reactExports.useEffect(function(){return!sn&&Tn&&tr.current&&tr.current.focus(),function(){}},[tr,Tn,sn]);var Tr=reactExports.useCallback(function(Lr){Fn?Fn(Lr):console.error(Lr)},[Fn]),Vr=reactExports.useCallback(function(Lr){Lr.preventDefault(),Lr.persist(),no(Lr),Er.current=[].concat(_toConsumableArray(Er.current),[Lr.target]),isEvtWithFiles(Lr)&&Promise.resolve(on(Lr)).then(function(Rr){if(!(isPropagationStopped(Lr)&&!jn)){var Es=Rr.length,Vs=Es>0&&allFilesAccepted({files:Rr,accept:Yn,minSize:un,maxSize:cn,multiple:pn,maxFiles:fn,validator:Un}),nl=Es>0&&!Vs;wr({isDragAccept:Vs,isDragReject:nl,isDragActive:!0,type:"setDraggedFiles"}),mn&&mn(Lr)}}).catch(function(Rr){return Tr(Rr)})},[on,mn,Tr,jn,Yn,un,cn,pn,fn,Un]),Pr=reactExports.useCallback(function(Lr){Lr.preventDefault(),Lr.persist(),no(Lr);var Rr=isEvtWithFiles(Lr);if(Rr&&Lr.dataTransfer)try{Lr.dataTransfer.dropEffect="copy"}catch{}return Rr&&vn&&vn(Lr),!1},[vn,jn]),Xr=reactExports.useCallback(function(Lr){Lr.preventDefault(),Lr.persist(),no(Lr);var Rr=Er.current.filter(function(Vs){return tr.current&&tr.current.contains(Vs)}),Es=Rr.indexOf(Lr.target);Es!==-1&&Rr.splice(Es,1),Er.current=Rr,!(Rr.length>0)&&(wr({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),isEvtWithFiles(Lr)&&xn&&xn(Lr))},[tr,xn,jn]),Wr=reactExports.useCallback(function(Lr,Rr){var Es=[],Vs=[];Lr.forEach(function(nl){var ro=fileAccepted(nl,Yn),$l=_slicedToArray(ro,2),Po=$l[0],Ul=$l[1],ll=fileMatchSize(nl,un,cn),zs=_slicedToArray(ll,2),_s=zs[0],yl=zs[1],Ws=Un?Un(nl):null;if(Po&&_s&&!Ws)Es.push(nl);else{var Bo=[Ul,yl];Ws&&(Bo=Bo.concat(Ws)),Vs.push({file:nl,errors:Bo.filter(function(Eo){return Eo})})}}),(!pn&&Es.length>1||pn&&fn>=1&&Es.length>fn)&&(Es.forEach(function(nl){Vs.push({file:nl,errors:[TOO_MANY_FILES_REJECTION]})}),Es.splice(0)),wr({acceptedFiles:Es,fileRejections:Vs,isDragReject:Vs.length>0,type:"setFiles"}),yn&&yn(Es,Vs,Rr),Vs.length>0&&An&&An(Vs,Rr),Es.length>0&&wn&&wn(Es,Rr)},[wr,pn,Yn,un,cn,fn,yn,wn,An,Un]),Ss=reactExports.useCallback(function(Lr){Lr.preventDefault(),Lr.persist(),no(Lr),Er.current=[],isEvtWithFiles(Lr)&&Promise.resolve(on(Lr)).then(function(Rr){isPropagationStopped(Lr)&&!jn||Wr(Rr,Lr)}).catch(function(Rr){return Tr(Rr)}),wr({type:"reset"})},[on,Wr,Tr,jn]),Bs=reactExports.useCallback(function(){if(_r.current){wr({type:"openDialog"}),ir();var Lr={multiple:pn,types:Qn};window.showOpenFilePicker(Lr).then(function(Rr){return on(Rr)}).then(function(Rr){Wr(Rr,null),wr({type:"closeDialog"})}).catch(function(Rr){isAbort(Rr)?(er(Rr),wr({type:"closeDialog"})):isSecurityError(Rr)?(_r.current=!1,vr.current?(vr.current.value=null,vr.current.click()):Tr(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):Tr(Rr)});return}vr.current&&(wr({type:"openDialog"}),ir(),vr.current.value=null,vr.current.click())},[wr,ir,er,Mn,Wr,Tr,Qn,pn]),Ns=reactExports.useCallback(function(Lr){!tr.current||!tr.current.isEqualNode(Lr.target)||(Lr.key===" "||Lr.key==="Enter"||Lr.keyCode===32||Lr.keyCode===13)&&(Lr.preventDefault(),Bs())},[tr,Bs]),tl=reactExports.useCallback(function(){wr({type:"focus"})},[]),Fl=reactExports.useCallback(function(){wr({type:"blur"})},[]),Ll=reactExports.useCallback(function(){Pn||(isIeOrEdge()?setTimeout(Bs,0):Bs())},[Pn,Bs]),bl=function(Rr){return sn?null:Rr},sl=function(Rr){return Nn?null:bl(Rr)},Ol=function(Rr){return In?null:bl(Rr)},no=function(Rr){jn&&Rr.stopPropagation()},Jo=reactExports.useMemo(function(){return function(){var Lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Rr=Lr.refKey,Es=Rr===void 0?"ref":Rr,Vs=Lr.role,nl=Lr.onKeyDown,ro=Lr.onFocus,$l=Lr.onBlur,Po=Lr.onClick,Ul=Lr.onDragEnter,ll=Lr.onDragOver,zs=Lr.onDragLeave,_s=Lr.onDrop,yl=_objectWithoutProperties(Lr,_excluded3);return _objectSpread(_objectSpread(_defineProperty({onKeyDown:sl(composeEventHandlers(nl,Ns)),onFocus:sl(composeEventHandlers(ro,tl)),onBlur:sl(composeEventHandlers($l,Fl)),onClick:bl(composeEventHandlers(Po,Ll)),onDragEnter:Ol(composeEventHandlers(Ul,Vr)),onDragOver:Ol(composeEventHandlers(ll,Pr)),onDragLeave:Ol(composeEventHandlers(zs,Xr)),onDrop:Ol(composeEventHandlers(_s,Ss)),role:typeof Vs=="string"&&Vs!==""?Vs:"presentation"},Es,tr),!sn&&!Nn?{tabIndex:0}:{}),yl)}},[tr,Ns,tl,Fl,Ll,Vr,Pr,Xr,Ss,Nn,In,sn]),kl=reactExports.useCallback(function(Lr){Lr.stopPropagation()},[]),Xl=reactExports.useMemo(function(){return function(){var Lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Rr=Lr.refKey,Es=Rr===void 0?"ref":Rr,Vs=Lr.onChange,nl=Lr.onClick,ro=_objectWithoutProperties(Lr,_excluded4),$l=_defineProperty({accept:Yn,multiple:pn,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:bl(composeEventHandlers(Vs,Ss)),onClick:bl(composeEventHandlers(nl,kl)),tabIndex:-1},Es,vr);return _objectSpread(_objectSpread({},$l),ro)}},[vr,an,pn,Ss,sn]);return _objectSpread(_objectSpread({},ur),{},{isFocused:Xn&&!sn,getRootProps:Jo,getInputProps:Xl,rootRef:tr,inputRef:vr,open:bl(Bs)})}function reducer(ln,rn){switch(rn.type){case"focus":return _objectSpread(_objectSpread({},ln),{},{isFocused:!0});case"blur":return _objectSpread(_objectSpread({},ln),{},{isFocused:!1});case"openDialog":return _objectSpread(_objectSpread({},initialState),{},{isFileDialogActive:!0});case"closeDialog":return _objectSpread(_objectSpread({},ln),{},{isFileDialogActive:!1});case"setDraggedFiles":return _objectSpread(_objectSpread({},ln),{},{isDragActive:rn.isDragActive,isDragAccept:rn.isDragAccept,isDragReject:rn.isDragReject});case"setFiles":return _objectSpread(_objectSpread({},ln),{},{acceptedFiles:rn.acceptedFiles,fileRejections:rn.fileRejections,isDragReject:rn.isDragReject});case"reset":return _objectSpread({},initialState);default:return ln}}function noop(){}const DropzoneComponent=()=>{const ln=on=>{console.log("Files dropped:",on)},{getRootProps:rn,getInputProps:an,isDragActive:sn}=useDropzone({onDrop:ln,accept:{"image/png":[],"image/jpeg":[],"image/webp":[],"image/svg+xml":[]}});return jsxRuntimeExports.jsx(ComponentCard,{title:"Dropzone",children:jsxRuntimeExports.jsx("div",{className:"transition border border-gray-300 border-dashed cursor-pointer dark:hover:border-brand-500 dark:border-gray-700 rounded-xl hover:border-brand-500",children:jsxRuntimeExports.jsxs("form",{...rn(),className:`dropzone rounded-xl   border-dashed border-gray-300 p-7 lg:p-10
        ${sn?"border-brand-500 bg-gray-100 dark:bg-gray-800":"border-gray-300 bg-gray-50 dark:border-gray-700 dark:bg-gray-900"}
      `,id:"demo-upload",children:[jsxRuntimeExports.jsx("input",{...an()}),jsxRuntimeExports.jsxs("div",{className:"dz-message flex flex-col items-center m-0!",children:[jsxRuntimeExports.jsx("div",{className:"mb-[22px] flex justify-center",children:jsxRuntimeExports.jsx("div",{className:"flex h-[68px] w-[68px]  items-center justify-center rounded-full bg-gray-200 text-gray-700 dark:bg-gray-800 dark:text-gray-400",children:jsxRuntimeExports.jsx("svg",{className:"fill-current",width:"29",height:"28",viewBox:"0 0 29 28",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5019 3.91699C14.2852 3.91699 14.0899 4.00891 13.953 4.15589L8.57363 9.53186C8.28065 9.82466 8.2805 10.2995 8.5733 10.5925C8.8661 10.8855 9.34097 10.8857 9.63396 10.5929L13.7519 6.47752V18.667C13.7519 19.0812 14.0877 19.417 14.5019 19.417C14.9161 19.417 15.2519 19.0812 15.2519 18.667V6.48234L19.3653 10.5929C19.6583 10.8857 20.1332 10.8855 20.426 10.5925C20.7188 10.2995 20.7186 9.82463 20.4256 9.53184L15.0838 4.19378C14.9463 4.02488 14.7367 3.91699 14.5019 3.91699ZM5.91626 18.667C5.91626 18.2528 5.58047 17.917 5.16626 17.917C4.75205 17.917 4.41626 18.2528 4.41626 18.667V21.8337C4.41626 23.0763 5.42362 24.0837 6.66626 24.0837H22.3339C23.5766 24.0837 24.5839 23.0763 24.5839 21.8337V18.667C24.5839 18.2528 24.2482 17.917 23.8339 17.917C23.4197 17.917 23.0839 18.2528 23.0839 18.667V21.8337C23.0839 22.2479 22.7482 22.5837 22.3339 22.5837H6.66626C6.25205 22.5837 5.91626 22.2479 5.91626 21.8337V18.667Z"})})})}),jsxRuntimeExports.jsx("h4",{className:"mb-3 font-semibold text-gray-800 text-theme-xl dark:text-white/90",children:sn?"Drop Files Here":"Drag & Drop Files Here"}),jsxRuntimeExports.jsx("span",{className:" text-center mb-5 block w-full max-w-[290px] text-sm text-gray-700 dark:text-gray-400",children:"Drag and drop your PNG, JPG, WebP, SVG images here or browse"}),jsxRuntimeExports.jsx("span",{className:"font-medium underline text-theme-sm text-brand-500",children:"Browse File"})]})]})})})};function CheckboxComponents(){const[ln,rn]=reactExports.useState(!1),[an,sn]=reactExports.useState(!0),[on,cn]=reactExports.useState(!1);return jsxRuntimeExports.jsx(ComponentCard,{title:"Checkbox",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-4",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx(Checkbox,{checked:ln,onChange:rn}),jsxRuntimeExports.jsx("span",{className:"block text-sm font-medium text-gray-700 dark:text-gray-400",children:"Default"})]}),jsxRuntimeExports.jsx("div",{className:"flex items-center gap-3",children:jsxRuntimeExports.jsx(Checkbox,{checked:an,onChange:sn,label:"Checked"})}),jsxRuntimeExports.jsx("div",{className:"flex items-center gap-3",children:jsxRuntimeExports.jsx(Checkbox,{checked:on,onChange:cn,disabled:!0,label:"Disabled"})})]})})}const Radio=({id:ln,name:rn,value:an,checked:sn,label:on,onChange:cn,className:un="",disabled:pn=!1})=>jsxRuntimeExports.jsxs("label",{htmlFor:ln,className:`relative flex cursor-pointer  select-none items-center gap-3 text-sm font-medium ${pn?"text-gray-300 dark:text-gray-600 cursor-not-allowed":"text-gray-700 dark:text-gray-400"} ${un}`,children:[jsxRuntimeExports.jsx("input",{id:ln,name:rn,type:"radio",value:an,checked:sn,onChange:()=>!pn&&cn(an),className:"sr-only",disabled:pn}),jsxRuntimeExports.jsx("span",{className:`flex h-5 w-5 items-center justify-center rounded-full border-[1.25px] ${sn?"border-brand-500 bg-brand-500":"bg-transparent border-gray-300 dark:border-gray-700"} ${pn?"bg-gray-100 dark:bg-gray-700 border-gray-200 dark:border-gray-700":""}`,children:jsxRuntimeExports.jsx("span",{className:`h-2 w-2 rounded-full bg-white ${sn?"block":"hidden"}`})}),on]});function RadioButtons(){const[ln,rn]=reactExports.useState("option2"),an=sn=>{rn(sn)};return jsxRuntimeExports.jsx(ComponentCard,{title:"Radio Buttons",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap items-center gap-8",children:[jsxRuntimeExports.jsx(Radio,{id:"radio1",name:"group1",value:"option1",checked:ln==="option1",onChange:an,label:"Default"}),jsxRuntimeExports.jsx(Radio,{id:"radio2",name:"group1",value:"option2",checked:ln==="option2",onChange:an,label:"Selected"}),jsxRuntimeExports.jsx(Radio,{id:"radio3",name:"group1",value:"option3",checked:ln==="option3",onChange:an,label:"Disabled",disabled:!0})]})})}const Switch=({label:ln,defaultChecked:rn=!1,disabled:an=!1,onChange:sn,color:on="blue"})=>{const[cn,un]=reactExports.useState(rn),pn=()=>{if(an)return;const mn=!cn;un(mn),sn&&sn(mn)},fn=on==="blue"?{background:cn?"bg-brand-500 ":"bg-gray-200 dark:bg-white/10",knob:cn?"translate-x-full bg-white":"translate-x-0 bg-white"}:{background:cn?"bg-gray-800 dark:bg-white/10":"bg-gray-200 dark:bg-white/10",knob:cn?"translate-x-full bg-white":"translate-x-0 bg-white"};return jsxRuntimeExports.jsxs("label",{className:`flex cursor-pointer select-none items-center gap-3 text-sm font-medium ${an?"text-gray-400":"text-gray-700 dark:text-gray-400"}`,onClick:pn,children:[jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("div",{className:`block transition duration-150 ease-linear h-6 w-11 rounded-full ${an?"bg-gray-100 pointer-events-none dark:bg-gray-800":fn.background}`}),jsxRuntimeExports.jsx("div",{className:`absolute left-0.5 top-0.5 h-5 w-5 rounded-full shadow-theme-sm duration-150 ease-linear transform ${fn.knob}`})]}),ln]})};function ToggleSwitch(){const ln=rn=>{console.log("Switch is now:",rn?"ON":"OFF")};return jsxRuntimeExports.jsxs(ComponentCard,{title:"Toggle switch input",children:[jsxRuntimeExports.jsxs("div",{className:"flex gap-4",children:[jsxRuntimeExports.jsx(Switch,{label:"Default",defaultChecked:!0,onChange:ln}),jsxRuntimeExports.jsx(Switch,{label:"Checked",defaultChecked:!0,onChange:ln}),jsxRuntimeExports.jsx(Switch,{label:"Disabled",disabled:!0})]})," ",jsxRuntimeExports.jsxs("div",{className:"flex gap-4",children:[jsxRuntimeExports.jsx(Switch,{label:"Default",defaultChecked:!0,onChange:ln,color:"gray"}),jsxRuntimeExports.jsx(Switch,{label:"Checked",defaultChecked:!0,onChange:ln,color:"gray"}),jsxRuntimeExports.jsx(Switch,{label:"Disabled",disabled:!0,color:"gray"})]})]})}const FileInput=({className:ln,onChange:rn})=>jsxRuntimeExports.jsx("input",{type:"file",className:`focus:border-ring-brand-300 h-11 w-full overflow-hidden rounded-lg border border-gray-300 bg-transparent text-sm text-gray-500 shadow-theme-xs transition-colors file:mr-5 file:border-collapse file:cursor-pointer file:rounded-l-lg file:border-0 file:border-r file:border-solid file:border-gray-200 file:bg-gray-50 file:py-3 file:pl-3.5 file:pr-3 file:text-sm file:text-gray-700 placeholder:text-gray-400 hover:file:bg-gray-100 focus:outline-hidden focus:file:ring-brand-300 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-400 dark:text-white/90 dark:file:border-gray-800 dark:file:bg-white/[0.03] dark:file:text-gray-400 dark:placeholder:text-gray-400 ${ln}`,onChange:rn});function FileInputExample(){const ln=rn=>{var sn;const an=(sn=rn.target.files)==null?void 0:sn[0];an&&console.log("Selected file:",an.name)};return jsxRuntimeExports.jsx(ComponentCard,{title:"File Input",children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Upload file"}),jsxRuntimeExports.jsx(FileInput,{onChange:ln,className:"custom-class"})]})})}const MultiSelect=({label:ln,options:rn,defaultSelected:an=[],value:sn,onChange:on,disabled:cn=!1,placeholder:un="Select options"})=>{const pn=sn!==void 0,[fn,mn]=reactExports.useState(an),xn=pn?sn:fn,[vn,yn]=reactExports.useState(!1),[wn,An]=reactExports.useState(-1),Cn=reactExports.useRef(null);reactExports.useEffect(()=>{const Nn=In=>{Cn.current&&!Cn.current.contains(In.target)&&yn(!1)};if(vn)return document.addEventListener("mousedown",Nn),()=>document.removeEventListener("mousedown",Nn)},[vn]);const kn=Nn=>{pn||mn(Nn),on==null||on(Nn)},Mn=()=>{cn||(yn(Nn=>!Nn),An(-1))},Tn=Nn=>{const In=xn.includes(Nn)?xn.filter(jn=>jn!==Nn):[...xn,Nn];kn(In)},On=Nn=>{kn(xn.filter(In=>In!==Nn))},Pn=Nn=>{if(!cn)switch(Nn.preventDefault(),Nn.key){case"Enter":vn?wn>=0&&Tn(rn[wn].value):yn(!0);break;case"Escape":yn(!1);break;case"ArrowDown":vn?An(In=>In<rn.length-1?In+1:0):yn(!0);break;case"ArrowUp":vn&&An(In=>In>0?In-1:rn.length-1);break}};return jsxRuntimeExports.jsxs("div",{className:"w-full",ref:Cn,children:[jsxRuntimeExports.jsx("label",{className:"mb-1.5 block text-sm font-medium text-gray-700 dark:text-gray-400",id:`${ln}-label`,children:ln}),jsxRuntimeExports.jsx("div",{className:"relative z-20 inline-block w-full",children:jsxRuntimeExports.jsxs("div",{className:"relative flex flex-col items-center",children:[jsxRuntimeExports.jsx("div",{onClick:Mn,onKeyDown:Pn,className:"w-full",role:"combobox","aria-expanded":vn,"aria-haspopup":"listbox","aria-labelledby":`${ln}-label`,"aria-disabled":cn,tabIndex:cn?-1:0,children:jsxRuntimeExports.jsxs("div",{className:`mb-2 flex min-h-11  rounded-lg border border-gray-300 py-1.5 pl-3 pr-3 shadow-theme-xs outline-hidden transition focus:border-brand-300 focus:shadow-focus-ring dark:border-gray-700 dark:bg-gray-900 dark:focus:border-brand-300 ${cn?"opacity-50 cursor-not-allowed bg-gray-50 dark:bg-gray-800":"cursor-pointer"}`,children:[jsxRuntimeExports.jsx("div",{className:"flex flex-wrap flex-auto gap-2",children:xn.length>0?xn.map(Nn=>{var jn;const In=((jn=rn.find(Fn=>Fn.value===Nn))==null?void 0:jn.text)||Nn;return jsxRuntimeExports.jsxs("div",{className:"group flex items-center justify-center rounded-full border-[0.7px] border-transparent bg-gray-100 py-1 pl-2.5 pr-2 text-sm text-gray-800 hover:border-gray-200 dark:bg-gray-800 dark:text-white/90 dark:hover:border-gray-800",children:[jsxRuntimeExports.jsx("span",{className:"flex-initial max-w-full",children:In}),jsxRuntimeExports.jsx("button",{type:"button",onClick:Fn=>{Fn.stopPropagation(),cn||On(Nn)},disabled:cn,className:"pl-2 text-gray-500 cursor-pointer group-hover:text-gray-400 dark:text-gray-400 disabled:cursor-not-allowed","aria-label":`Remove ${In}`,children:jsxRuntimeExports.jsx("svg",{className:"fill-current",width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.40717 4.46881C3.11428 4.17591 3.11428 3.70104 3.40717 3.40815C3.70006 3.11525 4.17494 3.11525 4.46783 3.40815L6.99943 5.93975L9.53095 3.40822C9.82385 3.11533 10.2987 3.11533 10.5916 3.40822C10.8845 3.70112 10.8845 4.17599 10.5916 4.46888L8.06009 7.00041L10.5916 9.53193C10.8845 9.82482 10.8845 10.2997 10.5916 10.5926C10.2987 10.8855 9.82385 10.8855 9.53095 10.5926L6.99943 8.06107L4.46783 10.5927C4.17494 10.8856 3.70006 10.8856 3.40717 10.5927C3.11428 10.2998 3.11428 9.8249 3.40717 9.53201L5.93877 7.00041L3.40717 4.46881Z"})})})]},Nn)}):jsxRuntimeExports.jsx("div",{className:"w-full h-full p-1 pr-2 text-sm text-gray-400 dark:text-gray-500 pointer-events-none",children:un})}),jsxRuntimeExports.jsx("div",{className:"flex items-center self-start py-1 pl-1 pr-1 w-7",children:jsxRuntimeExports.jsx("button",{type:"button",onClick:Nn=>{Nn.stopPropagation(),Mn()},disabled:cn,className:"w-5 h-5 text-gray-700 outline-hidden cursor-pointer focus:outline-hidden dark:text-gray-400 disabled:cursor-not-allowed",children:jsxRuntimeExports.jsx("svg",{className:`stroke-current transition-transform ${vn?"rotate-180":""}`,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M4.79175 7.39551L10.0001 12.6038L15.2084 7.39551",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})})]})}),vn&&jsxRuntimeExports.jsx("div",{className:"absolute left-0 z-40 w-full overflow-y-auto bg-white rounded-lg shadow-sm top-full max-h-select dark:bg-gray-900",onClick:Nn=>Nn.stopPropagation(),role:"listbox","aria-label":ln,children:rn.map((Nn,In)=>{const jn=xn.includes(Nn.value),Fn=In===wn;return jsxRuntimeExports.jsx("div",{className:`hover:bg-primary/5 w-full cursor-pointer rounded-t border-b border-gray-200 dark:border-gray-800 ${Fn?"bg-primary/5":""} ${jn?"bg-primary/10":""}`,onClick:()=>Tn(Nn.value),role:"option","aria-selected":jn,children:jsxRuntimeExports.jsx("div",{className:"relative flex w-full items-center p-2 pl-2",children:jsxRuntimeExports.jsx("div",{className:"mx-2 leading-6 text-gray-800 dark:text-white/90",children:Nn.text})})},Nn.value)})})]})})]})};function SelectInputs(){const ln=[{value:"marketing",label:"Marketing"},{value:"template",label:"Template"},{value:"development",label:"Development"}],rn=cn=>{console.log("Selected value:",cn)},[an,sn]=reactExports.useState([]),on=[{value:"1",text:"Option 1",selected:!1},{value:"2",text:"Option 2",selected:!1},{value:"3",text:"Option 3",selected:!1},{value:"4",text:"Option 4",selected:!1},{value:"5",text:"Option 5",selected:!1}];return jsxRuntimeExports.jsx(ComponentCard,{title:"Select Inputs",children:jsxRuntimeExports.jsxs("div",{className:"space-y-6",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Select Input"}),jsxRuntimeExports.jsx(Select,{options:ln,placeholder:"Select Option",onChange:rn,className:"dark:bg-dark-900"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(MultiSelect,{label:"Multiple Select Options",options:on,defaultSelected:["1","3"],onChange:cn=>sn(cn)}),jsxRuntimeExports.jsxs("p",{className:"sr-only",children:["Selected Values: ",an.join(", ")]})]})]})})}const TextArea=({placeholder:ln="Enter your message",rows:rn=3,value:an="",onChange:sn,className:on="",disabled:cn=!1,error:un=!1,hint:pn=""})=>{const fn=xn=>{sn&&sn(xn.target.value)};let mn=`w-full rounded-lg border px-4 py-2.5 text-sm shadow-theme-xs focus:outline-hidden ${on} `;return cn?mn+=" bg-gray-100 opacity-50 text-gray-500 border-gray-300 cursor-not-allowed opacity40 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700":un?mn+=" bg-transparent  border-gray-300 focus:border-error-300 focus:ring-3 focus:ring-error-500/10 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90 dark:focus:border-error-800":mn+=" bg-transparent text-gray-900 dark:text-gray-300 text-gray-900 border-gray-300 focus:border-brand-300 focus:ring-3 focus:ring-brand-500/10 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90 dark:focus:border-brand-800",jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("textarea",{placeholder:ln,rows:rn,value:an,onChange:fn,disabled:cn,className:mn}),pn&&jsxRuntimeExports.jsx("p",{className:`mt-2 text-sm ${un?"text-error-500":"text-gray-500 dark:text-gray-400"}`,children:pn})]})};function TextAreaInput(){const[ln,rn]=reactExports.useState(""),[an,sn]=reactExports.useState("");return jsxRuntimeExports.jsx(ComponentCard,{title:"Textarea input field",children:jsxRuntimeExports.jsxs("div",{className:"space-y-6",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Description"}),jsxRuntimeExports.jsx(TextArea,{value:ln,onChange:on=>rn(on),rows:6})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Description"}),jsxRuntimeExports.jsx(TextArea,{rows:6,disabled:!0})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Description"}),jsxRuntimeExports.jsx(TextArea,{rows:6,value:an,error:!0,onChange:on=>sn(on),hint:"Please enter a valid message."})]})]})})}function InputStates(){const[ln,rn]=reactExports.useState(""),[an,sn]=reactExports.useState(""),[on,cn]=reactExports.useState(!1),un=mn=>{const xn=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(mn);return cn(!xn),xn},pn=mn=>{const xn=mn.target.value;rn(xn),un(xn)},fn=mn=>{const xn=mn.target.value;sn(xn),un(xn)};return jsxRuntimeExports.jsx(ComponentCard,{title:"Input States",desc:"Validation styles for error, success and disabled states on form controls.",children:jsxRuntimeExports.jsxs("div",{className:"space-y-5 sm:space-y-6",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Email"}),jsxRuntimeExports.jsx(Input,{type:"email",value:ln,error:on,onChange:pn,placeholder:"Enter your email",hint:on?"This is an invalid email address.":""})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Email"}),jsxRuntimeExports.jsx(Input,{type:"email",value:an,success:!on,onChange:fn,placeholder:"Enter your email",hint:on?"":"This is an success message."})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Label,{children:"Email"}),jsxRuntimeExports.jsx(Input,{type:"text",value:"disabled@example.com",disabled:!0,placeholder:"Disabled email"})]})]})})}function FormElements(){return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(PageMeta,{title:"React.js Form Elements Dashboard | TailAdmin - React.js Admin Dashboard Template",description:"This is React.js Form Elements  Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),jsxRuntimeExports.jsx(PageBreadcrumb,{pageTitle:"Form Elements"}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-6 xl:grid-cols-2",children:[jsxRuntimeExports.jsxs("div",{className:"space-y-6",children:[jsxRuntimeExports.jsx(DefaultInputs,{}),jsxRuntimeExports.jsx(SelectInputs,{}),jsxRuntimeExports.jsx(TextAreaInput,{}),jsxRuntimeExports.jsx(InputStates,{})]}),jsxRuntimeExports.jsxs("div",{className:"space-y-6",children:[jsxRuntimeExports.jsx(InputGroup,{}),jsxRuntimeExports.jsx(FileInputExample,{}),jsxRuntimeExports.jsx(CheckboxComponents,{}),jsxRuntimeExports.jsx(RadioButtons,{}),jsxRuntimeExports.jsx(ToggleSwitch,{}),jsxRuntimeExports.jsx(DropzoneComponent,{})]})]})]})}function Blank(){return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(PageMeta,{title:"React.js Blank Dashboard | TailAdmin - Next.js Admin Dashboard Template",description:"This is React.js Blank Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),jsxRuntimeExports.jsx(PageBreadcrumb,{pageTitle:"Blank Page"}),jsxRuntimeExports.jsx("div",{className:"min-h-screen rounded-2xl border border-gray-200 bg-white px-5 py-7 dark:border-gray-800 dark:bg-white/[0.03] xl:px-10 xl:py-12",children:jsxRuntimeExports.jsxs("div",{className:"mx-auto w-full max-w-[630px] text-center",children:[jsxRuntimeExports.jsx("h3",{className:"mb-4 font-semibold text-gray-800 text-theme-xl dark:text-white/90 sm:text-2xl",children:"Card Title Here"}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 sm:text-base",children:"Start putting content on grids or panels, you can also use different combinations of grids.Please check out the dashboard and other pages"})]})})]})}const SidebarContext=reactExports.createContext(void 0),useSidebar=()=>{const ln=reactExports.useContext(SidebarContext);if(!ln)throw new Error("useSidebar must be used within a SidebarProvider");return ln},SidebarProvider=({children:ln})=>{const[rn,an]=reactExports.useState(!0),[sn,on]=reactExports.useState(!1),[cn,un]=reactExports.useState(!1),[pn,fn]=reactExports.useState(!1),[mn,xn]=reactExports.useState(null),[vn,yn]=reactExports.useState(null);reactExports.useEffect(()=>{const kn=()=>{const Mn=window.innerWidth<768;un(Mn),Mn||on(!1)};return kn(),window.addEventListener("resize",kn),()=>{window.removeEventListener("resize",kn)}},[]);const wn=()=>{an(kn=>!kn)},An=()=>{on(kn=>!kn)},Cn=kn=>{yn(Mn=>Mn===kn?null:kn)};return jsxRuntimeExports.jsx(SidebarContext.Provider,{value:{isExpanded:cn?!1:rn,isMobileOpen:sn,isHovered:pn,activeItem:mn,openSubmenu:vn,toggleSidebar:wn,toggleMobileSidebar:An,setIsHovered:fn,setActiveItem:xn,toggleSubmenu:Cn},children:ln})},ThemeToggleButton=()=>{const{toggleTheme:ln}=useTheme();return jsxRuntimeExports.jsxs("button",{onClick:ln,className:"relative flex items-center justify-center text-gray-500 transition-colors bg-white border border-gray-200 rounded-full hover:text-dark-900 h-11 w-11 hover:bg-gray-100 hover:text-gray-700 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-white",children:[jsxRuntimeExports.jsx("svg",{className:"hidden dark:block",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99998 1.5415C10.4142 1.5415 10.75 1.87729 10.75 2.2915V3.5415C10.75 3.95572 10.4142 4.2915 9.99998 4.2915C9.58577 4.2915 9.24998 3.95572 9.24998 3.5415V2.2915C9.24998 1.87729 9.58577 1.5415 9.99998 1.5415ZM10.0009 6.79327C8.22978 6.79327 6.79402 8.22904 6.79402 10.0001C6.79402 11.7712 8.22978 13.207 10.0009 13.207C11.772 13.207 13.2078 11.7712 13.2078 10.0001C13.2078 8.22904 11.772 6.79327 10.0009 6.79327ZM5.29402 10.0001C5.29402 7.40061 7.40135 5.29327 10.0009 5.29327C12.6004 5.29327 14.7078 7.40061 14.7078 10.0001C14.7078 12.5997 12.6004 14.707 10.0009 14.707C7.40135 14.707 5.29402 12.5997 5.29402 10.0001ZM15.9813 5.08035C16.2742 4.78746 16.2742 4.31258 15.9813 4.01969C15.6884 3.7268 15.2135 3.7268 14.9207 4.01969L14.0368 4.90357C13.7439 5.19647 13.7439 5.67134 14.0368 5.96423C14.3297 6.25713 14.8045 6.25713 15.0974 5.96423L15.9813 5.08035ZM18.4577 10.0001C18.4577 10.4143 18.1219 10.7501 17.7077 10.7501H16.4577C16.0435 10.7501 15.7077 10.4143 15.7077 10.0001C15.7077 9.58592 16.0435 9.25013 16.4577 9.25013H17.7077C18.1219 9.25013 18.4577 9.58592 18.4577 10.0001ZM14.9207 15.9806C15.2135 16.2735 15.6884 16.2735 15.9813 15.9806C16.2742 15.6877 16.2742 15.2128 15.9813 14.9199L15.0974 14.036C14.8045 13.7431 14.3297 13.7431 14.0368 14.036C13.7439 14.3289 13.7439 14.8038 14.0368 15.0967L14.9207 15.9806ZM9.99998 15.7088C10.4142 15.7088 10.75 16.0445 10.75 16.4588V17.7088C10.75 18.123 10.4142 18.4588 9.99998 18.4588C9.58577 18.4588 9.24998 18.123 9.24998 17.7088V16.4588C9.24998 16.0445 9.58577 15.7088 9.99998 15.7088ZM5.96356 15.0972C6.25646 14.8043 6.25646 14.3295 5.96356 14.0366C5.67067 13.7437 5.1958 13.7437 4.9029 14.0366L4.01902 14.9204C3.72613 15.2133 3.72613 15.6882 4.01902 15.9811C4.31191 16.274 4.78679 16.274 5.07968 15.9811L5.96356 15.0972ZM4.29224 10.0001C4.29224 10.4143 3.95645 10.7501 3.54224 10.7501H2.29224C1.87802 10.7501 1.54224 10.4143 1.54224 10.0001C1.54224 9.58592 1.87802 9.25013 2.29224 9.25013H3.54224C3.95645 9.25013 4.29224 9.58592 4.29224 10.0001ZM4.9029 5.9637C5.1958 6.25659 5.67067 6.25659 5.96356 5.9637C6.25646 5.6708 6.25646 5.19593 5.96356 4.90303L5.07968 4.01915C4.78679 3.72626 4.31191 3.72626 4.01902 4.01915C3.72613 4.31204 3.72613 4.78692 4.01902 5.07981L4.9029 5.9637Z",fill:"currentColor"})}),jsxRuntimeExports.jsx("svg",{className:"dark:hidden",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M17.4547 11.97L18.1799 12.1611C18.265 11.8383 18.1265 11.4982 17.8401 11.3266C17.5538 11.1551 17.1885 11.1934 16.944 11.4207L17.4547 11.97ZM8.0306 2.5459L8.57989 3.05657C8.80718 2.81209 8.84554 2.44682 8.67398 2.16046C8.50243 1.8741 8.16227 1.73559 7.83948 1.82066L8.0306 2.5459ZM12.9154 13.0035C9.64678 13.0035 6.99707 10.3538 6.99707 7.08524H5.49707C5.49707 11.1823 8.81835 14.5035 12.9154 14.5035V13.0035ZM16.944 11.4207C15.8869 12.4035 14.4721 13.0035 12.9154 13.0035V14.5035C14.8657 14.5035 16.6418 13.7499 17.9654 12.5193L16.944 11.4207ZM16.7295 11.7789C15.9437 14.7607 13.2277 16.9586 10.0003 16.9586V18.4586C13.9257 18.4586 17.2249 15.7853 18.1799 12.1611L16.7295 11.7789ZM10.0003 16.9586C6.15734 16.9586 3.04199 13.8433 3.04199 10.0003H1.54199C1.54199 14.6717 5.32892 18.4586 10.0003 18.4586V16.9586ZM3.04199 10.0003C3.04199 6.77289 5.23988 4.05695 8.22173 3.27114L7.83948 1.82066C4.21532 2.77574 1.54199 6.07486 1.54199 10.0003H3.04199ZM6.99707 7.08524C6.99707 5.52854 7.5971 4.11366 8.57989 3.05657L7.48132 2.03522C6.25073 3.35885 5.49707 5.13487 5.49707 7.08524H6.99707Z",fill:"currentColor"})})]})},Dropdown=({isOpen:ln,onClose:rn,children:an,className:sn=""})=>{const on=reactExports.useRef(null);return reactExports.useEffect(()=>{const cn=un=>{on.current&&!on.current.contains(un.target)&&!un.target.closest(".dropdown-toggle")&&rn()};return document.addEventListener("mousedown",cn),()=>{document.removeEventListener("mousedown",cn)}},[rn]),ln?jsxRuntimeExports.jsx("div",{ref:on,className:`absolute z-40  right-0 mt-2  rounded-xl border border-gray-200 bg-white  shadow-theme-lg dark:border-gray-800 dark:bg-gray-dark ${sn}`,children:an}):null},DropdownItem=({tag:ln="button",to:rn,onClick:an,onItemClick:sn,baseClassName:on="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900",className:cn="",children:un})=>{const pn=`${on} ${cn}`.trim(),fn=mn=>{ln==="button"&&mn.preventDefault(),an&&an(),sn&&sn()};return ln==="a"&&rn?jsxRuntimeExports.jsx(Link,{to:rn,className:pn,onClick:fn,children:un}):jsxRuntimeExports.jsx("button",{onClick:fn,className:pn,children:un})};function NotificationDropdown(){const[ln,rn]=reactExports.useState(!1),[an,sn]=reactExports.useState(!0);function on(){rn(!ln)}function cn(){rn(!1)}const un=()=>{on(),sn(!1)};return jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsxs("button",{className:"relative flex items-center justify-center text-gray-500 transition-colors bg-white border border-gray-200 rounded-full dropdown-toggle hover:text-gray-700 h-11 w-11 hover:bg-gray-100 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-white",onClick:un,children:[jsxRuntimeExports.jsx("span",{className:`absolute right-0 top-0.5 z-10 h-2 w-2 rounded-full bg-orange-400 ${an?"flex":"hidden"}`,children:jsxRuntimeExports.jsx("span",{className:"absolute inline-flex w-full h-full bg-orange-400 rounded-full opacity-75 animate-ping"})}),jsxRuntimeExports.jsx("svg",{className:"fill-current",width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.75 2.29248C10.75 1.87827 10.4143 1.54248 10 1.54248C9.58583 1.54248 9.25004 1.87827 9.25004 2.29248V2.83613C6.08266 3.20733 3.62504 5.9004 3.62504 9.16748V14.4591H3.33337C2.91916 14.4591 2.58337 14.7949 2.58337 15.2091C2.58337 15.6234 2.91916 15.9591 3.33337 15.9591H4.37504H15.625H16.6667C17.0809 15.9591 17.4167 15.6234 17.4167 15.2091C17.4167 14.7949 17.0809 14.4591 16.6667 14.4591H16.375V9.16748C16.375 5.9004 13.9174 3.20733 10.75 2.83613V2.29248ZM14.875 14.4591V9.16748C14.875 6.47509 12.6924 4.29248 10 4.29248C7.30765 4.29248 5.12504 6.47509 5.12504 9.16748V14.4591H14.875ZM8.00004 17.7085C8.00004 18.1228 8.33583 18.4585 8.75004 18.4585H11.25C11.6643 18.4585 12 18.1228 12 17.7085C12 17.2943 11.6643 16.9585 11.25 16.9585H8.75004C8.33583 16.9585 8.00004 17.2943 8.00004 17.7085Z",fill:"currentColor"})})]}),jsxRuntimeExports.jsxs(Dropdown,{isOpen:ln,onClose:cn,className:"absolute -right-[240px] mt-[17px] flex h-[480px] w-[350px] flex-col rounded-2xl border border-gray-200 bg-white p-3 shadow-theme-lg dark:border-gray-800 dark:bg-gray-dark sm:w-[361px] lg:right-0",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between pb-3 mb-3 border-b border-gray-100 dark:border-gray-700",children:[jsxRuntimeExports.jsx("h5",{className:"text-lg font-semibold text-gray-800 dark:text-gray-200",children:"Notification"}),jsxRuntimeExports.jsx("button",{onClick:on,className:"text-gray-500 transition dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200",children:jsxRuntimeExports.jsx("svg",{className:"fill-current",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.21967 7.28131C5.92678 6.98841 5.92678 6.51354 6.21967 6.22065C6.51256 5.92775 6.98744 5.92775 7.28033 6.22065L11.999 10.9393L16.7176 6.22078C17.0105 5.92789 17.4854 5.92788 17.7782 6.22078C18.0711 6.51367 18.0711 6.98855 17.7782 7.28144L13.0597 12L17.7782 16.7186C18.0711 17.0115 18.0711 17.4863 17.7782 17.7792C17.4854 18.0721 17.0105 18.0721 16.7176 17.7792L11.999 13.0607L7.28033 17.7794C6.98744 18.0722 6.51256 18.0722 6.21967 17.7794C5.92678 17.4865 5.92678 17.0116 6.21967 16.7187L10.9384 12L6.21967 7.28131Z",fill:"currentColor"})})})]}),jsxRuntimeExports.jsxs("ul",{className:"flex flex-col h-auto overflow-y-auto custom-scrollbar",children:[jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(DropdownItem,{onItemClick:cn,className:"flex gap-3 rounded-lg border-b border-gray-100 p-3 px-4.5 py-3 hover:bg-gray-100 dark:border-gray-800 dark:hover:bg-white/5",children:[jsxRuntimeExports.jsxs("span",{className:"relative block w-full h-10 rounded-full z-1 max-w-10",children:[jsxRuntimeExports.jsx("img",{width:40,height:40,src:"/images/user/user-02.jpg",alt:"User",className:"w-full overflow-hidden rounded-full"}),jsxRuntimeExports.jsx("span",{className:"absolute bottom-0 right-0 z-10 h-2.5 w-full max-w-2.5 rounded-full border-[1.5px] border-white bg-success-500 dark:border-gray-900"})]}),jsxRuntimeExports.jsxs("span",{className:"block",children:[jsxRuntimeExports.jsxs("span",{className:"mb-1.5 block  text-theme-sm text-gray-500 dark:text-gray-400 space-x-1",children:[jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Terry Franci"}),jsxRuntimeExports.jsx("span",{children:" requests permission to change"}),jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Project - Nganter App"})]}),jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-2 text-gray-500 text-theme-xs dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{children:"Project"}),jsxRuntimeExports.jsx("span",{className:"w-1 h-1 bg-gray-400 rounded-full"}),jsxRuntimeExports.jsx("span",{children:"5 min ago"})]})]})]})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(DropdownItem,{onItemClick:cn,className:"flex gap-3 rounded-lg border-b border-gray-100 p-3 px-4.5 py-3 hover:bg-gray-100 dark:border-gray-800 dark:hover:bg-white/5",children:[jsxRuntimeExports.jsxs("span",{className:"relative block w-full h-10 rounded-full z-1 max-w-10",children:[jsxRuntimeExports.jsx("img",{width:40,height:40,src:"/images/user/user-03.jpg",alt:"User",className:"w-full overflow-hidden rounded-full"}),jsxRuntimeExports.jsx("span",{className:"absolute bottom-0 right-0 z-10 h-2.5 w-full max-w-2.5 rounded-full border-[1.5px] border-white bg-success-500 dark:border-gray-900"})]}),jsxRuntimeExports.jsxs("span",{className:"block",children:[jsxRuntimeExports.jsxs("span",{className:"mb-1.5 block space-x-1 text-theme-sm text-gray-500 dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Alena Franci"}),jsxRuntimeExports.jsx("span",{children:"requests permission to change"}),jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Project - Nganter App"})]}),jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-2 text-gray-500 text-theme-xs dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{children:"Project"}),jsxRuntimeExports.jsx("span",{className:"w-1 h-1 bg-gray-400 rounded-full"}),jsxRuntimeExports.jsx("span",{children:"8 min ago"})]})]})]})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(DropdownItem,{onItemClick:cn,className:"flex gap-3 rounded-lg border-b border-gray-100 p-3 px-4.5 py-3 hover:bg-gray-100 dark:border-gray-800 dark:hover:bg-white/5",children:[jsxRuntimeExports.jsxs("span",{className:"relative block w-full h-10 rounded-full z-1 max-w-10",children:[jsxRuntimeExports.jsx("img",{width:40,height:40,src:"/images/user/user-04.jpg",alt:"User",className:"w-full overflow-hidden rounded-full"}),jsxRuntimeExports.jsx("span",{className:"absolute bottom-0 right-0 z-10 h-2.5 w-full max-w-2.5 rounded-full border-[1.5px] border-white bg-success-500 dark:border-gray-900"})]}),jsxRuntimeExports.jsxs("span",{className:"block",children:[jsxRuntimeExports.jsxs("span",{className:"mb-1.5 block space-x-1 text-theme-sm text-gray-500 dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Jocelyn Kenter"}),jsxRuntimeExports.jsx("span",{children:" requests permission to change"}),jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Project - Nganter App"})]}),jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-2 text-gray-500 text-theme-xs dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{children:"Project"}),jsxRuntimeExports.jsx("span",{className:"w-1 h-1 bg-gray-400 rounded-full"}),jsxRuntimeExports.jsx("span",{children:"15 min ago"})]})]})]})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(DropdownItem,{onItemClick:cn,className:"flex gap-3 rounded-lg border-b border-gray-100 p-3 px-4.5 py-3 hover:bg-gray-100 dark:border-gray-800 dark:hover:bg-white/5",to:"/",children:[jsxRuntimeExports.jsxs("span",{className:"relative block w-full h-10 rounded-full z-1 max-w-10",children:[jsxRuntimeExports.jsx("img",{width:40,height:40,src:"/images/user/user-05.jpg",alt:"User",className:"w-full overflow-hidden rounded-full"}),jsxRuntimeExports.jsx("span",{className:"absolute bottom-0 right-0 z-10 h-2.5 w-full max-w-2.5 rounded-full border-[1.5px] border-white bg-error-500 dark:border-gray-900"})]}),jsxRuntimeExports.jsxs("span",{className:"block",children:[jsxRuntimeExports.jsxs("span",{className:"mb-1.5 space-x-1 block text-theme-sm text-gray-500 dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Brandon Philips"}),jsxRuntimeExports.jsx("span",{children:"requests permission to change"}),jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Project - Nganter App"})]}),jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-2 text-gray-500 text-theme-xs dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{children:"Project"}),jsxRuntimeExports.jsx("span",{className:"w-1 h-1 bg-gray-400 rounded-full"}),jsxRuntimeExports.jsx("span",{children:"1 hr ago"})]})]})]})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(DropdownItem,{className:"flex gap-3 rounded-lg border-b border-gray-100 p-3 px-4.5 py-3 hover:bg-gray-100 dark:border-gray-800 dark:hover:bg-white/5",onItemClick:cn,children:[jsxRuntimeExports.jsxs("span",{className:"relative block w-full h-10 rounded-full z-1 max-w-10",children:[jsxRuntimeExports.jsx("img",{width:40,height:40,src:"/images/user/user-02.jpg",alt:"User",className:"w-full overflow-hidden rounded-full"}),jsxRuntimeExports.jsx("span",{className:"absolute bottom-0 right-0 z-10 h-2.5 w-full max-w-2.5 rounded-full border-[1.5px] border-white bg-success-500 dark:border-gray-900"})]}),jsxRuntimeExports.jsxs("span",{className:"block",children:[jsxRuntimeExports.jsxs("span",{className:"mb-1.5 block space-x-1 text-theme-sm text-gray-500 dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Terry Franci"}),jsxRuntimeExports.jsx("span",{children:" requests permission to change"}),jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Project - Nganter App"})]}),jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-2 text-gray-500 text-theme-xs dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{children:"Project"}),jsxRuntimeExports.jsx("span",{className:"w-1 h-1 bg-gray-400 rounded-full"}),jsxRuntimeExports.jsx("span",{children:"5 min ago"})]})]})]})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(DropdownItem,{onItemClick:cn,className:"flex gap-3 rounded-lg border-b border-gray-100 p-3 px-4.5 py-3 hover:bg-gray-100 dark:border-gray-800 dark:hover:bg-white/5",children:[jsxRuntimeExports.jsxs("span",{className:"relative block w-full h-10 rounded-full z-1 max-w-10",children:[jsxRuntimeExports.jsx("img",{width:40,height:40,src:"/images/user/user-03.jpg",alt:"User",className:"w-full overflow-hidden rounded-full"}),jsxRuntimeExports.jsx("span",{className:"absolute bottom-0 right-0 z-10 h-2.5 w-full max-w-2.5 rounded-full border-[1.5px] border-white bg-success-500 dark:border-gray-900"})]}),jsxRuntimeExports.jsxs("span",{className:"block",children:[jsxRuntimeExports.jsxs("span",{className:"mb-1.5 block space-x-1 text-theme-sm text-gray-500 dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Alena Franci"}),jsxRuntimeExports.jsx("span",{children:" requests permission to change"}),jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Project - Nganter App"})]}),jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-2 text-gray-500 text-theme-xs dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{children:"Project"}),jsxRuntimeExports.jsx("span",{className:"w-1 h-1 bg-gray-400 rounded-full"}),jsxRuntimeExports.jsx("span",{children:"8 min ago"})]})]})]})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(DropdownItem,{onItemClick:cn,className:"flex gap-3 rounded-lg border-b border-gray-100 p-3 px-4.5 py-3 hover:bg-gray-100 dark:border-gray-800 dark:hover:bg-white/5",children:[jsxRuntimeExports.jsxs("span",{className:"relative block w-full h-10 rounded-full z-1 max-w-10",children:[jsxRuntimeExports.jsx("img",{width:40,height:40,src:"/images/user/user-04.jpg",alt:"User",className:"w-full overflow-hidden rounded-full"}),jsxRuntimeExports.jsx("span",{className:"absolute bottom-0 right-0 z-10 h-2.5 w-full max-w-2.5 rounded-full border-[1.5px] border-white bg-success-500 dark:border-gray-900"})]}),jsxRuntimeExports.jsxs("span",{className:"block",children:[jsxRuntimeExports.jsxs("span",{className:"mb-1.5 block  space-x-1 text-theme-sm text-gray-500 dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Jocelyn Kenter"}),jsxRuntimeExports.jsx("span",{children:" requests permission to change"}),jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Project - Nganter App"})]}),jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-2 text-gray-500 text-theme-xs dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{children:"Project"}),jsxRuntimeExports.jsx("span",{className:"w-1 h-1 bg-gray-400 rounded-full"}),jsxRuntimeExports.jsx("span",{children:"15 min ago"})]})]})]})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(DropdownItem,{onItemClick:cn,className:"flex gap-3 rounded-lg border-b border-gray-100 p-3 px-4.5 py-3 hover:bg-gray-100 dark:border-gray-800 dark:hover:bg-white/5",children:[jsxRuntimeExports.jsxs("span",{className:"relative block w-full h-10 rounded-full z-1 max-w-10",children:[jsxRuntimeExports.jsx("img",{width:40,height:40,src:"/images/user/user-05.jpg",alt:"User",className:"overflow-hidden rounded-full"}),jsxRuntimeExports.jsx("span",{className:"absolute bottom-0 right-0 z-10 h-2.5 w-full max-w-2.5 rounded-full border-[1.5px] border-white bg-error-500 dark:border-gray-900"})]}),jsxRuntimeExports.jsxs("span",{className:"block",children:[jsxRuntimeExports.jsxs("span",{className:"mb-1.5 block space-x-1 text-theme-sm text-gray-500 dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Brandon Philips"}),jsxRuntimeExports.jsx("span",{children:"requests permission to change"}),jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-800 dark:text-white/90",children:"Project - Nganter App"})]}),jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-2 text-gray-500 text-theme-xs dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{children:"Project"}),jsxRuntimeExports.jsx("span",{className:"w-1 h-1 bg-gray-400 rounded-full"}),jsxRuntimeExports.jsx("span",{children:"1 hr ago"})]})]})]})})]}),jsxRuntimeExports.jsx(Link,{to:"/",className:"block px-4 py-2 mt-3 text-sm font-medium text-center text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700",children:"View All Notifications"})]})]})}function UserDropdown(){const[ln,rn]=reactExports.useState(!1);function an(){rn(!ln)}function sn(){rn(!1)}return jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsxs("button",{onClick:an,className:"flex items-center text-gray-700 dropdown-toggle dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{className:"mr-3 overflow-hidden rounded-full h-11 w-11",children:jsxRuntimeExports.jsx("img",{src:"/images/user/owner.jpg",alt:"User"})}),jsxRuntimeExports.jsx("span",{className:"block mr-1 font-medium text-theme-sm",children:"Musharof"}),jsxRuntimeExports.jsx("svg",{className:`stroke-gray-500 dark:stroke-gray-400 transition-transform duration-200 ${ln?"rotate-180":""}`,width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M4.3125 8.65625L9 13.3437L13.6875 8.65625",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),jsxRuntimeExports.jsxs(Dropdown,{isOpen:ln,onClose:sn,className:"absolute right-0 mt-[17px] flex w-[260px] flex-col rounded-2xl border border-gray-200 bg-white p-3 shadow-theme-lg dark:border-gray-800 dark:bg-gray-dark",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("span",{className:"block font-medium text-gray-700 text-theme-sm dark:text-gray-400",children:"Musharof Chowdhury"}),jsxRuntimeExports.jsx("span",{className:"mt-0.5 block text-theme-xs text-gray-500 dark:text-gray-400",children:"randomuser@pimjo.com"})]}),jsxRuntimeExports.jsxs("ul",{className:"flex flex-col gap-1 pt-4 pb-3 border-b border-gray-200 dark:border-gray-800",children:[jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(DropdownItem,{onItemClick:sn,tag:"a",to:"/profile",className:"flex items-center gap-3 px-3 py-2 font-medium text-gray-700 rounded-lg group text-theme-sm hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-gray-300",children:[jsxRuntimeExports.jsx("svg",{className:"fill-gray-500 group-hover:fill-gray-700 dark:fill-gray-400 dark:group-hover:fill-gray-300",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 14.1526 4.3002 16.1184 5.61936 17.616C6.17279 15.3096 8.24852 13.5955 10.7246 13.5955H13.2746C15.7509 13.5955 17.8268 15.31 18.38 17.6167C19.6996 16.119 20.5 14.153 20.5 12C20.5 7.30558 16.6944 3.5 12 3.5ZM17.0246 18.8566V18.8455C17.0246 16.7744 15.3457 15.0955 13.2746 15.0955H10.7246C8.65354 15.0955 6.97461 16.7744 6.97461 18.8455V18.856C8.38223 19.8895 10.1198 20.5 12 20.5C13.8798 20.5 15.6171 19.8898 17.0246 18.8566ZM2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM11.9991 7.25C10.8847 7.25 9.98126 8.15342 9.98126 9.26784C9.98126 10.3823 10.8847 11.2857 11.9991 11.2857C13.1135 11.2857 14.0169 10.3823 14.0169 9.26784C14.0169 8.15342 13.1135 7.25 11.9991 7.25ZM8.48126 9.26784C8.48126 7.32499 10.0563 5.75 11.9991 5.75C13.9419 5.75 15.5169 7.32499 15.5169 9.26784C15.5169 11.2107 13.9419 12.7857 11.9991 12.7857C10.0563 12.7857 8.48126 11.2107 8.48126 9.26784Z",fill:""})}),"Edit profile"]})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(DropdownItem,{onItemClick:sn,tag:"a",to:"/profile",className:"flex items-center gap-3 px-3 py-2 font-medium text-gray-700 rounded-lg group text-theme-sm hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-gray-300",children:[jsxRuntimeExports.jsx("svg",{className:"fill-gray-500 group-hover:fill-gray-700 dark:fill-gray-400 dark:group-hover:fill-gray-300",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.4858 3.5L13.5182 3.5C13.9233 3.5 14.2518 3.82851 14.2518 4.23377C14.2518 5.9529 16.1129 7.02795 17.602 6.1682C17.9528 5.96567 18.4014 6.08586 18.6039 6.43667L20.1203 9.0631C20.3229 9.41407 20.2027 9.86286 19.8517 10.0655C18.3625 10.9253 18.3625 13.0747 19.8517 13.9345C20.2026 14.1372 20.3229 14.5859 20.1203 14.9369L18.6039 17.5634C18.4013 17.9142 17.9528 18.0344 17.602 17.8318C16.1129 16.9721 14.2518 18.0471 14.2518 19.7663C14.2518 20.1715 13.9233 20.5 13.5182 20.5H10.4858C10.0804 20.5 9.75182 20.1714 9.75182 19.766C9.75182 18.0461 7.88983 16.9717 6.40067 17.8314C6.04945 18.0342 5.60037 17.9139 5.39767 17.5628L3.88167 14.937C3.67903 14.586 3.79928 14.1372 4.15026 13.9346C5.63949 13.0748 5.63946 10.9253 4.15025 10.0655C3.79926 9.86282 3.67901 9.41401 3.88165 9.06303L5.39764 6.43725C5.60034 6.08617 6.04943 5.96581 6.40065 6.16858C7.88982 7.02836 9.75182 5.9539 9.75182 4.23399C9.75182 3.82862 10.0804 3.5 10.4858 3.5ZM13.5182 2L10.4858 2C9.25201 2 8.25182 3.00019 8.25182 4.23399C8.25182 4.79884 7.64013 5.15215 7.15065 4.86955C6.08213 4.25263 4.71559 4.61859 4.0986 5.68725L2.58261 8.31303C1.96575 9.38146 2.33183 10.7477 3.40025 11.3645C3.88948 11.647 3.88947 12.3531 3.40026 12.6355C2.33184 13.2524 1.96578 14.6186 2.58263 15.687L4.09863 18.3128C4.71562 19.3814 6.08215 19.7474 7.15067 19.1305C7.64015 18.8479 8.25182 19.2012 8.25182 19.766C8.25182 20.9998 9.25201 22 10.4858 22H13.5182C14.7519 22 15.7518 20.9998 15.7518 19.7663C15.7518 19.2015 16.3632 18.8487 16.852 19.1309C17.9202 19.7476 19.2862 19.3816 19.9029 18.3134L21.4193 15.6869C22.0361 14.6185 21.6701 13.2523 20.6017 12.6355C20.1125 12.3531 20.1125 11.647 20.6017 11.3645C21.6701 10.7477 22.0362 9.38152 21.4193 8.3131L19.903 5.68667C19.2862 4.61842 17.9202 4.25241 16.852 4.86917C16.3632 5.15138 15.7518 4.79856 15.7518 4.23377C15.7518 3.00024 14.7519 2 13.5182 2ZM9.6659 11.9999C9.6659 10.7103 10.7113 9.66493 12.0009 9.66493C13.2905 9.66493 14.3359 10.7103 14.3359 11.9999C14.3359 13.2895 13.2905 14.3349 12.0009 14.3349C10.7113 14.3349 9.6659 13.2895 9.6659 11.9999ZM12.0009 8.16493C9.88289 8.16493 8.1659 9.88191 8.1659 11.9999C8.1659 14.1179 9.88289 15.8349 12.0009 15.8349C14.1189 15.8349 15.8359 14.1179 15.8359 11.9999C15.8359 9.88191 14.1189 8.16493 12.0009 8.16493Z",fill:""})}),"Account settings"]})}),jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(DropdownItem,{onItemClick:sn,tag:"a",to:"/profile",className:"flex items-center gap-3 px-3 py-2 font-medium text-gray-700 rounded-lg group text-theme-sm hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-gray-300",children:[jsxRuntimeExports.jsx("svg",{className:"fill-gray-500 group-hover:fill-gray-700 dark:fill-gray-400 dark:group-hover:fill-gray-300",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 12C3.5 7.30558 7.30558 3.5 12 3.5C16.6944 3.5 20.5 7.30558 20.5 12C20.5 16.6944 16.6944 20.5 12 20.5C7.30558 20.5 3.5 16.6944 3.5 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM11.0991 7.52507C11.0991 8.02213 11.5021 8.42507 11.9991 8.42507H12.0001C12.4972 8.42507 12.9001 8.02213 12.9001 7.52507C12.9001 7.02802 12.4972 6.62507 12.0001 6.62507H11.9991C11.5021 6.62507 11.0991 7.02802 11.0991 7.52507ZM12.0001 17.3714C11.5859 17.3714 11.2501 17.0356 11.2501 16.6214V10.9449C11.2501 10.5307 11.5859 10.1949 12.0001 10.1949C12.4143 10.1949 12.7501 10.5307 12.7501 10.9449V16.6214C12.7501 17.0356 12.4143 17.3714 12.0001 17.3714Z",fill:""})}),"Support"]})})]}),jsxRuntimeExports.jsxs(Link,{to:"/signin",className:"flex items-center gap-3 px-3 py-2 mt-3 font-medium text-gray-700 rounded-lg group text-theme-sm hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-gray-300",children:[jsxRuntimeExports.jsx("svg",{className:"fill-gray-500 group-hover:fill-gray-700 dark:group-hover:fill-gray-300",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.1007 19.247C14.6865 19.247 14.3507 18.9112 14.3507 18.497L14.3507 14.245H12.8507V18.497C12.8507 19.7396 13.8581 20.747 15.1007 20.747H18.5007C19.7434 20.747 20.7507 19.7396 20.7507 18.497L20.7507 5.49609C20.7507 4.25345 19.7433 3.24609 18.5007 3.24609H15.1007C13.8581 3.24609 12.8507 4.25345 12.8507 5.49609V9.74501L14.3507 9.74501V5.49609C14.3507 5.08188 14.6865 4.74609 15.1007 4.74609L18.5007 4.74609C18.9149 4.74609 19.2507 5.08188 19.2507 5.49609L19.2507 18.497C19.2507 18.9112 18.9149 19.247 18.5007 19.247H15.1007ZM3.25073 11.9984C3.25073 12.2144 3.34204 12.4091 3.48817 12.546L8.09483 17.1556C8.38763 17.4485 8.86251 17.4487 9.15549 17.1559C9.44848 16.8631 9.44863 16.3882 9.15583 16.0952L5.81116 12.7484L16.0007 12.7484C16.4149 12.7484 16.7507 12.4127 16.7507 11.9984C16.7507 11.5842 16.4149 11.2484 16.0007 11.2484L5.81528 11.2484L9.15585 7.90554C9.44864 7.61255 9.44847 7.13767 9.15547 6.84488C8.86248 6.55209 8.3876 6.55226 8.09481 6.84525L3.52309 11.4202C3.35673 11.5577 3.25073 11.7657 3.25073 11.9984Z",fill:""})}),"Sign out"]})]})]})}const AppHeader=()=>{const[ln,rn]=reactExports.useState(!1),{isMobileOpen:an,toggleSidebar:sn,toggleMobileSidebar:on}=useSidebar(),cn=()=>{window.innerWidth>=1024?sn():on()},un=()=>{rn(!ln)},pn=reactExports.useRef(null);return reactExports.useEffect(()=>{const fn=mn=>{var xn;(mn.metaKey||mn.ctrlKey)&&mn.key==="k"&&(mn.preventDefault(),(xn=pn.current)==null||xn.focus())};return document.addEventListener("keydown",fn),()=>{document.removeEventListener("keydown",fn)}},[]),jsxRuntimeExports.jsx("header",{className:"sticky top-0 flex w-full bg-white border-gray-200 z-99999 dark:border-gray-800 dark:bg-gray-900 lg:border-b",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-between grow lg:flex-row lg:px-6",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between w-full gap-2 px-3 py-3 border-b border-gray-200 dark:border-gray-800 sm:gap-4 lg:justify-normal lg:border-b-0 lg:px-0 lg:py-4",children:[jsxRuntimeExports.jsx("button",{className:"items-center justify-center w-10 h-10 text-gray-500 border-gray-200 rounded-lg z-99999 dark:border-gray-800 lg:flex dark:text-gray-400 lg:h-11 lg:w-11 lg:border",onClick:cn,"aria-label":"Toggle Sidebar",children:an?jsxRuntimeExports.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.21967 7.28131C5.92678 6.98841 5.92678 6.51354 6.21967 6.22065C6.51256 5.92775 6.98744 5.92775 7.28033 6.22065L11.999 10.9393L16.7176 6.22078C17.0105 5.92789 17.4854 5.92788 17.7782 6.22078C18.0711 6.51367 18.0711 6.98855 17.7782 7.28144L13.0597 12L17.7782 16.7186C18.0711 17.0115 18.0711 17.4863 17.7782 17.7792C17.4854 18.0721 17.0105 18.0721 16.7176 17.7792L11.999 13.0607L7.28033 17.7794C6.98744 18.0722 6.51256 18.0722 6.21967 17.7794C5.92678 17.4865 5.92678 17.0116 6.21967 16.7187L10.9384 12L6.21967 7.28131Z",fill:"currentColor"})}):jsxRuntimeExports.jsx("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.583252 1C0.583252 0.585788 0.919038 0.25 1.33325 0.25H14.6666C15.0808 0.25 15.4166 0.585786 15.4166 1C15.4166 1.41421 15.0808 1.75 14.6666 1.75L1.33325 1.75C0.919038 1.75 0.583252 1.41422 0.583252 1ZM0.583252 11C0.583252 10.5858 0.919038 10.25 1.33325 10.25L14.6666 10.25C15.0808 10.25 15.4166 10.5858 15.4166 11C15.4166 11.4142 15.0808 11.75 14.6666 11.75L1.33325 11.75C0.919038 11.75 0.583252 11.4142 0.583252 11ZM1.33325 5.25C0.919038 5.25 0.583252 5.58579 0.583252 6C0.583252 6.41421 0.919038 6.75 1.33325 6.75L7.99992 6.75C8.41413 6.75 8.74992 6.41421 8.74992 6C8.74992 5.58579 8.41413 5.25 7.99992 5.25L1.33325 5.25Z",fill:"currentColor"})})}),jsxRuntimeExports.jsxs(Link,{to:"/",className:"lg:hidden",children:[jsxRuntimeExports.jsx("img",{className:"dark:hidden",src:"./images/logo/logo.svg",alt:"Logo"}),jsxRuntimeExports.jsx("img",{className:"hidden dark:block",src:"./images/logo/logo-dark.svg",alt:"Logo"})]}),jsxRuntimeExports.jsx("button",{onClick:un,className:"flex items-center justify-center w-10 h-10 text-gray-700 rounded-lg z-99999 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800 lg:hidden",children:jsxRuntimeExports.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99902 10.4951C6.82745 10.4951 7.49902 11.1667 7.49902 11.9951V12.0051C7.49902 12.8335 6.82745 13.5051 5.99902 13.5051C5.1706 13.5051 4.49902 12.8335 4.49902 12.0051V11.9951C4.49902 11.1667 5.1706 10.4951 5.99902 10.4951ZM17.999 10.4951C18.8275 10.4951 19.499 11.1667 19.499 11.9951V12.0051C19.499 12.8335 18.8275 13.5051 17.999 13.5051C17.1706 13.5051 16.499 12.8335 16.499 12.0051V11.9951C16.499 11.1667 17.1706 10.4951 17.999 10.4951ZM13.499 11.9951C13.499 11.1667 12.8275 10.4951 11.999 10.4951C11.1706 10.4951 10.499 11.1667 10.499 11.9951V12.0051C10.499 12.8335 11.1706 13.5051 11.999 13.5051C12.8275 13.5051 13.499 12.8335 13.499 12.0051V11.9951Z",fill:"currentColor"})})}),jsxRuntimeExports.jsx("div",{className:"hidden lg:block",children:jsxRuntimeExports.jsx("form",{children:jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("span",{className:"absolute -translate-y-1/2 pointer-events-none left-4 top-1/2",children:jsxRuntimeExports.jsx("svg",{className:"fill-gray-500 dark:fill-gray-400",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.04175 9.37363C3.04175 5.87693 5.87711 3.04199 9.37508 3.04199C12.8731 3.04199 15.7084 5.87693 15.7084 9.37363C15.7084 12.8703 12.8731 15.7053 9.37508 15.7053C5.87711 15.7053 3.04175 12.8703 3.04175 9.37363ZM9.37508 1.54199C5.04902 1.54199 1.54175 5.04817 1.54175 9.37363C1.54175 13.6991 5.04902 17.2053 9.37508 17.2053C11.2674 17.2053 13.003 16.5344 14.357 15.4176L17.177 18.238C17.4699 18.5309 17.9448 18.5309 18.2377 18.238C18.5306 17.9451 18.5306 17.4703 18.2377 17.1774L15.418 14.3573C16.5365 13.0033 17.2084 11.2669 17.2084 9.37363C17.2084 5.04817 13.7011 1.54199 9.37508 1.54199Z",fill:""})})}),jsxRuntimeExports.jsx("input",{ref:pn,type:"text",placeholder:"Search or type command...",className:"dark:bg-dark-900 h-11 w-full rounded-lg border border-gray-200 bg-transparent py-2.5 pl-12 pr-14 text-sm text-gray-800 shadow-theme-xs placeholder:text-gray-400 focus:border-brand-300 focus:outline-hidden focus:ring-3 focus:ring-brand-500/10 dark:border-gray-800 dark:bg-gray-900 dark:bg-white/[0.03] dark:text-white/90 dark:placeholder:text-white/30 dark:focus:border-brand-800 xl:w-[430px]"}),jsxRuntimeExports.jsxs("button",{className:"absolute right-2.5 top-1/2 inline-flex -translate-y-1/2 items-center gap-0.5 rounded-lg border border-gray-200 bg-gray-50 px-[7px] py-[4.5px] text-xs -tracking-[0.2px] text-gray-500 dark:border-gray-800 dark:bg-white/[0.03] dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{children:" ⌘ "}),jsxRuntimeExports.jsx("span",{children:" K "})]})]})})})]}),jsxRuntimeExports.jsxs("div",{className:`${ln?"flex":"hidden"} items-center justify-between w-full gap-4 px-5 py-4 lg:flex shadow-theme-md lg:justify-end lg:px-0 lg:shadow-none`,children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 2xsm:gap-3",children:[jsxRuntimeExports.jsx(ThemeToggleButton,{}),jsxRuntimeExports.jsx(NotificationDropdown,{})]}),jsxRuntimeExports.jsx(UserDropdown,{})]})]})})},Backdrop=()=>{const{isMobileOpen:ln,toggleMobileSidebar:rn}=useSidebar();return ln?jsxRuntimeExports.jsx("div",{className:"fixed inset-0 z-40 bg-gray-900/50 lg:hidden",onClick:rn}):null};function SidebarWidget(){return jsxRuntimeExports.jsxs("div",{className:`
        mx-auto mb-10 w-full max-w-60 rounded-2xl bg-gray-50 px-4 py-5 text-center dark:bg-white/[0.03]`,children:[jsxRuntimeExports.jsx("h3",{className:"mb-2 font-semibold text-gray-900 dark:text-white",children:"Face Admin Platform"}),jsxRuntimeExports.jsx("p",{className:"mb-4 text-gray-500 text-theme-sm dark:text-gray-400",children:"Powerful admin solution for managing clients and users efficiently."}),jsxRuntimeExports.jsx("a",{href:"#",className:"flex items-center justify-center p-3 font-medium text-white rounded-lg bg-brand-500 text-theme-sm hover:bg-brand-600",children:"Upgrade Plan"})]})}const navItems=[{icon:jsxRuntimeExports.jsx(SvgGrid,{}),name:"Dashboard",path:"/admin/dashboard"},{icon:jsxRuntimeExports.jsx(SvgGroup,{}),name:"Clients",path:"/admin/clients"},{icon:jsxRuntimeExports.jsx(SvgCalenderLine,{}),name:"Calendar",path:"/calendar"},{icon:jsxRuntimeExports.jsx(SvgList,{}),name:"Support Ticket",path:"/support-ticket"},{icon:jsxRuntimeExports.jsx(SvgUserCircle,{}),name:"Profile",path:"/profile"}],othersItems=[],AppSidebar=()=>{const{isExpanded:ln,isMobileOpen:rn,isHovered:an,setIsHovered:sn}=useSidebar(),on=useLocation(),[cn,un]=reactExports.useState(null),[pn,fn]=reactExports.useState({}),mn=reactExports.useRef({}),xn=reactExports.useCallback(wn=>on.pathname===wn,[on.pathname]);reactExports.useEffect(()=>{let wn=!1;["main","others"].forEach(An=>{(An==="main"?navItems:othersItems).forEach((kn,Mn)=>{kn.subItems&&kn.subItems.forEach(Tn=>{xn(Tn.path)&&(un({type:An,index:Mn}),wn=!0)})})}),wn||un(null)},[on,xn]),reactExports.useEffect(()=>{if(cn!==null){const wn=`${cn.type}-${cn.index}`;mn.current[wn]&&fn(An=>{var Cn;return{...An,[wn]:((Cn=mn.current[wn])==null?void 0:Cn.scrollHeight)||0}})}},[cn]);const vn=(wn,An)=>{un(Cn=>Cn&&Cn.type===An&&Cn.index===wn?null:{type:An,index:wn})},yn=(wn,An)=>jsxRuntimeExports.jsx("ul",{className:"flex flex-col gap-4",children:wn.map((Cn,kn)=>jsxRuntimeExports.jsxs("li",{children:[Cn.subItems?jsxRuntimeExports.jsxs("button",{onClick:()=>vn(kn,An),className:`menu-item group ${(cn==null?void 0:cn.type)===An&&(cn==null?void 0:cn.index)===kn?"menu-item-active":"menu-item-inactive"} cursor-pointer ${!ln&&!an?"lg:justify-center":"lg:justify-start"}`,children:[jsxRuntimeExports.jsx("span",{className:`menu-item-icon-size  ${(cn==null?void 0:cn.type)===An&&(cn==null?void 0:cn.index)===kn?"menu-item-icon-active":"menu-item-icon-inactive"}`,children:Cn.icon}),(ln||an||rn)&&jsxRuntimeExports.jsx("span",{className:"menu-item-text",children:Cn.name}),(ln||an||rn)&&jsxRuntimeExports.jsx(SvgChevronDown,{className:`ml-auto w-5 h-5 transition-transform duration-200 ${(cn==null?void 0:cn.type)===An&&(cn==null?void 0:cn.index)===kn?"rotate-180 text-brand-500":""}`})]}):Cn.path&&jsxRuntimeExports.jsxs(Link,{to:Cn.path,className:`menu-item group ${xn(Cn.path)?"menu-item-active":"menu-item-inactive"}`,children:[jsxRuntimeExports.jsx("span",{className:`menu-item-icon-size ${xn(Cn.path)?"menu-item-icon-active":"menu-item-icon-inactive"}`,children:Cn.icon}),(ln||an||rn)&&jsxRuntimeExports.jsx("span",{className:"menu-item-text",children:Cn.name})]}),Cn.subItems&&(ln||an||rn)&&jsxRuntimeExports.jsx("div",{ref:Mn=>{mn.current[`${An}-${kn}`]=Mn},className:"overflow-hidden transition-all duration-300",style:{height:(cn==null?void 0:cn.type)===An&&(cn==null?void 0:cn.index)===kn?`${pn[`${An}-${kn}`]}px`:"0px"},children:jsxRuntimeExports.jsx("ul",{className:"mt-2 space-y-1 ml-9",children:Cn.subItems.map(Mn=>jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs(Link,{to:Mn.path,className:`menu-dropdown-item ${xn(Mn.path)?"menu-dropdown-item-active":"menu-dropdown-item-inactive"}`,children:[Mn.name,jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-1 ml-auto",children:[Mn.new&&jsxRuntimeExports.jsx("span",{className:`ml-auto ${xn(Mn.path)?"menu-dropdown-badge-active":"menu-dropdown-badge-inactive"} menu-dropdown-badge`,children:"new"}),Mn.pro&&jsxRuntimeExports.jsx("span",{className:`ml-auto ${xn(Mn.path)?"menu-dropdown-badge-active":"menu-dropdown-badge-inactive"} menu-dropdown-badge`,children:"pro"})]})]})},Mn.name))})})]},Cn.name))});return jsxRuntimeExports.jsxs("aside",{className:`fixed mt-16 flex flex-col lg:mt-0 top-0 px-5 left-0 bg-white dark:bg-gray-900 dark:border-gray-800 text-gray-900 h-screen transition-all duration-300 ease-in-out z-50 border-r border-gray-200 
        ${ln||rn||an?"w-[290px]":"w-[90px]"}
        ${rn?"translate-x-0":"-translate-x-full"}
        lg:translate-x-0`,onMouseEnter:()=>!ln&&sn(!0),onMouseLeave:()=>sn(!1),children:[jsxRuntimeExports.jsx("div",{className:`py-8 flex ${!ln&&!an?"lg:justify-center":"justify-start"}`,children:jsxRuntimeExports.jsx(Link,{to:"/",children:ln||an||rn?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("img",{className:"dark:hidden",src:"/images/logo/logo.svg",alt:"Logo",width:150,height:40}),jsxRuntimeExports.jsx("img",{className:"hidden dark:block",src:"/images/logo/logo-dark.svg",alt:"Logo",width:150,height:40})]}):jsxRuntimeExports.jsx("img",{src:"/images/logo/logo-icon.svg",alt:"Logo",width:32,height:32})})}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col overflow-y-auto duration-300 ease-linear no-scrollbar",children:[jsxRuntimeExports.jsx("nav",{className:"mb-6",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-4",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{className:`mb-4 text-xs uppercase flex leading-[20px] text-gray-400 ${!ln&&!an?"lg:justify-center":"justify-start"}`,children:ln||an||rn?"Menu":jsxRuntimeExports.jsx(SvgHorizontalDots,{className:"size-6"})}),yn(navItems,"main")]}),jsxRuntimeExports.jsxs("div",{className:"",children:[jsxRuntimeExports.jsx("h2",{className:`mb-4 text-xs uppercase flex leading-[20px] text-gray-400 ${!ln&&!an?"lg:justify-center":"justify-start"}`,children:ln||an||rn?"Others":jsxRuntimeExports.jsx(SvgHorizontalDots,{})}),yn(othersItems,"others")]})]})}),ln||an||rn?jsxRuntimeExports.jsx(SidebarWidget,{}):null]})]})},LayoutContent=()=>{const{isExpanded:ln,isHovered:rn,isMobileOpen:an}=useSidebar();return jsxRuntimeExports.jsxs("div",{className:"min-h-screen xl:flex",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(AppSidebar,{}),jsxRuntimeExports.jsx(Backdrop,{})]}),jsxRuntimeExports.jsxs("div",{className:`flex-1 transition-all duration-300 ease-in-out ${ln||rn?"lg:ml-[290px]":"lg:ml-[90px]"} ${an?"ml-0":""}`,children:[jsxRuntimeExports.jsx(AppHeader,{}),jsxRuntimeExports.jsx("div",{className:"p-4 mx-auto max-w-(--breakpoint-2xl) md:p-6",children:jsxRuntimeExports.jsx(Outlet,{})})]})]})},AppLayout=()=>jsxRuntimeExports.jsx(SidebarProvider,{children:jsxRuntimeExports.jsx(LayoutContent,{})});function ScrollToTop(){const{pathname:ln}=useLocation();return reactExports.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[ln]),null}function EcommerceMetrics(){return jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 md:gap-6",children:[jsxRuntimeExports.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 dark:border-gray-800 dark:bg-white/[0.03] md:p-6",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center justify-center w-12 h-12 bg-gray-100 rounded-xl dark:bg-gray-800",children:jsxRuntimeExports.jsx(SvgGroup,{className:"text-gray-800 size-6 dark:text-white/90"})}),jsxRuntimeExports.jsxs("div",{className:"flex items-end justify-between mt-5",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Total Clients"}),jsxRuntimeExports.jsx("h4",{className:"mt-2 font-bold text-gray-800 text-title-sm dark:text-white/90",children:"156"})]}),jsxRuntimeExports.jsxs(Badge,{color:"success",children:[jsxRuntimeExports.jsx(SvgArrowUp,{}),"12%"]})]})]}),jsxRuntimeExports.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 dark:border-gray-800 dark:bg-white/[0.03] md:p-6",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center justify-center w-12 h-12 bg-gray-100 rounded-xl dark:bg-gray-800",children:jsxRuntimeExports.jsx(SvgBoxLine,{className:"text-gray-800 size-6 dark:text-white/90"})}),jsxRuntimeExports.jsxs("div",{className:"flex items-end justify-between mt-5",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Active Users"}),jsxRuntimeExports.jsx("h4",{className:"mt-2 font-bold text-gray-800 text-title-sm dark:text-white/90",children:"2,847"})]}),jsxRuntimeExports.jsxs(Badge,{color:"success",children:[jsxRuntimeExports.jsx(SvgArrowUp,{}),"8%"]})]})]})]})}function MonthlySalesChart(){const ln={colors:["#465fff"],chart:{fontFamily:"Outfit, sans-serif",type:"bar",height:180,toolbar:{show:!1}},plotOptions:{bar:{horizontal:!1,columnWidth:"39%",borderRadius:5,borderRadiusApplication:"end"}},dataLabels:{enabled:!1},stroke:{show:!0,width:4,colors:["transparent"]},xaxis:{categories:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],axisBorder:{show:!1},axisTicks:{show:!1}},legend:{show:!0,position:"top",horizontalAlign:"left",fontFamily:"Outfit"},yaxis:{title:{text:void 0}},grid:{yaxis:{lines:{show:!0}}},fill:{opacity:1},tooltip:{x:{show:!1},y:{formatter:un=>`${un}`}}},rn=[{name:"Sales",data:[168,385,201,298,187,195,291,110,215,390,280,112]}],[an,sn]=reactExports.useState(!1);function on(){sn(!an)}function cn(){sn(!1)}return jsxRuntimeExports.jsxs("div",{className:"overflow-hidden rounded-2xl border border-gray-200 bg-white px-5 pt-5 dark:border-gray-800 dark:bg-white/[0.03] sm:px-6 sm:pt-6",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsx("h3",{className:"text-lg font-semibold text-gray-800 dark:text-white/90",children:"Monthly Sales"}),jsxRuntimeExports.jsxs("div",{className:"relative inline-block",children:[jsxRuntimeExports.jsx("button",{className:"dropdown-toggle",onClick:on,children:jsxRuntimeExports.jsx(SvgMoredot,{className:"text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 size-6"})}),jsxRuntimeExports.jsxs(Dropdown,{isOpen:an,onClose:cn,className:"w-40 p-2",children:[jsxRuntimeExports.jsx(DropdownItem,{onItemClick:cn,className:"flex w-full font-normal text-left text-gray-500 rounded-lg hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-gray-300",children:"View More"}),jsxRuntimeExports.jsx(DropdownItem,{onItemClick:cn,className:"flex w-full font-normal text-left text-gray-500 rounded-lg hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-gray-300",children:"Delete"})]})]})]}),jsxRuntimeExports.jsx("div",{className:"max-w-full overflow-x-auto custom-scrollbar",children:jsxRuntimeExports.jsx("div",{className:"-ml-5 min-w-[650px] xl:min-w-full pl-2",children:jsxRuntimeExports.jsx(Chart,{options:ln,series:rn,type:"bar",height:180})})})]})}const ChartTab=()=>{const[ln,rn]=reactExports.useState("optionOne"),an=sn=>ln===sn?"shadow-theme-xs text-gray-900 dark:text-white bg-white dark:bg-gray-800":"text-gray-500 dark:text-gray-400";return jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-0.5 rounded-lg bg-gray-100 p-0.5 dark:bg-gray-900",children:[jsxRuntimeExports.jsx("button",{onClick:()=>rn("optionOne"),className:`px-3 py-2 font-medium w-full rounded-md text-theme-sm hover:text-gray-900   dark:hover:text-white ${an("optionOne")}`,children:"Monthly"}),jsxRuntimeExports.jsx("button",{onClick:()=>rn("optionTwo"),className:`px-3 py-2 font-medium w-full rounded-md text-theme-sm hover:text-gray-900   dark:hover:text-white ${an("optionTwo")}`,children:"Quarterly"}),jsxRuntimeExports.jsx("button",{onClick:()=>rn("optionThree"),className:`px-3 py-2 font-medium w-full rounded-md text-theme-sm hover:text-gray-900   dark:hover:text-white ${an("optionThree")}`,children:"Annually"})]})};function StatisticsChart(){const ln=reactExports.useRef(null);reactExports.useEffect(()=>{if(!ln.current)return;const sn=new Date,on=new Date;on.setDate(sn.getDate()-6);const cn=flatpickr(ln.current,{mode:"range",static:!0,monthSelectorType:"static",dateFormat:"M d",defaultDate:[on,sn],clickOpens:!0,prevArrow:'<svg class="stroke-current" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.5 15L7.5 10L12.5 5" stroke="" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',nextArrow:'<svg class="stroke-current" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 15L12.5 10L7.5 5" stroke="" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>'});return()=>{Array.isArray(cn)||cn.destroy()}},[]);const rn={legend:{show:!1,position:"top",horizontalAlign:"left"},colors:["#465FFF","#9CB9FF"],chart:{fontFamily:"Outfit, sans-serif",height:310,type:"line",toolbar:{show:!1}},stroke:{curve:"straight",width:[2,2]},fill:{type:"gradient",gradient:{opacityFrom:.55,opacityTo:0}},markers:{size:0,strokeColors:"#fff",strokeWidth:2,hover:{size:6}},grid:{xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}}},dataLabels:{enabled:!1},tooltip:{enabled:!0,x:{format:"dd MMM yyyy"}},xaxis:{type:"category",categories:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],axisBorder:{show:!1},axisTicks:{show:!1},tooltip:{enabled:!1}},yaxis:{labels:{style:{fontSize:"12px",colors:["#6B7280"]}},title:{text:"",style:{fontSize:"0px"}}}},an=[{name:"Sales",data:[180,190,170,160,175,165,170,205,230,210,240,235]},{name:"Revenue",data:[40,30,50,40,55,40,70,100,110,120,150,140]}];return jsxRuntimeExports.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white px-5 pb-5 pt-5 dark:border-gray-800 dark:bg-white/[0.03] sm:px-6 sm:pt-6",children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-5 mb-6 sm:flex-row sm:justify-between",children:[jsxRuntimeExports.jsxs("div",{className:"w-full",children:[jsxRuntimeExports.jsx("h3",{className:"text-lg font-semibold text-gray-800 dark:text-white/90",children:"Statistics"}),jsxRuntimeExports.jsx("p",{className:"mt-1 text-gray-500 text-theme-sm dark:text-gray-400",children:"Target you've set for each month"})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 sm:justify-end",children:[jsxRuntimeExports.jsx(ChartTab,{}),jsxRuntimeExports.jsxs("div",{className:"relative inline-flex items-center",children:[jsxRuntimeExports.jsx(SvgCalenderLine,{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 lg:left-3 lg:top-1/2 lg:translate-x-0 lg:-translate-y-1/2 size-5 text-gray-500 dark:text-gray-400 pointer-events-none z-10"}),jsxRuntimeExports.jsx("input",{ref:ln,className:"h-10 w-10 lg:w-40 lg:h-auto  lg:pl-10 lg:pr-3 lg:py-2 rounded-lg border border-gray-200 bg-white text-sm font-medium text-transparent lg:text-gray-700 outline-none dark:border-gray-700 dark:bg-gray-800 dark:lg:text-gray-300 cursor-pointer",placeholder:"Select date range"})]})]})]}),jsxRuntimeExports.jsx("div",{className:"max-w-full overflow-x-auto custom-scrollbar",children:jsxRuntimeExports.jsx("div",{className:"min-w-[1000px] xl:min-w-full",children:jsxRuntimeExports.jsx(Chart,{options:rn,series:an,type:"area",height:310})})})]})}function MonthlyTarget(){const ln=[75.55],rn={colors:["#465FFF"],chart:{fontFamily:"Outfit, sans-serif",type:"radialBar",height:330,sparkline:{enabled:!0}},plotOptions:{radialBar:{startAngle:-85,endAngle:85,hollow:{size:"80%"},track:{background:"#E4E7EC",strokeWidth:"100%",margin:5},dataLabels:{name:{show:!1},value:{fontSize:"36px",fontWeight:"600",offsetY:-40,color:"#1D2939",formatter:function(un){return un+"%"}}}}},fill:{type:"solid",colors:["#465FFF"]},stroke:{lineCap:"round"},labels:["Progress"]},[an,sn]=reactExports.useState(!1);function on(){sn(!an)}function cn(){sn(!1)}return jsxRuntimeExports.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-gray-100 dark:border-gray-800 dark:bg-white/[0.03]",children:[jsxRuntimeExports.jsxs("div",{className:"px-5 pt-5 bg-white shadow-default rounded-2xl pb-11 dark:bg-gray-900 sm:px-6 sm:pt-6",children:[jsxRuntimeExports.jsxs("div",{className:"flex justify-between",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{className:"text-lg font-semibold text-gray-800 dark:text-white/90",children:"Monthly Target"}),jsxRuntimeExports.jsx("p",{className:"mt-1 text-gray-500 text-theme-sm dark:text-gray-400",children:"Target you’ve set for each month"})]}),jsxRuntimeExports.jsxs("div",{className:"relative inline-block",children:[jsxRuntimeExports.jsx("button",{className:"dropdown-toggle",onClick:on,children:jsxRuntimeExports.jsx(SvgMoredot,{className:"text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 size-6"})}),jsxRuntimeExports.jsxs(Dropdown,{isOpen:an,onClose:cn,className:"w-40 p-2",children:[jsxRuntimeExports.jsx(DropdownItem,{onItemClick:cn,className:"flex w-full font-normal text-left text-gray-500 rounded-lg hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-gray-300",children:"View More"}),jsxRuntimeExports.jsx(DropdownItem,{onItemClick:cn,className:"flex w-full font-normal text-left text-gray-500 rounded-lg hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-gray-300",children:"Delete"})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"relative ",children:[jsxRuntimeExports.jsx("div",{className:"max-h-[330px]",id:"chartDarkStyle",children:jsxRuntimeExports.jsx(Chart,{options:rn,series:ln,type:"radialBar",height:330})}),jsxRuntimeExports.jsx("span",{className:"absolute left-1/2 top-full -translate-x-1/2 -translate-y-[95%] rounded-full bg-success-50 px-3 py-1 text-xs font-medium text-success-600 dark:bg-success-500/15 dark:text-success-500",children:"+10%"})]}),jsxRuntimeExports.jsx("p",{className:"mx-auto mt-10 w-full max-w-[380px] text-center text-sm text-gray-500 sm:text-base",children:"You earn $3287 today, it's higher than last month. Keep up your good work!"})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center gap-5 px-6 py-3.5 sm:gap-8 sm:py-5",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"mb-1 text-center text-gray-500 text-theme-xs dark:text-gray-400 sm:text-sm",children:"Target"}),jsxRuntimeExports.jsxs("p",{className:"flex items-center justify-center gap-1 text-base font-semibold text-gray-800 dark:text-white/90 sm:text-lg",children:["$20K",jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.26816 13.6632C7.4056 13.8192 7.60686 13.9176 7.8311 13.9176C7.83148 13.9176 7.83187 13.9176 7.83226 13.9176C8.02445 13.9178 8.21671 13.8447 8.36339 13.6981L12.3635 9.70076C12.6565 9.40797 12.6567 8.9331 12.3639 8.6401C12.0711 8.34711 11.5962 8.34694 11.3032 8.63973L8.5811 11.36L8.5811 2.5C8.5811 2.08579 8.24531 1.75 7.8311 1.75C7.41688 1.75 7.0811 2.08579 7.0811 2.5L7.0811 11.3556L4.36354 8.63975C4.07055 8.34695 3.59568 8.3471 3.30288 8.64009C3.01008 8.93307 3.01023 9.40794 3.30321 9.70075L7.26816 13.6632Z",fill:"#D92D20"})})]})]}),jsxRuntimeExports.jsx("div",{className:"w-px bg-gray-200 h-7 dark:bg-gray-800"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"mb-1 text-center text-gray-500 text-theme-xs dark:text-gray-400 sm:text-sm",children:"Revenue"}),jsxRuntimeExports.jsxs("p",{className:"flex items-center justify-center gap-1 text-base font-semibold text-gray-800 dark:text-white/90 sm:text-lg",children:["$20K",jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.60141 2.33683C7.73885 2.18084 7.9401 2.08243 8.16435 2.08243C8.16475 2.08243 8.16516 2.08243 8.16556 2.08243C8.35773 2.08219 8.54998 2.15535 8.69664 2.30191L12.6968 6.29924C12.9898 6.59203 12.9899 7.0669 12.6971 7.3599C12.4044 7.6529 11.9295 7.65306 11.6365 7.36027L8.91435 4.64004L8.91435 13.5C8.91435 13.9142 8.57856 14.25 8.16435 14.25C7.75013 14.25 7.41435 13.9142 7.41435 13.5L7.41435 4.64442L4.69679 7.36025C4.4038 7.65305 3.92893 7.6529 3.63613 7.35992C3.34333 7.06693 3.34348 6.59206 3.63646 6.29926L7.60141 2.33683Z",fill:"#039855"})})]})]}),jsxRuntimeExports.jsx("div",{className:"w-px bg-gray-200 h-7 dark:bg-gray-800"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"mb-1 text-center text-gray-500 text-theme-xs dark:text-gray-400 sm:text-sm",children:"Today"}),jsxRuntimeExports.jsxs("p",{className:"flex items-center justify-center gap-1 text-base font-semibold text-gray-800 dark:text-white/90 sm:text-lg",children:["$20K",jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.60141 2.33683C7.73885 2.18084 7.9401 2.08243 8.16435 2.08243C8.16475 2.08243 8.16516 2.08243 8.16556 2.08243C8.35773 2.08219 8.54998 2.15535 8.69664 2.30191L12.6968 6.29924C12.9898 6.59203 12.9899 7.0669 12.6971 7.3599C12.4044 7.6529 11.9295 7.65306 11.6365 7.36027L8.91435 4.64004L8.91435 13.5C8.91435 13.9142 8.57856 14.25 8.16435 14.25C7.75013 14.25 7.41435 13.9142 7.41435 13.5L7.41435 4.64442L4.69679 7.36025C4.4038 7.65305 3.92893 7.6529 3.63613 7.35992C3.34333 7.06693 3.34348 6.59206 3.63646 6.29926L7.60141 2.33683Z",fill:"#039855"})})]})]})]})]})}const tableData=[{id:1,name:"Acme Corporation",email:"contact@acme.com",plan:"Enterprise",users:45,status:"Active",joinedDate:"2024-01-15"},{id:2,name:"TechStart Inc",email:"info@techstart.com",plan:"Business",users:32,status:"Active",joinedDate:"2024-02-20"},{id:3,name:"Global Solutions",email:"hello@global.com",plan:"Starter",users:18,status:"Inactive",joinedDate:"2024-03-10"},{id:4,name:"Digital Ventures",email:"team@digital.com",plan:"Enterprise",users:67,status:"Active",joinedDate:"2024-01-28"},{id:5,name:"Innovation Labs",email:"contact@innovation.com",plan:"Business",users:23,status:"Active",joinedDate:"2024-02-05"}];function RecentOrders(){return jsxRuntimeExports.jsxs("div",{className:"overflow-hidden rounded-2xl border border-gray-200 bg-white px-4 pb-3 pt-4 dark:border-gray-800 dark:bg-white/[0.03] sm:px-6",children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-2 mb-4 sm:flex-row sm:items-center sm:justify-between",children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("h3",{className:"text-lg font-semibold text-gray-800 dark:text-white/90",children:"Recent Clients"})}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsxs("button",{className:"inline-flex items-center gap-2 rounded-lg border border-gray-300 bg-white px-4 py-2.5 text-theme-sm font-medium text-gray-700 shadow-theme-xs hover:bg-gray-50 hover:text-gray-800 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/[0.03] dark:hover:text-gray-200",children:[jsxRuntimeExports.jsxs("svg",{className:"stroke-current fill-white dark:fill-gray-800",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M2.29004 5.90393H17.7067",stroke:"",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{d:"M17.7075 14.0961H2.29085",stroke:"",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{d:"M12.0826 3.33331C13.5024 3.33331 14.6534 4.48431 14.6534 5.90414C14.6534 7.32398 13.5024 8.47498 12.0826 8.47498C10.6627 8.47498 9.51172 7.32398 9.51172 5.90415C9.51172 4.48432 10.6627 3.33331 12.0826 3.33331Z",fill:"",stroke:"",strokeWidth:"1.5"}),jsxRuntimeExports.jsx("path",{d:"M7.91745 11.525C6.49762 11.525 5.34662 12.676 5.34662 14.0959C5.34661 15.5157 6.49762 16.6667 7.91745 16.6667C9.33728 16.6667 10.4883 15.5157 10.4883 14.0959C10.4883 12.676 9.33728 11.525 7.91745 11.525Z",fill:"",stroke:"",strokeWidth:"1.5"})]}),"Filter"]}),jsxRuntimeExports.jsx("button",{className:"inline-flex items-center gap-2 rounded-lg border border-gray-300 bg-white px-4 py-2.5 text-theme-sm font-medium text-gray-700 shadow-theme-xs hover:bg-gray-50 hover:text-gray-800 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/[0.03] dark:hover:text-gray-200",children:"See all"})]})]}),jsxRuntimeExports.jsx("div",{className:"max-w-full overflow-x-auto",children:jsxRuntimeExports.jsxs(Table,{children:[jsxRuntimeExports.jsx(TableHeader,{className:"border-gray-100 dark:border-gray-800 border-y",children:jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{isHeader:!0,className:"py-3 font-medium text-gray-500 text-start text-theme-xs dark:text-gray-400",children:"Client Name"}),jsxRuntimeExports.jsx(TableCell,{isHeader:!0,className:"py-3 font-medium text-gray-500 text-start text-theme-xs dark:text-gray-400",children:"Email"}),jsxRuntimeExports.jsx(TableCell,{isHeader:!0,className:"py-3 font-medium text-gray-500 text-start text-theme-xs dark:text-gray-400",children:"Plan"}),jsxRuntimeExports.jsx(TableCell,{isHeader:!0,className:"py-3 font-medium text-gray-500 text-start text-theme-xs dark:text-gray-400",children:"Users"}),jsxRuntimeExports.jsx(TableCell,{isHeader:!0,className:"py-3 font-medium text-gray-500 text-start text-theme-xs dark:text-gray-400",children:"Status"})]})}),jsxRuntimeExports.jsx(TableBody,{className:"divide-y divide-gray-100 dark:divide-gray-800",children:tableData.map(ln=>jsxRuntimeExports.jsxs(TableRow,{className:"",children:[jsxRuntimeExports.jsx(TableCell,{className:"py-3",children:jsxRuntimeExports.jsx("p",{className:"font-medium text-gray-800 text-theme-sm dark:text-white/90",children:ln.name})}),jsxRuntimeExports.jsx(TableCell,{className:"py-3 text-gray-500 text-theme-sm dark:text-gray-400",children:ln.email}),jsxRuntimeExports.jsx(TableCell,{className:"py-3 text-gray-500 text-theme-sm dark:text-gray-400",children:ln.plan}),jsxRuntimeExports.jsx(TableCell,{className:"py-3 text-gray-500 text-theme-sm dark:text-gray-400",children:ln.users}),jsxRuntimeExports.jsx(TableCell,{className:"py-3 text-gray-500 text-theme-sm dark:text-gray-400",children:jsxRuntimeExports.jsx(Badge,{size:"sm",color:ln.status==="Active"?"success":"error",children:ln.status})})]},ln.id))})]})})]})}var dist={exports:{}},jquery$1={exports:{}};/*!
 * jQuery JavaScript Library v3.7.1
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-08-28T13:37Z
 */var jquery=jquery$1.exports,hasRequiredJquery;function requireJquery(){return hasRequiredJquery||(hasRequiredJquery=1,function(ln){(function(rn,an){ln.exports=rn.document?an(rn,!0):function(sn){if(!sn.document)throw new Error("jQuery requires a window with a document");return an(sn)}})(typeof window<"u"?window:jquery,function(rn,an){var sn=[],on=Object.getPrototypeOf,cn=sn.slice,un=sn.flat?function(En){return sn.flat.call(En)}:function(En){return sn.concat.apply([],En)},pn=sn.push,fn=sn.indexOf,mn={},xn=mn.toString,vn=mn.hasOwnProperty,yn=vn.toString,wn=yn.call(Object),An={},Cn=function(Rn){return typeof Rn=="function"&&typeof Rn.nodeType!="number"&&typeof Rn.item!="function"},kn=function(Rn){return Rn!=null&&Rn===Rn.window},Mn=rn.document,Tn={type:!0,src:!0,nonce:!0,noModule:!0};function On(En,Rn,Dn){Dn=Dn||Mn;var Ln,Hn,zn=Dn.createElement("script");if(zn.text=En,Rn)for(Ln in Tn)Hn=Rn[Ln]||Rn.getAttribute&&Rn.getAttribute(Ln),Hn&&zn.setAttribute(Ln,Hn);Dn.head.appendChild(zn).parentNode.removeChild(zn)}function Pn(En){return En==null?En+"":typeof En=="object"||typeof En=="function"?mn[xn.call(En)]||"object":typeof En}var Nn="3.7.1",In=/HTML$/i,jn=function(En,Rn){return new jn.fn.init(En,Rn)};jn.fn=jn.prototype={jquery:Nn,constructor:jn,length:0,toArray:function(){return cn.call(this)},get:function(En){return En==null?cn.call(this):En<0?this[En+this.length]:this[En]},pushStack:function(En){var Rn=jn.merge(this.constructor(),En);return Rn.prevObject=this,Rn},each:function(En){return jn.each(this,En)},map:function(En){return this.pushStack(jn.map(this,function(Rn,Dn){return En.call(Rn,Dn,Rn)}))},slice:function(){return this.pushStack(cn.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(jn.grep(this,function(En,Rn){return(Rn+1)%2}))},odd:function(){return this.pushStack(jn.grep(this,function(En,Rn){return Rn%2}))},eq:function(En){var Rn=this.length,Dn=+En+(En<0?Rn:0);return this.pushStack(Dn>=0&&Dn<Rn?[this[Dn]]:[])},end:function(){return this.prevObject||this.constructor()},push:pn,sort:sn.sort,splice:sn.splice},jn.extend=jn.fn.extend=function(){var En,Rn,Dn,Ln,Hn,zn,$n=arguments[0]||{},Jn=1,Zn=arguments.length,lr=!1;for(typeof $n=="boolean"&&(lr=$n,$n=arguments[Jn]||{},Jn++),typeof $n!="object"&&!Cn($n)&&($n={}),Jn===Zn&&($n=this,Jn--);Jn<Zn;Jn++)if((En=arguments[Jn])!=null)for(Rn in En)Ln=En[Rn],!(Rn==="__proto__"||$n===Ln)&&(lr&&Ln&&(jn.isPlainObject(Ln)||(Hn=Array.isArray(Ln)))?(Dn=$n[Rn],Hn&&!Array.isArray(Dn)?zn=[]:!Hn&&!jn.isPlainObject(Dn)?zn={}:zn=Dn,Hn=!1,$n[Rn]=jn.extend(lr,zn,Ln)):Ln!==void 0&&($n[Rn]=Ln));return $n},jn.extend({expando:"jQuery"+(Nn+Math.random()).replace(/\D/g,""),isReady:!0,error:function(En){throw new Error(En)},noop:function(){},isPlainObject:function(En){var Rn,Dn;return!En||xn.call(En)!=="[object Object]"?!1:(Rn=on(En),Rn?(Dn=vn.call(Rn,"constructor")&&Rn.constructor,typeof Dn=="function"&&yn.call(Dn)===wn):!0)},isEmptyObject:function(En){var Rn;for(Rn in En)return!1;return!0},globalEval:function(En,Rn,Dn){On(En,{nonce:Rn&&Rn.nonce},Dn)},each:function(En,Rn){var Dn,Ln=0;if(Fn(En))for(Dn=En.length;Ln<Dn&&Rn.call(En[Ln],Ln,En[Ln])!==!1;Ln++);else for(Ln in En)if(Rn.call(En[Ln],Ln,En[Ln])===!1)break;return En},text:function(En){var Rn,Dn="",Ln=0,Hn=En.nodeType;if(!Hn)for(;Rn=En[Ln++];)Dn+=jn.text(Rn);return Hn===1||Hn===11?En.textContent:Hn===9?En.documentElement.textContent:Hn===3||Hn===4?En.nodeValue:Dn},makeArray:function(En,Rn){var Dn=Rn||[];return En!=null&&(Fn(Object(En))?jn.merge(Dn,typeof En=="string"?[En]:En):pn.call(Dn,En)),Dn},inArray:function(En,Rn,Dn){return Rn==null?-1:fn.call(Rn,En,Dn)},isXMLDoc:function(En){var Rn=En&&En.namespaceURI,Dn=En&&(En.ownerDocument||En).documentElement;return!In.test(Rn||Dn&&Dn.nodeName||"HTML")},merge:function(En,Rn){for(var Dn=+Rn.length,Ln=0,Hn=En.length;Ln<Dn;Ln++)En[Hn++]=Rn[Ln];return En.length=Hn,En},grep:function(En,Rn,Dn){for(var Ln,Hn=[],zn=0,$n=En.length,Jn=!Dn;zn<$n;zn++)Ln=!Rn(En[zn],zn),Ln!==Jn&&Hn.push(En[zn]);return Hn},map:function(En,Rn,Dn){var Ln,Hn,zn=0,$n=[];if(Fn(En))for(Ln=En.length;zn<Ln;zn++)Hn=Rn(En[zn],zn,Dn),Hn!=null&&$n.push(Hn);else for(zn in En)Hn=Rn(En[zn],zn,Dn),Hn!=null&&$n.push(Hn);return un($n)},guid:1,support:An}),typeof Symbol=="function"&&(jn.fn[Symbol.iterator]=sn[Symbol.iterator]),jn.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(En,Rn){mn["[object "+Rn+"]"]=Rn.toLowerCase()});function Fn(En){var Rn=!!En&&"length"in En&&En.length,Dn=Pn(En);return Cn(En)||kn(En)?!1:Dn==="array"||Rn===0||typeof Rn=="number"&&Rn>0&&Rn-1 in En}function Un(En,Rn){return En.nodeName&&En.nodeName.toLowerCase()===Rn.toLowerCase()}var Yn=sn.pop,Qn=sn.sort,ir=sn.splice,er="[\\x20\\t\\r\\n\\f]",tr=new RegExp("^"+er+"+|((?:^|[^\\\\])(?:\\\\.)*)"+er+"+$","g");jn.contains=function(En,Rn){var Dn=Rn&&Rn.parentNode;return En===Dn||!!(Dn&&Dn.nodeType===1&&(En.contains?En.contains(Dn):En.compareDocumentPosition&&En.compareDocumentPosition(Dn)&16))};var vr=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function rr(En,Rn){return Rn?En==="\0"?"�":En.slice(0,-1)+"\\"+En.charCodeAt(En.length-1).toString(16)+" ":"\\"+En}jn.escapeSelector=function(En){return(En+"").replace(vr,rr)};var fr=Mn,ur=pn;(function(){var En,Rn,Dn,Ln,Hn,zn=ur,$n,Jn,Zn,lr,yr,jr=jn.expando,mr=0,Dr=0,gs=qo(),Rs=qo(),ws=qo(),gl=qo(),ul=function(Gn,nr){return Gn===nr&&(Hn=!0),0},lo="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",oo="(?:\\\\[\\da-fA-F]{1,6}"+er+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Cs="\\["+er+"*("+oo+")(?:"+er+"*([*^$|!~]?=)"+er+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+oo+"))|)"+er+"*\\]",sc=":("+oo+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Cs+")*)|.*)\\)|)",Ms=new RegExp(er+"+","g"),Ks=new RegExp("^"+er+"*,"+er+"*"),lc=new RegExp("^"+er+"*([>+~]|"+er+")"+er+"*"),oc=new RegExp(er+"|>"),co=new RegExp(sc),Lc=new RegExp("^"+oo+"$"),Zl={ID:new RegExp("^#("+oo+")"),CLASS:new RegExp("^\\.("+oo+")"),TAG:new RegExp("^("+oo+"|[*])"),ATTR:new RegExp("^"+Cs),PSEUDO:new RegExp("^"+sc),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+er+"*(even|odd|(([+-]|)(\\d*)n|)"+er+"*(?:([+-]|)"+er+"*(\\d+)|))"+er+"*\\)|)","i"),bool:new RegExp("^(?:"+lo+")$","i"),needsContext:new RegExp("^"+er+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+er+"*((?:-\\d)?\\d*)"+er+"*\\)|)(?=[^-]|$)","i")},So=/^(?:input|select|textarea|button)$/i,Ro=/^h\d$/i,Bl=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Yo=/[+~]/,ko=new RegExp("\\\\[\\da-fA-F]{1,6}"+er+"?|\\\\([^\\r\\n\\f])","g"),_o=function(Gn,nr){var pr="0x"+Gn.slice(1)-65536;return nr||(pr<0?String.fromCharCode(pr+65536):String.fromCharCode(pr>>10|55296,pr&1023|56320))},Sp=function(){To()},bh=$u(function(Gn){return Gn.disabled===!0&&Un(Gn,"fieldset")},{dir:"parentNode",next:"legend"});function yh(){try{return $n.activeElement}catch{}}try{zn.apply(sn=cn.call(fr.childNodes),fr.childNodes),sn[fr.childNodes.length].nodeType}catch{zn={apply:function(nr,pr){ur.apply(nr,cn.call(pr))},call:function(nr){ur.apply(nr,cn.call(arguments,1))}}}function Ds(Gn,nr,pr,gr){var Ar,Or,zr,qr,Br,bs,Jr,xs=nr&&nr.ownerDocument,vs=nr?nr.nodeType:9;if(pr=pr||[],typeof Gn!="string"||!Gn||vs!==1&&vs!==9&&vs!==11)return pr;if(!gr&&(To(nr),nr=nr||$n,Zn)){if(vs!==11&&(Br=Bl.exec(Gn)))if(Ar=Br[1]){if(vs===9)if(zr=nr.getElementById(Ar)){if(zr.id===Ar)return zn.call(pr,zr),pr}else return pr;else if(xs&&(zr=xs.getElementById(Ar))&&Ds.contains(nr,zr)&&zr.id===Ar)return zn.call(pr,zr),pr}else{if(Br[2])return zn.apply(pr,nr.getElementsByTagName(Gn)),pr;if((Ar=Br[3])&&nr.getElementsByClassName)return zn.apply(pr,nr.getElementsByClassName(Ar)),pr}if(!gl[Gn+" "]&&(!lr||!lr.test(Gn))){if(Jr=Gn,xs=nr,vs===1&&(oc.test(Gn)||lc.test(Gn))){for(xs=Yo.test(Gn)&&zu(nr.parentNode)||nr,(xs!=nr||!An.scope)&&((qr=nr.getAttribute("id"))?qr=jn.escapeSelector(qr):nr.setAttribute("id",qr=jr)),bs=hu(Gn),Or=bs.length;Or--;)bs[Or]=(qr?"#"+qr:":scope")+" "+Fu(bs[Or]);Jr=bs.join(",")}try{return zn.apply(pr,xs.querySelectorAll(Jr)),pr}catch{gl(Gn,!0)}finally{qr===jr&&nr.removeAttribute("id")}}}return _d(Gn.replace(tr,"$1"),nr,pr,gr)}function qo(){var Gn=[];function nr(pr,gr){return Gn.push(pr+" ")>Rn.cacheLength&&delete nr[Gn.shift()],nr[pr+" "]=gr}return nr}function Kl(Gn){return Gn[jr]=!0,Gn}function Mo(Gn){var nr=$n.createElement("fieldset");try{return!!Gn(nr)}catch{return!1}finally{nr.parentNode&&nr.parentNode.removeChild(nr),nr=null}}function wh(Gn){return function(nr){return Un(nr,"input")&&nr.type===Gn}}function Eh(Gn){return function(nr){return(Un(nr,"input")||Un(nr,"button"))&&nr.type===Gn}}function Hu(Gn){return function(nr){return"form"in nr?nr.parentNode&&nr.disabled===!1?"label"in nr?"label"in nr.parentNode?nr.parentNode.disabled===Gn:nr.disabled===Gn:nr.isDisabled===Gn||nr.isDisabled!==!Gn&&bh(nr)===Gn:nr.disabled===Gn:"label"in nr?nr.disabled===Gn:!1}}function Do(Gn){return Kl(function(nr){return nr=+nr,Kl(function(pr,gr){for(var Ar,Or=Gn([],pr.length,nr),zr=Or.length;zr--;)pr[Ar=Or[zr]]&&(pr[Ar]=!(gr[Ar]=pr[Ar]))})})}function zu(Gn){return Gn&&typeof Gn.getElementsByTagName<"u"&&Gn}function To(Gn){var nr,pr=Gn?Gn.ownerDocument||Gn:fr;return pr==$n||pr.nodeType!==9||!pr.documentElement||($n=pr,Jn=$n.documentElement,Zn=!jn.isXMLDoc($n),yr=Jn.matches||Jn.webkitMatchesSelector||Jn.msMatchesSelector,Jn.msMatchesSelector&&fr!=$n&&(nr=$n.defaultView)&&nr.top!==nr&&nr.addEventListener("unload",Sp),An.getById=Mo(function(gr){return Jn.appendChild(gr).id=jn.expando,!$n.getElementsByName||!$n.getElementsByName(jn.expando).length}),An.disconnectedMatch=Mo(function(gr){return yr.call(gr,"*")}),An.scope=Mo(function(){return $n.querySelectorAll(":scope")}),An.cssHas=Mo(function(){try{return $n.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),An.getById?(Rn.filter.ID=function(gr){var Ar=gr.replace(ko,_o);return function(Or){return Or.getAttribute("id")===Ar}},Rn.find.ID=function(gr,Ar){if(typeof Ar.getElementById<"u"&&Zn){var Or=Ar.getElementById(gr);return Or?[Or]:[]}}):(Rn.filter.ID=function(gr){var Ar=gr.replace(ko,_o);return function(Or){var zr=typeof Or.getAttributeNode<"u"&&Or.getAttributeNode("id");return zr&&zr.value===Ar}},Rn.find.ID=function(gr,Ar){if(typeof Ar.getElementById<"u"&&Zn){var Or,zr,qr,Br=Ar.getElementById(gr);if(Br){if(Or=Br.getAttributeNode("id"),Or&&Or.value===gr)return[Br];for(qr=Ar.getElementsByName(gr),zr=0;Br=qr[zr++];)if(Or=Br.getAttributeNode("id"),Or&&Or.value===gr)return[Br]}return[]}}),Rn.find.TAG=function(gr,Ar){return typeof Ar.getElementsByTagName<"u"?Ar.getElementsByTagName(gr):Ar.querySelectorAll(gr)},Rn.find.CLASS=function(gr,Ar){if(typeof Ar.getElementsByClassName<"u"&&Zn)return Ar.getElementsByClassName(gr)},lr=[],Mo(function(gr){var Ar;Jn.appendChild(gr).innerHTML="<a id='"+jr+"' href='' disabled='disabled'></a><select id='"+jr+"-\r\\' disabled='disabled'><option selected=''></option></select>",gr.querySelectorAll("[selected]").length||lr.push("\\["+er+"*(?:value|"+lo+")"),gr.querySelectorAll("[id~="+jr+"-]").length||lr.push("~="),gr.querySelectorAll("a#"+jr+"+*").length||lr.push(".#.+[+~]"),gr.querySelectorAll(":checked").length||lr.push(":checked"),Ar=$n.createElement("input"),Ar.setAttribute("type","hidden"),gr.appendChild(Ar).setAttribute("name","D"),Jn.appendChild(gr).disabled=!0,gr.querySelectorAll(":disabled").length!==2&&lr.push(":enabled",":disabled"),Ar=$n.createElement("input"),Ar.setAttribute("name",""),gr.appendChild(Ar),gr.querySelectorAll("[name='']").length||lr.push("\\["+er+"*name"+er+"*="+er+`*(?:''|"")`)}),An.cssHas||lr.push(":has"),lr=lr.length&&new RegExp(lr.join("|")),ul=function(gr,Ar){if(gr===Ar)return Hn=!0,0;var Or=!gr.compareDocumentPosition-!Ar.compareDocumentPosition;return Or||(Or=(gr.ownerDocument||gr)==(Ar.ownerDocument||Ar)?gr.compareDocumentPosition(Ar):1,Or&1||!An.sortDetached&&Ar.compareDocumentPosition(gr)===Or?gr===$n||gr.ownerDocument==fr&&Ds.contains(fr,gr)?-1:Ar===$n||Ar.ownerDocument==fr&&Ds.contains(fr,Ar)?1:Ln?fn.call(Ln,gr)-fn.call(Ln,Ar):0:Or&4?-1:1)}),$n}Ds.matches=function(Gn,nr){return Ds(Gn,null,null,nr)},Ds.matchesSelector=function(Gn,nr){if(To(Gn),Zn&&!gl[nr+" "]&&(!lr||!lr.test(nr)))try{var pr=yr.call(Gn,nr);if(pr||An.disconnectedMatch||Gn.document&&Gn.document.nodeType!==11)return pr}catch{gl(nr,!0)}return Ds(nr,$n,null,[Gn]).length>0},Ds.contains=function(Gn,nr){return(Gn.ownerDocument||Gn)!=$n&&To(Gn),jn.contains(Gn,nr)},Ds.attr=function(Gn,nr){(Gn.ownerDocument||Gn)!=$n&&To(Gn);var pr=Rn.attrHandle[nr.toLowerCase()],gr=pr&&vn.call(Rn.attrHandle,nr.toLowerCase())?pr(Gn,nr,!Zn):void 0;return gr!==void 0?gr:Gn.getAttribute(nr)},Ds.error=function(Gn){throw new Error("Syntax error, unrecognized expression: "+Gn)},jn.uniqueSort=function(Gn){var nr,pr=[],gr=0,Ar=0;if(Hn=!An.sortStable,Ln=!An.sortStable&&cn.call(Gn,0),Qn.call(Gn,ul),Hn){for(;nr=Gn[Ar++];)nr===Gn[Ar]&&(gr=pr.push(Ar));for(;gr--;)ir.call(Gn,pr[gr],1)}return Ln=null,Gn},jn.fn.uniqueSort=function(){return this.pushStack(jn.uniqueSort(cn.apply(this)))},Rn=jn.expr={cacheLength:50,createPseudo:Kl,match:Zl,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(Gn){return Gn[1]=Gn[1].replace(ko,_o),Gn[3]=(Gn[3]||Gn[4]||Gn[5]||"").replace(ko,_o),Gn[2]==="~="&&(Gn[3]=" "+Gn[3]+" "),Gn.slice(0,4)},CHILD:function(Gn){return Gn[1]=Gn[1].toLowerCase(),Gn[1].slice(0,3)==="nth"?(Gn[3]||Ds.error(Gn[0]),Gn[4]=+(Gn[4]?Gn[5]+(Gn[6]||1):2*(Gn[3]==="even"||Gn[3]==="odd")),Gn[5]=+(Gn[7]+Gn[8]||Gn[3]==="odd")):Gn[3]&&Ds.error(Gn[0]),Gn},PSEUDO:function(Gn){var nr,pr=!Gn[6]&&Gn[2];return Zl.CHILD.test(Gn[0])?null:(Gn[3]?Gn[2]=Gn[4]||Gn[5]||"":pr&&co.test(pr)&&(nr=hu(pr,!0))&&(nr=pr.indexOf(")",pr.length-nr)-pr.length)&&(Gn[0]=Gn[0].slice(0,nr),Gn[2]=pr.slice(0,nr)),Gn.slice(0,3))}},filter:{TAG:function(Gn){var nr=Gn.replace(ko,_o).toLowerCase();return Gn==="*"?function(){return!0}:function(pr){return Un(pr,nr)}},CLASS:function(Gn){var nr=gs[Gn+" "];return nr||(nr=new RegExp("(^|"+er+")"+Gn+"("+er+"|$)"))&&gs(Gn,function(pr){return nr.test(typeof pr.className=="string"&&pr.className||typeof pr.getAttribute<"u"&&pr.getAttribute("class")||"")})},ATTR:function(Gn,nr,pr){return function(gr){var Ar=Ds.attr(gr,Gn);return Ar==null?nr==="!=":nr?(Ar+="",nr==="="?Ar===pr:nr==="!="?Ar!==pr:nr==="^="?pr&&Ar.indexOf(pr)===0:nr==="*="?pr&&Ar.indexOf(pr)>-1:nr==="$="?pr&&Ar.slice(-pr.length)===pr:nr==="~="?(" "+Ar.replace(Ms," ")+" ").indexOf(pr)>-1:nr==="|="?Ar===pr||Ar.slice(0,pr.length+1)===pr+"-":!1):!0}},CHILD:function(Gn,nr,pr,gr,Ar){var Or=Gn.slice(0,3)!=="nth",zr=Gn.slice(-4)!=="last",qr=nr==="of-type";return gr===1&&Ar===0?function(Br){return!!Br.parentNode}:function(Br,bs,Jr){var xs,vs,Qr,Hs,_l,Al=Or!==zr?"nextSibling":"previousSibling",Yl=Br.parentNode,uo=qr&&Br.nodeName.toLowerCase(),uc=!Jr&&!qr,Cl=!1;if(Yl){if(Or){for(;Al;){for(Qr=Br;Qr=Qr[Al];)if(qr?Un(Qr,uo):Qr.nodeType===1)return!1;_l=Al=Gn==="only"&&!_l&&"nextSibling"}return!0}if(_l=[zr?Yl.firstChild:Yl.lastChild],zr&&uc){for(vs=Yl[jr]||(Yl[jr]={}),xs=vs[Gn]||[],Hs=xs[0]===mr&&xs[1],Cl=Hs&&xs[2],Qr=Hs&&Yl.childNodes[Hs];Qr=++Hs&&Qr&&Qr[Al]||(Cl=Hs=0)||_l.pop();)if(Qr.nodeType===1&&++Cl&&Qr===Br){vs[Gn]=[mr,Hs,Cl];break}}else if(uc&&(vs=Br[jr]||(Br[jr]={}),xs=vs[Gn]||[],Hs=xs[0]===mr&&xs[1],Cl=Hs),Cl===!1)for(;(Qr=++Hs&&Qr&&Qr[Al]||(Cl=Hs=0)||_l.pop())&&!((qr?Un(Qr,uo):Qr.nodeType===1)&&++Cl&&(uc&&(vs=Qr[jr]||(Qr[jr]={}),vs[Gn]=[mr,Cl]),Qr===Br)););return Cl-=Ar,Cl===gr||Cl%gr===0&&Cl/gr>=0}}},PSEUDO:function(Gn,nr){var pr,gr=Rn.pseudos[Gn]||Rn.setFilters[Gn.toLowerCase()]||Ds.error("unsupported pseudo: "+Gn);return gr[jr]?gr(nr):gr.length>1?(pr=[Gn,Gn,"",nr],Rn.setFilters.hasOwnProperty(Gn.toLowerCase())?Kl(function(Ar,Or){for(var zr,qr=gr(Ar,nr),Br=qr.length;Br--;)zr=fn.call(Ar,qr[Br]),Ar[zr]=!(Or[zr]=qr[Br])}):function(Ar){return gr(Ar,0,pr)}):gr}},pseudos:{not:Kl(function(Gn){var nr=[],pr=[],gr=Vu(Gn.replace(tr,"$1"));return gr[jr]?Kl(function(Ar,Or,zr,qr){for(var Br,bs=gr(Ar,null,qr,[]),Jr=Ar.length;Jr--;)(Br=bs[Jr])&&(Ar[Jr]=!(Or[Jr]=Br))}):function(Ar,Or,zr){return nr[0]=Ar,gr(nr,null,zr,pr),nr[0]=null,!pr.pop()}}),has:Kl(function(Gn){return function(nr){return Ds(Gn,nr).length>0}}),contains:Kl(function(Gn){return Gn=Gn.replace(ko,_o),function(nr){return(nr.textContent||jn.text(nr)).indexOf(Gn)>-1}}),lang:Kl(function(Gn){return Lc.test(Gn||"")||Ds.error("unsupported lang: "+Gn),Gn=Gn.replace(ko,_o).toLowerCase(),function(nr){var pr;do if(pr=Zn?nr.lang:nr.getAttribute("xml:lang")||nr.getAttribute("lang"))return pr=pr.toLowerCase(),pr===Gn||pr.indexOf(Gn+"-")===0;while((nr=nr.parentNode)&&nr.nodeType===1);return!1}}),target:function(Gn){var nr=rn.location&&rn.location.hash;return nr&&nr.slice(1)===Gn.id},root:function(Gn){return Gn===Jn},focus:function(Gn){return Gn===yh()&&$n.hasFocus()&&!!(Gn.type||Gn.href||~Gn.tabIndex)},enabled:Hu(!1),disabled:Hu(!0),checked:function(Gn){return Un(Gn,"input")&&!!Gn.checked||Un(Gn,"option")&&!!Gn.selected},selected:function(Gn){return Gn.parentNode&&Gn.parentNode.selectedIndex,Gn.selected===!0},empty:function(Gn){for(Gn=Gn.firstChild;Gn;Gn=Gn.nextSibling)if(Gn.nodeType<6)return!1;return!0},parent:function(Gn){return!Rn.pseudos.empty(Gn)},header:function(Gn){return Ro.test(Gn.nodeName)},input:function(Gn){return So.test(Gn.nodeName)},button:function(Gn){return Un(Gn,"input")&&Gn.type==="button"||Un(Gn,"button")},text:function(Gn){var nr;return Un(Gn,"input")&&Gn.type==="text"&&((nr=Gn.getAttribute("type"))==null||nr.toLowerCase()==="text")},first:Do(function(){return[0]}),last:Do(function(Gn,nr){return[nr-1]}),eq:Do(function(Gn,nr,pr){return[pr<0?pr+nr:pr]}),even:Do(function(Gn,nr){for(var pr=0;pr<nr;pr+=2)Gn.push(pr);return Gn}),odd:Do(function(Gn,nr){for(var pr=1;pr<nr;pr+=2)Gn.push(pr);return Gn}),lt:Do(function(Gn,nr,pr){var gr;for(pr<0?gr=pr+nr:pr>nr?gr=nr:gr=pr;--gr>=0;)Gn.push(gr);return Gn}),gt:Do(function(Gn,nr,pr){for(var gr=pr<0?pr+nr:pr;++gr<nr;)Gn.push(gr);return Gn})}},Rn.pseudos.nth=Rn.pseudos.eq;for(En in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Rn.pseudos[En]=wh(En);for(En in{submit:!0,reset:!0})Rn.pseudos[En]=Eh(En);function Rd(){}Rd.prototype=Rn.filters=Rn.pseudos,Rn.setFilters=new Rd;function hu(Gn,nr){var pr,gr,Ar,Or,zr,qr,Br,bs=Rs[Gn+" "];if(bs)return nr?0:bs.slice(0);for(zr=Gn,qr=[],Br=Rn.preFilter;zr;){(!pr||(gr=Ks.exec(zr)))&&(gr&&(zr=zr.slice(gr[0].length)||zr),qr.push(Ar=[])),pr=!1,(gr=lc.exec(zr))&&(pr=gr.shift(),Ar.push({value:pr,type:gr[0].replace(tr," ")}),zr=zr.slice(pr.length));for(Or in Rn.filter)(gr=Zl[Or].exec(zr))&&(!Br[Or]||(gr=Br[Or](gr)))&&(pr=gr.shift(),Ar.push({value:pr,type:Or,matches:gr}),zr=zr.slice(pr.length));if(!pr)break}return nr?zr.length:zr?Ds.error(Gn):Rs(Gn,qr).slice(0)}function Fu(Gn){for(var nr=0,pr=Gn.length,gr="";nr<pr;nr++)gr+=Gn[nr].value;return gr}function $u(Gn,nr,pr){var gr=nr.dir,Ar=nr.next,Or=Ar||gr,zr=pr&&Or==="parentNode",qr=Dr++;return nr.first?function(Br,bs,Jr){for(;Br=Br[gr];)if(Br.nodeType===1||zr)return Gn(Br,bs,Jr);return!1}:function(Br,bs,Jr){var xs,vs,Qr=[mr,qr];if(Jr){for(;Br=Br[gr];)if((Br.nodeType===1||zr)&&Gn(Br,bs,Jr))return!0}else for(;Br=Br[gr];)if(Br.nodeType===1||zr)if(vs=Br[jr]||(Br[jr]={}),Ar&&Un(Br,Ar))Br=Br[gr]||Br;else{if((xs=vs[Or])&&xs[0]===mr&&xs[1]===qr)return Qr[2]=xs[2];if(vs[Or]=Qr,Qr[2]=Gn(Br,bs,Jr))return!0}return!1}}function kd(Gn){return Gn.length>1?function(nr,pr,gr){for(var Ar=Gn.length;Ar--;)if(!Gn[Ar](nr,pr,gr))return!1;return!0}:Gn[0]}function Rp(Gn,nr,pr){for(var gr=0,Ar=nr.length;gr<Ar;gr++)Ds(Gn,nr[gr],pr);return pr}function El(Gn,nr,pr,gr,Ar){for(var Or,zr=[],qr=0,Br=Gn.length,bs=nr!=null;qr<Br;qr++)(Or=Gn[qr])&&(!pr||pr(Or,gr,Ar))&&(zr.push(Or),bs&&nr.push(qr));return zr}function cc(Gn,nr,pr,gr,Ar,Or){return gr&&!gr[jr]&&(gr=cc(gr)),Ar&&!Ar[jr]&&(Ar=cc(Ar,Or)),Kl(function(zr,qr,Br,bs){var Jr,xs,vs,Qr,Hs=[],_l=[],Al=qr.length,Yl=zr||Rp(nr||"*",Br.nodeType?[Br]:Br,[]),uo=Gn&&(zr||!nr)?El(Yl,Hs,Gn,Br,bs):Yl;if(pr?(Qr=Ar||(zr?Gn:Al||gr)?[]:qr,pr(uo,Qr,Br,bs)):Qr=uo,gr)for(Jr=El(Qr,_l),gr(Jr,[],Br,bs),xs=Jr.length;xs--;)(vs=Jr[xs])&&(Qr[_l[xs]]=!(uo[_l[xs]]=vs));if(zr){if(Ar||Gn){if(Ar){for(Jr=[],xs=Qr.length;xs--;)(vs=Qr[xs])&&Jr.push(uo[xs]=vs);Ar(null,Qr=[],Jr,bs)}for(xs=Qr.length;xs--;)(vs=Qr[xs])&&(Jr=Ar?fn.call(zr,vs):Hs[xs])>-1&&(zr[Jr]=!(qr[Jr]=vs))}}else Qr=El(Qr===qr?Qr.splice(Al,Qr.length):Qr),Ar?Ar(null,qr,Qr,bs):zn.apply(qr,Qr)})}function Uu(Gn){for(var nr,pr,gr,Ar=Gn.length,Or=Rn.relative[Gn[0].type],zr=Or||Rn.relative[" "],qr=Or?1:0,Br=$u(function(xs){return xs===nr},zr,!0),bs=$u(function(xs){return fn.call(nr,xs)>-1},zr,!0),Jr=[function(xs,vs,Qr){var Hs=!Or&&(Qr||vs!=Dn)||((nr=vs).nodeType?Br(xs,vs,Qr):bs(xs,vs,Qr));return nr=null,Hs}];qr<Ar;qr++)if(pr=Rn.relative[Gn[qr].type])Jr=[$u(kd(Jr),pr)];else{if(pr=Rn.filter[Gn[qr].type].apply(null,Gn[qr].matches),pr[jr]){for(gr=++qr;gr<Ar&&!Rn.relative[Gn[gr].type];gr++);return cc(qr>1&&kd(Jr),qr>1&&Fu(Gn.slice(0,qr-1).concat({value:Gn[qr-2].type===" "?"*":""})).replace(tr,"$1"),pr,qr<gr&&Uu(Gn.slice(qr,gr)),gr<Ar&&Uu(Gn=Gn.slice(gr)),gr<Ar&&Fu(Gn))}Jr.push(pr)}return kd(Jr)}function Ah(Gn,nr){var pr=nr.length>0,gr=Gn.length>0,Ar=function(Or,zr,qr,Br,bs){var Jr,xs,vs,Qr=0,Hs="0",_l=Or&&[],Al=[],Yl=Dn,uo=Or||gr&&Rn.find.TAG("*",bs),uc=mr+=Yl==null?1:Math.random()||.1,Cl=uo.length;for(bs&&(Dn=zr==$n||zr||bs);Hs!==Cl&&(Jr=uo[Hs])!=null;Hs++){if(gr&&Jr){for(xs=0,!zr&&Jr.ownerDocument!=$n&&(To(Jr),qr=!Zn);vs=Gn[xs++];)if(vs(Jr,zr||$n,qr)){zn.call(Br,Jr);break}bs&&(mr=uc)}pr&&((Jr=!vs&&Jr)&&Qr--,Or&&_l.push(Jr))}if(Qr+=Hs,pr&&Hs!==Qr){for(xs=0;vs=nr[xs++];)vs(_l,Al,zr,qr);if(Or){if(Qr>0)for(;Hs--;)_l[Hs]||Al[Hs]||(Al[Hs]=Yn.call(Br));Al=El(Al)}zn.apply(Br,Al),bs&&!Or&&Al.length>0&&Qr+nr.length>1&&jn.uniqueSort(Br)}return bs&&(mr=uc,Dn=Yl),_l};return pr?Kl(Ar):Ar}function Vu(Gn,nr){var pr,gr=[],Ar=[],Or=ws[Gn+" "];if(!Or){for(nr||(nr=hu(Gn)),pr=nr.length;pr--;)Or=Uu(nr[pr]),Or[jr]?gr.push(Or):Ar.push(Or);Or=ws(Gn,Ah(Ar,gr)),Or.selector=Gn}return Or}function _d(Gn,nr,pr,gr){var Ar,Or,zr,qr,Br,bs=typeof Gn=="function"&&Gn,Jr=!gr&&hu(Gn=bs.selector||Gn);if(pr=pr||[],Jr.length===1){if(Or=Jr[0]=Jr[0].slice(0),Or.length>2&&(zr=Or[0]).type==="ID"&&nr.nodeType===9&&Zn&&Rn.relative[Or[1].type]){if(nr=(Rn.find.ID(zr.matches[0].replace(ko,_o),nr)||[])[0],nr)bs&&(nr=nr.parentNode);else return pr;Gn=Gn.slice(Or.shift().value.length)}for(Ar=Zl.needsContext.test(Gn)?0:Or.length;Ar--&&(zr=Or[Ar],!Rn.relative[qr=zr.type]);)if((Br=Rn.find[qr])&&(gr=Br(zr.matches[0].replace(ko,_o),Yo.test(Or[0].type)&&zu(nr.parentNode)||nr))){if(Or.splice(Ar,1),Gn=gr.length&&Fu(Or),!Gn)return zn.apply(pr,gr),pr;break}}return(bs||Vu(Gn,Jr))(gr,nr,!Zn,pr,!nr||Yo.test(Gn)&&zu(nr.parentNode)||nr),pr}An.sortStable=jr.split("").sort(ul).join("")===jr,To(),An.sortDetached=Mo(function(Gn){return Gn.compareDocumentPosition($n.createElement("fieldset"))&1}),jn.find=Ds,jn.expr[":"]=jn.expr.pseudos,jn.unique=jn.uniqueSort,Ds.compile=Vu,Ds.select=_d,Ds.setDocument=To,Ds.tokenize=hu,Ds.escape=jn.escapeSelector,Ds.getText=jn.text,Ds.isXML=jn.isXMLDoc,Ds.selectors=jn.expr,Ds.support=jn.support,Ds.uniqueSort=jn.uniqueSort})();var wr=function(En,Rn,Dn){for(var Ln=[],Hn=Dn!==void 0;(En=En[Rn])&&En.nodeType!==9;)if(En.nodeType===1){if(Hn&&jn(En).is(Dn))break;Ln.push(En)}return Ln},Xn=function(En,Rn){for(var Dn=[];En;En=En.nextSibling)En.nodeType===1&&En!==Rn&&Dn.push(En);return Dn},cr=jn.expr.match.needsContext,_r=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Nr(En,Rn,Dn){return Cn(Rn)?jn.grep(En,function(Ln,Hn){return!!Rn.call(Ln,Hn,Ln)!==Dn}):Rn.nodeType?jn.grep(En,function(Ln){return Ln===Rn!==Dn}):typeof Rn!="string"?jn.grep(En,function(Ln){return fn.call(Rn,Ln)>-1!==Dn}):jn.filter(Rn,En,Dn)}jn.filter=function(En,Rn,Dn){var Ln=Rn[0];return Dn&&(En=":not("+En+")"),Rn.length===1&&Ln.nodeType===1?jn.find.matchesSelector(Ln,En)?[Ln]:[]:jn.find.matches(En,jn.grep(Rn,function(Hn){return Hn.nodeType===1}))},jn.fn.extend({find:function(En){var Rn,Dn,Ln=this.length,Hn=this;if(typeof En!="string")return this.pushStack(jn(En).filter(function(){for(Rn=0;Rn<Ln;Rn++)if(jn.contains(Hn[Rn],this))return!0}));for(Dn=this.pushStack([]),Rn=0;Rn<Ln;Rn++)jn.find(En,Hn[Rn],Dn);return Ln>1?jn.uniqueSort(Dn):Dn},filter:function(En){return this.pushStack(Nr(this,En||[],!1))},not:function(En){return this.pushStack(Nr(this,En||[],!0))},is:function(En){return!!Nr(this,typeof En=="string"&&cr.test(En)?jn(En):En||[],!1).length}});var Er,Fr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Tr=jn.fn.init=function(En,Rn,Dn){var Ln,Hn;if(!En)return this;if(Dn=Dn||Er,typeof En=="string")if(En[0]==="<"&&En[En.length-1]===">"&&En.length>=3?Ln=[null,En,null]:Ln=Fr.exec(En),Ln&&(Ln[1]||!Rn))if(Ln[1]){if(Rn=Rn instanceof jn?Rn[0]:Rn,jn.merge(this,jn.parseHTML(Ln[1],Rn&&Rn.nodeType?Rn.ownerDocument||Rn:Mn,!0)),_r.test(Ln[1])&&jn.isPlainObject(Rn))for(Ln in Rn)Cn(this[Ln])?this[Ln](Rn[Ln]):this.attr(Ln,Rn[Ln]);return this}else return Hn=Mn.getElementById(Ln[2]),Hn&&(this[0]=Hn,this.length=1),this;else return!Rn||Rn.jquery?(Rn||Dn).find(En):this.constructor(Rn).find(En);else{if(En.nodeType)return this[0]=En,this.length=1,this;if(Cn(En))return Dn.ready!==void 0?Dn.ready(En):En(jn)}return jn.makeArray(En,this)};Tr.prototype=jn.fn,Er=jn(Mn);var Vr=/^(?:parents|prev(?:Until|All))/,Pr={children:!0,contents:!0,next:!0,prev:!0};jn.fn.extend({has:function(En){var Rn=jn(En,this),Dn=Rn.length;return this.filter(function(){for(var Ln=0;Ln<Dn;Ln++)if(jn.contains(this,Rn[Ln]))return!0})},closest:function(En,Rn){var Dn,Ln=0,Hn=this.length,zn=[],$n=typeof En!="string"&&jn(En);if(!cr.test(En)){for(;Ln<Hn;Ln++)for(Dn=this[Ln];Dn&&Dn!==Rn;Dn=Dn.parentNode)if(Dn.nodeType<11&&($n?$n.index(Dn)>-1:Dn.nodeType===1&&jn.find.matchesSelector(Dn,En))){zn.push(Dn);break}}return this.pushStack(zn.length>1?jn.uniqueSort(zn):zn)},index:function(En){return En?typeof En=="string"?fn.call(jn(En),this[0]):fn.call(this,En.jquery?En[0]:En):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(En,Rn){return this.pushStack(jn.uniqueSort(jn.merge(this.get(),jn(En,Rn))))},addBack:function(En){return this.add(En==null?this.prevObject:this.prevObject.filter(En))}});function Xr(En,Rn){for(;(En=En[Rn])&&En.nodeType!==1;);return En}jn.each({parent:function(En){var Rn=En.parentNode;return Rn&&Rn.nodeType!==11?Rn:null},parents:function(En){return wr(En,"parentNode")},parentsUntil:function(En,Rn,Dn){return wr(En,"parentNode",Dn)},next:function(En){return Xr(En,"nextSibling")},prev:function(En){return Xr(En,"previousSibling")},nextAll:function(En){return wr(En,"nextSibling")},prevAll:function(En){return wr(En,"previousSibling")},nextUntil:function(En,Rn,Dn){return wr(En,"nextSibling",Dn)},prevUntil:function(En,Rn,Dn){return wr(En,"previousSibling",Dn)},siblings:function(En){return Xn((En.parentNode||{}).firstChild,En)},children:function(En){return Xn(En.firstChild)},contents:function(En){return En.contentDocument!=null&&on(En.contentDocument)?En.contentDocument:(Un(En,"template")&&(En=En.content||En),jn.merge([],En.childNodes))}},function(En,Rn){jn.fn[En]=function(Dn,Ln){var Hn=jn.map(this,Rn,Dn);return En.slice(-5)!=="Until"&&(Ln=Dn),Ln&&typeof Ln=="string"&&(Hn=jn.filter(Ln,Hn)),this.length>1&&(Pr[En]||jn.uniqueSort(Hn),Vr.test(En)&&Hn.reverse()),this.pushStack(Hn)}});var Wr=/[^\x20\t\r\n\f]+/g;function Ss(En){var Rn={};return jn.each(En.match(Wr)||[],function(Dn,Ln){Rn[Ln]=!0}),Rn}jn.Callbacks=function(En){En=typeof En=="string"?Ss(En):jn.extend({},En);var Rn,Dn,Ln,Hn,zn=[],$n=[],Jn=-1,Zn=function(){for(Hn=Hn||En.once,Ln=Rn=!0;$n.length;Jn=-1)for(Dn=$n.shift();++Jn<zn.length;)zn[Jn].apply(Dn[0],Dn[1])===!1&&En.stopOnFalse&&(Jn=zn.length,Dn=!1);En.memory||(Dn=!1),Rn=!1,Hn&&(Dn?zn=[]:zn="")},lr={add:function(){return zn&&(Dn&&!Rn&&(Jn=zn.length-1,$n.push(Dn)),function yr(jr){jn.each(jr,function(mr,Dr){Cn(Dr)?(!En.unique||!lr.has(Dr))&&zn.push(Dr):Dr&&Dr.length&&Pn(Dr)!=="string"&&yr(Dr)})}(arguments),Dn&&!Rn&&Zn()),this},remove:function(){return jn.each(arguments,function(yr,jr){for(var mr;(mr=jn.inArray(jr,zn,mr))>-1;)zn.splice(mr,1),mr<=Jn&&Jn--}),this},has:function(yr){return yr?jn.inArray(yr,zn)>-1:zn.length>0},empty:function(){return zn&&(zn=[]),this},disable:function(){return Hn=$n=[],zn=Dn="",this},disabled:function(){return!zn},lock:function(){return Hn=$n=[],!Dn&&!Rn&&(zn=Dn=""),this},locked:function(){return!!Hn},fireWith:function(yr,jr){return Hn||(jr=jr||[],jr=[yr,jr.slice?jr.slice():jr],$n.push(jr),Rn||Zn()),this},fire:function(){return lr.fireWith(this,arguments),this},fired:function(){return!!Ln}};return lr};function Bs(En){return En}function Ns(En){throw En}function tl(En,Rn,Dn,Ln){var Hn;try{En&&Cn(Hn=En.promise)?Hn.call(En).done(Rn).fail(Dn):En&&Cn(Hn=En.then)?Hn.call(En,Rn,Dn):Rn.apply(void 0,[En].slice(Ln))}catch(zn){Dn.apply(void 0,[zn])}}jn.extend({Deferred:function(En){var Rn=[["notify","progress",jn.Callbacks("memory"),jn.Callbacks("memory"),2],["resolve","done",jn.Callbacks("once memory"),jn.Callbacks("once memory"),0,"resolved"],["reject","fail",jn.Callbacks("once memory"),jn.Callbacks("once memory"),1,"rejected"]],Dn="pending",Ln={state:function(){return Dn},always:function(){return Hn.done(arguments).fail(arguments),this},catch:function(zn){return Ln.then(null,zn)},pipe:function(){var zn=arguments;return jn.Deferred(function($n){jn.each(Rn,function(Jn,Zn){var lr=Cn(zn[Zn[4]])&&zn[Zn[4]];Hn[Zn[1]](function(){var yr=lr&&lr.apply(this,arguments);yr&&Cn(yr.promise)?yr.promise().progress($n.notify).done($n.resolve).fail($n.reject):$n[Zn[0]+"With"](this,lr?[yr]:arguments)})}),zn=null}).promise()},then:function(zn,$n,Jn){var Zn=0;function lr(yr,jr,mr,Dr){return function(){var gs=this,Rs=arguments,ws=function(){var ul,lo;if(!(yr<Zn)){if(ul=mr.apply(gs,Rs),ul===jr.promise())throw new TypeError("Thenable self-resolution");lo=ul&&(typeof ul=="object"||typeof ul=="function")&&ul.then,Cn(lo)?Dr?lo.call(ul,lr(Zn,jr,Bs,Dr),lr(Zn,jr,Ns,Dr)):(Zn++,lo.call(ul,lr(Zn,jr,Bs,Dr),lr(Zn,jr,Ns,Dr),lr(Zn,jr,Bs,jr.notifyWith))):(mr!==Bs&&(gs=void 0,Rs=[ul]),(Dr||jr.resolveWith)(gs,Rs))}},gl=Dr?ws:function(){try{ws()}catch(ul){jn.Deferred.exceptionHook&&jn.Deferred.exceptionHook(ul,gl.error),yr+1>=Zn&&(mr!==Ns&&(gs=void 0,Rs=[ul]),jr.rejectWith(gs,Rs))}};yr?gl():(jn.Deferred.getErrorHook?gl.error=jn.Deferred.getErrorHook():jn.Deferred.getStackHook&&(gl.error=jn.Deferred.getStackHook()),rn.setTimeout(gl))}}return jn.Deferred(function(yr){Rn[0][3].add(lr(0,yr,Cn(Jn)?Jn:Bs,yr.notifyWith)),Rn[1][3].add(lr(0,yr,Cn(zn)?zn:Bs)),Rn[2][3].add(lr(0,yr,Cn($n)?$n:Ns))}).promise()},promise:function(zn){return zn!=null?jn.extend(zn,Ln):Ln}},Hn={};return jn.each(Rn,function(zn,$n){var Jn=$n[2],Zn=$n[5];Ln[$n[1]]=Jn.add,Zn&&Jn.add(function(){Dn=Zn},Rn[3-zn][2].disable,Rn[3-zn][3].disable,Rn[0][2].lock,Rn[0][3].lock),Jn.add($n[3].fire),Hn[$n[0]]=function(){return Hn[$n[0]+"With"](this===Hn?void 0:this,arguments),this},Hn[$n[0]+"With"]=Jn.fireWith}),Ln.promise(Hn),En&&En.call(Hn,Hn),Hn},when:function(En){var Rn=arguments.length,Dn=Rn,Ln=Array(Dn),Hn=cn.call(arguments),zn=jn.Deferred(),$n=function(Jn){return function(Zn){Ln[Jn]=this,Hn[Jn]=arguments.length>1?cn.call(arguments):Zn,--Rn||zn.resolveWith(Ln,Hn)}};if(Rn<=1&&(tl(En,zn.done($n(Dn)).resolve,zn.reject,!Rn),zn.state()==="pending"||Cn(Hn[Dn]&&Hn[Dn].then)))return zn.then();for(;Dn--;)tl(Hn[Dn],$n(Dn),zn.reject);return zn.promise()}});var Fl=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;jn.Deferred.exceptionHook=function(En,Rn){rn.console&&rn.console.warn&&En&&Fl.test(En.name)&&rn.console.warn("jQuery.Deferred exception: "+En.message,En.stack,Rn)},jn.readyException=function(En){rn.setTimeout(function(){throw En})};var Ll=jn.Deferred();jn.fn.ready=function(En){return Ll.then(En).catch(function(Rn){jn.readyException(Rn)}),this},jn.extend({isReady:!1,readyWait:1,ready:function(En){(En===!0?--jn.readyWait:jn.isReady)||(jn.isReady=!0,!(En!==!0&&--jn.readyWait>0)&&Ll.resolveWith(Mn,[jn]))}}),jn.ready.then=Ll.then;function bl(){Mn.removeEventListener("DOMContentLoaded",bl),rn.removeEventListener("load",bl),jn.ready()}Mn.readyState==="complete"||Mn.readyState!=="loading"&&!Mn.documentElement.doScroll?rn.setTimeout(jn.ready):(Mn.addEventListener("DOMContentLoaded",bl),rn.addEventListener("load",bl));var sl=function(En,Rn,Dn,Ln,Hn,zn,$n){var Jn=0,Zn=En.length,lr=Dn==null;if(Pn(Dn)==="object"){Hn=!0;for(Jn in Dn)sl(En,Rn,Jn,Dn[Jn],!0,zn,$n)}else if(Ln!==void 0&&(Hn=!0,Cn(Ln)||($n=!0),lr&&($n?(Rn.call(En,Ln),Rn=null):(lr=Rn,Rn=function(yr,jr,mr){return lr.call(jn(yr),mr)})),Rn))for(;Jn<Zn;Jn++)Rn(En[Jn],Dn,$n?Ln:Ln.call(En[Jn],Jn,Rn(En[Jn],Dn)));return Hn?En:lr?Rn.call(En):Zn?Rn(En[0],Dn):zn},Ol=/^-ms-/,no=/-([a-z])/g;function Jo(En,Rn){return Rn.toUpperCase()}function kl(En){return En.replace(Ol,"ms-").replace(no,Jo)}var Xl=function(En){return En.nodeType===1||En.nodeType===9||!+En.nodeType};function Lr(){this.expando=jn.expando+Lr.uid++}Lr.uid=1,Lr.prototype={cache:function(En){var Rn=En[this.expando];return Rn||(Rn={},Xl(En)&&(En.nodeType?En[this.expando]=Rn:Object.defineProperty(En,this.expando,{value:Rn,configurable:!0}))),Rn},set:function(En,Rn,Dn){var Ln,Hn=this.cache(En);if(typeof Rn=="string")Hn[kl(Rn)]=Dn;else for(Ln in Rn)Hn[kl(Ln)]=Rn[Ln];return Hn},get:function(En,Rn){return Rn===void 0?this.cache(En):En[this.expando]&&En[this.expando][kl(Rn)]},access:function(En,Rn,Dn){return Rn===void 0||Rn&&typeof Rn=="string"&&Dn===void 0?this.get(En,Rn):(this.set(En,Rn,Dn),Dn!==void 0?Dn:Rn)},remove:function(En,Rn){var Dn,Ln=En[this.expando];if(Ln!==void 0){if(Rn!==void 0)for(Array.isArray(Rn)?Rn=Rn.map(kl):(Rn=kl(Rn),Rn=Rn in Ln?[Rn]:Rn.match(Wr)||[]),Dn=Rn.length;Dn--;)delete Ln[Rn[Dn]];(Rn===void 0||jn.isEmptyObject(Ln))&&(En.nodeType?En[this.expando]=void 0:delete En[this.expando])}},hasData:function(En){var Rn=En[this.expando];return Rn!==void 0&&!jn.isEmptyObject(Rn)}};var Rr=new Lr,Es=new Lr,Vs=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,nl=/[A-Z]/g;function ro(En){return En==="true"?!0:En==="false"?!1:En==="null"?null:En===+En+""?+En:Vs.test(En)?JSON.parse(En):En}function $l(En,Rn,Dn){var Ln;if(Dn===void 0&&En.nodeType===1)if(Ln="data-"+Rn.replace(nl,"-$&").toLowerCase(),Dn=En.getAttribute(Ln),typeof Dn=="string"){try{Dn=ro(Dn)}catch{}Es.set(En,Rn,Dn)}else Dn=void 0;return Dn}jn.extend({hasData:function(En){return Es.hasData(En)||Rr.hasData(En)},data:function(En,Rn,Dn){return Es.access(En,Rn,Dn)},removeData:function(En,Rn){Es.remove(En,Rn)},_data:function(En,Rn,Dn){return Rr.access(En,Rn,Dn)},_removeData:function(En,Rn){Rr.remove(En,Rn)}}),jn.fn.extend({data:function(En,Rn){var Dn,Ln,Hn,zn=this[0],$n=zn&&zn.attributes;if(En===void 0){if(this.length&&(Hn=Es.get(zn),zn.nodeType===1&&!Rr.get(zn,"hasDataAttrs"))){for(Dn=$n.length;Dn--;)$n[Dn]&&(Ln=$n[Dn].name,Ln.indexOf("data-")===0&&(Ln=kl(Ln.slice(5)),$l(zn,Ln,Hn[Ln])));Rr.set(zn,"hasDataAttrs",!0)}return Hn}return typeof En=="object"?this.each(function(){Es.set(this,En)}):sl(this,function(Jn){var Zn;if(zn&&Jn===void 0)return Zn=Es.get(zn,En),Zn!==void 0||(Zn=$l(zn,En),Zn!==void 0)?Zn:void 0;this.each(function(){Es.set(this,En,Jn)})},null,Rn,arguments.length>1,null,!0)},removeData:function(En){return this.each(function(){Es.remove(this,En)})}}),jn.extend({queue:function(En,Rn,Dn){var Ln;if(En)return Rn=(Rn||"fx")+"queue",Ln=Rr.get(En,Rn),Dn&&(!Ln||Array.isArray(Dn)?Ln=Rr.access(En,Rn,jn.makeArray(Dn)):Ln.push(Dn)),Ln||[]},dequeue:function(En,Rn){Rn=Rn||"fx";var Dn=jn.queue(En,Rn),Ln=Dn.length,Hn=Dn.shift(),zn=jn._queueHooks(En,Rn),$n=function(){jn.dequeue(En,Rn)};Hn==="inprogress"&&(Hn=Dn.shift(),Ln--),Hn&&(Rn==="fx"&&Dn.unshift("inprogress"),delete zn.stop,Hn.call(En,$n,zn)),!Ln&&zn&&zn.empty.fire()},_queueHooks:function(En,Rn){var Dn=Rn+"queueHooks";return Rr.get(En,Dn)||Rr.access(En,Dn,{empty:jn.Callbacks("once memory").add(function(){Rr.remove(En,[Rn+"queue",Dn])})})}}),jn.fn.extend({queue:function(En,Rn){var Dn=2;return typeof En!="string"&&(Rn=En,En="fx",Dn--),arguments.length<Dn?jn.queue(this[0],En):Rn===void 0?this:this.each(function(){var Ln=jn.queue(this,En,Rn);jn._queueHooks(this,En),En==="fx"&&Ln[0]!=="inprogress"&&jn.dequeue(this,En)})},dequeue:function(En){return this.each(function(){jn.dequeue(this,En)})},clearQueue:function(En){return this.queue(En||"fx",[])},promise:function(En,Rn){var Dn,Ln=1,Hn=jn.Deferred(),zn=this,$n=this.length,Jn=function(){--Ln||Hn.resolveWith(zn,[zn])};for(typeof En!="string"&&(Rn=En,En=void 0),En=En||"fx";$n--;)Dn=Rr.get(zn[$n],En+"queueHooks"),Dn&&Dn.empty&&(Ln++,Dn.empty.add(Jn));return Jn(),Hn.promise(Rn)}});var Po=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ul=new RegExp("^(?:([+-])=|)("+Po+")([a-z%]*)$","i"),ll=["Top","Right","Bottom","Left"],zs=Mn.documentElement,_s=function(En){return jn.contains(En.ownerDocument,En)},yl={composed:!0};zs.getRootNode&&(_s=function(En){return jn.contains(En.ownerDocument,En)||En.getRootNode(yl)===En.ownerDocument});var Ws=function(En,Rn){return En=Rn||En,En.style.display==="none"||En.style.display===""&&_s(En)&&jn.css(En,"display")==="none"};function Bo(En,Rn,Dn,Ln){var Hn,zn,$n=20,Jn=Ln?function(){return Ln.cur()}:function(){return jn.css(En,Rn,"")},Zn=Jn(),lr=Dn&&Dn[3]||(jn.cssNumber[Rn]?"":"px"),yr=En.nodeType&&(jn.cssNumber[Rn]||lr!=="px"&&+Zn)&&Ul.exec(jn.css(En,Rn));if(yr&&yr[3]!==lr){for(Zn=Zn/2,lr=lr||yr[3],yr=+Zn||1;$n--;)jn.style(En,Rn,yr+lr),(1-zn)*(1-(zn=Jn()/Zn||.5))<=0&&($n=0),yr=yr/zn;yr=yr*2,jn.style(En,Rn,yr+lr),Dn=Dn||[]}return Dn&&(yr=+yr||+Zn||0,Hn=Dn[1]?yr+(Dn[1]+1)*Dn[2]:+Dn[2],Ln&&(Ln.unit=lr,Ln.start=yr,Ln.end=Hn)),Hn}var Eo={};function tu(En){var Rn,Dn=En.ownerDocument,Ln=En.nodeName,Hn=Eo[Ln];return Hn||(Rn=Dn.body.appendChild(Dn.createElement(Ln)),Hn=jn.css(Rn,"display"),Rn.parentNode.removeChild(Rn),Hn==="none"&&(Hn="block"),Eo[Ln]=Hn,Hn)}function ol(En,Rn){for(var Dn,Ln,Hn=[],zn=0,$n=En.length;zn<$n;zn++)Ln=En[zn],Ln.style&&(Dn=Ln.style.display,Rn?(Dn==="none"&&(Hn[zn]=Rr.get(Ln,"display")||null,Hn[zn]||(Ln.style.display="")),Ln.style.display===""&&Ws(Ln)&&(Hn[zn]=tu(Ln))):Dn!=="none"&&(Hn[zn]="none",Rr.set(Ln,"display",Dn)));for(zn=0;zn<$n;zn++)Hn[zn]!=null&&(En[zn].style.display=Hn[zn]);return En}jn.fn.extend({show:function(){return ol(this,!0)},hide:function(){return ol(this)},toggle:function(En){return typeof En=="boolean"?En?this.show():this.hide():this.each(function(){Ws(this)?jn(this).show():jn(this).hide()})}});var ao=/^(?:checkbox|radio)$/i,io=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Wn=/^$|^module$|\/(?:java|ecma)script/i;(function(){var En=Mn.createDocumentFragment(),Rn=En.appendChild(Mn.createElement("div")),Dn=Mn.createElement("input");Dn.setAttribute("type","radio"),Dn.setAttribute("checked","checked"),Dn.setAttribute("name","t"),Rn.appendChild(Dn),An.checkClone=Rn.cloneNode(!0).cloneNode(!0).lastChild.checked,Rn.innerHTML="<textarea>x</textarea>",An.noCloneChecked=!!Rn.cloneNode(!0).lastChild.defaultValue,Rn.innerHTML="<option></option>",An.option=!!Rn.lastChild})();var qn={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};qn.tbody=qn.tfoot=qn.colgroup=qn.caption=qn.thead,qn.th=qn.td,An.option||(qn.optgroup=qn.option=[1,"<select multiple='multiple'>","</select>"]);function ar(En,Rn){var Dn;return typeof En.getElementsByTagName<"u"?Dn=En.getElementsByTagName(Rn||"*"):typeof En.querySelectorAll<"u"?Dn=En.querySelectorAll(Rn||"*"):Dn=[],Rn===void 0||Rn&&Un(En,Rn)?jn.merge([En],Dn):Dn}function br(En,Rn){for(var Dn=0,Ln=En.length;Dn<Ln;Dn++)Rr.set(En[Dn],"globalEval",!Rn||Rr.get(Rn[Dn],"globalEval"))}var Ir=/<|&#?\w+;/;function Hr(En,Rn,Dn,Ln,Hn){for(var zn,$n,Jn,Zn,lr,yr,jr=Rn.createDocumentFragment(),mr=[],Dr=0,gs=En.length;Dr<gs;Dr++)if(zn=En[Dr],zn||zn===0)if(Pn(zn)==="object")jn.merge(mr,zn.nodeType?[zn]:zn);else if(!Ir.test(zn))mr.push(Rn.createTextNode(zn));else{for($n=$n||jr.appendChild(Rn.createElement("div")),Jn=(io.exec(zn)||["",""])[1].toLowerCase(),Zn=qn[Jn]||qn._default,$n.innerHTML=Zn[1]+jn.htmlPrefilter(zn)+Zn[2],yr=Zn[0];yr--;)$n=$n.lastChild;jn.merge(mr,$n.childNodes),$n=jr.firstChild,$n.textContent=""}for(jr.textContent="",Dr=0;zn=mr[Dr++];){if(Ln&&jn.inArray(zn,Ln)>-1){Hn&&Hn.push(zn);continue}if(lr=_s(zn),$n=ar(jr.appendChild(zn),"script"),lr&&br($n),Dn)for(yr=0;zn=$n[yr++];)Wn.test(zn.type||"")&&Dn.push(zn)}return jr}var ps=/^([^.]*)(?:\.(.+)|)/;function $r(){return!0}function ms(){return!1}function Ur(En,Rn,Dn,Ln,Hn,zn){var $n,Jn;if(typeof Rn=="object"){typeof Dn!="string"&&(Ln=Ln||Dn,Dn=void 0);for(Jn in Rn)Ur(En,Jn,Dn,Ln,Rn[Jn],zn);return En}if(Ln==null&&Hn==null?(Hn=Dn,Ln=Dn=void 0):Hn==null&&(typeof Dn=="string"?(Hn=Ln,Ln=void 0):(Hn=Ln,Ln=Dn,Dn=void 0)),Hn===!1)Hn=ms;else if(!Hn)return En;return zn===1&&($n=Hn,Hn=function(Zn){return jn().off(Zn),$n.apply(this,arguments)},Hn.guid=$n.guid||($n.guid=jn.guid++)),En.each(function(){jn.event.add(this,Rn,Hn,Ln,Dn)})}jn.event={global:{},add:function(En,Rn,Dn,Ln,Hn){var zn,$n,Jn,Zn,lr,yr,jr,mr,Dr,gs,Rs,ws=Rr.get(En);if(Xl(En))for(Dn.handler&&(zn=Dn,Dn=zn.handler,Hn=zn.selector),Hn&&jn.find.matchesSelector(zs,Hn),Dn.guid||(Dn.guid=jn.guid++),(Zn=ws.events)||(Zn=ws.events=Object.create(null)),($n=ws.handle)||($n=ws.handle=function(gl){return typeof jn<"u"&&jn.event.triggered!==gl.type?jn.event.dispatch.apply(En,arguments):void 0}),Rn=(Rn||"").match(Wr)||[""],lr=Rn.length;lr--;)Jn=ps.exec(Rn[lr])||[],Dr=Rs=Jn[1],gs=(Jn[2]||"").split(".").sort(),Dr&&(jr=jn.event.special[Dr]||{},Dr=(Hn?jr.delegateType:jr.bindType)||Dr,jr=jn.event.special[Dr]||{},yr=jn.extend({type:Dr,origType:Rs,data:Ln,handler:Dn,guid:Dn.guid,selector:Hn,needsContext:Hn&&jn.expr.match.needsContext.test(Hn),namespace:gs.join(".")},zn),(mr=Zn[Dr])||(mr=Zn[Dr]=[],mr.delegateCount=0,(!jr.setup||jr.setup.call(En,Ln,gs,$n)===!1)&&En.addEventListener&&En.addEventListener(Dr,$n)),jr.add&&(jr.add.call(En,yr),yr.handler.guid||(yr.handler.guid=Dn.guid)),Hn?mr.splice(mr.delegateCount++,0,yr):mr.push(yr),jn.event.global[Dr]=!0)},remove:function(En,Rn,Dn,Ln,Hn){var zn,$n,Jn,Zn,lr,yr,jr,mr,Dr,gs,Rs,ws=Rr.hasData(En)&&Rr.get(En);if(!(!ws||!(Zn=ws.events))){for(Rn=(Rn||"").match(Wr)||[""],lr=Rn.length;lr--;){if(Jn=ps.exec(Rn[lr])||[],Dr=Rs=Jn[1],gs=(Jn[2]||"").split(".").sort(),!Dr){for(Dr in Zn)jn.event.remove(En,Dr+Rn[lr],Dn,Ln,!0);continue}for(jr=jn.event.special[Dr]||{},Dr=(Ln?jr.delegateType:jr.bindType)||Dr,mr=Zn[Dr]||[],Jn=Jn[2]&&new RegExp("(^|\\.)"+gs.join("\\.(?:.*\\.|)")+"(\\.|$)"),$n=zn=mr.length;zn--;)yr=mr[zn],(Hn||Rs===yr.origType)&&(!Dn||Dn.guid===yr.guid)&&(!Jn||Jn.test(yr.namespace))&&(!Ln||Ln===yr.selector||Ln==="**"&&yr.selector)&&(mr.splice(zn,1),yr.selector&&mr.delegateCount--,jr.remove&&jr.remove.call(En,yr));$n&&!mr.length&&((!jr.teardown||jr.teardown.call(En,gs,ws.handle)===!1)&&jn.removeEvent(En,Dr,ws.handle),delete Zn[Dr])}jn.isEmptyObject(Zn)&&Rr.remove(En,"handle events")}},dispatch:function(En){var Rn,Dn,Ln,Hn,zn,$n,Jn=new Array(arguments.length),Zn=jn.event.fix(En),lr=(Rr.get(this,"events")||Object.create(null))[Zn.type]||[],yr=jn.event.special[Zn.type]||{};for(Jn[0]=Zn,Rn=1;Rn<arguments.length;Rn++)Jn[Rn]=arguments[Rn];if(Zn.delegateTarget=this,!(yr.preDispatch&&yr.preDispatch.call(this,Zn)===!1)){for($n=jn.event.handlers.call(this,Zn,lr),Rn=0;(Hn=$n[Rn++])&&!Zn.isPropagationStopped();)for(Zn.currentTarget=Hn.elem,Dn=0;(zn=Hn.handlers[Dn++])&&!Zn.isImmediatePropagationStopped();)(!Zn.rnamespace||zn.namespace===!1||Zn.rnamespace.test(zn.namespace))&&(Zn.handleObj=zn,Zn.data=zn.data,Ln=((jn.event.special[zn.origType]||{}).handle||zn.handler).apply(Hn.elem,Jn),Ln!==void 0&&(Zn.result=Ln)===!1&&(Zn.preventDefault(),Zn.stopPropagation()));return yr.postDispatch&&yr.postDispatch.call(this,Zn),Zn.result}},handlers:function(En,Rn){var Dn,Ln,Hn,zn,$n,Jn=[],Zn=Rn.delegateCount,lr=En.target;if(Zn&&lr.nodeType&&!(En.type==="click"&&En.button>=1)){for(;lr!==this;lr=lr.parentNode||this)if(lr.nodeType===1&&!(En.type==="click"&&lr.disabled===!0)){for(zn=[],$n={},Dn=0;Dn<Zn;Dn++)Ln=Rn[Dn],Hn=Ln.selector+" ",$n[Hn]===void 0&&($n[Hn]=Ln.needsContext?jn(Hn,this).index(lr)>-1:jn.find(Hn,this,null,[lr]).length),$n[Hn]&&zn.push(Ln);zn.length&&Jn.push({elem:lr,handlers:zn})}}return lr=this,Zn<Rn.length&&Jn.push({elem:lr,handlers:Rn.slice(Zn)}),Jn},addProp:function(En,Rn){Object.defineProperty(jn.Event.prototype,En,{enumerable:!0,configurable:!0,get:Cn(Rn)?function(){if(this.originalEvent)return Rn(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[En]},set:function(Dn){Object.defineProperty(this,En,{enumerable:!0,configurable:!0,writable:!0,value:Dn})}})},fix:function(En){return En[jn.expando]?En:new jn.Event(En)},special:{load:{noBubble:!0},click:{setup:function(En){var Rn=this||En;return ao.test(Rn.type)&&Rn.click&&Un(Rn,"input")&&Kr(Rn,"click",!0),!1},trigger:function(En){var Rn=this||En;return ao.test(Rn.type)&&Rn.click&&Un(Rn,"input")&&Kr(Rn,"click"),!0},_default:function(En){var Rn=En.target;return ao.test(Rn.type)&&Rn.click&&Un(Rn,"input")&&Rr.get(Rn,"click")||Un(Rn,"a")}},beforeunload:{postDispatch:function(En){En.result!==void 0&&En.originalEvent&&(En.originalEvent.returnValue=En.result)}}}};function Kr(En,Rn,Dn){if(!Dn){Rr.get(En,Rn)===void 0&&jn.event.add(En,Rn,$r);return}Rr.set(En,Rn,!1),jn.event.add(En,Rn,{namespace:!1,handler:function(Ln){var Hn,zn=Rr.get(this,Rn);if(Ln.isTrigger&1&&this[Rn]){if(zn)(jn.event.special[Rn]||{}).delegateType&&Ln.stopPropagation();else if(zn=cn.call(arguments),Rr.set(this,Rn,zn),this[Rn](),Hn=Rr.get(this,Rn),Rr.set(this,Rn,!1),zn!==Hn)return Ln.stopImmediatePropagation(),Ln.preventDefault(),Hn}else zn&&(Rr.set(this,Rn,jn.event.trigger(zn[0],zn.slice(1),this)),Ln.stopPropagation(),Ln.isImmediatePropagationStopped=$r)}})}jn.removeEvent=function(En,Rn,Dn){En.removeEventListener&&En.removeEventListener(Rn,Dn)},jn.Event=function(En,Rn){if(!(this instanceof jn.Event))return new jn.Event(En,Rn);En&&En.type?(this.originalEvent=En,this.type=En.type,this.isDefaultPrevented=En.defaultPrevented||En.defaultPrevented===void 0&&En.returnValue===!1?$r:ms,this.target=En.target&&En.target.nodeType===3?En.target.parentNode:En.target,this.currentTarget=En.currentTarget,this.relatedTarget=En.relatedTarget):this.type=En,Rn&&jn.extend(this,Rn),this.timeStamp=En&&En.timeStamp||Date.now(),this[jn.expando]=!0},jn.Event.prototype={constructor:jn.Event,isDefaultPrevented:ms,isPropagationStopped:ms,isImmediatePropagationStopped:ms,isSimulated:!1,preventDefault:function(){var En=this.originalEvent;this.isDefaultPrevented=$r,En&&!this.isSimulated&&En.preventDefault()},stopPropagation:function(){var En=this.originalEvent;this.isPropagationStopped=$r,En&&!this.isSimulated&&En.stopPropagation()},stopImmediatePropagation:function(){var En=this.originalEvent;this.isImmediatePropagationStopped=$r,En&&!this.isSimulated&&En.stopImmediatePropagation(),this.stopPropagation()}},jn.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},jn.event.addProp),jn.each({focus:"focusin",blur:"focusout"},function(En,Rn){function Dn(Ln){if(Mn.documentMode){var Hn=Rr.get(this,"handle"),zn=jn.event.fix(Ln);zn.type=Ln.type==="focusin"?"focus":"blur",zn.isSimulated=!0,Hn(Ln),zn.target===zn.currentTarget&&Hn(zn)}else jn.event.simulate(Rn,Ln.target,jn.event.fix(Ln))}jn.event.special[En]={setup:function(){var Ln;if(Kr(this,En,!0),Mn.documentMode)Ln=Rr.get(this,Rn),Ln||this.addEventListener(Rn,Dn),Rr.set(this,Rn,(Ln||0)+1);else return!1},trigger:function(){return Kr(this,En),!0},teardown:function(){var Ln;if(Mn.documentMode)Ln=Rr.get(this,Rn)-1,Ln?Rr.set(this,Rn,Ln):(this.removeEventListener(Rn,Dn),Rr.remove(this,Rn));else return!1},_default:function(Ln){return Rr.get(Ln.target,En)},delegateType:Rn},jn.event.special[Rn]={setup:function(){var Ln=this.ownerDocument||this.document||this,Hn=Mn.documentMode?this:Ln,zn=Rr.get(Hn,Rn);zn||(Mn.documentMode?this.addEventListener(Rn,Dn):Ln.addEventListener(En,Dn,!0)),Rr.set(Hn,Rn,(zn||0)+1)},teardown:function(){var Ln=this.ownerDocument||this.document||this,Hn=Mn.documentMode?this:Ln,zn=Rr.get(Hn,Rn)-1;zn?Rr.set(Hn,Rn,zn):(Mn.documentMode?this.removeEventListener(Rn,Dn):Ln.removeEventListener(En,Dn,!0),Rr.remove(Hn,Rn))}}}),jn.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(En,Rn){jn.event.special[En]={delegateType:Rn,bindType:Rn,handle:function(Dn){var Ln,Hn=this,zn=Dn.relatedTarget,$n=Dn.handleObj;return(!zn||zn!==Hn&&!jn.contains(Hn,zn))&&(Dn.type=$n.origType,Ln=$n.handler.apply(this,arguments),Dn.type=Rn),Ln}}}),jn.fn.extend({on:function(En,Rn,Dn,Ln){return Ur(this,En,Rn,Dn,Ln)},one:function(En,Rn,Dn,Ln){return Ur(this,En,Rn,Dn,Ln,1)},off:function(En,Rn,Dn){var Ln,Hn;if(En&&En.preventDefault&&En.handleObj)return Ln=En.handleObj,jn(En.delegateTarget).off(Ln.namespace?Ln.origType+"."+Ln.namespace:Ln.origType,Ln.selector,Ln.handler),this;if(typeof En=="object"){for(Hn in En)this.off(Hn,Rn,En[Hn]);return this}return(Rn===!1||typeof Rn=="function")&&(Dn=Rn,Rn=void 0),Dn===!1&&(Dn=ms),this.each(function(){jn.event.remove(this,En,Dn,Rn)})}});var Os=/<script|<style|<link/i,Vl=/checked\s*(?:[^=]|=\s*.checked.)/i,Gs=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Xs(En,Rn){return Un(En,"table")&&Un(Rn.nodeType!==11?Rn:Rn.firstChild,"tr")&&jn(En).children("tbody")[0]||En}function Qs(En){return En.type=(En.getAttribute("type")!==null)+"/"+En.type,En}function Ho(En){return(En.type||"").slice(0,5)==="true/"?En.type=En.type.slice(5):En.removeAttribute("type"),En}function zo(En,Rn){var Dn,Ln,Hn,zn,$n,Jn,Zn;if(Rn.nodeType===1){if(Rr.hasData(En)&&(zn=Rr.get(En),Zn=zn.events,Zn)){Rr.remove(Rn,"handle events");for(Hn in Zn)for(Dn=0,Ln=Zn[Hn].length;Dn<Ln;Dn++)jn.event.add(Rn,Hn,Zn[Hn][Dn])}Es.hasData(En)&&($n=Es.access(En),Jn=jn.extend({},$n),Es.set(Rn,Jn))}}function md(En,Rn){var Dn=Rn.nodeName.toLowerCase();Dn==="input"&&ao.test(En.type)?Rn.checked=En.checked:(Dn==="input"||Dn==="textarea")&&(Rn.defaultValue=En.defaultValue)}function Fo(En,Rn,Dn,Ln){Rn=un(Rn);var Hn,zn,$n,Jn,Zn,lr,yr=0,jr=En.length,mr=jr-1,Dr=Rn[0],gs=Cn(Dr);if(gs||jr>1&&typeof Dr=="string"&&!An.checkClone&&Vl.test(Dr))return En.each(function(Rs){var ws=En.eq(Rs);gs&&(Rn[0]=Dr.call(this,Rs,ws.html())),Fo(ws,Rn,Dn,Ln)});if(jr&&(Hn=Hr(Rn,En[0].ownerDocument,!1,En,Ln),zn=Hn.firstChild,Hn.childNodes.length===1&&(Hn=zn),zn||Ln)){for($n=jn.map(ar(Hn,"script"),Qs),Jn=$n.length;yr<jr;yr++)Zn=Hn,yr!==mr&&(Zn=jn.clone(Zn,!0,!0),Jn&&jn.merge($n,ar(Zn,"script"))),Dn.call(En[yr],Zn,yr);if(Jn)for(lr=$n[$n.length-1].ownerDocument,jn.map($n,Ho),yr=0;yr<Jn;yr++)Zn=$n[yr],Wn.test(Zn.type||"")&&!Rr.access(Zn,"globalEval")&&jn.contains(lr,Zn)&&(Zn.src&&(Zn.type||"").toLowerCase()!=="module"?jn._evalUrl&&!Zn.noModule&&jn._evalUrl(Zn.src,{nonce:Zn.nonce||Zn.getAttribute("nonce")},lr):On(Zn.textContent.replace(Gs,""),Zn,lr))}return En}function nu(En,Rn,Dn){for(var Ln,Hn=Rn?jn.filter(Rn,En):En,zn=0;(Ln=Hn[zn])!=null;zn++)!Dn&&Ln.nodeType===1&&jn.cleanData(ar(Ln)),Ln.parentNode&&(Dn&&_s(Ln)&&br(ar(Ln,"script")),Ln.parentNode.removeChild(Ln));return En}jn.extend({htmlPrefilter:function(En){return En},clone:function(En,Rn,Dn){var Ln,Hn,zn,$n,Jn=En.cloneNode(!0),Zn=_s(En);if(!An.noCloneChecked&&(En.nodeType===1||En.nodeType===11)&&!jn.isXMLDoc(En))for($n=ar(Jn),zn=ar(En),Ln=0,Hn=zn.length;Ln<Hn;Ln++)md(zn[Ln],$n[Ln]);if(Rn)if(Dn)for(zn=zn||ar(En),$n=$n||ar(Jn),Ln=0,Hn=zn.length;Ln<Hn;Ln++)zo(zn[Ln],$n[Ln]);else zo(En,Jn);return $n=ar(Jn,"script"),$n.length>0&&br($n,!Zn&&ar(En,"script")),Jn},cleanData:function(En){for(var Rn,Dn,Ln,Hn=jn.event.special,zn=0;(Dn=En[zn])!==void 0;zn++)if(Xl(Dn)){if(Rn=Dn[Rr.expando]){if(Rn.events)for(Ln in Rn.events)Hn[Ln]?jn.event.remove(Dn,Ln):jn.removeEvent(Dn,Ln,Rn.handle);Dn[Rr.expando]=void 0}Dn[Es.expando]&&(Dn[Es.expando]=void 0)}}}),jn.fn.extend({detach:function(En){return nu(this,En,!0)},remove:function(En){return nu(this,En)},text:function(En){return sl(this,function(Rn){return Rn===void 0?jn.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=Rn)})},null,En,arguments.length)},append:function(){return Fo(this,arguments,function(En){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var Rn=Xs(this,En);Rn.appendChild(En)}})},prepend:function(){return Fo(this,arguments,function(En){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var Rn=Xs(this,En);Rn.insertBefore(En,Rn.firstChild)}})},before:function(){return Fo(this,arguments,function(En){this.parentNode&&this.parentNode.insertBefore(En,this)})},after:function(){return Fo(this,arguments,function(En){this.parentNode&&this.parentNode.insertBefore(En,this.nextSibling)})},empty:function(){for(var En,Rn=0;(En=this[Rn])!=null;Rn++)En.nodeType===1&&(jn.cleanData(ar(En,!1)),En.textContent="");return this},clone:function(En,Rn){return En=En??!1,Rn=Rn??En,this.map(function(){return jn.clone(this,En,Rn)})},html:function(En){return sl(this,function(Rn){var Dn=this[0]||{},Ln=0,Hn=this.length;if(Rn===void 0&&Dn.nodeType===1)return Dn.innerHTML;if(typeof Rn=="string"&&!Os.test(Rn)&&!qn[(io.exec(Rn)||["",""])[1].toLowerCase()]){Rn=jn.htmlPrefilter(Rn);try{for(;Ln<Hn;Ln++)Dn=this[Ln]||{},Dn.nodeType===1&&(jn.cleanData(ar(Dn,!1)),Dn.innerHTML=Rn);Dn=0}catch{}}Dn&&this.empty().append(Rn)},null,En,arguments.length)},replaceWith:function(){var En=[];return Fo(this,arguments,function(Rn){var Dn=this.parentNode;jn.inArray(this,En)<0&&(jn.cleanData(ar(this)),Dn&&Dn.replaceChild(Rn,this))},En)}}),jn.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(En,Rn){jn.fn[En]=function(Dn){for(var Ln,Hn=[],zn=jn(Dn),$n=zn.length-1,Jn=0;Jn<=$n;Jn++)Ln=Jn===$n?this:this.clone(!0),jn(zn[Jn])[Rn](Ln),pn.apply(Hn,Ln.get());return this.pushStack(Hn)}});var Ao=new RegExp("^("+Po+")(?!px)[a-z%]+$","i"),ec=/^--/,Wl=function(En){var Rn=En.ownerDocument.defaultView;return(!Rn||!Rn.opener)&&(Rn=rn),Rn.getComputedStyle(En)},Co=function(En,Rn,Dn){var Ln,Hn,zn={};for(Hn in Rn)zn[Hn]=En.style[Hn],En.style[Hn]=Rn[Hn];Ln=Dn.call(En);for(Hn in Rn)En.style[Hn]=zn[Hn];return Ln},tc=new RegExp(ll.join("|"),"i");(function(){function En(){if(lr){Zn.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",lr.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",zs.appendChild(Zn).appendChild(lr);var yr=rn.getComputedStyle(lr);Dn=yr.top!=="1%",Jn=Rn(yr.marginLeft)===12,lr.style.right="60%",zn=Rn(yr.right)===36,Ln=Rn(yr.width)===36,lr.style.position="absolute",Hn=Rn(lr.offsetWidth/3)===12,zs.removeChild(Zn),lr=null}}function Rn(yr){return Math.round(parseFloat(yr))}var Dn,Ln,Hn,zn,$n,Jn,Zn=Mn.createElement("div"),lr=Mn.createElement("div");lr.style&&(lr.style.backgroundClip="content-box",lr.cloneNode(!0).style.backgroundClip="",An.clearCloneStyle=lr.style.backgroundClip==="content-box",jn.extend(An,{boxSizingReliable:function(){return En(),Ln},pixelBoxStyles:function(){return En(),zn},pixelPosition:function(){return En(),Dn},reliableMarginLeft:function(){return En(),Jn},scrollboxSize:function(){return En(),Hn},reliableTrDimensions:function(){var yr,jr,mr,Dr;return $n==null&&(yr=Mn.createElement("table"),jr=Mn.createElement("tr"),mr=Mn.createElement("div"),yr.style.cssText="position:absolute;left:-11111px;border-collapse:separate",jr.style.cssText="box-sizing:content-box;border:1px solid",jr.style.height="1px",mr.style.height="9px",mr.style.display="block",zs.appendChild(yr).appendChild(jr).appendChild(mr),Dr=rn.getComputedStyle(jr),$n=parseInt(Dr.height,10)+parseInt(Dr.borderTopWidth,10)+parseInt(Dr.borderBottomWidth,10)===jr.offsetHeight,zs.removeChild(yr)),$n}}))})();function so(En,Rn,Dn){var Ln,Hn,zn,$n,Jn=ec.test(Rn),Zn=En.style;return Dn=Dn||Wl(En),Dn&&($n=Dn.getPropertyValue(Rn)||Dn[Rn],Jn&&$n&&($n=$n.replace(tr,"$1")||void 0),$n===""&&!_s(En)&&($n=jn.style(En,Rn)),!An.pixelBoxStyles()&&Ao.test($n)&&tc.test(Rn)&&(Ln=Zn.width,Hn=Zn.minWidth,zn=Zn.maxWidth,Zn.minWidth=Zn.maxWidth=Zn.width=$n,$n=Dn.width,Zn.width=Ln,Zn.minWidth=Hn,Zn.maxWidth=zn)),$n!==void 0?$n+"":$n}function cl(En,Rn){return{get:function(){if(En()){delete this.get;return}return(this.get=Rn).apply(this,arguments)}}}var gd=["Webkit","Moz","ms"],xd=Mn.createElement("div").style,$o={};function Rc(En){for(var Rn=En[0].toUpperCase()+En.slice(1),Dn=gd.length;Dn--;)if(En=gd[Dn]+Rn,En in xd)return En}function Gl(En){var Rn=jn.cssProps[En]||$o[En];return Rn||(En in xd?En:$o[En]=Rc(En)||En)}var yp=/^(none|table(?!-c[ea]).+)/,hh={position:"absolute",visibility:"hidden",display:"block"},vd={letterSpacing:"0",fontWeight:"400"};function ph(En,Rn,Dn){var Ln=Ul.exec(Rn);return Ln?Math.max(0,Ln[2]-(Dn||0))+(Ln[3]||"px"):Rn}function kc(En,Rn,Dn,Ln,Hn,zn){var $n=Rn==="width"?1:0,Jn=0,Zn=0,lr=0;if(Dn===(Ln?"border":"content"))return 0;for(;$n<4;$n+=2)Dn==="margin"&&(lr+=jn.css(En,Dn+ll[$n],!0,Hn)),Ln?(Dn==="content"&&(Zn-=jn.css(En,"padding"+ll[$n],!0,Hn)),Dn!=="margin"&&(Zn-=jn.css(En,"border"+ll[$n]+"Width",!0,Hn))):(Zn+=jn.css(En,"padding"+ll[$n],!0,Hn),Dn!=="padding"?Zn+=jn.css(En,"border"+ll[$n]+"Width",!0,Hn):Jn+=jn.css(En,"border"+ll[$n]+"Width",!0,Hn));return!Ln&&zn>=0&&(Zn+=Math.max(0,Math.ceil(En["offset"+Rn[0].toUpperCase()+Rn.slice(1)]-zn-Zn-Jn-.5))||0),Zn+lr}function ru(En,Rn,Dn){var Ln=Wl(En),Hn=!An.boxSizingReliable()||Dn,zn=Hn&&jn.css(En,"boxSizing",!1,Ln)==="border-box",$n=zn,Jn=so(En,Rn,Ln),Zn="offset"+Rn[0].toUpperCase()+Rn.slice(1);if(Ao.test(Jn)){if(!Dn)return Jn;Jn="auto"}return(!An.boxSizingReliable()&&zn||!An.reliableTrDimensions()&&Un(En,"tr")||Jn==="auto"||!parseFloat(Jn)&&jn.css(En,"display",!1,Ln)==="inline")&&En.getClientRects().length&&(zn=jn.css(En,"boxSizing",!1,Ln)==="border-box",$n=Zn in En,$n&&(Jn=En[Zn])),Jn=parseFloat(Jn)||0,Jn+kc(En,Rn,Dn||(zn?"border":"content"),$n,Ln,Jn)+"px"}jn.extend({cssHooks:{opacity:{get:function(En,Rn){if(Rn){var Dn=so(En,"opacity");return Dn===""?"1":Dn}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(En,Rn,Dn,Ln){if(!(!En||En.nodeType===3||En.nodeType===8||!En.style)){var Hn,zn,$n,Jn=kl(Rn),Zn=ec.test(Rn),lr=En.style;if(Zn||(Rn=Gl(Jn)),$n=jn.cssHooks[Rn]||jn.cssHooks[Jn],Dn!==void 0){if(zn=typeof Dn,zn==="string"&&(Hn=Ul.exec(Dn))&&Hn[1]&&(Dn=Bo(En,Rn,Hn),zn="number"),Dn==null||Dn!==Dn)return;zn==="number"&&!Zn&&(Dn+=Hn&&Hn[3]||(jn.cssNumber[Jn]?"":"px")),!An.clearCloneStyle&&Dn===""&&Rn.indexOf("background")===0&&(lr[Rn]="inherit"),(!$n||!("set"in $n)||(Dn=$n.set(En,Dn,Ln))!==void 0)&&(Zn?lr.setProperty(Rn,Dn):lr[Rn]=Dn)}else return $n&&"get"in $n&&(Hn=$n.get(En,!1,Ln))!==void 0?Hn:lr[Rn]}},css:function(En,Rn,Dn,Ln){var Hn,zn,$n,Jn=kl(Rn),Zn=ec.test(Rn);return Zn||(Rn=Gl(Jn)),$n=jn.cssHooks[Rn]||jn.cssHooks[Jn],$n&&"get"in $n&&(Hn=$n.get(En,!0,Dn)),Hn===void 0&&(Hn=so(En,Rn,Ln)),Hn==="normal"&&Rn in vd&&(Hn=vd[Rn]),Dn===""||Dn?(zn=parseFloat(Hn),Dn===!0||isFinite(zn)?zn||0:Hn):Hn}}),jn.each(["height","width"],function(En,Rn){jn.cssHooks[Rn]={get:function(Dn,Ln,Hn){if(Ln)return yp.test(jn.css(Dn,"display"))&&(!Dn.getClientRects().length||!Dn.getBoundingClientRect().width)?Co(Dn,hh,function(){return ru(Dn,Rn,Hn)}):ru(Dn,Rn,Hn)},set:function(Dn,Ln,Hn){var zn,$n=Wl(Dn),Jn=!An.scrollboxSize()&&$n.position==="absolute",Zn=Jn||Hn,lr=Zn&&jn.css(Dn,"boxSizing",!1,$n)==="border-box",yr=Hn?kc(Dn,Rn,Hn,lr,$n):0;return lr&&Jn&&(yr-=Math.ceil(Dn["offset"+Rn[0].toUpperCase()+Rn.slice(1)]-parseFloat($n[Rn])-kc(Dn,Rn,"border",!1,$n)-.5)),yr&&(zn=Ul.exec(Ln))&&(zn[3]||"px")!=="px"&&(Dn.style[Rn]=Ln,Ln=jn.css(Dn,Rn)),ph(Dn,Ln,yr)}}}),jn.cssHooks.marginLeft=cl(An.reliableMarginLeft,function(En,Rn){if(Rn)return(parseFloat(so(En,"marginLeft"))||En.getBoundingClientRect().left-Co(En,{marginLeft:0},function(){return En.getBoundingClientRect().left}))+"px"}),jn.each({margin:"",padding:"",border:"Width"},function(En,Rn){jn.cssHooks[En+Rn]={expand:function(Dn){for(var Ln=0,Hn={},zn=typeof Dn=="string"?Dn.split(" "):[Dn];Ln<4;Ln++)Hn[En+ll[Ln]+Rn]=zn[Ln]||zn[Ln-2]||zn[0];return Hn}},En!=="margin"&&(jn.cssHooks[En+Rn].set=ph)}),jn.fn.extend({css:function(En,Rn){return sl(this,function(Dn,Ln,Hn){var zn,$n,Jn={},Zn=0;if(Array.isArray(Ln)){for(zn=Wl(Dn),$n=Ln.length;Zn<$n;Zn++)Jn[Ln[Zn]]=jn.css(Dn,Ln[Zn],!1,zn);return Jn}return Hn!==void 0?jn.style(Dn,Ln,Hn):jn.css(Dn,Ln)},En,Rn,arguments.length>1)}});function Zs(En,Rn,Dn,Ln,Hn){return new Zs.prototype.init(En,Rn,Dn,Ln,Hn)}jn.Tween=Zs,Zs.prototype={constructor:Zs,init:function(En,Rn,Dn,Ln,Hn,zn){this.elem=En,this.prop=Dn,this.easing=Hn||jn.easing._default,this.options=Rn,this.start=this.now=this.cur(),this.end=Ln,this.unit=zn||(jn.cssNumber[Dn]?"":"px")},cur:function(){var En=Zs.propHooks[this.prop];return En&&En.get?En.get(this):Zs.propHooks._default.get(this)},run:function(En){var Rn,Dn=Zs.propHooks[this.prop];return this.options.duration?this.pos=Rn=jn.easing[this.easing](En,this.options.duration*En,0,1,this.options.duration):this.pos=Rn=En,this.now=(this.end-this.start)*Rn+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),Dn&&Dn.set?Dn.set(this):Zs.propHooks._default.set(this),this}},Zs.prototype.init.prototype=Zs.prototype,Zs.propHooks={_default:{get:function(En){var Rn;return En.elem.nodeType!==1||En.elem[En.prop]!=null&&En.elem.style[En.prop]==null?En.elem[En.prop]:(Rn=jn.css(En.elem,En.prop,""),!Rn||Rn==="auto"?0:Rn)},set:function(En){jn.fx.step[En.prop]?jn.fx.step[En.prop](En):En.elem.nodeType===1&&(jn.cssHooks[En.prop]||En.elem.style[Gl(En.prop)]!=null)?jn.style(En.elem,En.prop,En.now+En.unit):En.elem[En.prop]=En.now}}},Zs.propHooks.scrollTop=Zs.propHooks.scrollLeft={set:function(En){En.elem.nodeType&&En.elem.parentNode&&(En.elem[En.prop]=En.now)}},jn.easing={linear:function(En){return En},swing:function(En){return .5-Math.cos(En*Math.PI)/2},_default:"swing"},jn.fx=Zs.prototype.init,jn.fx.step={};var ml,au,wp=/^(?:toggle|show|hide)$/,Mu=/queueHooks$/;function Du(){au&&(Mn.hidden===!1&&rn.requestAnimationFrame?rn.requestAnimationFrame(Du):rn.setTimeout(Du,jn.fx.interval),jn.fx.tick())}function iu(){return rn.setTimeout(function(){ml=void 0}),ml=Date.now()}function Tu(En,Rn){var Dn,Ln=0,Hn={height:En};for(Rn=Rn?1:0;Ln<4;Ln+=2-Rn)Dn=ll[Ln],Hn["margin"+Dn]=Hn["padding"+Dn]=En;return Rn&&(Hn.opacity=Hn.width=En),Hn}function Il(En,Rn,Dn){for(var Ln,Hn=(Pl.tweeners[Rn]||[]).concat(Pl.tweeners["*"]),zn=0,$n=Hn.length;zn<$n;zn++)if(Ln=Hn[zn].call(Dn,Rn,En))return Ln}function bd(En,Rn,Dn){var Ln,Hn,zn,$n,Jn,Zn,lr,yr,jr="width"in Rn||"height"in Rn,mr=this,Dr={},gs=En.style,Rs=En.nodeType&&Ws(En),ws=Rr.get(En,"fxshow");Dn.queue||($n=jn._queueHooks(En,"fx"),$n.unqueued==null&&($n.unqueued=0,Jn=$n.empty.fire,$n.empty.fire=function(){$n.unqueued||Jn()}),$n.unqueued++,mr.always(function(){mr.always(function(){$n.unqueued--,jn.queue(En,"fx").length||$n.empty.fire()})}));for(Ln in Rn)if(Hn=Rn[Ln],wp.test(Hn)){if(delete Rn[Ln],zn=zn||Hn==="toggle",Hn===(Rs?"hide":"show"))if(Hn==="show"&&ws&&ws[Ln]!==void 0)Rs=!0;else continue;Dr[Ln]=ws&&ws[Ln]||jn.style(En,Ln)}if(Zn=!jn.isEmptyObject(Rn),!(!Zn&&jn.isEmptyObject(Dr))){jr&&En.nodeType===1&&(Dn.overflow=[gs.overflow,gs.overflowX,gs.overflowY],lr=ws&&ws.display,lr==null&&(lr=Rr.get(En,"display")),yr=jn.css(En,"display"),yr==="none"&&(lr?yr=lr:(ol([En],!0),lr=En.style.display||lr,yr=jn.css(En,"display"),ol([En]))),(yr==="inline"||yr==="inline-block"&&lr!=null)&&jn.css(En,"float")==="none"&&(Zn||(mr.done(function(){gs.display=lr}),lr==null&&(yr=gs.display,lr=yr==="none"?"":yr)),gs.display="inline-block")),Dn.overflow&&(gs.overflow="hidden",mr.always(function(){gs.overflow=Dn.overflow[0],gs.overflowX=Dn.overflow[1],gs.overflowY=Dn.overflow[2]})),Zn=!1;for(Ln in Dr)Zn||(ws?"hidden"in ws&&(Rs=ws.hidden):ws=Rr.access(En,"fxshow",{display:lr}),zn&&(ws.hidden=!Rs),Rs&&ol([En],!0),mr.done(function(){Rs||ol([En]),Rr.remove(En,"fxshow");for(Ln in Dr)jn.style(En,Ln,Dr[Ln])})),Zn=Il(Rs?ws[Ln]:0,Ln,mr),Ln in ws||(ws[Ln]=Zn.start,Rs&&(Zn.end=Zn.start,Zn.start=0))}}function fh(En,Rn){var Dn,Ln,Hn,zn,$n;for(Dn in En)if(Ln=kl(Dn),Hn=Rn[Ln],zn=En[Dn],Array.isArray(zn)&&(Hn=zn[1],zn=En[Dn]=zn[0]),Dn!==Ln&&(En[Ln]=zn,delete En[Dn]),$n=jn.cssHooks[Ln],$n&&"expand"in $n){zn=$n.expand(zn),delete En[Ln];for(Dn in zn)Dn in En||(En[Dn]=zn[Dn],Rn[Dn]=Hn)}else Rn[Ln]=Hn}function Pl(En,Rn,Dn){var Ln,Hn,zn=0,$n=Pl.prefilters.length,Jn=jn.Deferred().always(function(){delete Zn.elem}),Zn=function(){if(Hn)return!1;for(var jr=ml||iu(),mr=Math.max(0,lr.startTime+lr.duration-jr),Dr=mr/lr.duration||0,gs=1-Dr,Rs=0,ws=lr.tweens.length;Rs<ws;Rs++)lr.tweens[Rs].run(gs);return Jn.notifyWith(En,[lr,gs,mr]),gs<1&&ws?mr:(ws||Jn.notifyWith(En,[lr,1,0]),Jn.resolveWith(En,[lr]),!1)},lr=Jn.promise({elem:En,props:jn.extend({},Rn),opts:jn.extend(!0,{specialEasing:{},easing:jn.easing._default},Dn),originalProperties:Rn,originalOptions:Dn,startTime:ml||iu(),duration:Dn.duration,tweens:[],createTween:function(jr,mr){var Dr=jn.Tween(En,lr.opts,jr,mr,lr.opts.specialEasing[jr]||lr.opts.easing);return lr.tweens.push(Dr),Dr},stop:function(jr){var mr=0,Dr=jr?lr.tweens.length:0;if(Hn)return this;for(Hn=!0;mr<Dr;mr++)lr.tweens[mr].run(1);return jr?(Jn.notifyWith(En,[lr,1,0]),Jn.resolveWith(En,[lr,jr])):Jn.rejectWith(En,[lr,jr]),this}}),yr=lr.props;for(fh(yr,lr.opts.specialEasing);zn<$n;zn++)if(Ln=Pl.prefilters[zn].call(lr,En,yr,lr.opts),Ln)return Cn(Ln.stop)&&(jn._queueHooks(lr.elem,lr.opts.queue).stop=Ln.stop.bind(Ln)),Ln;return jn.map(yr,Il,lr),Cn(lr.opts.start)&&lr.opts.start.call(En,lr),lr.progress(lr.opts.progress).done(lr.opts.done,lr.opts.complete).fail(lr.opts.fail).always(lr.opts.always),jn.fx.timer(jn.extend(Zn,{elem:En,anim:lr,queue:lr.opts.queue})),lr}jn.Animation=jn.extend(Pl,{tweeners:{"*":[function(En,Rn){var Dn=this.createTween(En,Rn);return Bo(Dn.elem,En,Ul.exec(Rn),Dn),Dn}]},tweener:function(En,Rn){Cn(En)?(Rn=En,En=["*"]):En=En.match(Wr);for(var Dn,Ln=0,Hn=En.length;Ln<Hn;Ln++)Dn=En[Ln],Pl.tweeners[Dn]=Pl.tweeners[Dn]||[],Pl.tweeners[Dn].unshift(Rn)},prefilters:[bd],prefilter:function(En,Rn){Rn?Pl.prefilters.unshift(En):Pl.prefilters.push(En)}}),jn.speed=function(En,Rn,Dn){var Ln=En&&typeof En=="object"?jn.extend({},En):{complete:Dn||!Dn&&Rn||Cn(En)&&En,duration:En,easing:Dn&&Rn||Rn&&!Cn(Rn)&&Rn};return jn.fx.off?Ln.duration=0:typeof Ln.duration!="number"&&(Ln.duration in jn.fx.speeds?Ln.duration=jn.fx.speeds[Ln.duration]:Ln.duration=jn.fx.speeds._default),(Ln.queue==null||Ln.queue===!0)&&(Ln.queue="fx"),Ln.old=Ln.complete,Ln.complete=function(){Cn(Ln.old)&&Ln.old.call(this),Ln.queue&&jn.dequeue(this,Ln.queue)},Ln},jn.fn.extend({fadeTo:function(En,Rn,Dn,Ln){return this.filter(Ws).css("opacity",0).show().end().animate({opacity:Rn},En,Dn,Ln)},animate:function(En,Rn,Dn,Ln){var Hn=jn.isEmptyObject(En),zn=jn.speed(Rn,Dn,Ln),$n=function(){var Jn=Pl(this,jn.extend({},En),zn);(Hn||Rr.get(this,"finish"))&&Jn.stop(!0)};return $n.finish=$n,Hn||zn.queue===!1?this.each($n):this.queue(zn.queue,$n)},stop:function(En,Rn,Dn){var Ln=function(Hn){var zn=Hn.stop;delete Hn.stop,zn(Dn)};return typeof En!="string"&&(Dn=Rn,Rn=En,En=void 0),Rn&&this.queue(En||"fx",[]),this.each(function(){var Hn=!0,zn=En!=null&&En+"queueHooks",$n=jn.timers,Jn=Rr.get(this);if(zn)Jn[zn]&&Jn[zn].stop&&Ln(Jn[zn]);else for(zn in Jn)Jn[zn]&&Jn[zn].stop&&Mu.test(zn)&&Ln(Jn[zn]);for(zn=$n.length;zn--;)$n[zn].elem===this&&(En==null||$n[zn].queue===En)&&($n[zn].anim.stop(Dn),Hn=!1,$n.splice(zn,1));(Hn||!Dn)&&jn.dequeue(this,En)})},finish:function(En){return En!==!1&&(En=En||"fx"),this.each(function(){var Rn,Dn=Rr.get(this),Ln=Dn[En+"queue"],Hn=Dn[En+"queueHooks"],zn=jn.timers,$n=Ln?Ln.length:0;for(Dn.finish=!0,jn.queue(this,En,[]),Hn&&Hn.stop&&Hn.stop.call(this,!0),Rn=zn.length;Rn--;)zn[Rn].elem===this&&zn[Rn].queue===En&&(zn[Rn].anim.stop(!0),zn.splice(Rn,1));for(Rn=0;Rn<$n;Rn++)Ln[Rn]&&Ln[Rn].finish&&Ln[Rn].finish.call(this);delete Dn.finish})}}),jn.each(["toggle","show","hide"],function(En,Rn){var Dn=jn.fn[Rn];jn.fn[Rn]=function(Ln,Hn,zn){return Ln==null||typeof Ln=="boolean"?Dn.apply(this,arguments):this.animate(Tu(Rn,!0),Ln,Hn,zn)}}),jn.each({slideDown:Tu("show"),slideUp:Tu("hide"),slideToggle:Tu("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(En,Rn){jn.fn[En]=function(Dn,Ln,Hn){return this.animate(Rn,Dn,Ln,Hn)}}),jn.timers=[],jn.fx.tick=function(){var En,Rn=0,Dn=jn.timers;for(ml=Date.now();Rn<Dn.length;Rn++)En=Dn[Rn],!En()&&Dn[Rn]===En&&Dn.splice(Rn--,1);Dn.length||jn.fx.stop(),ml=void 0},jn.fx.timer=function(En){jn.timers.push(En),jn.fx.start()},jn.fx.interval=13,jn.fx.start=function(){au||(au=!0,Du())},jn.fx.stop=function(){au=null},jn.fx.speeds={slow:600,fast:200,_default:400},jn.fn.delay=function(En,Rn){return En=jn.fx&&jn.fx.speeds[En]||En,Rn=Rn||"fx",this.queue(Rn,function(Dn,Ln){var Hn=rn.setTimeout(Dn,En);Ln.stop=function(){rn.clearTimeout(Hn)}})},function(){var En=Mn.createElement("input"),Rn=Mn.createElement("select"),Dn=Rn.appendChild(Mn.createElement("option"));En.type="checkbox",An.checkOn=En.value!=="",An.optSelected=Dn.selected,En=Mn.createElement("input"),En.value="t",En.type="radio",An.radioValue=En.value==="t"}();var nc,_c=jn.expr.attrHandle;jn.fn.extend({attr:function(En,Rn){return sl(this,jn.attr,En,Rn,arguments.length>1)},removeAttr:function(En){return this.each(function(){jn.removeAttr(this,En)})}}),jn.extend({attr:function(En,Rn,Dn){var Ln,Hn,zn=En.nodeType;if(!(zn===3||zn===8||zn===2)){if(typeof En.getAttribute>"u")return jn.prop(En,Rn,Dn);if((zn!==1||!jn.isXMLDoc(En))&&(Hn=jn.attrHooks[Rn.toLowerCase()]||(jn.expr.match.bool.test(Rn)?nc:void 0)),Dn!==void 0){if(Dn===null){jn.removeAttr(En,Rn);return}return Hn&&"set"in Hn&&(Ln=Hn.set(En,Dn,Rn))!==void 0?Ln:(En.setAttribute(Rn,Dn+""),Dn)}return Hn&&"get"in Hn&&(Ln=Hn.get(En,Rn))!==null?Ln:(Ln=jn.find.attr(En,Rn),Ln??void 0)}},attrHooks:{type:{set:function(En,Rn){if(!An.radioValue&&Rn==="radio"&&Un(En,"input")){var Dn=En.value;return En.setAttribute("type",Rn),Dn&&(En.value=Dn),Rn}}}},removeAttr:function(En,Rn){var Dn,Ln=0,Hn=Rn&&Rn.match(Wr);if(Hn&&En.nodeType===1)for(;Dn=Hn[Ln++];)En.removeAttribute(Dn)}}),nc={set:function(En,Rn,Dn){return Rn===!1?jn.removeAttr(En,Dn):En.setAttribute(Dn,Dn),Dn}},jn.each(jn.expr.match.bool.source.match(/\w+/g),function(En,Rn){var Dn=_c[Rn]||jn.find.attr;_c[Rn]=function(Ln,Hn,zn){var $n,Jn,Zn=Hn.toLowerCase();return zn||(Jn=_c[Zn],_c[Zn]=$n,$n=Dn(Ln,Hn,zn)!=null?Zn:null,_c[Zn]=Jn),$n}});var mh=/^(?:input|select|textarea|button)$/i,Mc=/^(?:a|area)$/i;jn.fn.extend({prop:function(En,Rn){return sl(this,jn.prop,En,Rn,arguments.length>1)},removeProp:function(En){return this.each(function(){delete this[jn.propFix[En]||En]})}}),jn.extend({prop:function(En,Rn,Dn){var Ln,Hn,zn=En.nodeType;if(!(zn===3||zn===8||zn===2))return(zn!==1||!jn.isXMLDoc(En))&&(Rn=jn.propFix[Rn]||Rn,Hn=jn.propHooks[Rn]),Dn!==void 0?Hn&&"set"in Hn&&(Ln=Hn.set(En,Dn,Rn))!==void 0?Ln:En[Rn]=Dn:Hn&&"get"in Hn&&(Ln=Hn.get(En,Rn))!==null?Ln:En[Rn]},propHooks:{tabIndex:{get:function(En){var Rn=jn.find.attr(En,"tabindex");return Rn?parseInt(Rn,10):mh.test(En.nodeName)||Mc.test(En.nodeName)&&En.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),An.optSelected||(jn.propHooks.selected={get:function(En){var Rn=En.parentNode;return Rn&&Rn.parentNode&&Rn.parentNode.selectedIndex,null},set:function(En){var Rn=En.parentNode;Rn&&(Rn.selectedIndex,Rn.parentNode&&Rn.parentNode.selectedIndex)}}),jn.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){jn.propFix[this.toLowerCase()]=this});function rc(En){var Rn=En.match(Wr)||[];return Rn.join(" ")}function Uo(En){return En.getAttribute&&En.getAttribute("class")||""}function Nu(En){return Array.isArray(En)?En:typeof En=="string"?En.match(Wr)||[]:[]}jn.fn.extend({addClass:function(En){var Rn,Dn,Ln,Hn,zn,$n;return Cn(En)?this.each(function(Jn){jn(this).addClass(En.call(this,Jn,Uo(this)))}):(Rn=Nu(En),Rn.length?this.each(function(){if(Ln=Uo(this),Dn=this.nodeType===1&&" "+rc(Ln)+" ",Dn){for(zn=0;zn<Rn.length;zn++)Hn=Rn[zn],Dn.indexOf(" "+Hn+" ")<0&&(Dn+=Hn+" ");$n=rc(Dn),Ln!==$n&&this.setAttribute("class",$n)}}):this)},removeClass:function(En){var Rn,Dn,Ln,Hn,zn,$n;return Cn(En)?this.each(function(Jn){jn(this).removeClass(En.call(this,Jn,Uo(this)))}):arguments.length?(Rn=Nu(En),Rn.length?this.each(function(){if(Ln=Uo(this),Dn=this.nodeType===1&&" "+rc(Ln)+" ",Dn){for(zn=0;zn<Rn.length;zn++)for(Hn=Rn[zn];Dn.indexOf(" "+Hn+" ")>-1;)Dn=Dn.replace(" "+Hn+" "," ");$n=rc(Dn),Ln!==$n&&this.setAttribute("class",$n)}}):this):this.attr("class","")},toggleClass:function(En,Rn){var Dn,Ln,Hn,zn,$n=typeof En,Jn=$n==="string"||Array.isArray(En);return Cn(En)?this.each(function(Zn){jn(this).toggleClass(En.call(this,Zn,Uo(this),Rn),Rn)}):typeof Rn=="boolean"&&Jn?Rn?this.addClass(En):this.removeClass(En):(Dn=Nu(En),this.each(function(){if(Jn)for(zn=jn(this),Hn=0;Hn<Dn.length;Hn++)Ln=Dn[Hn],zn.hasClass(Ln)?zn.removeClass(Ln):zn.addClass(Ln);else(En===void 0||$n==="boolean")&&(Ln=Uo(this),Ln&&Rr.set(this,"__className__",Ln),this.setAttribute&&this.setAttribute("class",Ln||En===!1?"":Rr.get(this,"__className__")||""))}))},hasClass:function(En){var Rn,Dn,Ln=0;for(Rn=" "+En+" ";Dn=this[Ln++];)if(Dn.nodeType===1&&(" "+rc(Uo(Dn))+" ").indexOf(Rn)>-1)return!0;return!1}});var yd=/\r/g;jn.fn.extend({val:function(En){var Rn,Dn,Ln,Hn=this[0];return arguments.length?(Ln=Cn(En),this.each(function(zn){var $n;this.nodeType===1&&(Ln?$n=En.call(this,zn,jn(this).val()):$n=En,$n==null?$n="":typeof $n=="number"?$n+="":Array.isArray($n)&&($n=jn.map($n,function(Jn){return Jn==null?"":Jn+""})),Rn=jn.valHooks[this.type]||jn.valHooks[this.nodeName.toLowerCase()],(!Rn||!("set"in Rn)||Rn.set(this,$n,"value")===void 0)&&(this.value=$n))})):Hn?(Rn=jn.valHooks[Hn.type]||jn.valHooks[Hn.nodeName.toLowerCase()],Rn&&"get"in Rn&&(Dn=Rn.get(Hn,"value"))!==void 0?Dn:(Dn=Hn.value,typeof Dn=="string"?Dn.replace(yd,""):Dn??"")):void 0}}),jn.extend({valHooks:{option:{get:function(En){var Rn=jn.find.attr(En,"value");return Rn??rc(jn.text(En))}},select:{get:function(En){var Rn,Dn,Ln,Hn=En.options,zn=En.selectedIndex,$n=En.type==="select-one",Jn=$n?null:[],Zn=$n?zn+1:Hn.length;for(zn<0?Ln=Zn:Ln=$n?zn:0;Ln<Zn;Ln++)if(Dn=Hn[Ln],(Dn.selected||Ln===zn)&&!Dn.disabled&&(!Dn.parentNode.disabled||!Un(Dn.parentNode,"optgroup"))){if(Rn=jn(Dn).val(),$n)return Rn;Jn.push(Rn)}return Jn},set:function(En,Rn){for(var Dn,Ln,Hn=En.options,zn=jn.makeArray(Rn),$n=Hn.length;$n--;)Ln=Hn[$n],(Ln.selected=jn.inArray(jn.valHooks.option.get(Ln),zn)>-1)&&(Dn=!0);return Dn||(En.selectedIndex=-1),zn}}}}),jn.each(["radio","checkbox"],function(){jn.valHooks[this]={set:function(En,Rn){if(Array.isArray(Rn))return En.checked=jn.inArray(jn(En).val(),Rn)>-1}},An.checkOn||(jn.valHooks[this].get=function(En){return En.getAttribute("value")===null?"on":En.value})});var su=rn.location,gh={guid:Date.now()},Dc=/\?/;jn.parseXML=function(En){var Rn,Dn;if(!En||typeof En!="string")return null;try{Rn=new rn.DOMParser().parseFromString(En,"text/xml")}catch{}return Dn=Rn&&Rn.getElementsByTagName("parsererror")[0],(!Rn||Dn)&&jn.error("Invalid XML: "+(Dn?jn.map(Dn.childNodes,function(Ln){return Ln.textContent}).join(`
`):En)),Rn};var Lu=/^(?:focusinfocus|focusoutblur)$/,Ou=function(En){En.stopPropagation()};jn.extend(jn.event,{trigger:function(En,Rn,Dn,Ln){var Hn,zn,$n,Jn,Zn,lr,yr,jr,mr=[Dn||Mn],Dr=vn.call(En,"type")?En.type:En,gs=vn.call(En,"namespace")?En.namespace.split("."):[];if(zn=jr=$n=Dn=Dn||Mn,!(Dn.nodeType===3||Dn.nodeType===8)&&!Lu.test(Dr+jn.event.triggered)&&(Dr.indexOf(".")>-1&&(gs=Dr.split("."),Dr=gs.shift(),gs.sort()),Zn=Dr.indexOf(":")<0&&"on"+Dr,En=En[jn.expando]?En:new jn.Event(Dr,typeof En=="object"&&En),En.isTrigger=Ln?2:3,En.namespace=gs.join("."),En.rnamespace=En.namespace?new RegExp("(^|\\.)"+gs.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,En.result=void 0,En.target||(En.target=Dn),Rn=Rn==null?[En]:jn.makeArray(Rn,[En]),yr=jn.event.special[Dr]||{},!(!Ln&&yr.trigger&&yr.trigger.apply(Dn,Rn)===!1))){if(!Ln&&!yr.noBubble&&!kn(Dn)){for(Jn=yr.delegateType||Dr,Lu.test(Jn+Dr)||(zn=zn.parentNode);zn;zn=zn.parentNode)mr.push(zn),$n=zn;$n===(Dn.ownerDocument||Mn)&&mr.push($n.defaultView||$n.parentWindow||rn)}for(Hn=0;(zn=mr[Hn++])&&!En.isPropagationStopped();)jr=zn,En.type=Hn>1?Jn:yr.bindType||Dr,lr=(Rr.get(zn,"events")||Object.create(null))[En.type]&&Rr.get(zn,"handle"),lr&&lr.apply(zn,Rn),lr=Zn&&zn[Zn],lr&&lr.apply&&Xl(zn)&&(En.result=lr.apply(zn,Rn),En.result===!1&&En.preventDefault());return En.type=Dr,!Ln&&!En.isDefaultPrevented()&&(!yr._default||yr._default.apply(mr.pop(),Rn)===!1)&&Xl(Dn)&&Zn&&Cn(Dn[Dr])&&!kn(Dn)&&($n=Dn[Zn],$n&&(Dn[Zn]=null),jn.event.triggered=Dr,En.isPropagationStopped()&&jr.addEventListener(Dr,Ou),Dn[Dr](),En.isPropagationStopped()&&jr.removeEventListener(Dr,Ou),jn.event.triggered=void 0,$n&&(Dn[Zn]=$n)),En.result}},simulate:function(En,Rn,Dn){var Ln=jn.extend(new jn.Event,Dn,{type:En,isSimulated:!0});jn.event.trigger(Ln,null,Rn)}}),jn.fn.extend({trigger:function(En,Rn){return this.each(function(){jn.event.trigger(En,Rn,this)})},triggerHandler:function(En,Rn){var Dn=this[0];if(Dn)return jn.event.trigger(En,Rn,Dn,!0)}});var Tc=/\[\]$/,ac=/\r?\n/g,xh=/^(?:submit|button|image|reset|file)$/i,wd=/^(?:input|select|textarea|keygen)/i;function Iu(En,Rn,Dn,Ln){var Hn;if(Array.isArray(Rn))jn.each(Rn,function(zn,$n){Dn||Tc.test(En)?Ln(En,$n):Iu(En+"["+(typeof $n=="object"&&$n!=null?zn:"")+"]",$n,Dn,Ln)});else if(!Dn&&Pn(Rn)==="object")for(Hn in Rn)Iu(En+"["+Hn+"]",Rn[Hn],Dn,Ln);else Ln(En,Rn)}jn.param=function(En,Rn){var Dn,Ln=[],Hn=function(zn,$n){var Jn=Cn($n)?$n():$n;Ln[Ln.length]=encodeURIComponent(zn)+"="+encodeURIComponent(Jn??"")};if(En==null)return"";if(Array.isArray(En)||En.jquery&&!jn.isPlainObject(En))jn.each(En,function(){Hn(this.name,this.value)});else for(Dn in En)Iu(Dn,En[Dn],Rn,Hn);return Ln.join("&")},jn.fn.extend({serialize:function(){return jn.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var En=jn.prop(this,"elements");return En?jn.makeArray(En):this}).filter(function(){var En=this.type;return this.name&&!jn(this).is(":disabled")&&wd.test(this.nodeName)&&!xh.test(En)&&(this.checked||!ao.test(En))}).map(function(En,Rn){var Dn=jn(this).val();return Dn==null?null:Array.isArray(Dn)?jn.map(Dn,function(Ln){return{name:Rn.name,value:Ln.replace(ac,`\r
`)}}):{name:Rn.name,value:Dn.replace(ac,`\r
`)}}).get()}});var lu=/%20/g,Ed=/#.*$/,ou=/([?&])_=[^&]*/,Vo=/^(.*?):[ \t]*([^\r\n]*)$/mg,Ad=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Pu=/^(?:GET|HEAD)$/,vh=/^\/\//,cu={},Nc={},Cd="*/".concat("*"),wl=Mn.createElement("a");wl.href=su.href;function Wo(En){return function(Rn,Dn){typeof Rn!="string"&&(Dn=Rn,Rn="*");var Ln,Hn=0,zn=Rn.toLowerCase().match(Wr)||[];if(Cn(Dn))for(;Ln=zn[Hn++];)Ln[0]==="+"?(Ln=Ln.slice(1)||"*",(En[Ln]=En[Ln]||[]).unshift(Dn)):(En[Ln]=En[Ln]||[]).push(Dn)}}function uu(En,Rn,Dn,Ln){var Hn={},zn=En===Nc;function $n(Jn){var Zn;return Hn[Jn]=!0,jn.each(En[Jn]||[],function(lr,yr){var jr=yr(Rn,Dn,Ln);if(typeof jr=="string"&&!zn&&!Hn[jr])return Rn.dataTypes.unshift(jr),$n(jr),!1;if(zn)return!(Zn=jr)}),Zn}return $n(Rn.dataTypes[0])||!Hn["*"]&&$n("*")}function ic(En,Rn){var Dn,Ln,Hn=jn.ajaxSettings.flatOptions||{};for(Dn in Rn)Rn[Dn]!==void 0&&((Hn[Dn]?En:Ln||(Ln={}))[Dn]=Rn[Dn]);return Ln&&jn.extend(!0,En,Ln),En}function Ep(En,Rn,Dn){for(var Ln,Hn,zn,$n,Jn=En.contents,Zn=En.dataTypes;Zn[0]==="*";)Zn.shift(),Ln===void 0&&(Ln=En.mimeType||Rn.getResponseHeader("Content-Type"));if(Ln){for(Hn in Jn)if(Jn[Hn]&&Jn[Hn].test(Ln)){Zn.unshift(Hn);break}}if(Zn[0]in Dn)zn=Zn[0];else{for(Hn in Dn){if(!Zn[0]||En.converters[Hn+" "+Zn[0]]){zn=Hn;break}$n||($n=Hn)}zn=zn||$n}if(zn)return zn!==Zn[0]&&Zn.unshift(zn),Dn[zn]}function jd(En,Rn,Dn,Ln){var Hn,zn,$n,Jn,Zn,lr={},yr=En.dataTypes.slice();if(yr[1])for($n in En.converters)lr[$n.toLowerCase()]=En.converters[$n];for(zn=yr.shift();zn;)if(En.responseFields[zn]&&(Dn[En.responseFields[zn]]=Rn),!Zn&&Ln&&En.dataFilter&&(Rn=En.dataFilter(Rn,En.dataType)),Zn=zn,zn=yr.shift(),zn){if(zn==="*")zn=Zn;else if(Zn!=="*"&&Zn!==zn){if($n=lr[Zn+" "+zn]||lr["* "+zn],!$n){for(Hn in lr)if(Jn=Hn.split(" "),Jn[1]===zn&&($n=lr[Zn+" "+Jn[0]]||lr["* "+Jn[0]],$n)){$n===!0?$n=lr[Hn]:lr[Hn]!==!0&&(zn=Jn[0],yr.unshift(Jn[1]));break}}if($n!==!0)if($n&&En.throws)Rn=$n(Rn);else try{Rn=$n(Rn)}catch(jr){return{state:"parsererror",error:$n?jr:"No conversion from "+Zn+" to "+zn}}}}return{state:"success",data:Rn}}jn.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:su.href,type:"GET",isLocal:Ad.test(su.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Cd,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":jn.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(En,Rn){return Rn?ic(ic(En,jn.ajaxSettings),Rn):ic(jn.ajaxSettings,En)},ajaxPrefilter:Wo(cu),ajaxTransport:Wo(Nc),ajax:function(En,Rn){typeof En=="object"&&(Rn=En,En=void 0),Rn=Rn||{};var Dn,Ln,Hn,zn,$n,Jn,Zn,lr,yr,jr,mr=jn.ajaxSetup({},Rn),Dr=mr.context||mr,gs=mr.context&&(Dr.nodeType||Dr.jquery)?jn(Dr):jn.event,Rs=jn.Deferred(),ws=jn.Callbacks("once memory"),gl=mr.statusCode||{},ul={},lo={},oo="canceled",Cs={readyState:0,getResponseHeader:function(Ms){var Ks;if(Zn){if(!zn)for(zn={};Ks=Vo.exec(Hn);)zn[Ks[1].toLowerCase()+" "]=(zn[Ks[1].toLowerCase()+" "]||[]).concat(Ks[2]);Ks=zn[Ms.toLowerCase()+" "]}return Ks==null?null:Ks.join(", ")},getAllResponseHeaders:function(){return Zn?Hn:null},setRequestHeader:function(Ms,Ks){return Zn==null&&(Ms=lo[Ms.toLowerCase()]=lo[Ms.toLowerCase()]||Ms,ul[Ms]=Ks),this},overrideMimeType:function(Ms){return Zn==null&&(mr.mimeType=Ms),this},statusCode:function(Ms){var Ks;if(Ms)if(Zn)Cs.always(Ms[Cs.status]);else for(Ks in Ms)gl[Ks]=[gl[Ks],Ms[Ks]];return this},abort:function(Ms){var Ks=Ms||oo;return Dn&&Dn.abort(Ks),sc(0,Ks),this}};if(Rs.promise(Cs),mr.url=((En||mr.url||su.href)+"").replace(vh,su.protocol+"//"),mr.type=Rn.method||Rn.type||mr.method||mr.type,mr.dataTypes=(mr.dataType||"*").toLowerCase().match(Wr)||[""],mr.crossDomain==null){Jn=Mn.createElement("a");try{Jn.href=mr.url,Jn.href=Jn.href,mr.crossDomain=wl.protocol+"//"+wl.host!=Jn.protocol+"//"+Jn.host}catch{mr.crossDomain=!0}}if(mr.data&&mr.processData&&typeof mr.data!="string"&&(mr.data=jn.param(mr.data,mr.traditional)),uu(cu,mr,Rn,Cs),Zn)return Cs;lr=jn.event&&mr.global,lr&&jn.active++===0&&jn.event.trigger("ajaxStart"),mr.type=mr.type.toUpperCase(),mr.hasContent=!Pu.test(mr.type),Ln=mr.url.replace(Ed,""),mr.hasContent?mr.data&&mr.processData&&(mr.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(mr.data=mr.data.replace(lu,"+")):(jr=mr.url.slice(Ln.length),mr.data&&(mr.processData||typeof mr.data=="string")&&(Ln+=(Dc.test(Ln)?"&":"?")+mr.data,delete mr.data),mr.cache===!1&&(Ln=Ln.replace(ou,"$1"),jr=(Dc.test(Ln)?"&":"?")+"_="+gh.guid+++jr),mr.url=Ln+jr),mr.ifModified&&(jn.lastModified[Ln]&&Cs.setRequestHeader("If-Modified-Since",jn.lastModified[Ln]),jn.etag[Ln]&&Cs.setRequestHeader("If-None-Match",jn.etag[Ln])),(mr.data&&mr.hasContent&&mr.contentType!==!1||Rn.contentType)&&Cs.setRequestHeader("Content-Type",mr.contentType),Cs.setRequestHeader("Accept",mr.dataTypes[0]&&mr.accepts[mr.dataTypes[0]]?mr.accepts[mr.dataTypes[0]]+(mr.dataTypes[0]!=="*"?", "+Cd+"; q=0.01":""):mr.accepts["*"]);for(yr in mr.headers)Cs.setRequestHeader(yr,mr.headers[yr]);if(mr.beforeSend&&(mr.beforeSend.call(Dr,Cs,mr)===!1||Zn))return Cs.abort();if(oo="abort",ws.add(mr.complete),Cs.done(mr.success),Cs.fail(mr.error),Dn=uu(Nc,mr,Rn,Cs),!Dn)sc(-1,"No Transport");else{if(Cs.readyState=1,lr&&gs.trigger("ajaxSend",[Cs,mr]),Zn)return Cs;mr.async&&mr.timeout>0&&($n=rn.setTimeout(function(){Cs.abort("timeout")},mr.timeout));try{Zn=!1,Dn.send(ul,sc)}catch(Ms){if(Zn)throw Ms;sc(-1,Ms)}}function sc(Ms,Ks,lc,oc){var co,Lc,Zl,So,Ro,Bl=Ks;Zn||(Zn=!0,$n&&rn.clearTimeout($n),Dn=void 0,Hn=oc||"",Cs.readyState=Ms>0?4:0,co=Ms>=200&&Ms<300||Ms===304,lc&&(So=Ep(mr,Cs,lc)),!co&&jn.inArray("script",mr.dataTypes)>-1&&jn.inArray("json",mr.dataTypes)<0&&(mr.converters["text script"]=function(){}),So=jd(mr,So,Cs,co),co?(mr.ifModified&&(Ro=Cs.getResponseHeader("Last-Modified"),Ro&&(jn.lastModified[Ln]=Ro),Ro=Cs.getResponseHeader("etag"),Ro&&(jn.etag[Ln]=Ro)),Ms===204||mr.type==="HEAD"?Bl="nocontent":Ms===304?Bl="notmodified":(Bl=So.state,Lc=So.data,Zl=So.error,co=!Zl)):(Zl=Bl,(Ms||!Bl)&&(Bl="error",Ms<0&&(Ms=0))),Cs.status=Ms,Cs.statusText=(Ks||Bl)+"",co?Rs.resolveWith(Dr,[Lc,Bl,Cs]):Rs.rejectWith(Dr,[Cs,Bl,Zl]),Cs.statusCode(gl),gl=void 0,lr&&gs.trigger(co?"ajaxSuccess":"ajaxError",[Cs,mr,co?Lc:Zl]),ws.fireWith(Dr,[Cs,Bl]),lr&&(gs.trigger("ajaxComplete",[Cs,mr]),--jn.active||jn.event.trigger("ajaxStop")))}return Cs},getJSON:function(En,Rn,Dn){return jn.get(En,Rn,Dn,"json")},getScript:function(En,Rn){return jn.get(En,void 0,Rn,"script")}}),jn.each(["get","post"],function(En,Rn){jn[Rn]=function(Dn,Ln,Hn,zn){return Cn(Ln)&&(zn=zn||Hn,Hn=Ln,Ln=void 0),jn.ajax(jn.extend({url:Dn,type:Rn,dataType:zn,data:Ln,success:Hn},jn.isPlainObject(Dn)&&Dn))}}),jn.ajaxPrefilter(function(En){var Rn;for(Rn in En.headers)Rn.toLowerCase()==="content-type"&&(En.contentType=En.headers[Rn]||"")}),jn._evalUrl=function(En,Rn,Dn){return jn.ajax({url:En,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(Ln){jn.globalEval(Ln,Rn,Dn)}})},jn.fn.extend({wrapAll:function(En){var Rn;return this[0]&&(Cn(En)&&(En=En.call(this[0])),Rn=jn(En,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&Rn.insertBefore(this[0]),Rn.map(function(){for(var Dn=this;Dn.firstElementChild;)Dn=Dn.firstElementChild;return Dn}).append(this)),this},wrapInner:function(En){return Cn(En)?this.each(function(Rn){jn(this).wrapInner(En.call(this,Rn))}):this.each(function(){var Rn=jn(this),Dn=Rn.contents();Dn.length?Dn.wrapAll(En):Rn.append(En)})},wrap:function(En){var Rn=Cn(En);return this.each(function(Dn){jn(this).wrapAll(Rn?En.call(this,Dn):En)})},unwrap:function(En){return this.parent(En).not("body").each(function(){jn(this).replaceWith(this.childNodes)}),this}}),jn.expr.pseudos.hidden=function(En){return!jn.expr.pseudos.visible(En)},jn.expr.pseudos.visible=function(En){return!!(En.offsetWidth||En.offsetHeight||En.getClientRects().length)},jn.ajaxSettings.xhr=function(){try{return new rn.XMLHttpRequest}catch{}};var Sd={0:200,1223:204},jo=jn.ajaxSettings.xhr();An.cors=!!jo&&"withCredentials"in jo,An.ajax=jo=!!jo,jn.ajaxTransport(function(En){var Rn,Dn;if(An.cors||jo&&!En.crossDomain)return{send:function(Ln,Hn){var zn,$n=En.xhr();if($n.open(En.type,En.url,En.async,En.username,En.password),En.xhrFields)for(zn in En.xhrFields)$n[zn]=En.xhrFields[zn];En.mimeType&&$n.overrideMimeType&&$n.overrideMimeType(En.mimeType),!En.crossDomain&&!Ln["X-Requested-With"]&&(Ln["X-Requested-With"]="XMLHttpRequest");for(zn in Ln)$n.setRequestHeader(zn,Ln[zn]);Rn=function(Jn){return function(){Rn&&(Rn=Dn=$n.onload=$n.onerror=$n.onabort=$n.ontimeout=$n.onreadystatechange=null,Jn==="abort"?$n.abort():Jn==="error"?typeof $n.status!="number"?Hn(0,"error"):Hn($n.status,$n.statusText):Hn(Sd[$n.status]||$n.status,$n.statusText,($n.responseType||"text")!=="text"||typeof $n.responseText!="string"?{binary:$n.response}:{text:$n.responseText},$n.getAllResponseHeaders()))}},$n.onload=Rn(),Dn=$n.onerror=$n.ontimeout=Rn("error"),$n.onabort!==void 0?$n.onabort=Dn:$n.onreadystatechange=function(){$n.readyState===4&&rn.setTimeout(function(){Rn&&Dn()})},Rn=Rn("abort");try{$n.send(En.hasContent&&En.data||null)}catch(Jn){if(Rn)throw Jn}},abort:function(){Rn&&Rn()}}}),jn.ajaxPrefilter(function(En){En.crossDomain&&(En.contents.script=!1)}),jn.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(En){return jn.globalEval(En),En}}}),jn.ajaxPrefilter("script",function(En){En.cache===void 0&&(En.cache=!1),En.crossDomain&&(En.type="GET")}),jn.ajaxTransport("script",function(En){if(En.crossDomain||En.scriptAttrs){var Rn,Dn;return{send:function(Ln,Hn){Rn=jn("<script>").attr(En.scriptAttrs||{}).prop({charset:En.scriptCharset,src:En.url}).on("load error",Dn=function(zn){Rn.remove(),Dn=null,zn&&Hn(zn.type==="error"?404:200,zn.type)}),Mn.head.appendChild(Rn[0])},abort:function(){Dn&&Dn()}}}});var du=[],Bu=/(=)\?(?=&|$)|\?\?/;jn.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var En=du.pop()||jn.expando+"_"+gh.guid++;return this[En]=!0,En}}),jn.ajaxPrefilter("json jsonp",function(En,Rn,Dn){var Ln,Hn,zn,$n=En.jsonp!==!1&&(Bu.test(En.url)?"url":typeof En.data=="string"&&(En.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Bu.test(En.data)&&"data");if($n||En.dataTypes[0]==="jsonp")return Ln=En.jsonpCallback=Cn(En.jsonpCallback)?En.jsonpCallback():En.jsonpCallback,$n?En[$n]=En[$n].replace(Bu,"$1"+Ln):En.jsonp!==!1&&(En.url+=(Dc.test(En.url)?"&":"?")+En.jsonp+"="+Ln),En.converters["script json"]=function(){return zn||jn.error(Ln+" was not called"),zn[0]},En.dataTypes[0]="json",Hn=rn[Ln],rn[Ln]=function(){zn=arguments},Dn.always(function(){Hn===void 0?jn(rn).removeProp(Ln):rn[Ln]=Hn,En[Ln]&&(En.jsonpCallback=Rn.jsonpCallback,du.push(Ln)),zn&&Cn(Hn)&&Hn(zn[0]),zn=Hn=void 0}),"script"}),An.createHTMLDocument=function(){var En=Mn.implementation.createHTMLDocument("").body;return En.innerHTML="<form></form><form></form>",En.childNodes.length===2}(),jn.parseHTML=function(En,Rn,Dn){if(typeof En!="string")return[];typeof Rn=="boolean"&&(Dn=Rn,Rn=!1);var Ln,Hn,zn;return Rn||(An.createHTMLDocument?(Rn=Mn.implementation.createHTMLDocument(""),Ln=Rn.createElement("base"),Ln.href=Mn.location.href,Rn.head.appendChild(Ln)):Rn=Mn),Hn=_r.exec(En),zn=!Dn&&[],Hn?[Rn.createElement(Hn[1])]:(Hn=Hr([En],Rn,zn),zn&&zn.length&&jn(zn).remove(),jn.merge([],Hn.childNodes))},jn.fn.load=function(En,Rn,Dn){var Ln,Hn,zn,$n=this,Jn=En.indexOf(" ");return Jn>-1&&(Ln=rc(En.slice(Jn)),En=En.slice(0,Jn)),Cn(Rn)?(Dn=Rn,Rn=void 0):Rn&&typeof Rn=="object"&&(Hn="POST"),$n.length>0&&jn.ajax({url:En,type:Hn||"GET",dataType:"html",data:Rn}).done(function(Zn){zn=arguments,$n.html(Ln?jn("<div>").append(jn.parseHTML(Zn)).find(Ln):Zn)}).always(Dn&&function(Zn,lr){$n.each(function(){Dn.apply(this,zn||[Zn.responseText,lr,Zn])})}),this},jn.expr.pseudos.animated=function(En){return jn.grep(jn.timers,function(Rn){return En===Rn.elem}).length},jn.offset={setOffset:function(En,Rn,Dn){var Ln,Hn,zn,$n,Jn,Zn,lr,yr=jn.css(En,"position"),jr=jn(En),mr={};yr==="static"&&(En.style.position="relative"),Jn=jr.offset(),zn=jn.css(En,"top"),Zn=jn.css(En,"left"),lr=(yr==="absolute"||yr==="fixed")&&(zn+Zn).indexOf("auto")>-1,lr?(Ln=jr.position(),$n=Ln.top,Hn=Ln.left):($n=parseFloat(zn)||0,Hn=parseFloat(Zn)||0),Cn(Rn)&&(Rn=Rn.call(En,Dn,jn.extend({},Jn))),Rn.top!=null&&(mr.top=Rn.top-Jn.top+$n),Rn.left!=null&&(mr.left=Rn.left-Jn.left+Hn),"using"in Rn?Rn.using.call(En,mr):jr.css(mr)}},jn.fn.extend({offset:function(En){if(arguments.length)return En===void 0?this:this.each(function(Hn){jn.offset.setOffset(this,En,Hn)});var Rn,Dn,Ln=this[0];if(Ln)return Ln.getClientRects().length?(Rn=Ln.getBoundingClientRect(),Dn=Ln.ownerDocument.defaultView,{top:Rn.top+Dn.pageYOffset,left:Rn.left+Dn.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var En,Rn,Dn,Ln=this[0],Hn={top:0,left:0};if(jn.css(Ln,"position")==="fixed")Rn=Ln.getBoundingClientRect();else{for(Rn=this.offset(),Dn=Ln.ownerDocument,En=Ln.offsetParent||Dn.documentElement;En&&(En===Dn.body||En===Dn.documentElement)&&jn.css(En,"position")==="static";)En=En.parentNode;En&&En!==Ln&&En.nodeType===1&&(Hn=jn(En).offset(),Hn.top+=jn.css(En,"borderTopWidth",!0),Hn.left+=jn.css(En,"borderLeftWidth",!0))}return{top:Rn.top-Hn.top-jn.css(Ln,"marginTop",!0),left:Rn.left-Hn.left-jn.css(Ln,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var En=this.offsetParent;En&&jn.css(En,"position")==="static";)En=En.offsetParent;return En||zs})}}),jn.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(En,Rn){var Dn=Rn==="pageYOffset";jn.fn[En]=function(Ln){return sl(this,function(Hn,zn,$n){var Jn;if(kn(Hn)?Jn=Hn:Hn.nodeType===9&&(Jn=Hn.defaultView),$n===void 0)return Jn?Jn[Rn]:Hn[zn];Jn?Jn.scrollTo(Dn?Jn.pageXOffset:$n,Dn?$n:Jn.pageYOffset):Hn[zn]=$n},En,Ln,arguments.length)}}),jn.each(["top","left"],function(En,Rn){jn.cssHooks[Rn]=cl(An.pixelPosition,function(Dn,Ln){if(Ln)return Ln=so(Dn,Rn),Ao.test(Ln)?jn(Dn).position()[Rn]+"px":Ln})}),jn.each({Height:"height",Width:"width"},function(En,Rn){jn.each({padding:"inner"+En,content:Rn,"":"outer"+En},function(Dn,Ln){jn.fn[Ln]=function(Hn,zn){var $n=arguments.length&&(Dn||typeof Hn!="boolean"),Jn=Dn||(Hn===!0||zn===!0?"margin":"border");return sl(this,function(Zn,lr,yr){var jr;return kn(Zn)?Ln.indexOf("outer")===0?Zn["inner"+En]:Zn.document.documentElement["client"+En]:Zn.nodeType===9?(jr=Zn.documentElement,Math.max(Zn.body["scroll"+En],jr["scroll"+En],Zn.body["offset"+En],jr["offset"+En],jr["client"+En])):yr===void 0?jn.css(Zn,lr,Jn):jn.style(Zn,lr,yr,Jn)},Rn,$n?Hn:void 0,$n)}})}),jn.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(En,Rn){jn.fn[Rn]=function(Dn){return this.on(Rn,Dn)}}),jn.fn.extend({bind:function(En,Rn,Dn){return this.on(En,null,Rn,Dn)},unbind:function(En,Rn){return this.off(En,null,Rn)},delegate:function(En,Rn,Dn,Ln){return this.on(Rn,En,Dn,Ln)},undelegate:function(En,Rn,Dn){return arguments.length===1?this.off(En,"**"):this.off(Rn,En||"**",Dn)},hover:function(En,Rn){return this.on("mouseenter",En).on("mouseleave",Rn||En)}}),jn.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(En,Rn){jn.fn[Rn]=function(Dn,Ln){return arguments.length>0?this.on(Rn,null,Dn,Ln):this.trigger(Rn)}});var Ap=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;jn.proxy=function(En,Rn){var Dn,Ln,Hn;if(typeof Rn=="string"&&(Dn=En[Rn],Rn=En,En=Dn),!!Cn(En))return Ln=cn.call(arguments,2),Hn=function(){return En.apply(Rn||this,Ln.concat(cn.call(arguments)))},Hn.guid=En.guid=En.guid||jn.guid++,Hn},jn.holdReady=function(En){En?jn.readyWait++:jn.ready(!0)},jn.isArray=Array.isArray,jn.parseJSON=JSON.parse,jn.nodeName=Un,jn.isFunction=Cn,jn.isWindow=kn,jn.camelCase=kl,jn.type=Pn,jn.now=Date.now,jn.isNumeric=function(En){var Rn=jn.type(En);return(Rn==="number"||Rn==="string")&&!isNaN(En-parseFloat(En))},jn.trim=function(En){return En==null?"":(En+"").replace(Ap,"$1")};var Cp=rn.jQuery,jp=rn.$;return jn.noConflict=function(En){return rn.$===jn&&(rn.$=jp),En&&rn.jQuery===jn&&(rn.jQuery=Cp),jn},typeof an>"u"&&(rn.jQuery=rn.$=jn),jn})}(jquery$1)),jquery$1.exports}var hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(module,exports){(function(rn,an){module.exports=an(requireJquery(),requireReact())})(self,function(__WEBPACK_EXTERNAL_MODULE_jquery__,__WEBPACK_EXTERNAL_MODULE_react__){return(()=>{var __webpack_modules__={"./src/components/MapContainer/MapContainer.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "MapContainer": () => (/* binding */ MapContainer)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "../../node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _styles_module_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./styles.module.scss */ "./src/components/MapContainer/styles.module.scss");



const MapContainer = ({
  containerRef,
  className,
  style
}) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
  style: style,
  className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(_styles_module_scss__WEBPACK_IMPORTED_MODULE_2__["default"].root, className),
  ref: containerRef
});

//# sourceURL=webpack://@react-jvectormap/core/./src/components/MapContainer/MapContainer.tsx?`)},"./src/components/MapContainer/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "MapContainer": () => (/* reexport safe */ _MapContainer__WEBPACK_IMPORTED_MODULE_0__.MapContainer)
/* harmony export */ });
/* harmony import */ var _MapContainer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MapContainer */ "./src/components/MapContainer/MapContainer.tsx");


//# sourceURL=webpack://@react-jvectormap/core/./src/components/MapContainer/index.ts?`)},"./src/components/MultiMap/MultiMap.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "MultiMap": () => (/* binding */ MultiMap)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! jquery */ "jquery");
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _MapContainer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../MapContainer */ "./src/components/MapContainer/index.ts");



const MultiMap = ({
  mapRef,
  style,
  className,
  ...props
}) => {
  const containerRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)(() => {
    const mapContainer = containerRef.current;
    const {
      main,
      ...rest
    } = props;
    const {
      map: {
        name,
        content
      },
      ...restMain
    } = main;
    jquery__WEBPACK_IMPORTED_MODULE_1___default().fn.vectorMap("addMap", name, content);

    if (mapContainer) {
      jquery__WEBPACK_IMPORTED_MODULE_1___default()(mapContainer).multiMap({
        main: { ...restMain,
          map: name
        },
        ...rest
      });
    }
  }, [mapRef, props]);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_MapContainer__WEBPACK_IMPORTED_MODULE_2__.MapContainer, {
    style: style,
    className: className,
    containerRef: containerRef
  });
};

//# sourceURL=webpack://@react-jvectormap/core/./src/components/MultiMap/MultiMap.tsx?`)},"./src/components/MultiMap/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "MultiMap": () => (/* reexport safe */ _MultiMap__WEBPACK_IMPORTED_MODULE_0__.MultiMap)
/* harmony export */ });
/* harmony import */ var _MultiMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MultiMap */ "./src/components/MultiMap/MultiMap.tsx");


//# sourceURL=webpack://@react-jvectormap/core/./src/components/MultiMap/index.ts?`)},"./src/components/VectorMap/VectorMap.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "VectorMap": () => (/* binding */ VectorMap)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! jquery */ "jquery");
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _MapContainer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../MapContainer */ "./src/components/MapContainer/index.ts");



const VectorMap = ({
  map,
  mapRef,
  style,
  className,
  series,
  ...props
}) => {
  const containerRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)(() => {
    const mapContainer = containerRef.current;

    if (!map) {
      console.error("[react-jvectormap]: no map was loaded!");
    }

    const {
      name,
      content
    } = map;
    jquery__WEBPACK_IMPORTED_MODULE_1___default().fn.vectorMap("addMap", name, content);

    if (mapContainer) {
      jquery__WEBPACK_IMPORTED_MODULE_1___default()(mapContainer).vectorMap({
        map: name,
        series,
        ...props
      });

      if (map && (mapRef === null || mapRef === void 0 ? void 0 : mapRef.current) === null) {
        mapRef.current = jquery__WEBPACK_IMPORTED_MODULE_1___default()(mapContainer).vectorMap("get", "mapObject");
      }
    }
  }, [map, mapRef, props, series]);
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
    const mapContainer = containerRef.current;

    if (series && mapContainer) {
      const map = jquery__WEBPACK_IMPORTED_MODULE_1___default()(mapContainer).vectorMap("get", "mapObject");
      const {
        markers = [],
        regions = []
      } = series;
      regions.forEach(({
        values
      }, index) => {
        var _map$series;

        if (values && (_map$series = map.series) !== null && _map$series !== void 0 && _map$series.regions) {
          var _map$series2, _map$series2$regions$;

          (_map$series2 = map.series) === null || _map$series2 === void 0 ? void 0 : (_map$series2$regions$ = _map$series2.regions[index]) === null || _map$series2$regions$ === void 0 ? void 0 : _map$series2$regions$.clearAndSet(values);
        }
      });
      markers.forEach(({
        values
      }, index) => {
        var _map$series3;

        if (values && (_map$series3 = map.series) !== null && _map$series3 !== void 0 && _map$series3.markers) {
          var _map$series4, _map$series4$markers$;

          (_map$series4 = map.series) === null || _map$series4 === void 0 ? void 0 : (_map$series4$markers$ = _map$series4.markers[index]) === null || _map$series4$markers$ === void 0 ? void 0 : _map$series4$markers$.clearAndSet(values);
        }
      });
    }
  }, [series]);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_MapContainer__WEBPACK_IMPORTED_MODULE_2__.MapContainer, {
    className: className,
    style: style,
    containerRef: containerRef
  });
};

//# sourceURL=webpack://@react-jvectormap/core/./src/components/VectorMap/VectorMap.tsx?`)},"./src/components/VectorMap/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "VectorMap": () => (/* reexport safe */ _VectorMap__WEBPACK_IMPORTED_MODULE_0__.VectorMap)
/* harmony export */ });
/* harmony import */ var _VectorMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VectorMap */ "./src/components/VectorMap/VectorMap.tsx");


//# sourceURL=webpack://@react-jvectormap/core/./src/components/VectorMap/index.ts?`)},"./src/components/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "VectorMap": () => (/* reexport safe */ _VectorMap__WEBPACK_IMPORTED_MODULE_0__.VectorMap),
/* harmony export */   "MultiMap": () => (/* reexport safe */ _MultiMap__WEBPACK_IMPORTED_MODULE_1__.MultiMap)
/* harmony export */ });
/* harmony import */ var _VectorMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VectorMap */ "./src/components/VectorMap/index.ts");
/* harmony import */ var _MultiMap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MultiMap */ "./src/components/MultiMap/index.ts");



//# sourceURL=webpack://@react-jvectormap/core/./src/components/index.ts?`)},"./src/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "MultiMap": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_2__.MultiMap),
/* harmony export */   "VectorMap": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_2__.VectorMap),
/* harmony export */   "AttributeSeriesBuilder": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.AttributeSeriesBuilder),
/* harmony export */   "LabelsBuilder": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.LabelsBuilder),
/* harmony export */   "LabelsPropsBuilder": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.LabelsPropsBuilder),
/* harmony export */   "MarkerBuilder": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.MarkerBuilder),
/* harmony export */   "MultiMapBuilder": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.MultiMapBuilder),
/* harmony export */   "SeriesBuilder": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.SeriesBuilder),
/* harmony export */   "StyleBuilder": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.StyleBuilder),
/* harmony export */   "VectorMapBuilder": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.VectorMapBuilder)
/* harmony export */ });
/* harmony import */ var _react_jvectormap_lib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-jvectormap/lib */ "../jvectormap/index.js");
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! jquery */ "jquery");
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components */ "./src/components/index.ts");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./src/utils/index.ts");




(0,_react_jvectormap_lib__WEBPACK_IMPORTED_MODULE_0__.loadJVectorMap)((jquery__WEBPACK_IMPORTED_MODULE_1___default()));

//# sourceURL=webpack://@react-jvectormap/core/./src/index.ts?`)},"./src/utils/builders/AttributeSeriesBuilder.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AttributeSeriesBuilder": () => (/* binding */ AttributeSeriesBuilder)
/* harmony export */ });
class AttributeSeriesBuilder {
  constructor(attribute) {
    this.attribute = attribute;
  }
  /**
   *
   * @param value
   */


  setAttribute(value) {
    this.attribute = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setScale(value) {
    this.scale = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setValues(value) {
    this.values = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setNormalizeFunction(value) {
    this.normalizeFunction = value;
    return this;
  }

  build() {
    return {
      scale: this.scale,
      values: this.values,
      attribute: this.attribute,
      normalizeFunction: this.normalizeFunction
    };
  }

}

//# sourceURL=webpack://@react-jvectormap/core/./src/utils/builders/AttributeSeriesBuilder.ts?`)},"./src/utils/builders/LabelsBuilder.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LabelsBuilder": () => (/* binding */ LabelsBuilder)
/* harmony export */ });
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./src/utils/builders/utils.ts");

class LabelsBuilder {
  /**
   *
   * @param values
   */
  addMarkersLabelProps(...values) {
    if (!this.markers) {
      this.markers = [];
    }

    this.markers.push(...values);
    return this;
  }
  /**
   *
   * @param values
   */


  addRegionsLabelProps(...values) {
    if (!this.regions) {
      this.regions = [];
    }

    this.regions.push(...values);
    return this;
  }

  build() {
    return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.stripUndefinedValues)({
      markers: this.markers,
      regions: this.regions
    });
  }

}

//# sourceURL=webpack://@react-jvectormap/core/./src/utils/builders/LabelsBuilder.ts?`)},"./src/utils/builders/LabelsPropsBuilder.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LabelsPropsBuilder": () => (/* binding */ LabelsPropsBuilder)
/* harmony export */ });
class LabelsPropsBuilder {
  constructor(render, offsets) {
    this.render = render;
    this.offsets = offsets;
  }
  /**
   *
   * @param render
   */


  setRender(render) {
    this.render = render;
    return this;
  }
  /**
   *
   * @param offsets
   */


  setOffsets(offsets) {
    this.offsets = offsets;
    return this;
  }
  /**
   *
   */


  build() {
    return {
      render: this.render,
      offsets: this.offsets
    };
  }

}

//# sourceURL=webpack://@react-jvectormap/core/./src/utils/builders/LabelsPropsBuilder.ts?`)},"./src/utils/builders/MarkerBuilder.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "MarkerBuilder": () => (/* binding */ MarkerBuilder)
/* harmony export */ });
class MarkerBuilder {
  constructor(value) {
    this.name = value;
  }
  /**
   *
   * @param value
   */


  setName(value) {
    this.name = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setCoords(value) {
    this.latLng = undefined;
    this.coords = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setLatLng(value) {
    this.coords = undefined;
    this.latLng = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setStyle(value) {
    this.style = value;
    return this;
  }
  /**
   *
   */


  build() {
    const commonProps = {
      name: this.name,
      style: this.style
    };

    if (this.coords) {
      return { ...commonProps,
        coords: this.coords
      };
    } else if (this.latLng) {
      return { ...commonProps,
        latLng: this.latLng
      };
    }

    return { ...commonProps,
      latLng: [0, 0]
    };
  }

}

//# sourceURL=webpack://@react-jvectormap/core/./src/utils/builders/MarkerBuilder.ts?`)},"./src/utils/builders/MultiMapBuilder.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "MultiMapBuilder": () => (/* binding */ MultiMapBuilder)
/* harmony export */ });
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./src/utils/builders/utils.ts");

class MultiMapBuilder {
  constructor(mainMap, maxLevel = 1) {
    this.main = {
      map: mainMap
    };
    this.maxLevel = maxLevel;
  }
  /**
   *
   * @param value
   */


  setMainMap(value) {
    this.main.map = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setMaxLevel(value) {
    this.maxLevel = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setMapNameByCode(value) {
    this.mapNameByCode = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setUrlByCode(value) {
    this.mapUrlByCode = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setGetDrillDownMap(value) {
    this.getDrillDownMap = value;
    return this;
  }

  build() {
    const baseProps = {
      main: this.main,
      maxLevel: this.maxLevel
    };
    return { ...baseProps,
      ...(0,_utils__WEBPACK_IMPORTED_MODULE_0__.stripUndefinedValues)({
        mapNameByCode: this.mapNameByCode,
        mapUrlByCode: this.mapUrlByCode,
        getDrillDownMap: this.getDrillDownMap
      })
    };
  }

}

//# sourceURL=webpack://@react-jvectormap/core/./src/utils/builders/MultiMapBuilder.ts?`)},"./src/utils/builders/SeriesBuilder.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SeriesBuilder": () => (/* binding */ SeriesBuilder)
/* harmony export */ });
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./src/utils/builders/utils.ts");

class SeriesBuilder {
  /**
   *
   * @param values
   */
  addMarkersSeries(...values) {
    if (!this.markers) {
      this.markers = [];
    }

    this.markers.push(...values);
    return this;
  }
  /**
   *
   * @param values
   */


  addRegionsSeries(...values) {
    if (!this.regions) {
      this.regions = [];
    }

    this.regions.push(...values);
    return this;
  }

  build() {
    return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.stripUndefinedValues)({
      markers: this.markers,
      regions: this.regions
    });
  }

}

//# sourceURL=webpack://@react-jvectormap/core/./src/utils/builders/SeriesBuilder.ts?`)},"./src/utils/builders/StyleBuilder.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "StyleBuilder": () => (/* binding */ StyleBuilder)
/* harmony export */ });
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./src/utils/builders/utils.ts");

class StyleBuilder {
  /**
   *
   * @param value
   */
  setInitial(value) {
    this.initial = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setSelected(value) {
    this.selected = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setHover(value) {
    this.hover = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setSelectedHover(value) {
    this.selectedHover = value;
    return this;
  }

  build() {
    return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.stripUndefinedValues)({
      selected: this.selected,
      selectedHover: this.selectedHover,
      hover: this.hover,
      initial: this.initial
    });
  }

}

//# sourceURL=webpack://@react-jvectormap/core/./src/utils/builders/StyleBuilder.ts?`)},"./src/utils/builders/VectorMapBuilder.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "VectorMapBuilder": () => (/* binding */ VectorMapBuilder)
/* harmony export */ });
class VectorMapBuilder {
  selectedRegions = [];

  constructor(map) {
    this.map = map;
  }
  /**
   *
   * @param value
   */


  setMap(value) {
    this.map = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setBackgroundColor(value) {
    this.backgroundColor = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setZoomMin(value) {
    this.zoomMin = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setZoomMax(value) {
    this.zoomMax = value;
    return this;
  }
  /**
   *
   * @param marker
   */


  addMarker(marker) {
    if (!this.markers) {
      this.markers = [];
    }

    this.markers.push(marker);
    return this;
  }
  /**
   *
   * @param value
   */


  setMarkerStyle(value) {
    this.markerStyle = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setRegionStyle(value) {
    this.regionStyle = value;
    return this;
  }
  /**
   *
   * @param value
   * @private
   */


  setMarkersSelectable(value) {
    this.markersSelectable = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setMarkers(value) {
    this.markers = value;
    return this;
  }
  /**
   *
   * @private
   * @param value
   */


  setRegionsSelectable(value) {
    this.regionsSelectable = value;
    return this;
  }
  /**
   *
   * @private
   * @param value
   */


  setOnRegionTipShow(value) {
    this.onRegionTipShow = value;
    return this;
  }
  /**
   *
   * @param value
   */


  setSeries(value) {
    this.series = value;
    return this;
  }
  /**
   *
   * @param values
   */


  setLabels(values) {
    this.labels = values;
    return this;
  }
  /**
   *
   * @param value
   */


  setSelectedRegions(value) {
    this.selectedRegions = value;
    return this;
  }
  /**
   *
   */


  build() {
    return {
      map: this.map,
      series: this.series,
      backgroundColor: this.backgroundColor,
      zoomMax: this.zoomMax,
      zoomMin: this.zoomMin,
      markerStyle: this.markerStyle,
      regionStyle: this.regionStyle,
      markersSelectable: this.markersSelectable,
      regionsSelectable: this.regionsSelectable,
      markers: this.markers,
      labels: this.labels,
      selectedRegions: this.selectedRegions
    };
  }

}

//# sourceURL=webpack://@react-jvectormap/core/./src/utils/builders/VectorMapBuilder.ts?`)},"./src/utils/builders/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "VectorMapBuilder": () => (/* reexport safe */ _VectorMapBuilder__WEBPACK_IMPORTED_MODULE_0__.VectorMapBuilder),
/* harmony export */   "MarkerBuilder": () => (/* reexport safe */ _MarkerBuilder__WEBPACK_IMPORTED_MODULE_1__.MarkerBuilder),
/* harmony export */   "StyleBuilder": () => (/* reexport safe */ _StyleBuilder__WEBPACK_IMPORTED_MODULE_2__.StyleBuilder),
/* harmony export */   "AttributeSeriesBuilder": () => (/* reexport safe */ _AttributeSeriesBuilder__WEBPACK_IMPORTED_MODULE_3__.AttributeSeriesBuilder),
/* harmony export */   "SeriesBuilder": () => (/* reexport safe */ _SeriesBuilder__WEBPACK_IMPORTED_MODULE_4__.SeriesBuilder),
/* harmony export */   "LabelsBuilder": () => (/* reexport safe */ _LabelsBuilder__WEBPACK_IMPORTED_MODULE_5__.LabelsBuilder),
/* harmony export */   "LabelsPropsBuilder": () => (/* reexport safe */ _LabelsPropsBuilder__WEBPACK_IMPORTED_MODULE_6__.LabelsPropsBuilder),
/* harmony export */   "MultiMapBuilder": () => (/* reexport safe */ _MultiMapBuilder__WEBPACK_IMPORTED_MODULE_7__.MultiMapBuilder)
/* harmony export */ });
/* harmony import */ var _VectorMapBuilder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VectorMapBuilder */ "./src/utils/builders/VectorMapBuilder.ts");
/* harmony import */ var _MarkerBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MarkerBuilder */ "./src/utils/builders/MarkerBuilder.ts");
/* harmony import */ var _StyleBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StyleBuilder */ "./src/utils/builders/StyleBuilder.ts");
/* harmony import */ var _AttributeSeriesBuilder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AttributeSeriesBuilder */ "./src/utils/builders/AttributeSeriesBuilder.ts");
/* harmony import */ var _SeriesBuilder__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SeriesBuilder */ "./src/utils/builders/SeriesBuilder.ts");
/* harmony import */ var _LabelsBuilder__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./LabelsBuilder */ "./src/utils/builders/LabelsBuilder.ts");
/* harmony import */ var _LabelsPropsBuilder__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./LabelsPropsBuilder */ "./src/utils/builders/LabelsPropsBuilder.ts");
/* harmony import */ var _MultiMapBuilder__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./MultiMapBuilder */ "./src/utils/builders/MultiMapBuilder.ts");









//# sourceURL=webpack://@react-jvectormap/core/./src/utils/builders/index.ts?`)},"./src/utils/builders/utils.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "stripUndefinedValues": () => (/* binding */ stripUndefinedValues)
/* harmony export */ });
/**
 * remove undefined values from object
 * @param object
 */
const stripUndefinedValues = object => Object.fromEntries(Object.entries(object).filter(entry => entry[1] !== undefined));

//# sourceURL=webpack://@react-jvectormap/core/./src/utils/builders/utils.ts?`)},"./src/utils/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AttributeSeriesBuilder": () => (/* reexport safe */ _builders__WEBPACK_IMPORTED_MODULE_0__.AttributeSeriesBuilder),
/* harmony export */   "LabelsBuilder": () => (/* reexport safe */ _builders__WEBPACK_IMPORTED_MODULE_0__.LabelsBuilder),
/* harmony export */   "LabelsPropsBuilder": () => (/* reexport safe */ _builders__WEBPACK_IMPORTED_MODULE_0__.LabelsPropsBuilder),
/* harmony export */   "MarkerBuilder": () => (/* reexport safe */ _builders__WEBPACK_IMPORTED_MODULE_0__.MarkerBuilder),
/* harmony export */   "MultiMapBuilder": () => (/* reexport safe */ _builders__WEBPACK_IMPORTED_MODULE_0__.MultiMapBuilder),
/* harmony export */   "SeriesBuilder": () => (/* reexport safe */ _builders__WEBPACK_IMPORTED_MODULE_0__.SeriesBuilder),
/* harmony export */   "StyleBuilder": () => (/* reexport safe */ _builders__WEBPACK_IMPORTED_MODULE_0__.StyleBuilder),
/* harmony export */   "VectorMapBuilder": () => (/* reexport safe */ _builders__WEBPACK_IMPORTED_MODULE_0__.VectorMapBuilder)
/* harmony export */ });
/* harmony import */ var _builders__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./builders */ "./src/utils/builders/index.ts");


//# sourceURL=webpack://@react-jvectormap/core/./src/utils/index.ts?`)},"../../node_modules/classnames/index.js":(module,exports)=>{eval(`var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
  Copyright (c) 2018 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
/* global define */

(function () {
	'use strict';

	var hasOwn = {}.hasOwnProperty;

	function classNames() {
		var classes = [];

		for (var i = 0; i < arguments.length; i++) {
			var arg = arguments[i];
			if (!arg) continue;

			var argType = typeof arg;

			if (argType === 'string' || argType === 'number') {
				classes.push(arg);
			} else if (Array.isArray(arg)) {
				if (arg.length) {
					var inner = classNames.apply(null, arg);
					if (inner) {
						classes.push(inner);
					}
				}
			} else if (argType === 'object') {
				if (arg.toString === Object.prototype.toString) {
					for (var key in arg) {
						if (hasOwn.call(arg, key) && arg[key]) {
							classes.push(key);
						}
					}
				} else {
					classes.push(arg.toString());
				}
			}
		}

		return classes.join(' ');
	}

	if ( true && module.exports) {
		classNames.default = classNames;
		module.exports = classNames;
	} else if (true) {
		// register as 'classnames', consistent with npm package name
		!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
			return classNames;
		}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
	} else {}
}());


//# sourceURL=webpack://@react-jvectormap/core/../../node_modules/classnames/index.js?`)},"../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./src/components/MapContainer/styles.module.scss":(module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js */ "../../node_modules/css-loader/dist/runtime/noSourceMaps.js");
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/getUrl.js */ "../../node_modules/css-loader/dist/runtime/getUrl.js");
/* harmony import */ var _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2__);
// Imports



var ___CSS_LOADER_URL_IMPORT_0___ = new URL(/* asset import */ __webpack_require__(/*! data:image/gif;base64,  */ "data:image/gif;base64, "), __webpack_require__.b);
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
var ___CSS_LOADER_URL_REPLACEMENT_0___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___);
// Module
___CSS_LOADER_EXPORT___.push([module.id, ".jvectormap-tip {\\n  position: absolute;\\n  display: none;\\n  border: solid 1px #cdcdcd;\\n  border-radius: 3px;\\n  background: #292929;\\n  color: white;\\n  font-family: sans-serif, Verdana;\\n  font-size: smaller;\\n  padding: 3px;\\n}\\n\\n._u5cITtZnGk9D_6uoElx {\\n  height: 100%;\\n  width: 100%;\\n}\\n._u5cITtZnGk9D_6uoElx svg {\\n  touch-action: none;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-container {\\n  width: 100%;\\n  height: 100%;\\n  position: relative;\\n  overflow: hidden;\\n  touch-action: none;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-zoomin {\\n  position: absolute;\\n  left: 10px;\\n  border-radius: 3px;\\n  background: #292929;\\n  padding: 3px;\\n  color: white;\\n  cursor: pointer;\\n  line-height: 10px;\\n  text-align: center;\\n  box-sizing: content-box;\\n  width: 10px;\\n  height: 10px;\\n  top: 10px;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-zoomout {\\n  position: absolute;\\n  left: 10px;\\n  border-radius: 3px;\\n  background: #292929;\\n  padding: 3px;\\n  color: white;\\n  cursor: pointer;\\n  line-height: 10px;\\n  text-align: center;\\n  box-sizing: content-box;\\n  width: 10px;\\n  height: 10px;\\n  top: 30px;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-goback {\\n  position: absolute;\\n  left: 10px;\\n  border-radius: 3px;\\n  background: #292929;\\n  color: white;\\n  cursor: pointer;\\n  line-height: 10px;\\n  text-align: center;\\n  box-sizing: content-box;\\n  bottom: 10px;\\n  z-index: 1000;\\n  padding: 6px;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-spinner {\\n  position: absolute;\\n  left: 0;\\n  top: 0;\\n  right: 0;\\n  bottom: 0;\\n  background: center no-repeat url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-legend-title {\\n  font-weight: bold;\\n  font-size: 14px;\\n  text-align: center;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-legend-cnt {\\n  position: absolute;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-legend-cnt-h {\\n  bottom: 0;\\n  right: 0;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-legend-cnt-h .jvectormap-legend {\\n  float: left;\\n  margin: 0 10px 10px 0;\\n  padding: 3px 3px 1px 3px;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-legend-cnt-h .jvectormap-legend .jvectormap-legend-tick {\\n  float: left;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-legend-cnt-h .jvectormap-legend-tick {\\n  width: 40px;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-legend-cnt-h .jvectormap-legend-tick-sample {\\n  height: 15px;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-legend-cnt-h .jvectormap-legend-tick-text {\\n  text-align: center;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-legend-cnt-v {\\n  top: 0;\\n  right: 0;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-legend-cnt-v .jvectormap-legend {\\n  margin: 10px 10px 0 0;\\n  padding: 3px;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-legend-cnt-v .jvectormap-legend-tick-sample {\\n  height: 20px;\\n  width: 20px;\\n  display: inline-block;\\n  vertical-align: middle;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-legend-cnt-v .jvectormap-legend-tick-text {\\n  display: inline-block;\\n  vertical-align: middle;\\n  line-height: 20px;\\n  padding-left: 3px;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-legend {\\n  background: black;\\n  color: white;\\n  border-radius: 3px;\\n}\\n._u5cITtZnGk9D_6uoElx .jvectormap-legend-tick-text {\\n  font-size: 12px;\\n}", ""]);
// Exports
___CSS_LOADER_EXPORT___.locals = {
	"root": "_u5cITtZnGk9D_6uoElx"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);


//# sourceURL=webpack://@react-jvectormap/core/./src/components/MapContainer/styles.module.scss?../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js`)},"../../node_modules/css-loader/dist/runtime/api.js":module=>{eval(`

/*
  MIT License http://www.opensource.org/licenses/mit-license.php
  Author Tobias Koppers @sokra
*/
module.exports = function (cssWithMappingToString) {
  var list = []; // return the list of modules as css string

  list.toString = function toString() {
    return this.map(function (item) {
      var content = "";
      var needLayer = typeof item[5] !== "undefined";

      if (item[4]) {
        content += "@supports (".concat(item[4], ") {");
      }

      if (item[2]) {
        content += "@media ".concat(item[2], " {");
      }

      if (needLayer) {
        content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
      }

      content += cssWithMappingToString(item);

      if (needLayer) {
        content += "}";
      }

      if (item[2]) {
        content += "}";
      }

      if (item[4]) {
        content += "}";
      }

      return content;
    }).join("");
  }; // import a list of modules into the list


  list.i = function i(modules, media, dedupe, supports, layer) {
    if (typeof modules === "string") {
      modules = [[null, modules, undefined]];
    }

    var alreadyImportedModules = {};

    if (dedupe) {
      for (var _i = 0; _i < this.length; _i++) {
        var id = this[_i][0];

        if (id != null) {
          alreadyImportedModules[id] = true;
        }
      }
    }

    for (var _i2 = 0; _i2 < modules.length; _i2++) {
      var item = [].concat(modules[_i2]);

      if (dedupe && alreadyImportedModules[item[0]]) {
        continue;
      }

      if (typeof layer !== "undefined") {
        if (typeof item[5] === "undefined") {
          item[5] = layer;
        } else {
          item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
          item[5] = layer;
        }
      }

      if (media) {
        if (!item[2]) {
          item[2] = media;
        } else {
          item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
          item[2] = media;
        }
      }

      if (supports) {
        if (!item[4]) {
          item[4] = "".concat(supports);
        } else {
          item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
          item[4] = supports;
        }
      }

      list.push(item);
    }
  };

  return list;
};

//# sourceURL=webpack://@react-jvectormap/core/../../node_modules/css-loader/dist/runtime/api.js?`)},"../../node_modules/css-loader/dist/runtime/getUrl.js":module=>{eval(`

module.exports = function (url, options) {
  if (!options) {
    options = {};
  }

  if (!url) {
    return url;
  }

  url = String(url.__esModule ? url.default : url); // If url is already wrapped in quotes, remove them

  if (/^['"].*['"]$/.test(url)) {
    url = url.slice(1, -1);
  }

  if (options.hash) {
    url += options.hash;
  } // Should url be wrapped?
  // See https://drafts.csswg.org/css-values-3/#urls


  if (/["'() \\t\\n]|(%20)/.test(url) || options.needQuotes) {
    return "\\"".concat(url.replace(/"/g, '\\\\"').replace(/\\n/g, "\\\\n"), "\\"");
  }

  return url;
};

//# sourceURL=webpack://@react-jvectormap/core/../../node_modules/css-loader/dist/runtime/getUrl.js?`)},"../../node_modules/css-loader/dist/runtime/noSourceMaps.js":module=>{eval(`

module.exports = function (i) {
  return i[1];
};

//# sourceURL=webpack://@react-jvectormap/core/../../node_modules/css-loader/dist/runtime/noSourceMaps.js?`)},"./src/components/MapContainer/styles.module.scss":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ "../../node_modules/style-loader/dist/runtime/styleDomAPI.js");
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ "../../node_modules/style-loader/dist/runtime/insertBySelector.js");
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ "../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js");
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ "../../node_modules/style-loader/dist/runtime/insertStyleElement.js");
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ "../../node_modules/style-loader/dist/runtime/styleTagTransform.js");
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_styles_module_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js!./styles.module.scss */ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./src/components/MapContainer/styles.module.scss");

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());

      options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
    
options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());

var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_styles_module_scss__WEBPACK_IMPORTED_MODULE_6__["default"], options);




       /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_styles_module_scss__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_styles_module_scss__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_styles_module_scss__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined);


//# sourceURL=webpack://@react-jvectormap/core/./src/components/MapContainer/styles.module.scss?`)},"../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":module=>{eval(`

var stylesInDOM = [];

function getIndexByIdentifier(identifier) {
  var result = -1;

  for (var i = 0; i < stylesInDOM.length; i++) {
    if (stylesInDOM[i].identifier === identifier) {
      result = i;
      break;
    }
  }

  return result;
}

function modulesToDom(list, options) {
  var idCountMap = {};
  var identifiers = [];

  for (var i = 0; i < list.length; i++) {
    var item = list[i];
    var id = options.base ? item[0] + options.base : item[0];
    var count = idCountMap[id] || 0;
    var identifier = "".concat(id, " ").concat(count);
    idCountMap[id] = count + 1;
    var indexByIdentifier = getIndexByIdentifier(identifier);
    var obj = {
      css: item[1],
      media: item[2],
      sourceMap: item[3],
      supports: item[4],
      layer: item[5]
    };

    if (indexByIdentifier !== -1) {
      stylesInDOM[indexByIdentifier].references++;
      stylesInDOM[indexByIdentifier].updater(obj);
    } else {
      var updater = addElementStyle(obj, options);
      options.byIndex = i;
      stylesInDOM.splice(i, 0, {
        identifier: identifier,
        updater: updater,
        references: 1
      });
    }

    identifiers.push(identifier);
  }

  return identifiers;
}

function addElementStyle(obj, options) {
  var api = options.domAPI(options);
  api.update(obj);

  var updater = function updater(newObj) {
    if (newObj) {
      if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {
        return;
      }

      api.update(obj = newObj);
    } else {
      api.remove();
    }
  };

  return updater;
}

module.exports = function (list, options) {
  options = options || {};
  list = list || [];
  var lastIdentifiers = modulesToDom(list, options);
  return function update(newList) {
    newList = newList || [];

    for (var i = 0; i < lastIdentifiers.length; i++) {
      var identifier = lastIdentifiers[i];
      var index = getIndexByIdentifier(identifier);
      stylesInDOM[index].references--;
    }

    var newLastIdentifiers = modulesToDom(newList, options);

    for (var _i = 0; _i < lastIdentifiers.length; _i++) {
      var _identifier = lastIdentifiers[_i];

      var _index = getIndexByIdentifier(_identifier);

      if (stylesInDOM[_index].references === 0) {
        stylesInDOM[_index].updater();

        stylesInDOM.splice(_index, 1);
      }
    }

    lastIdentifiers = newLastIdentifiers;
  };
};

//# sourceURL=webpack://@react-jvectormap/core/../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js?`)},"../../node_modules/style-loader/dist/runtime/insertBySelector.js":module=>{eval(`

var memo = {};
/* istanbul ignore next  */

function getTarget(target) {
  if (typeof memo[target] === "undefined") {
    var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself

    if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
      try {
        // This will throw an exception if access to iframe is blocked
        // due to cross-origin restrictions
        styleTarget = styleTarget.contentDocument.head;
      } catch (e) {
        // istanbul ignore next
        styleTarget = null;
      }
    }

    memo[target] = styleTarget;
  }

  return memo[target];
}
/* istanbul ignore next  */


function insertBySelector(insert, style) {
  var target = getTarget(insert);

  if (!target) {
    throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
  }

  target.appendChild(style);
}

module.exports = insertBySelector;

//# sourceURL=webpack://@react-jvectormap/core/../../node_modules/style-loader/dist/runtime/insertBySelector.js?`)},"../../node_modules/style-loader/dist/runtime/insertStyleElement.js":module=>{eval(`

/* istanbul ignore next  */
function insertStyleElement(options) {
  var element = document.createElement("style");
  options.setAttributes(element, options.attributes);
  options.insert(element, options.options);
  return element;
}

module.exports = insertStyleElement;

//# sourceURL=webpack://@react-jvectormap/core/../../node_modules/style-loader/dist/runtime/insertStyleElement.js?`)},"../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js":(module,__unused_webpack_exports,__webpack_require__)=>{eval(`

/* istanbul ignore next  */
function setAttributesWithoutAttributes(styleElement) {
  var nonce =  true ? __webpack_require__.nc : 0;

  if (nonce) {
    styleElement.setAttribute("nonce", nonce);
  }
}

module.exports = setAttributesWithoutAttributes;

//# sourceURL=webpack://@react-jvectormap/core/../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js?`)},"../../node_modules/style-loader/dist/runtime/styleDomAPI.js":module=>{eval(`

/* istanbul ignore next  */
function apply(styleElement, options, obj) {
  var css = "";

  if (obj.supports) {
    css += "@supports (".concat(obj.supports, ") {");
  }

  if (obj.media) {
    css += "@media ".concat(obj.media, " {");
  }

  var needLayer = typeof obj.layer !== "undefined";

  if (needLayer) {
    css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {");
  }

  css += obj.css;

  if (needLayer) {
    css += "}";
  }

  if (obj.media) {
    css += "}";
  }

  if (obj.supports) {
    css += "}";
  }

  var sourceMap = obj.sourceMap;

  if (sourceMap && typeof btoa !== "undefined") {
    css += "\\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
  } // For old IE

  /* istanbul ignore if  */


  options.styleTagTransform(css, styleElement, options.options);
}

function removeStyleElement(styleElement) {
  // istanbul ignore if
  if (styleElement.parentNode === null) {
    return false;
  }

  styleElement.parentNode.removeChild(styleElement);
}
/* istanbul ignore next  */


function domAPI(options) {
  var styleElement = options.insertStyleElement(options);
  return {
    update: function update(obj) {
      apply(styleElement, options, obj);
    },
    remove: function remove() {
      removeStyleElement(styleElement);
    }
  };
}

module.exports = domAPI;

//# sourceURL=webpack://@react-jvectormap/core/../../node_modules/style-loader/dist/runtime/styleDomAPI.js?`)},"../../node_modules/style-loader/dist/runtime/styleTagTransform.js":module=>{eval(`

/* istanbul ignore next  */
function styleTagTransform(css, styleElement) {
  if (styleElement.styleSheet) {
    styleElement.styleSheet.cssText = css;
  } else {
    while (styleElement.firstChild) {
      styleElement.removeChild(styleElement.firstChild);
    }

    styleElement.appendChild(document.createTextNode(css));
  }
}

module.exports = styleTagTransform;

//# sourceURL=webpack://@react-jvectormap/core/../../node_modules/style-loader/dist/runtime/styleTagTransform.js?`)},"../jquery-mousewheel/jquery.mousewheel.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "loadJQueryMouseWheel": () => (/* binding */ loadJQueryMouseWheel)
/* harmony export */ });
/*!
 * jQuery Mousewheel 3.1.13
 * Copyright OpenJS Foundation and other contributors
 */

const loadJQueryMouseWheel = ($) =>
  (function (factory) {
    factory($);
  })(function ($) {
    var toFix = [
        "wheel",
        "mousewheel",
        "DOMMouseScroll",
        "MozMousePixelScroll",
      ],
      toBind =
        "onwheel" in window.document || window.document.documentMode >= 9
          ? ["wheel"]
          : ["mousewheel", "DomMouseScroll", "MozMousePixelScroll"],
      slice = Array.prototype.slice,
      nullLowestDeltaTimeout,
      lowestDelta;

    if ($.event.fixHooks) {
      for (var i = toFix.length; i; ) {
        $.event.fixHooks[toFix[--i]] = $.event.mouseHooks;
      }
    }

    var special = ($.event.special.mousewheel = {
      version: "3.1.12",

      setup: function () {
        if (this.addEventListener) {
          for (var i = toBind.length; i; ) {
            this.addEventListener(toBind[--i], handler, false);
          }
        } else {
          this.onmousewheel = handler;
        }

        // Store the line height and page height for this particular element
        $.data(this, "mousewheel-line-height", special.getLineHeight(this));
        $.data(this, "mousewheel-page-height", special.getPageHeight(this));
      },

      teardown: function () {
        if (this.removeEventListener) {
          for (var i = toBind.length; i; ) {
            this.removeEventListener(toBind[--i], handler, false);
          }
        } else {
          this.onmousewheel = null;
        }

        // Clean up the data we added to the element
        $.removeData(this, "mousewheel-line-height");
        $.removeData(this, "mousewheel-page-height");
      },

      getLineHeight: function (elem) {
        var $elem = $(elem),
          $parent = $elem["offsetParent" in $.fn ? "offsetParent" : "parent"]();
        if (!$parent.length) {
          $parent = $("body");
        }
        return (
          parseInt($parent.css("fontSize"), 10) ||
          parseInt($elem.css("fontSize"), 10) ||
          16
        );
      },

      getPageHeight: function (elem) {
        return $(elem).height();
      },

      settings: {
        adjustOldDeltas: true, // see shouldAdjustOldDeltas() below
        normalizeOffset: true, // calls getBoundingClientRect for each event
      },
    });

    $.fn.extend({
      mousewheel: function (fn) {
        return fn ? this.on("mousewheel", fn) : this.trigger("mousewheel");
      },

      unmousewheel: function (fn) {
        return this.off("mousewheel", fn);
      },
    });

    function handler(event) {
      var orgEvent = event || window.event,
        args = slice.call(arguments, 1),
        delta = 0,
        deltaX = 0,
        deltaY = 0,
        absDelta = 0;
      event = $.event.fix(orgEvent);
      event.type = "mousewheel";

      // Old school scrollwheel delta
      if ("detail" in orgEvent) {
        deltaY = orgEvent.detail * -1;
      }
      if ("wheelDelta" in orgEvent) {
        deltaY = orgEvent.wheelDelta;
      }
      if ("wheelDeltaY" in orgEvent) {
        deltaY = orgEvent.wheelDeltaY;
      }
      if ("wheelDeltaX" in orgEvent) {
        deltaX = orgEvent.wheelDeltaX * -1;
      }

      // Firefox < 17 horizontal scrolling related to DOMMouseScroll event
      if ("axis" in orgEvent && orgEvent.axis === orgEvent.HORIZONTAL_AXIS) {
        deltaX = deltaY * -1;
        deltaY = 0;
      }

      // Set delta to be deltaY or deltaX if deltaY is 0 for backwards compatabilitiy
      delta = deltaY === 0 ? deltaX : deltaY;

      // New school wheel delta (wheel event)
      if ("deltaY" in orgEvent) {
        deltaY = orgEvent.deltaY * -1;
        delta = deltaY;
      }
      if ("deltaX" in orgEvent) {
        deltaX = orgEvent.deltaX;
        if (deltaY === 0) {
          delta = deltaX * -1;
        }
      }

      // No change actually happened, no reason to go any further
      if (deltaY === 0 && deltaX === 0) {
        return;
      }

      // Need to convert lines and pages to pixels if we aren't already in pixels
      // There are three delta modes:
      //   * deltaMode 0 is by pixels, nothing to do
      //   * deltaMode 1 is by lines
      //   * deltaMode 2 is by pages
      if (orgEvent.deltaMode === 1) {
        var lineHeight = $.data(this, "mousewheel-line-height");
        delta *= lineHeight;
        deltaY *= lineHeight;
        deltaX *= lineHeight;
      } else if (orgEvent.deltaMode === 2) {
        var pageHeight = $.data(this, "mousewheel-page-height");
        delta *= pageHeight;
        deltaY *= pageHeight;
        deltaX *= pageHeight;
      }

      // Store lowest absolute delta to normalize the delta values
      absDelta = Math.max(Math.abs(deltaY), Math.abs(deltaX));

      if (!lowestDelta || absDelta < lowestDelta) {
        lowestDelta = absDelta;

        // Adjust older deltas if necessary
        if (shouldAdjustOldDeltas(orgEvent, absDelta)) {
          lowestDelta /= 40;
        }
      }

      // Adjust older deltas if necessary
      if (shouldAdjustOldDeltas(orgEvent, absDelta)) {
        // Divide all the things by 40!
        delta /= 40;
        deltaX /= 40;
        deltaY /= 40;
      }

      // Get a whole, normalized value for the deltas
      delta = Math[delta >= 1 ? "floor" : "ceil"](delta / lowestDelta);
      deltaX = Math[deltaX >= 1 ? "floor" : "ceil"](deltaX / lowestDelta);
      deltaY = Math[deltaY >= 1 ? "floor" : "ceil"](deltaY / lowestDelta);

      // Normalise offsetX and offsetY properties
      if (special.settings.normalizeOffset && this.getBoundingClientRect) {
        var boundingRect = this.getBoundingClientRect();
        event.offsetX = event.clientX - boundingRect.left;
        event.offsetY = event.clientY - boundingRect.top;
      }

      // Add information to the event object
      event.deltaX = deltaX;
      event.deltaY = deltaY;
      event.deltaFactor = lowestDelta;

      // Go ahead and set deltaMode to 0 since we converted to pixels
      // Although this is a little odd since we overwrite the deltaX/Y
      // properties with normalized deltas.
      event.deltaMode = 0;

      // Add event and delta to the front of the arguments
      args.unshift(event, delta, deltaX, deltaY);

      // Clearout lowestDelta after sometime to better
      // handle multiple device types that give different
      // a different lowestDelta
      // Ex: trackpad = 3 and mouse wheel = 120
      if (nullLowestDeltaTimeout) {
        window.clearTimeout(nullLowestDeltaTimeout);
      }
      nullLowestDeltaTimeout = window.setTimeout(nullLowestDelta, 200);

      return ($.event.dispatch || $.event.handle).apply(this, args);
    }

    function nullLowestDelta() {
      lowestDelta = null;
    }

    function shouldAdjustOldDeltas(orgEvent, absDelta) {
      // If this is an older event and the delta is divisable by 120,
      // then we are assuming that the browser is treating this as an
      // older mouse wheel event and that we should divide the deltas
      // by 40 to try and get a more usable deltaFactor.
      // Side note, this actually impacts the reported scroll distance
      // in older browsers and can cause scrolling to be slower than native.
      // Turn this off by setting $.event.special.mousewheel.settings.adjustOldDeltas to false.
      return (
        special.settings.adjustOldDeltas &&
        orgEvent.type === "mousewheel" &&
        absDelta % 120 === 0
      );
    }
  });


//# sourceURL=webpack://@react-jvectormap/core/../jquery-mousewheel/jquery.mousewheel.js?`)},"../jvectormap/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "loadJVectorMap": () => (/* reexport safe */ _jquery_jvectormap_min__WEBPACK_IMPORTED_MODULE_0__.loadJVectorMap)
/* harmony export */ });
/* harmony import */ var _jquery_jvectormap_min__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./jquery.jvectormap.min */ "../jvectormap/jquery.jvectormap.min.js");



//# sourceURL=webpack://@react-jvectormap/core/../jvectormap/index.js?`)},"../jvectormap/jquery.jvectormap.min.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval(`__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "loadJVectorMap": () => (/* binding */ loadJVectorMap)
/* harmony export */ });
/* harmony import */ var _react_jvectormap_jquery_mousewheel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-jvectormap/jquery-mousewheel */ "../jquery-mousewheel/jquery.mousewheel.js");


/**
 * jVectorMap version 2.0.5
 *
 * Copyright 2011-2014, Kirill Lebedev
 *
 * inspired from: https://github.com/alex-pex/jvectormap/blob/master/jvectormap-next/src/jquery-jvectormap.js
 */
const loadJVectorMap = ($) =>
  (function (factory) {
    factory($);
  })(function ($) {
    (0,_react_jvectormap_jquery_mousewheel__WEBPACK_IMPORTED_MODULE_0__.loadJQueryMouseWheel)($);
    jvm.$ = $;
    window.jvm = jvm;

    const apiParams = {
      set: {
        colors: 1,
        values: 1,
        backgroundColor: 1,
        scaleColors: 1,
        normalizeFunction: 1,
        focus: 1,
      },
      get: {
        selectedRegions: 1,
        selectedMarkers: 1,
        mapObject: 1,
        regionName: 1,
      },
    };

    $.fn.multiMap = function (options) {
      options.container = this;
      new jvm.MultiMap(options);
      return this;
    };

    $.fn.vectorMap = function (options) {
      let map, methodName;
      map = this.children(".jvectormap-container").data("mapObject");
      if (options === "remove") {
        this.remove();
      } else if (options === "addMap") {
        jvm.Map.maps[arguments[1]] = arguments[2];
      } else if (
        (options === "set" || options === "get") &&
        apiParams[options][arguments[1]]
      ) {
        methodName =
          arguments[1].charAt(0).toUpperCase() + arguments[1].substr(1);
        return map[options + methodName].apply(
          map,
          Array.prototype.slice.call(arguments, 2),
        );
      } else if (!map) {
        options = options || {};
        options.container = this;
        map = new jvm.Map(options);
      }

      return this;
    };
  });
/**
 * @namespace jvm Holds core methods and classes used by jVectorMap.
 */
var jvm = {
  /**
   * Inherits child's prototype from the parent's one.
   * @param {Function} child
   * @param {Function} parent
   */
  inherits: function (child, parent) {
    function temp() {}
    temp.prototype = parent.prototype;
    child.prototype = new temp();
    child.prototype.constructor = child;
    child.parentClass = parent;
  },

  /**
   * Mixes in methods from the source constructor to the target one.
   * @param {Function} target
   * @param {Function} source
   */
  mixin: function (target, source) {
    var prop;

    for (prop in source.prototype) {
      if (source.prototype.hasOwnProperty(prop)) {
        target.prototype[prop] = source.prototype[prop];
      }
    }
  },

  min: function (values) {
    var min = Number.MAX_VALUE,
      i;

    if (values instanceof Array) {
      for (i = 0; i < values.length; i++) {
        if (values[i] < min) {
          min = values[i];
        }
      }
    } else {
      for (i in values) {
        if (values[i] < min) {
          min = values[i];
        }
      }
    }
    return min;
  },

  max: function (values) {
    var max = Number.MIN_VALUE,
      i;

    if (values instanceof Array) {
      for (i = 0; i < values.length; i++) {
        if (values[i] > max) {
          max = values[i];
        }
      }
    } else {
      for (i in values) {
        if (values[i] > max) {
          max = values[i];
        }
      }
    }
    return max;
  },

  keys: function (object) {
    var keys = [],
      key;

    for (key in object) {
      keys.push(key);
    }
    return keys;
  },

  values: function (object) {
    var values = [],
      key,
      i;

    for (i = 0; i < arguments.length; i++) {
      object = arguments[i];
      for (key in object) {
        values.push(object[key]);
      }
    }
    return values;
  },

  whenImageLoaded: function (url) {
    var deferred = new jvm.$.Deferred(),
      img = jvm.$("<img/>");

    img
      .on("error", function () {
        deferred.reject();
      })
      .on("load", function () {
        deferred.resolve(img);
      });
    img.attr("src", url);

    return deferred;
  },

  isImageUrl: function (s) {
    return /\\.\\w{3,4}$/.test(s);
  },
};

/**
 * indexOf polyfill for IE < 9
 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf
 */
if (!Array.prototype.indexOf) {
  Array.prototype.indexOf = function (searchElement, fromIndex) {
    var k;

    // 1. Let O be the result of calling ToObject passing
    //    the this value as the argument.
    if (this == null) {
      throw new TypeError('"this" is null or not defined');
    }

    var O = Object(this);

    // 2. Let lenValue be the result of calling the Get
    //    internal method of O with the argument "length".
    // 3. Let len be ToUint32(lenValue).
    var len = O.length >>> 0;

    // 4. If len is 0, return -1.
    if (len === 0) {
      return -1;
    }

    // 5. If argument fromIndex was passed let n be
    //    ToInteger(fromIndex); else let n be 0.
    var n = +fromIndex || 0;

    if (Math.abs(n) === Infinity) {
      n = 0;
    }

    // 6. If n >= len, return -1.
    if (n >= len) {
      return -1;
    }

    // 7. If n >= 0, then Let k be n.
    // 8. Else, n<0, Let k be len - abs(n).
    //    If k is less than 0, then let k be 0.
    k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);

    // 9. Repeat, while k < len
    while (k < len) {
      // a. Let Pk be ToString(k).
      //   This is implicit for LHS operands of the in operator
      // b. Let kPresent be the result of calling the
      //    HasProperty internal method of O with argument Pk.
      //   This step can be combined with c
      // c. If kPresent is true, then
      //    i.  Let elementK be the result of calling the Get
      //        internal method of O with the argument ToString(k).
      //   ii.  Let same be the result of applying the
      //        Strict Equality Comparison Algorithm to
      //        searchElement and elementK.
      //  iii.  If same is true, return k.
      if (k in O && O[k] === searchElement) {
        return k;
      }
      k++;
    }
    return -1;
  };
}
/**
 * Basic wrapper for DOM element.
 * @constructor
 * @param {String} name Tag name of the element
 * @param {Object} config Set of parameters to initialize element with
 */
jvm.AbstractElement = function(name, config){
  /**
   * Underlying DOM element
   * @type {DOMElement}
   * @private
   */
  this.node = this.createElement(name);

  /**
   * Name of underlying element
   * @type {String}
   * @private
   */
  this.name = name;

  /**
   * Internal store of attributes
   * @type {Object}
   * @private
   */
  this.properties = {};

  if (config) {
    this.set(config);
  }
};

/**
 * Set attribute of the underlying DOM element.
 * @param {String} name Name of attribute
 * @param {Number|String} config Set of parameters to initialize element with
 */
jvm.AbstractElement.prototype.set = function(property, value){
  var key;

  if (typeof property === 'object') {
    for (key in property) {
      this.properties[key] = property[key];
      this.applyAttr(key, property[key]);
    }
  } else {
    this.properties[property] = value;
    this.applyAttr(property, value);
  }
};

/**
 * Returns value of attribute.
 * @param {String} name Name of attribute
 */
jvm.AbstractElement.prototype.get = function(property){
  return this.properties[property];
};

/**
 * Applies attribute value to the underlying DOM element.
 * @param {String} name Name of attribute
 * @param {Number|String} config Value of attribute to apply
 * @private
 */
jvm.AbstractElement.prototype.applyAttr = function(property, value){
  if (!Number.isNaN(value)) {
    this.node.setAttribute(property, value);
  }
};

jvm.AbstractElement.prototype.remove = function(){
  jvm.$(this.node).remove();
};/**
 * Implements abstract vector canvas.
 * @constructor
 * @param {HTMLElement} container Container to put element to.
 * @param {Number} width Width of canvas.
 * @param {Number} height Height of canvas.
 */
jvm.AbstractCanvasElement = function(container, width, height){
  this.container = container;
  this.setSize(width, height);
  this.rootElement = new jvm[this.classPrefix+'GroupElement']();
  this.node.appendChild( this.rootElement.node );
  this.container.appendChild(this.node);
}

/**
 * Add element to the certain group inside of the canvas.
 * @param {HTMLElement} element Element to add to canvas.
 * @param {HTMLElement} group Group to add element into or into root group if not provided.
 */
jvm.AbstractCanvasElement.prototype.add = function(element, group){
  group = group || this.rootElement;
  group.add(element);
  element.canvas = this;
}

/**
 * Create path and add it to the canvas.
 * @param {Object} config Parameters of path to create.
 * @param {Object} style Styles of the path to create.
 * @param {HTMLElement} group Group to add path into.
 */
jvm.AbstractCanvasElement.prototype.addPath = function(config, style, group){
  var el = new jvm[this.classPrefix+'PathElement'](config, style);

  this.add(el, group);
  return el;
};

/**
 * Create circle and add it to the canvas.
 * @param {Object} config Parameters of path to create.
 * @param {Object} style Styles of the path to create.
 * @param {HTMLElement} group Group to add circle into.
 */
jvm.AbstractCanvasElement.prototype.addCircle = function(config, style, group){
  var el = new jvm[this.classPrefix+'CircleElement'](config, style);

  this.add(el, group);
  return el;
};

/**
 * Create circle and add it to the canvas.
 * @param {Object} config Parameters of path to create.
 * @param {Object} style Styles of the path to create.
 * @param {HTMLElement} group Group to add circle into.
 */
jvm.AbstractCanvasElement.prototype.addImage = function(config, style, group){
  var el = new jvm[this.classPrefix+'ImageElement'](config, style);

  this.add(el, group);
  return el;
};

/**
 * Create text and add it to the canvas.
 * @param {Object} config Parameters of path to create.
 * @param {Object} style Styles of the path to create.
 * @param {HTMLElement} group Group to add circle into.
 */
jvm.AbstractCanvasElement.prototype.addText = function(config, style, group){
  var el = new jvm[this.classPrefix+'TextElement'](config, style);

  this.add(el, group);
  return el;
};

/**
 * Add group to the another group inside of the canvas.
 * @param {HTMLElement} group Group to add circle into or root group if not provided.
 */
jvm.AbstractCanvasElement.prototype.addGroup = function(parentGroup){
  var el = new jvm[this.classPrefix+'GroupElement']();

  if (parentGroup) {
    parentGroup.node.appendChild(el.node);
  } else {
    this.node.appendChild(el.node);
  }
  el.canvas = this;
  return el;
};/**
 * Abstract shape element. Shape element represents some visual vector or raster object.
 * @constructor
 * @param {String} name Tag name of the element.
 * @param {Object} config Set of parameters to initialize element with.
 * @param {Object} style Object with styles to set on element initialization.
 */
jvm.AbstractShapeElement = function(name, config, style){
  this.style = style || {};
  this.style.current = this.style.current || {};
  this.isHovered = false;
  this.isSelected = false;
  this.updateStyle();
};

/**
 * Set element's style.
 * @param {Object|String} property Could be string to set only one property or object to set several style properties at once.
 * @param {String} value Value to set in case only one property should be set.
 */
jvm.AbstractShapeElement.prototype.setStyle = function(property, value){
  var styles = {};

  if (typeof property === 'object') {
    styles = property;
  } else {
    styles[property] = value;
  }
  jvm.$.extend(this.style.current, styles);
  this.updateStyle();
};


jvm.AbstractShapeElement.prototype.updateStyle = function(){
  var attrs = {};

  jvm.AbstractShapeElement.mergeStyles(attrs, this.style.initial);
  jvm.AbstractShapeElement.mergeStyles(attrs, this.style.current);
  if (this.isHovered) {
    jvm.AbstractShapeElement.mergeStyles(attrs, this.style.hover);
  }
  if (this.isSelected) {
    jvm.AbstractShapeElement.mergeStyles(attrs, this.style.selected);
    if (this.isHovered) {
      jvm.AbstractShapeElement.mergeStyles(attrs, this.style.selectedHover);
    }
  }
  this.set(attrs);
};

jvm.AbstractShapeElement.mergeStyles = function(styles, newStyles){
  var key;

  newStyles = newStyles || {};
  for (key in newStyles) {
    if (newStyles[key] === null) {
      delete styles[key];
    } else {
      styles[key] = newStyles[key];
    }
  }
}/**
 * Wrapper for SVG element.
 * @constructor
 * @extends jvm.AbstractElement
 * @param {String} name Tag name of the element
 * @param {Object} config Set of parameters to initialize element with
 */

jvm.SVGElement = function(name, config){
  jvm.SVGElement.parentClass.apply(this, arguments);
}

jvm.inherits(jvm.SVGElement, jvm.AbstractElement);

jvm.SVGElement.svgns = "http://www.w3.org/2000/svg";

/**
 * Creates DOM element.
 * @param {String} tagName Name of element
 * @private
 * @returns DOMElement
 */
jvm.SVGElement.prototype.createElement = function( tagName ){
  return document.createElementNS( jvm.SVGElement.svgns, tagName );
};

/**
 * Adds CSS class for underlying DOM element.
 * @param {String} className Name of CSS class name
 */
jvm.SVGElement.prototype.addClass = function( className ){
  this.node.setAttribute('class', className);
};

/**
 * Returns constructor for element by name prefixed with 'VML'.
 * @param {String} ctr Name of basic constructor to return
 * proper implementation for.
 * @returns Function
 * @private
 */
jvm.SVGElement.prototype.getElementCtr = function( ctr ){
  return jvm['SVG'+ctr];
};

jvm.SVGElement.prototype.getBBox = function(){
  return this.node.getBBox();
};jvm.SVGGroupElement = function(){
  jvm.SVGGroupElement.parentClass.call(this, 'g');
}

jvm.inherits(jvm.SVGGroupElement, jvm.SVGElement);

jvm.SVGGroupElement.prototype.add = function(element){
  this.node.appendChild( element.node );
};jvm.SVGCanvasElement = function (container, width, height) {
  this.classPrefix = "SVG";
  jvm.SVGCanvasElement.parentClass.call(this, "svg");

  this.defsElement = new jvm.SVGElement("defs");
  this.node.appendChild(this.defsElement.node);

  jvm.AbstractCanvasElement.apply(this, arguments);
};

jvm.inherits(jvm.SVGCanvasElement, jvm.SVGElement);
jvm.mixin(jvm.SVGCanvasElement, jvm.AbstractCanvasElement);

jvm.SVGCanvasElement.prototype.setSize = function (width, height) {
  this.width = width;
  this.height = height;
  this.node.setAttribute("width", width);
  this.node.setAttribute("height", height);
};

jvm.SVGCanvasElement.prototype.applyTransformParams = function (
  scale,
  transX,
  transY,
) {
  this.scale = scale;
  this.transX = transX;
  this.transY = transY;
  if (!isNaN(transX) && !isNaN(transY) && !isNaN(scale)) {
    this.rootElement.node.setAttribute(
      "transform",
      "scale(" + scale + ") translate(" + transX + ", " + transY + ")",
    );
  }
};
jvm.SVGShapeElement = function(name, config, style){
  jvm.SVGShapeElement.parentClass.call(this, name, config);
  jvm.AbstractShapeElement.apply(this, arguments);
};

jvm.inherits(jvm.SVGShapeElement, jvm.SVGElement);
jvm.mixin(jvm.SVGShapeElement, jvm.AbstractShapeElement);

jvm.SVGShapeElement.prototype.applyAttr = function(attr, value){
  var patternEl,
      imageEl,
      that = this;

  if (attr === 'fill' && jvm.isImageUrl(value)) {
    if (!jvm.SVGShapeElement.images[value]) {
      jvm.whenImageLoaded(value).then(function(img){
        imageEl = new jvm.SVGElement('image');
        imageEl.node.setAttributeNS('http://www.w3.org/1999/xlink', 'href', value);
        imageEl.applyAttr('x', '0');
        imageEl.applyAttr('y', '0');
        imageEl.applyAttr('width', img[0].width);
        imageEl.applyAttr('height', img[0].height);

        patternEl = new jvm.SVGElement('pattern');
        patternEl.applyAttr('id', 'image'+jvm.SVGShapeElement.imageCounter);
        patternEl.applyAttr('x', 0);
        patternEl.applyAttr('y', 0);
        patternEl.applyAttr('width', img[0].width / 2);
        patternEl.applyAttr('height', img[0].height / 2);
        patternEl.applyAttr('viewBox', '0 0 '+img[0].width+' '+img[0].height);
        patternEl.applyAttr('patternUnits', 'userSpaceOnUse');
        patternEl.node.appendChild( imageEl.node );

        that.canvas.defsElement.node.appendChild( patternEl.node );

        jvm.SVGShapeElement.images[value] = jvm.SVGShapeElement.imageCounter++;

        that.applyAttr('fill', 'url(#image'+jvm.SVGShapeElement.images[value]+')');
      });
    } else {
      this.applyAttr('fill', 'url(#image'+jvm.SVGShapeElement.images[value]+')');
    }
  } else {
    jvm.SVGShapeElement.parentClass.prototype.applyAttr.apply(this, arguments);
  }
};

jvm.SVGShapeElement.imageCounter = 1;
jvm.SVGShapeElement.images = {};jvm.SVGPathElement = function(config, style){
  jvm.SVGPathElement.parentClass.call(this, 'path', config, style);
  this.node.setAttribute('fill-rule', 'evenodd');
}

jvm.inherits(jvm.SVGPathElement, jvm.SVGShapeElement);jvm.SVGCircleElement = function(config, style){
  jvm.SVGCircleElement.parentClass.call(this, 'circle', config, style);
};

jvm.inherits(jvm.SVGCircleElement, jvm.SVGShapeElement);jvm.SVGImageElement = function(config, style){
  jvm.SVGImageElement.parentClass.call(this, 'image', config, style);
};

jvm.inherits(jvm.SVGImageElement, jvm.SVGShapeElement);

jvm.SVGImageElement.prototype.applyAttr = function(attr, value){
  var that = this,
      imageOffset,
      imageUrl;

  if (attr == 'image') {
    if (typeof value == 'object') {
      imageUrl = value.url;
      this.offset = value.offset;
    } else {
      imageUrl = value;
      this.offset = [0, 0];
    }

    jvm.whenImageLoaded(imageUrl).then(function(img){
      that.node.setAttributeNS('http://www.w3.org/1999/xlink', 'href', imageUrl);
      that.width = img[0].width;
      that.height = img[0].height;
      that.applyAttr('width', that.width);
      that.applyAttr('height', that.height);

      that.applyAttr('x', that.cx - that.width / 2 + that.offset[0]);
      that.applyAttr('y', that.cy - that.height / 2 + that.offset[1]);

      jvm.$(that.node).trigger('imageloaded', [img]);
    });
  } else if(attr == 'cx') {
    this.cx = value;
    if (this.width) {
      this.applyAttr('x', value - this.width / 2 + this.offset[0]);
    }
  } else if(attr == 'cy') {
    this.cy = value;
    if (this.height) {
      this.applyAttr('y', value - this.height / 2 + this.offset[1]);
    }
  } else {
    jvm.SVGImageElement.parentClass.prototype.applyAttr.apply(this, arguments);
  }
};jvm.SVGTextElement = function(config, style){
  jvm.SVGTextElement.parentClass.call(this, 'text', config, style);
}

jvm.inherits(jvm.SVGTextElement, jvm.SVGShapeElement);

jvm.SVGTextElement.prototype.applyAttr = function(attr, value){
  if (attr === 'text') {
    this.node.textContent = value;
  } else {
    jvm.SVGTextElement.parentClass.prototype.applyAttr.apply(this, arguments);
  }
};/**
 * Wrapper for VML element.
 * @constructor
 * @extends jvm.AbstractElement
 * @param {String} name Tag name of the element
 * @param {Object} config Set of parameters to initialize element with
 */

jvm.VMLElement = function(name, config){
  if (!jvm.VMLElement.VMLInitialized) {
    jvm.VMLElement.initializeVML();
  }

  jvm.VMLElement.parentClass.apply(this, arguments);
};

jvm.inherits(jvm.VMLElement, jvm.AbstractElement);

/**
 * Shows if VML was already initialized for the current document or not.
 * @static
 * @private
 * @type {Boolean}
 */
jvm.VMLElement.VMLInitialized = false;

/**
 * Initializes VML handling before creating the first element
 * (adds CSS class and creates namespace). Adds one of two forms
 * of createElement method depending of support by browser.
 * @static
 * @private
 */

 // The following method of VML handling is borrowed from the
 // Raphael library by Dmitry Baranovsky.

jvm.VMLElement.initializeVML = function(){
  try {
    if (!document.namespaces.rvml) {
      document.namespaces.add("rvml","urn:schemas-microsoft-com:vml");
    }
    /**
     * Creates DOM element.
     * @param {String} tagName Name of element
     * @private
     * @returns DOMElement
     */
    jvm.VMLElement.prototype.createElement = function (tagName) {
      return document.createElement('<rvml:' + tagName + ' class="rvml">');
    };
  } catch (e) {
    /**
     * @private
     */
    jvm.VMLElement.prototype.createElement = function (tagName) {
      return document.createElement('<' + tagName + ' xmlns="urn:schemas-microsoft.com:vml" class="rvml">');
    };
  }
  document.createStyleSheet().addRule(".rvml", "behavior:url(#default#VML)");
  jvm.VMLElement.VMLInitialized = true;
};

/**
 * Returns constructor for element by name prefixed with 'VML'.
 * @param {String} ctr Name of basic constructor to return
 * proper implementation for.
 * @returns Function
 * @private
 */
jvm.VMLElement.prototype.getElementCtr = function( ctr ){
  return jvm['VML'+ctr];
};

/**
 * Adds CSS class for underlying DOM element.
 * @param {String} className Name of CSS class name
 */
jvm.VMLElement.prototype.addClass = function( className ){
  jvm.$(this.node).addClass(className);
};

/**
 * Applies attribute value to the underlying DOM element.
 * @param {String} name Name of attribute
 * @param {Number|String} config Value of attribute to apply
 * @private
 */
jvm.VMLElement.prototype.applyAttr = function( attr, value ){
  this.node[attr] = value;
};

/**
 * Returns boundary box for the element.
 * @returns {Object} Boundary box with numeric fields: x, y, width, height
 * @override
 */
jvm.VMLElement.prototype.getBBox = function(){
  var node = jvm.$(this.node);

  return {
    x: node.position().left / this.canvas.scale,
    y: node.position().top / this.canvas.scale,
    width: node.width() / this.canvas.scale,
    height: node.height() / this.canvas.scale
  };
};jvm.VMLGroupElement = function(){
  jvm.VMLGroupElement.parentClass.call(this, 'group');

  this.node.style.left = '0px';
  this.node.style.top = '0px';
  this.node.coordorigin = "0 0";
};

jvm.inherits(jvm.VMLGroupElement, jvm.VMLElement);

jvm.VMLGroupElement.prototype.add = function(element){
  this.node.appendChild( element.node );
};jvm.VMLCanvasElement = function(container, width, height){
  this.classPrefix = 'VML';
  jvm.VMLCanvasElement.parentClass.call(this, 'group');
  jvm.AbstractCanvasElement.apply(this, arguments);
  this.node.style.position = 'absolute';
};

jvm.inherits(jvm.VMLCanvasElement, jvm.VMLElement);
jvm.mixin(jvm.VMLCanvasElement, jvm.AbstractCanvasElement);

jvm.VMLCanvasElement.prototype.setSize = function(width, height){
  var paths,
      groups,
      i,
      l;

  this.width = width;
  this.height = height;
  this.node.style.width = width + "px";
  this.node.style.height = height + "px";
  this.node.coordsize = width+' '+height;
  this.node.coordorigin = "0 0";
  if (this.rootElement) {
    paths = this.rootElement.node.getElementsByTagName('shape');
    for(i = 0, l = paths.length; i < l; i++) {
      paths[i].coordsize = width+' '+height;
      paths[i].style.width = width+'px';
      paths[i].style.height = height+'px';
    }
    groups = this.node.getElementsByTagName('group');
    for(i = 0, l = groups.length; i < l; i++) {
      groups[i].coordsize = width+' '+height;
      groups[i].style.width = width+'px';
      groups[i].style.height = height+'px';
    }
  }
};

jvm.VMLCanvasElement.prototype.applyTransformParams = function(scale, transX, transY) {
  this.scale = scale;
  this.transX = transX;
  this.transY = transY;
  this.rootElement.node.coordorigin = (this.width-transX-this.width/100)+','+(this.height-transY-this.height/100);
  this.rootElement.node.coordsize = this.width/scale+','+this.height/scale;
};jvm.VMLShapeElement = function(name, config){
  jvm.VMLShapeElement.parentClass.call(this, name, config);

  this.fillElement = new jvm.VMLElement('fill');
  this.strokeElement = new jvm.VMLElement('stroke');
  this.node.appendChild(this.fillElement.node);
  this.node.appendChild(this.strokeElement.node);
  this.node.stroked = false;

  jvm.AbstractShapeElement.apply(this, arguments);
};

jvm.inherits(jvm.VMLShapeElement, jvm.VMLElement);
jvm.mixin(jvm.VMLShapeElement, jvm.AbstractShapeElement);

jvm.VMLShapeElement.prototype.applyAttr = function(attr, value){
  switch (attr) {
    case 'fill':
      this.node.fillcolor = value;
      break;
    case 'fill-opacity':
      this.fillElement.node.opacity = Math.round(value*100)+'%';
      break;
    case 'stroke':
      if (value === 'none') {
        this.node.stroked = false;
      } else {
        this.node.stroked = true;
      }
      this.node.strokecolor = value;
      break;
    case 'stroke-opacity':
      this.strokeElement.node.opacity = Math.round(value*100)+'%';
      break;
    case 'stroke-width':
      if (parseInt(value, 10) === 0) {
        this.node.stroked = false;
      } else {
        this.node.stroked = true;
      }
      this.node.strokeweight = value;
      break;
    case 'd':
      this.node.path = jvm.VMLPathElement.pathSvgToVml(value);
      break;
    default:
      jvm.VMLShapeElement.parentClass.prototype.applyAttr.apply(this, arguments);
  }
};jvm.VMLPathElement = function(config, style){
  var scale = new jvm.VMLElement('skew');

  jvm.VMLPathElement.parentClass.call(this, 'shape', config, style);

  this.node.coordorigin = "0 0";

  scale.node.on = true;
  scale.node.matrix = '0.01,0,0,0.01,0,0';
  scale.node.offset = '0,0';

  this.node.appendChild(scale.node);
};

jvm.inherits(jvm.VMLPathElement, jvm.VMLShapeElement);

jvm.VMLPathElement.prototype.applyAttr = function(attr, value){
  if (attr === 'd') {
    this.node.path = jvm.VMLPathElement.pathSvgToVml(value);
  } else {
    jvm.VMLShapeElement.prototype.applyAttr.call(this, attr, value);
  }
};

jvm.VMLPathElement.pathSvgToVml = function(path) {
  var cx = 0, cy = 0, ctrlx, ctrly;

  path = path.replace(/(-?\\d+)e(-?\\d+)/g, '0');
  return path.replace(/([MmLlHhVvCcSs])\\s*((?:-?\\d*(?:\\.\\d+)?\\s*,?\\s*)+)/g, function(segment, letter, coords, index){
    coords = coords.replace(/(\\d)-/g, '$1,-')
            .replace(/^\\s+/g, '')
            .replace(/\\s+$/g, '')
            .replace(/\\s+/g, ',').split(',');
    if (!coords[0]) coords.shift();
    for (var i=0, l=coords.length; i<l; i++) {
      coords[i] = Math.round(100*coords[i]);
    }
    switch (letter) {
      case 'm':
        cx += coords[0];
        cy += coords[1];
        return 't'+coords.join(',');
      case 'M':
        cx = coords[0];
        cy = coords[1];
        return 'm'+coords.join(',');
      case 'l':
        cx += coords[0];
        cy += coords[1];
        return 'r'+coords.join(',');
      case 'L':
        cx = coords[0];
        cy = coords[1];
        return 'l'+coords.join(',');
      case 'h':
        cx += coords[0];
        return 'r'+coords[0]+',0';
      case 'H':
        cx = coords[0];
        return 'l'+cx+','+cy;
      case 'v':
        cy += coords[0];
        return 'r0,'+coords[0];
      case 'V':
        cy = coords[0];
        return 'l'+cx+','+cy;
      case 'c':
        ctrlx = cx + coords[coords.length-4];
        ctrly = cy + coords[coords.length-3];
        cx += coords[coords.length-2];
        cy += coords[coords.length-1];
        return 'v'+coords.join(',');
      case 'C':
        ctrlx = coords[coords.length-4];
        ctrly = coords[coords.length-3];
        cx = coords[coords.length-2];
        cy = coords[coords.length-1];
        return 'c'+coords.join(',');
      case 's':
        coords.unshift(cy-ctrly);
        coords.unshift(cx-ctrlx);
        ctrlx = cx + coords[coords.length-4];
        ctrly = cy + coords[coords.length-3];
        cx += coords[coords.length-2];
        cy += coords[coords.length-1];
        return 'v'+coords.join(',');
      case 'S':
        coords.unshift(cy+cy-ctrly);
        coords.unshift(cx+cx-ctrlx);
        ctrlx = coords[coords.length-4];
        ctrly = coords[coords.length-3];
        cx = coords[coords.length-2];
        cy = coords[coords.length-1];
        return 'c'+coords.join(',');
    }
    return '';
  }).replace(/z/g, 'e');
};jvm.VMLCircleElement = function(config, style){
  jvm.VMLCircleElement.parentClass.call(this, 'oval', config, style);
};

jvm.inherits(jvm.VMLCircleElement, jvm.VMLShapeElement);

jvm.VMLCircleElement.prototype.applyAttr = function(attr, value){
  switch (attr) {
    case 'r':
      this.node.style.width = value*2+'px';
      this.node.style.height = value*2+'px';
      this.applyAttr('cx', this.get('cx') || 0);
      this.applyAttr('cy', this.get('cy') || 0);
      break;
    case 'cx':
      if (!value) return;
      this.node.style.left = value - (this.get('r') || 0) + 'px';
      break;
    case 'cy':
      if (!value) return;
      this.node.style.top = value - (this.get('r') || 0) + 'px';
      break;
    default:
      jvm.VMLCircleElement.parentClass.prototype.applyAttr.call(this, attr, value);
  }
};/**
 * Class for vector images manipulations.
 * @constructor
 * @param {DOMElement} container to place canvas to
 * @param {Number} width
 * @param {Number} height
 */
jvm.VectorCanvas = function(container, width, height) {
  this.mode = window.SVGAngle ? 'svg' : 'vml';

  if (this.mode == 'svg') {
    this.impl = new jvm.SVGCanvasElement(container, width, height);
  } else {
    this.impl = new jvm.VMLCanvasElement(container, width, height);
  }
  this.impl.mode = this.mode;
  return this.impl;
};jvm.SimpleScale = function(scale){
  this.scale = scale;
};

jvm.SimpleScale.prototype.getValue = function(value){
  return value;
};jvm.OrdinalScale = function(scale){
  this.scale = scale;
};

jvm.OrdinalScale.prototype.getValue = function(value){
  return this.scale[value];
};

jvm.OrdinalScale.prototype.getTicks = function(){
  var ticks = [],
      key;

  for (key in this.scale) {
    ticks.push({
      label: key,
      value: this.scale[key]
    });
  }

  return ticks;
};jvm.NumericScale = function(scale, normalizeFunction, minValue, maxValue) {
  this.scale = [];

  normalizeFunction = normalizeFunction || 'linear';

  if (scale) this.setScale(scale);
  if (normalizeFunction) this.setNormalizeFunction(normalizeFunction);
  if (typeof minValue !== 'undefined' ) this.setMin(minValue);
  if (typeof maxValue !== 'undefined' ) this.setMax(maxValue);
};

jvm.NumericScale.prototype = {
  setMin: function(min) {
    this.clearMinValue = min;
    if (typeof this.normalize === 'function') {
      this.minValue = this.normalize(min);
    } else {
      this.minValue = min;
    }
  },

  setMax: function(max) {
    this.clearMaxValue = max;
    if (typeof this.normalize === 'function') {
      this.maxValue = this.normalize(max);
    } else {
      this.maxValue = max;
    }
  },

  setScale: function(scale) {
    var i;

    this.scale = [];
    for (i = 0; i < scale.length; i++) {
      this.scale[i] = [scale[i]];
    }
  },

  setNormalizeFunction: function(f) {
    if (f === 'polynomial') {
      this.normalize = function(value) {
        return Math.pow(value, 0.2);
      }
    } else if (f === 'linear') {
      delete this.normalize;
    } else {
      this.normalize = f;
    }
    this.setMin(this.clearMinValue);
    this.setMax(this.clearMaxValue);
  },

  getValue: function(value) {
    var lengthes = [],
        fullLength = 0,
        l,
        i = 0,
        c;

    if (typeof this.normalize === 'function') {
      value = this.normalize(value);
    }
    for (i = 0; i < this.scale.length-1; i++) {
      l = this.vectorLength(this.vectorSubtract(this.scale[i+1], this.scale[i]));
      lengthes.push(l);
      fullLength += l;
    }

    c = (this.maxValue - this.minValue) / fullLength;
    for (i=0; i<lengthes.length; i++) {
      lengthes[i] *= c;
    }

    i = 0;
    value -= this.minValue;
    while (value - lengthes[i] >= 0) {
      value -= lengthes[i];
      i++;
    }

    if (i == this.scale.length - 1) {
      value = this.vectorToNum(this.scale[i])
    } else {
      value = (
        this.vectorToNum(
          this.vectorAdd(this.scale[i],
            this.vectorMult(
              this.vectorSubtract(this.scale[i+1], this.scale[i]),
              (value) / (lengthes[i])
            )
          )
        )
      );
    }

    return value;
  },

  vectorToNum: function(vector) {
    var num = 0,
        i;

    for (i = 0; i < vector.length; i++) {
      num += Math.round(vector[i])*Math.pow(256, vector.length-i-1);
    }
    return num;
  },

  vectorSubtract: function(vector1, vector2) {
    var vector = [],
        i;

    for (i = 0; i < vector1.length; i++) {
      vector[i] = vector1[i] - vector2[i];
    }
    return vector;
  },

  vectorAdd: function(vector1, vector2) {
    var vector = [],
        i;

    for (i = 0; i < vector1.length; i++) {
      vector[i] = vector1[i] + vector2[i];
    }
    return vector;
  },

  vectorMult: function(vector, num) {
    var result = [],
        i;

    for (i = 0; i < vector.length; i++) {
      result[i] = vector[i] * num;
    }
    return result;
  },

  vectorLength: function(vector) {
    var result = 0,
        i;
    for (i = 0; i < vector.length; i++) {
      result += vector[i] * vector[i];
    }
    return Math.sqrt(result);
  },

  /* Derived from d3 implementation https://github.com/mbostock/d3/blob/master/src/scale/linear.js#L94 */
  getTicks: function(){
    var m = 5,
        extent = [this.clearMinValue, this.clearMaxValue],
        span = extent[1] - extent[0],
        step = Math.pow(10, Math.floor(Math.log(span / m) / Math.LN10)),
        err = m / span * step,
        ticks = [],
        tick,
        v;

    if (err <= .15) step *= 10;
    else if (err <= .35) step *= 5;
    else if (err <= .75) step *= 2;

    extent[0] = Math.floor(extent[0] / step) * step;
    extent[1] = Math.ceil(extent[1] / step) * step;

    tick = extent[0];
    while (tick <= extent[1]) {
      if (tick == extent[0]) {
        v = this.clearMinValue;
      } else if (tick == extent[1]) {
        v = this.clearMaxValue;
      } else {
        v = tick;
      }
      ticks.push({
        label: tick,
        value: this.getValue(v)
      });
      tick += step;
    }

    return ticks;
  }
};
jvm.ColorScale = function(colors, normalizeFunction, minValue, maxValue) {
  jvm.ColorScale.parentClass.apply(this, arguments);
}

jvm.inherits(jvm.ColorScale, jvm.NumericScale);

jvm.ColorScale.prototype.setScale = function(scale) {
  var i;

  for (i = 0; i < scale.length; i++) {
    this.scale[i] = jvm.ColorScale.rgbToArray(scale[i]);
  }
};

jvm.ColorScale.prototype.getValue = function(value) {
  return jvm.ColorScale.numToRgb(jvm.ColorScale.parentClass.prototype.getValue.call(this, value));
};

jvm.ColorScale.arrayToRgb = function(ar) {
  var rgb = '#',
      d,
      i;

  for (i = 0; i < ar.length; i++) {
    d = ar[i].toString(16);
    rgb += d.length == 1 ? '0'+d : d;
  }
  return rgb;
};

jvm.ColorScale.numToRgb = function(num) {
  num = num.toString(16);

  while (num.length < 6) {
    num = '0' + num;
  }

  return '#'+num;
};

jvm.ColorScale.rgbToArray = function(rgb) {
  rgb = rgb.substr(1);
  return [parseInt(rgb.substr(0, 2), 16), parseInt(rgb.substr(2, 2), 16), parseInt(rgb.substr(4, 2), 16)];
};/**
 * Represents map legend.
 * @constructor
 * @param {Object} params Configuration parameters.
 * @param {String} params.cssClass Additional CSS class to apply to legend element.
 * @param {Boolean} params.vertical If <code>true</code> legend will be rendered as vertical.
 * @param {String} params.title Legend title.
 * @param {Function} params.labelRender Method to convert series values to legend labels.
 */
jvm.Legend = function(params) {
  this.params = params || {};
  this.map = this.params.map;
  this.series = this.params.series;
  this.body = jvm.$('<div/>');
  this.body.addClass('jvectormap-legend');
  if (this.params.cssClass) {
    this.body.addClass(this.params.cssClass);
  }

  if (params.vertical) {
    this.map.legendCntVertical.append( this.body );
  } else {
    this.map.legendCntHorizontal.append( this.body );
  }

  this.render();
}

jvm.Legend.prototype.render = function(){
  var ticks = this.series.scale.getTicks(),
      i,
      inner = jvm.$('<div/>').addClass('jvectormap-legend-inner'),
      tick,
      sample,
      label;

  this.body.html('');
  if (this.params.title) {
    this.body.append(
      jvm.$('<div/>').addClass('jvectormap-legend-title').html(this.params.title)
    );
  }
  this.body.append(inner);

  for (i = 0; i < ticks.length; i++) {
    tick = jvm.$('<div/>').addClass('jvectormap-legend-tick');
    sample = jvm.$('<div/>').addClass('jvectormap-legend-tick-sample');

    switch (this.series.params.attribute) {
      case 'fill':
        if (jvm.isImageUrl(ticks[i].value)) {
          sample.css('background', 'url('+ticks[i].value+')');
        } else {
          sample.css('background', ticks[i].value);
        }
        break;
      case 'stroke':
        sample.css('background', ticks[i].value);
        break;
      case 'image':
        sample.css('background', 'url('+(typeof ticks[i].value === 'object' ? ticks[i].value.url : ticks[i].value)+') no-repeat center center');
        break;
      case 'r':
        jvm.$('<div/>').css({
          'border-radius': ticks[i].value,
          border: this.map.params.markerStyle.initial['stroke-width']+'px '+
                  this.map.params.markerStyle.initial['stroke']+' solid',
          width: ticks[i].value * 2 + 'px',
          height: ticks[i].value * 2 + 'px',
          background: this.map.params.markerStyle.initial['fill']
        }).appendTo(sample);
        break;
    }
    tick.append( sample );
    label = ticks[i].label;
    if (this.params.labelRender) {
      label = this.params.labelRender(label);
    }
    tick.append( jvm.$('<div>'+label+' </div>').addClass('jvectormap-legend-tick-text') );
    inner.append(tick);
  }
  inner.append( jvm.$('<div/>').css('clear', 'both') );
}/**
 * Creates data series.
 * @constructor
 * @param {Object} params Parameters to initialize series with.
 * @param {Array} params.values The data set to visualize.
 * @param {String} params.attribute Numeric, color or image attribute to use for data visualization. This could be: <code>fill</code>, <code>stroke</code>, <code>fill-opacity</code>, <code>stroke-opacity</code> for markers and regions and <code>r</code> (radius) or <code>image</code> for markers only.
 * @param {Array} params.scale Values used to map a dimension of data to a visual representation. The first value sets visualization for minimum value from the data set and the last value sets visualization for the maximum value. There also could be intermidiate values. Default value is <code>['#C8EEFF', '#0071A4']</code>.
 * @param {Function|String} params.normalizeFunction The function used to map input values to the provided scale. This parameter could be provided as function or one of the strings: <code>'linear'</code> or <code>'polynomial'</code>, while <code>'linear'</code> is used by default. The function provided takes value from the data set as an input and returns corresponding value from the scale.
 * @param {Number} params.min Minimum value of the data set. Could be calculated automatically if not provided.
 * @param {Number} params.max Maximum value of the data set. Could be calculated automatically if not provided.
 */
jvm.DataSeries = function (params, elements, map) {
  var scaleConstructor;

  params = params || {};
  params.attribute = params.attribute || "fill";

  this.elements = elements;
  this.params = params;
  this.map = map;

  if (params.attributes) {
    this.setAttributes(params.attributes);
  }

  if (jvm.$.isArray(params.scale)) {
    scaleConstructor =
      params.attribute === "fill" || params.attribute === "stroke"
        ? jvm.ColorScale
        : jvm.NumericScale;
    this.scale = new scaleConstructor(
      params.scale,
      params.normalizeFunction,
      params.min,
      params.max,
    );
  } else if (params.scale) {
    this.scale = new jvm.OrdinalScale(params.scale);
  } else {
    this.scale = new jvm.SimpleScale(params.scale);
  }

  this.values = params.values || {};
  this.setValues(this.values);

  if (this.params.legend) {
    this.legend = new jvm.Legend(
      jvm.$.extend(
        {
          map: this.map,
          series: this,
        },
        this.params.legend,
      ),
    );
  }
};

jvm.DataSeries.prototype = {
  setAttributes: function (key, attr) {
    var attrs = key,
      code;

    if (typeof key == "string") {
      if (this.elements[key]) {
        this.elements[key].setStyle(this.params.attribute, attr);
      }
    } else {
      for (code in attrs) {
        if (this.elements[code]) {
          this.elements[code].element.setStyle(
            this.params.attribute,
            attrs[code],
          );
        }
      }
    }
  },

  /**
   * Set values for the data set.
   * @param {Object} values Object which maps codes of regions or markers to values.
   */
  setValues: function (values) {
    var max = -Number.MAX_VALUE,
      min = Number.MAX_VALUE,
      val,
      cc,
      attrs = {};

    if (
      !(this.scale instanceof jvm.OrdinalScale) &&
      !(this.scale instanceof jvm.SimpleScale)
    ) {
      // we have a color scale as an array
      if (
        typeof this.params.min === "undefined" ||
        typeof this.params.max === "undefined"
      ) {
        // min and/or max are not defined, so calculate them
        for (cc in values) {
          val = parseFloat(values[cc]);
          if (val > max) max = val;
          if (val < min) min = val;
        }
      }

      if (typeof this.params.min === "undefined") {
        this.scale.setMin(min);
        this.params.min = min;
      } else {
        this.scale.setMin(this.params.min);
      }

      if (typeof this.params.max === "undefined") {
        this.scale.setMax(max);
        this.params.max = max;
      } else {
        this.scale.setMax(this.params.max);
      }

      for (cc in values) {
        if (cc != "indexOf") {
          val = parseFloat(values[cc]);
          if (!isNaN(val)) {
            attrs[cc] = this.scale.getValue(val);
          } else {
            attrs[cc] =
              this.elements[cc].element.style.initial[this.params.attribute];
          }
        }
      }
    } else {
      for (cc in values) {
        if (values[cc]) {
          attrs[cc] = this.scale.getValue(values[cc]);
        } else {
          attrs[cc] =
            this.elements[cc].element.style.initial[this.params.attribute];
        }
      }
    }

    this.setAttributes(attrs);
    jvm.$.extend(this.values, values);
  },

  clear: function () {
    var key,
      attrs = {};

    for (key in this.values) {
      if (this.elements[key]) {
        attrs[key] =
          this.elements[key].element.shape.style.initial[this.params.attribute];
      }
    }
    this.setAttributes(attrs);
    this.values = {};
  },

  clearAndSet: function (values) {
    this.clear();
    this.setValues(values);
  },

  /**
   * Set scale of the data series.
   * @param {Array} scale Values representing scale.
   */
  setScale: function (scale) {
    this.scale.setScale(scale);
    if (this.values) {
      this.setValues(this.values);
    }
  },

  /**
   * Set normalize function of the data series.
   * @param {Function|String} f Normalize function.
   */
  setNormalizeFunction: function (f) {
    this.scale.setNormalizeFunction(f);
    if (this.values) {
      this.setValues(this.values);
    }
  },
};
/**
 * Contains methods for transforming point on sphere to
 * Cartesian coordinates using various projections.
 * @class
 */
jvm.Proj = {
  degRad: 180 / Math.PI,
  radDeg: Math.PI / 180,
  radius: 6381372,

  sgn: function(n){
    if (n > 0) {
      return 1;
    } else if (n < 0) {
      return -1;
    } else {
      return n;
    }
  },

  /**
   * Converts point on sphere to the Cartesian coordinates using Miller projection
   * @param {Number} lat Latitude in degrees
   * @param {Number} lng Longitude in degrees
   * @param {Number} c Central meridian in degrees
   */
  mill: function(lat, lng, c){
    return {
      x: this.radius * (lng - c) * this.radDeg,
      y: - this.radius * Math.log(Math.tan((45 + 0.4 * lat) * this.radDeg)) / 0.8
    };
  },

  /**
   * Inverse function of mill()
   * Converts Cartesian coordinates to point on sphere using Miller projection
   * @param {Number} x X of point in Cartesian system as integer
   * @param {Number} y Y of point in Cartesian system as integer
   * @param {Number} c Central meridian in degrees
   */
  mill_inv: function(x, y, c){
    return {
      lat: (2.5 * Math.atan(Math.exp(0.8 * y / this.radius)) - 5 * Math.PI / 8) * this.degRad,
      lng: (c * this.radDeg + x / this.radius) * this.degRad
    };
  },

  /**
   * Converts point on sphere to the Cartesian coordinates using Mercator projection
   * @param {Number} lat Latitude in degrees
   * @param {Number} lng Longitude in degrees
   * @param {Number} c Central meridian in degrees
   */
  merc: function(lat, lng, c){
    return {
      x: this.radius * (lng - c) * this.radDeg,
      y: - this.radius * Math.log(Math.tan(Math.PI / 4 + lat * Math.PI / 360))
    };
  },

  /**
   * Inverse function of merc()
   * Converts Cartesian coordinates to point on sphere using Mercator projection
   * @param {Number} x X of point in Cartesian system as integer
   * @param {Number} y Y of point in Cartesian system as integer
   * @param {Number} c Central meridian in degrees
   */
  merc_inv: function(x, y, c){
    return {
      lat: (2 * Math.atan(Math.exp(y / this.radius)) - Math.PI / 2) * this.degRad,
      lng: (c * this.radDeg + x / this.radius) * this.degRad
    };
  },

  /**
   * Converts point on sphere to the Cartesian coordinates using Albers Equal-Area Conic
   * projection
   * @see <a href="http://mathworld.wolfram.com/AlbersEqual-AreaConicProjection.html">Albers Equal-Area Conic projection</a>
   * @param {Number} lat Latitude in degrees
   * @param {Number} lng Longitude in degrees
   * @param {Number} c Central meridian in degrees
   */
  aea: function(lat, lng, c){
    var fi0 = 0,
        lambda0 = c * this.radDeg,
        fi1 = 29.5 * this.radDeg,
        fi2 = 45.5 * this.radDeg,
        fi = lat * this.radDeg,
        lambda = lng * this.radDeg,
        n = (Math.sin(fi1)+Math.sin(fi2)) / 2,
        C = Math.cos(fi1)*Math.cos(fi1)+2*n*Math.sin(fi1),
        theta = n*(lambda-lambda0),
        ro = Math.sqrt(C-2*n*Math.sin(fi))/n,
        ro0 = Math.sqrt(C-2*n*Math.sin(fi0))/n;

    return {
      x: ro * Math.sin(theta) * this.radius,
      y: - (ro0 - ro * Math.cos(theta)) * this.radius
    };
  },

  /**
   * Converts Cartesian coordinates to the point on sphere using Albers Equal-Area Conic
   * projection
   * @see <a href="http://mathworld.wolfram.com/AlbersEqual-AreaConicProjection.html">Albers Equal-Area Conic projection</a>
   * @param {Number} x X of point in Cartesian system as integer
   * @param {Number} y Y of point in Cartesian system as integer
   * @param {Number} c Central meridian in degrees
   */
  aea_inv: function(xCoord, yCoord, c){
    var x = xCoord / this.radius,
        y = yCoord / this.radius,
        fi0 = 0,
        lambda0 = c * this.radDeg,
        fi1 = 29.5 * this.radDeg,
        fi2 = 45.5 * this.radDeg,
        n = (Math.sin(fi1)+Math.sin(fi2)) / 2,
        C = Math.cos(fi1)*Math.cos(fi1)+2*n*Math.sin(fi1),
        ro0 = Math.sqrt(C-2*n*Math.sin(fi0))/n,
        ro = Math.sqrt(x*x+(ro0-y)*(ro0-y)),
        theta = Math.atan( x / (ro0 - y) );

    return {
      lat: (Math.asin((C - ro * ro * n * n) / (2 * n))) * this.degRad,
      lng: (lambda0 + theta / n) * this.degRad
    };
  },

  /**
   * Converts point on sphere to the Cartesian coordinates using Lambert conformal
   * conic projection
   * @see <a href="http://mathworld.wolfram.com/LambertConformalConicProjection.html">Lambert Conformal Conic Projection</a>
   * @param {Number} lat Latitude in degrees
   * @param {Number} lng Longitude in degrees
   * @param {Number} c Central meridian in degrees
   */
  lcc: function(lat, lng, c){
    var fi0 = 0,
        lambda0 = c * this.radDeg,
        lambda = lng * this.radDeg,
        fi1 = 33 * this.radDeg,
        fi2 = 45 * this.radDeg,
        fi = lat * this.radDeg,
        n = Math.log( Math.cos(fi1) * (1 / Math.cos(fi2)) ) / Math.log( Math.tan( Math.PI / 4 + fi2 / 2) * (1 / Math.tan( Math.PI / 4 + fi1 / 2) ) ),
        F = ( Math.cos(fi1) * Math.pow( Math.tan( Math.PI / 4 + fi1 / 2 ), n ) ) / n,
        ro = F * Math.pow( 1 / Math.tan( Math.PI / 4 + fi / 2 ), n ),
        ro0 = F * Math.pow( 1 / Math.tan( Math.PI / 4 + fi0 / 2 ), n );

    return {
      x: ro * Math.sin( n * (lambda - lambda0) ) * this.radius,
      y: - (ro0 - ro * Math.cos( n * (lambda - lambda0) ) ) * this.radius
    };
  },

  /**
   * Converts Cartesian coordinates to the point on sphere using Lambert conformal conic
   * projection
   * @see <a href="http://mathworld.wolfram.com/LambertConformalConicProjection.html">Lambert Conformal Conic Projection</a>
   * @param {Number} x X of point in Cartesian system as integer
   * @param {Number} y Y of point in Cartesian system as integer
   * @param {Number} c Central meridian in degrees
   */
  lcc_inv: function(xCoord, yCoord, c){
    var x = xCoord / this.radius,
        y = yCoord / this.radius,
        fi0 = 0,
        lambda0 = c * this.radDeg,
        fi1 = 33 * this.radDeg,
        fi2 = 45 * this.radDeg,
        n = Math.log( Math.cos(fi1) * (1 / Math.cos(fi2)) ) / Math.log( Math.tan( Math.PI / 4 + fi2 / 2) * (1 / Math.tan( Math.PI / 4 + fi1 / 2) ) ),
        F = ( Math.cos(fi1) * Math.pow( Math.tan( Math.PI / 4 + fi1 / 2 ), n ) ) / n,
        ro0 = F * Math.pow( 1 / Math.tan( Math.PI / 4 + fi0 / 2 ), n ),
        ro = this.sgn(n) * Math.sqrt(x*x+(ro0-y)*(ro0-y)),
        theta = Math.atan( x / (ro0 - y) );

    return {
      lat: (2 * Math.atan(Math.pow(F/ro, 1/n)) - Math.PI / 2) * this.degRad,
      lng: (lambda0 + theta / n) * this.degRad
    };
  }
};jvm.MapObject = function(config){};

jvm.MapObject.prototype.getLabelText = function(key){
  var text;

  if (this.config.label) {
    if (typeof this.config.label.render === 'function') {
      text = this.config.label.render(key);
    } else {
      text = key;
    }
  } else {
    text = null;
  }
  return text;
}

jvm.MapObject.prototype.getLabelOffsets = function(key){
  var offsets;

  if (this.config.label) {
    if (typeof this.config.label.offsets === 'function') {
      offsets = this.config.label.offsets(key);
    } else if (typeof this.config.label.offsets === 'object') {
      offsets = this.config.label.offsets[key];
    }
  }
  return offsets || [0, 0];
}

/**
 * Set hovered state to the element. Hovered state means mouse cursor is over element. Styles will be updates respectively.
 * @param {Boolean} isHovered <code>true</code> to make element hovered, <code>false</code> otherwise.
 */
jvm.MapObject.prototype.setHovered = function(isHovered){
  if (this.isHovered !== isHovered) {
    this.isHovered = isHovered;
    this.shape.isHovered = isHovered;
    this.shape.updateStyle();
    if (this.label) {
      this.label.isHovered = isHovered;
      this.label.updateStyle();
    }
  }
};

/**
 * Set selected state to the element. Styles will be updates respectively.
 * @param {Boolean} isSelected <code>true</code> to make element selected, <code>false</code> otherwise.
 */
jvm.MapObject.prototype.setSelected = function(isSelected){
  if (this.isSelected !== isSelected) {
    this.isSelected = isSelected;
    this.shape.isSelected = isSelected;
    this.shape.updateStyle();
    if (this.label) {
      this.label.isSelected = isSelected;
      this.label.updateStyle();
    }
    jvm.$(this.shape).trigger('selected', [isSelected]);
  }
};

jvm.MapObject.prototype.setStyle = function(){
	this.shape.setStyle.apply(this.shape, arguments);
};

jvm.MapObject.prototype.remove = function(){
  this.shape.remove();
  if (this.label) {
    this.label.remove();
  }
};jvm.Region = function(config){
  var bbox,
      text,
      offsets,
      labelDx,
      labelDy;

  this.config = config;
  this.map = this.config.map;

  this.shape = config.canvas.addPath({
    d: config.path,
    'data-code': config.code
  }, config.style, config.canvas.rootElement);
  this.shape.addClass('jvectormap-region jvectormap-element');

  bbox = this.shape.getBBox();

  text = this.getLabelText(config.code);
  if (this.config.label && text) {
    offsets = this.getLabelOffsets(config.code);
    this.labelX = bbox.x + bbox.width / 2 + offsets[0];
    this.labelY = bbox.y + bbox.height / 2 + offsets[1];
    this.label = config.canvas.addText({
      text: text,
      'text-anchor': 'middle',
      'alignment-baseline': 'central',
      x: this.labelX,
      y: this.labelY,
      'data-code': config.code
    }, config.labelStyle, config.labelsGroup);
    this.label.addClass('jvectormap-region jvectormap-element');
  }
};

jvm.inherits(jvm.Region, jvm.MapObject);

jvm.Region.prototype.updateLabelPosition = function(){
  if (this.label) {
    this.label.set({
      x: this.labelX * this.map.scale + this.map.transX * this.map.scale,
      y: this.labelY * this.map.scale + this.map.transY * this.map.scale
    });
  }
};jvm.Marker = function(config){
  var text,
      offsets;

  this.config = config;
  this.map = this.config.map;

  this.isImage = !!this.config.style.initial.image;
  this.createShape();

  text = this.getLabelText(config.index);
  if (this.config.label && text) {
    this.offsets = this.getLabelOffsets(config.index);
    this.labelX = config.cx / this.map.scale - this.map.transX;
    this.labelY = config.cy / this.map.scale - this.map.transY;
    this.label = config.canvas.addText({
      text: text,
      'data-index': config.index,
      dy: "0.6ex",
      x: this.labelX,
      y: this.labelY
    }, config.labelStyle, config.labelsGroup);

    this.label.addClass('jvectormap-marker jvectormap-element');
  }
};

jvm.inherits(jvm.Marker, jvm.MapObject);

jvm.Marker.prototype.createShape = function(){
  var that = this;

  if (this.shape) {
    this.shape.remove();
  }
  this.shape = this.config.canvas[this.isImage ? 'addImage' : 'addCircle']({
    "data-index": this.config.index,
    cx: this.config.cx,
    cy: this.config.cy
  }, this.config.style, this.config.group);

  this.shape.addClass('jvectormap-marker jvectormap-element');

  if (this.isImage) {
    jvm.$(this.shape.node).on('imageloaded', function(){
      that.updateLabelPosition();
    });
  }
};

jvm.Marker.prototype.updateLabelPosition = function(){
  if (this.label) {
    this.label.set({
      x: this.labelX * this.map.scale + this.offsets[0] +
         this.map.transX * this.map.scale + 5 + (this.isImage ? (this.shape.width || 0) / 2 : this.shape.properties.r),
      y: this.labelY * this.map.scale + this.map.transY * this.map.scale + this.offsets[1]
    });
  }
};

jvm.Marker.prototype.setStyle = function(property, value){
  var isImage;

  jvm.Marker.parentClass.prototype.setStyle.apply(this, arguments);

  if (property === 'r') {
    this.updateLabelPosition();
  }

  isImage = !!this.shape.get('image');
  if (isImage != this.isImage) {
    this.isImage = isImage;
    this.config.style = jvm.$.extend(true, {}, this.shape.style);
    this.createShape();
  }
};/**
 * Creates map, draws paths, binds events.
 * @constructor
 * @param {Object} params Parameters to initialize map with.
 * @param {String} params.map Name of the map in the format <code>territory_proj_lang</code> where <code>territory</code> is a unique code or name of the territory which the map represents (ISO 3166 standard is used where possible), <code>proj</code> is a name of projection used to generate representation of the map on the plane (projections are named according to the conventions of proj4 utility) and <code>lang</code> is a code of the language, used for the names of regions.
 * @param {String} params.backgroundColor Background color of the map in CSS format.
 * @param {Boolean} params.zoomOnScroll When set to true map could be zoomed using mouse scroll. Default value is <code>true</code>.
 * @param {Number} params.zoomOnScrollSpeed Mouse scroll speed. Number from 1 to 10. Default value is <code>3</code>.
 * @param {Boolean} params.panOnDrag When set to true, the map pans when being dragged. Default value is <code>true</code>.
 * @param {Number} params.zoomMax Indicates the maximum zoom ratio which could be reached zooming the map. Default value is <code>8</code>.
 * @param {Number} params.zoomMin Indicates the minimum zoom ratio which could be reached zooming the map. Default value is <code>1</code>.
 * @param {Number} params.zoomStep Indicates the multiplier used to zoom map with +/- buttons. Default value is <code>1.6</code>.
 * @param {Boolean} params.zoomAnimate Indicates whether or not to animate changing of map zoom with zoom buttons.
 * @param {Boolean} params.regionsSelectable When set to true regions of the map could be selected. Default value is <code>false</code>.
 * @param {Boolean} params.regionsSelectableOne Allow only one region to be selected at the moment. Default value is <code>false</code>.
 * @param {Boolean} params.markersSelectable When set to true markers on the map could be selected. Default value is <code>false</code>.
 * @param {Boolean} params.markersSelectableOne Allow only one marker to be selected at the moment. Default value is <code>false</code>.
 * @param {Object} params.regionStyle Set the styles for the map's regions. Each region or marker has four states: <code>initial</code> (default state), <code>hover</code> (when the mouse cursor is over the region or marker), <code>selected</code> (when region or marker is selected), <code>selectedHover</code> (when the mouse cursor is over the region or marker and it's selected simultaneously). Styles could be set for each of this states. Default value for that parameter is:
<pre>{
  initial: {
    fill: 'white',
    "fill-opacity": 1,
    stroke: 'none',
    "stroke-width": 0,
    "stroke-opacity": 1
  },
  hover: {
    "fill-opacity": 0.8,
    cursor: 'pointer'
  },
  selected: {
    fill: 'yellow'
  },
  selectedHover: {
  }
}</pre>
* @param {Object} params.regionLabelStyle Set the styles for the regions' labels. Each region or marker has four states: <code>initial</code> (default state), <code>hover</code> (when the mouse cursor is over the region or marker), <code>selected</code> (when region or marker is selected), <code>selectedHover</code> (when the mouse cursor is over the region or marker and it's selected simultaneously). Styles could be set for each of this states. Default value for that parameter is:
<pre>{
  initial: {
    'font-family': 'Verdana',
    'font-size': '12',
    'font-weight': 'bold',
    cursor: 'default',
    fill: 'black'
  },
  hover: {
    cursor: 'pointer'
  }
}</pre>
 * @param {Object} params.markerStyle Set the styles for the map's markers. Any parameter suitable for <code>regionStyle</code> could be used as well as numeric parameter <code>r</code> to set the marker's radius. Default value for that parameter is:
<pre>{
  initial: {
    fill: 'grey',
    stroke: '#505050',
    "fill-opacity": 1,
    "stroke-width": 1,
    "stroke-opacity": 1,
    r: 5
  },
  hover: {
    stroke: 'black',
    "stroke-width": 2,
    cursor: 'pointer'
  },
  selected: {
    fill: 'blue'
  },
  selectedHover: {
  }
}</pre>
You can also use <code>image</code> style attribute for markers. By default marker images are centered with the target point on map. To supply a custom offset please use the following format:
<pre>{
  url: 'image/url',
  offset: [-10, 5]
}</pre>
 * @param {Object} params.markerLabelStyle Set the styles for the markers' labels. Default value for that parameter is:
<pre>{
  initial: {
    'font-family': 'Verdana',
    'font-size': '12',
    'font-weight': 'bold',
    cursor: 'default',
    fill: 'black'
  },
  hover: {
    cursor: 'pointer'
  }
}</pre>
 * @param {Object|Array} params.markers Set of markers to add to the map during initialization. In case of array is provided, codes of markers will be set as string representations of array indexes. Each marker is represented by <code>latLng</code> (array of two numeric values), <code>name</code> (string which will be show on marker's tip) and any marker styles.
 * @param {Object} params.series Object with two keys: <code>markers</code> and <code>regions</code>. Each of which is an array of series configs to be applied to the respective map elements. See <a href="jvm.DataSeries.html">DataSeries</a> description for a list of parameters available.
 * @param {Object|String} params.focusOn This parameter sets the initial position and scale of the map viewport. See <code>setFocus</code> docuemntation for possible parameters.
 * @param {Object} params.labels Defines parameters for rendering static labels. Object could contain two keys: <code>regions</code> and <code>markers</code>. Each key value defines configuration object with the following possible options:
<ul>
  <li><code>render {Function}</code> - defines method for converting region code or marker index to actual label value.</li>
  <li><code>offsets {Object|Function}</code> - provides method or object which could be used to define label offset by region code or marker index.</li>
</ul>
<b>Plase note: static labels feature is not supported in Internet Explorer 8 and below.</b>
 * @param {Array|Object|String} params.selectedRegions Set initially selected regions.
 * @param {Array|Object|String} params.selectedMarkers Set initially selected markers.
 * @param {Function} params.onRegionTipShow <code>(Event e, Object tip, String code)</code> Will be called right before the region tip is going to be shown.
 * @param {Function} params.onRegionOver <code>(Event e, String code)</code> Will be called on region mouse over event.
 * @param {Function} params.onRegionOut <code>(Event e, String code)</code> Will be called on region mouse out event.
 * @param {Function} params.onRegionClick <code>(Event e, String code)</code> Will be called on region click event.
 * @param {Function} params.onRegionSelected <code>(Event e, String code, Boolean isSelected, Array selectedRegions)</code> Will be called when region is (de)selected. <code>isSelected</code> parameter of the callback indicates whether region is selected or not. <code>selectedRegions</code> contains codes of all currently selected regions.
 * @param {Function} params.onMarkerTipShow <code>(Event e, Object tip, String code)</code> Will be called right before the marker tip is going to be shown.
 * @param {Function} params.onMarkerOver <code>(Event e, String code)</code> Will be called on marker mouse over event.
 * @param {Function} params.onMarkerOut <code>(Event e, String code)</code> Will be called on marker mouse out event.
 * @param {Function} params.onMarkerClick <code>(Event e, String code)</code> Will be called on marker click event.
 * @param {Function} params.onMarkerSelected <code>(Event e, String code, Boolean isSelected, Array selectedMarkers)</code> Will be called when marker is (de)selected. <code>isSelected</code> parameter of the callback indicates whether marker is selected or not. <code>selectedMarkers</code> contains codes of all currently selected markers.
 * @param {Function} params.onViewportChange <code>(Event e, Number scale)</code> Triggered when the map's viewport is changed (map was panned or zoomed).
 */
jvm.Map = function (params) {
  var map = this,
    e;

  this.params = jvm.$.extend(true, {}, jvm.Map.defaultParams, params);

  if (!jvm.Map.maps[this.params.map]) {
    throw new Error(
      "Attempt to use map which was not loaded: " + this.params.map,
    );
  }

  this.mapData = jvm.Map.maps[this.params.map];
  this.markers = {};
  this.regions = {};
  this.regionsColors = {};
  this.regionsData = {};

  this.container = jvm.$("<div>").addClass("jvectormap-container");
  if (this.params.container) {
    this.params.container.append(this.container);
  }
  this.container.data("mapObject", this);

  this.defaultWidth = this.mapData.width;
  this.defaultHeight = this.mapData.height;

  this.setBackgroundColor(this.params.backgroundColor);

  this.onResize = function () {
    map.updateSize();
  };
  jvm.$(window).resize(this.onResize);

  for (e in jvm.Map.apiEvents) {
    if (this.params[e]) {
      this.container.bind(jvm.Map.apiEvents[e] + ".jvectormap", this.params[e]);
    }
  }

  this.canvas = new jvm.VectorCanvas(
    this.container[0],
    this.width,
    this.height,
  );

  if (this.params.bindTouchEvents) {
    if (
      "ontouchstart" in window ||
      (window.DocumentTouch && document instanceof DocumentTouch)
    ) {
      this.bindContainerTouchEvents();
    } else if (window.MSGesture) {
      this.bindContainerPointerEvents();
    }
  }
  this.bindContainerEvents();
  this.bindElementEvents();
  this.createTip();
  if (this.params.zoomButtons) {
    this.bindZoomButtons();
  }

  this.createRegions();
  this.createMarkers(this.params.markers || {});

  this.updateSize();

  if (this.params.focusOn) {
    if (typeof this.params.focusOn === "string") {
      this.params.focusOn = { region: this.params.focusOn };
    } else if (jvm.$.isArray(this.params.focusOn)) {
      this.params.focusOn = { regions: this.params.focusOn };
    }
    this.setFocus(this.params.focusOn);
  }

  if (this.params.selectedRegions) {
    this.setSelectedRegions(this.params.selectedRegions);
  }
  if (this.params.selectedMarkers) {
    this.setSelectedMarkers(this.params.selectedMarkers);
  }

  this.legendCntHorizontal = jvm
    .$("<div/>")
    .addClass("jvectormap-legend-cnt jvectormap-legend-cnt-h");
  this.legendCntVertical = jvm
    .$("<div/>")
    .addClass("jvectormap-legend-cnt jvectormap-legend-cnt-v");
  this.container.append(this.legendCntHorizontal);
  this.container.append(this.legendCntVertical);

  if (this.params.series) {
    this.createSeries();
  }
};

jvm.Map.prototype = {
  transX: 0,
  transY: 0,
  scale: 1,
  baseTransX: 0,
  baseTransY: 0,
  baseScale: 1,

  width: 0,
  height: 0,

  /**
   * Set background color of the map.
   * @param {String} backgroundColor Background color in CSS format.
   */
  setBackgroundColor: function (backgroundColor) {
    this.container.css("background-color", backgroundColor);
  },

  resize: function () {
    var curBaseScale = this.baseScale;
    if (this.width / this.height > this.defaultWidth / this.defaultHeight) {
      this.baseScale = this.height / this.defaultHeight;
      this.baseTransX =
        Math.abs(this.width - this.defaultWidth * this.baseScale) /
        (2 * this.baseScale);
    } else {
      this.baseScale = this.width / this.defaultWidth;
      this.baseTransY =
        Math.abs(this.height - this.defaultHeight * this.baseScale) /
        (2 * this.baseScale);
    }
    this.scale *= this.baseScale / curBaseScale;
    this.transX *= this.baseScale / curBaseScale;
    this.transY *= this.baseScale / curBaseScale;
  },

  /**
   * Synchronize the size of the map with the size of the container. Suitable in situations where the size of the container is changed programmatically or container is shown after it became visible.
   */
  updateSize: function () {
    this.width = this.container.width();
    this.height = this.container.height();
    this.resize();
    this.canvas.setSize(this.width, this.height);
    this.applyTransform();
  },

  /**
   * Reset all the series and show the map with the initial zoom.
   */
  reset: function () {
    var key, i;

    for (key in this.series) {
      for (i = 0; i < this.series[key].length; i++) {
        this.series[key][i].clear();
      }
    }
    this.scale = this.baseScale;
    this.transX = this.baseTransX;
    this.transY = this.baseTransY;
    this.applyTransform();
  },

  applyTransform: function () {
    var maxTransX, maxTransY, minTransX, minTransY;

    if (this.defaultWidth * this.scale <= this.width) {
      maxTransX =
        (this.width - this.defaultWidth * this.scale) / (2 * this.scale);
      minTransX =
        (this.width - this.defaultWidth * this.scale) / (2 * this.scale);
    } else {
      maxTransX = 0;
      minTransX = (this.width - this.defaultWidth * this.scale) / this.scale;
    }

    if (this.defaultHeight * this.scale <= this.height) {
      maxTransY =
        (this.height - this.defaultHeight * this.scale) / (2 * this.scale);
      minTransY =
        (this.height - this.defaultHeight * this.scale) / (2 * this.scale);
    } else {
      maxTransY = 0;
      minTransY = (this.height - this.defaultHeight * this.scale) / this.scale;
    }

    if (this.transY > maxTransY) {
      this.transY = maxTransY;
    } else if (this.transY < minTransY) {
      this.transY = minTransY;
    }
    if (this.transX > maxTransX) {
      this.transX = maxTransX;
    } else if (this.transX < minTransX) {
      this.transX = minTransX;
    }

    this.canvas.applyTransformParams(this.scale, this.transX, this.transY);

    if (this.markers) {
      this.repositionMarkers();
    }

    this.repositionLabels();

    this.container.trigger("viewportChange", [
      this.scale / this.baseScale,
      this.transX,
      this.transY,
    ]);
  },

  bindContainerEvents: function () {
    var mouseDown = false,
      oldPageX,
      oldPageY,
      map = this;

    if (this.params.panOnDrag) {
      this.container
        .mousemove(function (e) {
          if (mouseDown) {
            map.transX -= (oldPageX - e.pageX) / map.scale;
            map.transY -= (oldPageY - e.pageY) / map.scale;

            map.applyTransform();

            oldPageX = e.pageX;
            oldPageY = e.pageY;
          }
          return false;
        })
        .mousedown(function (e) {
          mouseDown = true;
          oldPageX = e.pageX;
          oldPageY = e.pageY;
          return false;
        });

      this.onContainerMouseUp = function () {
        mouseDown = false;
      };
      jvm.$("body").mouseup(this.onContainerMouseUp);
    }

    if (this.params.zoomOnScroll) {
      this.container.mousewheel(function (event, delta, deltaX, deltaY) {
        var offset = jvm.$(map.container).offset(),
          centerX = event.pageX - offset.left,
          centerY = event.pageY - offset.top,
          zoomStep = Math.pow(
            1 + map.params.zoomOnScrollSpeed / 1000,
            event.deltaFactor * event.deltaY,
          );

        map.tip.hide();

        map.setScale(map.scale * zoomStep, centerX, centerY);
        event.preventDefault();
      });
    }
  },

  bindContainerTouchEvents: function () {
    var touchStartScale,
      touchStartDistance,
      map = this,
      touchX,
      touchY,
      centerTouchX,
      centerTouchY,
      lastTouchesLength,
      handleTouchEvent = function (e) {
        var touches = e.originalEvent.touches,
          offset,
          scale,
          transXOld,
          transYOld;

        if (e.type == "touchstart") {
          lastTouchesLength = 0;
        }

        if (touches.length == 1) {
          if (lastTouchesLength == 1) {
            transXOld = map.transX;
            transYOld = map.transY;
            map.transX -= (touchX - touches[0].pageX) / map.scale;
            map.transY -= (touchY - touches[0].pageY) / map.scale;
            map.applyTransform();
            map.tip.hide();
            if (transXOld != map.transX || transYOld != map.transY) {
              e.preventDefault();
            }
          }
          touchX = touches[0].pageX;
          touchY = touches[0].pageY;
        } else if (touches.length == 2) {
          if (lastTouchesLength == 2) {
            scale =
              Math.sqrt(
                Math.pow(touches[0].pageX - touches[1].pageX, 2) +
                  Math.pow(touches[0].pageY - touches[1].pageY, 2),
              ) / touchStartDistance;
            map.setScale(touchStartScale * scale, centerTouchX, centerTouchY);
            map.tip.hide();
            e.preventDefault();
          } else {
            offset = jvm.$(map.container).offset();
            if (touches[0].pageX > touches[1].pageX) {
              centerTouchX =
                touches[1].pageX + (touches[0].pageX - touches[1].pageX) / 2;
            } else {
              centerTouchX =
                touches[0].pageX + (touches[1].pageX - touches[0].pageX) / 2;
            }
            if (touches[0].pageY > touches[1].pageY) {
              centerTouchY =
                touches[1].pageY + (touches[0].pageY - touches[1].pageY) / 2;
            } else {
              centerTouchY =
                touches[0].pageY + (touches[1].pageY - touches[0].pageY) / 2;
            }
            centerTouchX -= offset.left;
            centerTouchY -= offset.top;
            touchStartScale = map.scale;
            touchStartDistance = Math.sqrt(
              Math.pow(touches[0].pageX - touches[1].pageX, 2) +
                Math.pow(touches[0].pageY - touches[1].pageY, 2),
            );
          }
        }

        lastTouchesLength = touches.length;
      };

    jvm.$(this.container).bind("touchstart", handleTouchEvent);
    jvm.$(this.container).bind("touchmove", handleTouchEvent);
  },

  bindContainerPointerEvents: function () {
    var map = this,
      gesture = new MSGesture(),
      element = this.container[0],
      handlePointerDownEvent = function (e) {
        gesture.addPointer(e.pointerId);
      },
      handleGestureEvent = function (e) {
        var offset, scale, transXOld, transYOld;

        if (e.translationX != 0 || e.translationY != 0) {
          transXOld = map.transX;
          transYOld = map.transY;
          map.transX += e.translationX / map.scale;
          map.transY += e.translationY / map.scale;
          map.applyTransform();
          map.tip.hide();
          if (transXOld != map.transX || transYOld != map.transY) {
            e.preventDefault();
          }
        }
        if (e.scale != 1) {
          map.setScale(map.scale * e.scale, e.offsetX, e.offsetY);
          map.tip.hide();
          e.preventDefault();
        }
      };

    gesture.target = element;
    element.addEventListener("MSGestureChange", handleGestureEvent, false);
    element.addEventListener("pointerdown", handlePointerDownEvent, false);
  },

  bindElementEvents: function () {
    var map = this,
      pageX,
      pageY,
      mouseMoved;

    this.container.mousemove(function (e) {
      if (Math.abs(pageX - e.pageX) + Math.abs(pageY - e.pageY) > 2) {
        mouseMoved = true;
      }
    });

    /* Can not use common class selectors here because of the bug in jQuery
       SVG handling, use with caution. */
    this.container.delegate(
      "[class~='jvectormap-element']",
      "mouseover mouseout",
      function (e) {
        var baseVal =
            jvm.$(this).attr("class").baseVal || jvm.$(this).attr("class"),
          type =
            baseVal.indexOf("jvectormap-region") === -1 ? "marker" : "region",
          code =
            type == "region"
              ? jvm.$(this).attr("data-code")
              : jvm.$(this).attr("data-index"),
          element =
            type == "region"
              ? map.regions[code].element
              : map.markers[code].element,
          tipText =
            type == "region"
              ? map.mapData.paths[code].name
              : map.markers[code].config.name || "",
          tipShowEvent = jvm.$.Event(type + "TipShow.jvectormap"),
          overEvent = jvm.$.Event(type + "Over.jvectormap");

        if (e.type == "mouseover") {
          map.container.trigger(overEvent, [code]);
          if (!overEvent.isDefaultPrevented()) {
            element.setHovered(true);
          }

          map.tip.text(tipText);
          map.container.trigger(tipShowEvent, [map.tip, code]);
          if (!tipShowEvent.isDefaultPrevented()) {
            map.tip.show();
            map.tipWidth = map.tip.width();
            map.tipHeight = map.tip.height();
          }
        } else {
          element.setHovered(false);
          map.tip.hide();
          map.container.trigger(type + "Out.jvectormap", [code]);
        }
      },
    );

    /* Can not use common class selectors here because of the bug in jQuery
       SVG handling, use with caution. */
    this.container.delegate(
      "[class~='jvectormap-element']",
      "mousedown",
      function (e) {
        pageX = e.pageX;
        pageY = e.pageY;
        mouseMoved = false;
      },
    );

    /* Can not use common class selectors here because of the bug in jQuery
       SVG handling, use with caution. */
    this.container.delegate(
      "[class~='jvectormap-element']",
      "mouseup",
      function () {
        var baseVal = jvm.$(this).attr("class").baseVal
            ? jvm.$(this).attr("class").baseVal
            : jvm.$(this).attr("class"),
          type =
            baseVal.indexOf("jvectormap-region") === -1 ? "marker" : "region",
          code =
            type == "region"
              ? jvm.$(this).attr("data-code")
              : jvm.$(this).attr("data-index"),
          clickEvent = jvm.$.Event(type + "Click.jvectormap"),
          element =
            type == "region"
              ? map.regions[code].element
              : map.markers[code].element;

        if (!mouseMoved) {
          map.container.trigger(clickEvent, [code]);
          if (
            (type === "region" && map.params.regionsSelectable) ||
            (type === "marker" && map.params.markersSelectable)
          ) {
            if (!clickEvent.isDefaultPrevented()) {
              if (map.params[type + "sSelectableOne"]) {
                map.clearSelected(type + "s");
              }
              element.setSelected(!element.isSelected);
            }
          }
        }
      },
    );
  },

  bindZoomButtons: function () {
    var map = this;

    jvm
      .$("<div/>")
      .addClass("jvectormap-zoomin")
      .text("+")
      .appendTo(this.container);
    jvm
      .$("<div/>")
      .addClass("jvectormap-zoomout")
      .html("&#x2212;")
      .appendTo(this.container);

    this.container.find(".jvectormap-zoomin").click(function () {
      map.setScale(
        map.scale * map.params.zoomStep,
        map.width / 2,
        map.height / 2,
        false,
        map.params.zoomAnimate,
      );
    });
    this.container.find(".jvectormap-zoomout").click(function () {
      map.setScale(
        map.scale / map.params.zoomStep,
        map.width / 2,
        map.height / 2,
        false,
        map.params.zoomAnimate,
      );
    });
  },

  createTip: function () {
    var map = this;

    this.tip = jvm
      .$("<div/>")
      .addClass("jvectormap-tip")
      .appendTo(jvm.$("body"));

    this.container.mousemove(function (e) {
      var left = e.pageX - 15 - map.tipWidth,
        top = e.pageY - 15 - map.tipHeight;

      if (left < 5) {
        left = e.pageX + 15;
      }
      if (top < 5) {
        top = e.pageY + 15;
      }

      map.tip.css({
        left: left,
        top: top,
      });
    });
  },

  setScale: function (scale, anchorX, anchorY, isCentered, animate) {
    var viewportChangeEvent = jvm.$.Event("zoom.jvectormap"),
      interval,
      that = this,
      i = 0,
      count = Math.abs(
        Math.round(((scale - this.scale) * 60) / Math.max(scale, this.scale)),
      ),
      scaleStart,
      scaleDiff,
      transXStart,
      transXDiff,
      transYStart,
      transYDiff,
      transX,
      transY,
      deferred = new jvm.$.Deferred();

    if (scale > this.params.zoomMax * this.baseScale) {
      scale = this.params.zoomMax * this.baseScale;
    } else if (scale < this.params.zoomMin * this.baseScale) {
      scale = this.params.zoomMin * this.baseScale;
    }

    if (typeof anchorX != "undefined" && typeof anchorY != "undefined") {
      const zoomStep = scale / this.scale;
      if (isCentered) {
        transX =
          anchorX +
          (this.defaultWidth * (this.width / (this.defaultWidth * scale))) / 2;
        transY =
          anchorY +
          (this.defaultHeight * (this.height / (this.defaultHeight * scale))) /
            2;
      } else {
        transX = this.transX - ((zoomStep - 1) / scale) * anchorX;
        transY = this.transY - ((zoomStep - 1) / scale) * anchorY;
      }
    }

    if (animate && count > 0) {
      scaleStart = this.scale;
      scaleDiff = (scale - scaleStart) / count;
      transXStart = this.transX * this.scale;
      transYStart = this.transY * this.scale;
      transXDiff = (transX * scale - transXStart) / count;
      transYDiff = (transY * scale - transYStart) / count;
      interval = setInterval(function () {
        i += 1;
        that.scale = scaleStart + scaleDiff * i;
        that.transX = (transXStart + transXDiff * i) / that.scale;
        that.transY = (transYStart + transYDiff * i) / that.scale;
        that.applyTransform();
        if (i == count) {
          clearInterval(interval);
          that.container.trigger(viewportChangeEvent, [scale / that.baseScale]);
          deferred.resolve();
        }
      }, 10);
    } else {
      this.transX = transX;
      this.transY = transY;
      this.scale = scale;
      this.applyTransform();
      this.container.trigger(viewportChangeEvent, [scale / this.baseScale]);
      deferred.resolve();
    }

    return deferred;
  },

  /**
   * Set the map's viewport to the specific point and set zoom of the map to the specific level. Point and zoom level could be defined in two ways: using the code of some region to focus on or a central point and zoom level as numbers.
   * @param This method takes a configuration object as the single argument. The options passed to it are the following:
   * @param {Array} params.regions Array of region codes to zoom to.
   * @param {String} params.region Region code to zoom to.
   * @param {Number} params.scale Map scale to set.
   * @param {Number} params.lat Latitude to set viewport to.
   * @param {Number} params.lng Longitude to set viewport to.
   * @param {Number} params.x Number from 0 to 1 specifying the horizontal coordinate of the central point of the viewport.
   * @param {Number} params.y Number from 0 to 1 specifying the vertical coordinate of the central point of the viewport.
   * @param {Boolean} params.animate Indicates whether or not to animate the scale change and transition.
   */
  setFocus: function (config) {
    var bbox, itemBbox, newBbox, codes, i, point;

    config = config || {};

    if (config.region) {
      codes = [config.region];
    } else if (config.regions) {
      codes = config.regions;
    }

    if (codes) {
      for (i = 0; i < codes.length; i++) {
        if (this.regions[codes[i]]) {
          itemBbox = this.regions[codes[i]].element.shape.getBBox();
          if (itemBbox) {
            if (typeof bbox == "undefined") {
              bbox = itemBbox;
            } else {
              newBbox = {
                x: Math.min(bbox.x, itemBbox.x),
                y: Math.min(bbox.y, itemBbox.y),
                width:
                  Math.max(bbox.x + bbox.width, itemBbox.x + itemBbox.width) -
                  Math.min(bbox.x, itemBbox.x),
                height:
                  Math.max(bbox.y + bbox.height, itemBbox.y + itemBbox.height) -
                  Math.min(bbox.y, itemBbox.y),
              };
              bbox = newBbox;
            }
          }
        }
      }
      return this.setScale(
        Math.min(this.width / bbox.width, this.height / bbox.height),
        -(bbox.x + bbox.width / 2),
        -(bbox.y + bbox.height / 2),
        true,
        config.animate,
      );
    } else {
      if (config.lat !== undefined && config.lng !== undefined) {
        point = this.latLngToPoint(config.lat, config.lng);
        config.x = this.transX - point.x / this.scale;
        config.y = this.transY - point.y / this.scale;
      } else if (config.x && config.y) {
        config.x *= -this.defaultWidth;
        config.y *= -this.defaultHeight;
      }
      return this.setScale(
        config.scale * this.baseScale,
        config.x,
        config.y,
        true,
        config.animate,
      );
    }
  },

  getSelected: function (type) {
    var key,
      selected = [];

    for (key in this[type]) {
      if (this[type][key].element.isSelected) {
        selected.push(key);
      }
    }
    return selected;
  },

  /**
   * Return the codes of currently selected regions.
   * @returns {Array}
   */
  getSelectedRegions: function () {
    return this.getSelected("regions");
  },

  /**
   * Return the codes of currently selected markers.
   * @returns {Array}
   */
  getSelectedMarkers: function () {
    return this.getSelected("markers");
  },

  setSelected: function (type, keys) {
    var i;

    if (typeof keys != "object") {
      keys = [keys];
    }

    if (jvm.$.isArray(keys)) {
      for (i = 0; i < keys.length; i++) {
        this[type][keys[i]].element.setSelected(true);
      }
    } else {
      for (i in keys) {
        this[type][i].element.setSelected(!!keys[i]);
      }
    }
  },

  /**
   * Set or remove selected state for the regions.
   * @param {String|Array|Object} keys If <code>String</code> or <code>Array</code> the region(s) with the corresponding code(s) will be selected. If <code>Object</code> was provided its keys are  codes of regions, state of which should be changed. Selected state will be set if value is true, removed otherwise.
   */
  setSelectedRegions: function (keys) {
    this.setSelected("regions", keys);
  },

  /**
   * Set or remove selected state for the markers.
   * @param {String|Array|Object} keys If <code>String</code> or <code>Array</code> the marker(s) with the corresponding code(s) will be selected. If <code>Object</code> was provided its keys are  codes of markers, state of which should be changed. Selected state will be set if value is true, removed otherwise.
   */
  setSelectedMarkers: function (keys) {
    this.setSelected("markers", keys);
  },

  clearSelected: function (type) {
    var select = {},
      selected = this.getSelected(type),
      i;

    for (i = 0; i < selected.length; i++) {
      select[selected[i]] = false;
    }

    this.setSelected(type, select);
  },

  /**
   * Remove the selected state from all the currently selected regions.
   */
  clearSelectedRegions: function () {
    this.clearSelected("regions");
  },

  /**
   * Remove the selected state from all the currently selected markers.
   */
  clearSelectedMarkers: function () {
    this.clearSelected("markers");
  },

  /**
   * Return the instance of Map. Useful when instantiated as a jQuery plug-in.
   * @returns {Map}
   */
  getMapObject: function () {
    return this;
  },

  /**
   * Return the name of the region by region code.
   * @returns {String}
   */
  getRegionName: function (code) {
    return this.mapData.paths[code].name;
  },

  createRegions: function () {
    var key,
      region,
      map = this;

    this.regionLabelsGroup = this.regionLabelsGroup || this.canvas.addGroup();

    for (key in this.mapData.paths) {
      const regionStyle =
        typeof this.params.regionStyle === "function"
          ? {
              ...jvm.Map.defaultParams.regionStyle,
              ...this.params.regionStyle(key),
            }
          : this.params.regionStyle;
      region = new jvm.Region({
        map: this,
        path: this.mapData.paths[key].path,
        code: key,
        style: jvm.$.extend(true, {}, regionStyle),
        labelStyle: jvm.$.extend(true, {}, this.params.regionLabelStyle),
        canvas: this.canvas,
        labelsGroup: this.regionLabelsGroup,
        label:
          this.canvas.mode != "vml"
            ? this.params.labels && this.params.labels.regions
            : null,
      });

      jvm.$(region.shape).bind("selected", function (e, isSelected) {
        map.container.trigger("regionSelected.jvectormap", [
          jvm.$(this.node).attr("data-code"),
          isSelected,
          map.getSelectedRegions(),
        ]);
      });
      this.regions[key] = {
        element: region,
        config: this.mapData.paths[key],
      };
    }
  },

  createMarkers: function (markers) {
    var i,
      marker,
      point,
      markerConfig,
      markersArray,
      map = this;

    this.markersGroup = this.markersGroup || this.canvas.addGroup();
    this.markerLabelsGroup = this.markerLabelsGroup || this.canvas.addGroup();

    if (jvm.$.isArray(markers)) {
      markersArray = markers.slice();
      markers = {};
      for (i = 0; i < markersArray.length; i++) {
        markers[i] = markersArray[i];
      }
    }

    for (i in markers) {
      markerConfig =
        markers[i] instanceof Array ? { latLng: markers[i] } : markers[i];
      point = this.getMarkerPosition(markerConfig);

      if (point !== false) {
        marker = new jvm.Marker({
          map: this,
          style: jvm.$.extend(true, {}, this.params.markerStyle, {
            initial: markerConfig.style || {},
          }),
          labelStyle: jvm.$.extend(true, {}, this.params.markerLabelStyle),
          index: i,
          cx: point.x,
          cy: point.y,
          group: this.markersGroup,
          canvas: this.canvas,
          labelsGroup: this.markerLabelsGroup,
          label:
            this.canvas.mode != "vml"
              ? this.params.labels && this.params.labels.markers
              : null,
        });

        jvm.$(marker.shape).bind("selected", function (e, isSelected) {
          map.container.trigger("markerSelected.jvectormap", [
            jvm.$(this.node).attr("data-index"),
            isSelected,
            map.getSelectedMarkers(),
          ]);
        });
        if (this.markers[i]) {
          this.removeMarkers([i]);
        }
        this.markers[i] = { element: marker, config: markerConfig };
      }
    }
  },

  repositionMarkers: function () {
    var i, point;

    for (i in this.markers) {
      point = this.getMarkerPosition(this.markers[i].config);
      if (point !== false) {
        this.markers[i].element.setStyle({ cx: point.x, cy: point.y });
      }
    }
  },

  repositionLabels: function () {
    var key;

    for (key in this.regions) {
      this.regions[key].element.updateLabelPosition();
    }

    for (key in this.markers) {
      this.markers[key].element.updateLabelPosition();
    }
  },

  getMarkerPosition: function (markerConfig) {
    if (jvm.Map.maps[this.params.map].projection) {
      return this.latLngToPoint.apply(this, markerConfig.latLng || [0, 0]);
    } else {
      return {
        x: markerConfig.coords[0] * this.scale + this.transX * this.scale,
        y: markerConfig.coords[1] * this.scale + this.transY * this.scale,
      };
    }
  },

  /**
   * Add one marker to the map.
   * @param {String} key Marker unique code.
   * @param {Object} marker Marker configuration parameters.
   * @param {Array} seriesData Values to add to the data series.
   */
  addMarker: function (key, marker, seriesData) {
    var markers = {},
      data = [],
      values,
      i,
      seriesData = seriesData || [];

    markers[key] = marker;

    for (i = 0; i < seriesData.length; i++) {
      values = {};
      if (typeof seriesData[i] !== "undefined") {
        values[key] = seriesData[i];
      }
      data.push(values);
    }
    this.addMarkers(markers, data);
  },

  /**
   * Add set of marker to the map.
   * @param {Object|Array} markers Markers to add to the map. In case of array is provided, codes of markers will be set as string representations of array indexes.
   * @param {Array} seriesData Values to add to the data series.
   */
  addMarkers: function (markers, seriesData) {
    var i;

    seriesData = seriesData || [];

    this.createMarkers(markers);
    for (i = 0; i < seriesData.length; i++) {
      this.series.markers[i].setValues(seriesData[i] || {});
    }
  },

  /**
   * Remove some markers from the map.
   * @param {Array} markers Array of marker codes to be removed.
   */
  removeMarkers: function (markers) {
    var i;

    for (i = 0; i < markers.length; i++) {
      this.markers[markers[i]].element.remove();
      delete this.markers[markers[i]];
    }
  },

  /**
   * Remove all markers from the map.
   */
  removeAllMarkers: function () {
    var i,
      markers = [];

    for (i in this.markers) {
      markers.push(i);
    }
    this.removeMarkers(markers);
  },

  /**
   * Converts coordinates expressed as latitude and longitude to the coordinates in pixels on the map.
   * @param {Number} lat Latitide of point in degrees.
   * @param {Number} lng Longitude of point in degrees.
   */
  latLngToPoint: function (lat, lng) {
    var point,
      proj = jvm.Map.maps[this.params.map].projection,
      centralMeridian = proj.centralMeridian,
      inset,
      bbox;

    if (lng < -180 + centralMeridian) {
      lng += 360;
    }

    point = jvm.Proj[proj.type](lat, lng, centralMeridian);

    inset = this.getInsetForPoint(point.x, point.y);
    if (inset) {
      bbox = inset.bbox;

      point.x =
        ((point.x - bbox[0].x) / (bbox[1].x - bbox[0].x)) *
        inset.width *
        this.scale;
      point.y =
        ((point.y - bbox[0].y) / (bbox[1].y - bbox[0].y)) *
        inset.height *
        this.scale;

      return {
        x: point.x + this.transX * this.scale + inset.left * this.scale,
        y: point.y + this.transY * this.scale + inset.top * this.scale,
      };
    } else {
      return false;
    }
  },

  /**
   * Converts cartesian coordinates into coordinates expressed as latitude and longitude.
   * @param {Number} x X-axis of point on map in pixels.
   * @param {Number} y Y-axis of point on map in pixels.
   */
  pointToLatLng: function (x, y) {
    var proj = jvm.Map.maps[this.params.map].projection,
      centralMeridian = proj.centralMeridian,
      insets = jvm.Map.maps[this.params.map].insets,
      i,
      inset,
      bbox,
      nx,
      ny;

    for (i = 0; i < insets.length; i++) {
      inset = insets[i];
      bbox = inset.bbox;

      nx = x - (this.transX * this.scale + inset.left * this.scale);
      ny = y - (this.transY * this.scale + inset.top * this.scale);

      nx =
        (nx / (inset.width * this.scale)) * (bbox[1].x - bbox[0].x) + bbox[0].x;
      ny =
        (ny / (inset.height * this.scale)) * (bbox[1].y - bbox[0].y) +
        bbox[0].y;

      if (
        nx > bbox[0].x &&
        nx < bbox[1].x &&
        ny > bbox[0].y &&
        ny < bbox[1].y
      ) {
        return jvm.Proj[proj.type + "_inv"](nx, -ny, centralMeridian);
      }
    }

    return false;
  },

  getInsetForPoint: function (x, y) {
    var insets = jvm.Map.maps[this.params.map].insets,
      i,
      bbox;

    for (i = 0; i < insets.length; i++) {
      bbox = insets[i].bbox;
      if (x > bbox[0].x && x < bbox[1].x && y > bbox[0].y && y < bbox[1].y) {
        return insets[i];
      }
    }
  },

  createSeries: function () {
    var i, key;

    this.series = {
      markers: [],
      regions: [],
    };

    for (key in this.params.series) {
      for (i = 0; i < this.params.series[key].length; i++) {
        this.series[key][i] = new jvm.DataSeries(
          this.params.series[key][i],
          this[key],
          this,
        );
      }
    }
  },

  /**
   * Gracefully remove the map and and all its accessories, unbind event handlers.
   */
  remove: function () {
    this.tip.remove();
    this.container.remove();
    jvm.$(window).unbind("resize", this.onResize);
    jvm.$("body").unbind("mouseup", this.onContainerMouseUp);
  },
};

jvm.Map.maps = {};
jvm.Map.defaultParams = {
  map: "world_mill_en",
  backgroundColor: "#505050",
  zoomButtons: true,
  zoomOnScroll: true,
  zoomOnScrollSpeed: 3,
  panOnDrag: true,
  zoomMax: 8,
  zoomMin: 1,
  zoomStep: 1.6,
  zoomAnimate: true,
  regionsSelectable: false,
  markersSelectable: false,
  bindTouchEvents: true,
  regionStyle: {
    initial: {
      fill: "white",
      "fill-opacity": 1,
      stroke: "none",
      "stroke-width": 0,
      "stroke-opacity": 1,
    },
    hover: {
      "fill-opacity": 0.8,
      cursor: "pointer",
    },
    selected: {
      fill: "yellow",
    },
    selectedHover: {},
  },
  regionLabelStyle: {
    initial: {
      "font-family": "Verdana",
      "font-size": "12",
      "font-weight": "bold",
      cursor: "default",
      fill: "black",
    },
    hover: {
      cursor: "pointer",
    },
  },
  markerStyle: {
    initial: {
      fill: "grey",
      stroke: "#505050",
      "fill-opacity": 1,
      "stroke-width": 1,
      "stroke-opacity": 1,
      r: 5,
    },
    hover: {
      stroke: "black",
      "stroke-width": 2,
      cursor: "pointer",
    },
    selected: {
      fill: "blue",
    },
    selectedHover: {},
  },
  markerLabelStyle: {
    initial: {
      "font-family": "Verdana",
      "font-size": "12",
      "font-weight": "bold",
      cursor: "default",
      fill: "black",
    },
    hover: {
      cursor: "pointer",
    },
  },
};
jvm.Map.apiEvents = {
  onRegionTipShow: "regionTipShow",
  onRegionOver: "regionOver",
  onRegionOut: "regionOut",
  onRegionClick: "regionClick",
  onRegionSelected: "regionSelected",
  onMarkerTipShow: "markerTipShow",
  onMarkerOver: "markerOver",
  onMarkerOut: "markerOut",
  onMarkerClick: "markerClick",
  onMarkerSelected: "markerSelected",
  onViewportChange: "viewportChange",
};
/**
 * Creates map with drill-down functionality.
 * @constructor
 * @param {Object} params Parameters to initialize map with.
 * @param {Number} params.maxLevel Maximum number of levels user can go through
 * @param {Object} params.main Config of the main map. See <a href="./jvm-map/">jvm.Map</a> for more information.
 * @param {Function} params.mapNameByCode Function to generate map name by region code. Default value is:
<pre>
function(code, multiMap) {
  return code.toLowerCase()+'_'+
         multiMap.defaultProjection+'_en';
}
</pre>
 * @param {Function} params.mapUrlByCode Function to generate map url by region code. Default value is:
<pre>
function(code, multiMap){
  return 'jquery-jvectormap-data-'+
         code.toLowerCase()+'-'+
         multiMap.defaultProjection+'-en.js';
}
</pre>
 */
jvm.MultiMap = function (params) {
  var that = this;

  this.maps = {};
  this.params = jvm.$.extend(true, {}, jvm.MultiMap.defaultParams, params);
  this.params.maxLevel = this.params.maxLevel || Number.MAX_VALUE;
  this.params.main = this.params.main || {};
  this.params.main.multiMapLevel = 0;
  this.history = [this.addMap(this.params.main.map, this.params.main)];
  this.defaultProjection = this.history[0].mapData.projection.type;
  this.mapsLoaded = {};
  this.mapsLoadedData = {};

  this.params.container.css({ position: "relative" });
  this.backButton = jvm
    .$("<div/>")
    .addClass("jvectormap-goback")
    .text("Back")
    .appendTo(this.params.container);
  this.backButton.hide();
  this.backButton.click(function () {
    that.goBack();
  });

  this.spinner = jvm
    .$("<div/>")
    .addClass("jvectormap-spinner")
    .appendTo(this.params.container);
  this.spinner.hide();
};

jvm.MultiMap.prototype = {
  addMap: function (name, config) {
    var cnt = jvm.$("<div/>").css({
      width: "100%",
      height: "100%",
    });

    this.params.container.append(cnt);

    this.maps[name] = new jvm.Map(jvm.$.extend(config, { container: cnt }));
    if (this.params.maxLevel > config.multiMapLevel) {
      this.maps[name].container.on(
        "regionClick.jvectormap",
        { scope: this },
        function (e, code) {
          var multimap = e.data.scope,
            mapName = multimap.params.mapNameByCode(code, multimap);

          if (
            !multimap.drillDownPromise ||
            multimap.drillDownPromise.state() !== "pending"
          ) {
            multimap.drillDown(mapName, code);
          }
        },
      );
    }

    return this.maps[name];
  },

  downloadMap: function (code) {
    var that = this,
      deferred = jvm.$.Deferred();
    const { getDrillDownMap } = this.params;

    const handleMapData = function (data) {
      that.mapsLoaded[code] = true;
      that.mapsLoadedData[code] = data;
      deferred.resolve();
    };

    if (!this.mapsLoaded[code]) {
      if (getDrillDownMap && typeof getDrillDownMap === "function") {
        const result = getDrillDownMap(code);
        if (result && typeof result.then === "function") {
          result
            .then((data) => {
              handleMapData(data);
            })
            .catch(() => {
              deferred.reject();
            });
        } else {
          handleMapData(result);
        }
        return deferred;
      }
      jvm.$.get(this.params.mapUrlByCode(code, this)).then(
        function (data) {
          handleMapData(data);
        },
        function () {
          deferred.reject();
        },
      );
    } else {
      deferred.resolve();
    }
    return deferred;
  },

  drillDown: function (name, code) {
    var currentMap = this.history[this.history.length - 1],
      that = this,
      focusPromise = currentMap.setFocus({ region: code, animate: true }),
      downloadPromise = this.downloadMap(code);

    focusPromise.then(function () {
      if (downloadPromise.state() === "pending") {
        that.spinner.show();
      }
    });
    downloadPromise.always(function () {
      that.spinner.hide();
    });
    this.drillDownPromise = jvm.$.when(downloadPromise, focusPromise);
    this.drillDownPromise.then(function () {
      const { content } = that.mapsLoadedData[code];
      currentMap.params.container.hide();
      if (!that.maps[name]) {
        jvm.$.fn.vectorMap("addMap", name, content);
        that.addMap(name, {
          map: name,
          multiMapLevel: currentMap.params.multiMapLevel + 1,
        });
      } else {
        that.maps[name].params.container.show();
      }
      that.history.push(that.maps[name]);
      that.backButton.show();
    });
  },

  goBack: function () {
    var currentMap = this.history.pop(),
      prevMap = this.history[this.history.length - 1],
      that = this;

    currentMap
      .setFocus({ scale: 1, x: 0.5, y: 0.5, animate: true })
      .then(function () {
        currentMap.params.container.hide();
        prevMap.params.container.show();
        prevMap.updateSize();
        if (that.history.length === 1) {
          that.backButton.hide();
        }
        prevMap.setFocus({ scale: 1, x: 0.5, y: 0.5, animate: true });
      });
  },
};

jvm.MultiMap.defaultParams = {
  mapNameByCode: function (code, multiMap) {
    return code.toLowerCase() + "_" + multiMap.defaultProjection + "_en";
  },
  mapUrlByCode: function (code, multiMap) {
    return (
      "jquery-jvectormap-data-" +
      code.toLowerCase() +
      "-" +
      multiMap.defaultProjection +
      "-en.js"
    );
  },
};


//# sourceURL=webpack://@react-jvectormap/core/../jvectormap/jquery.jvectormap.min.js?`)},"data:image/gif;base64, ":module=>{eval(`module.exports = "data:image/gif;base64, ";

//# sourceURL=webpack://@react-jvectormap/core/data:image/gif;base64, ?`)},jquery:ln=>{ln.exports=__WEBPACK_EXTERNAL_MODULE_jquery__},react:ln=>{ln.exports=__WEBPACK_EXTERNAL_MODULE_react__}},__webpack_module_cache__={};function __webpack_require__(ln){var rn=__webpack_module_cache__[ln];if(rn!==void 0)return rn.exports;var an=__webpack_module_cache__[ln]={id:ln,exports:{}};return __webpack_modules__[ln](an,an.exports,__webpack_require__),an.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.n=ln=>{var rn=ln&&ln.__esModule?()=>ln.default:()=>ln;return __webpack_require__.d(rn,{a:rn}),rn},__webpack_require__.d=(ln,rn)=>{for(var an in rn)__webpack_require__.o(rn,an)&&!__webpack_require__.o(ln,an)&&Object.defineProperty(ln,an,{enumerable:!0,get:rn[an]})},__webpack_require__.o=(ln,rn)=>Object.prototype.hasOwnProperty.call(ln,rn),__webpack_require__.r=ln=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(ln,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ln,"__esModule",{value:!0})},__webpack_require__.b=document.baseURI||self.location.href;var __webpack_exports__=__webpack_require__("./src/index.ts");return __webpack_exports__})()})}(dist)),dist.exports}var distExports=requireDist();const name="world_mill",content=JSON.parse(`{"insets":[{"width":900,"top":0,"height":440.7063107441331,"bbox":[{"y":-12671671.123330014,"x":-20004297.151525836},{"y":6930392.025135122,"x":20026572.394749384}],"left":0}],"paths":{"BD":{"path":"M651.84,230.21l-0.6,-2.0l-1.36,-1.71l-2.31,-0.11l-0.41,0.48l0.2,0.94l-0.53,0.99l-0.72,-0.36l-0.68,0.35l-1.2,-0.36l-0.37,-2.0l-0.81,-1.86l0.39,-1.46l-0.22,-0.47l-1.14,-0.53l0.29,-0.5l1.48,-0.94l0.03,-0.65l-1.55,-1.22l0.55,-1.14l1.61,0.94l1.04,0.15l0.18,1.54l0.34,0.35l5.64,0.63l-0.84,1.64l-1.22,0.34l-0.77,1.51l0.07,0.47l1.37,1.37l0.67,-0.19l0.42,-1.39l1.21,3.84l-0.03,1.21l-0.33,-0.15l-0.4,0.28Z","name":"Bangladesh"},"BE":{"path":"M429.29,144.05l1.91,0.24l2.1,-0.63l2.63,1.99l-0.21,1.66l-0.69,0.4l-0.18,1.2l-1.66,-1.13l-1.39,0.15l-2.73,-2.7l-1.17,-0.18l-0.16,-0.52l1.54,-0.5Z","name":"Belgium"},"BF":{"path":"M421.42,247.64l-0.11,0.95l0.34,1.16l1.4,1.71l0.07,1.1l0.32,0.37l2.55,0.51l-0.04,1.28l-0.38,0.53l-1.07,0.21l-0.72,1.18l-0.63,0.21l-3.22,-0.25l-0.94,0.39l-5.4,-0.05l-0.39,0.38l0.16,2.73l-1.23,-0.43l-1.17,0.1l-0.89,0.57l-2.27,-1.72l-0.13,-1.11l0.61,-0.96l0.02,-0.93l1.87,-1.98l0.44,-1.81l0.43,-0.39l1.28,0.26l1.05,-0.52l0.47,-0.73l1.84,-1.09l0.55,-0.83l2.2,-1.0l1.15,-0.3l0.72,0.45l1.13,-0.01Z","name":"Burkina Faso"},"BG":{"path":"M491.65,168.18l-0.86,0.88l-0.91,2.17l0.48,1.34l-1.6,-0.24l-2.55,0.95l-0.28,1.51l-1.8,0.22l-2.0,-1.0l-1.92,0.79l-1.42,-0.07l-0.15,-1.63l-1.05,-0.97l0.0,-0.8l1.2,-1.57l0.01,-0.56l-1.14,-1.23l-0.05,-0.94l0.88,0.97l0.88,-0.2l1.91,0.47l3.68,0.16l1.42,-0.81l2.72,-0.66l2.55,1.24Z","name":"Bulgaria"},"BA":{"path":"M463.49,163.65l2.1,0.5l1.72,-0.03l1.52,0.68l-0.36,0.78l0.08,0.45l1.04,1.02l-0.25,0.98l-1.81,1.15l-0.38,1.38l-1.67,-0.87l-0.89,-1.2l-2.11,-1.83l-1.63,-2.22l0.23,-0.57l0.48,0.38l0.55,-0.06l0.43,-0.51l0.94,-0.06Z","name":"Bosnia and Herz."},"BN":{"path":"M707.48,273.58l0.68,-0.65l1.41,-0.91l-0.15,1.63l-0.81,-0.05l-0.61,0.58l-0.53,-0.6Z","name":"Brunei"},"BO":{"path":"M263.83,340.69l-3.09,-0.23l-0.38,0.23l-0.7,1.52l-1.31,-1.53l-3.28,-0.64l-2.37,2.4l-1.31,0.26l-0.88,-3.26l-1.3,-2.86l0.74,-2.37l-0.13,-0.43l-1.2,-1.01l-0.37,-1.89l-1.08,-1.55l1.45,-2.56l-0.96,-2.33l0.47,-1.06l-0.34,-0.73l0.91,-1.32l0.16,-3.84l0.5,-1.18l-1.81,-3.41l2.46,0.07l0.8,-0.85l3.4,-1.91l2.66,-0.35l-0.19,1.38l0.3,1.07l-0.05,1.97l2.72,2.27l2.88,0.49l0.89,0.86l1.79,0.58l0.98,0.7l1.71,0.05l1.17,0.61l0.6,2.7l-0.7,0.54l0.96,2.99l0.37,0.28l4.3,0.1l-0.25,1.2l0.27,1.02l1.43,0.9l0.5,1.35l-0.41,1.86l-0.65,1.08l0.12,1.35l-2.69,-1.65l-2.4,-0.03l-4.36,0.76l-1.49,2.5l-0.11,1.52l-0.75,2.37Z","name":"Bolivia"},"JP":{"path":"M781.12,166.87l1.81,0.68l1.62,-0.97l0.39,2.42l-3.35,0.75l-2.23,2.88l-3.63,-1.9l-0.56,0.2l-1.26,3.05l-2.16,0.03l-0.29,-2.51l1.08,-2.03l2.45,-0.16l0.37,-0.33l1.25,-5.94l2.47,2.71l2.03,1.12ZM773.56,187.34l-0.91,2.22l0.37,1.52l-1.14,1.75l-3.02,1.26l-4.58,0.27l-3.34,3.01l-1.25,-0.8l-0.09,-1.9l-0.46,-0.38l-4.35,0.62l-3.0,1.32l-2.85,0.05l-0.37,0.27l0.13,0.44l2.32,1.89l-1.54,4.34l-1.26,0.9l-0.79,-0.7l0.56,-2.27l-0.21,-0.45l-1.47,-0.75l-0.74,-1.4l2.12,-0.84l1.26,-1.7l2.45,-1.42l1.83,-1.91l4.78,-0.81l2.6,0.57l0.44,-0.21l2.39,-4.66l1.29,1.06l0.5,0.01l5.1,-4.02l1.69,-3.73l-0.38,-3.4l0.9,-1.61l2.14,-0.44l1.23,3.72l-0.07,2.18l-2.23,2.84l-0.04,3.16ZM757.78,196.26l0.19,0.56l-1.01,1.21l-1.16,-0.68l-1.28,0.65l-0.69,1.45l-1.02,-0.5l0.01,-0.93l1.14,-1.38l1.57,0.14l0.85,-0.98l1.4,0.46Z","name":"Japan"},"BI":{"path":"M495.45,295.49l-1.08,-2.99l1.14,-0.11l0.64,-1.19l0.76,0.09l0.65,1.83l-2.1,2.36Z","name":"Burundi"},"BJ":{"path":"M429.57,255.75l-0.05,0.8l0.5,1.34l-0.42,0.86l0.17,0.79l-1.81,2.12l-0.57,1.76l-0.08,5.42l-1.41,0.2l-0.48,-1.36l0.11,-5.71l-0.52,-0.7l-0.2,-1.35l-1.48,-1.48l0.21,-0.9l0.89,-0.43l0.42,-0.92l1.27,-0.36l1.22,-1.34l0.61,-0.0l1.62,1.24Z","name":"Benin"},"BT":{"path":"M650.32,213.86l0.84,0.71l-0.12,1.1l-3.76,-0.11l-1.57,0.4l-1.93,-0.87l1.48,-1.96l1.13,-0.57l1.63,0.57l1.33,0.08l0.99,0.65Z","name":"Bhutan"},"JM":{"path":"M228.38,239.28l-0.8,0.4l-2.26,-1.06l0.84,-0.23l2.14,0.3l1.17,0.56l-1.08,0.03Z","name":"Jamaica"},"BW":{"path":"M483.92,330.07l2.27,4.01l2.83,2.86l0.96,0.31l0.78,2.43l2.13,0.61l1.02,0.76l-3.0,1.64l-2.32,2.02l-1.54,2.69l-1.52,0.45l-0.64,1.94l-1.34,0.52l-1.85,-0.12l-1.21,-0.74l-1.35,-0.3l-1.22,0.62l-0.75,1.37l-2.31,1.9l-1.4,0.21l-0.35,-0.59l0.16,-1.75l-1.48,-2.54l-0.62,-0.43l-0.0,-7.1l2.08,-0.08l0.39,-0.4l0.07,-8.9l5.19,-0.93l0.8,0.89l0.51,0.07l1.5,-0.95l2.21,-0.49Z","name":"Botswana"},"BR":{"path":"M259.98,275.05l3.24,0.7l0.65,-0.53l4.55,-1.32l1.08,-1.06l-0.02,-0.63l0.55,-0.05l0.28,0.28l-0.26,0.87l0.22,0.48l0.73,0.32l0.4,0.81l-0.62,0.86l-0.4,2.13l0.82,2.56l1.69,1.43l1.43,0.2l3.17,-1.68l3.18,0.3l0.65,-0.75l-0.27,-0.92l1.9,-0.09l2.39,0.99l1.06,-0.61l0.84,0.78l1.2,-0.18l1.18,-1.06l0.84,-1.94l1.36,-2.11l0.37,-0.05l1.89,5.45l1.33,0.59l0.05,1.28l-1.77,1.94l0.02,0.56l1.02,0.87l4.07,0.36l0.08,2.16l0.66,0.29l1.74,-1.5l6.97,2.32l1.02,1.22l-0.35,1.18l0.49,0.5l2.81,-0.74l4.77,1.3l3.75,-0.08l3.57,2.0l3.29,2.86l1.93,0.72l2.12,0.12l0.71,0.62l1.21,4.51l-0.95,3.98l-4.72,5.06l-1.64,2.92l-1.72,2.05l-0.8,0.3l-0.72,2.03l0.18,4.75l-0.94,5.53l-0.81,1.13l-0.43,3.36l-2.55,3.5l-0.4,2.51l-1.86,1.04l-0.67,1.53l-2.54,0.01l-3.94,1.01l-1.83,1.2l-2.87,0.82l-3.03,2.19l-2.2,2.83l-0.36,2.0l0.4,1.58l-0.44,2.6l-0.51,1.2l-1.77,1.54l-2.75,4.78l-3.83,3.42l-1.24,2.74l-1.18,1.15l-0.36,-0.83l0.95,-1.14l0.01,-0.5l-1.52,-1.97l-4.56,-3.32l-1.03,-0.0l-2.38,-2.02l-0.81,-0.0l5.34,-5.45l3.77,-2.58l0.22,-2.46l-1.35,-1.81l-0.91,0.07l0.58,-2.33l0.01,-1.54l-1.11,-0.83l-1.75,0.3l-0.44,-3.11l-0.52,-0.95l-1.88,-0.88l-1.24,0.47l-2.17,-0.41l0.15,-3.21l-0.62,-1.34l0.66,-0.73l-0.22,-1.34l0.66,-1.13l0.44,-2.04l-0.61,-1.83l-1.4,-0.86l-0.2,-0.75l0.34,-1.39l-0.38,-0.5l-4.52,-0.1l-0.72,-2.22l0.59,-0.42l-0.03,-1.1l-0.5,-0.87l-0.32,-1.7l-1.45,-0.76l-1.63,-0.02l-1.05,-0.72l-1.6,-0.48l-1.13,-0.99l-2.69,-0.4l-2.47,-2.06l0.13,-4.35l-0.45,-0.45l-3.46,0.5l-3.44,1.94l-0.6,0.74l-2.9,-0.17l-1.47,0.42l-0.72,-0.18l0.15,-3.52l-0.63,-0.34l-1.94,1.41l-1.87,-0.06l-0.83,-1.18l-1.37,-0.26l0.21,-1.01l-1.35,-1.49l-0.88,-1.91l0.56,-0.6l-0.0,-0.81l1.29,-0.62l0.22,-0.43l-0.22,-1.19l0.61,-0.91l0.15,-0.99l2.65,-1.58l1.99,-0.47l0.42,-0.36l2.06,0.11l0.42,-0.33l1.19,-8.0l-0.41,-1.56l-1.1,-1.0l0.01,-1.33l1.91,-0.42l0.08,-0.96l-0.33,-0.43l-1.14,-0.2l-0.02,-0.83l4.47,0.05l0.82,-0.67l0.82,1.81l0.8,0.07l1.15,1.1l2.26,-0.05l0.71,-0.83l2.78,-0.96l0.48,-1.13l1.6,-0.64l0.24,-0.47l-0.48,-0.82l-1.83,-0.19l-0.36,-3.22Z","name":"Brazil"},"BS":{"path":"M226.4,223.87l-0.48,-1.15l-0.84,-0.75l0.36,-1.11l0.95,1.95l0.01,1.06ZM225.56,216.43l-1.87,0.29l-0.04,-0.22l0.74,-0.14l1.17,0.06Z","name":"Bahamas"},"BY":{"path":"M493.84,128.32l0.29,0.7l0.49,0.23l1.19,-0.38l2.09,0.72l0.19,1.26l-0.45,1.24l1.57,2.26l0.89,0.59l0.17,0.81l1.58,0.56l0.4,0.5l-0.53,0.41l-1.87,-0.11l-0.73,0.38l-0.13,0.52l1.04,2.74l-1.91,0.26l-0.89,0.99l-0.11,1.18l-2.73,-0.04l-0.53,-0.62l-0.52,-0.08l-0.75,0.46l-0.91,-0.42l-1.92,-0.07l-2.75,-0.79l-2.6,-0.28l-2.0,0.07l-1.5,0.92l-0.67,0.07l-0.08,-1.22l-0.59,-1.19l1.36,-0.88l0.01,-1.35l-0.7,-1.41l-0.07,-1.0l2.16,-0.02l2.72,-1.3l0.75,-2.04l1.91,-1.04l0.2,-0.41l-0.19,-1.25l3.8,-1.78l2.3,0.77Z","name":"Belarus"},"BZ":{"path":"M198.03,244.38l0.1,-4.49l0.69,-0.06l0.74,-1.3l0.34,0.28l-0.4,1.3l0.17,0.58l-0.34,2.25l-1.3,1.42Z","name":"Belize"},"RU":{"path":"M491.55,115.25l2.55,-1.85l-0.01,-0.65l-2.2,-1.5l7.32,-6.76l1.03,-2.11l-0.13,-0.49l-3.46,-2.52l0.86,-2.7l-2.11,-2.81l1.56,-3.67l-2.77,-4.52l2.15,-2.99l-0.08,-0.55l-3.65,-2.73l0.3,-2.54l1.81,-0.37l4.26,-1.77l2.42,-1.45l4.06,2.61l6.79,1.04l9.34,4.85l1.78,1.88l0.14,2.46l-2.55,2.02l-3.9,1.06l-11.07,-3.14l-2.06,0.53l-0.13,0.7l3.94,2.94l0.31,5.86l0.26,0.36l5.14,2.24l0.58,-0.29l0.32,-1.94l-1.35,-1.78l1.13,-1.09l6.13,2.42l2.11,-0.98l0.18,-0.56l-1.51,-2.67l5.41,-3.76l2.07,0.22l2.26,1.41l0.57,-0.16l1.46,-2.87l-0.05,-0.44l-1.92,-2.32l1.12,-2.32l-1.32,-2.27l5.87,1.16l1.04,1.75l-2.59,0.43l-0.33,0.4l0.02,2.36l2.46,1.83l3.87,-0.91l0.86,-2.8l13.69,-5.65l0.99,0.11l-1.92,2.06l0.23,0.67l3.11,0.45l2.0,-1.48l4.56,-0.12l3.64,-1.73l2.65,2.44l0.56,-0.01l2.85,-2.88l-0.01,-0.57l-2.35,-2.29l0.9,-1.01l7.14,1.3l3.41,1.36l9.05,4.97l0.51,-0.11l1.67,-2.27l-0.05,-0.53l-2.43,-2.21l-0.06,-0.78l-0.34,-0.36l-2.52,-0.36l0.64,-1.93l-1.32,-3.46l-0.06,-1.21l4.48,-4.06l1.69,-4.29l1.6,-0.81l6.23,1.18l0.44,2.21l-2.29,3.64l0.06,0.5l1.47,1.39l0.76,3.0l-0.56,6.03l2.69,2.82l-0.96,2.57l-4.86,5.95l0.23,0.64l2.86,0.61l0.42,-0.17l0.93,-1.4l2.64,-1.03l0.87,-2.24l2.09,-1.96l0.07,-0.5l-1.36,-2.28l1.09,-2.69l-0.32,-0.55l-2.47,-0.33l-0.5,-2.06l1.94,-4.38l-0.06,-0.42l-2.96,-3.4l4.12,-2.88l0.16,-0.4l-0.51,-2.93l0.54,-0.05l1.13,2.25l-0.96,4.35l0.27,0.47l2.68,0.84l0.5,-0.51l-1.02,-2.99l3.79,-1.66l5.01,-0.24l4.53,2.61l0.48,-0.06l0.07,-0.48l-2.18,-3.82l-0.23,-4.67l3.98,-0.9l5.97,0.21l5.49,-0.64l0.27,-0.65l-1.83,-2.31l2.56,-2.9l2.87,-0.17l4.8,-2.47l6.54,-0.67l1.03,-1.42l6.25,-0.45l2.32,1.11l5.53,-2.7l4.5,0.08l0.39,-0.28l0.66,-2.15l2.26,-2.12l5.69,-2.11l3.21,1.29l-2.46,0.94l-0.25,0.42l0.34,0.35l5.41,0.77l0.61,2.33l0.58,0.25l2.2,-1.22l7.13,0.07l5.51,2.47l1.79,1.72l-0.53,2.24l-9.16,4.15l-1.97,1.52l0.16,0.71l6.77,1.91l2.16,-0.78l1.13,2.74l0.67,0.11l1.01,-1.15l3.81,-0.73l7.7,0.77l0.54,1.99l0.36,0.29l10.47,0.71l0.43,-0.38l0.13,-3.23l4.87,0.78l3.95,-0.02l3.83,2.4l1.03,2.71l-1.35,1.79l0.02,0.5l3.15,3.64l4.07,1.96l0.53,-0.18l2.23,-4.47l3.95,1.93l4.16,-1.21l4.73,1.39l2.05,-1.26l3.94,0.62l0.43,-0.55l-1.68,-4.02l2.89,-1.8l22.31,3.03l2.16,2.75l6.55,3.51l10.29,-0.81l4.82,0.73l1.85,1.66l-0.29,3.08l0.25,0.41l3.08,1.26l3.56,-0.88l4.35,-0.11l4.8,0.87l4.57,-0.47l4.23,3.79l0.43,0.07l3.1,-1.4l0.16,-0.6l-1.88,-2.62l0.85,-1.52l7.71,1.21l5.22,-0.26l7.09,2.09l9.59,5.22l6.35,4.11l-0.2,2.38l1.88,1.41l0.6,-0.42l-0.48,-2.53l6.15,0.57l4.4,3.51l-1.97,1.43l-4.0,0.41l-0.36,0.39l-0.06,3.79l-0.74,0.62l-2.07,-0.11l-1.91,-1.39l-3.14,-1.11l-0.78,-1.85l-2.72,-0.68l-2.63,0.49l-1.04,-1.1l0.46,-1.31l-0.5,-0.51l-3.0,0.98l-0.22,0.58l0.99,1.7l-1.21,1.48l-3.04,1.68l-3.12,-0.28l-0.4,0.23l0.09,0.46l2.2,2.09l1.46,3.2l1.15,1.1l0.24,1.33l-0.42,0.67l-4.63,-0.77l-6.96,2.9l-2.19,0.44l-7.6,5.06l-0.84,1.45l-3.61,-2.37l-6.24,2.82l-0.94,-1.15l-0.53,-0.08l-2.28,1.52l-3.2,-0.49l-0.44,0.27l-0.78,2.37l-3.05,3.78l0.09,1.47l0.29,0.36l2.54,0.72l-0.29,4.53l-1.97,0.11l-0.35,0.26l-1.07,2.94l0.8,1.45l-3.91,1.58l-1.05,3.95l-3.48,0.77l-0.3,0.3l-0.72,3.29l-3.09,2.65l-0.7,-1.74l-2.44,-12.44l1.16,-4.71l2.04,-2.06l0.22,-1.64l3.8,-0.86l4.46,-4.61l4.28,-3.81l4.48,-3.01l2.17,-5.63l-0.42,-0.54l-3.04,0.33l-1.77,3.31l-5.86,3.86l-1.86,-4.25l-0.45,-0.23l-6.46,1.3l-6.47,6.44l-0.01,0.55l1.58,1.74l-8.24,1.17l0.15,-2.2l-0.34,-0.42l-3.89,-0.56l-3.25,1.81l-7.62,-0.62l-8.45,1.19l-17.71,15.41l0.22,0.7l3.74,0.41l1.36,2.17l2.43,0.76l1.88,-1.68l2.4,0.2l3.4,3.54l0.08,2.6l-1.95,3.42l-0.21,3.9l-1.1,5.06l-3.71,4.54l-0.87,2.21l-8.29,8.89l-3.19,1.7l-1.32,0.03l-1.45,-1.36l-0.49,-0.04l-2.27,1.5l0.41,-3.65l-0.59,-2.47l1.75,-0.89l2.91,0.53l0.42,-0.2l1.68,-3.03l0.87,-3.46l0.97,-1.18l1.32,-2.88l-0.45,-0.56l-4.14,0.95l-2.19,1.25l-3.41,-0.0l-1.06,-2.93l-2.97,-2.3l-4.28,-1.06l-1.75,-5.07l-2.66,-5.01l-2.29,-1.29l-3.75,-1.01l-3.44,0.08l-3.18,0.62l-2.24,1.77l0.05,0.66l1.18,0.69l0.02,1.43l-1.33,1.05l-2.26,3.51l-0.04,1.43l-3.16,1.84l-2.82,-1.16l-3.01,0.23l-1.35,-1.07l-1.5,-0.35l-3.9,2.31l-3.22,0.52l-2.27,0.79l-3.05,-0.51l-2.21,0.03l-1.48,-1.6l-2.6,-1.63l-2.63,-0.43l-5.46,1.01l-3.23,-1.25l-0.72,-2.57l-5.2,-1.24l-2.75,-1.36l-0.5,0.12l-2.59,3.45l0.84,2.1l-2.06,1.93l-3.41,-0.77l-2.42,-0.12l-1.83,-1.54l-2.53,-0.05l-2.42,-0.98l-3.86,1.57l-4.72,2.78l-3.3,0.75l-1.55,-1.92l-3.0,0.41l-1.11,-1.33l-1.62,-0.59l-1.31,-1.94l-1.38,-0.6l-3.7,0.79l-3.31,-1.83l-0.51,0.11l-0.99,1.29l-5.29,-8.05l-2.96,-2.48l0.65,-0.77l0.01,-0.51l-0.5,-0.11l-6.2,3.21l-1.84,0.15l0.15,-1.39l-0.26,-0.42l-3.22,-1.17l-2.46,0.7l-0.69,-3.16l-0.32,-0.31l-4.5,-0.75l-2.47,1.47l-6.19,1.27l-1.29,0.86l-9.51,1.3l-1.15,1.17l-0.03,0.53l1.47,1.9l-1.89,0.69l-0.22,0.56l0.31,0.6l-2.11,1.44l0.03,0.68l3.75,2.12l-0.39,0.98l-3.23,-0.13l-0.86,0.86l-3.09,-1.59l-3.97,0.07l-2.66,1.35l-8.32,-3.56l-4.07,0.06l-5.39,3.68l-0.39,2.0l-2.03,-1.5l-0.59,0.13l-2.0,3.59l0.57,0.93l-1.28,2.16l0.06,0.48l2.13,2.17l1.95,0.04l1.37,1.82l-0.23,1.46l0.25,0.43l0.83,0.33l-0.8,1.31l-2.49,0.62l-2.49,3.2l0.0,0.49l2.17,2.78l-0.15,2.18l2.5,3.24l-1.58,1.59l-0.7,-0.13l-1.63,-1.72l-2.29,-0.84l-0.94,-1.31l-2.34,-0.63l-1.48,0.4l-0.43,-0.47l-3.51,-1.48l-5.76,-1.01l-0.45,0.19l-2.89,-2.34l-2.9,-1.2l-1.53,-1.29l1.29,-0.43l2.08,-2.61l-0.05,-0.55l-0.89,-0.79l3.05,-1.06l0.27,-0.42l-0.07,-0.69l-0.49,-0.35l-1.73,0.39l0.04,-0.68l1.04,-0.72l2.66,-0.48l0.4,-1.32l-0.5,-1.6l0.92,-1.54l0.03,-1.17l-0.29,-0.37l-3.69,-1.06l-1.41,0.02l-1.42,-1.41l-2.19,0.38l-2.77,-1.01l-0.03,-0.59l-0.89,-1.43l-2.0,-0.32l-0.11,-0.54l0.49,-0.53l0.01,-0.53l-1.6,-1.9l-3.58,0.02l-0.88,0.73l-0.46,-0.07l-1.0,-2.79l2.22,-0.02l0.97,-0.74l0.07,-0.57l-0.9,-1.04l-1.35,-0.48l-0.11,-0.7l-0.95,-0.58l-1.38,-1.99l0.46,-0.98l-0.51,-1.96l-2.45,-0.84l-1.21,0.3l-0.46,-0.76l-2.46,-0.83l-0.72,-1.87l-0.21,-1.69l-0.99,-0.85l0.85,-1.17l-0.7,-3.21l1.66,-1.97l-0.16,-0.79ZM749.2,170.72l-0.6,0.4l-0.13,0.16l-0.01,-0.51l0.74,-0.05ZM871.88,65.81l2.17,-0.13l3.19,1.16l-2.39,1.09l-5.63,0.48l-0.26,-0.84l2.92,-1.76ZM797.39,48.49l-2.0,1.36l-3.8,-0.42l-4.25,-1.8l0.35,-0.97l9.69,1.83ZM783.67,46.12l-1.63,3.09l-8.98,-0.13l-4.09,1.14l-4.54,-2.97l1.16,-3.01l3.05,-0.89l6.5,0.22l8.54,2.56ZM778.2,134.98l-0.56,-0.9l0.27,-0.12l0.29,1.01ZM778.34,135.48l0.94,3.53l-0.05,3.38l1.05,3.39l2.18,5.0l-2.89,-0.83l-0.49,0.26l-1.54,4.65l2.42,3.5l-0.04,1.13l-1.24,-1.24l-0.61,0.06l-1.09,1.61l-0.28,-1.61l0.27,-3.1l-0.28,-3.4l0.58,-2.47l0.11,-4.39l-1.46,-3.36l0.21,-4.32l2.15,-1.46l0.07,-0.34ZM771.95,56.61l1.76,-1.42l2.89,-0.42l3.28,1.71l0.14,0.6l-3.27,0.03l-4.81,-0.5ZM683.76,31.09l-13.01,1.93l4.03,-6.35l1.82,-0.56l1.73,0.34l5.99,2.98l-0.56,1.66ZM670.85,27.93l-5.08,0.64l-6.86,-1.57l-3.99,-2.05l-2.1,-4.16l-2.6,-0.87l5.72,-3.5l5.2,-1.28l4.69,2.85l5.59,5.4l-0.56,4.53ZM564.15,68.94l-0.64,0.17l-7.85,-0.57l-0.86,-2.04l-4.28,-1.17l-0.28,-1.94l2.27,-0.89l0.25,-0.39l-0.08,-2.38l4.81,-3.97l-0.15,-0.7l-1.47,-0.38l5.3,-3.81l0.15,-0.44l-0.58,-1.94l5.28,-2.51l8.21,-3.27l8.28,-0.96l4.35,-1.94l4.6,-0.64l1.36,1.61l-1.34,1.28l-16.43,4.94l-7.97,4.88l-7.74,9.63l0.66,4.14l4.16,3.27ZM548.81,18.48l-5.5,1.18l-0.58,1.02l-2.59,0.84l-2.13,-1.07l1.12,-1.42l-0.3,-0.65l-2.33,-0.07l1.68,-0.36l3.47,-0.06l0.42,1.29l0.66,0.16l1.38,-1.34l2.15,-0.88l2.94,1.01l-0.39,0.36ZM477.37,133.15l-4.08,0.05l-2.56,-0.32l0.33,-0.87l3.17,-1.03l3.24,0.96l-0.09,1.23Z","name":"Russia"},"RW":{"path":"M497.0,288.25l0.71,1.01l-0.11,1.09l-1.63,0.03l-1.04,1.39l-0.83,-0.11l0.51,-1.2l0.08,-1.34l0.42,-0.41l0.7,0.14l1.19,-0.61Z","name":"Rwanda"},"RS":{"path":"M469.4,163.99l0.42,-0.5l-0.01,-0.52l-1.15,-1.63l1.43,-0.62l1.33,0.12l1.17,1.06l0.46,1.13l1.34,0.64l0.35,1.35l1.46,0.9l0.76,-0.29l0.2,0.69l-0.48,0.78l0.22,1.12l1.05,1.22l-0.77,0.8l-0.37,1.52l-1.21,0.08l0.24,-0.64l-0.39,-0.54l-2.08,-1.64l-0.9,0.05l-0.48,0.94l-2.12,-1.37l0.53,-1.6l-1.11,-1.37l0.51,-1.1l-0.41,-0.57Z","name":"Serbia"},"TL":{"path":"M734.55,307.93l-0.1,-0.97l4.5,-0.86l-2.82,1.28l-1.59,0.55Z","name":"Timor-Leste"},"TM":{"path":"M553.03,173.76l-0.04,0.34l-0.09,-0.22l0.13,-0.12ZM555.87,172.66l0.45,-0.1l1.48,0.74l2.06,2.43l4.07,-0.18l0.38,-0.51l-0.32,-1.19l1.92,-0.94l1.91,-1.59l2.94,1.39l0.43,2.47l1.19,0.67l2.58,-0.13l0.62,0.4l1.32,3.12l4.54,3.44l2.67,1.45l3.06,1.14l-0.04,1.05l-1.33,-0.75l-0.59,0.19l-0.32,0.84l-2.2,0.81l-0.46,2.13l-1.21,0.74l-1.91,0.42l-0.73,1.33l-1.56,0.31l-2.22,-0.94l-0.2,-2.17l-0.38,-0.36l-1.73,-0.09l-2.76,-2.46l-2.14,-0.4l-2.84,-1.48l-1.78,-0.27l-1.24,0.53l-1.57,-0.08l-2.0,1.69l-1.7,0.43l-0.36,-1.58l0.36,-2.98l-0.22,-0.4l-1.65,-0.84l0.54,-1.69l-0.34,-0.52l-1.22,-0.13l0.36,-1.64l2.22,0.59l2.2,-0.95l0.12,-0.65l-1.77,-1.74l-0.66,-1.57Z","name":"Turkmenistan"},"TJ":{"path":"M597.75,178.82l-2.54,-0.44l-0.47,0.34l-0.24,1.7l0.43,0.45l2.64,-0.22l3.18,0.95l4.39,-0.41l0.56,2.37l0.52,0.29l0.67,-0.24l1.11,0.49l0.21,2.13l-3.76,-0.21l-1.8,1.32l-1.76,0.74l-0.61,-0.58l0.21,-2.23l-0.64,-0.49l-0.07,-0.93l-1.36,-0.66l-0.45,0.07l-1.08,1.01l-0.55,1.48l-1.31,-0.05l-0.95,1.16l-0.9,-0.35l-1.86,0.74l1.26,-2.83l-0.54,-2.17l-1.67,-0.82l0.33,-0.66l2.18,-0.04l1.19,-1.63l0.76,-1.79l2.43,-0.5l-0.26,1.0l0.73,1.05Z","name":"Tajikistan"},"RO":{"path":"M487.53,154.23l0.6,0.24l2.87,3.98l-0.17,2.69l0.45,1.42l1.32,0.81l1.35,-0.42l0.76,0.36l0.02,0.31l-0.83,0.45l-0.59,-0.22l-0.54,0.3l-0.62,3.3l-1.0,-0.22l-2.07,-1.13l-2.95,0.71l-1.25,0.76l-3.51,-0.15l-1.89,-0.47l-0.87,0.16l-0.82,-1.3l0.29,-0.26l-0.06,-0.64l-1.09,-0.34l-0.56,0.5l-1.05,-0.64l-0.39,-1.39l-1.36,-0.65l-0.35,-1.0l-0.83,-0.75l1.54,-0.54l2.66,-4.21l2.4,-1.24l2.96,0.34l1.48,0.73l0.79,-0.45l1.78,-0.3l0.75,-0.74l0.79,0.0Z","name":"Romania"},"GW":{"path":"M386.23,253.6l-0.29,0.84l0.15,0.6l-2.21,0.59l-0.86,0.96l-1.04,-0.83l-1.09,-0.23l-0.54,-1.06l-0.66,-0.49l2.41,-0.48l4.13,0.1Z","name":"Guinea-Bissau"},"GT":{"path":"M195.08,249.77l-2.48,-0.37l-1.03,-0.45l-1.14,-0.89l0.3,-0.99l-0.24,-0.68l0.96,-1.66l2.98,-0.01l0.4,-0.37l-0.19,-1.28l-1.67,-1.4l0.51,-0.4l0.0,-1.05l3.85,0.02l-0.21,4.53l0.4,0.43l1.46,0.38l-1.48,0.98l-0.35,0.7l0.12,0.57l-2.2,1.96Z","name":"Guatemala"},"GR":{"path":"M487.07,174.59l-0.59,1.43l-0.37,0.21l-2.84,-0.35l-3.03,0.77l-0.18,0.68l1.28,1.23l-0.61,0.23l-1.14,0.0l-1.2,-1.39l-0.63,0.03l-0.53,1.01l0.56,1.76l1.03,1.19l-0.56,0.38l-0.05,0.62l2.52,2.12l0.02,0.87l-1.78,-0.59l-0.48,0.56l0.5,1.0l-1.07,0.2l-0.3,0.53l0.75,2.01l-0.98,0.02l-1.84,-1.12l-1.37,-4.2l-2.21,-2.95l-0.11,-0.56l1.04,-1.28l0.2,-0.95l0.85,-0.66l0.03,-0.46l1.32,-0.21l1.01,-0.64l1.22,0.05l0.65,-0.56l2.26,-0.0l1.82,-0.75l1.85,1.0l2.28,-0.28l0.35,-0.39l0.01,-0.77l0.34,0.22ZM480.49,192.16l0.58,0.4l-0.68,-0.12l0.11,-0.28ZM482.52,192.82l2.51,0.06l0.24,0.32l-1.99,0.13l-0.77,-0.51Z","name":"Greece"},"GQ":{"path":"M448.79,279.62l0.02,2.22l-4.09,0.0l0.69,-2.27l3.38,0.05Z","name":"Eq. Guinea"},"GY":{"path":"M277.42,270.07l-0.32,1.83l-1.32,0.57l-0.23,0.46l-0.28,2.0l1.11,1.82l0.83,0.19l0.32,1.25l1.13,1.62l-1.21,-0.19l-1.08,0.71l-1.77,0.5l-0.44,0.46l-0.86,-0.09l-1.32,-1.01l-0.77,-2.27l0.36,-1.9l0.68,-1.23l-0.57,-1.17l-0.74,-0.43l0.12,-1.16l-0.9,-0.69l-1.1,0.09l-1.31,-1.48l0.53,-0.72l-0.04,-0.84l1.99,-0.86l0.05,-0.59l-0.71,-0.78l0.14,-0.57l1.66,-1.24l1.36,0.77l1.41,1.49l0.06,1.15l0.37,0.38l0.8,0.05l2.06,1.86Z","name":"Guyana"},"GE":{"path":"M521.71,168.93l5.29,0.89l4.07,2.01l1.41,-0.44l2.07,0.56l0.68,1.1l1.07,0.55l-0.12,0.59l0.98,1.29l-1.01,-0.13l-1.81,-0.83l-0.94,0.47l-3.23,0.43l-2.29,-1.39l-2.33,0.05l0.21,-0.97l-0.76,-2.26l-1.45,-1.12l-1.43,-0.39l-0.41,-0.42Z","name":"Georgia"},"GB":{"path":"M412.61,118.72l-2.19,3.22l-0.0,0.45l5.13,-0.3l-0.53,2.37l-2.2,3.12l0.29,0.63l2.37,0.21l2.33,4.3l1.76,0.69l2.2,5.12l2.94,0.77l-0.23,1.62l-1.15,0.88l-0.1,0.52l0.82,1.42l-1.86,1.43l-3.3,-0.02l-4.12,0.87l-1.04,-0.58l-0.47,0.06l-1.51,1.41l-2.12,-0.34l-1.86,1.18l-0.6,-0.29l3.19,-3.0l2.16,-0.69l0.28,-0.41l-0.34,-0.36l-3.73,-0.53l-0.4,-0.76l2.2,-0.87l0.17,-0.61l-1.26,-1.67l0.36,-1.7l3.38,0.28l0.43,-0.33l0.37,-1.99l-1.79,-2.49l-3.11,-0.72l-0.38,-0.59l0.79,-1.35l-0.04,-0.46l-0.82,-0.97l-0.61,0.01l-0.68,0.84l-0.1,-2.34l-1.23,-1.88l0.85,-3.47l1.77,-2.68l1.85,0.26l2.17,-0.22ZM406.26,132.86l-1.01,1.77l-1.57,-0.59l-1.16,0.01l0.37,-1.54l-0.39,-1.39l1.45,-0.1l2.3,1.84Z","name":"United Kingdom"},"GA":{"path":"M453.24,279.52l-0.08,0.98l0.7,1.29l2.36,0.24l-0.98,2.63l1.18,1.79l0.25,1.78l-0.29,1.52l-0.6,0.93l-1.84,-0.09l-1.23,-1.11l-0.66,0.23l-0.15,0.84l-1.42,0.26l-1.02,0.7l-0.11,0.52l0.77,1.35l-1.34,0.97l-3.94,-4.3l-1.44,-2.45l0.06,-0.6l0.54,-0.81l1.05,-3.46l4.17,-0.07l0.4,-0.4l-0.02,-2.66l2.39,0.21l1.25,-0.27Z","name":"Gabon"},"GN":{"path":"M391.8,254.11l0.47,0.8l1.11,-0.32l0.98,0.7l1.07,0.2l2.26,-1.22l0.64,0.44l1.13,1.56l-0.48,1.4l0.8,0.3l-0.08,0.48l0.46,0.68l-0.35,1.36l1.05,2.61l-1.0,0.69l0.03,1.41l-0.72,-0.06l-1.08,1.0l-0.24,-0.27l0.07,-1.11l-1.05,-1.54l-1.79,0.21l-0.35,-2.01l-1.6,-2.18l-2.0,-0.0l-1.31,0.54l-1.95,2.18l-1.86,-2.19l-1.2,-0.78l-0.3,-1.11l-0.8,-0.85l0.65,-0.72l0.81,-0.03l1.64,-0.8l0.23,-1.87l2.67,0.64l0.89,-0.3l1.21,0.15Z","name":"Guinea"},"GM":{"path":"M379.31,251.39l0.1,-0.35l2.43,-0.07l0.74,-0.61l0.51,-0.03l0.77,0.49l-1.03,-0.3l-1.87,0.9l-1.65,-0.04ZM384.03,250.91l0.91,0.05l0.75,-0.24l-0.59,0.31l-1.08,-0.13Z","name":"Gambia"},"GL":{"path":"M353.02,1.2l14.69,4.67l-3.68,1.89l-22.97,0.86l-0.36,0.27l0.12,0.43l1.55,1.18l8.79,-0.66l7.48,2.07l4.86,-1.77l1.66,1.73l-2.53,3.19l-0.01,0.48l0.46,0.15l6.35,-2.2l12.06,-2.31l7.24,1.13l1.09,1.99l-9.79,4.01l-1.44,1.32l-7.87,0.98l-0.35,0.41l0.38,0.38l5.07,0.24l-2.53,3.58l-2.07,3.81l0.08,6.05l2.57,3.11l-3.22,0.2l-4.12,1.66l-0.05,0.72l4.45,2.65l0.51,3.75l-2.3,0.4l-0.25,0.64l2.79,3.69l-4.82,0.31l-0.36,0.29l0.16,0.44l2.62,1.8l-0.59,1.22l-3.3,0.7l-3.45,0.01l-0.29,0.68l3.03,3.12l0.02,1.34l-4.4,-1.73l-1.72,1.35l0.15,0.66l3.31,1.15l3.13,2.71l0.81,3.16l-3.85,0.75l-4.89,-4.26l-0.47,-0.03l-0.17,0.44l0.79,2.86l-2.71,2.21l-0.13,0.44l0.37,0.27l8.73,0.34l-12.32,6.64l-7.24,1.48l-2.94,0.08l-2.69,1.75l-3.43,4.41l-5.24,2.84l-1.73,0.18l-7.12,2.1l-2.15,2.52l-0.13,2.99l-1.19,2.45l-4.01,3.09l-0.14,0.44l0.97,2.9l-2.28,6.48l-3.1,0.2l-3.83,-3.07l-4.86,-0.02l-2.25,-1.93l-1.7,-3.79l-4.3,-4.84l-1.21,-2.49l-0.44,-3.8l-3.32,-3.63l0.84,-2.86l-1.56,-1.7l2.28,-4.6l3.83,-1.74l1.03,-1.96l0.52,-3.47l-0.59,-0.41l-4.17,2.21l-2.07,0.58l-2.72,-1.28l-0.15,-2.71l0.85,-2.09l2.01,-0.06l5.06,1.2l0.46,-0.23l-0.14,-0.49l-6.54,-4.47l-2.67,0.55l-1.58,-0.86l2.56,-4.01l-0.03,-0.48l-1.5,-1.74l-4.98,-8.5l-3.13,-1.96l0.03,-1.88l-0.24,-0.37l-6.85,-3.02l-5.36,-0.38l-12.7,0.58l-2.78,-1.57l-3.66,-2.77l5.73,-1.45l5.0,-0.28l0.38,-0.38l-0.35,-0.41l-10.67,-1.38l-5.3,-2.06l0.25,-1.54l18.41,-5.26l1.22,-2.27l-0.25,-0.55l-6.14,-1.86l1.68,-1.77l8.55,-4.03l3.59,-0.63l0.3,-0.54l-0.88,-2.27l5.47,-1.47l7.65,-0.95l7.55,-0.05l3.04,1.85l6.48,-3.27l5.81,2.22l3.56,0.5l5.16,1.94l0.5,-0.21l-0.17,-0.52l-5.71,-3.13l0.28,-2.13l8.12,-3.6l8.7,0.28l3.35,-2.34l8.71,-0.6l19.93,0.8Z","name":"Greenland"},"GH":{"path":"M420.53,257.51l-0.01,0.72l0.96,1.2l0.24,3.73l0.59,0.95l-0.51,2.1l0.19,1.41l1.02,2.21l-6.97,2.84l-1.8,-0.57l0.04,-0.89l-1.02,-2.04l0.61,-2.65l1.07,-2.32l-0.96,-6.47l5.01,0.07l0.94,-0.39l0.61,0.11Z","name":"Ghana"},"OM":{"path":"M568.09,230.93l-0.91,1.67l-1.22,0.04l-0.6,0.76l-0.41,1.51l0.27,1.58l-1.16,0.05l-1.56,0.97l-0.76,1.74l-1.62,0.05l-0.98,0.65l-0.17,1.15l-0.89,0.52l-1.49,-0.18l-2.4,0.94l-2.47,-5.4l7.35,-2.71l1.67,-5.23l-1.12,-2.09l0.05,-0.83l0.67,-1.0l0.07,-1.05l0.9,-0.42l-0.05,-2.07l0.7,-0.01l1.0,1.62l1.51,1.08l3.3,0.84l1.73,2.29l0.81,0.37l-1.23,2.35l-0.99,0.79Z","name":"Oman"},"TN":{"path":"M448.1,188.24l-1.0,1.27l-0.02,1.32l0.84,0.88l-0.28,2.09l-1.53,1.32l-0.12,0.42l0.48,1.54l1.42,0.32l0.53,1.11l0.9,0.52l-0.11,1.67l-3.54,2.64l-0.1,2.38l-0.58,0.3l-0.96,-4.45l-1.54,-1.25l-0.16,-0.78l-1.92,-1.56l-0.18,-1.76l1.51,-1.62l0.59,-2.34l-0.38,-2.78l0.42,-1.21l2.45,-1.05l1.29,0.26l-0.06,1.11l0.58,0.38l1.47,-0.73Z","name":"Tunisia"},"JO":{"path":"M518.64,201.38l-5.14,1.56l-0.19,0.65l2.16,2.39l-0.89,1.14l-1.71,0.34l-1.71,1.8l-2.34,-0.37l1.21,-4.32l0.56,-4.07l2.8,0.94l4.46,-2.71l0.79,2.66Z","name":"Jordan"},"HR":{"path":"M455.59,162.84l1.09,0.07l-0.82,0.94l-0.27,-1.01ZM456.96,162.92l0.62,-0.41l1.73,0.45l0.42,-0.4l-0.01,-0.59l0.86,-0.52l0.2,-1.05l1.63,-0.68l2.57,1.68l2.07,0.6l0.87,-0.31l1.05,1.57l-0.52,0.63l-1.05,-0.56l-1.68,0.04l-2.1,-0.5l-1.29,0.06l-0.57,0.49l-0.59,-0.47l-0.62,0.16l-0.46,1.7l1.79,2.42l2.79,2.75l-1.18,-0.87l-2.21,-0.87l-1.67,-1.78l0.13,-0.63l-1.05,-1.19l-0.32,-1.27l-1.42,-0.43Z","name":"Croatia"},"HT":{"path":"M237.05,238.38l-1.16,0.43l-0.91,-0.55l0.05,-0.2l2.02,0.31ZM237.53,238.43l1.06,0.12l-0.05,0.01l-1.01,-0.12ZM239.25,238.45l0.79,-0.51l0.06,-0.62l-1.02,-1.0l0.02,-0.82l-0.3,-0.4l-0.93,-0.32l3.16,0.45l0.02,1.84l-0.48,0.34l-0.08,0.58l0.54,0.72l-1.78,-0.26Z","name":"Haiti"},"HU":{"path":"M462.08,157.89l0.65,-1.59l-0.09,-0.44l0.64,-0.0l0.39,-0.34l0.1,-0.69l1.75,0.87l2.32,-0.37l0.43,-0.66l3.49,-0.78l0.69,-0.78l0.57,-0.14l2.57,0.93l0.67,-0.23l1.03,0.65l0.08,0.37l-1.42,0.71l-2.59,4.14l-1.8,0.53l-1.68,-0.1l-2.74,1.23l-1.85,-0.54l-2.54,-1.66l-0.66,-1.1Z","name":"Hungary"},"HN":{"path":"M199.6,249.52l-1.7,-1.21l0.06,-0.94l3.04,-2.14l2.37,0.28l1.27,-0.09l1.1,-0.52l1.3,0.28l1.14,-0.25l1.38,0.37l2.23,1.37l-2.36,0.93l-1.23,-0.39l-0.88,1.3l-1.28,0.99l-0.98,-0.22l-0.42,0.52l-0.96,0.05l-0.36,0.41l0.04,0.88l-0.52,0.6l-0.3,0.04l-0.3,-0.55l-0.66,-0.31l0.11,-0.67l-0.48,-0.65l-0.87,-0.26l-0.73,0.2Z","name":"Honduras"},"PR":{"path":"M256.17,238.73l-0.26,0.27l-2.83,0.05l-0.07,-0.55l1.95,-0.1l1.22,0.33Z","name":"Puerto Rico"},"PS":{"path":"M509.21,203.07l0.1,-0.06l-0.02,0.03l-0.09,0.03ZM509.36,202.91l-0.02,-0.63l-0.33,-0.16l0.31,-1.09l0.24,0.1l-0.2,1.78Z","name":"Palestine"},"PT":{"path":"M401.84,187.38l-0.64,0.47l-1.13,-0.35l-0.91,0.17l0.28,-1.78l-0.24,-1.78l-1.25,-0.56l-0.45,-0.84l0.17,-1.66l1.01,-1.18l0.69,-2.92l-0.04,-1.39l-0.59,-1.9l1.3,-0.85l0.84,1.35l3.1,-0.3l0.46,0.99l-1.05,0.94l-0.03,2.16l-0.41,0.57l-0.08,1.1l-0.79,0.18l-0.26,0.59l0.91,1.6l-0.63,1.75l0.76,1.09l-1.1,1.52l0.07,1.05Z","name":"Portugal"},"PY":{"path":"M274.9,336.12l0.74,1.52l-0.16,3.45l0.32,0.41l2.64,0.5l1.11,-0.47l1.4,0.59l0.36,0.6l0.53,3.42l1.27,0.4l0.98,-0.38l0.51,0.27l-0.0,1.18l-1.21,5.32l-2.09,1.9l-1.8,0.4l-4.71,-0.98l2.2,-3.63l-0.32,-1.5l-2.78,-1.28l-3.03,-1.94l-2.07,-0.44l-4.34,-4.06l0.91,-2.9l0.08,-1.42l1.07,-2.04l4.13,-0.72l2.18,0.03l2.05,1.17l0.03,0.59Z","name":"Paraguay"},"PA":{"path":"M213.8,263.68l0.26,-1.52l-0.36,-0.26l-0.01,-0.49l0.44,-0.1l0.93,1.4l1.26,0.03l0.77,0.49l1.38,-0.23l2.51,-1.11l0.86,-0.72l3.45,0.85l1.4,1.18l0.41,1.74l-0.21,0.34l-0.53,-0.12l-0.47,0.29l-0.16,0.6l-0.68,-1.28l0.45,-0.49l-0.19,-0.66l-0.47,-0.13l-0.54,-0.84l-1.5,-0.75l-1.1,0.16l-0.75,0.99l-1.62,0.84l-0.18,0.96l0.85,0.97l-0.58,0.45l-0.69,0.08l-0.34,-1.18l-1.27,0.03l-0.71,-1.05l-2.59,-0.46Z","name":"Panama"},"PG":{"path":"M808.58,298.86l2.54,2.56l-0.13,0.26l-0.33,0.12l-0.87,-0.78l-1.22,-2.16ZM801.41,293.04l0.5,0.29l0.26,0.27l-0.49,-0.35l-0.27,-0.21ZM803.17,294.58l0.59,0.5l0.08,1.06l-0.29,-0.91l-0.38,-0.65ZM796.68,298.41l0.52,0.75l1.43,-0.19l2.27,-1.81l-0.01,-1.43l1.12,0.16l-0.04,1.1l-0.7,1.28l-1.12,0.18l-0.62,0.79l-2.46,1.11l-1.17,-0.0l-3.08,-1.25l3.41,0.0l0.45,-0.68ZM789.15,303.55l2.31,1.8l1.59,2.61l1.34,0.13l-0.06,0.66l0.31,0.43l1.06,0.24l0.06,0.65l2.25,1.05l-1.22,0.13l-0.72,-0.63l-4.56,-0.65l-3.22,-2.87l-1.49,-2.34l-3.27,-1.1l-2.38,0.72l-1.59,0.86l-0.2,0.42l0.27,1.55l-1.55,0.68l-1.36,-0.4l-2.21,-0.09l-0.08,-15.41l8.39,2.93l2.95,2.4l0.6,1.64l4.02,1.49l0.31,0.68l-1.76,0.21l-0.33,0.52l0.55,1.68Z","name":"Papua New Guinea"},"PE":{"path":"M244.96,295.21l-1.26,-0.07l-0.57,0.42l-1.93,0.45l-2.98,1.75l-0.36,1.36l-0.58,0.8l0.12,1.37l-1.24,0.59l-0.22,1.22l-0.62,0.84l1.04,2.27l1.28,1.44l-0.41,0.84l0.32,0.57l1.48,0.13l1.16,1.37l2.21,0.07l1.63,-1.08l-0.13,3.02l0.3,0.4l1.14,0.29l1.31,-0.34l1.9,3.59l-0.48,0.85l-0.17,3.85l-0.94,1.59l0.35,0.75l-0.47,1.07l0.98,1.97l-2.1,3.82l-0.98,0.5l-2.17,-1.28l-0.39,-1.16l-4.95,-2.58l-4.46,-2.79l-1.84,-1.51l-0.91,-1.84l0.3,-0.96l-2.11,-3.33l-4.82,-9.68l-1.04,-1.2l-0.87,-1.94l-3.4,-2.48l0.58,-1.18l-1.13,-2.23l0.66,-1.49l1.45,-1.15l-0.6,0.98l0.07,0.92l0.47,0.36l1.74,0.03l0.97,1.17l0.54,0.07l1.42,-1.03l0.6,-1.84l1.42,-2.02l3.04,-1.04l2.73,-2.62l0.86,-1.74l-0.1,-1.87l1.44,1.02l0.9,1.25l1.06,0.59l1.7,2.73l1.86,0.31l1.45,-0.61l0.96,0.39l1.36,-0.19l1.45,0.89l-1.4,2.21l0.31,0.61l0.59,0.05l0.47,0.5Z","name":"Peru"},"PK":{"path":"M615.09,192.34l-1.83,1.81l-2.6,0.39l-3.73,-0.68l-1.58,1.33l-0.09,0.42l1.77,4.39l1.7,1.23l-1.69,1.27l-0.12,2.14l-2.33,2.64l-1.6,2.8l-2.46,2.67l-3.03,-0.07l-2.76,2.83l0.05,0.6l1.5,1.11l0.26,1.9l1.44,1.5l0.37,1.68l-5.01,-0.01l-1.78,1.7l-1.42,-0.52l-0.76,-1.87l-2.27,-2.15l-11.61,0.86l0.71,-2.34l3.43,-1.32l0.25,-0.44l-0.21,-1.24l-1.2,-0.65l-0.28,-2.46l-2.29,-1.14l-1.28,-1.94l2.82,0.94l2.62,-0.38l1.42,0.33l0.76,-0.56l1.71,0.19l3.25,-1.14l0.27,-0.36l0.08,-2.19l1.18,-1.32l1.68,0.0l0.58,-0.82l1.6,-0.3l1.19,0.16l0.98,-0.78l0.02,-1.88l0.93,-1.47l1.48,-0.66l0.19,-0.55l-0.66,-1.25l2.04,-0.11l0.69,-1.01l-0.02,-1.16l1.11,-1.06l-0.17,-1.78l-0.49,-1.03l1.15,-0.98l5.42,-0.91l2.6,-0.82l1.6,1.16l0.97,2.34l3.45,0.97Z","name":"Pakistan"},"PH":{"path":"M737.01,263.84l0.39,2.97l-0.44,1.18l-0.55,-1.53l-0.67,-0.14l-1.17,1.28l0.65,2.09l-0.42,0.69l-2.48,-1.23l-0.57,-1.49l0.65,-1.03l-0.1,-0.54l-1.59,-1.19l-0.56,0.08l-0.65,0.87l-1.23,0.0l-1.58,0.97l0.83,-1.8l2.56,-1.42l0.65,0.84l0.45,0.13l1.9,-0.69l0.56,-1.11l1.5,-0.06l0.38,-0.43l-0.09,-1.19l1.21,0.71l0.36,2.02ZM733.59,256.58l0.05,0.75l0.08,0.26l-0.8,-0.42l-0.18,-0.71l0.85,0.12ZM734.08,256.1l-0.12,-1.12l-1.0,-1.27l1.36,0.03l0.53,0.73l0.51,2.04l-1.27,-0.4ZM733.76,257.68l0.38,0.98l-0.32,0.15l-0.07,-1.13ZM724.65,238.43l1.46,0.7l0.72,-0.31l-0.32,1.17l0.79,1.71l-0.57,1.84l-1.53,1.04l-0.39,2.25l0.56,2.04l1.63,0.57l1.16,-0.27l2.71,1.23l-0.19,1.08l0.76,0.84l-0.08,0.36l-1.4,-0.9l-0.88,-1.27l-0.66,0.0l-0.38,0.55l-1.6,-1.31l-2.15,0.36l-0.87,-0.39l0.07,-0.61l0.66,-0.55l-0.01,-0.62l-0.75,-0.59l-0.72,0.44l-0.74,-0.87l-0.39,-2.49l0.32,0.27l0.66,-0.28l0.26,-3.97l0.7,-2.02l1.14,0.0ZM731.03,258.87l-0.88,0.85l-1.19,1.94l-1.05,-1.19l0.93,-1.1l0.32,-1.47l0.52,-0.06l-0.27,1.15l0.22,0.45l0.49,-0.12l1.0,-1.32l-0.08,0.85ZM726.83,255.78l0.83,0.38l1.17,-0.0l-0.02,0.48l-2.0,1.4l0.03,-2.26ZM724.81,252.09l-0.38,1.27l-1.42,-1.95l1.2,0.05l0.6,0.63ZM716.55,261.82l1.1,-0.95l0.03,-0.03l-0.28,0.36l-0.85,0.61ZM719.22,259.06l0.04,-0.06l0.8,-1.53l0.16,0.75l-1.0,0.84Z","name":"Philippines"},"PL":{"path":"M468.44,149.42l-1.11,-1.54l-1.86,-0.33l-0.48,-1.05l-1.72,-0.37l-0.65,0.69l-0.72,-0.36l0.11,-0.61l-0.33,-0.46l-1.75,-0.27l-1.04,-0.93l-0.94,-1.94l0.16,-1.22l-0.62,-1.8l-0.78,-1.07l0.57,-1.04l-0.48,-1.43l1.41,-0.83l6.91,-2.71l2.14,0.5l0.52,0.91l5.51,0.44l4.55,-0.05l1.07,0.31l0.48,0.84l0.15,1.58l0.65,1.2l-0.01,0.99l-1.27,0.58l-0.19,0.54l0.73,1.48l0.08,1.55l1.2,2.76l-0.17,0.58l-1.23,0.44l-2.27,2.72l0.18,0.95l-1.97,-1.03l-1.98,0.4l-1.36,-0.28l-1.24,0.58l-1.07,-0.97l-1.16,0.24Z","name":"Poland"},"ZM":{"path":"M481.47,313.3l0.39,0.31l2.52,0.14l0.99,1.17l2.01,0.35l1.4,-0.64l0.69,1.17l1.78,0.33l1.84,2.35l2.23,0.18l0.4,-0.43l-0.21,-2.74l-0.62,-0.3l-0.48,0.32l-1.98,-1.17l0.72,-5.29l-0.51,-1.18l0.57,-1.3l3.68,-0.62l0.26,0.63l1.21,0.63l0.9,-0.22l2.16,0.67l1.33,0.71l1.07,1.02l0.56,1.87l-0.88,2.7l0.43,2.09l-0.73,0.87l-0.76,2.37l0.59,0.68l-6.6,1.83l-0.29,0.44l0.19,1.45l-1.68,0.35l-1.43,1.02l-0.38,0.87l-0.87,0.26l-3.48,3.69l-4.16,-0.53l-1.52,-1.0l-1.77,-0.13l-1.83,0.52l-3.04,-3.4l0.11,-7.59l4.82,0.03l0.39,-0.49l-0.18,-0.76l0.33,-0.83l-0.4,-1.36l0.24,-1.05Z","name":"Zambia"},"EH":{"path":"M384.42,230.28l0.25,-0.79l1.06,-1.29l0.8,-3.51l3.38,-2.78l0.7,-1.81l0.06,4.84l-1.98,0.2l-0.94,1.59l0.39,3.56l-3.7,-0.01ZM392.01,218.1l0.7,-1.8l1.77,-0.24l2.09,0.34l0.95,-0.62l1.28,-0.07l-0.0,2.51l-6.79,-0.12Z","name":"W. Sahara"},"EE":{"path":"M485.71,115.04l2.64,0.6l2.56,0.11l-1.6,1.91l0.61,3.54l-0.81,0.87l-1.78,-0.01l-3.22,-1.76l-1.8,0.45l0.21,-1.53l-0.58,-0.41l-0.69,0.34l-1.26,-1.03l-0.17,-1.63l2.83,-0.92l3.05,-0.52Z","name":"Estonia"},"EG":{"path":"M492.06,205.03l1.46,0.42l2.95,-1.64l2.04,-0.21l1.53,0.3l0.59,1.19l0.69,0.04l0.41,-0.64l1.81,0.58l1.95,0.16l1.04,-0.51l1.42,4.08l-2.03,4.54l-1.66,-1.77l-1.76,-3.85l-0.64,-0.12l-0.36,0.67l1.04,2.88l3.44,6.95l1.78,3.04l2.03,2.65l-0.36,0.53l0.23,2.01l2.7,2.19l-28.41,0.0l0.0,-18.96l-0.73,-2.2l0.59,-1.56l-0.32,-1.26l0.68,-0.99l3.06,-0.04l4.82,1.52Z","name":"Egypt"},"ZA":{"path":"M467.14,373.21l-0.13,-1.96l-0.68,-1.56l0.7,-0.68l-0.13,-2.33l-4.56,-8.19l0.77,-0.86l0.6,0.45l0.69,1.31l2.83,0.72l1.5,-0.26l2.24,-1.39l0.19,-9.55l1.35,2.3l-0.21,1.5l0.61,1.2l0.4,0.19l1.79,-0.27l2.6,-2.07l0.69,-1.32l0.96,-0.48l2.19,1.04l2.04,0.13l1.77,-0.65l0.85,-2.12l1.38,-0.33l1.59,-2.76l2.15,-1.89l3.41,-1.87l2.0,0.45l1.02,-0.28l0.99,0.2l1.75,5.29l-0.38,3.25l-0.81,-0.23l-1.0,0.46l-0.87,1.68l-0.05,1.16l1.97,1.84l1.47,-0.29l0.69,-1.18l1.09,0.01l-0.76,3.69l-0.58,1.09l-2.2,1.79l-3.17,4.76l-2.8,2.83l-3.57,2.88l-2.53,1.05l-1.22,0.14l-0.51,0.7l-1.18,-0.32l-1.39,0.5l-2.59,-0.52l-1.61,0.33l-1.18,-0.11l-2.55,1.1l-2.1,0.44l-1.6,1.07l-0.85,0.05l-0.93,-0.89l-0.93,-0.15l-0.97,-1.13l-0.25,0.05ZM491.45,364.19l0.62,-0.93l1.48,-0.59l1.18,-2.19l-0.07,-0.49l-1.99,-1.69l-1.66,0.56l-1.43,1.14l-1.34,1.73l0.02,0.51l1.88,2.11l1.31,-0.16Z","name":"South Africa"},"EC":{"path":"M231.86,285.53l0.29,1.59l-0.69,1.45l-2.61,2.51l-3.13,1.11l-1.53,2.18l-0.49,1.68l-1.0,0.73l-1.02,-1.11l-1.78,-0.16l0.67,-1.15l-0.24,-0.86l1.25,-2.13l-0.54,-1.09l-0.67,-0.08l-0.72,0.87l-0.87,-0.64l0.35,-0.69l-0.36,-1.96l0.81,-0.51l0.45,-1.51l0.92,-1.57l-0.07,-0.97l2.65,-1.33l2.75,1.35l0.77,1.05l2.12,0.35l0.76,-0.32l1.96,1.21Z","name":"Ecuador"},"IT":{"path":"M451.59,158.63l3.48,0.94l-0.21,1.17l0.3,0.83l-1.49,-0.24l-2.04,1.1l-0.21,0.39l0.13,1.45l-0.25,1.12l0.82,1.57l2.39,1.63l1.31,2.54l2.79,2.43l2.05,0.08l0.21,0.23l-0.39,0.33l0.09,0.67l4.05,1.97l2.17,1.76l-0.16,0.36l-1.17,-1.08l-2.18,-0.49l-0.44,0.2l-1.05,1.91l0.14,0.54l1.57,0.95l-0.19,0.98l-1.06,0.33l-1.25,2.34l-0.37,0.08l0.0,-0.33l1.0,-2.45l-1.73,-3.17l-1.12,-0.51l-0.88,-1.33l-1.51,-0.51l-1.27,-1.25l-1.75,-0.18l-4.12,-3.21l-1.62,-1.65l-1.03,-3.19l-3.53,-1.36l-1.3,0.51l-1.69,1.41l0.16,-0.72l-0.28,-0.47l-1.14,-0.33l-0.53,-1.96l0.72,-0.78l0.04,-0.48l-0.65,-1.17l0.8,0.39l1.4,-0.23l1.11,-0.84l0.52,0.35l1.19,-0.1l0.75,-1.2l1.53,0.33l1.36,-0.56l0.35,-1.14l1.08,0.32l0.68,-0.64l1.98,-0.44l0.42,0.82ZM459.19,184.75l-0.65,1.65l0.32,1.05l-0.31,0.89l-1.5,-0.85l-4.5,-1.67l0.19,-0.82l2.67,0.23l3.78,-0.48ZM443.93,176.05l1.18,1.66l-0.3,3.32l-1.06,-0.01l-0.77,0.73l-0.53,-0.44l-0.1,-3.37l-0.39,-1.22l1.04,0.01l0.92,-0.68Z","name":"Italy"},"VN":{"path":"M690.56,230.25l-2.7,1.82l-2.09,2.46l-0.63,1.95l4.31,6.45l2.32,1.65l1.43,1.94l1.11,4.59l-0.32,4.24l-1.93,1.54l-2.84,1.61l-2.11,2.15l-2.73,2.06l-0.59,-1.05l0.63,-1.53l-0.13,-0.47l-1.34,-1.04l1.51,-0.71l2.55,-0.18l0.3,-0.63l-0.82,-1.14l4.0,-2.07l0.31,-3.05l-0.57,-1.77l0.42,-2.66l-0.73,-1.97l-1.86,-1.76l-3.63,-5.29l-2.72,-1.46l0.36,-0.47l1.5,-0.64l0.21,-0.52l-0.97,-2.27l-0.37,-0.24l-2.83,-0.02l-2.24,-3.9l0.83,-0.4l4.39,-0.29l2.06,-1.31l1.15,0.89l1.88,0.4l-0.17,1.51l1.35,1.16l1.67,0.45Z","name":"Vietnam"},"SB":{"path":"M826.69,311.6l-0.61,0.09l-0.2,-0.33l0.37,0.15l0.44,0.09ZM824.18,307.38l-0.26,-0.3l-0.31,-0.91l0.03,0.0l0.54,1.21ZM823.04,309.33l-1.66,-0.22l-0.2,-0.52l1.16,0.28l0.69,0.46ZM819.28,304.68l1.14,0.65l0.02,0.03l-0.81,-0.44l-0.35,-0.23Z","name":"Solomon Is."},"ET":{"path":"M516.04,247.79l1.1,0.84l1.63,-0.45l0.68,0.47l1.63,0.03l2.01,0.94l1.73,1.66l1.64,2.07l-1.52,2.04l0.16,1.72l0.39,0.38l2.05,0.0l-0.36,1.03l2.86,3.58l8.32,3.08l1.31,0.02l-6.32,6.75l-3.1,0.11l-2.36,1.77l-1.47,0.04l-0.86,0.79l-1.38,-0.0l-1.32,-0.81l-2.29,1.05l-0.76,0.98l-3.29,-0.41l-3.07,-2.07l-1.8,-0.07l-0.62,-0.6l0.0,-1.24l-0.28,-0.38l-1.15,-0.37l-1.4,-2.59l-1.19,-0.68l-0.47,-1.0l-1.27,-1.23l-1.16,-0.22l0.43,-0.72l1.45,-0.28l0.41,-0.95l-0.03,-2.21l0.68,-2.44l1.05,-0.63l1.43,-3.06l1.57,-1.37l1.02,-2.51l0.35,-1.88l2.52,0.46l0.44,-0.24l0.58,-1.43Z","name":"Ethiopia"},"SO":{"path":"M525.13,288.48l-1.13,-1.57l-0.03,-8.86l2.66,-3.38l1.67,-0.13l2.13,-1.69l3.41,-0.23l7.08,-7.55l2.91,-3.69l0.08,-4.82l2.98,-0.67l1.24,-0.86l0.45,-0.0l-0.2,3.0l-1.21,3.62l-2.73,5.97l-2.13,3.65l-5.03,6.16l-8.56,6.4l-2.78,3.08l-0.8,1.56Z","name":"Somalia"},"ZW":{"path":"M498.91,341.09l-1.11,-0.22l-0.92,0.28l-2.09,-0.44l-1.5,-1.11l-1.89,-0.43l-0.62,-1.4l-0.01,-0.84l-0.3,-0.38l-0.97,-0.25l-2.71,-2.74l-1.92,-3.32l3.83,0.45l3.73,-3.82l1.08,-0.44l0.26,-0.77l1.25,-0.9l1.41,-0.26l0.5,0.89l1.99,-0.05l1.72,1.17l1.11,0.17l1.05,0.66l0.01,2.99l-0.59,3.76l0.38,0.86l-0.23,1.23l-0.39,0.35l-0.63,1.81l-2.43,2.75Z","name":"Zimbabwe"},"ES":{"path":"M416.0,169.21l1.07,1.17l4.61,1.38l1.06,-0.57l2.6,1.26l2.71,-0.3l0.09,1.12l-2.14,1.8l-3.11,0.61l-0.31,0.31l-0.2,0.89l-1.54,1.69l-0.97,2.4l0.84,1.74l-1.32,1.27l-0.48,1.68l-1.88,0.65l-1.66,2.07l-5.36,-0.01l-1.79,1.08l-0.89,0.98l-0.88,-0.17l-0.79,-0.82l-0.68,-1.59l-2.37,-0.63l-0.11,-0.5l1.21,-1.82l-0.77,-1.13l0.61,-1.68l-0.76,-1.62l0.87,-0.49l0.09,-1.25l0.42,-0.6l0.03,-2.11l0.99,-0.69l0.13,-0.5l-1.03,-1.73l-1.46,-0.11l-0.61,0.38l-1.06,0.0l-0.52,-1.23l-0.53,-0.21l-1.32,0.67l-0.01,-1.49l-0.75,-0.96l3.03,-1.88l2.99,0.53l3.32,-0.02l2.63,0.51l6.01,-0.06Z","name":"Spain"},"ER":{"path":"M520.38,246.23l3.42,2.43l3.5,3.77l0.84,0.54l-0.95,-0.01l-3.51,-3.89l-2.33,-1.15l-1.73,-0.07l-0.91,-0.51l-1.26,0.51l-1.34,-1.02l-0.61,0.17l-0.66,1.61l-2.35,-0.43l-0.17,-0.67l1.29,-5.29l0.61,-0.61l1.95,-0.53l0.87,-1.01l1.17,2.41l0.68,2.33l1.49,1.43Z","name":"Eritrea"},"ME":{"path":"M468.91,172.53l-1.22,-1.02l0.47,-1.81l0.89,-0.72l2.26,1.51l-0.5,0.57l-0.75,-0.27l-1.14,1.73Z","name":"Montenegro"},"MD":{"path":"M488.41,153.73l1.4,-0.27l1.72,0.93l1.07,0.15l0.85,0.65l-0.14,0.84l0.96,0.85l1.12,2.47l-1.15,-0.07l-0.66,-0.41l-0.52,0.25l-0.09,0.86l-1.08,1.89l-0.27,-0.86l0.25,-1.34l-0.16,-1.6l-3.29,-4.34Z","name":"Moldova"},"MG":{"path":"M545.91,319.14l0.4,3.03l0.62,1.21l-0.21,1.02l-0.57,-0.8l-0.69,-0.01l-0.47,0.76l0.41,2.12l-0.18,0.87l-0.73,0.78l-0.15,2.14l-4.71,15.2l-1.06,2.88l-3.92,1.64l-3.12,-1.49l-0.6,-1.21l-0.19,-2.4l-0.86,-2.05l-0.21,-1.77l0.38,-1.62l1.21,-0.75l0.01,-0.76l1.19,-2.04l0.23,-1.66l-1.06,-2.99l-0.19,-2.21l0.81,-1.33l0.32,-1.46l4.63,-1.22l3.44,-3.0l0.85,-1.4l-0.08,-0.7l0.78,-0.04l1.38,-1.77l0.13,-1.64l0.45,-0.61l1.16,1.69l0.59,1.6Z","name":"Madagascar"},"MA":{"path":"M378.78,230.02l0.06,-0.59l0.92,-0.73l0.82,-1.37l-0.09,-1.04l0.79,-1.7l1.31,-1.58l0.96,-0.59l0.66,-1.55l0.09,-1.47l0.81,-1.48l1.72,-1.07l1.55,-2.69l1.16,-0.96l2.44,-0.39l1.94,-1.82l1.31,-0.78l2.09,-2.28l-0.51,-3.65l1.24,-3.7l1.5,-1.75l4.46,-2.57l2.37,-4.47l1.44,0.01l1.68,1.21l2.32,-0.19l3.47,0.65l0.8,1.54l0.16,1.71l0.86,2.96l0.56,0.59l-0.26,0.61l-3.05,0.44l-1.26,1.05l-1.33,0.22l-0.33,0.37l-0.09,1.78l-2.68,1.0l-1.07,1.42l-4.47,1.13l-4.04,2.01l-0.54,4.64l-1.15,0.06l-0.92,0.61l-1.96,-0.35l-2.42,0.54l-0.74,1.9l-0.86,0.4l-1.14,3.26l-3.53,3.01l-0.8,3.55l-0.96,1.1l-0.29,0.82l-4.95,0.18Z","name":"Morocco"},"UZ":{"path":"M598.64,172.75l-1.63,1.52l0.06,0.64l1.85,1.12l1.97,-0.64l2.21,1.17l-2.52,1.68l-2.59,-0.22l-0.18,-0.41l0.46,-1.23l-0.45,-0.53l-3.35,0.69l-2.1,3.51l-1.87,-0.12l-1.03,1.51l0.22,0.55l1.64,0.62l0.46,1.83l-1.19,2.49l-2.66,-0.53l0.05,-1.36l-0.26,-0.39l-3.3,-1.23l-2.56,-1.4l-4.4,-3.34l-1.34,-3.14l-1.08,-0.6l-2.58,0.13l-0.69,-0.44l-0.47,-2.52l-3.37,-1.6l-0.43,0.05l-2.07,1.72l-2.1,1.01l-0.21,0.47l0.28,1.01l-1.91,0.03l-0.09,-10.5l5.99,-1.7l6.19,3.54l2.71,2.84l7.05,-0.67l2.71,2.01l-0.17,2.81l0.39,0.42l0.9,0.02l0.44,2.14l0.38,0.32l2.94,0.09l0.95,1.42l1.28,-0.24l1.05,-2.04l4.43,-2.5Z","name":"Uzbekistan"},"MM":{"path":"M673.9,230.21l-1.97,1.57l-0.57,0.96l-1.4,0.6l-1.36,1.05l-1.99,0.36l-1.08,2.66l-0.91,0.4l-0.19,0.55l1.21,2.27l2.52,3.43l-0.79,1.91l-0.74,0.41l-0.17,0.52l0.65,1.37l1.61,1.95l0.25,2.58l0.9,2.13l-1.92,3.57l0.68,-2.25l-0.81,-1.74l0.19,-2.65l-1.05,-1.53l-1.24,-6.17l-1.12,-2.26l-0.6,-0.13l-4.34,3.02l-2.39,-0.65l0.77,-2.84l-0.52,-2.61l-1.91,-2.96l0.25,-0.75l-0.29,-0.51l-1.33,-0.3l-1.61,-1.93l-0.1,-1.3l0.82,-0.24l0.04,-1.64l1.02,-0.52l0.21,-0.45l-0.23,-0.95l0.54,-0.96l0.08,-2.22l1.46,0.45l0.47,-0.2l1.12,-2.19l0.16,-1.35l1.33,-2.16l-0.0,-1.52l2.89,-1.66l1.63,0.44l0.5,-0.44l-0.17,-1.4l0.64,-0.36l0.08,-1.04l0.77,-0.11l0.71,1.35l1.06,0.69l-0.03,3.86l-2.38,2.37l-0.3,3.15l0.46,0.43l2.28,-0.38l0.51,2.08l1.47,0.67l-0.6,1.8l0.19,0.48l2.97,1.48l1.64,-0.55l0.02,0.32Z","name":"Myanmar"},"ML":{"path":"M392.61,254.08l-0.19,-2.37l-0.99,-0.87l-0.44,-1.3l-0.09,-1.28l0.81,-0.58l0.35,-1.24l2.37,0.65l1.31,-0.47l0.86,0.15l0.66,-0.56l9.83,-0.04l0.38,-0.28l0.56,-1.8l-0.44,-0.65l-2.35,-21.95l3.27,-0.04l16.7,11.38l0.74,1.31l2.5,1.09l0.02,1.38l0.44,0.39l2.34,-0.21l0.01,5.38l-1.28,1.61l-0.26,1.49l-5.31,0.57l-1.07,0.92l-2.9,0.1l-0.86,-0.48l-1.38,0.36l-2.4,1.08l-0.6,0.87l-1.85,1.09l-0.43,0.7l-0.79,0.39l-1.44,-0.21l-0.81,0.84l-0.34,1.64l-1.91,2.02l-0.06,1.03l-0.67,1.22l0.13,1.16l-0.97,0.39l-0.23,-0.64l-0.52,-0.24l-1.35,0.4l-0.34,0.55l-2.69,-0.28l-0.37,-0.35l-0.02,-0.9l-0.65,-0.35l0.45,-0.64l-0.03,-0.53l-2.12,-2.44l-0.76,-0.01l-2.0,1.16l-0.78,-0.15l-0.8,-0.67l-1.21,0.23Z","name":"Mali"},"MN":{"path":"M676.61,146.48l3.81,1.68l5.67,-1.0l2.37,0.41l2.34,1.5l1.79,1.75l2.29,-0.03l3.12,0.52l2.47,-0.81l3.41,-0.59l3.53,-2.21l1.25,0.29l1.53,1.13l2.27,-0.21l-2.66,5.01l0.64,1.68l0.47,0.21l1.32,-0.38l2.38,0.48l2.02,-1.11l1.76,0.89l2.06,2.02l-0.13,0.53l-1.72,-0.29l-3.77,0.46l-1.88,0.99l-1.76,1.99l-3.71,1.17l-2.45,1.6l-3.83,-0.87l-0.41,0.17l-1.31,1.99l1.04,2.24l-1.52,0.9l-1.74,1.57l-2.79,1.02l-3.78,0.13l-4.05,1.05l-2.77,1.52l-1.16,-0.85l-2.94,0.0l-3.62,-1.79l-2.58,-0.49l-3.4,0.41l-5.12,-0.67l-2.63,0.06l-1.31,-1.6l-1.4,-3.0l-1.48,-0.33l-3.13,-1.94l-6.16,-0.93l-0.71,-1.06l0.86,-3.82l-1.93,-2.71l-3.5,-1.18l-1.95,-1.58l-0.5,-1.72l2.34,-0.52l4.75,-2.8l3.62,-1.47l2.18,0.97l2.46,0.05l1.81,1.53l2.46,0.12l3.95,0.71l2.43,-2.28l0.08,-0.48l-0.9,-1.72l2.24,-2.98l2.62,1.27l4.94,1.17l0.43,2.24Z","name":"Mongolia"},"MK":{"path":"M472.8,173.98l0.49,-0.71l3.57,-0.71l1.0,0.77l0.13,1.45l-0.65,0.53l-1.15,-0.05l-1.12,0.67l-1.39,0.22l-0.79,-0.55l-0.29,-1.03l0.19,-0.6Z","name":"Macedonia"},"MW":{"path":"M505.5,309.31l0.85,1.95l0.15,2.86l-0.69,1.65l0.71,1.8l0.06,1.28l0.49,0.64l0.07,1.06l0.4,0.55l0.8,-0.23l0.55,0.61l0.69,-0.21l0.34,0.6l0.19,2.94l-1.04,0.62l-0.54,1.25l-1.11,-1.08l-0.16,-1.56l0.51,-1.31l-0.32,-1.3l-0.99,-0.65l-0.82,0.12l-2.36,-1.64l0.63,-1.96l0.82,-1.18l-0.46,-2.01l0.9,-2.86l-0.94,-2.51l0.96,0.18l0.29,0.4Z","name":"Malawi"},"MR":{"path":"M407.36,220.66l-2.58,0.03l-0.39,0.44l2.42,22.56l0.36,0.43l-0.39,1.24l-9.75,0.04l-0.56,0.53l-0.91,-0.11l-1.27,0.45l-1.61,-0.66l-0.97,0.03l-0.36,0.29l-0.38,1.35l-0.42,0.23l-2.93,-3.4l-2.96,-1.52l-1.62,-0.03l-1.27,0.54l-1.12,-0.2l-0.65,0.4l-0.08,-0.49l0.68,-1.29l0.31,-2.43l-0.57,-3.91l0.23,-1.21l-0.69,-1.5l-1.15,-1.02l0.25,-0.39l9.58,0.02l0.4,-0.45l-0.46,-3.68l0.47,-1.04l2.12,-0.21l0.36,-0.4l-0.08,-6.4l7.81,0.13l0.41,-0.4l0.01,-3.31l7.76,5.35Z","name":"Mauritania"},"UG":{"path":"M498.55,276.32l0.7,-0.46l1.65,0.5l1.96,-0.57l1.7,0.01l1.45,-0.98l0.91,1.33l1.33,3.95l-2.57,4.03l-1.46,-0.4l-2.54,0.91l-1.37,1.61l-0.01,0.81l-2.42,-0.01l-2.26,1.01l-0.17,-1.59l0.58,-1.04l0.14,-1.94l1.37,-2.28l1.78,-1.58l-0.17,-0.65l-0.72,-0.24l0.13,-2.43Z","name":"Uganda"},"MY":{"path":"M717.47,273.46l-1.39,0.65l-2.12,-0.41l-2.88,-0.0l-0.38,0.28l-0.84,2.75l-0.99,0.96l-1.21,3.29l-1.73,0.45l-2.45,-0.68l-1.39,0.31l-1.33,1.15l-1.59,-0.14l-1.41,0.44l-1.44,-1.19l-0.18,-0.73l1.34,0.53l1.93,-0.47l0.75,-2.22l4.02,-1.03l2.75,-3.21l0.82,0.94l0.64,-0.05l0.4,-0.65l0.96,0.06l0.42,-0.36l0.24,-2.68l1.81,-1.64l1.21,-1.86l0.63,-0.01l1.07,1.05l0.34,1.28l3.44,1.35l-0.06,0.35l-1.37,0.1l-0.35,0.54l0.32,0.88ZM673.68,269.59l0.17,1.09l0.47,0.33l1.65,-0.3l0.87,-0.94l1.61,1.52l0.98,1.56l-0.12,2.81l0.41,2.29l0.95,0.9l0.88,2.44l-1.27,0.12l-5.1,-3.67l-0.34,-1.29l-1.37,-1.59l-0.33,-1.97l-0.88,-1.4l0.25,-1.68l-0.46,-1.05l1.63,0.84Z","name":"Malaysia"},"MX":{"path":"M133.12,200.41l0.2,0.47l9.63,3.33l6.96,-0.02l0.4,-0.4l0.0,-0.74l3.77,0.0l3.55,2.93l1.39,2.83l1.52,1.04l2.08,0.82l0.47,-0.14l1.46,-2.0l1.73,-0.04l1.59,0.98l2.05,3.35l1.47,1.56l1.26,3.14l2.18,1.02l2.26,0.58l-1.18,3.72l-0.42,5.04l1.79,4.89l1.62,1.89l0.61,1.52l1.2,1.42l2.55,0.66l1.37,1.1l7.54,-1.89l1.86,-1.3l1.14,-4.3l4.1,-1.21l3.57,-0.11l0.32,0.3l-0.06,0.94l-1.26,1.45l-0.67,1.71l0.38,0.7l-0.72,2.27l-0.49,-0.3l-1.0,0.08l-1.0,1.39l-0.47,-0.11l-0.53,0.47l-4.26,-0.02l-0.4,0.4l-0.0,1.06l-1.1,0.26l0.1,0.44l1.82,1.44l0.56,0.91l-3.19,0.21l-1.21,2.09l0.24,0.72l-0.2,0.44l-2.24,-2.18l-1.45,-0.93l-2.22,-0.69l-1.52,0.22l-3.07,1.16l-10.55,-3.85l-2.86,-1.96l-3.78,-0.92l-1.08,-1.19l-2.62,-1.43l-1.18,-1.54l-0.38,-0.81l0.66,-0.63l-0.18,-0.53l0.52,-0.76l0.01,-0.91l-2.0,-3.82l-2.21,-2.63l-2.53,-2.09l-1.19,-1.62l-2.2,-1.17l-0.3,-0.43l0.34,-1.48l-0.21,-0.45l-1.23,-0.6l-1.36,-1.2l-0.59,-1.78l-1.54,-0.47l-2.44,-2.55l-0.16,-0.9l-1.33,-2.03l-0.84,-1.99l-0.16,-1.33l-1.81,-1.1l-0.97,0.05l-1.31,-0.7l-0.57,0.22l-0.4,1.12l0.72,3.77l3.51,3.89l0.28,0.78l0.53,0.26l0.41,1.43l1.33,1.73l1.58,1.41l0.8,2.39l1.43,2.41l0.13,1.32l0.37,0.36l1.04,0.08l1.67,2.28l-0.85,0.76l-0.66,-1.51l-1.68,-1.54l-2.91,-1.87l0.06,-1.82l-0.54,-1.68l-2.91,-2.03l-0.55,0.09l-1.95,-1.1l-0.88,-0.94l0.68,-0.08l0.93,-1.01l0.08,-1.78l-1.93,-1.94l-1.46,-0.77l-3.75,-7.56l4.88,-0.42Z","name":"Mexico"},"IL":{"path":"M507.76,203.05l0.4,-0.78l0.18,0.4l-0.33,1.03l0.52,0.44l0.68,-0.22l-0.86,3.6l-1.16,-3.32l0.59,-0.74l-0.03,-0.41ZM508.73,200.34l0.37,-1.02l0.64,0.0l0.52,-0.51l-0.49,1.53l-0.56,-0.24l-0.48,0.23Z","name":"Israel"},"FR":{"path":"M444.48,172.62l-0.64,1.78l-0.58,-0.31l-0.49,-1.72l0.4,-0.89l1.0,-0.72l0.3,1.85ZM429.64,147.1l1.78,1.58l1.46,-0.13l2.1,1.42l1.35,0.27l1.23,0.83l3.04,0.5l-1.03,1.85l-0.3,2.12l-0.41,0.32l-0.95,-0.24l-0.5,0.43l0.06,0.61l-1.81,1.92l-0.04,1.42l0.55,0.38l0.88,-0.36l0.61,0.97l-0.03,1.0l0.57,0.91l-0.75,1.09l0.65,2.39l1.27,0.57l-0.18,0.82l-2.01,1.53l-4.77,-0.8l-3.82,1.0l-0.53,1.85l-2.49,0.34l-2.71,-1.31l-1.16,0.57l-4.31,-1.29l-0.72,-0.86l1.19,-1.78l0.39,-6.45l-2.58,-3.3l-1.9,-1.66l-3.72,-1.23l-0.19,-1.72l2.81,-0.61l4.12,0.81l0.47,-0.48l-0.6,-2.77l1.94,0.95l5.83,-2.54l0.92,-2.74l1.6,-0.49l0.24,0.78l1.36,0.33l1.05,1.19ZM289.01,278.39l-0.81,0.8l-0.78,0.12l-0.5,-0.66l-0.56,-0.1l-0.91,0.6l-0.46,-0.22l1.09,-2.96l-0.96,-1.77l-0.17,-1.49l1.07,-1.77l2.32,0.75l2.51,2.01l0.3,0.74l-2.14,3.96Z","name":"France"},"XS":{"path":"M531.15,258.94l1.51,0.12l5.13,-0.95l5.3,-1.48l-0.01,4.4l-2.67,3.39l-1.85,0.01l-8.04,-2.94l-2.55,-3.17l1.12,-1.71l2.04,2.34Z","name":"Somaliland"},"FI":{"path":"M492.17,76.39l-0.23,3.5l3.52,2.63l-2.08,2.88l-0.02,0.44l2.8,4.56l-1.59,3.31l2.16,3.24l-0.94,2.39l0.14,0.47l3.44,2.51l-0.77,1.62l-7.52,6.95l-4.5,0.31l-4.38,1.37l-3.8,0.74l-1.44,-1.96l-2.17,-1.11l0.5,-3.66l-1.16,-3.33l1.09,-2.08l2.21,-2.42l5.67,-4.32l1.64,-0.83l0.21,-0.42l-0.46,-2.02l-3.38,-1.89l-0.75,-1.43l-0.22,-6.74l-6.79,-4.8l0.8,-0.62l2.54,2.12l3.46,-0.12l3.0,0.96l2.51,-2.11l1.17,-3.08l3.55,-1.38l2.76,1.53l-0.95,2.79Z","name":"Finland"},"FJ":{"path":"M869.95,326.98l-1.21,0.41l-0.08,-0.23l2.97,-1.21l-0.14,0.42l-1.54,0.61ZM867.58,329.25l0.43,0.37l-0.27,0.88l-1.24,0.28l-1.04,-0.24l-0.14,-0.66l0.63,-0.58l0.92,0.26l0.7,-0.31Z","name":"Fiji"},"FK":{"path":"M274.36,425.85l1.44,1.08l-0.47,0.73l-3.0,0.89l-0.96,-1.0l-0.52,-0.05l-1.83,1.29l-0.73,-0.88l2.46,-1.64l1.93,0.76l1.67,-1.19Z","name":"Falkland Is."},"NI":{"path":"M202.33,252.67l0.81,-0.18l1.03,-1.02l-0.04,-0.88l0.68,-0.0l0.63,-0.54l0.97,0.22l1.53,-1.26l0.58,-0.99l1.17,0.34l2.41,-0.94l0.13,1.32l-0.81,1.94l0.1,2.74l-0.36,0.37l-0.11,1.75l-0.47,0.81l0.18,1.14l-1.73,-0.85l-0.71,0.27l-1.47,-0.6l-0.52,0.16l-4.01,-3.81Z","name":"Nicaragua"},"NL":{"path":"M430.31,143.39l0.6,-0.5l2.13,-4.8l3.2,-1.33l1.74,0.08l0.33,0.8l-0.59,2.92l-0.5,0.99l-1.26,0.0l-0.4,0.45l0.33,2.7l-2.2,-1.78l-2.62,0.58l-0.75,-0.11Z","name":"Netherlands"},"NO":{"path":"M491.44,67.41l6.8,2.89l-2.29,0.86l-0.15,0.65l2.33,2.38l-4.98,1.79l0.84,-2.45l-0.18,-0.48l-3.55,-1.8l-3.89,1.52l-1.42,3.38l-2.12,1.72l-2.64,-1.0l-3.11,0.21l-2.66,-2.22l-0.5,-0.01l-1.41,1.1l-1.44,0.17l-0.35,0.35l-0.32,2.47l-4.32,-0.64l-0.44,0.29l-0.58,2.11l-2.45,0.2l-4.15,7.68l-3.88,5.76l0.78,1.62l-0.64,1.16l-2.24,-0.06l-0.38,0.24l-1.66,3.89l0.15,5.17l1.57,2.04l-0.78,4.16l-2.02,2.48l-0.85,1.63l-1.3,-1.75l-0.58,-0.07l-4.87,4.19l-3.1,0.79l-3.16,-1.7l-0.85,-3.77l-0.77,-8.55l2.14,-2.31l6.55,-3.27l5.02,-4.17l10.63,-13.84l10.98,-8.7l5.35,-1.91l4.34,0.12l3.69,-3.64l4.49,0.19l4.37,-0.89ZM484.55,20.04l4.26,1.75l-3.1,2.55l-7.1,0.65l-7.08,-0.9l-0.37,-1.31l-0.37,-0.29l-3.44,-0.1l-2.08,-2.0l6.87,-1.44l3.9,1.31l2.39,-1.64l6.13,1.4ZM481.69,33.93l-4.45,1.74l-3.54,-0.99l1.12,-0.9l0.05,-0.58l-1.06,-1.22l4.22,-0.89l1.09,1.97l2.57,0.87ZM466.44,24.04l7.43,3.77l-5.41,1.86l-1.58,4.08l-2.26,1.2l-1.12,4.11l-2.61,0.18l-4.79,-2.86l1.84,-1.54l-0.1,-0.68l-3.69,-1.53l-4.77,-4.51l-1.73,-3.89l6.11,-1.82l1.54,1.92l3.57,-0.08l1.2,-1.96l3.32,-0.18l3.05,1.92Z","name":"Norway"},"NA":{"path":"M474.26,330.66l-0.97,0.04l-0.38,0.4l-0.07,8.9l-2.09,0.08l-0.39,0.4l-0.0,17.42l-1.98,1.23l-1.17,0.17l-2.44,-0.66l-0.48,-1.13l-0.99,-0.74l-0.54,0.05l-0.9,1.01l-1.53,-1.68l-0.93,-1.88l-1.99,-8.56l-0.06,-3.12l-0.33,-1.52l-2.3,-3.34l-1.91,-4.83l-1.96,-2.43l-0.12,-1.57l2.33,-0.79l1.43,0.07l1.81,1.13l10.23,-0.25l1.84,1.23l5.87,0.35ZM474.66,330.64l6.51,-1.6l1.9,0.39l-1.69,0.4l-1.31,0.83l-1.12,-0.94l-4.29,0.92Z","name":"Namibia"},"VU":{"path":"M839.04,322.8l0.22,1.14l-0.44,0.03l-0.2,-1.45l0.42,0.27Z","name":"Vanuatu"},"NC":{"path":"M838.78,341.24l-0.33,0.22l-2.9,-1.75l-3.26,-3.37l1.65,0.83l4.85,4.07Z","name":"New Caledonia"},"NE":{"path":"M454.75,226.53l1.33,1.37l0.48,0.07l1.27,-0.7l0.53,3.52l0.94,0.83l0.17,0.92l0.81,0.69l-0.44,0.95l-0.96,5.26l-0.13,3.22l-3.04,2.31l-1.22,3.57l1.02,1.24l-0.0,1.46l0.39,0.4l1.13,0.04l-0.9,1.25l-1.47,-2.42l-0.86,-0.29l-2.09,1.37l-1.74,-0.67l-1.45,-0.17l-0.85,0.35l-1.36,-0.07l-1.64,1.09l-1.06,0.05l-2.94,-1.28l-1.44,0.59l-1.01,-0.03l-0.97,-0.94l-2.7,-0.98l-2.69,0.3l-0.87,0.64l-0.47,1.6l-0.75,1.16l-0.12,1.53l-1.57,-1.1l-1.31,0.24l0.03,-0.81l-0.32,-0.41l-2.59,-0.52l-0.15,-1.16l-1.35,-1.6l-0.29,-1.0l0.13,-0.84l1.29,-0.08l1.08,-0.92l3.31,-0.22l2.22,-0.41l0.32,-0.34l0.2,-1.47l1.39,-1.88l-0.01,-5.66l3.36,-1.12l7.24,-5.12l8.42,-4.92l3.69,1.06Z","name":"Niger"},"NG":{"path":"M456.32,253.89l0.64,0.65l-0.28,1.04l-2.11,2.01l-2.03,5.18l-1.37,1.16l-1.15,3.18l-1.33,0.66l-1.46,-0.97l-1.21,0.16l-1.38,1.36l-0.91,0.24l-1.79,4.06l-2.33,0.81l-1.11,-0.07l-0.86,0.5l-1.71,-0.05l-1.19,-1.39l-0.89,-1.89l-1.77,-1.66l-3.95,-0.08l0.07,-5.21l0.42,-1.43l1.95,-2.3l-0.14,-0.91l0.43,-1.18l-0.53,-1.41l0.25,-2.92l0.72,-1.07l0.32,-1.34l0.46,-0.39l2.47,-0.28l2.34,0.89l1.15,1.02l1.28,0.04l1.22,-0.58l3.03,1.27l1.49,-0.14l1.36,-1.0l1.33,0.07l0.82,-0.35l3.45,0.8l1.82,-1.32l1.84,2.67l0.66,0.16Z","name":"Nigeria"},"NZ":{"path":"M857.8,379.65l1.86,3.12l0.44,0.18l0.3,-0.38l0.03,-1.23l0.38,0.27l0.57,2.31l2.02,0.94l1.81,0.27l1.57,-1.06l0.7,0.18l-1.15,3.59l-1.98,0.11l-0.74,1.2l0.2,1.11l-2.42,3.98l-1.49,0.92l-1.04,-0.85l1.21,-2.05l-0.81,-2.01l-2.63,-1.25l0.04,-0.57l1.82,-1.19l0.43,-2.34l-0.16,-2.03l-0.95,-1.82l-0.06,-0.72l-3.11,-3.64l-0.79,-1.52l1.56,1.45l1.76,0.66l0.65,2.34ZM853.83,393.59l0.57,1.24l0.59,0.16l1.42,-0.97l0.46,0.79l0.0,1.03l-2.47,3.48l-1.26,1.2l-0.06,0.5l0.55,0.87l-1.41,0.07l-2.33,1.38l-2.03,5.02l-3.02,2.16l-2.06,-0.06l-1.71,-1.04l-2.47,-0.2l-0.27,-0.73l1.22,-2.1l3.05,-2.94l1.62,-0.59l4.02,-2.82l1.57,-1.67l1.07,-2.16l0.88,-0.7l0.48,-1.75l1.24,-0.97l0.35,0.79Z","name":"New Zealand"},"NP":{"path":"M641.14,213.62l0.01,3.19l-1.74,0.04l-4.8,-0.86l-1.58,-1.39l-3.37,-0.34l-7.65,-3.7l0.8,-2.09l2.33,-1.7l1.77,0.75l2.49,1.76l1.38,0.41l0.99,1.35l1.9,0.52l1.99,1.17l5.49,0.9Z","name":"Nepal"},"XK":{"path":"M472.77,172.64l-1.08,-1.29l0.96,-0.77l0.29,-0.83l1.98,1.64l-0.36,0.67l-1.79,0.58Z","name":"Kosovo"},"CI":{"path":"M407.4,259.27l0.86,0.42l0.56,0.9l1.13,0.53l1.19,-0.61l0.97,-0.08l1.42,0.54l0.6,3.24l-1.03,2.08l-0.65,2.84l1.06,2.33l-0.06,0.53l-2.54,-0.47l-1.66,0.03l-3.06,0.46l-4.11,1.6l0.32,-3.06l-1.18,-1.31l-1.32,-0.66l0.42,-0.85l-0.2,-1.4l0.5,-0.67l0.01,-1.59l0.84,-0.32l0.26,-0.5l-1.15,-3.01l0.12,-0.5l0.51,-0.25l0.66,0.31l1.93,0.02l0.67,-0.71l0.71,-0.14l0.25,0.69l0.57,0.22l1.4,-0.61Z","name":"Côte d'Ivoire"},"CH":{"path":"M444.62,156.35l-0.29,0.87l0.18,0.53l1.13,0.58l1.0,0.1l-0.1,0.65l-0.79,0.38l-1.72,-0.37l-0.45,0.23l-0.45,1.04l-0.75,0.06l-0.84,-0.4l-1.32,1.0l-0.96,0.12l-0.88,-0.55l-0.81,-1.3l-0.49,-0.16l-0.63,0.26l0.02,-0.65l1.71,-1.66l0.1,-0.56l0.93,0.08l0.58,-0.46l1.99,0.02l0.66,-0.61l2.19,0.79Z","name":"Switzerland"},"CO":{"path":"M242.07,254.93l-1.7,0.59l-0.59,1.18l-1.7,1.69l-0.38,1.93l-0.67,1.43l0.31,0.57l1.03,0.13l0.25,0.9l0.57,0.64l-0.04,2.34l1.64,1.42l3.16,-0.24l1.26,0.28l1.67,2.06l0.41,0.13l4.09,-0.39l0.45,0.22l-0.92,1.95l-0.2,1.8l0.52,1.83l0.75,1.05l-1.12,1.1l0.07,0.63l0.84,0.51l0.74,1.29l-0.39,-0.45l-0.59,-0.01l-0.71,0.74l-4.71,-0.05l-0.4,0.41l0.03,1.57l0.33,0.39l1.11,0.2l-1.68,0.4l-0.29,0.38l-0.01,1.82l1.16,1.14l0.34,1.25l-1.05,7.05l-1.04,-0.87l1.26,-1.99l-0.13,-0.56l-2.18,-1.23l-1.38,0.2l-1.14,-0.38l-1.27,0.61l-1.55,-0.26l-1.38,-2.46l-1.23,-0.75l-0.85,-1.2l-1.67,-1.19l-0.86,0.13l-2.11,-1.32l-1.01,0.31l-1.8,-0.29l-0.52,-0.91l-3.09,-1.68l0.77,-0.52l-0.1,-1.12l0.41,-0.64l1.34,-0.32l2.0,-2.88l-0.11,-0.57l-0.66,-0.43l0.39,-1.38l-0.52,-2.1l0.49,-0.83l-0.4,-2.13l-0.97,-1.35l0.17,-0.66l0.86,-0.08l0.47,-0.75l-0.46,-1.63l1.41,-0.07l1.8,-1.69l0.93,-0.24l0.3,-0.38l0.45,-2.76l1.22,-1.0l1.44,-0.04l0.45,-0.5l1.91,0.12l2.93,-1.84l1.15,-1.14l0.91,0.46l-0.25,0.45Z","name":"Colombia"},"CN":{"path":"M740.23,148.97l4.57,1.3l2.8,2.17l0.98,2.9l0.38,0.27l3.8,0.0l2.32,-1.28l3.29,-0.75l-0.96,2.09l-1.02,1.28l-0.85,3.4l-1.52,2.73l-2.76,-0.5l-2.4,1.13l-0.21,0.45l0.64,2.57l-0.32,3.2l-0.94,0.06l-0.37,0.89l-0.91,-1.01l-0.64,0.07l-0.92,1.57l-3.73,1.25l-0.26,0.48l0.26,1.06l-1.5,-0.08l-1.09,-0.86l-0.56,0.06l-1.67,2.06l-2.7,1.56l-2.03,1.88l-3.4,0.83l-1.93,1.4l-1.15,0.34l0.33,-0.7l-0.41,-0.89l1.79,-1.79l0.02,-0.54l-1.32,-1.56l-0.48,-0.1l-2.24,1.09l-2.83,2.06l-1.51,1.83l-2.28,0.13l-1.55,1.49l-0.04,0.5l1.32,1.97l2.0,0.58l0.31,1.35l1.98,0.84l3.0,-1.96l2.0,1.02l1.49,0.11l0.22,0.83l-3.37,0.86l-1.12,1.48l-2.5,1.52l-1.29,1.99l0.14,0.56l2.57,1.48l0.97,2.7l3.17,4.63l-0.03,1.66l-1.35,0.65l-0.2,0.51l0.6,1.47l1.4,0.91l-0.89,3.82l-1.43,0.38l-3.85,6.44l-2.27,3.11l-6.78,4.57l-2.73,0.29l-1.45,1.04l-0.62,-0.61l-0.55,-0.01l-1.36,1.25l-3.39,1.27l-2.61,0.4l-1.1,2.79l-0.81,0.09l-0.49,-1.42l0.5,-0.85l-0.25,-0.59l-3.36,-0.84l-1.3,0.4l-2.31,-0.62l-0.94,-0.84l0.33,-1.28l-0.3,-0.49l-2.19,-0.46l-1.13,-0.93l-0.47,-0.02l-2.06,1.36l-4.29,0.28l-2.76,1.05l-0.28,0.43l0.32,2.53l-0.59,-0.03l-0.19,-1.34l-0.55,-0.34l-1.68,0.7l-2.46,-1.23l0.62,-1.87l-0.26,-0.51l-1.37,-0.44l-0.54,-2.22l-0.45,-0.3l-2.13,0.35l0.24,-2.48l2.39,-2.4l0.03,-4.31l-1.19,-0.92l-0.78,-1.49l-0.41,-0.21l-1.41,0.19l-1.98,-0.3l0.46,-1.07l-1.17,-1.7l-0.55,-0.11l-1.63,1.05l-2.25,-0.57l-2.89,1.73l-2.25,1.98l-1.75,0.29l-1.17,-0.71l-3.31,-0.65l-1.48,0.79l-1.04,1.27l-0.12,-1.17l-0.54,-0.34l-1.44,0.54l-5.55,-0.86l-1.98,-1.16l-1.89,-0.54l-0.99,-1.35l-1.34,-0.37l-2.55,-1.79l-2.01,-0.84l-1.21,0.56l-5.57,-3.45l-0.53,-2.31l1.19,0.25l0.48,-0.37l0.08,-1.42l-0.98,-1.56l0.15,-2.44l-2.69,-3.32l-4.12,-1.23l-0.67,-2.0l-1.92,-1.48l-0.38,-0.7l-0.51,-3.01l-1.52,-0.66l-0.7,0.13l-0.48,-2.05l0.55,-0.51l-0.09,-0.82l2.03,-1.19l1.6,-0.54l2.56,0.38l0.42,-0.22l0.85,-1.7l3.0,-0.33l1.1,-1.26l4.05,-1.77l0.39,-0.91l-0.17,-1.44l1.45,-0.67l0.2,-0.52l-2.07,-4.9l4.51,-1.12l1.37,-0.73l1.89,-5.51l4.98,0.86l1.51,-1.7l0.11,-2.87l1.99,-0.38l1.83,-2.06l0.49,-0.13l0.68,2.08l2.23,1.77l3.44,1.16l1.55,2.29l-0.92,3.49l0.96,1.67l6.54,1.13l2.95,1.87l1.47,0.35l1.06,2.62l1.53,1.91l3.05,0.08l5.14,0.67l3.37,-0.41l2.36,0.43l3.65,1.8l3.06,0.04l1.45,0.88l2.87,-1.59l3.95,-1.02l3.83,-0.14l3.06,-1.14l1.77,-1.6l1.72,-1.01l0.17,-0.49l-1.1,-2.05l1.02,-1.54l4.02,0.8l2.45,-1.61l3.76,-1.19l1.96,-2.13l1.63,-0.83l3.51,-0.4l1.92,0.34l0.46,-0.3l0.17,-1.5l-2.27,-2.22l-2.11,-1.09l-2.18,1.11l-2.32,-0.47l-1.29,0.32l-0.4,-0.82l2.73,-5.16l3.02,1.06l3.53,-2.06l0.18,-1.68l2.16,-3.35l1.49,-1.35l-0.03,-1.85l-1.07,-0.85l1.54,-1.26l2.98,-0.59l3.23,-0.09l3.64,0.99l2.04,1.16l3.29,6.71l0.92,3.19ZM696.92,237.31l-1.87,1.08l-1.63,-0.64l-0.06,-1.79l1.03,-0.98l2.58,-0.69l1.16,0.05l0.3,0.54l-0.98,1.06l-0.53,1.37Z","name":"China"},"CM":{"path":"M457.92,257.49l1.05,1.91l-1.4,0.16l-1.05,-0.23l-0.45,0.22l-0.54,1.19l0.08,0.45l1.48,1.47l1.05,0.45l1.01,2.46l-1.52,2.99l-0.68,0.68l-0.13,3.69l2.38,3.84l1.09,0.8l0.24,2.48l-3.67,-1.14l-11.27,-0.13l0.23,-1.79l-0.98,-1.66l-1.19,-0.54l-0.44,-0.97l-0.6,-0.42l1.71,-4.27l0.75,-0.13l1.38,-1.36l0.65,-0.03l1.71,0.99l1.93,-1.12l1.14,-3.18l1.38,-1.17l2.0,-5.14l2.17,-2.13l0.3,-1.64l-0.86,-0.88l0.03,-0.33l0.94,1.28l0.07,3.22Z","name":"Cameroon"},"CL":{"path":"M246.5,429.18l-3.14,1.83l-0.57,3.16l-0.64,0.05l-2.68,-1.06l-2.82,-2.33l-3.04,-1.89l-0.69,-1.85l0.63,-2.14l-1.21,-2.11l-0.31,-5.37l1.01,-2.91l2.57,-2.38l-0.18,-0.68l-3.16,-0.77l2.05,-2.47l0.77,-4.65l2.32,0.9l0.54,-0.29l1.31,-6.31l-0.22,-0.44l-1.68,-0.8l-0.56,0.28l-0.7,3.36l-0.81,-0.22l1.56,-9.41l1.15,-2.24l-0.71,-2.82l-0.18,-2.84l1.01,-0.33l3.26,-9.14l1.07,-4.22l-0.56,-4.21l0.74,-2.34l-0.29,-3.27l1.46,-3.34l2.04,-16.59l-0.66,-7.76l1.03,-0.53l0.54,-0.9l0.79,1.14l0.32,1.78l1.25,1.16l-0.69,2.55l1.33,2.9l0.97,3.59l0.46,0.29l1.5,-0.3l0.11,0.23l-0.76,2.44l-2.57,1.23l-0.23,0.37l0.08,4.33l-0.46,0.77l0.56,1.21l-1.58,1.51l-1.68,2.62l-0.89,2.47l0.2,2.7l-1.48,2.73l1.12,5.09l0.64,0.61l-0.01,2.29l-1.38,2.68l0.01,2.4l-1.89,2.04l0.02,2.75l0.69,2.57l-1.43,1.13l-1.26,5.68l0.39,3.51l-0.97,0.89l0.58,3.5l1.02,1.14l-0.65,1.02l0.15,0.57l1.0,0.53l0.16,0.69l-1.03,0.85l0.26,1.75l-0.89,4.03l-1.31,2.66l0.24,1.75l-0.71,1.83l-1.99,1.7l0.3,3.67l0.88,1.19l1.58,0.01l0.01,2.21l1.04,1.95l5.98,0.63ZM248.69,430.79l0.0,7.33l0.4,0.4l3.52,0.05l-0.44,0.75l-1.94,0.98l-2.49,-0.37l-1.88,-1.06l-2.55,-0.49l-5.59,-3.71l-2.38,-2.63l4.1,2.48l3.32,1.23l0.45,-0.12l1.29,-1.57l0.83,-2.32l2.05,-1.24l1.31,0.29Z","name":"Chile"},"XC":{"path":"M504.91,192.87l0.34,0.01l0.27,-0.07l-0.29,0.26l-0.31,-0.2Z","name":"N. Cyprus"},"CA":{"path":"M280.06,145.6l-1.67,2.88l0.07,0.49l0.5,0.04l1.46,-0.98l1.0,0.42l-0.56,0.72l0.17,0.62l2.22,0.89l1.35,-0.71l1.95,0.78l-0.66,2.01l0.5,0.51l1.32,-0.42l0.98,3.17l-0.91,2.41l-0.8,0.08l-1.23,-0.45l0.47,-2.25l-0.89,-0.83l-0.48,0.06l-2.78,2.63l-0.34,-0.02l1.02,-0.85l-0.14,-0.69l-2.4,-0.77l-7.4,0.08l-0.17,-0.41l1.3,-0.94l0.02,-0.64l-0.73,-0.58l1.85,-1.74l2.57,-5.16l1.47,-1.79l1.99,-1.05l0.46,0.06l-1.53,2.45ZM68.32,74.16l4.13,0.95l4.02,2.14l2.61,0.4l2.47,-1.89l2.88,-1.31l3.85,0.48l3.71,-1.94l3.82,-1.04l1.56,1.68l0.49,0.08l1.87,-1.04l0.65,-1.98l1.24,0.35l4.16,3.94l0.54,0.01l2.75,-2.49l0.26,2.59l0.49,0.35l3.08,-0.73l1.04,-1.27l2.73,0.23l3.83,1.86l5.86,1.61l3.47,0.75l2.44,-0.26l2.73,1.78l-2.98,1.81l-0.19,0.41l0.31,0.32l4.53,0.92l6.87,-0.5l2.0,-0.69l2.49,2.39l0.53,0.02l2.72,-2.16l-0.02,-0.64l-2.16,-1.54l1.15,-1.06l4.83,-0.61l1.84,0.95l2.48,2.31l3.01,-0.23l4.55,1.92l3.85,-0.67l3.61,0.1l0.41,-0.44l-0.25,-2.36l1.79,-0.61l3.49,1.32l-0.01,3.77l0.31,0.39l0.45,-0.22l1.48,-3.16l1.74,0.1l0.41,-0.3l1.13,-4.37l-2.78,-3.11l-2.8,-1.74l0.19,-4.64l2.71,-3.07l2.98,0.67l2.41,1.95l3.19,4.8l-1.99,1.97l0.21,0.68l4.33,0.84l-0.01,4.15l0.25,0.37l0.44,-0.09l3.07,-3.15l2.54,2.39l-0.61,3.33l2.42,2.88l0.61,0.0l2.61,-3.08l1.88,-3.82l0.17,-4.58l6.72,0.94l3.13,2.04l0.13,1.82l-1.76,2.19l-0.01,0.49l1.66,2.16l-0.26,1.71l-4.68,2.8l-3.28,0.61l-2.47,-1.2l-0.55,0.23l-0.73,2.04l-2.38,3.43l-0.74,1.77l-2.74,2.57l-3.44,0.25l-2.21,1.78l-0.28,2.53l-2.82,0.55l-3.12,3.22l-2.72,4.31l-1.03,3.17l-0.14,4.31l0.33,0.41l3.44,0.57l2.24,5.95l0.45,0.23l3.4,-0.69l4.52,1.51l2.43,1.31l1.91,1.73l3.1,0.96l2.62,1.46l6.6,0.54l-0.35,2.74l0.81,3.53l1.81,3.78l3.83,3.3l0.45,0.04l2.1,-1.28l1.37,-3.69l-1.31,-5.38l-1.45,-1.58l3.57,-1.47l2.84,-2.46l1.52,-2.8l-0.25,-2.55l-1.7,-3.07l-2.85,-2.61l2.8,-3.95l-1.08,-3.37l-0.79,-5.67l1.36,-0.7l6.76,1.41l2.12,-0.96l5.12,3.36l1.05,1.61l4.08,0.26l-0.06,2.87l0.83,4.7l0.3,0.32l2.16,0.54l1.73,2.06l0.5,0.09l3.63,-2.03l2.52,-4.19l1.26,-1.32l7.6,11.72l-0.92,2.04l0.16,0.51l3.3,1.97l2.22,1.98l4.1,0.98l1.43,0.99l0.95,2.79l2.1,0.68l0.84,1.08l0.17,3.45l-3.37,2.26l-4.22,1.24l-3.06,2.63l-4.06,0.51l-5.35,-0.69l-6.39,0.2l-2.3,2.41l-3.26,1.51l-6.47,7.15l-0.06,0.48l0.44,0.19l2.13,-0.52l4.17,-4.24l5.12,-2.62l3.52,-0.3l1.69,1.21l-2.12,2.21l0.81,3.47l1.02,2.61l3.47,1.6l4.14,-0.45l2.15,-2.8l0.26,1.48l1.14,0.8l-2.56,1.69l-5.5,1.82l-2.54,1.27l-2.74,2.15l-1.4,-0.16l-0.07,-2.01l4.14,-2.44l0.18,-0.45l-0.39,-0.29l-6.63,0.45l-1.39,-1.49l-0.14,-4.43l-1.11,-0.91l-1.82,0.39l-0.66,-0.66l-0.6,0.03l-1.91,2.39l-0.82,2.52l-0.8,1.27l-1.67,0.56l-0.46,0.76l-8.31,0.07l-1.21,0.62l-2.35,1.97l-0.71,-0.14l-1.37,0.96l-1.12,-0.48l-4.74,1.26l-0.9,1.17l0.21,0.62l1.73,0.3l-1.81,0.31l-1.85,0.81l-2.11,-0.13l-2.95,1.78l-0.69,-0.09l1.39,-2.1l1.73,-1.21l0.1,-2.29l1.16,-1.99l0.49,0.53l2.03,0.42l1.2,-1.16l0.02,-0.47l-2.66,-3.51l-2.28,-0.61l-5.64,-0.71l-0.4,-0.57l-0.79,0.13l0.2,-0.41l-0.22,-0.55l-0.68,-0.26l0.19,-1.26l-0.78,-0.73l0.31,-0.64l-0.29,-0.57l-2.6,-0.44l-0.75,-1.63l-0.94,-0.66l-4.31,-0.65l-1.13,1.19l-1.48,0.59l-0.85,1.06l-2.83,-0.76l-2.09,0.39l-2.39,-0.97l-4.24,-0.7l-0.57,-0.4l-0.41,-1.63l-0.4,-0.3l-0.85,0.02l-0.39,0.4l-0.01,0.85l-69.13,-0.01l-6.51,-4.52l-4.5,-1.38l-1.26,-2.66l0.33,-1.93l-0.23,-0.43l-3.01,-1.35l-0.55,-2.77l-2.89,-2.38l-0.04,-1.45l1.39,-1.83l-0.28,-2.55l-4.16,-2.2l-4.07,-6.6l-4.02,-3.22l-1.3,-1.88l-0.5,-0.13l-2.51,1.21l-2.23,1.87l-3.85,-3.88l-2.44,-1.04l-2.22,-0.13l0.03,-37.49ZM260.37,148.65l3.04,0.76l2.26,1.2l-3.78,-0.95l-1.53,-1.01ZM249.4,3.81l6.68,0.49l5.32,0.79l4.26,1.57l-0.07,1.1l-5.85,2.53l-6.02,1.21l-2.39,1.39l-0.18,0.45l0.39,0.29l4.01,-0.02l-4.65,2.82l-4.2,1.74l-4.19,4.59l-5.03,0.92l-1.67,1.15l-7.47,0.59l-0.37,0.37l0.32,0.42l2.41,0.49l-0.81,0.47l-0.12,0.59l1.83,2.41l-2.02,1.59l-3.81,1.51l-1.32,2.16l-3.38,1.53l-0.22,0.48l0.35,1.19l0.4,0.29l3.88,-0.18l0.03,0.61l-6.33,2.95l-6.41,-1.4l-7.43,0.79l-3.72,-0.62l-4.4,-0.25l-0.23,-1.83l4.29,-1.11l0.28,-0.51l-1.1,-3.45l1.0,-0.25l6.58,2.28l0.47,-0.16l-0.05,-0.49l-3.41,-3.45l-3.58,-0.98l1.48,-1.55l4.34,-1.29l0.97,-2.19l-0.16,-0.48l-3.42,-2.13l-0.81,-2.26l6.2,0.22l2.24,0.58l3.91,-2.1l0.2,-0.43l-0.35,-0.32l-5.64,-0.67l-8.73,0.36l-4.26,-1.9l-2.12,-2.4l-2.78,-1.66l-0.41,-1.52l3.31,-1.03l2.93,-0.2l4.91,-0.99l3.7,-2.27l2.87,0.3l2.62,1.67l0.56,-0.14l1.82,-3.2l3.13,-0.94l4.44,-0.69l7.53,-0.26l1.48,0.67l7.19,-1.06l10.8,0.79ZM203.85,57.54l0.01,0.42l1.97,2.97l0.68,-0.02l2.24,-3.72l5.95,-1.86l4.01,4.64l-0.35,2.91l0.5,0.43l4.95,-1.36l2.32,-1.8l5.31,2.28l3.27,2.11l0.3,1.84l0.48,0.33l4.42,-0.99l2.64,2.87l5.97,1.77l2.06,1.72l2.11,3.71l-4.19,1.86l-0.01,0.73l5.9,2.83l3.94,0.94l3.78,3.95l3.46,0.25l-0.63,2.37l-4.11,4.47l-2.76,-1.56l-3.9,-3.94l-3.59,0.41l-0.33,0.34l-0.19,2.72l2.63,2.38l3.42,1.89l0.94,0.97l1.55,3.75l-0.7,2.29l-2.74,-0.92l-6.25,-3.15l-0.51,0.13l0.05,0.52l6.07,5.69l0.18,0.59l-6.09,-1.39l-5.31,-2.24l-2.63,-1.66l0.6,-0.77l-0.12,-0.6l-7.39,-4.01l-0.59,0.37l0.03,0.79l-6.73,0.6l-1.69,-1.1l1.36,-2.46l4.51,-0.07l5.15,-0.52l0.31,-0.6l-0.74,-1.3l0.78,-1.84l3.21,-4.05l-0.67,-2.35l-1.11,-1.6l-3.84,-2.1l-4.35,-1.28l0.91,-0.63l0.06,-0.61l-2.65,-2.75l-2.34,-0.36l-1.89,-1.46l-0.53,0.03l-1.24,1.23l-4.36,0.55l-9.04,-0.99l-9.26,-1.98l-1.6,-1.22l2.22,-1.77l0.13,-0.44l-0.38,-0.27l-3.22,-0.02l-0.72,-4.25l1.83,-4.04l2.42,-1.85l5.5,-1.1l-1.39,2.35ZM261.19,159.33l2.07,0.61l1.44,-0.04l-1.15,0.63l-2.94,-1.23l-0.4,-0.68l0.36,-0.37l0.61,1.07ZM230.83,84.39l-2.37,0.18l-0.49,-1.63l0.93,-2.09l1.94,-0.51l1.62,0.99l0.02,1.52l-1.66,1.54ZM229.43,58.25l0.11,0.65l-4.87,-0.21l-2.72,0.62l-3.1,-2.57l0.08,-1.26l0.86,-0.23l5.57,0.51l4.08,2.5ZM222.0,105.02l-0.72,1.49l-0.63,-0.19l-0.48,-0.84l0.81,-0.99l0.65,0.05l0.37,0.46ZM183.74,38.32l2.9,1.7l4.79,-0.01l1.84,1.46l-0.49,1.68l0.23,0.48l2.82,1.14l1.76,1.26l7.01,0.65l4.1,-1.1l5.03,-0.43l3.93,0.35l2.48,1.77l0.46,1.7l-1.3,1.1l-3.56,1.01l-3.23,-0.59l-7.17,0.76l-5.09,0.09l-3.99,-0.6l-6.42,-1.54l-0.79,-2.51l-0.3,-2.49l-2.64,-2.5l-5.32,-0.72l-2.52,-1.4l0.68,-1.57l4.78,0.31ZM207.38,91.35l0.4,1.56l0.56,0.26l1.06,-0.52l1.32,0.96l5.42,2.57l0.2,1.68l0.46,0.35l1.68,-0.28l1.15,0.85l-1.55,0.87l-3.61,-0.88l-1.32,-1.69l-0.57,-0.06l-2.45,2.1l-3.12,1.79l-0.7,-1.87l-0.42,-0.26l-2.16,0.24l1.39,-1.39l0.32,-3.14l0.76,-3.35l1.18,0.22ZM215.49,102.6l-2.67,1.95l-1.4,-0.07l-0.3,-0.58l1.53,-1.48l2.84,0.18ZM202.7,24.12l2.53,1.59l-2.87,1.4l-4.53,4.05l-4.25,0.38l-5.03,-0.68l-2.45,-2.04l0.03,-1.62l1.82,-1.37l0.14,-0.45l-0.38,-0.27l-4.45,0.04l-2.59,-1.76l-1.41,-2.29l1.57,-2.32l1.62,-1.66l2.44,-0.39l0.25,-0.65l-0.6,-0.74l4.86,-0.25l3.24,3.11l8.16,2.3l1.9,3.61ZM187.47,59.2l-2.76,3.49l-2.38,-0.15l-1.44,-3.84l0.04,-2.2l1.19,-1.88l2.3,-1.23l5.07,0.17l4.11,1.02l-3.24,3.72l-2.88,0.89ZM186.07,48.79l-1.08,1.53l-3.34,-0.34l-2.56,-1.1l1.03,-1.75l3.25,-1.23l1.95,1.58l0.75,1.3ZM185.71,35.32l-5.3,-0.2l-0.32,-0.71l4.31,0.07l1.3,0.84ZM180.68,32.48l-3.34,1.0l-1.79,-1.1l-0.98,-1.87l-0.15,-1.73l4.1,0.53l2.67,1.7l-0.51,1.47ZM180.9,76.31l-1.1,1.08l-3.13,-1.23l-2.12,0.43l-2.71,-1.57l1.72,-1.09l1.55,-1.72l3.81,1.9l1.98,2.2ZM169.74,54.87l2.96,0.97l4.17,-0.57l0.41,0.88l-2.14,2.11l0.09,0.64l3.55,1.92l-0.4,3.72l-3.79,1.65l-2.17,-0.35l-1.72,-1.74l-6.02,-3.5l0.03,-0.85l4.68,0.54l0.4,-0.21l-0.05,-0.45l-2.48,-2.81l2.46,-1.95ZM174.45,40.74l1.37,1.73l0.07,2.44l-1.05,3.45l-3.79,0.47l-2.32,-0.69l0.05,-2.64l-0.44,-0.41l-3.68,0.35l-0.12,-3.1l2.45,0.1l3.67,-1.73l3.41,0.29l0.37,-0.26ZM170.05,31.55l0.67,1.56l-3.33,-0.49l-4.22,-1.77l-4.35,-0.16l1.4,-0.94l-0.06,-0.7l-2.81,-1.23l-0.12,-1.39l4.39,0.68l6.62,1.98l1.81,2.47ZM134.5,58.13l-1.02,1.82l0.45,0.58l5.4,-1.39l3.33,2.29l0.49,-0.03l2.6,-2.23l1.94,1.32l2.0,4.5l0.7,0.06l1.3,-2.29l-1.63,-4.46l1.69,-0.54l2.31,0.71l2.65,1.81l2.49,7.92l8.48,4.27l-0.19,1.35l-3.79,0.33l-0.26,0.67l1.4,1.49l-0.58,1.1l-4.23,-0.64l-4.43,-1.19l-3.0,0.28l-4.66,1.47l-10.52,1.04l-1.43,-2.02l-3.42,-1.2l-2.21,0.43l-2.51,-2.86l4.84,-1.05l3.6,0.19l3.27,-0.78l0.31,-0.39l-0.31,-0.39l-4.84,-1.06l-8.79,0.27l-0.85,-1.07l5.26,-1.66l0.27,-0.45l-0.4,-0.34l-3.8,0.06l-3.81,-1.06l1.81,-3.01l1.66,-1.79l6.48,-2.81l1.97,0.71ZM158.7,56.61l-1.7,2.44l-3.2,-2.75l0.37,-0.3l3.11,-0.18l1.42,0.79ZM149.61,42.73l1.01,1.89l0.5,0.18l2.14,-0.82l2.23,0.19l0.36,2.04l-1.33,2.09l-8.28,0.76l-6.35,2.15l-3.41,0.1l-0.19,-0.96l4.9,-2.08l0.23,-0.46l-0.41,-0.31l-11.25,0.59l-2.89,-0.74l3.04,-4.44l2.14,-1.32l6.81,1.69l4.58,3.06l4.37,0.39l0.36,-0.63l-3.36,-4.6l1.85,-1.53l2.18,0.51l0.77,2.26ZM144.76,34.41l-4.36,1.44l-3.0,-1.4l1.46,-1.24l3.47,-0.52l2.96,0.71l-0.52,1.01ZM145.13,29.83l-1.9,0.66l-3.67,-0.0l2.27,-1.61l3.3,0.95ZM118.92,65.79l-6.03,2.02l-1.33,-1.9l-5.38,-2.28l2.59,-5.05l2.16,-3.14l-0.02,-0.48l-1.97,-2.41l7.64,-0.7l3.6,1.02l6.3,0.27l4.42,2.95l-2.53,0.98l-6.24,3.43l-3.1,3.28l-0.11,2.01ZM129.54,35.53l-0.28,3.37l-1.72,1.62l-2.33,0.28l-4.61,2.19l-3.86,0.76l-2.64,-0.87l3.72,-3.4l5.01,-3.34l3.72,0.07l3.0,-0.67ZM111.09,152.69l-0.67,0.24l-3.85,-1.37l-0.83,-1.17l-2.12,-1.07l-0.66,-1.02l-2.4,-0.55l-0.74,-1.71l6.02,1.45l2.0,2.55l2.52,1.39l0.73,1.27ZM87.8,134.64l0.89,0.29l1.86,-0.21l-0.65,3.34l1.69,2.33l-1.31,-1.33l-0.99,-1.62l-1.17,-0.98l-0.33,-1.82Z","name":"Canada"},"CG":{"path":"M466.72,276.48l-0.1,1.03l-1.25,2.97l-0.19,3.62l-0.46,1.78l-0.23,0.63l-1.61,1.19l-1.21,1.39l-1.09,2.43l0.04,2.09l-3.25,3.24l-0.5,-0.24l-0.5,-0.83l-1.36,-0.02l-0.98,0.89l-1.68,-0.99l-1.54,1.24l-1.52,-1.96l1.57,-1.14l0.11,-0.52l-0.77,-1.35l2.1,-0.66l0.39,-0.73l1.05,0.82l2.21,0.11l1.12,-1.37l0.37,-1.81l-0.27,-2.09l-1.13,-1.5l1.0,-2.69l-0.13,-0.45l-0.92,-0.58l-1.6,0.17l-0.51,-0.94l0.1,-0.61l2.75,0.09l3.97,1.24l0.51,-0.33l0.17,-1.28l1.24,-2.21l1.28,-1.14l2.76,0.49Z","name":"Congo"},"CF":{"path":"M461.16,278.2l-0.26,-1.19l-1.09,-0.77l-0.84,-1.17l-0.29,-1.0l-1.04,-1.15l0.08,-3.43l0.58,-0.49l1.16,-2.35l1.85,-0.17l0.61,-0.62l0.97,0.58l3.15,-0.96l2.48,-1.92l0.02,-0.96l2.81,0.02l2.36,-1.17l1.93,-2.85l1.16,-0.93l1.11,-0.3l0.27,0.86l1.34,1.47l-0.39,2.01l0.3,1.01l4.01,2.75l0.17,0.93l2.63,2.31l0.6,1.44l2.08,1.4l-3.84,-0.21l-1.94,0.88l-1.23,-0.49l-2.67,1.2l-1.29,-0.18l-0.51,0.36l-0.6,1.22l-3.35,-0.65l-1.57,-0.91l-2.42,-0.83l-1.45,0.91l-0.97,1.27l-0.26,1.56l-3.22,-0.43l-1.49,1.33l-0.94,1.62Z","name":"Central African Rep."},"CD":{"path":"M487.01,272.38l2.34,-0.14l1.35,1.84l1.34,0.45l0.86,-0.39l1.21,0.12l1.07,-0.41l0.54,0.89l2.04,1.54l-0.14,2.72l0.7,0.54l-1.38,1.13l-1.53,2.54l-0.17,2.05l-0.59,1.08l-0.02,1.72l-0.72,0.84l-0.66,3.01l0.63,1.32l-0.44,4.26l0.64,1.47l-0.37,1.22l0.86,1.8l1.53,1.41l0.3,1.26l0.44,0.5l-4.08,0.75l-0.92,1.81l0.51,1.34l-0.74,5.43l0.17,0.38l2.45,1.46l0.54,-0.1l0.12,1.62l-1.28,-0.01l-1.85,-2.35l-1.94,-0.45l-0.48,-1.13l-0.55,-0.2l-1.41,0.74l-1.71,-0.3l-1.01,-1.18l-2.49,-0.19l-0.44,-0.77l-1.98,-0.21l-2.88,0.36l0.11,-2.41l-0.85,-1.13l-0.16,-1.36l0.32,-1.73l-0.46,-0.89l-0.04,-1.49l-0.4,-0.39l-2.53,0.02l0.1,-0.41l-0.39,-0.49l-1.28,0.01l-0.43,0.45l-1.62,0.32l-0.83,1.79l-1.09,-0.28l-2.4,0.52l-1.37,-1.91l-1.3,-3.3l-0.38,-0.27l-7.39,-0.03l-2.46,0.42l0.5,-0.45l0.37,-1.47l0.66,-0.38l0.92,0.08l0.73,-0.82l0.87,0.02l0.31,0.68l1.4,0.36l3.59,-3.63l0.01,-2.23l1.02,-2.29l2.69,-2.39l0.43,-0.99l0.49,-1.96l0.17,-3.51l1.25,-2.95l0.36,-3.14l0.86,-1.13l1.1,-0.66l3.57,1.73l3.65,0.73l0.46,-0.21l0.8,-1.46l1.24,0.19l2.61,-1.17l0.81,0.44l1.04,-0.03l0.59,-0.66l0.7,-0.16l1.81,0.25Z","name":"Dem. Rep. Congo"},"CZ":{"path":"M458.46,144.88l1.22,1.01l1.47,0.23l0.13,0.93l1.36,0.68l0.54,-0.2l0.24,-0.55l1.15,0.25l0.53,1.09l1.68,0.18l0.6,0.84l-1.04,0.73l-0.96,1.28l-1.6,0.17l-0.55,0.56l-1.04,-0.46l-1.05,0.15l-2.12,-0.96l-1.05,0.34l-1.2,1.12l-1.56,-0.87l-2.57,-2.1l-0.53,-1.88l4.7,-2.52l0.71,0.26l0.9,-0.28Z","name":"Czech Rep."},"CY":{"path":"M504.36,193.47l0.43,0.28l-1.28,0.57l-0.92,-0.28l-0.24,-0.46l2.01,-0.13Z","name":"Cyprus"},"CR":{"path":"M211.34,258.05l0.48,0.99l1.6,1.6l-0.54,0.45l0.29,1.42l-0.25,1.19l-1.09,-0.59l-0.05,-1.25l-2.46,-1.42l-0.28,-0.77l-0.66,-0.45l-0.45,-0.0l-0.11,1.04l-1.32,-0.95l0.31,-1.3l-0.36,-0.6l0.31,-0.27l1.42,0.58l1.29,-0.14l0.56,0.56l0.74,0.17l0.55,-0.27Z","name":"Costa Rica"},"CU":{"path":"M221.21,227.25l1.27,1.02l2.19,-0.28l4.43,3.33l2.08,0.43l-0.1,0.38l0.36,0.5l1.75,0.1l1.48,0.84l-3.11,0.51l-4.15,-0.03l0.77,-0.67l-0.04,-0.64l-1.2,-0.74l-1.49,-0.16l-0.7,-0.61l-0.56,-1.4l-0.4,-0.25l-1.34,0.1l-2.2,-0.66l-0.88,-0.58l-3.18,-0.4l-0.27,-0.16l0.58,-0.74l-0.36,-0.29l-2.72,-0.05l-1.7,1.29l-0.91,0.03l-0.61,0.69l-1.01,0.22l1.11,-1.29l1.01,-0.52l3.69,-1.01l3.98,0.21l2.21,0.84Z","name":"Cuba"},"SZ":{"path":"M500.35,351.36l0.5,2.04l-0.38,0.89l-1.05,0.21l-1.23,-1.2l-0.02,-0.64l0.83,-1.57l1.34,0.27Z","name":"Swaziland"},"SY":{"path":"M511.0,199.79l0.05,-1.33l0.54,-1.36l1.28,-0.99l0.13,-0.45l-0.41,-1.11l-1.14,-0.36l-0.19,-1.74l0.52,-1.0l1.29,-1.21l0.2,-1.18l0.59,0.23l2.62,-0.76l1.36,0.52l2.06,-0.01l2.95,-1.08l3.25,-0.26l-0.67,0.94l-1.28,0.66l-0.21,0.4l0.23,2.01l-0.88,3.19l-10.15,5.73l-2.15,-0.85Z","name":"Syria"},"KG":{"path":"M621.35,172.32l-3.87,1.69l-0.96,1.18l-3.04,0.34l-1.13,1.86l-2.36,-0.35l-1.99,0.63l-2.39,1.4l0.06,0.95l-0.4,0.37l-4.52,0.43l-3.02,-0.93l-2.37,0.17l0.11,-0.79l2.32,0.42l1.13,-0.88l1.99,0.2l3.21,-2.14l-0.03,-0.69l-2.97,-1.57l-1.94,0.65l-1.22,-0.74l1.71,-1.58l-0.12,-0.67l-0.36,-0.15l0.32,-0.77l1.36,-0.35l4.02,1.02l0.49,-0.3l0.35,-1.59l1.09,-0.48l3.42,1.22l1.11,-0.31l7.64,0.39l1.16,1.0l1.23,0.39Z","name":"Kyrgyzstan"},"KE":{"path":"M506.26,284.69l1.87,-2.56l0.93,-2.15l-1.38,-4.08l-1.06,-1.6l2.82,-2.75l0.79,0.26l0.12,1.41l0.86,0.83l1.9,0.11l3.28,2.13l3.57,0.44l1.05,-1.12l1.96,-0.9l0.82,0.68l1.16,0.09l-1.78,2.45l0.03,9.12l1.3,1.94l-1.37,0.78l-0.67,1.03l-1.08,0.46l-0.34,1.67l-0.81,1.07l-0.45,1.55l-0.68,0.56l-3.2,-2.23l-0.35,-1.58l-8.86,-4.98l0.14,-1.6l-0.57,-1.04Z","name":"Kenya"},"SS":{"path":"M481.71,263.34l1.07,-0.72l1.2,-3.18l1.36,-0.26l1.61,1.99l0.87,0.34l1.1,-0.41l1.5,0.07l0.57,0.53l2.49,0.0l0.44,-0.63l1.07,-0.4l0.45,-0.84l0.59,-0.33l1.9,1.33l1.6,-0.2l2.83,-3.33l-0.32,-2.21l1.59,-0.52l-0.24,1.6l0.3,1.83l1.35,1.18l0.2,1.87l0.35,0.41l0.02,1.53l-0.23,0.47l-1.42,0.25l-0.85,1.44l0.3,0.6l1.4,0.16l1.11,1.08l0.59,1.13l1.03,0.53l1.28,2.36l-4.41,3.98l-1.74,0.01l-1.89,0.55l-1.47,-0.52l-1.15,0.57l-2.96,-2.62l-1.3,0.49l-1.06,-0.15l-0.79,0.39l-0.82,-0.22l-1.8,-2.7l-1.91,-1.1l-0.66,-1.5l-2.62,-2.32l-0.18,-0.94l-2.37,-1.6Z","name":"S. Sudan"},"SR":{"path":"M283.12,270.19l2.1,0.53l-1.08,1.95l0.2,1.72l0.93,1.49l-0.59,2.03l-0.43,0.71l-1.12,-0.42l-1.32,0.22l-0.93,-0.2l-0.46,0.26l-0.25,0.73l0.33,0.7l-0.89,-0.13l-1.39,-1.97l-0.31,-1.34l-0.97,-0.31l-0.89,-1.47l0.35,-1.61l1.45,-0.82l0.33,-1.87l2.61,0.44l0.57,-0.47l1.75,-0.16Z","name":"Suriname"},"KH":{"path":"M689.52,249.39l0.49,1.45l-0.28,2.74l-4.0,1.86l-0.16,0.6l0.68,0.95l-2.06,0.17l-2.05,0.97l-1.82,-0.32l-2.12,-3.7l-0.55,-2.85l1.4,-1.85l3.02,-0.45l2.23,0.35l2.01,0.98l0.51,-0.14l0.95,-1.48l1.74,0.74Z","name":"Cambodia"},"SV":{"path":"M195.8,250.13l1.4,-1.19l2.24,1.45l0.98,-0.27l0.44,0.2l-0.27,1.05l-1.14,-0.03l-3.64,-1.21Z","name":"El Salvador"},"SK":{"path":"M476.82,151.17l-1.14,1.9l-2.73,-0.92l-0.82,0.2l-0.74,0.8l-3.46,0.73l-0.47,0.69l-1.76,0.33l-1.88,-1.0l-0.18,-0.81l0.38,-0.75l1.87,-0.32l1.74,-1.89l0.83,0.16l0.79,-0.34l1.51,1.04l1.34,-0.63l1.25,0.3l1.65,-0.42l1.81,0.95Z","name":"Slovakia"},"KR":{"path":"M737.51,185.84l0.98,-0.1l0.87,-1.17l2.69,-0.32l0.33,-0.29l1.76,2.79l0.58,1.76l0.02,3.12l-0.8,1.32l-2.21,0.55l-1.93,1.13l-1.8,0.19l-0.2,-1.1l0.43,-2.28l-0.95,-2.56l1.43,-0.37l0.23,-0.62l-1.43,-2.06Z","name":"Korea"},"SI":{"path":"M456.18,162.07l-0.51,-1.32l0.18,-1.05l1.69,0.2l1.42,-0.71l2.09,-0.07l0.62,-0.51l0.21,0.47l-1.61,0.67l-0.44,1.34l-0.66,0.24l-0.26,0.82l-1.22,-0.49l-0.84,0.46l-0.69,-0.04Z","name":"Slovenia"},"KP":{"path":"M736.77,185.16l-0.92,-0.42l-0.88,0.62l-1.21,-0.88l0.96,-1.15l0.59,-2.59l-0.46,-0.74l-2.09,-0.77l1.64,-1.52l2.72,-1.58l1.58,-1.91l1.11,0.78l2.17,0.11l0.41,-0.5l-0.3,-1.22l3.52,-1.18l0.94,-1.4l0.98,1.08l-2.19,2.18l0.01,2.14l-1.06,0.54l-1.41,1.4l-1.7,0.52l-1.25,1.09l-0.14,1.98l0.94,0.45l1.15,1.04l-0.13,0.26l-2.6,0.29l-1.13,1.29l-1.22,0.08Z","name":"Dem. Rep. Korea"},"KW":{"path":"M540.81,207.91l0.37,0.86l-0.17,0.76l0.6,1.53l-0.95,0.04l-0.82,-1.28l-1.57,-0.18l1.31,-1.88l1.22,0.17Z","name":"Kuwait"},"SN":{"path":"M390.09,248.21l0.12,1.55l0.49,1.46l0.96,0.82l0.05,1.28l-1.26,-0.19l-0.75,0.33l-1.84,-0.61l-5.84,-0.13l-2.54,0.51l-0.22,-1.03l1.77,0.04l2.01,-0.91l1.03,0.48l1.09,0.04l1.29,-0.62l0.14,-0.58l-0.51,-0.74l-1.81,0.25l-1.13,-0.63l-0.79,0.04l-0.72,0.61l-2.31,0.06l-0.92,-1.77l-0.81,-0.64l0.64,-0.35l2.46,-3.74l1.04,0.19l1.38,-0.56l1.19,-0.02l2.72,1.37l3.03,3.48Z","name":"Senegal"},"SL":{"path":"M394.46,264.11l-1.73,1.98l-0.58,1.33l-2.07,-1.06l-1.22,-1.26l-0.65,-2.39l1.16,-0.96l0.67,-1.17l1.21,-0.52l1.66,0.0l1.03,1.64l0.52,2.41Z","name":"Sierra Leone"},"KZ":{"path":"M552.8,172.89l0.46,-1.27l-0.48,-1.05l-2.96,-1.19l-1.06,-2.58l-1.37,-0.87l-0.03,-0.3l1.95,0.23l0.45,-0.38l0.08,-1.96l1.75,-0.41l2.1,0.45l0.48,-0.33l0.45,-3.04l-0.45,-2.09l-0.41,-0.31l-2.42,0.15l-2.36,-0.73l-2.87,1.37l-2.17,0.61l-0.85,-0.34l0.13,-1.61l-1.6,-2.12l-2.02,-0.08l-1.78,-1.82l1.29,-2.18l-0.57,-0.95l1.62,-2.91l2.21,1.63l0.63,-0.27l0.29,-2.22l4.92,-3.43l3.71,-0.08l8.4,3.6l2.92,-1.36l3.77,-0.06l3.11,1.66l0.51,-0.11l0.6,-0.81l3.31,0.13l0.39,-0.25l0.63,-1.57l-0.17,-0.5l-3.5,-1.98l1.87,-1.27l-0.13,-1.03l1.98,-0.72l0.18,-0.62l-1.59,-2.06l0.81,-0.82l9.23,-1.18l1.33,-0.88l6.18,-1.26l2.26,-1.42l4.08,0.68l0.73,3.33l0.51,0.3l2.48,-0.8l2.79,1.02l-0.17,1.56l0.43,0.44l2.55,-0.24l4.89,-2.53l0.03,0.32l3.15,2.61l5.56,8.47l0.65,0.02l1.12,-1.46l3.15,1.74l3.76,-0.78l1.15,0.49l1.14,1.8l1.84,0.76l0.99,1.29l3.35,-0.25l1.02,1.52l-1.6,1.81l-1.93,0.28l-0.34,0.38l-0.11,3.05l-1.13,1.16l-4.75,-1.0l-0.46,0.27l-1.76,5.47l-1.1,0.59l-4.91,1.23l-0.27,0.54l2.1,4.97l-1.37,0.63l-0.23,0.41l0.13,1.13l-0.88,-0.25l-1.42,-1.13l-7.89,-0.4l-0.92,0.31l-3.73,-1.22l-1.42,0.63l-0.53,1.66l-3.72,-0.94l-1.85,0.43l-0.76,1.4l-4.65,2.62l-1.13,2.08l-0.44,0.01l-0.92,-1.4l-2.87,-0.09l-0.45,-2.14l-0.38,-0.32l-0.8,-0.01l0.0,-2.96l-3.0,-2.22l-7.31,0.58l-2.35,-2.68l-6.71,-3.69l-6.45,1.83l-0.29,0.39l0.1,10.85l-0.7,0.08l-1.62,-2.17l-1.83,-0.96l-3.11,0.59l-0.64,0.51Z","name":"Kazakhstan"},"SA":{"path":"M537.53,210.34l2.0,0.24l0.9,1.32l1.49,-0.06l0.87,2.08l1.29,0.76l0.51,0.99l1.56,1.03l-0.1,1.9l0.32,0.9l1.58,2.47l0.76,0.53l0.7,-0.04l1.68,4.23l7.53,1.33l0.51,-0.29l0.77,1.25l-1.55,4.87l-7.29,2.52l-7.3,1.03l-2.34,1.17l-1.88,2.74l-0.76,0.28l-0.82,-0.78l-0.91,0.12l-2.88,-0.51l-3.51,0.25l-0.86,-0.56l-0.57,0.15l-0.66,1.27l0.16,1.11l-0.43,0.32l-0.93,-1.4l-0.33,-1.16l-1.23,-0.88l-1.27,-2.06l-0.78,-2.22l-1.73,-1.79l-1.14,-0.48l-1.54,-2.31l-0.21,-3.41l-1.44,-2.93l-1.27,-1.16l-1.33,-0.57l-1.31,-3.37l-0.77,-0.67l-0.97,-1.97l-2.8,-4.03l-1.06,-0.17l0.37,-1.96l0.2,-0.72l2.74,0.3l1.08,-0.84l0.6,-0.94l1.74,-0.35l0.65,-1.03l0.71,-0.4l0.1,-0.62l-2.06,-2.28l4.39,-1.22l0.48,-0.37l2.77,0.69l3.66,1.9l7.03,5.5l4.87,0.3Z","name":"Saudi Arabia"},"SE":{"path":"M480.22,89.3l-4.03,1.17l-2.43,2.86l0.26,2.57l-8.77,6.64l-1.78,5.79l1.78,2.68l2.22,1.96l-2.07,3.77l-2.72,1.13l-0.95,6.04l-1.29,3.01l-2.74,-0.31l-0.4,0.22l-1.31,2.59l-2.34,0.13l-0.75,-3.09l-2.08,-4.03l-1.83,-4.96l1.0,-1.93l2.14,-2.7l0.83,-4.45l-1.6,-2.17l-0.15,-4.94l1.48,-3.39l2.58,-0.15l0.87,-1.59l-0.78,-1.57l3.76,-5.59l4.04,-7.48l2.17,0.01l0.39,-0.29l0.57,-2.07l4.37,0.64l0.46,-0.34l0.33,-2.56l1.1,-0.13l6.94,4.87l0.06,6.32l0.66,1.36Z","name":"Sweden"},"SD":{"path":"M505.98,259.4l-0.34,-0.77l-1.17,-0.9l-0.26,-1.61l0.29,-1.81l-0.34,-0.46l-1.16,-0.17l-0.54,0.59l-1.23,0.11l-0.28,0.65l0.53,0.65l0.17,1.22l-2.44,3.0l-0.96,0.19l-2.39,-1.4l-0.95,0.52l-0.38,0.78l-1.11,0.41l-0.29,0.5l-1.94,0.0l-0.54,-0.52l-1.81,-0.09l-0.95,0.4l-2.45,-2.35l-2.07,0.54l-0.73,1.26l-0.6,2.1l-1.25,0.58l-0.75,-0.62l0.27,-2.65l-1.48,-1.78l-0.22,-1.48l-0.92,-0.96l-0.02,-1.29l-0.57,-1.16l-0.68,-0.16l0.69,-1.29l-0.18,-1.14l0.65,-0.62l0.03,-0.55l-0.36,-0.41l1.55,-2.97l1.91,0.16l0.43,-0.4l-0.1,-10.94l2.49,-0.01l0.4,-0.4l-0.0,-4.82l29.02,0.0l0.64,2.04l-0.49,0.66l0.36,2.69l0.93,3.16l2.12,1.55l-0.89,1.04l-1.72,0.39l-0.98,0.9l-1.43,5.65l0.24,1.15l-0.38,2.06l-0.96,2.38l-1.53,1.31l-1.32,2.91l-1.22,0.86l-0.37,1.34Z","name":"Sudan"},"DO":{"path":"M241.8,239.2l0.05,-0.65l-0.46,-0.73l0.42,-0.44l0.19,-1.0l-0.09,-1.53l1.66,0.01l1.99,0.63l0.33,0.67l1.28,0.19l0.33,0.76l1.0,0.08l0.8,0.62l-0.45,0.51l-1.13,-0.47l-1.88,-0.01l-1.27,0.59l-0.75,-0.55l-1.01,0.54l-0.79,1.4l-0.23,-0.61Z","name":"Dominican Rep."},"DJ":{"path":"M528.43,256.18l-0.45,0.66l-0.58,-0.25l-1.51,0.13l-0.18,-1.01l1.45,-1.95l0.83,0.17l0.77,-0.44l0.2,1.0l-1.2,0.51l-0.06,0.7l0.73,0.47Z","name":"Djibouti"},"DK":{"path":"M452.28,129.07l-1.19,2.24l-2.13,-1.6l-0.23,-0.95l2.98,-0.95l0.57,1.26ZM447.74,126.31l-0.26,0.57l-0.88,-0.07l-1.8,2.53l0.48,1.69l-1.09,0.36l-1.61,-0.39l-0.89,-1.69l-0.07,-3.43l0.96,-1.73l2.02,-0.2l1.09,-1.07l1.33,-0.67l-0.05,1.06l-0.73,1.41l0.3,1.0l1.2,0.64Z","name":"Denmark"},"DE":{"path":"M453.14,155.55l-0.55,-0.36l-1.2,-0.1l-1.87,0.57l-2.13,-0.13l-0.56,0.63l-0.86,-0.6l-0.96,0.09l-2.57,-0.93l-0.85,0.67l-1.47,-0.02l0.24,-1.75l1.23,-2.14l-0.28,-0.59l-3.52,-0.58l-0.92,-0.66l0.12,-1.2l-0.48,-0.88l0.27,-2.17l-0.37,-3.03l1.41,-0.22l0.63,-1.26l0.66,-3.19l-0.41,-1.18l0.26,-0.39l1.66,-0.15l0.33,0.54l0.62,0.07l1.7,-1.69l-0.54,-3.02l1.37,0.33l1.31,-0.37l0.31,1.18l2.25,0.71l-0.02,0.92l0.5,0.4l2.55,-0.65l1.34,-0.87l2.57,1.24l1.06,0.98l0.48,1.44l-0.57,0.74l-0.0,0.48l0.87,1.15l0.57,1.64l-0.14,1.29l0.82,1.7l-1.5,-0.07l-0.56,0.57l-4.47,2.15l-0.22,0.54l0.68,2.26l2.58,2.16l-0.66,1.11l-0.79,0.36l-0.23,0.43l0.32,1.87Z","name":"Germany"},"YE":{"path":"M528.27,246.72l0.26,-0.42l-0.22,-1.01l0.19,-1.5l0.92,-0.69l-0.07,-1.35l0.39,-0.75l1.01,0.47l3.34,-0.27l3.76,0.41l0.95,0.81l1.36,-0.58l1.74,-2.62l2.18,-1.09l6.86,-0.94l2.48,5.41l-1.64,0.76l-0.56,1.9l-6.23,2.16l-2.29,1.8l-1.93,0.05l-1.41,1.02l-4.24,0.74l-1.72,1.49l-3.28,0.19l-0.52,-1.18l0.02,-1.51l-1.34,-3.29Z","name":"Yemen"},"DZ":{"path":"M441.46,188.44l-0.32,1.07l0.39,2.64l-0.54,2.16l-1.58,1.82l0.37,2.39l1.91,1.55l0.18,0.8l1.42,1.03l1.84,7.23l0.12,1.16l-0.57,5.0l0.2,1.51l-0.87,0.99l-0.02,0.51l1.41,1.86l0.14,1.2l0.89,1.48l0.5,0.16l0.98,-0.41l1.73,1.08l0.82,1.23l-8.22,4.81l-7.23,5.11l-3.43,1.13l-2.3,0.21l-0.28,-1.59l-2.56,-1.09l-0.67,-1.25l-26.12,-17.86l0.01,-3.47l3.77,-1.88l2.44,-0.41l2.12,-0.75l1.08,-1.42l2.81,-1.05l0.35,-2.08l1.33,-0.29l1.04,-0.94l3.47,-0.69l0.46,-1.08l-0.1,-0.45l-0.58,-0.52l-0.82,-2.81l-0.19,-1.83l-0.78,-1.49l2.03,-1.31l2.63,-0.48l1.7,-1.22l2.31,-0.84l8.24,-0.73l1.49,0.38l2.28,-1.1l2.46,-0.02l0.92,0.6l1.35,-0.05Z","name":"Algeria"},"US":{"path":"M892.72,99.2l1.31,0.53l1.41,-0.37l1.89,0.98l1.89,0.42l-1.32,0.58l-2.9,-1.53l-2.08,0.22l-0.26,-0.15l0.07,-0.67ZM183.22,150.47l0.37,1.47l1.12,0.85l4.23,0.7l2.39,0.98l2.17,-0.38l1.85,0.5l-1.55,0.65l-3.49,2.61l-0.16,0.77l0.5,0.39l2.33,-0.61l1.77,1.02l5.15,-2.4l-0.31,0.65l0.25,0.56l1.36,0.38l1.71,1.16l4.7,-0.88l0.67,0.85l1.31,0.21l0.58,0.58l-1.34,0.17l-2.18,-0.32l-3.6,0.89l-2.71,3.25l0.35,0.9l0.59,-0.0l0.55,-0.6l-1.36,4.65l0.29,3.09l0.67,1.58l0.61,0.45l1.77,-0.44l1.6,-1.96l0.14,-2.21l-0.82,-1.96l0.11,-1.13l1.19,-2.37l0.44,-0.33l0.48,0.75l0.4,-0.29l0.4,-1.37l0.6,-0.47l0.24,-0.8l1.69,0.49l1.65,1.08l-0.03,2.37l-1.27,1.13l-0.0,1.13l0.87,0.36l1.66,-1.29l0.5,0.17l0.5,2.6l-2.49,3.75l0.17,0.61l1.54,0.62l1.48,0.17l1.92,-0.44l4.72,-2.15l2.16,-1.8l-0.05,-1.24l0.75,-0.22l3.92,0.36l2.12,-1.05l0.21,-0.4l-0.28,-1.48l3.27,-2.4l8.32,-0.02l0.56,-0.82l1.9,-0.77l0.93,-1.51l0.74,-2.37l1.58,-1.98l0.92,0.62l1.47,-0.47l0.8,0.66l-0.0,4.09l1.96,2.6l-2.34,1.31l-5.37,2.09l-1.83,2.72l0.02,1.79l0.83,1.59l0.54,0.23l-6.19,0.94l-2.2,0.89l-0.23,0.48l0.45,0.29l2.99,-0.46l-2.19,0.56l-1.13,0.0l-0.15,-0.32l-0.48,0.08l-0.76,0.82l0.22,0.67l0.32,0.06l-0.41,1.62l-1.27,1.58l-1.48,-1.07l-0.49,-0.04l-0.16,0.46l0.52,1.58l0.61,0.59l0.03,0.79l-0.95,1.38l-1.21,-1.22l-0.27,-2.27l-0.35,-0.35l-0.42,0.25l-0.48,1.27l0.33,1.41l-0.97,-0.27l-0.48,0.24l0.18,0.5l1.52,0.83l0.1,2.52l0.79,0.51l0.52,3.42l-1.42,1.88l-2.47,0.8l-1.71,1.66l-1.31,0.25l-1.27,1.03l-0.43,0.99l-2.69,1.78l-2.64,3.03l-0.45,2.12l0.45,2.08l0.85,2.38l1.09,1.9l0.04,1.2l1.16,3.06l-0.18,2.69l-0.55,1.43l-0.47,0.21l-0.89,-0.23l-0.49,-1.18l-0.87,-0.56l-2.75,-5.16l0.48,-1.68l-0.72,-1.78l-2.01,-2.38l-1.12,-0.53l-2.72,1.18l-1.47,-1.35l-1.57,-0.68l-2.99,0.31l-2.17,-0.3l-2.0,0.19l-1.15,0.46l-0.19,0.58l0.39,0.63l0.14,1.34l-0.84,-0.2l-0.84,0.46l-1.58,-0.07l-2.08,-1.44l-2.09,0.33l-1.91,-0.62l-3.73,0.84l-2.39,2.07l-2.54,1.22l-1.45,1.41l-0.61,1.38l0.34,3.71l-0.29,0.02l-3.5,-1.33l-1.25,-3.11l-1.44,-1.5l-2.24,-3.56l-1.76,-1.09l-2.27,-0.01l-1.71,2.07l-1.76,-0.69l-1.16,-0.74l-1.52,-2.98l-3.93,-3.16l-4.34,-0.0l-0.4,0.4l-0.0,0.74l-6.5,0.02l-9.02,-3.14l-0.34,-0.71l-5.7,0.49l-0.43,-1.29l-1.62,-1.61l-1.14,-0.38l-0.55,-0.88l-1.28,-0.13l-1.01,-0.77l-2.22,-0.27l-0.43,-0.3l-0.36,-1.58l-2.4,-2.83l-2.01,-3.85l-0.06,-0.9l-2.92,-3.26l-0.33,-2.29l-1.3,-1.66l0.52,-2.37l-0.09,-2.57l-0.78,-2.3l0.95,-2.82l0.61,-5.68l-0.47,-4.27l-1.46,-4.08l3.19,0.79l1.26,2.83l0.69,0.08l0.69,-1.14l-1.1,-4.79l68.76,-0.0l0.4,-0.4l0.14,-0.86ZM32.44,67.52l1.73,1.97l0.55,0.05l0.99,-0.79l3.65,0.24l-0.09,0.62l0.32,0.45l3.83,0.77l2.61,-0.43l5.19,1.4l4.84,0.43l1.89,0.57l3.42,-0.7l6.14,1.87l-0.03,38.06l0.38,0.4l2.39,0.11l2.31,0.98l3.9,3.99l0.55,0.04l2.4,-2.03l2.16,-1.04l1.2,1.71l3.95,3.14l4.09,6.63l4.2,2.29l0.06,1.83l-1.02,1.23l-1.16,-1.08l-2.04,-1.03l-0.67,-2.89l-3.28,-3.03l-1.65,-3.57l-6.35,-0.32l-2.82,-1.01l-5.26,-3.85l-6.77,-2.04l-3.53,0.3l-4.81,-1.69l-3.25,-1.63l-2.78,0.8l-0.28,0.46l0.44,2.21l-3.91,0.96l-2.26,1.27l-2.3,0.65l-0.27,-1.65l1.05,-3.42l2.49,-1.09l0.16,-0.6l-0.69,-0.96l-0.55,-0.1l-3.19,2.12l-1.78,2.56l-3.55,2.61l-0.04,0.61l1.56,1.52l-2.07,2.29l-5.11,2.57l-0.77,1.66l-3.76,1.77l-0.92,1.73l-2.69,1.38l-1.81,-0.22l-6.95,3.32l-3.97,0.91l4.85,-2.5l2.59,-1.86l3.26,-0.52l1.19,-1.4l3.42,-2.1l2.59,-2.27l0.42,-2.68l1.23,-2.1l-0.04,-0.46l-0.45,-0.11l-2.68,1.03l-0.63,-0.49l-0.53,0.03l-1.05,1.04l-1.36,-1.54l-0.66,0.08l-0.32,0.62l-0.58,-1.14l-0.56,-0.16l-2.41,1.42l-1.07,-0.0l-0.17,-1.75l0.3,-1.71l-1.61,-1.33l-3.41,0.59l-1.96,-1.63l-1.57,-0.84l-0.15,-2.21l-1.7,-1.43l0.82,-1.88l1.99,-2.12l0.88,-1.92l1.71,-0.24l2.04,0.51l1.87,-1.77l1.91,0.25l1.91,-1.23l0.17,-0.43l-0.47,-1.82l-1.07,-0.7l1.39,-1.17l0.12,-0.45l-0.39,-0.26l-1.65,0.07l-2.66,0.88l-0.75,0.78l-1.92,-0.8l-3.46,0.44l-3.44,-0.91l-1.06,-1.61l-2.65,-1.99l2.91,-1.43l5.5,-2.0l1.52,0.0l-0.26,1.62l0.41,0.46l5.29,-0.16l0.3,-0.65l-2.03,-2.59l-3.14,-1.68l-1.79,-2.12l-2.4,-1.83l-3.09,-1.24l1.04,-1.69l4.23,-0.14l3.36,-2.07l0.73,-2.27l2.39,-1.99l2.42,-0.52l4.65,-1.97l2.46,0.23l3.71,-2.35l3.5,0.89ZM37.6,123.41l-2.25,1.23l-0.95,-0.69l-0.29,-1.24l3.21,-1.63l1.42,0.21l0.67,0.7l-1.8,1.42ZM31.06,234.03l0.98,0.47l0.74,0.87l-1.77,1.07l-0.44,-1.53l0.49,-0.89ZM29.34,232.07l0.18,0.05l0.08,0.05l-0.16,0.03l-0.11,-0.14ZM25.16,230.17l0.05,-0.03l0.18,0.22l-0.13,-0.01l-0.1,-0.18ZM5.89,113.26l-1.08,0.41l-2.21,-1.12l1.53,-0.4l1.62,0.28l0.14,0.83Z","name":"United States"},"UY":{"path":"M286.85,372.74l-0.92,1.5l-2.59,1.44l-1.69,-0.52l-1.42,0.26l-2.39,-1.19l-1.52,0.08l-1.27,-1.3l0.16,-1.5l0.56,-0.79l-0.02,-2.73l1.21,-4.74l1.19,-0.21l2.37,2.0l1.08,0.03l4.36,3.17l1.22,1.6l-0.96,1.5l0.61,1.4Z","name":"Uruguay"},"LB":{"path":"M510.37,198.01l-0.88,0.51l1.82,-3.54l0.62,0.08l0.22,0.61l-1.13,0.88l-0.65,1.47Z","name":"Lebanon"},"LA":{"path":"M689.54,248.53l-1.76,-0.74l-0.49,0.15l-0.94,1.46l-1.32,-0.64l0.62,-0.98l0.11,-2.17l-2.04,-2.42l-0.25,-2.65l-1.9,-2.1l-2.15,-0.31l-0.78,0.91l-1.12,0.06l-1.05,-0.4l-2.06,1.2l-0.04,-1.59l0.61,-2.68l-0.36,-0.49l-1.35,-0.1l-0.11,-1.23l-0.96,-0.88l1.96,-1.89l0.39,0.36l1.33,0.07l0.42,-0.45l-0.34,-2.66l0.7,-0.21l1.28,1.81l1.11,2.35l0.36,0.23l2.82,0.02l0.71,1.67l-1.39,0.65l-0.72,0.93l0.13,0.6l2.91,1.51l3.6,5.25l1.88,1.78l0.56,1.62l-0.35,1.96Z","name":"Lao PDR"},"TW":{"path":"M724.01,226.68l-0.74,1.48l-0.9,-1.52l-0.25,-1.74l1.38,-2.44l1.73,-1.74l0.64,0.44l-1.85,5.52Z","name":"Taiwan"},"TT":{"path":"M266.64,259.32l0.28,-1.16l1.13,-0.22l-0.06,1.2l-1.35,0.18Z","name":"Trinidad and Tobago"},"TR":{"path":"M513.21,175.47l3.64,1.17l3.05,-0.44l2.1,0.26l3.11,-1.56l2.46,-0.13l2.19,1.33l0.33,0.82l-0.22,1.33l0.25,0.44l2.28,1.13l-1.17,0.57l-0.21,0.45l0.75,3.2l-0.41,1.16l1.13,1.92l-0.55,0.22l-0.9,-0.67l-2.91,-0.37l-1.24,0.46l-4.23,0.41l-2.81,1.05l-1.91,0.01l-1.52,-0.53l-2.58,0.75l-0.66,-0.45l-0.62,0.3l-0.12,1.45l-0.89,0.84l-0.47,-0.67l0.79,-1.3l-0.41,-0.2l-1.43,0.23l-2.0,-0.63l-2.02,1.65l-3.51,0.3l-2.13,-1.53l-2.7,-0.1l-0.86,1.24l-1.38,0.27l-2.29,-1.44l-2.71,-0.01l-1.37,-2.65l-1.68,-1.52l1.07,-1.99l-0.09,-0.49l-1.27,-1.12l2.37,-2.41l3.7,-0.11l1.28,-2.24l4.49,0.37l3.21,-1.97l2.81,-0.82l3.99,-0.06l4.29,2.07ZM488.79,176.72l-1.72,1.31l-0.5,-0.88l1.37,-2.57l-0.7,-0.85l1.7,-0.63l1.8,0.34l0.46,1.17l1.76,0.78l-2.87,0.32l-1.3,1.01Z","name":"Turkey"},"LK":{"path":"M624.16,268.99l-1.82,0.48l-0.99,-1.67l-0.42,-3.46l0.95,-3.43l1.21,0.98l2.26,4.19l-0.34,2.33l-0.85,0.58Z","name":"Sri Lanka"},"LV":{"path":"M489.16,122.85l0.96,0.66l0.22,1.65l0.68,1.76l-3.65,1.7l-2.23,-1.58l-1.29,-0.26l-0.68,-0.77l-2.42,0.34l-4.16,-0.23l-2.47,0.9l0.06,-1.98l1.13,-2.06l1.95,-1.02l2.12,2.58l2.01,-0.07l0.38,-0.33l0.44,-2.52l1.76,-0.53l3.06,1.7l2.15,0.07Z","name":"Latvia"},"LT":{"path":"M486.93,129.3l0.17,1.12l-1.81,0.98l-0.72,2.02l-2.47,1.18l-2.1,-0.02l-0.73,-1.05l-1.06,-0.3l-0.09,-1.87l-3.56,-1.13l-0.43,-2.36l2.48,-0.94l4.12,0.22l2.25,-0.31l0.52,0.69l1.24,0.21l2.19,1.56Z","name":"Lithuania"},"LU":{"path":"M436.08,149.45l-0.48,-0.07l0.3,-1.28l0.27,0.4l-0.09,0.96Z","name":"Luxembourg"},"LR":{"path":"M399.36,265.97l0.18,1.54l-0.48,0.99l0.08,0.47l2.47,1.8l-0.33,2.8l-2.65,-1.13l-5.78,-4.61l0.58,-1.32l2.1,-2.33l0.86,-0.22l0.77,1.14l-0.14,0.85l0.59,0.87l1.0,0.14l0.76,-0.99Z","name":"Liberia"},"LS":{"path":"M491.06,363.48l-0.49,0.15l-1.49,-1.67l1.1,-1.43l2.19,-1.44l1.51,1.27l-0.98,1.82l-1.23,0.38l-0.62,0.93Z","name":"Lesotho"},"TH":{"path":"M670.27,255.86l-1.41,3.87l0.15,2.0l0.38,0.36l1.38,0.07l0.9,2.04l0.55,2.34l1.4,1.44l1.61,0.38l0.96,0.97l-0.5,0.64l-1.1,0.2l-0.34,-1.18l-2.04,-1.1l-0.63,0.23l-0.63,-0.62l-0.48,-1.3l-2.56,-2.63l-0.73,0.41l0.95,-3.89l2.16,-4.22ZM670.67,254.77l-0.92,-2.18l-0.26,-2.61l-2.14,-3.06l0.71,-0.49l0.89,-2.59l-3.61,-5.45l0.87,-0.51l1.05,-2.58l1.74,-0.18l2.6,-1.59l0.76,0.56l0.13,1.39l0.37,0.36l1.23,0.09l-0.51,2.28l0.05,2.42l0.6,0.34l2.43,-1.42l0.77,0.39l1.47,-0.07l0.71,-0.88l1.48,0.14l1.71,1.88l0.25,2.65l1.92,2.11l-0.1,1.89l-0.61,0.86l-2.22,-0.33l-3.5,0.64l-1.6,2.12l0.36,2.58l-1.51,-0.79l-1.84,-0.01l0.28,-1.52l-0.4,-0.47l-2.21,0.01l-0.4,0.37l-0.19,2.74l-0.34,0.93Z","name":"Thailand"},"TF":{"path":"M596.68,420.38l-3.2,0.18l-0.05,-1.26l0.39,-1.41l1.3,0.78l2.08,0.35l-0.52,1.36Z","name":"Fr. S. Antarctic Lands"},"TG":{"path":"M422.7,257.63l-0.09,1.23l1.53,1.52l0.08,1.09l0.5,0.65l-0.11,5.62l0.49,1.47l-1.31,0.35l-1.02,-2.13l-0.18,-1.12l0.53,-2.19l-0.63,-1.16l-0.22,-3.68l-1.01,-1.4l0.07,-0.28l1.37,0.03Z","name":"Togo"},"TD":{"path":"M480.25,235.49l0.12,9.57l-2.1,0.05l-1.14,1.89l-0.69,1.63l0.34,0.73l-0.66,0.91l0.24,0.89l-0.86,1.95l0.45,0.5l0.6,-0.1l0.34,0.64l0.03,1.38l0.9,1.04l-1.45,0.43l-1.27,1.03l-1.83,2.76l-2.16,1.07l-2.31,-0.15l-0.86,0.25l-0.26,0.49l0.17,0.61l-2.11,1.68l-2.85,0.87l-1.09,-0.57l-0.73,0.66l-1.12,0.1l-1.1,-3.12l-1.25,-0.64l-1.22,-1.22l0.29,-0.64l3.01,0.04l0.35,-0.6l-1.3,-2.2l-0.08,-3.31l-0.97,-1.66l0.22,-1.04l-0.38,-0.48l-1.22,-0.04l0.0,-1.25l-0.98,-1.07l0.96,-3.01l3.25,-2.65l0.13,-3.33l0.95,-5.18l0.52,-1.07l-0.1,-0.48l-0.91,-0.78l-0.2,-0.96l-0.8,-0.58l-0.55,-3.65l2.1,-1.2l19.57,9.83Z","name":"Chad"},"LY":{"path":"M483.48,203.15l-0.75,1.1l0.29,1.39l-0.6,1.83l0.73,2.14l0.0,24.12l-2.48,0.01l-0.41,0.85l-19.41,-9.76l-4.41,2.28l-1.37,-1.33l-3.82,-1.1l-1.14,-1.65l-1.98,-1.23l-1.22,0.32l-0.66,-1.11l-0.17,-1.26l-1.28,-1.69l0.87,-1.19l-0.07,-4.34l0.43,-2.27l-0.86,-3.45l1.13,-0.76l0.22,-1.16l-0.2,-1.03l3.48,-2.61l0.29,-1.94l2.45,0.8l1.18,-0.21l1.98,0.44l3.15,1.18l1.37,2.54l5.72,1.67l2.64,1.35l1.61,-0.72l1.29,-1.34l-0.44,-2.34l0.66,-1.13l1.67,-1.21l1.57,-0.35l3.14,0.53l1.08,1.28l3.99,0.78l0.36,0.54Z","name":"Libya"},"AE":{"path":"M550.76,223.97l1.88,-0.4l3.84,0.02l4.78,-4.75l0.19,0.36l0.26,1.58l-0.81,0.01l-0.39,0.35l-0.08,2.04l-0.81,0.63l-0.01,0.96l-0.66,0.99l-0.39,1.41l-7.08,-1.25l-0.7,-1.96Z","name":"United Arab Emirates"},"VE":{"path":"M240.68,256.69l0.53,0.75l-0.02,1.06l-1.07,1.78l0.95,2.0l0.42,0.22l1.4,-0.44l0.56,-1.83l-0.77,-1.17l-0.1,-1.47l2.82,-0.93l0.26,-0.49l-0.28,-0.96l0.3,-0.28l0.66,1.31l1.96,0.26l1.4,1.22l0.08,0.68l0.39,0.35l4.81,-0.22l1.49,1.11l1.92,0.31l1.67,-0.84l0.22,-0.6l3.44,-0.14l-0.17,0.55l0.86,1.19l2.19,0.35l1.67,1.1l0.37,1.86l0.41,0.32l1.55,0.17l-1.66,1.35l-0.22,0.92l0.65,0.97l-1.67,0.54l-0.3,0.4l0.04,0.99l-0.56,0.57l-0.01,0.55l1.85,2.27l-0.66,0.69l-4.47,1.29l-0.72,0.54l-3.69,-0.9l-0.71,0.27l-0.02,0.7l0.91,0.53l-0.08,1.54l0.35,1.58l0.35,0.31l1.66,0.17l-1.3,0.52l-0.48,1.13l-2.68,0.91l-0.6,0.77l-1.57,0.13l-1.17,-1.13l-0.8,-2.52l-1.25,-1.26l1.02,-1.23l-1.29,-2.95l0.18,-1.62l1.0,-2.21l-0.2,-0.49l-1.14,-0.46l-4.02,0.36l-1.82,-2.1l-1.57,-0.33l-2.99,0.22l-1.06,-0.97l0.25,-1.23l-0.2,-1.01l-0.59,-0.69l-0.29,-1.06l-1.08,-0.39l0.78,-2.79l1.9,-2.11Z","name":"Venezuela"},"AF":{"path":"M600.7,188.88l-1.57,1.3l-0.1,0.48l0.8,2.31l-1.09,1.04l-0.03,1.27l-0.48,0.71l-2.16,-0.08l-0.37,0.59l0.78,1.48l-1.38,0.69l-1.06,1.69l0.06,1.7l-0.65,0.52l-0.91,-0.21l-1.91,0.36l-0.48,0.77l-1.88,0.13l-1.4,1.56l-0.18,2.32l-2.91,1.02l-1.65,-0.23l-0.71,0.55l-1.41,-0.3l-2.41,0.39l-3.52,-1.17l1.96,-2.35l-0.21,-1.78l-0.3,-0.34l-1.63,-0.4l-0.19,-1.58l-0.75,-2.03l0.95,-1.36l-0.19,-0.6l-0.73,-0.28l1.47,-4.8l2.14,0.9l2.12,-0.36l0.74,-1.34l1.77,-0.39l1.54,-0.92l0.63,-2.31l1.87,-0.5l0.49,-0.81l0.94,0.56l2.13,0.11l2.55,0.92l1.95,-0.83l0.65,0.43l0.56,-0.13l0.69,-1.12l1.57,-0.08l0.72,-1.66l0.79,-0.74l0.8,0.39l-0.17,0.56l0.71,0.58l-0.08,2.39l1.11,0.95ZM601.37,188.71l1.73,-0.71l1.43,-1.18l4.03,0.35l-2.23,0.74l-4.95,0.8Z","name":"Afghanistan"},"IQ":{"path":"M530.82,187.47l0.79,0.66l1.26,-0.28l1.46,3.08l1.63,0.94l0.14,1.23l-1.22,1.05l-0.53,2.52l1.73,2.67l3.12,1.62l1.15,1.88l-0.38,1.85l0.39,0.48l0.41,-0.0l0.02,1.07l0.76,0.94l-2.47,-0.1l-1.71,2.44l-4.31,-0.2l-7.02,-5.48l-3.73,-1.94l-2.88,-0.73l-0.85,-2.87l5.45,-3.02l0.95,-3.43l-0.19,-1.96l1.27,-0.7l1.22,-1.7l0.87,-0.36l2.69,0.34Z","name":"Iraq"},"IS":{"path":"M384.14,88.06l-0.37,2.61l2.54,2.51l-2.9,2.75l-9.19,3.4l-9.25,-1.66l1.7,-1.22l-0.1,-0.7l-4.05,-1.47l2.96,-0.53l0.33,-0.43l-0.11,-1.2l-0.33,-0.36l-4.67,-0.85l1.28,-2.04l3.45,-0.56l3.77,2.72l0.44,0.02l3.64,-2.16l3.3,1.08l3.98,-2.16l3.58,0.26Z","name":"Iceland"},"IR":{"path":"M533.43,187.16l-1.27,-2.15l0.42,-0.98l-0.71,-3.04l1.03,-0.5l0.33,0.83l1.26,1.35l2.05,0.51l1.11,-0.16l2.89,-2.11l0.62,-0.14l0.39,0.46l-0.72,1.2l0.06,0.49l1.56,1.53l0.65,0.04l0.67,1.81l2.56,0.83l1.87,1.48l3.69,0.49l3.91,-0.76l0.47,-0.73l2.17,-0.6l1.66,-1.54l1.51,0.08l1.18,-0.53l1.59,0.24l2.83,1.48l1.88,0.3l2.77,2.47l1.77,0.18l0.18,1.99l-1.68,5.49l0.24,0.5l0.61,0.23l-0.82,1.48l0.8,2.18l0.19,1.71l0.3,0.34l1.63,0.4l0.15,1.32l-2.15,2.35l-0.01,0.53l2.21,3.03l2.34,1.24l0.06,2.14l1.24,0.72l0.11,0.69l-3.31,1.27l-1.08,3.03l-9.68,-1.68l-0.99,-3.05l-1.43,-0.73l-2.17,0.46l-2.47,1.26l-2.83,-0.82l-2.46,-2.02l-2.41,-0.8l-3.42,-6.06l-0.48,-0.2l-1.18,0.39l-1.44,-0.82l-0.5,0.08l-0.65,0.74l-0.97,-1.01l-0.02,-1.31l-0.71,-0.39l0.26,-1.81l-1.29,-2.11l-3.13,-1.63l-1.58,-2.43l0.5,-1.9l1.31,-1.26l-0.19,-1.66l-1.74,-1.1l-1.57,-3.3Z","name":"Iran"},"AM":{"path":"M536.99,182.33l-0.28,0.03l-1.23,-2.13l-0.93,0.01l-0.62,-0.66l-0.69,-0.07l-0.96,-0.81l-1.56,-0.62l0.19,-1.12l-0.26,-0.79l2.72,-0.36l1.09,1.01l-0.17,0.92l1.02,0.78l-0.47,0.62l0.08,0.56l2.04,1.23l0.04,1.4Z","name":"Armenia"},"AL":{"path":"M470.32,171.8l0.74,0.03l0.92,0.89l-0.17,1.95l0.36,1.28l1.01,0.82l-1.82,2.83l-0.19,-0.61l-1.25,-0.89l-0.18,-1.2l0.53,-2.82l-0.54,-1.47l0.6,-0.83Z","name":"Albania"},"AO":{"path":"M461.55,300.03l1.26,3.15l1.94,2.36l2.47,-0.53l1.25,0.32l0.44,-0.18l0.93,-1.92l1.31,-0.08l0.41,-0.44l0.47,-0.0l-0.1,0.41l0.39,0.49l2.65,-0.02l0.03,1.19l0.48,1.01l-0.34,1.52l0.18,1.55l0.83,1.04l-0.13,2.85l0.54,0.39l3.96,-0.41l-0.1,1.79l0.39,1.05l-0.24,1.43l-4.7,-0.03l-0.4,0.39l-0.12,8.13l2.92,3.49l-3.83,0.88l-5.89,-0.36l-1.88,-1.24l-10.47,0.22l-1.3,-1.01l-1.85,-0.16l-2.4,0.77l-0.15,-1.06l0.33,-2.16l1.0,-3.45l1.35,-3.2l2.24,-2.8l0.33,-2.06l-0.13,-1.53l-0.8,-1.08l-1.21,-2.87l0.87,-1.62l-1.27,-4.12l-1.17,-1.53l2.47,-0.63l7.03,0.03ZM451.71,298.87l-0.47,-1.25l1.25,-1.11l0.32,0.3l-0.99,1.03l-0.12,1.03Z","name":"Angola"},"AR":{"path":"M249.29,428.93l-2.33,-0.52l-5.83,-0.43l-0.89,-1.66l0.05,-2.37l-0.45,-0.4l-1.43,0.18l-0.67,-0.91l-0.2,-3.13l1.88,-1.47l0.79,-2.04l-0.25,-1.7l1.3,-2.68l0.91,-4.15l-0.22,-1.69l0.85,-0.45l0.2,-0.44l-0.27,-1.16l-0.98,-0.68l0.59,-0.92l-0.05,-0.5l-1.04,-1.07l-0.52,-3.1l0.97,-0.86l-0.42,-3.58l1.2,-5.43l1.38,-0.98l0.16,-0.43l-0.75,-2.79l-0.01,-2.43l1.78,-1.75l0.06,-2.57l1.43,-2.85l0.01,-2.58l-0.69,-0.74l-1.09,-4.52l1.47,-2.7l-0.18,-2.79l0.85,-2.35l1.59,-2.46l1.73,-1.64l0.05,-0.52l-0.6,-0.84l0.44,-0.85l-0.07,-4.19l2.7,-1.44l0.86,-2.75l-0.21,-0.71l1.76,-2.01l2.9,0.57l1.38,1.78l0.68,-0.08l0.87,-1.87l2.39,0.09l4.95,4.77l2.17,0.49l3.0,1.92l2.47,1.0l0.25,0.82l-2.37,3.93l0.23,0.59l5.39,1.16l2.12,-0.44l2.45,-2.16l0.5,-2.38l0.76,-0.31l0.98,1.2l-0.04,1.8l-3.67,2.51l-2.85,2.66l-3.43,3.88l-1.3,5.07l0.01,2.72l-0.54,0.73l-0.36,3.28l3.14,2.64l-0.16,2.11l1.4,1.11l-0.1,1.09l-2.29,3.52l-3.55,1.49l-4.92,0.6l-2.71,-0.29l-0.43,0.51l0.5,1.65l-0.49,2.1l0.38,1.42l-1.19,0.83l-2.36,0.38l-2.3,-1.04l-1.38,0.83l0.41,3.64l1.69,0.91l1.4,-0.71l0.36,0.76l-2.04,0.86l-2.01,1.89l-0.97,4.63l-2.34,0.1l-2.09,1.78l-0.61,2.75l2.46,2.31l2.17,0.63l-0.7,2.32l-2.83,1.73l-1.73,3.86l-2.17,1.22l-1.16,1.67l0.75,3.76l1.04,1.28ZM256.71,438.88l-2.0,0.15l-1.4,-1.22l-3.82,-0.1l-0.0,-5.83l1.6,3.05l3.26,2.07l3.08,0.78l-0.71,1.1Z","name":"Argentina"},"AU":{"path":"M705.8,353.26l0.26,0.04l0.17,-0.47l-0.48,-1.42l0.92,1.11l0.45,0.15l0.27,-0.39l-0.1,-1.56l-1.98,-3.63l1.09,-3.31l-0.24,-1.57l0.34,-0.62l0.38,1.06l0.43,-0.19l0.99,-1.7l1.91,-0.83l1.29,-1.15l1.81,-0.91l0.96,-0.17l0.92,0.26l1.92,-0.95l1.47,-0.28l1.03,-0.8l1.43,0.04l2.78,-0.84l1.36,-1.15l0.71,-1.45l1.41,-1.26l0.3,-2.58l1.27,-1.59l0.78,1.65l0.54,0.19l1.07,-0.51l0.15,-0.6l-0.73,-1.0l0.45,-0.71l0.78,0.39l0.58,-0.3l0.28,-1.82l1.87,-2.14l1.12,-0.39l0.28,-0.58l0.62,0.17l0.53,-0.73l1.87,-0.57l1.65,1.05l1.35,1.48l3.39,0.38l0.43,-0.54l-0.46,-1.23l1.05,-1.79l1.04,-0.61l0.14,-0.55l-0.25,-0.41l0.88,-1.17l1.31,-0.77l1.3,0.27l2.1,-0.48l0.31,-0.4l-0.05,-1.3l-0.92,-0.77l1.48,0.56l1.41,1.07l2.11,0.65l0.81,-0.2l1.4,0.7l1.69,-0.66l0.8,0.19l0.64,-0.33l0.71,0.77l-1.33,1.94l-0.71,0.07l-0.35,0.51l0.24,0.86l-1.52,2.35l0.12,1.05l2.15,1.65l1.97,0.85l3.04,2.36l1.97,0.65l0.55,0.88l2.72,0.85l1.84,-1.1l2.07,-5.97l-0.42,-3.59l0.3,-1.73l0.47,-0.87l-0.31,-0.68l1.09,-3.28l0.46,-0.47l0.4,0.71l0.16,1.51l0.65,0.52l0.16,1.04l0.85,1.21l0.12,2.38l0.9,2.0l0.57,0.18l1.3,-0.78l1.69,1.7l-0.2,1.08l0.53,2.2l0.39,1.3l0.68,0.48l0.6,1.95l-0.19,1.48l0.81,1.76l6.01,3.69l-0.11,0.76l1.38,1.58l0.95,2.77l0.58,0.22l0.72,-0.41l0.8,0.9l0.61,0.01l0.46,2.41l4.81,4.71l0.66,2.02l-0.07,3.31l1.14,2.2l-0.13,2.24l-1.1,3.68l0.03,1.64l-0.47,1.89l-1.05,2.4l-1.9,1.47l-1.72,3.51l-2.38,6.09l-0.24,2.82l-1.14,0.8l-2.85,0.15l-2.31,1.19l-2.51,2.25l-3.09,-1.57l0.3,-1.15l-0.54,-0.47l-1.5,0.63l-2.01,1.94l-7.12,-2.18l-1.48,-1.63l-1.14,-3.74l-1.45,-1.26l-1.81,-0.26l0.56,-1.18l-0.61,-2.1l-0.72,-0.1l-1.14,1.82l-0.9,0.21l0.63,-0.82l0.36,-1.55l0.92,-1.31l-0.13,-2.34l-0.7,-0.22l-2.0,2.34l-1.51,0.93l-0.94,2.01l-1.35,-0.81l-0.02,-1.52l-1.57,-2.04l-1.09,-0.88l0.24,-0.33l-0.14,-0.59l-3.21,-1.69l-1.83,-0.12l-2.54,-1.35l-4.58,0.28l-6.02,1.9l-2.53,-0.13l-2.62,1.41l-2.13,0.63l-1.49,2.6l-3.49,0.31l-2.29,-0.5l-3.48,0.43l-1.6,1.47l-0.81,-0.04l-2.37,1.63l-3.26,-0.1l-3.72,-2.21l0.04,-1.05l1.19,-0.46l0.49,-0.89l0.21,-2.97l-0.28,-1.64l-1.34,-2.86l-0.38,-1.47l0.05,-1.72l-0.95,-1.7l-0.18,-0.97l-1.01,-0.99l-0.29,-1.98l-1.13,-1.75ZM784.92,393.44l2.65,1.02l3.23,-0.96l1.09,0.14l0.15,3.06l-0.85,1.13l-0.17,1.63l-0.87,-0.24l-1.57,1.91l-1.68,-0.18l-1.4,-2.36l-0.37,-2.04l-1.39,-2.51l0.04,-0.8l1.15,0.18Z","name":"Australia"},"AT":{"path":"M462.89,152.8l0.04,2.25l-1.07,0.0l-0.33,0.63l0.36,0.51l-1.04,2.13l-2.02,0.07l-1.33,0.7l-5.29,-0.99l-0.47,-0.93l-0.44,-0.21l-2.47,0.55l-0.42,0.51l-3.18,-0.81l0.43,-0.91l1.12,0.78l0.6,-0.17l0.25,-0.58l1.93,0.12l1.86,-0.56l1.0,0.08l0.68,0.57l0.62,-0.15l0.26,-0.77l-0.3,-1.78l0.8,-0.44l0.68,-1.15l1.52,0.85l0.47,-0.06l1.34,-1.25l0.64,-0.17l1.81,0.92l1.28,-0.11l0.7,0.37Z","name":"Austria"},"IN":{"path":"M623.34,207.03l-1.24,1.04l-0.97,2.55l0.22,0.51l8.04,3.87l3.42,0.37l1.57,1.38l4.92,0.88l2.18,-0.04l0.38,-0.3l0.29,-1.24l-0.32,-1.64l0.14,-0.87l0.82,-0.31l0.45,2.48l2.28,1.02l1.77,-0.38l4.14,0.1l0.38,-0.36l0.18,-1.66l-0.5,-0.65l1.37,-0.29l2.25,-1.99l2.7,-1.62l1.93,0.62l1.8,-0.98l0.79,1.14l-0.68,0.91l0.26,0.63l2.42,0.36l0.09,0.47l-0.83,0.75l0.13,1.07l-1.52,-0.29l-3.24,1.86l-0.13,1.78l-1.32,2.14l-0.18,1.39l-0.93,1.82l-1.64,-0.5l-0.52,0.37l-0.09,2.63l-0.56,1.11l0.19,0.81l-0.53,0.27l-1.18,-3.73l-1.08,-0.27l-0.38,0.31l-0.24,1.0l-0.66,-0.66l0.54,-1.06l1.22,-0.34l1.15,-2.25l-0.24,-0.56l-1.57,-0.47l-4.34,-0.28l-0.18,-1.56l-0.35,-0.35l-1.11,-0.12l-1.91,-1.12l-0.56,0.17l-0.88,1.82l0.11,0.49l1.36,1.07l-1.09,0.69l-0.69,1.11l0.18,0.56l1.24,0.57l-0.32,1.54l0.85,1.94l0.36,2.01l-0.22,0.59l-4.58,0.52l-0.33,0.42l0.13,1.8l-1.17,1.36l-3.65,1.81l-2.79,3.03l-4.32,3.28l-0.18,1.27l-4.65,1.79l-0.77,2.16l0.64,5.3l-1.06,2.49l-0.01,3.94l-1.24,0.28l-1.14,1.93l0.39,0.84l-1.68,0.53l-1.04,1.83l-0.65,0.47l-2.06,-2.05l-2.1,-6.02l-2.2,-3.64l-1.05,-4.75l-2.29,-3.57l-1.76,-8.2l0.01,-3.11l-0.49,-2.53l-0.55,-0.29l-3.53,1.52l-1.53,-0.27l-2.86,-2.77l0.85,-0.67l0.08,-0.55l-0.74,-1.03l-2.67,-2.06l1.24,-1.32l5.34,0.01l0.39,-0.49l-0.5,-2.29l-1.42,-1.46l-0.27,-1.93l-1.43,-1.2l2.31,-2.37l3.05,0.06l2.62,-2.85l1.6,-2.81l2.4,-2.73l0.07,-2.04l1.97,-1.48l-0.02,-0.65l-1.93,-1.31l-0.82,-1.78l-0.8,-2.21l0.9,-0.89l3.59,0.65l2.92,-0.42l2.33,-2.19l2.31,2.85l-0.24,2.13l0.99,1.59l-0.05,0.82l-1.34,-0.28l-0.47,0.48l0.7,3.06l2.62,1.99l2.99,1.65Z","name":"India"},"TZ":{"path":"M495.56,296.42l2.8,-3.12l-0.02,-0.81l-0.64,-1.3l0.68,-0.52l0.14,-1.47l-0.76,-1.25l0.31,-0.11l2.26,0.03l-0.51,2.76l0.76,1.3l0.5,0.12l1.05,-0.53l1.19,-0.12l0.61,0.24l1.43,-0.62l0.1,-0.67l-0.71,-0.62l1.57,-1.7l8.65,4.86l0.32,1.53l3.34,2.33l-1.05,2.8l0.13,1.61l1.63,1.12l-0.6,1.76l-0.01,2.33l1.89,4.03l0.57,0.43l-1.46,1.08l-2.61,0.94l-1.43,-0.04l-1.06,0.77l-2.29,0.36l-2.87,-0.68l-0.83,0.07l-0.63,-0.75l-0.31,-2.78l-1.32,-1.35l-3.25,-0.77l-3.96,-1.58l-1.18,-2.41l-0.32,-1.75l-1.76,-1.49l0.42,-1.05l-0.44,-0.89l0.08,-0.96l-0.46,-0.58l0.06,-0.56Z","name":"Tanzania"},"AZ":{"path":"M539.29,175.73l1.33,0.32l1.94,-1.8l2.3,3.34l1.43,0.43l-1.26,0.15l-0.35,0.32l-0.8,3.14l-0.99,0.96l0.05,1.11l-1.26,-1.13l0.7,-1.18l-0.04,-0.47l-0.74,-0.86l-1.48,0.15l-2.34,1.71l-0.03,-1.27l-2.03,-1.35l0.47,-0.62l-0.08,-0.56l-1.03,-0.79l0.29,-0.43l-0.14,-0.58l-1.13,-0.86l1.89,0.68l1.69,0.06l0.37,-0.87l-0.81,-1.37l0.42,0.06l1.63,1.72ZM533.78,180.57l0.61,0.46l0.69,-0.0l0.59,1.15l-0.68,-0.15l-1.21,-1.45Z","name":"Azerbaijan"},"IE":{"path":"M405.08,135.42l0.35,2.06l-1.75,2.78l-4.22,1.88l-2.84,-0.4l1.73,-3.0l-1.18,-3.53l4.6,-3.74l0.32,1.15l-0.49,1.74l0.4,0.51l1.47,-0.04l1.6,0.6Z","name":"Ireland"},"ID":{"path":"M756.47,287.89l0.69,4.01l2.79,1.78l0.51,-0.1l2.04,-2.59l2.71,-1.43l2.05,-0.0l3.9,1.73l2.46,0.45l0.08,15.12l-1.75,-1.54l-2.54,-0.51l-0.88,0.71l-2.32,0.06l0.69,-1.33l1.45,-0.64l0.23,-0.46l-0.65,-2.74l-1.24,-2.21l-5.04,-2.29l-2.09,-0.23l-3.68,-2.27l-0.55,0.13l-0.65,1.07l-0.52,0.12l-0.55,-1.89l-1.21,-0.78l1.84,-0.62l1.72,0.05l0.39,-0.52l-0.21,-0.66l-0.38,-0.28l-3.45,-0.0l-1.13,-1.48l-2.1,-0.43l-0.52,-0.6l2.69,-0.48l1.28,-0.78l3.66,0.94l0.3,0.71ZM757.91,300.34l-0.62,0.82l-0.1,-0.8l0.59,-1.12l0.13,1.1ZM747.38,292.98l0.34,0.72l-1.22,-0.57l-4.68,-0.1l0.27,-0.62l2.78,-0.09l2.52,0.67ZM741.05,285.25l-0.67,-2.88l0.64,-2.01l0.41,0.86l1.21,0.18l0.16,0.7l-0.1,1.68l-0.84,-0.16l-0.46,0.3l-0.34,1.34ZM739.05,293.5l-0.5,0.44l-1.34,-0.36l-0.17,-0.37l1.73,-0.08l0.27,0.36ZM721.45,284.51l-0.19,1.97l2.24,2.23l0.54,0.02l1.27,-1.07l2.75,-0.5l-0.9,1.21l-2.11,0.93l-0.16,0.6l2.22,3.01l-0.3,1.07l1.36,1.74l-2.26,0.85l-0.28,-0.31l0.12,-1.19l-1.64,-1.34l0.17,-2.23l-0.56,-0.39l-1.67,0.76l-0.23,0.39l0.3,6.17l-1.1,0.25l-0.69,-0.47l0.64,-2.21l-0.39,-2.42l-0.39,-0.34l-0.8,-0.01l-0.58,-1.29l0.98,-1.6l0.35,-1.96l1.32,-3.87ZM728.59,296.27l0.38,0.49l-0.02,1.28l-0.88,0.49l-0.53,-0.47l1.04,-1.79ZM729.04,286.98l0.27,-0.05l-0.02,0.13l-0.24,-0.08ZM721.68,284.05l0.16,-0.32l1.89,-1.65l1.83,0.68l3.16,0.35l2.94,-0.1l2.39,-1.66l-1.73,2.13l-1.66,0.43l-2.41,-0.48l-4.17,0.13l-2.39,0.51ZM730.55,310.47l1.11,-1.93l2.03,-0.82l0.08,0.62l-1.45,1.67l-1.77,0.46ZM728.12,305.88l-0.1,0.38l-3.46,0.66l-2.91,-0.27l-0.0,-0.25l1.54,-0.41l1.66,0.73l1.67,-0.19l1.61,-0.65ZM722.9,310.24l-0.64,0.03l-2.26,-1.2l1.11,-0.24l1.78,1.41ZM716.26,305.77l0.88,0.51l1.28,-0.17l0.2,0.35l-4.65,0.73l0.39,-0.67l1.15,-0.02l0.75,-0.73ZM711.66,293.84l-0.38,-0.16l-2.54,1.01l-1.12,-1.44l-1.69,-0.13l-1.16,-0.75l-3.04,0.77l-1.1,-1.15l-3.31,-0.11l-0.35,-3.05l-1.35,-0.95l-1.11,-1.98l-0.33,-2.06l0.27,-2.14l0.9,-1.01l0.37,1.15l2.09,1.49l1.53,-0.48l1.82,0.08l1.38,-1.19l1.0,-0.18l2.28,0.67l2.26,-0.53l1.52,-3.64l1.01,-0.99l0.78,-2.57l4.1,0.3l-1.11,1.77l0.02,0.46l1.7,2.2l-0.23,1.39l2.07,1.71l-2.33,0.42l-0.88,1.9l0.1,2.05l-2.4,1.9l-0.06,2.45l-0.7,2.79ZM692.58,302.03l0.35,0.26l4.8,0.25l0.78,-0.97l4.17,1.09l1.13,1.68l3.69,0.45l2.13,1.04l-1.8,0.6l-2.77,-0.99l-4.8,-0.12l-5.24,-1.41l-1.84,-0.25l-1.11,0.3l-4.26,-0.97l-0.7,-1.14l-1.59,-0.13l1.18,-1.65l2.74,0.13l2.87,1.13l0.26,0.68ZM685.53,299.17l-2.22,0.04l-2.06,-2.03l-3.15,-2.01l-2.93,-3.51l-3.11,-5.33l-2.2,-2.12l-1.64,-4.06l-2.32,-1.69l-1.27,-2.07l-1.96,-1.5l-2.51,-2.65l-0.11,-0.66l4.81,0.53l2.15,2.38l3.31,2.74l2.35,2.66l2.7,0.17l1.95,1.59l1.54,2.17l1.59,0.95l-0.84,1.71l0.15,0.52l1.44,0.87l0.79,0.1l0.4,1.58l0.87,1.4l1.96,0.39l1.0,1.31l-0.6,3.01l-0.09,3.5Z","name":"Indonesia"},"UA":{"path":"M492.5,162.44l1.28,-2.49l1.82,0.19l0.66,-0.23l0.09,-0.71l-0.25,-0.75l-0.79,-0.72l-0.33,-1.21l-0.86,-0.62l-0.02,-1.19l-1.13,-0.86l-1.15,-0.19l-2.04,-1.0l-1.66,0.32l-0.66,0.47l-0.92,-0.0l-0.84,0.78l-2.48,0.7l-1.18,-0.71l-3.07,-0.36l-0.89,0.43l-0.24,-0.55l-1.11,-0.7l0.35,-0.93l1.26,-1.02l-0.54,-1.23l2.04,-2.43l1.4,-0.62l0.25,-1.19l-1.04,-2.39l0.83,-0.13l1.28,-0.84l1.8,-0.07l2.47,0.26l2.86,0.81l1.88,0.06l0.86,0.44l1.04,-0.41l0.77,0.66l2.18,-0.15l0.92,0.3l0.52,-0.34l0.15,-1.53l0.56,-0.54l2.85,-0.05l0.84,-0.72l3.04,-0.18l1.23,1.46l-0.48,0.77l0.21,1.03l0.36,0.32l1.8,0.14l0.93,2.08l3.18,1.15l1.94,-0.45l1.67,1.49l1.4,-0.03l3.35,0.96l0.02,0.54l-0.96,1.59l0.47,1.97l-0.26,0.7l-2.36,0.28l-1.29,0.89l-0.23,1.38l-1.83,0.27l-1.58,0.97l-2.41,0.21l-2.16,1.17l-0.21,0.38l0.34,2.26l1.23,0.75l2.13,-0.08l-0.14,0.31l-2.65,0.53l-3.23,1.69l-0.87,-0.39l0.42,-1.1l-0.25,-0.52l-2.21,-0.73l2.35,-1.06l0.12,-0.65l-0.93,-0.82l-3.62,-0.74l-0.13,-0.89l-0.46,-0.34l-2.61,0.59l-0.91,1.69l-1.71,2.04l-0.86,-0.4l-1.62,0.27Z","name":"Ukraine"},"QA":{"path":"M549.33,221.64l-0.76,-0.23l-0.14,-1.64l0.84,-1.29l0.47,0.52l0.04,1.34l-0.45,1.3Z","name":"Qatar"},"MZ":{"path":"M508.58,318.75l-0.34,-2.57l0.51,-2.05l3.55,0.63l2.5,-0.38l1.02,-0.76l1.49,0.01l2.74,-0.98l1.66,-1.2l0.5,9.24l0.41,1.23l-0.68,1.67l-0.93,1.71l-1.5,1.5l-5.16,2.28l-2.78,2.73l-1.02,0.53l-1.71,1.8l-0.98,0.57l-0.35,2.41l1.16,1.94l0.49,2.17l0.43,0.31l-0.06,2.06l-0.39,1.17l0.5,0.72l-0.25,0.73l-0.92,0.83l-5.12,2.39l-1.22,1.36l0.21,1.13l0.58,0.39l-0.11,0.72l-1.22,-0.01l-0.73,-2.97l0.42,-3.09l-1.78,-5.37l2.49,-2.81l0.69,-1.89l0.44,-0.43l0.28,-1.53l-0.39,-0.93l0.59,-3.65l-0.01,-3.26l-1.49,-1.16l-1.2,-0.22l-1.74,-1.17l-1.92,0.01l-0.29,-2.08l7.06,-1.96l1.28,1.09l0.89,-0.1l0.67,0.44l0.1,0.73l-0.51,1.29l0.19,1.81l1.75,1.83l0.65,-0.13l0.71,-1.65l1.17,-0.86l-0.26,-3.47l-1.05,-1.85l-1.04,-0.94Z","name":"Mozambique"}},"height":440.7063107441331,"projection":{"type":"mill","centralMeridian":11.5},"width":900}`),worldMill={name,content},CountryMap=({mapColor:ln})=>jsxRuntimeExports.jsx(distExports.VectorMap,{map:worldMill,backgroundColor:"transparent",markerStyle:{initial:{fill:"#465FFF",r:4}},markersSelectable:!0,markers:[{latLng:[37.2580397,-104.657039],name:"United States",style:{fill:"#465FFF",borderWidth:1,borderColor:"white",stroke:"#383f47"}},{latLng:[20.7504374,73.7276105],name:"India",style:{fill:"#465FFF",borderWidth:1,borderColor:"white"}},{latLng:[53.613,-11.6368],name:"United Kingdom",style:{fill:"#465FFF",borderWidth:1,borderColor:"white"}},{latLng:[-25.0304388,115.2092761],name:"Sweden",style:{fill:"#465FFF",borderWidth:1,borderColor:"white",strokeOpacity:0}}],zoomOnScroll:!1,zoomMax:12,zoomMin:1,zoomAnimate:!0,zoomStep:1.5,regionStyle:{initial:{fill:ln||"#D0D5DD",fillOpacity:1,fontFamily:"Outfit",stroke:"none",strokeWidth:0,strokeOpacity:0},hover:{fillOpacity:.7,cursor:"pointer",fill:"#465fff",stroke:"none"},selected:{fill:"#465FFF"},selectedHover:{}},regionLabelStyle:{initial:{fill:"#35373e",fontWeight:500,fontSize:"13px",stroke:"none"},hover:{},selected:{},selectedHover:{}}});function DemographicCard(){const[ln,rn]=reactExports.useState(!1);function an(){rn(!ln)}function sn(){rn(!1)}return jsxRuntimeExports.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 dark:border-gray-800 dark:bg-white/[0.03] sm:p-6",children:[jsxRuntimeExports.jsxs("div",{className:"flex justify-between",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{className:"text-lg font-semibold text-gray-800 dark:text-white/90",children:"Customers Demographic"}),jsxRuntimeExports.jsx("p",{className:"mt-1 text-gray-500 text-theme-sm dark:text-gray-400",children:"Number of customer based on country"})]}),jsxRuntimeExports.jsxs("div",{className:"relative inline-block",children:[jsxRuntimeExports.jsx("button",{className:"dropdown-toggle",onClick:an,children:jsxRuntimeExports.jsx(SvgMoredot,{className:"text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 size-6"})}),jsxRuntimeExports.jsxs(Dropdown,{isOpen:ln,onClose:sn,className:"w-40 p-2",children:[jsxRuntimeExports.jsx(DropdownItem,{onItemClick:sn,className:"flex w-full font-normal text-left text-gray-500 rounded-lg hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-gray-300",children:"View More"}),jsxRuntimeExports.jsx(DropdownItem,{onItemClick:sn,className:"flex w-full font-normal text-left text-gray-500 rounded-lg hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-gray-300",children:"Delete"})]})]})]}),jsxRuntimeExports.jsx("div",{className:"px-4 py-6 my-6 overflow-hidden border border-gary-200 rounded-2xl dark:border-gray-800 sm:px-6",children:jsxRuntimeExports.jsx("div",{id:"mapOne",className:"mapOne map-btn -mx-4 -my-6 h-[212px] w-[252px] 2xsm:w-[307px] xsm:w-[358px] sm:-mx-6 md:w-[668px] lg:w-[634px] xl:w-[393px] 2xl:w-[554px]",children:jsxRuntimeExports.jsx(CountryMap,{})})}),jsxRuntimeExports.jsxs("div",{className:"space-y-5",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx("div",{className:"items-center w-full rounded-full max-w-8",children:jsxRuntimeExports.jsx("img",{src:"./images/country/country-01.svg",alt:"usa"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"font-semibold text-gray-800 text-theme-sm dark:text-white/90",children:"USA"}),jsxRuntimeExports.jsx("span",{className:"block text-gray-500 text-theme-xs dark:text-gray-400",children:"2,379 Customers"})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex w-full max-w-[140px] items-center gap-3",children:[jsxRuntimeExports.jsx("div",{className:"relative block h-2 w-full max-w-[100px] rounded-sm bg-gray-200 dark:bg-gray-800",children:jsxRuntimeExports.jsx("div",{className:"absolute left-0 top-0 flex h-full w-[79%] items-center justify-center rounded-sm bg-brand-500 text-xs font-medium text-white"})}),jsxRuntimeExports.jsx("p",{className:"font-medium text-gray-800 text-theme-sm dark:text-white/90",children:"79%"})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx("div",{className:"items-center w-full rounded-full max-w-8",children:jsxRuntimeExports.jsx("img",{src:"./images/country/country-02.svg",alt:"france"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"font-semibold text-gray-800 text-theme-sm dark:text-white/90",children:"France"}),jsxRuntimeExports.jsx("span",{className:"block text-gray-500 text-theme-xs dark:text-gray-400",children:"589 Customers"})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex w-full max-w-[140px] items-center gap-3",children:[jsxRuntimeExports.jsx("div",{className:"relative block h-2 w-full max-w-[100px] rounded-sm bg-gray-200 dark:bg-gray-800",children:jsxRuntimeExports.jsx("div",{className:"absolute left-0 top-0 flex h-full w-[23%] items-center justify-center rounded-sm bg-brand-500 text-xs font-medium text-white"})}),jsxRuntimeExports.jsx("p",{className:"font-medium text-gray-800 text-theme-sm dark:text-white/90",children:"23%"})]})]})]})]})}function Home(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"React.js Ecommerce Dashboard | TailAdmin - React.js Admin Dashboard Template",description:"This is React.js Ecommerce Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-12 gap-4 md:gap-6",children:[jsxRuntimeExports.jsxs("div",{className:"col-span-12 space-y-6 xl:col-span-7",children:[jsxRuntimeExports.jsx(EcommerceMetrics,{}),jsxRuntimeExports.jsx(MonthlySalesChart,{})]}),jsxRuntimeExports.jsx("div",{className:"col-span-12 xl:col-span-5",children:jsxRuntimeExports.jsx(MonthlyTarget,{})}),jsxRuntimeExports.jsx("div",{className:"col-span-12",children:jsxRuntimeExports.jsx(StatisticsChart,{})}),jsxRuntimeExports.jsx("div",{className:"col-span-12 xl:col-span-5",children:jsxRuntimeExports.jsx(DemographicCard,{})}),jsxRuntimeExports.jsx("div",{className:"col-span-12 xl:col-span-7",children:jsxRuntimeExports.jsx(RecentOrders,{})})]})]})}function Toast({type:ln,message:rn,onClose:an}){return reactExports.useEffect(()=>{const sn=setTimeout(()=>{an()},5e3);return()=>clearTimeout(sn)},[an]),jsxRuntimeExports.jsx("div",{className:"fixed top-4 right-4 z-[9999] max-w-md animate-slide-in",children:jsxRuntimeExports.jsx(Alert,{variant:ln,title:ln.charAt(0).toUpperCase()+ln.slice(1),message:rn})})}function ProtectedRoute({children:ln}){return localStorage.getItem("admin_token")?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ln}):jsxRuntimeExports.jsx(Navigate,{to:"/",replace:!0})}function ClientProtectedRoute({children:ln}){return localStorage.getItem("client_token")?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ln}):jsxRuntimeExports.jsx(Navigate,{to:"/client/login",replace:!0})}const ClientAuthContext=reactExports.createContext(void 0);function ClientAuthProvider({children:ln}){const[rn,an]=reactExports.useState([]),sn=async()=>{try{const on=await axiosInstance.get("/client/modules"),un=(Array.isArray(on.data)?on.data:on.data.data||[]).map(pn=>{var fn;return{...pn,slug:pn.slug||((fn=pn.code)==null?void 0:fn.toLowerCase().replace(/[^a-z0-9]+/g,"-"))||pn.name.toLowerCase().replace(/[^a-z0-9]+/g,"-")}});an(un),localStorage.setItem("client_modules",JSON.stringify(un))}catch(on){console.error("Failed to load modules:",on)}};return reactExports.useEffect(()=>{const on=localStorage.getItem("client_modules");on&&an(JSON.parse(on)),localStorage.getItem("client_token")&&sn()},[]),jsxRuntimeExports.jsx(ClientAuthContext.Provider,{value:{enabledModules:rn,setEnabledModules:an,loadModules:sn},children:ln})}function useClientAuth(){const ln=reactExports.useContext(ClientAuthContext);if(!ln)throw new Error("useClientAuth must be used within ClientAuthProvider");return ln}function ModuleAccessGuard({children:ln}){const{moduleSlug:rn}=useParams(),an=useLocation(),{enabledModules:sn,loadModules:on}=useClientAuth(),[cn,un]=reactExports.useState(!0),[pn,fn]=reactExports.useState(!1);if(reactExports.useEffect(()=>{(async()=>{pn||(await on(),fn(!0)),un(!1)})()},[rn,pn,on]),cn)return jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-12",children:jsxRuntimeExports.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-brand-500"})});if(an.pathname==="/client/whatsapp")return sn.some(vn=>vn.code==="whatsapp")?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ln}):jsxRuntimeExports.jsx(Navigate,{to:"/client/dashboard",replace:!0});const mn=sn.some(xn=>xn.slug===rn);return!pn||sn.length===0?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ln}):mn?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ln}):jsxRuntimeExports.jsx(Navigate,{to:"/client/dashboard",replace:!0})}function Login(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"Super Admin Login | TailAdmin",description:"Super Admin Login Page"}),jsxRuntimeExports.jsx(AuthLayout,{children:jsxRuntimeExports.jsx(SignInForm,{})})]})}function Dashboard(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"Super Admin Dashboard | TailAdmin",description:"Super Admin Dashboard"}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-12 gap-4 md:gap-6",children:[jsxRuntimeExports.jsxs("div",{className:"col-span-12 space-y-6 xl:col-span-7",children:[jsxRuntimeExports.jsx(EcommerceMetrics,{}),jsxRuntimeExports.jsx(MonthlySalesChart,{})]}),jsxRuntimeExports.jsx("div",{className:"col-span-12 xl:col-span-5",children:jsxRuntimeExports.jsx(MonthlyTarget,{})}),jsxRuntimeExports.jsx("div",{className:"col-span-12",children:jsxRuntimeExports.jsx(StatisticsChart,{})}),jsxRuntimeExports.jsx("div",{className:"col-span-12 xl:col-span-5",children:jsxRuntimeExports.jsx(DemographicCard,{})}),jsxRuntimeExports.jsx("div",{className:"col-span-12 xl:col-span-7",children:jsxRuntimeExports.jsx(RecentOrders,{})})]})]})}function Clients(){const[ln,rn]=reactExports.useState([]),[an,sn]=reactExports.useState(!0),[on,cn]=reactExports.useState({}),[un,pn]=reactExports.useState(null),[fn,mn]=reactExports.useState({show:!1,clientId:null,clientName:""}),[xn,vn]=reactExports.useState(!1),[yn,wn]=reactExports.useState(null);reactExports.useEffect(()=>{An()},[]);const An=async()=>{try{const In=await axiosInstance.get("/admin/clients");rn(In.data.data)}catch{showToast("error","Failed to load clients")}finally{sn(!1)}},Cn=In=>!In||In.length<=16?In:`${In.substring(0,8)}***${In.substring(In.length-4)}`,kn=In=>{cn(jn=>({...jn,[In]:!jn[In]}))},Mn=(In,jn)=>{navigator.clipboard.writeText(jn),pn(In),setTimeout(()=>pn(null),2e3)},Tn=(In,jn)=>{mn({show:!0,clientId:In,clientName:jn})},On=async()=>{var In,jn;if(fn.clientId){vn(!0);try{await axiosInstance.delete(`/admin/clients/${fn.clientId}`),showToast("success","Client deleted successfully"),mn({show:!1,clientId:null,clientName:""}),An()}catch(Fn){const Un=((jn=(In=Fn.response)==null?void 0:In.data)==null?void 0:jn.message)||"Failed to delete client";showToast("error",Un)}finally{vn(!1)}}},Pn=async In=>{var jn,Fn;wn(In);try{await axiosInstance.patch(`/admin/clients/${In}/whatsapp/disconnect`),showToast("success","WhatsApp disconnected successfully"),An()}catch(Un){const Yn=((Fn=(jn=Un.response)==null?void 0:jn.data)==null?void 0:Fn.message)||"Failed to disconnect WhatsApp";showToast("error",Yn)}finally{wn(null)}},Nn=In=>{const jn={connected:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200",disconnected:"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300",expired:"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"},Fn={connected:"Connected",disconnected:"Not Connected",expired:"Expired"};return{class:jn[In]||jn.disconnected,label:Fn[In]||"Not Connected"}};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"Clients | Super Admin",description:"Manage all clients"}),jsxRuntimeExports.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:"Clients"}),jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:"Manage all your clients"})]}),jsxRuntimeExports.jsxs(Link,{to:"/admin/clients/create",className:"inline-flex items-center gap-2 rounded-lg bg-brand-500 px-4 py-2.5 text-white font-medium hover:bg-brand-600 transition-colors",children:[jsxRuntimeExports.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"Add Client"]})]}),jsxRuntimeExports.jsx(ComponentCard,{title:"All Clients",children:an?jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-12",children:jsxRuntimeExports.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-brand-500"})}):ln.length===0?jsxRuntimeExports.jsx("div",{className:"text-center py-12",children:jsxRuntimeExports.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"No clients found"})}):jsxRuntimeExports.jsx("div",{className:"overflow-x-auto",children:jsxRuntimeExports.jsxs("table",{className:"w-full",children:[jsxRuntimeExports.jsx("thead",{className:"bg-gray-50 dark:bg-gray-900",children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase",children:"Company Name"}),jsxRuntimeExports.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase",children:"Email"}),jsxRuntimeExports.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase",children:"Mobile"}),jsxRuntimeExports.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase",children:"Modules"}),jsxRuntimeExports.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase",children:"Plan"}),jsxRuntimeExports.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase",children:"Status"}),jsxRuntimeExports.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase",children:"WhatsApp"}),jsxRuntimeExports.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase",children:"API Key"}),jsxRuntimeExports.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase",children:"Actions"})]})}),jsxRuntimeExports.jsx("tbody",{className:"divide-y divide-gray-200 dark:divide-gray-700",children:ln.map(In=>jsxRuntimeExports.jsxs("tr",{className:"hover:bg-gray-50 dark:hover:bg-gray-900",children:[jsxRuntimeExports.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:jsxRuntimeExports.jsx("div",{className:"text-sm font-medium text-gray-900 dark:text-white",children:In.company_name})}),jsxRuntimeExports.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:jsxRuntimeExports.jsx("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:In.email})}),jsxRuntimeExports.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900 dark:text-white",children:In.mobile}),jsxRuntimeExports.jsx("td",{className:"px-4 py-4",children:In.modules&&In.modules.length>0?jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap gap-1",title:In.modules.length>2?In.modules.join(", "):void 0,children:[In.modules.slice(0,2).map((jn,Fn)=>jsxRuntimeExports.jsx("span",{className:"px-1.5 py-0.5 text-xs font-medium bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200 rounded",children:jn.replace("_"," ")},Fn)),In.modules.length>2&&jsxRuntimeExports.jsxs("span",{className:"px-1.5 py-0.5 text-xs font-medium bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300 rounded",children:["+",In.modules.length-2]})]}):jsxRuntimeExports.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:"No modules"})}),jsxRuntimeExports.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900 dark:text-white",children:In.price_plan}),jsxRuntimeExports.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:jsxRuntimeExports.jsx("span",{className:`px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full ${In.is_active?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"}`,children:In.is_active?"Active":"Inactive"})}),jsxRuntimeExports.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:In.whatsapp_status?jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntimeExports.jsx("span",{className:`px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full ${Nn(In.whatsapp_status).class}`,children:Nn(In.whatsapp_status).label}),In.whatsapp_status==="connected"&&jsxRuntimeExports.jsx("button",{onClick:()=>Pn(In.id),disabled:yn===In.id,className:"text-xs text-red-600 hover:text-red-700 dark:text-red-400 dark:hover:text-red-300 disabled:opacity-50",children:yn===In.id?"Disconnecting...":"Force Disconnect"})]}):jsxRuntimeExports.jsx("span",{className:"px-2 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300",children:"Not Connected"})}),jsxRuntimeExports.jsx("td",{className:"px-4 py-4 whitespace-nowrap",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntimeExports.jsx("code",{className:"text-xs font-mono text-gray-900 dark:text-white",children:on[In.id]?In.api_key:Cn(In.api_key)}),jsxRuntimeExports.jsx("button",{onClick:()=>kn(In.id),className:"p-1 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200",title:on[In.id]?"Hide API Key":"Show API Key",children:on[In.id]?jsxRuntimeExports.jsx(SvgEyeClose,{className:"w-4 h-4"}):jsxRuntimeExports.jsx(SvgEye,{className:"w-4 h-4"})}),jsxRuntimeExports.jsx("button",{onClick:()=>Mn(In.id,In.api_key),className:"p-1 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200",title:"Copy API Key",children:jsxRuntimeExports.jsx(SvgCopy,{className:`w-4 h-4 ${un===In.id?"text-green-600":""}`})})]})}),jsxRuntimeExports.jsx("td",{className:"px-4 py-4 whitespace-nowrap",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsxs(Link,{to:`/admin/clients/edit/${In.id}`,className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-lg text-sm font-medium text-blue-600 hover:bg-blue-50 dark:text-blue-400 dark:hover:bg-blue-900/20 transition-colors",children:[jsxRuntimeExports.jsx(SvgPencil,{className:"w-4 h-4"}),"Edit"]}),jsxRuntimeExports.jsx("button",{onClick:()=>Tn(In.id,In.company_name),className:"p-2 rounded-lg bg-red-500 hover:bg-red-500 text-white transition-colors",title:"Delete Client",children:jsxRuntimeExports.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntimeExports.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})})})]})})]},In.id))})]})})}),fn.show&&jsxRuntimeExports.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:jsxRuntimeExports.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg p-6 max-w-md w-full mx-4",children:[jsxRuntimeExports.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Delete Client"}),jsxRuntimeExports.jsxs("p",{className:"text-gray-600 dark:text-gray-400 mb-6",children:["Are you sure you want to delete ",jsxRuntimeExports.jsx("span",{className:"font-semibold",children:fn.clientName}),"? This action cannot be undone."]}),jsxRuntimeExports.jsxs("div",{className:"flex gap-3 justify-end",children:[jsxRuntimeExports.jsx("button",{onClick:()=>mn({show:!1,clientId:null,clientName:""}),className:"px-4 py-2 text-gray-700 bg-gray-100 rounded-lg hover:bg-gray-200 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-600",disabled:xn,children:"Cancel"}),jsxRuntimeExports.jsx("button",{onClick:On,className:"px-4 py-2 text-white bg-red-500 rounded-lg hover:bg-red-600 disabled:opacity-50 disabled:cursor-not-allowed",disabled:xn,children:xn?"Deleting...":"Delete"})]})]})})]})}function CreateClient(){const ln=useNavigate(),[rn,an]=reactExports.useState(!1),[sn,on]=reactExports.useState(!1),[cn,un]=reactExports.useState(""),[pn,fn]=reactExports.useState(!1),[mn,xn]=reactExports.useState([]),[vn,yn]=reactExports.useState([]),[wn,An]=reactExports.useState(""),[Cn,kn]=reactExports.useState({name:"",company_name:"",email:"",mobile:"",alternate_mobile:"",gst_number:"",address:"",password:""}),[Mn,Tn]=reactExports.useState(""),[On,Pn]=reactExports.useState("");reactExports.useEffect(()=>{Nn()},[]);const Nn=async()=>{try{const Yn=await axiosInstance.get("/admin/modules");xn(Yn.data.data||Yn.data||[])}catch{showToast("error","Failed to load modules")}},In=async Yn=>{var Qn,ir;if(Yn.preventDefault(),Cn.password!==Mn){Pn("Passwords do not match");return}if(vn.length===0){An("Please select at least one module");return}Pn(""),An(""),an(!0);try{const er=await axiosInstance.post("/admin/clients",{...Cn,modules:vn});un(er.data.data.api_key),on(!0),showToast("success","Client created successfully")}catch(er){const tr=((ir=(Qn=er.response)==null?void 0:Qn.data)==null?void 0:ir.message)||"Failed to create client";showToast("error",tr)}finally{an(!1)}},jn=Yn=>{kn({...Cn,[Yn.target.name]:Yn.target.value})},Fn=()=>{navigator.clipboard.writeText(cn),fn(!0),setTimeout(()=>fn(!1),2e3)},Un=Yn=>{yn(Qn=>Qn.includes(Yn)?Qn.filter(ir=>ir!==Yn):[...Qn,Yn]),An("")};return sn?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"Client Created | Super Admin",description:"Client created successfully"}),jsxRuntimeExports.jsxs("div",{className:"max-w-2xl mx-auto",children:[jsxRuntimeExports.jsxs("div",{className:"mb-6 text-center",children:[jsxRuntimeExports.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-4 bg-green-100 rounded-full dark:bg-green-900",children:jsxRuntimeExports.jsx(SvgCheckCircle,{className:"w-8 h-8 text-green-600 dark:text-green-400"})}),jsxRuntimeExports.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:"Client Created Successfully!"}),jsxRuntimeExports.jsxs("p",{className:"mt-2 text-gray-600 dark:text-gray-400",children:["Company: ",Cn.company_name]})]}),jsxRuntimeExports.jsxs(ComponentCard,{title:"API Key",children:[jsxRuntimeExports.jsx("div",{className:"p-4 mb-4 bg-blue-50 border border-blue-200 rounded-lg dark:bg-blue-900/20 dark:border-blue-800",children:jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-blue-800 dark:text-blue-200",children:"ℹ️ Save this API key securely. You can view it anytime from the clients list."})}),jsxRuntimeExports.jsx("div",{className:"p-4 bg-gray-50 border border-gray-200 rounded-lg dark:bg-gray-800 dark:border-gray-700",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between gap-4",children:[jsxRuntimeExports.jsx("code",{className:"flex-1 text-sm font-mono text-gray-900 break-all dark:text-white",children:cn}),jsxRuntimeExports.jsx("button",{onClick:Fn,className:"flex items-center gap-2 px-4 py-2 text-sm font-medium text-white bg-brand-500 rounded-lg hover:bg-brand-600 transition-colors",children:pn?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SvgCheckCircle,{className:"w-4 h-4"}),"Copied"]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SvgCopy,{className:"w-4 h-4"}),"Copy"]})})]})}),jsxRuntimeExports.jsxs("div",{className:"mt-6 flex gap-4",children:[jsxRuntimeExports.jsx("button",{onClick:()=>ln("/admin/clients"),className:"flex-1 px-6 py-3 text-white font-medium bg-brand-500 rounded-lg hover:bg-brand-600 transition-colors",children:"Go to Clients"}),jsxRuntimeExports.jsx("button",{onClick:()=>{on(!1),kn({name:"",company_name:"",email:"",mobile:"",alternate_mobile:"",gst_number:"",address:"",password:""}),Tn(""),Pn(""),yn([]),An("")},className:"px-6 py-3 font-medium text-gray-900 border border-gray-300 rounded-lg hover:bg-gray-50 dark:border-gray-600 dark:text-white dark:hover:bg-gray-800 transition-colors",children:"Create Another"})]})]})]})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"Create Client | Super Admin",description:"Add new client"}),jsxRuntimeExports.jsxs("div",{className:"mb-6",children:[jsxRuntimeExports.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:"Create New Client"}),jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:"Add a new client to the system"})]}),jsxRuntimeExports.jsx(ComponentCard,{title:"Client Information",children:jsxRuntimeExports.jsxs("form",{onSubmit:In,children:[jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:["Name ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsx("input",{type:"text",name:"name",value:Cn.name,onChange:jn,placeholder:"Enter name",className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500",required:!0})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:["Company Name ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsx("input",{type:"text",name:"company_name",value:Cn.company_name,onChange:jn,placeholder:"Enter company name",className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500",required:!0})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:["Email ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsx("input",{type:"email",name:"email",value:Cn.email,onChange:jn,placeholder:"Enter email address",className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500",required:!0})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:["Mobile Number ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsx("input",{type:"tel",name:"mobile",value:Cn.mobile,onChange:jn,placeholder:"Enter mobile number",className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500",required:!0})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:"Alternate Mobile"}),jsxRuntimeExports.jsx("input",{type:"tel",name:"alternate_mobile",value:Cn.alternate_mobile,onChange:jn,placeholder:"Enter alternate mobile",className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:"GST Number"}),jsxRuntimeExports.jsx("input",{type:"text",name:"gst_number",value:Cn.gst_number,onChange:jn,placeholder:"Enter GST number",className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:["Password ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsx("input",{type:"password",name:"password",value:Cn.password,onChange:jn,placeholder:"Enter password",className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500",required:!0})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:["Confirm Password ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsx("input",{type:"password",value:Mn,onChange:Yn=>{Tn(Yn.target.value),Pn("")},placeholder:"Confirm password",className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500",required:!0}),On&&jsxRuntimeExports.jsx("p",{className:"mt-1 text-sm text-red-500",children:On})]}),jsxRuntimeExports.jsxs("div",{className:"md:col-span-2",children:[jsxRuntimeExports.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:"Address"}),jsxRuntimeExports.jsx("textarea",{name:"address",value:Cn.address,onChange:jn,placeholder:"Enter company address",rows:4,className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500"})]}),jsxRuntimeExports.jsxs("div",{className:"md:col-span-2",children:[jsxRuntimeExports.jsxs("label",{className:"mb-3 block text-sm font-medium text-gray-900 dark:text-white",children:["Module Access ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3",children:mn.map(Yn=>jsxRuntimeExports.jsxs("label",{className:"flex items-center gap-3 p-3 border border-gray-300 rounded-lg cursor-pointer hover:bg-gray-50 dark:border-gray-600 dark:hover:bg-gray-800 transition-colors",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:vn.includes(Yn.code),onChange:()=>Un(Yn.code),className:"w-4 h-4 text-brand-500 border-gray-300 rounded focus:ring-brand-500 dark:border-gray-600 dark:bg-gray-700"}),jsxRuntimeExports.jsx("span",{className:"text-sm text-gray-900 dark:text-white",children:Yn.name})]},Yn.code))}),wn&&jsxRuntimeExports.jsx("p",{className:"mt-2 text-sm text-red-500",children:wn})]})]}),jsxRuntimeExports.jsxs("div",{className:"mt-6 flex gap-4",children:[jsxRuntimeExports.jsx("button",{type:"submit",disabled:rn,className:"rounded-lg bg-brand-500 px-6 py-3 text-white font-medium hover:bg-brand-600 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:rn?"Creating...":"Create Client"}),jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>ln("/admin/clients"),className:"rounded-lg border border-gray-300 px-6 py-3 text-gray-900 font-medium hover:bg-gray-50 dark:border-gray-600 dark:text-white dark:hover:bg-gray-800 transition-colors",children:"Cancel"})]})]})})]})}function EditClient(){const{id:ln}=useParams(),rn=useNavigate(),[an,sn]=reactExports.useState(!0),[on,cn]=reactExports.useState(!1),[un,pn]=reactExports.useState(!1),[fn,mn]=reactExports.useState(!1),[xn,vn]=reactExports.useState(""),[yn,wn]=reactExports.useState([]),[An,Cn]=reactExports.useState([]),[kn,Mn]=reactExports.useState({name:"",company_name:"",email:"",mobile:"",alternate_mobile:"",gst_number:"",address:"",price_plan:"",is_active:!0});reactExports.useEffect(()=>{(async()=>{try{const Fn=await axiosInstance.get(`/admin/clients/${ln}`),Un=Fn.data.data||Fn.data;Mn({name:Un.name||"",company_name:Un.company_name||"",email:Un.email||"",mobile:Un.mobile||"",alternate_mobile:Un.alternate_mobile||"",gst_number:Un.gst_number||"",address:Un.address||"",price_plan:Un.price_plan||"",is_active:Un.is_active??!0}),vn(Un.api_key||"");const Yn=await axiosInstance.get("/admin/modules"),Qn=Yn.data.data||Yn.data||[];wn(Qn);const ir=Un.modules||[];Cn(ir)}catch{showToast("error","Failed to load client")}finally{sn(!1)}})()},[ln]);const Tn=async jn=>{var Fn,Un;jn.preventDefault(),cn(!0);try{const Yn=An;await axiosInstance.put(`/admin/clients/${ln}`,{...kn,modules:Yn}),showToast("success","Client updated successfully"),rn("/admin/clients")}catch(Yn){const Qn=((Un=(Fn=Yn.response)==null?void 0:Fn.data)==null?void 0:Un.message)||"Failed to update client";showToast("error",Qn)}finally{cn(!1)}},On=jn=>{Mn({...kn,[jn.target.name]:jn.target.value})},Pn=()=>{xn&&(navigator.clipboard.writeText(xn),mn(!0),setTimeout(()=>mn(!1),2e3))},Nn=jn=>jn.length<=10?jn:`${jn.substring(0,10)}${"*".repeat(jn.length-16)}${jn.substring(jn.length-6)}`,In=jn=>{Cn(Fn=>Fn.includes(jn)?Fn.filter(Un=>Un!==jn):[...Fn,jn])};return an?jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-12",children:jsxRuntimeExports.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-brand-500"})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"Edit Client | Super Admin",description:"Edit client details"}),jsxRuntimeExports.jsxs("div",{className:"mb-6",children:[jsxRuntimeExports.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:"Edit Client"}),jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:"Update client information"})]}),jsxRuntimeExports.jsx(ComponentCard,{title:"Client Information",children:jsxRuntimeExports.jsxs("form",{onSubmit:Tn,children:[jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:["Name ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsx("input",{type:"text",name:"name",value:kn.name,onChange:On,placeholder:"Enter name",className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500",required:!0})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:["Company Name ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsx("input",{type:"text",name:"company_name",value:kn.company_name,onChange:On,placeholder:"Enter company name",className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500",required:!0})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:["Email ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsx("input",{type:"email",name:"email",value:kn.email,onChange:On,placeholder:"Enter email address",className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500",required:!0})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:["Mobile Number ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsx("input",{type:"tel",name:"mobile",value:kn.mobile,onChange:On,placeholder:"Enter mobile number",className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500",required:!0})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:"Alternate Mobile"}),jsxRuntimeExports.jsx("input",{type:"tel",name:"alternate_mobile",value:kn.alternate_mobile,onChange:On,placeholder:"Enter alternate mobile",className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:"GST Number"}),jsxRuntimeExports.jsx("input",{type:"text",name:"gst_number",value:kn.gst_number,onChange:On,placeholder:"Enter GST number",className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:["Price Plan ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsx("input",{type:"text",name:"price_plan",value:kn.price_plan,onChange:On,placeholder:"Enter price plan",className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500",required:!0})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:["Status ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsxs("select",{name:"is_active",value:kn.is_active?"true":"false",onChange:jn=>Mn({...kn,is_active:jn.target.value==="true"}),className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500",required:!0,children:[jsxRuntimeExports.jsx("option",{value:"true",children:"Active"}),jsxRuntimeExports.jsx("option",{value:"false",children:"Inactive"})]})]}),jsxRuntimeExports.jsxs("div",{className:"md:col-span-2",children:[jsxRuntimeExports.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:"Address"}),jsxRuntimeExports.jsx("textarea",{name:"address",value:kn.address,onChange:On,placeholder:"Enter company address",rows:4,className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500"})]}),jsxRuntimeExports.jsxs("div",{className:"md:col-span-2",children:[jsxRuntimeExports.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:"API Key (Read Only)"}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("input",{type:"text",value:un?xn:Nn(xn),readOnly:!0,className:"flex-1 rounded-lg border border-gray-300 bg-gray-50 px-4 py-3 text-gray-900 font-mono text-sm dark:border-gray-600 dark:bg-gray-800 dark:text-white cursor-not-allowed"}),jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>pn(!un),className:"p-3 border border-gray-300 rounded-lg hover:bg-gray-50 dark:border-gray-600 dark:hover:bg-gray-800 transition-colors",title:un?"Hide API Key":"Show API Key",children:un?jsxRuntimeExports.jsx(SvgEyeClose,{className:"w-5 h-5 text-gray-700 dark:text-gray-300"}):jsxRuntimeExports.jsx(SvgEye,{className:"w-5 h-5 text-gray-700 dark:text-gray-300"})}),jsxRuntimeExports.jsxs("button",{type:"button",onClick:Pn,className:"flex items-center gap-2 px-4 py-3 text-sm font-medium text-white bg-brand-500 rounded-lg hover:bg-brand-600 transition-colors",children:[jsxRuntimeExports.jsx(SvgCopy,{className:"w-4 h-4"}),fn?"Copied":"Copy"]})]})]}),jsxRuntimeExports.jsxs("div",{className:"md:col-span-2",children:[jsxRuntimeExports.jsx("label",{className:"mb-3 block text-sm font-medium text-gray-900 dark:text-white",children:"Module Access"}),jsxRuntimeExports.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:yn.map(jn=>jsxRuntimeExports.jsxs("label",{className:"flex items-center gap-3 p-3 border border-gray-300 rounded-lg cursor-pointer hover:bg-gray-50 dark:border-gray-600 dark:hover:bg-gray-800 transition-colors",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:An.includes(jn.code),onChange:()=>In(jn.code),className:"w-4 h-4 text-brand-500 border-gray-300 rounded focus:ring-brand-500 dark:border-gray-600 dark:bg-gray-700"}),jsxRuntimeExports.jsx("span",{className:"text-sm text-gray-900 dark:text-white",children:jn.name})]},jn.code))})]})]}),jsxRuntimeExports.jsxs("div",{className:"mt-6 flex gap-4",children:[jsxRuntimeExports.jsx("button",{type:"submit",disabled:on,className:"rounded-lg bg-brand-500 px-6 py-3 text-white font-medium hover:bg-brand-600 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:on?"Updating...":"Update Client"}),jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>rn("/admin/clients"),className:"rounded-lg border border-gray-300 px-6 py-3 text-gray-900 font-medium hover:bg-gray-50 dark:border-gray-600 dark:text-white dark:hover:bg-gray-800 transition-colors",children:"Cancel"})]})]})})]})}function SupportTicket(){const[ln,rn]=reactExports.useState([]),[an,sn]=reactExports.useState(!0),on=!!localStorage.getItem("admin_token");reactExports.useEffect(()=>{cn()},[]);const cn=async()=>{try{const fn=on?"/admin/support/tickets":"/client/support/tickets",mn=await axiosInstance.get(fn);rn(mn.data.data||[])}catch{showToast("error","Failed to load tickets")}finally{sn(!1)}},un=fn=>{const mn=fn.toLowerCase();return mn==="open"?"bg-blue-50 text-blue-600 dark:bg-blue-900/20 dark:text-blue-400":mn==="in_progress"?"bg-yellow-50 text-yellow-700 dark:bg-yellow-900/20 dark:text-yellow-400":mn==="closed"?"bg-green-50 text-green-600 dark:bg-green-900/20 dark:text-green-400":"bg-gray-50 text-gray-600 dark:bg-gray-900/20 dark:text-gray-400"},pn=fn=>{const mn=fn.toLowerCase();return mn==="high"?"bg-red-50 text-red-600 dark:bg-red-900/20 dark:text-red-400":mn==="medium"?"bg-orange-50 text-orange-600 dark:bg-orange-900/20 dark:text-orange-400":"bg-gray-50 text-gray-600 dark:bg-gray-900/20 dark:text-gray-400"};return an?jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-12",children:jsxRuntimeExports.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600"})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"Support Tickets",description:"Manage support tickets"}),jsxRuntimeExports.jsxs("div",{className:"mb-8 flex items-start justify-between",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h1",{className:"text-4xl font-bold text-gray-900 dark:text-white",children:"Support Tickets"}),jsxRuntimeExports.jsx("p",{className:"text-gray-500 dark:text-gray-400 mt-2",children:on?"Manage all support tickets":"View and manage your support requests"})]}),!on&&jsxRuntimeExports.jsx(Link,{to:"/support-ticket/create",className:"inline-flex items-center gap-2 rounded-lg bg-blue-600 px-6 py-3 text-white font-medium hover:bg-blue-700 transition-colors shadow-sm",children:"Create Ticket"})]}),jsxRuntimeExports.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700",children:[jsxRuntimeExports.jsx("div",{className:"px-6 py-5 border-b border-gray-200 dark:border-gray-700",children:jsxRuntimeExports.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"All Tickets"})}),ln.length===0?jsxRuntimeExports.jsx("p",{className:"text-center text-gray-500 dark:text-gray-400 py-12",children:"No tickets found"}):jsxRuntimeExports.jsx("div",{className:"overflow-x-auto",children:jsxRuntimeExports.jsxs("table",{className:"w-full",children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{className:"bg-gray-50 dark:bg-gray-900/50",children:[jsxRuntimeExports.jsx("th",{className:"px-6 py-4 text-left text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Ticket ID"}),jsxRuntimeExports.jsx("th",{className:"px-6 py-4 text-left text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Subject"}),on&&jsxRuntimeExports.jsx("th",{className:"px-6 py-4 text-left text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Client"}),jsxRuntimeExports.jsx("th",{className:"px-6 py-4 text-left text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Priority"}),jsxRuntimeExports.jsx("th",{className:"px-6 py-4 text-left text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Status"}),jsxRuntimeExports.jsx("th",{className:"px-6 py-4 text-left text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Created Date"}),jsxRuntimeExports.jsx("th",{className:"px-6 py-4 text-left text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Actions"})]})}),jsxRuntimeExports.jsx("tbody",{className:"divide-y divide-gray-200 dark:divide-gray-700",children:ln.map(fn=>jsxRuntimeExports.jsxs("tr",{className:"hover:bg-gray-50 dark:hover:bg-gray-900/30 transition-colors",children:[jsxRuntimeExports.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:jsxRuntimeExports.jsxs("span",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:["#",fn.id]})}),jsxRuntimeExports.jsx("td",{className:"px-6 py-4",children:jsxRuntimeExports.jsx("span",{className:"text-sm font-medium text-gray-900 dark:text-white",children:fn.subject})}),on&&jsxRuntimeExports.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:jsxRuntimeExports.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:fn.client||"N/A"})}),jsxRuntimeExports.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:jsxRuntimeExports.jsx("span",{className:`px-3 py-1.5 inline-flex text-xs font-semibold rounded-full ${pn(fn.priority)}`,children:fn.priority.charAt(0).toUpperCase()+fn.priority.slice(1)})}),jsxRuntimeExports.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:jsxRuntimeExports.jsx("span",{className:`px-3 py-1.5 inline-flex text-xs font-semibold rounded-full ${un(fn.status)}`,children:fn.status==="in_progress"?"In Progress":fn.status.charAt(0).toUpperCase()+fn.status.slice(1)})}),jsxRuntimeExports.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-600 dark:text-gray-400",children:new Date(fn.created_at).toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"})}),jsxRuntimeExports.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:jsxRuntimeExports.jsx(Link,{to:`/support-ticket/view/${fn.id}`,className:"text-sm font-medium text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300",children:"View"})})]},fn.id))})]})})]})]})}function CreateTicket(){const ln=useNavigate(),[rn,an]=reactExports.useState(!1),[sn,on]=reactExports.useState({subject:"",priority:"medium",message:""}),cn=async pn=>{pn.preventDefault(),an(!0);try{await axiosInstance.post("/client/support/tickets",sn),showToast("success","Ticket created successfully"),ln("/support-ticket")}catch{showToast("error","Failed to create ticket")}finally{an(!1)}},un=pn=>{on({...sn,[pn.target.name]:pn.target.value})};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"Create Ticket",description:"Create new support ticket"}),jsxRuntimeExports.jsx("button",{onClick:()=>ln("/support-ticket"),className:"text-sm text-blue-600 hover:text-blue-700 dark:text-blue-400 mb-6 inline-flex items-center gap-1",children:"← Back to Tickets"}),jsxRuntimeExports.jsxs("div",{className:"mb-6",children:[jsxRuntimeExports.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:"Create Support Ticket"}),jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:"Create a new support ticket"})]}),jsxRuntimeExports.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700",children:[jsxRuntimeExports.jsx("div",{className:"px-6 py-5 border-b border-gray-200 dark:border-gray-700",children:jsxRuntimeExports.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Ticket Information"})}),jsxRuntimeExports.jsxs("form",{onSubmit:cn,className:"p-6",children:[jsxRuntimeExports.jsxs("div",{className:"space-y-6",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-semibold text-gray-900 dark:text-white",children:["Subject ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsx("input",{type:"text",name:"subject",value:sn.subject,onChange:un,placeholder:"Enter ticket subject",className:"w-full rounded-lg border border-gray-300 bg-white dark:bg-gray-900 px-4 py-3 text-gray-900 dark:text-white outline-none focus:border-blue-500 dark:border-gray-600 dark:focus:border-blue-500",required:!0})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-semibold text-gray-900 dark:text-white",children:["Priority ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsxs("select",{name:"priority",value:sn.priority,onChange:un,className:"w-full rounded-lg border border-gray-300 bg-white dark:bg-gray-900 px-4 py-3 text-gray-900 dark:text-white outline-none focus:border-blue-500 dark:border-gray-600 dark:focus:border-blue-500",required:!0,children:[jsxRuntimeExports.jsx("option",{value:"low",children:"Low"}),jsxRuntimeExports.jsx("option",{value:"medium",children:"Medium"}),jsxRuntimeExports.jsx("option",{value:"high",children:"High"})]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-semibold text-gray-900 dark:text-white",children:["Message ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsx("textarea",{name:"message",value:sn.message,onChange:un,placeholder:"Describe the issue in detail",rows:6,className:"w-full rounded-lg border border-gray-300 bg-white dark:bg-gray-900 px-4 py-3 text-gray-900 dark:text-white outline-none focus:border-blue-500 dark:border-gray-600 dark:focus:border-blue-500",required:!0})]})]}),jsxRuntimeExports.jsxs("div",{className:"mt-6 flex gap-4",children:[jsxRuntimeExports.jsx("button",{type:"submit",disabled:rn,className:"rounded-lg bg-blue-600 px-6 py-3 text-white font-medium hover:bg-blue-700 disabled:opacity-50 transition-colors",children:rn?"Creating...":"Create Ticket"}),jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>ln("/support-ticket"),className:"rounded-lg border border-gray-300 px-6 py-3 text-gray-900 font-medium hover:bg-gray-50 dark:border-gray-600 dark:text-white dark:hover:bg-gray-800 transition-colors",children:"Cancel"})]})]})]})]})}function ViewTicket(){const{id:ln}=useParams(),rn=useNavigate(),[an,sn]=reactExports.useState(null),[on,cn]=reactExports.useState(!0),[un,pn]=reactExports.useState(""),[fn,mn]=reactExports.useState(!1),[xn,vn]=reactExports.useState(""),yn=!!localStorage.getItem("admin_token");reactExports.useEffect(()=>{wn()},[ln]);const wn=async()=>{try{const Tn=yn?`/admin/support/tickets/${ln}`:`/client/support/tickets/${ln}`,On=await axiosInstance.get(Tn),Pn=On.data.data||On.data;sn(Pn),vn(Pn.status)}catch{showToast("error","Failed to load ticket")}finally{cn(!1)}},An=async Tn=>{if(Tn.preventDefault(),!!un.trim()){mn(!0);try{const On=yn?`/admin/support/tickets/${ln}/reply`:`/client/support/tickets/${ln}/reply`;await axiosInstance.post(On,{message:un}),showToast("success","Reply sent successfully"),pn(""),wn()}catch{showToast("error","Failed to send reply")}finally{mn(!1)}}},Cn=async()=>{if(yn)try{await axiosInstance.patch(`/admin/support/tickets/${ln}/status`,{status:xn}),showToast("success","Status updated successfully"),wn()}catch{showToast("error","Failed to update status")}};if(on)return jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-12",children:jsxRuntimeExports.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600"})});if(!an)return jsxRuntimeExports.jsx("div",{className:"text-center py-12",children:jsxRuntimeExports.jsx("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:"Ticket not found"})});const kn=Tn=>{const On=Tn.toLowerCase();return On==="open"?"bg-blue-50 text-blue-600 dark:bg-blue-900/20 dark:text-blue-400":On==="in_progress"?"bg-yellow-50 text-yellow-700 dark:bg-yellow-900/20 dark:text-yellow-400":On==="closed"?"bg-green-50 text-green-600 dark:bg-green-900/20 dark:text-green-400":"bg-gray-50 text-gray-600 dark:bg-gray-900/20 dark:text-gray-400"},Mn=Tn=>{const On=Tn.toLowerCase();return On==="high"?"bg-red-50 text-red-600 dark:bg-red-900/20 dark:text-red-400":On==="medium"?"bg-orange-50 text-orange-600 dark:bg-orange-900/20 dark:text-orange-400":"bg-gray-50 text-gray-600 dark:bg-gray-900/20 dark:text-gray-400"};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:`Ticket #${an.id}`,description:"View support ticket"}),jsxRuntimeExports.jsx("button",{onClick:()=>rn("/support-ticket"),className:"text-sm text-blue-600 hover:text-blue-700 dark:text-blue-400 mb-6 inline-flex items-center gap-1",children:"← Back to Tickets"}),jsxRuntimeExports.jsxs("div",{className:"mb-6",children:[jsxRuntimeExports.jsxs("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:["Ticket #",an.id]}),jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:an.subject})]}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[jsxRuntimeExports.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[jsxRuntimeExports.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700",children:[jsxRuntimeExports.jsx("div",{className:"px-6 py-5 border-b border-gray-200 dark:border-gray-700",children:jsxRuntimeExports.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Ticket Details"})}),jsxRuntimeExports.jsx("div",{className:"p-6",children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{className:"text-sm font-semibold text-gray-500 dark:text-gray-400 mb-2",children:"Description"}),jsxRuntimeExports.jsx("p",{className:"text-gray-900 dark:text-white",children:an.description||an.message})]})})]}),jsxRuntimeExports.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700",children:[jsxRuntimeExports.jsx("div",{className:"px-6 py-5 border-b border-gray-200 dark:border-gray-700",children:jsxRuntimeExports.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Replies"})}),jsxRuntimeExports.jsxs("div",{className:"p-6 space-y-6",children:[an.replies&&an.replies.length>0?an.replies.map(Tn=>jsxRuntimeExports.jsxs("div",{className:"border-b border-gray-200 dark:border-gray-700 pb-4 last:border-0",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between mb-2",children:[jsxRuntimeExports.jsx("span",{className:"font-semibold text-gray-900 dark:text-white",children:Tn.author}),jsxRuntimeExports.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:new Date(Tn.created_at).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})})]}),jsxRuntimeExports.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:Tn.message})]},Tn.id)):jsxRuntimeExports.jsx("p",{className:"text-gray-500 dark:text-gray-400 text-center py-4",children:"No replies yet"}),jsxRuntimeExports.jsxs("form",{onSubmit:An,className:"mt-6",children:[jsxRuntimeExports.jsx("label",{className:"mb-2 block text-sm font-semibold text-gray-900 dark:text-white",children:"Add Reply"}),jsxRuntimeExports.jsx("textarea",{value:un,onChange:Tn=>pn(Tn.target.value),placeholder:"Type your reply here...",rows:4,className:"w-full rounded-lg border border-gray-300 bg-white dark:bg-gray-900 px-4 py-3 text-gray-900 dark:text-white outline-none focus:border-blue-500 dark:border-gray-600 dark:focus:border-blue-500",required:!0}),jsxRuntimeExports.jsx("button",{type:"submit",disabled:fn,className:"mt-3 rounded-lg bg-blue-600 px-6 py-2.5 text-white font-medium hover:bg-blue-700 disabled:opacity-50 transition-colors",children:fn?"Sending...":"Send Reply"})]})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"space-y-6",children:[jsxRuntimeExports.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700",children:[jsxRuntimeExports.jsx("div",{className:"px-6 py-5 border-b border-gray-200 dark:border-gray-700",children:jsxRuntimeExports.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Ticket Information"})}),jsxRuntimeExports.jsxs("div",{className:"p-6 space-y-4",children:[yn&&an.client&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{className:"text-sm font-semibold text-gray-500 dark:text-gray-400 mb-1",children:"Client"}),jsxRuntimeExports.jsx("p",{className:"text-gray-900 dark:text-white",children:an.client})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{className:"text-sm font-semibold text-gray-500 dark:text-gray-400 mb-1",children:"Status"}),jsxRuntimeExports.jsx("span",{className:`inline-block px-3 py-1.5 text-xs font-semibold rounded-full ${kn(an.status)}`,children:an.status==="in_progress"?"In Progress":an.status.charAt(0).toUpperCase()+an.status.slice(1)})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{className:"text-sm font-semibold text-gray-500 dark:text-gray-400 mb-1",children:"Priority"}),jsxRuntimeExports.jsx("span",{className:`inline-block px-3 py-1.5 text-xs font-semibold rounded-full ${Mn(an.priority)}`,children:an.priority.charAt(0).toUpperCase()+an.priority.slice(1)})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{className:"text-sm font-semibold text-gray-500 dark:text-gray-400 mb-1",children:"Created Date"}),jsxRuntimeExports.jsx("p",{className:"text-gray-900 dark:text-white",children:new Date(an.created_at).toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"})})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{className:"text-sm font-semibold text-gray-500 dark:text-gray-400 mb-1",children:"Last Update"}),jsxRuntimeExports.jsx("p",{className:"text-gray-900 dark:text-white",children:new Date(an.updated_at).toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"})})]})]})]}),yn&&jsxRuntimeExports.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700",children:[jsxRuntimeExports.jsx("div",{className:"px-6 py-5 border-b border-gray-200 dark:border-gray-700",children:jsxRuntimeExports.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Actions"})}),jsxRuntimeExports.jsxs("div",{className:"p-6 space-y-3",children:[jsxRuntimeExports.jsxs("select",{value:xn,onChange:Tn=>vn(Tn.target.value),className:"w-full rounded-lg border border-gray-300 bg-white dark:bg-gray-900 px-4 py-2.5 text-gray-900 dark:text-white outline-none focus:border-blue-500 dark:border-gray-600 dark:focus:border-blue-500",children:[jsxRuntimeExports.jsx("option",{value:"open",children:"Open"}),jsxRuntimeExports.jsx("option",{value:"in_progress",children:"In Progress"}),jsxRuntimeExports.jsx("option",{value:"closed",children:"Closed"})]}),jsxRuntimeExports.jsx("button",{onClick:Cn,className:"w-full rounded-lg bg-blue-600 px-4 py-2.5 text-white font-medium hover:bg-blue-700 transition-colors",children:"Update Status"})]})]})]})]})]})}function ClientLogin(){const[ln,rn]=reactExports.useState(!1),[an,sn]=reactExports.useState(""),[on,cn]=reactExports.useState(""),[un,pn]=reactExports.useState(!1),fn=useNavigate(),{loadModules:mn}=useClientAuth(),xn=async vn=>{var yn,wn;vn.preventDefault(),pn(!0);try{const An=await axiosInstance.post("/client/login",{email:an,password:on});localStorage.setItem("client_token",An.data.token),await mn(),showToast("success","Login successful"),fn("/client/dashboard")}catch(An){showToast("error",((wn=(yn=An.response)==null?void 0:yn.data)==null?void 0:wn.message)||"Login failed")}finally{pn(!1)}};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"Client Login | TailAdmin",description:"Client Login Page"}),jsxRuntimeExports.jsx(AuthLayout,{children:jsxRuntimeExports.jsx("div",{className:"flex flex-col flex-1",children:jsxRuntimeExports.jsx("div",{className:"flex flex-col justify-center flex-1 w-full max-w-md mx-auto",children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"mb-5 sm:mb-8",children:[jsxRuntimeExports.jsx("h1",{className:"mb-2 font-semibold text-gray-800 text-title-sm dark:text-white/90 sm:text-title-md",children:"Client Login"}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Enter your credentials to access your account"})]}),jsxRuntimeExports.jsx("form",{onSubmit:xn,children:jsxRuntimeExports.jsxs("div",{className:"space-y-6",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:["Email ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsx("input",{type:"email",value:an,onChange:vn=>sn(vn.target.value),placeholder:"Enter your email",className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500",required:!0})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:["Password ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("input",{type:ln?"text":"password",value:on,onChange:vn=>cn(vn.target.value),placeholder:"Enter your password",className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white dark:focus:border-brand-500",required:!0}),jsxRuntimeExports.jsx("span",{onClick:()=>rn(!ln),className:"absolute z-30 -translate-y-1/2 cursor-pointer right-4 top-1/2",children:ln?jsxRuntimeExports.jsx(SvgEye,{className:"fill-gray-500 dark:fill-gray-400 size-5"}):jsxRuntimeExports.jsx(SvgEyeClose,{className:"fill-gray-500 dark:fill-gray-400 size-5"})})]})]}),jsxRuntimeExports.jsx("button",{type:"submit",className:"w-full rounded-lg bg-brand-500 px-4 py-3 text-sm text-white shadow-theme-xs hover:bg-brand-600 disabled:bg-brand-300 disabled:cursor-not-allowed disabled:opacity-50",disabled:un,children:un?"Signing in...":"Sign in"})]})})]})})})})]})}function UsageOverview({monthlyLimit:ln,usedCalls:rn,remainingCalls:an}){const sn=ln>0?rn/ln*100:0,on={chart:{type:"radialBar",fontFamily:"Outfit, sans-serif"},plotOptions:{radialBar:{startAngle:-135,endAngle:135,hollow:{margin:0,size:"70%",background:"transparent"},track:{background:"#e5e7eb",strokeWidth:"100%",margin:0},dataLabels:{show:!0,name:{offsetY:-10,show:!0,color:"#6B7280",fontSize:"14px"},value:{formatter:un=>`${un.toFixed(1)}%`,color:"#111827",fontSize:"32px",fontWeight:"bold",show:!0,offsetY:5}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:sn>80?["#ef4444"]:sn>50?["#f59e0b"]:["#22c55e"],inverseColors:!1,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},labels:["Usage"],colors:[sn>80?"#dc2626":sn>50?"#f59e0b":"#465fff"]},cn={chart:{type:"bar",fontFamily:"Outfit, sans-serif",toolbar:{show:!1}},plotOptions:{bar:{horizontal:!0,borderRadius:8,dataLabels:{position:"top"}}},dataLabels:{enabled:!0,formatter:un=>un.toLocaleString(),offsetX:30,style:{fontSize:"12px",colors:["#111827"],fontWeight:"600"}},colors:["#465fff","#22c55e"],xaxis:{categories:["Used","Remaining"],labels:{formatter:un=>Number(un).toLocaleString()}},grid:{xaxis:{lines:{show:!1}}},tooltip:{y:{formatter:un=>`${un.toLocaleString()} calls`}}};return jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2 mb-6",children:[jsxRuntimeExports.jsxs("div",{className:"p-6 bg-white border border-gray-200 rounded-lg dark:bg-gray-800 dark:border-gray-700",children:[jsxRuntimeExports.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:"Usage Meter"}),jsxRuntimeExports.jsx(Chart,{options:on,series:[sn],type:"radialBar",height:280}),jsxRuntimeExports.jsx("div",{className:"mt-4 text-center",children:jsxRuntimeExports.jsxs("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:[jsxRuntimeExports.jsx("span",{className:"font-semibold text-gray-900 dark:text-white",children:rn.toLocaleString()})," of"," ",jsxRuntimeExports.jsx("span",{className:"font-semibold text-gray-900 dark:text-white",children:ln.toLocaleString()})," calls used"]})})]}),jsxRuntimeExports.jsxs("div",{className:"p-6 bg-white border border-gray-200 rounded-lg dark:bg-gray-800 dark:border-gray-700",children:[jsxRuntimeExports.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:"Call Distribution"}),jsxRuntimeExports.jsx(Chart,{options:cn,series:[{data:[rn,an]}],type:"bar",height:280}),jsxRuntimeExports.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-4 text-center",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:"Monthly Limit"}),jsxRuntimeExports.jsx("p",{className:"text-xl font-bold text-gray-900 dark:text-white",children:ln.toLocaleString()})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:"Remaining"}),jsxRuntimeExports.jsx("p",{className:"text-xl font-bold text-green-600",children:an.toLocaleString()})]})]})]})]})}function WhatsAppModule(){const[ln,rn]=reactExports.useState(null),[an,sn]=reactExports.useState(!0);reactExports.useEffect(()=>{on()},[]);const on=async()=>{try{const un=await axiosInstance.get("/client/whatsapp/status");rn(un.data)}catch{showToast("error","Failed to load WhatsApp status")}finally{sn(!1)}},cn=async()=>{var un,pn,fn,mn;try{const xn=await axiosInstance.get("/whatsapp/connect");xn.data.redirect_url&&(window.location.href=xn.data.redirect_url)}catch(xn){const vn=((pn=(un=xn.response)==null?void 0:un.data)==null?void 0:pn.message)||((mn=(fn=xn.response)==null?void 0:fn.data)==null?void 0:mn.error)||"Failed to connect WhatsApp";showToast("error",vn)}};return an?jsxRuntimeExports.jsx(ComponentCard,{title:"WhatsApp Cloud API",children:jsxRuntimeExports.jsx("div",{className:"flex items-center justify-center py-8",children:jsxRuntimeExports.jsx("div",{className:"w-8 h-8 border-4 border-brand-500 border-t-transparent rounded-full animate-spin"})})}):ln!=null&&ln.connected?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ComponentCard,{title:"WhatsApp Status",children:jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),jsxRuntimeExports.jsx("span",{className:"text-sm font-medium text-gray-900 dark:text-white",children:"Connected"})]}),jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsxs("div",{className:"flex justify-between text-sm",children:[jsxRuntimeExports.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"Phone Number"}),jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-900 dark:text-white",children:ln.phone_number})]}),jsxRuntimeExports.jsxs("div",{className:"flex justify-between text-sm",children:[jsxRuntimeExports.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"Connected Date"}),jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-900 dark:text-white",children:ln.connected_date?new Date(ln.connected_date).toLocaleDateString():"N/A"})]})]})]})}),jsxRuntimeExports.jsx(ComponentCard,{title:"WhatsApp Management",children:jsxRuntimeExports.jsx("nav",{className:"space-y-2",children:[{name:"Overview",icon:"📊"},{name:"Templates",icon:"📝"},{name:"Chat",icon:"💬"},{name:"Campaign",icon:"📢"}].map(un=>jsxRuntimeExports.jsxs("button",{disabled:!0,className:"w-full flex items-center gap-3 px-4 py-3 text-left text-sm font-medium text-gray-400 dark:text-gray-600 bg-gray-50 dark:bg-gray-800/50 rounded-lg cursor-not-allowed",children:[jsxRuntimeExports.jsx("span",{className:"text-lg",children:un.icon}),jsxRuntimeExports.jsx("span",{children:un.name}),jsxRuntimeExports.jsx("span",{className:"ml-auto text-xs bg-gray-200 dark:bg-gray-700 px-2 py-1 rounded",children:"Phase 2"})]},un.name))})})]}):jsxRuntimeExports.jsx(ComponentCard,{title:"Connect WhatsApp Cloud API",desc:"Connect your WhatsApp Business account to start sending messages and managing campaigns",children:jsxRuntimeExports.jsx("button",{onClick:cn,className:"w-full rounded-lg bg-brand-500 px-6 py-3 text-sm font-medium text-white hover:bg-brand-600 transition-colors",children:"Connect WhatsApp"})})}function ClientDashboard(){const[ln,rn]=reactExports.useState(null),[an,sn]=reactExports.useState(!0),{enabledModules:on}=useClientAuth(),cn=on.some(wn=>wn.code==="WHATSAPP"||wn.slug==="whatsapp");reactExports.useEffect(()=>{un()},[]);const un=async()=>{try{const wn=await axiosInstance.get("/client/dashboard/summary");rn(wn.data)}catch{showToast("error","Failed to load dashboard data")}finally{sn(!1)}};if(an)return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"Client Dashboard",description:"Client Dashboard"}),jsxRuntimeExports.jsx("div",{className:"flex items-center justify-center h-screen",children:jsxRuntimeExports.jsxs("div",{className:"text-center",children:[jsxRuntimeExports.jsx("div",{className:"w-16 h-16 border-4 border-brand-500 border-t-transparent rounded-full animate-spin mx-auto"}),jsxRuntimeExports.jsx("p",{className:"mt-4 text-gray-600 dark:text-gray-400",children:"Loading dashboard..."})]})})]});const pn=(ln==null?void 0:ln.face_register_count)||0,fn=(ln==null?void 0:ln.face_verify_count)||0,mn={chart:{fontFamily:"Outfit, sans-serif",type:"donut"},colors:["#465fff","#22c55e"],labels:["Face Register","Face Verify"],legend:{show:!0,position:"bottom"},plotOptions:{pie:{donut:{size:"65%",labels:{show:!0,total:{show:!0,label:"Total Calls",formatter:()=>`${(pn+fn).toLocaleString()}`}}}}},dataLabels:{enabled:!1},tooltip:{y:{formatter:wn=>`${wn.toLocaleString()} calls`}}},xn=[pn,fn],vn={legend:{show:!1},colors:["#465FFF"],chart:{fontFamily:"Outfit, sans-serif",height:300,type:"line",toolbar:{show:!1}},stroke:{curve:"smooth",width:3},fill:{type:"gradient",gradient:{opacityFrom:.55,opacityTo:0}},markers:{size:0,strokeColors:"#fff",strokeWidth:2,hover:{size:6}},grid:{xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}}},dataLabels:{enabled:!1},xaxis:{type:"category",categories:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],axisBorder:{show:!1},axisTicks:{show:!1}},yaxis:{labels:{style:{fontSize:"12px",colors:["#6B7280"]}}},tooltip:{y:{formatter:wn=>`${wn.toLocaleString()} calls`}}},yn=[{name:"API Usage",data:[120,150,180,200,170,190,210,230,250,220,240,(ln==null?void 0:ln.used_calls)||0]}];return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"Client Dashboard",description:"Client Dashboard"}),jsxRuntimeExports.jsxs("div",{className:"mb-6",children:[jsxRuntimeExports.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:"Dashboard"}),jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:"Welcome back to your dashboard"})]}),jsxRuntimeExports.jsx(UsageOverview,{monthlyLimit:(ln==null?void 0:ln.monthly_limit)||0,usedCalls:(ln==null?void 0:ln.used_calls)||0,remainingCalls:(ln==null?void 0:ln.remaining_calls)||0}),cn&&jsxRuntimeExports.jsx("div",{className:"mb-6",children:jsxRuntimeExports.jsx(WhatsAppModule,{})}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2",children:[jsxRuntimeExports.jsx(ComponentCard,{title:"API Usage Breakdown",children:jsxRuntimeExports.jsx("div",{className:"max-w-full overflow-x-auto",children:jsxRuntimeExports.jsx(Chart,{options:mn,series:xn,type:"donut",height:300})})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Usage Over Time",children:jsxRuntimeExports.jsx("div",{className:"max-w-full overflow-x-auto",children:jsxRuntimeExports.jsx(Chart,{options:vn,series:yn,type:"area",height:300})})})]})]})}function UsageStats({monthlyLimit:ln,usedCalls:rn,remainingCalls:an,showProgress:sn=!0}){const on=ln>0?rn/ln*100:0;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-3 mb-6",children:[jsxRuntimeExports.jsxs("div",{className:"p-6 bg-white border border-gray-200 rounded-lg dark:bg-gray-800 dark:border-gray-700",children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Monthly Limit"}),jsxRuntimeExports.jsx("p",{className:"text-3xl font-bold text-gray-900 dark:text-white mt-2",children:ln.toLocaleString()})]}),jsxRuntimeExports.jsxs("div",{className:"p-6 bg-white border border-gray-200 rounded-lg dark:bg-gray-800 dark:border-gray-700",children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Used"}),jsxRuntimeExports.jsx("p",{className:"text-3xl font-bold text-brand-500 mt-2",children:rn.toLocaleString()})]}),jsxRuntimeExports.jsxs("div",{className:"p-6 bg-white border border-gray-200 rounded-lg dark:bg-gray-800 dark:border-gray-700",children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Remaining"}),jsxRuntimeExports.jsx("p",{className:"text-3xl font-bold text-green-600 mt-2",children:an.toLocaleString()})]})]}),sn&&jsxRuntimeExports.jsxs("div",{className:"mb-6 p-6 bg-white border border-gray-200 rounded-lg dark:bg-gray-800 dark:border-gray-700",children:[jsxRuntimeExports.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:"Current Usage"}),jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsxs("div",{className:"flex justify-between text-sm",children:[jsxRuntimeExports.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"Usage Progress"}),jsxRuntimeExports.jsxs("span",{className:"font-semibold text-gray-900 dark:text-white",children:[on.toFixed(1),"%"]})]}),jsxRuntimeExports.jsx("div",{className:"w-full bg-gray-200 rounded-full h-4 dark:bg-gray-700",children:jsxRuntimeExports.jsx("div",{className:"h-4 rounded-full bg-brand-500 transition-all",style:{width:`${Math.min(on,100)}%`}})}),jsxRuntimeExports.jsxs("div",{className:"flex justify-between text-xs text-gray-500 dark:text-gray-400 mt-2",children:[jsxRuntimeExports.jsxs("span",{children:[rn.toLocaleString()," used"]}),jsxRuntimeExports.jsxs("span",{children:[an.toLocaleString()," remaining"]})]})]})]})]})}function ModuleOverview(){const{moduleSlug:ln}=useParams(),[rn,an]=reactExports.useState(null),[sn,on]=reactExports.useState(""),[cn,un]=reactExports.useState(!0),[pn,fn]=reactExports.useState(!1),[mn,xn]=reactExports.useState(!1);reactExports.useEffect(()=>{vn()},[ln]);const vn=async()=>{try{const An=await axiosInstance.get("/client/dashboard/summary");an(An.data),on(An.data.api_key||"")}catch{showToast("error","Failed to load module data")}finally{un(!1)}},yn=An=>!An||An.length<=10?An:`${An.substring(0,8)}${"*".repeat(Math.min(An.length-14,20))}${An.substring(An.length-6)}`,wn=()=>{sn&&(navigator.clipboard.writeText(sn),fn(!0),setTimeout(()=>fn(!1),2e3),showToast("success","API key copied to clipboard"))};return cn?jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-12",children:jsxRuntimeExports.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-brand-500"})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:`${ln} Overview`,description:"Module overview"}),jsxRuntimeExports.jsxs("div",{className:"mb-6",children:[jsxRuntimeExports.jsxs("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white capitalize",children:[ln==null?void 0:ln.replace(/-/g," ")," Overview"]}),jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:"Module statistics and API access"})]}),jsxRuntimeExports.jsx("div",{className:"mb-6",children:jsxRuntimeExports.jsxs(ComponentCard,{title:"API Key",children:[jsxRuntimeExports.jsx("div",{className:"p-4 mb-4 bg-blue-50 border border-blue-200 rounded-lg dark:bg-blue-900/20 dark:border-blue-800",children:jsxRuntimeExports.jsx("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"ℹ️ Keep your API key secure. Never expose it in client-side code."})}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx("code",{className:"flex-1 px-4 py-3 text-sm font-mono bg-gray-50 border border-gray-200 rounded-lg dark:bg-gray-800 dark:border-gray-700 text-gray-900 dark:text-white",children:mn?sn:yn(sn)}),jsxRuntimeExports.jsx("button",{onClick:()=>xn(!mn),className:"p-3 text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white transition-colors",title:mn?"Hide API key":"Show API key",children:mn?jsxRuntimeExports.jsx(SvgEyeClose,{className:"w-5 h-5"}):jsxRuntimeExports.jsx(SvgEye,{className:"w-5 h-5"})}),jsxRuntimeExports.jsx("button",{onClick:wn,className:"flex items-center gap-2 px-4 py-3 text-sm font-medium text-white bg-brand-500 rounded-lg hover:bg-brand-600 transition-colors",children:pn?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SvgCheckCircle,{className:"w-4 h-4"}),"Copied"]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SvgCopy,{className:"w-4 h-4"}),"Copy"]})})]})]})}),jsxRuntimeExports.jsx(UsageStats,{monthlyLimit:(rn==null?void 0:rn.monthly_limit)||0,usedCalls:(rn==null?void 0:rn.used_calls)||0,remainingCalls:(rn==null?void 0:rn.remaining_calls)||0}),jsxRuntimeExports.jsx(ComponentCard,{title:"Quick Links",children:jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[jsxRuntimeExports.jsxs("a",{href:`/client/modules/${ln}/usage`,className:"p-4 border border-gray-200 rounded-lg hover:border-brand-500 dark:border-gray-700 dark:hover:border-brand-500 transition-colors",children:[jsxRuntimeExports.jsx("h4",{className:"font-semibold text-gray-900 dark:text-white mb-1",children:"View Usage"}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Track your API consumption and statistics"})]}),jsxRuntimeExports.jsxs("a",{href:`/client/modules/${ln}/api-docs`,className:"p-4 border border-gray-200 rounded-lg hover:border-brand-500 dark:border-gray-700 dark:hover:border-brand-500 transition-colors",children:[jsxRuntimeExports.jsx("h4",{className:"font-semibold text-gray-900 dark:text-white mb-1",children:"API Documentation"}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Learn how to integrate the API"})]})]})})]})}function ModuleUsage(){const{moduleSlug:ln}=useParams(),[rn,an]=reactExports.useState(null),[sn,on]=reactExports.useState(!0);reactExports.useEffect(()=>{cn()},[ln]);const cn=async()=>{try{const wn=await axiosInstance.get("/client/dashboard/summary");an(wn.data)}catch{showToast("error","Failed to load usage data")}finally{on(!1)}};if(sn)return jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-12",children:jsxRuntimeExports.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-brand-500"})});const un=(rn==null?void 0:rn.face_register_count)||0,pn=(rn==null?void 0:rn.face_verify_count)||0,fn={colors:["#465fff","#22c55e"],chart:{fontFamily:"Outfit, sans-serif",type:"bar",height:300,toolbar:{show:!1}},plotOptions:{bar:{horizontal:!1,columnWidth:"50%",borderRadius:5,borderRadiusApplication:"end"}},dataLabels:{enabled:!1},stroke:{show:!0,width:4,colors:["transparent"]},xaxis:{categories:["Face Register","Face Verify"],axisBorder:{show:!1},axisTicks:{show:!1}},legend:{show:!1},yaxis:{title:{text:void 0}},grid:{yaxis:{lines:{show:!0}}},fill:{opacity:1},tooltip:{y:{formatter:wn=>`${wn.toLocaleString()} calls`}}},mn=[{name:"API Calls",data:[un,pn]}],xn={legend:{show:!1},colors:["#465FFF"],chart:{fontFamily:"Outfit, sans-serif",height:300,type:"line",toolbar:{show:!1}},stroke:{curve:"smooth",width:3},fill:{type:"gradient",gradient:{opacityFrom:.55,opacityTo:0}},markers:{size:0,strokeColors:"#fff",strokeWidth:2,hover:{size:6}},grid:{xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}}},dataLabels:{enabled:!1},xaxis:{type:"category",categories:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],axisBorder:{show:!1},axisTicks:{show:!1}},yaxis:{labels:{style:{fontSize:"12px",colors:["#6B7280"]}}},tooltip:{y:{formatter:wn=>`${wn.toLocaleString()} calls`}}},vn=[{name:"API Usage",data:[0,0,0,0,0,0,0,0,0,0,0,(rn==null?void 0:rn.used_calls)||0]}],yn=[{date:"2024-01-15",action:"Face Register",count:Math.floor(un*.3)},{date:"2024-01-14",action:"Face Verify",count:Math.floor(pn*.4)},{date:"2024-01-13",action:"Face Register",count:Math.floor(un*.2)},{date:"2024-01-12",action:"Face Verify",count:Math.floor(pn*.3)},{date:"2024-01-11",action:"Face Register",count:Math.floor(un*.5)}];return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:`${ln} Usage`,description:"Module usage statistics"}),jsxRuntimeExports.jsxs("div",{className:"mb-6",children:[jsxRuntimeExports.jsxs("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white capitalize",children:[ln==null?void 0:ln.replace(/-/g," ")," Usage"]}),jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:"Track your API consumption"})]}),jsxRuntimeExports.jsx(UsageStats,{monthlyLimit:(rn==null?void 0:rn.monthly_limit)||0,usedCalls:(rn==null?void 0:rn.used_calls)||0,remainingCalls:(rn==null?void 0:rn.remaining_calls)||0}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2 mb-6",children:[jsxRuntimeExports.jsx(ComponentCard,{title:"Face Register vs Verify",children:jsxRuntimeExports.jsx("div",{className:"max-w-full overflow-x-auto",children:jsxRuntimeExports.jsx(Chart,{options:fn,series:mn,type:"bar",height:300})})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Usage Over Time",children:jsxRuntimeExports.jsx("div",{className:"max-w-full overflow-x-auto",children:jsxRuntimeExports.jsx(Chart,{options:xn,series:vn,type:"area",height:300})})})]}),jsxRuntimeExports.jsx(ComponentCard,{title:"Usage History",children:yn.length===0?jsxRuntimeExports.jsx("p",{className:"text-center text-gray-500 dark:text-gray-400 py-8",children:"No usage history"}):jsxRuntimeExports.jsx("div",{className:"overflow-x-auto",children:jsxRuntimeExports.jsxs("table",{className:"w-full",children:[jsxRuntimeExports.jsx("thead",{className:"bg-gray-50 dark:bg-gray-800",children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{className:"px-4 py-3 text-left text-sm font-semibold text-gray-900 dark:text-white",children:"Date"}),jsxRuntimeExports.jsx("th",{className:"px-4 py-3 text-left text-sm font-semibold text-gray-900 dark:text-white",children:"Action"}),jsxRuntimeExports.jsx("th",{className:"px-4 py-3 text-left text-sm font-semibold text-gray-900 dark:text-white",children:"Count"})]})}),jsxRuntimeExports.jsx("tbody",{className:"divide-y divide-gray-200 dark:divide-gray-700",children:yn.map((wn,An)=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"px-4 py-3 text-sm text-gray-900 dark:text-white",children:wn.date}),jsxRuntimeExports.jsx("td",{className:"px-4 py-3 text-sm text-gray-900 dark:text-white",children:wn.action}),jsxRuntimeExports.jsx("td",{className:"px-4 py-3 text-sm text-gray-900 dark:text-white",children:wn.count.toLocaleString()})]},An))})]})})})]})}function ModuleApiDocs(){const{moduleSlug:ln}=useParams(),[rn,an]=reactExports.useState(null),[sn,on]=reactExports.useState(null),[cn,un]=reactExports.useState(!0);reactExports.useEffect(()=>{axiosInstance.get("/client/api-docs").then(fn=>{on(fn.data),un(!1)}).catch(()=>un(!1))},[]);const pn=(fn,mn)=>{navigator.clipboard.writeText(fn),an(mn),setTimeout(()=>an(null),2e3)};return cn?jsxRuntimeExports.jsx("div",{className:"text-center py-8",children:"Loading..."}):sn?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:`${ln} API Documentation`,description:"API documentation"}),jsxRuntimeExports.jsxs("div",{className:"mb-6",children:[jsxRuntimeExports.jsxs("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white capitalize",children:[ln==null?void 0:ln.replace("-"," ")," API Documentation"]}),jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:"Complete API reference and examples"})]}),jsxRuntimeExports.jsxs(ComponentCard,{title:"Authentication",children:[jsxRuntimeExports.jsx("p",{className:"text-gray-700 dark:text-gray-300 mb-3",children:sn.authentication.description}),jsxRuntimeExports.jsxs("div",{className:"space-y-2 mb-3",children:[jsxRuntimeExports.jsxs("p",{className:"text-sm font-semibold text-gray-600 dark:text-gray-400",children:["Type: ",sn.authentication.type]}),jsxRuntimeExports.jsxs("p",{className:"text-sm font-semibold text-gray-600 dark:text-gray-400",children:["Header: ",sn.authentication.header]})]}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("pre",{className:"p-4 bg-gray-900 text-gray-100 rounded-lg overflow-x-auto",children:sn.authentication.example}),jsxRuntimeExports.jsx("button",{onClick:()=>pn(sn.authentication.example,-1),className:"absolute top-2 right-2 p-2 text-gray-400 hover:text-white transition-colors",children:rn===-1?jsxRuntimeExports.jsx(SvgCheckCircle,{className:"w-5 h-5"}):jsxRuntimeExports.jsx(SvgCopy,{className:"w-5 h-5"})})]})]}),jsxRuntimeExports.jsx("div",{className:"mt-6 space-y-6",children:sn.apis.map((fn,mn)=>jsxRuntimeExports.jsx(ComponentCard,{title:fn.name,children:jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx("span",{className:`px-3 py-1 text-xs font-semibold rounded ${fn.method==="POST"?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":fn.method==="GET"?"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200":"bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-200"}`,children:fn.method}),jsxRuntimeExports.jsx("code",{className:"text-sm font-mono text-gray-900 dark:text-white",children:fn.full_url})]}),jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:fn.description}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"flex justify-between items-center mb-2",children:[jsxRuntimeExports.jsx("h4",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300",children:"cURL Example:"}),jsxRuntimeExports.jsx("button",{onClick:()=>pn(fn.curl_example,mn*3),className:"flex items-center gap-1 text-sm text-brand-500 hover:text-brand-600",children:rn===mn*3?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SvgCheckCircle,{className:"w-4 h-4"}),"Copied"]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SvgCopy,{className:"w-4 h-4"}),"Copy"]})})]}),jsxRuntimeExports.jsx("pre",{className:"p-4 text-sm bg-gray-900 text-gray-100 rounded-lg overflow-x-auto whitespace-pre-wrap",children:fn.curl_example})]}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"flex justify-between items-center mb-2",children:[jsxRuntimeExports.jsx("h4",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300",children:"Request Body:"}),jsxRuntimeExports.jsx("button",{onClick:()=>pn(JSON.stringify(fn.request_body,null,2),mn*3+1),className:"flex items-center gap-1 text-sm text-brand-500 hover:text-brand-600",children:rn===mn*3+1?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SvgCheckCircle,{className:"w-4 h-4"}),"Copied"]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SvgCopy,{className:"w-4 h-4"}),"Copy"]})})]}),jsxRuntimeExports.jsx("pre",{className:"p-4 text-sm bg-gray-50 dark:bg-gray-800 rounded-lg overflow-x-auto",children:JSON.stringify(fn.request_body,null,2)})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"flex justify-between items-center mb-2",children:[jsxRuntimeExports.jsx("h4",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300",children:"Response:"}),jsxRuntimeExports.jsx("button",{onClick:()=>pn(JSON.stringify(fn.response_example,null,2),mn*3+2),className:"flex items-center gap-1 text-sm text-brand-500 hover:text-brand-600",children:rn===mn*3+2?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SvgCheckCircle,{className:"w-4 h-4"}),"Copied"]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SvgCopy,{className:"w-4 h-4"}),"Copy"]})})]}),jsxRuntimeExports.jsx("pre",{className:"p-4 text-sm bg-gray-50 dark:bg-gray-800 rounded-lg overflow-x-auto",children:JSON.stringify(fn.response_example,null,2)})]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h4",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300 mb-3",children:"Status Codes:"}),jsxRuntimeExports.jsx("div",{className:"flex flex-wrap gap-2",children:fn.status_codes.map((xn,vn)=>jsxRuntimeExports.jsxs("div",{className:`px-3 py-2 rounded-lg text-sm ${xn.code===200?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":xn.code===401?"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200":xn.code===404?"bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-200":xn.code===422?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200":xn.code===429?"bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200":"bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-200"}`,title:xn.description,children:[jsxRuntimeExports.jsx("span",{className:"font-bold",children:xn.code}),jsxRuntimeExports.jsx("span",{className:"ml-2 text-xs",children:xn.description})]},vn))})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h4",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300 mb-3",children:"Error Responses:"}),jsxRuntimeExports.jsx("div",{className:"space-y-3",children:fn.error_responses.map((xn,vn)=>jsxRuntimeExports.jsxs("div",{className:"border border-gray-200 dark:border-gray-700 rounded-lg p-3",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[jsxRuntimeExports.jsx("span",{className:`px-2 py-1 text-xs font-semibold rounded ${xn.status===200?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":xn.status===401?"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200":xn.status===404?"bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-200":xn.status===422?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200":xn.status===429?"bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200":"bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-200"}`,children:xn.status}),jsxRuntimeExports.jsx("span",{className:"text-sm font-medium text-gray-900 dark:text-white",children:xn.scenario})]}),jsxRuntimeExports.jsx("pre",{className:"p-3 text-xs bg-gray-50 dark:bg-gray-800 rounded overflow-x-auto",children:JSON.stringify(xn.response,null,2)})]},vn))})]})]})},fn.id))})]}):jsxRuntimeExports.jsx("div",{className:"text-center py-8 text-red-500",children:"Failed to load API documentation"})}function ClientSidebar(){const{isExpanded:ln,isMobileOpen:rn,isHovered:an,setIsHovered:sn,toggleMobileSidebar:on}=useSidebar(),cn=useLocation(),{enabledModules:un}=useClientAuth(),pn=[{name:"Dashboard",path:"/client/dashboard"},...un.map(vn=>{var wn;const yn=vn.slug||((wn=vn.code)==null?void 0:wn.toLowerCase().replace(/[^a-z0-9]+/g,"-"))||vn.name.toLowerCase().replace(/[^a-z0-9]+/g,"-");return vn.code==="whatsapp"?{name:vn.name,path:"/client/whatsapp"}:{name:vn.name,path:`/client/modules/${yn}/overview`,children:[{name:"Overview",path:`/client/modules/${yn}/overview`},{name:"Usage",path:`/client/modules/${yn}/usage`},{name:"API Docs",path:`/client/modules/${yn}/api-docs`}]}}),{name:"Support",path:"/client/support"},{name:"Account",path:"/client/account/profile",children:[{name:"Profile",path:"/client/account/profile"},{name:"Plan",path:"/client/account/plan"}]}],fn=vn=>cn.pathname===vn,mn=vn=>{var yn;return fn(vn.path)?!0:((yn=vn.children)==null?void 0:yn.some(wn=>fn(wn.path)))||!1},xn=vn=>{switch(vn){case"Dashboard":return jsxRuntimeExports.jsx(SvgGrid,{});case"Support":return jsxRuntimeExports.jsx(SvgMailLine,{});case"Account":return jsxRuntimeExports.jsx(SvgUserCircle,{});case"WhatsApp":return jsxRuntimeExports.jsx(SvgMailLine,{});default:return jsxRuntimeExports.jsx(SvgBoxCube,{})}};return jsxRuntimeExports.jsxs("aside",{className:`fixed mt-16 flex flex-col lg:mt-0 top-0 px-5 left-0 bg-white dark:bg-gray-900 dark:border-gray-800 text-gray-900 h-screen transition-all duration-300 ease-in-out z-50 border-r border-gray-200 
        ${ln||rn||an?"w-[290px]":"w-[90px]"}
        ${rn?"translate-x-0":"-translate-x-full"}
        lg:translate-x-0`,onMouseEnter:()=>!ln&&sn(!0),onMouseLeave:()=>sn(!1),children:[jsxRuntimeExports.jsx("div",{className:`py-8 flex ${!ln&&!an?"lg:justify-center":"justify-start"}`,children:jsxRuntimeExports.jsx(Link,{to:"/client/dashboard",children:ln||an||rn?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("img",{className:"dark:hidden",src:"/images/logo/logo.svg",alt:"Logo",width:150,height:40}),jsxRuntimeExports.jsx("img",{className:"hidden dark:block",src:"/images/logo/logo-dark.svg",alt:"Logo",width:150,height:40})]}):jsxRuntimeExports.jsx("img",{src:"/images/logo/logo-icon.svg",alt:"Logo",width:32,height:32})})}),jsxRuntimeExports.jsx("div",{className:"flex flex-col overflow-y-auto duration-300 ease-linear no-scrollbar",children:jsxRuntimeExports.jsx("nav",{className:"mb-6",children:jsxRuntimeExports.jsx("div",{className:"flex flex-col gap-4",children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{className:`mb-4 text-xs uppercase flex leading-[20px] text-gray-400 ${!ln&&!an?"lg:justify-center":"justify-start"}`,children:ln||an||rn?"Menu":jsxRuntimeExports.jsx(SvgHorizontalDots,{className:"size-6"})}),jsxRuntimeExports.jsx("ul",{className:"flex flex-col gap-4",children:pn.map(vn=>jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsxs(Link,{to:vn.path,onClick:()=>rn&&on(),className:`menu-item group ${mn(vn)?"menu-item-active":"menu-item-inactive"}`,children:[jsxRuntimeExports.jsx("span",{className:`menu-item-icon-size ${mn(vn)?"menu-item-icon-active":"menu-item-icon-inactive"}`,children:xn(vn.name)}),(ln||an||rn)&&jsxRuntimeExports.jsx("span",{className:"menu-item-text",children:vn.name})]}),vn.children&&(ln||an||rn)&&jsxRuntimeExports.jsx("ul",{className:"ml-8 mt-2 flex flex-col gap-2",children:vn.children.map(yn=>jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx(Link,{to:yn.path,onClick:()=>rn&&on(),className:`block px-3 py-2 text-sm rounded-lg transition-colors ${fn(yn.path)?"bg-brand-50 text-brand-600 dark:bg-brand-900/20 dark:text-brand-400":"text-gray-600 hover:bg-gray-50 dark:text-gray-400 dark:hover:bg-gray-800"}`,children:yn.name})},yn.name))})]},vn.name))})]})})})})]})}const ClientLayoutContent=()=>{const{isExpanded:ln,isHovered:rn,isMobileOpen:an,toggleSidebar:sn,toggleMobileSidebar:on}=useSidebar(),cn=useNavigate(),un=()=>{window.innerWidth>=1024?sn():on()},pn=()=>{localStorage.removeItem("client_token"),cn("/client/login")};return jsxRuntimeExports.jsxs("div",{className:"min-h-screen xl:flex",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(ClientSidebar,{}),jsxRuntimeExports.jsx("div",{className:`fixed inset-0 z-40 bg-gray-900/50 lg:hidden ${an?"block":"hidden"}`,onClick:on})]}),jsxRuntimeExports.jsxs("div",{className:`flex-1 transition-all duration-300 ease-in-out ${ln||rn?"lg:ml-[290px]":"lg:ml-[90px]"} ${an?"ml-0":""}`,children:[jsxRuntimeExports.jsx("header",{className:"sticky top-0 flex w-full bg-white border-gray-200 z-99999 dark:border-gray-800 dark:bg-gray-900 lg:border-b",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-between grow lg:flex-row lg:px-6",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between w-full gap-2 px-3 py-3 border-b border-gray-200 dark:border-gray-800 sm:gap-4 lg:justify-normal lg:border-b-0 lg:px-0 lg:py-4",children:[jsxRuntimeExports.jsx("button",{className:"items-center justify-center w-10 h-10 text-gray-500 border-gray-200 rounded-lg z-99999 dark:border-gray-800 lg:flex dark:text-gray-400 lg:h-11 lg:w-11 lg:border",onClick:un,children:an?jsxRuntimeExports.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.21967 7.28131C5.92678 6.98841 5.92678 6.51354 6.21967 6.22065C6.51256 5.92775 6.98744 5.92775 7.28033 6.22065L11.999 10.9393L16.7176 6.22078C17.0105 5.92789 17.4854 5.92788 17.7782 6.22078C18.0711 6.51367 18.0711 6.98855 17.7782 7.28144L13.0597 12L17.7782 16.7186C18.0711 17.0115 18.0711 17.4863 17.7782 17.7792C17.4854 18.0721 17.0105 18.0721 16.7176 17.7792L11.999 13.0607L7.28033 17.7794C6.98744 18.0722 6.51256 18.0722 6.21967 17.7794C5.92678 17.4865 5.92678 17.0116 6.21967 16.7187L10.9384 12L6.21967 7.28131Z",fill:"currentColor"})}):jsxRuntimeExports.jsx("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.583252 1C0.583252 0.585788 0.919038 0.25 1.33325 0.25H14.6666C15.0808 0.25 15.4166 0.585786 15.4166 1C15.4166 1.41421 15.0808 1.75 14.6666 1.75L1.33325 1.75C0.919038 1.75 0.583252 1.41422 0.583252 1ZM0.583252 11C0.583252 10.5858 0.919038 10.25 1.33325 10.25L14.6666 10.25C15.0808 10.25 15.4166 10.5858 15.4166 11C15.4166 11.4142 15.0808 11.75 14.6666 11.75L1.33325 11.75C0.919038 11.75 0.583252 11.4142 0.583252 11ZM1.33325 5.25C0.919038 5.25 0.583252 5.58579 0.583252 6C0.583252 6.41421 0.919038 6.75 1.33325 6.75L7.99992 6.75C8.41413 6.75 8.74992 6.41421 8.74992 6C8.74992 5.58579 8.41413 5.25 7.99992 5.25L1.33325 5.25Z",fill:"currentColor"})})}),jsxRuntimeExports.jsxs(Link,{to:"/client/dashboard",className:"lg:hidden",children:[jsxRuntimeExports.jsx("img",{className:"dark:hidden",src:"./images/logo/logo.svg",alt:"Logo"}),jsxRuntimeExports.jsx("img",{className:"hidden dark:block",src:"./images/logo/logo-dark.svg",alt:"Logo"})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-4 px-5 py-4 lg:px-0",children:[jsxRuntimeExports.jsx(ThemeToggleButton,{}),jsxRuntimeExports.jsx("button",{onClick:pn,className:"px-4 py-2 text-sm font-medium text-white bg-red-500 rounded-lg hover:bg-red-600",children:"Logout"})]})]})}),jsxRuntimeExports.jsx("div",{className:"p-4 mx-auto max-w-(--breakpoint-2xl) md:p-6",children:jsxRuntimeExports.jsx(Outlet,{})})]})]})};function ClientLayout(){return jsxRuntimeExports.jsx(SidebarProvider,{children:jsxRuntimeExports.jsx(ClientLayoutContent,{})})}function SupportTickets(){const[ln,rn]=reactExports.useState([]),[an,sn]=reactExports.useState(!0),[on,cn]=reactExports.useState(!1),[un,pn]=reactExports.useState(!1),[fn,mn]=reactExports.useState({subject:"",message:""});reactExports.useEffect(()=>{xn()},[]);const xn=async()=>{try{const yn=await axiosInstance.get("/client/tickets");rn(yn.data.data||yn.data||[])}catch{showToast("error","Failed to load tickets")}finally{sn(!1)}},vn=async yn=>{yn.preventDefault(),pn(!0);try{await axiosInstance.post("/client/tickets",fn),showToast("success","Ticket created successfully"),mn({subject:"",message:""}),cn(!1),xn()}catch{showToast("error","Failed to create ticket")}finally{pn(!1)}};return an?jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-12",children:jsxRuntimeExports.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-brand-500"})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"Support Tickets",description:"Manage your support tickets"}),jsxRuntimeExports.jsxs("div",{className:"mb-6 flex justify-between items-center",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:"Support Tickets"}),jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:"View and manage your support requests"})]}),jsxRuntimeExports.jsxs("button",{onClick:()=>cn(!on),className:"flex items-center gap-2 px-4 py-2 bg-brand-500 text-white rounded-lg hover:bg-brand-600 transition-colors",children:[jsxRuntimeExports.jsx(SvgPlus,{className:"w-5 h-5"}),on?"Cancel":"New Ticket"]})]}),on&&jsxRuntimeExports.jsx("div",{className:"mb-6",children:jsxRuntimeExports.jsx(ComponentCard,{title:"Create New Ticket",children:jsxRuntimeExports.jsx("form",{onSubmit:vn,children:jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:["Subject ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsx("input",{type:"text",value:fn.subject,onChange:yn=>mn({...fn,subject:yn.target.value}),className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white",required:!0})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-white",children:["Message ",jsxRuntimeExports.jsx("span",{className:"text-red-500",children:"*"})]}),jsxRuntimeExports.jsx("textarea",{value:fn.message,onChange:yn=>mn({...fn,message:yn.target.value}),rows:5,className:"w-full rounded-lg border border-gray-300 bg-transparent px-4 py-3 text-gray-900 outline-none focus:border-brand-500 dark:border-gray-600 dark:text-white",required:!0})]}),jsxRuntimeExports.jsx("div",{className:"flex justify-end",children:jsxRuntimeExports.jsx("button",{type:"submit",disabled:un,className:"px-6 py-3 bg-brand-500 text-white rounded-lg hover:bg-brand-600 disabled:opacity-50 transition-colors",children:un?"Creating...":"Create Ticket"})})]})})})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Your Tickets",children:ln.length===0?jsxRuntimeExports.jsx("p",{className:"text-center text-gray-500 dark:text-gray-400 py-8",children:"No tickets found"}):jsxRuntimeExports.jsx("div",{className:"overflow-x-auto",children:jsxRuntimeExports.jsxs("table",{className:"w-full",children:[jsxRuntimeExports.jsx("thead",{className:"bg-gray-50 dark:bg-gray-800",children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{className:"px-4 py-3 text-left text-sm font-semibold text-gray-900 dark:text-white",children:"ID"}),jsxRuntimeExports.jsx("th",{className:"px-4 py-3 text-left text-sm font-semibold text-gray-900 dark:text-white",children:"Subject"}),jsxRuntimeExports.jsx("th",{className:"px-4 py-3 text-left text-sm font-semibold text-gray-900 dark:text-white",children:"Status"}),jsxRuntimeExports.jsx("th",{className:"px-4 py-3 text-left text-sm font-semibold text-gray-900 dark:text-white",children:"Created"})]})}),jsxRuntimeExports.jsx("tbody",{className:"divide-y divide-gray-200 dark:divide-gray-700",children:ln.map(yn=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsxs("td",{className:"px-4 py-3 text-sm text-gray-900 dark:text-white",children:["#",yn.id]}),jsxRuntimeExports.jsx("td",{className:"px-4 py-3 text-sm text-gray-900 dark:text-white",children:yn.subject}),jsxRuntimeExports.jsx("td",{className:"px-4 py-3",children:jsxRuntimeExports.jsx("span",{className:`px-2 py-1 text-xs font-medium rounded-full ${yn.status==="open"?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":yn.status==="closed"?"bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-200":"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200"}`,children:yn.status})}),jsxRuntimeExports.jsx("td",{className:"px-4 py-3 text-sm text-gray-600 dark:text-gray-400",children:new Date(yn.created_at).toLocaleDateString()})]},yn.id))})]})})})]})}function ClientProfile(){const[ln,rn]=reactExports.useState(null),[an,sn]=reactExports.useState(!0),{enabledModules:on}=useClientAuth();reactExports.useEffect(()=>{cn()},[]);const cn=async()=>{try{const un=await axiosInstance.get("/client/profile");rn(un.data)}catch{showToast("error","Failed to load profile")}finally{sn(!1)}};return an?jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-12",children:jsxRuntimeExports.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-brand-500"})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"Profile",description:"View your profile"}),jsxRuntimeExports.jsxs("div",{className:"mb-6",children:[jsxRuntimeExports.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:"Profile"}),jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:"Your account information"})]}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2",children:[jsxRuntimeExports.jsx(ComponentCard,{title:"Company Details",children:jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Company Name"}),jsxRuntimeExports.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:(ln==null?void 0:ln.company_name)||"N/A"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Contact Name"}),jsxRuntimeExports.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:(ln==null?void 0:ln.name)||"N/A"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Email"}),jsxRuntimeExports.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:(ln==null?void 0:ln.email)||"N/A"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Mobile"}),jsxRuntimeExports.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:(ln==null?void 0:ln.mobile)||"N/A"})]}),(ln==null?void 0:ln.gst_number)&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"GST Number"}),jsxRuntimeExports.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:ln.gst_number})]}),(ln==null?void 0:ln.address)&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Address"}),jsxRuntimeExports.jsx("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:ln.address})]})]})}),jsxRuntimeExports.jsxs("div",{className:"space-y-6",children:[jsxRuntimeExports.jsx(ComponentCard,{title:"Plan Details",children:jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Current Plan"}),jsxRuntimeExports.jsx("p",{className:"text-2xl font-bold text-brand-500 mt-1",children:(ln==null?void 0:ln.plan)||"N/A"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Account Status"}),jsxRuntimeExports.jsx("span",{className:`inline-flex px-3 py-1 text-sm font-medium rounded-full mt-1 ${(ln==null?void 0:ln.account_status)==="active"?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"}`,children:(ln==null?void 0:ln.account_status)||"N/A"})]})]})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Enabled Modules",children:on.length===0?jsxRuntimeExports.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"No modules enabled"}):jsxRuntimeExports.jsx("div",{className:"flex flex-wrap gap-2",children:on.map(un=>jsxRuntimeExports.jsx("span",{className:"inline-flex items-center px-3 py-1 text-sm font-medium rounded-full bg-brand-100 text-brand-800 dark:bg-brand-900 dark:text-brand-200",children:un.name},un.id))})})]})]})]})}function ClientPlan(){var un;const[ln,rn]=reactExports.useState(null),[an,sn]=reactExports.useState(!0),{enabledModules:on}=useClientAuth();reactExports.useEffect(()=>{cn()},[]);const cn=async()=>{try{const pn=await axiosInstance.get("/client/plan");rn(pn.data.data||pn.data)}catch{showToast("error","Failed to load plan details")}finally{sn(!1)}};return an?jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-12",children:jsxRuntimeExports.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-brand-500"})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"Plan",description:"View your subscription plan"}),jsxRuntimeExports.jsxs("div",{className:"mb-6",children:[jsxRuntimeExports.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:"Subscription Plan"}),jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:"View your current plan and usage limits"})]}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2",children:[jsxRuntimeExports.jsx(ComponentCard,{title:"Current Plan",children:jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Plan Name"}),jsxRuntimeExports.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:(ln==null?void 0:ln.price_plan)||"N/A"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Monthly API Limit"}),jsxRuntimeExports.jsx("p",{className:"text-2xl font-bold text-brand-500",children:((un=ln==null?void 0:ln.monthly_limit)==null?void 0:un.toLocaleString())||0})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Status"}),jsxRuntimeExports.jsx("span",{className:`inline-flex px-3 py-1 text-sm font-medium rounded-full ${ln!=null&&ln.is_active?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"}`,children:ln!=null&&ln.is_active?"Active":"Inactive"})]})]})}),jsxRuntimeExports.jsx(ComponentCard,{title:"Active Modules",children:on.length===0?jsxRuntimeExports.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"No modules assigned"}):jsxRuntimeExports.jsx("div",{className:"flex flex-wrap gap-2",children:on.map(pn=>jsxRuntimeExports.jsx("span",{className:"inline-flex items-center px-3 py-2 text-sm font-medium rounded-lg bg-brand-100 text-brand-800 dark:bg-brand-900 dark:text-brand-200",children:pn.name},pn.id))})})]}),jsxRuntimeExports.jsx("div",{className:"mt-6",children:jsxRuntimeExports.jsxs(ComponentCard,{title:"Need to Upgrade?",children:[jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:"Contact our support team to upgrade your plan or add more modules to your subscription."}),jsxRuntimeExports.jsx("button",{className:"px-6 py-3 bg-brand-500 text-white rounded-lg hover:bg-brand-600 transition-colors",children:"Contact Support"})]})})]})}function WhatsAppStatus(){const[ln,rn]=reactExports.useState(null),[an,sn]=reactExports.useState(!0);reactExports.useEffect(()=>{on(),new URLSearchParams(window.location.search).get("whatsapp")==="connected"&&(showToast("success","WhatsApp connected successfully!"),window.history.replaceState({},"",window.location.pathname))},[]);const on=async()=>{try{const un=await axiosInstance.get("/whatsapp/status");rn(un.data)}catch{showToast("error","Failed to load WhatsApp status")}finally{sn(!1)}},cn=async()=>{var un,pn,fn,mn;try{const xn=await axiosInstance.get("/whatsapp/connect");xn.data.redirect_url&&(window.location.href=xn.data.redirect_url)}catch(xn){const vn=((pn=(un=xn.response)==null?void 0:un.data)==null?void 0:pn.message)||((mn=(fn=xn.response)==null?void 0:fn.data)==null?void 0:mn.error)||"Failed to connect WhatsApp";showToast("error",vn)}};return an?jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center py-12",children:jsxRuntimeExports.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-brand-500"})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageMeta,{title:"WhatsApp Connection",description:"Manage WhatsApp Business API connection"}),jsxRuntimeExports.jsxs("div",{className:"mb-6",children:[jsxRuntimeExports.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:"WhatsApp Connection"}),jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:"Connect your WhatsApp Business account"})]}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 gap-6",children:[jsxRuntimeExports.jsx(ComponentCard,{title:"Connection Status",children:jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[!(ln!=null&&ln.connected)&&(ln==null?void 0:ln.status)==="not_connected"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx("div",{className:"w-3 h-3 rounded-full bg-gray-400"}),jsxRuntimeExports.jsx("span",{className:"text-gray-700 dark:text-gray-300 font-medium",children:"Not Connected"})]}),jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400 text-sm",children:"Connect your WhatsApp Business account to start sending messages through the API."}),jsxRuntimeExports.jsx(Button,{onClick:cn,className:"mt-4",children:"Connect WhatsApp"})]}),(ln==null?void 0:ln.status)==="expired"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),jsxRuntimeExports.jsx("span",{className:"text-yellow-700 dark:text-yellow-400 font-medium",children:"Token Expired"})]}),jsxRuntimeExports.jsx("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:jsxRuntimeExports.jsx("p",{className:"text-yellow-800 dark:text-yellow-300 text-sm",children:"Your WhatsApp connection token has expired. Please reconnect to continue using the service."})}),jsxRuntimeExports.jsx(Button,{onClick:cn,className:"mt-4",children:"Reconnect WhatsApp"})]}),(ln==null?void 0:ln.connected)&&(ln==null?void 0:ln.status)==="connected"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500"}),jsxRuntimeExports.jsx("span",{className:"text-green-700 dark:text-green-400 font-medium",children:"Connected ✓"})]}),jsxRuntimeExports.jsxs("div",{className:"bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg p-4 space-y-2",children:[ln.phone_number_id&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Phone Number ID:"}),jsxRuntimeExports.jsx("p",{className:"text-gray-900 dark:text-white font-mono",children:ln.phone_number_id})]}),ln.connected_at&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Connected At:"}),jsxRuntimeExports.jsx("p",{className:"text-gray-900 dark:text-white",children:new Date(ln.connected_at).toLocaleString()})]})]})]})]})}),jsxRuntimeExports.jsx(ComponentCard,{title:"About WhatsApp Integration",children:jsxRuntimeExports.jsxs("div",{className:"prose dark:prose-invert max-w-none",children:[jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"Connect your WhatsApp Business account to send messages, notifications, and interact with your customers through the WhatsApp Business API."}),jsxRuntimeExports.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2 text-gray-900 dark:text-white",children:"Features:"}),jsxRuntimeExports.jsxs("ul",{className:"list-disc pl-5 space-y-1 text-gray-600 dark:text-gray-400",children:[jsxRuntimeExports.jsx("li",{children:"Send text messages and media"}),jsxRuntimeExports.jsx("li",{children:"Automated notifications"}),jsxRuntimeExports.jsx("li",{children:"Template message support"}),jsxRuntimeExports.jsx("li",{children:"Secure API integration"})]})]})})]})]})}function App(){const[ln,rn]=reactExports.useState(null);return setToastCallback((an,sn)=>{rn({type:an,message:sn})}),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ln&&jsxRuntimeExports.jsx(Toast,{type:ln.type,message:ln.message,onClose:()=>rn(null)}),jsxRuntimeExports.jsxs(BrowserRouter,{children:[jsxRuntimeExports.jsx(ScrollToTop,{}),jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/client/login",element:jsxRuntimeExports.jsx(ClientLogin,{})}),jsxRuntimeExports.jsxs(Route,{element:jsxRuntimeExports.jsx(ClientProtectedRoute,{children:jsxRuntimeExports.jsx(ClientLayout,{})}),children:[jsxRuntimeExports.jsx(Route,{path:"/client/dashboard",element:jsxRuntimeExports.jsx(ClientDashboard,{})}),jsxRuntimeExports.jsx(Route,{path:"/client/modules/:moduleSlug/overview",element:jsxRuntimeExports.jsx(ModuleAccessGuard,{children:jsxRuntimeExports.jsx(ModuleOverview,{})})}),jsxRuntimeExports.jsx(Route,{path:"/client/modules/:moduleSlug/usage",element:jsxRuntimeExports.jsx(ModuleAccessGuard,{children:jsxRuntimeExports.jsx(ModuleUsage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/client/modules/:moduleSlug/api-docs",element:jsxRuntimeExports.jsx(ModuleAccessGuard,{children:jsxRuntimeExports.jsx(ModuleApiDocs,{})})}),jsxRuntimeExports.jsx(Route,{path:"/client/whatsapp",element:jsxRuntimeExports.jsx(ModuleAccessGuard,{children:jsxRuntimeExports.jsx(WhatsAppStatus,{})})}),jsxRuntimeExports.jsx(Route,{path:"/client/support",element:jsxRuntimeExports.jsx(SupportTickets,{})}),jsxRuntimeExports.jsx(Route,{path:"/client/account/profile",element:jsxRuntimeExports.jsx(ClientProfile,{})}),jsxRuntimeExports.jsx(Route,{path:"/client/account/plan",element:jsxRuntimeExports.jsx(ClientPlan,{})})]}),jsxRuntimeExports.jsx(Route,{index:!0,path:"/",element:jsxRuntimeExports.jsx(Login,{})}),jsxRuntimeExports.jsxs(Route,{element:jsxRuntimeExports.jsx(ProtectedRoute,{children:jsxRuntimeExports.jsx(AppLayout,{})}),children:[jsxRuntimeExports.jsx(Route,{path:"/admin/dashboard",element:jsxRuntimeExports.jsx(Dashboard,{})}),jsxRuntimeExports.jsx(Route,{path:"/admin/clients",element:jsxRuntimeExports.jsx(Clients,{})}),jsxRuntimeExports.jsx(Route,{path:"/admin/clients/create",element:jsxRuntimeExports.jsx(CreateClient,{})}),jsxRuntimeExports.jsx(Route,{path:"/admin/clients/edit/:id",element:jsxRuntimeExports.jsx(EditClient,{})}),jsxRuntimeExports.jsx(Route,{path:"/support-ticket",element:jsxRuntimeExports.jsx(SupportTicket,{})}),jsxRuntimeExports.jsx(Route,{path:"/support-ticket/create",element:jsxRuntimeExports.jsx(CreateTicket,{})}),jsxRuntimeExports.jsx(Route,{path:"/support-ticket/view/:id",element:jsxRuntimeExports.jsx(ViewTicket,{})})]}),jsxRuntimeExports.jsxs(Route,{element:jsxRuntimeExports.jsx(AppLayout,{}),children:[jsxRuntimeExports.jsx(Route,{path:"/home",element:jsxRuntimeExports.jsx(Home,{})}),jsxRuntimeExports.jsx(Route,{path:"/profile",element:jsxRuntimeExports.jsx(UserProfiles,{})}),jsxRuntimeExports.jsx(Route,{path:"/calendar",element:jsxRuntimeExports.jsx(Calendar,{})}),jsxRuntimeExports.jsx(Route,{path:"/blank",element:jsxRuntimeExports.jsx(Blank,{})}),jsxRuntimeExports.jsx(Route,{path:"/form-elements",element:jsxRuntimeExports.jsx(FormElements,{})}),jsxRuntimeExports.jsx(Route,{path:"/basic-tables",element:jsxRuntimeExports.jsx(BasicTables,{})}),jsxRuntimeExports.jsx(Route,{path:"/alerts",element:jsxRuntimeExports.jsx(Alerts,{})}),jsxRuntimeExports.jsx(Route,{path:"/avatars",element:jsxRuntimeExports.jsx(Avatars,{})}),jsxRuntimeExports.jsx(Route,{path:"/badge",element:jsxRuntimeExports.jsx(Badges,{})}),jsxRuntimeExports.jsx(Route,{path:"/buttons",element:jsxRuntimeExports.jsx(Buttons,{})}),jsxRuntimeExports.jsx(Route,{path:"/images",element:jsxRuntimeExports.jsx(Images,{})}),jsxRuntimeExports.jsx(Route,{path:"/videos",element:jsxRuntimeExports.jsx(Videos,{})}),jsxRuntimeExports.jsx(Route,{path:"/line-chart",element:jsxRuntimeExports.jsx(LineChart,{})}),jsxRuntimeExports.jsx(Route,{path:"/bar-chart",element:jsxRuntimeExports.jsx(BarChart,{})})]}),jsxRuntimeExports.jsx(Route,{path:"/signin",element:jsxRuntimeExports.jsx(SignIn,{})}),jsxRuntimeExports.jsx(Route,{path:"/signup",element:jsxRuntimeExports.jsx(SignUp,{})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFound,{})})]})]})]})}clientExports.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(reactExports.StrictMode,{children:jsxRuntimeExports.jsx(ThemeProvider,{children:jsxRuntimeExports.jsx(ClientAuthProvider,{children:jsxRuntimeExports.jsx(AppWrapper,{children:jsxRuntimeExports.jsx(App,{})})})})}));
