openc3-cosmos-tool-tlmgrapher 5.18.0 → 5.19.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,23 @@
1
+ (self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]=self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]||[]).push([[581],{7752:(t,e,i)=>{"use strict";i.d(e,{Be:()=>w,D$:()=>a});var n={logger:"undefined"!==typeof console?console:void 0,WebSocket:"undefined"!==typeof WebSocket?WebSocket:void 0},r={log(...t){this.enabled&&(t.push(Date.now()),n.logger.log("[ActionCable]",...t))}};const s=()=>(new Date).getTime(),o=t=>(s()-t)/1e3;class a{constructor(t){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=t,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=s(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),r.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=s(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),r.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=s()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,r.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=s(),r.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout((()=>{this.reconnectIfStale(),this.poll()}),this.getPollInterval())}getPollInterval(){const{staleThreshold:t,reconnectionBackoffRate:e}=this.constructor,i=Math.pow(1+e,Math.min(this.reconnectAttempts,10)),n=0===this.reconnectAttempts?1:e,r=n*Math.random();return 1e3*t*i*(1+r)}reconnectIfStale(){this.connectionIsStale()&&(r.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${o(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?r.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${o(this.disconnectedAt)} s`):(r.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return o(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&o(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){"visible"===document.visibilityState&&setTimeout((()=>{!this.connectionIsStale()&&this.connection.isOpen()||(r.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())}),200)}}a.staleThreshold=6,a.reconnectionBackoffRate=.15;var l={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:u,protocols:c}=l,h=c.slice(0,c.length-1),d=[].indexOf;class f{constructor(t){this.open=this.open.bind(this),this.consumer=t,this.subscriptions=this.consumer.subscriptions,this.monitor=new a(this),this.disconnected=!0}send(t){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(t)),!0)}open(){if(this.isActive())return r.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const t=[...c,...this.consumer.subprotocols||[]];return r.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${t}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new n.WebSocket(this.consumer.url,t),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:t}={allowReconnect:!0}){if(t||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(r.log(`Reopening WebSocket, current state is ${this.getState()}`),!this.isActive())return this.open();try{return this.close()}catch(t){r.log("Failed to reopen WebSocket",t)}finally{r.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return d.call(h,this.getProtocol())>=0}isState(...t){return d.call(t,this.getState())>=0}getState(){if(this.webSocket)for(let t in n.WebSocket)if(n.WebSocket[t]===this.webSocket.readyState)return t.toLowerCase();return null}installEventHandlers(){for(let t in this.events){const e=this.events[t].bind(this);this.webSocket[`on${t}`]=e}}uninstallEventHandlers(){for(let t in this.events)this.webSocket[`on${t}`]=function(){}}}f.reopenDelay=500,f.prototype.events={message(t){if(!this.isProtocolSupported())return;const{identifier:e,message:i,reason:n,reconnect:s,type:o}=JSON.parse(t.data);switch(o){case u.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case u.disconnect:return r.log(`Disconnecting. Reason: ${n}`),this.close({allowReconnect:s});case u.ping:return this.monitor.recordPing();case u.confirmation:return this.subscriptions.confirmSubscription(e),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(e,"connected",{reconnected:!0})):this.subscriptions.notify(e,"connected",{reconnected:!1});case u.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",i)}},open(){if(r.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return r.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(t){if(r.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){r.log("WebSocket onerror event")}};const p=function(t,e){if(null!=e)for(let i in e){const n=e[i];t[i]=n}return t};class m{constructor(t,e={},i){this.consumer=t,this.identifier=JSON.stringify(e),p(this,i)}perform(t,e={}){return e.action=t,this.send(e)}send(t){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(t)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class g{constructor(t){this.subscriptions=t,this.pendingSubscriptions=[]}guarantee(t){-1==this.pendingSubscriptions.indexOf(t)?(r.log(`SubscriptionGuarantor guaranteeing ${t.identifier}`),this.pendingSubscriptions.push(t)):r.log(`SubscriptionGuarantor already guaranteeing ${t.identifier}`),this.startGuaranteeing()}forget(t){r.log(`SubscriptionGuarantor forgetting ${t.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter((e=>e!==t))}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout((()=>{this.subscriptions&&"function"===typeof this.subscriptions.subscribe&&this.pendingSubscriptions.map((t=>{r.log(`SubscriptionGuarantor resubscribing ${t.identifier}`),this.subscriptions.subscribe(t)}))}),500)}}class _{constructor(t){this.consumer=t,this.guarantor=new g(this),this.subscriptions=[]}create(t,e){const i=t,n="object"===typeof i?i:{channel:i},r=new m(this.consumer,n,e);return this.add(r)}add(t){return this.subscriptions.push(t),this.consumer.ensureActiveConnection(),this.notify(t,"initialized"),this.subscribe(t),t}remove(t){return this.forget(t),this.findAll(t.identifier).length||this.sendCommand(t,"unsubscribe"),t}reject(t){return this.findAll(t).map((t=>(this.forget(t),this.notify(t,"rejected"),t)))}forget(t){return this.guarantor.forget(t),this.subscriptions=this.subscriptions.filter((e=>e!==t)),t}findAll(t){return this.subscriptions.filter((e=>e.identifier===t))}reload(){return this.subscriptions.map((t=>this.subscribe(t)))}notifyAll(t,...e){return this.subscriptions.map((i=>this.notify(i,t,...e)))}notify(t,e,...i){let n;return n="string"===typeof t?this.findAll(t):[t],n.map((t=>"function"===typeof t[e]?t[e](...i):void 0))}subscribe(t){this.sendCommand(t,"subscribe")&&this.guarantor.guarantee(t)}confirmSubscription(t){r.log(`Subscription confirmed ${t}`),this.findAll(t).map((t=>this.guarantor.forget(t)))}sendCommand(t,e){const{identifier:i}=t;return this.consumer.send({command:e,identifier:i})}}class y{constructor(t){this._url=t,this.subscriptions=new _(this),this.connection=new f(this),this.subprotocols=[]}get url(){return v(this._url)}send(t){return this.connection.send(t)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(t){this.subprotocols=[...this.subprotocols,t]}}function v(t){if("function"===typeof t&&(t=t()),t&&!/^wss?:/i.test(t)){const e=document.createElement("a");return e.href=t,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href}return t}function w(t=b("url")||l.default_mount_path){return new y(t)}function b(t){const e=document.head.querySelector(`meta[name='action-cable-${t}']`);if(e)return e.getAttribute("content")}},2132:(t,e,i)=>{"use strict";i.d(e,{A:()=>lr});i(9375),i(2482),i(7067),i(4147),i(7146),i(9033),i(8903),i(1018),i(1415),i(4448),i(8871),i(6539),i(4293),i(2682),i(785),i(8357),i(6196),i(821),i(6554),i(8472),i(7404),i(5803),i(3912);const n=!0,r="u-",s="uplot",o=r+"hz",a=r+"vt",l=r+"title",u=r+"wrap",c=r+"under",h=r+"over",d=r+"axis",f=r+"off",p=r+"select",m=r+"cursor-x",g=r+"cursor-y",_=r+"cursor-pt",y=r+"legend",v=r+"live",w=r+"inline",b=r+"series",x=r+"marker",S=r+"label",D=r+"value",T="width",A="height",k="top",E="bottom",M="left",R="right",P="#000",O=P+"0",C="mousemove",L="mousedown",I="mouseup",N="mouseenter",Y="mouseleave",q="dblclick",F="resize",H="scroll",B="change",X="dppxchange",W="--",z="undefined"!=typeof window,j=z?document:null,U=z?window:null,G=z?navigator:null;let $,V;function Q(){let t=devicePixelRatio;$!=t&&($=t,V&&ht(B,V,Q),V=matchMedia(`(min-resolution: ${$-.001}dppx) and (max-resolution: ${$+.001}dppx)`),ct(B,V,Q),U.dispatchEvent(new CustomEvent(X)))}function Z(t,e){if(null!=e){let i=t.classList;!i.contains(e)&&i.add(e)}}function J(t,e){let i=t.classList;i.contains(e)&&i.remove(e)}function K(t,e,i){t.style[e]=i+"px"}function tt(t,e,i,n){let r=j.createElement(t);return null!=e&&Z(r,e),null!=i&&i.insertBefore(r,n),r}function et(t,e){return tt("div",t,e)}const it=new WeakMap;function nt(t,e,i,n,r){let s="translate("+e+"px,"+i+"px)",o=it.get(t);s!=o&&(t.style.transform=s,it.set(t,s),e<0||i<0||e>n||i>r?Z(t,f):J(t,f))}const rt=new WeakMap;function st(t,e,i){let n=e+i,r=rt.get(t);n!=r&&(rt.set(t,n),t.style.background=e,t.style.borderColor=i)}const ot=new WeakMap;function at(t,e,i,n){let r=e+""+i,s=ot.get(t);r!=s&&(ot.set(t,r),t.style.height=i+"px",t.style.width=e+"px",t.style.marginLeft=n?-e/2+"px":0,t.style.marginTop=n?-i/2+"px":0)}const lt={passive:!0},ut={...lt,capture:!0};function ct(t,e,i,n){e.addEventListener(t,i,n?ut:lt)}function ht(t,e,i,n){e.removeEventListener(t,i,lt)}function dt(t,e,i,n){let r;i=i||0,n=n||e.length-1;let s=n<=2147483647;while(n-i>1)r=s?i+n>>1:Pt((i+n)/2),e[r]<t?i=r:n=r;return t-e[i]<=e[n]-t?i:n}function ft(t,e,i,n){for(let r=1==n?e:i;r>=e&&r<=i;r+=n)if(null!=t[r])return r;return-1}function pt(t,e,i,n){let r=Xt,s=-Xt;if(1==n)r=t[e],s=t[i];else if(-1==n)r=t[i],s=t[e];else for(let o=e;o<=i;o++){let e=t[o];null!=e&&(e<r&&(r=e),e>s&&(s=e))}return[r,s]}function mt(t,e,i){let n=Xt,r=-Xt;for(let s=e;s<=i;s++){let e=t[s];null!=e&&e>0&&(e<n&&(n=e),e>r&&(r=e))}return[n,r]}function gt(t,e,i,n){let r=Yt(t),s=Yt(e);t==e&&(-1==r?(t*=i,e/=i):(t/=i,e*=i));let o=10==i?qt:Ft,a=1==r?Pt:Ct,l=1==s?Ct:Pt,u=a(o(Rt(t))),c=l(o(Rt(e))),h=Nt(i,u),d=Nt(i,c);return 10==i&&(u<0&&(h=ne(h,-u)),c<0&&(d=ne(d,-c))),n||2==i?(t=h*r,e=d*s):(t=ie(t,h),e=ee(e,d)),[t,e]}function _t(t,e,i,n){let r=gt(t,e,i,n);return 0==t&&(r[0]=0),0==e&&(r[1]=0),r}z&&Q();const yt=.1,vt={mode:3,pad:yt},wt={pad:0,soft:null,mode:0},bt={min:wt,max:wt};function xt(t,e,i,n){return pe(i)?Tt(t,e,i):(wt.pad=i,wt.soft=n?0:null,wt.mode=n?3:0,Tt(t,e,bt))}function St(t,e){return null==t?e:t}function Dt(t,e,i){e=St(e,0),i=St(i,t.length-1);while(e<=i){if(null!=t[e])return!0;e++}return!1}function Tt(t,e,i){let n=i.min,r=i.max,s=St(n.pad,0),o=St(r.pad,0),a=St(n.hard,-Xt),l=St(r.hard,Xt),u=St(n.soft,Xt),c=St(r.soft,-Xt),h=St(n.mode,0),d=St(r.mode,0),f=e-t,p=qt(f),m=It(Rt(t),Rt(e)),g=qt(m),_=Rt(g-p);(f<1e-24||_>10)&&(f=0,0!=t&&0!=e||(f=1e-24,2==h&&u!=Xt&&(s=0),2==d&&c!=-Xt&&(o=0)));let y=f||m||1e3,v=qt(y),w=Nt(10,Pt(v)),b=y*(0==f?0==t?.1:1:s),x=ne(ie(t-b,w/10),24),S=t>=u&&(1==h||3==h&&x<=u||2==h&&x>=u)?u:Xt,D=It(a,x<S&&t>=S?S:Lt(S,x)),T=y*(0==f?0==e?.1:1:o),A=ne(ee(e+T,w/10),24),k=e<=c&&(1==d||3==d&&A>=c||2==d&&A<=c)?c:-Xt,E=Lt(l,A>k&&e<=k?k:It(k,A));return D==E&&0==D&&(E=100),[D,E]}const At=new Intl.NumberFormat(z?G.language:"en-US"),kt=t=>At.format(t),Et=Math,Mt=Et.PI,Rt=Et.abs,Pt=Et.floor,Ot=Et.round,Ct=Et.ceil,Lt=Et.min,It=Et.max,Nt=Et.pow,Yt=Et.sign,qt=Et.log10,Ft=Et.log2,Ht=(t,e=1)=>Et.sinh(t)*e,Bt=(t,e=1)=>Et.asinh(t/e),Xt=1/0;function Wt(t){return 1+(0|qt((t^t>>31)-(t>>31)))}function zt(t,e,i){return Lt(It(t,e),i)}function jt(t){return"function"==typeof t?t:()=>t}const Ut=()=>{},Gt=t=>t,$t=(t,e)=>e,Vt=t=>null,Qt=t=>!0,Zt=(t,e)=>t==e,Jt=/\.\d*?(?=9{6,}|0{6,})/gm,Kt=t=>{if(he(t)||re.has(t))return t;const e=`${t}`,i=e.match(Jt);if(null==i)return t;let n=i[0].length-1;if(-1!=e.indexOf("e-")){let[t,i]=e.split("e");return+`${Kt(t)}e${i}`}return ne(t,n)};function te(t,e){return Kt(ne(Kt(t/e))*e)}function ee(t,e){return Kt(Ct(Kt(t/e))*e)}function ie(t,e){return Kt(Pt(Kt(t/e))*e)}function ne(t,e=0){if(he(t))return t;let i=10**e,n=t*i*(1+Number.EPSILON);return Ot(n)/i}const re=new Map;function se(t){return((""+t).split(".")[1]||"").length}function oe(t,e,i,n){let r=[],s=n.map(se);for(let o=e;o<i;o++){let e=Rt(o),i=ne(Nt(t,o),e);for(let a=0;a<n.length;a++){let l=10==t?+`${n[a]}e${o}`:n[a]*i,u=(o>=0?0:e)+(o>=s[a]?0:s[a]),c=10==t?l:ne(l,u);r.push(c),re.set(c,u)}}return r}const ae={},le=[],ue=[null,null],ce=Array.isArray,he=Number.isInteger,de=t=>void 0===t;function fe(t){return"string"==typeof t}function pe(t){let e=!1;if(null!=t){let i=t.constructor;e=null==i||i==Object}return e}function me(t){return null!=t&&"object"==typeof t}const ge=Object.getPrototypeOf(Uint8Array),_e="__proto__";function ye(t,e=pe){let i;if(ce(t)){let n=t.find((t=>null!=t));if(ce(n)||e(n)){i=Array(t.length);for(let n=0;n<t.length;n++)i[n]=ye(t[n],e)}else i=t.slice()}else if(t instanceof ge)i=t.slice();else if(e(t)){i={};for(let n in t)n!=_e&&(i[n]=ye(t[n],e))}else i=t;return i}function ve(t){let e=arguments;for(let i=1;i<e.length;i++){let n=e[i];for(let e in n)e!=_e&&(pe(t[e])?ve(t[e],ye(n[e])):t[e]=ye(n[e]))}return t}const we=0,be=1,xe=2;function Se(t,e,i){for(let n,r=0,s=-1;r<e.length;r++){let o=e[r];if(o>s){n=o-1;while(n>=0&&null==t[n])t[n--]=null;n=o+1;while(n<i&&null==t[n])t[s=n++]=null}}}function De(t,e){if(ke(t)){let e=t[0].slice();for(let i=1;i<t.length;i++)e.push(...t[i].slice(1));return Ee(e[0])||(e=Ae(e)),e}let i=new Set;for(let o=0;o<t.length;o++){let e=t[o],n=e[0],r=n.length;for(let t=0;t<r;t++)i.add(n[t])}let n=[Array.from(i).sort(((t,e)=>t-e))],r=n[0].length,s=new Map;for(let o=0;o<r;o++)s.set(n[0][o],o);for(let o=0;o<t.length;o++){let i=t[o],a=i[0];for(let t=1;t<i.length;t++){let l=i[t],u=Array(r).fill(void 0),c=e?e[o][t]:be,h=[];for(let t=0;t<l.length;t++){let e=l[t],i=s.get(a[t]);null===e?c!=we&&(u[i]=e,c==xe&&h.push(i)):u[i]=e}Se(u,h,r),n.push(u)}}return n}const Te="undefined"==typeof queueMicrotask?t=>Promise.resolve().then(t):queueMicrotask;function Ae(t){let e=t[0],i=e.length,n=Array(i);for(let s=0;s<n.length;s++)n[s]=s;n.sort(((t,i)=>e[t]-e[i]));let r=[];for(let s=0;s<t.length;s++){let e=t[s],o=Array(i);for(let t=0;t<i;t++)o[t]=e[n[t]];r.push(o)}return r}function ke(t){let e=t[0][0],i=e.length;for(let n=1;n<t.length;n++){let r=t[n][0];if(r.length!=i)return!1;if(r!=e)for(let t=0;t<i;t++)if(r[t]!=e[t])return!1}return!0}function Ee(t,e=100){const i=t.length;if(i<=1)return!0;let n=0,r=i-1;while(n<=r&&null==t[n])n++;while(r>=n&&null==t[r])r--;if(r<=n)return!0;const s=It(1,Pt((r-n+1)/e));for(let o=t[n],a=n+s;a<=r;a+=s){const e=t[a];if(null!=e){if(e<=o)return!1;o=e}}return!0}const Me=["January","February","March","April","May","June","July","August","September","October","November","December"],Re=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Pe(t){return t.slice(0,3)}const Oe=Re.map(Pe),Ce=Me.map(Pe),Le={MMMM:Me,MMM:Ce,WWWW:Re,WWW:Oe};function Ie(t){return(t<10?"0":"")+t}function Ne(t){return(t<10?"00":t<100?"0":"")+t}const Ye={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,e)=>e.MMMM[t.getMonth()],MMM:(t,e)=>e.MMM[t.getMonth()],MM:t=>Ie(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>Ie(t.getDate()),D:t=>t.getDate(),WWWW:(t,e)=>e.WWWW[t.getDay()],WWW:(t,e)=>e.WWW[t.getDay()],HH:t=>Ie(t.getHours()),H:t=>t.getHours(),h:t=>{let e=t.getHours();return 0==e?12:e>12?e-12:e},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>Ie(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>Ie(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>Ne(t.getMilliseconds())};function qe(t,e){e=e||Le;let i,n=[],r=/\{([a-z]+)\}|[^{]+/gi;while(i=r.exec(t))n.push("{"==i[0][0]?Ye[i[1]]:i[0]);return t=>{let i="";for(let r=0;r<n.length;r++)i+="string"==typeof n[r]?n[r]:n[r](t,e);return i}}const Fe=(new Intl.DateTimeFormat).resolvedOptions().timeZone;function He(t,e){let i;return"UTC"==e||"Etc/UTC"==e?i=new Date(+t+6e4*t.getTimezoneOffset()):e==Fe?i=t:(i=new Date(t.toLocaleString("en-US",{timeZone:e})),i.setMilliseconds(t.getMilliseconds())),i}const Be=t=>t%1==0,Xe=[1,2,2.5,5],We=oe(10,-32,0,Xe),ze=oe(10,0,32,Xe),je=ze.filter(Be),Ue=We.concat(ze),Ge="\n",$e="{YYYY}",Ve=Ge+$e,Qe="{M}/{D}",Ze=Ge+Qe,Je=Ze+"/{YY}",Ke="{aa}",ti="{h}:{mm}",ei=ti+Ke,ii=Ge+ei,ni=":{ss}",ri=null;function si(t){let e=1e3*t,i=60*e,n=60*i,r=24*n,s=30*r,o=365*r,a=1==t?oe(10,0,3,Xe).filter(Be):oe(10,-3,0,Xe),l=a.concat([e,5*e,10*e,15*e,30*e,i,5*i,10*i,15*i,30*i,n,2*n,3*n,4*n,6*n,8*n,12*n,r,2*r,3*r,4*r,5*r,6*r,7*r,8*r,9*r,10*r,15*r,s,2*s,3*s,4*s,6*s,o,2*o,5*o,10*o,25*o,50*o,100*o]);const u=[[o,$e,ri,ri,ri,ri,ri,ri,1],[28*r,"{MMM}",Ve,ri,ri,ri,ri,ri,1],[r,Qe,Ve,ri,ri,ri,ri,ri,1],[n,"{h}"+Ke,Je,ri,Ze,ri,ri,ri,1],[i,ei,Je,ri,Ze,ri,ri,ri,1],[e,ni,Je+" "+ei,ri,Ze+" "+ei,ri,ii,ri,1],[t,ni+".{fff}",Je+" "+ei,ri,Ze+" "+ei,ri,ii,ri,1]];function c(e){return(a,l,u,c,h,d)=>{let f=[],p=h>=o,m=h>=s&&h<o,g=e(u),_=ne(g*t,3),y=mi(g.getFullYear(),p?0:g.getMonth(),m||p?1:g.getDate()),v=ne(y*t,3);if(m||p){let i=m?h/s:0,n=p?h/o:0,r=_==v?_:ne(mi(y.getFullYear()+n,y.getMonth()+i,1)*t,3),a=new Date(Ot(r/t)),l=a.getFullYear(),u=a.getMonth();for(let s=0;r<=c;s++){let o=mi(l+n*s,u+i*s,1),a=o-e(ne(o*t,3));r=ne((+o+a)*t,3),r<=c&&f.push(r)}}else{let s=h>=r?r:h,o=Pt(u)-Pt(_),p=v+o+ee(_-v,s);f.push(p);let m=e(p),g=m.getHours()+m.getMinutes()/i+m.getSeconds()/n,y=h/n,w=a.axes[l]._space,b=d/w;while(1){if(p=ne(p+h,1==t?0:3),p>c)break;if(y>1){let t=Pt(ne(g+y,6))%24,i=e(p),r=i.getHours(),s=r-t;s>1&&(s=-1),p-=s*n,g=(g+y)%24;let o=f[f.length-1],a=ne((p-o)/h,3);a*b>=.7&&f.push(p)}else f.push(p)}}return f}}return[l,u,c]}const[oi,ai,li]=si(1),[ui,ci,hi]=si(.001);function di(t,e){return t.map((t=>t.map(((i,n)=>0==n||8==n||null==i?i:e(1==n||0==t[8]?i:t[1]+i)))))}function fi(t,e){return(i,n,r,s,o)=>{let a,l,u,c,h,d,f=e.find((t=>o>=t[0]))||e[e.length-1];return n.map((e=>{let i=t(e),n=i.getFullYear(),r=i.getMonth(),s=i.getDate(),o=i.getHours(),p=i.getMinutes(),m=i.getSeconds(),g=n!=a&&f[2]||r!=l&&f[3]||s!=u&&f[4]||o!=c&&f[5]||p!=h&&f[6]||m!=d&&f[7]||f[1];return a=n,l=r,u=s,c=o,h=p,d=m,g(i)}))}}function pi(t,e){let i=qe(e);return(e,n,r,s,o)=>n.map((e=>i(t(e))))}function mi(t,e,i){return new Date(t,e,i)}function gi(t,e){return e(t)}oe(2,-53,53,[1]);const _i="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function yi(t,e){return(i,n,r,s)=>null==s?W:e(t(n))}function vi(t,e){let i=t.series[e];return i.width?i.stroke(t,e):i.points.width?i.points.stroke(t,e):null}function wi(t,e){return t.series[e].fill(t,e)}const bi={show:!0,live:!0,isolate:!1,mount:Ut,markers:{show:!0,width:2,stroke:vi,fill:wi,dash:"solid"},idx:null,idxs:null,values:[]};function xi(t,e){let i=t.cursor.points,n=et(),r=i.size(t,e);K(n,T,r),K(n,A,r);let s=r/-2;K(n,"marginLeft",s),K(n,"marginTop",s);let o=i.width(t,e,r);return o&&K(n,"borderWidth",o),n}function Si(t,e){let i=t.series[e].points;return i._fill||i._stroke}function Di(t,e){let i=t.series[e].points;return i._stroke||i._fill}function Ti(t,e){let i=t.series[e].points;return i.size}const Ai=[0,0];function ki(t,e,i){return Ai[0]=e,Ai[1]=i,Ai}function Ei(t,e,i,n=!0){return t=>{0==t.button&&(!n||t.target==e)&&i(t)}}function Mi(t,e,i,n=!0){return t=>{(!n||t.target==e)&&i(t)}}const Ri={show:!0,x:!0,y:!0,lock:!1,move:ki,points:{one:!1,show:xi,size:Ti,width:0,stroke:Di,fill:Si},bind:{mousedown:Ei,mouseup:Ei,click:Ei,dblclick:Ei,mousemove:Mi,mouseleave:Mi,mouseenter:Mi},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,e)=>{e.stopPropagation(),e.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,e,i,n,r)=>n-r,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Pi={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Oi=ve({},Pi,{filter:$t}),Ci=ve({},Oi,{size:10}),Li=ve({},Pi,{show:!1}),Ii='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',Ni="bold "+Ii,Yi=1.5,qi={show:!0,scale:"x",stroke:P,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Ni,side:2,grid:Oi,ticks:Ci,border:Li,font:Ii,lineGap:Yi,rotate:0},Fi="Value",Hi="Time",Bi={show:!0,scale:"x",auto:!1,sorted:1,min:Xt,max:-Xt,idxs:[]};function Xi(t,e,i,n,r){return e.map((t=>null==t?"":kt(t)))}function Wi(t,e,i,n,r,s,o){let a=[],l=re.get(r)||0;i=o?i:ne(ee(i,r),l);for(let u=i;u<=n;u=ne(u+r,l))a.push(Object.is(u,-0)?0:u);return a}function zi(t,e,i,n,r,s,o){const a=[],l=t.scales[t.axes[e].scale].log,u=10==l?qt:Ft,c=Pt(u(i));r=Nt(l,c),10==l&&(r=Ue[dt(r,Ue)]);let h=i,d=r*l;10==l&&(d=Ue[dt(d,Ue)]);do{a.push(h),h+=r,10!=l||re.has(h)||(h=ne(h,re.get(r))),h>=d&&(r=h,d=r*l,10==l&&(d=Ue[dt(d,Ue)]))}while(h<=n);return a}function ji(t,e,i,n,r,s,o){let a=t.scales[t.axes[e].scale],l=a.asinh,u=n>l?zi(t,e,It(l,i),n,r):[l],c=n>=0&&i<=0?[0]:[],h=i<-l?zi(t,e,It(l,-n),-i,r):[l];return h.reverse().map((t=>-t)).concat(c,u)}const Ui=/./,Gi=/[12357]/,$i=/[125]/,Vi=/1/,Qi=(t,e,i,n)=>t.map(((t,r)=>4==e&&0==t||r%n==0&&i.test(t.toExponential()[t<0?1:0])?t:null));function Zi(t,e,i,n,r){let s=t.axes[i],o=s.scale,a=t.scales[o],l=t.valToPos,u=s._space,c=l(10,o),h=l(9,o)-c>=u?Ui:l(7,o)-c>=u?Gi:l(5,o)-c>=u?$i:Vi;if(h==Vi){let t=Rt(l(1,o)-c);if(t<u)return Qi(e.slice().reverse(),a.distr,h,Ct(u/t)).reverse()}return Qi(e,a.distr,h,1)}function Ji(t,e,i,n,r){let s=t.axes[i],o=s.scale,a=s._space,l=t.valToPos,u=Rt(l(1,o)-l(2,o));return u<a?Qi(e.slice().reverse(),3,Ui,Ct(a/u)).reverse():e}function Ki(t,e,i,n){return null==n?W:null==e?"":kt(e)}const tn={show:!0,scale:"y",stroke:P,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Ni,side:3,grid:Oi,ticks:Ci,border:Li,font:Ii,lineGap:Yi,rotate:0};function en(t,e){let i=3+2*(t||1);return ne(i*e,3)}function nn(t,e){let{scale:i,idxs:n}=t.series[0],r=t._data[0],s=t.valToPos(r[n[0]],i,!0),o=t.valToPos(r[n[1]],i,!0),a=Rt(o-s),l=t.series[e],u=a/(l.points.space*$);return n[1]-n[0]<=u}const rn={scale:null,auto:!0,sorted:0,min:Xt,max:-Xt},sn=(t,e,i,n,r)=>r,on={show:!0,auto:!0,sorted:0,gaps:sn,alpha:1,facets:[ve({},rn,{scale:"x"}),ve({},rn,{scale:"y"})]},an={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:sn,alpha:1,points:{show:nn,filter:null},values:null,min:Xt,max:-Xt,idxs:[],path:null,clip:null};function ln(t,e,i,n,r){return i/10}const un={time:n,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},cn=ve({},un,{time:!1,ori:1}),hn={};function dn(t,e){let i=hn[t];return i||(i={key:t,plots:[],sub(t){i.plots.push(t)},unsub(t){i.plots=i.plots.filter((e=>e!=t))},pub(t,e,n,r,s,o,a){for(let l=0;l<i.plots.length;l++)i.plots[l]!=e&&i.plots[l].pub(t,e,n,r,s,o,a)}},null!=t&&(hn[t]=i)),i}const fn=1,pn=2;function mn(t,e,i){const n=t.mode,r=t.series[e],s=2==n?t._data[e]:t._data,o=t.scales,a=t.bbox;let l=s[0],u=2==n?s[1]:s[e],c=2==n?o[r.facets[0].scale]:o[t.series[0].scale],h=2==n?o[r.facets[1].scale]:o[r.scale],d=a.left,f=a.top,p=a.width,m=a.height,g=t.valToPosH,_=t.valToPosV;return 0==c.ori?i(r,l,u,c,h,g,_,d,f,p,m,Dn,An,En,Rn,On):i(r,l,u,c,h,_,g,f,d,m,p,Tn,kn,Mn,Pn,Cn)}function gn(t,e){let i=0,n=0,r=St(t.bands,le);for(let s=0;s<r.length;s++){let t=r[s];t.series[0]==e?i=t.dir:t.series[1]==e&&(1==t.dir?n|=1:n|=2)}return[i,1==n?-1:2==n?1:3==n?2:0]}function _n(t,e,i,n,r){let s=t.mode,o=t.series[e],a=2==s?o.facets[1].scale:o.scale,l=t.scales[a];return-1==r?l.min:1==r?l.max:3==l.distr?1==l.dir?l.min:l.max:0}function yn(t,e,i,n,r,s){return mn(t,e,((t,e,o,a,l,u,c,h,d,f,p)=>{let m=t.pxRound;const g=a.dir*(0==a.ori?1:-1),_=0==a.ori?An:kn;let y,v;1==g?(y=i,v=n):(y=n,v=i);let w=m(u(e[y],a,f,h)),b=m(c(o[y],l,p,d)),x=m(u(e[v],a,f,h)),S=m(c(1==s?l.max:l.min,l,p,d)),D=new Path2D(r);return _(D,x,S),_(D,w,S),_(D,w,b),D}))}function vn(t,e,i,n,r,s){let o=null;if(t.length>0){o=new Path2D;const a=0==e?En:Mn;let l=i;for(let e=0;e<t.length;e++){let i=t[e];if(i[1]>i[0]){let t=i[0]-l;t>0&&a(o,l,n,t,n+s),l=i[1]}}let u=i+r-l,c=10;u>0&&a(o,l,n-c/2,u,n+s+c)}return o}function wn(t,e,i){let n=t[t.length-1];n&&n[0]==e?n[1]=i:t.push([e,i])}function bn(t,e,i,n,r,s,o){let a=[],l=t.length;for(let u=1==r?i:n;u>=i&&u<=n;u+=r){let c=e[u];if(null===c){let c=u,h=u;if(1==r)while(++u<=n&&null===e[u])h=u;else while(--u>=i&&null===e[u])h=u;let d=s(t[c]),f=h==c?d:s(t[h]),p=c-r,m=o<=0&&p>=0&&p<l?s(t[p]):d;d=m;let g=h+r,_=o>=0&&g>=0&&g<l?s(t[g]):f;f=_,f>=d&&a.push([d,f])}}return a}function xn(t){return 0==t?Gt:1==t?Ot:e=>te(e,t)}function Sn(t){let e=0==t?Dn:Tn,i=0==t?(t,e,i,n,r,s)=>{t.arcTo(e,i,n,r,s)}:(t,e,i,n,r,s)=>{t.arcTo(i,e,r,n,s)},n=0==t?(t,e,i,n,r)=>{t.rect(e,i,n,r)}:(t,e,i,n,r)=>{t.rect(i,e,r,n)};return(t,r,s,o,a,l=0,u=0)=>{0==l&&0==u?n(t,r,s,o,a):(l=Lt(l,o/2,a/2),u=Lt(u,o/2,a/2),e(t,r+l,s),i(t,r+o,s,r+o,s+a,l),i(t,r+o,s+a,r,s+a,u),i(t,r,s+a,r,s,u),i(t,r,s,r+o,s,l),t.closePath())}}const Dn=(t,e,i)=>{t.moveTo(e,i)},Tn=(t,e,i)=>{t.moveTo(i,e)},An=(t,e,i)=>{t.lineTo(e,i)},kn=(t,e,i)=>{t.lineTo(i,e)},En=Sn(0),Mn=Sn(1),Rn=(t,e,i,n,r,s)=>{t.arc(e,i,n,r,s)},Pn=(t,e,i,n,r,s)=>{t.arc(i,e,n,r,s)},On=(t,e,i,n,r,s,o)=>{t.bezierCurveTo(e,i,n,r,s,o)},Cn=(t,e,i,n,r,s,o)=>{t.bezierCurveTo(i,e,r,n,o,s)};function Ln(t){return(t,e,i,n,r)=>mn(t,e,((e,s,o,a,l,u,c,h,d,f,p)=>{let m,g,{pxRound:_,points:y}=e;0==a.ori?(m=Dn,g=Rn):(m=Tn,g=Pn);const v=ne(y.width*$,3);let w=(y.size-y.width)/2*$,b=ne(2*w,3),x=new Path2D,S=new Path2D,{left:D,top:T,width:A,height:k}=t.bbox;En(S,D-b,T-b,A+2*b,k+2*b);const E=t=>{if(null!=o[t]){let e=_(u(s[t],a,f,h)),i=_(c(o[t],l,p,d));m(x,e+w,i),g(x,e,i,w,0,2*Mt)}};if(r)r.forEach(E);else for(let t=i;t<=n;t++)E(t);return{stroke:v>0?x:null,fill:x,clip:S,flags:fn|pn}}))}function In(t){return(e,i,n,r,s,o)=>{n!=r&&(s!=n&&o!=n&&t(e,i,n),s!=r&&o!=r&&t(e,i,r),t(e,i,o))}}const Nn=In(An),Yn=In(kn);function qn(t){const e=St(t?.alignGaps,0);return(t,i,n,r)=>mn(t,i,((s,o,a,l,u,c,h,d,f,p,m)=>{let g,_,y=s.pxRound,v=t=>y(c(t,l,p,d)),w=t=>y(h(t,u,m,f));0==l.ori?(g=An,_=Nn):(g=kn,_=Yn);const b=l.dir*(0==l.ori?1:-1),x={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:fn},S=x.stroke;let D,T,A,k=Xt,E=-Xt,M=v(o[1==b?n:r]),R=ft(a,n,r,1*b),P=ft(a,n,r,-1*b),O=v(o[R]),C=v(o[P]),L=!1;for(let t=1==b?n:r;t>=n&&t<=r;t+=b){let e=v(o[t]),i=a[t];e==M?null!=i?(T=w(i),k==Xt&&(g(S,e,T),D=T),k=Lt(T,k),E=It(T,E)):null===i&&(L=!0):(k!=Xt&&(_(S,M,k,E,D,T),A=M),null!=i?(T=w(i),g(S,e,T),k=E=D=T):(k=Xt,E=-Xt,null===i&&(L=!0)),M=e)}k!=Xt&&k!=E&&A!=M&&_(S,M,k,E,D,T);let[I,N]=gn(t,i);if(null!=s.fill||0!=I){let e=x.fill=new Path2D(S),n=s.fillTo(t,i,s.min,s.max,I),r=w(n);g(e,C,r),g(e,O,r)}if(!s.spanGaps){let u=[];L&&u.push(...bn(o,a,n,r,b,v,e)),x.gaps=u=s.gaps(t,i,n,r,u),x.clip=vn(u,l.ori,d,f,p,m)}return 0!=N&&(x.band=2==N?[yn(t,i,n,r,S,-1),yn(t,i,n,r,S,1)]:yn(t,i,n,r,S,N)),x}))}function Fn(t){const e=St(t.align,1),i=St(t.ascDesc,!1),n=St(t.alignGaps,0),r=St(t.extend,!1);return(t,s,o,a)=>mn(t,s,((l,u,c,h,d,f,p,m,g,_,y)=>{let v=l.pxRound,{left:w,width:b}=t.bbox,x=t=>v(f(t,h,_,m)),S=t=>v(p(t,d,y,g)),D=0==h.ori?An:kn;const T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:fn},A=T.stroke,k=h.dir*(0==h.ori?1:-1);o=ft(c,o,a,1),a=ft(c,o,a,-1);let E=S(c[1==k?o:a]),M=x(u[1==k?o:a]),R=M,P=M;r&&-1==e&&(P=w,D(A,P,E)),D(A,M,E);for(let t=1==k?o:a;t>=o&&t<=a;t+=k){let i=c[t];if(null==i)continue;let n=x(u[t]),r=S(i);1==e?D(A,n,E):D(A,R,r),D(A,n,r),E=r,R=n}let O=R;r&&1==e&&(O=w+b,D(A,O,E));let[C,L]=gn(t,s);if(null!=l.fill||0!=C){let e=T.fill=new Path2D(A),i=l.fillTo(t,s,l.min,l.max,C),n=S(i);D(e,O,n),D(e,P,n)}if(!l.spanGaps){let r=[];r.push(...bn(u,c,o,a,k,x,n));let d=l.width*$/2,f=i||1==e?d:-d,p=i||-1==e?-d:d;r.forEach((t=>{t[0]+=f,t[1]+=p})),T.gaps=r=l.gaps(t,s,o,a,r),T.clip=vn(r,h.ori,m,g,_,y)}return 0!=L&&(T.band=2==L?[yn(t,s,o,a,A,-1),yn(t,s,o,a,A,1)]:yn(t,s,o,a,A,L)),T}))}function Hn(t,e,i,n,r,s,o=Xt){if(t.length>1){let a=null;for(let l=0,u=1/0;l<t.length;l++)if(void 0!==e[l]){if(null!=a){let e=Rt(t[l]-t[a]);e<u&&(u=e,o=Rt(i(t[l],n,r,s)-i(t[a],n,r,s)))}a=l}}return o}function Bn(t){t=t||ae;const e=St(t.size,[.6,Xt,1]),i=t.align||0,n=t.gap||0;let r=t.radius;r=null==r?[0,0]:"number"==typeof r?[r,0]:r;const s=jt(r),o=1-e[0],a=St(e[1],Xt),l=St(e[2],1),u=St(t.disp,ae),c=St(t.each,(t=>{})),{fill:h,stroke:d}=u;return(t,e,r,f)=>mn(t,e,((p,m,g,_,y,v,w,b,x,S,D)=>{let T,A,k=p.pxRound,E=i,M=n*$,R=a*$,P=l*$;0==_.ori?[T,A]=s(t,e):[A,T]=s(t,e);const O=_.dir*(0==_.ori?1:-1);let C,L,I,N=0==_.ori?En:Mn,Y=0==_.ori?c:(t,e,i,n,r,s,o)=>{c(t,e,i,r,n,o,s)},q=St(t.bands,le).find((t=>t.series[0]==e)),F=null!=q?q.dir:0,H=p.fillTo(t,e,p.min,p.max,F),B=k(w(H,y,D,x)),X=S,W=k(p.width*$),z=!1,j=null,U=null,G=null,V=null;null==h||0!=W&&null==d||(z=!0,j=h.values(t,e,r,f),U=new Map,new Set(j).forEach((t=>{null!=t&&U.set(t,new Path2D)})),W>0&&(G=d.values(t,e,r,f),V=new Map,new Set(G).forEach((t=>{null!=t&&V.set(t,new Path2D)}))));let{x0:Q,size:Z}=u;if(null!=Q&&null!=Z){E=1,m=Q.values(t,e,r,f),2==Q.unit&&(m=m.map((e=>t.posToVal(b+e*S,_.key,!0))));let i=Z.values(t,e,r,f);L=2==Z.unit?i[0]*S:v(i[0],_,S,b)-v(0,_,S,b),X=Hn(m,g,v,_,S,b,X);let n=X-L;I=n+M}else{X=Hn(m,g,v,_,S,b,X);let t=X*o;I=t+M,L=X-I}I<1&&(I=0),W>=L/2&&(W=0),I<5&&(k=Gt);let J=I>0,K=X-I-(J?W:0);L=k(zt(K,P,R)),C=(0==E?L/2:E==O?0:L)-E*O*((0==E?M/2:0)+(J?W/2:0));const tt={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},et=z?null:new Path2D;let it=null;if(null!=q)it=t.data[q.series[1]];else{let{y0:i,y1:n}=u;null!=i&&null!=n&&(g=n.values(t,e,r,f),it=i.values(t,e,r,f))}let nt=T*L,rt=A*L;for(let i=1==O?r:f;i>=r&&i<=f;i+=O){let n=g[i];if(null==n)continue;if(null!=it){let t=it[i]??0;if(n-t==0)continue;B=w(t,y,D,x)}let r=2!=_.distr||null!=u?m[i]:i,s=v(r,_,S,b),o=w(St(n,H),y,D,x),a=k(s-C),l=k(It(o,B)),c=k(Lt(o,B)),h=l-c;if(null!=n){let r=n<0?rt:nt,s=n<0?nt:rt;z?(W>0&&null!=G[i]&&N(V.get(G[i]),a,c+Pt(W/2),L,It(0,h-W),r,s),null!=j[i]&&N(U.get(j[i]),a,c+Pt(W/2),L,It(0,h-W),r,s)):N(et,a,c+Pt(W/2),L,It(0,h-W),r,s),Y(t,e,i,a-W/2,c,L+W,h)}}return W>0?tt.stroke=z?V:et:z||(tt._fill=0==p.width?p._fill:p._stroke??p._fill,tt.width=0),tt.fill=z?U:et,tt}))}function Xn(t,e){const i=St(e?.alignGaps,0);return(e,n,r,s)=>mn(e,n,((o,a,l,u,c,h,d,f,p,m,g)=>{let _,y,v,w=o.pxRound,b=t=>w(h(t,u,m,f)),x=t=>w(d(t,c,g,p));0==u.ori?(_=Dn,v=An,y=On):(_=Tn,v=kn,y=Cn);const S=u.dir*(0==u.ori?1:-1);r=ft(l,r,s,1),s=ft(l,r,s,-1);let D=b(a[1==S?r:s]),T=D,A=[],k=[];for(let t=1==S?r:s;t>=r&&t<=s;t+=S){let e=l[t];if(null!=e){let e=a[t],i=b(e);A.push(T=i),k.push(x(l[t]))}}const E={stroke:t(A,k,_,v,y,w),fill:null,clip:null,band:null,gaps:null,flags:fn},M=E.stroke;let[R,P]=gn(e,n);if(null!=o.fill||0!=R){let t=E.fill=new Path2D(M),i=o.fillTo(e,n,o.min,o.max,R),r=x(i);v(t,T,r),v(t,D,r)}if(!o.spanGaps){let t=[];t.push(...bn(a,l,r,s,S,b,i)),E.gaps=t=o.gaps(e,n,r,s,t),E.clip=vn(t,u.ori,f,p,m,g)}return 0!=P&&(E.band=2==P?[yn(e,n,r,s,M,-1),yn(e,n,r,s,M,1)]:yn(e,n,r,s,M,P)),E}))}function Wn(t){return Xn(zn,t)}function zn(t,e,i,n,r,s){const o=t.length;if(o<2)return null;const a=new Path2D;if(i(a,t[0],e[0]),2==o)n(a,t[1],e[1]);else{let i=Array(o),n=Array(o-1),s=Array(o-1),l=Array(o-1);for(let r=0;r<o-1;r++)s[r]=e[r+1]-e[r],l[r]=t[r+1]-t[r],n[r]=s[r]/l[r];i[0]=n[0];for(let t=1;t<o-1;t++)0===n[t]||0===n[t-1]||n[t-1]>0!==n[t]>0?i[t]=0:(i[t]=3*(l[t-1]+l[t])/((2*l[t]+l[t-1])/n[t-1]+(l[t]+2*l[t-1])/n[t]),isFinite(i[t])||(i[t]=0));i[o-1]=n[o-2];for(let u=0;u<o-1;u++)r(a,t[u]+l[u]/3,e[u]+i[u]*l[u]/3,t[u+1]-l[u]/3,e[u+1]-i[u+1]*l[u]/3,t[u+1],e[u+1])}return a}const jn=new Set;function Un(){for(let t of jn)t.syncRect(!0)}z&&(ct(F,U,Un),ct(H,U,Un,!0),ct(X,U,(()=>{lr.pxRatio=$})));const Gn=qn(),$n=Ln();function Vn(t,e,i,n){let r=n?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1));return r.map(((t,n)=>Zn(t,n,e,i)))}function Qn(t,e){return t.map(((t,i)=>0==i?{}:ve({},e,t)))}function Zn(t,e,i,n){return ve({},0==e?i:n,t)}function Jn(t,e,i){return null==e?ue:[e,i]}const Kn=Jn;function tr(t,e,i){return null==e?ue:xt(e,i,yt,!0)}function er(t,e,i,n){return null==e?ue:gt(e,i,t.scales[n].log,!1)}const ir=er;function nr(t,e,i,n){return null==e?ue:_t(e,i,t.scales[n].log,!1)}const rr=nr;function sr(t,e,i,n,r){let s=It(Wt(t),Wt(e)),o=e-t,a=dt(r/n*o,i);do{let t=i[a],e=n*t/o;if(e>=r&&s+(t<5?re.get(t):0)<=17)return[t,e]}while(++a<i.length);return[0,0]}function or(t){let e,i;return t=t.replace(/(\d+)px/,((t,n)=>(e=Ot((i=+n)*$))+"px")),[t,e,i]}function ar(t){t.show&&[t.font,t.labelFont].forEach((t=>{let e=ne(t[2]*$,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e}))}function lr(t,e,i){const n={mode:St(t.mode,1)},r=n.mode;function P(t,e){let i=3==e.distr?qt(t>0?t:e.clamp(n,t,e.min,e.max,e.key)):4==e.distr?Bt(t,e.asinh):100==e.distr?e.fwd(t):t;return(i-e._min)/(e._max-e._min)}function F(t,e,i,n){let r=P(t,e);return n+i*(-1==e.dir?1-r:r)}function H(t,e,i,n){let r=P(t,e);return n+i*(-1==e.dir?r:1-r)}function B(t,e,i,n){return 0==e.ori?F(t,e,i,n):H(t,e,i,n)}n.valToPosH=F,n.valToPosV=H;let z=!1;n.status=0;const G=n.root=et(s);if(null!=t.id&&(G.id=t.id),Z(G,t.class),t.title){let e=et(l,G);e.textContent=t.title}const V=tt("canvas"),Q=n.ctx=V.getContext("2d"),it=et(u,G);ct("click",it,(t=>{if(t.target===ot){let e=Ar!=xr||kr!=Sr;e&&Yr.click(n,t)}}),!0);const rt=n.under=et(c,it);it.appendChild(V);const ot=n.over=et(h,it);t=ye(t);const lt=+St(t.pxAlign,1),ut=xn(lt);(t.plugins||[]).forEach((e=>{e.opts&&(t=e.opts(n,t)||t)}));const ft=t.ms||.001,wt=n.series=1==r?Vn(t.series||[],Bi,an,!1):Qn(t.series||[null],on),bt=n.axes=Vn(t.axes||[],qi,tn,!0),Tt=n.scales={},At=n.bands=t.bands||[];At.forEach((t=>{t.fill=jt(t.fill||null),t.dir=St(t.dir,-1)}));const kt=2==r?wt[1].facets[0].scale:wt[0].scale,Et={axes:pr,series:Hn},Pt=(t.drawOrder||["axes","series"]).map((t=>Et[t]));function Yt(e){let i=Tt[e];if(null==i){let n=(t.scales||ae)[e]||ae;if(null!=n.from)Yt(n.from),Tt[e]=ve({},Tt[n.from],n,{key:e});else{i=Tt[e]=ve({},e==kt?un:cn,n),i.key=e;let t=i.time,s=i.range,o=ce(s);if((e!=kt||2==r&&!t)&&(!o||null!=s[0]&&null!=s[1]||(s={min:null==s[0]?vt:{mode:1,hard:s[0],soft:s[0]},max:null==s[1]?vt:{mode:1,hard:s[1],soft:s[1]}},o=!1),!o&&pe(s))){let t=s;s=(e,i,n)=>null==i?ue:xt(i,n,t)}i.range=jt(s||(t?Kn:e==kt?3==i.distr?ir:4==i.distr?rr:Jn:3==i.distr?er:4==i.distr?nr:tr)),i.auto=jt(!o&&i.auto),i.clamp=jt(i.clamp||ln),i._min=i._max=null}}}Yt("x"),Yt("y"),1==r&&wt.forEach((t=>{Yt(t.scale)})),bt.forEach((t=>{Yt(t.scale)}));for(let s in t.scales)Yt(s);const Ft=Tt[kt],Wt=Ft.distr;let Ut,Gt;0==Ft.ori?(Z(G,o),Ut=F,Gt=H):(Z(G,a),Ut=H,Gt=F);const Jt={};for(let s in Tt){let t=Tt[s];null==t.min&&null==t.max||(Jt[s]={min:t.min,max:t.max},t.min=t.max=null)}const Kt=t.tzDate||(t=>new Date(Ot(t/ft))),ee=t.fmtDate||qe,ie=1==ft?li(Kt):hi(Kt),oe=fi(Kt,di(1==ft?ai:ci,ee)),he=yi(Kt,gi(_i,ee)),ge=[],_e=n.legend=ve({},bi,t.legend),we=_e.show,be=_e.markers;let xe,Se,De;_e.idxs=ge,be.width=jt(be.width),be.dash=jt(be.dash),be.stroke=jt(be.stroke),be.fill=jt(be.fill);let Ae,ke=[],Ee=[],Me=!1,Re={};if(_e.live){const t=wt[1]?wt[1].values:null;Me=null!=t,Ae=Me?t(n,1,0):{_:0};for(let e in Ae)Re[e]=W}if(we)if(xe=tt("table",y,G),De=tt("tbody",null,xe),_e.mount(n,xe),Me){Se=tt("thead",null,xe,De);let t=tt("tr",null,Se);for(var Pe in tt("th",null,t),Ae)tt("th",S,t).textContent=Pe}else Z(xe,w),_e.live&&Z(xe,v);const Oe={show:!0},Ce={show:!1};function Le(t,e){if(0==e&&(Me||!_e.live||2==r))return ue;let i=[],s=tt("tr",b,De,De.childNodes[e]);Z(s,t.class),t.show||Z(s,f);let o=tt("th",null,s);if(be.show){let t=et(x,o);if(e>0){let i=be.width(n,e);i&&(t.style.border=i+"px "+be.dash(n,e)+" "+be.stroke(n,e)),t.style.background=be.fill(n,e)}}let a=et(S,o);for(var l in a.textContent=t.label,e>0&&(be.show||(a.style.color=t.width>0?be.stroke(n,e):be.fill(n,e)),Ne("click",o,(e=>{if(ki._lock)return;Ei(e);let i=wt.indexOf(t);if((e.ctrlKey||e.metaKey)!=_e.isolate){let t=wt.some(((t,e)=>e>0&&e!=i&&t.show));wt.forEach(((e,n)=>{n>0&&jr(n,t?n==i?Oe:Ce:Oe,!0,Rs.setSeries)}))}else jr(i,{show:!t.show},!0,Rs.setSeries)}),!1),Oi&&Ne(N,o,(e=>{ki._lock||(Ei(e),jr(wt.indexOf(t),Kr,!0,Rs.setSeries))}),!1)),Ae){let t=tt("td",D,s);t.textContent="--",i.push(t)}return[s,i]}const Ie=new Map;function Ne(t,e,i,r=!0){const s=Ie.get(e)||{},o=ki.bind[t](n,e,i,r);o&&(ct(t,e,s[t]=o),Ie.set(e,s))}function Ye(t,e,i){const n=Ie.get(e)||{};for(let r in n)null!=t&&r!=t||(ht(r,e,n[r]),delete n[r]);null==t&&Ie.delete(e)}let Fe=0,He=0,Be=0,Xe=0,We=0,ze=0,Ge=We,$e=ze,Ve=Be,Qe=Xe,Ze=0,Je=0,Ke=0,ti=0;n.bbox={};let ei=!1,ii=!1,ni=!1,ri=!1,si=!1,mi=!1;function vi(t,e,i){(i||t!=n.width||e!=n.height)&&wi(t,e),mr(!1),ni=!0,ii=!0,Or()}function wi(t,e){n.width=Fe=Be=t,n.height=He=Xe=e,We=ze=0,Ti(),Ai();let i=n.bbox;Ze=i.left=te(We*$,.5),Je=i.top=te(ze*$,.5),Ke=i.width=te(Be*$,.5),ti=i.height=te(Xe*$,.5)}const xi=3;function Si(){let t=!1,e=0;while(!t){e++;let i=dr(e),r=fr(e);t=e==xi||i&&r,t||(wi(n.width,n.height),ii=!0)}}function Di({width:t,height:e}){vi(t,e)}function Ti(){let t=!1,e=!1,i=!1,n=!1;bt.forEach(((r,s)=>{if(r.show&&r._show){let{side:s,_size:o}=r,a=s%2,l=null!=r.label?r.labelSize:0,u=o+l;u>0&&(a?(Be-=u,3==s?(We+=u,n=!0):i=!0):(Xe-=u,0==s?(ze+=u,t=!0):e=!0))}})),Vi[0]=t,Vi[1]=i,Vi[2]=e,Vi[3]=n,Be-=sn[1]+sn[3],We+=sn[3],Xe-=sn[2]+sn[0],ze+=sn[0]}function Ai(){let t=We+Be,e=ze+Xe,i=We,n=ze;function r(r,s){switch(r){case 1:return t+=s,t-s;case 2:return e+=s,e-s;case 3:return i-=s,i+s;case 0:return n-=s,n+s}}bt.forEach(((t,e)=>{if(t.show&&t._show){let e=t.side;t._pos=r(e,t._size),null!=t.label&&(t._lpos=r(e,t.labelSize))}}))}n.setSize=Di;const ki=n.cursor=ve({},Ri,{drag:{y:2==r}},t.cursor);if(null==ki.dataIdx){let t=ki.hover,i=t.skip=new Set(t.skip??[]);i.add(void 0);let n=t.prox=jt(t.prox),r=t.bias??(t.bias=0);ki.dataIdx=(t,s,o,a)=>{if(0==s)return o;let l=o,u=n(t,s,o,a)??Xt,c=u>=0&&u<Xt,h=0==Ft.ori?Be:Xe,d=ki.left,f=e[0],p=e[s];if(i.has(p[o])){l=null;let t,e=null,n=null;if(0==r||-1==r){t=o;while(null==e&&t-- >0)i.has(p[t])||(e=t)}if(0==r||1==r){t=o;while(null==n&&t++<p.length)i.has(p[t])||(n=t)}if(null!=e||null!=n)if(c){let t=null==e?-1/0:Ut(f[e],Ft,h,0),i=null==n?1/0:Ut(f[n],Ft,h,0),r=d-t,s=i-d;r<=s?r<=u&&(l=e):s<=u&&(l=n)}else l=null==n?e:null==e?n:o-e<=n-o?e:n}else if(c){let t=Rt(d-Ut(f[o],Ft,h,0));t>u&&(l=null)}return l}}const Ei=t=>{ki.event=t};ki.idxs=ge,ki._lock=!1;let Mi=ki.points;Mi.show=jt(Mi.show),Mi.size=jt(Mi.size),Mi.stroke=jt(Mi.stroke),Mi.width=jt(Mi.width),Mi.fill=jt(Mi.fill);const Pi=n.focus=ve({},t.focus||{alpha:.3},ki.focus),Oi=Pi.prox>=0,Ci=Oi&&Mi.one;let Li=[],Ii=[],Ni=[];function Yi(t,e){let i=Mi.show(n,e);if(i)return Z(i,_),Z(i,t.class),nt(i,-10,-10,Be,Xe),ot.insertBefore(i,Li[e]),i}function Ui(t,e){if(1==r||e>0){let e=1==r&&Tt[t.scale].time,i=t.value;t.value=e?fe(i)?yi(Kt,gi(i,ee)):i||he:i||Ki,t.label=t.label||(e?Hi:Fi)}if(Ci||e>0){t.width=null==t.width?1:t.width,t.paths=t.paths||Gn||Vt,t.fillTo=jt(t.fillTo||_n),t.pxAlign=+St(t.pxAlign,lt),t.pxRound=xn(t.pxAlign),t.stroke=jt(t.stroke||null),t.fill=jt(t.fill||null),t._stroke=t._fill=t._paths=t._focus=null;let e=en(It(1,t.width),1),i=t.points=ve({},{size:e,width:It(1,.2*e),stroke:t.stroke,space:2*e,paths:$n,_stroke:null,_fill:null},t.points);i.show=jt(i.show),i.filter=jt(i.filter),i.fill=jt(i.fill),i.stroke=jt(i.stroke),i.paths=jt(i.paths),i.pxAlign=t.pxAlign}if(we){let i=Le(t,e);ke.splice(e,0,i[0]),Ee.splice(e,0,i[1]),_e.values.push(null)}if(ki.show){ge.splice(e,0,null);let i=null;Ci?0==e&&(i=Yi(t,e)):e>0&&(i=Yi(t,e)),Li.splice(e,0,i),Ii.splice(e,0,0),Ni.splice(e,0,0)}Es("addSeries",e)}function Gi(t,e){e=null==e?wt.length:e,t=1==r?Zn(t,e,Bi,an):Zn(t,e,{},on),wt.splice(e,0,t),Ui(wt[e],e)}function $i(t){if(wt.splice(t,1),we){_e.values.splice(t,1),Ee.splice(t,1);let e=ke.splice(t,1)[0];Ye(null,e.firstChild),e.remove()}ki.show&&(ge.splice(t,1),Li.splice(t,1)[0].remove(),Ii.splice(t,1),Ni.splice(t,1)),Es("delSeries",t)}n.addSeries=Gi,n.delSeries=$i;const Vi=[!1,!1,!1,!1];function Qi(t,e){if(t._show=t.show,t.show){let i=t.side%2,r=Tt[t.scale];null==r&&(t.scale=i?wt[1].scale:kt,r=Tt[t.scale]);let s=r.time;t.size=jt(t.size),t.space=jt(t.space),t.rotate=jt(t.rotate),ce(t.incrs)&&t.incrs.forEach((t=>{!re.has(t)&&re.set(t,se(t))})),t.incrs=jt(t.incrs||(2==r.distr?je:s?1==ft?oi:ui:Ue)),t.splits=jt(t.splits||(s&&1==r.distr?ie:3==r.distr?zi:4==r.distr?ji:Wi)),t.stroke=jt(t.stroke),t.grid.stroke=jt(t.grid.stroke),t.ticks.stroke=jt(t.ticks.stroke),t.border.stroke=jt(t.border.stroke);let o=t.values;t.values=ce(o)&&!ce(o[0])?jt(o):s?ce(o)?fi(Kt,di(o,ee)):fe(o)?pi(Kt,o):o||oe:o||Xi,t.filter=jt(t.filter||(r.distr>=3&&10==r.log?Zi:3==r.distr&&2==r.log?Ji:$t)),t.font=or(t.font),t.labelFont=or(t.labelFont),t._size=t.size(n,null,e,0),t._space=t._rotate=t._incrs=t._found=t._splits=t._values=null,t._size>0&&(Vi[e]=!0,t._el=et(d,it))}}function nn(t,e,i,n){let[r,s,o,a]=i,l=e%2,u=0;return 0==l&&(a||s)&&(u=0==e&&!r||2==e&&!o?Ot(qi.size/3):0),1==l&&(r||o)&&(u=1==e&&!s||3==e&&!a?Ot(tn.size/2):0),u}const rn=n.padding=(t.padding||[nn,nn,nn,nn]).map((t=>jt(St(t,nn)))),sn=n._padding=rn.map(((t,e)=>t(n,e,Vi,0)));let hn,mn=null,gn=null;const yn=1==r?wt[0].idxs:null;let vn,wn,bn,Sn,Dn,Tn,An,kn,En,Mn,Rn=null,Pn=!1;function On(t,i){if(e=null==t?[]:t,n.data=n._data=e,2==r){hn=0;for(let t=1;t<wt.length;t++)hn+=e[t][0].length}else{0==e.length&&(n.data=n._data=e=[[]]),Rn=e[0],hn=Rn.length;let t=e;if(2==Wt){t=e.slice();let i=t[0]=Array(hn);for(let t=0;t<hn;t++)i[t]=t}n._data=e=t}if(mr(!0),Es("setData"),2==Wt&&(ni=!0),!1!==i){let t=Ft;t.auto(n,Pn)?Cn():zr(kt,t.min,t.max),ri=ri||ki.left>=0,mi=!0,Or()}}function Cn(){let t,i;Pn=!0,1==r&&(hn>0?(mn=yn[0]=0,gn=yn[1]=hn-1,t=e[0][mn],i=e[0][gn],2==Wt?(t=mn,i=gn):t==i&&(3==Wt?[t,i]=gt(t,t,Ft.log,!1):4==Wt?[t,i]=_t(t,t,Ft.log,!1):Ft.time?i=t+Ot(86400/ft):[t,i]=xt(t,i,yt,!0))):(mn=yn[0]=t=null,gn=yn[1]=i=null)),zr(kt,t,i)}function Ln(t,e,i,n,r,s){t??(t=O),i??(i=le),n??(n="butt"),r??(r=O),s??(s="round"),t!=vn&&(Q.strokeStyle=vn=t),r!=wn&&(Q.fillStyle=wn=r),e!=bn&&(Q.lineWidth=bn=e),s!=Dn&&(Q.lineJoin=Dn=s),n!=Tn&&(Q.lineCap=Tn=n),i!=Sn&&Q.setLineDash(Sn=i)}function In(t,e,i,n){e!=wn&&(Q.fillStyle=wn=e),t!=An&&(Q.font=An=t),i!=kn&&(Q.textAlign=kn=i),n!=En&&(Q.textBaseline=En=n)}function Nn(t,e,i,r,s=0){if(r.length>0&&t.auto(n,Pn)&&(null==e||null==e.min)){let e=St(mn,0),n=St(gn,r.length-1),o=null==i.min?3==t.distr?mt(r,e,n):pt(r,e,n,s):[i.min,i.max];t.min=Lt(t.min,i.min=o[0]),t.max=It(t.max,i.max=o[1])}}n.setData=On;const Yn={min:null,max:null};function qn(){for(let e in Tt){let t=Tt[e];null==Jt[e]&&(null==t.min||null!=Jt[kt]&&t.auto(n,Pn))&&(Jt[e]=Yn)}for(let e in Tt){let t=Tt[e];null==Jt[e]&&null!=t.from&&null!=Jt[t.from]&&(Jt[e]=Yn)}null!=Jt[kt]&&mr(!0);let t={};for(let e in Jt){let i=Jt[e];if(null!=i){let s=t[e]=ye(Tt[e],me);if(null!=i.min)ve(s,i);else if(e!=kt||2==r)if(0==hn&&null==s.from){let t=s.range(n,null,null,e);s.min=t[0],s.max=t[1]}else s.min=Xt,s.max=-Xt}}if(hn>0){wt.forEach(((i,s)=>{if(1==r){let r=i.scale,o=Jt[r];if(null==o)return;let a=t[r];if(0==s){let t=a.range(n,a.min,a.max,r);a.min=t[0],a.max=t[1],mn=dt(a.min,e[0]),gn=dt(a.max,e[0]),gn-mn>1&&(e[0][mn]<a.min&&mn++,e[0][gn]>a.max&&gn--),i.min=Rn[mn],i.max=Rn[gn]}else i.show&&i.auto&&Nn(a,o,i,e[s],i.sorted);i.idxs[0]=mn,i.idxs[1]=gn}else if(s>0&&i.show&&i.auto){let[n,r]=i.facets,o=n.scale,a=r.scale,[l,u]=e[s],c=t[o],h=t[a];null!=c&&Nn(c,Jt[o],n,l,n.sorted),null!=h&&Nn(h,Jt[a],r,u,r.sorted),i.min=r.min,i.max=r.max}}));for(let e in t){let i=t[e],r=Jt[e];if(null==i.from&&(null==r||null==r.min)){let t=i.range(n,i.min==Xt?null:i.min,i.max==-Xt?null:i.max,e);i.min=t[0],i.max=t[1]}}}for(let e in t){let i=t[e];if(null!=i.from){let r=t[i.from];if(null==r.min)i.min=i.max=null;else{let t=i.range(n,r.min,r.max,e);i.min=t[0],i.max=t[1]}}}let i={},s=!1;for(let e in t){let n=t[e],r=Tt[e];if(r.min!=n.min||r.max!=n.max){r.min=n.min,r.max=n.max;let t=r.distr;r._min=3==t?qt(r.min):4==t?Bt(r.min,r.asinh):100==t?r.fwd(r.min):r.min,r._max=3==t?qt(r.max):4==t?Bt(r.max,r.asinh):100==t?r.fwd(r.max):r.max,i[e]=s=!0}}if(s){wt.forEach(((t,e)=>{2==r?e>0&&i.y&&(t._paths=null):i[t.scale]&&(t._paths=null)}));for(let t in i)ni=!0,Es("setScale",t);ki.show&&ki.left>=0&&(ri=mi=!0)}for(let e in Jt)Jt[e]=null}function Fn(t){let e=zt(mn-1,0,hn-1),i=zt(gn+1,0,hn-1);while(null==t[e]&&e>0)e--;while(null==t[i]&&i<hn-1)i++;return[e,i]}function Hn(){hn>0&&(wt.forEach(((t,i)=>{if(i>0&&t.show&&(Bn(i,!1),Bn(i,!0),null==t._paths)){Mn!=t.alpha&&(Q.globalAlpha=Mn=t.alpha);let s=2==r?[0,e[i][0].length-1]:Fn(e[i]);t._paths=t.paths(n,i,s[0],s[1]),1!=Mn&&(Q.globalAlpha=Mn=1)}})),wt.forEach(((t,e)=>{if(e>0&&t.show){Mn!=t.alpha&&(Q.globalAlpha=Mn=t.alpha),null!=t._paths&&Xn(e,!1);{let i=null!=t._paths?t._paths.gaps:null,r=t.points.show(n,e,mn,gn,i),s=t.points.filter(n,e,r,i);(r||s)&&(t.points._paths=t.points.paths(n,e,mn,gn,s),Xn(e,!0))}1!=Mn&&(Q.globalAlpha=Mn=1),Es("drawSeries",e)}})))}function Bn(t,e){let i=e?wt[t].points:wt[t];i._stroke=i.stroke(n,t),i._fill=i.fill(n,t)}function Xn(t,e){let i=e?wt[t].points:wt[t],{stroke:n,fill:r,clip:s,flags:o,_stroke:a=i._stroke,_fill:l=i._fill,_width:u=i.width}=i._paths;u=ne(u*$,3);let c=null,h=u%2/2;e&&null==l&&(l=u>0?"#fff":a);let d=1==i.pxAlign&&h>0;if(d&&Q.translate(h,h),!e){let t=Ze-u/2,e=Je-u/2,i=Ke+u,n=ti+u;c=new Path2D,c.rect(t,e,i,n)}e?Un(a,u,i.dash,i.cap,l,n,r,o,s):Wn(t,a,u,i.dash,i.cap,l,n,r,o,c,s),d&&Q.translate(-h,-h)}function Wn(t,i,r,s,o,a,l,u,c,h,d){let f=!1;0!=c&&At.forEach(((p,m)=>{if(p.series[0]==t){let t,g=wt[p.series[1]],_=e[p.series[1]],y=(g._paths||ae).band;ce(y)&&(y=1==p.dir?y[0]:y[1]);let v=null;g.show&&y&&Dt(_,mn,gn)?(v=p.fill(n,m)||a,t=g._paths.clip):y=null,Un(i,r,s,o,v,l,u,c,h,d,t,y),f=!0}})),f||Un(i,r,s,o,a,l,u,c,h,d)}const zn=fn|pn;function Un(t,e,i,n,r,s,o,a,l,u,c,h){Ln(t,e,i,n,r),(l||u||h)&&(Q.save(),l&&Q.clip(l),u&&Q.clip(u)),h?(a&zn)==zn?(Q.clip(h),c&&Q.clip(c),ur(r,o),lr(t,s,e)):a&pn?(ur(r,o),Q.clip(h),lr(t,s,e)):a&fn&&(Q.save(),Q.clip(h),c&&Q.clip(c),ur(r,o),Q.restore(),lr(t,s,e)):(ur(r,o),lr(t,s,e)),(l||u||h)&&Q.restore()}function lr(t,e,i){i>0&&(e instanceof Map?e.forEach(((t,e)=>{Q.strokeStyle=vn=e,Q.stroke(t)})):null!=e&&t&&Q.stroke(e))}function ur(t,e){e instanceof Map?e.forEach(((t,e)=>{Q.fillStyle=wn=e,Q.fill(t)})):null!=e&&t&&Q.fill(e)}function cr(t,e,i,r){let s,o=bt[t];if(r<=0)s=[0,0];else{let a=o._space=o.space(n,t,e,i,r),l=o._incrs=o.incrs(n,t,e,i,r,a);s=sr(e,i,l,r,a)}return o._found=s}function hr(t,e,i,n,r,s,o,a,l,u){let c=o%2/2;1==lt&&Q.translate(c,c),Ln(a,o,l,u,a),Q.beginPath();let h,d,f,p,m=r+(0==n||3==n?-s:s);0==i?(d=r,p=m):(h=r,f=m);for(let g=0;g<t.length;g++)null!=e[g]&&(0==i?h=f=t[g]:d=p=t[g],Q.moveTo(h,d),Q.lineTo(f,p));Q.stroke(),1==lt&&Q.translate(-c,-c)}function dr(t){let e=!0;return bt.forEach(((i,r)=>{if(!i.show)return;let s=Tt[i.scale];if(null==s.min)return void(i._show&&(e=!1,i._show=!1,mr(!1)));i._show||(e=!1,i._show=!0,mr(!1));let o=i.side,a=o%2,{min:l,max:u}=s,[c,h]=cr(r,l,u,0==a?Be:Xe);if(0==h)return;let d=2==s.distr,f=i._splits=i.splits(n,r,l,u,c,h,d),p=2==s.distr?f.map((t=>Rn[t])):f,m=2==s.distr?Rn[f[1]]-Rn[f[0]]:c,g=i._values=i.values(n,i.filter(n,p,r,h,m),r,h,m);i._rotate=2==o?i.rotate(n,g,r,h):0;let _=i._size;i._size=Ct(i.size(n,g,r,t)),null!=_&&i._size!=_&&(e=!1)})),e}function fr(t){let e=!0;return rn.forEach(((i,r)=>{let s=i(n,r,Vi,t);s!=sn[r]&&(e=!1),sn[r]=s})),e}function pr(){for(let t=0;t<bt.length;t++){let e=bt[t];if(!e.show||!e._show)continue;let i,r,s=e.side,o=s%2,a=e.stroke(n,t),l=0==s||3==s?-1:1;if(e.label){let t=e.labelGap*l,n=Ot((e._lpos+t)*$);In(e.labelFont[0],a,"center",2==s?k:E),Q.save(),1==o?(i=r=0,Q.translate(n,Ot(Je+ti/2)),Q.rotate((3==s?-Mt:Mt)/2)):(i=Ot(Ze+Ke/2),r=n),Q.fillText(e.label,i,r),Q.restore()}let[u,c]=e._found;if(0==c)continue;let h=Tt[e.scale],d=0==o?Ke:ti,f=0==o?Ze:Je,p=Ot(e.gap*$),m=e._splits,g=2==h.distr?m.map((t=>Rn[t])):m,_=2==h.distr?Rn[m[1]]-Rn[m[0]]:u,y=e.ticks,v=e.border,w=y.show?Ot(y.size*$):0,b=e._rotate*-Mt/180,x=ut(e._pos*$),S=(w+p)*l,D=x+S;r=0==o?D:0,i=1==o?D:0;let T=e.font[0],A=1==e.align?M:2==e.align?R:b>0?M:b<0?R:0==o?"center":3==s?R:M,P=b||1==o?"middle":2==s?k:E;In(T,a,A,P);let O=e.font[1]*e.lineGap,C=m.map((t=>ut(B(t,h,d,f)))),L=e._values;for(let t=0;t<L.length;t++){let e=L[t];if(null!=e){0==o?i=C[t]:r=C[t],e=""+e;let n=-1==e.indexOf("\n")?[e]:e.split(/\n/gm);for(let t=0;t<n.length;t++){let e=n[t];b?(Q.save(),Q.translate(i,r+t*O),Q.rotate(b),Q.fillText(e,0,0),Q.restore()):Q.fillText(e,i,r+t*O)}}}y.show&&hr(C,y.filter(n,g,t,c,_),o,s,x,w,ne(y.width*$,3),y.stroke(n,t),y.dash,y.cap);let I=e.grid;I.show&&hr(C,I.filter(n,g,t,c,_),o,0==o?2:1,0==o?Je:Ze,0==o?ti:Ke,ne(I.width*$,3),I.stroke(n,t),I.dash,I.cap),v.show&&hr([x],[1],0==o?1:0,0==o?1:2,1==o?Je:Ze,1==o?ti:Ke,ne(v.width*$,3),v.stroke(n,t),v.dash,v.cap)}Es("drawAxes")}function mr(t){wt.forEach(((e,i)=>{i>0&&(e._paths=null,t&&(1==r?(e.min=null,e.max=null):e.facets.forEach((t=>{t.min=null,t.max=null}))))}))}let gr,_r,yr,vr,wr,br,xr,Sr,Dr,Tr,Ar,kr,Er=!1,Mr=!1,Rr=[];function Pr(){Mr=!1;for(let t=0;t<Rr.length;t++)Es(...Rr[t]);Rr.length=0}function Or(){Er||(Te(Lr),Er=!0)}function Cr(t,e=!1){Er=!0,Mr=e,t(n),Lr(),e&&Rr.length>0&&queueMicrotask(Pr)}function Lr(){if(ei&&(qn(),ei=!1),ni&&(Si(),ni=!1),ii){if(K(rt,M,We),K(rt,k,ze),K(rt,T,Be),K(rt,A,Xe),K(ot,M,We),K(ot,k,ze),K(ot,T,Be),K(ot,A,Xe),K(it,T,Fe),K(it,A,He),V.width=Ot(Fe*$),V.height=Ot(He*$),bt.forEach((({_el:t,_show:e,_size:i,_pos:n,side:r})=>{if(null!=t)if(e){let e=3===r||0===r?i:0,s=r%2==1;K(t,s?"left":"top",n-e),K(t,s?"width":"height",i),K(t,s?"top":"left",s?ze:We),K(t,s?"height":"width",s?Xe:Be),J(t,f)}else Z(t,f)})),vn=wn=bn=Dn=Tn=An=kn=En=Sn=null,Mn=1,ds(!0),We!=Ge||ze!=$e||Be!=Ve||Xe!=Qe){mr(!1);let t=Be/Ve,e=Xe/Qe;if(ki.show&&!ri&&ki.left>=0){ki.left*=t,ki.top*=e,yr&&nt(yr,Ot(ki.left),0,Be,Xe),vr&&nt(vr,0,Ot(ki.top),Be,Xe);for(let i=0;i<Li.length;i++){let n=Li[i];null!=n&&(Ii[i]*=t,Ni[i]*=e,nt(n,Ct(Ii[i]),Ct(Ni[i]),Be,Xe))}}if(Hr.show&&!si&&Hr.left>=0&&Hr.width>0){Hr.left*=t,Hr.width*=t,Hr.top*=e,Hr.height*=e;for(let t in ms)K(Br,t,Hr[t])}Ge=We,$e=ze,Ve=Be,Qe=Xe}Es("setSize"),ii=!1}Fe>0&&He>0&&(Q.clearRect(0,0,V.width,V.height),Es("drawClear"),Pt.forEach((t=>t())),Es("draw")),Hr.show&&si&&(Xr(Hr),si=!1),ki.show&&ri&&(cs(null,!0,!1),ri=!1),_e.show&&_e.live&&mi&&(ls(),mi=!1),z||(z=!0,n.status=1,Es("ready")),Pn=!1,Er=!1}function Ir(t,i){let r=Tt[t];if(null==r.from){if(0==hn){let e=r.range(n,i.min,i.max,t);i.min=e[0],i.max=e[1]}if(i.min>i.max){let t=i.min;i.min=i.max,i.max=t}if(hn>1&&null!=i.min&&null!=i.max&&i.max-i.min<1e-16)return;t==kt&&2==r.distr&&hn>0&&(i.min=dt(i.min,e[0]),i.max=dt(i.max,e[0]),i.min==i.max&&i.max++),Jt[t]=i,ei=!0,Or()}}n.batch=Cr,n.redraw=(t,e)=>{ni=e||!1,!1!==t?zr(kt,Ft.min,Ft.max):Or()},n.setScale=Ir;let Nr=!1;const Yr=ki.drag;let qr=Yr.x,Fr=Yr.y;ki.show&&(ki.x&&(gr=et(m,ot)),ki.y&&(_r=et(g,ot)),0==Ft.ori?(yr=gr,vr=_r):(yr=_r,vr=gr),Ar=ki.left,kr=ki.top);const Hr=n.select=ve({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),Br=Hr.show?et(p,Hr.over?ot:rt):null;function Xr(t,e){if(Hr.show){for(let e in t)Hr[e]=t[e],e in ms&&K(Br,e,t[e]);!1!==e&&Es("setSelect")}}function Wr(t,e){let i=wt[t],n=we?ke[t]:null;if(i.show)n&&J(n,f);else{n&&Z(n,f);let e=Ci?Li[0]:Li[t];nt(e,-10,-10,Be,Xe)}}function zr(t,e,i){Ir(t,{min:e,max:i})}function jr(t,e,i,s){null!=e.focus&&ts(t),null!=e.show&&wt.forEach(((i,n)=>{n>0&&(t==n||null==t)&&(i.show=e.show,Wr(n,e.show),2==r?(zr(i.facets[0].scale,null,null),zr(i.facets[1].scale,null,null)):zr(i.scale,null,null),Or())})),!1!==i&&Es("setSeries",t,e),s&&Cs("setSeries",n,t,e)}function Ur(t,e){ve(At[t],e)}function Gr(t,e){t.fill=jt(t.fill||null),t.dir=St(t.dir,-1),e=null==e?At.length:e,At.splice(e,0,t)}function $r(t){null==t?At.length=0:At.splice(t,1)}function Vr(t,e){wt[t].alpha=e,ki.show&&Li[t]&&(Li[t].style.opacity=e),we&&ke[t]&&(ke[t].style.opacity=e)}let Qr,Zr,Jr;n.setSelect=Xr,n.setSeries=jr,n.addBand=Gr,n.setBand=Ur,n.delBand=$r;const Kr={focus:!0};function ts(t){if(t!=Jr){let e=null==t,i=1!=Pi.alpha;wt.forEach(((n,s)=>{if(1==r||s>0){let r=e||0==s||s==t;n._focus=e?null:r,i&&Vr(s,r?1:Pi.alpha)}})),Jr=t,i&&Or()}}function es(t,e,i){let n=Tt[e];i&&(t=t/$-(1==n.ori?ze:We));let r=Be;1==n.ori&&(r=Xe,t=r-t),-1==n.dir&&(t=r-t);let s=n._min,o=n._max,a=t/r,l=s+(o-s)*a,u=n.distr;return 3==u?Nt(10,l):4==u?Ht(l,n.asinh):100==u?n.bwd(l):l}function is(t,i){let n=es(t,kt,i);return dt(n,e[0],mn,gn)}function ns(t,e){K(Br,M,Hr.left=t),K(Br,T,Hr.width=e)}function rs(t,e){K(Br,k,Hr.top=t),K(Br,A,Hr.height=e)}we&&Oi&&Ne(Y,xe,(t=>{ki._lock||(Ei(t),null!=Jr&&jr(null,Kr,!0,Rs.setSeries))})),n.valToIdx=t=>dt(t,e[0]),n.posToIdx=is,n.posToVal=es,n.valToPos=(t,e,i)=>0==Tt[e].ori?F(t,Tt[e],i?Ke:Be,i?Ze:0):H(t,Tt[e],i?ti:Xe,i?Je:0),n.setCursor=(t,e,i)=>{Ar=t.left,kr=t.top,cs(null,e,i)};let ss=0==Ft.ori?ns:rs,os=1==Ft.ori?ns:rs;function as(){if(we&&_e.live)for(let t=2==r?1:0;t<wt.length;t++){if(0==t&&Me)continue;let e=_e.values[t],i=0;for(let n in e)Ee[t][i++].firstChild.nodeValue=e[n]}}function ls(t,e){if(null!=t&&(t.idxs?t.idxs.forEach(((t,e)=>{ge[e]=t})):de(t.idx)||ge.fill(t.idx),_e.idx=ge[0]),we&&_e.live){for(let t=0;t<wt.length;t++)(t>0||1==r&&!Me)&&us(t,ge[t]);as()}mi=!1,!1!==e&&Es("setLegend")}function us(t,i){let r,s=wt[t],o=0==t&&2==Wt?Rn:e[t];Me?r=s.values(n,t,i)??Re:(r=s.value(n,null==i?null:o[i],t,i),r=null==r?Re:{_:r}),_e.values[t]=r}function cs(t,i,s){let o;Dr=Ar,Tr=kr,[Ar,kr]=ki.move(n,Ar,kr),ki.left=Ar,ki.top=kr,ki.show&&(yr&&nt(yr,Ot(Ar),0,Be,Xe),vr&&nt(vr,0,Ot(kr),Be,Xe));let a=mn>gn;Qr=Xt,Zr=null;let l=0==Ft.ori?Be:Xe,u=1==Ft.ori?Be:Xe;if(Ar<0||0==hn||a){o=ki.idx=null;for(let t=0;t<wt.length;t++){let e=Li[t];null!=e&&nt(e,-10,-10,Be,Xe)}Oi&&jr(null,Kr,!0,null==t&&Rs.setSeries),_e.live&&(ge.fill(o),mi=!0)}else{let t,i,s;1==r&&(t=0==Ft.ori?Ar:kr,i=es(t,kt),o=ki.idx=dt(i,e[0],mn,gn),s=Ut(e[0][o],Ft,l,0));let a=-10,c=-10,h=0,d=0,f=!0,p="",m="";for(let g=2==r?1:0;g<wt.length;g++){let t=wt[g],_=ge[g],y=null==_?null:1==r?e[g][_]:e[g][1][_],v=ki.dataIdx(n,g,o,i),w=null==v?null:1==r?e[g][v]:e[g][1][v];mi=mi||w!=y||v!=_,ge[g]=v;let b=v==o?s:Ut(1==r?e[0][v]:e[g][0][v],Ft,l,0);if(g>0&&t.show){let e=null==w?-10:Gt(w,1==r?Tt[t.scale]:Tt[t.facets[1].scale],u,0);if(Oi&&null!=w){let i=1==Ft.ori?Ar:kr,r=Rt(Pi.dist(n,g,v,e,i));if(r<Qr){let e=Pi.bias;if(0!=e){let n=es(i,t.scale),s=w>=0?1:-1,o=n>=0?1:-1;o==s&&(1==o?1==e?w>=n:w<=n:1==e?w<=n:w>=n)&&(Qr=r,Zr=g)}else Qr=r,Zr=g}}if(mi||Ci){let t,i;0==Ft.ori?(t=b,i=e):(t=e,i=b);let r,s,o,l,u,_,y=!0,v=Mi.bbox;if(null!=v){y=!1;let t=v(n,g);o=t.left,l=t.top,r=t.width,s=t.height}else o=t,l=i,r=s=Mi.size(n,g);if(_=Mi.fill(n,g),u=Mi.stroke(n,g),Ci)g==Zr&&Qr<=Pi.prox&&(a=o,c=l,h=r,d=s,f=y,p=_,m=u);else{let t=Li[g];null!=t&&(Ii[g]=o,Ni[g]=l,at(t,r,s,y),st(t,_,u),nt(t,Ct(o),Ct(l),Be,Xe))}}}}if(Ci){let t=Pi.prox,e=null==Jr?Qr<=t:Qr>t||Zr!=Jr;if(mi||e){let t=Li[0];Ii[0]=a,Ni[0]=c,at(t,h,d,f),st(t,p,m),nt(t,Ct(a),Ct(c),Be,Xe)}}}if(Hr.show&&Nr)if(null!=t){let[e,i]=Rs.scales,[n,r]=Rs.match,[s,o]=t.cursor.sync.scales,a=t.cursor.drag;if(qr=a._x,Fr=a._y,qr||Fr){let a,c,h,d,f,{left:p,top:m,width:g,height:_}=t.select,y=t.scales[s].ori,v=t.posToVal,w=null!=e&&n(e,s),b=null!=i&&r(i,o);w&&qr?(0==y?(a=p,c=g):(a=m,c=_),h=Tt[e],d=Ut(v(a,s),h,l,0),f=Ut(v(a+c,s),h,l,0),ss(Lt(d,f),Rt(f-d))):ss(0,l),b&&Fr?(1==y?(a=p,c=g):(a=m,c=_),h=Tt[i],d=Gt(v(a,o),h,u,0),f=Gt(v(a+c,o),h,u,0),os(Lt(d,f),Rt(f-d))):os(0,u)}else gs()}else{let t=Rt(Dr-wr),e=Rt(Tr-br);if(1==Ft.ori){let i=t;t=e,e=i}qr=Yr.x&&t>=Yr.dist,Fr=Yr.y&&e>=Yr.dist;let i,n,r=Yr.uni;null!=r?qr&&Fr&&(qr=t>=r,Fr=e>=r,qr||Fr||(e>t?Fr=!0:qr=!0)):Yr.x&&Yr.y&&(qr||Fr)&&(qr=Fr=!0),qr&&(0==Ft.ori?(i=xr,n=Ar):(i=Sr,n=kr),ss(Lt(i,n),Rt(n-i)),Fr||os(0,u)),Fr&&(1==Ft.ori?(i=xr,n=Ar):(i=Sr,n=kr),os(Lt(i,n),Rt(n-i)),qr||ss(0,l)),qr||Fr||(ss(0,0),os(0,0))}if(Yr._x=qr,Yr._y=Fr,null==t){if(s){if(null!=Ps){let[t,e]=Rs.scales;Rs.values[0]=null!=t?es(0==Ft.ori?Ar:kr,t):null,Rs.values[1]=null!=e?es(1==Ft.ori?Ar:kr,e):null}Cs(C,n,Ar,kr,Be,Xe,o)}if(Oi){let t=s&&Rs.setSeries,e=Pi.prox;null==Jr?Qr<=e&&jr(Zr,Kr,!0,t):Qr>e?jr(null,Kr,!0,t):Zr!=Jr&&jr(Zr,Kr,!0,t)}}mi&&(_e.idx=o,ls()),!1!==i&&Es("setCursor")}n.setLegend=ls;let hs=null;function ds(t=!1){t?hs=null:(hs=ot.getBoundingClientRect(),Es("syncRect",hs))}function fs(t,e,i,n,r,s,o){ki._lock||Nr&&null!=t&&0==t.movementX&&0==t.movementY||(ps(t,e,i,n,r,s,o,!1,null!=t),null!=t?cs(null,!0,!0):cs(e,!0,!1))}function ps(t,e,i,r,s,o,a,l,u){if(null==hs&&ds(!1),Ei(t),null!=t)i=t.clientX-hs.left,r=t.clientY-hs.top;else{if(i<0||r<0)return Ar=-10,void(kr=-10);let[t,n]=Rs.scales,a=e.cursor.sync,[l,u]=a.values,[c,h]=a.scales,[d,f]=Rs.match,p=e.axes[0].side%2==1,m=0==Ft.ori?Be:Xe,g=1==Ft.ori?Be:Xe,_=p?o:s,y=p?s:o,v=p?r:i,w=p?i:r;if(i=null!=c?d(t,c)?B(l,Tt[t],m,0):-10:m*(v/_),r=null!=h?f(n,h)?B(u,Tt[n],g,0):-10:g*(w/y),1==Ft.ori){let t=i;i=r,r=t}}u&&((i<=1||i>=Be-1)&&(i=te(i,Be)),(r<=1||r>=Xe-1)&&(r=te(r,Xe))),l?(wr=i,br=r,[xr,Sr]=ki.move(n,i,r)):(Ar=i,kr=r)}Object.defineProperty(n,"rect",{get(){return null==hs&&ds(!1),hs}});const ms={width:0,height:0,left:0,top:0};function gs(){Xr(ms,!1)}let _s,ys,vs,ws;function bs(t,e,i,r,s,o,a){Nr=!0,qr=Fr=Yr._x=Yr._y=!1,ps(t,e,i,r,s,o,a,!0,!1),null!=t&&(Ne(I,j,xs,!1),Cs(L,n,xr,Sr,Be,Xe,null));let{left:l,top:u,width:c,height:h}=Hr;_s=l,ys=u,vs=c,ws=h,gs()}function xs(t,e,i,r,s,o,a){Nr=Yr._x=Yr._y=!1,ps(t,e,i,r,s,o,a,!1,!0);let{left:l,top:u,width:c,height:h}=Hr,d=c>0||h>0,f=_s!=l||ys!=u||vs!=c||ws!=h;if(d&&f&&Xr(Hr),Yr.setScale&&d&&f){let t=l,e=c,i=u,n=h;if(1==Ft.ori&&(t=u,e=h,i=l,n=c),qr&&zr(kt,es(t,kt),es(t+e,kt)),Fr)for(let r in Tt){let t=Tt[r];r!=kt&&null==t.from&&t.min!=Xt&&zr(r,es(i+n,r),es(i,r))}gs()}else ki.lock&&(ki._lock=!ki._lock,cs(null,!0,!1));null!=t&&(Ye(I,j),Cs(I,n,Ar,kr,Be,Xe,null))}function Ss(t,e,i,n,r,s,o){if(ki._lock)return;Ei(t);let a=Nr;if(Nr){let t,e,i=!0,n=!0,r=10;0==Ft.ori?(t=qr,e=Fr):(t=Fr,e=qr),t&&e&&(i=Ar<=r||Ar>=Be-r,n=kr<=r||kr>=Xe-r),t&&i&&(Ar=Ar<xr?0:Be),e&&n&&(kr=kr<Sr?0:Xe),cs(null,!0,!0),Nr=!1}Ar=-10,kr=-10,cs(null,!0,!0),a&&(Nr=a)}function Ds(t,e,i,r,s,o,a){ki._lock||(Ei(t),Cn(),gs(),null!=t&&Cs(q,n,Ar,kr,Be,Xe,null))}function Ts(){bt.forEach(ar),vi(n.width,n.height,!0)}ct(X,U,Ts);const As={};As.mousedown=bs,As.mousemove=fs,As.mouseup=xs,As.dblclick=Ds,As["setSeries"]=(t,e,i,r)=>{let s=Rs.match[2];i=s(n,e,i),-1!=i&&jr(i,r,!0,!1)},ki.show&&(Ne(L,ot,bs),Ne(C,ot,fs),Ne(N,ot,(t=>{Ei(t),ds(!1)})),Ne(Y,ot,Ss),Ne(q,ot,Ds),jn.add(n),n.syncRect=ds);const ks=n.hooks=t.hooks||{};function Es(t,e,i){Mr?Rr.push([t,e,i]):t in ks&&ks[t].forEach((t=>{t.call(null,n,e,i)}))}(t.plugins||[]).forEach((t=>{for(let e in t.hooks)ks[e]=(ks[e]||[]).concat(t.hooks[e])}));const Ms=(t,e,i)=>i,Rs=ve({key:null,setSeries:!1,filters:{pub:Qt,sub:Qt},scales:[kt,wt[1]?wt[1].scale:null],match:[Zt,Zt,Ms],values:[null,null]},ki.sync);2==Rs.match.length&&Rs.match.push(Ms),ki.sync=Rs;const Ps=Rs.key,Os=dn(Ps);function Cs(t,e,i,n,r,s,o){Rs.filters.pub(t,e,i,n,r,s,o)&&Os.pub(t,e,i,n,r,s,o)}function Ls(t,e,i,n,r,s,o){Rs.filters.sub(t,e,i,n,r,s,o)&&As[t](null,e,i,n,r,s,o)}function Is(){Os.unsub(n),jn.delete(n),Ie.clear(),ht(X,U,Ts),G.remove(),xe?.remove(),Es("destroy")}function Ns(){Es("init",t,e),On(e||t.data,!1),Jt[kt]?Ir(kt,Jt[kt]):Cn(),si=Hr.show&&(Hr.width>0||Hr.height>0),ri=mi=!0,vi(t.width,t.height)}return Os.sub(n),n.pub=Ls,n.destroy=Is,wt.forEach(Ui),bt.forEach(Qi),i?i instanceof HTMLElement?(i.appendChild(G),Ns()):i(n,Ns):Ns(),n}lr.assign=ve,lr.fmtNum=kt,lr.rangeNum=xt,lr.rangeLog=gt,lr.rangeAsinh=_t,lr.orient=mn,lr.pxRatio=$,lr.join=De,lr.fmtDate=qe,lr.tzDate=He,lr.sync=dn;{lr.addGap=wn,lr.clipGaps=vn;let t=lr.paths={points:Ln};t.linear=qn,t.stepped=Fn,t.bars=Bn,t.spline=Wn}},5914:t=>{t.exports=function(t,e,i,n,r){var s,o;if(void 0===n)n=0;else if(n|=0,n<0||n>=t.length)throw new RangeError("invalid lower bound");if(void 0===r)r=t.length-1;else if(r|=0,r<n||r>=t.length)throw new RangeError("invalid upper bound");while(n<=r)if(s=n+(r-n>>>1),o=+i(t[s],e,s,t),o<0)n=s+1;else{if(!(o>0))return s;r=s-1}return~n}},5859:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>l});var n=i(6758),r=i.n(n),s=i(935),o=i.n(s),a=o()(r());a.push([t.id,'.uplot,.uplot *,.uplot :after,.uplot :before{box-sizing:border-box}.uplot{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;width:-moz-min-content;width:min-content}.u-title{text-align:center;font-size:18px;font-weight:700}.u-wrap{position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.u-over,.u-under{position:absolute}.u-under{overflow:hidden}.uplot canvas{display:block;position:relative;width:100%;height:100%}.u-axis{position:absolute}.u-legend{font-size:14px;margin:auto;text-align:center}.u-inline{display:block}.u-inline *{display:inline-block}.u-inline tr{margin-right:16px}.u-legend th{font-weight:600}.u-legend th>*{vertical-align:middle;display:inline-block}.u-legend .u-marker{width:1em;height:1em;margin-right:4px;background-clip:padding-box!important}.u-inline.u-live th:after{content:":";vertical-align:middle}.u-inline:not(.u-live) .u-value{display:none}.u-series>*{padding:4px}.u-series th{cursor:pointer}.u-legend .u-off>*{opacity:.3}.u-select{background:rgba(0,0,0,.07)}.u-cursor-x,.u-cursor-y,.u-select{position:absolute;pointer-events:none}.u-cursor-x,.u-cursor-y{left:0;top:0;will-change:transform}.u-hz .u-cursor-x,.u-vt .u-cursor-y{height:100%;border-right:1px dashed #607d8b}.u-hz .u-cursor-y,.u-vt .u-cursor-x{width:100%;border-bottom:1px dashed #607d8b}.u-cursor-pt{position:absolute;top:0;left:0;border-radius:50%;border:0 solid;pointer-events:none;will-change:transform;background-clip:padding-box!important}.u-axis.u-off,.u-cursor-pt.u-off,.u-cursor-x.u-off,.u-cursor-y.u-off,.u-select.u-off{display:none}',""]);const l=a},8893:(t,e,i)=>{"use strict";i.d(e,{A:()=>kn});
2
+ /**
3
+ * Muuri v0.9.5
4
+ * https://muuri.dev/
5
+ * Copyright (c) 2015-present, Haltu Oy
6
+ * Released under the MIT license
7
+ * https://github.com/haltu/muuri/blob/master/LICENSE.md
8
+ * @license MIT
9
+ *
10
+ * Muuri Packer
11
+ * Copyright (c) 2016-present, Niklas Rämö <inramo@gmail.com>
12
+ * @license MIT
13
+ *
14
+ * Muuri Ticker / Muuri Emitter / Muuri Dragger
15
+ * Copyright (c) 2018-present, Niklas Rämö <inramo@gmail.com>
16
+ * @license MIT
17
+ *
18
+ * Muuri AutoScroller
19
+ * Copyright (c) 2019-present, Niklas Rämö <inramo@gmail.com>
20
+ * @license MIT
21
+ */
22
+ var n={},r="function"===typeof Map?new Map:null,s="swap",o="move",a="synchronize",l="layoutStart",u="layoutEnd",c="layoutAbort",h="add",d="remove",f="showStart",p="showEnd",m="hideStart",g="hideEnd",_="filter",y="sort",v="move",w="send",b="beforeSend",x="receive",S="beforeReceive",D="dragInit",T="dragStart",A="dragMove",k="dragScroll",E="dragEnd",M="dragReleaseStart",R="dragReleaseEnd",P="destroy",O="ontouchstart"in window,C=!!window.PointerEvent,L=!!window.navigator.msPointerEnabled,I=16777216;function N(){this._events={},this._queue=[],this._counter=0,this._clearOnEmit=!1}N.prototype.on=function(t,e){if(!this._events||!t||!e)return this;var i=this._events[t];return i||(i=this._events[t]=[]),i.push(e),this},N.prototype.off=function(t,e){if(!this._events||!t||!e)return this;var i,n=this._events[t];if(!n||!n.length)return this;while(-1!==(i=n.indexOf(e)))n.splice(i,1);return this},N.prototype.clear=function(t){if(!this._events||!t)return this;var e=this._events[t];return e&&(e.length=0,delete this._events[t]),this},N.prototype.emit=function(t){if(!this._events||!t)return this._clearOnEmit=!1,this;var e=this._events[t];if(!e||!e.length)return this._clearOnEmit=!1,this;var i,n=this._queue,r=n.length,s=arguments.length-1;s>3&&(i=[],i.push.apply(i,arguments),i.shift()),n.push.apply(n,e),this._clearOnEmit&&(e.length=0,this._clearOnEmit=!1),++this._counter;for(var o=r,a=n.length;o<a;o++)if(0===s?n[o]():1===s?n[o](arguments[1]):2===s?n[o](arguments[1],arguments[2]):3===s?n[o](arguments[1],arguments[2],arguments[3]):n[o].apply(null,i),!this._events)return this;return--this._counter,this._counter||(n.length=0),this},N.prototype.burst=function(){return this._events?(this._clearOnEmit=!0,this.emit.apply(this,arguments),this):this},N.prototype.countListeners=function(t){if(!this._events)return 0;var e=this._events[t];return e?e.length:0},N.prototype.destroy=function(){return this._events?(this._queue.length=this._counter=0,this._events=null,this):this};var Y=C?"pointerout":L?"MSPointerOut":"",q=100;function F(t){Y&&(this._dragger=t,this._timeout=null,this._outEvent=null,this._isActive=!1,this._addBehaviour=this._addBehaviour.bind(this),this._removeBehaviour=this._removeBehaviour.bind(this),this._onTimeout=this._onTimeout.bind(this),this._resetData=this._resetData.bind(this),this._onStart=this._onStart.bind(this),this._onOut=this._onOut.bind(this),this._dragger.on("start",this._onStart))}F.prototype._addBehaviour=function(){this._isActive||(this._isActive=!0,this._dragger.on("move",this._resetData),this._dragger.on("cancel",this._removeBehaviour),this._dragger.on("end",this._removeBehaviour),window.addEventListener(Y,this._onOut))},F.prototype._removeBehaviour=function(){this._isActive&&(this._dragger.off("move",this._resetData),this._dragger.off("cancel",this._removeBehaviour),this._dragger.off("end",this._removeBehaviour),window.removeEventListener(Y,this._onOut),this._resetData(),this._isActive=!1)},F.prototype._resetData=function(){window.clearTimeout(this._timeout),this._timeout=null,this._outEvent=null},F.prototype._onStart=function(t){"mouse"!==t.pointerType&&this._addBehaviour()},F.prototype._onOut=function(t){this._dragger._getTrackedTouch(t)&&(this._resetData(),this._outEvent=t,this._timeout=window.setTimeout(this._onTimeout,q))},F.prototype._onTimeout=function(){var t=this._outEvent;this._resetData(),this._dragger.isActive()&&this._dragger._onCancel(t)},F.prototype.destroy=function(){Y&&(this._dragger.off("start",this._onStart),this._removeBehaviour())};var H=["","webkit","moz","ms","o","Webkit","Moz","MS","O"],B={};function X(t,e){var i=B[e]||"";if(i)return i;var n=e[0].toUpperCase()+e.slice(1),r=0;while(r<H.length){if(i=H[r]?H[r]+n:e,i in t)return B[e]=i,i;++r}return""}function W(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(i){}return t}var z=window.navigator.userAgent.toLowerCase(),j=z.indexOf("edge")>-1,U=z.indexOf("trident")>-1,G=z.indexOf("firefox")>-1,$=z.indexOf("android")>-1,V=!!W()&&{passive:!0},Q="touchAction",Z=X(document.documentElement.style,Q),J="auto";function K(t,e){this._element=t,this._emitter=new N,this._isDestroyed=!1,this._cssProps={},this._touchAction="",this._isActive=!1,this._pointerId=null,this._startTime=0,this._startX=0,this._startY=0,this._currentX=0,this._currentY=0,this._onStart=this._onStart.bind(this),this._onMove=this._onMove.bind(this),this._onCancel=this._onCancel.bind(this),this._onEnd=this._onEnd.bind(this),this._edgeHack=null,(j||U)&&(C||L)&&(this._edgeHack=new F(this)),this.setCssProps(e),this._touchAction||this.setTouchAction(J),t.addEventListener("dragstart",K._preventDefault,!1),t.addEventListener(K._inputEvents.start,this._onStart,V)}K._pointerEvents={start:"pointerdown",move:"pointermove",cancel:"pointercancel",end:"pointerup"},K._msPointerEvents={start:"MSPointerDown",move:"MSPointerMove",cancel:"MSPointerCancel",end:"MSPointerUp"},K._touchEvents={start:"touchstart",move:"touchmove",cancel:"touchcancel",end:"touchend"},K._mouseEvents={start:"mousedown",move:"mousemove",cancel:"",end:"mouseup"},K._inputEvents=function(){return O?K._touchEvents:C?K._pointerEvents:L?K._msPointerEvents:K._mouseEvents}(),K._emitter=new N,K._emitterEvents={start:"start",move:"move",end:"end",cancel:"cancel"},K._activeInstances=[],K._preventDefault=function(t){t.preventDefault&&!1!==t.cancelable&&t.preventDefault()},K._activateInstance=function(t){var e=K._activeInstances.indexOf(t);e>-1||(K._activeInstances.push(t),K._emitter.on(K._emitterEvents.move,t._onMove),K._emitter.on(K._emitterEvents.cancel,t._onCancel),K._emitter.on(K._emitterEvents.end,t._onEnd),1===K._activeInstances.length&&K._bindListeners())},K._deactivateInstance=function(t){var e=K._activeInstances.indexOf(t);-1!==e&&(K._activeInstances.splice(e,1),K._emitter.off(K._emitterEvents.move,t._onMove),K._emitter.off(K._emitterEvents.cancel,t._onCancel),K._emitter.off(K._emitterEvents.end,t._onEnd),K._activeInstances.length||K._unbindListeners())},K._bindListeners=function(){window.addEventListener(K._inputEvents.move,K._onMove,V),window.addEventListener(K._inputEvents.end,K._onEnd,V),K._inputEvents.cancel&&window.addEventListener(K._inputEvents.cancel,K._onCancel,V)},K._unbindListeners=function(){window.removeEventListener(K._inputEvents.move,K._onMove,V),window.removeEventListener(K._inputEvents.end,K._onEnd,V),K._inputEvents.cancel&&window.removeEventListener(K._inputEvents.cancel,K._onCancel,V)},K._getEventPointerId=function(t){return"number"===typeof t.pointerId?t.pointerId:t.changedTouches?t.changedTouches[0]?t.changedTouches[0].identifier:null:1},K._getTouchById=function(t,e){if("number"===typeof t.pointerId)return t.pointerId===e?t:null;if(t.changedTouches){for(var i=0;i<t.changedTouches.length;i++)if(t.changedTouches[i].identifier===e)return t.changedTouches[i];return null}return t},K._onMove=function(t){K._emitter.emit(K._emitterEvents.move,t)},K._onCancel=function(t){K._emitter.emit(K._emitterEvents.cancel,t)},K._onEnd=function(t){K._emitter.emit(K._emitterEvents.end,t)},K.prototype._reset=function(){this._pointerId=null,this._startTime=0,this._startX=0,this._startY=0,this._currentX=0,this._currentY=0,this._isActive=!1,K._deactivateInstance(this)},K.prototype._createEvent=function(t,e){var i=this._getTrackedTouch(e);return{type:t,srcEvent:e,distance:this.getDistance(),deltaX:this.getDeltaX(),deltaY:this.getDeltaY(),deltaTime:t===K._emitterEvents.start?0:this.getDeltaTime(),isFirst:t===K._emitterEvents.start,isFinal:t===K._emitterEvents.end||t===K._emitterEvents.cancel,pointerType:e.pointerType||(e.touches?"touch":"mouse"),identifier:this._pointerId,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY,pageX:i.pageX,pageY:i.pageY,target:i.target}},K.prototype._emit=function(t,e){this._emitter.emit(t,this._createEvent(t,e))},K.prototype._getTrackedTouch=function(t){return null===this._pointerId?null:K._getTouchById(t,this._pointerId)},K.prototype._onStart=function(t){if(!this._isDestroyed&&null===this._pointerId&&(this._pointerId=K._getEventPointerId(t),null!==this._pointerId)){var e=this._getTrackedTouch(t);this._startX=this._currentX=e.clientX,this._startY=this._currentY=e.clientY,this._startTime=Date.now(),this._isActive=!0,this._emit(K._emitterEvents.start,t),this._isActive&&K._activateInstance(this)}},K.prototype._onMove=function(t){var e=this._getTrackedTouch(t);e&&(this._currentX=e.clientX,this._currentY=e.clientY,this._emit(K._emitterEvents.move,t))},K.prototype._onCancel=function(t){this._getTrackedTouch(t)&&(this._emit(K._emitterEvents.cancel,t),this._reset())},K.prototype._onEnd=function(t){this._getTrackedTouch(t)&&(this._emit(K._emitterEvents.end,t),this._reset())},K.prototype.isActive=function(){return this._isActive},K.prototype.setTouchAction=function(t){this._touchAction=t,Z&&(this._cssProps[Z]="",this._element.style[Z]=t),O&&(this._element.removeEventListener(K._touchEvents.start,K._preventDefault,!0),(this._element.style[Z]!==t||G&&$)&&this._element.addEventListener(K._touchEvents.start,K._preventDefault,!0))},K.prototype.setCssProps=function(t){if(t){var e,i,n=this._cssProps,r=this._element;for(e in n)r.style[e]=n[e],delete n[e];for(e in t)t[e]&&(e!==Q?(i=X(r.style,e),i&&(n[i]="",r.style[i]=t[e])):this.setTouchAction(t[e]))}},K.prototype.getDeltaX=function(){return this._currentX-this._startX},K.prototype.getDeltaY=function(){return this._currentY-this._startY},K.prototype.getDistance=function(){var t=this.getDeltaX(),e=this.getDeltaY();return Math.sqrt(t*t+e*e)},K.prototype.getDeltaTime=function(){return this._startTime?Date.now()-this._startTime:0},K.prototype.on=function(t,e){this._emitter.on(t,e)},K.prototype.off=function(t,e){this._emitter.off(t,e)},K.prototype.destroy=function(){if(!this._isDestroyed){var t=this._element;for(var e in this._edgeHack&&this._edgeHack.destroy(),this._reset(),this._emitter.destroy(),t.removeEventListener(K._inputEvents.start,this._onStart,V),t.removeEventListener("dragstart",K._preventDefault,!1),t.removeEventListener(K._touchEvents.start,K._preventDefault,!0),this._cssProps)t.style[e]=this._cssProps[e],delete this._cssProps[e];this._element=null,this._isDestroyed=!0}};var tt=1e3/60,et=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return this.setTimeout((function(){t(Date.now())}),tt)}).bind(window);function it(t){this._nextStep=null,this._lanes=[],this._stepQueue=[],this._stepCallbacks={},this._step=this._step.bind(this);for(var e=0;e<t;e++)this._lanes.push(new nt)}function nt(){this.queue=[],this.indices={},this.callbacks={}}it.prototype._step=function(t){var e,i,n,r,s,o,a=this._lanes,l=this._stepQueue,u=this._stepCallbacks;for(this._nextStep=null,e=0;e<a.length;e++){for(r=a[e].queue,s=a[e].callbacks,o=a[e].indices,i=0;i<r.length;i++)n=r[i],n&&(l.push(n),u[n]=s[n],delete s[n],delete o[n]);r.length=0}for(e=0;e<l.length;e++)n=l[e],u[n]&&u[n](t),delete u[n];l.length=0},it.prototype.add=function(t,e,i){this._lanes[t].add(e,i),this._nextStep||(this._nextStep=et(this._step))},it.prototype.remove=function(t,e){this._lanes[t].remove(e)},nt.prototype.add=function(t,e){var i=this.indices[t];void 0!==i&&(this.queue[i]=void 0),this.queue.push(t),this.callbacks[t]=e,this.indices[t]=this.queue.length-1},nt.prototype.remove=function(t){var e=this.indices[t];void 0!==e&&(this.queue[e]=void 0,delete this.callbacks[t],delete this.indices[t])};var rt="layoutRead",st="layoutWrite",ot="visibilityRead",at="visibilityWrite",lt="dragStartRead",ut="dragStartWrite",ct="dragMoveRead",ht="dragMoveWrite",dt="dragScrollRead",ft="dragScrollWrite",pt="dragSortRead",mt="placeholderLayoutRead",gt="placeholderLayoutWrite",_t="placeholderResizeWrite",yt="autoScrollRead",vt="autoScrollWrite",wt="debounceRead",bt=0,xt=1,St=2,Dt=new it(3);function Tt(t,e,i){Dt.add(bt,rt+t,e),Dt.add(St,st+t,i)}function At(t){Dt.remove(bt,rt+t),Dt.remove(St,st+t)}function kt(t,e,i){Dt.add(bt,ot+t,e),Dt.add(St,at+t,i)}function Et(t){Dt.remove(bt,ot+t),Dt.remove(St,at+t)}function Mt(t,e,i){Dt.add(bt,lt+t,e),Dt.add(St,ut+t,i)}function Rt(t){Dt.remove(bt,lt+t),Dt.remove(St,ut+t)}function Pt(t,e,i){Dt.add(bt,ct+t,e),Dt.add(St,ht+t,i)}function Ot(t){Dt.remove(bt,ct+t),Dt.remove(St,ht+t)}function Ct(t,e,i){Dt.add(bt,dt+t,e),Dt.add(St,ft+t,i)}function Lt(t){Dt.remove(bt,dt+t),Dt.remove(St,ft+t)}function It(t,e){Dt.add(xt,pt+t,e)}function Nt(t){Dt.remove(xt,pt+t)}function Yt(t,e,i){Dt.add(bt,mt+t,e),Dt.add(St,gt+t,i)}function qt(t){Dt.remove(bt,mt+t),Dt.remove(St,gt+t)}function Ft(t,e){Dt.add(St,_t+t,e)}function Ht(t){Dt.remove(St,_t+t)}function Bt(t,e){Dt.add(bt,yt,t),Dt.add(St,vt,e)}function Xt(){Dt.remove(bt,yt),Dt.remove(St,vt)}function Wt(t,e){Dt.add(bt,wt+t,e)}function zt(t){Dt.remove(bt,wt+t)}var jt=1,Ut=2,Gt=4,$t=8,Vt=jt|$t,Qt=jt|Gt,Zt=Ut|$t,Jt=Ut|Gt,Kt="function";function te(t){return typeof t===Kt}var ee="function"===typeof WeakMap?new WeakMap:null;function ie(t,e){var i=ee&&ee.get(t);return i||(i=window.getComputedStyle(t,null),ee&&ee.set(t,i)),i.getPropertyValue(e)}function ne(t,e){return parseFloat(ie(t,e))||0}var re=document.documentElement,se=document.body,oe={value:0,offset:0};function ae(t){return t===window||t===re||t===se?window:t}function le(t){return t===window?t.pageXOffset:t.scrollLeft}function ue(t){return t===window?t.pageYOffset:t.scrollTop}function ce(t){return t===window?re.scrollWidth-re.clientWidth:t.scrollWidth-t.clientWidth}function he(t){return t===window?re.scrollHeight-re.clientHeight:t.scrollHeight-t.clientHeight}function de(t,e){if(e=e||{},t===window)e.width=re.clientWidth,e.height=re.clientHeight,e.left=0,e.right=e.width,e.top=0,e.bottom=e.height;else{var i=t.getBoundingClientRect(),n=t.clientLeft||ne(t,"border-left-width"),r=t.clientTop||ne(t,"border-top-width");e.width=t.clientWidth,e.height=t.clientHeight,e.left=i.left+n,e.right=e.left+e.width,e.top=i.top+r,e.bottom=e.top+e.height}return e}function fe(t){return t._drag._getGrid()._settings.dragAutoScroll}function pe(t){t._drag&&t._drag._prepareScroll()}function me(t){if(t._drag&&t._isActive){var e=t._drag;e._scrollDiffX=e._scrollDiffY=0,t._setTranslate(e._left,e._top)}}function ge(t,e,i,n){return oe.value=Math.min(n/2,t),oe.offset=Math.max(0,i+2*oe.value+n*e-n)/2,oe}function _e(){this.reset()}function ye(){this.element=null,this.requestX=null,this.requestY=null,this.scrollLeft=0,this.scrollTop=0}function ve(t,e){this.pool=[],this.createItem=t,this.releaseItem=e}function we(t,e){return!(t.left+t.width<=e.left||e.left+e.width<=t.left||t.top+t.height<=e.top||e.top+e.height<=t.top)}function be(t,e){if(!we(t,e))return 0;var i=Math.min(t.left+t.width,e.left+e.width)-Math.max(t.left,e.left),n=Math.min(t.top+t.height,e.top+e.height)-Math.max(t.top,e.top);return i*n}function xe(t,e){var i=be(t,e);if(!i)return 0;var n=Math.min(t.width,e.width)*Math.min(t.height,e.height);return i/n*100}_e.prototype.reset=function(){this.isActive&&this.onStop(),this.item=null,this.element=null,this.isActive=!1,this.isEnding=!1,this.direction=null,this.value=null,this.maxValue=0,this.threshold=0,this.distance=0,this.speed=0,this.duration=0,this.action=null},_e.prototype.hasReachedEnd=function(){return Gt&this.direction?this.value>=this.maxValue:this.value<=0},_e.prototype.computeCurrentScrollValue=function(){return null===this.value?jt&this.direction?le(this.element):ue(this.element):Math.max(0,Math.min(this.value,this.maxValue))},_e.prototype.computeNextScrollValue=function(t){var e=this.speed*(t/1e3),i=Gt&this.direction?this.value+e:this.value-e;return Math.max(0,Math.min(i,this.maxValue))},_e.prototype.computeSpeed=function(){var t={direction:null,threshold:0,distance:0,value:0,maxValue:0,deltaTime:0,duration:0,isEnding:!1};return function(e){var i=this.item,n=fe(i).speed;return te(n)?(t.direction=this.direction,t.threshold=this.threshold,t.distance=this.distance,t.value=this.value,t.maxValue=this.maxValue,t.duration=this.duration,t.speed=this.speed,t.deltaTime=e,t.isEnding=this.isEnding,n(i,this.element,t)):n}}(),_e.prototype.tick=function(t){return this.isActive||(this.isActive=!0,this.onStart()),this.value=this.computeCurrentScrollValue(),this.speed=this.computeSpeed(t),this.value=this.computeNextScrollValue(t),this.duration+=t,this.value},_e.prototype.onStart=function(){var t=this.item,e=fe(t).onStart;te(e)&&e(t,this.element,this.direction)},_e.prototype.onStop=function(){var t=this.item,e=fe(t).onStop;te(e)&&e(t,this.element,this.direction),t._drag&&t._drag.sort()},ye.prototype.reset=function(){this.requestX&&(this.requestX.action=null),this.requestY&&(this.requestY.action=null),this.element=null,this.requestX=null,this.requestY=null,this.scrollLeft=0,this.scrollTop=0},ye.prototype.addRequest=function(t){jt&t.direction?(this.removeRequest(this.requestX),this.requestX=t):(this.removeRequest(this.requestY),this.requestY=t),t.action=this},ye.prototype.removeRequest=function(t){t&&(this.requestX===t?(this.requestX=null,t.action=null):this.requestY===t&&(this.requestY=null,t.action=null))},ye.prototype.computeScrollValues=function(){this.scrollLeft=this.requestX?this.requestX.value:le(this.element),this.scrollTop=this.requestY?this.requestY.value:ue(this.element)},ye.prototype.scroll=function(){var t=this.element;t&&(t.scrollTo?t.scrollTo(this.scrollLeft,this.scrollTop):(t.scrollLeft=this.scrollLeft,t.scrollTop=this.scrollTop))},ve.prototype.pick=function(){return this.pool.pop()||this.createItem()},ve.prototype.release=function(t){this.releaseItem(t),-1===this.pool.indexOf(t)&&this.pool.push(t)},ve.prototype.reset=function(){this.pool.length=0};var Se={width:0,height:0,left:0,right:0,top:0,bottom:0},De={width:0,height:0,left:0,right:0,top:0,bottom:0};function Te(){this._isDestroyed=!1,this._isTicking=!1,this._tickTime=0,this._tickDeltaTime=0,this._items=[],this._actions=[],this._requests={},this._requests[jt]={},this._requests[Ut]={},this._requestOverlapCheck={},this._dragPositions={},this._dragDirections={},this._overlapCheckInterval=150,this._requestPool=new ve((function(){return new _e}),(function(t){t.reset()})),this._actionPool=new ve((function(){return new ye}),(function(t){t.reset()})),this._readTick=this._readTick.bind(this),this._writeTick=this._writeTick.bind(this)}Te.AXIS_X=jt,Te.AXIS_Y=Ut,Te.FORWARD=Gt,Te.BACKWARD=$t,Te.LEFT=Vt,Te.RIGHT=Qt,Te.UP=Zt,Te.DOWN=Jt,Te.smoothSpeed=function(t,e,i){return function(n,r,s){var o=0;if(!s.isEnding)if(s.threshold>0){var a=s.threshold-Math.max(0,s.distance);o=t/s.threshold*a}else o=t;var l=s.speed,u=o;return l===o?u:l<o?(u=l+e*(s.deltaTime/1e3),Math.min(o,u)):(u=l-i*(s.deltaTime/1e3),Math.max(o,u))}},Te.pointerHandle=function(t){var e={left:0,top:0,width:0,height:0},i=t||1;return function(t,n,r,s,o,a,l){return e.left=a-.5*i,e.top=l-.5*i,e.width=i,e.height=i,e}},Te.prototype._readTick=function(t){this._isDestroyed||(t&&this._tickTime?(this._tickDeltaTime=t-this._tickTime,this._tickTime=t,this._updateRequests(),this._updateActions()):(this._tickTime=t,this._tickDeltaTime=0))},Te.prototype._writeTick=function(){this._isDestroyed||(this._applyActions(),Bt(this._readTick,this._writeTick))},Te.prototype._startTicking=function(){this._isTicking=!0,Bt(this._readTick,this._writeTick)},Te.prototype._stopTicking=function(){this._isTicking=!1,this._tickTime=0,this._tickDeltaTime=0,Xt()},Te.prototype._getItemHandleRect=function(t,e,i){var n=t._drag;if(e){var r=n._dragMoveEvent||n._dragStartEvent,s=e(t,n._clientX,n._clientY,t._width,t._height,r.clientX,r.clientY);i.left=s.left,i.top=s.top,i.width=s.width,i.height=s.height}else i.left=n._clientX,i.top=n._clientY,i.width=t._width,i.height=t._height;return i.right=i.left+i.width,i.bottom=i.top+i.height,i},Te.prototype._requestItemScroll=function(t,e,i,n,r,s,o){var a=this._requests[e],l=a[t._id];l?l.element===i&&l.direction===n||l.reset():l=this._requestPool.pick(),l.item=t,l.element=i,l.direction=n,l.threshold=r,l.distance=s,l.maxValue=o,a[t._id]=l},Te.prototype._cancelItemScroll=function(t,e){var i=this._requests[e],n=i[t._id];n&&(n.action&&n.action.removeRequest(n),this._requestPool.release(n),delete i[t._id])},Te.prototype._checkItemOverlap=function(t,e,i){var n=fe(t),r=te(n.targets)?n.targets(t):n.targets,s=n.threshold,o=n.safeZone;if(!r||!r.length)return e&&this._cancelItemScroll(t,jt),void(i&&this._cancelItemScroll(t,Ut));var a=this._dragDirections[t._id],l=a[0],u=a[1];if(!l&&!u)return e&&this._cancelItemScroll(t,jt),void(i&&this._cancelItemScroll(t,Ut));for(var c=this._getItemHandleRect(t,n.handle,Se),h=De,d=null,f=null,p=!0,m=!0,g=0,_=0,y=null,v=null,w=0,b=0,x=0,S=null,D=-1/0,T=0,A=0,k=null,E=0,M=0,R=null,P=-1/0,O=0,C=0,L=null,I=0,N=0,Y=0;Y<r.length;Y++)d=r[Y],p=e&&l&&d.axis!==Ut,m=i&&u&&d.axis!==jt,_=d.priority||0,(!p||_<D)&&(!m||_<P)||(f=ae(d.element||d),b=p?ce(f):-1,x=m?he(f):-1,(b||x)&&(h=de(f,h),g=xe(c,h),g<=0||(p&&_>=D&&b>0&&(_>D||g>A)&&(v=null,y=ge("number"===typeof d.threshold?d.threshold:s,o,c.width,h.width),l===Qt?(w=h.right+y.offset-c.right,w<=y.value&&le(f)<b&&(v=Qt)):l===Vt&&(w=c.left-(h.left-y.offset),w<=y.value&&le(f)>0&&(v=Vt)),null!==v&&(S=f,D=_,T=y.value,A=g,k=v,E=w,M=b)),m&&_>=P&&x>0&&(_>P||g>C)&&(v=null,y=ge("number"===typeof d.threshold?d.threshold:s,o,c.height,h.height),u===Jt?(w=h.bottom+y.offset-c.bottom,w<=y.value&&ue(f)<x&&(v=Jt)):u===Zt&&(w=c.top-(h.top-y.offset),w<=y.value&&ue(f)>0&&(v=Zt)),null!==v&&(R=f,P=_,O=y.value,C=g,L=v,I=w,N=x)))));e&&(S?this._requestItemScroll(t,jt,S,k,T,E,M):this._cancelItemScroll(t,jt)),i&&(R?this._requestItemScroll(t,Ut,R,L,O,I,N):this._cancelItemScroll(t,Ut))},Te.prototype._updateScrollRequest=function(t){for(var e=t.item,i=fe(e),n=te(i.targets)?i.targets(e):i.targets,r=n&&n.length||0,s=i.threshold,o=i.safeZone,a=this._getItemHandleRect(e,i.handle,Se),l=De,u=null,c=null,h=!1,d=null,f=null,p=null,m=null,g=null,_=null,y=0;y<r;y++)if(u=n[y],c=ae(u.element||u),c===t.element){if(h=!!(jt&t.direction),h){if(u.axis===Ut)continue}else if(u.axis===jt)continue;if(g=h?ce(c):he(c),g<=0)break;if(l=de(c,l),d=xe(a,l),d<=0)break;if(f=ge("number"===typeof u.threshold?u.threshold:s,o,h?a.width:a.height,h?l.width:l.height),p=t.direction===Vt?a.left-(l.left-f.offset):t.direction===Qt?l.right+f.offset-a.right:t.direction===Zt?a.top-(l.top-f.offset):l.bottom+f.offset-a.bottom,p>f.value)break;if(m=h?le(c):ue(c),_=Gt&t.direction?m>=g:m<=0,_)break;return t.maxValue=g,t.threshold=f.value,t.distance=p,t.isEnding=!1,!0}return!0===i.smoothStop&&t.speed>0?(null===_&&(_=t.hasReachedEnd()),t.isEnding=!_):t.isEnding=!1,t.isEnding},Te.prototype._updateRequests=function(){for(var t,e,i,n,r,s,o,a=this._items,l=this._requests[jt],u=this._requests[Ut],c=0;c<a.length;c++)t=a[c],n=this._requestOverlapCheck[t._id],r=n>0&&this._tickTime-n>this._overlapCheckInterval,s=!0,e=l[t._id],e&&e.isActive&&(s=!this._updateScrollRequest(e),s&&(r=!0,this._cancelItemScroll(t,jt))),o=!0,i=u[t._id],i&&i.isActive&&(o=!this._updateScrollRequest(i),o&&(r=!0,this._cancelItemScroll(t,Ut))),r&&(this._requestOverlapCheck[t._id]=0,this._checkItemOverlap(t,s,o))},Te.prototype._requestAction=function(t,e){for(var i=this._actions,n=e===jt,r=null,s=0;s<i.length;s++){if(r=i[s],t.element===r.element){if(n?r.requestX:r.requestY)return void this._cancelItemScroll(t.item,e);break}r=null}r||(r=this._actionPool.pick()),r.element=t.element,r.addRequest(t),t.tick(this._tickDeltaTime),i.push(r)},Te.prototype._updateActions=function(){var t,e,i,n,r=this._items,s=this._requests,o=this._actions;for(n=0;n<r.length;n++)t=r[n]._id,e=s[jt][t],i=s[Ut][t],e&&this._requestAction(e,jt),i&&this._requestAction(i,Ut);for(n=0;n<o.length;n++)o[n].computeScrollValues()},Te.prototype._applyActions=function(){var t,e=this._actions,i=this._items;if(e.length){for(t=0;t<e.length;t++)e[t].scroll(),this._actionPool.release(e[t]);for(e.length=0,t=0;t<i.length;t++)pe(i[t]);for(t=0;t<i.length;t++)me(i[t])}},Te.prototype._updateDragDirection=function(t){var e=this._dragPositions[t._id],i=this._dragDirections[t._id],n=t._drag._left,r=t._drag._top;if(e.length){var s=e[0],o=e[1];i[0]=n>s?Qt:n<s?Vt:i[0]||0,i[1]=r>o?Jt:r<o?Zt:i[1]||0}e[0]=n,e[1]=r},Te.prototype.addItem=function(t){if(!this._isDestroyed){var e=this._items.indexOf(t);-1===e&&(this._items.push(t),this._requestOverlapCheck[t._id]=this._tickTime,this._dragDirections[t._id]=[0,0],this._dragPositions[t._id]=[],this._isTicking||this._startTicking())}},Te.prototype.updateItem=function(t){this._isDestroyed||this._dragDirections[t._id]&&(this._updateDragDirection(t),this._requestOverlapCheck[t._id]||(this._requestOverlapCheck[t._id]=this._tickTime))},Te.prototype.removeItem=function(t){if(!this._isDestroyed){var e=this._items.indexOf(t);if(-1!==e){var i=t._id,n=this._requests[jt][i];n&&(this._cancelItemScroll(t,jt),delete this._requests[jt][i]);var r=this._requests[Ut][i];r&&(this._cancelItemScroll(t,Ut),delete this._requests[Ut][i]),delete this._requestOverlapCheck[i],delete this._dragPositions[i],delete this._dragDirections[i],this._items.splice(e,1),this._isTicking&&!this._items.length&&this._stopTicking()}}},Te.prototype.isItemScrollingX=function(t){var e=this._requests[jt][t._id];return!(!e||!e.isActive)},Te.prototype.isItemScrollingY=function(t){var e=this._requests[Ut][t._id];return!(!e||!e.isActive)},Te.prototype.isItemScrolling=function(t){return this.isItemScrollingX(t)||this.isItemScrollingY(t)},Te.prototype.destroy=function(){if(!this._isDestroyed){for(var t=this._items.slice(0),e=0;e<t.length;e++)this.removeItem(t[e]);this._actions.length=0,this._requestPool.reset(),this._actionPool.reset(),this._isDestroyed=!0}};var Ae=window.Element.prototype,ke=Ae.matches||Ae.matchesSelector||Ae.webkitMatchesSelector||Ae.mozMatchesSelector||Ae.msMatchesSelector||Ae.oMatchesSelector||function(){return!1};function Ee(t,e){return ke.call(t,e)}function Me(t,e){e&&(t.classList?t.classList.add(e):Ee(t,"."+e)||(t.className+=" "+e))}var Re=[],Pe="number";function Oe(t,e,i){var n=typeof i===Pe?i:-1;n<0&&(n=t.length-n+1),t.splice.apply(t,Re.concat(n,0,e)),Re.length=0}function Ce(t,e,i){var n=Math.max(0,t.length-1+(i||0));return e>n?n:e<0?Math.max(n+e+1,0):e}function Le(t,e,i){if(!(t.length<2)){var n=Ce(t,e),r=Ce(t,i);n!==r&&t.splice(r,0,t.splice(n,1)[0])}}function Ie(t,e,i){if(!(t.length<2)){var n,r=Ce(t,e),s=Ce(t,i);r!==s&&(n=t[r],t[r]=t[s],t[s]=n)}}var Ne=X(document.documentElement.style,"transform")||"transform",Ye=/([A-Z])/g,qe=/^(webkit-|moz-|ms-|o-)/,Fe=/^(-m-s-)/;function He(t){var e=t.replace(Ye,"-$1").toLowerCase();return e=e.replace(qe,"-$1"),e=e.replace(Fe,"-ms-"),e}var Be=He(Ne),Xe="none",We="inline",ze="none",je="display";function Ue(t){var e=ie(t,Be);if(!e||e===Xe)return!1;var i=ie(t,je);return i!==We&&i!==ze}function Ge(t){var e=document,i=t||e;while(i&&i!==e&&"static"===ie(i,"position")&&!Ue(i))i=i.parentElement||e;return i}var $e={},Ve={},Qe={};function Ze(t,e){var i,n=e||{};return n.left=0,n.top=0,t===document?n:(n.left=window.pageXOffset||0,n.top=window.pageYOffset||0,t.self===window.self||(i=t.getBoundingClientRect(),n.left+=i.left,n.top+=i.top,n.left+=ne(t,"border-left-width"),n.top+=ne(t,"border-top-width")),n)}function Je(t,e,i){return Qe.left=0,Qe.top=0,t===e||i&&(t=Ge(t),e=Ge(e),t===e)||(Ze(t,$e),Ze(e,Ve),Qe.left=Ve.left-$e.left,Qe.top=Ve.top-$e.top),Qe}function Ke(t){return"auto"===t||"scroll"===t||"overlay"===t}function ti(t){return Ke(ie(t,"overflow"))||Ke(ie(t,"overflow-x"))||Ke(ie(t,"overflow-y"))}function ei(t,e){e=e||[];while(t&&t!==document)t.getRootNode&&t instanceof DocumentFragment?t=t.getRootNode().host:(ti(t)&&e.push(t),t=t.parentNode);return e.push(window),e}var ii={},ni="none",ri=/^matrix3d/,si=/([^,]*,){4}/,oi=/([^,]*,){12}/,ai=/[^,]*,/;function li(t){ii.x=0,ii.y=0;var e=ie(t,Be);if(!e||e===ni)return ii;var i=ri.test(e),n=e.replace(i?oi:si,""),r=n.replace(ai,"");return ii.x=parseFloat(n)||0,ii.y=parseFloat(r)||0,ii}function ui(t,e){e&&(t.classList?t.classList.remove(e):Ee(t,"."+e)&&(t.className=(" "+t.className+" ").replace(" "+e+" "," ").trim()))}var ci=/^(iPad|iPhone|iPod)/.test(window.navigator.platform)||/^Mac/.test(window.navigator.platform)&&window.navigator.maxTouchPoints>1,hi=0,di=1,fi=2,pi=!!W()&&{passive:!0};function mi(t){var e=t._element,i=t.getGrid(),n=i._settings;this._item=t,this._gridId=i._id,this._isDestroyed=!1,this._isMigrating=!1,this._startPredicate=te(n.dragStartPredicate)?n.dragStartPredicate:mi.defaultStartPredicate,this._startPredicateState=hi,this._startPredicateResult=void 0,this._isSortNeeded=!1,this._sortTimer=void 0,this._blockedSortIndex=null,this._sortX1=0,this._sortX2=0,this._sortY1=0,this._sortY2=0,this._reset(),this._preStartCheck=this._preStartCheck.bind(this),this._preEndCheck=this._preEndCheck.bind(this),this._onScroll=this._onScroll.bind(this),this._prepareStart=this._prepareStart.bind(this),this._applyStart=this._applyStart.bind(this),this._prepareMove=this._prepareMove.bind(this),this._applyMove=this._applyMove.bind(this),this._prepareScroll=this._prepareScroll.bind(this),this._applyScroll=this._applyScroll.bind(this),this._handleSort=this._handleSort.bind(this),this._handleSortDelayed=this._handleSortDelayed.bind(this),this._handle=n.dragHandle&&e.querySelector(n.dragHandle)||e,this._dragger=new K(this._handle,n.dragCssProps),this._dragger.on("start",this._preStartCheck),this._dragger.on("move",this._preStartCheck),this._dragger.on("cancel",this._preEndCheck),this._dragger.on("end",this._preEndCheck)}function gi(t){if("a"===t.tagName.toLowerCase()){var e=t.getAttribute("href");if(e){var i=t.getAttribute("target");i&&"_self"!==i?window.open(e,i):window.location.href=e}}}function _i(t,e){var i,n,r={};if(Array.isArray(e))for(n=0;n<e.length;n++)i=e[n],r[i]=ie(t,He(i));else for(i in e)r[i]=ie(t,He(i));return r}mi.autoScroller=new Te,mi.defaultStartPredicate=function(t,e,i){var n=t._drag;if(e.isFirst&&e.srcEvent.button)return!1;if(!ci&&e.isFirst&&!0===e.srcEvent.isTrusted&&!1===e.srcEvent.defaultPrevented&&!1===e.srcEvent.cancelable)return!1;if(!e.isFinal){var r=n._startPredicateData;if(!r){var s=i||n._getGrid()._settings.dragStartPredicate||{};n._startPredicateData=r={distance:Math.max(s.distance,0)||0,delay:Math.max(s.delay,0)||0}}return r.delay&&(r.event=e,r.delayTimer||(r.delayTimer=window.setTimeout((function(){r.delay=0,n._resolveStartPredicate(r.event)&&(n._forceResolveStartPredicate(r.event),n._resetStartPredicate())}),r.delay))),n._resolveStartPredicate(e)}n._finishStartPredicate(e)},mi.defaultSortPredicate=function(){var t={},e={},i={},n=[],r=1,a=100;function l(i,r,s){var o,a,l,u,c,h,d,f,p,m,g=null,_=r._settings.dragSort,y=-1;if(!0===_?(n[0]=r,a=n):te(_)&&(a=_.call(r,i)),!a||!Array.isArray(a)||!a.length)return g;for(m=0;m<a.length;m++)if(l=a[m],!l._isDestroyed){l._updateBoundingRect(),h=Math.max(0,l._left),d=Math.max(0,l._top),f=Math.min(window.innerWidth,l._right),p=Math.min(window.innerHeight,l._bottom),u=l._element.parentNode;while(u&&u!==document&&u!==document.documentElement&&u!==document.body)if(u.getRootNode&&u instanceof DocumentFragment)u=u.getRootNode().host;else{if("visible"!==ie(u,"overflow")&&(c=u.getBoundingClientRect(),h=Math.max(h,c.left),d=Math.max(d,c.top),f=Math.min(f,c.right),p=Math.min(p,c.bottom)),"fixed"===ie(u,"position"))break;u=u.parentNode}h>=f||d>=p||(e.left=h,e.top=d,e.width=f-h,e.height=p-d,o=xe(t,e),o>s&&o>y&&(y=o,g=l))}return n.length=0,g}return function(n,u){var c=n._drag,h=c._getGrid(),d=u&&"number"===typeof u.threshold?u.threshold:50,f=u&&u.action===s?s:o,p=u&&u.migrateAction===s?s:o;d=Math.min(Math.max(d,r),a),t.width=n._width,t.height=n._height,t.left=c._clientX,t.top=c._clientY;var m=l(n,h,d);if(!m)return null;var g,_,y,v=n.getGrid()!==m,w=0,b=0,x=0,S=-1,D=!1;for(m===h?(t.left=c._gridX+n._marginLeft,t.top=c._gridY+n._marginTop):(m._updateBorders(1,0,1,0),w=m._left+m._borderLeft,b=m._top+m._borderTop),y=0;y<m._items.length;y++)g=m._items[y],g._isActive&&g!==n&&(D=!0,e.width=g._width,e.height=g._height,e.left=g._left+g._marginLeft+w,e.top=g._top+g._marginTop+b,_=xe(t,e),_>x&&(S=y,x=_));return v&&x<d&&(S=D?S:0,x=d),x>=d?(i.grid=m,i.index=S,i.action=v?p:f,i):null}}(),mi.prototype.stop=function(){if(this._isActive)if(this._isMigrating)this._finishMigration();else{var t=this._item,e=t._id;if(mi.autoScroller.removeItem(t),Rt(e),Ot(e),Lt(e),this._cancelSort(),this._isStarted){this._unbindScrollListeners();var i=t._element,n=this._getGrid(),r=n._settings.itemDraggingClass;i.parentNode!==n._element&&(n._element.appendChild(i),t._setTranslate(this._gridX,this._gridY),r&&i.clientWidth),ui(i,r)}this._reset()}},mi.prototype.sort=function(t){var e=this._item;this._isActive&&e._isActive&&this._dragMoveEvent&&(!0===t?this._handleSort():It(e._id,this._handleSort))},mi.prototype.destroy=function(){this._isDestroyed||(this.stop(),this._dragger.destroy(),mi.autoScroller.removeItem(this._item),this._isDestroyed=!0)},mi.prototype._getGrid=function(){return n[this._gridId]||null},mi.prototype._reset=function(){this._isActive=!1,this._isStarted=!1,this._container=null,this._containingBlock=null,this._dragStartEvent=null,this._dragMoveEvent=null,this._dragPrevMoveEvent=null,this._scrollEvent=null,this._scrollers=[],this._left=0,this._top=0,this._gridX=0,this._gridY=0,this._clientX=0,this._clientY=0,this._scrollDiffX=0,this._scrollDiffY=0,this._moveDiffX=0,this._moveDiffY=0,this._containerDiffX=0,this._containerDiffY=0},mi.prototype._bindScrollListeners=function(){var t,e,i=this._getGrid()._element,n=this._container,r=this._scrollers;if(r.length=0,ei(this._item._element.parentNode,r),n!==i)for(t=[],ei(i,t),e=0;e<t.length;e++)r.indexOf(t[e])<0&&r.push(t[e]);for(e=0;e<r.length;e++)r[e].addEventListener("scroll",this._onScroll,pi)},mi.prototype._unbindScrollListeners=function(){var t,e=this._scrollers;for(t=0;t<e.length;t++)e[t].removeEventListener("scroll",this._onScroll,pi);e.length=0},mi.prototype._resolveStartPredicate=function(t){var e=this._startPredicateData;if(!(t.distance<e.distance||e.delay))return this._resetStartPredicate(),!0},mi.prototype._forceResolveStartPredicate=function(t){this._isDestroyed||this._startPredicateState!==di||(this._startPredicateState=fi,this._onStart(t))},mi.prototype._finishStartPredicate=function(t){var e=this._item._element,i=Math.abs(t.deltaX)<2&&Math.abs(t.deltaY)<2&&t.deltaTime<200;this._resetStartPredicate(),i&&gi(e)},mi.prototype._resetHeuristics=function(t,e){this._blockedSortIndex=null,this._sortX1=this._sortX2=t,this._sortY1=this._sortY2=e},mi.prototype._checkHeuristics=function(t,e){var i=this._getGrid()._settings.dragSortHeuristics,n=i.minDragDistance;if(n<=0)return this._blockedSortIndex=null,!0;var r=t-this._sortX2,s=e-this._sortY2,o=n>3&&i.minBounceBackAngle>0;if(o||(this._blockedSortIndex=null),Math.abs(r)>n||Math.abs(s)>n){if(o){var a=Math.atan2(r,s),l=Math.atan2(this._sortX2-this._sortX1,this._sortY2-this._sortY1),u=Math.atan2(Math.sin(a-l),Math.cos(a-l));Math.abs(u)>i.minBounceBackAngle&&(this._blockedSortIndex=null)}return this._sortX1=this._sortX2,this._sortY1=this._sortY2,this._sortX2=t,this._sortY2=e,!0}return!1},mi.prototype._resetStartPredicate=function(){var t=this._startPredicateData;t&&(t.delayTimer&&(t.delayTimer=window.clearTimeout(t.delayTimer)),this._startPredicateData=null)},mi.prototype._handleSort=function(){if(this._isActive){var t=this._getGrid()._settings;if(!t.dragSort||!t.dragAutoScroll.sortDuringScroll&&mi.autoScroller.isItemScrolling(this._item))return this._sortX1=this._sortX2=this._gridX,this._sortY1=this._sortY2=this._gridY,this._isSortNeeded=!0,void(void 0!==this._sortTimer&&(this._sortTimer=window.clearTimeout(this._sortTimer)));var e=this._checkHeuristics(this._gridX,this._gridY);if(this._isSortNeeded||e){var i=t.dragSortHeuristics.sortInterval;i<=0||this._isSortNeeded?(this._isSortNeeded=!1,void 0!==this._sortTimer&&(this._sortTimer=window.clearTimeout(this._sortTimer)),this._checkOverlap()):void 0===this._sortTimer&&(this._sortTimer=window.setTimeout(this._handleSortDelayed,i))}}},mi.prototype._handleSortDelayed=function(){this._isSortNeeded=!0,this._sortTimer=void 0,It(this._item._id,this._handleSort)},mi.prototype._cancelSort=function(){this._isSortNeeded=!1,void 0!==this._sortTimer&&(this._sortTimer=window.clearTimeout(this._sortTimer)),Nt(this._item._id)},mi.prototype._finishSort=function(){var t=this._getGrid()._settings.dragSort,e=t&&(this._isSortNeeded||void 0!==this._sortTimer);this._cancelSort(),e&&this._checkOverlap()},mi.prototype._checkOverlap=function(){if(this._isActive){var t,e,i,n,r,a,l,u,c=this._item,h=this._getGrid()._settings;t=te(h.dragSortPredicate)?h.dragSortPredicate(c,this._dragMoveEvent):mi.defaultSortPredicate(c,h.dragSortPredicate),t&&"number"===typeof t.index&&(l=t.action===s?s:o,e=c.getGrid(),n=t.grid||e,u=e!==n,i=e._items.indexOf(c),r=Ce(n._items,t.index,u&&l===o?1:0),(u||r!==this._blockedSortIndex)&&(u?(this._blockedSortIndex=null,a=n._items[r],e._hasListeners(b)&&e._emit(b,{item:c,fromGrid:e,fromIndex:i,toGrid:n,toIndex:r}),n._hasListeners(S)&&n._emit(S,{item:c,fromGrid:e,fromIndex:i,toGrid:n,toIndex:r}),c._gridId=n._id,this._isMigrating=c._gridId!==this._gridId,e._items.splice(i,1),Oe(n._items,c,r),c._sortData=null,e._hasListeners(w)&&e._emit(w,{item:c,fromGrid:e,fromIndex:i,toGrid:n,toIndex:r}),n._hasListeners(x)&&n._emit(x,{item:c,fromGrid:e,fromIndex:i,toGrid:n,toIndex:r}),l===s&&a&&a.isActive()&&n._items.indexOf(a)>-1&&n.send(a,e,i,{appendTo:this._container||document.body,layoutSender:!1,layoutReceiver:!1}),e.layout(),n.layout()):i!==r&&(this._blockedSortIndex=i,(l===s?Ie:Le)(e._items,i,r),e._hasListeners(v)&&e._emit(v,{item:c,fromIndex:i,toIndex:r,action:l}),e.layout())))}},mi.prototype._finishMigration=function(){var t,e,i=this._item,n=i._dragRelease,r=i._element,s=i._isActive,o=i.getGrid(),a=o._element,l=o._settings,u=l.dragContainer||a,c=this._getGrid()._settings,h=r.parentNode,d=s?c.itemVisibleClass:c.itemHiddenClass,f=s?l.itemVisibleClass:l.itemHiddenClass;this._isMigrating=!1,this.destroy(),c.itemClass!==l.itemClass&&(ui(r,c.itemClass),Me(r,l.itemClass)),d!==f&&(ui(r,d),Me(r,f)),u!==h&&(u.appendChild(r),e=Je(h,u,!0),t=li(r),t.x-=e.left,t.y-=e.top),i._refreshDimensions(),e=Je(u,a,!0),n._containerDiffX=e.left,n._containerDiffY=e.top,i._drag=l.dragEnabled?new mi(i):null,u!==h&&i._setTranslate(t.x,t.y),i._visibility.setStyles(s?l.visibleStyles:l.hiddenStyles),n.start()},mi.prototype._preStartCheck=function(t){this._startPredicateState===hi&&(this._startPredicateState=di),this._startPredicateState===di?(this._startPredicateResult=this._startPredicate(this._item,t),!0===this._startPredicateResult?(this._startPredicateState=fi,this._onStart(t)):!1===this._startPredicateResult&&(this._resetStartPredicate(t),this._dragger._reset(),this._startPredicateState=hi)):this._startPredicateState===fi&&this._isActive&&this._onMove(t)},mi.prototype._preEndCheck=function(t){var e=this._startPredicateState===fi;this._startPredicate(this._item,t),this._startPredicateState=hi,e&&this._isActive&&(this._isStarted?this._onEnd(t):this.stop())},mi.prototype._onStart=function(t){var e=this._item;e._isActive&&(this._isActive=!0,this._dragStartEvent=t,mi.autoScroller.addItem(e),Mt(e._id,this._prepareStart,this._applyStart))},mi.prototype._prepareStart=function(){if(this._isActive){var t=this._item;if(t._isActive){var e=t._element,i=this._getGrid(),n=i._settings,r=i._element,s=n.dragContainer||r,o=Ge(s),a=li(e),l=e.getBoundingClientRect(),u=s!==r;if(this._container=s,this._containingBlock=o,this._clientX=l.left,this._clientY=l.top,this._left=this._gridX=a.x,this._top=this._gridY=a.y,this._scrollDiffX=this._scrollDiffY=0,this._moveDiffX=this._moveDiffY=0,this._resetHeuristics(this._gridX,this._gridY),u){var c=Je(o,r);this._containerDiffX=c.left,this._containerDiffY=c.top}}}},mi.prototype._applyStart=function(){if(this._isActive){var t=this._item;if(t._isActive){var e=this._getGrid(),i=t._element,n=t._dragRelease,r=t._migrate,s=this._container!==e._element;t.isPositioning()&&t._layout.stop(!0,this._left,this._top),r._isActive&&(this._left-=r._containerDiffX,this._top-=r._containerDiffY,this._gridX-=r._containerDiffX,this._gridY-=r._containerDiffY,r.stop(!0,this._left,this._top)),t.isReleasing()&&n._reset(),e._settings.dragPlaceholder.enabled&&t._dragPlaceholder.create(),this._isStarted=!0,e._emit(D,t,this._dragStartEvent),s&&(i.parentNode===this._container?(this._gridX-=this._containerDiffX,this._gridY-=this._containerDiffY):(this._left+=this._containerDiffX,this._top+=this._containerDiffY,this._container.appendChild(i),t._setTranslate(this._left,this._top))),Me(i,e._settings.itemDraggingClass),this._bindScrollListeners(),e._emit(T,t,this._dragStartEvent)}}},mi.prototype._onMove=function(t){var e=this._item;e._isActive?(this._dragMoveEvent=t,Pt(e._id,this._prepareMove,this._applyMove),It(e._id,this._handleSort)):this.stop()},mi.prototype._prepareMove=function(){if(this._isActive){var t=this._item;if(t._isActive){var e=this._getGrid()._settings,i=e.dragAxis,n=this._dragMoveEvent,r=this._dragPrevMoveEvent||this._dragStartEvent||n;if("y"!==i){var s=n.clientX-r.clientX;this._left=this._left-this._moveDiffX+s,this._gridX=this._gridX-this._moveDiffX+s,this._clientX=this._clientX-this._moveDiffX+s,this._moveDiffX=s}if("x"!==i){var o=n.clientY-r.clientY;this._top=this._top-this._moveDiffY+o,this._gridY=this._gridY-this._moveDiffY+o,this._clientY=this._clientY-this._moveDiffY+o,this._moveDiffY=o}this._dragPrevMoveEvent=n}}},mi.prototype._applyMove=function(){if(this._isActive){var t=this._item;t._isActive&&(this._moveDiffX=this._moveDiffY=0,t._setTranslate(this._left,this._top),this._getGrid()._emit(A,t,this._dragMoveEvent),mi.autoScroller.updateItem(t))}},mi.prototype._onScroll=function(t){var e=this._item;e._isActive?(this._scrollEvent=t,Ct(e._id,this._prepareScroll,this._applyScroll),It(e._id,this._handleSort)):this.stop()},mi.prototype._prepareScroll=function(){if(this._isActive){var t=this._item;if(t._isActive){var e=t._element,i=this._getGrid(),n=i._element,r=e.getBoundingClientRect();if(this._container!==n){var s=Je(this._containingBlock,n);this._containerDiffX=s.left,this._containerDiffY=s.top}var o=this._clientX-this._moveDiffX-r.left;this._left=this._left-this._scrollDiffX+o,this._scrollDiffX=o;var a=this._clientY-this._moveDiffY-r.top;this._top=this._top-this._scrollDiffY+a,this._scrollDiffY=a,this._gridX=this._left-this._containerDiffX,this._gridY=this._top-this._containerDiffY}}},mi.prototype._applyScroll=function(){if(this._isActive){var t=this._item;t._isActive&&(this._scrollDiffX=this._scrollDiffY=0,t._setTranslate(this._left,this._top),this._getGrid()._emit(k,t,this._scrollEvent))}},mi.prototype._onEnd=function(t){var e=this._item,i=e._element,n=this._getGrid(),r=n._settings,s=e._dragRelease;e._isActive?(Rt(e._id),Ot(e._id),Lt(e._id),this._finishSort(),this._unbindScrollListeners(),s._containerDiffX=this._containerDiffX,s._containerDiffY=this._containerDiffY,this._reset(),ui(i,r.itemDraggingClass),mi.autoScroller.removeItem(e),n._emit(E,e,t),this._isMigrating?this._finishMigration():s.start()):this.stop()};var yi=/^(webkit|moz|ms|o|Webkit|Moz|MS|O)(?=[A-Z])/,vi={};function wi(t){var e=vi[t];return e||(e=t.replace(yi,""),e!==t&&(e=e[0].toLowerCase()+e.slice(1)),vi[t]=e,e)}var bi="[native code]";function xi(t){var e=window.Symbol;return!!(t&&te(e)&&te(e.toString)&&e(t).toString().indexOf(bi)>-1)}function Si(t,e){for(var i in e)t.style[i]=e[i]}var Di=!(!Element||!te(Element.prototype.animate)),Ti=!(!Element||!xi(Element.prototype.animate));function Ai(t){this._element=t,this._animation=null,this._duration=0,this._easing="",this._callback=null,this._props=[],this._values=[],this._isDestroyed=!1,this._onFinish=this._onFinish.bind(this)}function ki(t,e){var i={};for(var n in t)i[e?n:wi(n)]=t[n];return i}function Ei(t,e){return"translateX("+t+"px) translateY("+e+"px)"}function Mi(t){this._item=t,this._animation=new Ai,this._element=null,this._className="",this._didMigrate=!1,this._resetAfterLayout=!1,this._left=0,this._top=0,this._transX=0,this._transY=0,this._nextTransX=0,this._nextTransY=0,this._setupAnimation=this._setupAnimation.bind(this),this._startAnimation=this._startAnimation.bind(this),this._updateDimensions=this._updateDimensions.bind(this),this._onLayoutStart=this._onLayoutStart.bind(this),this._onLayoutEnd=this._onLayoutEnd.bind(this),this._onReleaseEnd=this._onReleaseEnd.bind(this),this._onMigrate=this._onMigrate.bind(this),this._onHide=this._onHide.bind(this)}function Ri(t){this._item=t,this._isActive=!1,this._isDestroyed=!1,this._isPositioningStarted=!1,this._containerDiffX=0,this._containerDiffY=0}Ai.prototype.start=function(t,e,i){if(!this._isDestroyed){var n=this._element,r=i||{};if(!Di)return Si(n,e),this._callback=te(r.onFinish)?r.onFinish:null,void this._onFinish();var s,o,a,l=this._animation,u=this._props,c=this._values,h=r.duration||300,d=r.easing||"ease",f=!1;if(l&&(o=0,h===this._duration&&d===this._easing||(f=!0),!f)){for(s in e)if(++o,a=u.indexOf(s),-1===a||e[s]!==c[a]){f=!0;break}o!==u.length&&(f=!0)}if(f&&l.cancel(),this._callback=te(r.onFinish)?r.onFinish:null,!l||f){for(s in u.length=c.length=0,e)u.push(s),c.push(e[s]);this._duration=h,this._easing=d,this._animation=n.animate([ki(t,Ti),ki(e,Ti)],{duration:h,easing:d}),this._animation.onfinish=this._onFinish,Si(n,e)}}},Ai.prototype.stop=function(){!this._isDestroyed&&this._animation&&(this._animation.cancel(),this._animation=this._callback=null,this._props.length=this._values.length=0)},Ai.prototype.getCurrentStyles=function(){return _i(element,currentProps)},Ai.prototype.isAnimating=function(){return!!this._animation},Ai.prototype.destroy=function(){this._isDestroyed||(this.stop(),this._element=null,this._isDestroyed=!0)},Ai.prototype._onFinish=function(){var t=this._callback;this._animation=this._callback=null,this._props.length=this._values.length=0,t&&t()},Mi.prototype._updateDimensions=function(){this.isActive()&&Si(this._element,{width:this._item._width+"px",height:this._item._height+"px"})},Mi.prototype._onLayoutStart=function(t,e){var i=this._item;if(-1!==t.indexOf(i)){var n=i._left,r=i._top,s=this._left,o=this._top;if(this._left=n,this._top=r,e||this._didMigrate||s!==n||o!==r){var a=n+i._marginLeft,l=r+i._marginTop,u=i.getGrid(),c=!e&&u._settings.layoutDuration>0;if(!c||this._didMigrate)return qt(i._id),this._element.style[Ne]=Ei(a,l),this._animation.stop(),void(this._didMigrate&&(u.getElement().appendChild(this._element),this._didMigrate=!1));this._nextTransX=a,this._nextTransY=l,Yt(i._id,this._setupAnimation,this._startAnimation)}}else this.reset()},Mi.prototype._setupAnimation=function(){if(this.isActive()){var t=li(this._element);this._transX=t.x,this._transY=t.y}},Mi.prototype._startAnimation=function(){if(this.isActive()){var t=this._animation,e=this._transX,i=this._transY,n=this._nextTransX,r=this._nextTransY;if(e!==n||i!==r){var s=this._item.getGrid()._settings,o={},a={};o[Ne]=Ei(e,i),a[Ne]=Ei(n,r),t.start(o,a,{duration:s.layoutDuration,easing:s.layoutEasing,onFinish:this._onLayoutEnd})}else t.isAnimating()&&(this._element.style[Ne]=Ei(n,r),t.stop())}},Mi.prototype._onLayoutEnd=function(){this._resetAfterLayout&&this.reset()},Mi.prototype._onReleaseEnd=function(t){if(t._id===this._item._id){if(!this._animation.isAnimating())return void this.reset();this._resetAfterLayout=!0}},Mi.prototype._onMigrate=function(t){if(t.item===this._item){var e=this._item.getGrid(),i=t.toGrid;e.off(R,this._onReleaseEnd),e.off(l,this._onLayoutStart),e.off(b,this._onMigrate),e.off(m,this._onHide),i.on(R,this._onReleaseEnd),i.on(l,this._onLayoutStart),i.on(b,this._onMigrate),i.on(m,this._onHide),this._didMigrate=!0}},Mi.prototype._onHide=function(t){t.indexOf(this._item)>-1&&this.reset()},Mi.prototype.create=function(){if(this.isActive())this._resetAfterLayout=!1;else{var t,e=this._item,i=e.getGrid(),n=i._settings,r=this._animation;this._left=e._left,this._top=e._top,t=te(n.dragPlaceholder.createElement)?n.dragPlaceholder.createElement(e):document.createElement("div"),this._element=t,r._element=t,this._className=n.itemPlaceholderClass||"",this._className&&Me(t,this._className),Si(t,{position:"absolute",left:"0px",top:"0px",width:e._width+"px",height:e._height+"px"}),t.style[Ne]=Ei(e._left+e._marginLeft,e._top+e._marginTop),i.on(l,this._onLayoutStart),i.on(R,this._onReleaseEnd),i.on(b,this._onMigrate),i.on(m,this._onHide),te(n.dragPlaceholder.onCreate)&&n.dragPlaceholder.onCreate(e,t),i.getElement().appendChild(t)}},Mi.prototype.reset=function(){if(this.isActive()){var t=this._element,e=this._item,i=e.getGrid(),n=i._settings,r=this._animation;this._resetAfterLayout=!1,qt(e._id),Ht(e._id),r.stop(),r._element=null,i.off(R,this._onReleaseEnd),i.off(l,this._onLayoutStart),i.off(b,this._onMigrate),i.off(m,this._onHide),this._className&&(ui(t,this._className),this._className=""),t.parentNode.removeChild(t),this._element=null,te(n.dragPlaceholder.onRemove)&&n.dragPlaceholder.onRemove(e,t)}},Mi.prototype.isActive=function(){return!!this._element},Mi.prototype.getElement=function(){return this._element},Mi.prototype.updateDimensions=function(){this.isActive()&&Ft(this._item._id,this._updateDimensions)},Mi.prototype.destroy=function(){this.reset(),this._animation.destroy(),this._item=this._animation=null},Ri.prototype.start=function(){if(!this._isDestroyed&&!this._isActive){var t=this._item,e=t.getGrid(),i=e._settings;this._isActive=!0,Me(t._element,i.itemReleasingClass),i.dragRelease.useDragContainer||this._placeToGrid(),e._emit(M,t),e._nextLayoutData||t._layout.start(!1)}},Ri.prototype.stop=function(t,e,i){if(!this._isDestroyed&&this._isActive){var n=this._item,r=n.getGrid();t||void 0!==e&&void 0!==i||(e=n._left,i=n._top);var s=this._placeToGrid(e,i);this._reset(s),t||r._emit(R,n)}},Ri.prototype.isJustReleased=function(){return this._isActive&&!1===this._isPositioningStarted},Ri.prototype.destroy=function(){this._isDestroyed||(this.stop(!0),this._item=null,this._isDestroyed=!0)},Ri.prototype._placeToGrid=function(t,e){if(!this._isDestroyed){var i=this._item,n=i._element,r=i.getGrid()._element,s=!1;if(n.parentNode!==r){if(void 0===t||void 0===e){var o=li(n);t=o.x-this._containerDiffX,e=o.y-this._containerDiffY}r.appendChild(n),i._setTranslate(t,e),s=!0}return this._containerDiffX=0,this._containerDiffY=0,s}},Ri.prototype._reset=function(t){if(!this._isDestroyed){var e=this._item,i=e.getGrid()._settings.itemReleasingClass;this._isActive=!1,this._isPositioningStarted=!1,this._containerDiffX=0,this._containerDiffY=0,i&&(t&&e._element.clientWidth,ui(e._element,i))}};var Pi=2;function Oi(t){var e=t._element,i=e.style;this._item=t,this._isActive=!1,this._isDestroyed=!1,this._isInterrupted=!1,this._currentStyles={},this._targetStyles={},this._nextLeft=0,this._nextTop=0,this._offsetLeft=0,this._offsetTop=0,this._skipNextAnimation=!1,this._animOptions={onFinish:this._finish.bind(this),duration:0,easing:0},i.left="0px",i.top="0px",t._setTranslate(0,0),this._animation=new Ai(e),this._queue="layout-"+t._id,this._setupAnimation=this._setupAnimation.bind(this),this._startAnimation=this._startAnimation.bind(this)}function Ci(t){this._item=t,this._isActive=!1,this._isDestroyed=!1,this._container=!1,this._containerDiffX=0,this._containerDiffY=0}function Li(t){var e=t._isActive,i=t._element,n=i.children[0],r=t.getGrid()._settings;if(!n)throw new Error("No valid child element found within item element.");this._item=t,this._isDestroyed=!1,this._isHidden=!e,this._isHiding=!1,this._isShowing=!1,this._childElement=n,this._currentStyleProps=[],this._animation=new Ai(n),this._queue="visibility-"+t._id,this._finishShow=this._finishShow.bind(this),this._finishHide=this._finishHide.bind(this),i.style.display=e?"":"none",Me(i,e?r.itemVisibleClass:r.itemHiddenClass),this.setStyles(e?r.visibleStyles:r.hiddenStyles)}Oi.prototype.start=function(t,e){if(!this._isDestroyed){var i=this._item,n=i._dragRelease,r=i.getGrid()._settings,s=this._isActive,o=n.isJustReleased(),a=o?r.dragRelease.duration:r.layoutDuration,l=o?r.dragRelease.easing:r.layoutEasing,u=!t&&!this._skipNextAnimation&&a>0;if(s&&(At(i._id),i._emitter.burst(this._queue,!0,i)),o&&(n._isPositioningStarted=!0),te(e)&&i._emitter.on(this._queue,e),this._skipNextAnimation=!1,!u)return this._updateOffsets(),i._setTranslate(this._nextLeft,this._nextTop),this._animation.stop(),void this._finish();this._animation.isAnimating()&&(this._animation._animation.onfinish=null),this._isActive=!0,this._animOptions.easing=l,this._animOptions.duration=a,this._isInterrupted=s,Tt(i._id,this._setupAnimation,this._startAnimation)}},Oi.prototype.stop=function(t,e,i){if(!this._isDestroyed&&this._isActive){var n=this._item;if(At(n._id),this._animation.isAnimating()){if(void 0===e||void 0===i){var r=li(n._element);e=r.x,i=r.y}n._setTranslate(e,i),this._animation.stop()}ui(n._element,n.getGrid()._settings.itemPositioningClass),this._isActive=!1,t&&n._emitter.burst(this._queue,!0,n)}},Oi.prototype.destroy=function(){if(!this._isDestroyed){var t=this._item._element.style;this.stop(!0,0,0),this._item._emitter.clear(this._queue),this._animation.destroy(),t[Ne]="",t.left="",t.top="",this._item=null,this._currentStyles=null,this._targetStyles=null,this._animOptions=null,this._isDestroyed=!0}},Oi.prototype._updateOffsets=function(){if(!this._isDestroyed){var t=this._item,e=t._migrate,i=t._dragRelease;this._offsetLeft=i._isActive?i._containerDiffX:e._isActive?e._containerDiffX:0,this._offsetTop=i._isActive?i._containerDiffY:e._isActive?e._containerDiffY:0,this._nextLeft=this._item._left+this._offsetLeft,this._nextTop=this._item._top+this._offsetTop}},Oi.prototype._finish=function(){if(!this._isDestroyed){var t=this._item,e=t._migrate,i=t._dragRelease;t._tX=this._nextLeft,t._tY=this._nextTop,this._isActive&&(this._isActive=!1,ui(t._element,t.getGrid()._settings.itemPositioningClass)),i._isActive&&i.stop(),e._isActive&&e.stop(),t._emitter.burst(this._queue,!1,t)}},Oi.prototype._setupAnimation=function(){var t=this._item;if(void 0===t._tX||void 0===t._tY){var e=li(t._element);t._tX=e.x,t._tY=e.y}},Oi.prototype._startAnimation=function(){var t=this._item,e=t.getGrid()._settings,i=this._animOptions.duration<=0;this._updateOffsets();var n=Math.abs(t._left-(t._tX-this._offsetLeft)),r=Math.abs(t._top-(t._tY-this._offsetTop));if(i||n<Pi&&r<Pi)return(n||r||this._isInterrupted)&&t._setTranslate(this._nextLeft,this._nextTop),this._animation.stop(),void this._finish();this._isInterrupted||Me(t._element,e.itemPositioningClass),this._currentStyles[Ne]=Ei(t._tX,t._tY),this._targetStyles[Ne]=Ei(this._nextLeft,this._nextTop),t._tX=t._tY=void 0,this._animation.start(this._currentStyles,this._targetStyles,this._animOptions)},Ci.prototype.start=function(t,e,i){if(!this._isDestroyed){var n,r,s,o,a,l,u,c,h,d,f=this._item,p=f._element,m=f.isActive(),g=f.isVisible(),_=f.getGrid(),y=_._settings,v=t._settings,D=t._element,T=t._items,A=_._items.indexOf(f),k=i||document.body;if("number"===typeof e)n=Ce(T,e,1);else{if(r=t.getItem(e),!r)return;n=T.indexOf(r)}(f.isPositioning()||this._isActive||f.isReleasing())&&(l=li(p),u=l.x,c=l.y),f.isPositioning()&&f._layout.stop(!0,u,c),this._isActive&&(u-=this._containerDiffX,c-=this._containerDiffY,this.stop(!0,u,c)),f.isReleasing()&&(u-=f._dragRelease._containerDiffX,c-=f._dragRelease._containerDiffY,f._dragRelease.stop(!0,u,c)),f._visibility.stop(!0),f._drag&&f._drag.destroy(),_._hasListeners(b)&&_._emit(b,{item:f,fromGrid:_,fromIndex:A,toGrid:t,toIndex:n}),t._hasListeners(S)&&t._emit(S,{item:f,fromGrid:_,fromIndex:A,toGrid:t,toIndex:n}),y.itemClass!==v.itemClass&&(ui(p,y.itemClass),Me(p,v.itemClass)),h=g?y.itemVisibleClass:y.itemHiddenClass,d=g?v.itemVisibleClass:v.itemHiddenClass,h!==d&&(ui(p,h),Me(p,d)),_._items.splice(A,1),Oe(T,f,n),f._gridId=t._id,m?(s=p.parentNode,k!==s&&(k.appendChild(p),o=Je(k,s,!0),l||(l=li(p),u=l.x,c=l.y),f._setTranslate(u+o.left,c+o.top))):D.appendChild(p),f._visibility.setStyles(g?v.visibleStyles:v.hiddenStyles),m&&(a=Je(k,D,!0)),f._refreshDimensions(),f._sortData=null,f._drag=v.dragEnabled?new mi(f):null,m?(this._isActive=!0,this._container=k,this._containerDiffX=a.left,this._containerDiffY=a.top):(this._isActive=!1,this._container=null,this._containerDiffX=0,this._containerDiffY=0),_._hasListeners(w)&&_._emit(w,{item:f,fromGrid:_,fromIndex:A,toGrid:t,toIndex:n}),t._hasListeners(x)&&t._emit(x,{item:f,fromGrid:_,fromIndex:A,toGrid:t,toIndex:n})}},Ci.prototype.stop=function(t,e,i){if(!this._isDestroyed&&this._isActive){var n,r=this._item,s=r._element,o=r.getGrid(),a=o._element;this._container!==a&&(void 0!==e&&void 0!==i||(t?(n=li(s),e=n.x-this._containerDiffX,i=n.y-this._containerDiffY):(e=r._left,i=r._top)),a.appendChild(s),r._setTranslate(e,i)),this._isActive=!1,this._container=null,this._containerDiffX=0,this._containerDiffY=0}},Ci.prototype.destroy=function(){this._isDestroyed||(this.stop(!0),this._item=null,this._isDestroyed=!0)},Li.prototype.show=function(t,e){if(!this._isDestroyed){var i=this._item,n=i._element,r=te(e)?e:null,s=i.getGrid(),o=s._settings;this._isShowing||this._isHidden?!this._isShowing||t?(this._isShowing||(i._emitter.burst(this._queue,!0,i),ui(n,o.itemHiddenClass),Me(n,o.itemVisibleClass),this._isHiding||(n.style.display="")),r&&i._emitter.on(this._queue,r),this._isShowing=!0,this._isHiding=this._isHidden=!1,this._startAnimation(!0,t,this._finishShow)):r&&i._emitter.on(this._queue,r):r&&r(!1,i)}},Li.prototype.hide=function(t,e){if(!this._isDestroyed){var i=this._item,n=i._element,r=te(e)?e:null,s=i.getGrid(),o=s._settings;this._isHiding||!this._isHidden?!this._isHiding||t?(this._isHiding||(i._emitter.burst(this._queue,!0,i),Me(n,o.itemHiddenClass),ui(n,o.itemVisibleClass)),r&&i._emitter.on(this._queue,r),this._isHidden=this._isHiding=!0,this._isShowing=!1,this._startAnimation(!1,t,this._finishHide)):r&&i._emitter.on(this._queue,r):r&&r(!1,i)}},Li.prototype.stop=function(t){if(!this._isDestroyed&&(this._isHiding||this._isShowing)){var e=this._item;Et(e._id),this._animation.stop(),t&&e._emitter.burst(this._queue,!0,e)}},Li.prototype.setStyles=function(t){var e=this._childElement,i=this._currentStyleProps;for(var n in this._removeCurrentStyles(),t)i.push(n),e.style[n]=t[n]},Li.prototype.destroy=function(){if(!this._isDestroyed){var t=this._item,e=t._element,i=t.getGrid(),n=i._settings;this.stop(!0),t._emitter.clear(this._queue),this._animation.destroy(),this._removeCurrentStyles(),ui(e,n.itemVisibleClass),ui(e,n.itemHiddenClass),e.style.display="",this._isHiding=this._isShowing=!1,this._isDestroyed=this._isHidden=!0}},Li.prototype._startAnimation=function(t,e,i){if(!this._isDestroyed){var n,r=this._item,s=this._animation,o=this._childElement,a=r.getGrid()._settings,l=t?a.visibleStyles:a.hiddenStyles,u=t?a.showDuration:a.hideDuration,c=t?a.showEasing:a.hideEasing,h=e||u<=0;if(l){if(Et(r._id),h)return Si(o,l),s.stop(),void(i&&i());s.isAnimating()&&(s._animation.onfinish=null),kt(r._id,(function(){n=_i(o,l)}),(function(){s.start(n,l,{duration:u,easing:c,onFinish:i})}))}else i&&i()}},Li.prototype._finishShow=function(){this._isHidden||(this._isShowing=!1,this._item._emitter.burst(this._queue,!1,this._item))},Li.prototype._finishHide=function(){if(this._isHidden){var t=this._item;this._isHiding=!1,t._layout.stop(!0,0,0),t._element.style.display="none",t._emitter.burst(this._queue,!1,t)}},Li.prototype._removeCurrentStyles=function(){for(var t=this._childElement,e=this._currentStyleProps,i=0;i<e.length;i++)t.style[e[i]]="";e.length=0};var Ii=0;function Ni(){return++Ii}function Yi(t,e,i){var n=t._settings;if(r){if(r.has(e))throw new Error("You can only create one Muuri Item per element!");r.set(e,this)}this._id=Ni(),this._gridId=t._id,this._element=e,this._isDestroyed=!1,this._left=0,this._top=0,this._width=0,this._height=0,this._marginLeft=0,this._marginRight=0,this._marginTop=0,this._marginBottom=0,this._tX=void 0,this._tY=void 0,this._sortData=null,this._emitter=new N,e.parentNode!==t._element&&t._element.appendChild(e),Me(e,n.itemClass),"boolean"!==typeof i&&(i="none"!==ie(e,"display")),this._isActive=i,this._visibility=new Li(this),this._layout=new Oi(this),this._migrate=new Ci(this),this._drag=n.dragEnabled?new mi(this):null,this._dragRelease=new Ri(this),this._dragPlaceholder=new Mi(this)}function qi(t){var e=1,i=2,n=4,r=8,s=16,o=.001,a=.5;function l(t){return((1e3*t+.5|0)/10|0)/100}function u(){this.currentRects=[],this.nextRects=[],this.rectTarget={},this.rectStore=[],this.slotSizes=[],this.rectId=0,this.slotIndex=-1,this.slotData={left:0,top:0,width:0,height:0},this.sortRectsLeftTop=this.sortRectsLeftTop.bind(this),this.sortRectsTopLeft=this.sortRectsTopLeft.bind(this)}if(u.prototype.computeLayout=function(t,o){var a,u,c,h,d,f,p=t.items,m=t.slots,g=!!(o&e),_=!!(o&i),y=!!(o&n),v=!!(o&r),w=!!(o&s),b="number"===typeof p[0];if(!p.length)return t;for(u=b?2:1,a=0;a<p.length;a+=u)b?(h=p[a],d=p[a+1]):(c=p[a],h=c._width+c._marginLeft+c._marginRight,d=c._height+c._marginTop+c._marginBottom),w&&(h=l(h),d=l(d)),f=this.computeNextSlot(t,h,d,g,_),_?f.left+f.width>t.width&&(t.width=f.left+f.width):f.top+f.height>t.height&&(t.height=f.top+f.height),m[++this.slotIndex]=f.left,m[++this.slotIndex]=f.top,(y||v)&&this.slotSizes.push(f.width,f.height);if(y)for(a=0;a<m.length;a+=2)m[a]=t.width-(m[a]+this.slotSizes[a]);if(v)for(a=1;a<m.length;a+=2)m[a]=t.height-(m[a]+this.slotSizes[a]);return this.slotSizes.length=0,this.currentRects.length=0,this.nextRects.length=0,this.rectStore.length=0,this.rectId=0,this.slotIndex=-1,t},u.prototype.computeNextSlot=function(t,e,i,n,r){var s,l,u,c,h,d=this.slotData,f=this.currentRects,p=this.nextRects,m=!1;for(p.length=0,d.left=null,d.top=null,d.width=e,d.height=i,c=0;c<f.length;c++)if(l=f[c],l&&(s=this.getRect(l),d.width<=s.width+o&&d.height<=s.height+o)){d.left=s.left,d.top=s.top;break}if(null===d.left&&(r?(d.left=t.width,d.top=0):(d.left=0,d.top=t.height),n||(m=!0)),!r&&d.top+d.height>t.height+o&&(d.left>a&&p.push(this.addRect(0,t.height,d.left,1/0)),d.left+d.width<t.width-a&&p.push(this.addRect(d.left+d.width,t.height,t.width-d.left-d.width,1/0)),t.height=d.top+d.height),r&&d.left+d.width>t.width+o&&(d.top>a&&p.push(this.addRect(t.width,0,1/0,d.top)),d.top+d.height<t.height-a&&p.push(this.addRect(t.width,d.top+d.height,1/0,t.height-d.top-d.height)),t.width=d.left+d.width),!m)for(n&&(c=0);c<f.length;c++)if(l=f[c],l)for(s=this.getRect(l),u=this.splitRect(s,d),h=0;h<u.length;h++)l=u[h],s=this.getRect(l),(r?s.left+o<t.width-o:s.top+o<t.height-o)&&p.push(l);return p.length>1&&this.purgeRects(p).sort(r?this.sortRectsLeftTop:this.sortRectsTopLeft),this.currentRects=p,this.nextRects=f,d},u.prototype.addRect=function(t,e,i,n){var r=++this.rectId;return this.rectStore[r]=t||0,this.rectStore[++this.rectId]=e||0,this.rectStore[++this.rectId]=i||0,this.rectStore[++this.rectId]=n||0,r},u.prototype.getRect=function(t,e){return e||(e=this.rectTarget),e.left=this.rectStore[t]||0,e.top=this.rectStore[++t]||0,e.width=this.rectStore[++t]||0,e.height=this.rectStore[++t]||0,e},u.prototype.splitRect=function(){var t=[],e=0,i=0;return function(n,r){return t.length=0,n.left+n.width<=r.left+o||r.left+r.width<=n.left+o||n.top+n.height<=r.top+o||r.top+r.height<=n.top+o?(t.push(this.addRect(n.left,n.top,n.width,n.height)),t):(e=r.left-n.left,e>=a&&t.push(this.addRect(n.left,n.top,e,n.height)),e=n.left+n.width-(r.left+r.width),e>=a&&t.push(this.addRect(r.left+r.width,n.top,e,n.height)),i=r.top-n.top,i>=a&&t.push(this.addRect(n.left,n.top,n.width,i)),i=n.top+n.height-(r.top+r.height),i>=a&&t.push(this.addRect(n.left,r.top+r.height,n.width,i)),t)}}(),u.prototype.isRectAWithinRectB=function(t,e){return t.left+o>=e.left&&t.top+o>=e.top&&t.left+t.width-o<=e.left+e.width&&t.top+t.height-o<=e.top+e.height},u.prototype.purgeRects=function(){var t={},e={};return function(i){var n,r=i.length;while(r--)if(n=i.length,i[r]){this.getRect(i[r],t);while(n--)if(i[n]&&r!==n&&(this.getRect(i[n],e),this.isRectAWithinRectB(t,e))){i[r]=0;break}}return i}}(),u.prototype.sortRectsTopLeft=function(){var t={},e={};return function(i,n){return this.getRect(i,t),this.getRect(n,e),t.top<e.top&&t.top+o<e.top?-1:t.top>e.top&&t.top-o>e.top?1:t.left<e.left&&t.left+o<e.left?-1:t.left>e.left&&t.left-o>e.left?1:0}}(),u.prototype.sortRectsLeftTop=function(){var t={},e={};return function(i,n){return this.getRect(i,t),this.getRect(n,e),t.left<e.left&&t.left+o<e.left?-1:t.left>e.left&&t.left-o<e.left?1:t.top<e.top&&t.top+o<e.top?-1:t.top>e.top&&t.top-o>e.top?1:0}}(),t){var c=1,h=2,d=3,f=4,p=new u;self.onmessage=function(t){var e=new Float32Array(t.data),i=e.subarray(f,e.length),n=new Float32Array(i.length),r=e[d],s={items:i,slots:n,width:e[c],height:e[h]};p.computeLayout(s,r),e[c]=s.width,e[h]=s.height,e.set(s.slots,f),postMessage(e.buffer,[e.buffer])}}return u}Yi.prototype.getGrid=function(){return n[this._gridId]},Yi.prototype.getElement=function(){return this._element},Yi.prototype.getWidth=function(){return this._width},Yi.prototype.getHeight=function(){return this._height},Yi.prototype.getMargin=function(){return{left:this._marginLeft,right:this._marginRight,top:this._marginTop,bottom:this._marginBottom}},Yi.prototype.getPosition=function(){return{left:this._left,top:this._top}},Yi.prototype.isActive=function(){return this._isActive},Yi.prototype.isVisible=function(){return!!this._visibility&&!this._visibility._isHidden},Yi.prototype.isShowing=function(){return!(!this._visibility||!this._visibility._isShowing)},Yi.prototype.isHiding=function(){return!(!this._visibility||!this._visibility._isHiding)},Yi.prototype.isPositioning=function(){return!(!this._layout||!this._layout._isActive)},Yi.prototype.isDragging=function(){return!(!this._drag||!this._drag._isActive)},Yi.prototype.isReleasing=function(){return!(!this._dragRelease||!this._dragRelease._isActive)},Yi.prototype.isDestroyed=function(){return this._isDestroyed},Yi.prototype._refreshDimensions=function(t){if(!this._isDestroyed&&(!0===t||!this._visibility._isHidden)){var e=this._element,i=this._dragPlaceholder,n=e.getBoundingClientRect();this._width=n.width,this._height=n.height,this._marginLeft=Math.max(0,ne(e,"margin-left")),this._marginRight=Math.max(0,ne(e,"margin-right")),this._marginTop=Math.max(0,ne(e,"margin-top")),this._marginBottom=Math.max(0,ne(e,"margin-bottom")),i&&i.updateDimensions()}},Yi.prototype._refreshSortData=function(){if(!this._isDestroyed){var t,e=this._sortData={},i=this.getGrid()._settings.sortData;for(t in i)e[t]=i[t](this,this._element)}},Yi.prototype._addToLayout=function(t,e){!0!==this._isActive&&(this._isActive=!0,this._left=t||0,this._top=e||0)},Yi.prototype._removeFromLayout=function(){!1!==this._isActive&&(this._isActive=!1,this._left=0,this._top=0)},Yi.prototype._canSkipLayout=function(t,e){return this._left===t&&this._top===e&&!this._migrate._isActive&&!this._layout._skipNextAnimation&&!this._dragRelease.isJustReleased()},Yi.prototype._setTranslate=function(t,e){return(this._tX!==t||this._tY!==e)&&(this._tX=t,this._tY=e,this._element.style[Ne]=Ei(t,e),!0)},Yi.prototype._destroy=function(t){if(!this._isDestroyed){var e=this._element,i=this.getGrid(),n=i._settings;this._dragPlaceholder.destroy(),this._dragRelease.destroy(),this._migrate.destroy(),this._layout.destroy(),this._visibility.destroy(),this._drag&&this._drag.destroy(),this._emitter.destroy(),ui(e,n.itemClass),t&&e.parentNode.removeChild(e),r&&r.delete(e),this._isActive=!1,this._isDestroyed=!0}};var Fi=qi(),Hi=null,Bi=[];function Xi(t,e){var i=[];if(t>0){Hi||(Hi=URL.createObjectURL(new Blob(["("+qi.toString()+")(true)"],{type:"application/javascript"})));for(var n,r=0;r<t;r++)n=new Worker(Hi),e&&(n.onmessage=e),i.push(n),Bi.push(n)}return i}function Wi(t){for(var e,i,n=0;n<t.length;n++)e=t[n],e.onmessage=null,e.onerror=null,e.onmessageerror=null,e.terminate(),i=Bi.indexOf(e),i>-1&&Bi.splice(i,1);Hi&&!Bi.length&&(URL.revokeObjectURL(Hi),Hi=null)}function zi(){return!!(window.Worker&&window.URL&&window.Blob)}var ji=1,Ui=2,Gi=4,$i=8,Vi=16,Qi=0,Zi=1,Ji=2,Ki=3,tn=4;function en(t,e){if(this._options=0,this._processor=null,this._layoutQueue=[],this._layouts={},this._layoutCallbacks={},this._layoutWorkers={},this._layoutWorkerData={},this._workers=[],this._onWorkerMessage=this._onWorkerMessage.bind(this),this.setOptions(e),t="number"===typeof t?Math.max(0,t):0,t&&zi())try{this._workers=Xi(t,this._onWorkerMessage)}catch(i){this._processor=new Fi}else this._processor=new Fi}en.prototype._sendToWorker=function(){if(this._layoutQueue.length&&this._workers.length){var t=this._layoutQueue.shift(),e=this._workers.pop(),i=this._layoutWorkerData[t];delete this._layoutWorkerData[t],this._layoutWorkers[t]=e,e.postMessage(i.buffer,[i.buffer])}},en.prototype._onWorkerMessage=function(t){var e=new Float32Array(t.data),i=e[Qi],n=this._layouts[i],r=this._layoutCallbacks[i],s=this._layoutWorkers[i];n&&delete this._layouts[i],r&&delete this._layoutCallbacks[i],s&&delete this._layoutWorkers[i],n&&r&&(n.width=e[Zi],n.height=e[Ji],n.slots=e.subarray(tn,e.length),this._finalizeLayout(n),r(n)),s&&(this._workers.push(s),this._sendToWorker())},en.prototype._finalizeLayout=function(t){var e=t._grid,i=t._settings&Ui,n="border-box"===e._boxSizing;return delete t._grid,delete t._settings,t.styles={},i?t.styles.width=(n?t.width+e._borderLeft+e._borderRight:t.width)+"px":t.styles.height=(n?t.height+e._borderTop+e._borderBottom:t.height)+"px",t},en.prototype.setOptions=function(t){var e,i,n,r,s;t&&(e="boolean"===typeof t.fillGaps?t.fillGaps?ji:0:this._options&ji,i="boolean"===typeof t.horizontal?t.horizontal?Ui:0:this._options&Ui,n="boolean"===typeof t.alignRight?t.alignRight?Gi:0:this._options&Gi,r="boolean"===typeof t.alignBottom?t.alignBottom?$i:0:this._options&$i,s="boolean"===typeof t.rounding?t.rounding?Vi:0:this._options&Vi,this._options=e|i|n|r|s)},en.prototype.createLayout=function(t,e,i,n,r,s){if(this._layouts[e])throw new Error("A layout with the provided id is currently being processed.");var o=this._options&Ui,a={id:e,items:i,slots:null,width:o?0:n,height:o?r:0,_grid:t,_settings:this._options};if(!i.length)return a.slots=[],this._finalizeLayout(a),void s(a);if(this._processor)return a.slots=window.Float32Array?new Float32Array(2*i.length):new Array(2*i.length),this._processor.computeLayout(a,a._settings),this._finalizeLayout(a),void s(a);var l,u,c,h=new Float32Array(tn+2*i.length);for(h[Qi]=e,h[Zi]=a.width,h[Ji]=a.height,h[Ki]=a._settings,l=0,u=tn-1,c;l<i.length;l++)c=i[l],h[++u]=c._width+c._marginLeft+c._marginRight,h[++u]=c._height+c._marginTop+c._marginBottom;return this._layoutQueue.push(e),this._layouts[e]=a,this._layoutCallbacks[e]=s,this._layoutWorkerData[e]=h,this._sendToWorker(),this.cancelLayout.bind(this,e)},en.prototype.cancelLayout=function(t){var e=this._layouts[t];if(e&&(delete this._layouts[t],delete this._layoutCallbacks[t],this._layoutWorkerData[t])){delete this._layoutWorkerData[t];var i=this._layoutQueue.indexOf(t);i>-1&&this._layoutQueue.splice(i,1)}},en.prototype.destroy=function(){for(var t in this._layoutWorkers)this._workers.push(this._layoutWorkers[t]);Wi(this._workers),this._workers.length=0,this._layoutQueue.length=0,this._layouts={},this._layoutCallbacks={},this._layoutWorkers={},this._layoutWorkerData={}};var nn=0;function rn(t,e){var i=++nn,n=0,r=0,s=!1,o=function(e){s||(r&&(n-=e-r),r=e,n>0?Wt(i,o):(n=r=0,t()))};return function(a){if(!s){if(!(e<=0))return!0===a?(s=!0,n=r=0,o=void 0,void zt(i)):void(n<=0?(n=e,o(0)):n=e);!0!==a&&t()}}}var sn="[object HTMLCollection]",on="[object NodeList]";function an(t){var e=Object.prototype.toString.call(t);return e===sn||e===on}var ln="object",un="[object Object]",cn=Object.prototype.toString;function hn(t){return typeof t===ln&&cn.call(t)===un}function dn(){}function fn(t){return an(t)?Array.prototype.slice.call(t):Array.prototype.concat(t)}var pn="number",mn="string",gn="instant",_n=0;function yn(t,e){typeof t===mn&&(t=document.querySelector(t));var i=t.getRootNode?t.getRootNode({composed:!0})===document:document.body.contains(t);if(!i||t===document.documentElement)throw new Error("Container element must be an existing DOM element.");var r=vn(yn.defaultOptions,e);r.visibleStyles=Dn(r.visibleStyles),r.hiddenStyles=Dn(r.hiddenStyles),te(r.dragSort)||(r.dragSort=!!r.dragSort),this._id=Ni(),this._element=t,this._settings=r,this._isDestroyed=!1,this._items=[],this._layout={id:0,items:[],slots:[]},this._isLayoutFinished=!0,this._nextLayoutData=null,this._emitter=new N,this._onLayoutDataReceived=this._onLayoutDataReceived.bind(this),n[this._id]=this,Me(t,r.containerClass),xn(this,r.layoutOnResize),this.add(bn(t,r.items),{layout:!1}),r.layoutOnInit&&this.layout(!0)}function vn(t,e){var i=wn({},t);return e&&(i=wn(i,e)),e&&e.visibleStyles?i.visibleStyles=e.visibleStyles:t&&t.visibleStyles&&(i.visibleStyles=t.visibleStyles),e&&e.hiddenStyles?i.hiddenStyles=e.hiddenStyles:t&&t.hiddenStyles&&(i.hiddenStyles=t.hiddenStyles),i}function wn(t,e){var i,n,r,s=Object.keys(e),o=s.length;for(r=0;r<o;r++)n=s[r],i=hn(e[n]),hn(t[n])&&i?t[n]=wn(wn({},t[n]),e[n]):i?t[n]=wn({},e[n]):Array.isArray(e[n])?t[n]=e[n].slice(0):t[n]=e[n];return t}function bn(t,e){if("*"===e)return t.children;if(typeof e===mn){for(var i=[],n=t.children,r=0;r<n.length;r++)Ee(n[r],e)&&i.push(n[r]);return i}return Array.isArray(e)||an(e)?e:[]}function xn(t,e){typeof e!==pn&&(e=!0===e?0:-1),e>=0&&(t._resizeHandler=rn((function(){t.refreshItems().layout()}),e),window.addEventListener("resize",t._resizeHandler))}function Sn(t){t._resizeHandler&&(t._resizeHandler(!0),window.removeEventListener("resize",t._resizeHandler),t._resizeHandler=null)}function Dn(t){var e,i,n={},r=document.documentElement.style;for(e in t)t[e]&&(i=X(r,e),i&&(n[i]=t[e]));return n}function Tn(t){for(var e={},i=0;i<t.length;i++)e[t[i]._id]=i;return e}function An(t,e,i){var n=t[e._id],r=t[i._id];return n-r}yn.Item=Yi,yn.ItemLayout=Oi,yn.ItemVisibility=Li,yn.ItemMigrate=Ci,yn.ItemDrag=mi,yn.ItemDragRelease=Ri,yn.ItemDragPlaceholder=Mi,yn.Emitter=N,yn.Animator=Ai,yn.Dragger=K,yn.Packer=en,yn.AutoScroller=Te,yn.defaultPacker=new en(2),yn.defaultOptions={items:"*",showDuration:300,showEasing:"ease",hideDuration:300,hideEasing:"ease",visibleStyles:{opacity:"1",transform:"scale(1)"},hiddenStyles:{opacity:"0",transform:"scale(0.5)"},layout:{fillGaps:!1,horizontal:!1,alignRight:!1,alignBottom:!1,rounding:!1},layoutOnResize:150,layoutOnInit:!0,layoutDuration:300,layoutEasing:"ease",sortData:null,dragEnabled:!1,dragContainer:null,dragHandle:null,dragStartPredicate:{distance:0,delay:0},dragAxis:"xy",dragSort:!0,dragSortHeuristics:{sortInterval:100,minDragDistance:10,minBounceBackAngle:1},dragSortPredicate:{threshold:50,action:o,migrateAction:o},dragRelease:{duration:300,easing:"ease",useDragContainer:!0},dragCssProps:{touchAction:"none",userSelect:"none",userDrag:"none",tapHighlightColor:"rgba(0, 0, 0, 0)",touchCallout:"none",contentZooming:"none"},dragPlaceholder:{enabled:!1,createElement:null,onCreate:null,onRemove:null},dragAutoScroll:{targets:[],handle:null,threshold:50,safeZone:.2,speed:Te.smoothSpeed(1e3,2e3,2500),sortDuringScroll:!0,smoothStop:!1,onStart:null,onStop:null},containerClass:"muuri",itemClass:"muuri-item",itemVisibleClass:"muuri-item-shown",itemHiddenClass:"muuri-item-hidden",itemPositioningClass:"muuri-item-positioning",itemDraggingClass:"muuri-item-dragging",itemReleasingClass:"muuri-item-releasing",itemPlaceholderClass:"muuri-item-placeholder"},yn.prototype.on=function(t,e){return this._emitter.on(t,e),this},yn.prototype.off=function(t,e){return this._emitter.off(t,e),this},yn.prototype.getElement=function(){return this._element},yn.prototype.getItem=function(t){if(this._isDestroyed||!t&&0!==t)return null;if(typeof t===pn)return this._items[t>-1?t:this._items.length+t]||null;if(t instanceof Yi)return t._gridId===this._id?t:null;if(r){var e=r.get(t);return e&&e._gridId===this._id?e:null}for(var i=0;i<this._items.length;i++)if(this._items[i]._element===t)return this._items[i];return null},yn.prototype.getItems=function(t){if(this._isDestroyed||void 0===t)return this._items.slice(0);var e,i,n=[];if(Array.isArray(t)||an(t))for(e=0;e<t.length;e++)i=this.getItem(t[e]),i&&n.push(i);else i=this.getItem(t),i&&n.push(i);return n},yn.prototype.refreshItems=function(t,e){if(this._isDestroyed)return this;var i,n,r,s,o=t||this._items;if(!0===e)for(s=[],i=0;i<o.length;i++)n=o[i],n.isVisible()||n.isHiding()||(r=n.getElement().style,r.visibility="hidden",r.display="",s.push(r));for(i=0;i<o.length;i++)o[i]._refreshDimensions(e);if(!0===e){for(i=0;i<s.length;i++)r=s[i],r.visibility="",r.display="none";s.length=0}return this},yn.prototype.refreshSortData=function(t){if(this._isDestroyed)return this;for(var e=t||this._items,i=0;i<e.length;i++)e[i]._refreshSortData();return this},yn.prototype.synchronize=function(){if(this._isDestroyed)return this;var t,e,i=this._items;if(!i.length)return this;for(var n=0;n<i.length;n++)e=i[n]._element,e.parentNode===this._element&&(t=t||document.createDocumentFragment(),t.appendChild(e));return t?(this._element.appendChild(t),this._emit(a),this):this},yn.prototype.layout=function(t,e){if(this._isDestroyed)return this;var i=this._nextLayoutData;i&&te(i.cancel)&&i.cancel(),_n=_n%I+1;var n=_n;this._nextLayoutData={id:n,instant:t,onFinish:e,cancel:null};for(var r=this._items,s=[],o=0;o<r.length;o++)r[o]._isActive&&s.push(r[o]);this._refreshDimensions();var a,l=this._width-this._borderLeft-this._borderRight,u=this._height-this._borderTop-this._borderBottom,c=this._settings.layout;return te(c)?a=c(this,n,s,l,u,this._onLayoutDataReceived):(yn.defaultPacker.setOptions(c),a=yn.defaultPacker.createLayout(this,n,s,l,u,this._onLayoutDataReceived)),te(a)&&this._nextLayoutData&&this._nextLayoutData.id===n&&(this._nextLayoutData.cancel=a),this},yn.prototype.add=function(t,e){if(this._isDestroyed||!t)return[];var i=fn(t);if(!i.length)return i;var n,r,s,o,a=e||{},l=a.layout?a.layout:void 0===a.layout,u=this._items,c=!1;for(o=0;o<i.length;o++)r=i[o],r.parentNode!==this._element&&(n=n||document.createDocumentFragment(),n.appendChild(r));for(n&&this._element.appendChild(n),o=0;o<i.length;o++)r=i[o],s=i[o]=new Yi(this,r,a.active),s._isActive&&(c=!0,s._layout._skipNextAnimation=!0);for(o=0;o<i.length;o++)s=i[o],s._refreshDimensions(),s._refreshSortData();return Oe(u,i,a.index),this._hasListeners(h)&&this._emit(h,i.slice(0)),c&&l&&this.layout(l===gn,te(l)?l:void 0),i},yn.prototype.remove=function(t,e){if(this._isDestroyed||!t.length)return[];var i,n,r,s=e||{},o=s.layout?s.layout:void 0===s.layout,a=!1,l=this.getItems(),u=[],c=[];for(r=0;r<t.length;r++)n=t[r],n._isDestroyed||(i=this._items.indexOf(n),-1!==i&&(n._isActive&&(a=!0),u.push(n),c.push(l.indexOf(n)),n._destroy(s.removeElements),this._items.splice(i,1)));return this._hasListeners(d)&&this._emit(d,u.slice(0),c),a&&o&&this.layout(o===gn,te(o)?o:void 0),u},yn.prototype.show=function(t,e){return!this._isDestroyed&&t.length&&this._setItemsVisibility(t,!0,e),this},yn.prototype.hide=function(t,e){return!this._isDestroyed&&t.length&&this._setItemsVisibility(t,!1,e),this},yn.prototype.filter=function(t,e){if(this._isDestroyed||!this._items.length)return this;var i,n,r=[],s=[],o=typeof t===mn,a=te(t),l=e||{},u=!0===l.instant,c=l.syncWithLayout,h=l.layout?l.layout:void 0===l.layout,d=te(l.onFinish)?l.onFinish:null,f=-1,p=dn;if(d&&(p=function(){++f&&d(r.slice(0),s.slice(0))}),a||o)for(n=0;n<this._items.length;n++)i=this._items[n],(a?t(i):Ee(i._element,t))?r.push(i):s.push(i);return r.length?this.show(r,{instant:u,syncWithLayout:c,onFinish:p,layout:!1}):p(),s.length?this.hide(s,{instant:u,syncWithLayout:c,onFinish:p,layout:!1}):p(),(r.length||s.length)&&(this._hasListeners(_)&&this._emit(_,r.slice(0),s.slice(0)),h&&this.layout(h===gn,te(h)?h:void 0)),this},yn.prototype.sort=function(){var t,e,i,n;function r(r,s){for(var o,a,l,u,c=0,h=0;h<t.length;h++)if(o=t[h][0],a=t[h][1],l=(r._sortData?r:r._refreshSortData())._sortData[o],u=(s._sortData?s:s._refreshSortData())._sortData[o],c="desc"===a||!a&&e?u<l?-1:u>l?1:0:l<u?-1:l>u?1:0,c)return c;return c||(n||(n=Tn(i)),c=e?An(n,s,r):An(n,r,s)),c}function s(r,s){var o=e?-t(r,s):t(r,s);return o||(n||(n=Tn(i)),o=e?An(n,s,r):An(n,r,s)),o}return function(o,a){if(this._isDestroyed||this._items.length<2)return this;var l=this._items,u=a||{},c=u.layout?u.layout:void 0===u.layout;if(e=!!u.descending,i=l.slice(0),n=null,te(o))t=o,l.sort(s);else if(typeof o===mn)t=o.trim().split(" ").filter((function(t){return t})).map((function(t){return t.split(":")})),l.sort(r);else{if(!Array.isArray(o))throw t=e=i=n=null,new Error("Invalid comparer argument provided.");l.length=0,l.push.apply(l,o)}return this._hasListeners(y)&&this._emit(y,l.slice(0),i),c&&this.layout(c===gn,te(c)?c:void 0),t=e=i=n=null,this}}(),yn.prototype.move=function(t,e,i){if(this._isDestroyed||this._items.length<2)return this;var n,r,a=this._items,l=i||{},u=l.layout?l.layout:void 0===l.layout,c=l.action===s,h=c?s:o,d=this.getItem(t),f=this.getItem(e);return d&&f&&d!==f&&(n=a.indexOf(d),r=a.indexOf(f),c?Ie(a,n,r):Le(a,n,r),this._hasListeners(v)&&this._emit(v,{item:d,fromIndex:n,toIndex:r,action:h}),u&&this.layout(u===gn,te(u)?u:void 0)),this},yn.prototype.send=function(t,e,i,n){if(this._isDestroyed||e._isDestroyed||this===e)return this;if(t=this.getItem(t),!t)return this;var r=n||{},s=r.appendTo||document.body,o=r.layoutSender?r.layoutSender:void 0===r.layoutSender,a=r.layoutReceiver?r.layoutReceiver:void 0===r.layoutReceiver;return t._migrate.start(e,i,s),t._migrate._isActive&&t._isActive&&(o&&this.layout(o===gn,te(o)?o:void 0),a&&e.layout(a===gn,te(a)?a:void 0)),this},yn.prototype.destroy=function(t){if(this._isDestroyed)return this;var e,i,r=this._element,s=this._items.slice(0),o=this._layout&&this._layout.styles||{};for(Sn(this),e=0;e<s.length;e++)s[e]._destroy(t);for(i in this._items.length=0,ui(r,this._settings.containerClass),o)r.style[i]="";return this._emit(P),this._emitter.destroy(),delete n[this._id],this._isDestroyed=!0,this},yn.prototype._emit=function(){this._isDestroyed||this._emitter.emit.apply(this._emitter,arguments)},yn.prototype._hasListeners=function(t){return!this._isDestroyed&&this._emitter.countListeners(t)>0},yn.prototype._updateBoundingRect=function(){var t=this._element,e=t.getBoundingClientRect();this._width=e.width,this._height=e.height,this._left=e.left,this._top=e.top,this._right=e.right,this._bottom=e.bottom},yn.prototype._updateBorders=function(t,e,i,n){var r=this._element;t&&(this._borderLeft=ne(r,"border-left-width")),e&&(this._borderRight=ne(r,"border-right-width")),i&&(this._borderTop=ne(r,"border-top-width")),n&&(this._borderBottom=ne(r,"border-bottom-width"))},yn.prototype._refreshDimensions=function(){this._updateBoundingRect(),this._updateBorders(1,1,1,1),this._boxSizing=ie(this._element,"box-sizing")},yn.prototype._onLayoutDataReceived=function(){var t=[];return function(e){if(!this._isDestroyed&&this._nextLayoutData&&this._nextLayoutData.id===e.id){var i,n,r,s,o=this,a=this._nextLayoutData.instant,h=this._nextLayoutData.onFinish,d=e.items.length,f=d;for(this._nextLayoutData=null,!this._isLayoutFinished&&this._hasListeners(c)&&this._emit(c,this._layout.items.slice(0)),this._layout=e,t.length=0,s=0;s<d;s++)i=e.items[s],i?(n=e.slots[2*s],r=e.slots[2*s+1],i._canSkipLayout(n,r)?--f:(i._left=n,i._top=r,i.isActive()&&!i.isDragging()?t.push(i):--f)):--f;if(e.styles&&Si(this._element,e.styles),!this._hasListeners(l)||(this._emit(l,e.items.slice(0),!0===a),this._layout.id===e.id)){var p=function(){if(!(--f>0)){var t=o._layout.id!==e.id,i=te(a)?a:h;t||(o._isLayoutFinished=!0),te(i)&&i(e.items.slice(0),t),!t&&o._hasListeners(u)&&o._emit(u,e.items.slice(0))}};if(!t.length)return p(),this;for(this._isLayoutFinished=!1,s=0;s<t.length;s++){if(this._layout.id!==e.id)break;t[s]._layout.start(!0===a,p)}return this._layout.id===e.id&&(t.length=0),this}}}}(),yn.prototype._setItemsVisibility=function(t,e,i){var n,r,s=this,o=t.slice(0),a=i||{},u=!0===a.instant,c=a.onFinish,h=a.layout?a.layout:void 0===a.layout,d=o.length,_=e?f:m,y=e?p:g,v=e?"show":"hide",w=!1,b=[],x=[];if(d){for(r=0;r<o.length;r++)n=o[r],(e&&!n._isActive||!e&&n._isActive)&&(w=!0),n._layout._skipNextAnimation=!(!e||n._isActive),e&&n._visibility._isHidden&&x.push(n),e?n._addToLayout():n._removeFromLayout();x.length&&(this.refreshItems(x,!0),x.length=0),w&&!1!==a.syncWithLayout?this.on(l,S):S(),w&&h&&this.layout(h===gn,te(h)?h:void 0)}else te(c)&&c(o);function S(){for(w&&!1!==a.syncWithLayout&&s.off(l,S),s._hasListeners(_)&&s._emit(_,o.slice(0)),r=0;r<o.length;r++)o[r]._gridId===s._id?o[r]._visibility[v](u,(function(t,e){t||b.push(e),--d<1&&(te(c)&&c(b.slice(0)),s._hasListeners(y)&&s._emit(y,b.slice(0)))})):--d<1&&(te(c)&&c(b.slice(0)),s._hasListeners(y)&&s._emit(y,b.slice(0)))}};const kn=yn},9037:(t,e,i)=>{var n=i(5859);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var r=i(4825).A;r("400a75d9",n,!0,{sourceMap:!1,shadowMode:!1})},1361:(t,e,i)=>{"use strict";var n=i(866),r=i(3174),s=TypeError;t.exports=function(t){if(n(t))return t;throw new s(r(t)+" is not a constructor")}},2937:(t,e,i)=>{"use strict";var n=i(3243).has;t.exports=function(t){return n(t),t}},286:(t,e,i)=>{"use strict";var n=i(4578),r=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new r("Incorrect invocation")}},8732:t=>{"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},1617:(t,e,i)=>{"use strict";var n=i(9117),r=i(1025),s=i(8689),o=n.ArrayBuffer,a=n.TypeError;t.exports=o&&r(o.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==s(t))throw new a("ArrayBuffer expected");return t.byteLength}},6821:(t,e,i)=>{"use strict";var n=i(9117),r=i(5691),s=i(1617),o=n.ArrayBuffer,a=o&&o.prototype,l=a&&r(a.slice);t.exports=function(t){if(0!==s(t))return!1;if(!l)return!1;try{return l(t,0,0),!1}catch(e){return!0}}},2676:(t,e,i)=>{"use strict";var n=i(6821),r=TypeError;t.exports=function(t){if(n(t))throw new r("ArrayBuffer is detached");return t}},5677:(t,e,i)=>{"use strict";var n=i(9117),r=i(6881),s=i(1025),o=i(4579),a=i(2676),l=i(1617),u=i(8850),c=i(9059),h=n.structuredClone,d=n.ArrayBuffer,f=n.DataView,p=Math.min,m=d.prototype,g=f.prototype,_=r(m.slice),y=s(m,"resizable","get"),v=s(m,"maxByteLength","get"),w=r(g.getInt8),b=r(g.setInt8);t.exports=(c||u)&&function(t,e,i){var n,r=l(t),s=void 0===e?r:o(e),m=!y||!y(t);if(a(t),c&&(t=h(t,{transfer:[t]}),r===s&&(i||m)))return t;if(r>=s&&(!i||m))n=_(t,0,s);else{var g=i&&!m&&v?{maxByteLength:v(t)}:void 0;n=new d(s,g);for(var x=new f(t),S=new f(n),D=p(s,r),T=0;T<D;T++)b(S,T,w(x,T))}return c||u(t),n}},7223:(t,e,i)=>{"use strict";var n,r,s,o=i(8732),a=i(6893),l=i(9117),u=i(4188),c=i(831),h=i(4418),d=i(5438),f=i(3174),p=i(8088),m=i(7509),g=i(997),_=i(4578),y=i(1786),v=i(5054),w=i(4282),b=i(6209),x=i(3086),S=x.enforce,D=x.get,T=l.Int8Array,A=T&&T.prototype,k=l.Uint8ClampedArray,E=k&&k.prototype,M=T&&y(T),R=A&&y(A),P=Object.prototype,O=l.TypeError,C=w("toStringTag"),L=b("TYPED_ARRAY_TAG"),I="TypedArrayConstructor",N=o&&!!v&&"Opera"!==d(l.opera),Y=!1,q={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},H=function(t){if(!c(t))return!1;var e=d(t);return"DataView"===e||h(q,e)||h(F,e)},B=function(t){var e=y(t);if(c(e)){var i=D(e);return i&&h(i,I)?i[I]:B(e)}},X=function(t){if(!c(t))return!1;var e=d(t);return h(q,e)||h(F,e)},W=function(t){if(X(t))return t;throw new O("Target is not a typed array")},z=function(t){if(u(t)&&(!v||_(M,t)))return t;throw new O(f(t)+" is not a typed array constructor")},j=function(t,e,i,n){if(a){if(i)for(var r in q){var s=l[r];if(s&&h(s.prototype,t))try{delete s.prototype[t]}catch(o){try{s.prototype[t]=e}catch(u){}}}R[t]&&!i||m(R,t,i?e:N&&A[t]||e,n)}},U=function(t,e,i){var n,r;if(a){if(v){if(i)for(n in q)if(r=l[n],r&&h(r,t))try{delete r[t]}catch(s){}if(M[t]&&!i)return;try{return m(M,t,i?e:N&&M[t]||e)}catch(s){}}for(n in q)r=l[n],!r||r[t]&&!i||m(r,t,e)}};for(n in q)r=l[n],s=r&&r.prototype,s?S(s)[I]=r:N=!1;for(n in F)r=l[n],s=r&&r.prototype,s&&(S(s)[I]=r);if((!N||!u(M)||M===Function.prototype)&&(M=function(){throw new O("Incorrect invocation")},N))for(n in q)l[n]&&v(l[n],M);if((!N||!R||R===P)&&(R=M.prototype,N))for(n in q)l[n]&&v(l[n].prototype,R);if(N&&y(E)!==R&&v(E,R),a&&!h(R,C))for(n in Y=!0,g(R,C,{configurable:!0,get:function(){return c(this)?this[L]:void 0}}),q)l[n]&&p(l[n],L,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:Y&&L,aTypedArray:W,aTypedArrayConstructor:z,exportTypedArrayMethod:j,exportTypedArrayStaticMethod:U,getTypedArrayConstructor:B,isView:H,isTypedArray:X,TypedArray:M,TypedArrayPrototype:R}},8633:(t,e,i)=>{"use strict";var n=i(9117),r=i(6881),s=i(6893),o=i(8732),a=i(2735),l=i(8088),u=i(997),c=i(4320),h=i(5234),d=i(286),f=i(6744),p=i(7611),m=i(4579),g=i(2420),_=i(6103),y=i(1786),v=i(5054),w=i(8150),b=i(7825),x=i(4166),S=i(8657),D=i(3754),T=i(3086),A=a.PROPER,k=a.CONFIGURABLE,E="ArrayBuffer",M="DataView",R="prototype",P="Wrong length",O="Wrong index",C=T.getterFor(E),L=T.getterFor(M),I=T.set,N=n[E],Y=N,q=Y&&Y[R],F=n[M],H=F&&F[R],B=Object.prototype,X=n.Array,W=n.RangeError,z=r(w),j=r([].reverse),U=_.pack,G=_.unpack,$=function(t){return[255&t]},V=function(t){return[255&t,t>>8&255]},Q=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Z=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},J=function(t){return U(g(t),23,4)},K=function(t){return U(t,52,8)},tt=function(t,e,i){u(t[R],e,{configurable:!0,get:function(){return i(this)[e]}})},et=function(t,e,i,n){var r=L(t),s=m(i),o=!!n;if(s+e>r.byteLength)throw new W(O);var a=r.bytes,l=s+r.byteOffset,u=b(a,l,l+e);return o?u:j(u)},it=function(t,e,i,n,r,s){var o=L(t),a=m(i),l=n(+r),u=!!s;if(a+e>o.byteLength)throw new W(O);for(var c=o.bytes,h=a+o.byteOffset,d=0;d<e;d++)c[h+d]=l[u?d:e-d-1]};if(o){var nt=A&&N.name!==E;h((function(){N(1)}))&&h((function(){new N(-1)}))&&!h((function(){return new N,new N(1.5),new N(NaN),1!==N.length||nt&&!k}))?nt&&k&&l(N,"name",E):(Y=function(t){return d(this,q),x(new N(m(t)),this,Y)},Y[R]=q,q.constructor=Y,S(Y,N)),v&&y(H)!==B&&v(H,B);var rt=new F(new Y(2)),st=r(H.setInt8);rt.setInt8(0,2147483648),rt.setInt8(1,2147483649),!rt.getInt8(0)&&rt.getInt8(1)||c(H,{setInt8:function(t,e){st(this,t,e<<24>>24)},setUint8:function(t,e){st(this,t,e<<24>>24)}},{unsafe:!0})}else Y=function(t){d(this,q);var e=m(t);I(this,{type:E,bytes:z(X(e),0),byteLength:e}),s||(this.byteLength=e,this.detached=!1)},q=Y[R],F=function(t,e,i){d(this,H),d(t,q);var n=C(t),r=n.byteLength,o=f(e);if(o<0||o>r)throw new W("Wrong offset");if(i=void 0===i?r-o:p(i),o+i>r)throw new W(P);I(this,{type:M,buffer:t,byteLength:i,byteOffset:o,bytes:n.bytes}),s||(this.buffer=t,this.byteLength=i,this.byteOffset=o)},H=F[R],s&&(tt(Y,"byteLength",C),tt(F,"buffer",L),tt(F,"byteLength",L),tt(F,"byteOffset",L)),c(H,{getInt8:function(t){return et(this,1,t)[0]<<24>>24},getUint8:function(t){return et(this,1,t)[0]},getInt16:function(t){var e=et(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=et(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return Z(et(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return Z(et(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return G(et(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return G(et(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){it(this,1,t,$,e)},setUint8:function(t,e){it(this,1,t,$,e)},setInt16:function(t,e){it(this,2,t,V,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){it(this,2,t,V,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){it(this,4,t,Q,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){it(this,4,t,Q,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){it(this,4,t,J,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){it(this,8,t,K,e,arguments.length>2&&arguments[2])}});D(Y,E),D(F,M),t.exports={ArrayBuffer:Y,DataView:F}},8150:(t,e,i)=>{"use strict";var n=i(3628),r=i(675),s=i(9389);t.exports=function(t){var e=n(this),i=s(e),o=arguments.length,a=r(o>1?arguments[1]:void 0,i),l=o>2?arguments[2]:void 0,u=void 0===l?i:r(l,i);while(u>a)e[a++]=t;return e}},6759:(t,e,i)=>{"use strict";var n=i(9389);t.exports=function(t,e,i){var r=0,s=arguments.length>2?i:n(e),o=new t(s);while(s>r)o[r]=e[r++];return o}},710:(t,e,i)=>{"use strict";var n=i(5821),r=i(7568),s=i(3628),o=i(9389),a=function(t){var e=1===t;return function(i,a,l){var u,c,h=s(i),d=r(h),f=o(d),p=n(a,l);while(f-- >0)if(u=d[f],c=p(u,f,h),c)switch(t){case 0:return u;case 1:return f}return e?-1:void 0}};t.exports={findLast:a(0),findLastIndex:a(1)}},4104:(t,e,i)=>{"use strict";var n=i(5821),r=i(6881),s=i(7568),o=i(3628),a=i(9389),l=i(5022),u=r([].push),c=function(t){var e=1===t,i=2===t,r=3===t,c=4===t,h=6===t,d=7===t,f=5===t||h;return function(p,m,g,_){for(var y,v,w=o(p),b=s(w),x=a(b),S=n(m,g),D=0,T=_||l,A=e?T(p,x):i||d?T(p,0):void 0;x>D;D++)if((f||D in b)&&(y=b[D],v=S(y,D,w),t))if(e)A[D]=v;else if(v)switch(t){case 3:return!0;case 5:return y;case 6:return D;case 2:u(A,y)}else switch(t){case 4:return!1;case 7:u(A,y)}return h?-1:r||c?c:A}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},7825:(t,e,i)=>{"use strict";var n=i(6881);t.exports=n([].slice)},9295:(t,e,i)=>{"use strict";var n=i(7825),r=Math.floor,s=function(t,e){var i=t.length;if(i<8){var o,a,l=1;while(l<i){a=l,o=t[l];while(a&&e(t[a-1],o)>0)t[a]=t[--a];a!==l++&&(t[a]=o)}}else{var u=r(i/2),c=s(n(t,0,u),e),h=s(n(t,u),e),d=c.length,f=h.length,p=0,m=0;while(p<d||m<f)t[p+m]=p<d&&m<f?e(c[p],h[m])<=0?c[p++]:h[m++]:p<d?c[p++]:h[m++]}return t};t.exports=s},9980:(t,e,i)=>{"use strict";var n=i(6719),r=i(866),s=i(831),o=i(4282),a=o("species"),l=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,r(e)&&(e===l||n(e.prototype))?e=void 0:s(e)&&(e=e[a],null===e&&(e=void 0))),void 0===e?l:e}},5022:(t,e,i)=>{"use strict";var n=i(9980);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},1433:(t,e,i)=>{"use strict";var n=i(9389);t.exports=function(t,e){for(var i=n(t),r=new e(i),s=0;s<i;s++)r[s]=t[i-s-1];return r}},6803:(t,e,i)=>{"use strict";var n=i(9389),r=i(6744),s=RangeError;t.exports=function(t,e,i,o){var a=n(t),l=r(i),u=l<0?a+l:l;if(u>=a||u<0)throw new s("Incorrect index");for(var c=new e(a),h=0;h<a;h++)c[h]=h===u?o:t[h];return c}},7283:(t,e,i)=>{"use strict";var n=i(4282),r=n("iterator"),s=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){s=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(l){}t.exports=function(t,e){try{if(!e&&!s)return!1}catch(l){return!1}var i=!1;try{var n={};n[r]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(l){}return i}},680:(t,e,i)=>{"use strict";var n=i(5234);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},997:(t,e,i)=>{"use strict";var n=i(4530),r=i(4466);t.exports=function(t,e,i){return i.get&&n(i.get,e,{getter:!0}),i.set&&n(i.set,e,{setter:!0}),r.f(t,e,i)}},4320:(t,e,i)=>{"use strict";var n=i(7509);t.exports=function(t,e,i){for(var r in e)n(t,r,e[r],i);return t}},8850:(t,e,i)=>{"use strict";var n,r,s,o,a=i(9117),l=i(9822),u=i(9059),c=a.structuredClone,h=a.ArrayBuffer,d=a.MessageChannel,f=!1;if(u)f=function(t){c(t,{transfer:[t]})};else if(h)try{d||(n=l("worker_threads"),n&&(d=n.MessageChannel)),d&&(r=new d,s=new h(2),o=function(t){r.port1.postMessage(null,[t])},2===s.byteLength&&(o(s),0===s.byteLength&&(f=o)))}catch(p){}t.exports=f},2222:(t,e,i)=>{"use strict";var n=i(8060),r=n.match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},4598:(t,e,i)=>{"use strict";var n=i(8060);t.exports=/MSIE|Trident/.test(n)},7340:(t,e,i)=>{"use strict";var n=i(8060),r=n.match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},5821:(t,e,i)=>{"use strict";var n=i(5691),r=i(4977),s=i(9055),o=n(n.bind);t.exports=function(t,e){return r(t),void 0===e?t:s?o(t,e):function(){return t.apply(e,arguments)}}},5691:(t,e,i)=>{"use strict";var n=i(8689),r=i(6881);t.exports=function(t){if("Function"===n(t))return r(t)}},9822:(t,e,i)=>{"use strict";var n=i(9117),r=i(3940);t.exports=function(t){if(r){try{return n.process.getBuiltinModule(t)}catch(e){}try{return Function('return require("'+t+'")')()}catch(e){}}}},6002:t=>{"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},9874:(t,e,i)=>{"use strict";var n=i(5438),r=i(2913),s=i(4318),o=i(9164),a=i(4282),l=a("iterator");t.exports=function(t){if(!s(t))return r(t,l)||r(t,"@@iterator")||o[n(t)]}},2350:(t,e,i)=>{"use strict";var n=i(9944),r=i(4977),s=i(3770),o=i(3174),a=i(9874),l=TypeError;t.exports=function(t,e){var i=arguments.length<2?a(t):e;if(r(i))return s(n(i,t));throw new l(o(t)+" is not iterable")}},5558:(t,e,i)=>{"use strict";var n=i(4977),r=i(3770),s=i(9944),o=i(6744),a=i(6002),l="Invalid size",u=RangeError,c=TypeError,h=Math.max,d=function(t,e){this.set=t,this.size=h(e,0),this.has=n(t.has),this.keys=n(t.keys)};d.prototype={getIterator:function(){return a(r(s(this.keys,this.set)))},includes:function(t){return s(this.has,this.set,t)}},t.exports=function(t){r(t);var e=+t.size;if(e!==e)throw new c(l);var i=o(e);if(i<0)throw new u(l);return new d(t,i)}},6103:t=>{"use strict";var e=Array,i=Math.abs,n=Math.pow,r=Math.floor,s=Math.log,o=Math.LN2,a=function(t,a,l){var u,c,h,d=e(l),f=8*l-a-1,p=(1<<f)-1,m=p>>1,g=23===a?n(2,-24)-n(2,-77):0,_=t<0||0===t&&1/t<0?1:0,y=0;t=i(t),t!==t||t===1/0?(c=t!==t?1:0,u=p):(u=r(s(t)/o),h=n(2,-u),t*h<1&&(u--,h*=2),t+=u+m>=1?g/h:g*n(2,1-m),t*h>=2&&(u++,h/=2),u+m>=p?(c=0,u=p):u+m>=1?(c=(t*h-1)*n(2,a),u+=m):(c=t*n(2,m-1)*n(2,a),u=0));while(a>=8)d[y++]=255&c,c/=256,a-=8;u=u<<a|c,f+=a;while(f>0)d[y++]=255&u,u/=256,f-=8;return d[y-1]|=128*_,d},l=function(t,e){var i,r=t.length,s=8*r-e-1,o=(1<<s)-1,a=o>>1,l=s-7,u=r-1,c=t[u--],h=127&c;c>>=7;while(l>0)h=256*h+t[u--],l-=8;i=h&(1<<-l)-1,h>>=-l,l+=e;while(l>0)i=256*i+t[u--],l-=8;if(0===h)h=1-a;else{if(h===o)return i?NaN:c?-1/0:1/0;i+=n(2,e),h-=a}return(c?-1:1)*i*n(2,h-e)};t.exports={pack:a,unpack:l}},8146:(t,e,i)=>{"use strict";var n=i(4282),r=i(9164),s=n("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[s]===t)}},5448:(t,e,i)=>{"use strict";var n=i(5438);t.exports=function(t){var e=n(t);return"BigInt64Array"===e||"BigUint64Array"===e}},866:(t,e,i)=>{"use strict";var n=i(6881),r=i(5234),s=i(4188),o=i(5438),a=i(5604),l=i(3029),u=function(){},c=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=n(h.exec),f=!h.test(u),p=function(t){if(!s(t))return!1;try{return c(u,[],t),!0}catch(e){return!1}},m=function(t){if(!s(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!d(h,l(t))}catch(e){return!0}};m.sham=!0,t.exports=!c||r((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?m:p},4752:(t,e,i)=>{"use strict";var n=i(831),r=Math.floor;t.exports=Number.isInteger||function(t){return!n(t)&&isFinite(t)&&r(t)===t}},473:(t,e,i)=>{"use strict";var n=i(831),r=i(8689),s=i(4282),o=s("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"===r(t))}},7032:(t,e,i)=>{"use strict";var n=i(9944);t.exports=function(t,e,i){var r,s,o=i?t:t.iterator,a=t.next;while(!(r=n(a,o)).done)if(s=e(r.value),void 0!==s)return s}},8500:(t,e,i)=>{"use strict";var n=i(9944),r=i(3770),s=i(2913);t.exports=function(t,e,i){var o,a;r(t);try{if(o=s(t,"return"),!o){if("throw"===e)throw i;return i}o=n(o,t)}catch(l){a=!0,o=l}if("throw"===e)throw i;if(a)throw o;return r(o),i}},9164:t=>{"use strict";t.exports={}},2871:(t,e,i)=>{"use strict";var n=i(579),r=Math.abs,s=2220446049250313e-31,o=1/s,a=function(t){return t+o-o};t.exports=function(t,e,i,o){var l=+t,u=r(l),c=n(l);if(u<o)return c*a(u/o/e)*o*e;var h=(1+e/s)*u,d=h-(h-u);return d>i||d!==d?c*(1/0):c*d}},2420:(t,e,i)=>{"use strict";var n=i(2871),r=1.1920928955078125e-7,s=34028234663852886e22,o=11754943508222875e-54;t.exports=Math.fround||function(t){return n(t,r,s,o)}},579:t=>{"use strict";t.exports=Math.sign||function(t){var e=+t;return 0===e||e!==e?e:e<0?-1:1}},1786:(t,e,i)=>{"use strict";var n=i(4418),r=i(4188),s=i(3628),o=i(168),a=i(680),l=o("IE_PROTO"),u=Object,c=u.prototype;t.exports=a?u.getPrototypeOf:function(t){var e=s(t);if(n(e,l))return e[l];var i=e.constructor;return r(i)&&e instanceof i?i.prototype:e instanceof u?c:null}},3113:(t,e,i)=>{"use strict";var n=i(9944),r=i(4418),s=i(4578),o=i(4932),a=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in a||r(t,"flags")||!s(a,t)?e:n(o,t)}},679:(t,e,i)=>{"use strict";var n=i(3243),r=i(9800),s=n.Set,o=n.add;t.exports=function(t){var e=new s;return r(t,(function(t){o(e,t)})),e}},7059:(t,e,i)=>{"use strict";var n=i(2937),r=i(3243),s=i(679),o=i(7173),a=i(5558),l=i(9800),u=i(7032),c=r.has,h=r.remove;t.exports=function(t){var e=n(this),i=a(t),r=s(e);return o(e)<=i.size?l(e,(function(t){i.includes(t)&&h(r,t)})):u(i.getIterator(),(function(t){c(e,t)&&h(r,t)})),r}},3243:(t,e,i)=>{"use strict";var n=i(6881),r=Set.prototype;t.exports={Set,add:n(r.add),has:n(r.has),remove:n(r["delete"]),proto:r}},3721:(t,e,i)=>{"use strict";var n=i(2937),r=i(3243),s=i(7173),o=i(5558),a=i(9800),l=i(7032),u=r.Set,c=r.add,h=r.has;t.exports=function(t){var e=n(this),i=o(t),r=new u;return s(e)>i.size?l(i.getIterator(),(function(t){h(e,t)&&c(r,t)})):a(e,(function(t){i.includes(t)&&c(r,t)})),r}},9978:(t,e,i)=>{"use strict";var n=i(2937),r=i(3243).has,s=i(7173),o=i(5558),a=i(9800),l=i(7032),u=i(8500);t.exports=function(t){var e=n(this),i=o(t);if(s(e)<=i.size)return!1!==a(e,(function(t){if(i.includes(t))return!1}),!0);var c=i.getIterator();return!1!==l(c,(function(t){if(r(e,t))return u(c,"normal",!1)}))}},4361:(t,e,i)=>{"use strict";var n=i(2937),r=i(7173),s=i(9800),o=i(5558);t.exports=function(t){var e=n(this),i=o(t);return!(r(e)>i.size)&&!1!==s(e,(function(t){if(!i.includes(t))return!1}),!0)}},7528:(t,e,i)=>{"use strict";var n=i(2937),r=i(3243).has,s=i(7173),o=i(5558),a=i(7032),l=i(8500);t.exports=function(t){var e=n(this),i=o(t);if(s(e)<i.size)return!1;var u=i.getIterator();return!1!==a(u,(function(t){if(!r(e,t))return l(u,"normal",!1)}))}},9800:(t,e,i)=>{"use strict";var n=i(6881),r=i(7032),s=i(3243),o=s.Set,a=s.proto,l=n(a.forEach),u=n(a.keys),c=u(new o).next;t.exports=function(t,e,i){return i?r({iterator:u(t),next:c},e):l(t,e)}},4471:(t,e,i)=>{"use strict";var n=i(5604),r=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};t.exports=function(t){var e=n("Set");try{(new e)[t](r(0));try{return(new e)[t](r(-1)),!1}catch(i){return!0}}catch(s){return!1}}},7173:(t,e,i)=>{"use strict";var n=i(1025),r=i(3243);t.exports=n(r.proto,"size","get")||function(t){return t.size}},3900:(t,e,i)=>{"use strict";var n=i(5604),r=i(997),s=i(4282),o=i(6893),a=s("species");t.exports=function(t){var e=n(t);o&&e&&!e[a]&&r(e,a,{configurable:!0,get:function(){return this}})}},1657:(t,e,i)=>{"use strict";var n=i(2937),r=i(3243),s=i(679),o=i(5558),a=i(7032),l=r.add,u=r.has,c=r.remove;t.exports=function(t){var e=n(this),i=o(t).getIterator(),r=s(e);return a(i,(function(t){u(e,t)?c(r,t):l(r,t)})),r}},3754:(t,e,i)=>{"use strict";var n=i(4466).f,r=i(4418),s=i(4282),o=s("toStringTag");t.exports=function(t,e,i){t&&!i&&(t=t.prototype),t&&!r(t,o)&&n(t,o,{configurable:!0,value:e})}},5077:(t,e,i)=>{"use strict";var n=i(2937),r=i(3243).add,s=i(679),o=i(5558),a=i(7032);t.exports=function(t){var e=n(this),i=o(t).getIterator(),l=s(e);return a(i,(function(t){r(l,t)})),l}},9059:(t,e,i)=>{"use strict";var n=i(9117),r=i(5234),s=i(3008),o=i(1078),a=n.structuredClone;t.exports=!!a&&!r((function(){if("DENO"===o&&s>92||"NODE"===o&&s>94||"BROWSER"===o&&s>97)return!1;var t=new ArrayBuffer(8),e=a(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength}))},7429:(t,e,i)=>{"use strict";var n=i(290),r=TypeError;t.exports=function(t){var e=n(t,"number");if("number"==typeof e)throw new r("Can't convert number to bigint");return BigInt(e)}},4579:(t,e,i)=>{"use strict";var n=i(6744),r=i(7611),s=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=n(t),i=r(e);if(e!==i)throw new s("Wrong length or index");return i}},7584:(t,e,i)=>{"use strict";var n=i(939),r=RangeError;t.exports=function(t,e){var i=n(t);if(i%e)throw new r("Wrong offset");return i}},939:(t,e,i)=>{"use strict";var n=i(6744),r=RangeError;t.exports=function(t){var e=n(t);if(e<0)throw new r("The argument can't be less than 0");return e}},4108:t=>{"use strict";var e=Math.round;t.exports=function(t){var i=e(t);return i<0?0:i>255?255:255&i}},3978:(t,e,i)=>{"use strict";var n=i(5613),r=i(9117),s=i(9944),o=i(6893),a=i(5772),l=i(7223),u=i(8633),c=i(286),h=i(9123),d=i(8088),f=i(4752),p=i(7611),m=i(4579),g=i(7584),_=i(4108),y=i(2344),v=i(4418),w=i(5438),b=i(831),x=i(6032),S=i(7065),D=i(4578),T=i(5054),A=i(5629).f,k=i(3292),E=i(4104).forEach,M=i(3900),R=i(997),P=i(4466),O=i(9304),C=i(6759),L=i(3086),I=i(4166),N=L.get,Y=L.set,q=L.enforce,F=P.f,H=O.f,B=r.RangeError,X=u.ArrayBuffer,W=X.prototype,z=u.DataView,j=l.NATIVE_ARRAY_BUFFER_VIEWS,U=l.TYPED_ARRAY_TAG,G=l.TypedArray,$=l.TypedArrayPrototype,V=l.isTypedArray,Q="BYTES_PER_ELEMENT",Z="Wrong length",J=function(t,e){R(t,e,{configurable:!0,get:function(){return N(this)[e]}})},K=function(t){var e;return D(W,t)||"ArrayBuffer"===(e=w(t))||"SharedArrayBuffer"===e},tt=function(t,e){return V(t)&&!x(e)&&e in t&&f(+e)&&e>=0},et=function(t,e){return e=y(e),tt(t,e)?h(2,t[e]):H(t,e)},it=function(t,e,i){return e=y(e),!(tt(t,e)&&b(i)&&v(i,"value"))||v(i,"get")||v(i,"set")||i.configurable||v(i,"writable")&&!i.writable||v(i,"enumerable")&&!i.enumerable?F(t,e,i):(t[e]=i.value,t)};o?(j||(O.f=et,P.f=it,J($,"buffer"),J($,"byteOffset"),J($,"byteLength"),J($,"length")),n({target:"Object",stat:!0,forced:!j},{getOwnPropertyDescriptor:et,defineProperty:it}),t.exports=function(t,e,i){var o=t.match(/\d+/)[0]/8,l=t+(i?"Clamped":"")+"Array",u="get"+t,h="set"+t,f=r[l],y=f,v=y&&y.prototype,w={},x=function(t,e){var i=N(t);return i.view[u](e*o+i.byteOffset,!0)},D=function(t,e,n){var r=N(t);r.view[h](e*o+r.byteOffset,i?_(n):n,!0)},R=function(t,e){F(t,e,{get:function(){return x(this,e)},set:function(t){return D(this,e,t)},enumerable:!0})};j?a&&(y=e((function(t,e,i,n){return c(t,v),I(function(){return b(e)?K(e)?void 0!==n?new f(e,g(i,o),n):void 0!==i?new f(e,g(i,o)):new f(e):V(e)?C(y,e):s(k,y,e):new f(m(e))}(),t,y)})),T&&T(y,G),E(A(f),(function(t){t in y||d(y,t,f[t])})),y.prototype=v):(y=e((function(t,e,i,n){c(t,v);var r,a,l,u=0,h=0;if(b(e)){if(!K(e))return V(e)?C(y,e):s(k,y,e);r=e,h=g(i,o);var d=e.byteLength;if(void 0===n){if(d%o)throw new B(Z);if(a=d-h,a<0)throw new B(Z)}else if(a=p(n)*o,a+h>d)throw new B(Z);l=a/o}else l=m(e),a=l*o,r=new X(a);Y(t,{buffer:r,byteOffset:h,byteLength:a,length:l,view:new z(r)});while(u<l)R(t,u++)})),T&&T(y,G),v=y.prototype=S($)),v.constructor!==y&&d(v,"constructor",y),q(v).TypedArrayConstructor=y,U&&d(v,U,l);var P=y!==f;w[l]=y,n({global:!0,constructor:!0,forced:P,sham:!j},w),Q in y||d(y,Q,o),Q in v||d(v,Q,o),M(l)}):t.exports=function(){}},5772:(t,e,i)=>{"use strict";var n=i(9117),r=i(5234),s=i(7283),o=i(7223).NATIVE_ARRAY_BUFFER_VIEWS,a=n.ArrayBuffer,l=n.Int8Array;t.exports=!o||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!s((function(t){new l,new l(null),new l(1.5),new l(t)}),!0)||r((function(){return 1!==new l(new a(2),1,void 0).length}))},3292:(t,e,i)=>{"use strict";var n=i(5821),r=i(9944),s=i(1361),o=i(3628),a=i(9389),l=i(2350),u=i(9874),c=i(8146),h=i(5448),d=i(7223).aTypedArrayConstructor,f=i(7429);t.exports=function(t){var e,i,p,m,g,_,y,v,w=s(this),b=o(t),x=arguments.length,S=x>1?arguments[1]:void 0,D=void 0!==S,T=u(b);if(T&&!c(T)){y=l(b,T),v=y.next,b=[];while(!(_=r(v,y)).done)b.push(_.value)}for(D&&x>2&&(S=n(S,arguments[2])),i=a(b),p=new(d(w))(i),m=h(p),e=0;i>e;e++)g=D?S(b[e],e):b[e],p[e]=m?f(g):+g;return p}},2482:(t,e,i)=>{"use strict";var n=i(6893),r=i(997),s=i(6821),o=ArrayBuffer.prototype;n&&!("detached"in o)&&r(o,"detached",{configurable:!0,get:function(){return s(this)}})},4147:(t,e,i)=>{"use strict";var n=i(5613),r=i(5677);r&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return r(this,arguments.length?arguments[0]:void 0,!1)}})},7067:(t,e,i)=>{"use strict";var n=i(5613),r=i(5677);r&&n({target:"ArrayBuffer",proto:!0},{transfer:function(){return r(this,arguments.length?arguments[0]:void 0,!0)}})},7146:(t,e,i)=>{"use strict";var n=i(9117),r=i(6893),s=i(997),o=i(4932),a=i(5234),l=n.RegExp,u=l.prototype,c=r&&a((function(){var t=!0;try{l(".","d")}catch(c){t=!1}var e={},i="",n=t?"dgimsy":"gimsy",r=function(t,n){Object.defineProperty(e,t,{get:function(){return i+=n,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(s.hasIndices="d"),s)r(o,s[o]);var a=Object.getOwnPropertyDescriptor(u,"flags").get.call(e);return a!==n||i!==n}));c&&s(u,"flags",{configurable:!0,get:o})},9033:(t,e,i)=>{"use strict";var n=i(5613),r=i(7059),s=i(4471);n({target:"Set",proto:!0,real:!0,forced:!s("difference")},{difference:r})},8903:(t,e,i)=>{"use strict";var n=i(5613),r=i(5234),s=i(3721),o=i(4471),a=!o("intersection")||r((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}));n({target:"Set",proto:!0,real:!0,forced:a},{intersection:s})},1018:(t,e,i)=>{"use strict";var n=i(5613),r=i(9978),s=i(4471);n({target:"Set",proto:!0,real:!0,forced:!s("isDisjointFrom")},{isDisjointFrom:r})},1415:(t,e,i)=>{"use strict";var n=i(5613),r=i(4361),s=i(4471);n({target:"Set",proto:!0,real:!0,forced:!s("isSubsetOf")},{isSubsetOf:r})},4448:(t,e,i)=>{"use strict";var n=i(5613),r=i(7528),s=i(4471);n({target:"Set",proto:!0,real:!0,forced:!s("isSupersetOf")},{isSupersetOf:r})},8871:(t,e,i)=>{"use strict";var n=i(5613),r=i(1657),s=i(4471);n({target:"Set",proto:!0,real:!0,forced:!s("symmetricDifference")},{symmetricDifference:r})},6539:(t,e,i)=>{"use strict";var n=i(5613),r=i(5077),s=i(4471);n({target:"Set",proto:!0,real:!0,forced:!s("union")},{union:r})},8715:(t,e,i)=>{"use strict";var n=i(5613),r=i(9944),s=i(6881),o=i(9509),a=i(4188),l=i(4318),u=i(473),c=i(2618),h=i(2913),d=i(3113),f=i(1113),p=i(4282),m=i(1942),g=p("replace"),_=TypeError,y=s("".indexOf),v=s("".replace),w=s("".slice),b=Math.max;n({target:"String",proto:!0},{replaceAll:function(t,e){var i,n,s,p,x,S,D,T,A,k,E=o(this),M=0,R="";if(!l(t)){if(i=u(t),i&&(n=c(o(d(t))),!~y(n,"g")))throw new _("`.replaceAll` does not allow non-global regexes");if(s=h(t,g),s)return r(s,t,E,e);if(m&&i)return v(c(E),t,e)}p=c(E),x=c(t),S=a(e),S||(e=c(e)),D=x.length,T=b(1,D),A=y(p,x);while(-1!==A)k=S?c(e(x,A,p)):f(x,p,A,[],void 0,e),R+=w(p,M,A)+k,M=A+D,A=A+T>p.length?-1:y(p,x,A+T);return M<p.length&&(R+=w(p,M)),R}})},785:(t,e,i)=>{"use strict";var n=i(7223),r=i(9389),s=i(6744),o=n.aTypedArray,a=n.exportTypedArrayMethod;a("at",(function(t){var e=o(this),i=r(e),n=s(t),a=n>=0?n:i+n;return a<0||a>=i?void 0:e[a]}))},8357:(t,e,i)=>{"use strict";var n=i(7223),r=i(8150),s=i(7429),o=i(5438),a=i(9944),l=i(6881),u=i(5234),c=n.aTypedArray,h=n.exportTypedArrayMethod,d=l("".slice),f=u((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t}));h("fill",(function(t){var e=arguments.length;c(this);var i="Big"===d(o(this),0,3)?s(t):+t;return a(r,this,i,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),f)},821:(t,e,i)=>{"use strict";var n=i(7223),r=i(710).findLastIndex,s=n.aTypedArray,o=n.exportTypedArrayMethod;o("findLastIndex",(function(t){return r(s(this),t,arguments.length>1?arguments[1]:void 0)}))},6196:(t,e,i)=>{"use strict";var n=i(7223),r=i(710).findLast,s=n.aTypedArray,o=n.exportTypedArrayMethod;o("findLast",(function(t){return r(s(this),t,arguments.length>1?arguments[1]:void 0)}))},6554:(t,e,i)=>{"use strict";var n=i(9117),r=i(9944),s=i(7223),o=i(9389),a=i(7584),l=i(3628),u=i(5234),c=n.RangeError,h=n.Int8Array,d=h&&h.prototype,f=d&&d.set,p=s.aTypedArray,m=s.exportTypedArrayMethod,g=!u((function(){var t=new Uint8ClampedArray(2);return r(f,t,{length:1,0:3},1),3!==t[1]})),_=g&&s.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var t=new h(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));m("set",(function(t){p(this);var e=a(arguments.length>1?arguments[1]:void 0,1),i=l(t);if(g)return r(f,this,i,e);var n=this.length,s=o(i),u=0;if(s+e>n)throw new c("Wrong length");while(u<s)this[e+u]=i[u++]}),!g||_)},8472:(t,e,i)=>{"use strict";var n=i(9117),r=i(5691),s=i(5234),o=i(4977),a=i(9295),l=i(7223),u=i(2222),c=i(4598),h=i(3008),d=i(7340),f=l.aTypedArray,p=l.exportTypedArrayMethod,m=n.Uint16Array,g=m&&r(m.prototype.sort),_=!!g&&!(s((function(){g(new m(2),null)}))&&s((function(){g(new m(2),{})}))),y=!!g&&!s((function(){if(h)return h<74;if(u)return u<67;if(c)return!0;if(d)return d<602;var t,e,i=new m(516),n=Array(516);for(t=0;t<516;t++)e=t%4,i[t]=515-t,n[t]=t-2*e+3;for(g(i,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(i[t]!==n[t])return!0})),v=function(t){return function(e,i){return void 0!==t?+t(e,i)||0:i!==i?-1:e!==e?1:0===e&&0===i?1/e>0&&1/i<0?1:-1:e>i}};p("sort",(function(t){return void 0!==t&&o(t),y?g(this,t):a(f(this),v(t))}),!y||_)},7404:(t,e,i)=>{"use strict";var n=i(1433),r=i(7223),s=r.aTypedArray,o=r.exportTypedArrayMethod,a=r.getTypedArrayConstructor;o("toReversed",(function(){return n(s(this),a(this))}))},5803:(t,e,i)=>{"use strict";var n=i(7223),r=i(6881),s=i(4977),o=i(6759),a=n.aTypedArray,l=n.getTypedArrayConstructor,u=n.exportTypedArrayMethod,c=r(n.TypedArrayPrototype.sort);u("toSorted",(function(t){void 0!==t&&s(t);var e=a(this),i=o(l(e),e);return c(i,t)}))},2682:(t,e,i)=>{"use strict";var n=i(3978);n("Uint8",(function(t){return function(e,i,n){return t(this,e,i,n)}}))},3912:(t,e,i)=>{"use strict";var n=i(6803),r=i(7223),s=i(5448),o=i(6744),a=i(7429),l=r.aTypedArray,u=r.getTypedArrayConstructor,c=r.exportTypedArrayMethod,h=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();c("with",{with:function(t,e){var i=l(this),r=o(t),c=s(i)?a(e):+e;return n(i,u(i),r,c)}}["with"],!h)},3816:(t,e,i)=>{"use strict";i.d(e,{A:()=>yi});var n={};function r(t,e){return function(){return t.apply(e,arguments)}}i.r(n),i.d(n,{hasBrowserEnv:()=>qt,hasStandardBrowserEnv:()=>Ht,hasStandardBrowserWebWorkerEnv:()=>Bt,navigator:()=>Ft,origin:()=>Xt});const{toString:s}=Object.prototype,{getPrototypeOf:o}=Object,a=(t=>e=>{const i=s.call(e);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),l=t=>(t=t.toLowerCase(),e=>a(e)===t),u=t=>e=>typeof e===t,{isArray:c}=Array,h=u("undefined");function d(t){return null!==t&&!h(t)&&null!==t.constructor&&!h(t.constructor)&&g(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const f=l("ArrayBuffer");function p(t){let e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&f(t.buffer),e}const m=u("string"),g=u("function"),_=u("number"),y=t=>null!==t&&"object"===typeof t,v=t=>!0===t||!1===t,w=t=>{if("object"!==a(t))return!1;const e=o(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},b=l("Date"),x=l("File"),S=l("Blob"),D=l("FileList"),T=t=>y(t)&&g(t.pipe),A=t=>{let e;return t&&("function"===typeof FormData&&t instanceof FormData||g(t.append)&&("formdata"===(e=a(t))||"object"===e&&g(t.toString)&&"[object FormData]"===t.toString()))},k=l("URLSearchParams"),[E,M,R,P]=["ReadableStream","Request","Response","Headers"].map(l),O=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function C(t,e,{allOwnKeys:i=!1}={}){if(null===t||"undefined"===typeof t)return;let n,r;if("object"!==typeof t&&(t=[t]),c(t))for(n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else{const r=i?Object.getOwnPropertyNames(t):Object.keys(t),s=r.length;let o;for(n=0;n<s;n++)o=r[n],e.call(null,t[o],o,t)}}function L(t,e){e=e.toLowerCase();const i=Object.keys(t);let n,r=i.length;while(r-- >0)if(n=i[r],e===n.toLowerCase())return n;return null}const I=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),N=t=>!h(t)&&t!==I;function Y(){const{caseless:t}=N(this)&&this||{},e={},i=(i,n)=>{const r=t&&L(e,n)||n;w(e[r])&&w(i)?e[r]=Y(e[r],i):w(i)?e[r]=Y({},i):c(i)?e[r]=i.slice():e[r]=i};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&C(arguments[n],i);return e}const q=(t,e,i,{allOwnKeys:n}={})=>(C(e,((e,n)=>{i&&g(e)?t[n]=r(e,i):t[n]=e}),{allOwnKeys:n}),t),F=t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),H=(t,e,i,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),i&&Object.assign(t.prototype,i)},B=(t,e,i,n)=>{let r,s,a;const l={};if(e=e||{},null==t)return e;do{r=Object.getOwnPropertyNames(t),s=r.length;while(s-- >0)a=r[s],n&&!n(a,t,e)||l[a]||(e[a]=t[a],l[a]=!0);t=!1!==i&&o(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},X=(t,e,i)=>{t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=e.length;const n=t.indexOf(e,i);return-1!==n&&n===i},W=t=>{if(!t)return null;if(c(t))return t;let e=t.length;if(!_(e))return null;const i=new Array(e);while(e-- >0)i[e]=t[e];return i},z=(t=>e=>t&&e instanceof t)("undefined"!==typeof Uint8Array&&o(Uint8Array)),j=(t,e)=>{const i=t&&t[Symbol.iterator],n=i.call(t);let r;while((r=n.next())&&!r.done){const i=r.value;e.call(t,i[0],i[1])}},U=(t,e)=>{let i;const n=[];while(null!==(i=t.exec(e)))n.push(i);return n},G=l("HTMLFormElement"),$=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,i){return e.toUpperCase()+i})),V=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),Q=l("RegExp"),Z=(t,e)=>{const i=Object.getOwnPropertyDescriptors(t),n={};C(i,((i,r)=>{let s;!1!==(s=e(i,r,t))&&(n[r]=s||i)})),Object.defineProperties(t,n)},J=t=>{Z(t,((e,i)=>{if(g(t)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;const n=t[i];g(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")}))}))},K=(t,e)=>{const i={},n=t=>{t.forEach((t=>{i[t]=!0}))};return c(t)?n(t):n(String(t).split(e)),i},tt=()=>{},et=(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,it="abcdefghijklmnopqrstuvwxyz",nt="0123456789",rt={DIGIT:nt,ALPHA:it,ALPHA_DIGIT:it+it.toUpperCase()+nt},st=(t=16,e=rt.ALPHA_DIGIT)=>{let i="";const{length:n}=e;while(t--)i+=e[Math.random()*n|0];return i};function ot(t){return!!(t&&g(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])}const at=t=>{const e=new Array(10),i=(t,n)=>{if(y(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const r=c(t)?[]:{};return C(t,((t,e)=>{const s=i(t,n+1);!h(s)&&(r[e]=s)})),e[n]=void 0,r}}return t};return i(t,0)},lt=l("AsyncFunction"),ut=t=>t&&(y(t)||g(t))&&g(t.then)&&g(t.catch),ct=((t,e)=>t?setImmediate:e?((t,e)=>(I.addEventListener("message",(({source:i,data:n})=>{i===I&&n===t&&e.length&&e.shift()()}),!1),i=>{e.push(i),I.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))("function"===typeof setImmediate,g(I.postMessage)),ht="undefined"!==typeof queueMicrotask?queueMicrotask.bind(I):"undefined"!==typeof process&&process.nextTick||ct,dt={isArray:c,isArrayBuffer:f,isBuffer:d,isFormData:A,isArrayBufferView:p,isString:m,isNumber:_,isBoolean:v,isObject:y,isPlainObject:w,isReadableStream:E,isRequest:M,isResponse:R,isHeaders:P,isUndefined:h,isDate:b,isFile:x,isBlob:S,isRegExp:Q,isFunction:g,isStream:T,isURLSearchParams:k,isTypedArray:z,isFileList:D,forEach:C,merge:Y,extend:q,trim:O,stripBOM:F,inherits:H,toFlatObject:B,kindOf:a,kindOfTest:l,endsWith:X,toArray:W,forEachEntry:j,matchAll:U,isHTMLForm:G,hasOwnProperty:V,hasOwnProp:V,reduceDescriptors:Z,freezeMethods:J,toObjectSet:K,toCamelCase:$,noop:tt,toFiniteNumber:et,findKey:L,global:I,isContextDefined:N,ALPHABET:rt,generateString:st,isSpecCompliantForm:ot,toJSONObject:at,isAsyncFn:lt,isThenable:ut,setImmediate:ct,asap:ht};function ft(t,e,i,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),i&&(this.config=i),n&&(this.request=n),r&&(this.response=r,this.status=r.status?r.status:null)}dt.inherits(ft,Error,{toJSON:function(){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:dt.toJSONObject(this.config),code:this.code,status:this.status}}});const pt=ft.prototype,mt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{mt[t]={value:t}})),Object.defineProperties(ft,mt),Object.defineProperty(pt,"isAxiosError",{value:!0}),ft.from=(t,e,i,n,r,s)=>{const o=Object.create(pt);return dt.toFlatObject(t,o,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),ft.call(o,t.message,e,i,n,r),o.cause=t,o.name=t.name,s&&Object.assign(o,s),o};const gt=ft,_t=null;function yt(t){return dt.isPlainObject(t)||dt.isArray(t)}function vt(t){return dt.endsWith(t,"[]")?t.slice(0,-2):t}function wt(t,e,i){return t?t.concat(e).map((function(t,e){return t=vt(t),!i&&e?"["+t+"]":t})).join(i?".":""):e}function bt(t){return dt.isArray(t)&&!t.some(yt)}const xt=dt.toFlatObject(dt,{},null,(function(t){return/^is[A-Z]/.test(t)}));function St(t,e,i){if(!dt.isObject(t))throw new TypeError("target must be an object");e=e||new(_t||FormData),i=dt.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!dt.isUndefined(e[t])}));const n=i.metaTokens,r=i.visitor||c,s=i.dots,o=i.indexes,a=i.Blob||"undefined"!==typeof Blob&&Blob,l=a&&dt.isSpecCompliantForm(e);if(!dt.isFunction(r))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(dt.isDate(t))return t.toISOString();if(!l&&dt.isBlob(t))throw new gt("Blob is not supported. Use a Buffer instead.");return dt.isArrayBuffer(t)||dt.isTypedArray(t)?l&&"function"===typeof Blob?new Blob([t]):Buffer.from(t):t}function c(t,i,r){let a=t;if(t&&!r&&"object"===typeof t)if(dt.endsWith(i,"{}"))i=n?i:i.slice(0,-2),t=JSON.stringify(t);else if(dt.isArray(t)&&bt(t)||(dt.isFileList(t)||dt.endsWith(i,"[]"))&&(a=dt.toArray(t)))return i=vt(i),a.forEach((function(t,n){!dt.isUndefined(t)&&null!==t&&e.append(!0===o?wt([i],n,s):null===o?i:i+"[]",u(t))})),!1;return!!yt(t)||(e.append(wt(r,i,s),u(t)),!1)}const h=[],d=Object.assign(xt,{defaultVisitor:c,convertValue:u,isVisitable:yt});function f(t,i){if(!dt.isUndefined(t)){if(-1!==h.indexOf(t))throw Error("Circular reference detected in "+i.join("."));h.push(t),dt.forEach(t,(function(t,n){const s=!(dt.isUndefined(t)||null===t)&&r.call(e,t,dt.isString(n)?n.trim():n,i,d);!0===s&&f(t,i?i.concat(n):[n])})),h.pop()}}if(!dt.isObject(t))throw new TypeError("data must be an object");return f(t),e}const Dt=St;function Tt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function At(t,e){this._pairs=[],t&&Dt(t,this,e)}const kt=At.prototype;kt.append=function(t,e){this._pairs.push([t,e])},kt.toString=function(t){const e=t?function(e){return t.call(this,e,Tt)}:Tt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const Et=At;function Mt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rt(t,e,i){if(!e)return t;const n=i&&i.encode||Mt,r=i&&i.serialize;let s;if(s=r?r(e,i):dt.isURLSearchParams(e)?e.toString():new Et(e,i).toString(n),s){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+s}return t}class Pt{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){dt.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}const Ot=Pt,Ct={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lt="undefined"!==typeof URLSearchParams?URLSearchParams:Et,It="undefined"!==typeof FormData?FormData:null,Nt="undefined"!==typeof Blob?Blob:null,Yt={isBrowser:!0,classes:{URLSearchParams:Lt,FormData:It,Blob:Nt},protocols:["http","https","file","blob","url","data"]},qt="undefined"!==typeof window&&"undefined"!==typeof document,Ft="object"===typeof navigator&&navigator||void 0,Ht=qt&&(!Ft||["ReactNative","NativeScript","NS"].indexOf(Ft.product)<0),Bt=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Xt=qt&&window.location.href||"http://localhost",Wt={...n,...Yt};function zt(t,e){return Dt(t,new Wt.classes.URLSearchParams,Object.assign({visitor:function(t,e,i,n){return Wt.isNode&&dt.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}function jt(t){return dt.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}function Ut(t){const e={},i=Object.keys(t);let n;const r=i.length;let s;for(n=0;n<r;n++)s=i[n],e[s]=t[s];return e}function Gt(t){function e(t,i,n,r){let s=t[r++];if("__proto__"===s)return!0;const o=Number.isFinite(+s),a=r>=t.length;if(s=!s&&dt.isArray(n)?n.length:s,a)return dt.hasOwnProp(n,s)?n[s]=[n[s],i]:n[s]=i,!o;n[s]&&dt.isObject(n[s])||(n[s]=[]);const l=e(t,i,n[s],r);return l&&dt.isArray(n[s])&&(n[s]=Ut(n[s])),!o}if(dt.isFormData(t)&&dt.isFunction(t.entries)){const i={};return dt.forEachEntry(t,((t,n)=>{e(jt(t),n,i,0)})),i}return null}const $t=Gt;function Vt(t,e,i){if(dt.isString(t))try{return(e||JSON.parse)(t),dt.trim(t)}catch(n){if("SyntaxError"!==n.name)throw n}return(i||JSON.stringify)(t)}const Qt={transitional:Ct,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const i=e.getContentType()||"",n=i.indexOf("application/json")>-1,r=dt.isObject(t);r&&dt.isHTMLForm(t)&&(t=new FormData(t));const s=dt.isFormData(t);if(s)return n?JSON.stringify($t(t)):t;if(dt.isArrayBuffer(t)||dt.isBuffer(t)||dt.isStream(t)||dt.isFile(t)||dt.isBlob(t)||dt.isReadableStream(t))return t;if(dt.isArrayBufferView(t))return t.buffer;if(dt.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(r){if(i.indexOf("application/x-www-form-urlencoded")>-1)return zt(t,this.formSerializer).toString();if((o=dt.isFileList(t))||i.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Dt(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return r||n?(e.setContentType("application/json",!1),Vt(t)):t}],transformResponse:[function(t){const e=this.transitional||Qt.transitional,i=e&&e.forcedJSONParsing,n="json"===this.responseType;if(dt.isResponse(t)||dt.isReadableStream(t))return t;if(t&&dt.isString(t)&&(i&&!this.responseType||n)){const i=e&&e.silentJSONParsing,s=!i&&n;try{return JSON.parse(t)}catch(r){if(s){if("SyntaxError"===r.name)throw gt.from(r,gt.ERR_BAD_RESPONSE,this,null,this.response);throw r}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wt.classes.FormData,Blob:Wt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};dt.forEach(["delete","get","head","post","put","patch"],(t=>{Qt.headers[t]={}}));const Zt=Qt,Jt=dt.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"]),Kt=t=>{const e={};let i,n,r;return t&&t.split("\n").forEach((function(t){r=t.indexOf(":"),i=t.substring(0,r).trim().toLowerCase(),n=t.substring(r+1).trim(),!i||e[i]&&Jt[i]||("set-cookie"===i?e[i]?e[i].push(n):e[i]=[n]:e[i]=e[i]?e[i]+", "+n:n)})),e},te=Symbol("internals");function ee(t){return t&&String(t).trim().toLowerCase()}function ie(t){return!1===t||null==t?t:dt.isArray(t)?t.map(ie):String(t)}function ne(t){const e=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;while(n=i.exec(t))e[n[1]]=n[2];return e}const re=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function se(t,e,i,n,r){return dt.isFunction(n)?n.call(this,e,i):(r&&(e=i),dt.isString(e)?dt.isString(n)?-1!==e.indexOf(n):dt.isRegExp(n)?n.test(e):void 0:void 0)}function oe(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,i)=>e.toUpperCase()+i))}function ae(t,e){const i=dt.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+i,{value:function(t,i,r){return this[n].call(this,e,t,i,r)},configurable:!0})}))}class le{constructor(t){t&&this.set(t)}set(t,e,i){const n=this;function r(t,e,i){const r=ee(e);if(!r)throw new Error("header name must be a non-empty string");const s=dt.findKey(n,r);(!s||void 0===n[s]||!0===i||void 0===i&&!1!==n[s])&&(n[s||e]=ie(t))}const s=(t,e)=>dt.forEach(t,((t,i)=>r(t,i,e)));if(dt.isPlainObject(t)||t instanceof this.constructor)s(t,e);else if(dt.isString(t)&&(t=t.trim())&&!re(t))s(Kt(t),e);else if(dt.isHeaders(t))for(const[o,a]of t.entries())r(a,o,i);else null!=t&&r(e,t,i);return this}get(t,e){if(t=ee(t),t){const i=dt.findKey(this,t);if(i){const t=this[i];if(!e)return t;if(!0===e)return ne(t);if(dt.isFunction(e))return e.call(this,t,i);if(dt.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=ee(t),t){const i=dt.findKey(this,t);return!(!i||void 0===this[i]||e&&!se(this,this[i],i,e))}return!1}delete(t,e){const i=this;let n=!1;function r(t){if(t=ee(t),t){const r=dt.findKey(i,t);!r||e&&!se(i,i[r],r,e)||(delete i[r],n=!0)}}return dt.isArray(t)?t.forEach(r):r(t),n}clear(t){const e=Object.keys(this);let i=e.length,n=!1;while(i--){const r=e[i];t&&!se(this,this[r],r,t,!0)||(delete this[r],n=!0)}return n}normalize(t){const e=this,i={};return dt.forEach(this,((n,r)=>{const s=dt.findKey(i,r);if(s)return e[s]=ie(n),void delete e[r];const o=t?oe(r):String(r).trim();o!==r&&delete e[r],e[o]=ie(n),i[o]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return dt.forEach(this,((i,n)=>{null!=i&&!1!==i&&(e[n]=t&&dt.isArray(i)?i.join(", "):i)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach((t=>i.set(t))),i}static accessor(t){const e=this[te]=this[te]={accessors:{}},i=e.accessors,n=this.prototype;function r(t){const e=ee(t);i[e]||(ae(n,t),i[e]=!0)}return dt.isArray(t)?t.forEach(r):r(t),this}}le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),dt.reduceDescriptors(le.prototype,(({value:t},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[i]=t}}})),dt.freezeMethods(le);const ue=le;function ce(t,e){const i=this||Zt,n=e||i,r=ue.from(n.headers);let s=n.data;return dt.forEach(t,(function(t){s=t.call(i,s,r.normalize(),e?e.status:void 0)})),r.normalize(),s}function he(t){return!(!t||!t.__CANCEL__)}function de(t,e,i){gt.call(this,null==t?"canceled":t,gt.ERR_CANCELED,e,i),this.name="CanceledError"}dt.inherits(de,gt,{__CANCEL__:!0});const fe=de;function pe(t,e,i){const n=i.config.validateStatus;i.status&&n&&!n(i.status)?e(new gt("Request failed with status code "+i.status,[gt.ERR_BAD_REQUEST,gt.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):t(i)}function me(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ge(t,e){t=t||10;const i=new Array(t),n=new Array(t);let r,s=0,o=0;return e=void 0!==e?e:1e3,function(a){const l=Date.now(),u=n[o];r||(r=l),i[s]=a,n[s]=l;let c=o,h=0;while(c!==s)h+=i[c++],c%=t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),l-r<e)return;const d=u&&l-u;return d?Math.round(1e3*h/d):void 0}}const _e=ge;function ye(t,e){let i,n,r=0,s=1e3/e;const o=(e,s=Date.now())=>{r=s,i=null,n&&(clearTimeout(n),n=null),t.apply(null,e)},a=(...t)=>{const e=Date.now(),a=e-r;a>=s?o(t,e):(i=t,n||(n=setTimeout((()=>{n=null,o(i)}),s-a)))},l=()=>i&&o(i);return[a,l]}const ve=ye,we=(t,e,i=3)=>{let n=0;const r=_e(50,250);return ve((i=>{const s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-n,l=r(a),u=s<=o;n=s;const c={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&u?(o-s)/l:void 0,event:i,lengthComputable:null!=o,[e?"download":"upload"]:!0};t(c)}),i)},be=(t,e)=>{const i=null!=t;return[n=>e[0]({lengthComputable:i,total:t,loaded:n}),e[1]]},xe=t=>(...e)=>dt.asap((()=>t(...e))),Se=Wt.hasStandardBrowserEnv?function(){const t=Wt.navigator&&/(msie|trident)/i.test(Wt.navigator.userAgent),e=document.createElement("a");let i;function n(i){let n=i;return t&&(e.setAttribute("href",n),n=e.href),e.setAttribute("href",n),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return i=n(window.location.href),function(t){const e=dt.isString(t)?n(t):t;return e.protocol===i.protocol&&e.host===i.host}}():function(){return function(){return!0}}(),De=Wt.hasStandardBrowserEnv?{write(t,e,i,n,r,s){const o=[t+"="+encodeURIComponent(e)];dt.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),dt.isString(n)&&o.push("path="+n),dt.isString(r)&&o.push("domain="+r),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Te(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ae(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function ke(t,e){return t&&!Te(e)?Ae(t,e):e}const Ee=t=>t instanceof ue?{...t}:t;function Me(t,e){e=e||{};const i={};function n(t,e,i){return dt.isPlainObject(t)&&dt.isPlainObject(e)?dt.merge.call({caseless:i},t,e):dt.isPlainObject(e)?dt.merge({},e):dt.isArray(e)?e.slice():e}function r(t,e,i){return dt.isUndefined(e)?dt.isUndefined(t)?void 0:n(void 0,t,i):n(t,e,i)}function s(t,e){if(!dt.isUndefined(e))return n(void 0,e)}function o(t,e){return dt.isUndefined(e)?dt.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(i,r,s){return s in e?n(i,r):s in t?n(void 0,i):void 0}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(t,e)=>r(Ee(t),Ee(e),!0)};return dt.forEach(Object.keys(Object.assign({},t,e)),(function(n){const s=l[n]||r,o=s(t[n],e[n],n);dt.isUndefined(o)&&s!==a||(i[n]=o)})),i}const Re=t=>{const e=Me({},t);let i,{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:l}=e;if(e.headers=a=ue.from(a),e.url=Rt(ke(e.baseURL,e.url),t.params,t.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),dt.isFormData(n))if(Wt.hasStandardBrowserEnv||Wt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(i=a.getContentType())){const[t,...e]=i?i.split(";").map((t=>t.trim())).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...e].join("; "))}if(Wt.hasStandardBrowserEnv&&(r&&dt.isFunction(r)&&(r=r(e)),r||!1!==r&&Se(e.url))){const t=s&&o&&De.read(o);t&&a.set(s,t)}return e},Pe="undefined"!==typeof XMLHttpRequest,Oe=Pe&&function(t){return new Promise((function(e,i){const n=Re(t);let r=n.data;const s=ue.from(n.headers).normalize();let o,a,l,u,c,{responseType:h,onUploadProgress:d,onDownloadProgress:f}=n;function p(){u&&u(),c&&c(),n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function g(){if(!m)return;const n=ue.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),r=h&&"text"!==h&&"json"!==h?m.response:m.responseText,s={data:r,status:m.status,statusText:m.statusText,headers:n,config:t,request:m};pe((function(t){e(t),p()}),(function(t){i(t),p()}),s),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(i(new gt("Request aborted",gt.ECONNABORTED,t,m)),m=null)},m.onerror=function(){i(new gt("Network Error",gt.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const r=n.transitional||Ct;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),i(new gt(e,r.clarifyTimeoutError?gt.ETIMEDOUT:gt.ECONNABORTED,t,m)),m=null},void 0===r&&s.setContentType(null),"setRequestHeader"in m&&dt.forEach(s.toJSON(),(function(t,e){m.setRequestHeader(e,t)})),dt.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),h&&"json"!==h&&(m.responseType=n.responseType),f&&([l,c]=we(f,!0),m.addEventListener("progress",l)),d&&m.upload&&([a,u]=we(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(o=e=>{m&&(i(!e||e.type?new fe(null,t,m):e),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const _=me(n.url);_&&-1===Wt.protocols.indexOf(_)?i(new gt("Unsupported protocol "+_+":",gt.ERR_BAD_REQUEST,t)):m.send(r||null)}))},Ce=(t,e)=>{const{length:i}=t=t?t.filter(Boolean):[];if(e||i){let i,n=new AbortController;const r=function(t){if(!i){i=!0,o();const e=t instanceof Error?t:this.reason;n.abort(e instanceof gt?e:new fe(e instanceof Error?e.message:e))}};let s=e&&setTimeout((()=>{s=null,r(new gt(`timeout ${e} of ms exceeded`,gt.ETIMEDOUT))}),e);const o=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(r):t.removeEventListener("abort",r)})),t=null)};t.forEach((t=>t.addEventListener("abort",r)));const{signal:a}=n;return a.unsubscribe=()=>dt.asap(o),a}},Le=Ce,Ie=function*(t,e){let i=t.byteLength;if(!e||i<e)return void(yield t);let n,r=0;while(r<i)n=r+e,yield t.slice(r,n),r=n},Ne=async function*(t,e){for await(const i of Ye(t))yield*Ie(i,e)},Ye=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:i}=await e.read();if(t)break;yield i}}finally{await e.cancel()}},qe=(t,e,i,n)=>{const r=Ne(t,e);let s,o=0,a=t=>{s||(s=!0,n&&n(t))};return new ReadableStream({async pull(t){try{const{done:e,value:n}=await r.next();if(e)return a(),void t.close();let s=n.byteLength;if(i){let t=o+=s;i(t)}t.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel(t){return a(t),r.return()}},{highWaterMark:2})},Fe="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,He=Fe&&"function"===typeof ReadableStream,Be=Fe&&("function"===typeof TextEncoder?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Xe=(t,...e)=>{try{return!!t(...e)}catch(i){return!1}},We=He&&Xe((()=>{let t=!1;const e=new Request(Wt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),ze=65536,je=He&&Xe((()=>dt.isReadableStream(new Response("").body))),Ue={stream:je&&(t=>t.body)};Fe&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ue[e]&&(Ue[e]=dt.isFunction(t[e])?t=>t[e]():(t,i)=>{throw new gt(`Response type '${e}' is not supported`,gt.ERR_NOT_SUPPORT,i)})}))})(new Response);const Ge=async t=>{if(null==t)return 0;if(dt.isBlob(t))return t.size;if(dt.isSpecCompliantForm(t)){const e=new Request(Wt.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return dt.isArrayBufferView(t)||dt.isArrayBuffer(t)?t.byteLength:(dt.isURLSearchParams(t)&&(t+=""),dt.isString(t)?(await Be(t)).byteLength:void 0)},$e=async(t,e)=>{const i=dt.toFiniteNumber(t.getContentLength());return null==i?Ge(e):i},Ve=Fe&&(async t=>{let{url:e,method:i,data:n,signal:r,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:l,responseType:u,headers:c,withCredentials:h="same-origin",fetchOptions:d}=Re(t);u=u?(u+"").toLowerCase():"text";let f,p=Le([r,s&&s.toAbortSignal()],o);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(l&&We&&"get"!==i&&"head"!==i&&0!==(g=await $e(c,n))){let t,i=new Request(e,{method:"POST",body:n,duplex:"half"});if(dt.isFormData(n)&&(t=i.headers.get("content-type"))&&c.setContentType(t),i.body){const[t,e]=be(g,we(xe(l)));n=qe(i.body,ze,t,e)}}dt.isString(h)||(h=h?"include":"omit");const r="credentials"in Request.prototype;f=new Request(e,{...d,signal:p,method:i.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:r?h:void 0});let s=await fetch(f);const o=je&&("stream"===u||"response"===u);if(je&&(a||o&&m)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=s[e]}));const e=dt.toFiniteNumber(s.headers.get("content-length")),[i,n]=a&&be(e,we(xe(a),!0))||[];s=new Response(qe(s.body,ze,i,(()=>{n&&n(),m&&m()})),t)}u=u||"text";let _=await Ue[dt.findKey(Ue,u)||"text"](s,t);return!o&&m&&m(),await new Promise(((e,i)=>{pe(e,i,{data:_,headers:ue.from(s.headers),status:s.status,statusText:s.statusText,config:t,request:f})}))}catch(_){if(m&&m(),_&&"TypeError"===_.name&&/fetch/i.test(_.message))throw Object.assign(new gt("Network Error",gt.ERR_NETWORK,t,f),{cause:_.cause||_});throw gt.from(_,_&&_.code,t,f)}}),Qe={http:_t,xhr:Oe,fetch:Ve};dt.forEach(Qe,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(i){}Object.defineProperty(t,"adapterName",{value:e})}}));const Ze=t=>`- ${t}`,Je=t=>dt.isFunction(t)||null===t||!1===t,Ke={getAdapter:t=>{t=dt.isArray(t)?t:[t];const{length:e}=t;let i,n;const r={};for(let s=0;s<e;s++){let e;if(i=t[s],n=i,!Je(i)&&(n=Qe[(e=String(i)).toLowerCase()],void 0===n))throw new gt(`Unknown adapter '${e}'`);if(n)break;r[e||"#"+s]=n}if(!n){const t=Object.entries(r).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let i=e?t.length>1?"since :\n"+t.map(Ze).join("\n"):" "+Ze(t[0]):"as no adapter specified";throw new gt("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:Qe};function ti(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new fe(null,t)}function ei(t){ti(t),t.headers=ue.from(t.headers),t.data=ce.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const e=Ke.getAdapter(t.adapter||Zt.adapter);return e(t).then((function(e){return ti(t),e.data=ce.call(t,t.transformResponse,e),e.headers=ue.from(e.headers),e}),(function(e){return he(e)||(ti(t),e&&e.response&&(e.response.data=ce.call(t,t.transformResponse,e.response),e.response.headers=ue.from(e.response.headers))),Promise.reject(e)}))}const ii="1.7.7",ni={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{ni[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}}));const ri={};function si(t,e,i){if("object"!==typeof t)throw new gt("options must be an object",gt.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let r=n.length;while(r-- >0){const s=n[r],o=e[s];if(o){const e=t[s],i=void 0===e||o(e,s,t);if(!0!==i)throw new gt("option "+s+" must be "+i,gt.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new gt("Unknown option "+s,gt.ERR_BAD_OPTION)}}ni.transitional=function(t,e,i){function n(t,e){return"[Axios v"+ii+"] Transitional option '"+t+"'"+e+(i?". "+i:"")}return(i,r,s)=>{if(!1===t)throw new gt(n(r," has been removed"+(e?" in "+e:"")),gt.ERR_DEPRECATED);return e&&!ri[r]&&(ri[r]=!0,console.warn(n(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(i,r,s)}};const oi={assertOptions:si,validators:ni},ai=oi.validators;class li{constructor(t){this.defaults=t,this.interceptors={request:new Ot,response:new Ot}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const e=t.stack?t.stack.replace(/^.+\n/,""):"";try{i.stack?e&&!String(i.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(i.stack+="\n"+e):i.stack=e}catch(n){}}throw i}}_request(t,e){"string"===typeof t?(e=e||{},e.url=t):e=t||{},e=Me(this.defaults,e);const{transitional:i,paramsSerializer:n,headers:r}=e;void 0!==i&&oi.assertOptions(i,{silentJSONParsing:ai.transitional(ai.boolean),forcedJSONParsing:ai.transitional(ai.boolean),clarifyTimeoutError:ai.transitional(ai.boolean)},!1),null!=n&&(dt.isFunction(n)?e.paramsSerializer={serialize:n}:oi.assertOptions(n,{encode:ai.function,serialize:ai.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let s=r&&dt.merge(r.common,r[e.method]);r&&dt.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete r[t]})),e.headers=ue.concat(s,r);const o=[];let a=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let c,h=0;if(!a){const t=[ei.bind(this),void 0];t.unshift.apply(t,o),t.push.apply(t,l),c=t.length,u=Promise.resolve(e);while(h<c)u=u.then(t[h++],t[h++]);return u}c=o.length;let d=e;h=0;while(h<c){const t=o[h++],e=o[h++];try{d=t(d)}catch(f){e.call(this,f);break}}try{u=ei.call(this,d)}catch(f){return Promise.reject(f)}h=0,c=l.length;while(h<c)u=u.then(l[h++],l[h++]);return u}getUri(t){t=Me(this.defaults,t);const e=ke(t.baseURL,t.url);return Rt(e,t.params,t.paramsSerializer)}}dt.forEach(["delete","get","head","options"],(function(t){li.prototype[t]=function(e,i){return this.request(Me(i||{},{method:t,url:e,data:(i||{}).data}))}})),dt.forEach(["post","put","patch"],(function(t){function e(e){return function(i,n,r){return this.request(Me(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}li.prototype[t]=e(),li.prototype[t+"Form"]=e(!0)}));const ui=li;class ci{constructor(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const i=this;this.promise.then((t=>{if(!i._listeners)return;let e=i._listeners.length;while(e-- >0)i._listeners[e](t);i._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{i.subscribe(t),e=t})).then(t);return n.cancel=function(){i.unsubscribe(e)},n},t((function(t,n,r){i.reason||(i.reason=new fe(t,n,r),e(i.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;const e=new ci((function(e){t=e}));return{token:e,cancel:t}}}const hi=ci;function di(t){return function(e){return t.apply(null,e)}}function fi(t){return dt.isObject(t)&&!0===t.isAxiosError}const pi={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};Object.entries(pi).forEach((([t,e])=>{pi[e]=t}));const mi=pi;function gi(t){const e=new ui(t),i=r(ui.prototype.request,e);return dt.extend(i,ui.prototype,e,{allOwnKeys:!0}),dt.extend(i,e,null,{allOwnKeys:!0}),i.create=function(e){return gi(Me(t,e))},i}const _i=gi(Zt);_i.Axios=ui,_i.CanceledError=fe,_i.CancelToken=hi,_i.isCancel=he,_i.VERSION=ii,_i.toFormData=Dt,_i.AxiosError=gt,_i.Cancel=_i.CanceledError,_i.all=function(t){return Promise.all(t)},_i.spread=di,_i.isAxiosError=fi,_i.mergeConfig=Me,_i.AxiosHeaders=ue,_i.formToJSON=t=>$t(dt.isHTMLForm(t)?new FormData(t):t),_i.getAdapter=Ke.getAdapter,_i.HttpStatusCode=mi,_i.default=_i;const yi=_i},2378:(t,e,i)=>{"use strict";i.d(e,{qD:()=>tt});var n=i(686);function r(t,e,i){const n=a(t,i.timeZone,i.locale);return"formatToParts"in n?s(n,e):o(n,e)}function s(t,e){const i=t.formatToParts(e);for(let n=i.length-1;n>=0;--n)if("timeZoneName"===i[n].type)return i[n].value}function o(t,e){const i=t.format(e).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(i);return n?n[0].substr(1):""}function a(t,e,i){return new Intl.DateTimeFormat(i?[i.code,"en-US"]:void 0,{timeZone:e,timeZoneName:t})}function l(t,e){const i=f(e);return"formatToParts"in i?c(i,t):h(i,t)}const u={year:0,month:1,day:2,hour:3,minute:4,second:5};function c(t,e){try{const i=t.formatToParts(e),n=[];for(let t=0;t<i.length;t++){const e=u[i[t].type];void 0!==e&&(n[e]=parseInt(i[t].value,10))}return n}catch(i){if(i instanceof RangeError)return[NaN];throw i}}function h(t,e){const i=t.format(e),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(i);return[parseInt(n[3],10),parseInt(n[1],10),parseInt(n[2],10),parseInt(n[4],10),parseInt(n[5],10),parseInt(n[6],10)]}const d={};function f(t){if(!d[t]){const e=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),i="06/25/2014, 00:00:00"===e||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===e;d[t]=i?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return d[t]}function p(t,e,i,n,r,s,o){const a=new Date(0);return a.setUTCFullYear(t,e,i),a.setUTCHours(n,r,s,o),a}const m=36e5,g=6e4,_={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function y(t,e,i){if(!t)return 0;let n,r,s=_.timezoneZ.exec(t);if(s)return 0;if(s=_.timezoneHH.exec(t),s)return n=parseInt(s[1],10),x(n)?-n*m:NaN;if(s=_.timezoneHHMM.exec(t),s){n=parseInt(s[2],10);const t=parseInt(s[3],10);return x(n,t)?(r=Math.abs(n)*m+t*g,"+"===s[1]?-r:r):NaN}if(D(t)){e=new Date(e||Date.now());const n=i?e:v(e),r=w(n,t),s=i?r:b(e,r,t);return-s}return NaN}function v(t){return p(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function w(t,e){const i=l(t,e),n=p(i[0],i[1]-1,i[2],i[3]%24,i[4],i[5],0).getTime();let r=t.getTime();const s=r%1e3;return r-=s>=0?s:1e3+s,n-r}function b(t,e,i){const n=t.getTime();let r=n-e;const s=w(new Date(r),i);if(e===s)return e;r-=s-e;const o=w(new Date(r),i);return s===o?s:Math.max(s,o)}function x(t,e){return-23<=t&&t<=23&&(null==e||0<=e&&e<=59)}const S={};function D(t){if(S[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),S[t]=!0,!0}catch(e){return!1}}const T=6e4,A={X:function(t,e,i){const n=k(i.timeZone,t);if(0===n)return"Z";switch(e){case"X":return R(n);case"XXXX":case"XX":return M(n);case"XXXXX":case"XXX":default:return M(n,":")}},x:function(t,e,i){const n=k(i.timeZone,t);switch(e){case"x":return R(n);case"xxxx":case"xx":return M(n);case"xxxxx":case"xxx":default:return M(n,":")}},O:function(t,e,i){const n=k(i.timeZone,t);switch(e){case"O":case"OO":case"OOO":return"GMT"+P(n,":");case"OOOO":default:return"GMT"+M(n,":")}},z:function(t,e,i){switch(e){case"z":case"zz":case"zzz":return r("short",t,i);case"zzzz":default:return r("long",t,i)}}};function k(t,e){const i=t?y(t,e,!0)/T:e?.getTimezoneOffset()??0;if(Number.isNaN(i))throw new RangeError("Invalid time zone specified: "+t);return i}function E(t,e){const i=t<0?"-":"";let n=Math.abs(t).toString();while(n.length<e)n="0"+n;return i+n}function M(t,e=""){const i=t>0?"-":"+",n=Math.abs(t),r=E(Math.floor(n/60),2),s=E(Math.floor(n%60),2);return i+r+e+s}function R(t,e){if(t%60===0){const e=t>0?"-":"+";return e+E(Math.abs(t)/60,2)}return M(t,e)}function P(t,e=""){const i=t>0?"-":"+",n=Math.abs(t),r=Math.floor(n/60),s=n%60;return 0===s?i+String(r):i+String(r)+e+E(s,2)}function O(t){const e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+t-+e}const C=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,L=36e5,I=6e4,N=2,Y={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:C};function q(t,e={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===t)return new Date(NaN);const i=null==e.additionalDigits?N:Number(e.additionalDigits);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||"object"===typeof t&&"[object Date]"===Object.prototype.toString.call(t))return new Date(t.getTime());if("number"===typeof t||"[object Number]"===Object.prototype.toString.call(t))return new Date(t);if("[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);const n=F(t),{year:r,restDateString:s}=H(n.date,i),o=B(s,r);if(null===o||isNaN(o.getTime()))return new Date(NaN);if(o){const t=o.getTime();let i,r=0;if(n.time&&(r=X(n.time),null===r||isNaN(r)))return new Date(NaN);if(n.timeZone||e.timeZone){if(i=y(n.timeZone||e.timeZone,new Date(t+r)),isNaN(i))return new Date(NaN)}else i=O(new Date(t+r)),i=O(new Date(t+r+i));return new Date(t+r+i)}return new Date(NaN)}function F(t){const e={};let i,n=Y.dateTimePattern.exec(t);if(n?(e.date=n[1],i=n[3]):(n=Y.datePattern.exec(t),n?(e.date=n[1],i=n[2]):(e.date=null,i=t)),i){const t=Y.timeZone.exec(i);t?(e.time=i.replace(t[1],""),e.timeZone=t[1].trim()):e.time=i}return e}function H(t,e){if(t){const i=Y.YYY[e],n=Y.YYYYY[e];let r=Y.YYYY.exec(t)||n.exec(t);if(r){const e=r[1];return{year:parseInt(e,10),restDateString:t.slice(e.length)}}if(r=Y.YY.exec(t)||i.exec(t),r){const e=r[1];return{year:100*parseInt(e,10),restDateString:t.slice(e.length)}}}return{year:null}}function B(t,e){if(null===e)return null;let i,n,r;if(!t||!t.length)return i=new Date(0),i.setUTCFullYear(e),i;let s=Y.MM.exec(t);if(s)return i=new Date(0),n=parseInt(s[1],10)-1,G(e,n)?(i.setUTCFullYear(e,n),i):new Date(NaN);if(s=Y.DDD.exec(t),s){i=new Date(0);const t=parseInt(s[1],10);return $(e,t)?(i.setUTCFullYear(e,0,t),i):new Date(NaN)}if(s=Y.MMDD.exec(t),s){i=new Date(0),n=parseInt(s[1],10)-1;const t=parseInt(s[2],10);return G(e,n,t)?(i.setUTCFullYear(e,n,t),i):new Date(NaN)}if(s=Y.Www.exec(t),s)return r=parseInt(s[1],10)-1,V(r)?W(e,r):new Date(NaN);if(s=Y.WwwD.exec(t),s){r=parseInt(s[1],10)-1;const t=parseInt(s[2],10)-1;return V(r,t)?W(e,r,t):new Date(NaN)}return null}function X(t){let e,i,n=Y.HH.exec(t);if(n)return e=parseFloat(n[1].replace(",",".")),Q(e)?e%24*L:NaN;if(n=Y.HHMM.exec(t),n)return e=parseInt(n[1],10),i=parseFloat(n[2].replace(",",".")),Q(e,i)?e%24*L+i*I:NaN;if(n=Y.HHMMSS.exec(t),n){e=parseInt(n[1],10),i=parseInt(n[2],10);const t=parseFloat(n[3].replace(",","."));return Q(e,i,t)?e%24*L+i*I+1e3*t:NaN}return null}function W(t,e,i){e=e||0,i=i||0;const n=new Date(0);n.setUTCFullYear(t,0,4);const r=n.getUTCDay()||7,s=7*e+i+1-r;return n.setUTCDate(n.getUTCDate()+s),n}const z=[31,28,31,30,31,30,31,31,30,31,30,31],j=[31,29,31,30,31,30,31,31,30,31,30,31];function U(t){return t%400===0||t%4===0&&t%100!==0}function G(t,e,i){if(e<0||e>11)return!1;if(null!=i){if(i<1)return!1;const n=U(t);if(n&&i>j[e])return!1;if(!n&&i>z[e])return!1}return!0}function $(t,e){if(e<1)return!1;const i=U(t);return!(i&&e>366)&&!(!i&&e>365)}function V(t,e){return!(t<0||t>52)&&(null==e||!(e<0||e>6))}function Q(t,e,i){return!(t<0||t>=25)&&((null==e||!(e<0||e>=60))&&(null==i||!(i<0||i>=60)))}const Z=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function J(t,e,i={}){e=String(e);const r=e.match(Z);if(r){const n=q(i.originalDate||t,i);e=r.reduce((function(t,e){if("'"===e[0])return t;const r=t.indexOf(e),s="'"===t[r-1],o=t.replace(e,"'"+A[e[0]](n,e,i)+"'");return s?o.substring(0,r-1)+o.substring(r+1):o}),e)}return(0,n.GP)(t,e,i)}function K(t,e,i){t=q(t,i);const n=y(e,t,!0),r=new Date(t.getTime()-n),s=new Date(0);return s.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()),s.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()),s}function tt(t,e,i,n){return n={...n,timeZone:e,originalDate:t},J(K(t,e,{timeZone:n.timeZone}),i,n)}},627:(t,e,i)=>{"use strict";i.d(e,{q:()=>r});let n={};function r(){return n}},5325:(t,e,i)=>{"use strict";i.d(e,{m:()=>o});const n=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},r=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},s=(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],s=i[1],o=i[2];if(!o)return n(t,e);let a;switch(s){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",n(s,e)).replace("{{time}}",r(o,e))},o={p:r,P:s}},8637:(t,e,i)=>{"use strict";i.d(e,{G:()=>r});var n=i(8494);function r(t){const e=(0,n.a)(t),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),+t-+i}},7492:(t,e,i)=>{"use strict";i.d(e,{Ss:()=>l,ef:()=>o,xM:()=>a});const n=/^D+$/,r=/^Y+$/,s=["D","DD","YY","YYYY"];function o(t){return n.test(t)}function a(t){return r.test(t)}function l(t,e,i){const n=u(t,e,i);if(console.warn(n),s.includes(t))throw new RangeError(n)}function u(t,e,i){const n="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${n} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}},2278:(t,e,i)=>{"use strict";i.d(e,{Cg:()=>s,_P:()=>l,_m:()=>a,my:()=>n,s0:()=>o,w4:()=>r});Math.pow(10,8);const n=6048e5,r=864e5,s=6e4,o=36e5,a=1e3,l=Symbol.for("constructDateFrom")},6862:(t,e,i)=>{"use strict";i.d(e,{w:()=>r});var n=i(2278);function r(t,e){return"function"===typeof t?t(e):t&&"object"===typeof t&&n._P in t?t[n._P](e):t instanceof Date?new t.constructor(e):new Date(e)}},686:(t,e,i)=>{"use strict";i.d(e,{GP:()=>C});var n=i(3262),r=i(627),s=i(8637),o=i(6862);function a(t,...e){const i=o.w.bind(null,t||e.find((t=>"object"===typeof t)));return e.map(i)}var l=i(2278),u=i(8494);function c(t,e){const i=(0,u.a)(t,e?.in);return i.setHours(0,0,0,0),i}function h(t,e,i){const[n,r]=a(i?.in,t,e),o=c(n),u=c(r),h=+o-(0,s.G)(o),d=+u-(0,s.G)(u);return Math.round((h-d)/l.w4)}function d(t,e){const i=(0,u.a)(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}function f(t,e){const i=(0,u.a)(t,e?.in),n=h(i,d(i)),r=n+1;return r}var p=i(6880),m=i(1919),g=i(2755),_=i(5794);function y(t,e){const i=t<0?"-":"",n=Math.abs(t).toString().padStart(e,"0");return i+n}const v={y(t,e){const i=t.getFullYear(),n=i>0?i:1-i;return y("yy"===e?n%100:n,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):y(i+1,2)},d(t,e){return y(t.getDate(),e.length)},a(t,e){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return"am"===i?"a.m.":"p.m."}},h(t,e){return y(t.getHours()%12||12,e.length)},H(t,e){return y(t.getHours(),e.length)},m(t,e){return y(t.getMinutes(),e.length)},s(t,e){return y(t.getSeconds(),e.length)},S(t,e){const i=e.length,n=t.getMilliseconds(),r=Math.trunc(n*Math.pow(10,i-3));return y(r,e.length)}},w={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},b={G:function(t,e,i){const n=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})}},y:function(t,e,i){if("yo"===e){const e=t.getFullYear(),n=e>0?e:1-e;return i.ordinalNumber(n,{unit:"year"})}return v.y(t,e)},Y:function(t,e,i,n){const r=(0,_.h)(t,n),s=r>0?r:1-r;if("YY"===e){const t=s%100;return y(t,2)}return"Yo"===e?i.ordinalNumber(s,{unit:"year"}):y(s,e.length)},R:function(t,e){const i=(0,m.p)(t);return y(i,e.length)},u:function(t,e){const i=t.getFullYear();return y(i,e.length)},Q:function(t,e,i){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return y(n,2);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,i){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return y(n,2);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,i){const n=t.getMonth();switch(e){case"M":case"MM":return v.M(t,e);case"Mo":return i.ordinalNumber(n+1,{unit:"month"});case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,i){const n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return y(n+1,2);case"Lo":return i.ordinalNumber(n+1,{unit:"month"});case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,i,n){const r=(0,g.N)(t,n);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):y(r,e.length)},I:function(t,e,i){const n=(0,p.s)(t);return"Io"===e?i.ordinalNumber(n,{unit:"week"}):y(n,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):v.d(t,e)},D:function(t,e,i){const n=f(t);return"Do"===e?i.ordinalNumber(n,{unit:"dayOfYear"}):y(n,e.length)},E:function(t,e,i){const n=t.getDay();switch(e){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,i,n){const r=t.getDay(),s=(r-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return y(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});case"eeee":default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,n){const r=t.getDay(),s=(r-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return y(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});case"cccc":default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){const n=t.getDay(),r=0===n?7:n;switch(e){case"i":return String(r);case"ii":return y(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(n,{width:"short",context:"formatting"});case"iiii":default:return i.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,i){const n=t.getHours(),r=n/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,i){const n=t.getHours();let r;switch(r=12===n?w.noon:0===n?w.midnight:n/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,i){const n=t.getHours();let r;switch(r=n>=17?w.evening:n>=12?w.afternoon:n>=4?w.morning:w.night,e){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),i.ordinalNumber(e,{unit:"hour"})}return v.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):v.H(t,e)},K:function(t,e,i){const n=t.getHours()%12;return"Ko"===e?i.ordinalNumber(n,{unit:"hour"}):y(n,e.length)},k:function(t,e,i){let n=t.getHours();return 0===n&&(n=24),"ko"===e?i.ordinalNumber(n,{unit:"hour"}):y(n,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):v.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):v.s(t,e)},S:function(t,e){return v.S(t,e)},X:function(t,e,i){const n=t.getTimezoneOffset();if(0===n)return"Z";switch(e){case"X":return S(n);case"XXXX":case"XX":return D(n);case"XXXXX":case"XXX":default:return D(n,":")}},x:function(t,e,i){const n=t.getTimezoneOffset();switch(e){case"x":return S(n);case"xxxx":case"xx":return D(n);case"xxxxx":case"xxx":default:return D(n,":")}},O:function(t,e,i){const n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+x(n,":");case"OOOO":default:return"GMT"+D(n,":")}},z:function(t,e,i){const n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+x(n,":");case"zzzz":default:return"GMT"+D(n,":")}},t:function(t,e,i){const n=Math.trunc(+t/1e3);return y(n,e.length)},T:function(t,e,i){return y(+t,e.length)}};function x(t,e=""){const i=t>0?"-":"+",n=Math.abs(t),r=Math.trunc(n/60),s=n%60;return 0===s?i+String(r):i+String(r)+e+y(s,2)}function S(t,e){if(t%60===0){const e=t>0?"-":"+";return e+y(Math.abs(t)/60,2)}return D(t,e)}function D(t,e=""){const i=t>0?"-":"+",n=Math.abs(t),r=y(Math.trunc(n/60),2),s=y(n%60,2);return i+r+e+s}var T=i(5325),A=i(7492),k=i(3221);const E=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,M=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,R=/^'([^]*?)'?$/,P=/''/g,O=/[a-zA-Z]/;function C(t,e,i){const s=(0,r.q)(),o=i?.locale??s.locale??n.c,a=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,l=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,c=(0,u.a)(t,i?.in);if(!(0,k.f)(c))throw new RangeError("Invalid time value");let h=e.match(M).map((t=>{const e=t[0];if("p"===e||"P"===e){const i=T.m[e];return i(t,o.formatLong)}return t})).join("").match(E).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:L(t)};if(b[e])return{isToken:!0,value:t};if(e.match(O))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));o.localize.preprocessor&&(h=o.localize.preprocessor(c,h));const d={firstWeekContainsDate:a,weekStartsOn:l,locale:o};return h.map((n=>{if(!n.isToken)return n.value;const r=n.value;(!i?.useAdditionalWeekYearTokens&&(0,A.xM)(r)||!i?.useAdditionalDayOfYearTokens&&(0,A.ef)(r))&&(0,A.Ss)(r,e,String(t));const s=b[r[0]];return s(c,r,o.localize,d)})).join("")}function L(t){const e=t.match(R);return e?e[1].replace(P,"'"):t}},6880:(t,e,i)=>{"use strict";i.d(e,{s:()=>u});var n=i(2278),r=i(8653),s=i(6862),o=i(1919);function a(t,e){const i=(0,o.p)(t,e),n=(0,s.w)(e?.in||t,0);return n.setFullYear(i,0,4),n.setHours(0,0,0,0),(0,r.b)(n)}var l=i(8494);function u(t,e){const i=(0,l.a)(t,e?.in),s=+(0,r.b)(i)-+a(i);return Math.round(s/n.my)+1}},1919:(t,e,i)=>{"use strict";i.d(e,{p:()=>o});var n=i(6862),r=i(8653),s=i(8494);function o(t,e){const i=(0,s.a)(t,e?.in),o=i.getFullYear(),a=(0,n.w)(i,0);a.setFullYear(o+1,0,4),a.setHours(0,0,0,0);const l=(0,r.b)(a),u=(0,n.w)(i,0);u.setFullYear(o,0,4),u.setHours(0,0,0,0);const c=(0,r.b)(u);return i.getTime()>=l.getTime()?o+1:i.getTime()>=c.getTime()?o:o-1}},2755:(t,e,i)=>{"use strict";i.d(e,{N:()=>c});var n=i(2278),r=i(9862),s=i(627),o=i(6862),a=i(5794);function l(t,e){const i=(0,s.q)(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,l=(0,a.h)(t,e),u=(0,o.w)(e?.in||t,0);u.setFullYear(l,0,n),u.setHours(0,0,0,0);const c=(0,r.k)(u,e);return c}var u=i(8494);function c(t,e){const i=(0,u.a)(t,e?.in),s=+(0,r.k)(i,e)-+l(i,e);return Math.round(s/n.my)+1}},5794:(t,e,i)=>{"use strict";i.d(e,{h:()=>a});var n=i(627),r=i(6862),s=i(9862),o=i(8494);function a(t,e){const i=(0,o.a)(t,e?.in),a=i.getFullYear(),l=(0,n.q)(),u=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1,c=(0,r.w)(e?.in||t,0);c.setFullYear(a+1,0,u),c.setHours(0,0,0,0);const h=(0,s.k)(c,e),d=(0,r.w)(e?.in||t,0);d.setFullYear(a,0,u),d.setHours(0,0,0,0);const f=(0,s.k)(d,e);return+i>=+h?a+1:+i>=+f?a:a-1}},3221:(t,e,i)=>{"use strict";function n(t){return t instanceof Date||"object"===typeof t&&"[object Date]"===Object.prototype.toString.call(t)}i.d(e,{f:()=>s});var r=i(8494);function s(t){return!(!n(t)&&"number"!==typeof t||isNaN(+(0,r.a)(t)))}},3262:(t,e,i)=>{"use strict";i.d(e,{c:()=>q});const n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=(t,e,i)=>{let r;const s=n[t];return r="string"===typeof s?s:1===e?s.one:s.other.replace("{{count}}",e.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+r:r+" ago":r};function s(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth,n=t.formats[i]||t.formats[t.defaultWidth];return n}}const o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},l={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u={date:s({formats:o,defaultWidth:"full"}),time:s({formats:a,defaultWidth:"full"}),dateTime:s({formats:l,defaultWidth:"full"})},c={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},h=(t,e,i,n)=>c[t];function d(t){return(e,i)=>{const n=i?.context?String(i.context):"standalone";let r;if("formatting"===n&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,n=i?.width?String(i.width):e;r=t.formattingValues[n]||t.formattingValues[e]}else{const e=t.defaultWidth,n=i?.width?String(i.width):t.defaultWidth;r=t.values[n]||t.values[e]}const s=t.argumentCallback?t.argumentCallback(e):e;return r[s]}}const f={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},p={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},m={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},g={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},y={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},v=(t,e)=>{const i=Number(t),n=i%100;if(n>20||n<10)switch(n%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},w={ordinalNumber:v,era:d({values:f,defaultWidth:"wide"}),quarter:d({values:p,defaultWidth:"wide",argumentCallback:t=>t-1}),month:d({values:m,defaultWidth:"wide"}),day:d({values:g,defaultWidth:"wide"}),dayPeriod:d({values:_,defaultWidth:"wide",formattingValues:y,defaultFormattingWidth:"wide"})};function b(t){return(e,i={})=>{const n=i.width,r=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;const o=s[0],a=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?S(a,(t=>t.test(o))):x(a,(t=>t.test(o)));let u;u=t.valueCallback?t.valueCallback(l):l,u=i.valueCallback?i.valueCallback(u):u;const c=e.slice(o.length);return{value:u,rest:c}}}function x(t,e){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i}function S(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i}function D(t){return(e,i={})=>{const n=e.match(t.matchPattern);if(!n)return null;const r=n[0],s=e.match(t.parsePattern);if(!s)return null;let o=t.valueCallback?t.valueCallback(s[0]):s[0];o=i.valueCallback?i.valueCallback(o):o;const a=e.slice(r.length);return{value:o,rest:a}}}const T=/^(\d+)(th|st|nd|rd)?/i,A=/\d+/i,k={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},E={any:[/^b/i,/^(a|c)/i]},M={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},R={any:[/1/i,/2/i,/3/i,/4/i]},P={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},O={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},C={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},L={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},I={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},N={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Y={ordinalNumber:D({matchPattern:T,parsePattern:A,valueCallback:t=>parseInt(t,10)}),era:b({matchPatterns:k,defaultMatchWidth:"wide",parsePatterns:E,defaultParseWidth:"any"}),quarter:b({matchPatterns:M,defaultMatchWidth:"wide",parsePatterns:R,defaultParseWidth:"any",valueCallback:t=>t+1}),month:b({matchPatterns:P,defaultMatchWidth:"wide",parsePatterns:O,defaultParseWidth:"any"}),day:b({matchPatterns:C,defaultMatchWidth:"wide",parsePatterns:L,defaultParseWidth:"any"}),dayPeriod:b({matchPatterns:I,defaultMatchWidth:"any",parsePatterns:N,defaultParseWidth:"any"})},q={code:"en-US",formatDistance:r,formatLong:u,formatRelative:h,localize:w,match:Y,options:{weekStartsOn:0,firstWeekContainsDate:1}}},7456:(t,e,i)=>{"use strict";i.d(e,{qg:()=>kt});var n=i(3262),r=i(5325),s=i(7492),o=i(6862),a=i(627);function l(){return Object.assign({},(0,a.q)())}var u=i(8494);function c(t,e){const i=h(e)?new e(0):(0,o.w)(e,0);return i.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),i.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),i}function h(t){return"function"===typeof t&&t.prototype?.constructor===t}const d=10;class f{subPriority=0;validate(t,e){return!0}}class p extends f{constructor(t,e,i,n,r){super(),this.value=t,this.validateValue=e,this.setValue=i,this.priority=n,r&&(this.subPriority=r)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,i){return this.setValue(t,e,this.value,i)}}class m extends f{priority=d;subPriority=-1;constructor(t,e){super(),this.context=t||(t=>(0,o.w)(e,t))}set(t,e){return e.timestampIsSet?t:(0,o.w)(t,c(t,this.context))}}class g{run(t,e,i,n){const r=this.parse(t,e,i,n);return r?{setter:new p(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(t,e,i){return!0}}class _ extends g{priority=140;parse(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});case"GGGG":default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}set(t,e,i){return e.era=i,t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]}var y=i(2278);const v={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},w={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function b(t,e){return t?{value:e(t.value),rest:t.rest}:t}function x(t,e){const i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function S(t,e){const i=e.match(t);if(!i)return null;if("Z"===i[0])return{value:0,rest:e.slice(1)};const n="+"===i[1]?1:-1,r=i[2]?parseInt(i[2],10):0,s=i[3]?parseInt(i[3],10):0,o=i[5]?parseInt(i[5],10):0;return{value:n*(r*y.s0+s*y.Cg+o*y._m),rest:e.slice(i[0].length)}}function D(t){return x(v.anyDigitsSigned,t)}function T(t,e){switch(t){case 1:return x(v.singleDigit,e);case 2:return x(v.twoDigits,e);case 3:return x(v.threeDigits,e);case 4:return x(v.fourDigits,e);default:return x(new RegExp("^\\d{1,"+t+"}"),e)}}function A(t,e){switch(t){case 1:return x(v.singleDigitSigned,e);case 2:return x(v.twoDigitsSigned,e);case 3:return x(v.threeDigitsSigned,e);case 4:return x(v.fourDigitsSigned,e);default:return x(new RegExp("^-?\\d{1,"+t+"}"),e)}}function k(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function E(t,e){const i=e>0,n=i?e:1-e;let r;if(n<=50)r=t||100;else{const e=n+50,i=100*Math.trunc(e/100),s=t>=e%100;r=t+i-(s?100:0)}return i?r:1-r}function M(t){return t%400===0||t%4===0&&t%100!==0}class R extends g{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,e,i){const n=t=>({year:t,isTwoDigitYear:"yy"===e});switch(e){case"y":return b(T(4,t),n);case"yo":return b(i.ordinalNumber(t,{unit:"year"}),n);default:return b(T(e.length,t),n)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i){const n=t.getFullYear();if(i.isTwoDigitYear){const e=E(i.year,n);return t.setFullYear(e,0,1),t.setHours(0,0,0,0),t}const r="era"in e&&1!==e.era?1-i.year:i.year;return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}var P=i(5794),O=i(9862);class C extends g{priority=130;parse(t,e,i){const n=t=>({year:t,isTwoDigitYear:"YY"===e});switch(e){case"Y":return b(T(4,t),n);case"Yo":return b(i.ordinalNumber(t,{unit:"year"}),n);default:return b(T(e.length,t),n)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i,n){const r=(0,P.h)(t,n);if(i.isTwoDigitYear){const e=E(i.year,r);return t.setFullYear(e,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),(0,O.k)(t,n)}const s="era"in e&&1!==e.era?1-i.year:i.year;return t.setFullYear(s,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),(0,O.k)(t,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}var L=i(8653);class I extends g{priority=130;parse(t,e){return A("R"===e?4:e.length,t)}set(t,e,i){const n=(0,o.w)(t,0);return n.setFullYear(i,0,4),n.setHours(0,0,0,0),(0,L.b)(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class N extends g{priority=130;parse(t,e){return A("u"===e?4:e.length,t)}set(t,e,i){return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class Y extends g{priority=120;parse(t,e,i){switch(e){case"Q":case"QQ":return T(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth(3*(i-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class q extends g{priority=120;parse(t,e,i){switch(e){case"q":case"qq":return T(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth(3*(i-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class F extends g{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,e,i){const n=t=>t-1;switch(e){case"M":return b(x(v.month,t),n);case"MM":return b(T(2,t),n);case"Mo":return b(i.ordinalNumber(t,{unit:"month"}),n);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}}class H extends g{priority=110;parse(t,e,i){const n=t=>t-1;switch(e){case"L":return b(x(v.month,t),n);case"LL":return b(T(2,t),n);case"Lo":return b(i.ordinalNumber(t,{unit:"month"}),n);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}var B=i(2755);function X(t,e,i){const n=(0,u.a)(t,i?.in),r=(0,B.N)(n,i)-e;return n.setDate(n.getDate()-7*r),(0,u.a)(n,i?.in)}class W extends g{priority=100;parse(t,e,i){switch(e){case"w":return x(v.week,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return T(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i,n){return(0,O.k)(X(t,i,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}var z=i(6880);function j(t,e,i){const n=(0,u.a)(t,i?.in),r=(0,z.s)(n,i)-e;return n.setDate(n.getDate()-7*r),n}class U extends g{priority=100;parse(t,e,i){switch(e){case"I":return x(v.week,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return T(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i){return(0,L.b)(j(t,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const G=[31,28,31,30,31,30,31,31,30,31,30,31],$=[31,29,31,30,31,30,31,31,30,31,30,31];class V extends g{priority=90;subPriority=1;parse(t,e,i){switch(e){case"d":return x(v.date,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return T(e.length,t)}}validate(t,e){const i=t.getFullYear(),n=M(i),r=t.getMonth();return n?e>=1&&e<=$[r]:e>=1&&e<=G[r]}set(t,e,i){return t.setDate(i),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class Q extends g{priority=90;subpriority=1;parse(t,e,i){switch(e){case"D":case"DD":return x(v.dayOfYear,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return T(e.length,t)}}validate(t,e){const i=t.getFullYear(),n=M(i);return n?e>=1&&e<=366:e>=1&&e<=365}set(t,e,i){return t.setMonth(0,i),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function Z(t,e,i){const n=(0,u.a)(t,i?.in);return isNaN(e)?(0,o.w)(i?.in||t,NaN):e?(n.setDate(n.getDate()+e),n):n}function J(t,e,i){const n=(0,a.q)(),r=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=(0,u.a)(t,i?.in),o=s.getDay(),l=e%7,c=(l+7)%7,h=7-r,d=e<0||e>6?e-(o+h)%7:(c+h)%7-(o+h)%7;return Z(s,d,i)}class K extends g{priority=90;parse(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,n){return t=J(t,i,n),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]}class tt extends g{priority=90;parse(t,e,i,n){const r=t=>{const e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return b(T(e.length,t),r);case"eo":return b(i.ordinalNumber(t,{unit:"day"}),r);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,n){return t=J(t,i,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class et extends g{priority=90;parse(t,e,i,n){const r=t=>{const e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return b(T(e.length,t),r);case"co":return b(i.ordinalNumber(t,{unit:"day"}),r);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,n){return t=J(t,i,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function it(t,e){const i=(0,u.a)(t,e?.in).getDay();return 0===i?7:i}function nt(t,e,i){const n=(0,u.a)(t,i?.in),r=it(n,i),s=e-r;return Z(n,s,i)}class rt extends g{priority=90;parse(t,e,i){const n=t=>0===t?7:t;switch(e){case"i":case"ii":return T(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return b(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return b(i.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return b(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),n);case"iiii":default:return b(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),n)}}validate(t,e){return e>=1&&e<=7}set(t,e,i){return t=nt(t,i),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class st extends g{priority=80;parse(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(k(i),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]}class ot extends g{priority=80;parse(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(k(i),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]}class at extends g{priority=80;parse(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(k(i),0,0,0),t}incompatibleTokens=["a","b","t","T"]}class lt extends g{priority=70;parse(t,e,i){switch(e){case"h":return x(v.hour12h,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return T(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,i){const n=t.getHours()>=12;return n&&i<12?t.setHours(i+12,0,0,0):n||12!==i?t.setHours(i,0,0,0):t.setHours(0,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]}class ut extends g{priority=70;parse(t,e,i){switch(e){case"H":return x(v.hour23h,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return T(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,i){return t.setHours(i,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]}class ct extends g{priority=70;parse(t,e,i){switch(e){case"K":return x(v.hour11h,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return T(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,i){const n=t.getHours()>=12;return n&&i<12?t.setHours(i+12,0,0,0):t.setHours(i,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]}class ht extends g{priority=70;parse(t,e,i){switch(e){case"k":return x(v.hour24h,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return T(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,i){const n=i<=24?i%24:i;return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]}class dt extends g{priority=60;parse(t,e,i){switch(e){case"m":return x(v.minute,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return T(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setMinutes(i,0,0),t}incompatibleTokens=["t","T"]}class ft extends g{priority=50;parse(t,e,i){switch(e){case"s":return x(v.second,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return T(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setSeconds(i,0),t}incompatibleTokens=["t","T"]}class pt extends g{priority=30;parse(t,e){const i=t=>Math.trunc(t*Math.pow(10,3-e.length));return b(T(e.length,t),i)}set(t,e,i){return t.setMilliseconds(i),t}incompatibleTokens=["t","T"]}var mt=i(8637);class gt extends g{priority=10;parse(t,e){switch(e){case"X":return S(w.basicOptionalMinutes,t);case"XX":return S(w.basic,t);case"XXXX":return S(w.basicOptionalSeconds,t);case"XXXXX":return S(w.extendedOptionalSeconds,t);case"XXX":default:return S(w.extended,t)}}set(t,e,i){return e.timestampIsSet?t:(0,o.w)(t,t.getTime()-(0,mt.G)(t)-i)}incompatibleTokens=["t","T","x"]}class _t extends g{priority=10;parse(t,e){switch(e){case"x":return S(w.basicOptionalMinutes,t);case"xx":return S(w.basic,t);case"xxxx":return S(w.basicOptionalSeconds,t);case"xxxxx":return S(w.extendedOptionalSeconds,t);case"xxx":default:return S(w.extended,t)}}set(t,e,i){return e.timestampIsSet?t:(0,o.w)(t,t.getTime()-(0,mt.G)(t)-i)}incompatibleTokens=["t","T","X"]}class yt extends g{priority=40;parse(t){return D(t)}set(t,e,i){return[(0,o.w)(t,1e3*i),{timestampIsSet:!0}]}incompatibleTokens="*"}class vt extends g{priority=20;parse(t){return D(t)}set(t,e,i){return[(0,o.w)(t,i),{timestampIsSet:!0}]}incompatibleTokens="*"}const wt={G:new _,y:new R,Y:new C,R:new I,u:new N,Q:new Y,q:new q,M:new F,L:new H,w:new W,I:new U,d:new V,D:new Q,E:new K,e:new tt,c:new et,i:new rt,a:new st,b:new ot,B:new at,h:new lt,H:new ut,K:new ct,k:new ht,m:new dt,s:new ft,S:new pt,X:new gt,x:new _t,t:new yt,T:new vt},bt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,St=/^'([^]*?)'?$/,Dt=/''/g,Tt=/\S/,At=/[a-zA-Z]/;function kt(t,e,i,a){const c=()=>(0,o.w)(a?.in||i,NaN),h=l(),d=a?.locale??h.locale??n.c,f=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??h.firstWeekContainsDate??h.locale?.options?.firstWeekContainsDate??1,p=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??h.weekStartsOn??h.locale?.options?.weekStartsOn??0;if(!e)return t?c():(0,u.a)(i,a?.in);const g={firstWeekContainsDate:f,weekStartsOn:p,locale:d},_=[new m(a?.in,i)],y=e.match(xt).map((t=>{const e=t[0];if(e in r.m){const i=r.m[e];return i(t,d.formatLong)}return t})).join("").match(bt),v=[];for(let n of y){!a?.useAdditionalWeekYearTokens&&(0,s.xM)(n)&&(0,s.Ss)(n,e,t),!a?.useAdditionalDayOfYearTokens&&(0,s.ef)(n)&&(0,s.Ss)(n,e,t);const i=n[0],r=wt[i];if(r){const{incompatibleTokens:e}=r;if(Array.isArray(e)){const t=v.find((t=>e.includes(t.token)||t.token===i));if(t)throw new RangeError(`The format string mustn't contain \`${t.fullToken}\` and \`${n}\` at the same time`)}else if("*"===r.incompatibleTokens&&v.length>0)throw new RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);v.push({token:i,fullToken:n});const s=r.run(t,n,d.match,g);if(!s)return c();_.push(s.setter),t=s.rest}else{if(i.match(At))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===n?n="'":"'"===i&&(n=Et(n)),0!==t.indexOf(n))return c();t=t.slice(n.length)}}if(t.length>0&&Tt.test(t))return c();const w=_.map((t=>t.priority)).sort(((t,e)=>e-t)).filter(((t,e,i)=>i.indexOf(t)===e)).map((t=>_.filter((e=>e.priority===t)).sort(((t,e)=>e.subPriority-t.subPriority)))).map((t=>t[0]));let b=(0,u.a)(i,a?.in);if(isNaN(+b))return c();const x={};for(const n of w){if(!n.validate(b,g))return c();const t=n.set(b,x,g);Array.isArray(t)?(b=t[0],Object.assign(x,t[1])):b=t}return b}function Et(t){return t.match(St)[1].replace(Dt,"'")}},5179:(t,e,i)=>{"use strict";i.d(e,{H:()=>o});var n=i(2278),r=i(6862),s=i(8494);function o(t,e){const i=()=>(0,r.w)(e?.in,NaN),n=e?.additionalDigits??2,o=h(t);let a;if(o.date){const t=d(o.date,n);a=f(t.restDateString,t.year)}if(!a||isNaN(+a))return i();const l=+a;let u,c=0;if(o.time&&(c=m(o.time),isNaN(c)))return i();if(!o.timezone){const t=new Date(l+c),i=(0,s.a)(0,e?.in);return i.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),i.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),i}return u=_(o.timezone),isNaN(u)?i():(0,s.a)(l+c+u,e?.in)}const a={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function h(t){const e={},i=t.split(a.dateTimeDelimiter);let n;if(i.length>2)return e;if(/:/.test(i[0])?n=i[0]:(e.date=i[0],n=i[1],a.timeZoneDelimiter.test(e.date)&&(e.date=t.split(a.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){const t=a.timezone.exec(n);t?(e.time=n.replace(t[1],""),e.timezone=t[1]):e.time=n}return e}function d(t,e){const i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(i);if(!n)return{year:NaN,restDateString:""};const r=n[1]?parseInt(n[1]):null,s=n[2]?parseInt(n[2]):null;return{year:null===s?r:100*s,restDateString:t.slice((n[1]||n[2]).length)}}function f(t,e){if(null===e)return new Date(NaN);const i=t.match(l);if(!i)return new Date(NaN);const n=!!i[4],r=p(i[1]),s=p(i[2])-1,o=p(i[3]),a=p(i[4]),u=p(i[5])-1;if(n)return S(e,a,u)?y(e,a,u):new Date(NaN);{const t=new Date(0);return b(e,s,o)&&x(e,r)?(t.setUTCFullYear(e,s,Math.max(r,o)),t):new Date(NaN)}}function p(t){return t?parseInt(t):1}function m(t){const e=t.match(u);if(!e)return NaN;const i=g(e[1]),r=g(e[2]),s=g(e[3]);return D(i,r,s)?i*n.s0+r*n.Cg+1e3*s:NaN}function g(t){return t&&parseFloat(t.replace(",","."))||0}function _(t){if("Z"===t)return 0;const e=t.match(c);if(!e)return 0;const i="+"===e[1]?-1:1,r=parseInt(e[2]),s=e[3]&&parseInt(e[3])||0;return T(r,s)?i*(r*n.s0+s*n.Cg):NaN}function y(t,e,i){const n=new Date(0);n.setUTCFullYear(t,0,4);const r=n.getUTCDay()||7,s=7*(e-1)+i+1-r;return n.setUTCDate(n.getUTCDate()+s),n}const v=[31,null,31,30,31,30,31,31,30,31,30,31];function w(t){return t%400===0||t%4===0&&t%100!==0}function b(t,e,i){return e>=0&&e<=11&&i>=1&&i<=(v[e]||(w(t)?29:28))}function x(t,e){return e>=1&&e<=(w(t)?366:365)}function S(t,e,i){return e>=1&&e<=53&&i>=0&&i<=6}function D(t,e,i){return 24===t?0===e&&0===i:i>=0&&i<60&&e>=0&&e<60&&t>=0&&t<25}function T(t,e){return e>=0&&e<=59}},8653:(t,e,i)=>{"use strict";i.d(e,{b:()=>r});var n=i(9862);function r(t,e){return(0,n.k)(t,{...e,weekStartsOn:1})}},9862:(t,e,i)=>{"use strict";i.d(e,{k:()=>s});var n=i(627),r=i(8494);function s(t,e){const i=(0,n.q)(),s=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=(0,r.a)(t,e?.in),a=o.getDay(),l=(a<s?7:0)+a-s;return o.setDate(o.getDate()-l),o.setHours(0,0,0,0),o}},5475:(t,e,i)=>{"use strict";i.d(e,{Y:()=>o});var n=i(2278),r=i(8494);function s(t,e,i){const s=(0,r.a)(t,i?.in);return s.setTime(s.getTime()+e*n.Cg),s}function o(t,e,i){return s(t,-e,i)}},8494:(t,e,i)=>{"use strict";i.d(e,{a:()=>r});var n=i(6862);function r(t,e){return(0,n.w)(e||t,t)}}}]);
23
+ //# sourceMappingURL=581.js.map