const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CC3op8zX.js","./Dp1pzeXC.js","./DwMOgO1-.js"])))=>i.map(i=>d[i]);
import{_ as Ce}from"./Dp1pzeXC.js";import{c as Ee,a as Et,d as he,f as Bt,s as le,e as Ue}from"./DktbhmWA.js";import{w as He,E as $e,F as ze,aQ as Ve,aE as Ge,v as Ye,I as We,f as oe,p as ve,c as J,s as ht,r as X,a as ge,o as ke,b as Ct,d as ee,a5 as Xe,t as fe,g as it,h as ye,u as Ae}from"./CPWcrcMP.js";import{i as we}from"./0jvM7PZf.js";import{I as Oe,h as Se,c as Be,l as Je,e as _e,a as de,s as Me,i as De,m as Ne,A as Wt,r as qe,S as Fe}from"./CNDZS43m.js";import{l as Qe,a as Ze}from"./DUxDMF0-.js";import{p as pe}from"./DICQ4t50.js";import{g as tn}from"./DyeZe3S9.js";import{i as en}from"./CvCfPjaJ.js";import{A as be,P as nn}from"./C_iRly0N.js";import"./CKzwkw8K.js";import{l as Ie,s as Pe,p as rn}from"./DBypTyp2.js";import{b as on}from"./CFyEX9sq.js";import{b as Te}from"./CX78IQmC.js";import{X as an}from"./DeZd3Jxh.js";function sn($,K,...V){var B=$,S=Ve,ct;He(()=>{S!==(S=K())&&(ct&&(Ge(ct),ct=null),ct=ze(()=>S(B,...V)))},$e),Ye&&(B=We)}const un=!1,rr=Object.freeze(Object.defineProperty({__proto__:null,ssr:un},Symbol.toStringTag,{value:"Module"}));function cn($,K){const V=Ie(K,["children","$$slots","$$events","$$legacy"]);/**
 * @license lucide-svelte v0.511.0 - ISC
 *
 * ISC License
 *
 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 *
 */const B=[["circle",{cx:"9",cy:"12",r:"1"}],["circle",{cx:"9",cy:"5",r:"1"}],["circle",{cx:"9",cy:"19",r:"1"}],["circle",{cx:"15",cy:"12",r:"1"}],["circle",{cx:"15",cy:"5",r:"1"}],["circle",{cx:"15",cy:"19",r:"1"}]];Oe($,Pe({name:"grip-vertical"},()=>V,{get iconNode(){return B},children:(S,ct)=>{var Q=Ee(),F=oe(Q);Se(F,K,"default",{}),Et(S,Q)},$$slots:{default:!0}}))}function ln($,K){const V=Ie(K,["children","$$slots","$$events","$$legacy"]);/**
 * @license lucide-svelte v0.511.0 - ISC
 *
 * ISC License
 *
 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 *
 */const B=[["path",{d:"m16 17 5-5-5-5"}],["path",{d:"M21 12H9"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}]];Oe($,Pe({name:"log-out"},()=>V,{get iconNode(){return B},children:(S,ct)=>{var Q=Ee(),F=oe(Q);Se(F,K,"default",{}),Et(S,Q)},$$slots:{default:!0}}))}function fn($,K){const V=Ie(K,["children","$$slots","$$events","$$legacy"]);/**
 * @license lucide-svelte v0.511.0 - ISC
 *
 * ISC License
 *
 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 *
 */const B=[["path",{d:"M4 12h16"}],["path",{d:"M4 18h16"}],["path",{d:"M4 6h16"}]];Oe($,Pe({name:"menu"},()=>V,{get iconNode(){return B},children:(S,ct)=>{var Q=Ee(),F=oe(Q);Se(F,K,"default",{}),Et(S,Q)},$$slots:{default:!0}}))}function dn($,K){const V=Ie(K,["children","$$slots","$$events","$$legacy"]);/**
 * @license lucide-svelte v0.511.0 - ISC
 *
 * ISC License
 *
 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 *
 */const B=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}],["circle",{cx:"12",cy:"7",r:"4"}]];Oe($,Pe({name:"user"},()=>V,{get iconNode(){return B},children:(S,ct)=>{var Q=Ee(),F=oe(Q);Se(F,K,"default",{}),Et(S,Q)},$$slots:{default:!0}}))}he(["click"]);var pn=($,K)=>{var V;return(V=K.onClose)==null?void 0:V.call(K)},hn=($,K)=>{var V;return(V=K.onLogout)==null?void 0:V.call(K)},vn=Bt('<div class="modal modal-open"><div class="modal-box"><h3 class="text-lg font-bold">Are you sure you want to log out?</h3> <div class="modal-action"><button class="btn">Close</button> <button class="btn btn-error">Logout</button></div></div></div>');function gn($,K){ve(K,!0);var V=vn(),B=J(V),S=ht(J(B),2),ct=J(S);ct.__click=[pn,K];var Q=ht(ct,2);Q.__click=[hn,K],X(S),X(B),X(V),Et($,V),ge()}he(["click"]);function mn(){const $=`/users/${Wt.userId}`;pe.url.pathname===$?history.back():tn($)}var yn=Bt("<li><a> </a></li>"),bn=($,K)=>Ct(K,!0),wn=Bt("<li><a> </a></li>"),xn=Bt('<div id="navbar-wrapper" class=" me-4 lg:me-0 sticky top-0 z-50 bg-base-100 lg:bg-opacity-95 lg:backdrop-blur-sm "><div class="container"><nav class="navbar px-0"><div class="navbar-start gap-2"><div class="flex-none lg:hidden"><label for="my-drawer" aria-label="open sidebar"><!></label></div> <div class="min-w-max"><span> </span></div></div> <div class="navbar-center hidden lg:flex"><ul class="menu menu-horizontal menu-sm px-1"></ul></div> <div class="navbar-end gap-3"><button data-tip="Logout"><!></button> <button data-tip="Edit user"><!></button></div></nav> <div class="drawer"><input id="my-drawer" type="checkbox" class="drawer-toggle"/> <div class="drawer-side"><label for="my-drawer" aria-label="close sidebar" class="drawer-overlay"></label> <ul class="menu min-h-fit min-w-60 gap-2 p-2 text-info rounded-md bg-neutral-content"><li class="badge badge-primary text-xl font-bold p-4"> </li> <!></ul></div></div></div></div> <!>',1);function En($,K){ve(K,!0);const V=[{link:"/",label:"Home"},{link:"/devices",label:"Devices"},{link:"/zones",label:"Zones"},{link:"/alarms",label:"Alarms"},{link:"/reports",label:"Reports"},{link:"/users",label:"Users"},{link:"/help",label:"Help"},{link:"/settings",label:"Settings"},{link:"/about",label:"About"}];let B=ee(!1);const S=new Be("Settings/Name"),ct=new Be("$SYS/SerialNumber");let Q=ee(!0);ke(()=>{window.addEventListener("scroll",F),Je()});const F=()=>{Ct(Q,window.scrollY<30)};window.addEventListener("scroll",F),F();const pt=()=>{const n=document.getElementById("my-drawer");n&&(n.checked=!1)};Xe(()=>{window.removeEventListener("scroll",F)});const kt=ye(()=>!Wt.canViewAlarms),Tt=ye(()=>!Wt.canViewReports),gt=ye(()=>!Wt.canViewSettings),Nt=ye(()=>!Wt.canViewUsers),At=ye(()=>V.filter(n=>!(n.link==="/alarms"&&it(kt)||n.link==="/reports"&&it(Tt)||n.link==="/settings"&&it(gt)||n.link==="/users"&&it(Nt))));var Ot=xn(),Z=oe(Ot),at=J(Z),L=J(at),ut=J(L),dt=J(ut),vt=J(dt),jt=J(vt);fn(jt,{class:"h-10 w-10"}),X(vt),X(dt);var Ft=ht(dt,2),St=J(Ft),zt=J(St,!0);X(St),X(Ft),X(ut);var Vt=ht(ut,2),Kt=J(Vt);_e(Kt,21,()=>it(At),De,(n,r)=>{let o=()=>it(r).link,a=()=>it(r).label;var s=yn(),c=J(s),l=J(c,!0);X(c),X(s),fe(f=>{de(s,1,`font-medium ${f??""}`),Me(c,"href",o()),le(l,a())},[()=>pe.url.pathname===o()||pe.url.pathname.startsWith(o()+"/")?"underline":""]),Et(n,s)}),X(Kt),X(Vt);var mt=ht(Vt,2),yt=J(mt);yt.__click=[bn,B];var ne=J(yt);ln(ne,{}),X(yt);var tt=ht(yt,2);tt.__click=[mn];var R=J(tt);dn(R,{}),X(tt),X(mt),X(L);var _t=ht(L,2),Yt=ht(J(_t),2),Xt=ht(J(Yt),2),Jt=J(Xt),i=J(Jt,!0);X(Jt);var u=ht(Jt,2);_e(u,17,()=>it(At),De,(n,r)=>{let o=()=>it(r).link,a=()=>it(r).label;var s=wn(),c=J(s);c.__click=pt;var l=J(c,!0);X(c),X(s),fe(f=>{de(s,1,`text-4xl font-medium ${f??""}`),Me(c,"href",o()),le(l,a())},[()=>pe.url.pathname===o()||pe.url.pathname.startsWith(o()+"/")?"underline":""]),Et(n,s)}),X(Xt),X(Yt),X(_t),X(at),X(Z);var t=ht(Z,2);{var e=n=>{gn(n,{onClose:()=>{Ct(B,!1)},get onLogout(){return Ne.logout}})};we(t,n=>{it(B)&&n(e)})}fe(()=>{de(vt,1,`btn btn-square btn-ghost ${be.value==="dark"?"text-primary":"text-secondary"}`),de(St,1,`font-bold text-xl md:text-2xl ${be.value==="dark"?"text-primary-content":"text-secondary"}`),le(zt,S.value),de(yt,1,`btn btn-sm btn-ghost tooltip tooltip-bottom tooltip-secondary text-primary ${be.value==="dark"?"text-primary":"text-secondary"}`),de(tt,1,`btn btn-sm btn-ghost tooltip tooltip-bottom tooltip-secondary text-primary ${be.value==="dark"?"text-primary":"text-secondary"}`),le(i,ct.value)}),Et($,Ot),ge()}he(["click"]);var kn=Bt('<footer class="bg-base-100 text-base-content"><div class="py-2 text-center text-sm me-5 lg:me-0"> </div></footer>');function On($,K){ve(K,!1);const V=new Date().getFullYear();en();var B=kn(),S=J(B),ct=J(S);X(S),X(B),fe(()=>le(ct,`Copyright © ${V??""} Function AS`)),Et($,B),ge()}he(["click"]);var Sn=($,K)=>$.key==="Enter"&&K,In=Bt('<div class="text-error text-sm mt-1"> </div>'),Pn=Bt('<h1 class="text-2xl font-bold text-center mb-6">Welcome! Please log in.</h1> <form class="form-control space-y-4"><div class="mt-3"><div class="block text-sm font-medium">Username</div> <div class="mt-1"><input type="text" placeholder="Enter username" class="input input-bordered w-full"/></div> <!> <!> <button type="submit" class="btn btn-primary w-full mt-8">Login</button></div></form>',1),Cn=Bt('<div class="flex items-center justify-center text-2xl font-bold gap-2"><span>Loading</span> <span class="loading loading-dots loading-lg translate-y-[4px]"></span></div>'),Tn=Bt('<div class="flex py-4 md:py-56 items-center justify-center"><div class="w-full max-w-md bg-base-200 shadow-xl rounded-lg p-8"><!></div></div>');function An($,K){ve(K,!0);let V=ee(!1),B=ee(""),S=ee(""),ct=sessionStorage.getItem("clientUser")??"",Q=sessionStorage.getItem("clientToken")??"",F=sessionStorage.getItem("clientId")??"",pt=ee("");async function kt(){if(it(B)&&it(S)){const L=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({Username:it(B),Password:it(S)}),credentials:"include"});L.ok?(Ct(pt,""),await gt()):L.status===429?Ct(pt,"Locked out! Please try again later."):Ct(pt,"Incorrect username or password!")}}function Tt(L,ut,dt){Ne.connectWithCredentials(L,ut,dt)}async function gt(){if(!ct&&!Q&&!F){const L=await fetch("/api/auth/token",{credentials:"include"});if(!L.ok)Ct(V,!0);else{const ut=await L.text(),dt=JSON.parse(ut);Ct(B,dt.username,!0);const vt=dt.clientId,jt=dt.token;sessionStorage.setItem("clientUser",it(B)),sessionStorage.setItem("clientToken",jt),sessionStorage.setItem("clientId",vt),Tt(it(B),jt,vt)}}else Tt(ct,Q,F)}ke(async()=>{await gt()});var Nt=Tn(),At=J(Nt),Ot=J(At);{var Z=L=>{var ut=Pn(),dt=ht(oe(ut),2);dt.__keydown=[Sn,kt];var vt=J(dt),jt=ht(J(vt),2),Ft=J(jt);qe(Ft),X(jt);var St=ht(jt,2);nn(St,{placeholder:"Enter password",minLength:0,maxLength:512,minUpper:0,minDigits:0,minSymbols:0,checkErrors:void 0,get password(){return it(S)},set password(mt){Ct(S,mt,!0)}});var zt=ht(St,2);{var Vt=mt=>{var yt=In(),ne=J(yt,!0);X(yt),fe(()=>le(ne,it(pt))),Et(mt,yt)};we(zt,mt=>{it(pt)&&mt(Vt)})}var Kt=ht(zt,2);X(vt),X(dt),fe(()=>Kt.disabled=!it(B)||!it(S)),Ue("submit",dt,kt),on(Ft,()=>it(B),mt=>Ct(B,mt)),Et(L,ut)},at=L=>{var ut=Cn();Et(L,ut)};we(Ot,L=>{it(V)?L(Z):L(at,!1)})}X(At),X(Nt),Et($,Nt),ge()}he(["keydown"]);var or=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _n($){return $&&$.__esModule&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$}function ir($){if(Object.prototype.hasOwnProperty.call($,"__esModule"))return $;var K=$.default;if(typeof K=="function"){var V=function B(){return this instanceof B?Reflect.construct(K,arguments,this.constructor):K.apply(this,arguments)};V.prototype=K.prototype}else V={};return Object.defineProperty(V,"__esModule",{value:!0}),Object.keys($).forEach(function(B){var S=Object.getOwnPropertyDescriptor($,B);Object.defineProperty(V,B,S.get?S:{enumerable:!0,get:function(){return $[B]}})}),V}var xe={exports:{}};/*!
 * 
 *   simple-keyboard v3.8.62
 *   https://github.com/hodgef/simple-keyboard
 *
 *   Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
 *
 *   This source code is licensed under the MIT license found in the
 *   LICENSE file in the root directory of this source tree.
 *
 */var Mn=xe.exports,Ke;function Dn(){return Ke||(Ke=1,function($,K){(function(V,B){$.exports=B()})(Mn,function(){return function(){var V={34:function(i,u,t){var e=t(4901);i.exports=function(n){return typeof n=="object"?n!==null:e(n)}},81:function(i,u,t){var e=t(9565),n=t(9306),r=t(8551),o=t(6823),a=t(851),s=TypeError;i.exports=function(c,l){var f=arguments.length<2?a(c):l;if(n(f))return r(e(f,c));throw new s(o(c)+" is not iterable")}},235:function(i,u,t){var e=t(9213).forEach,n=t(4598)("forEach");i.exports=n?[].forEach:function(r){return e(this,r,arguments.length>1?arguments[1]:void 0)}},283:function(i,u,t){var e=t(9504),n=t(9039),r=t(4901),o=t(9297),a=t(3724),s=t(350).CONFIGURABLE,c=t(3706),l=t(1181),f=l.enforce,v=l.get,d=String,p=Object.defineProperty,g=e("".slice),h=e("".replace),y=e([].join),m=a&&!n(function(){return p(function(){},"length",{value:8}).length!==8}),b=String(String).split("String"),x=i.exports=function(w,I,k){g(d(I),0,7)==="Symbol("&&(I="["+h(d(I),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),k&&k.getter&&(I="get "+I),k&&k.setter&&(I="set "+I),(!o(w,"name")||s&&w.name!==I)&&(a?p(w,"name",{value:I,configurable:!0}):w.name=I),m&&k&&o(k,"arity")&&w.length!==k.arity&&p(w,"length",{value:k.arity});try{k&&o(k,"constructor")&&k.constructor?a&&p(w,"prototype",{writable:!1}):w.prototype&&(w.prototype=void 0)}catch{}var E=f(w);return o(E,"source")||(E.source=y(b,typeof I=="string"?I:"")),w};Function.prototype.toString=x(function(){return r(this)&&v(this).source||c(this)},"toString")},298:function(i,u,t){var e=t(2195),n=t(5397),r=t(8480).f,o=t(7680),a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];i.exports.f=function(s){return a&&e(s)==="Window"?function(c){try{return r(c)}catch{return o(a)}}(s):r(n(s))}},350:function(i,u,t){var e=t(3724),n=t(9297),r=Function.prototype,o=e&&Object.getOwnPropertyDescriptor,a=n(r,"name"),s=a&&(function(){}).name==="something",c=a&&(!e||e&&o(r,"name").configurable);i.exports={EXISTS:a,PROPER:s,CONFIGURABLE:c}},397:function(i,u,t){var e=t(7751);i.exports=e("document","documentElement")},421:function(i){i.exports={}},511:function(i,u,t){var e=t(9167),n=t(9297),r=t(1951),o=t(4913).f;i.exports=function(a){var s=e.Symbol||(e.Symbol={});n(s,a)||o(s,a,{value:r.f(a)})}},566:function(i,u,t){var e=t(9504),n=t(9306),r=t(34),o=t(9297),a=t(7680),s=t(616),c=Function,l=e([].concat),f=e([].join),v={};i.exports=s?c.bind:function(d){var p=n(this),g=p.prototype,h=a(arguments,1),y=function(){var m=l(h,a(arguments));return this instanceof y?function(b,x,w){if(!o(v,x)){for(var I=[],k=0;k<x;k++)I[k]="a["+k+"]";v[x]=c("C,a","return new C("+f(I,",")+")")}return v[x](b,w)}(p,m.length,m):p.apply(d,m)};return r(g)&&(y.prototype=g),y}},597:function(i,u,t){var e=t(9039),n=t(8227),r=t(9519),o=n("species");i.exports=function(a){return r>=51||!e(function(){var s=[];return(s.constructor={})[o]=function(){return{foo:1}},s[a](Boolean).foo!==1})}},616:function(i,u,t){var e=t(9039);i.exports=!e(function(){var n=(function(){}).bind();return typeof n!="function"||n.hasOwnProperty("prototype")})},655:function(i,u,t){var e=t(6955),n=String;i.exports=function(r){if(e(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return n(r)}},687:function(i,u,t){var e=t(4913).f,n=t(9297),r=t(8227)("toStringTag");i.exports=function(o,a,s){o&&!s&&(o=o.prototype),o&&!n(o,r)&&e(o,r,{configurable:!0,value:a})}},706:function(i,u,t){var e=t(350).PROPER,n=t(9039),r=t(7452);i.exports=function(o){return n(function(){return!!r[o]()||"​᠎"[o]()!=="​᠎"||e&&r[o].name!==o})}},739:function(i,u,t){var e=t(6518),n=t(9039),r=t(8981),o=t(2777);e({target:"Date",proto:!0,arity:1,forced:n(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1})},{toJSON:function(a){var s=r(this),c=o(s,"number");return typeof c!="number"||isFinite(c)?s.toISOString():null}})},741:function(i){var u=Math.ceil,t=Math.floor;i.exports=Math.trunc||function(e){var n=+e;return(n>0?t:u)(n)}},744:function(i,u,t){var e=t(9565),n=t(9504),r=t(9228),o=t(8551),a=t(34),s=t(7750),c=t(2293),l=t(7829),f=t(8014),v=t(655),d=t(5966),p=t(6682),g=t(8429),h=t(9039),y=g.UNSUPPORTED_Y,m=Math.min,b=n([].push),x=n("".slice),w=!h(function(){var k=/(?:)/,E=k.exec;k.exec=function(){return E.apply(this,arguments)};var P="ab".split(k);return P.length!==2||P[0]!=="a"||P[1]!=="b"}),I="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;r("split",function(k,E,P){var C="0".split(void 0,0).length?function(O,M){return O===void 0&&M===0?[]:e(E,this,O,M)}:E;return[function(O,M){var T=s(this),A=a(O)?d(O,k):void 0;return A?e(A,O,T,M):e(C,v(T),O,M)},function(O,M){var T=o(this),A=v(O);if(!I){var et=P(C,T,A,M,C!==E);if(et.done)return et.value}var q=c(T,RegExp),_=T.unicode,Y=(T.ignoreCase?"i":"")+(T.multiline?"m":"")+(T.unicode?"u":"")+(y?"g":"y"),H=new q(y?"^(?:"+T.source+")":T,Y),U=M===void 0?4294967295:M>>>0;if(U===0)return[];if(A.length===0)return p(H,A)===null?[A]:[];for(var z=0,W=0,D=[];W<A.length;){H.lastIndex=y?0:W;var j,N=p(H,y?x(A,W):A);if(N===null||(j=m(f(H.lastIndex+(y?W:0)),A.length))===z)W=l(A,W,_);else{if(b(D,x(A,z,W)),D.length===U)return D;for(var nt=1;nt<=N.length-1;nt++)if(b(D,N[nt]),D.length===U)return D;W=z=j}}return b(D,x(A,z)),D}]},I||!w,y)},757:function(i,u,t){var e=t(7751),n=t(4901),r=t(1625),o=t(7040),a=Object;i.exports=o?function(s){return typeof s=="symbol"}:function(s){var c=e("Symbol");return n(c)&&r(c.prototype,a(s))}},788:function(i,u,t){var e=t(34),n=t(2195),r=t(8227)("match");i.exports=function(o){var a;return e(o)&&((a=o[r])!==void 0?!!a:n(o)==="RegExp")}},825:function(i,u,t){var e=t(6518),n=t(7751),r=t(8745),o=t(566),a=t(5548),s=t(8551),c=t(34),l=t(2360),f=t(9039),v=n("Reflect","construct"),d=Object.prototype,p=[].push,g=f(function(){function m(){}return!(v(function(){},[],m)instanceof m)}),h=!f(function(){v(function(){})}),y=g||h;e({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(m,b){a(m),s(b);var x=arguments.length<3?m:a(arguments[2]);if(h&&!g)return v(m,b,x);if(m===x){switch(b.length){case 0:return new m;case 1:return new m(b[0]);case 2:return new m(b[0],b[1]);case 3:return new m(b[0],b[1],b[2]);case 4:return new m(b[0],b[1],b[2],b[3])}var w=[null];return r(p,w,b),new(r(o,m,w))}var I=x.prototype,k=l(c(I)?I:d),E=r(m,k,b);return c(E)?E:k}})},851:function(i,u,t){var e=t(6955),n=t(5966),r=t(4117),o=t(6269),a=t(8227)("iterator");i.exports=function(s){if(!r(s))return n(s,a)||n(s,"@@iterator")||o[e(s)]}},926:function(i,u,t){var e=t(9306),n=t(8981),r=t(7055),o=t(6198),a=TypeError,s="Reduce of empty array with no initial value",c=function(l){return function(f,v,d,p){var g=n(f),h=r(g),y=o(g);if(e(v),y===0&&d<2)throw new a(s);var m=l?y-1:0,b=l?-1:1;if(d<2)for(;;){if(m in h){p=h[m],m+=b;break}if(m+=b,l?m<0:y<=m)throw new a(s)}for(;l?m>=0:y>m;m+=b)m in h&&(p=v(p,h[m],m,g));return p}};i.exports={left:c(!1),right:c(!0)}},1034:function(i,u,t){var e=t(9565),n=t(9297),r=t(1625),o=t(5213),a=t(7979),s=RegExp.prototype;i.exports=o.correct?function(c){return c.flags}:function(c){return o.correct||!r(s,c)||n(c,"flags")?c.flags:e(a,c)}},1056:function(i,u,t){var e=t(4913).f;i.exports=function(n,r,o){o in n||e(n,o,{configurable:!0,get:function(){return r[o]},set:function(a){r[o]=a}})}},1072:function(i,u,t){var e=t(1828),n=t(8727);i.exports=Object.keys||function(r){return e(r,n)}},1088:function(i,u,t){var e=t(6518),n=t(9565),r=t(6395),o=t(350),a=t(4901),s=t(3994),c=t(2787),l=t(2967),f=t(687),v=t(6699),d=t(6840),p=t(8227),g=t(6269),h=t(7657),y=o.PROPER,m=o.CONFIGURABLE,b=h.IteratorPrototype,x=h.BUGGY_SAFARI_ITERATORS,w=p("iterator"),I="keys",k="values",E="entries",P=function(){return this};i.exports=function(C,O,M,T,A,et,q){s(M,O,T);var _,Y,H,U=function(bt){if(bt===A&&N)return N;if(!x&&bt&&bt in D)return D[bt];switch(bt){case I:case k:case E:return function(){return new M(this,bt)}}return function(){return new M(this)}},z=O+" Iterator",W=!1,D=C.prototype,j=D[w]||D["@@iterator"]||A&&D[A],N=!x&&j||U(A),nt=O==="Array"&&D.entries||j;if(nt&&(_=c(nt.call(new C)))!==Object.prototype&&_.next&&(r||c(_)===b||(l?l(_,b):a(_[w])||d(_,w,P)),f(_,z,!0,!0),r&&(g[z]=P)),y&&A===k&&j&&j.name!==k&&(!r&&m?v(D,"name",k):(W=!0,N=function(){return n(j,this)})),A)if(Y={values:U(k),keys:et?N:U(I),entries:U(E)},q)for(H in Y)(x||W||!(H in D))&&d(D,H,Y[H]);else e({target:O,proto:!0,forced:x||W},Y);return r&&!q||D[w]===N||d(D,w,N,{name:A}),g[O]=N,Y}},1181:function(i,u,t){var e,n,r,o=t(8622),a=t(4576),s=t(34),c=t(6699),l=t(9297),f=t(7629),v=t(6119),d=t(421),p="Object already initialized",g=a.TypeError,h=a.WeakMap;if(o||f.state){var y=f.state||(f.state=new h);y.get=y.get,y.has=y.has,y.set=y.set,e=function(b,x){if(y.has(b))throw new g(p);return x.facade=b,y.set(b,x),x},n=function(b){return y.get(b)||{}},r=function(b){return y.has(b)}}else{var m=v("state");d[m]=!0,e=function(b,x){if(l(b,m))throw new g(p);return x.facade=b,c(b,m,x),x},n=function(b){return l(b,m)?b[m]:{}},r=function(b){return l(b,m)}}i.exports={set:e,get:n,has:r,enforce:function(b){return r(b)?n(b):e(b,{})},getterFor:function(b){return function(x){var w;if(!s(x)||(w=n(x)).type!==b)throw new g("Incompatible receiver, "+b+" required");return w}}}},1240:function(i,u,t){var e=t(9504);i.exports=e(1.1.valueOf)},1278:function(i,u,t){var e=t(6518),n=t(3724),r=t(5031),o=t(5397),a=t(7347),s=t(4659);e({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(c){for(var l,f,v=o(c),d=a.f,p=r(v),g={},h=0;p.length>h;)(f=d(v,l=p[h++]))!==void 0&&s(g,l,f);return g}})},1291:function(i,u,t){var e=t(741);i.exports=function(n){var r=+n;return r!=r||r===0?0:e(r)}},1296:function(i,u,t){var e=t(4495);i.exports=e&&!!Symbol.for&&!!Symbol.keyFor},1436:function(i,u,t){var e=t(8227)("match");i.exports=function(n){var r=/./;try{"/./"[n](r)}catch{try{return r[e]=!1,"/./"[n](r)}catch{}}return!1}},1469:function(i,u,t){var e=t(7433);i.exports=function(n,r){return new(e(n))(r===0?0:r)}},1480:function(i,u,t){var e=t(6518),n=t(9039),r=t(298).f;e({target:"Object",stat:!0,forced:n(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:r})},1510:function(i,u,t){var e=t(6518),n=t(7751),r=t(9297),o=t(655),a=t(5745),s=t(1296),c=a("string-to-symbol-registry"),l=a("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!s},{for:function(f){var v=o(f);if(r(c,v))return c[v];var d=n("Symbol")(v);return c[v]=d,l[d]=v,d}})},1625:function(i,u,t){var e=t(9504);i.exports=e({}.isPrototypeOf)},1699:function(i,u,t){var e=t(6518),n=t(9504),r=t(5749),o=t(7750),a=t(655),s=t(1436),c=n("".indexOf);e({target:"String",proto:!0,forced:!s("includes")},{includes:function(l){return!!~c(a(o(this)),a(r(l)),arguments.length>1?arguments[1]:void 0)}})},1761:function(i,u,t){var e=t(9565),n=t(9504),r=t(9228),o=t(8551),a=t(34),s=t(8014),c=t(655),l=t(7750),f=t(5966),v=t(7829),d=t(1034),p=t(6682),g=n("".indexOf);r("match",function(h,y,m){return[function(b){var x=l(this),w=a(b)?f(b,h):void 0;return w?e(w,b,x):new RegExp(b)[h](c(x))},function(b){var x=o(this),w=c(b),I=m(y,x,w);if(I.done)return I.value;var k=c(d(x));if(g(k,"g")===-1)return p(x,w);var E=g(k,"u")!==-1;x.lastIndex=0;for(var P,C=[],O=0;(P=p(x,w))!==null;){var M=c(P[0]);C[O]=M,M===""&&(x.lastIndex=v(w,s(x.lastIndex),E)),O++}return O===0?null:C}]})},1828:function(i,u,t){var e=t(9504),n=t(9297),r=t(5397),o=t(9617).indexOf,a=t(421),s=e([].push);i.exports=function(c,l){var f,v=r(c),d=0,p=[];for(f in v)!n(a,f)&&n(v,f)&&s(p,f);for(;l.length>d;)n(v,f=l[d++])&&(~o(p,f)||s(p,f));return p}},1951:function(i,u,t){var e=t(8227);u.f=e},2008:function(i,u,t){var e=t(6518),n=t(9213).filter;e({target:"Array",proto:!0,forced:!t(597)("filter")},{filter:function(r){return n(this,r,arguments.length>1?arguments[1]:void 0)}})},2010:function(i,u,t){var e=t(3724),n=t(350).EXISTS,r=t(9504),o=t(2106),a=Function.prototype,s=r(a.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=r(c.exec);e&&!n&&o(a,"name",{configurable:!0,get:function(){try{return l(c,s(this))[1]}catch{return""}}})},2062:function(i,u,t){var e=t(6518),n=t(9213).map;e({target:"Array",proto:!0,forced:!t(597)("map")},{map:function(r){return n(this,r,arguments.length>1?arguments[1]:void 0)}})},2087:function(i,u,t){var e=t(34),n=Math.floor;i.exports=Number.isInteger||function(r){return!e(r)&&isFinite(r)&&n(r)===r}},2106:function(i,u,t){var e=t(283),n=t(4913);i.exports=function(r,o,a){return a.get&&e(a.get,o,{getter:!0}),a.set&&e(a.set,o,{setter:!0}),n.f(r,o,a)}},2140:function(i,u,t){var e={};e[t(8227)("toStringTag")]="z",i.exports=String(e)==="[object z]"},2195:function(i,u,t){var e=t(9504),n=e({}.toString),r=e("".slice);i.exports=function(o){return r(n(o),8,-1)}},2211:function(i,u,t){var e=t(9039);i.exports=!e(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype})},2259:function(i,u,t){t(511)("iterator")},2293:function(i,u,t){var e=t(8551),n=t(5548),r=t(4117),o=t(8227)("species");i.exports=function(a,s){var c,l=e(a).constructor;return l===void 0||r(c=e(l)[o])?s:n(c)}},2360:function(i,u,t){var e,n=t(8551),r=t(6801),o=t(8727),a=t(421),s=t(397),c=t(4055),l=t(6119),f="prototype",v="script",d=l("IE_PROTO"),p=function(){},g=function(m){return"<"+v+">"+m+"</"+v+">"},h=function(m){m.write(g("")),m.close();var b=m.parentWindow.Object;return m=null,b},y=function(){try{e=new ActiveXObject("htmlfile")}catch{}var m,b,x;y=typeof document<"u"?document.domain&&e?h(e):(b=c("iframe"),x="java"+v+":",b.style.display="none",s.appendChild(b),b.src=String(x),(m=b.contentWindow.document).open(),m.write(g("document.F=Object")),m.close(),m.F):h(e);for(var w=o.length;w--;)delete y[f][o[w]];return y()};a[d]=!0,i.exports=Object.create||function(m,b){var x;return m!==null?(p[f]=n(m),x=new p,p[f]=null,x[d]=m):x=y(),b===void 0?x:r.f(x,b)}},2478:function(i,u,t){var e=t(9504),n=t(8981),r=Math.floor,o=e("".charAt),a=e("".replace),s=e("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;i.exports=function(f,v,d,p,g,h){var y=d+f.length,m=p.length,b=l;return g!==void 0&&(g=n(g),b=c),a(h,b,function(x,w){var I;switch(o(w,0)){case"$":return"$";case"&":return f;case"`":return s(v,0,d);case"'":return s(v,y);case"<":I=g[s(w,1,-1)];break;default:var k=+w;if(k===0)return x;if(k>m){var E=r(k/10);return E===0?x:E<=m?p[E-1]===void 0?o(w,1):p[E-1]+o(w,1):x}I=p[k-1]}return I===void 0?"":I})}},2529:function(i){i.exports=function(u,t){return{value:u,done:t}}},2551:function(i,u,t){var e=t(6395),n=t(4576),r=t(9039),o=t(3607);i.exports=e||!r(function(){if(!(o&&o<535)){var a=Math.random();__defineSetter__.call(null,a,function(){}),delete n[a]}})},2637:function(i,u,t){t(6518)({target:"Number",stat:!0},{isInteger:t(2087)})},2675:function(i,u,t){t(6761),t(1510),t(7812),t(3110),t(9773)},2712:function(i,u,t){var e=t(6518),n=t(926).left,r=t(4598),o=t(9519);e({target:"Array",proto:!0,forced:!t(6193)&&o>79&&o<83||!r("reduce")},{reduce:function(a){var s=arguments.length;return n(this,a,s,s>1?arguments[1]:void 0)}})},2762:function(i,u,t){var e=t(6518),n=t(3802).trim;e({target:"String",proto:!0,forced:t(706)("trim")},{trim:function(){return n(this)}})},2777:function(i,u,t){var e=t(9565),n=t(34),r=t(757),o=t(5966),a=t(4270),s=t(8227),c=TypeError,l=s("toPrimitive");i.exports=function(f,v){if(!n(f)||r(f))return f;var d,p=o(f,l);if(p){if(v===void 0&&(v="default"),d=e(p,f,v),!n(d)||r(d))return d;throw new c("Can't convert object to primitive value")}return v===void 0&&(v="number"),a(f,v)}},2787:function(i,u,t){var e=t(9297),n=t(4901),r=t(8981),o=t(6119),a=t(2211),s=o("IE_PROTO"),c=Object,l=c.prototype;i.exports=a?c.getPrototypeOf:function(f){var v=r(f);if(e(v,s))return v[s];var d=v.constructor;return n(d)&&v instanceof d?d.prototype:v instanceof c?l:null}},2796:function(i,u,t){var e=t(9039),n=t(4901),r=/#|\.prototype\./,o=function(f,v){var d=s[a(f)];return d===l||d!==c&&(n(v)?e(v):!!v)},a=o.normalize=function(f){return String(f).replace(r,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";i.exports=o},2839:function(i,u,t){var e=t(4576).navigator,n=e&&e.userAgent;i.exports=n?String(n):""},2892:function(i,u,t){var e=t(6518),n=t(6395),r=t(3724),o=t(4576),a=t(9167),s=t(9504),c=t(2796),l=t(9297),f=t(3167),v=t(1625),d=t(757),p=t(2777),g=t(9039),h=t(8480).f,y=t(7347).f,m=t(4913).f,b=t(1240),x=t(3802).trim,w="Number",I=o[w],k=a[w],E=I.prototype,P=o.TypeError,C=s("".slice),O=s("".charCodeAt),M=function(q){var _,Y,H,U,z,W,D,j,N=p(q,"number");if(d(N))throw new P("Cannot convert a Symbol value to a number");if(typeof N=="string"&&N.length>2){if(N=x(N),(_=O(N,0))===43||_===45){if((Y=O(N,2))===88||Y===120)return NaN}else if(_===48){switch(O(N,1)){case 66:case 98:H=2,U=49;break;case 79:case 111:H=8,U=55;break;default:return+N}for(W=(z=C(N,2)).length,D=0;D<W;D++)if((j=O(z,D))<48||j>U)return NaN;return parseInt(z,H)}}return+N},T=c(w,!I(" 0o1")||!I("0b1")||I("+0x1")),A=function(q){var _,Y=arguments.length<1?0:I(function(H){var U=p(H,"number");return typeof U=="bigint"?U:M(U)}(q));return v(E,_=this)&&g(function(){b(_)})?f(Object(Y),this,A):Y};A.prototype=E,T&&!n&&(E.constructor=A),e({global:!0,constructor:!0,wrap:!0,forced:T},{Number:A});var et=function(q,_){for(var Y,H=r?h(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),U=0;H.length>U;U++)l(_,Y=H[U])&&!l(q,Y)&&m(q,Y,y(_,Y))};n&&k&&et(a[w],k),(T||n)&&et(a[w],I)},2953:function(i,u,t){var e=t(4576),n=t(7400),r=t(9296),o=t(3792),a=t(6699),s=t(687),c=t(8227)("iterator"),l=o.values,f=function(d,p){if(d){if(d[c]!==l)try{a(d,c,l)}catch{d[c]=l}if(s(d,p,!0),n[p]){for(var g in o)if(d[g]!==o[g])try{a(d,g,o[g])}catch{d[g]=o[g]}}}};for(var v in n)f(e[v]&&e[v].prototype,v);f(r,"DOMTokenList")},2967:function(i,u,t){var e=t(6706),n=t(34),r=t(7750),o=t(3506);i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var a,s=!1,c={};try{(a=e(Object.prototype,"__proto__","set"))(c,[]),s=c instanceof Array}catch{}return function(l,f){return r(l),o(f),n(l)&&(s?a(l,f):l.__proto__=f),l}}():void 0)},3110:function(i,u,t){var e=t(6518),n=t(7751),r=t(8745),o=t(9565),a=t(9504),s=t(9039),c=t(4901),l=t(757),f=t(7680),v=t(6933),d=t(4495),p=String,g=n("JSON","stringify"),h=a(/./.exec),y=a("".charAt),m=a("".charCodeAt),b=a("".replace),x=a(1.1.toString),w=/[\uD800-\uDFFF]/g,I=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,E=!d||s(function(){var M=n("Symbol")("stringify detection");return g([M])!=="[null]"||g({a:M})!=="{}"||g(Object(M))!=="{}"}),P=s(function(){return g("\uDF06\uD834")!=='"\\udf06\\ud834"'||g("\uDEAD")!=='"\\udead"'}),C=function(M,T){var A=f(arguments),et=v(T);if(c(et)||M!==void 0&&!l(M))return A[1]=function(q,_){if(c(et)&&(_=o(et,this,p(q),_)),!l(_))return _},r(g,null,A)},O=function(M,T,A){var et=y(A,T-1),q=y(A,T+1);return h(I,M)&&!h(k,q)||h(k,M)&&!h(I,et)?"\\u"+x(m(M,0),16):M};g&&e({target:"JSON",stat:!0,arity:3,forced:E||P},{stringify:function(M,T,A){var et=f(arguments),q=r(E?C:g,null,et);return P&&typeof q=="string"?b(q,w,O):q}})},3167:function(i,u,t){var e=t(4901),n=t(34),r=t(2967);i.exports=function(o,a,s){var c,l;return r&&e(c=a.constructor)&&c!==s&&n(l=c.prototype)&&l!==s.prototype&&r(o,l),o}},3179:function(i,u,t){var e=t(2140),n=t(6955);i.exports=e?{}.toString:function(){return"[object "+n(this)+"]"}},3392:function(i,u,t){var e=t(9504),n=0,r=Math.random(),o=e(1.1.toString);i.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+o(++n+r,36)}},3418:function(i,u,t){var e=t(6518),n=t(7916);e({target:"Array",stat:!0,forced:!t(4428)(function(r){Array.from(r)})},{from:n})},3500:function(i,u,t){var e=t(4576),n=t(7400),r=t(9296),o=t(235),a=t(6699),s=function(l){if(l&&l.forEach!==o)try{a(l,"forEach",o)}catch{l.forEach=o}};for(var c in n)n[c]&&s(e[c]&&e[c].prototype);s(r)},3506:function(i,u,t){var e=t(3925),n=String,r=TypeError;i.exports=function(o){if(e(o))return o;throw new r("Can't set "+n(o)+" as a prototype")}},3517:function(i,u,t){var e=t(9504),n=t(9039),r=t(4901),o=t(6955),a=t(7751),s=t(3706),c=function(){},l=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,v=e(f.exec),d=!f.test(c),p=function(h){if(!r(h))return!1;try{return l(c,[],h),!0}catch{return!1}},g=function(h){if(!r(h))return!1;switch(o(h)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!v(f,s(h))}catch{return!0}};g.sham=!0,i.exports=!l||n(function(){var h;return p(p.call)||!p(Object)||!p(function(){h=!0})||h})?g:p},3607:function(i,u,t){var e=t(2839).match(/AppleWebKit\/(\d+)\./);i.exports=!!e&&+e[1]},3635:function(i,u,t){var e=t(9039),n=t(4576).RegExp;i.exports=e(function(){var r=n(".","s");return!(r.dotAll&&r.test(`
`)&&r.flags==="s")})},3640:function(i,u,t){var e=t(8551),n=t(4270),r=TypeError;i.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new r("Incorrect hint");return n(this,o)}},3706:function(i,u,t){var e=t(9504),n=t(4901),r=t(7629),o=e(Function.toString);n(r.inspectSource)||(r.inspectSource=function(a){return o(a)}),i.exports=r.inspectSource},3709:function(i,u,t){var e=t(2839).match(/firefox\/(\d+)/i);i.exports=!!e&&+e[1]},3717:function(i,u){u.f=Object.getOwnPropertySymbols},3724:function(i,u,t){var e=t(9039);i.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},3763:function(i,u,t){var e=t(2839);i.exports=/MSIE|Trident/.test(e)},3792:function(i,u,t){var e=t(5397),n=t(6469),r=t(6269),o=t(1181),a=t(4913).f,s=t(1088),c=t(2529),l=t(6395),f=t(3724),v="Array Iterator",d=o.set,p=o.getterFor(v);i.exports=s(Array,"Array",function(h,y){d(this,{type:v,target:e(h),index:0,kind:y})},function(){var h=p(this),y=h.target,m=h.index++;if(!y||m>=y.length)return h.target=null,c(void 0,!0);switch(h.kind){case"keys":return c(m,!1);case"values":return c(y[m],!1)}return c([m,y[m]],!1)},"values");var g=r.Arguments=r.Array;if(n("keys"),n("values"),n("entries"),!l&&f&&g.name!=="values")try{a(g,"name",{value:"values"})}catch{}},3802:function(i,u,t){var e=t(9504),n=t(7750),r=t(655),o=t(7452),a=e("".replace),s=RegExp("^["+o+"]+"),c=RegExp("(^|[^"+o+"])["+o+"]+$"),l=function(f){return function(v){var d=r(n(v));return 1&f&&(d=a(d,s,"")),2&f&&(d=a(d,c,"$1")),d}};i.exports={start:l(1),end:l(2),trim:l(3)}},3851:function(i,u,t){var e=t(6518),n=t(9039),r=t(5397),o=t(7347).f,a=t(3724);e({target:"Object",stat:!0,forced:!a||n(function(){o(1)}),sham:!a},{getOwnPropertyDescriptor:function(s,c){return o(r(s),c)}})},3925:function(i,u,t){var e=t(34);i.exports=function(n){return e(n)||n===null}},3994:function(i,u,t){var e=t(7657).IteratorPrototype,n=t(2360),r=t(6980),o=t(687),a=t(6269),s=function(){return this};i.exports=function(c,l,f,v){var d=l+" Iterator";return c.prototype=n(e,{next:r(+!v,f)}),o(c,d,!1,!0),a[d]=s,c}},4055:function(i,u,t){var e=t(4576),n=t(34),r=e.document,o=n(r)&&n(r.createElement);i.exports=function(a){return o?r.createElement(a):{}}},4117:function(i){i.exports=function(u){return u==null}},4209:function(i,u,t){var e=t(8227),n=t(6269),r=e("iterator"),o=Array.prototype;i.exports=function(a){return a!==void 0&&(n.Array===a||o[r]===a)}},4213:function(i,u,t){var e=t(3724),n=t(9504),r=t(9565),o=t(9039),a=t(1072),s=t(3717),c=t(8773),l=t(8981),f=t(7055),v=Object.assign,d=Object.defineProperty,p=n([].concat);i.exports=!v||o(function(){if(e&&v({b:1},v(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var g={},h={},y=Symbol("assign detection"),m="abcdefghijklmnopqrst";return g[y]=7,m.split("").forEach(function(b){h[b]=b}),v({},g)[y]!==7||a(v({},h)).join("")!==m})?function(g,h){for(var y=l(g),m=arguments.length,b=1,x=s.f,w=c.f;m>b;)for(var I,k=f(arguments[b++]),E=x?p(a(k),x(k)):a(k),P=E.length,C=0;P>C;)I=E[C++],e&&!r(w,k,I)||(y[I]=k[I]);return y}:v},4215:function(i,u,t){var e=t(4576),n=t(2839),r=t(2195),o=function(a){return n.slice(0,a.length)===a};i.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":e.Bun&&typeof Bun.version=="string"?"BUN":e.Deno&&typeof Deno.version=="object"?"DENO":r(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"},4270:function(i,u,t){var e=t(9565),n=t(4901),r=t(34),o=TypeError;i.exports=function(a,s){var c,l;if(s==="string"&&n(c=a.toString)&&!r(l=e(c,a))||n(c=a.valueOf)&&!r(l=e(c,a))||s!=="string"&&n(c=a.toString)&&!r(l=e(c,a)))return l;throw new o("Can't convert object to primitive value")}},4376:function(i,u,t){var e=t(2195);i.exports=Array.isArray||function(n){return e(n)==="Array"}},4423:function(i,u,t){var e=t(6518),n=t(9617).includes,r=t(9039),o=t(6469);e({target:"Array",proto:!0,forced:r(function(){return!Array(1).includes()})},{includes:function(a){return n(this,a,arguments.length>1?arguments[1]:void 0)}}),o("includes")},4428:function(i,u,t){var e=t(8227)("iterator"),n=!1;try{var r=0,o={next:function(){return{done:!!r++}},return:function(){n=!0}};o[e]=function(){return this},Array.from(o,function(){throw 2})}catch{}i.exports=function(a,s){try{if(!s&&!n)return!1}catch{return!1}var c=!1;try{var l={};l[e]=function(){return{next:function(){return{done:c=!0}}}},a(l)}catch{}return c}},4488:function(i,u,t){var e=t(7680),n=Math.floor,r=function(o,a){var s=o.length;if(s<8)for(var c,l,f=1;f<s;){for(l=f,c=o[f];l&&a(o[l-1],c)>0;)o[l]=o[--l];l!==f++&&(o[l]=c)}else for(var v=n(s/2),d=r(e(o,0,v),a),p=r(e(o,v),a),g=d.length,h=p.length,y=0,m=0;y<g||m<h;)o[y+m]=y<g&&m<h?a(d[y],p[m])<=0?d[y++]:p[m++]:y<g?d[y++]:p[m++];return o};i.exports=r},4495:function(i,u,t){var e=t(9519),n=t(9039),r=t(4576).String;i.exports=!!Object.getOwnPropertySymbols&&!n(function(){var o=Symbol("symbol detection");return!r(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41})},4527:function(i,u,t){var e=t(3724),n=t(4376),r=TypeError,o=Object.getOwnPropertyDescriptor,a=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(s){return s instanceof TypeError}}();i.exports=a?function(s,c){if(n(s)&&!o(s,"length").writable)throw new r("Cannot set read only .length");return s.length=c}:function(s,c){return s.length=c}},4554:function(i,u,t){var e=t(6518),n=t(8981),r=t(5610),o=t(1291),a=t(6198),s=t(4527),c=t(6837),l=t(1469),f=t(4659),v=t(4606),d=t(597)("splice"),p=Math.max,g=Math.min;e({target:"Array",proto:!0,forced:!d},{splice:function(h,y){var m,b,x,w,I,k,E=n(this),P=a(E),C=r(h,P),O=arguments.length;for(O===0?m=b=0:O===1?(m=0,b=P-C):(m=O-2,b=g(p(o(y),0),P-C)),c(P+m-b),x=l(E,b),w=0;w<b;w++)(I=C+w)in E&&f(x,w,E[I]);if(x.length=b,m<b){for(w=C;w<P-b;w++)k=w+m,(I=w+b)in E?E[k]=E[I]:v(E,k);for(w=P;w>P-b+m;w--)v(E,w-1)}else if(m>b)for(w=P-b;w>C;w--)k=w+m-1,(I=w+b-1)in E?E[k]=E[I]:v(E,k);for(w=0;w<m;w++)E[w+C]=arguments[w+2];return s(E,P-b+m),x}})},4576:function(i,u,t){var e=function(n){return n&&n.Math===Math&&n};i.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof t.g=="object"&&t.g)||e(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},4598:function(i,u,t){var e=t(9039);i.exports=function(n,r){var o=[][n];return!!o&&e(function(){o.call(null,r||function(){return 1},1)})}},4606:function(i,u,t){var e=t(6823),n=TypeError;i.exports=function(r,o){if(!delete r[o])throw new n("Cannot delete property "+e(o)+" of "+e(r))}},4659:function(i,u,t){var e=t(3724),n=t(4913),r=t(6980);i.exports=function(o,a,s){e?n.f(o,a,r(0,s)):o[a]=s}},4782:function(i,u,t){var e=t(6518),n=t(4376),r=t(3517),o=t(34),a=t(5610),s=t(6198),c=t(5397),l=t(4659),f=t(8227),v=t(597),d=t(7680),p=v("slice"),g=f("species"),h=Array,y=Math.max;e({target:"Array",proto:!0,forced:!p},{slice:function(m,b){var x,w,I,k=c(this),E=s(k),P=a(m,E),C=a(b===void 0?E:b,E);if(n(k)&&(x=k.constructor,(r(x)&&(x===h||n(x.prototype))||o(x)&&(x=x[g])===null)&&(x=void 0),x===h||x===void 0))return d(k,P,C);for(w=new(x===void 0?h:x)(y(C-P,0)),I=0;P<C;P++,I++)P in k&&l(w,I,k[P]);return w.length=I,w}})},4864:function(i,u,t){var e=t(3724),n=t(4576),r=t(9504),o=t(2796),a=t(3167),s=t(6699),c=t(2360),l=t(8480).f,f=t(1625),v=t(788),d=t(655),p=t(1034),g=t(8429),h=t(1056),y=t(6840),m=t(9039),b=t(9297),x=t(1181).enforce,w=t(7633),I=t(8227),k=t(3635),E=t(8814),P=I("match"),C=n.RegExp,O=C.prototype,M=n.SyntaxError,T=r(O.exec),A=r("".charAt),et=r("".replace),q=r("".indexOf),_=r("".slice),Y=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,H=/a/g,U=/a/g,z=new C(H)!==H,W=g.MISSED_STICKY,D=g.UNSUPPORTED_Y,j=e&&(!z||W||k||E||m(function(){return U[P]=!1,C(H)!==H||C(U)===U||String(C(H,"i"))!=="/a/i"}));if(o("RegExp",j)){for(var N=function(ft,st){var Mt,Ut,qt,Qt,Lt,Ht,Rt=f(O,this),Zt=v(ft),ie=st===void 0,ae=[],Dt=ft;if(!Rt&&Zt&&ie&&ft.constructor===N)return ft;if((Zt||f(O,ft))&&(ft=ft.source,ie&&(st=p(Dt))),ft=ft===void 0?"":d(ft),st=st===void 0?"":d(st),Dt=ft,k&&"dotAll"in H&&(Ut=!!st&&q(st,"s")>-1)&&(st=et(st,/s/g,"")),Mt=st,W&&"sticky"in H&&(qt=!!st&&q(st,"y")>-1)&&D&&(st=et(st,/y/g,"")),E&&(Qt=function(It){for(var wt,se=It.length,Pt=0,$t="",Gt=[],ue=c(null),ce=!1,re=!1,me=0,te="";Pt<=se;Pt++){if((wt=A(It,Pt))==="\\")wt+=A(It,++Pt);else if(wt==="]")ce=!1;else if(!ce)switch(!0){case wt==="[":ce=!0;break;case wt==="(":if($t+=wt,_(It,Pt+1,Pt+3)==="?:")continue;T(Y,_(It,Pt+1))&&(Pt+=2,re=!0),me++;continue;case(wt===">"&&re):if(te===""||b(ue,te))throw new M("Invalid capture group name");ue[te]=!0,Gt[Gt.length]=[te,me],re=!1,te="";continue}re?te+=wt:$t+=wt}return[$t,Gt]}(ft),ft=Qt[0],ae=Qt[1]),Lt=a(C(ft,st),Rt?this:O,N),(Ut||qt||ae.length)&&(Ht=x(Lt),Ut&&(Ht.dotAll=!0,Ht.raw=N(function(It){for(var wt,se=It.length,Pt=0,$t="",Gt=!1;Pt<=se;Pt++)(wt=A(It,Pt))!=="\\"?Gt||wt!=="."?(wt==="["?Gt=!0:wt==="]"&&(Gt=!1),$t+=wt):$t+="[\\s\\S]":$t+=wt+A(It,++Pt);return $t}(ft),Mt)),qt&&(Ht.sticky=!0),ae.length&&(Ht.groups=ae)),ft!==Dt)try{s(Lt,"source",Dt===""?"(?:)":Dt)}catch{}return Lt},nt=l(C),bt=0;nt.length>bt;)h(N,C,nt[bt++]);O.constructor=N,N.prototype=O,y(n,"RegExp",N,{constructor:!0})}w("RegExp")},4901:function(i){var u=typeof document=="object"&&document.all;i.exports=u===void 0&&u!==void 0?function(t){return typeof t=="function"||t===u}:function(t){return typeof t=="function"}},4913:function(i,u,t){var e=t(3724),n=t(5917),r=t(8686),o=t(8551),a=t(6969),s=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",v="configurable",d="writable";u.f=e?r?function(p,g,h){if(o(p),g=a(g),o(h),typeof p=="function"&&g==="prototype"&&"value"in h&&d in h&&!h[d]){var y=l(p,g);y&&y[d]&&(p[g]=h.value,h={configurable:v in h?h[v]:y[v],enumerable:f in h?h[f]:y[f],writable:!1})}return c(p,g,h)}:c:function(p,g,h){if(o(p),g=a(g),o(h),n)try{return c(p,g,h)}catch{}if("get"in h||"set"in h)throw new s("Accessors not supported");return"value"in h&&(p[g]=h.value),p}},5031:function(i,u,t){var e=t(7751),n=t(9504),r=t(8480),o=t(3717),a=t(8551),s=n([].concat);i.exports=e("Reflect","ownKeys")||function(c){var l=r.f(a(c)),f=o.f;return f?s(l,f(c)):l}},5213:function(i,u,t){var e=t(4576),n=t(9039),r=e.RegExp,o=!n(function(){var a=!0;try{r(".","d")}catch{a=!1}var s={},c="",l=a?"dgimsy":"gimsy",f=function(p,g){Object.defineProperty(s,p,{get:function(){return c+=g,!0}})},v={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var d in a&&(v.hasIndices="d"),v)f(d,v[d]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(s)!==l||c!==l});i.exports={correct:o}},5276:function(i,u,t){var e=t(6518),n=t(7476),r=t(9617).indexOf,o=t(4598),a=n([].indexOf),s=!!a&&1/a([1],1,-0)<0;e({target:"Array",proto:!0,forced:s||!o("indexOf")},{indexOf:function(c){var l=arguments.length>1?arguments[1]:void 0;return s?a(this,c,l)||0:r(this,c,l)}})},5397:function(i,u,t){var e=t(7055),n=t(7750);i.exports=function(r){return e(n(r))}},5440:function(i,u,t){var e=t(8745),n=t(9565),r=t(9504),o=t(9228),a=t(9039),s=t(8551),c=t(4901),l=t(34),f=t(1291),v=t(8014),d=t(655),p=t(7750),g=t(7829),h=t(5966),y=t(2478),m=t(1034),b=t(6682),x=t(8227)("replace"),w=Math.max,I=Math.min,k=r([].concat),E=r([].push),P=r("".indexOf),C=r("".slice),O="a".replace(/./,"$0")==="$0",M=!!/./[x]&&/./[x]("a","$0")==="";o("replace",function(T,A,et){var q=M?"$":"$0";return[function(_,Y){var H=p(this),U=l(_)?h(_,x):void 0;return U?n(U,_,H,Y):n(A,d(H),_,Y)},function(_,Y){var H=s(this),U=d(_);if(typeof Y=="string"&&P(Y,q)===-1&&P(Y,"$<")===-1){var z=et(A,H,U,Y);if(z.done)return z.value}var W=c(Y);W||(Y=d(Y));var D,j=d(m(H)),N=P(j,"g")!==-1;N&&(D=P(j,"u")!==-1,H.lastIndex=0);for(var nt,bt=[];(nt=b(H,U))!==null&&(E(bt,nt),N);)d(nt[0])===""&&(H.lastIndex=g(U,v(H.lastIndex),D));for(var ft,st="",Mt=0,Ut=0;Ut<bt.length;Ut++){for(var qt,Qt=d((nt=bt[Ut])[0]),Lt=w(I(f(nt.index),U.length),0),Ht=[],Rt=1;Rt<nt.length;Rt++)E(Ht,(ft=nt[Rt])===void 0?ft:String(ft));var Zt=nt.groups;if(W){var ie=k([Qt],Ht,Lt,U);Zt!==void 0&&E(ie,Zt),qt=d(e(Y,void 0,ie))}else qt=y(Qt,U,Lt,Ht,Zt,Y);Lt>=Mt&&(st+=C(U,Mt,Lt)+qt,Mt=Lt+Qt.length)}return st+C(U,Mt)}]},!!a(function(){var T=/./;return T.exec=function(){var A=[];return A.groups={a:"7"},A},"".replace(T,"$<a>")!=="7"})||!O||M)},5548:function(i,u,t){var e=t(3517),n=t(6823),r=TypeError;i.exports=function(o){if(e(o))return o;throw new r(n(o)+" is not a constructor")}},5610:function(i,u,t){var e=t(1291),n=Math.max,r=Math.min;i.exports=function(o,a){var s=e(o);return s<0?n(s+a,0):r(s,a)}},5700:function(i,u,t){var e=t(511),n=t(8242);e("toPrimitive"),n()},5745:function(i,u,t){var e=t(7629);i.exports=function(n,r){return e[n]||(e[n]=r||{})}},5749:function(i,u,t){var e=t(788),n=TypeError;i.exports=function(r){if(e(r))throw new n("The method doesn't accept regular expressions");return r}},5917:function(i,u,t){var e=t(3724),n=t(9039),r=t(4055);i.exports=!e&&!n(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7})},5966:function(i,u,t){var e=t(9306),n=t(4117);i.exports=function(r,o){var a=r[o];return n(a)?void 0:e(a)}},6080:function(i,u,t){var e=t(7476),n=t(9306),r=t(616),o=e(e.bind);i.exports=function(a,s){return n(a),s===void 0?a:r?o(a,s):function(){return a.apply(s,arguments)}}},6099:function(i,u,t){var e=t(2140),n=t(6840),r=t(3179);e||n(Object.prototype,"toString",r,{unsafe:!0})},6119:function(i,u,t){var e=t(5745),n=t(3392),r=e("keys");i.exports=function(o){return r[o]||(r[o]=n(o))}},6193:function(i,u,t){var e=t(4215);i.exports=e==="NODE"},6198:function(i,u,t){var e=t(8014);i.exports=function(n){return e(n.length)}},6269:function(i){i.exports={}},6319:function(i,u,t){var e=t(8551),n=t(9539);i.exports=function(r,o,a,s){try{return s?o(e(a)[0],a[1]):o(a)}catch(c){n(r,"throw",c)}}},6395:function(i){i.exports=!1},6469:function(i,u,t){var e=t(8227),n=t(2360),r=t(4913).f,o=e("unscopables"),a=Array.prototype;a[o]===void 0&&r(a,o,{configurable:!0,value:n(null)}),i.exports=function(s){a[o][s]=!0}},6518:function(i,u,t){var e=t(4576),n=t(7347).f,r=t(6699),o=t(6840),a=t(9433),s=t(7740),c=t(2796);i.exports=function(l,f){var v,d,p,g,h,y=l.target,m=l.global,b=l.stat;if(v=m?e:b?e[y]||a(y,{}):e[y]&&e[y].prototype)for(d in f){if(g=f[d],p=l.dontCallGetSet?(h=n(v,d))&&h.value:v[d],!c(m?d:y+(b?".":"#")+d,l.forced)&&p!==void 0){if(typeof g==typeof p)continue;s(g,p)}(l.sham||p&&p.sham)&&r(g,"sham",!0),o(v,d,g,l)}}},6682:function(i,u,t){var e=t(9565),n=t(8551),r=t(4901),o=t(2195),a=t(7323),s=TypeError;i.exports=function(c,l){var f=c.exec;if(r(f)){var v=e(f,c,l);return v!==null&&n(v),v}if(o(c)==="RegExp")return e(a,c,l);throw new s("RegExp#exec called on incompatible receiver")}},6699:function(i,u,t){var e=t(3724),n=t(4913),r=t(6980);i.exports=e?function(o,a,s){return n.f(o,a,r(1,s))}:function(o,a,s){return o[a]=s,o}},6706:function(i,u,t){var e=t(9504),n=t(9306);i.exports=function(r,o,a){try{return e(n(Object.getOwnPropertyDescriptor(r,o)[a]))}catch{}}},6761:function(i,u,t){var e=t(6518),n=t(4576),r=t(9565),o=t(9504),a=t(6395),s=t(3724),c=t(4495),l=t(9039),f=t(9297),v=t(1625),d=t(8551),p=t(5397),g=t(6969),h=t(655),y=t(6980),m=t(2360),b=t(1072),x=t(8480),w=t(298),I=t(3717),k=t(7347),E=t(4913),P=t(6801),C=t(8773),O=t(6840),M=t(2106),T=t(5745),A=t(6119),et=t(421),q=t(3392),_=t(8227),Y=t(1951),H=t(511),U=t(8242),z=t(687),W=t(1181),D=t(9213).forEach,j=A("hidden"),N="Symbol",nt="prototype",bt=W.set,ft=W.getterFor(N),st=Object[nt],Mt=n.Symbol,Ut=Mt&&Mt[nt],qt=n.RangeError,Qt=n.TypeError,Lt=n.QObject,Ht=k.f,Rt=E.f,Zt=w.f,ie=C.f,ae=o([].push),Dt=T("symbols"),It=T("op-symbols"),wt=T("wks"),se=!Lt||!Lt[nt]||!Lt[nt].findChild,Pt=function(G,rt,ot){var lt=Ht(st,rt);lt&&delete st[rt],Rt(G,rt,ot),lt&&G!==st&&Rt(st,rt,lt)},$t=s&&l(function(){return m(Rt({},"a",{get:function(){return Rt(this,"a",{value:7}).a}})).a!==7})?Pt:Rt,Gt=function(G,rt){var ot=Dt[G]=m(Ut);return bt(ot,{type:N,tag:G,description:rt}),s||(ot.description=rt),ot},ue=function(G,rt,ot){G===st&&ue(It,rt,ot),d(G);var lt=g(rt);return d(ot),f(Dt,lt)?(ot.enumerable?(f(G,j)&&G[j][lt]&&(G[j][lt]=!1),ot=m(ot,{enumerable:y(0,!1)})):(f(G,j)||Rt(G,j,y(1,m(null))),G[j][lt]=!0),$t(G,lt,ot)):Rt(G,lt,ot)},ce=function(G,rt){d(G);var ot=p(rt),lt=b(ot).concat(je(ot));return D(lt,function(xt){s&&!r(re,ot,xt)||ue(G,xt,ot[xt])}),G},re=function(G){var rt=g(G),ot=r(ie,this,rt);return!(this===st&&f(Dt,rt)&&!f(It,rt))&&(!(ot||!f(this,rt)||!f(Dt,rt)||f(this,j)&&this[j][rt])||ot)},me=function(G,rt){var ot=p(G),lt=g(rt);if(ot!==st||!f(Dt,lt)||f(It,lt)){var xt=Ht(ot,lt);return!xt||!f(Dt,lt)||f(ot,j)&&ot[j][lt]||(xt.enumerable=!0),xt}},te=function(G){var rt=Zt(p(G)),ot=[];return D(rt,function(lt){f(Dt,lt)||f(et,lt)||ae(ot,lt)}),ot},je=function(G){var rt=G===st,ot=Zt(rt?It:p(G)),lt=[];return D(ot,function(xt){!f(Dt,xt)||rt&&!f(st,xt)||ae(lt,Dt[xt])}),lt};c||(Mt=function(){if(v(Ut,this))throw new Qt("Symbol is not a constructor");var G=arguments.length&&arguments[0]!==void 0?h(arguments[0]):void 0,rt=q(G),ot=function(lt){var xt=this===void 0?n:this;xt===st&&r(ot,It,lt),f(xt,j)&&f(xt[j],rt)&&(xt[j][rt]=!1);var Le=y(1,lt);try{$t(xt,rt,Le)}catch(Re){if(!(Re instanceof qt))throw Re;Pt(xt,rt,Le)}};return s&&se&&$t(st,rt,{configurable:!0,set:ot}),Gt(rt,G)},O(Ut=Mt[nt],"toString",function(){return ft(this).tag}),O(Mt,"withoutSetter",function(G){return Gt(q(G),G)}),C.f=re,E.f=ue,P.f=ce,k.f=me,x.f=w.f=te,I.f=je,Y.f=function(G){return Gt(_(G),G)},s&&(M(Ut,"description",{configurable:!0,get:function(){return ft(this).description}}),a||O(st,"propertyIsEnumerable",re,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:Mt}),D(b(wt),function(G){H(G)}),e({target:N,stat:!0,forced:!c},{useSetter:function(){se=!0},useSimple:function(){se=!1}}),e({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(G,rt){return rt===void 0?m(G):ce(m(G),rt)},defineProperty:ue,defineProperties:ce,getOwnPropertyDescriptor:me}),e({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:te}),U(),z(Mt,N),et[j]=!0},6801:function(i,u,t){var e=t(3724),n=t(8686),r=t(4913),o=t(8551),a=t(5397),s=t(1072);u.f=e&&!n?Object.defineProperties:function(c,l){o(c);for(var f,v=a(l),d=s(l),p=d.length,g=0;p>g;)r.f(c,f=d[g++],v[f]);return c}},6823:function(i){var u=String;i.exports=function(t){try{return u(t)}catch{return"Object"}}},6837:function(i){var u=TypeError;i.exports=function(t){if(t>9007199254740991)throw u("Maximum allowed index exceeded");return t}},6840:function(i,u,t){var e=t(4901),n=t(4913),r=t(283),o=t(9433);i.exports=function(a,s,c,l){l||(l={});var f=l.enumerable,v=l.name!==void 0?l.name:s;if(e(c)&&r(c,v,l),l.global)f?a[s]=c:o(s,c);else{try{l.unsafe?a[s]&&(f=!0):delete a[s]}catch{}f?a[s]=c:n.f(a,s,{value:c,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return a}},6910:function(i,u,t){var e=t(6518),n=t(9504),r=t(9306),o=t(8981),a=t(6198),s=t(4606),c=t(655),l=t(9039),f=t(4488),v=t(4598),d=t(3709),p=t(3763),g=t(9519),h=t(3607),y=[],m=n(y.sort),b=n(y.push),x=l(function(){y.sort(void 0)}),w=l(function(){y.sort(null)}),I=v("sort"),k=!l(function(){if(g)return g<70;if(!(d&&d>3)){if(p)return!0;if(h)return h<603;var E,P,C,O,M="";for(E=65;E<76;E++){switch(P=String.fromCharCode(E),E){case 66:case 69:case 70:case 72:C=3;break;case 68:case 71:C=4;break;default:C=2}for(O=0;O<47;O++)y.push({k:P+O,v:C})}for(y.sort(function(T,A){return A.v-T.v}),O=0;O<y.length;O++)P=y[O].k.charAt(0),M.charAt(M.length-1)!==P&&(M+=P);return M!=="DGBEFHACIJK"}});e({target:"Array",proto:!0,forced:x||!w||!I||!k},{sort:function(E){E!==void 0&&r(E);var P=o(this);if(k)return E===void 0?m(P):m(P,E);var C,O,M=[],T=a(P);for(O=0;O<T;O++)O in P&&b(M,P[O]);for(f(M,function(A){return function(et,q){return q===void 0?-1:et===void 0?1:A!==void 0?+A(et,q)||0:c(et)>c(q)?1:-1}}(E)),C=a(M),O=0;O<C;)P[O]=M[O++];for(;O<T;)s(P,O++);return P}})},6933:function(i,u,t){var e=t(9504),n=t(4376),r=t(4901),o=t(2195),a=t(655),s=e([].push);i.exports=function(c){if(r(c))return c;if(n(c)){for(var l=c.length,f=[],v=0;v<l;v++){var d=c[v];typeof d=="string"?s(f,d):typeof d!="number"&&o(d)!=="Number"&&o(d)!=="String"||s(f,a(d))}var p=f.length,g=!0;return function(h,y){if(g)return g=!1,y;if(n(this))return y;for(var m=0;m<p;m++)if(f[m]===h)return y}}}},6955:function(i,u,t){var e=t(2140),n=t(4901),r=t(2195),o=t(8227)("toStringTag"),a=Object,s=r(function(){return arguments}())==="Arguments";i.exports=e?r:function(c){var l,f,v;return c===void 0?"Undefined":c===null?"Null":typeof(f=function(d,p){try{return d[p]}catch{}}(l=a(c),o))=="string"?f:s?r(l):(v=r(l))==="Object"&&n(l.callee)?"Arguments":v}},6969:function(i,u,t){var e=t(2777),n=t(757);i.exports=function(r){var o=e(r,"string");return n(o)?o:o+""}},6980:function(i){i.exports=function(u,t){return{enumerable:!(1&u),configurable:!(2&u),writable:!(4&u),value:t}}},7040:function(i,u,t){var e=t(4495);i.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},7055:function(i,u,t){var e=t(9504),n=t(9039),r=t(2195),o=Object,a=e("".split);i.exports=n(function(){return!o("z").propertyIsEnumerable(0)})?function(s){return r(s)==="String"?a(s,""):o(s)}:o},7323:function(i,u,t){var e,n,r=t(9565),o=t(9504),a=t(655),s=t(7979),c=t(8429),l=t(5745),f=t(2360),v=t(1181).get,d=t(3635),p=t(8814),g=l("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,y=h,m=o("".charAt),b=o("".indexOf),x=o("".replace),w=o("".slice),I=(n=/b*/g,r(h,e=/a/,"a"),r(h,n,"a"),e.lastIndex!==0||n.lastIndex!==0),k=c.BROKEN_CARET,E=/()??/.exec("")[1]!==void 0;(I||E||k||d||p)&&(y=function(P){var C,O,M,T,A,et,q,_=this,Y=v(_),H=a(P),U=Y.raw;if(U)return U.lastIndex=_.lastIndex,C=r(y,U,H),_.lastIndex=U.lastIndex,C;var z=Y.groups,W=k&&_.sticky,D=r(s,_),j=_.source,N=0,nt=H;if(W&&(D=x(D,"y",""),b(D,"g")===-1&&(D+="g"),nt=w(H,_.lastIndex),_.lastIndex>0&&(!_.multiline||_.multiline&&m(H,_.lastIndex-1)!==`
`)&&(j="(?: "+j+")",nt=" "+nt,N++),O=new RegExp("^(?:"+j+")",D)),E&&(O=new RegExp("^"+j+"$(?!\\s)",D)),I&&(M=_.lastIndex),T=r(h,W?O:_,nt),W?T?(T.input=w(T.input,N),T[0]=w(T[0],N),T.index=_.lastIndex,_.lastIndex+=T[0].length):_.lastIndex=0:I&&T&&(_.lastIndex=_.global?T.index+T[0].length:M),E&&T&&T.length>1&&r(g,T[0],O,function(){for(A=1;A<arguments.length-2;A++)arguments[A]===void 0&&(T[A]=void 0)}),T&&z)for(T.groups=et=f(null),A=0;A<z.length;A++)et[(q=z[A])[0]]=T[q[1]];return T}),i.exports=y},7347:function(i,u,t){var e=t(3724),n=t(9565),r=t(8773),o=t(6980),a=t(5397),s=t(6969),c=t(9297),l=t(5917),f=Object.getOwnPropertyDescriptor;u.f=e?f:function(v,d){if(v=a(v),d=s(d),l)try{return f(v,d)}catch{}if(c(v,d))return o(!n(r.f,v,d),v[d])}},7400:function(i){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7427:function(i,u,t){var e=t(6518),n=t(3724),r=t(2551),o=t(9306),a=t(8981),s=t(4913);n&&e({target:"Object",proto:!0,forced:r},{__defineGetter__:function(c,l){s.f(a(this),c,{get:o(l),enumerable:!0,configurable:!0})}})},7433:function(i,u,t){var e=t(4376),n=t(3517),r=t(34),o=t(8227)("species"),a=Array;i.exports=function(s){var c;return e(s)&&(c=s.constructor,(n(c)&&(c===a||e(c.prototype))||r(c)&&(c=c[o])===null)&&(c=void 0)),c===void 0?a:c}},7452:function(i){i.exports=`	
\v\f\r                　\u2028\u2029\uFEFF`},7476:function(i,u,t){var e=t(2195),n=t(9504);i.exports=function(r){if(e(r)==="Function")return n(r)}},7495:function(i,u,t){var e=t(6518),n=t(7323);e({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},7629:function(i,u,t){var e=t(6395),n=t(4576),r=t(9433),o="__core-js_shared__",a=i.exports=n[o]||r(o,{});(a.versions||(a.versions=[])).push({version:"3.43.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7633:function(i,u,t){var e=t(7751),n=t(2106),r=t(8227),o=t(3724),a=r("species");i.exports=function(s){var c=e(s);o&&c&&!c[a]&&n(c,a,{configurable:!0,get:function(){return this}})}},7657:function(i,u,t){var e,n,r,o=t(9039),a=t(4901),s=t(34),c=t(2360),l=t(2787),f=t(6840),v=t(8227),d=t(6395),p=v("iterator"),g=!1;[].keys&&("next"in(r=[].keys())?(n=l(l(r)))!==Object.prototype&&(e=n):g=!0),!s(e)||o(function(){var h={};return e[p].call(h)!==h})?e={}:d&&(e=c(e)),a(e[p])||f(e,p,function(){return this}),i.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:g}},7680:function(i,u,t){var e=t(9504);i.exports=e([].slice)},7740:function(i,u,t){var e=t(9297),n=t(5031),r=t(7347),o=t(4913);i.exports=function(a,s,c){for(var l=n(s),f=o.f,v=r.f,d=0;d<l.length;d++){var p=l[d];e(a,p)||c&&e(c,p)||f(a,p,v(s,p))}}},7750:function(i,u,t){var e=t(4117),n=TypeError;i.exports=function(r){if(e(r))throw new n("Can't call method on "+r);return r}},7751:function(i,u,t){var e=t(4576),n=t(4901);i.exports=function(r,o){return arguments.length<2?(a=e[r],n(a)?a:void 0):e[r]&&e[r][o];var a}},7764:function(i,u,t){var e=t(8183).charAt,n=t(655),r=t(1181),o=t(1088),a=t(2529),s="String Iterator",c=r.set,l=r.getterFor(s);o(String,"String",function(f){c(this,{type:s,string:n(f),index:0})},function(){var f,v=l(this),d=v.string,p=v.index;return p>=d.length?a(void 0,!0):(f=e(d,p),v.index+=f.length,a(f,!1))})},7812:function(i,u,t){var e=t(6518),n=t(9297),r=t(757),o=t(6823),a=t(5745),s=t(1296),c=a("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!s},{keyFor:function(l){if(!r(l))throw new TypeError(o(l)+" is not a symbol");if(n(c,l))return c[l]}})},7829:function(i,u,t){var e=t(8183).charAt;i.exports=function(n,r,o){return r+(o?e(n,r).length:1)}},7916:function(i,u,t){var e=t(6080),n=t(9565),r=t(8981),o=t(6319),a=t(4209),s=t(3517),c=t(6198),l=t(4659),f=t(81),v=t(851),d=Array;i.exports=function(p){var g=r(p),h=s(this),y=arguments.length,m=y>1?arguments[1]:void 0,b=m!==void 0;b&&(m=e(m,y>2?arguments[2]:void 0));var x,w,I,k,E,P,C=v(g),O=0;if(!C||this===d&&a(C))for(x=c(g),w=h?new this(x):d(x);x>O;O++)P=b?m(g[O],O):g[O],l(w,O,P);else for(w=h?new this:[],E=(k=f(g,C)).next;!(I=n(E,k)).done;O++)P=b?o(k,m,[I.value,O],!0):I.value,l(w,O,P);return w.length=O,w}},7979:function(i,u,t){var e=t(8551);i.exports=function(){var n=e(this),r="";return n.hasIndices&&(r+="d"),n.global&&(r+="g"),n.ignoreCase&&(r+="i"),n.multiline&&(r+="m"),n.dotAll&&(r+="s"),n.unicode&&(r+="u"),n.unicodeSets&&(r+="v"),n.sticky&&(r+="y"),r}},8014:function(i,u,t){var e=t(1291),n=Math.min;i.exports=function(r){var o=e(r);return o>0?n(o,9007199254740991):0}},8183:function(i,u,t){var e=t(9504),n=t(1291),r=t(655),o=t(7750),a=e("".charAt),s=e("".charCodeAt),c=e("".slice),l=function(f){return function(v,d){var p,g,h=r(o(v)),y=n(d),m=h.length;return y<0||y>=m?f?"":void 0:(p=s(h,y))<55296||p>56319||y+1===m||(g=s(h,y+1))<56320||g>57343?f?a(h,y):p:f?c(h,y,y+2):g-56320+(p-55296<<10)+65536}};i.exports={codeAt:l(!1),charAt:l(!0)}},8227:function(i,u,t){var e=t(4576),n=t(5745),r=t(9297),o=t(3392),a=t(4495),s=t(7040),c=e.Symbol,l=n("wks"),f=s?c.for||c:c&&c.withoutSetter||o;i.exports=function(v){return r(l,v)||(l[v]=a&&r(c,v)?c[v]:f("Symbol."+v)),l[v]}},8242:function(i,u,t){var e=t(9565),n=t(7751),r=t(8227),o=t(6840);i.exports=function(){var a=n("Symbol"),s=a&&a.prototype,c=s&&s.valueOf,l=r("toPrimitive");s&&!s[l]&&o(s,l,function(f){return e(c,this)},{arity:1})}},8344:function(i,u,t){t(8543)},8429:function(i,u,t){var e=t(9039),n=t(4576).RegExp,r=e(function(){var s=n("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),o=r||e(function(){return!n("a","y").sticky}),a=r||e(function(){var s=n("^r","gy");return s.lastIndex=2,s.exec("str")!==null});i.exports={BROKEN_CARET:a,MISSED_STICKY:o,UNSUPPORTED_Y:r}},8480:function(i,u,t){var e=t(1828),n=t(8727).concat("length","prototype");u.f=Object.getOwnPropertyNames||function(r){return e(r,n)}},8543:function(i,u,t){var e=t(6518),n=t(9565),r=t(7476),o=t(3994),a=t(2529),s=t(7750),c=t(8014),l=t(655),f=t(8551),v=t(34),d=t(2195),p=t(788),g=t(1034),h=t(5966),y=t(6840),m=t(9039),b=t(8227),x=t(2293),w=t(7829),I=t(6682),k=t(1181),E=t(6395),P=b("matchAll"),C="RegExp String",O=C+" Iterator",M=k.set,T=k.getterFor(O),A=RegExp.prototype,et=TypeError,q=r("".indexOf),_=r("".matchAll),Y=!!_&&!m(function(){_("a",/./)}),H=o(function(z,W,D,j){M(this,{type:O,regexp:z,string:W,global:D,unicode:j,done:!1})},C,function(){var z=T(this);if(z.done)return a(void 0,!0);var W=z.regexp,D=z.string,j=I(W,D);return j===null?(z.done=!0,a(void 0,!0)):z.global?(l(j[0])===""&&(W.lastIndex=w(D,c(W.lastIndex),z.unicode)),a(j,!1)):(z.done=!0,a(j,!1))}),U=function(z){var W,D,j,N=f(this),nt=l(z),bt=x(N,RegExp),ft=l(g(N));return W=new bt(bt===RegExp?N.source:N,ft),D=!!~q(ft,"g"),j=!!~q(ft,"u"),W.lastIndex=c(N.lastIndex),new H(W,nt,D,j)};e({target:"String",proto:!0,forced:Y},{matchAll:function(z){var W,D,j,N,nt=s(this);if(v(z)){if(p(z)&&(W=l(s(g(z))),!~q(W,"g")))throw new et("`.matchAll` does not allow non-global regexes");if(Y)return _(nt,z);if((j=h(z,P))===void 0&&E&&d(z)==="RegExp"&&(j=U),j)return n(j,z,nt)}else if(Y)return _(nt,z);return D=l(nt),N=new RegExp(z,"g"),E?n(U,N,D):N[P](D)}}),E||P in A||y(A,P,U)},8551:function(i,u,t){var e=t(34),n=String,r=TypeError;i.exports=function(o){if(e(o))return o;throw new r(n(o)+" is not an object")}},8598:function(i,u,t){var e=t(6518),n=t(9504),r=t(7055),o=t(5397),a=t(4598),s=n([].join);e({target:"Array",proto:!0,forced:r!==Object||!a("join",",")},{join:function(c){return s(o(this),c===void 0?",":c)}})},8622:function(i,u,t){var e=t(4576),n=t(4901),r=e.WeakMap;i.exports=n(r)&&/native code/.test(String(r))},8686:function(i,u,t){var e=t(3724),n=t(9039);i.exports=e&&n(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},8706:function(i,u,t){var e=t(6518),n=t(9039),r=t(4376),o=t(34),a=t(8981),s=t(6198),c=t(6837),l=t(4659),f=t(1469),v=t(597),d=t(8227),p=t(9519),g=d("isConcatSpreadable"),h=p>=51||!n(function(){var m=[];return m[g]=!1,m.concat()[0]!==m}),y=function(m){if(!o(m))return!1;var b=m[g];return b!==void 0?!!b:r(m)};e({target:"Array",proto:!0,arity:1,forced:!h||!v("concat")},{concat:function(m){var b,x,w,I,k,E=a(this),P=f(E,0),C=0;for(b=-1,w=arguments.length;b<w;b++)if(y(k=b===-1?E:arguments[b]))for(I=s(k),c(C+I),x=0;x<I;x++,C++)x in k&&l(P,C,k[x]);else c(C+1),l(P,C++,k);return P.length=C,P}})},8727:function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8745:function(i,u,t){var e=t(616),n=Function.prototype,r=n.apply,o=n.call;i.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(r):function(){return o.apply(r,arguments)})},8773:function(i,u){var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);u.f=n?function(r){var o=e(this,r);return!!o&&o.enumerable}:t},8781:function(i,u,t){var e=t(350).PROPER,n=t(6840),r=t(8551),o=t(655),a=t(9039),s=t(1034),c="toString",l=RegExp.prototype,f=l[c],v=a(function(){return f.call({source:"a",flags:"b"})!=="/a/b"}),d=e&&f.name!==c;(v||d)&&n(l,c,function(){var p=r(this);return"/"+o(p.source)+"/"+o(s(p))},{unsafe:!0})},8814:function(i,u,t){var e=t(9039),n=t(4576).RegExp;i.exports=e(function(){var r=n("(?<a>b)","g");return r.exec("b").groups.a!=="b"||"b".replace(r,"$<a>c")!=="bc"})},8981:function(i,u,t){var e=t(7750),n=Object;i.exports=function(r){return n(e(r))}},9039:function(i){i.exports=function(u){try{return!!u()}catch{return!0}}},9085:function(i,u,t){var e=t(6518),n=t(4213);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==n},{assign:n})},9167:function(i,u,t){var e=t(4576);i.exports=e},9213:function(i,u,t){var e=t(6080),n=t(9504),r=t(7055),o=t(8981),a=t(6198),s=t(1469),c=n([].push),l=function(f){var v=f===1,d=f===2,p=f===3,g=f===4,h=f===6,y=f===7,m=f===5||h;return function(b,x,w,I){for(var k,E,P=o(b),C=r(P),O=a(C),M=e(x,w),T=0,A=I||s,et=v?A(b,O):d||y?A(b,0):void 0;O>T;T++)if((m||T in C)&&(E=M(k=C[T],T,P),f))if(v)et[T]=E;else if(E)switch(f){case 3:return!0;case 5:return k;case 6:return T;case 2:c(et,k)}else switch(f){case 4:return!1;case 7:c(et,k)}return h?-1:p||g?g:et}};i.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},9228:function(i,u,t){t(7495);var e=t(9565),n=t(6840),r=t(7323),o=t(9039),a=t(8227),s=t(6699),c=a("species"),l=RegExp.prototype;i.exports=function(f,v,d,p){var g=a(f),h=!o(function(){var x={};return x[g]=function(){return 7},""[f](x)!==7}),y=h&&!o(function(){var x=!1,w=/a/;return f==="split"&&((w={}).constructor={},w.constructor[c]=function(){return w},w.flags="",w[g]=/./[g]),w.exec=function(){return x=!0,null},w[g](""),!x});if(!h||!y||d){var m=/./[g],b=v(g,""[f],function(x,w,I,k,E){var P=w.exec;return P===r||P===l.exec?h&&!E?{done:!0,value:e(m,w,I,k)}:{done:!0,value:e(x,I,w,k)}:{done:!1}});n(String.prototype,f,b[0]),n(l,g,b[1])}p&&s(l[g],"sham",!0)}},9296:function(i,u,t){var e=t(4055)("span").classList,n=e&&e.constructor&&e.constructor.prototype;i.exports=n===Object.prototype?void 0:n},9297:function(i,u,t){var e=t(9504),n=t(8981),r=e({}.hasOwnProperty);i.exports=Object.hasOwn||function(o,a){return r(n(o),a)}},9306:function(i,u,t){var e=t(4901),n=t(6823),r=TypeError;i.exports=function(o){if(e(o))return o;throw new r(n(o)+" is not a function")}},9432:function(i,u,t){var e=t(6518),n=t(8981),r=t(1072);e({target:"Object",stat:!0,forced:t(9039)(function(){r(1)})},{keys:function(o){return r(n(o))}})},9433:function(i,u,t){var e=t(4576),n=Object.defineProperty;i.exports=function(r,o){try{n(e,r,{value:o,configurable:!0,writable:!0})}catch{e[r]=o}return o}},9463:function(i,u,t){var e=t(6518),n=t(3724),r=t(4576),o=t(9504),a=t(9297),s=t(4901),c=t(1625),l=t(655),f=t(2106),v=t(7740),d=r.Symbol,p=d&&d.prototype;if(n&&s(d)&&(!("description"in p)||d().description!==void 0)){var g={},h=function(){var k=arguments.length<1||arguments[0]===void 0?void 0:l(arguments[0]),E=c(p,this)?new d(k):k===void 0?d():d(k);return k===""&&(g[E]=!0),E};v(h,d),h.prototype=p,p.constructor=h;var y=String(d("description detection"))==="Symbol(description detection)",m=o(p.valueOf),b=o(p.toString),x=/^Symbol\((.*)\)[^)]+$/,w=o("".replace),I=o("".slice);f(p,"description",{configurable:!0,get:function(){var k=m(this);if(a(g,k))return"";var E=b(k),P=y?I(E,7,-1):w(E,x,"$1");return P===""?void 0:P}}),e({global:!0,constructor:!0,forced:!0},{Symbol:h})}},9504:function(i,u,t){var e=t(616),n=Function.prototype,r=n.call,o=e&&n.bind.bind(r,r);i.exports=e?o:function(a){return function(){return r.apply(a,arguments)}}},9519:function(i,u,t){var e,n,r=t(4576),o=t(2839),a=r.process,s=r.Deno,c=a&&a.versions||s&&s.version,l=c&&c.v8;l&&(n=(e=l.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!n&&o&&(!(e=o.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=o.match(/Chrome\/(\d+)/))&&(n=+e[1]),i.exports=n},9539:function(i,u,t){var e=t(9565),n=t(8551),r=t(5966);i.exports=function(o,a,s){var c,l;n(o);try{if(!(c=r(o,"return"))){if(a==="throw")throw s;return s}c=e(c,o)}catch(f){l=!0,c=f}if(a==="throw")throw s;if(l)throw c;return n(c),s}},9565:function(i,u,t){var e=t(616),n=Function.prototype.call;i.exports=e?n.bind(n):function(){return n.apply(n,arguments)}},9572:function(i,u,t){var e=t(9297),n=t(6840),r=t(3640),o=t(8227)("toPrimitive"),a=Date.prototype;e(a,o)||n(a,o,r)},9617:function(i,u,t){var e=t(5397),n=t(5610),r=t(6198),o=function(a){return function(s,c,l){var f=e(s),v=r(f);if(v===0)return!a&&-1;var d,p=n(l,v);if(a&&c!=c){for(;v>p;)if((d=f[p++])!=d)return!0}else for(;v>p;p++)if((a||p in f)&&f[p]===c)return a||p||0;return!a&&-1}};i.exports={includes:o(!0),indexOf:o(!1)}},9773:function(i,u,t){var e=t(6518),n=t(4495),r=t(9039),o=t(3717),a=t(8981);e({target:"Object",stat:!0,forced:!n||r(function(){o.f(1)})},{getOwnPropertySymbols:function(s){var c=o.f;return c?c(a(s)):[]}})}},B={};function S(i){var u=B[i];if(u!==void 0)return u.exports;var t=B[i]={exports:{}};return V[i].call(t.exports,t,t.exports,S),t.exports}S.d=function(i,u){for(var t in u)S.o(u,t)&&!S.o(i,t)&&Object.defineProperty(i,t,{enumerable:!0,get:u[t]})},S.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),S.o=function(i,u){return Object.prototype.hasOwnProperty.call(i,u)},S.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var ct={};S.r(ct),S.d(ct,{SimpleKeyboard:function(){return Xt},default:function(){return Jt}}),S(5276),S(8598),S(4782),S(4554),S(2010),S(7427),S(6099),S(7495),S(8781),S(5440),S(744),S(2762),typeof Element>"u"||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),typeof self<"u"&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(i){if("Element"in i){var u="classList",t="prototype",e=i.Element[t],n=Object,r=String[t].trim||function(){return this.replace(/^\s+|\s+$/g,"")},o=Array[t].indexOf||function(d){for(var p=0,g=this.length;p<g;p++)if(p in this&&this[p]===d)return p;return-1},a=function(d,p){this.name=d,this.code=DOMException[d],this.message=p},s=function(d,p){if(p==="")throw new a("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(p))throw new a("INVALID_CHARACTER_ERR","The token must not contain space characters.");return o.call(d,p)},c=function(d){for(var p=r.call(d.getAttribute("class")||""),g=p?p.split(/\s+/):[],h=0,y=g.length;h<y;h++)this.push(g[h]);this._updateClassName=function(){d.setAttribute("class",this.toString())}},l=c[t]=[],f=function(){return new c(this)};if(a[t]=Error[t],l.item=function(d){return this[d]||null},l.contains=function(d){return~s(this,d+"")},l.add=function(){var d,p=arguments,g=0,h=p.length,y=!1;do~s(this,d=p[g]+"")||(this.push(d),y=!0);while(++g<h);y&&this._updateClassName()},l.remove=function(){var d,p,g=arguments,h=0,y=g.length,m=!1;do for(p=s(this,d=g[h]+"");~p;)this.splice(p,1),m=!0,p=s(this,d);while(++h<y);m&&this._updateClassName()},l.toggle=function(d,p){var g=this.contains(d),h=g?p!==!0&&"remove":p!==!1&&"add";return h&&this[h](d),p===!0||p===!1?p:!g},l.replace=function(d,p){var g=s(d+"");~g&&(this.splice(g,1,p),this._updateClassName())},l.toString=function(){return this.join(" ")},n.defineProperty){var v={get:f,enumerable:!0,configurable:!0};try{n.defineProperty(e,u,v)}catch(d){d.number!==void 0&&d.number!==-2146823252||(v.enumerable=!1,n.defineProperty(e,u,v))}}else n[t].__defineGetter__&&e.__defineGetter__(u,f)}}(self),function(){var i=document.createElement("_");if(i.classList.add("c1","c2"),!i.classList.contains("c2")){var u=function(e){var n=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(r){var o,a=arguments.length;for(o=0;o<a;o++)r=arguments[o],n.call(this,r)}};u("add"),u("remove")}if(i.classList.toggle("c3",!1),i.classList.contains("c3")){var t=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,n){return 1 in arguments&&!this.contains(e)==!n?n:t.call(this,e)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(e,n){var r=this.toString().split(" "),o=r.indexOf(e+"");~o&&(r=r.slice(o),this.remove.apply(this,r),this.add(n),this.add.apply(this,r.slice(1)))}),i=null}()),S(2675),S(9463),S(2259),S(5700),S(8706),S(2008),S(3418),S(4423),S(3792),S(2062),S(6910),S(739),S(9572),S(2892),S(9085),S(3851),S(1278),S(9432),S(4864),S(1699),S(7764),S(8344),S(3500),S(2953),S(2712),S(2637),S(1480),S(825),S(1761);function Q(i){return function(u){if(Array.isArray(u))return pt(u)}(i)||function(u){if(typeof Symbol<"u"&&u[Symbol.iterator]!=null||u["@@iterator"]!=null)return Array.from(u)}(i)||F(i)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function F(i,u){if(i){if(typeof i=="string")return pt(i,u);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?pt(i,u):void 0}}function pt(i,u){(u==null||u>i.length)&&(u=i.length);for(var t=0,e=Array(u);t<u;t++)e[t]=i[t];return e}function kt(i){return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},kt(i)}function Tt(i,u){for(var t=0;t<u.length;t++){var e=u[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,Nt(e.key),e)}}function gt(i,u,t){return(u=Nt(u))in i?Object.defineProperty(i,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[u]=t,i}function Nt(i){var u=function(t,e){if(kt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(kt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}(i,"string");return kt(u)=="symbol"?u:u+""}var At=function(){return i=function e(n){var r=n.getOptions,o=n.getCaretPosition,a=n.getCaretPositionEnd,s=n.dispatch;(function(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")})(this,e),gt(this,"getOptions",void 0),gt(this,"getCaretPosition",void 0),gt(this,"getCaretPositionEnd",void 0),gt(this,"dispatch",void 0),gt(this,"maxLengthReached",void 0),gt(this,"isStandardButton",function(c){return c&&!(c[0]==="{"&&c[c.length-1]==="}")}),this.getOptions=r,this.getCaretPosition=o,this.getCaretPositionEnd=a,this.dispatch=s,e.bindMethods(e,this)},u=[{key:"getButtonType",value:function(e){return e.includes("{")&&e.includes("}")&&e!=="{//}"?"functionBtn":"standardBtn"}},{key:"getButtonClass",value:function(e){var n=this.getButtonType(e),r=e.replace("{","").replace("}",""),o="";return n!=="standardBtn"&&(o=" hg-button-".concat(r)),"hg-".concat(n).concat(o)}},{key:"getDefaultDiplay",value:function(){return{"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"↑","{arrowleft}":"←","{arrowdown}":"↓","{arrowright}":"→","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{forwarddelete}":"del","{end}":"end","{pagedown}":"down","{numpadmultiply}":"*","{numpadsubtract}":"-","{numpadadd}":"+","{numpadenter}":"enter","{period}":".","{numpaddecimal}":".","{numpad0}":"0","{numpad1}":"1","{numpad2}":"2","{numpad3}":"3","{numpad4}":"4","{numpad5}":"5","{numpad6}":"6","{numpad7}":"7","{numpad8}":"8","{numpad9}":"9"}}},{key:"getButtonDisplayName",value:function(e,n){return(n=arguments.length>2&&arguments[2]!==void 0&&arguments[2]?Object.assign({},this.getDefaultDiplay(),n):n||this.getDefaultDiplay())[e]||e}},{key:"getUpdatedInput",value:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:r,a=arguments.length>4&&arguments[4]!==void 0&&arguments[4],s=this.getOptions(),c=[r,o,a],l=n;return(e==="{bksp}"||e==="{backspace}")&&l.length>0?l=this.removeAt.apply(this,[l].concat(c)):(e==="{delete}"||e==="{forwarddelete}")&&l.length>0?l=this.removeForwardsAt.apply(this,[l].concat(c)):e==="{space}"?l=this.addStringAt.apply(this,[l," "].concat(c)):e!=="{tab}"||typeof s.tabCharOnTab=="boolean"&&s.tabCharOnTab===!1?e!=="{enter}"&&e!=="{numpadenter}"||!s.newLineOnEnter?e.includes("numpad")&&Number.isInteger(Number(e[e.length-2]))?l=this.addStringAt.apply(this,[l,e[e.length-2]].concat(c)):e==="{numpaddivide}"?l=this.addStringAt.apply(this,[l,"/"].concat(c)):e==="{numpadmultiply}"?l=this.addStringAt.apply(this,[l,"*"].concat(c)):e==="{numpadsubtract}"?l=this.addStringAt.apply(this,[l,"-"].concat(c)):e==="{numpadadd}"?l=this.addStringAt.apply(this,[l,"+"].concat(c)):e==="{numpaddecimal}"?l=this.addStringAt.apply(this,[l,"."].concat(c)):e==="{"||e==="}"?l=this.addStringAt.apply(this,[l,e].concat(c)):e.includes("{")||e.includes("}")||(l=this.addStringAt.apply(this,[l,e].concat(c))):l=this.addStringAt.apply(this,[l,`
`].concat(c)):l=this.addStringAt.apply(this,[l,"	"].concat(c)),s.debug&&console.log("Input will be: "+l),l}},{key:"updateCaretPos",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=this.updateCaretPosAction(e,n);this.dispatch(function(o){o.setCaretPosition(r)})}},{key:"updateCaretPosAction",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=this.getOptions(),o=this.getCaretPosition();return o!=null&&(n?o>0&&(o-=e):o+=e),r.debug&&console.log("Caret at:",o),o}},{key:"addStringAt",value:function(e,n){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:e.length,s=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return o||o===0?(r=[e.slice(0,o),n,e.slice(a)].join(""),this.isMaxLengthReached()||s&&this.updateCaretPos(n.length)):r=e+n,r}},{key:"removeAt",value:function(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.length,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,a=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(r===0&&o===0)return e;if(r===o){var s=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;r&&r>=0?e.substring(r-2,r).match(s)?(n=e.substr(0,r-2)+e.substr(r),a&&this.updateCaretPos(2,!0)):(n=e.substr(0,r-1)+e.substr(r),a&&this.updateCaretPos(1,!0)):e.slice(-2).match(s)?(n=e.slice(0,-2),a&&this.updateCaretPos(2,!0)):(n=e.slice(0,-1),a&&this.updateCaretPos(1,!0))}else n=e.slice(0,r)+e.slice(o),a&&this.dispatch(function(c){c.setCaretPosition(r)});return n}},{key:"removeForwardsAt",value:function(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.length,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,a=arguments.length>3&&arguments[3]!==void 0&&arguments[3];return e!=null&&e.length&&r!==null?(r===o?n=e.substring(r,r+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?e.substr(0,r)+e.substr(r+2):e.substr(0,r)+e.substr(r+1):(n=e.slice(0,r)+e.slice(o),a&&this.dispatch(function(s){s.setCaretPosition(r)})),n):e}},{key:"handleMaxLength",value:function(e,n){var r=this.getOptions(),o=r.maxLength,a=e[r.inputName||"default"],s=n.length-1>=o;if(n.length<=a.length)return!1;if(Number.isInteger(o))return r.debug&&console.log("maxLength (num) reached:",s),s?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if(kt(o)==="object"){var c=n.length-1>=o[r.inputName||"default"];return r.debug&&console.log("maxLength (obj) reached:",c),c?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}},{key:"isMaxLengthReached",value:function(){return!!this.maxLengthReached}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return!!window.PointerEvent}},{key:"camelCase",value:function(e){return e?e.toLowerCase().trim().split(/[.\-_\s]/g).reduce(function(n,r){return r.length?n+r[0].toUpperCase()+r.slice(1):n}):""}},{key:"chunkArray",value:function(e,n){return Q(Array(Math.ceil(e.length/n))).map(function(r,o){return e.slice(n*o,n+n*o)})}},{key:"escapeRegex",value:function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(e,n){var r=e,o=n.indexOf("‫");return o<e&&o!=-1&&r--,n.indexOf("‬")<e&&o!=-1&&r--,r<0?0:r}},{key:"isConstructor",value:function(e){try{Reflect.construct(String,[],e)}catch{return!1}return!0}}],t=[{key:"bindMethods",value:function(e,n){var r,o=function(s,c){var l=typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(!l){if(Array.isArray(s)||(l=F(s))||c){l&&(s=l);var f=0,v=function(){};return{s:v,n:function(){return f>=s.length?{done:!0}:{done:!1,value:s[f++]}},e:function(h){throw h},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,p=!0,g=!1;return{s:function(){l=l.call(s)},n:function(){var h=l.next();return p=h.done,h},e:function(h){g=!0,d=h},f:function(){try{p||l.return==null||l.return()}finally{if(g)throw d}}}}(Object.getOwnPropertyNames(e.prototype));try{for(o.s();!(r=o.n()).done;){var a=r.value;a==="constructor"||a==="bindMethods"||(n[a]=n[a].bind(n))}}catch(s){o.e(s)}finally{o.f()}}}],u&&Tt(i.prototype,u),t&&Tt(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,u,t}();gt(At,"noop",function(){});var Ot=At;function Z(i){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},Z(i)}function at(i,u){for(var t=0;t<u.length;t++){var e=u[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,ut(e.key),e)}}function L(i,u,t){return(u=ut(u))in i?Object.defineProperty(i,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[u]=t,i}function ut(i){var u=function(t,e){if(Z(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Z(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}(i,"string");return Z(u)=="symbol"?u:u+""}var dt=function(){return i=function e(n){var r=this,o=n.dispatch,a=n.getOptions;(function(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")})(this,e),L(this,"getOptions",void 0),L(this,"dispatch",void 0),L(this,"isModifierKey",function(s){return s.altKey||s.ctrlKey||s.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(s.code||s.key||r.keyCodeToKey(s==null?void 0:s.keyCode))}),this.dispatch=o,this.getOptions=a,Ot.bindMethods(e,this)},u=[{key:"handleHighlightKeyDown",value:function(e){var n=this.getOptions();n.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(e)&&(e.preventDefault(),e.stopImmediatePropagation());var r=this.getSimpleKeyboardLayoutKey(e);this.dispatch(function(o){var a,s,c=o.getButtonElement(r),l=o.getButtonElement("{".concat(r,"}"));if(c)a=c,s=r;else{if(!l)return;a=l,s="{".concat(r,"}")}var f,v,d,p,g=function(y){y.style.background=n.physicalKeyboardHighlightBgColor||"#dadce4",y.style.color=n.physicalKeyboardHighlightTextColor||"black"};if(a)if(Array.isArray(a)){if(a.forEach(function(y){return g(y)}),n.physicalKeyboardHighlightPress)if(n.physicalKeyboardHighlightPressUsePointerEvents)(f=a[0])===null||f===void 0||(v=f.onpointerdown)===null||v===void 0||v.call(f,e);else if(n.physicalKeyboardHighlightPressUseClick){var h;(h=a[0])===null||h===void 0||h.click()}else o.handleButtonClicked(s,e)}else g(a),n.physicalKeyboardHighlightPress&&(n.physicalKeyboardHighlightPressUsePointerEvents?(d=a)===null||d===void 0||(p=d.onpointerdown)===null||p===void 0||p.call(d,e):n.physicalKeyboardHighlightPressUseClick?a.click():o.handleButtonClicked(s,e))})}},{key:"handleHighlightKeyUp",value:function(e){var n=this.getOptions();n.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(e)&&(e.preventDefault(),e.stopImmediatePropagation());var r=this.getSimpleKeyboardLayoutKey(e);this.dispatch(function(o){var a,s,c,l=o.getButtonElement(r)||o.getButtonElement("{".concat(r,"}")),f=function(v){v.removeAttribute&&v.removeAttribute("style")};l&&(Array.isArray(l)?(l.forEach(function(v){return f(v)}),n.physicalKeyboardHighlightPressUsePointerEvents&&((a=l[0])===null||a===void 0||(s=a.onpointerup)===null||s===void 0||s.call(a,e))):(f(l),n.physicalKeyboardHighlightPressUsePointerEvents&&(l==null||(c=l.onpointerup)===null||c===void 0||c.call(l,e))))})}},{key:"getSimpleKeyboardLayoutKey",value:function(e){var n,r="",o=e.code||e.key||this.keyCodeToKey(e==null?void 0:e.keyCode);return(r=o!=null&&o.includes("Numpad")||o!=null&&o.includes("Shift")||o!=null&&o.includes("Space")||o!=null&&o.includes("Backspace")||o!=null&&o.includes("Control")||o!=null&&o.includes("Alt")||o!=null&&o.includes("Meta")?e.code||"":e.key||this.keyCodeToKey(e==null?void 0:e.keyCode)||"").length>1?(n=r)===null||n===void 0?void 0:n.toLowerCase():r}},{key:"keyCodeToKey",value:function(e){return{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}[e]||""}}],u&&at(i.prototype,u),t&&at(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,u,t}();function vt(i){return vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},vt(i)}function jt(i,u){for(var t=0;t<u.length;t++){var e=u[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,St(e.key),e)}}function Ft(i,u,t){return(u=St(u))in i?Object.defineProperty(i,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[u]=t,i}function St(i){var u=function(t,e){if(vt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(vt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}(i,"string");return vt(u)=="symbol"?u:u+""}var zt=function(){return i=function e(n){var r=n.utilities,o=n.options;(function(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")})(this,e),Ft(this,"utilities",void 0),Ft(this,"options",void 0),Ft(this,"candidateBoxElement",void 0),Ft(this,"pageIndex",0),Ft(this,"pageSize",void 0),this.utilities=r,this.options=o,Ot.bindMethods(e,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5},u=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0)}},{key:"show",value:function(e){var n=this,r=e.candidateValue,o=e.targetElement,a=e.onSelect;if(r&&r.length){var s=this.utilities.chunkArray(r.split(" "),this.pageSize);this.renderPage({candidateListPages:s,targetElement:o,pageIndex:this.pageIndex,nbPages:s.length,onItemSelected:function(c,l){a(c,l),n.destroy()}})}}},{key:"renderPage",value:function(e){var n,r=this,o=e.candidateListPages,a=e.targetElement,s=e.pageIndex,c=e.nbPages,l=e.onItemSelected;(n=this.candidateBoxElement)===null||n===void 0||n.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var f=document.createElement("ul");f.className="hg-candidate-box-list",o[s].forEach(function(m){var b,x=document.createElement("li"),w=function(){var I=new(r.options.useTouchEvents?TouchEvent:MouseEvent)("click");return Object.defineProperty(I,"target",{value:x}),I};x.className="hg-candidate-box-list-item",x.innerHTML=((b=r.options.display)===null||b===void 0?void 0:b[m])||m,r.options.useTouchEvents?x.ontouchstart=function(I){return l(m,I||w())}:x.onclick=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w();return l(m,I)},f.appendChild(x)});var v=s>0,d=document.createElement("div");d.classList.add("hg-candidate-box-prev"),v&&d.classList.add("hg-candidate-box-btn-active");var p=function(){v&&r.renderPage({candidateListPages:o,targetElement:a,pageIndex:s-1,nbPages:c,onItemSelected:l})};this.options.useTouchEvents?d.ontouchstart=p:d.onclick=p,this.candidateBoxElement.appendChild(d),this.candidateBoxElement.appendChild(f);var g=s<c-1,h=document.createElement("div");h.classList.add("hg-candidate-box-next"),g&&h.classList.add("hg-candidate-box-btn-active");var y=function(){g&&r.renderPage({candidateListPages:o,targetElement:a,pageIndex:s+1,nbPages:c,onItemSelected:l})};this.options.useTouchEvents?h.ontouchstart=y:h.onclick=y,this.candidateBoxElement.appendChild(h),a.prepend(this.candidateBoxElement)}}],u&&jt(i.prototype,u),t&&jt(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,u,t}(),Vt=zt;function Kt(i){return function(u){if(Array.isArray(u))return mt(u)}(i)||function(u){if(typeof Symbol<"u"&&u[Symbol.iterator]!=null||u["@@iterator"]!=null)return Array.from(u)}(i)||function(u,t){if(u){if(typeof u=="string")return mt(u,t);var e={}.toString.call(u).slice(8,-1);return e==="Object"&&u.constructor&&(e=u.constructor.name),e==="Map"||e==="Set"?Array.from(u):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?mt(u,t):void 0}}(i)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function mt(i,u){(u==null||u>i.length)&&(u=i.length);for(var t=0,e=Array(u);t<u;t++)e[t]=i[t];return e}function yt(i){return yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},yt(i)}function ne(i,u){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(i);u&&(e=e.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,e)}return t}function tt(i,u){for(var t=0;t<u.length;t++){var e=u[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,_t(e.key),e)}}function R(i,u,t){return(u=_t(u))in i?Object.defineProperty(i,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[u]=t,i}function _t(i){var u=function(t,e){if(yt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(yt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}(i,"string");return yt(u)=="symbol"?u:u+""}var Yt=function(){return i=function e(n,r){var o=this;if(function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}(this,e),R(this,"input",void 0),R(this,"options",void 0),R(this,"utilities",void 0),R(this,"caretPosition",void 0),R(this,"caretPositionEnd",void 0),R(this,"keyboardDOM",void 0),R(this,"keyboardPluginClasses",void 0),R(this,"keyboardDOMClass",void 0),R(this,"buttonElements",void 0),R(this,"currentInstanceName",void 0),R(this,"allKeyboardInstances",void 0),R(this,"keyboardInstanceNames",void 0),R(this,"isFirstKeyboardInstance",void 0),R(this,"physicalKeyboard",void 0),R(this,"modules",void 0),R(this,"activeButtonClass",void 0),R(this,"holdInteractionTimeout",void 0),R(this,"holdTimeout",void 0),R(this,"isMouseHold",void 0),R(this,"initialized",void 0),R(this,"candidateBox",void 0),R(this,"keyboardRowsDOM",void 0),R(this,"defaultName","default"),R(this,"activeInputElement",null),R(this,"handleParams",function(p,g){var h,y,m;if(typeof p=="string")h=p.split(".").join(""),y=document.querySelector(".".concat(h)),m=g;else if(p instanceof HTMLDivElement){if(!p.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");h=p.className.split(" ")[0],y=p,m=g}else h="simple-keyboard",y=document.querySelector(".".concat(h)),m=p;return{keyboardDOMClass:h,keyboardDOM:y,options:m}}),R(this,"getOptions",function(){return o.options}),R(this,"getCaretPosition",function(){return o.caretPosition}),R(this,"getCaretPositionEnd",function(){return o.caretPositionEnd}),R(this,"registerModule",function(p,g){o.modules[p]||(o.modules[p]={}),g(o.modules[p])}),R(this,"getKeyboardClassString",function(){for(var p=arguments.length,g=new Array(p),h=0;h<p;h++)g[h]=arguments[h];return[o.keyboardDOMClass].concat(g).filter(function(y){return!!y}).join(" ")}),typeof window<"u"){var a=this.handleParams(n,r),s=a.keyboardDOMClass,c=a.keyboardDOM,l=a.options,f=l===void 0?{}:l;this.utilities=new Ot({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=c,this.options=function(p){for(var g=1;g<arguments.length;g++){var h=arguments[g]!=null?arguments[g]:{};g%2?ne(Object(h),!0).forEach(function(y){R(p,y,h[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(h)):ne(Object(h)).forEach(function(y){Object.defineProperty(p,y,Object.getOwnPropertyDescriptor(h,y))})}return p}({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:!1,enableLayoutCandidates:!0,excludeFromLayout:{}},f),this.keyboardPluginClasses="",Ot.bindMethods(e,this);var v=this.options.inputName,d=v===void 0?this.defaultName:v;if(this.input={},this.input[d]="",this.keyboardDOMClass=s,this.buttonElements={},window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),this.currentInstanceName=this.utilities.camelCase(this.keyboardDOMClass),window.SimpleKeyboardInstances[this.currentInstanceName]=this,this.allKeyboardInstances=window.SimpleKeyboardInstances,this.keyboardInstanceNames=Object.keys(window.SimpleKeyboardInstances),this.isFirstKeyboardInstance=this.keyboardInstanceNames[0]===this.currentInstanceName,this.physicalKeyboard=new dt({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new Vt({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw console.warn('".'.concat(s,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}},u=[{key:"setCaretPosition",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;this.caretPosition=e,this.caretPositionEnd=n}},{key:"getInputCandidates",value:function(e){var n=this,r=this.options,o=r.layoutCandidates,a=r.layoutCandidatesCaseSensitiveMatch;if(!o||yt(o)!=="object")return{};var s=Object.keys(o).filter(function(f){var v=e.substring(0,n.getCaretPositionEnd()||0)||e,d=new RegExp("".concat(n.utilities.escapeRegex(f),"$"),a?"g":"gi");return!!Kt(v.matchAll(d)).length});if(s.length>1){var c=s.sort(function(f,v){return v.length-f.length})[0];return{candidateKey:c,candidateValue:o[c]}}if(s.length){var l=s[0];return{candidateKey:l,candidateValue:o[l]}}return{}}},{key:"showCandidatesBox",value:function(e,n,r){var o=this;this.candidateBox&&this.candidateBox.show({candidateValue:n,targetElement:r,onSelect:function(a,s){var c=o.options,l=c.layoutCandidatesCaseSensitiveMatch,f=c.disableCandidateNormalization,v=c.enableLayoutCandidatesKeyPress,d=a;f||(d=a.normalize("NFD")),typeof o.options.beforeInputUpdate=="function"&&o.options.beforeInputUpdate(o);var p=o.getInput(o.options.inputName,!0),g=o.getCaretPositionEnd()||0,h=p.substring(0,g||0)||p,y=new RegExp("".concat(o.utilities.escapeRegex(e),"$"),l?"g":"gi"),m=h.replace(y,d),b=p.replace(h,m),x=m.length-h.length,w=(g||p.length)+x;w<0&&(w=0),o.setInput(b,o.options.inputName,!0),o.setCaretPosition(w),v&&typeof o.options.onKeyPress=="function"&&o.options.onKeyPress(a,s),typeof o.options.onChange=="function"&&o.options.onChange(o.getInput(o.options.inputName,!0),s),typeof o.options.onChangeAll=="function"&&o.options.onChangeAll(o.getAllInputs(),s)}})}},{key:"handleButtonClicked",value:function(e,n){var r=this.options,o=r.inputName,a=o===void 0?this.defaultName:o,s=r.debug;if(e!=="{//}"){this.input[a]||(this.input[a]=""),typeof this.options.beforeInputUpdate=="function"&&this.options.beforeInputUpdate(this);var c=this.utilities.getUpdatedInput(e,this.input[a],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(e)&&this.activeInputElement&&this.input[a]&&this.input[a]===c&&this.caretPosition===0&&this.caretPositionEnd===c.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(e,n);if(typeof this.options.onKeyPress=="function"&&this.options.onKeyPress(e,n),this.input[a]!==c&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(c))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,c))return;var l=this.utilities.getUpdatedInput(e,this.input[a],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(l,this.options.inputName,!0),s&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),n==null?void 0:n.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),typeof this.options.onChange=="function"&&this.options.onChange(this.getInput(this.options.inputName,!0),n),typeof this.options.onChangeAll=="function"&&this.options.onChangeAll(this.getAllInputs(),n),n!=null&&n.target&&this.options.enableLayoutCandidates){var f,v=this.getInputCandidates(c),d=v.candidateKey,p=v.candidateValue;d&&p?this.showCandidatesBox(d,p,this.keyboardDOM):(f=this.candidateBox)===null||f===void 0||f.destroy()}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),s&&console.log("Key pressed:",e)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(e){this.options.syncInstanceInputs?this.dispatch(function(n){n.isMouseHold=e}):this.isMouseHold=e}},{key:"handleButtonMouseDown",value:function(e,n){var r=this;n&&(this.options.preventMouseDownDefault&&n.preventDefault(),this.options.stopMouseDownPropagation&&n.stopPropagation(),n.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(!0),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout(function(){(r.getMouseHold()&&(!e.includes("{")&&!e.includes("}")||e==="{delete}"||e==="{backspace}"||e==="{bksp}"||e==="{space}"||e==="{tab}")||e==="{arrowright}"||e==="{arrowleft}"||e==="{arrowup}"||e==="{arrowdown}")&&(r.options.debug&&console.log("Button held:",e),r.handleButtonHold(e)),clearTimeout(r.holdTimeout)},500))}},{key:"handleButtonMouseUp",value:function(e,n){var r=this;n&&(this.options.preventMouseUpDefault&&n.preventDefault&&n.preventDefault(),this.options.stopMouseUpPropagation&&n.stopPropagation&&n.stopPropagation(),!(n.target===this.keyboardDOM||n.target&&this.keyboardDOM.contains(n.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(n.target===this.candidateBox.candidateBoxElement||n.target&&this.candidateBox.candidateBoxElement.contains(n.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons(function(o){o.classList.remove(r.activeButtonClass)}),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),e&&typeof this.options.onKeyReleased=="function"&&this.options.onKeyReleased(e,n)}},{key:"handleKeyboardContainerMouseDown",value:function(e){this.options.preventMouseDownDefault&&e.preventDefault()}},{key:"handleButtonHold",value:function(e){var n=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout(function(){n.getMouseHold()?(n.handleButtonClicked(e),n.handleButtonHold(e)):clearTimeout(n.holdInteractionTimeout)},100)}},{key:"syncInstanceInputs",value:function(){var e=this;this.dispatch(function(n){n.replaceInput(e.input),n.setCaretPosition(e.caretPosition,e.caretPositionEnd)})}},{key:"clearInput",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName;this.input[e]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName,n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.options.syncInstanceInputs&&!n&&this.syncInstanceInputs(),this.options.rtl?"‫"+this.input[e].replace("‫","").replace("‬","")+"‬":this.input[e]}},{key:"getAllInputs",value:function(){var e=this,n={};return Object.keys(this.input).forEach(function(r){n[r]=e.getInput(r,!0)}),n}},{key:"setInput",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.inputName||this.defaultName,r=arguments.length>2?arguments[2]:void 0;this.input[n]=e,!r&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(e){this.input=e}},{key:"setOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=this.changedOptions(e);this.options=Object.assign(this.options,e),n.length&&(this.options.debug&&console.log("changedOptions",n),this.onSetOptions(n),this.render())}},{key:"changedOptions",value:function(e){var n=this;return Object.keys(e).filter(function(r){return JSON.stringify(e[r])!==JSON.stringify(n.options[r])})}},{key:"onSetOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(e.includes("layoutCandidatesPageSize")||e.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new Vt({utilities:this.utilities,options:this.options}))}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={}}},{key:"dispatch",value:function(e){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach(function(n){e(window.SimpleKeyboardInstances[n],n)})}},{key:"addButtonTheme",value:function(e,n){var r=this;n&&e&&(e.split(" ").forEach(function(o){n.split(" ").forEach(function(a){r.options.buttonTheme||(r.options.buttonTheme=[]);var s=!1;r.options.buttonTheme.map(function(c){if(c!=null&&c.class.split(" ").includes(a)){s=!0;var l=c.buttons.split(" ");l.includes(o)||(s=!0,l.push(o),c.buttons=l.join(" "))}return c}),s||r.options.buttonTheme.push({class:a,buttons:e})})}),this.render())}},{key:"removeButtonTheme",value:function(e,n){var r=this;if(!e&&!n)return this.options.buttonTheme=[],void this.render();e&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(e.split(" ").forEach(function(o){var a;(a=r.options)===null||a===void 0||(a=a.buttonTheme)===null||a===void 0||a.map(function(s,c){if(s&&n&&n.includes(s.class)||!n){var l,f,v=(l=s)===null||l===void 0?void 0:l.buttons.split(" ").filter(function(d){return d!==o});s&&v!=null&&v.length?s.buttons=v.join(" "):((f=r.options.buttonTheme)===null||f===void 0||f.splice(c,1),s=null)}return s})}),this.render())}},{key:"getButtonElement",value:function(e){var n,r=this.buttonElements[e];return r&&(n=r.length>1?r:r[0]),n}},{key:"inputPatternIsValid",value:function(e){var n,r=this.options.inputPattern;if((n=r instanceof RegExp?r:r[this.options.inputName||this.defaultName])&&e){var o=n.test(e);return this.options.debug&&console.log('inputPattern ("'.concat(n,'"): ').concat(o?"passed":"did not pass!")),o}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var e=this.options.physicalKeyboardHighlightPreventDefault,n=e!==void 0&&e;document.addEventListener("keyup",this.handleKeyUp,n),document.addEventListener("keydown",this.handleKeyDown,n),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),this.options.updateCaretOnSelectionChange&&document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{key:"handleKeyUp",value:function(e){this.caretEventHandler(e),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(e)}},{key:"handleKeyDown",value:function(e){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(e)}},{key:"handleMouseUp",value:function(e){this.caretEventHandler(e)}},{key:"handleTouchEnd",value:function(e){this.caretEventHandler(e)}},{key:"handleSelect",value:function(e){this.caretEventHandler(e)}},{key:"handleSelectionChange",value:function(e){navigator.userAgent.includes("Firefox")||this.caretEventHandler(e)}},{key:"caretEventHandler",value:function(e){var n,r=this;e.target.tagName&&(n=e.target.tagName.toLowerCase()),this.dispatch(function(o){var a=e.target===o.keyboardDOM||e.target&&o.keyboardDOM.contains(e.target);if(r.options.syncInstanceInputs&&Array.isArray(e.path)&&(a=e.path.some(function(l){var f;return l==null||(f=l.hasAttribute)===null||f===void 0?void 0:f.call(l,"data-skInstance")})),(n==="textarea"||n==="input"&&["text","search","url","tel","password"].includes(e.target.type))&&!o.options.disableCaretPositioning){var s=e.target.selectionStart,c=e.target.selectionEnd;o.options.rtl&&(s=o.utilities.getRtlOffset(s,o.getInput()),c=o.utilities.getRtlOffset(c,o.getInput())),o.setCaretPosition(s,c),o.activeInputElement=e.target,o.options.debug&&console.log("Caret at: ",o.getCaretPosition(),o.getCaretPositionEnd(),e&&e.target.tagName.toLowerCase(),"(".concat(o.keyboardDOMClass,")"),e==null?void 0:e.type)}else!o.options.disableCaretPositioning&&a||(e==null?void 0:e.type)==="selectionchange"||(o.setCaretPosition(null),o.activeInputElement=null,o.options.debug&&console.log('Caret position reset due to "'.concat(e==null?void 0:e.type,'" event'),e))})}},{key:"recurseButtons",value:function(e){var n=this;e&&Object.keys(this.buttonElements).forEach(function(r){return n.buttonElements[r].forEach(e)})}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var e=this.options.physicalKeyboardHighlightPreventDefault,n=e!==void 0&&e;document.removeEventListener("keyup",this.handleKeyUp,n),document.removeEventListener("keydown",this.handleKeyDown,n),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),this.options.updateCaretOnSelectionChange&&document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons(function(r){r&&(r.onpointerdown=null,r.onpointerup=null,r.onpointercancel=null,r.ontouchstart=null,r.ontouchend=null,r.ontouchcancel=null,r.onclick=null,r.onmousedown=null,r.onmouseup=null,r.remove(),r=null)}),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(e){var n=this.options.buttonTheme,r=[];return Array.isArray(n)&&n.forEach(function(o){if(o&&o.class&&typeof o.class=="string"&&o.buttons&&typeof o.buttons=="string"){var a=o.class.split(" ");o.buttons.split(" ").includes(e)&&(r=[].concat(Kt(r),Kt(a)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',o)}),r}},{key:"setDOMButtonAttributes",value:function(e,n){var r=this.options.buttonAttributes;Array.isArray(r)&&r.forEach(function(o){o.attribute&&typeof o.attribute=="string"&&o.value&&typeof o.value=="string"&&o.buttons&&typeof o.buttons=="string"?o.buttons.split(" ").includes(e)&&n(o.attribute,o.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',o)})}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(e){var n;if((n=e.target.classList)!==null&&n!==void 0&&n.contains("hg-button"))return e.preventDefault(),e.stopPropagation(),!1}}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=!0,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."))}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),typeof this.options.onInit=="function"&&this.options.onInit(this)}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),typeof this.options.beforeFirstRender=="function"&&this.options.beforeFirstRender(this),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.")}},{key:"beforeRender",value:function(){typeof this.options.beforeRender=="function"&&this.options.beforeRender(this)}},{key:"onRender",value:function(){typeof this.options.onRender=="function"&&this.options.onRender(this)}},{key:"onModulesLoaded",value:function(){typeof this.options.onModulesLoaded=="function"&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var e=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach(function(n){var r=e.utilities.isConstructor(n)?new n(e):n(e);r.init&&r.init(e)}),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(e,n){return!!this.modules[e]&&this.modules[e][n]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(e,n,r,o){var a=this,s=Array.from(e.children),c=0;return s.length&&r.forEach(function(l,f){var v=o[f];if(!(v&&v>l))return!1;var d=l-c,p=v-c,g=document.createElement("div");g.className+="hg-button-container";var h="".concat(a.options.layoutName,"-r").concat(n,"c").concat(f);g.setAttribute("data-skUID",h);var y=s.splice(d,p-d+1);c+=p-d,y.forEach(function(m){return g.appendChild(m)}),s.splice(d,0,g),e.innerHTML="",s.forEach(function(m){return e.appendChild(m)}),a.options.debug&&console.log("rowDOMContainer",y,d,p,c+1)}),e}},{key:"render",value:function(){var e=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var n="hg-layout-".concat(this.options.layoutName),r=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},o=this.options.useTouchEvents||!1,a=o?"hg-touch-events":"",s=this.options.useMouseEvents||!1,c=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,n,this.keyboardPluginClasses,a),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",r[this.options.layoutName||this.defaultName].forEach(function(l,f){var v=l.split(" ");e.options.excludeFromLayout&&e.options.excludeFromLayout[e.options.layoutName||e.defaultName]&&(v=v.filter(function(h){return e.options.excludeFromLayout&&!e.options.excludeFromLayout[e.options.layoutName||e.defaultName].includes(h)}));var d=document.createElement("div");d.className+="hg-row";var p=[],g=[];v.forEach(function(h,y){var m,b=!c&&typeof h=="string"&&h.length>1&&h.indexOf("[")===0,x=!c&&typeof h=="string"&&h.length>1&&h.indexOf("]")===h.length-1;b&&(p.push(y),h=h.replace(/\[/g,"")),x&&(g.push(y),h=h.replace(/\]/g,""));var w=e.utilities.getButtonClass(h),I=e.utilities.getButtonDisplayName(h,e.options.display,e.options.mergeDisplay),k=e.options.useButtonTag?"button":"div",E=document.createElement(k);E.className+="hg-button ".concat(w),(m=E.classList).add.apply(m,Kt(e.getButtonThemeClasses(h))),e.setDOMButtonAttributes(h,function(O,M){E.setAttribute(O,M)}),e.activeButtonClass="hg-activeButton",!e.utilities.pointerEventsSupported()||o||s?o?(E.ontouchstart=function(O){e.handleButtonClicked(h,O),e.handleButtonMouseDown(h,O)},E.ontouchend=function(O){e.handleButtonMouseUp(h,O)},E.ontouchcancel=function(O){e.handleButtonMouseUp(h,O)}):(E.onclick=function(O){e.setMouseHold(!1),typeof e.options.onKeyReleased=="function"||e.options.useMouseEvents&&e.options.clickOnMouseDown||e.handleButtonClicked(h,O)},E.onmousedown=function(O){(typeof e.options.onKeyReleased=="function"||e.options.useMouseEvents&&e.options.clickOnMouseDown)&&!e.isMouseHold&&e.handleButtonClicked(h,O),e.handleButtonMouseDown(h,O)},E.onmouseup=function(O){e.handleButtonMouseUp(h,O)}):(E.onpointerdown=function(O){e.handleButtonClicked(h,O),e.handleButtonMouseDown(h,O)},E.onpointerup=function(O){e.handleButtonMouseUp(h,O)},E.onpointercancel=function(O){e.handleButtonMouseUp(h,O)}),E.setAttribute("data-skBtn",h);var P="".concat(e.options.layoutName,"-r").concat(f,"b").concat(y);E.setAttribute("data-skBtnUID",P);var C=document.createElement("span");C.innerHTML=I,E.appendChild(C),e.buttonElements[h]||(e.buttonElements[h]=[]),e.buttonElements[h].push(E),d.appendChild(E)}),d=e.parseRowDOMContainers(d,f,p,g),e.keyboardRowsDOM.appendChild(d)}),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||o||s?o?(document.ontouchend=function(l){return e.handleButtonMouseUp(void 0,l)},document.ontouchcancel=function(l){return e.handleButtonMouseUp(void 0,l)},this.keyboardDOM.ontouchstart=function(l){return e.handleKeyboardContainerMouseDown(l)}):o||(document.onmouseup=function(l){return e.handleButtonMouseUp(void 0,l)},this.keyboardDOM.onmousedown=function(l){return e.handleKeyboardContainerMouseDown(l)}):(document.onpointerup=function(l){return e.handleButtonMouseUp(void 0,l)},this.keyboardDOM.onpointerdown=function(l){return e.handleKeyboardContainerMouseDown(l)}),this.onInit())}}],u&&tt(i.prototype,u),t&&tt(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,u,t}(),Xt=Yt,Jt=Xt;return ct}()})}(xe)),xe.exports}var Nn=Dn();const jn=_n(Nn);var Ln=Bt('<div class="keyboard-wrapper fixed left-0 w-full z-50 transition-transform svelte-1u10jz3"><div class="drag-bar rounded-t-lg relative flex items-center justify-center px-4 bg-base-300 cursor-grab select-none svelte-1u10jz3"><!> <div class="flex items-center justify-between"><button type="button" class="absolute right-2 top-1/2 -translate-y-1/2 p-1 hover:bg-base-200 rounded text-primary hover:text-error" aria-label="Close"><!></button></div></div> <div class="w-full h-full"></div></div>');function Rn($,K){ve(K,!0);let V=rn(K,"language",3,"no"),B,S,ct,Q,F=null,pt=ee(0),kt=ee(!1),Tt=0,gt=0,Nt=!1,At=!1,Ot=!1,Z=!1,at=!1;const L=80;function ut(tt){if(!Nt||!S)return;const R=S.offsetHeight,_t=window.innerHeight,Yt=tt.clientY-gt,Xt=0,Jt=_t-R;Tt=Math.min(Math.max(Yt,Xt),Jt),S.style.top=`${Tt}px`}function dt(tt){Nt=!1,S.releasePointerCapture(tt.pointerId)}Ae(()=>{Q&&vt[V()]&&Q.setOptions({...vt[V()].layout,display:vt[V()].display})});const vt={no:{layout:{default:["1 2 3 4 5 6 7 8 9 0 +","q w e r t y u i o p å","a s d f g h j k l ø æ @","{shift} z x c v b n m , . - {bksp}","{alt} {space} .com {enter}"],shift:["1 2 3 4 5 6 7 8 9 0 +","Q W E R T Y U I O P Å","A S D F G H J K L Ø Æ @","{shift} Z X C V B N M , . - {bksp}","{alt} {space} .com {enter}"],alt:["1 2 3 4 5 6 7 8 9 0 ° ℃ ℉",`§ < > @ # € $ & * ( ) ' "`,"% _ - + = / ; : ! ? {bksp}","{default} {space} .com {enter}"]},display:{"{bksp}":"⌫","{enter}":"↵","{space}":"␣","{shift}":"⇧","{alt}":".?123","{default}":"ABC"}},en:{layout:{default:["1 2 3 4 5 6 7 8 9 0 - =","q w e r t y u i o p [ ]","a s d f g h j k l ; ' \\","{shift} z x c v b n m , . / {bksp}","{alt} {space} .com {enter}"],shift:["! @ # $ % ^ & * ( ) _ +","Q W E R T Y U I O P { }",'A S D F G H J K L : " |',"{shift} Z X C V B N M < > ? {bksp}","{alt} {space} .com {enter}"],alt:["1 2 3 4 5 6 7 8 9 0 ° ℃ ℉","© ™ € £ ¥ ¢ § ¶ † ‡ ¤","← ↑ → ↓ • ± × ÷ ≠ ∞ {bksp}","{default} {space} .com {enter}"]},display:{"{bksp}":"⌫","{enter}":"↵","{space}":"␣","{shift}":"⇧","{alt}":".?123","{default}":"ABC"}},de:{layout:{default:["^ 1 2 3 4 5 6 7 8 9 0 ß","q w e r t z u i o p ü +","a s d f g h j k l ö ä #","{shift} y x c v b n m , . - {bksp}","{alt} {space} .com {enter}"],shift:['° ! " § $ % & / ( ) = ?',"Q W E R T Z U I O P Ü *","A S D F G H J K L Ö Ä '","{shift} Y X C V B N M ; : _ {bksp}","{alt} {space} .com {enter}"],alt:["@ € µ £ ¥ ¢ ‰ ¤ † ‡ ±","| ~ ` ´ × ÷ ∞ ≠ ≈ « »","← ↑ → ↓ • √ ∫ ∂ ∆ {bksp}","{default} {space} .com {enter}"]}}};ke(()=>{B&&S&&ct&&(window.addEventListener("focusin",tt=>{const R=tt.target;if(R instanceof HTMLInputElement||R instanceof HTMLTextAreaElement){if(R.type==="checkbox")return;R!==F&&(F=R,Ct(kt,!0),Ft(R))}}),window.addEventListener("focusout",tt=>{tt.target===F&&setTimeout(()=>{var R,_t;if(At||at){At=!1;return}((R=document.activeElement)==null?void 0:R.tagName)!=="INPUT"&&((_t=document.activeElement)==null?void 0:_t.tagName)!=="TEXTAREA"&&S!=null&&S!=null&&(Ct(kt,!1),S.style.top="9999px",F=null)},50)}),window.addEventListener("virtual-keypress",()=>{setTimeout(()=>!1,50)}),ct.addEventListener("pointerdown",tt=>{tt.target.closest("button")||(tt.preventDefault(),Nt=!0,gt=tt.clientY-Tt-(Ot?L:0),S.setPointerCapture(tt.pointerId),Ot=!1)}),S.addEventListener("mousedown",()=>{At=!0,setTimeout(()=>At=!1,1e3)}),Q=new jn(B,{layout:vt[V()].layout,display:vt[V()].display,buttonTheme:[{class:"hg-button-medium",buttons:"{enter} {shift} {alt} {default}"},{class:"hg-button-big",buttons:"{bksp}"}],onKeyPress:tt=>{Z=!0,setTimeout(()=>{if(F!=null){switch(tt!=="{enter}"&&window.dispatchEvent(new CustomEvent("virtual-keypress")),tt){case"{bksp}":F.value=F.value.slice(0,-1);break;case"{space}":F.value+=" ";break;case"{enter}":F.dispatchEvent(new KeyboardEvent("keydown",{key:"Enter"})),F.dispatchEvent(new KeyboardEvent("keyup",{key:"Enter"}));break;case"{shift}":Ct(pt,(it(pt)+1)%3),Q.setOptions({layoutName:it(pt)>0?"shift":"default"}),jt();break;case"{default}":at=!0,setTimeout(()=>{F&&document.activeElement!==F&&F.focus(),setTimeout(()=>{at=!1},500)},0),it(pt)>0?Q.setOptions({layoutName:"shift"}):Q.setOptions({layoutName:"default"});break;case"{alt}":at=!0,setTimeout(()=>{F&&document.activeElement!==F&&F.focus(),setTimeout(()=>{at=!1},500)},0),Q.setOptions({layoutName:"alt"});break;default:F.value+=tt,it(pt)===1&&!tt.startsWith("{")&&(Ct(pt,0),Q.setOptions({layoutName:"default"}),jt());break}setTimeout(()=>{Z&&F&&document.activeElement!==F&&F.focus(),Z=!1},0),F.dispatchEvent(new Event("input",{bubbles:!0}))}})}}))});function jt(){Q.removeButtonTheme("{shift}","shift");let tt="⇧";it(pt)===1?(tt="⇧̲",Q.addButtonTheme("{shift}","shift")):it(pt)===2&&(tt="⇪",Q.addButtonTheme("{shift}","shift")),Q.setOptions({display:{...Q.options.display,"{shift}":tt}})}function Ft(tt){if(!S)return;const R=tt.getBoundingClientRect(),_t=S.offsetHeight||260,Yt=window.innerHeight,Xt=Yt-R.bottom,Jt=R.top;let i;Xt>=_t+L?i=R.bottom:Jt>=_t+L?i=0:i=Yt-_t,Tt=Math.max(0,Math.min(i,Yt-_t)),S.style.transition="top 0.2s ease",S.style.top=`${Tt+L}px`,setTimeout(()=>S.style.transition="",100),Ot=!0}var St=Ln();St.__pointermove=ut,St.__pointerup=dt;var zt=J(St),Vt=J(zt);cn(Vt,{class:"w-4 h-4 text-base-content opacity-70"});var Kt=ht(Vt,2),mt=J(Kt);mt.__click=()=>{Ct(kt,!1),S.style.top="9999px",F==null||F.blur(),F=null};var yt=J(mt);an(yt,{class:"w-5 h-5"}),X(mt),X(Kt),X(zt),Te(zt,tt=>ct=tt,()=>ct);var ne=ht(zt,2);Te(ne,tt=>B=tt,()=>B),X(St),Te(St,tt=>S=tt,()=>S),Et($,St),ge()}he(["pointermove","pointerup","click"]);var Bn=Bt('<!> <main class="flex-growp-0 me-5 lg:me-0"><!></main>',1),Fn=Bt('<main class="flex-grow me-5 lg:me-0"><!></main>'),Kn=Bt("<a> </a>"),Un=Bt('<div class="app flex flex-col min-h-screen"><!> <!> <!></div> <div style="display: none"></div>',1);function ar($,K){ve(K,!0);const V=new Fe(["Users/+/Username"]),B=new Fe(["Users/+/Theme"]);let S=ee(!1);ke(async()=>{const Z=localStorage.getItem("theme"),at="dark";Z?document.documentElement.setAttribute("data-theme",Z):(document.documentElement.setAttribute("data-theme",at),localStorage.setItem("theme",at)),await ct();const L=()=>{Ct(S,!0),window.removeEventListener("touchstart",L)};window.addEventListener("touchstart",L,{passive:!0})});async function ct(){const{jsPDF:Z}=await Ce(async()=>{const{jsPDF:L}=await import("./CC3op8zX.js").then(ut=>ut.j);return{jsPDF:L}},__vite__mapDeps([0,1]),import.meta.url);await Ce(()=>import("./DwMOgO1-.js").then(L=>L.j),__vite__mapDeps([2,0,1]),import.meta.url);const at=await Ce(()=>import("./DkH2s96g.js"),[],import.meta.url);window.jspdf=Z,window.XLSX=at}Ae(()=>{if(Wt.username!==""){const Z=V.getData();for(const[at,L]of Object.entries(Z)){const ut=at.split("/");if(L===Wt.username&&ut.length===3){const dt=parseInt(ut[1]);if(!dt)continue;Wt.updateUserId(dt)}}}}),Ae(()=>{if(Wt.userId!==0){const Z=B.getData();for(const[at,L]of Object.entries(Z)){const ut=at.split("/");ut.length===3&&parseInt(ut[1])===Wt.userId&&(document.documentElement.setAttribute("data-theme",L),localStorage.setItem("theme",L),be.update())}}});var Q=Un(),F=oe(Q),pt=J(F);{var kt=Z=>{var at=Bn(),L=oe(at);En(L,{});var ut=ht(L,2),dt=J(ut);sn(dt,()=>K.children),X(ut),Et(Z,at)},Tt=Z=>{var at=Fn(),L=J(at);An(L,{}),X(at),Et(Z,at)};we(pt,Z=>{Ne.isLoggedIn?Z(kt):Z(Tt,!1)})}var gt=ht(pt,2);On(gt,{});var Nt=ht(gt,2);{var At=Z=>{Rn(Z,{})};we(Nt,Z=>{it(S)&&Z(At)})}X(F);var Ot=ht(F,2);_e(Ot,21,()=>Qe,De,(Z,at)=>{var L=Kn(),ut=J(L,!0);X(L),fe(dt=>{Me(L,"href",dt),le(ut,it(at))},[()=>Ze(pe.url.pathname,{locale:it(at)})]),Et(Z,L)}),X(Ot),Et($,Q),ge()}export{rr as _,_n as a,ar as b,or as c,ir as g};
