zeed 0.8.32 → 0.8.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ var Ut=Object.defineProperty;var r=(e,t)=>Ut(e,"name",{value:t,configurable:!0});function St(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;if(typeof globalThis<"u")return globalThis;throw new Error("unable to locate global object")}r(St,"_global");function Y(){let e=St();return e._zeedGlobal==null&&(e._zeedGlobal={}),e._zeedGlobal}r(Y,"getGlobalContext");function k(e){return e!=null&&typeof e=="object"}r(k,"isObject");function de(e){return Object(e)!==e}r(de,"isPrimitive");function O(e){return Array.isArray(e)}r(O,"isArray");function je(e){return k(e)&&!O(e)}r(je,"isRecord");function Wn(e){return typeof e=="string"}r(Wn,"isString");function Kn(e){return typeof e=="number"}r(Kn,"isNumber");function Yn(e){return typeof e=="number"&&Number.isInteger(e)}r(Yn,"isInteger");function Qn(e){return typeof e=="number"&&Number.isSafeInteger(e)}r(Qn,"isSafeInteger");function Xn(e){return typeof e=="boolean"}r(Xn,"isBoolean");function er(e){return e==null}r(er,"isNullOrUndefined");function tr(e){return k(e)&&e.constructor.name==="Uint8Array"}r(tr,"isUint8Array");function te(e,t,n=new WeakSet){if(e===t)return!0;if(n.has(t)||(de(t)||n.add(t),!(e instanceof Object)||!(t instanceof Object))||e.constructor!==t.constructor||e.length!==t.length)return!1;for(let o in e){if(!e.hasOwnProperty(o))continue;if(!t.hasOwnProperty(o))return!1;let i=e[o],s=t[o];if(!te(i,s,n))return!1}for(let o in t)if(t.hasOwnProperty(o)&&!e.hasOwnProperty(o))return!1;return!0}r(te,"deepEqual");function Rt(e,t=new WeakSet){if(t.has(e))return"[Circular ~]";if(de(e)||t.add(e),je(e)){for(let n in e)if(!!e.hasOwnProperty(n)){if(e[n]===void 0){delete e[n];continue}Rt(e[n],t)}}else if(O(e))for(let n=e.length-1;n>=0;n--)e[n]===void 0&&e.splice(n,1);return e}r(Rt,"deepStripUndefinedInPlace");function ne(e,...t){for(let n of t)k(e)||(e={}),!(n==null||!k(n))&&Object.keys(n).forEach(o=>{let i=e[o],s=n[o];Array.isArray(i)&&Array.isArray(s)?e[o]=i.concat(s):k(i)&&k(s)?e[o]=ne(Object.assign({},i),s):e[o]=s});return e}r(ne,"deepMerge");function oe(e={}){let{level:t=void 0,filter:n=void 0}=e,o=G(n),i=re(t);return s=>{if(!i(s.level)||!o(s.name))return;let u=s.name?`[${s.name}]`:"";switch(s.level){case 1:console.info(`I|* ${u}`,...s.messages);break;case 2:console.warn(`W|** ${u}`,...s.messages);break;case 3:console.error(`E|*** ${u}`,...s.messages);break;default:console.debug(`D| ${u}`,...s.messages);break}}}r(oe,"LoggerConsoleHandler");var ie=(a=>(a[a.all=-1]="all",a[a.debug=0]="debug",a[a.info=1]="info",a[a.warn=2]="warn",a[a.error=3]="error",a[a.fatal=4]="fatal",a[a.off=1/0]="off",a))(ie||{}),ze={"*":-1,a:-1,all:-1,d:0,dbg:0,debug:0,i:1,inf:1,info:1,w:2,warn:2,warning:2,e:3,err:3,error:3,fatal:4,off:1/0,"-":1/0};function Ne(e=""){let t=[oe()],n=2,o=r(c=>!0,"logCheckNamespace"),i=!1,s=u;function u(c="",l){function f(...p){g({name:c,messages:p,level:0})}r(f,"log"),f.label=c,f.active=!0,f.level=ge(l??-1),f.extend=function(p){return s(c?`${c}:${p}`:p)};let g=r(p=>{if(f.active===!0&&p.level>=a.level&&p.level>=f.level&&o(c))for(let h of t)h&&h(p)},"emit");return f.debug=function(...p){g({name:c,messages:p,level:0})},f.info=function(...p){g({name:c,messages:p,level:1})},f.warn=function(...p){g({name:c,messages:p,level:2})},f.error=function(...p){g({name:c,messages:p,level:3})},f.assert=function(p,...h){p||(typeof console!==void 0&&(console.assert?console.assert(p,...h):console.error(`Assert did fail with: ${p}`,...h)),g({name:c,messages:h||[`Assert did fail with: ${p}`],level:n}))},f.assertEqual=function(p,h,...b){let d=te(p,h);d||f.assert(d,`Assert did fail. Expected ${h} got ${p}`,h,p,...b)},f.assertNotEqual=function(p,h,...b){let d=te(p,h);d&&f.assert(d,`Assert did fail. Expected ${h} not to be equal with ${p}`,h,p,...b)},f}r(u,"LoggerBaseFactory");function a(c="",l){return s(c,l)}return r(a,"Logger"),a.registerHandler=function(c){t.push(c)},a.setFilter=function(c){o=G(c)},a.setLock=(c=!0)=>i=c,a.setHandlers=function(c=[]){s!==u&&(s=u),!i&&(t=[...c].filter(l=>typeof l=="function"))},a.level=-1,a.setLogLevel=function(c=-1){i||(a.level=c)},a.setFactory=function(c){i||(s=c)},a}r(Ne,"LoggerContext");function kt(e){return e===!0||e==="true"||e==="1"||typeof e=="number"&&e!==0?e="*":e===!1||e==="false"||e===0||e==="0"||e==null||e==="null"||e==="undefined"?e="":e=String(e),e}r(kt,"getNamespaceFilterString");var Ft=kt(typeof process<"u"?process.env.ZEED??process.env.DEBUG:typeof localStorage<"u"?localStorage.zeed??localStorage.debug:"*");function G(e=Ft){let t,n=[],o=[];if(!e)t=r(function(i){return!1},"fn");else if(e==="*")t=r(function(i){return!0},"fn");else{let i,s=e.split(/[\s,]+/),u=s.length;for(i=0;i<u;i++){if(!s[i])continue;let a=s[i].replace(/\*/g,".*?");a[0]==="-"?n.push(new RegExp(`^${a.substr(1)}$`)):o.push(new RegExp(`^${a}$`))}t=r(function(a){if(n.length===0&&o.length===0)return!0;let c,l;for(c=0,l=n.length;c<l;c++)if(n[c].test(a))return!1;for(c=0,l=o.length;c<l;c++)if(o[c].test(a))return!0;return!1},"fn")}return t.accept=o,t.reject=n,t.filter=e,t}r(G,"useNamespaceFilter");var It=typeof process<"u"?process.env.ZEED_LEVEL??process.env.LEVEL??process.env.DEBUG_LEVEL:typeof localStorage<"u"?localStorage.zeed_level??localStorage.level??localStorage.debug_level:void 0;function ge(e){if(e===!1)return 1/0;if(typeof e=="number")return e;if(typeof e=="string"){let t=ze[e.toLocaleLowerCase().trim()];if(t!=null)return t}return-1}r(ge,"parseLogLevel");function re(e=It){let t=ge(e);return n=>n>=t}r(re,"useLevelFilter");var $;function me(){let e=Ne();return e.setHandlers([oe()]),e}r(me,"getLoggerContext");function Ct(){if($==null)try{let e=Y();e!=null?(e==null?void 0:e.logger)==null?($=me(),e.logger=$):$=e.logger:$=me()}catch{$=me()}return $}r(Ct,"getGlobalLogger");var v=Ct();var qe=r((e,t)=>t instanceof Object&&!Array.isArray(t)?Object.keys(t).sort().reduce((n,o)=>(n[o]=t[o],n),{}):t,"_sortedReplacer");function vr(e,t=void 0){return JSON.stringify(e,qe,t)}r(vr,"jsonStringifySorted");function Ot(e,t){let n=[],o=[];return t==null&&(t=r(function(i,s){return n[0]===s?"[Circular ~]":`[Circular ~.${o.slice(0,n.indexOf(s)).join(".")}]`},"cycleReplacer")),function(i,s){if(n.length>0){let u=n.indexOf(this);~u?n.splice(u+1):n.push(this),~u?o.splice(u,1/0,i):o.push(i),~n.indexOf(s)&&(s=t==null?void 0:t.call(this,i,s))}else n.push(s);return s=qe(i,s),e==null?s:e.call(this,i,s)}}r(Ot,"serializer");function F(e,t,n,o){return JSON.stringify(e,Ot(t,o),n)}r(F,"jsonStringifySafe");var ye=F;var Ge=v("zeed:bin");function $t(e){let t=unescape(encodeURIComponent(e)),n=t.length,o=new Uint8Array(n);for(let i=0;i<n;i++)o[i]=t.codePointAt(i)||0;return o}r($t,"_encodeUtf8Polyfill");function Bt(e){let t=e.length,n="",o=0;for(;t>0;){let i=t<1e4?t:1e4,s=e.subarray(o,o+i);o+=i,n+=String.fromCodePoint.apply(null,s),t-=i}return decodeURIComponent(escape(n))}r(Bt,"_decodeUtf8Polyfill");var se;function Ve(e){if(se==null&&(se=$t,typeof TextEncoder<"u")){let t=new TextEncoder;se=r(n=>t.encode(n),"_textEncoder")}return se(e.normalize("NFC"))}r(Ve,"stringToUInt8Array");var ae;function Ht(e){if(ae==null&&(ae=Bt,typeof TextDecoder<"u")){let t=new TextDecoder("utf-8",{ignoreBOM:!0});ae=r(n=>t.decode(n),"_textDecoder")}return ae(e).normalize("NFC")}r(Ht,"Uint8ArrayToString");function M(e){return e instanceof ArrayBuffer?new Uint8Array(e):typeof e=="string"?Ve(e):e.length?new Uint8Array(e):e}r(M,"toUint8Array");function Ur(...e){let t=0,n=e.flat(1).map(s=>{let u=M(s);return t+=u.length,u}),o=new Uint8Array(t),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}r(Ur,"joinToUint8Array");function _e(e){if(typeof Buffer<"u")return Buffer.from(M(e)).toString("hex");let t="0123456789abcdef",n="";for(let o of[...M(e)])n+=t[o>>4]+t[o&15];return n}r(_e,"toHex");function Je(e){return Uint8Array.from(e.match(/.{1,2}/g).map(t=>parseInt(t,16)))}r(Je,"fromHex");function Ze(e){let t=M(e);if(typeof Buffer<"u")return Buffer.from(t).toString("base64");let n="";for(let o=0;o<t.byteLength;o++)n+=String.fromCharCode(t[o]);return btoa(n)}r(Ze,"toBase64");function Sr(e){let t=M(e);if(typeof Buffer<"u")return Buffer.from(t).toString("base64url");let n="";for(let o=0;o<t.byteLength;o++)n+=String.fromCharCode(t[o]);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_")}r(Sr,"toBase64Url");function Rr(e){if(typeof Buffer<"u"){let o=Buffer.from(e,"base64");return new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}let t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}r(Rr,"fromBase64");function We(e,t){if(e.byteLength!==t.byteLength)return!1;let n=M(e),o=M(t);for(let i=0;i<n.length;i++)if(n[i]!==o[i])return!1;return!0}r(We,"equalBinary");function he(e){try{return Ve(F(e))}catch(t){throw Ge.warn("jsonToUint8Array",e),t}}r(he,"jsonToUint8Array");function xe(e){try{return JSON.parse(Ht(e))}catch(t){throw Ge.warn("Uint8ArrayToJson",e),t}}r(xe,"Uint8ArrayToJson");function Ke(e,t){if(typeof e!="string")if(e instanceof ArrayBuffer&&e.byteLength!==void 0)e=String.fromCharCode.apply(String,[].slice.call(new Uint8Array(e)));else if(Array.isArray(e))e=String.fromCharCode.apply(String,e);else if(e.constructor===Uint8Array)e=String.fromCharCode.apply(String,[].slice.call(e));else return!1;t=t||16;let n=[],o="0123456789ABCDEF";for(let i=0;i<e.length;i+=t){let s=e.slice(i,Math.min(i+t,e.length)),u=`0000${i.toString(16)}`.slice(-4),a=s.split("").map(l=>{let f=l.charCodeAt(0);return` ${o[(240&f)>>4]}${o[15&f]}`}).join("");a+=" ".repeat(t-s.length);let c=s.replace(/[\x00-\x1F\x20]/g,".");c+=" ".repeat(t-s.length),n.push(`${u} ${a} ${c}`)}return n.join(`
2
+ `)}r(Ke,"Uint8ArrayToHexDump");function V(e=16){let t=new Uint8Array(e);if(typeof crypto<"u"&&crypto.getRandomValues)crypto.getRandomValues(t);else for(let n=0;n<e;n++)t[n]=Math.floor(Math.random()*256);return t}r(V,"randomUint8Array");var Qe="SHA-256",be="AES-GCM",Ye="PBKDF2";async function Cr(e,t=Qe){return M(await crypto.subtle.digest(t,M(e)))}r(Cr,"digest");async function Or(e,t={}){let n=M(e),o=await crypto.subtle.importKey("raw",n,Ye,!1,["deriveKey"]);return await crypto.subtle.deriveKey({name:Ye,salt:t.salt?M(t.salt):new Uint8Array(0),iterations:t.iterations??1e5,hash:Qe},o,{name:be,length:256},!0,["encrypt","decrypt"])}r(Or,"deriveKeyPbkdf2");var ue=new Uint8Array([1,1]);async function Xe(e,t){let n=V(12),o=await crypto.subtle.encrypt({name:be,iv:n},t,e),i=new Uint8Array(o),s=ue.length+n.length+i.length,u=new Uint8Array(s),a=0;return u.set(ue,a),a+=ue.length,u.set(n,a),a+=n.length,u.set(i,a),u}r(Xe,"encrypt");async function et(e,t){let n=e.subarray(0,2);if(!We(n,ue))return Promise.reject(new Error(`Unknown magic ${n}`));let o=e.subarray(2,2+12),i=e.subarray(2+12,e.length),s=await crypto.subtle.decrypt({name:be,iv:o},t,i);return new Uint8Array(s)}r(et,"decrypt");var tt=",";function jt(e){return/^([-+])?([0-9]+(\.[0-9]+)?|Infinity)$/.test(e)?Number(e):NaN}r(jt,"filterFloat");function zt(e){return e==null?"":!isNaN(jt(e))&&isFinite(e)?parseFloat(e):`"${String(e).replace(/"/g,'""')}"`}r(zt,"escape");function Hr(e,t){let n="";t&&(n=`${t.join(tt)}\r
3
+ `);for(let o=0;o<e.length;o++)n+=`${e[o].map(zt).join(tt)}\r
4
+ `;return n}r(Hr,"csv");function Nt(){return crypto.getRandomValues(new Uint32Array(1))[0]/4294967295}r(Nt,"getSecureRandom");function P(){return typeof crypto<"u"?Nt():Math.random()}r(P,"getSecureRandomIfPossible");function Nr(e=.25){return P()<e}r(Nr,"randomBoolean");function qr(e=100,t=0){return t+Math.floor(P()*(e-t))}r(qr,"randomInt");function Gr(e=100,t=0){return t+P()*(e-t)}r(Gr,"randomFloat");function Vr(e,t,n){return Math.max(e,Math.min(n,t))}r(Vr,"between");function qt(e){return e.reduce((t,n)=>t+n,0)}r(qt,"sum");function _r(e){return qt(e)/e.length}r(_r,"avg");function Jr(e){return!/^1?$|^(11+?)\1+$/.test("1".repeat(e))}r(Jr,"isPrimeRX");function Zr(e){for(let t=2;t<e;t++)if(e%t===0)return!1;return e>1}r(Zr,"isPrime");var Te=6;function Wr(e=0,t=1,n){Te=((n??Te)*9301+49297)%233280;let o=Te/233280;return t+o*(e-t)}r(Wr,"seededRandom");function Gt(e=""){let[t="",n="asc"]=e.split(" ");return n=n.toLowerCase(),{field:t,orderby:n,asc:n!=="desc",desc:n==="desc"}}r(Gt,"parseOrderby");function Qr(e,t=!0){return`${e} ${t?"asc":"desc"}`}r(Qr,"composeOrderby");function we(e,t,n=!0){let o=e||0,i=t||0;return o>i?n?1:-1:o<i?n?-1:1:0}r(we,"cmp");function Xr(e,...t){if(t.length>0){let n=t.map(Gt),o=Array.from(e);return o.sort((i,s)=>{for(let{field:u,asc:a}of n){let c=we(i[u],s[u],a);if(c!==0)return c}return 0}),o}return e}r(Xr,"sortedOrderby");function Le(e){return e.filter((t,n)=>e.indexOf(t)===n)}r(Le,"arrayUnique");function Vt(e,t){return Le(e.filter(n=>!t.includes(n)))}r(Vt,"arrayMinus");function _t(...e){return Le(e.reduce((t=[],n)=>t.concat(n),[]))}r(_t,"arrayUnion");function _(...e){return e.flat(1/0)}r(_,"arrayFlatten");function Jt(e,t){return Le(e).filter(n=>t.includes(n))}r(Jt,"arrayIntersection");function oo(e,t){return Vt(_t(e,t),Jt(e,t))}r(oo,"arraySymmetricDifference");function io(e,t){if(e&&Array.isArray(e)){let n;for(;(n=e.indexOf(t))!==-1;)e.splice(n,1);return e}return[]}r(io,"arrayRemoveElement");function so(e,t){return e.includes(t)||e.push(t),e}r(so,"arraySetElement");function Ae(e,t){return e.splice(0,e.length,...e.filter(t)),e}r(Ae,"arrayFilterInPlace");function ao(e,t){let n=e.findIndex(o=>o===t);return n>=0?e.splice(n,1):e.push(t),e}r(ao,"arrayToggleInPlace");function uo(e){return e.splice(0,e.length),e}r(uo,"arrayEmptyInPlace");function Zt(e,t=we){return Array.from(e).sort(t)}r(Zt,"arraySorted");function co(e){return Zt(e,(t,n)=>t-n)}r(co,"arraySortedNumbers");function Wt(e,t){return e.length===t.length&&e.every((n,o)=>n===t[o])}r(Wt,"arrayIsEqual");function nt(e){return e.sort(()=>P()>.5?1:-1),e}r(nt,"arrayShuffleInPlace");function lo(e){return nt(Array.from(e))}r(lo,"arrayShuffle");function fo(e){for(;e.length>1;){let t=Array.from(e);if(nt(t),!Wt(e,t))return t}return e}r(fo,"arrayShuffleForce");function po(e){return e[Math.floor(P()*e.length)]}r(po,"arrayRandomElement");function go(...e){return _(e).reduce((t,n)=>t!=null?n>t?n:t:n,void 0)}r(go,"arrayMax");function mo(...e){return _(e).reduce((t,n)=>t!=null?n<t?n:t:n,void 0)}r(mo,"arrayMin");function yo(...e){return _(e).reduce((t,n)=>t+n,0)}r(yo,"arraySum");function ho(...e){let t=_(e);return t.reduce((n,o)=>n+o,0)/t.length}r(ho,"arrayAvg");function xo(e,t){let n=[],o=0,i=e.length;for(;o<i;)n.push(e.slice(o,o+=t));return n}r(xo,"arrayBatches");function bo(e=0,t){if(e<=0)return[];let n=new Array(e);for(let o=0;o<e;o++)n[o]=t instanceof Function?t(o):t;return n}r(bo,"createArray");var Kt=v("zeed:basex"),Yt={2:"01",8:"01234567",11:"0123456789a",16:"0123456789abcdef",32:"0123456789abcdefghjkmnpqrtuvwxyz","32-crockford":"0123456789ABCDEFGHJKMNPQRSTVWXYZ","32-geohash":"0123456789bcdefghjkmnpqrstuvwxyz","32-agnoster":"0123456789abcdefghjkmnpqrtuvwxyz","32-rfc":"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567","32-hex":"0123456789ABCDEFGHIJKLMNOPQRSTUV","32-zbase":"ybndrfg8ejkmcpqxot1uwisza345h769",36:"0123456789abcdefghijklmnopqrstuvwxyz",58:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",62:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",64:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/","64-url":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",66:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.!~",85:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~"};function B(e){let t;if(typeof e=="string")t=e;else if(t=Yt[String(e)],t==null)throw new Error(`Unknown base ${e}`);if(t.length>=255)throw new TypeError("Alphabet too long");let n=new Uint8Array(256);for(let l=0;l<n.length;l++)n[l]=255;for(let l=0;l<t.length;l++){let f=t.charAt(l),g=f.charCodeAt(0);if(n[g]!==255)throw new TypeError(`${f} is ambiguous`);n[g]=l}let o=t.length,i=t.charAt(0),s=Math.log(o)/Math.log(256),u=Math.log(256)/Math.log(o);function a(l,f=-1){let g=M(l);if(g.byteLength===0)return"";let p=0,h=0,b=g.byteLength;for(;h!==b&&g[h]===0;)h++;let d=(b-h)*u+1>>>0,m=new Uint8Array(d);for(;h!==b;){let x=g[h],w=0;for(let D=d-1;(x!==0||w<p)&&D!==-1;D--,w++)x+=256*m[D]>>>0,m[D]=x%o>>>0,x=x/o>>>0;if(x!==0)throw Kt.warn("Non-zero carry",g,f,w,d),new Error("Non-zero carry");p=w,h++}let y=d-p;for(;y!==d&&m[y]===0;)y++;let T="";for(;y<d;++y)T+=t.charAt(m[y]);return f>0?T.padStart(f,i):T}r(a,"encode");function c(l,f=-1){if(typeof l!="string")throw new TypeError("Expected String");if(l.length===0)return new Uint8Array;l=l.replace(/\s+/gi,"");let g=0,p=0;for(;l[g]===i;)g++;let h=(l.length-g)*s+1>>>0,b=new Uint8Array(h);for(;l[g];){let m=n[l.charCodeAt(g)];if(m===255)throw new Error(`Unsupported character "${l[g]}"`);let y=0;for(let T=h-1;(m!==0||y<p)&&T!==-1;T--,y++)m+=o*b[T]>>>0,b[T]=m%256>>>0,m=m/256>>>0;if(m!==0)throw new Error("Non-zero carry");p=y,g++}let d=h-p;for(;d!==h&&b[d]===0;)d++;return f>0?new Uint8Array([...new Uint8Array(f-b.length+d),...b.slice(d)]):b.slice(d)}return r(c,"decode"),{encode:a,decode:c}}r(B,"useBase");var{encode:vo,decode:Qt}=B(32);function Do(e){return Qt(e.toLocaleLowerCase().replaceAll("l","1").replaceAll("s","5").replaceAll("o","0").replaceAll("i","1"))}r(Do,"decodeBase32");var{encode:Eo,decode:Po}=B(16),{encode:Mo,decode:Uo}=B(58),{encode:So,decode:Ro}=B(62);var Io=r(e=>(e.length>0&&(/^[A-Z0-9_\-\ ]*$/g.test(e)&&(e=e.toLowerCase()),e=e.replace(/^[-_\ ]+/gi,"").replace(/[-_\ ]+$/gi,"").replace(/[-_\ ]+([a-z0-9])/gi,(t,n)=>n.toUpperCase()),e=e[0].toLowerCase()+e.substring(1)),e),"toCamelCase");function Xt(e){return e.charAt(0).toUpperCase()+e.toLowerCase().slice(1)}r(Xt,"toCapitalize");function Co(e){return e.replace(/\w\S*/g,Xt)}r(Co,"toCapitalizeWords");function Oo(e,t="-"){return t=typeof t>"u"?"_":t,e.replace(/([a-z\d])([A-Z])/g,`$1${t}$2`).replace(/([A-Z]+)([A-Z][a-z\d]+)/g,`$1${t}$2`).toLowerCase()}r(Oo,"fromCamelCase");var rt=["1","true","yes","y","on"];function zo(e,t=!1){return e==null||typeof e!="string"?t:rt.includes(String(e).trim().toLowerCase())}r(zo,"stringToBoolean");function No(e,t=0){return e==null||typeof e!="string"?t:parseInt(e.trim(),10)??t}r(No,"stringToInteger");function qo(e,t=0){return e==null||typeof e!="string"?t:parseFloat(e.trim())??t}r(qo,"stringToFloat");function en(e,t=!1){return e==null?t:typeof e=="boolean"?e:typeof e=="number"?e!==0:rt.includes(String(e).trim().toLowerCase())}r(en,"valueToBoolean");function tn(e,t=0){return e==null?t:typeof e=="boolean"?e?1:0:typeof e=="number"?Math.floor(e):parseInt(String(e).trim(),10)??t}r(tn,"valueToInteger");function nn(e,t=0){return e==null?t:typeof e=="boolean"?e?1:0:typeof e=="number"?Math.floor(e):parseFloat(String(e).trim())??t}r(nn,"valueToFloat");function ve(e,t=""){return e==null?t:String(e)??t}r(ve,"valueToString");var Go=nn,Vo=tn,_o=ve,Jo=en;function rn(e,t={}){let{trace:n=!0,pretty:o=!0}=t;return e.map(i=>i&&typeof i=="object"?o&&(i instanceof Uint8Array||i instanceof ArrayBuffer)?`
5
+ ${Ke(i)}
6
+ `:i instanceof Error?n?`${i.name||"Error"}: ${i.message}
7
+ ${i.stack}`:`${i.name||"Error"}: ${i.message}`:o?ye(i,null,2):ye(i):String(i))}r(rn,"formatMessages");function Zo(e,t={}){return rn(e,t).join(" ")}r(Zo,"renderMessages");function Wo(e){try{return decodeURIComponent(escape(e))}catch{}return e}r(Wo,"fixBrokenUth8String");var Ee=864e5;function Pe(e){return Math.floor(e/1e4)}r(Pe,"dayYear");function ot(e){return Math.floor(e/100%100)}r(ot,"dayMonth");function on(e){return Math.floor(e%100)}r(on,"dayDay");function Qo(e){return[Pe(e),ot(e),on(e)]}r(Qo,"dayToParts");function it(e,t=!1){return t?new Date(`${an(e)}T00:00:00.000Z`):new Date(e/1e4,e/100%100-1,e%100)}r(it,"dayToDate");function Xo(){return ce(new Date)}r(Xo,"dayFromToday");function ei(e,t=!1){if(typeof e=="number")return e<100?void 0:e;if(typeof e=="string")return st(e);if(Array.isArray(e)&&e.length===3){let[n,o,i]=e;return Me(n,o,i)}else if(e instanceof Date)return ce(e,t)}r(ei,"dayFromAny");function ti(e){return it(e,!0)}r(ti,"dayToDateGMT");function ce(e,t=!1){return t?st(e.toISOString()):e.getFullYear()*1e4+(e.getMonth()+1)*100+e.getDate()}r(ce,"dayFromDate");function ni(e){return ce(e,!0)}r(ni,"dayFromDateGMT");function De(e,t=!0){return it(e,t).getTime()}r(De,"dayToTimestamp");function sn(e,t=!0){return ce(new Date(e),t)}r(sn,"dayFromTimestamp");function an(e,t="-"){let n=String(e);return n.slice(0,4)+t+n.slice(4,6)+t+n.slice(6,8)}r(an,"dayToString");function Me(e,t=1,n=1){if(!(t<1||t>12||n<1||n>31))return e*1e4+t*100+n}r(Me,"dayFromParts");function st(e){let t=String(e).replace(/[^0-9]/g,"").slice(0,8);if(t.length===8)return+t}r(st,"dayFromString");function ri(e,t=0){let n=Pe(e),o=ot(e);return t!==0&&(o+=t,n+=Math.floor((o-1)/12),o=Math.floor((o-1)%12)+1,o===0&&(o=12)),Me(n,o,1)}r(ri,"dayMonthStart");function oi(e,t=0){let n=Pe(e);return Me(n+t,1,1)}r(oi,"dayYearStart");function ii(e,t){return sn(De(e)+t*864e5)}r(ii,"dayOffset");function si(e,t){return Math.round((De(t)-De(e))/864e5)}r(si,"dayDiff");var{warn:at}=v("zeed:promise");function ut(){let e,t;return[new Promise((o,i)=>{e=o,t=i}),e,t]}r(ut,"createPromise");async function li(e){return new Promise(t=>setTimeout(t,e))}r(li,"sleep");async function fi(){return new Promise(e=>setTimeout(e,0))}r(fi,"immediate");var ct=Symbol("timeout");async function pi(e,t,n=ct){return new Promise(async(o,i)=>{let s=!1,u=setTimeout(()=>{s=!0,o(n)},t);try{let a=await e;clearTimeout(u),s||o(a)}catch(a){clearTimeout(u),s||i(a)}})}r(pi,"timeout");var lt=new Error("Timeout reached");function di(e){return e===ct||e===lt}r(di,"isTimeout");async function ft(e,t){return t<=0?await e:new Promise(async(n,o)=>{let i=!1,s=setTimeout(()=>{i=!0,o(lt)},t);try{let u=await e;clearTimeout(s),i||n(u)}catch(u){clearTimeout(s),i||o(u)}})}r(ft,"tryTimeout");function gi(e,t,n=1e3){return new Promise((o,i)=>{let s=r(c=>{a&&(clearTimeout(a),u(),o(c))},"fn"),u=r(()=>{a=null,e.off?e.off(t,s):e.removeEventListener?e.removeEventListener(t,s):at("No remove listener method found for",e,t)},"done"),a=setTimeout(()=>{u(),i(new Error("Did not response in time"))},n);e.on?e.on(t,s):e.addEventListener?e.addEventListener(t,s):at("No listener method found for",e)})}r(gi,"waitOn");function U(e){return Boolean(e&&(e instanceof Promise||typeof e.then=="function"))}r(U,"isPromise");function H(e){return Promise.resolve(e)}r(H,"promisify");var L=class{get value(){return this.days}constructor(t){var n;if(typeof t=="number"){this.days=t;return}if(t!=null&&(t=(n=L.from(t))==null?void 0:n.days),t==null){let o=new Date;this.days=o.getFullYear()*1e4+(o.getMonth()+1)*100+o.getDate()}else this.days=t}static fromNumber(t){return new L(t)}static fromString(t){return L.from(+t.replace(/[^0-9]/g,"").slice(0,8))}static fromDate(t,n=!1){return n?L.fromString(t.toISOString().substr(0,10)):L.from(t.getFullYear()*1e4+(t.getMonth()+1)*100+t.getDate())}static fromDateGMT(t){return L.fromDate(t,!0)}static from(t,n=!1){if(typeof t=="number")return t<100?void 0:new L(t);if(typeof t=="string")return L.fromString(t);if(Array.isArray(t)&&t.length===3){let[o,i=1,s=1]=t;return i<1||i>12||s<1||s>31?void 0:new L(o*1e4+i*100+s)}else{if(t instanceof Date)return L.fromDate(t,n);if(t instanceof L)return t}}toNumber(){return this.days}toJson(){return this.days}toString(t="-"){let n=String(this.days);return n.slice(0,4)+t+n.slice(4,6)+t+n.slice(6,8)}toDate(t=!1){return t?new Date(`${this.toString()}T00:00:00.000Z`):new Date(this.days/1e4,this.days/100%100-1,this.days%100)}toDateGMT(){return this.toDate(!0)}get year(){return Math.floor(this.days/1e4)}get month(){return Math.floor(this.days/100%100)}get day(){return Math.floor(this.days%100)}dayOffset(t){return L.fromDateGMT(new Date(this.toDateGMT().getTime()+t*864e5))}monthStart(){return L.from([this.year,this.month,1])}yearStart(){return L.from([this.year,1,1])}monthOffset(t){let n=this.month+t,o=Math.floor((n-1)%12)+1;o===0&&(o=12);let i=Math.floor((n-1)/12);return L.from([this.year+i,o,this.day])}daysUntil(t){var n;return Math.round((((n=new L(t))==null?void 0:n.toDateGMT().getTime())-this.toDateGMT().getTime())/864e5)}yesterday(){return this.dayOffset(-1)}tomorrow(){return this.dayOffset(1)}};r(L,"Day");async function bi(e,t,n){let o=L.from(e),i=L.from(t);for(;o&&i&&(o==null?void 0:o.days)<=(i==null?void 0:i.days);){let s=n(o);U(s)&&await s,o=o.dayOffset(1)}}r(bi,"forEachDay");function Ti(){return new L}r(Ti,"today");function wi(e){return new L(e)}r(wi,"day");function Li(e){return L.fromDate(new Date(e)).days}r(Li,"dateStringToDays");function un(e,t=2){return+(+e).toFixed(t)}r(un,"decimal");function Di(e,t=2){return+(+e/10**t).toFixed(t)}r(Di,"decimalFromCents");function Ei(e,t=2){return Math.round(+e*10**t)}r(Ei,"decimalToCents");function Pi(e,t=2){return t*(un(e,t)%1)}r(Pi,"decimalCentsPart");var pt=r(e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;"),"escapeHTML"),Si=r(e=>e.replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'").replace(/&amp;/gi,"&"),"unescapeHTML");function Ii(e,t){return k(e)?Object.fromEntries(Object.entries(e).map(([n,o])=>{let i=t(n,o);return O(i)&&i.length===2?i:[n,i]}).filter(n=>n!=null)):{}}r(Ii,"objectMap");function Ci(e,t){return t.dispose&&e.dispose&&t.dispose.add(e.dispose),Object.assign(e,t)}r(Ci,"objectMergeDisposable");function Oi(e){return Object.keys(e).length<=0}r(Oi,"objectIsEmpty");var dt=/[\u0000-\u001F\u0080-\u009F]/g,cn=/^\.+/,ln=/\.+$/;function gt(){return/[<>:"/\\|?*\u0000-\u001F]/g}r(gt,"filenameReservedRegex");function fn(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}r(fn,"windowsReservedNameRegex");function Hi(e,t="_"){if(typeof e!="string")throw new TypeError("Expected a string");if(gt().test(t)&&dt.test(t))throw new Error("Replacement string cannot contain reserved filename characters");return e=e.replace(gt(),t).replace(dt,t).replace(cn,t).replace(ln,""),e=fn().test(e)?e+t:e,e.slice(0,100)}r(Hi,"toValidFilename");var pn=/[\\\-\[\]\/{}()*+?.^$|]/g;function Ni(e){return e?e instanceof RegExp?e.source:e.replace(pn,"\\$&"):""}r(Ni,"escapeRegExp");var Q=r(e=>Math.abs(e)%1===.5,"isHalf"),mt=r(e=>e%2===0,"isEven"),Vi=r(e=>Math.ceil(e),"roundUp"),_i=r(e=>Math.floor(e),"roundDown"),Ji=r(e=>Math.round(e),"roundHalfUp"),Zi=r(e=>{let t=Math.round(e);return Q(e)&&mt(t)?t-1:t},"roundHalfOdd"),Wi=r(e=>Q(e)?Math.sign(e)*Math.ceil(Math.abs(e)):Math.round(e),"roundHalfAwayFromZero"),Ki=r(e=>Q(e)?Math.floor(e):Math.round(e),"roundHalfDown"),Yi=r(e=>{let t=Math.round(e);return Q(e)?mt(t)?t:t-1:t},"roundHalfEven"),Qi=r(e=>Q(e)?Math.sign(e)*Math.floor(Math.abs(e)):Math.round(e),"roundHalfTowardsZero");function yt(e){return e.reduce((t,n)=>Math.min(t,n.sort_weight||0),0)-1-P()}r(yt,"startSortWeight");function ht(e){return e.reduce((t,n)=>Math.max(t,n.sort_weight||0),0)+1+P()}r(ht,"endSortWeight");function ns(e,t,n){let o=n.length,i=e<t;if(o<=0||e>=o-1)return ht(n);if(e<=0)return yt(n);n=dn([...n]);let s=i?-1:0,u=n[e+s].sort_weight||0,c=(n[e+s+1].sort_weight||0)-u;if(c===0)return i?yt(n):ht(n);let l=u+c/2,f=c*.01*(P()-.5);return l+f}r(ns,"moveSortWeight");function dn(e){return e.sort((t,n)=>(t.sort_weight||0)-(n.sort_weight||0)),e}r(dn,"sortedItems");function ss(e={}){let{getter:t=r(a=>a.sort,"getter")}=e;function n(a){return a.sort((c,l)=>(t(c)||0)-(t(l)||0)),a}r(n,"items");function o(a){return a.reduce((c,l)=>Math.min(c,t(l)||0),0)-1-P()}r(o,"start");function i(a){return a.reduce((c,l)=>Math.max(c,t(l)||0),0)+1+P()}r(i,"end");function s(a,c){a==null&&(a=(c??0)-1),c==null&&(c=(a??0)+1);let l=c-a,f=a+l/2,g=l*.01*(P()-.5);return f+g}r(s,"between");function u(a,c,l){let f=l.length,g=a<c;if(f<=0||a>=f-1)return i(l);if(a<=0)return o(l);l=n([...l]);let p=g?-1:0,h=t(l[a+p])||0,d=(t(l[a+p+1])||0)-h;if(d===0)return g?o(l):i(l);let m=h+d/2,y=d*.01*(P()-.5);return m+y}return r(u,"move"),{start:o,end:i,between:s,move:u,items:n}}r(ss,"useSorted");var gn=/((?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00A1-\uFFFF][a-z0-9\u00A1-\uFFFF_-]{0,62})?[a-z0-9\u00A1-\uFFFF]\.)+(?:[a-z\u00A1-\uFFFF]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?)/gim;function ls(e){return e.split(gn).map((t,n)=>{let o=pt(t);return n%2?`<a target="_blank" href="${o}">${mn(o)}</a>`:o}).join("")}r(ls,"linkifyPlainText");function mn(e){return e.replace(/^https?:\/\/(www\.)?/,"").replace(/\/$/,"")}r(mn,"toHumanReadableUrl");function xt(e){let t=[];for(let[n,o]of Object.entries(e))if(o!=null){Array.isArray(o)||(o=[o]);for(let i of o)i!=null&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(i))}`)}return t.join("&")}r(xt,"encodeQuery");function fs(e){let t={},n=(e[0]==="?"?e.substr(1):e).split("&");for(let o=0;o<n.length;o++){let i=n[o].split("="),s=decodeURIComponent(i[0]),u=decodeURIComponent(i[1]||"");t[s]!=null?(Array.isArray(t[s])||(t[s]=[t[s]]),t[s].push(u)):t[s]=u}return t}r(fs,"parseQuery");function ms(e,t,n){let o=e[t];return o===void 0&&(o=n(t,e),e[t]=o),o}r(ms,"ensureKey");async function ys(e,t,n){let o=e[t];return o===void 0&&(o=await n(t,e),e[t]=o),o}r(ys,"ensureKeyAsync");function hs(e){return e!=null?e.size!=null?e.size:e.length!=null?e.length:Object.keys(e).length:0}r(hs,"size");function xs(e){return e!=null&&e.length>0?e[e.length-1]:void 0}r(xs,"last");function bs(e){try{if(e!=null)return Array.isArray(e)||typeof e=="string"?e.length<=0:(e==null?void 0:e.size)!=null?e.size<=0:Object.keys(e).length<=0}catch(t){console.warn("Failed to check if empty for",e,t)}return!0}r(bs,"empty");function Ue(e){return Object(e)!==e?e:JSON.parse(F(e))}r(Ue,"cloneObject");function Ts(e){return Object(e)!==e?e:JSON.parse(F(e))}r(Ts,"cloneJsonObject");function ws(e){let t=new Map;return n=>{if(t.has(n))return t.get(n);let o=e(n);return t.set(n,o),o}}r(ws,"memoize");function Ls(e){let t=new Map;return async(...n)=>{let o=F(n);if(t.has(o))return t.get(o);let i=await e(...n);return t.set(o,i),i}}r(Ls,"memoizeAsync");function As(e,t){let n=[];for(let o=0;o<e;o++)n.push(t(o,e));return n}r(As,"forTimes");var yn=/\\\s|\s+|#[^\n]*\n?/gm,hn=/\(\?P?<(\w[\w\d_]+)>|\((?!\?(:|\!|=|<=|<\!))/gm,bt=/^((?:\(\?[\w$]+\))?)\(\?<([=!])([\s\S]*?)\)/gm,xn=v("zeed:xrx");function bn(e){return typeof e=="string"?e:e.source||""}r(bn,"regExpString");function Ps(e){return e.replace(/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}r(Ps,"regExpEscape");var Se=class{constructor(t,n){this.namedGroups={};this.names=[];let o=n??"",i;if(t instanceof RegExp?(n==null&&(o=t.flags),i=t.source):i=t,o&&o.includes("x")&&(o=o.replace("x",""),i=i.replace(yn,a=>a[0]==="\\"?a:"")),!(t instanceof RegExp)){let a=0;i=i.replace(hn,(c,l)=>(a+=1,l?(l!=="index"&&l!=="length"&&!this.namedGroups[l]?this.namedGroups[l]=a:xn.error(`Unallowed or duplicate group name: ${l}`),"("):c)),this.names=Object.keys(this.namedGroups)}i=bn(i),bt.lastIndex=0;let u=bt.exec(i);u&&(this.lookBehind={rx:new RegExp(`${u[3]}$(?!\\s)`),expect:u?u[2]==="=":!u},i=i.substr(u[0].length)),this.rx=new RegExp(i,o)}get lastIndex(){return this.rx.lastIndex}set lastIndex(t){this.rx.lastIndex=t}_handleMatch(t){if(this.lookBehind){let n=t.input.slice(0,t.index);if(this.lookBehind.expect!==this.lookBehind.rx.test(n))return null}for(let n of this.names)t[n]=t[this.namedGroups[n]];return t}exec(t){let n;for(;n=this.rx.exec(t);)if(this.rx.lastIndex===n.index&&this.rx.lastIndex++,n=this._handleMatch(n),n!=null)return n}execAll(t){let n=[],o;for(this.rx.lastIndex=0;o=this.exec(t);)n.push(o);return this.rx.lastIndex=0,n}replace(t,n){let o=typeof n=="function"?n:()=>n;return t.replace(this.rx,i=>o(i))}};r(Se,"XRX");var Tn=v("zeed:dispose");async function wn(e){typeof e=="function"?await H(e()):U(e)?await e:typeof e.dispose=="function"?await H(e.dispose()):U(e.dispose)?await e.dispose:typeof e.cleanup=="function"?await H(e.cleanup()):U(e.cleanup)&&await e.cleanup}r(wn,"callDisposer");function Re(e){let{name:t}=typeof e=="string"?{name:e}:e??{},n=[],o=r(async u=>{u!=null&&n.includes(u)&&(Ae(n,a=>a!==u),await wn(u))},"untrack"),i=r(async()=>{for(t&&Tn.debug(`dispose ${t}: ${n.length} entries`);n.length>0;)await o(n[0])},"dispose"),s=r(u=>{if(u!=null)return n.unshift(u),()=>o(u)},"track");return Object.assign(i,{track:s,add:s,untrack:o,dispose:i,exec:i,getSize(){return n.length}})}r(Re,"useDispose");var Fs=Re;function Is(e={}){let{mode:t="fifo"}=e,n=[],o=r(async(s=!1)=>{for(;n.length>0;){let u=n[0];if(Ae(n,a=>a!==u),typeof u=="function"){let a=u();if(U(a)){if(s)throw new Error(`Expected sync only function, but found async: ${u}`);await a}}else if(U(u)){if(s)throw new Error(`Expected sync only function, but found async: ${u}`);await u}else throw new Error(`Unhandled disposable: ${u}`)}},"exec");return Object.assign(o,{add:r(s=>{t==="lifo"?n.unshift(s):n.push(s)},"add"),exec:o,getSize(){return n.length}})}r(Is,"useDefer");function Cs(e,t=0){let n=setTimeout(e,t);return()=>{n&&(clearTimeout(n),n=void 0)}}r(Cs,"useTimeout");function Os(e,t){let n=setInterval(e,t);return()=>{n&&(clearInterval(n),n=void 0)}}r(Os,"useInterval");function $s(e,t,n,...o){return e==null?()=>{}:(e.on?e.on(t,n,...o):e.addEventListener&&e.addEventListener(t,n,...o),()=>{e.off?e.off(t,n,...o):e.removeEventListener&&e.removeEventListener(t,n,...o)})}r($s,"useEventListener");function zs(){let e=!0;return(t,n)=>{let o=!1;if(e){e=!1;try{t(),o=!0}finally{e=!0}}else n!==void 0&&n();return o}}r(zs,"useMutex");function Ns(){let e=!0;return async(t,n)=>{let o=!1;if(e){e=!1;try{let i=t();U(i)&&await i,o=!0}finally{e=!0}}else if(n!==void 0){let i=n();U(i)&&await i}return o}}r(Ns,"useAsyncMutex");var J=v("zeed:emitter"),S=class{constructor(){this.subscribers={};this.subscribersOnAny=[];this.dispose=Re();this.call=new Proxy({},{get:(t,n)=>(...o)=>this.emit(n,...o)})}async emit(t,...n){let o=!1;this.dispose.add(()=>{this.subscribers={},this.subscribersOnAny=[]});try{let i=this.subscribers[t]||[];if(this.subscribersOnAny.forEach(s=>s(t,...n)),i.length>0){let s=i.map(u=>{try{return H(u(...n))}catch(a){J.warn("emit warning:",a)}return null}).filter(u=>u!=null);o=!0,await Promise.all(s)}}catch(i){J.error("emit exception",i)}return o}onAny(t){this.subscribersOnAny.push(t)}on(t,n){let o=this.subscribers[t]||[];return o.push(n),this.subscribers[t]=o,()=>{this.off(t,n)}}onCall(t){for(let[n,o]of Object.entries(t))this.on(n,o)}once(t,n){let o=r(async(...i)=>(this.off(t,o),await H(n(...i))),"onceListener");return this.on(t,o),()=>{this.off(t,n)}}off(t,n){return this.subscribers[t]=(this.subscribers[t]||[]).filter(o=>n&&o!==n),this}removeAllListeners(){return this.subscribers={},this}};r(S,"Emitter");function Ks(){let e=Y().emitter;return e||(e=new S,Y().emitter=e),e}r(Ks,"getGlobalEmitter");var Ys=new S;function Qs(e,t){let n=Math.round(P()*100),o=[],i,s=r((a,c)=>{let l={key:a,obj:c};o.push(l),i&&i()},"incoming");return t?e.on?e.on(t,a=>{s(t,a)}):e.addEventListener?e.addEventListener(t,a=>{s(t,a)}):J.error(n,"Cannot listen to key"):e.onAny?e.onAny((a,c)=>{s(a,c)}):J.error(n,"cannot listen to all for",e),r((a,c=!0)=>new Promise((l,f)=>{a||(a=t,a||o.length&&(a=o[0].key)),i=r(()=>{for(;o.length>0;){let g=o.shift();if(g.key===a)i=void 0,l(g.obj);else{if(c){J.warn(n,`Unhandled event ${a} with value: ${g.obj}`);continue}f(new Error(`Expected ${a}, but found ${g.key} with value=${g.obj}`)),J.error(n,`Unhandled event ${a} with value: ${g.obj}`)}break}},"lazyResolve"),i()}),"on")}r(Qs,"lazyListener");var Tt=r(()=>Date.now(),"getTimestamp");function ta(e){return e>999?`${(e/1e3).toFixed(1)}s`:`${e.toFixed(2)}ms`}r(ta,"formatMilliseconds");function na(...e){for(let t of e){if(t instanceof Date)return t;if(typeof t=="string"){let n=null;if(t.includes(":"))try{n=new Date(t)}catch{}if(!(n instanceof Date)){let o=/(\d\d\d\d)-(\d\d)-(\d\d)/.exec(t);o&&(n=new Date(+o[1],+o[2]-1,+o[3],12,0))}if(n instanceof Date)return n}}}r(na,"parseDate");var{encode:Fe,decode:wt}=B(62),{encode:Lt,decode:Ln}=B(32);function At(){return V(16)}r(At,"uuidBytes");var Fa=r(()=>new Uint32Array(V(4))[0],"uuid32bit");function An(){return Fe(At(),22)}r(An,"uuidB62");function vn(e){return Fe(e,22)}r(vn,"uuidEncodeB62");function Dn(e){let t=_e(e);return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16)}`}r(Dn,"uuidEncodeV4");function En(e){return wt(e,16)}r(En,"uuidDecodeB62");function Pn(e){return Je(e.replaceAll("-",""))}r(Pn,"uuidDecodeV4");function Mn(){return Lt(At(),26)}r(Mn,"uuidB32");function Un(e){return Lt(e,26)}r(Un,"uuidEncodeB32");function Sn(e){return Ln(e,16)}r(Sn,"uuidDecodeB32");var Rn="10000000-1000-4000-8000-100000000000",kn=typeof crypto<"u"&&crypto.randomUUID!=null?crypto.randomUUID.bind(crypto):()=>Rn.replace(/[018]/g,e=>(e^V(1)[0]&15>>e/4).toString(16)),Ie={base62:{uuid:An,uuidDecode:En,uuidEncode:vn},base32:{uuid:Mn,uuidDecode:Sn,uuidEncode:Un},uuidv4:{uuid:kn,uuidDecode:Pn,uuidEncode:Dn}},le="base62";function Ia(e){le=e}r(Ia,"setUuidDefaultEncoding");function j(){return Ie[le].uuid()}r(j,"uuid");function Ca(e){return Ie[le].uuidDecode(e)}r(Ca,"uuidDecode");function Oa(e){return Ie[le].uuidEncode(e)}r(Oa,"uuidEncode");var ke={};function z(e="id"){return ke[e]==null&&(ke[e]=0),`${e}-${ke[e]++}`}r(z,"uname");var Fn=0;function $a(){return`id-${Fn++}`}r($a,"qid");var vt=16e11;function In(e){let t=new Uint8Array([0,0,0,0,0,0]),n=t.length-1;for(let o=0;o<t.length;o++){let i=e&255;t[n-o]=i,e=(e-i)/256}return t}r(In,"longToByteArray");function Cn(){let e=Tt()-vt;return new Uint8Array([...In(e),...V(10)])}r(Cn,"suidBytes");function Ba(){return Fe(Cn(),22)}r(Ba,"suid");function Ha(e){return On(wt(e,16))}r(Ha,"suidDate");function On(e){return new Date(vt+e.slice(0,6).reduce((t,n)=>t*256+n,0))}r(On,"suidBytesDate");var $n=(o=>(o[o.waiting=0]="waiting",o[o.running=1]="running",o[o.finished=2]="finished",o))($n||{}),Bn=(o=>(o[o.replace=0]="replace",o[o.memoize=1]="memoize",o[o.error=2]="error",o))(Bn||{});function Va(e={}){let{maxParallel:t=3}=e,n=new S,o=0,i=0,s=0,u=0,a={};async function c(){if(o>0){let[d,m]=ut();return n.once("didFinish",m),d}}r(c,"waitFinishAll");function l(){n.emit("didFinish"),o=0,i=0}r(l,"didFinish");function f(){let d=0,m=0;for(let{max:y,resolved:T,state:x}of Object.values(a))d+=y,m+=x===2?y:Math.min(y,T);n.emit("didUpdate",o,i,d,m)}r(f,"didUpdate");function g(){if(f(),o>0&&o===i&&l(),s>=t)return;let d=Object.values(a).filter(m=>m.state===0);if(d.length>0){let m;for(let y of d)y.group!=null&&Object.values(a).some(T=>T.state===1&&T.id!==y.id&&T.group===y.group)||(m==null||y.priority<m.priority)&&(m=y);if(m!=null){let y=m.id,T=m.done;m.state=1,++s,n.emit("didStart",y);let x=r(w=>{m&&(m.result=w,m.state=2,m.resolved=m.max),--s,++i,g()},"taskFinished");m.task(m).then(w=>{T(w),n.emit("didResolve",y,w),x(w)}).catch(w=>{T(),n.emit("didReject",y,w),x()})}}}r(g,"performNext");function p(d){let m=a[d];m&&m.state===0&&(a[d].state=2,++i,n.emit("didCancel",d),f())}r(p,"cancel");function h(){Object.keys(a).forEach(p)}r(h,"cancelAll");function b(d,m={}){let y,T=new Promise(w=>y=w),x=m.id??j();if(a[x]!=null){let w=m.idConflictResolution??1;if(w===0)p(x);else if(w===1){let D=a[x];return{id:x,promise:(async()=>{if(D.state===2)return a[x].result})(),dispose:()=>p(x),cancel:()=>p(x)}}else throw new Error(`Pool task with id=${x} already exists!`)}return a[x]={id:x,task:d,priority:++u,group:m.group,state:0,max:m.max??1,resolved:m.resolved??0,done:y,payload:m.payload,setMax(w){a[x].max=w,f()},setResolved(w){a[x].resolved=w,f()},incResolved(w=1){a[x].resolved+=w,f()}},++o,g(),{id:x,promise:T,dispose:()=>p(x),cancel:()=>p(x)}}return r(b,"enqueue"),{events:n,cancel:p,cancelAll:h,enqueue:b,dispose:h,waitFinishAll:c}}r(Va,"usePool");var Ce=class extends S{constructor(n={}){super();this.queue=[];this.waitToFinish=[];this.countMax=0;this.countResolved=0;this.paused=!1;let{name:o=z("queue"),logLevel:i}=n;this.name=o,this.log=v(`zeed:queue:${o}`,i??1/0)}async performNext(){if(this.log("performNext, queue.length =",this.queue.length),this.currentTask!=null){this.log("performNext => skip while another task is running");return}if(this.paused){this.log("performNext => skip while is paused");return}for(;this.currentTask==null&&!this.paused;){let n=this.queue.shift();if(this.log(`performNext => ${n==null?void 0:n.name}`),n==null)break;this.countResolved===0&&this.emit("didStart",this.countMax);let{name:o,task:i,resolve:s}=n;this.currentTask=i();let u;try{this.log.info(`start task ${o}`),u=await this.currentTask,this.log(`finished task ${o} with result =`,u)}catch(a){this.log.warn("Error performing task",a)}s(u),this.currentTask=void 0,this.countResolved+=1,this.emit("didUpdate",this.countMax,this.countResolved)}for(this.queue.length===0&&(this.emit("didFinish"),this.countMax=0,this.countResolved=0);this.waitToFinish.length>0;)this.waitToFinish.shift()()}async enqueue(n,o={}){let{immediate:i=!1,name:s=z(this.name)}=o;return i?(this.log.info(`immediate execution ${s}`),await n()):(this.log(`enqueue ${s}`),new Promise(u=>{this.queue.push({name:s,task:n,resolve:u}),this.countMax+=1,this.emit("didUpdate",this.countMax,this.countResolved),this.performNext()}))}async enqueueReentrant(n,o={}){return this.enqueue(n,{immediate:this.currentTask!=null,name:o.name})}async cancelAll(n=!0){this.log("cancelAll"),this.emit("didCancel");let o=this.queue.map(i=>i.resolve);this.queue=[],o.forEach(i=>i(void 0)),await this.wait()}async pause(){this.log("pause"),this.paused=!0,await this.wait()}resume(){this.log("resume"),this.paused=!1,this.performNext()}async wait(){if(this.log("wait"),!(this.currentTask==null&&(this.queue.length===0||this.paused)))return new Promise(n=>{this.waitToFinish.push(n)})}get isPaused(){return this.paused}get hasTasks(){return this.queue.length!==0}};r(Ce,"SerialQueue");var W=!1,Z=W?v("zeed:throttle"):()=>{};function tu(e,t={}){let{delay:n=100,trailing:o=!0,leading:i=!0}=t,s=0,u=0,a=0,c,l=Date.now();function f(){s&&(clearTimeout(s),s=void 0)}r(f,"clearExistingTimeout");function g(...p){let h=Date.now(),b=h-u;function d(){let y=Date.now();return`total ${(y-l).toFixed(1)}ms - elapsed ${(y-u).toFixed(1)}ms - visited ${a}x`}r(d,"debugElapsed");let m=r(()=>{a=0,u=Date.now(),e.apply(this,p)},"exec");if(c=m,b>n||!s){W&&Z("elapsed",d()),i&&(b>n?(W&&Z("\u{1F680} leading",d()),m()):++a);let y=b>n?n:n-b;Z(`\u23F1 start timeout with ${y.toFixed(1)}ms`,d()),f(),u=h,s=setTimeout(()=>{W&&Z("\u23F1 reached timeout",d()),s=0,o&&(!i||a>0)&&(W&&Z("\u{1F680} trailing",d()),c==null||c())},y)}else++a,W&&Z("visited",d())}return r(g,"wrapper"),g.cancel=f,g.dispose=f,g}r(tu,"throttle");function nu(e,t={}){let{delay:n=100}=t,o=0;function i(){o&&(clearTimeout(o),o=0)}r(i,"clearExistingTimeout");function s(...u){i(),o=setTimeout(()=>{o=0,e.apply(this,u)},n)}return r(s,"wrapper"),s.cancel=i,s.dispose=i,s}r(nu,"debounce");function iu(e=(t=>(t=globalThis==null?void 0:globalThis.location)==null?void 0:t.hostname)()??""){return["::ffff:127.0.0.1","localhost","127.0.0.1","","::1","::"].includes(e)||e.startsWith("192.168.")||e.startsWith("10.0.")||e.endsWith(".local")}r(iu,"isLocalHost");function cu(e){let{level:t=void 0,filter:n=void 0,messages:o=[]}=e,i=G(n),s=re(t);return u=>{!s(u.level)||!i(u.name)||o.push(u)}}r(cu,"LoggerMemoryHandler");var fe=class extends S{constructor(){super(...arguments);this.id=j()}close(){this.dispose()}};r(fe,"Channel");var X=class extends fe{constructor(){super(...arguments);this.isConnected=!0}postMessage(n){var o;(o=this.other)==null||o.emit("message",{data:n,origin:"local",lastEventId:j()})}};r(X,"LocalChannel");function gu(){let e=new X,t=new X;return e.other=t,t.other=e,[e,t]}r(gu,"createLocalChannelPair");var Oe=class{async encode(t){return t}async decode(t){return t}};r(Oe,"NoopEncoder");var N=class{async encode(t){return he(t)}async decode(t){return xe(t)}};r(N,"JsonEncoder");var $e=class{constructor(t){this.key=t}async encode(t){let n=he(t);return await Xe(n,this.key)}async decode(t){let n=await et(t,this.key);return xe(n)}};r($e,"CryptoEncoder");var Dt=r((e,t,n={})=>new Proxy(n,{get:(o,i)=>i in o?o[i]:(...s)=>e(i,s,t)}),"createPromiseProxy");function Eu(e={}){let{name:t=z("hub"),encoder:n=new N,retryAfter:o=1e3,ignoreUnhandled:i=!0,logLevel:s=!1}=e,u=v(t,s),a={},c,l=[],f,g={},p=r(()=>{clearTimeout(f)},"dispose"),h=r(async()=>{if(clearTimeout(f),c){if(c.isConnected)for(;l.length;){let y=l[0];try{c.postMessage(await n.encode(y)),l.shift()}catch(T){u.warn("postMessage",T);break}}l.length>0&&o>0&&(f=setTimeout(h,o))}},"postNext"),b=r(async y=>{u("enqueue postMessage",y),l.push(y),await h()},"postMessage"),d=r(async y=>{c=y,c.on("connect",h),c.on("message",async T=>{u("onmessage",typeof T);let{name:x,args:w,id:D,result:q,error:I}=await n.decode(T.data);if(x){u(`name ${x} id ${D}`);try{if(a[x]==null)throw new Error(`handler for ${x} was not found`);let R=a[x](...w);U(R)&&(R=await R),u(`result ${R}`),D&&b({id:D,result:R})}catch(R){let C=R instanceof Error?R:new Error(ve(R));u.warn("execution error",C.name),b({id:D,error:{message:C.message,stack:C.stack,name:C.name}})}}else if(D)if(u(`response for id=${D}: result=${q}, error=${I}`),g[D]==null)q===void 0?u(`skip response for ${D}`):u.warn(`no response hook for ${D}`);else{let[R,C]=g[D];if(R&&C)if(delete g[D],I){let ee=new Error(I.message);ee.stack=I.stack,ee.name=I.name,u.warn("reject",ee.name),C(ee)}else u("resolve",q),R(q)}else i||u.warn("Unhandled message",T)}),h()},"connect"),m=r(async(y,T,x={})=>{let{timeout:w=5e3}=x,D=j();return b({name:y,args:T,id:D}),ft(new Promise((q,I)=>g[D]=[q,I]),w)},"fetchMessage");return e.channel&&d(e.channel),{dispose:p,connect:d,listen(y){Object.assign(a,y)},send(){return Dt(m,{},{options(y){return Dt(m,{...y})}})}}}r(Eu,"useMessageHub");var pe=class extends S{constructor(n){super();this.publish=this.emit;this.subscribe=this.on;let{name:o,encoder:i=new N,channel:s,debug:u=!1}=n;this.channel=s,this.encoder=i,this.debug=u,this.name=o??this.channel.id??z("pubsub"),this.log=v(`${this.shortId}`),this.debug&&(this.channel.on("connect",()=>{this.log("channel connected")}),this.channel.on("disconnect",()=>{this.log("channel disconnected")})),this.channel.on("message",async({data:a})=>{let c=await this.encoder.decode(a);if(this.debug?this.log(`channel message, event=${c==null?void 0:c.event}, info=`,c):this.log(`channel message, event=${c==null?void 0:c.event}`),c){let{event:l,args:f}=c;await this.emitSuper(l,...f)}})}get shortId(){return this.name.substr(0,6)}async emitSuper(n,...o){return await super.emit(n,...o)}async emit(n,...o){try{if(this.debug?this.log(`emit(${String(n)})`,n):this.log(`emit(${String(n)})`,o.length),!this.channel.isConnected)return this.log.warn("channel not connected"),!1;let i=await this.encoder.encode({event:n,args:o});return this.channel.postMessage(i),!0}catch(i){this.log.warn(`emit(${String(n)})`,i)}return!1}};r(pe,"PubSub");function Fu(e){return new pe(e)}r(Fu,"usePubSub");var Hn=1;var Et=r(e=>e,"defaultSerialize"),jn=Et;function Ou(e,t){let{post:n,on:o,eventNames:i=[],serialize:s=Et,deserialize:u=jn}=t,a=new Map;return o(async c=>{let l=u(c),[f,g,p,h]=l;if(f===1||f===2){let b,d;if(h!=null)try{b=await e[h](...g)}catch(m){d=String(m)}else d="Method implementation missing";f===1&&p&&n(s(d?[4,d,p]:[3,b,p]))}else if(p){let b=a.get(p);b!=null&&(f===4?b.reject(g):b.resolve(g)),a.delete(p)}}),new Proxy({},{get(c,l){let f=r((...p)=>{n(s([2,p,null,l]))},"sendEvent");if(t.onlyEvents||i.includes(l))return f.asEvent=f,f;let g=r((...p)=>new Promise((h,b)=>{let d=Hn++;a.set(d,{resolve:h,reject:b}),n(s([1,p,d,l]))}),"sendCall");return g.asEvent=f,g}})}r(Ou,"useRPC");var K=v("zeed:network"),Be={cache:"no-cache",redirect:"follow",headers:{}};function zn(e){let t=/:\/\/([^@]*)@/gi.exec(e);if(t&&t[1]){let[n,o]=t[1].split(":",2);return{url:e.replace(`${t[1]}@`,""),username:n,password:o}}}r(zn,"parseBasicAuth");async function Pt(e,t={},n=fetch){try{O(t)&&(t=ne({},..._(t)));let o=zn(String(e));o&&(e=o.url,t=ne({},t,Nn(o.username,o.password))),t.headers!=null&&!(t.headers instanceof Headers)&&(t.headers=new Headers(t.headers));let i=await n(String(e),t);if(i.status<400)return i;try{K.warn(`Fetch of ${e} with ${t} returned status=${i.status}`),K.warn(`Response: ${await i.text()}`)}catch(s){K.error("Exception:",s)}}catch(o){K.error("fetchBasic",o)}}r(Pt,"fetchBasic");async function Nu(e,t={},n=fetch){try{let o=await Pt(e,[{method:"GET",headers:{Accept:"application/json"}},t],n);if(o)return await o.json()}catch(o){K.error("fetchJSON error:",o)}}r(Nu,"fetchJson");async function qu(e,t={},n=fetch){try{let o=await Pt(e,[Be,{method:"GET"},t],n);if(o)return await o.text()}catch(o){K.error("fetchHTML error:",o)}}r(qu,"fetchText");function Gu(e,t="POST"){return{method:t,...Be,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:xt(e)}}r(Gu,"fetchOptionsFormURLEncoded");function Vu(e,t="POST"){return{method:t,...Be,headers:{"Content-Type":"application/json; charset=utf-8"},body:F(e)}}r(Vu,"fetchOptionsJson");function Nn(e,t){return{headers:{Authorization:`Basic ${Ze(`${e}:${t}`)}`}}}r(Nn,"fetchOptionsBasicAuth");function Mt(){if(typeof window<"u")return window}r(Mt,"getWindow");function qn(){if(typeof navigator<"u")return navigator}r(qn,"getNavigator");function Zu(){return Mt()??typeof WorkerGlobalScope<"u"?self:typeof global<"u"?global:Function("return this;")()}r(Zu,"getGlobal");var A=qn(),E=Mt();function Gn(e={ios:!1,macos:!1,windows:!1,beaker:!1,electron:!1,wkwebview:!1,pwa:!1,pwaInstalled:!1,browser:!1,node:!1,worker:!1,test:!1,jest:!1,macosNative:!1,iosNative:!1,appleNative:!1,touch:!1}){var t,n,o,i,s,u,a,c,l;return e.ios=((t=A==null?void 0:A.platform)==null?void 0:t.match(/(iPhone|iPod|iPad)/i))!=null,e.macos=!!((n=A==null?void 0:A.platform)!=null&&n.startsWith("Mac")),e.windows=!!((o=A==null?void 0:A.platform)!=null&&o.startsWith("Win")),e.beaker=(E==null?void 0:E.beaker)!=null,e.electron=(((s=(i=A==null?void 0:A.userAgent)==null?void 0:i.toLowerCase())==null?void 0:s.indexOf(" electron/"))||-1)>-1&&!e.beaker,e.wkwebview=((u=E==null?void 0:E.webkit)==null?void 0:u.messageHandlers)!=null,e.pwa=(A==null?void 0:A.serviceWorker)!=null,e.pwaInstalled=(A==null?void 0:A.standalone)||((c=(a=E==null?void 0:E.matchMedia)==null?void 0:a.call(E,"(display-mode: standalone)"))==null?void 0:c.matches),e.node=typeof process<"u"&&((l=process==null?void 0:process.release)==null?void 0:l.name)==="node",e.browser=!e.electron&&!e.wkwebview&&!e.node,e.worker=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,e.jest=typeof jest<"u"||typeof vitest<"u",e.test=e.jest,e.macosNative=e.wkwebview&&e.macos,e.iosNative=e.wkwebview&&e.ios,e.appleNative=e.wkwebview,e.touch=E&&"ontouchstart"in E||((A==null?void 0:A.maxTouchPoints)||0)>1||(A==null?void 0:A.msPointerEnabled)&&(E==null?void 0:E.MSGesture)||(E==null?void 0:E.DocumentTouch)&&document instanceof DocumentTouch,e}r(Gn,"detect");var Vn=r(()=>typeof window<"u"&&globalThis===window,"isBrowser"),Wu=Gn();function Ku(e){Vn()?window.addEventListener("beforeunload",e):typeof process<"u"&&process.on("exit",()=>e)}r(Ku,"useExitHandler");var He=class{constructor(t={}){this.store={}}setItem(t,n){this.store[t]=Ue(n)}getItem(t){return Ue(this.store[t])}removeItem(t){delete this.store[t]}clear(){this.store={}}allKeys(){return Object.keys(this.store)}};r(He,"MemStorage");export{r as a,Y as b,k as c,de as d,O as e,je as f,Wn as g,Kn as h,Yn as i,Qn as j,Xn as k,er as l,tr as m,te as n,Rt as o,ne as p,kt as q,G as r,ge as s,re as t,oe as u,ie as v,ze as w,Ne as x,Ct as y,v as z,vr as A,F as B,ye as C,$t as D,Bt as E,Ve as F,Ht as G,M as H,Ur as I,_e as J,Je as K,Ze as L,Sr as M,Rr as N,We as O,he as P,xe as Q,Ke as R,V as S,Cr as T,Or as U,Xe as V,et as W,Hr as X,Nt as Y,P as Z,Nr as _,qr as $,Gr as aa,Vr as ba,qt as ca,_r as da,Jr as ea,Zr as fa,Wr as ga,Gt as ha,Qr as ia,we as ja,Xr as ka,Le as la,Vt as ma,_t as na,_ as oa,Jt as pa,oo as qa,io as ra,so as sa,Ae as ta,ao as ua,uo as va,Zt as wa,co as xa,Wt as ya,nt as za,lo as Aa,fo as Ba,po as Ca,go as Da,mo as Ea,yo as Fa,ho as Ga,xo as Ha,bo as Ia,B as Ja,vo as Ka,Do as La,Eo as Ma,Po as Na,Mo as Oa,Uo as Pa,So as Qa,Ro as Ra,Io as Sa,Xt as Ta,Co as Ua,Oo as Va,zo as Wa,No as Xa,qo as Ya,en as Za,tn as _a,nn as $a,ve as ab,Go as bb,Vo as cb,_o as db,Jo as eb,rn as fb,Zo as gb,Wo as hb,Ee as ib,Pe as jb,ot as kb,on as lb,Qo as mb,it as nb,Xo as ob,ei as pb,ti as qb,ce as rb,ni as sb,De as tb,sn as ub,an as vb,Me as wb,st as xb,ri as yb,oi as zb,ii as Ab,si as Bb,ut as Cb,li as Db,fi as Eb,ct as Fb,pi as Gb,lt as Hb,di as Ib,ft as Jb,gi as Kb,U as Lb,H as Mb,L as Nb,bi as Ob,Ti as Pb,wi as Qb,Li as Rb,un as Sb,Di as Tb,Ei as Ub,Pi as Vb,pt as Wb,Si as Xb,Ii as Yb,Ci as Zb,Oi as _b,Hi as $b,Ni as ac,Q as bc,mt as cc,Vi as dc,_i as ec,Ji as fc,Zi as gc,Wi as hc,Ki as ic,Yi as jc,Qi as kc,yt as lc,ht as mc,ns as nc,dn as oc,ss as pc,ls as qc,mn as rc,xt as sc,fs as tc,ms as uc,ys as vc,hs as wc,xs as xc,bs as yc,Ue as zc,Ts as Ac,ws as Bc,Ls as Cc,As as Dc,bn as Ec,Ps as Fc,Se as Gc,Re as Hc,Fs as Ic,Is as Jc,Cs as Kc,Os as Lc,$s as Mc,zs as Nc,Ns as Oc,S as Pc,Ks as Qc,Ys as Rc,Qs as Sc,Tt as Tc,ta as Uc,na as Vc,At as Wc,Fa as Xc,An as Yc,vn as Zc,Dn as _c,En as $c,Pn as ad,Mn as bd,Un as cd,Sn as dd,kn as ed,Ia as fd,j as gd,Ca as hd,Oa as id,z as jd,$a as kd,Cn as ld,Ba as md,Ha as nd,On as od,$n as pd,Bn as qd,Va as rd,Ce as sd,tu as td,nu as ud,iu as vd,cu as wd,fe as xd,X as yd,gu as zd,Oe as Ad,N as Bd,$e as Cd,Dt as Dd,Eu as Ed,pe as Fd,Fu as Gd,Ou as Hd,zn as Id,Pt as Jd,Nu as Kd,qu as Ld,Gu as Md,Vu as Nd,Nn as Od,Mt as Pd,qn as Qd,Zu as Rd,Gn as Sd,Vn as Td,Wu as Ud,Ku as Vd,He as Wd};
8
+ //# sourceMappingURL=chunk-3TLMKNBN.js.map