@learncard/init 2.0.15 → 2.0.16

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.
@@ -1,4 +1,4 @@
1
- "use strict";var DB=Object.create;var qp=Object.defineProperty;var NB=Object.getOwnPropertyDescriptor;var BB=Object.getOwnPropertyNames;var OB=Object.getPrototypeOf,jB=Object.prototype.hasOwnProperty;var s=(e,t)=>qp(e,"name",{value:t,configurable:!0});var FB=(e,t)=>{for(var r in t)qp(e,r,{get:t[r],enumerable:!0})},G9=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of BB(t))!jB.call(e,a)&&a!==r&&qp(e,a,{get:()=>t[a],enumerable:!(n=NB(t,a))||n.enumerable});return e};var cb=(e,t,r)=>(r=e!=null?DB(OB(e)):{},G9(t||!e||!e.__esModule?qp(r,"default",{value:e,enumerable:!0}):r,e)),MB=e=>G9(qp({},"__esModule",{value:!0}),e);var bK={};FB(bK,{customLearnCard:()=>Eb,didWebLearnCardFromSeed:()=>J6,didWebNetworkLearnCardFromSeed:()=>Q6,emptyLearnCard:()=>r3,initLearnCard:()=>vK,learnCardFromApiUrl:()=>o5,learnCardFromSeed:()=>E6,networkLearnCardFromSeed:()=>K6});module.exports=MB(bK);var z0=cb(require("abort-controller/dist/abort-controller.js")),Tx=cb(require("isomorphic-webcrypto"));var VB=Object.create,lb=Object.defineProperty,UB=Object.getOwnPropertyDescriptor,$9=Object.getOwnPropertyNames,LB=Object.getPrototypeOf,ZB=Object.prototype.hasOwnProperty,Qe=s((e,t)=>lb(e,"name",{value:t,configurable:!0}),"__name"),Oe=s((e,t)=>s(function(){return t||(0,e[$9(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),qB=s((e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $9(t))!ZB.call(e,a)&&a!==r&&lb(e,a,{get:()=>t[a],enumerable:!(n=UB(t,a))||n.enumerable});return e},"__copyProps"),WB=s((e,t,r)=>(r=e!=null?VB(LB(e)):{},qB(t||!e||!e.__esModule?lb(r,"default",{value:e,enumerable:!0}):r,e)),"__toESM"),ia=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/global-this.js"(e,t){"use strict";var r=Qe(function(n){return n&&n.Math===Math&&n},"check");t.exports=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof global=="object"&&global)||r(typeof e=="object"&&e)||function(){return this}()||Function("return this")()}}),Ui=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/fails.js"(e,t){"use strict";t.exports=function(r){try{return!!r()}catch{return!0}}}}),Os=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/descriptors.js"(e,t){"use strict";var r=Ui();t.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}}),N0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/function-bind-native.js"(e,t){"use strict";var r=Ui();t.exports=!r(function(){var n=function(){}.bind();return typeof n!="function"||n.hasOwnProperty("prototype")})}}),Uo=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/function-call.js"(e,t){"use strict";var r=N0(),n=Function.prototype.call;t.exports=r?n.bind(n):function(){return n.apply(n,arguments)}}}),zB=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-property-is-enumerable.js"(e){"use strict";var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);e.f=n?Qe(s(function(o){var i=r(this,o);return!!i&&i.enumerable},"propertyIsEnumerable"),"propertyIsEnumerable"):t}}),Gp=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/create-property-descriptor.js"(e,t){"use strict";t.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}}}),vi=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/function-uncurry-this.js"(e,t){"use strict";var r=N0(),n=Function.prototype,a=n.call,o=r&&n.bind.bind(a,a);t.exports=r?o:function(i){return function(){return a.apply(i,arguments)}}}}),B0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/classof-raw.js"(e,t){"use strict";var r=vi(),n=r({}.toString),a=r("".slice);t.exports=function(o){return a(n(o),8,-1)}}}),GB=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/indexed-object.js"(e,t){"use strict";var r=vi(),n=Ui(),a=B0(),o=Object,i=r("".split);t.exports=n(function(){return!o("z").propertyIsEnumerable(0)})?function(c){return a(c)==="String"?i(c,""):o(c)}:o}}),O0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-null-or-undefined.js"(e,t){"use strict";t.exports=function(r){return r==null}}}),j0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/require-object-coercible.js"(e,t){"use strict";var r=O0(),n=TypeError;t.exports=function(a){if(r(a))throw new n("Can't call method on "+a);return a}}}),Hp=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-indexed-object.js"(e,t){"use strict";var r=GB(),n=j0();t.exports=function(a){return r(n(a))}}}),ha=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-callable.js"(e,t){"use strict";var r=typeof document=="object"&&document.all;t.exports=typeof r>"u"&&r!==void 0?function(n){return typeof n=="function"||n===r}:function(n){return typeof n=="function"}}}),js=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-object.js"(e,t){"use strict";var r=ha();t.exports=function(n){return typeof n=="object"?n!==null:r(n)}}}),xl=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/get-built-in.js"(e,t){"use strict";var r=ia(),n=ha(),a=Qe(function(o){return n(o)?o:void 0},"aFunction");t.exports=function(o,i){return arguments.length<2?a(r[o]):r[o]&&r[o][i]}}}),F0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-is-prototype-of.js"(e,t){"use strict";var r=vi();t.exports=r({}.isPrototypeOf)}}),$p=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/environment-user-agent.js"(e,t){"use strict";var r=ia(),n=r.navigator,a=n&&n.userAgent;t.exports=a?String(a):""}}),K9=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/environment-v8-version.js"(e,t){"use strict";var r=ia(),n=$p(),a=r.process,o=r.Deno,i=a&&a.versions||o&&o.version,c=i&&i.v8,d,p;c&&(d=c.split("."),p=d[0]>0&&d[0]<4?1:+(d[0]+d[1])),!p&&n&&(d=n.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=n.match(/Chrome\/(\d+)/),d&&(p=+d[1]))),t.exports=p}}),J9=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/symbol-constructor-detection.js"(e,t){"use strict";var r=K9(),n=Ui(),a=ia(),o=a.String;t.exports=!!Object.getOwnPropertySymbols&&!n(function(){var i=Symbol("symbol detection");return!o(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&r&&r<41})}}),Q9=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/use-symbol-as-uid.js"(e,t){"use strict";var r=J9();t.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}),Y9=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-symbol.js"(e,t){"use strict";var r=xl(),n=ha(),a=F0(),o=Q9(),i=Object;t.exports=o?function(c){return typeof c=="symbol"}:function(c){var d=r("Symbol");return n(d)&&a(d.prototype,i(c))}}}),M0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/try-to-string.js"(e,t){"use strict";var r=String;t.exports=function(n){try{return r(n)}catch{return"Object"}}}}),Fs=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/a-callable.js"(e,t){"use strict";var r=ha(),n=M0(),a=TypeError;t.exports=function(o){if(r(o))return o;throw new a(n(o)+" is not a function")}}}),db=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/get-method.js"(e,t){"use strict";var r=Fs(),n=O0();t.exports=function(a,o){var i=a[o];return n(i)?void 0:r(i)}}}),HB=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/ordinary-to-primitive.js"(e,t){"use strict";var r=Uo(),n=ha(),a=js(),o=TypeError;t.exports=function(i,c){var d,p;if(c==="string"&&n(d=i.toString)&&!a(p=r(d,i))||n(d=i.valueOf)&&!a(p=r(d,i))||c!=="string"&&n(d=i.toString)&&!a(p=r(d,i)))return p;throw new o("Can't convert object to primitive value")}}}),Al=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-pure.js"(e,t){"use strict";t.exports=!1}}),ub=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/define-global-property.js"(e,t){"use strict";var r=ia(),n=Object.defineProperty;t.exports=function(a,o){try{n(r,a,{value:o,configurable:!0,writable:!0})}catch{r[a]=o}return o}}}),fb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/shared-store.js"(e,t){"use strict";var r=Al(),n=ia(),a=ub(),o="__core-js_shared__",i=t.exports=n[o]||a(o,{});(i.versions||(i.versions=[])).push({version:"3.41.0",mode:r?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})}}),X9=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/shared.js"(e,t){"use strict";var r=fb();t.exports=function(n,a){return r[n]||(r[n]=a||{})}}}),ex=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-object.js"(e,t){"use strict";var r=j0(),n=Object;t.exports=function(a){return n(r(a))}}}),kc=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/has-own-property.js"(e,t){"use strict";var r=vi(),n=ex(),a=r({}.hasOwnProperty);t.exports=Object.hasOwn||Qe(s(function(i,c){return a(n(i),c)},"hasOwn"),"hasOwn")}}),tx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/uid.js"(e,t){"use strict";var r=vi(),n=0,a=Math.random(),o=r(1 .toString);t.exports=function(i){return"Symbol("+(i===void 0?"":i)+")_"+o(++n+a,36)}}}),bi=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/well-known-symbol.js"(e,t){"use strict";var r=ia(),n=X9(),a=kc(),o=tx(),i=J9(),c=Q9(),d=r.Symbol,p=n("wks"),_=c?d.for||d:d&&d.withoutSetter||o;t.exports=function(b){return a(p,b)||(p[b]=i&&a(d,b)?d[b]:_("Symbol."+b)),p[b]}}}),$B=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-primitive.js"(e,t){"use strict";var r=Uo(),n=js(),a=Y9(),o=db(),i=HB(),c=bi(),d=TypeError,p=c("toPrimitive");t.exports=function(_,b){if(!n(_)||a(_))return _;var w=o(_,p),j;if(w){if(b===void 0&&(b="default"),j=r(w,_,b),!n(j)||a(j))return j;throw new d("Can't convert object to primitive value")}return b===void 0&&(b="number"),i(_,b)}}}),rx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-property-key.js"(e,t){"use strict";var r=$B(),n=Y9();t.exports=function(a){var o=r(a,"string");return n(o)?o:o+""}}}),V0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/document-create-element.js"(e,t){"use strict";var r=ia(),n=js(),a=r.document,o=n(a)&&n(a.createElement);t.exports=function(i){return o?a.createElement(i):{}}}}),nx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/ie8-dom-define.js"(e,t){"use strict";var r=Os(),n=Ui(),a=V0();t.exports=!r&&!n(function(){return Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a!==7})}}),ax=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-get-own-property-descriptor.js"(e){"use strict";var t=Os(),r=Uo(),n=zB(),a=Gp(),o=Hp(),i=rx(),c=kc(),d=nx(),p=Object.getOwnPropertyDescriptor;e.f=t?p:Qe(s(function(b,w){if(b=o(b),w=i(w),d)try{return p(b,w)}catch{}if(c(b,w))return a(!r(n.f,b,w),b[w])},"getOwnPropertyDescriptor"),"getOwnPropertyDescriptor")}}),ix=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/v8-prototype-define-bug.js"(e,t){"use strict";var r=Os(),n=Ui();t.exports=r&&n(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})}}),Cl=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/an-object.js"(e,t){"use strict";var r=js(),n=String,a=TypeError;t.exports=function(o){if(r(o))return o;throw new a(n(o)+" is not an object")}}}),od=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-define-property.js"(e){"use strict";var t=Os(),r=nx(),n=ix(),a=Cl(),o=rx(),i=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,p="enumerable",_="configurable",b="writable";e.f=t?n?Qe(s(function(j,R,G){if(a(j),R=o(R),a(G),typeof j=="function"&&R==="prototype"&&"value"in G&&b in G&&!G[b]){var F=d(j,R);F&&F[b]&&(j[R]=G.value,G={configurable:_ in G?G[_]:F[_],enumerable:p in G?G[p]:F[p],writable:!1})}return c(j,R,G)},"defineProperty"),"defineProperty"):c:Qe(s(function(j,R,G){if(a(j),R=o(R),a(G),r)try{return c(j,R,G)}catch{}if("get"in G||"set"in G)throw new i("Accessors not supported");return"value"in G&&(j[R]=G.value),j},"defineProperty"),"defineProperty")}}),hu=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/create-non-enumerable-property.js"(e,t){"use strict";var r=Os(),n=od(),a=Gp();t.exports=r?function(o,i,c){return n.f(o,i,a(1,c))}:function(o,i,c){return o[i]=c,o}}}),ox=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/function-name.js"(e,t){"use strict";var r=Os(),n=kc(),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,i=n(a,"name"),c=i&&Qe(s(function(){},"something"),"something").name==="something",d=i&&(!r||r&&o(a,"name").configurable);t.exports={EXISTS:i,PROPER:c,CONFIGURABLE:d}}}),hb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/inspect-source.js"(e,t){"use strict";var r=vi(),n=ha(),a=fb(),o=r(Function.toString);n(a.inspectSource)||(a.inspectSource=function(i){return o(i)}),t.exports=a.inspectSource}}),KB=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/weak-map-basic-detection.js"(e,t){"use strict";var r=ia(),n=ha(),a=r.WeakMap;t.exports=n(a)&&/native code/.test(String(a))}}),pb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/shared-key.js"(e,t){"use strict";var r=X9(),n=tx(),a=r("keys");t.exports=function(o){return a[o]||(a[o]=n(o))}}}),mb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/hidden-keys.js"(e,t){"use strict";t.exports={}}}),U0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/internal-state.js"(e,t){"use strict";var r=KB(),n=ia(),a=js(),o=hu(),i=kc(),c=fb(),d=pb(),p=mb(),_="Object already initialized",b=n.TypeError,w=n.WeakMap,j,R,G,F=Qe(function(oe){return G(oe)?R(oe):j(oe,{})},"enforce"),$=Qe(function(oe){return function(ie){var fe;if(!a(ie)||(fe=R(ie)).type!==oe)throw new b("Incompatible receiver, "+oe+" required");return fe}},"getterFor");r||c.state?(te=c.state||(c.state=new w),te.get=te.get,te.has=te.has,te.set=te.set,j=Qe(function(oe,ie){if(te.has(oe))throw new b(_);return ie.facade=oe,te.set(oe,ie),ie},"set"),R=Qe(function(oe){return te.get(oe)||{}},"get"),G=Qe(function(oe){return te.has(oe)},"has")):(ue=d("state"),p[ue]=!0,j=Qe(function(oe,ie){if(i(oe,ue))throw new b(_);return ie.facade=oe,o(oe,ue,ie),ie},"set"),R=Qe(function(oe){return i(oe,ue)?oe[ue]:{}},"get"),G=Qe(function(oe){return i(oe,ue)},"has"));var te,ue;t.exports={set:j,get:R,has:G,enforce:F,getterFor:$}}}),sx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/make-built-in.js"(e,t){"use strict";var r=vi(),n=Ui(),a=ha(),o=kc(),i=Os(),c=ox().CONFIGURABLE,d=hb(),p=U0(),_=p.enforce,b=p.get,w=String,j=Object.defineProperty,R=r("".slice),G=r("".replace),F=r([].join),$=i&&!n(function(){return j(function(){},"length",{value:8}).length!==8}),te=String(String).split("String"),ue=t.exports=function(oe,ie,fe){R(w(ie),0,7)==="Symbol("&&(ie="["+G(w(ie),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),fe&&fe.getter&&(ie="get "+ie),fe&&fe.setter&&(ie="set "+ie),(!o(oe,"name")||c&&oe.name!==ie)&&(i?j(oe,"name",{value:ie,configurable:!0}):oe.name=ie),$&&fe&&o(fe,"arity")&&oe.length!==fe.arity&&j(oe,"length",{value:fe.arity});try{fe&&o(fe,"constructor")&&fe.constructor?i&&j(oe,"prototype",{writable:!1}):oe.prototype&&(oe.prototype=void 0)}catch{}var ae=_(oe);return o(ae,"source")||(ae.source=F(te,typeof ie=="string"?ie:"")),oe};Function.prototype.toString=ue(Qe(s(function(){return a(this)&&b(this).source||d(this)},"toString"),"toString"),"toString")}}),pu=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/define-built-in.js"(e,t){"use strict";var r=ha(),n=od(),a=sx(),o=ub();t.exports=function(i,c,d,p){p||(p={});var _=p.enumerable,b=p.name!==void 0?p.name:c;if(r(d)&&a(d,b,p),p.global)_?i[c]=d:o(c,d);else{try{p.unsafe?i[c]&&(_=!0):delete i[c]}catch{}_?i[c]=d:n.f(i,c,{value:d,enumerable:!1,configurable:!p.nonConfigurable,writable:!p.nonWritable})}return i}}}),JB=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/math-trunc.js"(e,t){"use strict";var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||Qe(s(function(o){var i=+o;return(i>0?n:r)(i)},"trunc"),"trunc")}}),gb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-integer-or-infinity.js"(e,t){"use strict";var r=JB();t.exports=function(n){var a=+n;return a!==a||a===0?0:r(a)}}}),QB=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-absolute-index.js"(e,t){"use strict";var r=gb(),n=Math.max,a=Math.min;t.exports=function(o,i){var c=r(o);return c<0?n(c+i,0):a(c,i)}}}),YB=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-length.js"(e,t){"use strict";var r=gb(),n=Math.min;t.exports=function(a){var o=r(a);return o>0?n(o,9007199254740991):0}}}),cx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/length-of-array-like.js"(e,t){"use strict";var r=YB();t.exports=function(n){return r(n.length)}}}),XB=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/array-includes.js"(e,t){"use strict";var r=Hp(),n=QB(),a=cx(),o=Qe(function(i){return function(c,d,p){var _=r(c),b=a(_);if(b===0)return!i&&-1;var w=n(p,b),j;if(i&&d!==d){for(;b>w;)if(j=_[w++],j!==j)return!0}else for(;b>w;w++)if((i||w in _)&&_[w]===d)return i||w||0;return!i&&-1}},"createMethod");t.exports={includes:o(!0),indexOf:o(!1)}}}),lx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-keys-internal.js"(e,t){"use strict";var r=vi(),n=kc(),a=Hp(),o=XB().indexOf,i=mb(),c=r([].push);t.exports=function(d,p){var _=a(d),b=0,w=[],j;for(j in _)!n(i,j)&&n(_,j)&&c(w,j);for(;p.length>b;)n(_,j=p[b++])&&(~o(w,j)||c(w,j));return w}}}),yb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/enum-bug-keys.js"(e,t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}}),eO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-get-own-property-names.js"(e){"use strict";var t=lx(),r=yb(),n=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||Qe(s(function(o){return t(o,n)},"getOwnPropertyNames"),"getOwnPropertyNames")}}),tO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-get-own-property-symbols.js"(e){"use strict";e.f=Object.getOwnPropertySymbols}}),rO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/own-keys.js"(e,t){"use strict";var r=xl(),n=vi(),a=eO(),o=tO(),i=Cl(),c=n([].concat);t.exports=r("Reflect","ownKeys")||Qe(s(function(p){var _=a.f(i(p)),b=o.f;return b?c(_,b(p)):_},"ownKeys"),"ownKeys")}}),dx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/copy-constructor-properties.js"(e,t){"use strict";var r=kc(),n=rO(),a=ax(),o=od();t.exports=function(i,c,d){for(var p=n(c),_=o.f,b=a.f,w=0;w<p.length;w++){var j=p[w];!r(i,j)&&!(d&&r(d,j))&&_(i,j,b(c,j))}}}}),ux=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-forced.js"(e,t){"use strict";var r=Ui(),n=ha(),a=/#|\.prototype\./,o=Qe(function(_,b){var w=c[i(_)];return w===p?!0:w===d?!1:n(b)?r(b):!!b},"isForced"),i=o.normalize=function(_){return String(_).replace(a,".").toLowerCase()},c=o.data={},d=o.NATIVE="N",p=o.POLYFILL="P";t.exports=o}}),uo=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/export.js"(e,t){"use strict";var r=ia(),n=ax().f,a=hu(),o=pu(),i=ub(),c=dx(),d=ux();t.exports=function(p,_){var b=p.target,w=p.global,j=p.stat,R,G,F,$,te,ue;if(w?G=r:j?G=r[b]||i(b,{}):G=r[b]&&r[b].prototype,G)for(F in _){if(te=_[F],p.dontCallGetSet?(ue=n(G,F),$=ue&&ue.value):$=G[F],R=d(w?F:b+(j?".":"#")+F,p.forced),!R&&$!==void 0){if(typeof te==typeof $)continue;c(te,$)}(p.sham||$&&$.sham)&&a(te,"sham",!0),o(G,F,te,p)}}}}),nO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/correct-prototype-getter.js"(e,t){"use strict";var r=Ui();t.exports=!r(function(){function n(){}return s(n,"F"),Qe(n,"F"),n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype})}}),vb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-get-prototype-of.js"(e,t){"use strict";var r=kc(),n=ha(),a=ex(),o=pb(),i=nO(),c=o("IE_PROTO"),d=Object,p=d.prototype;t.exports=i?d.getPrototypeOf:function(_){var b=a(_);if(r(b,c))return b[c];var w=b.constructor;return n(w)&&b instanceof w?w.prototype:b instanceof d?p:null}}}),aO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/function-uncurry-this-accessor.js"(e,t){"use strict";var r=vi(),n=Fs();t.exports=function(a,o,i){try{return r(n(Object.getOwnPropertyDescriptor(a,o)[i]))}catch{}}}}),iO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-possible-prototype.js"(e,t){"use strict";var r=js();t.exports=function(n){return r(n)||n===null}}}),oO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/a-possible-prototype.js"(e,t){"use strict";var r=iO(),n=String,a=TypeError;t.exports=function(o){if(r(o))return o;throw new a("Can't set "+n(o)+" as a prototype")}}}),bb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-set-prototype-of.js"(e,t){"use strict";var r=aO(),n=js(),a=j0(),o=oO();t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var i=!1,c={},d;try{d=r(Object.prototype,"__proto__","set"),d(c,[]),i=c instanceof Array}catch{}return Qe(s(function(_,b){return a(_),o(b),n(_)&&(i?d(_,b):_.__proto__=b),_},"setPrototypeOf"),"setPrototypeOf")}():void 0)}}),sO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-keys.js"(e,t){"use strict";var r=lx(),n=yb();t.exports=Object.keys||Qe(s(function(o){return r(o,n)},"keys"),"keys")}}),cO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-define-properties.js"(e){"use strict";var t=Os(),r=ix(),n=od(),a=Cl(),o=Hp(),i=sO();e.f=t&&!r?Object.defineProperties:Qe(s(function(d,p){a(d);for(var _=o(p),b=i(p),w=b.length,j=0,R;w>j;)n.f(d,R=b[j++],_[R]);return d},"defineProperties"),"defineProperties")}}),fx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/html.js"(e,t){"use strict";var r=xl();t.exports=r("document","documentElement")}}),L0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-create.js"(e,t){"use strict";var r=Cl(),n=cO(),a=yb(),o=mb(),i=fx(),c=V0(),d=pb(),p=">",_="<",b="prototype",w="script",j=d("IE_PROTO"),R=Qe(function(){},"EmptyConstructor"),G=Qe(function(oe){return _+w+p+oe+_+"/"+w+p},"scriptTag"),F=Qe(function(oe){oe.write(G("")),oe.close();var ie=oe.parentWindow.Object;return oe=null,ie},"NullProtoObjectViaActiveX"),$=Qe(function(){var oe=c("iframe"),ie="java"+w+":",fe;return oe.style.display="none",i.appendChild(oe),oe.src=String(ie),fe=oe.contentWindow.document,fe.open(),fe.write(G("document.F=Object")),fe.close(),fe.F},"NullProtoObjectViaIFrame"),te,ue=Qe(function(){try{te=new ActiveXObject("htmlfile")}catch{}ue=typeof document<"u"?document.domain&&te?F(te):$():F(te);for(var oe=a.length;oe--;)delete ue[b][a[oe]];return ue()},"NullProtoObject");o[j]=!0,t.exports=Object.create||Qe(s(function(ie,fe){var ae;return ie!==null?(R[b]=r(ie),ae=new R,R[b]=null,ae[j]=ie):ae=ue(),fe===void 0?ae:n.f(ae,fe)},"create"),"create")}}),lO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/install-error-cause.js"(e,t){"use strict";var r=js(),n=hu();t.exports=function(a,o){r(o)&&"cause"in o&&n(a,"cause",o.cause)}}}),dO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/error-stack-clear.js"(e,t){"use strict";var r=vi(),n=Error,a=r("".replace),o=function(d){return String(new n(d).stack)}("zxcasd"),i=/\n\s*at [^:]*:[^\n]*/,c=i.test(o);t.exports=function(d,p){if(c&&typeof d=="string"&&!n.prepareStackTrace)for(;p--;)d=a(d,i,"");return d}}}),uO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/error-stack-installable.js"(e,t){"use strict";var r=Ui(),n=Gp();t.exports=!r(function(){var a=new Error("a");return"stack"in a?(Object.defineProperty(a,"stack",n(1,7)),a.stack!==7):!0})}}),fO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/error-stack-install.js"(e,t){"use strict";var r=hu(),n=dO(),a=uO(),o=Error.captureStackTrace;t.exports=function(i,c,d,p){a&&(o?o(i,c):r(i,"stack",n(d,p)))}}}),hO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/function-uncurry-this-clause.js"(e,t){"use strict";var r=B0(),n=vi();t.exports=function(a){if(r(a)==="Function")return n(a)}}}),_b=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/function-bind-context.js"(e,t){"use strict";var r=hO(),n=Fs(),a=N0(),o=r(r.bind);t.exports=function(i,c){return n(i),c===void 0?i:a?o(i,c):function(){return i.apply(c,arguments)}}}}),Kp=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/iterators.js"(e,t){"use strict";t.exports={}}}),pO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-array-iterator-method.js"(e,t){"use strict";var r=bi(),n=Kp(),a=r("iterator"),o=Array.prototype;t.exports=function(i){return i!==void 0&&(n.Array===i||o[a]===i)}}}),wb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-string-tag-support.js"(e,t){"use strict";var r=bi(),n=r("toStringTag"),a={};a[n]="z",t.exports=String(a)==="[object z]"}}),Z0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/classof.js"(e,t){"use strict";var r=wb(),n=ha(),a=B0(),o=bi(),i=o("toStringTag"),c=Object,d=a(function(){return arguments}())==="Arguments",p=Qe(function(_,b){try{return _[b]}catch{}},"tryGet");t.exports=r?a:function(_){var b,w,j;return _===void 0?"Undefined":_===null?"Null":typeof(w=p(b=c(_),i))=="string"?w:d?a(b):(j=a(b))==="Object"&&n(b.callee)?"Arguments":j}}}),hx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/get-iterator-method.js"(e,t){"use strict";var r=Z0(),n=db(),a=O0(),o=Kp(),i=bi(),c=i("iterator");t.exports=function(d){if(!a(d))return n(d,c)||n(d,"@@iterator")||o[r(d)]}}}),mO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/get-iterator.js"(e,t){"use strict";var r=Uo(),n=Fs(),a=Cl(),o=M0(),i=hx(),c=TypeError;t.exports=function(d,p){var _=arguments.length<2?i(d):p;if(n(_))return a(r(_,d));throw new c(o(d)+" is not iterable")}}}),gO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/iterator-close.js"(e,t){"use strict";var r=Uo(),n=Cl(),a=db();t.exports=function(o,i,c){var d,p;n(o);try{if(d=a(o,"return"),!d){if(i==="throw")throw c;return c}d=r(d,o)}catch(_){p=!0,d=_}if(i==="throw")throw c;if(p)throw d;return n(d),c}}}),Jp=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/iterate.js"(e,t){"use strict";var r=_b(),n=Uo(),a=Cl(),o=M0(),i=pO(),c=cx(),d=F0(),p=mO(),_=hx(),b=gO(),w=TypeError,j=Qe(function(G,F){this.stopped=G,this.result=F},"Result"),R=j.prototype;t.exports=function(G,F,$){var te=$&&$.that,ue=!!($&&$.AS_ENTRIES),oe=!!($&&$.IS_RECORD),ie=!!($&&$.IS_ITERATOR),fe=!!($&&$.INTERRUPTED),ae=r(F,te),Ie,_e,rt,Ce,ct,ve,Fe,J=Qe(function(k){return Ie&&b(Ie,"normal",k),new j(!0,k)},"stop"),g=Qe(function(k){return ue?(a(k),fe?ae(k[0],k[1],J):ae(k[0],k[1])):fe?ae(k,J):ae(k)},"callFn");if(oe)Ie=G.iterator;else if(ie)Ie=G;else{if(_e=_(G),!_e)throw new w(o(G)+" is not iterable");if(i(_e)){for(rt=0,Ce=c(G);Ce>rt;rt++)if(ct=g(G[rt]),ct&&d(R,ct))return ct;return new j(!1)}Ie=p(G,_e)}for(ve=oe?G.next:Ie.next;!(Fe=n(ve,Ie)).done;){try{ct=g(Fe.value)}catch(k){b(Ie,"throw",k)}if(typeof ct=="object"&&ct&&d(R,ct))return ct}return new j(!1)}}}),xb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-string.js"(e,t){"use strict";var r=Z0(),n=String;t.exports=function(a){if(r(a)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return n(a)}}}),yO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/normalize-string-argument.js"(e,t){"use strict";var r=xb();t.exports=function(n,a){return n===void 0?arguments.length<2?"":a:r(n)}}}),vO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.aggregate-error.constructor.js"(){"use strict";var e=uo(),t=F0(),r=vb(),n=bb(),a=dx(),o=L0(),i=hu(),c=Gp(),d=lO(),p=fO(),_=Jp(),b=yO(),w=bi(),j=w("toStringTag"),R=Error,G=[].push,F=Qe(s(function(ue,oe){var ie=t($,this),fe;n?fe=n(new R,ie?r(this):$):(fe=ie?this:o($),i(fe,j,"Error")),oe!==void 0&&i(fe,"message",b(oe)),p(fe,F,fe.stack,1),arguments.length>2&&d(fe,arguments[2]);var ae=[];return _(ue,G,{that:ae}),i(fe,"errors",ae),fe},"AggregateError"),"AggregateError");n?n(F,R):a(F,R,{name:!0});var $=F.prototype=o(R.prototype,{constructor:c(1,F),message:c(1,""),name:c(1,"AggregateError")});e({global:!0,constructor:!0,arity:2},{AggregateError:F})}}),bO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.aggregate-error.js"(){"use strict";vO()}}),_O=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/add-to-unscopables.js"(e,t){"use strict";var r=bi(),n=L0(),a=od().f,o=r("unscopables"),i=Array.prototype;i[o]===void 0&&a(i,o,{configurable:!0,value:n(null)}),t.exports=function(c){i[o][c]=!0}}}),px=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/iterators-core.js"(e,t){"use strict";var r=Ui(),n=ha(),a=js(),o=L0(),i=vb(),c=pu(),d=bi(),p=Al(),_=d("iterator"),b=!1,w,j,R;[].keys&&(R=[].keys(),"next"in R?(j=i(i(R)),j!==Object.prototype&&(w=j)):b=!0);var G=!a(w)||r(function(){var F={};return w[_].call(F)!==F});G?w={}:p&&(w=o(w)),n(w[_])||c(w,_,function(){return this}),t.exports={IteratorPrototype:w,BUGGY_SAFARI_ITERATORS:b}}}),q0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/set-to-string-tag.js"(e,t){"use strict";var r=od().f,n=kc(),a=bi(),o=a("toStringTag");t.exports=function(i,c,d){i&&!d&&(i=i.prototype),i&&!n(i,o)&&r(i,o,{configurable:!0,value:c})}}}),wO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/iterator-create-constructor.js"(e,t){"use strict";var r=px().IteratorPrototype,n=L0(),a=Gp(),o=q0(),i=Kp(),c=Qe(function(){return this},"returnThis");t.exports=function(d,p,_,b){var w=p+" Iterator";return d.prototype=n(r,{next:a(+!b,_)}),o(d,w,!1,!0),i[w]=c,d}}}),mx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/iterator-define.js"(e,t){"use strict";var r=uo(),n=Uo(),a=Al(),o=ox(),i=ha(),c=wO(),d=vb(),p=bb(),_=q0(),b=hu(),w=pu(),j=bi(),R=Kp(),G=px(),F=o.PROPER,$=o.CONFIGURABLE,te=G.IteratorPrototype,ue=G.BUGGY_SAFARI_ITERATORS,oe=j("iterator"),ie="keys",fe="values",ae="entries",Ie=Qe(function(){return this},"returnThis");t.exports=function(_e,rt,Ce,ct,ve,Fe,J){c(Ce,rt,ct);var g=Qe(function(De){if(De===ve&&q)return q;if(!ue&&De&&De in P)return P[De];switch(De){case ie:return Qe(s(function(){return new Ce(this,De)},"keys"),"keys");case fe:return Qe(s(function(){return new Ce(this,De)},"values"),"values");case ae:return Qe(s(function(){return new Ce(this,De)},"entries"),"entries")}return function(){return new Ce(this)}},"getIterationMethod"),k=rt+" Iterator",V=!1,P=_e.prototype,L=P[oe]||P["@@iterator"]||ve&&P[ve],q=!ue&&L||g(ve),ee=rt==="Array"&&P.entries||L,Q,C,H;if(ee&&(Q=d(ee.call(new _e)),Q!==Object.prototype&&Q.next&&(!a&&d(Q)!==te&&(p?p(Q,te):i(Q[oe])||w(Q,oe,Ie)),_(Q,k,!0,!0),a&&(R[k]=Ie))),F&&ve===fe&&L&&L.name!==fe&&(!a&&$?b(P,"name",fe):(V=!0,q=Qe(s(function(){return n(L,this)},"values"),"values"))),ve)if(C={values:g(fe),keys:Fe?q:g(ie),entries:g(ae)},J)for(H in C)(ue||V||!(H in P))&&w(P,H,C[H]);else r({target:rt,proto:!0,forced:ue||V},C);return(!a||J)&&P[oe]!==q&&w(P,oe,q,{name:ve}),R[rt]=q,C}}}),gx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/create-iter-result-object.js"(e,t){"use strict";t.exports=function(r,n){return{value:r,done:n}}}}),yx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.array.iterator.js"(e,t){"use strict";var r=Hp(),n=_O(),a=Kp(),o=U0(),i=od().f,c=mx(),d=gx(),p=Al(),_=Os(),b="Array Iterator",w=o.set,j=o.getterFor(b);t.exports=c(Array,"Array",function(G,F){w(this,{type:b,target:r(G),index:0,kind:F})},function(){var G=j(this),F=G.target,$=G.index++;if(!F||$>=F.length)return G.target=null,d(void 0,!0);switch(G.kind){case"keys":return d($,!1);case"values":return d(F[$],!1)}return d([$,F[$]],!1)},"values");var R=a.Arguments=a.Array;if(n("keys"),n("values"),n("entries"),!p&&_&&R.name!=="values")try{i(R,"name",{value:"values"})}catch{}}}),xO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-to-string.js"(e,t){"use strict";var r=wb(),n=Z0();t.exports=r?{}.toString:Qe(s(function(){return"[object "+n(this)+"]"},"toString"),"toString")}}),AO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.object.to-string.js"(){"use strict";var e=wb(),t=pu(),r=xO();e||t(Object.prototype,"toString",r,{unsafe:!0})}}),vx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/environment.js"(e,t){"use strict";var r=ia(),n=$p(),a=B0(),o=Qe(function(i){return n.slice(0,i.length)===i},"userAgentStartsWith");t.exports=function(){return o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":r.Bun&&typeof Bun.version=="string"?"BUN":r.Deno&&typeof Deno.version=="object"?"DENO":a(r.process)==="process"?"NODE":r.window&&r.document?"BROWSER":"REST"}()}}),Ab=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/environment-is-node.js"(e,t){"use strict";var r=vx();t.exports=r==="NODE"}}),CO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/define-built-in-accessor.js"(e,t){"use strict";var r=sx(),n=od();t.exports=function(a,o,i){return i.get&&r(i.get,o,{getter:!0}),i.set&&r(i.set,o,{setter:!0}),n.f(a,o,i)}}}),EO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/set-species.js"(e,t){"use strict";var r=xl(),n=CO(),a=bi(),o=Os(),i=a("species");t.exports=function(c){var d=r(c);o&&d&&!d[i]&&n(d,i,{configurable:!0,get:function(){return this}})}}}),kO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/an-instance.js"(e,t){"use strict";var r=F0(),n=TypeError;t.exports=function(a,o){if(r(o,a))return a;throw new n("Incorrect invocation")}}}),IO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-constructor.js"(e,t){"use strict";var r=vi(),n=Ui(),a=ha(),o=Z0(),i=xl(),c=hb(),d=Qe(function(){},"noop"),p=i("Reflect","construct"),_=/^\s*(?:class|function)\b/,b=r(_.exec),w=!_.test(d),j=Qe(s(function(F){if(!a(F))return!1;try{return p(d,[],F),!0}catch{return!1}},"isConstructor"),"isConstructor"),R=Qe(s(function(F){if(!a(F))return!1;switch(o(F)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return w||!!b(_,c(F))}catch{return!0}},"isConstructor"),"isConstructor");R.sham=!0,t.exports=!p||n(function(){var G;return j(j.call)||!j(Object)||!j(function(){G=!0})||G})?R:j}}),TO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/a-constructor.js"(e,t){"use strict";var r=IO(),n=M0(),a=TypeError;t.exports=function(o){if(r(o))return o;throw new a(n(o)+" is not a constructor")}}}),bx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/species-constructor.js"(e,t){"use strict";var r=Cl(),n=TO(),a=O0(),o=bi(),i=o("species");t.exports=function(c,d){var p=r(c).constructor,_;return p===void 0||a(_=r(p)[i])?d:n(_)}}}),_x=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/function-apply.js"(e,t){"use strict";var r=N0(),n=Function.prototype,a=n.apply,o=n.call;t.exports=typeof Reflect=="object"&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})}}),wx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/array-slice.js"(e,t){"use strict";var r=vi();t.exports=r([].slice)}}),SO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/validate-arguments-length.js"(e,t){"use strict";var r=TypeError;t.exports=function(n,a){if(n<a)throw new r("Not enough arguments");return n}}}),xx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/environment-is-ios.js"(e,t){"use strict";var r=$p();t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)}}),Ax=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/task.js"(e,t){"use strict";var r=ia(),n=_x(),a=_b(),o=ha(),i=kc(),c=Ui(),d=fx(),p=wx(),_=V0(),b=SO(),w=xx(),j=Ab(),R=r.setImmediate,G=r.clearImmediate,F=r.process,$=r.Dispatch,te=r.Function,ue=r.MessageChannel,oe=r.String,ie=0,fe={},ae="onreadystatechange",Ie,_e,rt,Ce;c(function(){Ie=r.location});var ct=Qe(function(g){if(i(fe,g)){var k=fe[g];delete fe[g],k()}},"run"),ve=Qe(function(g){return function(){ct(g)}},"runner"),Fe=Qe(function(g){ct(g.data)},"eventListener"),J=Qe(function(g){r.postMessage(oe(g),Ie.protocol+"//"+Ie.host)},"globalPostMessageDefer");(!R||!G)&&(R=Qe(s(function(k){b(arguments.length,1);var V=o(k)?k:te(k),P=p(arguments,1);return fe[++ie]=function(){n(V,void 0,P)},_e(ie),ie},"setImmediate"),"setImmediate"),G=Qe(s(function(k){delete fe[k]},"clearImmediate"),"clearImmediate"),j?_e=Qe(function(g){F.nextTick(ve(g))},"defer"):$&&$.now?_e=Qe(function(g){$.now(ve(g))},"defer"):ue&&!w?(rt=new ue,Ce=rt.port2,rt.port1.onmessage=Fe,_e=a(Ce.postMessage,Ce)):r.addEventListener&&o(r.postMessage)&&!r.importScripts&&Ie&&Ie.protocol!=="file:"&&!c(J)?(_e=J,r.addEventListener("message",Fe,!1)):ae in _("script")?_e=Qe(function(g){d.appendChild(_("script"))[ae]=function(){d.removeChild(this),ct(g)}},"defer"):_e=Qe(function(g){setTimeout(ve(g),0)},"defer")),t.exports={set:R,clear:G}}}),RO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/safe-get-built-in.js"(e,t){"use strict";var r=ia(),n=Os(),a=Object.getOwnPropertyDescriptor;t.exports=function(o){if(!n)return r[o];var i=a(r,o);return i&&i.value}}}),Cx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/queue.js"(e,t){"use strict";var r=Qe(function(){this.head=null,this.tail=null},"Queue");r.prototype={add:function(n){var a={item:n,next:null},o=this.tail;o?o.next=a:this.head=a,this.tail=a},get:function(){var n=this.head;if(n){var a=this.head=n.next;return a===null&&(this.tail=null),n.item}}},t.exports=r}}),PO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/environment-is-ios-pebble.js"(e,t){"use strict";var r=$p();t.exports=/ipad|iphone|ipod/i.test(r)&&typeof Pebble<"u"}}),DO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/environment-is-webos-webkit.js"(e,t){"use strict";var r=$p();t.exports=/web0s(?!.*chrome)/i.test(r)}}),NO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/microtask.js"(e,t){"use strict";var r=ia(),n=RO(),a=_b(),o=Ax().set,i=Cx(),c=xx(),d=PO(),p=DO(),_=Ab(),b=r.MutationObserver||r.WebKitMutationObserver,w=r.document,j=r.process,R=r.Promise,G=n("queueMicrotask"),F,$,te,ue,oe;G||(ie=new i,fe=Qe(function(){var ae,Ie;for(_&&(ae=j.domain)&&ae.exit();Ie=ie.get();)try{Ie()}catch(_e){throw ie.head&&F(),_e}ae&&ae.enter()},"flush"),!c&&!_&&!p&&b&&w?($=!0,te=w.createTextNode(""),new b(fe).observe(te,{characterData:!0}),F=Qe(function(){te.data=$=!$},"notify")):!d&&R&&R.resolve?(ue=R.resolve(void 0),ue.constructor=R,oe=a(ue.then,ue),F=Qe(function(){oe(fe)},"notify")):_?F=Qe(function(){j.nextTick(fe)},"notify"):(o=a(o,r),F=Qe(function(){o(fe)},"notify")),G=Qe(function(ae){ie.head||F(),ie.add(ae)},"microtask"));var ie,fe;t.exports=G}}),BO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/host-report-errors.js"(e,t){"use strict";t.exports=function(r,n){try{arguments.length===1?console.error(r):console.error(r,n)}catch{}}}}),Cf=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/perform.js"(e,t){"use strict";t.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}}}),Ef=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/promise-native-constructor.js"(e,t){"use strict";var r=ia();t.exports=r.Promise}}),Qp=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/promise-constructor-detection.js"(e,t){"use strict";var r=ia(),n=Ef(),a=ha(),o=ux(),i=hb(),c=bi(),d=vx(),p=Al(),_=K9(),b=n&&n.prototype,w=c("species"),j=!1,R=a(r.PromiseRejectionEvent),G=o("Promise",function(){var F=i(n),$=F!==String(n);if(!$&&_===66||p&&!(b.catch&&b.finally))return!0;if(!_||_<51||!/native code/.test(F)){var te=new n(function(ie){ie(1)}),ue=Qe(function(ie){ie(function(){},function(){})},"FakePromise"),oe=te.constructor={};if(oe[w]=ue,j=te.then(function(){})instanceof ue,!j)return!0}return!$&&(d==="BROWSER"||d==="DENO")&&!R});t.exports={CONSTRUCTOR:G,REJECTION_EVENT:R,SUBCLASSING:j}}}),El=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/new-promise-capability.js"(e,t){"use strict";var r=Fs(),n=TypeError,a=Qe(function(o){var i,c;this.promise=new o(function(d,p){if(i!==void 0||c!==void 0)throw new n("Bad Promise constructor");i=d,c=p}),this.resolve=r(i),this.reject=r(c)},"PromiseCapability");t.exports.f=function(o){return new a(o)}}}),OO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.constructor.js"(){"use strict";var e=uo(),t=Al(),r=Ab(),n=ia(),a=Uo(),o=pu(),i=bb(),c=q0(),d=EO(),p=Fs(),_=ha(),b=js(),w=kO(),j=bx(),R=Ax().set,G=NO(),F=BO(),$=Cf(),te=Cx(),ue=U0(),oe=Ef(),ie=Qp(),fe=El(),ae="Promise",Ie=ie.CONSTRUCTOR,_e=ie.REJECTION_EVENT,rt=ie.SUBCLASSING,Ce=ue.getterFor(ae),ct=ue.set,ve=oe&&oe.prototype,Fe=oe,J=ve,g=n.TypeError,k=n.document,V=n.process,P=fe.f,L=P,q=!!(k&&k.createEvent&&n.dispatchEvent),ee="unhandledrejection",Q="rejectionhandled",C=0,H=1,De=2,U=1,le=2,be,Ae,Le,He,Je=Qe(function(Be){var it;return b(Be)&&_(it=Be.then)?it:!1},"isThenable"),Ge=Qe(function(Be,it){var tt=it.value,Xe=it.state===H,lt=Xe?Be.ok:Be.fail,gt=Be.resolve,Ft=Be.reject,Ar=Be.domain,Dt,Zt,tn;try{lt?(Xe||(it.rejection===le&&se(it),it.rejection=U),lt===!0?Dt=tt:(Ar&&Ar.enter(),Dt=lt(tt),Ar&&(Ar.exit(),tn=!0)),Dt===Be.promise?Ft(new g("Promise-chain cycle")):(Zt=Je(Dt))?a(Zt,Dt,gt,Ft):gt(Dt)):Ft(tt)}catch(qt){Ar&&!tn&&Ar.exit(),Ft(qt)}},"callReaction"),It=Qe(function(Be,it){Be.notified||(Be.notified=!0,G(function(){for(var tt=Be.reactions,Xe;Xe=tt.get();)Ge(Xe,Be);Be.notified=!1,it&&!Be.rejection&&I(Be)}))},"notify"),Y=Qe(function(Be,it,tt){var Xe,lt;q?(Xe=k.createEvent("Event"),Xe.promise=it,Xe.reason=tt,Xe.initEvent(Be,!1,!0),n.dispatchEvent(Xe)):Xe={promise:it,reason:tt},!_e&&(lt=n["on"+Be])?lt(Xe):Be===ee&&F("Unhandled promise rejection",tt)},"dispatchEvent"),I=Qe(function(Be){a(R,n,function(){var it=Be.facade,tt=Be.value,Xe=M(Be),lt;if(Xe&&(lt=$(function(){r?V.emit("unhandledRejection",tt,it):Y(ee,it,tt)}),Be.rejection=r||M(Be)?le:U,lt.error))throw lt.value})},"onUnhandled"),M=Qe(function(Be){return Be.rejection!==U&&!Be.parent},"isUnhandled"),se=Qe(function(Be){a(R,n,function(){var it=Be.facade;r?V.emit("rejectionHandled",it):Y(Q,it,Be.value)})},"onHandleUnhandled"),he=Qe(function(Be,it,tt){return function(Xe){Be(it,Xe,tt)}},"bind"),Ee=Qe(function(Be,it,tt){Be.done||(Be.done=!0,tt&&(Be=tt),Be.value=it,Be.state=De,It(Be,!0))},"internalReject"),Te=Qe(function(Be,it,tt){if(!Be.done){Be.done=!0,tt&&(Be=tt);try{if(Be.facade===it)throw new g("Promise can't be resolved itself");var Xe=Je(it);Xe?G(function(){var lt={done:!1};try{a(Xe,it,he(Te,lt,Be),he(Ee,lt,Be))}catch(gt){Ee(lt,gt,Be)}}):(Be.value=it,Be.state=H,It(Be,!1))}catch(lt){Ee({done:!1},lt,Be)}}},"internalResolve");if(Ie&&(Fe=Qe(s(function(it){w(this,J),p(it),a(be,this);var tt=Ce(this);try{it(he(Te,tt),he(Ee,tt))}catch(Xe){Ee(tt,Xe)}},"Promise2"),"Promise"),J=Fe.prototype,be=Qe(s(function(it){ct(this,{type:ae,done:!1,notified:!1,parent:!1,reactions:new te,rejection:!1,state:C,value:null})},"Promise2"),"Promise"),be.prototype=o(J,"then",Qe(s(function(it,tt){var Xe=Ce(this),lt=P(j(this,Fe));return Xe.parent=!0,lt.ok=_(it)?it:!0,lt.fail=_(tt)&&tt,lt.domain=r?V.domain:void 0,Xe.state===C?Xe.reactions.add(lt):G(function(){Ge(lt,Xe)}),lt.promise},"then"),"then")),Ae=Qe(function(){var Be=new be,it=Ce(Be);this.promise=Be,this.resolve=he(Te,it),this.reject=he(Ee,it)},"OwnPromiseCapability"),fe.f=P=Qe(function(Be){return Be===Fe||Be===Le?new Ae(Be):L(Be)},"newPromiseCapability"),!t&&_(oe)&&ve!==Object.prototype)){He=ve.then,rt||o(ve,"then",Qe(s(function(it,tt){var Xe=this;return new Fe(function(lt,gt){a(He,Xe,lt,gt)}).then(it,tt)},"then"),"then"),{unsafe:!0});try{delete ve.constructor}catch{}i&&i(ve,J)}e({global:!0,constructor:!0,wrap:!0,forced:Ie},{Promise:Fe}),c(Fe,ae,!1,!0),d(ae)}}),jO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/check-correctness-of-iteration.js"(e,t){"use strict";var r=bi(),n=r("iterator"),a=!1;try{o=0,i={next:function(){return{done:!!o++}},return:function(){a=!0}},i[n]=function(){return this},Array.from(i,function(){throw 2})}catch{}var o,i;t.exports=function(c,d){try{if(!d&&!a)return!1}catch{return!1}var p=!1;try{var _={};_[n]=function(){return{next:function(){return{done:p=!0}}}},c(_)}catch{}return p}}}),W0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/promise-statics-incorrect-iteration.js"(e,t){"use strict";var r=Ef(),n=jO(),a=Qp().CONSTRUCTOR;t.exports=a||!n(function(o){r.all(o).then(void 0,function(){})})}}),FO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.all.js"(){"use strict";var e=uo(),t=Uo(),r=Fs(),n=El(),a=Cf(),o=Jp(),i=W0();e({target:"Promise",stat:!0,forced:i},{all:Qe(s(function(d){var p=this,_=n.f(p),b=_.resolve,w=_.reject,j=a(function(){var R=r(p.resolve),G=[],F=0,$=1;o(d,function(te){var ue=F++,oe=!1;$++,t(R,p,te).then(function(ie){oe||(oe=!0,G[ue]=ie,--$||b(G))},w)}),--$||b(G)});return j.error&&w(j.value),_.promise},"all"),"all")})}}),MO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.catch.js"(){"use strict";var e=uo(),t=Al(),r=Qp().CONSTRUCTOR,n=Ef(),a=xl(),o=ha(),i=pu(),c=n&&n.prototype;e({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(p){return this.then(void 0,p)}}),!t&&o(n)&&(d=a("Promise").prototype.catch,c.catch!==d&&i(c,"catch",d,{unsafe:!0}));var d}}),VO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.race.js"(){"use strict";var e=uo(),t=Uo(),r=Fs(),n=El(),a=Cf(),o=Jp(),i=W0();e({target:"Promise",stat:!0,forced:i},{race:Qe(s(function(d){var p=this,_=n.f(p),b=_.reject,w=a(function(){var j=r(p.resolve);o(d,function(R){t(j,p,R).then(_.resolve,b)})});return w.error&&b(w.value),_.promise},"race"),"race")})}}),UO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.reject.js"(){"use strict";var e=uo(),t=El(),r=Qp().CONSTRUCTOR;e({target:"Promise",stat:!0,forced:r},{reject:Qe(s(function(a){var o=t.f(this),i=o.reject;return i(a),o.promise},"reject"),"reject")})}}),Ex=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/promise-resolve.js"(e,t){"use strict";var r=Cl(),n=js(),a=El();t.exports=function(o,i){if(r(o),n(i)&&i.constructor===o)return i;var c=a.f(o),d=c.resolve;return d(i),c.promise}}}),LO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.resolve.js"(){"use strict";var e=uo(),t=xl(),r=Al(),n=Ef(),a=Qp().CONSTRUCTOR,o=Ex(),i=t("Promise"),c=r&&!a;e({target:"Promise",stat:!0,forced:r||a},{resolve:Qe(s(function(p){return o(c&&this===i?n:this,p)},"resolve"),"resolve")})}}),ZO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.js"(){"use strict";OO(),FO(),MO(),VO(),UO(),LO()}}),qO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.all-settled.js"(){"use strict";var e=uo(),t=Uo(),r=Fs(),n=El(),a=Cf(),o=Jp(),i=W0();e({target:"Promise",stat:!0,forced:i},{allSettled:Qe(s(function(d){var p=this,_=n.f(p),b=_.resolve,w=_.reject,j=a(function(){var R=r(p.resolve),G=[],F=0,$=1;o(d,function(te){var ue=F++,oe=!1;$++,t(R,p,te).then(function(ie){oe||(oe=!0,G[ue]={status:"fulfilled",value:ie},--$||b(G))},function(ie){oe||(oe=!0,G[ue]={status:"rejected",reason:ie},--$||b(G))})}),--$||b(G)});return j.error&&w(j.value),_.promise},"allSettled"),"allSettled")})}}),WO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.any.js"(){"use strict";var e=uo(),t=Uo(),r=Fs(),n=xl(),a=El(),o=Cf(),i=Jp(),c=W0(),d="No one promise resolved";e({target:"Promise",stat:!0,forced:c},{any:Qe(s(function(_){var b=this,w=n("AggregateError"),j=a.f(b),R=j.resolve,G=j.reject,F=o(function(){var $=r(b.resolve),te=[],ue=0,oe=1,ie=!1;i(_,function(fe){var ae=ue++,Ie=!1;oe++,t($,b,fe).then(function(_e){Ie||ie||(ie=!0,R(_e))},function(_e){Ie||ie||(Ie=!0,te[ae]=_e,--oe||G(new w(te,d)))})}),--oe||G(new w(te,d))});return F.error&&G(F.value),j.promise},"any"),"any")})}}),kx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.try.js"(){"use strict";var e=uo(),t=ia(),r=_x(),n=wx(),a=El(),o=Fs(),i=Cf(),c=t.Promise,d=!1,p=!c||!c.try||i(function(){c.try(function(_){d=_===8},8)}).error||!d;e({target:"Promise",stat:!0,forced:p},{try:function(_){var b=arguments.length>1?n(arguments,1):[],w=a.f(this),j=i(function(){return r(o(_),void 0,b)});return(j.error?w.reject:w.resolve)(j.value),w.promise}})}}),Ix=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.with-resolvers.js"(){"use strict";var e=uo(),t=El();e({target:"Promise",stat:!0},{withResolvers:Qe(s(function(){var n=t.f(this);return{promise:n.promise,resolve:n.resolve,reject:n.reject}},"withResolvers"),"withResolvers")})}}),zO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.finally.js"(){"use strict";var e=uo(),t=Al(),r=Ef(),n=Ui(),a=xl(),o=ha(),i=bx(),c=Ex(),d=pu(),p=r&&r.prototype,_=!!r&&n(function(){p.finally.call({then:function(){}},function(){})});e({target:"Promise",proto:!0,real:!0,forced:_},{finally:function(w){var j=i(this,a("Promise")),R=o(w);return this.then(R?function(G){return c(j,w()).then(function(){return G})}:w,R?function(G){return c(j,w()).then(function(){throw G})}:w)}}),!t&&o(r)&&(b=a("Promise").prototype.finally,p.finally!==b&&d(p,"finally",b,{unsafe:!0}));var b}}),GO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/string-multibyte.js"(e,t){"use strict";var r=vi(),n=gb(),a=xb(),o=j0(),i=r("".charAt),c=r("".charCodeAt),d=r("".slice),p=Qe(function(_){return function(b,w){var j=a(o(b)),R=n(w),G=j.length,F,$;return R<0||R>=G?_?"":void 0:(F=c(j,R),F<55296||F>56319||R+1===G||($=c(j,R+1))<56320||$>57343?_?i(j,R):F:_?d(j,R,R+2):(F-55296<<10)+($-56320)+65536)}},"createMethod");t.exports={codeAt:p(!1),charAt:p(!0)}}}),HO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.string.iterator.js"(){"use strict";var e=GO().charAt,t=xb(),r=U0(),n=mx(),a=gx(),o="String Iterator",i=r.set,c=r.getterFor(o);n(String,"String",function(d){i(this,{type:o,string:t(d),index:0})},Qe(s(function(){var p=c(this),_=p.string,b=p.index,w;return b>=_.length?a(void 0,!0):(w=e(_,b),p.index+=w.length,a(w,!1))},"next"),"next"))}}),$O=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/path.js"(e,t){"use strict";var r=ia();t.exports=r}}),KO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/es/promise/index.js"(e,t){"use strict";bO(),yx(),AO(),ZO(),qO(),WO(),kx(),Ix(),zO(),HO();var r=$O();t.exports=r.Promise}}),JO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/dom-iterables.js"(e,t){"use strict";t.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}}}),QO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/dom-token-list-prototype.js"(e,t){"use strict";var r=V0(),n=r("span").classList,a=n&&n.constructor&&n.constructor.prototype;t.exports=a===Object.prototype?void 0:a}}),YO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/web.dom-collections.iterator.js"(){"use strict";var e=ia(),t=JO(),r=QO(),n=yx(),a=hu(),o=q0(),i=bi(),c=i("iterator"),d=n.values,p=Qe(function(b,w){if(b){if(b[c]!==d)try{a(b,c,d)}catch{b[c]=d}if(o(b,w,!0),t[w]){for(var j in n)if(b[j]!==n[j])try{a(b,j,n[j])}catch{b[j]=n[j]}}}},"handlePrototype");for(_ in t)p(e[_]&&e[_].prototype,_);var _;p(r,"DOMTokenList")}}),XO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/stable/promise/index.js"(e,t){"use strict";var r=KO();YO(),t.exports=r}}),ej=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/esnext.promise.try.js"(){"use strict";kx()}}),tj=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/esnext.promise.with-resolvers.js"(){"use strict";Ix()}}),rj=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/actual/promise/index.js"(e,t){"use strict";var r=XO();ej(),tj(),t.exports=r}}),wK=WB(rj()),Wp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:void 0;Wp&&(typeof Wp.AbortController>"u"&&(Wp.AbortController=z0.AbortController),typeof Wp.AbortSignal>"u"&&(Wp.AbortSignal=z0.AbortSignal));var H9=Qe((e,t)=>e.reduce((r,n)=>r!==void 0?r:t(n),void 0),"findFirstResult"),Ta=Qe((e,t)=>t==="read"?"get"in(e.read??{}):t==="store"?"upload"in(e.store??{}):t==="index"?"get"in(e.index??{}):t==="cache"?"getIndex"in(e.cache??{}):t==="id"?"did"in(e.id??{}):t==="context"?"resolveStaticDocument"in(e.context??{}):!1,"pluginImplementsPlane"),Fn=Qe((e,t)=>t==="read"?"read"in e:t==="store"?"store"in e:t==="index"?"index"in e:t==="cache"?"cache"in e:t==="id"?"id"in e:t==="context"?"context"in e:!1,"learnCardImplementsPlane"),nj=Qe((e,t)=>Object.fromEntries(Object.entries(e).map(([r,n],a)=>[r,t(n,a)])),"mapObject"),zp=Qe(e=>e.status==="fulfilled"&&!!e.value,"isFulfilledAndNotEmpty"),aj=Qe((e,t)=>[...new Map(e.map(r=>[t instanceof Function?t(r):r[t],r])).values()],"uniqBy"),kf=Qe((e,t)=>e.reduce((r,n)=>(t in n&&(r[n.name]={name:n.name,displayName:n.displayName,description:n.description}),r),{}),"getPlaneProviders"),Cb=Qe((e,t)=>nj(t,r=>r.bind(e,e)),"bindLearnCardToFunctionsObject"),ij=Qe(async(e,t)=>(e.debug?.("Adding plugin",t.name),_i({plugins:[...e.plugins,t],debug:e.debug})),"addPluginToLearnCard"),oj=Qe(e=>({get:async(t,{cache:r="cache-first"}={})=>{if(e.debug?.("learnCard.read.get",t),!t)return;if(r==="cache-only"&&!Fn(e,"cache"))throw new Error("Cannot read from cache. Cache Plane is not implemented!");if(Fn(e,"cache")&&r!=="skip-cache"){let o=await e.cache.getVc(t);if(o)return r==="cache-first"&&Fn(e,"read")&&e.read.get(t,{cache:"skip-cache"}).then(i=>e.cache.setVc(t,i)),o}let a=(await Promise.allSettled(e.plugins.map(async o=>{if(!Ta(o,"read"))throw new Error("Plugin is not a Read Plugin");return o.read.get(e,t)}))).find(zp)?.value;return a&&Fn(e,"cache")&&r!=="skip-cache"&&await e.cache.setVc(t,a),a},providers:kf(e.plugins,"read")}),"generateReadPlane"),sj=Qe(e=>({upload:async(t,r,{cache:n="cache-first"}={})=>{let a=await e.upload(t,r);return n!=="skip-cache"&&Fn(t,"cache")&&await t.cache.setVc(a,r),a},..."uploadMany"in e?{uploadMany:e.uploadMany}:{},..."uploadEncrypted"in e?{uploadEncrypted:async(t,r,n,{cache:a="cache-first"}={})=>{let o=await e.uploadEncrypted?.(t,r,n);return a!=="skip-cache"&&Fn(t,"cache")&&await t.cache.setVc(o,r),o}}:{}}),"addCachingToStorePlane"),cj=Qe(e=>({...e.plugins.reduce((r,n)=>(Ta(n,"store")&&(r[n.name]=Cb(e,sj(n.store))),r),{}),providers:kf(e.plugins,"store")}),"generateStorePlane"),lj=Qe((e,t)=>({get:async(r,n,{cache:a="cache-first"}={})=>{if(a==="cache-only"&&!Fn(r,"cache"))throw new Error("Cannot read from cache. Cache Plane is not implemented!");if(Fn(r,"cache")&&a!=="skip-cache"){let i=await r.cache.getIndex(t,n??{});if(i)return a==="cache-first"&&e.get(r,n,{cache:"skip-cache"}).then(c=>{r.cache.setIndex(t,n??{},c)}),i}let o=await e.get(r,n);return o&&Fn(r,"cache")&&a!=="skip-cache"&&await r.cache.setIndex(t,n??{},o),o},...e.getPage?{getPage:async(r,n,a,{cache:o="cache-first"}={})=>{if(o==="cache-only"&&!Fn(r,"cache"))throw new Error("Cannot read from cache. Cache Plane is not implemented!");if(Fn(r,"cache")&&o!=="skip-cache"){let c=await r.cache.getIndexPage(t,n??{},a);if(c)return o==="cache-first"&&e.getPage?.(r,n,a,{cache:"skip-cache"}).then(d=>{r.cache.setIndexPage(t,n??{},d,a)}),c}let i=await e.getPage?.(r,n,a);return i&&Fn(r,"cache")&&o!=="skip-cache"&&await r.cache.setIndexPage(t,n??{},i,a),i}}:{},...e.getCount?{getCount:async(r,n,{cache:a="cache-first"}={})=>{if(a==="cache-only"&&!Fn(r,"cache"))throw new Error("Cannot read from cache. Cache Plane is not implemented!");if(Fn(r,"cache")&&a!=="skip-cache"){let i=await r.cache.getIndexCount?.(t,n??{});if(i)return a==="cache-first"&&e.getCount?.(r,n,{cache:"skip-cache"}).then(c=>r.cache.setIndexCount?.(t,n??{},c)),i}let o=await e.getCount?.(r,n);return o&&Fn(r,"cache")&&a!=="skip-cache"&&await r.cache.setIndexCount?.(t,n??{},o),o}}:{},add:async(r,n,{cache:a="cache-first"}={})=>{let o=await e.add(r,n);return a!=="skip-cache"&&Fn(r,"cache")&&await r.cache.flushIndex(),o},...e.addMany?{addMany:async(r,n,{cache:a="cache-first"}={})=>{let o=await e.addMany?.(r,n);return a!=="skip-cache"&&Fn(r,"cache")&&await r.cache.flushIndex(),o}}:{},update:async(r,n,a,{cache:o="cache-first"}={})=>{let i=await e.update(r,n,a);return o!=="skip-cache"&&Fn(r,"cache")&&await r.cache.flushIndex(),i},remove:async(r,n,{cache:a="cache-first"}={})=>{let o=await e.remove(r,n);return a!=="skip-cache"&&Fn(r,"cache")&&await r.cache.flushIndex(),o},...e.removeAll?{removeAll:async(r,{cache:n="cache-first"}={})=>{let a=await e.removeAll?.(r);return n!=="skip-cache"&&Fn(r,"cache")&&await r.cache.flushIndex(),a}}:{}}),"addCachingToIndexPlane"),dj=Qe(e=>({...e.plugins.reduce((n,a)=>(Ta(a,"index")&&(n[a.name]=Cb(e,lj(a.index,a.name))),n),{}),all:{get:async(n,{cache:a="cache-first"}={})=>{if(e.debug?.("learnCard.index.all.get"),a==="cache-only"&&!Fn(e,"cache"))throw new Error("Cannot read from cache. Cache Plane is not implemented!");if(Fn(e,"cache")&&a!=="skip-cache"){let c=await e.cache.getIndex("all",n??{});if(c)return a==="cache-first"&&Fn(e,"index")&&e.index.all.get(n,{cache:"skip-cache"}).then(d=>e.cache.setIndex("all",n??{},d)),c}let o=(await Promise.all(e.plugins.map(async c=>Ta(c,"index")?c.index.get(e,n):[]))).flat(),i=aj(o,"id");return i&&Fn(e,"cache")&&a!=="skip-cache"&&await e.cache.setIndex("all",n??{},i),i}},providers:kf(e.plugins,"index")}),"generateIndexPlane"),uj=Qe(e=>({getIndex:async(t,r)=>{e.debug?.("learnCard.cache.getIndex");try{return(await Promise.allSettled(e.plugins.map(async o=>{if(!Ta(o,"cache"))throw new Error("Plugin is not a Cache Plugin");return o.cache.getIndex(e,t,r)}))).find(zp)?.value}catch{return}},setIndex:async(t,r,n)=>(e.debug?.("learnCard.cache.setIndex"),(await Promise.allSettled(e.plugins.map(async o=>{if(!Ta(o,"cache"))throw new Error("Plugin is not a Cache Plugin");return o.cache.setIndex(e,t,r,n)}))).some(o=>o.status==="fulfilled")),getIndexPage:async(t,r,n)=>{e.debug?.("learnCard.cache.getIndex");try{return(await Promise.allSettled(e.plugins.map(async i=>{if(!Ta(i,"cache"))throw new Error("Plugin is not a Cache Plugin");return i.cache.getIndexPage(e,t,r,n)}))).find(zp)?.value}catch{return}},setIndexPage:async(t,r,n,a)=>(e.debug?.("learnCard.cache.setIndex"),(await Promise.allSettled(e.plugins.map(async i=>{if(!Ta(i,"cache"))throw new Error("Plugin is not a Cache Plugin");return i.cache.setIndexPage(e,t,r,n,a)}))).some(i=>i.status==="fulfilled")),getIndexCount:async(t,r)=>{e.debug?.("learnCard.cache.getIndex");try{return(await Promise.allSettled(e.plugins.map(async o=>{if(!Ta(o,"cache"))throw new Error("Plugin is not a Cache Plugin");return o.cache.getIndexCount?.(e,t,r)}))).find(zp)?.value}catch{return}},setIndexCount:async(t,r,n)=>(e.debug?.("learnCard.cache.setIndex"),(await Promise.allSettled(e.plugins.map(async o=>{if(!Ta(o,"cache"))throw new Error("Plugin is not a Cache Plugin");return o.cache.setIndexCount?.(e,t,r,n)}))).some(o=>o.status==="fulfilled")),flushIndex:async()=>(e.debug?.("learnCard.cache.flushIndex"),(await Promise.allSettled(e.plugins.map(async r=>{if(!Ta(r,"cache"))throw new Error("Plugin is not a Cache Plugin");return r.cache.flushIndex(e)}))).some(r=>r.status==="fulfilled")),getVc:async t=>{e.debug?.("learnCard.cache.getVc");try{return(await Promise.allSettled(e.plugins.map(async a=>{if(!Ta(a,"cache"))throw new Error("Plugin is not a Cache Plugin");return a.cache.getVc(e,t)}))).find(zp)?.value}catch{return}},setVc:async(t,r)=>(e.debug?.("learnCard.cache.setVc"),(await Promise.allSettled(e.plugins.map(async a=>{if(!Ta(a,"cache"))throw new Error("Plugin is not a Cache Plugin");return a.cache.setVc(e,t,r)}))).some(a=>a.status==="fulfilled")),flushVc:async()=>(e.debug?.("learnCard.cache.flushVc"),(await Promise.allSettled(e.plugins.map(async r=>{if(!Ta(r,"cache"))throw new Error("Plugin is not a Cache Plugin");return r.cache.flushVc(e)}))).some(r=>r.status==="fulfilled")),providers:kf(e.plugins,"cache")}),"generateCachePlane"),fj=Qe(e=>({did:t=>{e.debug?.("learnCard.id.did",t);let r=H9([...e.plugins].reverse(),n=>{try{return Ta(n,"id")?n.id.did(e,t):void 0}catch{return}});if(!r)throw new Error(`No plugin supports did method ${t}`);return r},keypair:t=>{e.debug?.("learnCard.id.keypair",t);let r=H9(e.plugins,n=>{try{return Ta(n,"id")?n.id.keypair(e,t):void 0}catch{return}});if(!r)throw new Error(`No plugin supports keypair type ${t}`);return r},providers:kf(e.plugins,"id")}),"generateIdPlane"),hj=Qe(e=>({resolveDocument:async(t,r=!1)=>{e.debug?.("learnCard.context.resolveDocument",t);let a=(await Promise.all(e.plugins.map(async i=>{if(!!Ta(i,"context"))return i.context.resolveStaticDocument(e,t)}))).find(Boolean);return a||!r?a:(await Promise.all(e.plugins.map(async i=>{if(!!Ta(i,"context"))return i.context.resolveRemoteDocument?.(e,t)}))).find(Boolean)},providers:kf(e.plugins,"context")}),"generateContextPlane"),pj=Qe((e,t)=>Cb(e,t),"bindMethods"),_i=Qe(async(e={})=>{let{plugins:t=[]}=e,r=t.reduce((a,o)=>({...a,...o.methods}),{}),n={read:{},store:{},index:{},cache:{},id:{},context:{},plugins:t,invoke:r,addPlugin:function(a){return ij(this,a)},debug:e.debug};return n.read=oj(n),n.store=cj(n),n.index=dj(n),n.cache=uj(n),n.id=fj(n),n.context=hj(n),r&&(n.invoke=pj(n,r)),n},"generateLearnCard");typeof window>"u"&&!globalThis.crypto&&(globalThis.crypto=Tx.default);var Eb=s(async({debug:e}={})=>_i({debug:e}),"customLearnCard");var Ic={name:"Dynamic Loader",displayName:"Dynamic Loader",description:"Resolve JSON-LD Contexts dynamically via fetch",context:{resolveStaticDocument:async()=>{},resolveRemoteDocument:async(e,t)=>{try{let r=await fetch(t);if(r.status!==200)throw new Error("Status Code not 200!");return await r.json()}catch(r){e.debug?.("Error fetching remote context!",r);return}}},methods:{}};var kb=cb(require("isomorphic-webcrypto"));typeof window>"u"&&!globalThis.crypto&&(globalThis.crypto=kb.default);var mj=kb.default,Lo={name:"Crypto",displayName:"Crypto Plugin",description:"Exposes a standardized, isomorphic Crypto object",methods:{crypto:()=>mj}};var Ej={};var gj=Object.defineProperty,sr=s((e,t)=>gj(e,"name",{value:t,configurable:!0}),"__name"),Ye,Px=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&Px.decode();var Yp=null;function yu(){return(Yp===null||Yp.byteLength===0)&&(Yp=new Uint8Array(Ye.memory.buffer)),Yp}s(yu,"getUint8ArrayMemory0");sr(yu,"getUint8ArrayMemory0");function fo(e,t){return e=e>>>0,Px.decode(yu().subarray(e,e+t))}s(fo,"getStringFromWasm0");sr(fo,"getStringFromWasm0");function gu(e){let t=Ye.__externref_table_alloc();return Ye.__wbindgen_export_2.set(t,e),t}s(gu,"addToExternrefTable0");sr(gu,"addToExternrefTable0");function Ya(e,t){try{return e.apply(this,t)}catch(r){let n=gu(r);Ye.__wbindgen_exn_store(n)}}s(Ya,"handleError");sr(Ya,"handleError");function Dx(e,t){return e=e>>>0,yu().subarray(e/1,e/1+t)}s(Dx,"getArrayU8FromWasm0");sr(Dx,"getArrayU8FromWasm0");function Tc(e){return e==null}s(Tc,"isLikeNone");sr(Tc,"isLikeNone");var Sr=0,$0=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},yj=typeof $0.encodeInto=="function"?function(e,t){return $0.encodeInto(e,t)}:function(e,t){let r=$0.encode(e);return t.set(r),{read:e.length,written:r.length}};function mn(e,t,r){if(r===void 0){let c=$0.encode(e),d=t(c.length,1)>>>0;return yu().subarray(d,d+c.length).set(c),Sr=c.length,d}let n=e.length,a=t(n,1)>>>0,o=yu(),i=0;for(;i<n;i++){let c=e.charCodeAt(i);if(c>127)break;o[a+i]=c}if(i!==n){i!==0&&(e=e.slice(i)),a=r(a,n,n=i+e.length*3,1)>>>0;let c=yu().subarray(a+i,a+n);i+=yj(e,c).written,a=r(a,n,i,1)>>>0}return Sr=i,a}s(mn,"passStringToWasm0");sr(mn,"passStringToWasm0");var mu=null;function Zo(){return(mu===null||mu.buffer.detached===!0||mu.buffer.detached===void 0&&mu.buffer!==Ye.memory.buffer)&&(mu=new DataView(Ye.memory.buffer)),mu}s(Zo,"getDataViewMemory0");sr(Zo,"getDataViewMemory0");var Sx=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>{Ye.__wbindgen_export_5.get(e.dtor)(e.a,e.b)});function Nx(e,t,r,n){let a={a:e,b:t,cnt:1,dtor:r},o=sr((...i)=>{a.cnt++;let c=a.a;a.a=0;try{return n(c,a.b,...i)}finally{--a.cnt===0?(Ye.__wbindgen_export_5.get(a.dtor)(c,a.b),Sx.unregister(a)):a.a=c}},"real");return o.original=a,Sx.register(o,a,a),o}s(Nx,"makeMutClosure");sr(Nx,"makeMutClosure");function K0(e){let t=typeof e;if(t=="number"||t=="boolean"||e==null)return`${e}`;if(t=="string")return`"${e}"`;if(t=="symbol"){let a=e.description;return a==null?"Symbol":`Symbol(${a})`}if(t=="function"){let a=e.name;return typeof a=="string"&&a.length>0?`Function(${a})`:"Function"}if(Array.isArray(e)){let a=e.length,o="[";a>0&&(o+=K0(e[0]));for(let i=1;i<a;i++)o+=", "+K0(e[i]);return o+="]",o}let r=/\[object ([^\]]+)\]/.exec(toString.call(e)),n;if(r&&r.length>1)n=r[1];else return toString.call(e);if(n=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
1
+ "use strict";var DB=Object.create;var qp=Object.defineProperty;var NB=Object.getOwnPropertyDescriptor;var BB=Object.getOwnPropertyNames;var OB=Object.getPrototypeOf,jB=Object.prototype.hasOwnProperty;var s=(e,t)=>qp(e,"name",{value:t,configurable:!0});var FB=(e,t)=>{for(var r in t)qp(e,r,{get:t[r],enumerable:!0})},G9=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of BB(t))!jB.call(e,a)&&a!==r&&qp(e,a,{get:()=>t[a],enumerable:!(n=NB(t,a))||n.enumerable});return e};var cb=(e,t,r)=>(r=e!=null?DB(OB(e)):{},G9(t||!e||!e.__esModule?qp(r,"default",{value:e,enumerable:!0}):r,e)),MB=e=>G9(qp({},"__esModule",{value:!0}),e);var bK={};FB(bK,{customLearnCard:()=>Eb,didWebLearnCardFromSeed:()=>J6,didWebNetworkLearnCardFromSeed:()=>Q6,emptyLearnCard:()=>r3,initLearnCard:()=>vK,learnCardFromApiUrl:()=>o5,learnCardFromSeed:()=>E6,networkLearnCardFromSeed:()=>K6});module.exports=MB(bK);var z0=cb(require("abort-controller/dist/abort-controller.js"),1),Tx=cb(require("isomorphic-webcrypto"),1);var VB=Object.create,lb=Object.defineProperty,UB=Object.getOwnPropertyDescriptor,$9=Object.getOwnPropertyNames,LB=Object.getPrototypeOf,ZB=Object.prototype.hasOwnProperty,Qe=s((e,t)=>lb(e,"name",{value:t,configurable:!0}),"__name"),Oe=s((e,t)=>s(function(){return t||(0,e[$9(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),qB=s((e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $9(t))!ZB.call(e,a)&&a!==r&&lb(e,a,{get:()=>t[a],enumerable:!(n=UB(t,a))||n.enumerable});return e},"__copyProps"),WB=s((e,t,r)=>(r=e!=null?VB(LB(e)):{},qB(t||!e||!e.__esModule?lb(r,"default",{value:e,enumerable:!0}):r,e)),"__toESM"),ia=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/global-this.js"(e,t){"use strict";var r=Qe(function(n){return n&&n.Math===Math&&n},"check");t.exports=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof global=="object"&&global)||r(typeof e=="object"&&e)||function(){return this}()||Function("return this")()}}),Ui=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/fails.js"(e,t){"use strict";t.exports=function(r){try{return!!r()}catch{return!0}}}}),Os=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/descriptors.js"(e,t){"use strict";var r=Ui();t.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}}),N0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/function-bind-native.js"(e,t){"use strict";var r=Ui();t.exports=!r(function(){var n=function(){}.bind();return typeof n!="function"||n.hasOwnProperty("prototype")})}}),Uo=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/function-call.js"(e,t){"use strict";var r=N0(),n=Function.prototype.call;t.exports=r?n.bind(n):function(){return n.apply(n,arguments)}}}),zB=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-property-is-enumerable.js"(e){"use strict";var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);e.f=n?Qe(s(function(o){var i=r(this,o);return!!i&&i.enumerable},"propertyIsEnumerable"),"propertyIsEnumerable"):t}}),Gp=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/create-property-descriptor.js"(e,t){"use strict";t.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}}}),vi=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/function-uncurry-this.js"(e,t){"use strict";var r=N0(),n=Function.prototype,a=n.call,o=r&&n.bind.bind(a,a);t.exports=r?o:function(i){return function(){return a.apply(i,arguments)}}}}),B0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/classof-raw.js"(e,t){"use strict";var r=vi(),n=r({}.toString),a=r("".slice);t.exports=function(o){return a(n(o),8,-1)}}}),GB=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/indexed-object.js"(e,t){"use strict";var r=vi(),n=Ui(),a=B0(),o=Object,i=r("".split);t.exports=n(function(){return!o("z").propertyIsEnumerable(0)})?function(c){return a(c)==="String"?i(c,""):o(c)}:o}}),O0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-null-or-undefined.js"(e,t){"use strict";t.exports=function(r){return r==null}}}),j0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/require-object-coercible.js"(e,t){"use strict";var r=O0(),n=TypeError;t.exports=function(a){if(r(a))throw new n("Can't call method on "+a);return a}}}),Hp=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-indexed-object.js"(e,t){"use strict";var r=GB(),n=j0();t.exports=function(a){return r(n(a))}}}),ha=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-callable.js"(e,t){"use strict";var r=typeof document=="object"&&document.all;t.exports=typeof r>"u"&&r!==void 0?function(n){return typeof n=="function"||n===r}:function(n){return typeof n=="function"}}}),js=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-object.js"(e,t){"use strict";var r=ha();t.exports=function(n){return typeof n=="object"?n!==null:r(n)}}}),xl=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/get-built-in.js"(e,t){"use strict";var r=ia(),n=ha(),a=Qe(function(o){return n(o)?o:void 0},"aFunction");t.exports=function(o,i){return arguments.length<2?a(r[o]):r[o]&&r[o][i]}}}),F0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-is-prototype-of.js"(e,t){"use strict";var r=vi();t.exports=r({}.isPrototypeOf)}}),$p=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/environment-user-agent.js"(e,t){"use strict";var r=ia(),n=r.navigator,a=n&&n.userAgent;t.exports=a?String(a):""}}),K9=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/environment-v8-version.js"(e,t){"use strict";var r=ia(),n=$p(),a=r.process,o=r.Deno,i=a&&a.versions||o&&o.version,c=i&&i.v8,d,p;c&&(d=c.split("."),p=d[0]>0&&d[0]<4?1:+(d[0]+d[1])),!p&&n&&(d=n.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=n.match(/Chrome\/(\d+)/),d&&(p=+d[1]))),t.exports=p}}),J9=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/symbol-constructor-detection.js"(e,t){"use strict";var r=K9(),n=Ui(),a=ia(),o=a.String;t.exports=!!Object.getOwnPropertySymbols&&!n(function(){var i=Symbol("symbol detection");return!o(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&r&&r<41})}}),Q9=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/use-symbol-as-uid.js"(e,t){"use strict";var r=J9();t.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}),Y9=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-symbol.js"(e,t){"use strict";var r=xl(),n=ha(),a=F0(),o=Q9(),i=Object;t.exports=o?function(c){return typeof c=="symbol"}:function(c){var d=r("Symbol");return n(d)&&a(d.prototype,i(c))}}}),M0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/try-to-string.js"(e,t){"use strict";var r=String;t.exports=function(n){try{return r(n)}catch{return"Object"}}}}),Fs=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/a-callable.js"(e,t){"use strict";var r=ha(),n=M0(),a=TypeError;t.exports=function(o){if(r(o))return o;throw new a(n(o)+" is not a function")}}}),db=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/get-method.js"(e,t){"use strict";var r=Fs(),n=O0();t.exports=function(a,o){var i=a[o];return n(i)?void 0:r(i)}}}),HB=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/ordinary-to-primitive.js"(e,t){"use strict";var r=Uo(),n=ha(),a=js(),o=TypeError;t.exports=function(i,c){var d,p;if(c==="string"&&n(d=i.toString)&&!a(p=r(d,i))||n(d=i.valueOf)&&!a(p=r(d,i))||c!=="string"&&n(d=i.toString)&&!a(p=r(d,i)))return p;throw new o("Can't convert object to primitive value")}}}),Al=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-pure.js"(e,t){"use strict";t.exports=!1}}),ub=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/define-global-property.js"(e,t){"use strict";var r=ia(),n=Object.defineProperty;t.exports=function(a,o){try{n(r,a,{value:o,configurable:!0,writable:!0})}catch{r[a]=o}return o}}}),fb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/shared-store.js"(e,t){"use strict";var r=Al(),n=ia(),a=ub(),o="__core-js_shared__",i=t.exports=n[o]||a(o,{});(i.versions||(i.versions=[])).push({version:"3.41.0",mode:r?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})}}),X9=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/shared.js"(e,t){"use strict";var r=fb();t.exports=function(n,a){return r[n]||(r[n]=a||{})}}}),ex=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-object.js"(e,t){"use strict";var r=j0(),n=Object;t.exports=function(a){return n(r(a))}}}),kc=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/has-own-property.js"(e,t){"use strict";var r=vi(),n=ex(),a=r({}.hasOwnProperty);t.exports=Object.hasOwn||Qe(s(function(i,c){return a(n(i),c)},"hasOwn"),"hasOwn")}}),tx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/uid.js"(e,t){"use strict";var r=vi(),n=0,a=Math.random(),o=r(1 .toString);t.exports=function(i){return"Symbol("+(i===void 0?"":i)+")_"+o(++n+a,36)}}}),bi=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/well-known-symbol.js"(e,t){"use strict";var r=ia(),n=X9(),a=kc(),o=tx(),i=J9(),c=Q9(),d=r.Symbol,p=n("wks"),_=c?d.for||d:d&&d.withoutSetter||o;t.exports=function(b){return a(p,b)||(p[b]=i&&a(d,b)?d[b]:_("Symbol."+b)),p[b]}}}),$B=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-primitive.js"(e,t){"use strict";var r=Uo(),n=js(),a=Y9(),o=db(),i=HB(),c=bi(),d=TypeError,p=c("toPrimitive");t.exports=function(_,b){if(!n(_)||a(_))return _;var w=o(_,p),j;if(w){if(b===void 0&&(b="default"),j=r(w,_,b),!n(j)||a(j))return j;throw new d("Can't convert object to primitive value")}return b===void 0&&(b="number"),i(_,b)}}}),rx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-property-key.js"(e,t){"use strict";var r=$B(),n=Y9();t.exports=function(a){var o=r(a,"string");return n(o)?o:o+""}}}),V0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/document-create-element.js"(e,t){"use strict";var r=ia(),n=js(),a=r.document,o=n(a)&&n(a.createElement);t.exports=function(i){return o?a.createElement(i):{}}}}),nx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/ie8-dom-define.js"(e,t){"use strict";var r=Os(),n=Ui(),a=V0();t.exports=!r&&!n(function(){return Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a!==7})}}),ax=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-get-own-property-descriptor.js"(e){"use strict";var t=Os(),r=Uo(),n=zB(),a=Gp(),o=Hp(),i=rx(),c=kc(),d=nx(),p=Object.getOwnPropertyDescriptor;e.f=t?p:Qe(s(function(b,w){if(b=o(b),w=i(w),d)try{return p(b,w)}catch{}if(c(b,w))return a(!r(n.f,b,w),b[w])},"getOwnPropertyDescriptor"),"getOwnPropertyDescriptor")}}),ix=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/v8-prototype-define-bug.js"(e,t){"use strict";var r=Os(),n=Ui();t.exports=r&&n(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})}}),Cl=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/an-object.js"(e,t){"use strict";var r=js(),n=String,a=TypeError;t.exports=function(o){if(r(o))return o;throw new a(n(o)+" is not an object")}}}),od=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-define-property.js"(e){"use strict";var t=Os(),r=nx(),n=ix(),a=Cl(),o=rx(),i=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,p="enumerable",_="configurable",b="writable";e.f=t?n?Qe(s(function(j,R,G){if(a(j),R=o(R),a(G),typeof j=="function"&&R==="prototype"&&"value"in G&&b in G&&!G[b]){var F=d(j,R);F&&F[b]&&(j[R]=G.value,G={configurable:_ in G?G[_]:F[_],enumerable:p in G?G[p]:F[p],writable:!1})}return c(j,R,G)},"defineProperty"),"defineProperty"):c:Qe(s(function(j,R,G){if(a(j),R=o(R),a(G),r)try{return c(j,R,G)}catch{}if("get"in G||"set"in G)throw new i("Accessors not supported");return"value"in G&&(j[R]=G.value),j},"defineProperty"),"defineProperty")}}),hu=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/create-non-enumerable-property.js"(e,t){"use strict";var r=Os(),n=od(),a=Gp();t.exports=r?function(o,i,c){return n.f(o,i,a(1,c))}:function(o,i,c){return o[i]=c,o}}}),ox=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/function-name.js"(e,t){"use strict";var r=Os(),n=kc(),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,i=n(a,"name"),c=i&&Qe(s(function(){},"something"),"something").name==="something",d=i&&(!r||r&&o(a,"name").configurable);t.exports={EXISTS:i,PROPER:c,CONFIGURABLE:d}}}),hb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/inspect-source.js"(e,t){"use strict";var r=vi(),n=ha(),a=fb(),o=r(Function.toString);n(a.inspectSource)||(a.inspectSource=function(i){return o(i)}),t.exports=a.inspectSource}}),KB=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/weak-map-basic-detection.js"(e,t){"use strict";var r=ia(),n=ha(),a=r.WeakMap;t.exports=n(a)&&/native code/.test(String(a))}}),pb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/shared-key.js"(e,t){"use strict";var r=X9(),n=tx(),a=r("keys");t.exports=function(o){return a[o]||(a[o]=n(o))}}}),mb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/hidden-keys.js"(e,t){"use strict";t.exports={}}}),U0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/internal-state.js"(e,t){"use strict";var r=KB(),n=ia(),a=js(),o=hu(),i=kc(),c=fb(),d=pb(),p=mb(),_="Object already initialized",b=n.TypeError,w=n.WeakMap,j,R,G,F=Qe(function(oe){return G(oe)?R(oe):j(oe,{})},"enforce"),$=Qe(function(oe){return function(ie){var fe;if(!a(ie)||(fe=R(ie)).type!==oe)throw new b("Incompatible receiver, "+oe+" required");return fe}},"getterFor");r||c.state?(te=c.state||(c.state=new w),te.get=te.get,te.has=te.has,te.set=te.set,j=Qe(function(oe,ie){if(te.has(oe))throw new b(_);return ie.facade=oe,te.set(oe,ie),ie},"set"),R=Qe(function(oe){return te.get(oe)||{}},"get"),G=Qe(function(oe){return te.has(oe)},"has")):(ue=d("state"),p[ue]=!0,j=Qe(function(oe,ie){if(i(oe,ue))throw new b(_);return ie.facade=oe,o(oe,ue,ie),ie},"set"),R=Qe(function(oe){return i(oe,ue)?oe[ue]:{}},"get"),G=Qe(function(oe){return i(oe,ue)},"has"));var te,ue;t.exports={set:j,get:R,has:G,enforce:F,getterFor:$}}}),sx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/make-built-in.js"(e,t){"use strict";var r=vi(),n=Ui(),a=ha(),o=kc(),i=Os(),c=ox().CONFIGURABLE,d=hb(),p=U0(),_=p.enforce,b=p.get,w=String,j=Object.defineProperty,R=r("".slice),G=r("".replace),F=r([].join),$=i&&!n(function(){return j(function(){},"length",{value:8}).length!==8}),te=String(String).split("String"),ue=t.exports=function(oe,ie,fe){R(w(ie),0,7)==="Symbol("&&(ie="["+G(w(ie),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),fe&&fe.getter&&(ie="get "+ie),fe&&fe.setter&&(ie="set "+ie),(!o(oe,"name")||c&&oe.name!==ie)&&(i?j(oe,"name",{value:ie,configurable:!0}):oe.name=ie),$&&fe&&o(fe,"arity")&&oe.length!==fe.arity&&j(oe,"length",{value:fe.arity});try{fe&&o(fe,"constructor")&&fe.constructor?i&&j(oe,"prototype",{writable:!1}):oe.prototype&&(oe.prototype=void 0)}catch{}var ae=_(oe);return o(ae,"source")||(ae.source=F(te,typeof ie=="string"?ie:"")),oe};Function.prototype.toString=ue(Qe(s(function(){return a(this)&&b(this).source||d(this)},"toString"),"toString"),"toString")}}),pu=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/define-built-in.js"(e,t){"use strict";var r=ha(),n=od(),a=sx(),o=ub();t.exports=function(i,c,d,p){p||(p={});var _=p.enumerable,b=p.name!==void 0?p.name:c;if(r(d)&&a(d,b,p),p.global)_?i[c]=d:o(c,d);else{try{p.unsafe?i[c]&&(_=!0):delete i[c]}catch{}_?i[c]=d:n.f(i,c,{value:d,enumerable:!1,configurable:!p.nonConfigurable,writable:!p.nonWritable})}return i}}}),JB=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/math-trunc.js"(e,t){"use strict";var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||Qe(s(function(o){var i=+o;return(i>0?n:r)(i)},"trunc"),"trunc")}}),gb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-integer-or-infinity.js"(e,t){"use strict";var r=JB();t.exports=function(n){var a=+n;return a!==a||a===0?0:r(a)}}}),QB=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-absolute-index.js"(e,t){"use strict";var r=gb(),n=Math.max,a=Math.min;t.exports=function(o,i){var c=r(o);return c<0?n(c+i,0):a(c,i)}}}),YB=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-length.js"(e,t){"use strict";var r=gb(),n=Math.min;t.exports=function(a){var o=r(a);return o>0?n(o,9007199254740991):0}}}),cx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/length-of-array-like.js"(e,t){"use strict";var r=YB();t.exports=function(n){return r(n.length)}}}),XB=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/array-includes.js"(e,t){"use strict";var r=Hp(),n=QB(),a=cx(),o=Qe(function(i){return function(c,d,p){var _=r(c),b=a(_);if(b===0)return!i&&-1;var w=n(p,b),j;if(i&&d!==d){for(;b>w;)if(j=_[w++],j!==j)return!0}else for(;b>w;w++)if((i||w in _)&&_[w]===d)return i||w||0;return!i&&-1}},"createMethod");t.exports={includes:o(!0),indexOf:o(!1)}}}),lx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-keys-internal.js"(e,t){"use strict";var r=vi(),n=kc(),a=Hp(),o=XB().indexOf,i=mb(),c=r([].push);t.exports=function(d,p){var _=a(d),b=0,w=[],j;for(j in _)!n(i,j)&&n(_,j)&&c(w,j);for(;p.length>b;)n(_,j=p[b++])&&(~o(w,j)||c(w,j));return w}}}),yb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/enum-bug-keys.js"(e,t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}}),eO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-get-own-property-names.js"(e){"use strict";var t=lx(),r=yb(),n=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||Qe(s(function(o){return t(o,n)},"getOwnPropertyNames"),"getOwnPropertyNames")}}),tO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-get-own-property-symbols.js"(e){"use strict";e.f=Object.getOwnPropertySymbols}}),rO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/own-keys.js"(e,t){"use strict";var r=xl(),n=vi(),a=eO(),o=tO(),i=Cl(),c=n([].concat);t.exports=r("Reflect","ownKeys")||Qe(s(function(p){var _=a.f(i(p)),b=o.f;return b?c(_,b(p)):_},"ownKeys"),"ownKeys")}}),dx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/copy-constructor-properties.js"(e,t){"use strict";var r=kc(),n=rO(),a=ax(),o=od();t.exports=function(i,c,d){for(var p=n(c),_=o.f,b=a.f,w=0;w<p.length;w++){var j=p[w];!r(i,j)&&!(d&&r(d,j))&&_(i,j,b(c,j))}}}}),ux=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-forced.js"(e,t){"use strict";var r=Ui(),n=ha(),a=/#|\.prototype\./,o=Qe(function(_,b){var w=c[i(_)];return w===p?!0:w===d?!1:n(b)?r(b):!!b},"isForced"),i=o.normalize=function(_){return String(_).replace(a,".").toLowerCase()},c=o.data={},d=o.NATIVE="N",p=o.POLYFILL="P";t.exports=o}}),uo=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/export.js"(e,t){"use strict";var r=ia(),n=ax().f,a=hu(),o=pu(),i=ub(),c=dx(),d=ux();t.exports=function(p,_){var b=p.target,w=p.global,j=p.stat,R,G,F,$,te,ue;if(w?G=r:j?G=r[b]||i(b,{}):G=r[b]&&r[b].prototype,G)for(F in _){if(te=_[F],p.dontCallGetSet?(ue=n(G,F),$=ue&&ue.value):$=G[F],R=d(w?F:b+(j?".":"#")+F,p.forced),!R&&$!==void 0){if(typeof te==typeof $)continue;c(te,$)}(p.sham||$&&$.sham)&&a(te,"sham",!0),o(G,F,te,p)}}}}),nO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/correct-prototype-getter.js"(e,t){"use strict";var r=Ui();t.exports=!r(function(){function n(){}return s(n,"F"),Qe(n,"F"),n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype})}}),vb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-get-prototype-of.js"(e,t){"use strict";var r=kc(),n=ha(),a=ex(),o=pb(),i=nO(),c=o("IE_PROTO"),d=Object,p=d.prototype;t.exports=i?d.getPrototypeOf:function(_){var b=a(_);if(r(b,c))return b[c];var w=b.constructor;return n(w)&&b instanceof w?w.prototype:b instanceof d?p:null}}}),aO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/function-uncurry-this-accessor.js"(e,t){"use strict";var r=vi(),n=Fs();t.exports=function(a,o,i){try{return r(n(Object.getOwnPropertyDescriptor(a,o)[i]))}catch{}}}}),iO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-possible-prototype.js"(e,t){"use strict";var r=js();t.exports=function(n){return r(n)||n===null}}}),oO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/a-possible-prototype.js"(e,t){"use strict";var r=iO(),n=String,a=TypeError;t.exports=function(o){if(r(o))return o;throw new a("Can't set "+n(o)+" as a prototype")}}}),bb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-set-prototype-of.js"(e,t){"use strict";var r=aO(),n=js(),a=j0(),o=oO();t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var i=!1,c={},d;try{d=r(Object.prototype,"__proto__","set"),d(c,[]),i=c instanceof Array}catch{}return Qe(s(function(_,b){return a(_),o(b),n(_)&&(i?d(_,b):_.__proto__=b),_},"setPrototypeOf"),"setPrototypeOf")}():void 0)}}),sO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-keys.js"(e,t){"use strict";var r=lx(),n=yb();t.exports=Object.keys||Qe(s(function(o){return r(o,n)},"keys"),"keys")}}),cO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-define-properties.js"(e){"use strict";var t=Os(),r=ix(),n=od(),a=Cl(),o=Hp(),i=sO();e.f=t&&!r?Object.defineProperties:Qe(s(function(d,p){a(d);for(var _=o(p),b=i(p),w=b.length,j=0,R;w>j;)n.f(d,R=b[j++],_[R]);return d},"defineProperties"),"defineProperties")}}),fx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/html.js"(e,t){"use strict";var r=xl();t.exports=r("document","documentElement")}}),L0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-create.js"(e,t){"use strict";var r=Cl(),n=cO(),a=yb(),o=mb(),i=fx(),c=V0(),d=pb(),p=">",_="<",b="prototype",w="script",j=d("IE_PROTO"),R=Qe(function(){},"EmptyConstructor"),G=Qe(function(oe){return _+w+p+oe+_+"/"+w+p},"scriptTag"),F=Qe(function(oe){oe.write(G("")),oe.close();var ie=oe.parentWindow.Object;return oe=null,ie},"NullProtoObjectViaActiveX"),$=Qe(function(){var oe=c("iframe"),ie="java"+w+":",fe;return oe.style.display="none",i.appendChild(oe),oe.src=String(ie),fe=oe.contentWindow.document,fe.open(),fe.write(G("document.F=Object")),fe.close(),fe.F},"NullProtoObjectViaIFrame"),te,ue=Qe(function(){try{te=new ActiveXObject("htmlfile")}catch{}ue=typeof document<"u"?document.domain&&te?F(te):$():F(te);for(var oe=a.length;oe--;)delete ue[b][a[oe]];return ue()},"NullProtoObject");o[j]=!0,t.exports=Object.create||Qe(s(function(ie,fe){var ae;return ie!==null?(R[b]=r(ie),ae=new R,R[b]=null,ae[j]=ie):ae=ue(),fe===void 0?ae:n.f(ae,fe)},"create"),"create")}}),lO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/install-error-cause.js"(e,t){"use strict";var r=js(),n=hu();t.exports=function(a,o){r(o)&&"cause"in o&&n(a,"cause",o.cause)}}}),dO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/error-stack-clear.js"(e,t){"use strict";var r=vi(),n=Error,a=r("".replace),o=function(d){return String(new n(d).stack)}("zxcasd"),i=/\n\s*at [^:]*:[^\n]*/,c=i.test(o);t.exports=function(d,p){if(c&&typeof d=="string"&&!n.prepareStackTrace)for(;p--;)d=a(d,i,"");return d}}}),uO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/error-stack-installable.js"(e,t){"use strict";var r=Ui(),n=Gp();t.exports=!r(function(){var a=new Error("a");return"stack"in a?(Object.defineProperty(a,"stack",n(1,7)),a.stack!==7):!0})}}),fO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/error-stack-install.js"(e,t){"use strict";var r=hu(),n=dO(),a=uO(),o=Error.captureStackTrace;t.exports=function(i,c,d,p){a&&(o?o(i,c):r(i,"stack",n(d,p)))}}}),hO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/function-uncurry-this-clause.js"(e,t){"use strict";var r=B0(),n=vi();t.exports=function(a){if(r(a)==="Function")return n(a)}}}),_b=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/function-bind-context.js"(e,t){"use strict";var r=hO(),n=Fs(),a=N0(),o=r(r.bind);t.exports=function(i,c){return n(i),c===void 0?i:a?o(i,c):function(){return i.apply(c,arguments)}}}}),Kp=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/iterators.js"(e,t){"use strict";t.exports={}}}),pO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-array-iterator-method.js"(e,t){"use strict";var r=bi(),n=Kp(),a=r("iterator"),o=Array.prototype;t.exports=function(i){return i!==void 0&&(n.Array===i||o[a]===i)}}}),wb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-string-tag-support.js"(e,t){"use strict";var r=bi(),n=r("toStringTag"),a={};a[n]="z",t.exports=String(a)==="[object z]"}}),Z0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/classof.js"(e,t){"use strict";var r=wb(),n=ha(),a=B0(),o=bi(),i=o("toStringTag"),c=Object,d=a(function(){return arguments}())==="Arguments",p=Qe(function(_,b){try{return _[b]}catch{}},"tryGet");t.exports=r?a:function(_){var b,w,j;return _===void 0?"Undefined":_===null?"Null":typeof(w=p(b=c(_),i))=="string"?w:d?a(b):(j=a(b))==="Object"&&n(b.callee)?"Arguments":j}}}),hx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/get-iterator-method.js"(e,t){"use strict";var r=Z0(),n=db(),a=O0(),o=Kp(),i=bi(),c=i("iterator");t.exports=function(d){if(!a(d))return n(d,c)||n(d,"@@iterator")||o[r(d)]}}}),mO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/get-iterator.js"(e,t){"use strict";var r=Uo(),n=Fs(),a=Cl(),o=M0(),i=hx(),c=TypeError;t.exports=function(d,p){var _=arguments.length<2?i(d):p;if(n(_))return a(r(_,d));throw new c(o(d)+" is not iterable")}}}),gO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/iterator-close.js"(e,t){"use strict";var r=Uo(),n=Cl(),a=db();t.exports=function(o,i,c){var d,p;n(o);try{if(d=a(o,"return"),!d){if(i==="throw")throw c;return c}d=r(d,o)}catch(_){p=!0,d=_}if(i==="throw")throw c;if(p)throw d;return n(d),c}}}),Jp=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/iterate.js"(e,t){"use strict";var r=_b(),n=Uo(),a=Cl(),o=M0(),i=pO(),c=cx(),d=F0(),p=mO(),_=hx(),b=gO(),w=TypeError,j=Qe(function(G,F){this.stopped=G,this.result=F},"Result"),R=j.prototype;t.exports=function(G,F,$){var te=$&&$.that,ue=!!($&&$.AS_ENTRIES),oe=!!($&&$.IS_RECORD),ie=!!($&&$.IS_ITERATOR),fe=!!($&&$.INTERRUPTED),ae=r(F,te),Ie,_e,rt,Ce,ct,ve,Fe,J=Qe(function(k){return Ie&&b(Ie,"normal",k),new j(!0,k)},"stop"),g=Qe(function(k){return ue?(a(k),fe?ae(k[0],k[1],J):ae(k[0],k[1])):fe?ae(k,J):ae(k)},"callFn");if(oe)Ie=G.iterator;else if(ie)Ie=G;else{if(_e=_(G),!_e)throw new w(o(G)+" is not iterable");if(i(_e)){for(rt=0,Ce=c(G);Ce>rt;rt++)if(ct=g(G[rt]),ct&&d(R,ct))return ct;return new j(!1)}Ie=p(G,_e)}for(ve=oe?G.next:Ie.next;!(Fe=n(ve,Ie)).done;){try{ct=g(Fe.value)}catch(k){b(Ie,"throw",k)}if(typeof ct=="object"&&ct&&d(R,ct))return ct}return new j(!1)}}}),xb=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/to-string.js"(e,t){"use strict";var r=Z0(),n=String;t.exports=function(a){if(r(a)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return n(a)}}}),yO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/normalize-string-argument.js"(e,t){"use strict";var r=xb();t.exports=function(n,a){return n===void 0?arguments.length<2?"":a:r(n)}}}),vO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.aggregate-error.constructor.js"(){"use strict";var e=uo(),t=F0(),r=vb(),n=bb(),a=dx(),o=L0(),i=hu(),c=Gp(),d=lO(),p=fO(),_=Jp(),b=yO(),w=bi(),j=w("toStringTag"),R=Error,G=[].push,F=Qe(s(function(ue,oe){var ie=t($,this),fe;n?fe=n(new R,ie?r(this):$):(fe=ie?this:o($),i(fe,j,"Error")),oe!==void 0&&i(fe,"message",b(oe)),p(fe,F,fe.stack,1),arguments.length>2&&d(fe,arguments[2]);var ae=[];return _(ue,G,{that:ae}),i(fe,"errors",ae),fe},"AggregateError"),"AggregateError");n?n(F,R):a(F,R,{name:!0});var $=F.prototype=o(R.prototype,{constructor:c(1,F),message:c(1,""),name:c(1,"AggregateError")});e({global:!0,constructor:!0,arity:2},{AggregateError:F})}}),bO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.aggregate-error.js"(){"use strict";vO()}}),_O=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/add-to-unscopables.js"(e,t){"use strict";var r=bi(),n=L0(),a=od().f,o=r("unscopables"),i=Array.prototype;i[o]===void 0&&a(i,o,{configurable:!0,value:n(null)}),t.exports=function(c){i[o][c]=!0}}}),px=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/iterators-core.js"(e,t){"use strict";var r=Ui(),n=ha(),a=js(),o=L0(),i=vb(),c=pu(),d=bi(),p=Al(),_=d("iterator"),b=!1,w,j,R;[].keys&&(R=[].keys(),"next"in R?(j=i(i(R)),j!==Object.prototype&&(w=j)):b=!0);var G=!a(w)||r(function(){var F={};return w[_].call(F)!==F});G?w={}:p&&(w=o(w)),n(w[_])||c(w,_,function(){return this}),t.exports={IteratorPrototype:w,BUGGY_SAFARI_ITERATORS:b}}}),q0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/set-to-string-tag.js"(e,t){"use strict";var r=od().f,n=kc(),a=bi(),o=a("toStringTag");t.exports=function(i,c,d){i&&!d&&(i=i.prototype),i&&!n(i,o)&&r(i,o,{configurable:!0,value:c})}}}),wO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/iterator-create-constructor.js"(e,t){"use strict";var r=px().IteratorPrototype,n=L0(),a=Gp(),o=q0(),i=Kp(),c=Qe(function(){return this},"returnThis");t.exports=function(d,p,_,b){var w=p+" Iterator";return d.prototype=n(r,{next:a(+!b,_)}),o(d,w,!1,!0),i[w]=c,d}}}),mx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/iterator-define.js"(e,t){"use strict";var r=uo(),n=Uo(),a=Al(),o=ox(),i=ha(),c=wO(),d=vb(),p=bb(),_=q0(),b=hu(),w=pu(),j=bi(),R=Kp(),G=px(),F=o.PROPER,$=o.CONFIGURABLE,te=G.IteratorPrototype,ue=G.BUGGY_SAFARI_ITERATORS,oe=j("iterator"),ie="keys",fe="values",ae="entries",Ie=Qe(function(){return this},"returnThis");t.exports=function(_e,rt,Ce,ct,ve,Fe,J){c(Ce,rt,ct);var g=Qe(function(De){if(De===ve&&q)return q;if(!ue&&De&&De in P)return P[De];switch(De){case ie:return Qe(s(function(){return new Ce(this,De)},"keys"),"keys");case fe:return Qe(s(function(){return new Ce(this,De)},"values"),"values");case ae:return Qe(s(function(){return new Ce(this,De)},"entries"),"entries")}return function(){return new Ce(this)}},"getIterationMethod"),k=rt+" Iterator",V=!1,P=_e.prototype,L=P[oe]||P["@@iterator"]||ve&&P[ve],q=!ue&&L||g(ve),ee=rt==="Array"&&P.entries||L,Q,C,H;if(ee&&(Q=d(ee.call(new _e)),Q!==Object.prototype&&Q.next&&(!a&&d(Q)!==te&&(p?p(Q,te):i(Q[oe])||w(Q,oe,Ie)),_(Q,k,!0,!0),a&&(R[k]=Ie))),F&&ve===fe&&L&&L.name!==fe&&(!a&&$?b(P,"name",fe):(V=!0,q=Qe(s(function(){return n(L,this)},"values"),"values"))),ve)if(C={values:g(fe),keys:Fe?q:g(ie),entries:g(ae)},J)for(H in C)(ue||V||!(H in P))&&w(P,H,C[H]);else r({target:rt,proto:!0,forced:ue||V},C);return(!a||J)&&P[oe]!==q&&w(P,oe,q,{name:ve}),R[rt]=q,C}}}),gx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/create-iter-result-object.js"(e,t){"use strict";t.exports=function(r,n){return{value:r,done:n}}}}),yx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.array.iterator.js"(e,t){"use strict";var r=Hp(),n=_O(),a=Kp(),o=U0(),i=od().f,c=mx(),d=gx(),p=Al(),_=Os(),b="Array Iterator",w=o.set,j=o.getterFor(b);t.exports=c(Array,"Array",function(G,F){w(this,{type:b,target:r(G),index:0,kind:F})},function(){var G=j(this),F=G.target,$=G.index++;if(!F||$>=F.length)return G.target=null,d(void 0,!0);switch(G.kind){case"keys":return d($,!1);case"values":return d(F[$],!1)}return d([$,F[$]],!1)},"values");var R=a.Arguments=a.Array;if(n("keys"),n("values"),n("entries"),!p&&_&&R.name!=="values")try{i(R,"name",{value:"values"})}catch{}}}),xO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/object-to-string.js"(e,t){"use strict";var r=wb(),n=Z0();t.exports=r?{}.toString:Qe(s(function(){return"[object "+n(this)+"]"},"toString"),"toString")}}),AO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.object.to-string.js"(){"use strict";var e=wb(),t=pu(),r=xO();e||t(Object.prototype,"toString",r,{unsafe:!0})}}),vx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/environment.js"(e,t){"use strict";var r=ia(),n=$p(),a=B0(),o=Qe(function(i){return n.slice(0,i.length)===i},"userAgentStartsWith");t.exports=function(){return o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":r.Bun&&typeof Bun.version=="string"?"BUN":r.Deno&&typeof Deno.version=="object"?"DENO":a(r.process)==="process"?"NODE":r.window&&r.document?"BROWSER":"REST"}()}}),Ab=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/environment-is-node.js"(e,t){"use strict";var r=vx();t.exports=r==="NODE"}}),CO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/define-built-in-accessor.js"(e,t){"use strict";var r=sx(),n=od();t.exports=function(a,o,i){return i.get&&r(i.get,o,{getter:!0}),i.set&&r(i.set,o,{setter:!0}),n.f(a,o,i)}}}),EO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/set-species.js"(e,t){"use strict";var r=xl(),n=CO(),a=bi(),o=Os(),i=a("species");t.exports=function(c){var d=r(c);o&&d&&!d[i]&&n(d,i,{configurable:!0,get:function(){return this}})}}}),kO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/an-instance.js"(e,t){"use strict";var r=F0(),n=TypeError;t.exports=function(a,o){if(r(o,a))return a;throw new n("Incorrect invocation")}}}),IO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/is-constructor.js"(e,t){"use strict";var r=vi(),n=Ui(),a=ha(),o=Z0(),i=xl(),c=hb(),d=Qe(function(){},"noop"),p=i("Reflect","construct"),_=/^\s*(?:class|function)\b/,b=r(_.exec),w=!_.test(d),j=Qe(s(function(F){if(!a(F))return!1;try{return p(d,[],F),!0}catch{return!1}},"isConstructor"),"isConstructor"),R=Qe(s(function(F){if(!a(F))return!1;switch(o(F)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return w||!!b(_,c(F))}catch{return!0}},"isConstructor"),"isConstructor");R.sham=!0,t.exports=!p||n(function(){var G;return j(j.call)||!j(Object)||!j(function(){G=!0})||G})?R:j}}),TO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/a-constructor.js"(e,t){"use strict";var r=IO(),n=M0(),a=TypeError;t.exports=function(o){if(r(o))return o;throw new a(n(o)+" is not a constructor")}}}),bx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/species-constructor.js"(e,t){"use strict";var r=Cl(),n=TO(),a=O0(),o=bi(),i=o("species");t.exports=function(c,d){var p=r(c).constructor,_;return p===void 0||a(_=r(p)[i])?d:n(_)}}}),_x=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/function-apply.js"(e,t){"use strict";var r=N0(),n=Function.prototype,a=n.apply,o=n.call;t.exports=typeof Reflect=="object"&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})}}),wx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/array-slice.js"(e,t){"use strict";var r=vi();t.exports=r([].slice)}}),SO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/validate-arguments-length.js"(e,t){"use strict";var r=TypeError;t.exports=function(n,a){if(n<a)throw new r("Not enough arguments");return n}}}),xx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/environment-is-ios.js"(e,t){"use strict";var r=$p();t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)}}),Ax=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/task.js"(e,t){"use strict";var r=ia(),n=_x(),a=_b(),o=ha(),i=kc(),c=Ui(),d=fx(),p=wx(),_=V0(),b=SO(),w=xx(),j=Ab(),R=r.setImmediate,G=r.clearImmediate,F=r.process,$=r.Dispatch,te=r.Function,ue=r.MessageChannel,oe=r.String,ie=0,fe={},ae="onreadystatechange",Ie,_e,rt,Ce;c(function(){Ie=r.location});var ct=Qe(function(g){if(i(fe,g)){var k=fe[g];delete fe[g],k()}},"run"),ve=Qe(function(g){return function(){ct(g)}},"runner"),Fe=Qe(function(g){ct(g.data)},"eventListener"),J=Qe(function(g){r.postMessage(oe(g),Ie.protocol+"//"+Ie.host)},"globalPostMessageDefer");(!R||!G)&&(R=Qe(s(function(k){b(arguments.length,1);var V=o(k)?k:te(k),P=p(arguments,1);return fe[++ie]=function(){n(V,void 0,P)},_e(ie),ie},"setImmediate"),"setImmediate"),G=Qe(s(function(k){delete fe[k]},"clearImmediate"),"clearImmediate"),j?_e=Qe(function(g){F.nextTick(ve(g))},"defer"):$&&$.now?_e=Qe(function(g){$.now(ve(g))},"defer"):ue&&!w?(rt=new ue,Ce=rt.port2,rt.port1.onmessage=Fe,_e=a(Ce.postMessage,Ce)):r.addEventListener&&o(r.postMessage)&&!r.importScripts&&Ie&&Ie.protocol!=="file:"&&!c(J)?(_e=J,r.addEventListener("message",Fe,!1)):ae in _("script")?_e=Qe(function(g){d.appendChild(_("script"))[ae]=function(){d.removeChild(this),ct(g)}},"defer"):_e=Qe(function(g){setTimeout(ve(g),0)},"defer")),t.exports={set:R,clear:G}}}),RO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/safe-get-built-in.js"(e,t){"use strict";var r=ia(),n=Os(),a=Object.getOwnPropertyDescriptor;t.exports=function(o){if(!n)return r[o];var i=a(r,o);return i&&i.value}}}),Cx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/queue.js"(e,t){"use strict";var r=Qe(function(){this.head=null,this.tail=null},"Queue");r.prototype={add:function(n){var a={item:n,next:null},o=this.tail;o?o.next=a:this.head=a,this.tail=a},get:function(){var n=this.head;if(n){var a=this.head=n.next;return a===null&&(this.tail=null),n.item}}},t.exports=r}}),PO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/environment-is-ios-pebble.js"(e,t){"use strict";var r=$p();t.exports=/ipad|iphone|ipod/i.test(r)&&typeof Pebble<"u"}}),DO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/environment-is-webos-webkit.js"(e,t){"use strict";var r=$p();t.exports=/web0s(?!.*chrome)/i.test(r)}}),NO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/microtask.js"(e,t){"use strict";var r=ia(),n=RO(),a=_b(),o=Ax().set,i=Cx(),c=xx(),d=PO(),p=DO(),_=Ab(),b=r.MutationObserver||r.WebKitMutationObserver,w=r.document,j=r.process,R=r.Promise,G=n("queueMicrotask"),F,$,te,ue,oe;G||(ie=new i,fe=Qe(function(){var ae,Ie;for(_&&(ae=j.domain)&&ae.exit();Ie=ie.get();)try{Ie()}catch(_e){throw ie.head&&F(),_e}ae&&ae.enter()},"flush"),!c&&!_&&!p&&b&&w?($=!0,te=w.createTextNode(""),new b(fe).observe(te,{characterData:!0}),F=Qe(function(){te.data=$=!$},"notify")):!d&&R&&R.resolve?(ue=R.resolve(void 0),ue.constructor=R,oe=a(ue.then,ue),F=Qe(function(){oe(fe)},"notify")):_?F=Qe(function(){j.nextTick(fe)},"notify"):(o=a(o,r),F=Qe(function(){o(fe)},"notify")),G=Qe(function(ae){ie.head||F(),ie.add(ae)},"microtask"));var ie,fe;t.exports=G}}),BO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/host-report-errors.js"(e,t){"use strict";t.exports=function(r,n){try{arguments.length===1?console.error(r):console.error(r,n)}catch{}}}}),Cf=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/perform.js"(e,t){"use strict";t.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}}}),Ef=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/promise-native-constructor.js"(e,t){"use strict";var r=ia();t.exports=r.Promise}}),Qp=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/promise-constructor-detection.js"(e,t){"use strict";var r=ia(),n=Ef(),a=ha(),o=ux(),i=hb(),c=bi(),d=vx(),p=Al(),_=K9(),b=n&&n.prototype,w=c("species"),j=!1,R=a(r.PromiseRejectionEvent),G=o("Promise",function(){var F=i(n),$=F!==String(n);if(!$&&_===66||p&&!(b.catch&&b.finally))return!0;if(!_||_<51||!/native code/.test(F)){var te=new n(function(ie){ie(1)}),ue=Qe(function(ie){ie(function(){},function(){})},"FakePromise"),oe=te.constructor={};if(oe[w]=ue,j=te.then(function(){})instanceof ue,!j)return!0}return!$&&(d==="BROWSER"||d==="DENO")&&!R});t.exports={CONSTRUCTOR:G,REJECTION_EVENT:R,SUBCLASSING:j}}}),El=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/new-promise-capability.js"(e,t){"use strict";var r=Fs(),n=TypeError,a=Qe(function(o){var i,c;this.promise=new o(function(d,p){if(i!==void 0||c!==void 0)throw new n("Bad Promise constructor");i=d,c=p}),this.resolve=r(i),this.reject=r(c)},"PromiseCapability");t.exports.f=function(o){return new a(o)}}}),OO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.constructor.js"(){"use strict";var e=uo(),t=Al(),r=Ab(),n=ia(),a=Uo(),o=pu(),i=bb(),c=q0(),d=EO(),p=Fs(),_=ha(),b=js(),w=kO(),j=bx(),R=Ax().set,G=NO(),F=BO(),$=Cf(),te=Cx(),ue=U0(),oe=Ef(),ie=Qp(),fe=El(),ae="Promise",Ie=ie.CONSTRUCTOR,_e=ie.REJECTION_EVENT,rt=ie.SUBCLASSING,Ce=ue.getterFor(ae),ct=ue.set,ve=oe&&oe.prototype,Fe=oe,J=ve,g=n.TypeError,k=n.document,V=n.process,P=fe.f,L=P,q=!!(k&&k.createEvent&&n.dispatchEvent),ee="unhandledrejection",Q="rejectionhandled",C=0,H=1,De=2,U=1,le=2,be,Ae,Le,He,Je=Qe(function(Be){var it;return b(Be)&&_(it=Be.then)?it:!1},"isThenable"),Ge=Qe(function(Be,it){var tt=it.value,Xe=it.state===H,lt=Xe?Be.ok:Be.fail,gt=Be.resolve,Ft=Be.reject,Ar=Be.domain,Dt,Zt,tn;try{lt?(Xe||(it.rejection===le&&se(it),it.rejection=U),lt===!0?Dt=tt:(Ar&&Ar.enter(),Dt=lt(tt),Ar&&(Ar.exit(),tn=!0)),Dt===Be.promise?Ft(new g("Promise-chain cycle")):(Zt=Je(Dt))?a(Zt,Dt,gt,Ft):gt(Dt)):Ft(tt)}catch(qt){Ar&&!tn&&Ar.exit(),Ft(qt)}},"callReaction"),It=Qe(function(Be,it){Be.notified||(Be.notified=!0,G(function(){for(var tt=Be.reactions,Xe;Xe=tt.get();)Ge(Xe,Be);Be.notified=!1,it&&!Be.rejection&&I(Be)}))},"notify"),Y=Qe(function(Be,it,tt){var Xe,lt;q?(Xe=k.createEvent("Event"),Xe.promise=it,Xe.reason=tt,Xe.initEvent(Be,!1,!0),n.dispatchEvent(Xe)):Xe={promise:it,reason:tt},!_e&&(lt=n["on"+Be])?lt(Xe):Be===ee&&F("Unhandled promise rejection",tt)},"dispatchEvent"),I=Qe(function(Be){a(R,n,function(){var it=Be.facade,tt=Be.value,Xe=M(Be),lt;if(Xe&&(lt=$(function(){r?V.emit("unhandledRejection",tt,it):Y(ee,it,tt)}),Be.rejection=r||M(Be)?le:U,lt.error))throw lt.value})},"onUnhandled"),M=Qe(function(Be){return Be.rejection!==U&&!Be.parent},"isUnhandled"),se=Qe(function(Be){a(R,n,function(){var it=Be.facade;r?V.emit("rejectionHandled",it):Y(Q,it,Be.value)})},"onHandleUnhandled"),he=Qe(function(Be,it,tt){return function(Xe){Be(it,Xe,tt)}},"bind"),Ee=Qe(function(Be,it,tt){Be.done||(Be.done=!0,tt&&(Be=tt),Be.value=it,Be.state=De,It(Be,!0))},"internalReject"),Te=Qe(function(Be,it,tt){if(!Be.done){Be.done=!0,tt&&(Be=tt);try{if(Be.facade===it)throw new g("Promise can't be resolved itself");var Xe=Je(it);Xe?G(function(){var lt={done:!1};try{a(Xe,it,he(Te,lt,Be),he(Ee,lt,Be))}catch(gt){Ee(lt,gt,Be)}}):(Be.value=it,Be.state=H,It(Be,!1))}catch(lt){Ee({done:!1},lt,Be)}}},"internalResolve");if(Ie&&(Fe=Qe(s(function(it){w(this,J),p(it),a(be,this);var tt=Ce(this);try{it(he(Te,tt),he(Ee,tt))}catch(Xe){Ee(tt,Xe)}},"Promise2"),"Promise"),J=Fe.prototype,be=Qe(s(function(it){ct(this,{type:ae,done:!1,notified:!1,parent:!1,reactions:new te,rejection:!1,state:C,value:null})},"Promise2"),"Promise"),be.prototype=o(J,"then",Qe(s(function(it,tt){var Xe=Ce(this),lt=P(j(this,Fe));return Xe.parent=!0,lt.ok=_(it)?it:!0,lt.fail=_(tt)&&tt,lt.domain=r?V.domain:void 0,Xe.state===C?Xe.reactions.add(lt):G(function(){Ge(lt,Xe)}),lt.promise},"then"),"then")),Ae=Qe(function(){var Be=new be,it=Ce(Be);this.promise=Be,this.resolve=he(Te,it),this.reject=he(Ee,it)},"OwnPromiseCapability"),fe.f=P=Qe(function(Be){return Be===Fe||Be===Le?new Ae(Be):L(Be)},"newPromiseCapability"),!t&&_(oe)&&ve!==Object.prototype)){He=ve.then,rt||o(ve,"then",Qe(s(function(it,tt){var Xe=this;return new Fe(function(lt,gt){a(He,Xe,lt,gt)}).then(it,tt)},"then"),"then"),{unsafe:!0});try{delete ve.constructor}catch{}i&&i(ve,J)}e({global:!0,constructor:!0,wrap:!0,forced:Ie},{Promise:Fe}),c(Fe,ae,!1,!0),d(ae)}}),jO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/check-correctness-of-iteration.js"(e,t){"use strict";var r=bi(),n=r("iterator"),a=!1;try{o=0,i={next:function(){return{done:!!o++}},return:function(){a=!0}},i[n]=function(){return this},Array.from(i,function(){throw 2})}catch{}var o,i;t.exports=function(c,d){try{if(!d&&!a)return!1}catch{return!1}var p=!1;try{var _={};_[n]=function(){return{next:function(){return{done:p=!0}}}},c(_)}catch{}return p}}}),W0=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/promise-statics-incorrect-iteration.js"(e,t){"use strict";var r=Ef(),n=jO(),a=Qp().CONSTRUCTOR;t.exports=a||!n(function(o){r.all(o).then(void 0,function(){})})}}),FO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.all.js"(){"use strict";var e=uo(),t=Uo(),r=Fs(),n=El(),a=Cf(),o=Jp(),i=W0();e({target:"Promise",stat:!0,forced:i},{all:Qe(s(function(d){var p=this,_=n.f(p),b=_.resolve,w=_.reject,j=a(function(){var R=r(p.resolve),G=[],F=0,$=1;o(d,function(te){var ue=F++,oe=!1;$++,t(R,p,te).then(function(ie){oe||(oe=!0,G[ue]=ie,--$||b(G))},w)}),--$||b(G)});return j.error&&w(j.value),_.promise},"all"),"all")})}}),MO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.catch.js"(){"use strict";var e=uo(),t=Al(),r=Qp().CONSTRUCTOR,n=Ef(),a=xl(),o=ha(),i=pu(),c=n&&n.prototype;e({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(p){return this.then(void 0,p)}}),!t&&o(n)&&(d=a("Promise").prototype.catch,c.catch!==d&&i(c,"catch",d,{unsafe:!0}));var d}}),VO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.race.js"(){"use strict";var e=uo(),t=Uo(),r=Fs(),n=El(),a=Cf(),o=Jp(),i=W0();e({target:"Promise",stat:!0,forced:i},{race:Qe(s(function(d){var p=this,_=n.f(p),b=_.reject,w=a(function(){var j=r(p.resolve);o(d,function(R){t(j,p,R).then(_.resolve,b)})});return w.error&&b(w.value),_.promise},"race"),"race")})}}),UO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.reject.js"(){"use strict";var e=uo(),t=El(),r=Qp().CONSTRUCTOR;e({target:"Promise",stat:!0,forced:r},{reject:Qe(s(function(a){var o=t.f(this),i=o.reject;return i(a),o.promise},"reject"),"reject")})}}),Ex=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/promise-resolve.js"(e,t){"use strict";var r=Cl(),n=js(),a=El();t.exports=function(o,i){if(r(o),n(i)&&i.constructor===o)return i;var c=a.f(o),d=c.resolve;return d(i),c.promise}}}),LO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.resolve.js"(){"use strict";var e=uo(),t=xl(),r=Al(),n=Ef(),a=Qp().CONSTRUCTOR,o=Ex(),i=t("Promise"),c=r&&!a;e({target:"Promise",stat:!0,forced:r||a},{resolve:Qe(s(function(p){return o(c&&this===i?n:this,p)},"resolve"),"resolve")})}}),ZO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.js"(){"use strict";OO(),FO(),MO(),VO(),UO(),LO()}}),qO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.all-settled.js"(){"use strict";var e=uo(),t=Uo(),r=Fs(),n=El(),a=Cf(),o=Jp(),i=W0();e({target:"Promise",stat:!0,forced:i},{allSettled:Qe(s(function(d){var p=this,_=n.f(p),b=_.resolve,w=_.reject,j=a(function(){var R=r(p.resolve),G=[],F=0,$=1;o(d,function(te){var ue=F++,oe=!1;$++,t(R,p,te).then(function(ie){oe||(oe=!0,G[ue]={status:"fulfilled",value:ie},--$||b(G))},function(ie){oe||(oe=!0,G[ue]={status:"rejected",reason:ie},--$||b(G))})}),--$||b(G)});return j.error&&w(j.value),_.promise},"allSettled"),"allSettled")})}}),WO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.any.js"(){"use strict";var e=uo(),t=Uo(),r=Fs(),n=xl(),a=El(),o=Cf(),i=Jp(),c=W0(),d="No one promise resolved";e({target:"Promise",stat:!0,forced:c},{any:Qe(s(function(_){var b=this,w=n("AggregateError"),j=a.f(b),R=j.resolve,G=j.reject,F=o(function(){var $=r(b.resolve),te=[],ue=0,oe=1,ie=!1;i(_,function(fe){var ae=ue++,Ie=!1;oe++,t($,b,fe).then(function(_e){Ie||ie||(ie=!0,R(_e))},function(_e){Ie||ie||(Ie=!0,te[ae]=_e,--oe||G(new w(te,d)))})}),--oe||G(new w(te,d))});return F.error&&G(F.value),j.promise},"any"),"any")})}}),kx=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.try.js"(){"use strict";var e=uo(),t=ia(),r=_x(),n=wx(),a=El(),o=Fs(),i=Cf(),c=t.Promise,d=!1,p=!c||!c.try||i(function(){c.try(function(_){d=_===8},8)}).error||!d;e({target:"Promise",stat:!0,forced:p},{try:function(_){var b=arguments.length>1?n(arguments,1):[],w=a.f(this),j=i(function(){return r(o(_),void 0,b)});return(j.error?w.reject:w.resolve)(j.value),w.promise}})}}),Ix=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.with-resolvers.js"(){"use strict";var e=uo(),t=El();e({target:"Promise",stat:!0},{withResolvers:Qe(s(function(){var n=t.f(this);return{promise:n.promise,resolve:n.resolve,reject:n.reject}},"withResolvers"),"withResolvers")})}}),zO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.promise.finally.js"(){"use strict";var e=uo(),t=Al(),r=Ef(),n=Ui(),a=xl(),o=ha(),i=bx(),c=Ex(),d=pu(),p=r&&r.prototype,_=!!r&&n(function(){p.finally.call({then:function(){}},function(){})});e({target:"Promise",proto:!0,real:!0,forced:_},{finally:function(w){var j=i(this,a("Promise")),R=o(w);return this.then(R?function(G){return c(j,w()).then(function(){return G})}:w,R?function(G){return c(j,w()).then(function(){throw G})}:w)}}),!t&&o(r)&&(b=a("Promise").prototype.finally,p.finally!==b&&d(p,"finally",b,{unsafe:!0}));var b}}),GO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/string-multibyte.js"(e,t){"use strict";var r=vi(),n=gb(),a=xb(),o=j0(),i=r("".charAt),c=r("".charCodeAt),d=r("".slice),p=Qe(function(_){return function(b,w){var j=a(o(b)),R=n(w),G=j.length,F,$;return R<0||R>=G?_?"":void 0:(F=c(j,R),F<55296||F>56319||R+1===G||($=c(j,R+1))<56320||$>57343?_?i(j,R):F:_?d(j,R,R+2):(F-55296<<10)+($-56320)+65536)}},"createMethod");t.exports={codeAt:p(!1),charAt:p(!0)}}}),HO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/es.string.iterator.js"(){"use strict";var e=GO().charAt,t=xb(),r=U0(),n=mx(),a=gx(),o="String Iterator",i=r.set,c=r.getterFor(o);n(String,"String",function(d){i(this,{type:o,string:t(d),index:0})},Qe(s(function(){var p=c(this),_=p.string,b=p.index,w;return b>=_.length?a(void 0,!0):(w=e(_,b),p.index+=w.length,a(w,!1))},"next"),"next"))}}),$O=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/path.js"(e,t){"use strict";var r=ia();t.exports=r}}),KO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/es/promise/index.js"(e,t){"use strict";bO(),yx(),AO(),ZO(),qO(),WO(),kx(),Ix(),zO(),HO();var r=$O();t.exports=r.Promise}}),JO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/dom-iterables.js"(e,t){"use strict";t.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}}}),QO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/internals/dom-token-list-prototype.js"(e,t){"use strict";var r=V0(),n=r("span").classList,a=n&&n.constructor&&n.constructor.prototype;t.exports=a===Object.prototype?void 0:a}}),YO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/web.dom-collections.iterator.js"(){"use strict";var e=ia(),t=JO(),r=QO(),n=yx(),a=hu(),o=q0(),i=bi(),c=i("iterator"),d=n.values,p=Qe(function(b,w){if(b){if(b[c]!==d)try{a(b,c,d)}catch{b[c]=d}if(o(b,w,!0),t[w]){for(var j in n)if(b[j]!==n[j])try{a(b,j,n[j])}catch{b[j]=n[j]}}}},"handlePrototype");for(_ in t)p(e[_]&&e[_].prototype,_);var _;p(r,"DOMTokenList")}}),XO=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/stable/promise/index.js"(e,t){"use strict";var r=KO();YO(),t.exports=r}}),ej=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/esnext.promise.try.js"(){"use strict";kx()}}),tj=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/modules/esnext.promise.with-resolvers.js"(){"use strict";Ix()}}),rj=Oe({"../../node_modules/.pnpm/core-js@3.41.0/node_modules/core-js/actual/promise/index.js"(e,t){"use strict";var r=XO();ej(),tj(),t.exports=r}}),wK=WB(rj(),1),Wp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:void 0;Wp&&(typeof Wp.AbortController>"u"&&(Wp.AbortController=z0.AbortController),typeof Wp.AbortSignal>"u"&&(Wp.AbortSignal=z0.AbortSignal));var H9=Qe((e,t)=>e.reduce((r,n)=>r!==void 0?r:t(n),void 0),"findFirstResult"),Ta=Qe((e,t)=>t==="read"?"get"in(e.read??{}):t==="store"?"upload"in(e.store??{}):t==="index"?"get"in(e.index??{}):t==="cache"?"getIndex"in(e.cache??{}):t==="id"?"did"in(e.id??{}):t==="context"?"resolveStaticDocument"in(e.context??{}):!1,"pluginImplementsPlane"),Fn=Qe((e,t)=>t==="read"?"read"in e:t==="store"?"store"in e:t==="index"?"index"in e:t==="cache"?"cache"in e:t==="id"?"id"in e:t==="context"?"context"in e:!1,"learnCardImplementsPlane"),nj=Qe((e,t)=>Object.fromEntries(Object.entries(e).map(([r,n],a)=>[r,t(n,a)])),"mapObject"),zp=Qe(e=>e.status==="fulfilled"&&!!e.value,"isFulfilledAndNotEmpty"),aj=Qe((e,t)=>[...new Map(e.map(r=>[t instanceof Function?t(r):r[t],r])).values()],"uniqBy"),kf=Qe((e,t)=>e.reduce((r,n)=>(t in n&&(r[n.name]={name:n.name,displayName:n.displayName,description:n.description}),r),{}),"getPlaneProviders"),Cb=Qe((e,t)=>nj(t,r=>r.bind(e,e)),"bindLearnCardToFunctionsObject"),ij=Qe(async(e,t)=>(e.debug?.("Adding plugin",t.name),_i({plugins:[...e.plugins,t],debug:e.debug})),"addPluginToLearnCard"),oj=Qe(e=>({get:async(t,{cache:r="cache-first"}={})=>{if(e.debug?.("learnCard.read.get",t),!t)return;if(r==="cache-only"&&!Fn(e,"cache"))throw new Error("Cannot read from cache. Cache Plane is not implemented!");if(Fn(e,"cache")&&r!=="skip-cache"){let o=await e.cache.getVc(t);if(o)return r==="cache-first"&&Fn(e,"read")&&e.read.get(t,{cache:"skip-cache"}).then(i=>e.cache.setVc(t,i)),o}let a=(await Promise.allSettled(e.plugins.map(async o=>{if(!Ta(o,"read"))throw new Error("Plugin is not a Read Plugin");return o.read.get(e,t)}))).find(zp)?.value;return a&&Fn(e,"cache")&&r!=="skip-cache"&&await e.cache.setVc(t,a),a},providers:kf(e.plugins,"read")}),"generateReadPlane"),sj=Qe(e=>({upload:async(t,r,{cache:n="cache-first"}={})=>{let a=await e.upload(t,r);return n!=="skip-cache"&&Fn(t,"cache")&&await t.cache.setVc(a,r),a},..."uploadMany"in e?{uploadMany:e.uploadMany}:{},..."uploadEncrypted"in e?{uploadEncrypted:async(t,r,n,{cache:a="cache-first"}={})=>{let o=await e.uploadEncrypted?.(t,r,n);return a!=="skip-cache"&&Fn(t,"cache")&&await t.cache.setVc(o,r),o}}:{}}),"addCachingToStorePlane"),cj=Qe(e=>({...e.plugins.reduce((r,n)=>(Ta(n,"store")&&(r[n.name]=Cb(e,sj(n.store))),r),{}),providers:kf(e.plugins,"store")}),"generateStorePlane"),lj=Qe((e,t)=>({get:async(r,n,{cache:a="cache-first"}={})=>{if(a==="cache-only"&&!Fn(r,"cache"))throw new Error("Cannot read from cache. Cache Plane is not implemented!");if(Fn(r,"cache")&&a!=="skip-cache"){let i=await r.cache.getIndex(t,n??{});if(i)return a==="cache-first"&&e.get(r,n,{cache:"skip-cache"}).then(c=>{r.cache.setIndex(t,n??{},c)}),i}let o=await e.get(r,n);return o&&Fn(r,"cache")&&a!=="skip-cache"&&await r.cache.setIndex(t,n??{},o),o},...e.getPage?{getPage:async(r,n,a,{cache:o="cache-first"}={})=>{if(o==="cache-only"&&!Fn(r,"cache"))throw new Error("Cannot read from cache. Cache Plane is not implemented!");if(Fn(r,"cache")&&o!=="skip-cache"){let c=await r.cache.getIndexPage(t,n??{},a);if(c)return o==="cache-first"&&e.getPage?.(r,n,a,{cache:"skip-cache"}).then(d=>{r.cache.setIndexPage(t,n??{},d,a)}),c}let i=await e.getPage?.(r,n,a);return i&&Fn(r,"cache")&&o!=="skip-cache"&&await r.cache.setIndexPage(t,n??{},i,a),i}}:{},...e.getCount?{getCount:async(r,n,{cache:a="cache-first"}={})=>{if(a==="cache-only"&&!Fn(r,"cache"))throw new Error("Cannot read from cache. Cache Plane is not implemented!");if(Fn(r,"cache")&&a!=="skip-cache"){let i=await r.cache.getIndexCount?.(t,n??{});if(i)return a==="cache-first"&&e.getCount?.(r,n,{cache:"skip-cache"}).then(c=>r.cache.setIndexCount?.(t,n??{},c)),i}let o=await e.getCount?.(r,n);return o&&Fn(r,"cache")&&a!=="skip-cache"&&await r.cache.setIndexCount?.(t,n??{},o),o}}:{},add:async(r,n,{cache:a="cache-first"}={})=>{let o=await e.add(r,n);return a!=="skip-cache"&&Fn(r,"cache")&&await r.cache.flushIndex(),o},...e.addMany?{addMany:async(r,n,{cache:a="cache-first"}={})=>{let o=await e.addMany?.(r,n);return a!=="skip-cache"&&Fn(r,"cache")&&await r.cache.flushIndex(),o}}:{},update:async(r,n,a,{cache:o="cache-first"}={})=>{let i=await e.update(r,n,a);return o!=="skip-cache"&&Fn(r,"cache")&&await r.cache.flushIndex(),i},remove:async(r,n,{cache:a="cache-first"}={})=>{let o=await e.remove(r,n);return a!=="skip-cache"&&Fn(r,"cache")&&await r.cache.flushIndex(),o},...e.removeAll?{removeAll:async(r,{cache:n="cache-first"}={})=>{let a=await e.removeAll?.(r);return n!=="skip-cache"&&Fn(r,"cache")&&await r.cache.flushIndex(),a}}:{}}),"addCachingToIndexPlane"),dj=Qe(e=>({...e.plugins.reduce((n,a)=>(Ta(a,"index")&&(n[a.name]=Cb(e,lj(a.index,a.name))),n),{}),all:{get:async(n,{cache:a="cache-first"}={})=>{if(e.debug?.("learnCard.index.all.get"),a==="cache-only"&&!Fn(e,"cache"))throw new Error("Cannot read from cache. Cache Plane is not implemented!");if(Fn(e,"cache")&&a!=="skip-cache"){let c=await e.cache.getIndex("all",n??{});if(c)return a==="cache-first"&&Fn(e,"index")&&e.index.all.get(n,{cache:"skip-cache"}).then(d=>e.cache.setIndex("all",n??{},d)),c}let o=(await Promise.all(e.plugins.map(async c=>Ta(c,"index")?c.index.get(e,n):[]))).flat(),i=aj(o,"id");return i&&Fn(e,"cache")&&a!=="skip-cache"&&await e.cache.setIndex("all",n??{},i),i}},providers:kf(e.plugins,"index")}),"generateIndexPlane"),uj=Qe(e=>({getIndex:async(t,r)=>{e.debug?.("learnCard.cache.getIndex");try{return(await Promise.allSettled(e.plugins.map(async o=>{if(!Ta(o,"cache"))throw new Error("Plugin is not a Cache Plugin");return o.cache.getIndex(e,t,r)}))).find(zp)?.value}catch{return}},setIndex:async(t,r,n)=>(e.debug?.("learnCard.cache.setIndex"),(await Promise.allSettled(e.plugins.map(async o=>{if(!Ta(o,"cache"))throw new Error("Plugin is not a Cache Plugin");return o.cache.setIndex(e,t,r,n)}))).some(o=>o.status==="fulfilled")),getIndexPage:async(t,r,n)=>{e.debug?.("learnCard.cache.getIndex");try{return(await Promise.allSettled(e.plugins.map(async i=>{if(!Ta(i,"cache"))throw new Error("Plugin is not a Cache Plugin");return i.cache.getIndexPage(e,t,r,n)}))).find(zp)?.value}catch{return}},setIndexPage:async(t,r,n,a)=>(e.debug?.("learnCard.cache.setIndex"),(await Promise.allSettled(e.plugins.map(async i=>{if(!Ta(i,"cache"))throw new Error("Plugin is not a Cache Plugin");return i.cache.setIndexPage(e,t,r,n,a)}))).some(i=>i.status==="fulfilled")),getIndexCount:async(t,r)=>{e.debug?.("learnCard.cache.getIndex");try{return(await Promise.allSettled(e.plugins.map(async o=>{if(!Ta(o,"cache"))throw new Error("Plugin is not a Cache Plugin");return o.cache.getIndexCount?.(e,t,r)}))).find(zp)?.value}catch{return}},setIndexCount:async(t,r,n)=>(e.debug?.("learnCard.cache.setIndex"),(await Promise.allSettled(e.plugins.map(async o=>{if(!Ta(o,"cache"))throw new Error("Plugin is not a Cache Plugin");return o.cache.setIndexCount?.(e,t,r,n)}))).some(o=>o.status==="fulfilled")),flushIndex:async()=>(e.debug?.("learnCard.cache.flushIndex"),(await Promise.allSettled(e.plugins.map(async r=>{if(!Ta(r,"cache"))throw new Error("Plugin is not a Cache Plugin");return r.cache.flushIndex(e)}))).some(r=>r.status==="fulfilled")),getVc:async t=>{e.debug?.("learnCard.cache.getVc");try{return(await Promise.allSettled(e.plugins.map(async a=>{if(!Ta(a,"cache"))throw new Error("Plugin is not a Cache Plugin");return a.cache.getVc(e,t)}))).find(zp)?.value}catch{return}},setVc:async(t,r)=>(e.debug?.("learnCard.cache.setVc"),(await Promise.allSettled(e.plugins.map(async a=>{if(!Ta(a,"cache"))throw new Error("Plugin is not a Cache Plugin");return a.cache.setVc(e,t,r)}))).some(a=>a.status==="fulfilled")),flushVc:async()=>(e.debug?.("learnCard.cache.flushVc"),(await Promise.allSettled(e.plugins.map(async r=>{if(!Ta(r,"cache"))throw new Error("Plugin is not a Cache Plugin");return r.cache.flushVc(e)}))).some(r=>r.status==="fulfilled")),providers:kf(e.plugins,"cache")}),"generateCachePlane"),fj=Qe(e=>({did:t=>{e.debug?.("learnCard.id.did",t);let r=H9([...e.plugins].reverse(),n=>{try{return Ta(n,"id")?n.id.did(e,t):void 0}catch{return}});if(!r)throw new Error(`No plugin supports did method ${t}`);return r},keypair:t=>{e.debug?.("learnCard.id.keypair",t);let r=H9(e.plugins,n=>{try{return Ta(n,"id")?n.id.keypair(e,t):void 0}catch{return}});if(!r)throw new Error(`No plugin supports keypair type ${t}`);return r},providers:kf(e.plugins,"id")}),"generateIdPlane"),hj=Qe(e=>({resolveDocument:async(t,r=!1)=>{e.debug?.("learnCard.context.resolveDocument",t);let a=(await Promise.all(e.plugins.map(async i=>{if(!!Ta(i,"context"))return i.context.resolveStaticDocument(e,t)}))).find(Boolean);return a||!r?a:(await Promise.all(e.plugins.map(async i=>{if(!!Ta(i,"context"))return i.context.resolveRemoteDocument?.(e,t)}))).find(Boolean)},providers:kf(e.plugins,"context")}),"generateContextPlane"),pj=Qe((e,t)=>Cb(e,t),"bindMethods"),_i=Qe(async(e={})=>{let{plugins:t=[]}=e,r=t.reduce((a,o)=>({...a,...o.methods}),{}),n={read:{},store:{},index:{},cache:{},id:{},context:{},plugins:t,invoke:r,addPlugin:function(a){return ij(this,a)},debug:e.debug};return n.read=oj(n),n.store=cj(n),n.index=dj(n),n.cache=uj(n),n.id=fj(n),n.context=hj(n),r&&(n.invoke=pj(n,r)),n},"generateLearnCard");typeof window>"u"&&!globalThis.crypto&&(globalThis.crypto=Tx.default);var Eb=s(async({debug:e}={})=>_i({debug:e}),"customLearnCard");var Ic={name:"Dynamic Loader",displayName:"Dynamic Loader",description:"Resolve JSON-LD Contexts dynamically via fetch",context:{resolveStaticDocument:async()=>{},resolveRemoteDocument:async(e,t)=>{try{let r=await fetch(t);if(r.status!==200)throw new Error("Status Code not 200!");return await r.json()}catch(r){e.debug?.("Error fetching remote context!",r);return}}},methods:{}};var kb=cb(require("isomorphic-webcrypto"));typeof window>"u"&&!globalThis.crypto&&(globalThis.crypto=kb.default);var mj=kb.default,Lo={name:"Crypto",displayName:"Crypto Plugin",description:"Exposes a standardized, isomorphic Crypto object",methods:{crypto:()=>mj}};var Ej={};var gj=Object.defineProperty,sr=s((e,t)=>gj(e,"name",{value:t,configurable:!0}),"__name"),Ye,Px=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&Px.decode();var Yp=null;function yu(){return(Yp===null||Yp.byteLength===0)&&(Yp=new Uint8Array(Ye.memory.buffer)),Yp}s(yu,"getUint8ArrayMemory0");sr(yu,"getUint8ArrayMemory0");function fo(e,t){return e=e>>>0,Px.decode(yu().subarray(e,e+t))}s(fo,"getStringFromWasm0");sr(fo,"getStringFromWasm0");function gu(e){let t=Ye.__externref_table_alloc();return Ye.__wbindgen_export_2.set(t,e),t}s(gu,"addToExternrefTable0");sr(gu,"addToExternrefTable0");function Ya(e,t){try{return e.apply(this,t)}catch(r){let n=gu(r);Ye.__wbindgen_exn_store(n)}}s(Ya,"handleError");sr(Ya,"handleError");function Dx(e,t){return e=e>>>0,yu().subarray(e/1,e/1+t)}s(Dx,"getArrayU8FromWasm0");sr(Dx,"getArrayU8FromWasm0");function Tc(e){return e==null}s(Tc,"isLikeNone");sr(Tc,"isLikeNone");var Sr=0,$0=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},yj=typeof $0.encodeInto=="function"?function(e,t){return $0.encodeInto(e,t)}:function(e,t){let r=$0.encode(e);return t.set(r),{read:e.length,written:r.length}};function mn(e,t,r){if(r===void 0){let c=$0.encode(e),d=t(c.length,1)>>>0;return yu().subarray(d,d+c.length).set(c),Sr=c.length,d}let n=e.length,a=t(n,1)>>>0,o=yu(),i=0;for(;i<n;i++){let c=e.charCodeAt(i);if(c>127)break;o[a+i]=c}if(i!==n){i!==0&&(e=e.slice(i)),a=r(a,n,n=i+e.length*3,1)>>>0;let c=yu().subarray(a+i,a+n);i+=yj(e,c).written,a=r(a,n,i,1)>>>0}return Sr=i,a}s(mn,"passStringToWasm0");sr(mn,"passStringToWasm0");var mu=null;function Zo(){return(mu===null||mu.buffer.detached===!0||mu.buffer.detached===void 0&&mu.buffer!==Ye.memory.buffer)&&(mu=new DataView(Ye.memory.buffer)),mu}s(Zo,"getDataViewMemory0");sr(Zo,"getDataViewMemory0");var Sx=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>{Ye.__wbindgen_export_5.get(e.dtor)(e.a,e.b)});function Nx(e,t,r,n){let a={a:e,b:t,cnt:1,dtor:r},o=sr((...i)=>{a.cnt++;let c=a.a;a.a=0;try{return n(c,a.b,...i)}finally{--a.cnt===0?(Ye.__wbindgen_export_5.get(a.dtor)(c,a.b),Sx.unregister(a)):a.a=c}},"real");return o.original=a,Sx.register(o,a,a),o}s(Nx,"makeMutClosure");sr(Nx,"makeMutClosure");function K0(e){let t=typeof e;if(t=="number"||t=="boolean"||e==null)return`${e}`;if(t=="string")return`"${e}"`;if(t=="symbol"){let a=e.description;return a==null?"Symbol":`Symbol(${a})`}if(t=="function"){let a=e.name;return typeof a=="string"&&a.length>0?`Function(${a})`:"Function"}if(Array.isArray(e)){let a=e.length,o="[";a>0&&(o+=K0(e[0]));for(let i=1;i<a;i++)o+=", "+K0(e[i]);return o+="]",o}let r=/\[object ([^\]]+)\]/.exec(toString.call(e)),n;if(r&&r.length>1)n=r[1];else return toString.call(e);if(n=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
2
2
  ${e.stack}`:n}s(K0,"debugString");sr(K0,"debugString");function Bx(){return Ye.clearCache()}s(Bx,"clearCache");sr(Bx,"clearCache");function Ox(e,t){let r=mn(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),n=Sr,a=mn(t,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),o=Sr;return Ye.didResolver(r,n,a,o)}s(Ox,"didResolver");sr(Ox,"didResolver");function jx(e,t){let r=mn(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),n=Sr,a=mn(t,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),o=Sr;return Ye.resolveDID(r,n,a,o)}s(jx,"resolveDID");sr(jx,"resolveDID");function J0(e){let t=Ye.__wbindgen_export_2.get(e);return Ye.__externref_table_dealloc(e),t}s(J0,"takeFromExternrefTable0");sr(J0,"takeFromExternrefTable0");function Tb(e,t){let r=t(e.length*1,1)>>>0;return yu().set(e,r/1),Sr=e.length,r}s(Tb,"passArray8ToWasm0");sr(Tb,"passArray8ToWasm0");function Fx(e){let t,r;try{let o=Tb(e,Ye.__wbindgen_malloc),i=Sr,c=Ye.generateEd25519KeyFromBytes(o,i);var n=c[0],a=c[1];if(c[3])throw n=0,a=0,J0(c[2]);return t=n,r=a,fo(n,a)}finally{Ye.__wbindgen_free(t,r,1)}}s(Fx,"generateEd25519KeyFromBytes");sr(Fx,"generateEd25519KeyFromBytes");function Mx(e){let t,r;try{let o=Tb(e,Ye.__wbindgen_malloc),i=Sr,c=Ye.generateSecp256k1KeyFromBytes(o,i);var n=c[0],a=c[1];if(c[3])throw n=0,a=0,J0(c[2]);return t=n,r=a,fo(n,a)}finally{Ye.__wbindgen_free(t,r,1)}}s(Mx,"generateSecp256k1KeyFromBytes");sr(Mx,"generateSecp256k1KeyFromBytes");function Xp(e,t){let r=t(e.length*4,4)>>>0;for(let n=0;n<e.length;n++){let a=gu(e[n]);Zo().setUint32(r+4*n,a,!0)}return Sr=e.length,r}s(Xp,"passArrayJsValueToWasm0");sr(Xp,"passArrayJsValueToWasm0");function Vx(e,t){let r=mn(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),n=Sr,a=Xp(t,Ye.__wbindgen_malloc),o=Sr;return Ye.createJwe(r,n,a,o)}s(Vx,"createJwe");sr(Vx,"createJwe");function Ux(e,t){let r=mn(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),n=Sr,a=Xp(t,Ye.__wbindgen_malloc),o=Sr;return Ye.decryptJwe(r,n,a,o)}s(Ux,"decryptJwe");sr(Ux,"decryptJwe");function Lx(e,t){let r=Xp(t,Ye.__wbindgen_malloc),n=Sr;return Ye.createDagJwe(e,r,n)}s(Lx,"createDagJwe");sr(Lx,"createDagJwe");function Zx(e,t){let r=mn(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),n=Sr,a=Xp(t,Ye.__wbindgen_malloc),o=Sr;return Ye.decryptDagJwe(r,n,a,o)}s(Zx,"decryptDagJwe");sr(Zx,"decryptDagJwe");function qx(e,t){let r,n;try{let i=mn(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),c=Sr,d=mn(t,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),p=Sr,_=Ye.keyToDID(i,c,d,p);var a=_[0],o=_[1];if(_[3])throw a=0,o=0,J0(_[2]);return r=a,n=o,fo(a,o)}finally{Ye.__wbindgen_free(r,n,1)}}s(qx,"keyToDID");sr(qx,"keyToDID");function Wx(e,t){let r=mn(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),n=Sr,a=mn(t,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),o=Sr;return Ye.keyToVerificationMethod(r,n,a,o)}s(Wx,"keyToVerificationMethod");sr(Wx,"keyToVerificationMethod");function zx(e){let t=mn(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),r=Sr;return Ye.didToVerificationMethod(t,r)}s(zx,"didToVerificationMethod");sr(zx,"didToVerificationMethod");function Gx(e,t,r,n){let a=mn(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),o=Sr,i=mn(t,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),c=Sr,d=mn(r,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),p=Sr,_=mn(n,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),b=Sr;return Ye.issueCredential(a,o,i,c,d,p,_,b)}s(Gx,"issueCredential");sr(Gx,"issueCredential");function Hx(e,t,r){let n=mn(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),a=Sr,o=mn(t,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),i=Sr,c=mn(r,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),d=Sr;return Ye.verifyCredential(n,a,o,i,c,d)}s(Hx,"verifyCredential");sr(Hx,"verifyCredential");function $x(e,t,r,n){let a=mn(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),o=Sr,i=mn(t,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),c=Sr,d=mn(r,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),p=Sr,_=mn(n,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),b=Sr;return Ye.issuePresentation(a,o,i,c,d,p,_,b)}s($x,"issuePresentation");sr($x,"issuePresentation");function Kx(e,t,r){let n=mn(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),a=Sr,o=mn(t,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),i=Sr,c=mn(r,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),d=Sr;return Ye.verifyPresentation(n,a,o,i,c,d)}s(Kx,"verifyPresentation");sr(Kx,"verifyPresentation");function Ib(e){let t=mn(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),r=Sr;return Ye.contextLoader(t,r)}s(Ib,"contextLoader");sr(Ib,"contextLoader");function Jx(e,t,r){Ye.closure4130_externref_shim(e,t,r)}s(Jx,"__wbg_adapter_52");sr(Jx,"__wbg_adapter_52");function Qx(e,t,r,n){Ye.closure4531_externref_shim(e,t,r,n)}s(Qx,"__wbg_adapter_212");sr(Qx,"__wbg_adapter_212");var vj=["omit","same-origin","include"],bj=["same-origin","no-cors","cors","navigate"];async function Yx(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(n){if(e.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n);else throw n}let r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{let r=await WebAssembly.instantiate(e,t);return r instanceof WebAssembly.Instance?{instance:r,module:e}:r}}s(Yx,"__wbg_load");sr(Yx,"__wbg_load");function Xx(){let e={};return e.wbg={},e.wbg.__wbg_abort_775ef1d17fc65868=function(t){t.abort()},e.wbg.__wbg_append_8c7dd8d641a5f01b=function(){return Ya(function(t,r,n,a,o){t.append(fo(r,n),fo(a,o))},arguments)},e.wbg.__wbg_arrayBuffer_d1b44c4390db422f=function(){return Ya(function(t){return t.arrayBuffer()},arguments)},e.wbg.__wbg_buffer_609cc3eee51ed158=function(t){return t.buffer},e.wbg.__wbg_call_672a4d21634d4a24=function(){return Ya(function(t,r){return t.call(r)},arguments)},e.wbg.__wbg_call_7cccdd69e0791ae2=function(){return Ya(function(t,r,n){return t.call(r,n)},arguments)},e.wbg.__wbg_crypto_038798f665f985e2=function(t){return t.crypto},e.wbg.__wbg_crypto_ed58b8e10a292839=function(t){return t.crypto},e.wbg.__wbg_done_769e5ede4b31c67b=function(t){return t.done},e.wbg.__wbg_entries_3265d4158b33e5dc=function(t){return Object.entries(t)},e.wbg.__wbg_fetch_509096533071c657=function(t,r){return t.fetch(r)},e.wbg.__wbg_fetch_f1856afdb49415d1=function(t){return fetch(t)},e.wbg.__wbg_from_2a5d3e218e67aa85=function(t){return Array.from(t)},e.wbg.__wbg_getRandomValues_371e7ade8bd92088=function(t,r){t.getRandomValues(r)},e.wbg.__wbg_getRandomValues_7dfe5bd1b67c9ca1=function(t){return t.getRandomValues},e.wbg.__wbg_getRandomValues_bcb4912f16000dc4=function(){return Ya(function(t,r){t.getRandomValues(r)},arguments)},e.wbg.__wbg_getTime_46267b1c24877e30=function(t){return t.getTime()},e.wbg.__wbg_get_67b2ba62fc30de12=function(){return Ya(function(t,r){return Reflect.get(t,r)},arguments)},e.wbg.__wbg_get_b9b93047fe3cf45b=function(t,r){return t[r>>>0]},e.wbg.__wbg_has_a5ea9117f258a0ec=function(){return Ya(function(t,r){return Reflect.has(t,r)},arguments)},e.wbg.__wbg_headers_9cb51cfd2ac780a4=function(t){return t.headers},e.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc=function(t){let r;try{r=t instanceof ArrayBuffer}catch{r=!1}return r},e.wbg.__wbg_instanceof_Map_f3469ce2244d2430=function(t){let r;try{r=t instanceof Map}catch{r=!1}return r},e.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644=function(t){let r;try{r=t instanceof Response}catch{r=!1}return r},e.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9=function(t){let r;try{r=t instanceof Uint8Array}catch{r=!1}return r},e.wbg.__wbg_isArray_a1eab7e0d067391b=function(t){return Array.isArray(t)},e.wbg.__wbg_isSafeInteger_343e2beeeece1bb0=function(t){return Number.isSafeInteger(t)},e.wbg.__wbg_iterator_9a24c88df860dc65=function(){return Symbol.iterator},e.wbg.__wbg_length_a446193dc22c12f8=function(t){return t.length},e.wbg.__wbg_length_e2d2a49132c1b256=function(t){return t.length},e.wbg.__wbg_msCrypto_0a36e2ec3a343d26=function(t){return t.msCrypto},e.wbg.__wbg_msCrypto_ff35fce085fab2a3=function(t){return t.msCrypto},e.wbg.__wbg_new0_f788a2397c7ca929=function(){return new Date},e.wbg.__wbg_new_018dcc2d6c8c2f6a=function(){return Ya(function(){return new Headers},arguments)},e.wbg.__wbg_new_23a2665fac83c611=function(t,r){try{var n={a:t,b:r},a=sr((i,c)=>{let d=n.a;n.a=0;try{return Qx(d,n.b,i,c)}finally{n.a=d}},"cb0");return new Promise(a)}finally{n.a=n.b=0}},e.wbg.__wbg_new_405e22f390576ce2=function(){return new Object},e.wbg.__wbg_new_5e0be73521bc8c17=function(){return new Map},e.wbg.__wbg_new_78feb108b6472713=function(){return new Array},e.wbg.__wbg_new_a12002a7f91c75be=function(t){return new Uint8Array(t)},e.wbg.__wbg_new_e25e5aab09ff45db=function(){return Ya(function(){return new AbortController},arguments)},e.wbg.__wbg_newnoargs_105ed471475aaf50=function(t,r){return new Function(fo(t,r))},e.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(t,r,n){return new Uint8Array(t,r>>>0,n>>>0)},e.wbg.__wbg_newwithlength_a381634e90c276d4=function(t){return new Uint8Array(t>>>0)},e.wbg.__wbg_newwithstrandinit_06c535e0a867c635=function(){return Ya(function(t,r,n){return new Request(fo(t,r),n)},arguments)},e.wbg.__wbg_next_25feadfc0913fea9=function(t){return t.next},e.wbg.__wbg_next_6574e1a8a62d1055=function(){return Ya(function(t){return t.next()},arguments)},e.wbg.__wbg_node_02999533c4ea02e3=function(t){return t.node},e.wbg.__wbg_now_d18023d54d4e5500=function(t){return t.now()},e.wbg.__wbg_process_5c1d670bc53614b8=function(t){return t.process},e.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5=function(t){queueMicrotask(t)},e.wbg.__wbg_queueMicrotask_d3219def82552485=function(t){return t.queueMicrotask},e.wbg.__wbg_randomFillSync_994ac6d9ade7a695=function(t,r,n){t.randomFillSync(Dx(r,n))},e.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740=function(){return Ya(function(t,r){t.randomFillSync(r)},arguments)},e.wbg.__wbg_require_0d6aeaec3c042c88=function(t,r,n){return t.require(fo(r,n))},e.wbg.__wbg_require_79b1e9274cde3c87=function(){return Ya(function(){return module.require},arguments)},e.wbg.__wbg_resolve_4851785c9c5f573d=function(t){return Promise.resolve(t)},e.wbg.__wbg_self_25aabeb5a7b41685=function(){return Ya(function(){return self.self},arguments)},e.wbg.__wbg_set_37837023f3d740e8=function(t,r,n){t[r>>>0]=n},e.wbg.__wbg_set_3f1d0b984ed272ed=function(t,r,n){t[r]=n},e.wbg.__wbg_set_65595bdd868b3009=function(t,r,n){t.set(r,n>>>0)},e.wbg.__wbg_set_8fc6bf8a5b1071d1=function(t,r,n){return t.set(r,n)},e.wbg.__wbg_setbody_5923b78a95eedf29=function(t,r){t.body=r},e.wbg.__wbg_setcredentials_c3a22f1cd105a2c6=function(t,r){t.credentials=vj[r]},e.wbg.__wbg_setheaders_834c0bdb6a8949ad=function(t,r){t.headers=r},e.wbg.__wbg_setmethod_3c5280fe5d890842=function(t,r,n){t.method=fo(r,n)},e.wbg.__wbg_setmode_5dc300b865044b65=function(t,r){t.mode=bj[r]},e.wbg.__wbg_setsignal_75b21ef3a81de905=function(t,r){t.signal=r},e.wbg.__wbg_signal_aaf9ad74119f20a4=function(t){return t.signal},e.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07=function(){let t=typeof global>"u"?null:global;return Tc(t)?0:gu(t)},e.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0=function(){let t=typeof globalThis>"u"?null:globalThis;return Tc(t)?0:gu(t)},e.wbg.__wbg_static_accessor_MODULE_ef3aa2eb251158a5=function(){return module},e.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819=function(){let t=typeof self>"u"?null:self;return Tc(t)?0:gu(t)},e.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40=function(){let t=typeof window>"u"?null:window;return Tc(t)?0:gu(t)},e.wbg.__wbg_status_f6360336ca686bf0=function(t){return t.status},e.wbg.__wbg_stringify_f7ed6987935b4a24=function(){return Ya(function(t){return JSON.stringify(t)},arguments)},e.wbg.__wbg_subarray_aa9065fa9dc5df96=function(t,r,n){return t.subarray(r>>>0,n>>>0)},e.wbg.__wbg_then_44b73946d2fb3e7d=function(t,r){return t.then(r)},e.wbg.__wbg_then_48b406749878a531=function(t,r,n){return t.then(r,n)},e.wbg.__wbg_url_ae10c34ca209681d=function(t,r){let n=r.url,a=mn(n,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),o=Sr;Zo().setInt32(t+4*1,o,!0),Zo().setInt32(t+4*0,a,!0)},e.wbg.__wbg_value_cd1ffa7b1ab794f1=function(t){return t.value},e.wbg.__wbg_versions_c71aa1626a93e0a1=function(t){return t.versions},e.wbg.__wbindgen_bigint_from_i128=function(t,r){return t<<BigInt(64)|BigInt.asUintN(64,r)},e.wbg.__wbindgen_bigint_from_i64=function(t){return t},e.wbg.__wbindgen_bigint_from_u64=function(t){return BigInt.asUintN(64,t)},e.wbg.__wbindgen_bigint_get_as_i64=function(t,r){let n=r,a=typeof n=="bigint"?n:void 0;Zo().setBigInt64(t+8*1,Tc(a)?BigInt(0):a,!0),Zo().setInt32(t+4*0,!Tc(a),!0)},e.wbg.__wbindgen_boolean_get=function(t){let r=t;return typeof r=="boolean"?r?1:0:2},e.wbg.__wbindgen_cb_drop=function(t){let r=t.original;return r.cnt--==1?(r.a=0,!0):!1},e.wbg.__wbindgen_closure_wrapper12542=function(t,r,n){return Nx(t,r,4131,Jx)},e.wbg.__wbindgen_debug_string=function(t,r){let n=K0(r),a=mn(n,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),o=Sr;Zo().setInt32(t+4*1,o,!0),Zo().setInt32(t+4*0,a,!0)},e.wbg.__wbindgen_error_new=function(t,r){return new Error(fo(t,r))},e.wbg.__wbindgen_in=function(t,r){return t in r},e.wbg.__wbindgen_init_externref_table=function(){let t=Ye.__wbindgen_export_2,r=t.grow(4);t.set(0,void 0),t.set(r+0,void 0),t.set(r+1,null),t.set(r+2,!0),t.set(r+3,!1)},e.wbg.__wbindgen_is_bigint=function(t){return typeof t=="bigint"},e.wbg.__wbindgen_is_function=function(t){return typeof t=="function"},e.wbg.__wbindgen_is_object=function(t){let r=t;return typeof r=="object"&&r!==null},e.wbg.__wbindgen_is_string=function(t){return typeof t=="string"},e.wbg.__wbindgen_is_undefined=function(t){return t===void 0},e.wbg.__wbindgen_jsval_eq=function(t,r){return t===r},e.wbg.__wbindgen_jsval_loose_eq=function(t,r){return t==r},e.wbg.__wbindgen_memory=function(){return Ye.memory},e.wbg.__wbindgen_number_get=function(t,r){let n=r,a=typeof n=="number"?n:void 0;Zo().setFloat64(t+8*1,Tc(a)?0:a,!0),Zo().setInt32(t+4*0,!Tc(a),!0)},e.wbg.__wbindgen_number_new=function(t){return t},e.wbg.__wbindgen_string_get=function(t,r){let n=r,a=typeof n=="string"?n:void 0;var o=Tc(a)?0:mn(a,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),i=Sr;Zo().setInt32(t+4*1,i,!0),Zo().setInt32(t+4*0,o,!0)},e.wbg.__wbindgen_string_new=function(t,r){return fo(t,r)},e.wbg.__wbindgen_throw=function(t,r){throw new Error(fo(t,r))},e}s(Xx,"__wbg_get_imports");sr(Xx,"__wbg_get_imports");function _j(e,t){}s(_j,"__wbg_init_memory");sr(_j,"__wbg_init_memory");function eA(e,t){return Ye=e.exports,Sb.__wbindgen_wasm_module=t,mu=null,Yp=null,Ye.__wbindgen_start(),Ye}s(eA,"__wbg_finalize_init");sr(eA,"__wbg_finalize_init");async function Sb(e){if(Ye!==void 0)return Ye;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("didkit_wasm_bg.wasm",Ej.url));let t=Xx();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:r,module:n}=await Yx(await e,t);return eA(r,n)}s(Sb,"__wbg_init");sr(Sb,"__wbg_init");var wj=Sb,Rx=!1,G0=!1,xj=sr(async(e="https://cdn.filestackcontent.com/uJ4ZnJoLRyuHyLgrSDIr")=>{for(;G0;)await new Promise(t=>setTimeout(t,250));if(!Rx)try{G0=!0,await wj({module_or_path:e}),G0=!1,Rx=!0}catch(t){throw G0=!1,t}},"init"),Aj=xj,Cj=sr(e=>{let t=[],r=sr(n=>{typeof n!="object"||n===null||(n["@context"]&&(Array.isArray(n["@context"])?t.push(...n["@context"]):t.push(n["@context"])),Object.keys(n).forEach(a=>{r(n[a])}))},"traverse");return r(e),t},"getContextURIs"),H0=sr(async(e,t,r=!1)=>{let n=Cj(t),a=await Promise.all(n.map(async o=>e.context.resolveDocument(o,r)));return n.reduce((o,i,c)=>{let d=a[c];return d&&(o[i]=JSON.stringify(d)),o},{})},"getDocumentMap"),Sc=sr(async(e,t=!1)=>{await Aj(e);let r={};return{name:"DIDKit",displayName:"DIDKit",description:"Provides an interface to DIDKit, which allows for the generation of key material, as well as signing and verifying credentials and presentations",context:{resolveStaticDocument:async(n,a)=>{try{return JSON.parse(await Ib(a)??"")||void 0}catch(o){n.debug?.(o);return}}},methods:{generateEd25519KeyFromBytes:(n,a)=>JSON.parse(Fx(a)),generateSecp256k1KeyFromBytes:(n,a)=>JSON.parse(Mx(a)),keyToDid:(n,a,o)=>qx(a,JSON.stringify(o)),keyToVerificationMethod:async(n,a,o)=>Wx(a,JSON.stringify(o)),didToVerificationMethod:async(n,a)=>zx(a),issueCredential:async(n,a,o,i)=>JSON.parse(await Gx(JSON.stringify(a),JSON.stringify(o),JSON.stringify(i),JSON.stringify(await H0(n,a,t)))),verifyCredential:async(n,a,o={})=>JSON.parse(await Hx(JSON.stringify(a),JSON.stringify(o),JSON.stringify(await H0(n,a,t)))),issuePresentation:async(n,a,o,i)=>{let c=o.proofFormat==="jwt",d=await $x(JSON.stringify(a),JSON.stringify(o),JSON.stringify(i),JSON.stringify(await H0(n,a,t)));return c?d:JSON.parse(d)},verifyPresentation:async(n,a,o={})=>{let i=typeof a=="string";return JSON.parse(await Kx(i?a:JSON.stringify(a),JSON.stringify(o),i?"{}":JSON.stringify(await H0(n,a,t))))},contextLoader:async(n,a)=>{try{return JSON.parse(await Ib(a)??"")||void 0}catch(o){n.debug?.(o);return}},resolveDid:async(n,a,o={})=>JSON.parse(await jx(a,JSON.stringify(o))),didResolver:async(n,a,o={})=>JSON.parse(await Ox(a,JSON.stringify(o))),createJwe:async(n,a,o)=>JSON.parse(await Vx(a,o)),decryptJwe:async(n,a,o)=>Ux(JSON.stringify(a),o.map(i=>JSON.stringify(i))),createDagJwe:async(n,a,o)=>JSON.parse(await Lx(a,o)),decryptDagJwe:async(n,a,o)=>{let i=sr(c=>{if(c==null)return c;if(typeof c=="bigint")return Number(c);if(Array.isArray(c))return c.map(i);if(typeof c!="object"||!Object.values(c).some(_=>typeof _=="bigint"||typeof _=="object"&&_!==null))return c;let p={};for(let _ in c)p[_]=i(c[_]);return p},"convertBigIntsToNumbers");return i(await Zx(JSON.stringify(a),o.map(c=>JSON.stringify(c))))},clearDidWebCache:async()=>{await Bx()}}}},"getDidKitPlugin");var kj=Object.defineProperty,Ij=s((e,t)=>kj(e,"name",{value:t,configurable:!0}),"__name"),qo=Ij(e=>({name:"Expiration",displayName:"Expiration Extension",description:"Adds a check to make sure credentials aren't expired when verifying them",methods:{verifyCredential:async(t,r,n)=>{let a=await e.invoke.verifyCredential(r,n);return r.expirationDate&&new Date>new Date(r.expirationDate)?a.errors.push("expiration error: Credential is expired"):r.validFrom&&new Date<new Date(r.validFrom)?a.errors.push("expiration error: Credential is not valid yet"):r.validUntil&&new Date>new Date(r.validUntil)?a.errors.push("expiration error: Credential is no longer valid"):a.checks.push("expiration"),a}}}),"expirationPlugin");var Tj=Object.defineProperty,Sj=s((e,t)=>Tj(e,"name",{value:t,configurable:!0}),"__name"),tA={basic:({did:e="did:example:d23dd687a7dc6787646f2eb98d0",subject:t="did:example:d23dd687a7dc6787646f2eb98d0",issuanceDate:r="2020-08-19T21:41:50Z"}={})=>({"@context":["https://www.w3.org/2018/credentials/v1"],id:"http://example.org/credentials/3731",type:["VerifiableCredential"],issuer:e,issuanceDate:r,credentialSubject:{id:t}}),achievement:({did:e="did:example:d23dd687a7dc6787646f2eb98d0",subject:t="did:example:d23dd687a7dc6787646f2eb98d0",name:r="Teamwork Badge",achievementName:n="Teamwork",description:a="This badge recognizes the development of the capacity to collaborate within a group environment.",criteriaNarrative:o="Team members are nominated for this badge by their peers and recognized upon review by Example Corp management.",issuanceDate:i="2020-08-19T21:41:50Z"}={})=>({"@context":["https://www.w3.org/2018/credentials/v1","https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.2.json"],id:"http://example.com/credentials/3527",type:["VerifiableCredential","OpenBadgeCredential"],issuer:e,issuanceDate:i,name:r,credentialSubject:{id:t,type:["AchievementSubject"],achievement:{id:"https://example.com/achievements/21st-century-skills/teamwork",type:["Achievement"],criteria:{narrative:o},description:a,name:n}}}),jff2:({did:e="did:example:d23dd687a7dc6787646f2eb98d0",subject:t="did:example:d23dd687a7dc6787646f2eb98d0",issuanceDate:r="2020-08-19T21:41:50Z"}={})=>({"@context":["https://www.w3.org/2018/credentials/v1","https://purl.imsglobal.org/spec/ob/v3p0/context.json","https://w3id.org/security/suites/ed25519-2020/v1"],id:"urn:uuid:a63a60be-f4af-491c-87fc-2c8fd3007a58",type:["VerifiableCredential","OpenBadgeCredential"],name:"JFF x vc-edu PlugFest 2 Interoperability",issuer:{type:["Profile"],id:e,name:"Jobs for the Future (JFF)",image:{id:"https://w3c-ccg.github.io/vc-ed/plugfest-1-2022/images/JFF_LogoLockup.png",type:"Image"}},issuanceDate:r,credentialSubject:{type:["AchievementSubject"],id:t,achievement:{id:"urn:uuid:bd6d9316-f7ae-4073-a1e5-2f7f5bd22922",type:["Achievement"],name:"JFF x vc-edu PlugFest 2 Interoperability",description:"This credential solution supports the use of OBv3 and w3c Verifiable Credentials and is interoperable with at least two other solutions. This was demonstrated successfully during JFF x vc-edu PlugFest 2.",criteria:{narrative:"Solutions providers earned this badge by demonstrating interoperability between multiple providers based on the OBv3 candidate final standard, with some additional required fields. Credential issuers earning this badge successfully issued a credential into at least two wallets. Wallet implementers earning this badge successfully displayed credentials issued by at least two different credential issuers."},image:{id:"https://w3c-ccg.github.io/vc-ed/plugfest-2-2022/images/JFF-VC-EDU-PLUGFEST2-badge-image.png",type:"Image"}}}}),boost:({did:e="did:example:d23dd687a7dc6787646f2eb98d0",subject:t="did:example:d23dd687a7dc6787646f2eb98d0",issuanceDate:r="2020-08-19T21:41:50Z",expirationDate:n,boostName:a="Example Boost",boostId:o="urn:uuid:boost:example:555",boostImage:i,achievementId:c="urn:uuid:123",achievementType:d="Influencer",achievementName:p="Awesome Badge",achievementDescription:_="Awesome People Earn Awesome Badge",achievementNarrative:b="Earned by being awesome.",achievementImage:w="",attachments:j,display:R,familyTitles:G,skills:F,groupID:$=""}={})=>({"@context":["https://www.w3.org/2018/credentials/v1","https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.2.json",{type:"@type",xsd:"https://www.w3.org/2001/XMLSchema#",lcn:"https://docs.learncard.com/definitions#",BoostCredential:{"@id":"lcn:boostCredential","@context":{boostId:{"@id":"lcn:boostId","@type":"xsd:string"},display:{"@id":"lcn:boostDisplay","@context":{backgroundImage:{"@id":"lcn:boostBackgroundImage","@type":"xsd:string"},backgroundColor:{"@id":"lcn:boostBackgroundColor","@type":"xsd:string"},displayType:{"@id":"lcn:boostDisplayType","@type":"xsd:string"},fadeBackgroundImage:{"@id":"lcn:boostFadeBackgroundImage","@type":"xsd:boolean"},repeatBackgroundImage:{"@id":"lcn:boostRepeatBackgroundImage","@type":"xsd:boolean"},emoji:{"@id":"lcn:boostEmoji","@context":{activeSkinTone:{"@id":"lcn:boostEmojiActiveSkinTone","@type":"xsd:string"},unified:{"@id":"lcn:boostEmojiUnified","@type":"xsd:string"},unifiedWithoutSkinTone:{"@id":"lcn:boostEmojiUnifiedWithoutSkinTone","@type":"xsd:string"},names:{"@id":"lcn:boostEmojiNames","@container":"@set","@type":"xsd:string"},imageUrl:{"@id":"lcn:boostEmojiImageUrl","@type":"xsd:string"}}}}},familyTitles:{"@id":"lcn:familyTitles","@context":{guardians:{"@id":"lcn:guardians","@container":"@set","@context":{plural:{"@id":"lcn:plural","@type":"xsd:string"},singular:{"@id":"lcn:singular","@type":"xsd:string"}}},dependents:{"@id":"lcn:dependents","@container":"@set","@context":{plural:{"@id":"lcn:plural","@type":"xsd:string"},singular:{"@id":"lcn:singular","@type":"xsd:string"}}}}},attachments:{"@id":"lcn:boostAttachments","@container":"@set","@context":{type:{"@id":"lcn:boostAttachmentType","@type":"xsd:string"},title:{"@id":"lcn:boostAttachmentTitle","@type":"xsd:string"},url:{"@id":"lcn:boostAttachmentUrl","@type":"xsd:string"}}},address:{"@id":"https://purl.imsglobal.org/spec/vc/ob/vocab.html#Address"},skills:{"@id":"lcn:boostSkills","@container":"@set","@context":{category:{"@id":"lcn:boostSkillCategory","@type":"xsd:string"},skill:{"@id":"lcn:boostSkill","@type":"xsd:string"},subskills:{"@id":"lcn:boostSubskills","@container":"@set","@type":"xsd:string"}}},groupID:{"@id":"lcn:groupID","@type":"xsd:string"}}}}],type:["VerifiableCredential","OpenBadgeCredential","BoostCredential"],issuer:e,issuanceDate:r,name:a,expirationDate:n,credentialSubject:{id:t,type:["AchievementSubject"],achievement:{id:c,type:["Achievement"],achievementType:d,name:p,description:_,image:w,criteria:{narrative:b}}},display:R,familyTitles:G,image:i,attachments:j,skills:F,groupID:$}),boostID:({did:e="did:example:d23dd687a7dc6787646f2eb98d0",subject:t="did:example:d23dd687a7dc6787646f2eb98d0",issuanceDate:r="2020-08-19T21:41:50Z",expirationDate:n,boostName:a="Example Boost",boostId:o="urn:uuid:boost:example:555",boostImage:i,achievementId:c="urn:uuid:123",achievementType:d="Influencer",achievementName:p="Awesome Badge",achievementDescription:_="Awesome People Earn Awesome Badge",achievementNarrative:b="Earned by being awesome.",achievementImage:w="",address:j,attachments:R,skills:G,display:F,familyTitles:$,boostID:te,groupID:ue=""}={})=>({"@context":["https://www.w3.org/2018/credentials/v1","https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.2.json",{type:"@type",xsd:"https://www.w3.org/2001/XMLSchema#",lcn:"https://docs.learncard.com/definitions#",BoostCredential:{"@id":"lcn:boostCredential","@context":{boostId:{"@id":"lcn:boostId","@type":"xsd:string"},display:{"@id":"lcn:boostDisplay","@context":{backgroundImage:{"@id":"lcn:boostBackgroundImage","@type":"xsd:string"},backgroundColor:{"@id":"lcn:boostBackgroundColor","@type":"xsd:string"},displayType:{"@id":"lcn:boostDisplayType","@type":"xsd:string"},fadeBackgroundImage:{"@id":"lcn:boostFadeBackgroundImage","@type":"xsd:boolean"},repeatBackgroundImage:{"@id":"lcn:boostRepeatBackgroundImage","@type":"xsd:boolean"},emoji:{"@id":"lcn:boostEmoji","@context":{activeSkinTone:{"@id":"lcn:boostEmojiActiveSkinTone","@type":"xsd:string"},unified:{"@id":"lcn:boostEmojiUnified","@type":"xsd:string"},unifiedWithoutSkinTone:{"@id":"lcn:boostEmojiUnifiedWithoutSkinTone","@type":"xsd:string"},names:{"@id":"lcn:boostEmojiNames","@container":"@set","@type":"xsd:string"},imageUrl:{"@id":"lcn:boostEmojiImageUrl","@type":"xsd:string"}}}}},familyTitles:{"@id":"lcn:familyTitles","@context":{guardians:{"@id":"lcn:guardians","@container":"@set","@context":{plural:{"@id":"lcn:plural","@type":"xsd:string"},singular:{"@id":"lcn:singular","@type":"xsd:string"}}},dependents:{"@id":"lcn:dependents","@container":"@set","@context":{plural:{"@id":"lcn:plural","@type":"xsd:string"},singular:{"@id":"lcn:singular","@type":"xsd:string"}}}}},attachments:{"@id":"lcn:boostAttachments","@container":"@set","@context":{type:{"@id":"lcn:boostAttachmentType","@type":"xsd:string"},title:{"@id":"lcn:boostAttachmentTitle","@type":"xsd:string"},url:{"@id":"lcn:boostAttachmentUrl","@type":"xsd:string"}}},skills:{"@id":"lcn:boostSkills","@container":"@set","@context":{category:{"@id":"lcn:boostSkillCategory","@type":"xsd:string"},skill:{"@id":"lcn:boostSkill","@type":"xsd:string"},subskills:{"@id":"lcn:boostSubskills","@container":"@set","@type":"xsd:string"}}},groupID:{"@id":"lcn:groupID","@type":"xsd:string"},address:{"@id":"https://purl.imsglobal.org/spec/vc/ob/vocab.html#Address"}}}},{type:"@type",xsd:"https://www.w3.org/2001/XMLSchema#",lcn:"https://docs.learncard.com/definitions#",BoostID:{"@id":"lcn:boostID","@context":{boostID:{"@id":"lcn:boostIDField","@context":{fontColor:{"@id":"lcn:boostIDFontColor","@type":"xsd:string"},accentColor:{"@id":"lcn:boostIDAccentColor","@type":"xsd:string"},backgroundImage:{"@id":"lcn:boostIDBackgroundImage","@type":"xsd:string"},dimBackgroundImage:{"@id":"lcn:boostIDDimBackgroundImage","@type":"xsd:boolean"},issuerThumbnail:{"@id":"lcn:boostIDIssuerThumbnail","@type":"xsd:string"},showIssuerThumbnail:{"@id":"lcn:boostIDShowIssuerThumbnail","@type":"xsd:boolean"},IDIssuerName:{"@id":"lcn:boostIDIssuerName","@type":"xsd:string"},idThumbnail:{"@id":"lcn:boostIDThumbnail","@type":"xsd:string"},accentFontColor:{"@id":"lcn:boostIDFontColor","@type":"xsd:string"},idBackgroundColor:{"@id":"lcn:boostIDBackgroundColor","@type":"xsd:string"},repeatIdBackgroundImage:{"@id":"lcn:boostIDRepeatIdBackgroundImage","@type":"xsd:boolean"},idDescription:{"@id":"lcn:boostIDDescription","@type":"xsd:string"}}}}}}],type:["VerifiableCredential","OpenBadgeCredential","BoostCredential","BoostID"],issuer:e,issuanceDate:r,name:a,expirationDate:n,credentialSubject:{id:t,type:["AchievementSubject"],achievement:{id:c,type:["Achievement"],achievementType:d,name:p,description:_,image:w,criteria:{narrative:b}}},...j?{address:{type:["Address"],...j,...j.geo?{geo:{type:["GeoCoordinates"],...j.geo}}:{}}}:{},display:F,familyTitles:$,image:i,attachments:R,skills:G,boostID:te,groupID:ue}),delegate:({did:e="did:example:d23dd687a7dc6787646f2eb98d0",subject:t="did:example:d23dd687a7dc6787646f2eb98d0",issuanceDate:r=new Date().toISOString(),access:n=["read"]}={})=>({"@context":["https://www.w3.org/2018/credentials/v1",{type:"@type",xsd:"https://www.w3.org/2001/XMLSchema#",lcn:"https://docs.learncard.com/definitions#",DelegateCredential:{"@id":"lcn:delegateCredential","@context":{permissions:{"@id":"lcn:delegateAccess","@context":{statementAccess:{"@id":"lcn:delegateAccess","@container":"@set","@type":"xsd:string"}}}}}}],type:["VerifiableCredential","DelegateCredential"],issuer:e,issuanceDate:r,credentialSubject:{id:t},permissions:{statementAccess:n}})},Wo=Sj(()=>({name:"VC Templates",displayName:"VC Templates",description:"Allows for the easy creation of VCs and VPs based on predefined templates",methods:{newCredential:(e,t={type:"basic"})=>{let r=t.did||e.id.did();if(!r)throw new Error("Could not get issuer did!");let n={did:r,subject:"did:example:d23dd687a7dc6787646f2eb98d0",issuanceDate:new Date().toISOString()},{type:a="basic",...o}=t;if(!(a in tA))throw new Error("Invalid Test VC Type!");return tA[a]({...n,...o})},newPresentation:async(e,t,r={})=>{let n=r?.did||e.id.did();if(!n)throw new Error("Could not get issuer did!");return{"@context":["https://www.w3.org/2018/credentials/v1"],type:["VerifiablePresentation"],holder:n,verifiableCredential:t}}}}),"getVCTemplatesPlugin");var Rj=Object.defineProperty,Gt=s((e,t)=>Rj(e,"name",{value:t,configurable:!0}),"__name"),nA={ParseError:{message:"Parse error",code:-32700},InvalidRequest:{message:"Invalid Request",code:-32600},MethodNotFound:{message:"Method not found",code:-32601},InvalidParams:{message:"Invalid params",code:-32602},InternalError:{message:"Internal Error",code:-32603},ServerError:{message:"Server error",code:-32e3}};function em(e,t){if(t===void 0&&(t=window.location.href),typeof URL=="function")return new URL(e,t);if(typeof e!="string")throw new TypeError('"url" must be a string.');e.includes(":")||(t.startsWith("http")&&!e.startsWith("/")?e=t+"/"+e:e=t+e);let r=document.createElement("a");r.href=e;let n=(r.protocol||window.location.protocol)+"//";r.host?r.protocol==="http:"&&r.port==="80"||r.protocol==="https:"&&r.port==="443"?n+=r.hostname:n+=r.host:n+=window.location.host;let a=r.pathname;return a.startsWith("/")||(a="/"+a),{host:r.host||window.location.host,hostname:r.hostname,origin:n,protocol:r.protocol,pathname:a}}s(em,"parseUrl");Gt(em,"parseUrl");function aA(e,t){for(t=e="";e++<36;t+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return t}s(aA,"uuidv4");Gt(aA,"uuidv4");function Bb(e){return e&&typeof e=="object"&&e.jsonrpc==="2.0"&&e.id&&typeof e.id=="string"}s(Bb,"isValidMessage");Gt(Bb,"isValidMessage");function iA(e){return Bb(e)&&Array.isArray(e.params)}s(iA,"isValidRequest");Gt(iA,"isValidRequest");function oA(e){return Bb(e)&&!!("result"in e^"error"in e)&&(!("error"in e)||sA(e.error))}s(oA,"isValidResponse");Gt(oA,"isValidResponse");function sA(e){return e&&typeof e=="object"&&typeof e.code=="number"&&typeof e.message=="string"}s(sA,"isValidError");Gt(sA,"isValidError");function cA(e){let t={message:e.message};return e.constructor.name!=="Error"&&(t.constructor=e.constructor.name),"name"in e&&(t.name=e.name),"code"in e?t.code=e.code:t.code=nA.ServerError.code,"details"in e&&(t.details=e.details),t}s(cA,"serializeError");Gt(cA,"serializeError");function lA(e){let t;return e.constructor==="DOMException"?t=new DOMException(e.message,e.name):(t=new Error(e.message),"code"in e&&(t.code=e.code)),e.details&&(t.details=e.details),t}s(lA,"deserializeError");Gt(lA,"deserializeError");function Ob({listener:e,origin:t,handle:r,expectRequest:n}){if(tm(r)){let a=r;r=!1,a.then(o=>r=o)}return a=>{!(a.source===r&&a.origin===t&&(n&&iA(a.data)||!n&&oA(a.data)))||e(a.data,a)}}s(Ob,"createMessageListener");Gt(Ob,"createMessageListener");function dA(e){let[t,...r]=e.split("."),n=r.pop();return t=[t,...r].join("."),{name:t,method:n}}s(dA,"destructureMethodName");Gt(dA,"destructureMethodName");function tm(e){try{return typeof e.then=="function"}catch{}return!1}s(tm,"isHandlePromise");Gt(tm,"isHandlePromise");var Pj=3e4,jb=s(class{constructor(){this.origin=null,this._handle=null,this._listener=null,this._pending=new Map}async connect(e,t){if(this._listener)throw new Error("Already connected.");t=t||{};let r=this;r.origin=em(e).origin,r._handle=t.handle||window.opener||window.parent;let n=r._pending;return r._listener=Ob({origin:r.origin,handle:r._handle,expectRequest:!1,listener:a=>{if(!n.has(a.id))return;let{resolve:o,reject:i,cancelTimeout:c}=n.get(a.id);if(c(),"result"in a)return o(a.result);i(lA(a.error))}}),window.addEventListener("message",r._listener),new uA(r)}async send(e,t,{timeout:r=Pj}){if(!this._listener)throw new Error("RPC client not connected.");let n=this,a={jsonrpc:"2.0",id:aA(),method:e,params:t};return tm(n._handle)?(await n._handle).postMessage(a,n.origin):n._handle.postMessage(a,n.origin),new Promise((o,i)=>{let c=n._pending,d;if(r>0){let p=setTimeout(()=>{c.delete(a.id),i(new Error("RPC call timed out."))},r);d=Gt(()=>{c.delete(a.id),clearTimeout(p)},"cancelTimeout")}else d=Gt(()=>{c.delete(a.id)},"cancelTimeout");c.set(a.id,{resolve:o,reject:i,cancelTimeout:d})})}close(){if(this._listener){window.removeEventListener("message",this._listener),this._handle=this.origin=this._listener=null;for(let e of this._pending.values())e.reject(new Error("RPC client closed."));this._pending=new Map}}},"Client");Gt(jb,"Client");var uA=s(class{constructor(e){this.client=e,this._apis=new Map}define(e,t){if(!(e&&typeof e=="string"))throw new TypeError("`name` must be a non-empty string.");if(!(t&&typeof t=="object"&&Array.isArray(t.functions)))throw new TypeError("`definition.function` must be an array of function names or function definition objects to be defined.");let r=this,n={};return t.functions.forEach(a=>{typeof a=="string"&&(a={name:a,options:{}}),n[a.name]=async function(){return r.client.send(e+"."+a.name,[...arguments],a.options)}}),r._apis[e]=n,n}get(e,t){if(!this._apis[e]){if(t)return this.define(e,t);throw new Error(`API "${e}" has not been defined.`)}return this._apis[e]}},"Injector");Gt(uA,"Injector");var fA=s(class{constructor({deserialize:e=Gt(r=>r,"deserialize"),waitUntil:t=Gt(async()=>{},"waitUntil")}={}){this._listeners=[],this._deserialize=e,this._waitUntil=t}async emit(e){return e=this._deserialize(e),(this._listeners[e.type]||[]).forEach(t=>t(e)),this._waitUntil(e)}addEventListener(e,t){this._listeners[e]?this._listeners[e].push(t):this._listeners[e]=[t]}removeEventListener(e,t){let r=this._listeners[e];if(!r)return;let n=r.indexOf(t);n!==-1&&r.splice(n,1)}},"EventEmitter");Gt(fA,"EventEmitter");var Fb=s(class{constructor(){this.origin=null,this._handle=null,this._apis=new Map}define(e,t){if(!(e&&typeof e=="string"))throw new TypeError("`name` must be a non-empty string.");if(!(t&&t!=="object"))throw new TypeError("`api` must be an object.");if(e in this._apis)throw new Error(`The "${e}" API is already defined.`);this._apis[e]=t}async listen(e,t){if(this._listener)throw new Error("Already listening.");t=t||{};let r=this;r.origin=em(e).origin,r._handle=t.handle||window.opener||window.parent;let n=t.ignoreUnknownApi==="true"||!1;r._listener=Ob({origin:r.origin,handle:r._handle,expectRequest:!0,listener:a=>{let{name:o,method:i}=dA(a.method),c=r._apis[o];if(i&&i.startsWith("_"))return Pb(r._handle,r.origin,a);if(!c&&n)return;if(!c||typeof c[i]!="function")return Pb(r._handle,r.origin,a);let d=c[i];(async()=>{let p={jsonrpc:"2.0",id:a.id};try{p.result=await d.apply(c,a.params)}catch(_){p.error=cA(_)}r._handle&&(tm(r._handle)?r._handle.then(_=>_.postMessage(p,r.origin)):r._handle.postMessage(p,r.origin))})()}}),window.addEventListener("message",r._listener)}close(){this._listener&&(window.removeEventListener("message",this._listener),this._handle=this.origin=this._listener=null)}},"Server");Gt(Fb,"Server");function Pb(e,t,r){let n={jsonrpc:"2.0",id:r.id,error:Object.assign({},nA.MethodNotFound)};return tm(e)?e.then(a=>a.postMessage(n,t)):e.postMessage(n,t)}s(Pb,"sendMethodNotFound");Gt(Pb,"sendMethodNotFound");var Mb=s(class{constructor(e){this.relyingOrigin=em(e).origin,this.client=null,this.injector=null,this.client=new jb,this.server=new Fb,this._control=null,this._connected=!1}async connect(){return this.injector=await this.client.connect(this.relyingOrigin),this._connected=!0,this._control=this.injector.define("core.control",{functions:["ready","show","hide"]}),this.server.listen(this.relyingOrigin),this.injector}async ready(){if(!this._connected)throw new Error('WebApp not connected. Did you call ".connect()"?');return await this._control.ready(),this}close(){this._connected&&(this.server.close(),this.client.close(),this._connected=!1)}async show(){if(!this._connected)throw new Error('Cannot "show" yet; not connected. Did you call ".connect()"?');return this._control.show()}async hide(){if(!this._connected)throw new Error('Cannot "hide" yet; not connected. Did you call ".connect()?"');return this._control.hide()}},"WebApp");Gt(Mb,"WebApp");var Vb=s(class{constructor(){this._closeEventListeners=new Set}addEventListener(e,t){if(e!=="close")throw new Error(`Unknown event "${e}".`);if(typeof t!="function")throw new TypeError('"listener" must be a function.');this._closeEventListeners.add(t)}removeEventListener(e,t){if(e!=="close")throw new Error(`Unknown event "${e}".`);if(typeof t!="function")throw new TypeError('"listener" must be a function.');this._closeEventListeners.delete(t)}show(){}close(){for(let e of this._closeEventListeners)e({})}destroy(){this._closeEventListeners.clear()}},"WebAppWindowDialog");Gt(Vb,"WebAppWindowDialog");var hA=s(class extends Vb{constructor({url:e,handle:t,className:r}){super(),this.url=e,this.handle=t,this.dialog=document.createElement("dialog"),Q0(this.dialog,{position:"fixed",top:0,left:0,width:"100%",height:"100%","max-width":"100%","max-height":"100%",display:"none",margin:0,padding:0,border:"none",background:"transparent",color:"black","box-sizing":"border-box",overflow:"hidden","user-select":"none","z-index":1e6}),this.dialog.className="web-app-window",typeof r=="string"&&(this.dialog.className=this.dialog.className+" "+r);let n=document.createElement("style");n.appendChild(document.createTextNode(`dialog.web-app-window::backdrop {
3
3
  background-color: transparent;
4
4
  }`)),this.container=document.createElement("div"),Q0(this.container,{position:"relative",width:"100%",height:"100%",margin:0,padding:0,display:"flex","flex-direction":"column"}),this.container.className="web-app-window-backdrop",this.iframe=document.createElement("iframe"),this.iframe.src=e,this.iframe.scrolling="auto",Q0(this.iframe,{position:"fixed",top:0,left:0,width:"100%",height:"100%",border:"none",background:"transparent",overflow:"hidden",margin:0,padding:0,"flex-grow":1,"user-select":"none"}),this.dialog.appendChild(n),this.container.appendChild(this.iframe),this.dialog.appendChild(this.container),this.dialog.addEventListener("cancel",a=>{a.preventDefault(),this.hide()}),document.body.appendChild(this.dialog),this.handle=this.iframe.contentWindow}show(){this.dialog.style.display="block",this.dialog.showModal&&this.dialog.showModal();try{this.dialog.style.pointerEvents="none"}catch{}setTimeout(()=>{try{this.dialog.style.pointerEvents=""}catch{}},32)}close(){if(this.dialog.style.display="none",this.dialog.close)try{this.dialog.close()}catch(e){console.error(e)}super.close()}destroy(){this.dialog.parentNode.removeChild(this.dialog),super.destroy()}},"WebAppWindowInlineDialog");Gt(hA,"WebAppWindowInlineDialog");function Q0(e,t){for(let r in t)e.style[r]=t[r]}s(Q0,"applyStyle");Gt(Q0,"applyStyle");var pA=s(class extends Vb{constructor({url:e,handle:t,bounds:r={width:500,height:400}}){super(),this.url=e,this.handle=t,this._locationChanging=!1,t||this._openWindow({url:e,name:"web-app-window",bounds:r}),this.destroyed=!1,this._removeListeners=()=>{}}show(){}close(){this.destroy()}destroy(){this.handle&&!this.destroyed&&(this.handle.close(),super.close(),this.handle=null,this.destroyed=!0,this._removeListeners(),super.destroy())}isClosed(){return!this.handle||this.handle.closed}_openWindow({url:e,name:t,bounds:r}){let{x:n,y:a}=r,{width:o=500,height:i=400}=r;o=Math.min(o,window.innerWidth),i=Math.min(i,window.innerHeight);let c=Math.floor(n!==void 0?n:window.screenX+(window.innerWidth-o)/2),d=Math.floor(a!==void 0?a:window.screenY+(window.innerHeight-i)/2),p=`popup=yes,menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=${o},height=${i},left=${c},top=${d}`;this._locationChanging=!0,this.handle=window.open(e,t,p),this._addListeners()}setLocation(e){this.url=e,this._locationChanging=!0,this.handle.location.replace(e)}_addListeners(){let e=Gt(()=>this.destroy(),"destroyDialog"),t=Gt(()=>{this._locationChanging=!1},"loadDialog"),r=Gt(()=>{this._locationChanging||this.destroy()},"unloadDialog");this.handle.addEventListener("unload",r),this.handle.addEventListener("load",t),window.addEventListener("beforeUnload",e,{once:!0});let n=setInterval(()=>{this.isClosed()&&(this.destroy(),clearInterval(n))},250);this._removeListeners=()=>{clearInterval(n),this.handle.removeListener("unload",r),this.handle.removeListener("load",t),window.removeEventListener("beforeUnload",e)}}},"WebAppWindowPopupDialog");Gt(pA,"WebAppWindowPopupDialog");var Dj=6e4,X0=s(class{constructor(e,{timeout:t=Dj,dialog:r=null,handle:n,popup:a=!1,className:o=null,customize:i=null,bounds:c}={}){if(this.visible=!1,this.dialog=r,this.handle=null,this.popup=a,this.windowControl=null,this._destroyed=!1,this._ready=!1,this._private={},this._timeoutId=null,n&&n._dialog&&(this.dialog=r=n._dialog),this._private._readyPromise=new Promise((d,p)=>{this._timeoutId=setTimeout(()=>p(new DOMException("Loading Web application window timed out.","TimeoutError")),t),this._private._resolveReady=_=>{clearTimeout(this.timeoutId),this._timeoutId=null,d(_)},this._private._rejectReady=_=>{clearTimeout(this.timeoutId),this._timeoutId=null,p(_)}}),this._private.isReady=async()=>this._private._readyPromise,this._private.destroy=()=>{this._timeoutId&&this._private._rejectReady(new DOMException("Web application window closed before ready.","AbortError")),this._destroyed||(this.dialog.destroy(),this.dialog=null,this._destroyed=!0)},i&&!typeof i==="function")throw new TypeError("`options.customize` must be a function.");if(this.dialog||(this.popup?this.dialog=new pA({url:e,handle:n,bounds:c}):this.dialog=new hA({url:e,handle:n,className:o})),this.popup&&c){let{x:d,y:p,width:_=500,height:b=400}=c;_=Math.min(_,window.innerWidth),b=Math.min(b+30,window.innerHeight),d=Math.floor(d!==void 0?d:window.screenX+(window.innerWidth-_)/2),p=Math.floor(p!==void 0?p:window.screenY+(window.innerHeight-b)/2+15),this.dialog.handle.resizeTo(_,b),this.dialog.handle.moveTo(d,p)}if(this.handle=this.dialog.handle,i)try{i({dialog:this.dialog.dialog,container:this.dialog.container,iframe:this.dialog.iframe,webAppWindow:this})}catch(d){console.error(d)}}ready(){this._ready=!0,this._private._resolveReady(!0)}show(){if(!this.visible){this.visible=!0;let e=document.querySelector("body");this._bodyOverflowStyle=e.style.overflow,e.style.overflow="hidden",this._destroyed?this.windowControl.show&&this.windowControl.show():this.dialog.show()}}hide(){if(this.visible){this.visible=!1;let e=document.querySelector("body");this._bodyOverflowStyle?e.style.overflow=this._bodyOverflowStyle:e.style.overflow="",this._destroyed?this.windowControl.hide&&this.windowControl.hide():this.dialog.close()}}},"WebAppWindow");Gt(X0,"WebAppWindow");var Nj=1e4,Ub=s(class{constructor(){this.client=new jb,this.server=new Fb,this.injector=null,this.control=null,this.loaded=!1,this.closed=!1}async createWindow(e,{timeout:t=Nj,iframe:r,dialog:n=null,popup:a=!1,handle:o,windowControl:i,className:c,customize:d,bounds:p}={}){if(this.loaded)throw new Error("AppContext already loaded.");this.loaded=!0,this.control=new X0(e,{timeout:t,dialog:n,iframe:r,popup:a,handle:o,windowControl:i,className:c,customize:d,bounds:p}),window.addEventListener("pagehide",()=>this.close(),{once:!0}),this.server.define("core.control",this.control);let _=em(e).origin;return this.server.listen(_,{handle:this.control.handle,ignoreUnknownApi:!0}),await this.control._private.isReady(),this.injector=await this.client.connect(_,{handle:this.control.handle}),this.injector}close(){this.closed||(this.closed=!0,this.control._private.destroy(),this.server.close(),this.client.close())}},"WebAppContext");Gt(Ub,"WebAppContext");var mA=s(class{constructor({credentialHandler:e,credentialRequestOrigin:t,credentialRequestOptions:r,hintKey:n}){this.type="credentialrequest",this._credentialHandler=e,this.credentialRequestOrigin=t,this.credentialRequestOptions=r,this.hintKey=n}async openWindow(e){await this._credentialHandler.show();let t=new X0(e,{className:"credential-handler"});return t.ready(),t.show(),t.handle._dialog=t.dialog,t.handle}respondWith(e){this._promise=e}},"CredentialRequestEvent");Gt(mA,"CredentialRequestEvent");var gA=s(class{constructor({credentialHandler:e,credentialRequestOrigin:t,credential:r,hintKey:n}){this.type="credentialstore",this._credentialHandler=e,this.credentialRequestOrigin=t,this.credential=r,this.hintKey=n}async openWindow(e){await this._credentialHandler.show();let t=new X0(e);return t.ready(),t.show(),t.handle._dialog=t.dialog,t.handle}respondWith(e){this._promise=e}},"CredentialStoreEvent");Gt(gA,"CredentialStoreEvent");var yA=s(class{constructor(e){this._credentialHandler=e}async request(e){return await this._credentialHandler._emitter.emit(new mA(Object.assign({credentialHandler:this._credentialHandler},e)))}async store(e){return await this._credentialHandler._emitter.emit(new gA(Object.assign({credentialHandler:this._credentialHandler},e)))}},"CredentialHandlerService");Gt(yA,"CredentialHandlerService");var rA=["credentialrequest","credentialstore"],vA=s(class extends Mb{constructor(e,t=!1){if(typeof e!="string")throw new TypeError('"mediatorOrigin" must be a string.');super(e,t),this._emitter=new fA({async waitUntil(r){return r._promise||Promise.reject(new DOMException('No "credentialrequest" event handler found.',"NotFoundError"))}})}async connect(){let e=await super.connect();return this.server.define("credentialHandler",new yA(this)),await this.ready(),e}addEventListener(e,t){if(!rA.includes(e))throw new DOMException(`Unsupported event type "${e}"`,"NotSupportedError");return this._emitter.addEventListener(e,t)}removeEventListener(e,t){if(!rA.includes(e))throw new DOMException(`Unsupported event type "${e}"`,"NotSupportedError");return this._emitter.removeEventListener(e,t)}},"CredentialHandler");Gt(vA,"CredentialHandler");var bA=s(class{constructor(e,t){let r=t.get("credentialHints",{functions:["delete","get","keys","has","set","clear"]});for(let n in r)if(n!=="set"){let a=r[n].bind(this,e);this[n]=function(...o){return this._deprecateNotice(),a(...o)}}this._remoteSet=r.set.bind(this,e)}async set(e,t){this._deprecateNotice(),t.icons=t.icons||[];let r=t.icons.map(n=>_A(n.src).then(a=>{n.fetchedImage=a}));return await Promise.all(r),this._remoteSet(e,t)}_deprecateNotice(){console.warn("Credential hints are deprecated and no longer used.")}},"CredentialHints");Gt(bA,"CredentialHints");function _A(e){return new Promise(t=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=()=>{let n=document.createElement("canvas"),a=n.getContext("2d");n.height=r.height,n.width=r.width,a.drawImage(r,0,0);let o=n.toDataURL();t(o),n=null},r.onerror=()=>t(null),r.src=e})}s(_A,"imageToDataUrl");Gt(_A,"imageToDataUrl");var Y0=s(class{constructor(e,t){if(!(e&&typeof e=="string"))throw new TypeError('"url" must be a non-empty string.');this.hints=new bA(e,t)}static async requestPermission(){return(await navigator.credentialsPolyfill.permissions.request({name:"credentialhandler"})).state}},"CredentialManager");Gt(Y0,"CredentialManager");var Db=s(class{constructor(e,t){if(!(e&&typeof e=="string"))throw new TypeError('"url" must be a non-empty string.');this.credentialManager=new Y0(e,t)}},"CredentialHandlerRegistration");Gt(Db,"CredentialHandlerRegistration");var wA=s(class{constructor(e){this._init=(async()=>{this._injector=await e,this._remote=this._injector.get("credentialHandlers",{functions:["register","unregister","getRegistration","hasRegistration"]})})()}async register(e){return this._deprecateNotice(),await this._init,e=await this._remote.register("credential",e),new Db(e,this._injector)}async unregister(e){return this._deprecateNotice(),await this._init,this._remote.unregister("credential",e)}async getRegistration(e){return this._deprecateNotice(),await this._init,e=await this._remote.getRegistration("credential",e),e?new Db(e,this._injector):null}async hasRegistration(e){return this._deprecateNotice(),await this._init,await this._remote.hasRegistration("credential",e)}_deprecateNotice(){console.warn('Credential handler registration APIs are deprecated. The credential handler specified in "manifest.json" is now automatically registered when a user grants permission to install a credential handler via "CredentialManager.requestPermission()".')}},"CredentialHandlers");Gt(wA,"CredentialHandlers");var If=s(class{constructor(e,t,{recommendedHandlerOrigins:r=[],protocols:n={}}={}){if(typeof e!="string")throw new TypeError('"dataType" must be a string.');this.type="web",this.dataType=e,this.data=t,this.options={recommendedHandlerOrigins:r,protocols:n}}},"WebCredential2");Gt(If,"WebCredential");var Bj=0,Oj=0,xA=s(class{constructor(e){this._nativeCredentialsContainer={get:navigator.credentials&&navigator.credentials.get&&navigator.credentials.get.bind(navigator.credentials),store:navigator.credentials&&navigator.credentials.store&&navigator.credentials.store.bind(navigator.credentials)},this._init=(async()=>{this._remote=(await e).get("credentialsContainer",{functions:[{name:"get",options:{timeout:Bj}},{name:"store",options:{timeout:Oj}}]})})()}async get(e={}){if(e.web){await this._init;let t=await this._remote.get(e);return t?new If(t.dataType,t.data):null}if(this._nativeCredentialsContainer.get)return this._nativeCredentialsContainer.get(e);throw new DOMException("Not implemented.","NotSupportedError")}async store(e){if(e instanceof If){await this._init;let t=await this._remote.store(e);return t?new If(t.dataType,t.data):null}if(this._nativeCredentialsContainer.store)return this._nativeCredentialsContainer.store(e);throw new DOMException("Not implemented.","NotSupportedError")}},"CredentialsContainer");Gt(xA,"CredentialsContainer");var jj=0,AA=s(class{constructor(e){this._init=(async()=>{this._remote=(await e).get("permissionManager",{functions:["query",{name:"request",options:{timeout:jj}},"revoke"]})})()}async query(e){return await this._init,await this._remote.query(e)}async request(e){return await this._init,await this._remote.request(e)}async revoke(e){return await this._init,await this._remote.revoke(e)}},"PermissionManager");Gt(AA,"PermissionManager");var Fj="https://authn.io",Rb;async function CA(e){return Rb||(Rb=!0,EA(e))}s(CA,"loadOnce");Gt(CA,"loadOnce");async function EA(e={mediatorOrigin:Fj}){kA();let t;if(typeof e=="string")t=e;else if(e&&typeof e=="object"&&typeof e.mediatorOrigin=="string")t=`${e.mediatorOrigin}/mediator`;else throw new Error('"options.mediatorOrigin" must be a string expressing the origin of the mediator.');let n=new Ub().createWindow(t,{className:"credential-mediator",timeout:3e4}),a=document.createElement("style");a.appendChild(document.createTextNode(`dialog.web-app-window.credential-mediator > .web-app-window-backdrop {
@@ -156,4 +156,4 @@ function print() { __p += __j.call(arguments, '') }
156
156
  * @copyright Chen, Yi-Cyuan 2015-2018
157
157
  * @license MIT
158
158
  */
159
- //# sourceMappingURL=init.cjs.production.min.js.map
159
+ //# sourceMappingURL=init.cjs.production.min.cjs.map