From 377aa042ea439f3075b2d67870552af5b51e629a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Conselheiro?= Date: Tue, 30 Apr 2024 17:46:51 -0300 Subject: [PATCH] 0.1.0 --- docs/index.html | 2 +- ...{main.217b027f86c47fae.js => main.d231b1bcc275f418.js} | 2 +- docs/ngsw.json | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) rename docs/{main.217b027f86c47fae.js => main.d231b1bcc275f418.js} (61%) diff --git a/docs/index.html b/docs/index.html index 0d79e8a..95ca1fa 100644 --- a/docs/index.html +++ b/docs/index.html @@ -16,5 +16,5 @@ - + diff --git a/docs/main.217b027f86c47fae.js b/docs/main.d231b1bcc275f418.js similarity index 61% rename from docs/main.217b027f86c47fae.js rename to docs/main.d231b1bcc275f418.js index fcd3d9c..dabe760 100644 --- a/docs/main.217b027f86c47fae.js +++ b/docs/main.d231b1bcc275f418.js @@ -1 +1 @@ -(self.webpackChunkprivate_qrcode=self.webpackChunkprivate_qrcode||[]).push([[590],{4400:(ae,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.IterableString=void 0,f.IterableString=class y{constructor(h){this.str=h,this.cursor=0}get currenPosition(){return this.cursor}toString(){return this.str.substring(this.cursor)}valueOf(){return this.str.substring(this.cursor)}getOriginalString(){return this.str}addCursor(h,_=!0){let w="";return w="number"==typeof h?this.addCursorNumeric(h):"string"==typeof h?this.addCursorRegExp(new RegExp(h)):h instanceof RegExp?this.addCursorRegExp(h):this.addCursorNumeric(),_?w.trim():w}spy(h,_=!0){let w="";return w="number"==typeof h?this.spyNumeric(h):"string"==typeof h?this.spyRegExp(new RegExp(h)):h instanceof RegExp?this.spyRegExp(h):this.spyNumeric(),_?w.trim():w}spyNumeric(h=1){return this.str.substring(this.cursor,this.cursor+h)}spyRegExp(h){const _=String(this).match(h);return _&&_.length&&_[0]||""}addCursorRegExp(h){if(!String(h).match(/^\/\^/))throw new Error(`all regexp used to move the cursor in the iterable string must start with ^. Entry regex: "${String(h)}"`);const _=this.spyRegExp(h);return this.addCursorNumeric(_.length||0)}addCursorNumeric(h=1){const _=this.spyNumeric(h);return this.cursor+=h,_}toTheEnd(){const h=this.str.substring(this.cursor);return this.cursor+=h.length,h}endContent(){return this.end()||!!this.spy(/^\s*$/,!1)}end(){return this.str.length<=this.cursor}}},6400:(ae,f,y)=>{"use strict";y.d(f,{C_:()=>N,io:()=>ee,m3:()=>x,w8:()=>G});var m=y(1528);typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"&&global;var p=function(V){return V.Unimplemented="UNIMPLEMENTED",V.Unavailable="UNAVAILABLE",V}(p||{});class I extends Error{constructor(R,L,ne){super(R),this.message=R,this.code=L,this.data=ne}}const P=V=>{var R,L,ne,oe,de;const Ce=V.CapacitorCustomPlatform||null,D=V.Capacitor||{},F=D.Plugins=D.Plugins||{},B=V.CapacitorPlatforms,te=(null===(R=B?.currentPlatform)||void 0===R?void 0:R.getPlatform)||(()=>null!==Ce?Ce.name:(V=>{var R,L;return V?.androidBridge?"android":null!==(L=null===(R=V?.webkit)||void 0===R?void 0:R.messageHandlers)&&void 0!==L&&L.bridge?"ios":"web"})(V)),fe=(null===(L=B?.currentPlatform)||void 0===L?void 0:L.isNativePlatform)||(()=>"web"!==te()),ye=(null===(ne=B?.currentPlatform)||void 0===ne?void 0:ne.isPluginAvailable)||(Te=>{const Le=Ae.get(Te);return!(!Le?.platforms.has(te())&&!Ee(Te))}),Ee=(null===(oe=B?.currentPlatform)||void 0===oe?void 0:oe.getPluginHeader)||(Te=>{var Le;return null===(Le=D.PluginHeaders)||void 0===Le?void 0:Le.find(Qe=>Qe.name===Te)}),Ae=new Map,Ve=(null===(de=B?.currentPlatform)||void 0===de?void 0:de.registerPlugin)||((Te,Le={})=>{const Qe=Ae.get(Te);if(Qe)return console.warn(`Capacitor plugin "${Te}" already registered. Cannot register plugins twice.`),Qe.proxy;const Dt=te(),pt=Ee(Te);let ut;const an=function(){var Pt=(0,m.c)(function*(){return!ut&&Dt in Le?ut=ut="function"==typeof Le[Dt]?yield Le[Dt]():Le[Dt]:null!==Ce&&!ut&&"web"in Le&&(ut=ut="function"==typeof Le.web?yield Le.web():Le.web),ut});return function(){return Pt.apply(this,arguments)}}(),Bn=Pt=>{let Ht;const Rn=(...fr)=>{const Ar=an().then(Fn=>{const eo=((Pt,Ht)=>{var Rn,fr;if(!pt){if(Pt)return null===(fr=Pt[Ht])||void 0===fr?void 0:fr.bind(Pt);throw new I(`"${Te}" plugin is not implemented on ${Dt}`,p.Unimplemented)}{const Ar=pt?.methods.find(Fn=>Ht===Fn.name);if(Ar)return"promise"===Ar.rtype?Fn=>D.nativePromise(Te,Ht.toString(),Fn):(Fn,eo)=>D.nativeCallback(Te,Ht.toString(),Fn,eo);if(Pt)return null===(Rn=Pt[Ht])||void 0===Rn?void 0:Rn.bind(Pt)}})(Fn,Pt);if(eo){const to=eo(...fr);return Ht=to?.remove,to}throw new I(`"${Te}.${Pt}()" is not implemented on ${Dt}`,p.Unimplemented)});return"addListener"===Pt&&(Ar.remove=(0,m.c)(function*(){return Ht()})),Ar};return Rn.toString=()=>`${Pt.toString()}() { [capacitor code] }`,Object.defineProperty(Rn,"name",{value:Pt,writable:!1,configurable:!1}),Rn},Dr=Bn("addListener"),Vr=Bn("removeListener"),Pc=(Pt,Ht)=>{const Rn=Dr({eventName:Pt},Ht),fr=function(){var Fn=(0,m.c)(function*(){const eo=yield Rn;Vr({eventName:Pt,callbackId:eo},Ht)});return function(){return Fn.apply(this,arguments)}}(),Ar=new Promise(Fn=>Rn.then(()=>Fn({remove:fr})));return Ar.remove=(0,m.c)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield fr()}),Ar},wo=new Proxy({},{get(Pt,Ht){switch(Ht){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return pt?Pc:Dr;case"removeListener":return Vr;default:return Bn(Ht)}}});return F[Te]=wo,Ae.set(Te,{name:Te,proxy:wo,platforms:new Set([...Object.keys(Le),...pt?[Dt]:[]])}),wo});return D.convertFileSrc||(D.convertFileSrc=Te=>Te),D.getPlatform=te,D.handleError=Te=>V.console.error(Te),D.isNativePlatform=fe,D.isPluginAvailable=ye,D.pluginMethodNoop=(Te,Le,Qe)=>Promise.reject(`${Qe} does not have an implementation of "${Le}".`),D.registerPlugin=Ve,D.Exception=I,D.DEBUG=!!D.DEBUG,D.isLoggingEnabled=!!D.isLoggingEnabled,D.platform=D.getPlatform(),D.isNative=D.isNativePlatform(),D},x=(V=>V.Capacitor=P(V))(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),N=x.registerPlugin;class G{constructor(R){this.listeners={},this.windowListeners={},R&&(console.warn(`Capacitor WebPlugin "${R.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=R)}addListener(R,L){var ne=this;this.listeners[R]||(this.listeners[R]=[]),this.listeners[R].push(L);const de=this.windowListeners[R];de&&!de.registered&&this.addWindowListener(de);const Ce=function(){var F=(0,m.c)(function*(){return ne.removeListener(R,L)});return function(){return F.apply(this,arguments)}}(),D=Promise.resolve({remove:Ce});return Object.defineProperty(D,"remove",{value:(F=(0,m.c)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield Ce()}),function(){return F.apply(this,arguments)})}),D;var F}removeAllListeners(){var R=this;return(0,m.c)(function*(){R.listeners={};for(const L in R.windowListeners)R.removeWindowListener(R.windowListeners[L]);R.windowListeners={}})()}notifyListeners(R,L){const ne=this.listeners[R];ne&&ne.forEach(oe=>oe(L))}hasListeners(R){return!!this.listeners[R].length}registerWindowListener(R,L){this.windowListeners[L]={registered:!1,windowEventName:R,pluginEventName:L,handler:ne=>{this.notifyListeners(L,ne)}}}unimplemented(R="not implemented"){return new x.Exception(R,p.Unimplemented)}unavailable(R="not available"){return new x.Exception(R,p.Unavailable)}removeListener(R,L){var ne=this;return(0,m.c)(function*(){const oe=ne.listeners[R];if(!oe)return;const de=oe.indexOf(L);ne.listeners[R].splice(de,1),ne.listeners[R].length||ne.removeWindowListener(ne.windowListeners[R])})()}addWindowListener(R){window.addEventListener(R.windowEventName,R.handler),R.registered=!0}removeWindowListener(R){R&&(window.removeEventListener(R.windowEventName,R.handler),R.registered=!1)}}const O=V=>encodeURIComponent(V).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),Q=V=>V.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class Y extends G{getCookies(){return(0,m.c)(function*(){const R=document.cookie,L={};return R.split(";").forEach(ne=>{if(ne.length<=0)return;let[oe,de]=ne.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");oe=Q(oe).trim(),de=Q(de).trim(),L[oe]=de}),L})()}setCookie(R){return(0,m.c)(function*(){try{const L=O(R.key),ne=O(R.value),oe=`; expires=${(R.expires||"").replace("expires=","")}`,de=(R.path||"/").replace("path=",""),Ce=null!=R.url&&R.url.length>0?`domain=${R.url}`:"";document.cookie=`${L}=${ne||""}${oe}; path=${de}; ${Ce};`}catch(L){return Promise.reject(L)}})()}deleteCookie(R){return(0,m.c)(function*(){try{document.cookie=`${R.key}=; Max-Age=0`}catch(L){return Promise.reject(L)}})()}clearCookies(){return(0,m.c)(function*(){try{const R=document.cookie.split(";")||[];for(const L of R)document.cookie=L.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)}catch(R){return Promise.reject(R)}})()}clearAllCookies(){var R=this;return(0,m.c)(function*(){try{yield R.clearCookies()}catch(L){return Promise.reject(L)}})()}}N("CapacitorCookies",{web:()=>new Y});const Z=function(){var V=(0,m.c)(function*(R){return new Promise((L,ne)=>{const oe=new FileReader;oe.onload=()=>{const de=oe.result;L(de.indexOf(",")>=0?de.split(",")[1]:de)},oe.onerror=de=>ne(de),oe.readAsDataURL(R)})});return function(L){return V.apply(this,arguments)}}(),ee=(V,R={})=>{const L=Object.assign({method:V.method||"GET",headers:V.headers},R),oe=((V={})=>{const R=Object.keys(V);return Object.keys(V).map(oe=>oe.toLocaleLowerCase()).reduce((oe,de,Ce)=>(oe[de]=V[R[Ce]],oe),{})})(V.headers)["content-type"]||"";if("string"==typeof V.data)L.body=V.data;else if(oe.includes("application/x-www-form-urlencoded")){const de=new URLSearchParams;for(const[Ce,D]of Object.entries(V.data||{}))de.set(Ce,D);L.body=de.toString()}else if(oe.includes("multipart/form-data")||V.data instanceof FormData){const de=new FormData;if(V.data instanceof FormData)V.data.forEach((D,F)=>{de.append(F,D)});else for(const D of Object.keys(V.data))de.append(D,V.data[D]);L.body=de;const Ce=new Headers(L.headers);Ce.delete("content-type"),L.headers=Ce}else(oe.includes("application/json")||"object"==typeof V.data)&&(L.body=JSON.stringify(V.data));return L};class z extends G{request(R){return(0,m.c)(function*(){const L=ee(R,R.webFetchExtra),ne=((V,R=!0)=>V?Object.entries(V).reduce((ne,oe)=>{const[de,Ce]=oe;let D,F;return Array.isArray(Ce)?(F="",Ce.forEach(B=>{D=R?encodeURIComponent(B):B,F+=`${de}=${D}&`}),F.slice(0,-1)):(D=R?encodeURIComponent(Ce):Ce,F=`${de}=${D}`),`${ne}&${F}`},"").substr(1):null)(R.params,R.shouldEncodeUrlParams),oe=ne?`${R.url}?${ne}`:R.url,de=yield fetch(oe,L),Ce=de.headers.get("content-type")||"";let F,B,{responseType:D="text"}=de.ok?R:{};switch(Ce.includes("application/json")&&(D="json"),D){case"arraybuffer":case"blob":B=yield de.blob(),F=yield Z(B);break;case"json":F=yield de.json();break;default:F=yield de.text()}const j={};return de.headers.forEach((te,ie)=>{j[ie]=te}),{data:F,headers:j,status:de.status,url:de.url}})()}get(R){var L=this;return(0,m.c)(function*(){return L.request(Object.assign(Object.assign({},R),{method:"GET"}))})()}post(R){var L=this;return(0,m.c)(function*(){return L.request(Object.assign(Object.assign({},R),{method:"POST"}))})()}put(R){var L=this;return(0,m.c)(function*(){return L.request(Object.assign(Object.assign({},R),{method:"PUT"}))})()}patch(R){var L=this;return(0,m.c)(function*(){return L.request(Object.assign(Object.assign({},R),{method:"PATCH"}))})()}delete(R){var L=this;return(0,m.c)(function*(){return L.request(Object.assign(Object.assign({},R),{method:"DELETE"}))})()}}N("CapacitorHttp",{web:()=>new z})},5404:(ae,f,y)=>{"use strict";y.d(f,{Gq:()=>h,Y9:()=>m});var m=function(k){return k.Documents="DOCUMENTS",k.Data="DATA",k.Library="LIBRARY",k.Cache="CACHE",k.External="EXTERNAL",k.ExternalStorage="EXTERNAL_STORAGE",k}(m||{}),h=function(k){return k.UTF8="utf8",k.ASCII="ascii",k.UTF16="utf16",k}(h||{})},5500:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0});const h=y(1316),_=y(4920),w=y(4924),k=y(1640),S=y(7760),$=y(5496),p=y(7312),I=y(384),H=y(3984),P=y(7428);class C extends _.EncryptedURIDecrypter{constructor(b,W){super(b,W)}decrypt(){var b=this;return m(function*(){const W=(0,p.getInitializationVector)(b.decoded),G=$.base64.decode(b.decoded.cipher),T=(0,P.getSalt)(G,b.decoded?.params),O=(0,I.kdf)(b.password,T.salt,b.decoded),Q=yield(0,k.cbc)(O,(0,w.hexToBytes)(W)).decrypt(T.cipher);return(0,w.bytesToUtf8)(Q)})()}}let x=class extends _.EncryptedURIEncrypter{constructor(b){super(b)}encrypt(){var b=this;return m(function*(){const W=(0,p.getInitializationVector)(b.params),G=(0,w.hexToBytes)(W),T=(0,w.utf8ToBytes)(b.params.content),Q=(0,S.randomBytes)(8),Y=(0,I.kdf)(b.params.password,Q,b.params),X=yield(0,k.cbc)(Y,G).encrypt(T);return Promise.resolve({cipher:$.base64.encode(H.OpenSSLSerializer.encode(X,Q)),params:{iv:W}})})()}};x=h.__decorate([(0,_.EncryptedURIAlgorithm)({algorithm:"aes/cbc",decrypter:C})],x),_.EncryptedURI.setAlgorithm("",x,C),_.EncryptedURI.setAlgorithm("aes",x,C)},3288:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0});const h=y(1316),_=y(4920),w=y(4924),k=y(1640),S=y(7760),$=y(5496),p=y(7312),I=y(384),H=y(3984),P=y(7428);let x=class extends _.EncryptedURIEncrypter{constructor(b){super(b)}encrypt(){var b=this;return m(function*(){const W=(0,p.getInitializationVector)(b.params),G=(0,w.hexToBytes)(W),T=(0,w.utf8ToBytes)(b.params.content),Q=(0,S.randomBytes)(8),Y=(0,I.kdf)(b.params.password,Q,b.params),X=yield(0,k.ctr)(Y,G).encrypt(T);return Promise.resolve({cipher:$.base64.encode(H.OpenSSLSerializer.encode(X,Q)),params:{iv:W}})})()}};x=h.__decorate([(0,_.EncryptedURIAlgorithm)({algorithm:"aes/ctr",decrypter:class C extends _.EncryptedURIDecrypter{constructor(b,W){super(b,W)}decrypt(){var b=this;return m(function*(){const W=(0,p.getInitializationVector)(b.decoded),G=$.base64.decode(b.decoded.cipher),T=(0,P.getSalt)(G,b.decoded?.params),O=(0,I.kdf)(b.password,T.salt,b.decoded),Q=yield(0,k.ctr)(O,(0,w.hexToBytes)(W)).decrypt(T.cipher);return(0,w.bytesToUtf8)(Q)})()}}})],x)},6032:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0});const h=y(1316),_=y(4920),w=y(888),k=y(4924),S=y(7760),$=y(5496),p=y(384),I=y(3984),H=y(7428);let C=class extends _.EncryptedURIEncrypter{constructor(N){super(N)}encrypt(){var N=this;return m(function*(){const b=(0,k.utf8ToBytes)(N.params.content),G=(0,S.randomBytes)(8),T=(0,p.kdf)(N.params.password,G,N.params),O=yield(0,w.ecb)(T).encrypt(b),Q=$.base64.encode(I.OpenSSLSerializer.encode(O,G));return Promise.resolve({cipher:Q})})()}};C=h.__decorate([(0,_.EncryptedURIAlgorithm)({algorithm:"aes/ecb",decrypter:class P extends _.EncryptedURIDecrypter{constructor(N,b){super(N,b)}decrypt(){var N=this;return m(function*(){const b=$.base64.decode(N.decoded.cipher||""),W=(0,H.getSalt)(b,N.decoded?.params),G=(0,p.kdf)(N.password,W.salt,N.decoded),T=yield(0,w.ecb)(G).decrypt(W.cipher);return(0,k.bytesToUtf8)(T)})()}}})],C)},5116:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0});const h=y(1316),_=y(4920),w=y(4924),k=y(1640),S=y(7760),$=y(5496),p=y(384),I=y(5944),H=y(3984),P=y(7428);let x=class extends _.EncryptedURIEncrypter{constructor(b){super(b)}encrypt(){var b=this;return m(function*(){const W=(0,I.getNumberOnce)(b.params),G=(0,w.hexToBytes)(W),T=(0,w.utf8ToBytes)(b.params.content),Q=(0,S.randomBytes)(8),Y=(0,p.kdf)(b.params.password,Q,b.params),X=yield(0,k.gcm)(Y,G,new Uint8Array(0)).encrypt(T);return Promise.resolve({cipher:$.base64.encode(H.OpenSSLSerializer.encode(X,Q)),params:{no:W}})})()}};x=h.__decorate([(0,_.EncryptedURIAlgorithm)({algorithm:"aes/gcm",decrypter:class C extends _.EncryptedURIDecrypter{constructor(b,W){super(b,W)}decrypt(){var b=this;return m(function*(){const W=(0,I.getNumberOnce)(b.decoded),G=$.base64.decode(b.decoded.cipher),T=(0,P.getSalt)(G,b.decoded?.params),O=(0,p.kdf)(b.password,T.salt,b.decoded),Q=yield(0,k.gcm)(O,(0,w.hexToBytes)(W),new Uint8Array(0)).decrypt(T.cipher);return(0,w.bytesToUtf8)(Q)})()}}})],x)},9564:(ae,f,y)=>{"use strict";y(2564),y(5500),y(3288),y(6032),y(5116),y(1324)},7312:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getInitializationVector=void 0;const m=y(4924),h=y(1640);f.getInitializationVector=function _(w){if(w){const S=w.params?.iv||"queryString"in w&&w.queryString;if(S)return S}return(0,m.bytesToHex)((0,h.randomBytes)(16))}},384:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.kdf=void 0;const m=y(4920),h=y(1864),_=y(1992);f.kdf=function w(k,S,$){const p=m.EncryptedURI.getKDFParams($);if(8!==S.length)throw new Error(`salt length must be 8 bytes, ${S.length} bytes was given`);if("pbkdf2"===p.kdf)return(0,h.pbkdf2)(_.HashSupport.get(p.hasher),k,S,{c:p.rounds,dkLen:p.derivateKeyLength});throw new Error(`kdf "${p.kdf}" not supported`)}},5944:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getNumberOnce=void 0;const m=y(4924),h=y(1640);f.getNumberOnce=function _(w){if(w){const S=w.params?.no||"queryString"in w&&w.queryString;if(S)return S}return(0,m.bytesToHex)((0,h.randomBytes)(12))}},3984:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.OpenSSLSerializer=void 0;const m=y(7760);class h{static encode(w,k){return Uint8Array.from([...this.saltedHeader,...k,...w])}static decode(w){const S=Array.from(w);if((0,m.bytesToHex)(w.slice(0,8))===(0,m.bytesToHex)(this.saltedHeader)){S.splice(0,8);const $=S.splice(0,8);return{salt:Uint8Array.from($),cipher:Uint8Array.from(S)}}return{cipher:w}}}f.OpenSSLSerializer=h,h.saltedHeader=Uint8Array.from([83,97,108,116,101,100,95,95])},7428:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getSalt=void 0;const m=y(4924),h=y(3984);f.getSalt=function _(w,k){const S=h.OpenSSLSerializer.decode(w);if(S.salt)return{salt:S.salt,cipher:S.cipher};if(k?.s)return{salt:(0,m.hexToBytes)(k.s),cipher:w};throw new Error("salt not found, can't open cipher")}},1324:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0});const h=y(1316),_=y(4920),w=y(888),k=y(4924),S=y(7760),$=y(5496),p=y(384),I=y(5944),H=y(3984),P=y(7428);let x=class extends _.EncryptedURIEncrypter{constructor(b){super(b)}encrypt(){var b=this;return m(function*(){const W=(0,I.getNumberOnce)(b.params),G=(0,k.hexToBytes)(W),T=(0,k.utf8ToBytes)(b.params.content),Q=(0,S.randomBytes)(8),Y=(0,p.kdf)(b.params.password,Q,b.params),X=yield(0,w.siv)(Y,G).encrypt(T);return Promise.resolve({cipher:$.base64.encode(H.OpenSSLSerializer.encode(X,Q)),params:{no:W}})})()}};x=h.__decorate([(0,_.EncryptedURIAlgorithm)({algorithm:"aes/siv",decrypter:class C extends _.EncryptedURIDecrypter{constructor(b,W){super(b,W)}decrypt(){var b=this;return m(function*(){const W=(0,I.getNumberOnce)(b.decoded),G=$.base64.decode(b.decoded.cipher),T=(0,P.getSalt)(G,b.decoded?.params),O=(0,p.kdf)(b.password,T.salt,b.decoded),Q=yield(0,w.siv)(O,(0,k.hexToBytes)(W)).decrypt(T.cipher);return(0,k.bytesToUtf8)(Q)})()}}})],x)},1992:(ae,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.HashSupport=void 0;class y{static addSupport(h,_){this.supported[h]?console.warn(`HashSupport: "${h}" hasher already loaded, not overriding`):this.supported[h]=_}static listSupported(){return Object.keys(this.supported)}static get(h){const _=this.supported[h];if(!_)throw new Error(`"${h}" not supported`);return _}}f.HashSupport=y,y.supported={}},9872:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(1316);m.__exportStar(y(7224),f),m.__exportStar(y(7381),f),m.__exportStar(y(7624),f),m.__exportStar(y(5432),f),m.__exportStar(y(2564),f),m.__exportStar(y(9844),f),m.__exportStar(y(5656),f),m.__exportStar(y(4861),f),m.__exportStar(y(8e3),f),m.__exportStar(y(7100),f),m.__exportStar(y(2496),f),m.__exportStar(y(6788),f)},7224:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(704);y(1992).HashSupport.addSupport("keccak_224",m.keccak_224)},7381:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(704);y(1992).HashSupport.addSupport("keccak_256",m.keccak_256)},7624:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(704);y(1992).HashSupport.addSupport("keccak_384",m.keccak_384)},5432:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(704);y(1992).HashSupport.addSupport("keccak_512",m.keccak_512)},2564:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(5636);y(1992).HashSupport.addSupport("sha256",m.sha256)},9844:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(8736);y(1992).HashSupport.addSupport("sha384",m.sha384)},5656:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(704);y(1992).HashSupport.addSupport("sha3_224",m.sha3_224)},4861:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(704);y(1992).HashSupport.addSupport("sha3_256",m.sha3_256)},8e3:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(704);y(1992).HashSupport.addSupport("sha3_384",m.sha3_384)},7100:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(704);y(1992).HashSupport.addSupport("sha3_512",m.sha3_512)},2496:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(8736);y(1992).HashSupport.addSupport("sha512",m.sha512)},6788:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(8736);y(1992).HashSupport.addSupport("sha512_256",m.sha512_256)},3608:(ae,f)=>{"use strict";function y(p){if(!Number.isSafeInteger(p)||p<0)throw new Error(`positive integer expected, not ${p}`)}function m(p){if("boolean"!=typeof p)throw new Error(`boolean expected, not ${p}`)}function h(p){return p instanceof Uint8Array||null!=p&&"object"==typeof p&&"Uint8Array"===p.constructor.name}function _(p,...I){if(!h(p))throw new Error("Uint8Array expected");if(I.length>0&&!I.includes(p.length))throw new Error(`Uint8Array expected of length ${I}, not of length=${p.length}`)}function w(p){if("function"!=typeof p||"function"!=typeof p.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");y(p.outputLen),y(p.blockLen)}function k(p,I=!0){if(p.destroyed)throw new Error("Hash instance has been destroyed");if(I&&p.finished)throw new Error("Hash#digest() has already been called")}function S(p,I){_(p);const H=I.outputLen;if(p.length{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.HashMD=f.Maj=f.Chi=void 0;const m=y(3608),h=y(7760);f.Chi=($,p,I)=>$&p^~$&I,f.Maj=($,p,I)=>$&p^$&I^p&I,f.HashMD=class S extends h.Hash{constructor(p,I,H,P){super(),this.blockLen=p,this.outputLen=I,this.padOffset=H,this.isLE=P,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(p),this.view=(0,h.createView)(this.buffer)}update(p){(0,m.exists)(this);const{view:I,buffer:H,blockLen:P}=this,C=(p=(0,h.toBytes)(p)).length;for(let x=0;xP-x&&(this.process(H,0),x=0);for(let T=x;T>P&C),N=Number(I&C),W=H?0:4;$.setUint32(p+(H?4:0),x,H),$.setUint32(p+W,N,H)})(H,P-8,BigInt(8*this.length),C),this.process(H,0);const N=(0,h.createView)(p),b=this.outputLen;if(b%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const W=b/4,G=this.get();if(W>G.length)throw new Error("_sha2: outputLen bigger than state");for(let T=0;T{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.add5L=f.add5H=f.add4H=f.add4L=f.add3H=f.add3L=f.add=f.rotlBL=f.rotlBH=f.rotlSL=f.rotlSH=f.rotr32L=f.rotr32H=f.rotrBL=f.rotrBH=f.rotrSL=f.rotrSH=f.shrSL=f.shrSH=f.toBig=f.split=f.fromBig=void 0;const y=BigInt(2**32-1),m=BigInt(32);function h(J,ee=!1){return ee?{h:Number(J&y),l:Number(J>>m&y)}:{h:0|Number(J>>m&y),l:0|Number(J&y)}}function _(J,ee=!1){let z=new Uint32Array(J.length),M=new Uint32Array(J.length);for(let V=0;VBigInt(J>>>0)<>>0);f.toBig=w;const k=(J,ee,z)=>J>>>z;f.shrSH=k;const S=(J,ee,z)=>J<<32-z|ee>>>z;f.shrSL=S;const $=(J,ee,z)=>J>>>z|ee<<32-z;f.rotrSH=$;const p=(J,ee,z)=>J<<32-z|ee>>>z;f.rotrSL=p;const I=(J,ee,z)=>J<<64-z|ee>>>z-32;f.rotrBH=I;const H=(J,ee,z)=>J>>>z-32|ee<<64-z;f.rotrBL=H;const P=(J,ee)=>ee;f.rotr32H=P;const C=(J,ee)=>J;f.rotr32L=C;const x=(J,ee,z)=>J<>>32-z;f.rotlSH=x;const N=(J,ee,z)=>ee<>>32-z;f.rotlSL=N;const b=(J,ee,z)=>ee<>>64-z;f.rotlBH=b;const W=(J,ee,z)=>J<>>64-z;function G(J,ee,z,M){const V=(ee>>>0)+(M>>>0);return{h:J+z+(V/2**32|0)|0,l:0|V}}f.rotlBL=W,f.add=G;const T=(J,ee,z)=>(J>>>0)+(ee>>>0)+(z>>>0);f.add3L=T;const O=(J,ee,z,M)=>ee+z+M+(J/2**32|0)|0;f.add3H=O;const Q=(J,ee,z,M)=>(J>>>0)+(ee>>>0)+(z>>>0)+(M>>>0);f.add4L=Q;const Y=(J,ee,z,M,V)=>ee+z+M+V+(J/2**32|0)|0;f.add4H=Y;const X=(J,ee,z,M,V)=>(J>>>0)+(ee>>>0)+(z>>>0)+(M>>>0)+(V>>>0);f.add5L=X;const Z=(J,ee,z,M,V,R)=>ee+z+M+V+R+(J/2**32|0)|0;f.add5H=Z,f.default={fromBig:h,split:_,toBig:w,shrSH:k,shrSL:S,rotrSH:$,rotrSL:p,rotrBH:I,rotrBL:H,rotr32H:P,rotr32L:C,rotlSH:x,rotlSL:N,rotlBH:b,rotlBL:W,add:G,add3L:T,add3H:O,add4L:Q,add4H:Y,add5H:Z,add5L:X}},7888:(ae,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.crypto=void 0,f.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},3880:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.hmac=f.HMAC=void 0;const m=y(3608),h=y(7760);class _ extends h.Hash{constructor(S,$){super(),this.finished=!1,this.destroyed=!1,(0,m.hash)(S);const p=(0,h.toBytes)($);if(this.iHash=S.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const I=this.blockLen,H=new Uint8Array(I);H.set(p.length>I?S.create().update(p).digest():p);for(let P=0;Pnew _(k,S).update($).digest(),f.hmac.create=(k,S)=>new _(k,S)},1864:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0}),f.pbkdf2Async=f.pbkdf2=void 0;const h=y(3608),_=y(3880),w=y(7760);function k(H,P,C,x){(0,h.hash)(H);const N=(0,w.checkOpts)({dkLen:32,asyncTick:10},x),{c:b,dkLen:W,asyncTick:G}=N;if((0,h.number)(b),(0,h.number)(W),(0,h.number)(G),b<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const T=(0,w.toBytes)(P),O=(0,w.toBytes)(C),Q=new Uint8Array(W),Y=_.hmac.create(H,T),X=Y._cloneInto().update(O);return{c:b,dkLen:W,asyncTick:G,DK:Q,PRF:Y,PRFSalt:X}}function S(H,P,C,x,N){return H.destroy(),P.destroy(),x&&x.destroy(),N.fill(0),C}function I(){return(I=m(function*(H,P,C,x){const{c:N,dkLen:b,asyncTick:W,DK:G,PRF:T,PRFSalt:O}=k(H,P,C,x);let Q;const Y=new Uint8Array(4),X=(0,w.createView)(Y),Z=new Uint8Array(T.outputLen);for(let re=1,J=0;J{T._cloneInto(Q).update(Z).digestInto(Z);for(let z=0;z{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.sha224=f.sha256=void 0;const m=y(1984),h=y(7760),_=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),w=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),k=new Uint32Array(64);class S extends m.HashMD{constructor(){super(64,32,8,!1),this.A=0|w[0],this.B=0|w[1],this.C=0|w[2],this.D=0|w[3],this.E=0|w[4],this.F=0|w[5],this.G=0|w[6],this.H=0|w[7]}get(){const{A:I,B:H,C:P,D:C,E:x,F:N,G:b,H:W}=this;return[I,H,P,C,x,N,b,W]}set(I,H,P,C,x,N,b,W){this.A=0|I,this.B=0|H,this.C=0|P,this.D=0|C,this.E=0|x,this.F=0|N,this.G=0|b,this.H=0|W}process(I,H){for(let O=0;O<16;O++,H+=4)k[O]=I.getUint32(H,!1);for(let O=16;O<64;O++){const Q=k[O-15],Y=k[O-2],X=(0,h.rotr)(Q,7)^(0,h.rotr)(Q,18)^Q>>>3,Z=(0,h.rotr)(Y,17)^(0,h.rotr)(Y,19)^Y>>>10;k[O]=Z+k[O-7]+X+k[O-16]|0}let{A:P,B:C,C:x,D:N,E:b,F:W,G,H:T}=this;for(let O=0;O<64;O++){const Y=T+((0,h.rotr)(b,6)^(0,h.rotr)(b,11)^(0,h.rotr)(b,25))+(0,m.Chi)(b,W,G)+_[O]+k[O]|0,Z=((0,h.rotr)(P,2)^(0,h.rotr)(P,13)^(0,h.rotr)(P,22))+(0,m.Maj)(P,C,x)|0;T=G,G=W,W=b,b=N+Y|0,N=x,x=C,C=P,P=Y+Z|0}P=P+this.A|0,C=C+this.B|0,x=x+this.C|0,N=N+this.D|0,b=b+this.E|0,W=W+this.F|0,G=G+this.G|0,T=T+this.H|0,this.set(P,C,x,N,b,W,G,T)}roundClean(){k.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class $ extends S{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}f.sha256=(0,h.wrapConstructor)(()=>new S),f.sha224=(0,h.wrapConstructor)(()=>new $)},704:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.shake256=f.shake128=f.keccak_512=f.keccak_384=f.keccak_256=f.keccak_224=f.sha3_512=f.sha3_384=f.sha3_256=f.sha3_224=f.Keccak=f.keccakP=void 0;const m=y(3608),h=y(2640),_=y(7760),w=[],k=[],S=[],$=BigInt(0),p=BigInt(1),I=BigInt(2),H=BigInt(7),P=BigInt(256),C=BigInt(113);for(let Y=0,X=p,Z=1,re=0;Y<24;Y++){[Z,re]=[re,(2*Z+3*re)%5],w.push(2*(5*re+Z)),k.push((Y+1)*(Y+2)/2%64);let J=$;for(let ee=0;ee<7;ee++)X=(X<>H)*C)%P,X&I&&(J^=p<<(p<Z>32?(0,h.rotlBH)(Y,X,Z):(0,h.rotlSH)(Y,X,Z),W=(Y,X,Z)=>Z>32?(0,h.rotlBL)(Y,X,Z):(0,h.rotlSL)(Y,X,Z);function G(Y,X=24){const Z=new Uint32Array(10);for(let re=24-X;re<24;re++){for(let z=0;z<10;z++)Z[z]=Y[z]^Y[z+10]^Y[z+20]^Y[z+30]^Y[z+40];for(let z=0;z<10;z+=2){const M=(z+8)%10,V=(z+2)%10,R=Z[V],L=Z[V+1],ne=b(R,L,1)^Z[M],oe=W(R,L,1)^Z[M+1];for(let de=0;de<50;de+=10)Y[z+de]^=ne,Y[z+de+1]^=oe}let J=Y[2],ee=Y[3];for(let z=0;z<24;z++){const M=k[z],V=b(J,ee,M),R=W(J,ee,M),L=w[z];J=Y[L],ee=Y[L+1],Y[L]=V,Y[L+1]=R}for(let z=0;z<50;z+=10){for(let M=0;M<10;M++)Z[M]=Y[z+M];for(let M=0;M<10;M++)Y[z+M]^=~Z[(M+2)%10]&Z[(M+4)%10]}Y[0]^=x[re],Y[1]^=N[re]}Z.fill(0)}f.keccakP=G;class T extends _.Hash{constructor(X,Z,re,J=!1,ee=24){if(super(),this.blockLen=X,this.suffix=Z,this.outputLen=re,this.enableXOF=J,this.rounds=ee,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,m.number)(re),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,_.u32)(this.state)}keccak(){_.isLE||(0,_.byteSwap32)(this.state32),G(this.state32,this.rounds),_.isLE||(0,_.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(X){(0,m.exists)(this);const{blockLen:Z,state:re}=this,J=(X=(0,_.toBytes)(X)).length;for(let ee=0;ee=re&&this.keccak();const z=Math.min(re-this.posOut,ee-J);X.set(Z.subarray(this.posOut,this.posOut+z),J),this.posOut+=z,J+=z}return X}xofInto(X){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(X)}xof(X){return(0,m.number)(X),this.xofInto(new Uint8Array(X))}digestInto(X){if((0,m.output)(X,this),this.finished)throw new Error("digest() was already called");return this.writeInto(X),this.destroy(),X}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(X){const{blockLen:Z,suffix:re,outputLen:J,rounds:ee,enableXOF:z}=this;return X||(X=new T(Z,re,J,z,ee)),X.state32.set(this.state32),X.pos=this.pos,X.posOut=this.posOut,X.finished=this.finished,X.rounds=ee,X.suffix=re,X.outputLen=J,X.enableXOF=z,X.destroyed=this.destroyed,X}}f.Keccak=T;const O=(Y,X,Z)=>(0,_.wrapConstructor)(()=>new T(X,Y,Z));f.sha3_224=O(6,144,28),f.sha3_256=O(6,136,32),f.sha3_384=O(6,104,48),f.sha3_512=O(6,72,64),f.keccak_224=O(1,144,28),f.keccak_256=O(1,136,32),f.keccak_384=O(1,104,48),f.keccak_512=O(1,72,64);const Q=(Y,X,Z)=>(0,_.wrapXOFConstructorWithOpts)((re={})=>new T(X,Y,void 0===re.dkLen?Z:re.dkLen,!0));f.shake128=Q(31,168,16),f.shake256=Q(31,136,32)},8736:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.sha384=f.sha512_256=f.sha512_224=f.sha512=f.SHA512=void 0;const m=y(1984),h=y(2640),_=y(7760),[w,k]=h.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(C=>BigInt(C))),S=new Uint32Array(80),$=new Uint32Array(80);class p extends m.HashMD{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:x,Al:N,Bh:b,Bl:W,Ch:G,Cl:T,Dh:O,Dl:Q,Eh:Y,El:X,Fh:Z,Fl:re,Gh:J,Gl:ee,Hh:z,Hl:M}=this;return[x,N,b,W,G,T,O,Q,Y,X,Z,re,J,ee,z,M]}set(x,N,b,W,G,T,O,Q,Y,X,Z,re,J,ee,z,M){this.Ah=0|x,this.Al=0|N,this.Bh=0|b,this.Bl=0|W,this.Ch=0|G,this.Cl=0|T,this.Dh=0|O,this.Dl=0|Q,this.Eh=0|Y,this.El=0|X,this.Fh=0|Z,this.Fl=0|re,this.Gh=0|J,this.Gl=0|ee,this.Hh=0|z,this.Hl=0|M}process(x,N){for(let L=0;L<16;L++,N+=4)S[L]=x.getUint32(N),$[L]=x.getUint32(N+=4);for(let L=16;L<80;L++){const ne=0|S[L-15],oe=0|$[L-15],de=h.default.rotrSH(ne,oe,1)^h.default.rotrSH(ne,oe,8)^h.default.shrSH(ne,oe,7),Ce=h.default.rotrSL(ne,oe,1)^h.default.rotrSL(ne,oe,8)^h.default.shrSL(ne,oe,7),D=0|S[L-2],F=0|$[L-2],B=h.default.rotrSH(D,F,19)^h.default.rotrBH(D,F,61)^h.default.shrSH(D,F,6),j=h.default.rotrSL(D,F,19)^h.default.rotrBL(D,F,61)^h.default.shrSL(D,F,6),te=h.default.add4L(Ce,j,$[L-7],$[L-16]),ie=h.default.add4H(te,de,B,S[L-7],S[L-16]);S[L]=0|ie,$[L]=0|te}let{Ah:b,Al:W,Bh:G,Bl:T,Ch:O,Cl:Q,Dh:Y,Dl:X,Eh:Z,El:re,Fh:J,Fl:ee,Gh:z,Gl:M,Hh:V,Hl:R}=this;for(let L=0;L<80;L++){const ne=h.default.rotrSH(Z,re,14)^h.default.rotrSH(Z,re,18)^h.default.rotrBH(Z,re,41),oe=h.default.rotrSL(Z,re,14)^h.default.rotrSL(Z,re,18)^h.default.rotrBL(Z,re,41),de=Z&J^~Z&z,D=h.default.add5L(R,oe,re&ee^~re&M,k[L],$[L]),F=h.default.add5H(D,V,ne,de,w[L],S[L]),B=0|D,j=h.default.rotrSH(b,W,28)^h.default.rotrBH(b,W,34)^h.default.rotrBH(b,W,39),te=h.default.rotrSL(b,W,28)^h.default.rotrBL(b,W,34)^h.default.rotrBL(b,W,39),ie=b&G^b&O^G&O,fe=W&T^W&Q^T&Q;V=0|z,R=0|M,z=0|J,M=0|ee,J=0|Z,ee=0|re,({h:Z,l:re}=h.default.add(0|Y,0|X,0|F,0|B)),Y=0|O,X=0|Q,O=0|G,Q=0|T,G=0|b,T=0|W;const ce=h.default.add3L(B,te,fe);b=h.default.add3H(ce,F,j,ie),W=0|ce}({h:b,l:W}=h.default.add(0|this.Ah,0|this.Al,0|b,0|W)),({h:G,l:T}=h.default.add(0|this.Bh,0|this.Bl,0|G,0|T)),({h:O,l:Q}=h.default.add(0|this.Ch,0|this.Cl,0|O,0|Q)),({h:Y,l:X}=h.default.add(0|this.Dh,0|this.Dl,0|Y,0|X)),({h:Z,l:re}=h.default.add(0|this.Eh,0|this.El,0|Z,0|re)),({h:J,l:ee}=h.default.add(0|this.Fh,0|this.Fl,0|J,0|ee)),({h:z,l:M}=h.default.add(0|this.Gh,0|this.Gl,0|z,0|M)),({h:V,l:R}=h.default.add(0|this.Hh,0|this.Hl,0|V,0|R)),this.set(b,W,G,T,O,Q,Y,X,Z,re,J,ee,z,M,V,R)}roundClean(){S.fill(0),$.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}f.SHA512=p;class I extends p{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class H extends p{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class P extends p{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}f.sha512=(0,_.wrapConstructor)(()=>new p),f.sha512_224=(0,_.wrapConstructor)(()=>new I),f.sha512_256=(0,_.wrapConstructor)(()=>new H),f.sha384=(0,_.wrapConstructor)(()=>new P)},7760:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0}),f.randomBytes=f.wrapXOFConstructorWithOpts=f.wrapConstructorWithOpts=f.wrapConstructor=f.checkOpts=f.Hash=f.concatBytes=f.toBytes=f.utf8ToBytes=f.asyncLoop=f.nextTick=f.hexToBytes=f.bytesToHex=f.byteSwap32=f.byteSwapIfBE=f.byteSwap=f.isLE=f.rotl=f.rotr=f.createView=f.u32=f.u8=f.isBytes=void 0;const h=y(7888),_=y(3608);f.isBytes=function w(R){return R instanceof Uint8Array||null!=R&&"object"==typeof R&&"Uint8Array"===R.constructor.name},f.u8=R=>new Uint8Array(R.buffer,R.byteOffset,R.byteLength),f.u32=R=>new Uint32Array(R.buffer,R.byteOffset,Math.floor(R.byteLength/4)),f.createView=R=>new DataView(R.buffer,R.byteOffset,R.byteLength),f.rotr=(R,L)=>R<<32-L|R>>>L,f.rotl=(R,L)=>R<>>32-L>>>0,f.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],f.byteSwap=R=>R<<24&4278190080|R<<8&16711680|R>>>8&65280|R>>>24&255,f.byteSwapIfBE=f.isLE?R=>R:R=>(0,f.byteSwap)(R),f.byteSwap32=function P(R){for(let L=0;LL.toString(16).padStart(2,"0"));f.bytesToHex=function x(R){(0,_.bytes)(R);let L="";for(let ne=0;ne=N__0&&R<=N__9?R-N__0:R>=N__A&&R<=N__F?R-(N__A-10):R>=N__a&&R<=N__f?R-(N__a-10):void 0}function O(){return(O=m(function*(R,L,ne){let oe=Date.now();for(let de=0;de=0&&CeR().update(Y(oe)).digest(),ne=R();return L.outputLen=ne.outputLen,L.blockLen=ne.blockLen,L.create=()=>R(),L},f.wrapConstructorWithOpts=function z(R){const L=(oe,de)=>R(de).update(Y(oe)).digest(),ne=R({});return L.outputLen=ne.outputLen,L.blockLen=ne.blockLen,L.create=oe=>R(oe),L},f.wrapXOFConstructorWithOpts=function M(R){const L=(oe,de)=>R(de).update(Y(oe)).digest(),ne=R({});return L.outputLen=ne.outputLen,L.blockLen=ne.blockLen,L.create=oe=>R(oe),L},f.randomBytes=function V(R=32){if(h.crypto&&"function"==typeof h.crypto.getRandomValues)return h.crypto.getRandomValues(new Uint8Array(R));throw new Error("crypto.getRandomValues must be defined")}},4920:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0}),f.EncryptedURI=f.EncryptedURIAlgorithm=f.EncryptedURIDecrypter=f.EncryptedURIEncrypter=f.EncryptedURIParser=void 0;const h=y(4400);class _{match(C){return/^encrypted:/.test(C)}}class w{constructor(){this.ENCRYPTED_URI_MATCHER=/^encrypted:/,this.QUERY_STRING_MATCHER=/^\?[^;]*;/}decode(C){const x={cipher:""},N=new h.IterableString(C);return this.checkURI(N),this.identifyAlgorithm(N,x),this.readQueryString(N,x),x.cipher=N.toTheEnd().replace(/^;/,""),x}checkURI(C){if(!C.addCursor(this.ENCRYPTED_URI_MATCHER))throw new Error("not an encrypted uri")}identifyAlgorithm(C,x){const b=C.addCursor(/^[^?;]*/);b&&(x.algorithm=b)}readQueryString(C,x){const b=C.addCursor(this.QUERY_STRING_MATCHER),W=b.replace(/^\?|;$/g,"");if(x.queryString=W,/^\?([^=]+=[^=]+)(&([^=]+=[^=]+))*[;]$/.test(b)){const G=new URL(`encrypted://_?${W}`),T={};G.searchParams.forEach((O,Q)=>{T[Q]=decodeURI(String(O))}),Object.keys(T).length&&(x.params=T)}}}class k{static propertyShouldBeIgnored(C,x,N){const b={...H.defaultParams,...C},W=H.getConfigsOfDefaults(N);return!(b[x]&&(!W.ignoreDefaultValues||H.defaultParams[x]!==b[x]))}static castKDFConfigToParams(C){const x={};return C.kdf&&(this.propertyShouldBeIgnored(C.kdf,"kdf",C.config)||(x.kdf=C.kdf.kdf),this.propertyShouldBeIgnored(C.kdf,"hasher",C.config)||(x.h=C.kdf.hasher),this.propertyShouldBeIgnored(C.kdf,"derivateKeyLength",C.config)||(x.dklen=String(C.kdf.derivateKeyLength)),this.propertyShouldBeIgnored(C.kdf,"rounds",C.config)||(x.c=String(C.kdf.rounds))),x}encode(C){const x=this.encodeAlgorithm(C),N=this.encodeParameters(C);return N?`encrypted:${x}?${N};${C.cipher}`:`encrypted:${x};${C.cipher}`}encodeParameters(C){const x={},N=k.castKDFConfigToParams(C),b={...C.params,...N},W=H.getConfigsOfDefaults(C.config),G=Object.keys(b);if(W.ignoreMandatoryParamName&&("iv"===G[0]||"no"===G[0])&&1===G.length)return b[G[0]];if(!G.length)return C.queryString||"";G.forEach(O=>x[O]=b[O]);const T=new URLSearchParams;return G.forEach(O=>T.append(O,x[O])),T.toString()}encodeAlgorithm(C){return H.getConfigsOfDefaults(C.config).ignoreDefaultAlgorithm&&C.algorithm===H.defaultAlgotithm?"":C.algorithm||""}}class S{static matcher(C){return(new _).match(C)}constructor(C){if("string"==typeof C){const x=new w;this.decoded=x.decode(this.encoded=C),this.encoded=C}else{const x=new k;this.decoded=C,this.encoded=x.encode(C)}}}f.EncryptedURIParser=S,f.EncryptedURIEncrypter=class ${constructor(C){this.params=C}},f.EncryptedURIDecrypter=class p{constructor(C,x){this.decoded=C,this.password=x,this.kdf=this.getKDFParams(this.decoded)}getKDFParams(C){return H.getKDFParams(C)}},f.EncryptedURIAlgorithm=function I(P){return function(C){C.algorithm=P.algorithm,H.setAlgorithm(P.algorithm,C,P.decrypter)}};class H{static getConfigsOfDefaults(C){const x={ignoreDefaultAlgorithm:!0,ignoreDefaultValues:!0,ignoreMandatoryParamName:!0};return C?"ignoreDefaults"in C?{ignoreDefaultAlgorithm:C.ignoreDefaults,ignoreDefaultValues:C.ignoreDefaults,ignoreMandatoryParamName:C.ignoreDefaults}:{...x,...C}:x}static getKDFParams(C){let x=H.defaultParams;return C&&("kdf"in C&&C.kdf?x=C.kdf:C.params&&(x=H.castParamsToConfig(C.params))),{...H.defaultParams,...x}}static castParamsToConfig(C){const x={};if(!C)return x;if("string"===C.kdf&&(x.kdf=C.kdf),"string"==typeof C.h&&(x.hasher=C.h),"string"==typeof C.dklen){const N=Number(C.dklen);Number.isSafeInteger(N)&&(x.derivateKeyLength=N)}if("string"==typeof C.c){const N=Number(C.c);Number.isSafeInteger(N)&&(x.rounds=N)}return x}static castKDFConfigToParams(C){return k.castKDFConfigToParams(C)}static matcher(C){return(new _).match(C)}static encode(C){return new S(C).encoded}static encrypt(C,...x){var N=this;return m(function*(){const[b]=N.getAlgorithm(C.algorithm),W=yield new b({...C,password:C.password.normalize("NFKC")},...x).encrypt();return W.algorithm=b.algorithm||C.algorithm,Promise.resolve(N.encode({...W,kdf:C.kdf,config:C.config}))})()}static decrypt(C,x,...N){const b=new S(C).decoded,[,W]=this.getAlgorithm(b.algorithm),G={...H.defaultParams};return new W(b,x.normalize("NFKC"),G,...N).decrypt()}static setAlgorithm(C,x,N){this.supportedAlgorithm[C]||(this.supportedAlgorithm[C]=[x,N])}static getAlgorithm(C){C=C||H.defaultAlgotithm;const[x,N]=this.supportedAlgorithm[C]||[null,null];if(!x&&!N)throw new Error(`Algorithm '${C}' not supported`);return[x,N]}}f.EncryptedURI=H,H.defaultParams={kdf:"pbkdf2",hasher:"sha256",derivateKeyLength:32,rounds:32},H.defaultAlgotithm="aes/cbc",H.supportedAlgorithm={}},9680:(ae,f,y)=>{"use strict";var m={};y.r(m),y.d(m,{yA:()=>kv,EH:()=>Ec,bytesToNumberBE:()=>Er,MH:()=>Ov,Q7:()=>Vs,c1:()=>ET,qG:()=>tr,hexToBytes:()=>bc,e_:()=>Ji,Gs:()=>Pv,El:()=>Du});var h=y(1528);let w=null,S=1;const $=Symbol("SIGNAL");function p(e){const t=w;return w=e,t}function b(e){if((!J(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==S)){if(!e.producerMustRecompute(e)&&!Y(e))return e.dirty=!1,void(e.lastCleanEpoch=S);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=S}}function Y(e){ee(e);for(let t=0;t0}function ee(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let de=null;function Ae(e){return"function"==typeof e}function Be(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Ve=Be(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Te(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Le{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(Ae(r))try{r()}catch(i){t=i instanceof Ve?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{pt(i)}catch(s){t=t??[],s instanceof Ve?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ve(t)}}add(t){var n;if(t&&t!==this)if(this.closed)pt(t);else{if(t instanceof Le){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Te(n,t)}remove(t){const{_finalizers:n}=this;n&&Te(n,t),t instanceof Le&&t._removeParent(this)}}Le.EMPTY=(()=>{const e=new Le;return e.closed=!0,e})();const Qe=Le.EMPTY;function Dt(e){return e instanceof Le||e&&"closed"in e&&Ae(e.remove)&&Ae(e.add)&&Ae(e.unsubscribe)}function pt(e){Ae(e)?e():e.unsubscribe()}const ut={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},an={setTimeout(e,t,...n){const{delegate:r}=an;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=an;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function rr(e){an.setTimeout(()=>{const{onUnhandledError:t}=ut;if(!t)throw e;t(e)})}function Bn(){}const Dr=wo("C",void 0,void 0);function wo(e,t,n){return{kind:e,value:t,error:n}}let Pt=null;function Ht(e){if(ut.useDeprecatedSynchronousErrorHandling){const t=!Pt;if(t&&(Pt={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Pt;if(Pt=null,n)throw r}}else e()}class fr extends Le{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Dt(t)&&t.add(this)):this.destination=P0}static create(t,n,r){return new to(t,n,r)}next(t){this.isStopped?Ys(function Pc(e){return wo("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Ys(function Vr(e){return wo("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ys(Dr,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ar=Function.prototype.bind;function Fn(e,t){return Ar.call(e,t)}class eo{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ls(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ls(r)}else ls(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ls(n)}}}class to extends fr{constructor(t,n,r){let o;if(super(),Ae(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ut.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Fn(t.next,i),error:t.error&&Fn(t.error,i),complete:t.complete&&Fn(t.complete,i)}):o=t}this.destination=new eo(o)}}function ls(e){ut.useDeprecatedSynchronousErrorHandling?function Rn(e){ut.useDeprecatedSynchronousErrorHandling&&Pt&&(Pt.errorThrown=!0,Pt.error=e)}(e):rr(e)}function Ys(e,t){const{onStoppedNotification:n}=ut;n&&an.setTimeout(()=>n(e,t))}const P0={closed:!0,next:Bn,error:function O0(e){throw e},complete:Bn},Xs="function"==typeof Symbol&&Symbol.observable||"@@observable";function Qo(e){return e}function Qu(e){return 0===e.length?Qo:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let cn=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function Yu(e){return e&&e instanceof fr||function B0(e){return e&&Ae(e.next)&&Ae(e.error)&&Ae(e.complete)}(e)&&Dt(e)}(n)?n:new to(n,r,o);return Ht(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Zu(r))((o,i)=>{const s=new to({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Xs](){return this}pipe(...n){return Qu(n)(this)}toPromise(n){return new(n=Zu(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Zu(e){var t;return null!==(t=e??ut.Promise)&&void 0!==t?t:Promise}const L0=Be(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let en=(()=>{class e extends cn{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Hn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new L0}next(n){Ht(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Ht(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Ht(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Qe:(this.currentObservers=null,i.push(n),new Le(()=>{this.currentObservers=null,Te(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new cn;return n.source=this,n}}return e.create=(t,n)=>new Hn(t,n),e})();class Hn extends en{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Qe}}class ln extends en{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function kc(e){return Ae(e?.lift)}function _n(e){return t=>{if(kc(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function En(e,t,n,r,o){return new m3(e,t,n,r,o)}class m3 extends fr{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function kt(e,t){return _n((n,r)=>{let o=0;n.subscribe(En(r,i=>{r.next(e.call(t,i,o++))}))})}const Dw="https://g.co/ng/security#xss";class he extends Error{constructor(t,n){super(function Js(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function V0(e){return t=>{setTimeout(e,void 0,t)}}const Xt=class y3 extends en{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=V0(i),o&&(o=V0(o)),s&&(s=V0(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof Le&&t.add(a),a}};var _t=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(_t||{});function bn(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(bn).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function U0(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var Ju=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Ju||{}),no=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(no||{});function Zo(e){return{toString:e}.toString()}const Ot=globalThis,_o={},At=[];function Bt(e){for(let t in e)if(e[t]===Bt)return t;throw Error("Could not find renamed property on target object.")}function E3(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}const Bc=Bt({\u0275cmp:Bt}),H0=Bt({\u0275dir:Bt}),j0=Bt({\u0275pipe:Bt}),Iw=Bt({\u0275mod:Bt}),Yo=Bt({\u0275fac:Bt}),Lc=Bt({__NG_ELEMENT_ID__:Bt}),Tw=Bt({__NG_ENV_ID__:Bt});var Jt=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Jt||{});function Mw(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function $0(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const v=8&r?g:null;if(v&&-1!==Mw(v,l,0)||2&r&&l!==g){if(ro(r))return!1;s=!0}}}}else{if(!s&&!ro(r)&&!ro(c))return!1;if(s&&ro(c))continue;s=!1,r=c|1&r}}return ro(r)||s}function ro(e){return 0==(1&e)}function D3(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!ro(s)&&(t+=Bw(i,o),o=""),r=s,i=i||!ro(r);n++}return""!==o&&(t+=Bw(i,o)),t}function Tr(e){return Zo(()=>{const t=Vw(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ju.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||no.Emulated,styles:e.styles||At,_:null,schemas:e.schemas||null,tView:null,id:""};Uw(n);const r=e.dependencies;return n.directiveDefs=ed(r,!1),n.pipeDefs=ed(r,!0),n.id=function k3(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function F3(e){return gt(e)||xn(e)}function O3(e){return null!==e}function un(e){return Zo(()=>({type:e.type,bootstrap:e.bootstrap||At,declarations:e.declarations||At,imports:e.imports||At,exports:e.exports||At,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Lw(e,t){if(null==e)return _o;const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];let i,s,a=Jt.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Jt.None?[r,a]:r,t[i]=s):n[i]=r}return n}function it(e){return Zo(()=>{const t=Vw(e);return Uw(t),t})}function gt(e){return e[Bc]||null}function xn(e){return e[H0]||null}function Ln(e){return e[j0]||null}function jn(e,t){const n=e[Iw]||null;if(!n&&!0===t)throw new Error(`Type ${bn(e)} does not have '\u0275mod' property.`);return n}function Vw(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||_o,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||At,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Lw(e.inputs,t),outputs:Lw(e.outputs),debugInfo:null}}function Uw(e){e.features?.forEach(t=>t(e))}function ed(e,t){if(!e)return null;const n=t?Ln:F3;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(O3)}const tn=0,ke=1,qe=2,dn=3,oo=4,$n=5,io=6,ea=7,Wt=8,zn=9,Xo=10,st=11,Uc=12,Hw=13,ta=14,rn=15,Hc=16,na=17,Jo=18,jc=19,jw=20,Ti=21,td=22,us=23,ct=25,z0=1,Eo=7,ra=9,fn=10;var G0=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(G0||{});function Gn(e){return Array.isArray(e)&&"object"==typeof e[z0]}function Wn(e){return Array.isArray(e)&&!0===e[z0]}function W0(e){return 0!=(4&e.flags)}function ds(e){return e.componentOffset>-1}function rd(e){return 1==(1&e.flags)}function so(e){return!!e.template}function K0(e){return 0!=(512&e[qe])}const Ww="svg";let qw=!1;function Vt(e){for(;Array.isArray(e);)e=e[tn];return e}function zc(e,t){return Vt(t[e])}function or(e,t){return Vt(t[e.index])}function Gc(e,t){return e.data[t]}function Mr(e,t){const n=t[e];return Gn(n)?n:n[tn]}function Y0(e){return 128==(128&e[qe])}function bo(e,t){return null==t?null:e[t]}function Qw(e){e[na]=0}function z3(e){1024&e[qe]||(e[qe]|=1024,Y0(e)&&Wc(e))}function X0(e){return!!(9216&e[qe]||e[us]?.dirty)}function J0(e){X0(e)?Wc(e):64&e[qe]&&(function U3(){return qw}()?(e[qe]|=1024,Wc(e)):e[Xo].changeDetectionScheduler?.notify())}function Wc(e){e[Xo].changeDetectionScheduler?.notify();let t=fs(e);for(;null!==t&&!(8192&t[qe])&&(t[qe]|=8192,Y0(t));)t=fs(t)}function od(e,t){if(256==(256&e[qe]))throw new he(911,!1);null===e[Ti]&&(e[Ti]=[]),e[Ti].push(t)}function fs(e){const t=e[dn];return Wn(t)?t[dn]:t}const nt={lFrame:i_(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Xw(){return nt.bindingsEnabled}function me(){return nt.lFrame.lView}function Et(){return nt.lFrame.tView}function Mi(e){return nt.lFrame.contextLView=e,e[Wt]}function Ni(e){return nt.lFrame.contextLView=null,e}function Lt(){let e=Jw();for(;null!==e&&64===e.type;)e=e.parent;return e}function Jw(){return nt.lFrame.currentTNode}function xo(e,t){const n=nt.lFrame;n.currentTNode=e,n.isParent=t}function tp(){return nt.lFrame.isParent}function np(){nt.lFrame.isParent=!1}function ao(){return nt.lFrame.bindingIndex++}function ti(e){const t=nt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function t4(e,t){const n=nt.lFrame;n.bindingIndex=n.bindingRootIndex=e,rp(t)}function rp(e){nt.lFrame.currentDirectiveIndex=e}function op(e){const t=nt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function ip(){return nt.lFrame.currentQueryIndex}function id(e){nt.lFrame.currentQueryIndex=e}function r4(e){const t=e[ke];return 2===t.type?t.declTNode:1===t.type?e[$n]:null}function r_(e,t,n){if(n&_t.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&_t.Host||(o=r4(i),null===o||(i=i[ta],10&o.type))););if(null===o)return!1;t=o,e=i}const r=nt.lFrame=o_();return r.currentTNode=t,r.lView=e,!0}function sp(e){const t=o_(),n=e[ke];nt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function o_(){const e=nt.lFrame,t=null===e?null:e.child;return null===t?i_(e):t}function i_(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function s_(){const e=nt.lFrame;return nt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const a_=s_;function ap(){const e=s_();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Kn(){return nt.lFrame.selectedIndex}function hs(e){nt.lFrame.selectedIndex=e}function Kt(){const e=nt.lFrame;return Gc(e.tView,e.selectedIndex)}function On(){nt.lFrame.currentNamespace=Ww}function Ur(){!function s4(){nt.lFrame.currentNamespace=null}()}let l_=!0;function sd(){return l_}function Ri(e){l_=e}function a4(){return sa(Lt(),me())}function sa(e,t){return new pr(or(e,t))}let dp,pr=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=a4}return e})();function u_(e){return e instanceof pr?e.nativeElement:e}function aa(e,t){e.forEach(n=>Array.isArray(n)?aa(n,t):t(n))}function d_(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ad(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Nr(e,t,n){let r=ca(e,t);return r>=0?e[1|r]=n:(r=~r,function f_(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function lp(e,t){const n=ca(e,t);if(n>=0)return e[1|n]}function ca(e,t){return function h_(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<g4}),g4="ng",v_=new je(""),ps=new je("",{providedIn:"platform",factory:()=>"unknown"}),w_=new je(""),__=new je("",{providedIn:"root",factory:()=>Fi().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),v4=Bt({__forward_ref__:Bt});function qt(e){return e.__forward_ref__=qt,e.toString=function(){return bn(this())},e}function tt(e){return gd(e)?e():e}function gd(e){return"function"==typeof e&&e.hasOwnProperty(v4)&&e.__forward_ref__===qt}function yp(e){return e&&!!e.\u0275providers}function lt(e){return"string"==typeof e?e:null==e?"":String(e)}function vp(e,t){throw new he(-201,!1)}let wp;function b_(){return wp}function mr(e){const t=wp;return wp=e,t}function x_(e,t,n){const r=dd(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&_t.Optional?null:void 0!==t?t:void vp()}const Qc={},_p="__NG_DI_FLAG__",md="ngTempTokenPath",C4=/\n/gm,C_="__source";let la;function Oi(e){const t=la;return la=e,t}function S4(e,t=_t.Default){if(void 0===la)throw new he(-203,!1);return null===la?x_(e,void 0,t):la.get(e,t&_t.Optional?null:void 0,t)}function We(e,t=_t.Default){return(b_()||S4)(tt(e),t)}function Pe(e,t=_t.Default){return We(e,yd(t))}function yd(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ep(e){const t=[];for(let n=0;nnull;function Tp(e,t,n=!1){return A_(e,t,n)}const pa="__parameters__";function ma(e,t,n){return Zo(()=>{const r=function Fp(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(c,l,u){const d=c.hasOwnProperty(pa)?c[pa]:Object.defineProperty(c,pa,{value:[]})[pa];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}const xd=Zc(ma("Optional"),8),Cd=Zc(ma("SkipSelf"),4);function gs(e,t){return e.hasOwnProperty(Yo)?e[Yo]:null}const ms=new je(""),R_=new je("",-1),Op=new je("");class Dd{get(t,n=Qc){if(n===Qc){const r=new Error(`NullInjectorError: No provider for ${bn(t)}!`);throw r.name="NullInjectorError",r}return n}}function j4(...e){return{\u0275providers:F_(0,e),\u0275fromNgModule:!0}}function F_(e,...t){const n=[],r=new Set;let o;const i=s=>{n.push(s)};return aa(t,s=>{const a=s;Sd(a,i,[],r)&&(o||=[],o.push(a))}),void 0!==o&&O_(o,i),n}function O_(e,t){for(let n=0;n{t(i,r)})}}function Sd(e,t,n,r){if(!(e=tt(e)))return!1;let o=null,i=fd(e);const s=!i&>(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const c=e.ngModule;if(i=fd(c),!i)return!1;o=c}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)Sd(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{aa(i.imports,u=>{Sd(u,t,n,r)&&(l||=[],l.push(u))})}finally{}void 0!==l&&O_(l,t)}if(!a){const l=gs(o)||(()=>new o);t({provide:o,useFactory:l,deps:At},o),t({provide:Op,useValue:o,multi:!0},o),t({provide:ms,useValue:()=>We(o),multi:!0},o)}const c=i.providers;if(null!=c&&!a){const l=e;Pp(c,u=>{t(u,l)})}}}return o!==e&&void 0!==e.providers}function Pp(e,t){for(let n of e)yp(n)&&(n=n.\u0275providers),Array.isArray(n)?Pp(n,t):t(n)}const $4=Bt({provide:String,useValue:Bt});function kp(e){return null!==e&&"object"==typeof e&&$4 in e}function ys(e){return"function"==typeof e}const Bp=new je(""),Id={},G4={};let Lp;function Td(){return void 0===Lp&&(Lp=new Dd),Lp}class Hr{}class ya extends Hr{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Up(t,s=>this.processProvider(s)),this.records.set(R_,va(void 0,this)),o.has("environment")&&this.records.set(Hr,va(void 0,this));const i=this.records.get(Bp);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Op,At,_t.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Oi(this),r=mr(void 0);try{return t()}finally{Oi(n),mr(r)}}get(t,n=Qc,r=_t.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Tw))return t[Tw](this);r=yd(r);const i=Oi(this),s=mr(void 0);try{if(!(r&_t.SkipSelf)){let c=this.records.get(t);if(void 0===c){const l=function Z4(e){return"function"==typeof e||"object"==typeof e&&e instanceof je}(t)&&dd(t);c=l&&this.injectableDefInScope(l)?va(Vp(t),Id):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(r&_t.Self?Td():this.parent).get(t,n=r&_t.Optional&&n===Qc?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[md]=a[md]||[]).unshift(bn(t)),i)throw a;return function T4(e,t,n,r){const o=e[md];throw t[C_]&&o.unshift(t[C_]),e.message=function M4(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=bn(t);if(Array.isArray(t))o=t.map(bn).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):bn(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(C4,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[md]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{mr(s),Oi(i)}}resolveInjectorInitializers(){const t=Oi(this),n=mr(void 0);try{const o=this.get(ms,At,_t.Self);for(const i of o)i()}finally{Oi(t),mr(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(bn(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new he(205,!1)}processProvider(t){let n=ys(t=tt(t))?t:tt(t&&t.provide);const r=function K4(e){return kp(e)?va(void 0,e.useValue):va(B_(e),Id)}(t);if(!ys(t)&&!0===t.multi){let o=this.records.get(n);o||(o=va(void 0,Id,!0),o.factory=()=>Ep(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Id&&(n.value=G4,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Q4(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=tt(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Vp(e){const t=dd(e),n=null!==t?t.factory:gs(e);if(null!==n)return n;if(e instanceof je)throw new he(204,!1);if(e instanceof Function)return function W4(e){if(e.length>0)throw new he(204,!1);const n=function h4(e){return e&&(e[hd]||e[y_])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new he(204,!1)}function B_(e,t,n){let r;if(ys(e)){const o=tt(e);return gs(o)||Vp(o)}if(kp(e))r=()=>tt(e.useValue);else if(function k_(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Ep(e.deps||[]));else if(function P_(e){return!(!e||!e.useExisting)}(e))r=()=>We(tt(e.useExisting));else{const o=tt(e&&(e.useClass||e.provide));if(!function q4(e){return!!e.deps}(e))return gs(o)||Vp(o);r=()=>new o(...Ep(e.deps))}return r}function va(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Up(e,t){for(const n of e)Array.isArray(n)?Up(n,t):n&&yp(n)?Up(n.\u0275providers,t):t(n)}function vs(e,t){e instanceof ya&&e.assertNotDestroyed();const r=Oi(e),o=mr(void 0);try{return t()}finally{Oi(r),mr(o)}}class sN{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function V_(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function jr(){return U_}function U_(e){return e.type.prototype.ngOnChanges&&(e.setInput=cN),aN}function aN(){const e=j_(this),t=e?.current;if(t){const n=e.previous;if(n===_o)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function cN(e,t,n,r,o){const i=this.declaredInputs[r],s=j_(e)||function lN(e,t){return e[H_]=t}(e,{previous:_o,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new sN(l&&l.currentValue,n,c===_o),V_(e,t,o,n)}jr.ngInherit=!0;const H_="__ngSimpleChanges__";function j_(e){return e[H_]||null}const Co=function(e,t,n){};function Nd(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[na]+=65536),(a>14>16&&(3&e[qe])===t&&(e[qe]+=16384,z_(a,i)):z_(a,i)}const _a=-1;class tl{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Wp(e){return e!==_a}function nl(e){return 32767&e}function rl(e,t){let n=function yN(e){return e>>16}(e),r=t;for(;n>0;)r=r[ta],n--;return r}let Kp=!0;function Od(e){const t=Kp;return Kp=e,t}const G_=255,W_=5;let vN=0;const Do={};function Pd(e,t){const n=K_(e,t);if(-1!==n)return n;const r=t[ke];r.firstCreatePass&&(e.injectorIndex=t.length,qp(r.data,e),qp(t,null),qp(r.blueprint,null));const o=kd(e,t),i=e.injectorIndex;if(Wp(o)){const s=nl(o),a=rl(o,t),c=a[ke].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function qp(e,t){e.push(0,0,0,0,0,0,0,0,t)}function K_(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function kd(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=eE(o),null===r)return _a;if(n++,o=o[ta],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return _a}function Qp(e,t,n){!function wN(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Lc)&&(r=n[Lc]),null==r&&(r=n[Lc]=vN++);const o=r&G_;t.data[e+(o>>W_)]|=1<=0?t&G_:xN:t}(n);if("function"==typeof i){if(!r_(t,e,r))return r&_t.Host?q_(o,0,r):Q_(t,n,r,o);try{let s;if(s=i(r),null!=s||r&_t.Optional)return s;vp()}finally{a_()}}else if("number"==typeof i){let s=null,a=K_(e,t),c=_a,l=r&_t.Host?t[rn][$n]:null;for((-1===a||r&_t.SkipSelf)&&(c=-1===a?kd(e,t):t[a+8],c!==_a&&J_(r,!1)?(s=t[ke],a=nl(c),t=rl(c,t)):a=-1);-1!==a;){const u=t[ke];if(X_(i,a,u.data)){const d=EN(a,t,n,s,r,l);if(d!==Do)return d}c=t[a+8],c!==_a&&J_(r,t[ke].data[a+8]===l)&&X_(i,a,t)?(s=u,a=nl(c),t=rl(c,t)):a=-1}}return o}function EN(e,t,n,r,o,i){const s=t[ke],a=s.data[e+8],u=Bd(a,s,n,null==r?ds(a)&&Kp:r!=s&&0!=(3&a.type),o&_t.Host&&i===a);return null!==u?ws(t,s,u,a):Do}function Bd(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,c=e.directiveStart,u=i>>20,g=o?a+u:e.directiveEnd;for(let v=r?a:a+u;v=c&&E.type===n)return v}if(o){const v=s[c];if(v&&so(v)&&v.type===n)return c}return null}function ws(e,t,n,r){let o=e[n];const i=t.data;if(function hN(e){return e instanceof tl}(o)){const s=o;s.resolving&&function E4(e,t){throw t&&t.join(" > "),new he(-200,e)}(function Mt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():lt(e)}(i[n]));const a=Od(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?mr(s.injectImpl):null;r_(e,r,_t.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function dN(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=U_(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&mr(l),Od(a),s.resolving=!1,a_()}}return o}function X_(e,t,n){return!!(n[t+(e>>W_)]&1<{const t=e.prototype.constructor,n=t[Yo]||Zp(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[Yo]||Zp(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Zp(e){return gd(e)?()=>{const t=Zp(tt(e));return t&&t()}:gs(e)}function eE(e){const t=e[ke],n=t.type;return 2===n?t.declTNode:1===n?e[$n]:null}function iE(e,t=null,n=null,r){const o=sE(e,t,n,r);return o.resolveInjectorInitializers(),o}function sE(e,t=null,n=null,r,o=new Set){const i=[n||At,j4(e)];return r=r||("object"==typeof e?void 0:bn(e)),new ya(i,t||Td(),r||null,o)}let qn=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Qc;static#t=this.NULL=new Dd;static create(n,r){if(Array.isArray(n))return iE({name:""},r,n,"");{const o=n.name??"";return iE({name:o},n.parent,n.providers,o)}}static#n=this.\u0275prov=Ue({token:e,providedIn:"any",factory:()=>We(R_)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function Xp(e){return e.ngOriginalError}class ni{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Xp(t);for(;n&&Xp(n);)n=Xp(n);return n||null}}const cE=new je("",{providedIn:"root",factory:()=>Pe(ni).handleError.bind(void 0)}),uE=new je("",{providedIn:"root",factory:()=>!1});let Hd,jd;function xa(e){return function Jp(){if(void 0===Hd&&(Hd=null,Ot.trustedTypes))try{Hd=Ot.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Hd}()?.createHTML(e)||e}function eg(){if(void 0===jd&&(jd=null,Ot.trustedTypes))try{jd=Ot.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return jd}function dE(e){return eg()?.createHTML(e)||e}function hE(e){return eg()?.createScriptURL(e)||e}class _s{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Dw})`}}class ON extends _s{getTypeName(){return"HTML"}}class PN extends _s{getTypeName(){return"Style"}}class kN extends _s{getTypeName(){return"Script"}}class BN extends _s{getTypeName(){return"URL"}}class LN extends _s{getTypeName(){return"ResourceURL"}}function Rr(e){return e instanceof _s?e.changingThisBreaksApplicationSecurity:e}function Ao(e,t){const n=function VN(e){return e instanceof _s&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Dw})`)}return n===t}class GN{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(xa(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class WN{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=xa(t),n}}const qN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function $d(e){return(e=String(e)).match(qN)?e:"unsafe:"+e}function ri(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function ol(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const gE=ri("area,br,col,hr,img,wbr"),mE=ri("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),yE=ri("rp,rt"),tg=ol(gE,ol(mE,ri("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ol(yE,ri("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ol(yE,mE)),ng=ri("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),vE=ol(ng,ri("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ri("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),QN=ri("script,style,template");class ZN{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!tg.hasOwnProperty(n))return this.sanitizedSomething=!0,!QN.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o"),!0}endElement(t){const n=t.nodeName.toLowerCase();tg.hasOwnProperty(n)&&!gE.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(wE(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const YN=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,XN=/([^\#-~ |!])/g;function wE(e){return e.replace(/&/g,"&").replace(YN,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(XN,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let zd;function _E(e,t){let n=null;try{zd=zd||function pE(e){const t=new WN(e);return function KN(){try{return!!(new window.DOMParser).parseFromString(xa(""),"text/html")}catch{return!1}}()?new GN(t):t}(e);let r=t?String(t):"";n=zd.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=zd.getInertBodyElement(r)}while(r!==i);return xa((new ZN).sanitizeChildren(rg(n)||n))}finally{if(n){const r=rg(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function rg(e){return"content"in e&&function JN(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Fr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Fr||{});function Gd(e){const t=il();return t?dE(t.sanitize(Fr.HTML,e)||""):Ao(e,"HTML")?dE(Rr(e)):_E(Fi(),lt(e))}function og(e){const t=il();return t?t.sanitize(Fr.URL,e)||"":Ao(e,"URL")?Rr(e):$d(lt(e))}function EE(e){const t=il();if(t)return hE(t.sanitize(Fr.RESOURCE_URL,e)||"");if(Ao(e,"ResourceURL"))return hE(Rr(e));throw new he(904,!1)}function il(){const e=me();return e&&e[Xo].sanitizer}const iR=/^>|^->||--!>|)/g,aR="\u200b$1\u200b";const ig=new Map;let fR=0;const ag="__ngContext__";function Qn(e,t){Gn(t)?(e[ag]=t[jc],function pR(e){ig.set(e[jc],e)}(t)):e[ag]=t}function Or(e){return e instanceof Function?e():e}var ki=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ki||{});let dg;function fg(e,t){return dg(e,t)}function Da(e,t,n,r,o){if(null!=r){let i,s=!1;Wn(r)?i=r:Gn(r)&&(s=!0,r=r[tn]);const a=Vt(r);0===e&&null!==n?null==o?HE(t,n,a):Es(t,n,a,o||null,!0):1===e&&null!==n?Es(t,n,a,o||null,!0):2===e?function Jd(e,t,n){const r=Yd(e,t);r&&function kR(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function VR(e,t,n,r,o){const i=n[Eo];i!==Vt(n)&&Da(t,e,r,i,o);for(let a=fn;at.replace(sR,aR))}(t))}function Qd(e,t,n){return e.createElement(t,n)}function LE(e,t){ef(e,t,t[st],2,null,null)}function VE(e,t){const n=e[ra],r=n.indexOf(t);n.splice(r,1)}function al(e,t){if(e.length<=fn)return;const n=fn+t,r=e[n];if(r){const o=r[Hc];null!==o&&o!==e&&VE(o,r),t>0&&(e[n-1][oo]=r[oo]);const i=ad(e,fn+t);!function TR(e,t){LE(e,t),t[tn]=null,t[$n]=null}(r[ke],r);const s=i[Jo];null!==s&&s.detachView(i[ke]),r[dn]=null,r[oo]=null,r[qe]&=-129}return r}function Zd(e,t){if(!(256&t[qe])){const n=t[st];n.destroyNode&&ef(e,t,n,3,null,null),function NR(e){let t=e[Uc];if(!t)return pg(e[ke],e);for(;t;){let n=null;if(Gn(t))n=t[Uc];else{const r=t[fn];r&&(n=r)}if(!n){for(;t&&!t[oo]&&t!==e;)Gn(t)&&pg(t[ke],t),t=t[dn];null===t&&(t=e),Gn(t)&&pg(t[ke],t),n=t&&t[oo]}t=n}}(t)}}function pg(e,t){if(!(256&t[qe])){t[qe]&=-129,t[qe]|=256,t[us]&&function X(e){if(ee(e),J(e))for(let t=0;t=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[ea]=null);const o=t[Ti];if(null!==o){t[Ti]=null;for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===no.None||i===no.Emulated)return null}return or(r,n)}}(e,t.parent,n)}function Es(e,t,n,r,o){e.insertBefore(t,n,r,o)}function HE(e,t,n){e.appendChild(t,n)}function jE(e,t,n,r,o){null!==r?Es(e,t,n,r,o):HE(e,t,n)}function Yd(e,t){return e.parentNode(t)}let mg,GE=function zE(e,t,n){return 40&e.type?or(e,n):null};function Xd(e,t,n,r){const o=gg(e,r,t),i=t[st],a=function $E(e,t,n){return GE(e,t,n)}(r.parent||t[$n],r,t);if(null!=o)if(Array.isArray(n))for(let c=0;cct&&XE(e,t,ct,!1),Co(s?2:0,o),n(r,o)}finally{hs(i),Co(s?3:1,o)}}function _g(e,t,n){if(W0(t)){const r=p(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function ob(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;const s=t[i];if(void 0===s)continue;r??={};let a,c=Jt.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=i;if(null!==o){if(!o.hasOwnProperty(i))continue;l=o[i]}0===e?ib(r,n,l,a,c):ib(r,n,l,a)}return r}function ib(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],void 0!==o&&i.push(o)}function vr(e,t,n,r,o,i,s,a){const c=or(t,n);let u,l=t.inputs;!a&&null!=l&&(u=l[r])?(Ig(e,n,u,r,o),ds(t)&&function XR(e,t){const n=Mr(t,e);16&n[qe]||(n[qe]|=64)}(n,t.index)):3&t.type&&(r=function YR(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(c,r,o))}function Cg(e,t,n,r){if(Xw()){const o=null===r?null:{"":-1},i=function o6(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,ll(e,n,o.hostVars,dt),o)}function So(e,t,n,r,o,i){const s=or(e,t);!function Ag(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?lt(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[st],s,i,e.value,n,r,o)}function u6(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a0&&(n[o-1][oo]=t),r!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Wc(e.lView)},consumerOnSignalRead(){this.lView[us]=this}};function mb(e){return vb(e[Uc])}function yb(e){return vb(e[oo])}function vb(e){for(;null!==e&&!Wn(e);)e=e[oo];return e}function sf(e,t=!0,n=0){const r=e[Xo],o=r.rendererFactory;o.begin?.();try{!function E6(e,t){Ng(e,t);let n=0;for(;X0(e);){if(100===n)throw new he(103,!1);n++,Ng(e,1)}}(e,n)}catch(s){throw t&&rf(e,s),s}finally{o.end?.(),r.inlineEffectRunner?.flush()}}function b6(e,t,n,r){const o=t[qe];if(256==(256&o))return;t[Xo].inlineEffectRunner?.flush(),sp(t);let s=null,a=null;(function x6(e){return 2!==e.type})(e)&&(a=function g6(e){return e[us]??function m6(e){const t=gb.pop()??Object.create(v6);return t.lView=e,t}(e)}(t),s=function O(e){return e&&(e.nextProducerIndex=0),p(e)}(a));try{Qw(t),function t_(e){return nt.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&tb(e,t,n,2,r);const c=3==(3&o);if(c){const d=e.preOrderCheckHooks;null!==d&&Rd(t,d,null)}else{const d=e.preOrderHooks;null!==d&&Fd(t,d,0,null),zp(t,0)}if(function C6(e){for(let t=mb(e);null!==t;t=yb(t)){if(!(t[qe]&G0.HasTransplantedViews))continue;const n=t[ra];for(let r=0;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(a,s),function y6(e){e.lView[us]!==e&&(e.lView=null,gb.push(e))}(a)),ap()}}function _b(e,t){for(let n=mb(e);null!==n;n=yb(n))for(let r=fn;r-1&&(al(t,r),ad(n,r))}this._attachedToViewContainer=!1}Zd(this._lView[ke],this._lView)}onDestroy(t){od(this._lView,t)}markForCheck(){hl(this._cdRefInjectingView||this._lView)}detach(){this._lView[qe]&=-129}reattach(){J0(this._lView),this._lView[qe]|=128}detectChanges(){this._lView[qe]|=1024,sf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new he(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,LE(this._lView[ke],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new he(902,!1);this._appRef=t,J0(this._lView)}}let ii=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=I6}return e})();const A6=ii,S6=class extends A6{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const o=function ul(e,t,n,r){const o=t.tView,a=tf(e,o,n,4096&e[qe]?4096:16,null,t,null,null,null,r?.injector??null,r?.dehydratedView??null);a[Hc]=e[t.index];const l=e[Jo];return null!==l&&(a[Jo]=l.createEmbeddedView(o)),Tg(o,a,n),a}(this._declarationLView,this._declarationTContainer,t,{injector:n,dehydratedView:r});return new pl(o)}};function I6(){return af(Lt(),me())}function af(e,t){return 4&e.type?new S6(t,e,sa(e,t)):null}class Bg{}class Z6{}class Tb{}class X6{resolveComponentFactory(t){throw function Y6(e){const t=Error(`No component factory found for ${bn(e)}.`);return t.ngComponent=e,t}(t)}}let wl=(()=>{class e{static#e=this.NULL=new X6}return e})();class Lg{}let si=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function J6(){const e=me(),n=Mr(Lt().index,e);return(Gn(n)?n:e)[st]}()}return e})(),eF=(()=>{class e{static#e=this.\u0275prov=Ue({token:e,providedIn:"root",factory:()=>null})}return e})();const Vg={};let _l=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=fF}return e})();function fF(e){return function hF(e,t,n){if(ds(e)&&!n){const r=Mr(e.index,t);return new pl(r,r)}return 47&e.type?new pl(t[rn],t):null}(Lt(),me(),16==(16&e))}let pf=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=yF;static#t=this.__NG_ENV_ID__=n=>n}return e})();class mF extends pf{constructor(t){super(),this._lView=t}onDestroy(t){return od(this._lView,t),()=>function ep(e,t){if(null===e[Ti])return;const n=e[Ti].indexOf(t);-1!==n&&e[Ti].splice(n,1)}(this._lView,t)}}function yF(){return new mF(me())}const Ub=new Set;function bs(e){Ub.has(e)||(Ub.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Hb(...e){}class Ct{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Xt(!1),this.onMicrotaskEmpty=new Xt(!1),this.onStable=new Xt(!1),this.onError=new Xt(!1),typeof Zone>"u")throw new he(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function xF(){const e="function"==typeof Ot.requestAnimationFrame;let t=Ot[e?"requestAnimationFrame":"setTimeout"],n=Ot[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function AF(e){const t=()=>{!function DF(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ot,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,$g(e),e.isCheckStableRunning=!0,jg(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),$g(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(function SF(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return n.invokeTask(o,i,s,a);try{return jb(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),$b(e)}},onInvoke:(n,r,o,i,s,a,c)=>{try{return jb(e),n.invoke(o,i,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),$b(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,$g(e),jg(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ct.isInAngularZone())throw new he(909,!1)}static assertNotInAngularZone(){if(Ct.isInAngularZone())throw new he(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,CF,Hb,Hb);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const CF={};function jg(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function $g(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function jb(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function $b(e){e._nesting--,jg(e)}class zb{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Xt,this.onMicrotaskEmpty=new Xt,this.onStable=new Xt,this.onError=new Xt}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}var xs=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(xs||{});const Gb={destroy(){}};function Kb(e,t){!t&&function Hp(e){if(!b_()&&!function A4(){return la}())throw new he(-203,!1)}();const n=t?.injector??Pe(qn);if(!function Pi(e){return"browser"===(e??Pe(qn)).get(ps)}(n))return Gb;bs("NgAfterNextRender");const r=n.get(El),o=r.handler??=new Qb,i=t?.phase??xs.MixedReadWrite,s=()=>{o.unregister(c),a()},a=n.get(pf).onDestroy(s),c=new qb(n,i,()=>{s(),e()});return o.register(c),{destroy:s}}class qb{constructor(t,n,r){this.phase=n,this.callbackFn=r,this.zone=t.get(Ct),this.errorHandler=t.get(ni,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(t){this.errorHandler?.handleError(t)}}}class Qb{constructor(){this.executingCallbacks=!1,this.buckets={[xs.EarlyRead]:new Set,[xs.Write]:new Set,[xs.MixedReadWrite]:new Set,[xs.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const n of t)n.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let El=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){const n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of n)r();this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=Ue({token:e,providedIn:"root",factory:()=>new e})}return e})();function mf(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0&&ZE(e,n,i.join(" "))}}(g,ge,E,r),void 0!==n&&function UF(e,t,n){const r=e.projection=[];for(let o=0;o{class e{static#e=this.__NG_ELEMENT_ID__=jF}return e})();function jF(){return nx(Lt(),me())}const $F=$r,ex=class extends $F{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return sa(this._hostTNode,this._hostLView)}get injector(){return new Dn(this._hostTNode,this._hostLView)}get parentInjector(){const t=kd(this._hostTNode,this._hostLView);if(Wp(t)){const n=rl(t,this._hostLView),r=nl(t);return new Dn(n[ke].data[r+8],n)}return new Dn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=tx(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-fn}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,Sa(this._hostTNode,null)),a}createComponent(t,n,r,o,i){const s=t&&!function el(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const E=n||{};a=E.index,r=E.injector,o=E.projectableNodes,i=E.environmentInjector||E.ngModuleRef}const c=s?t:new Cl(gt(t)),l=r||this.parentInjector;if(!i&&null==c.ngModule){const A=(s?l:this.parentInjector).get(Hr,null);A&&(i=A)}gt(c.componentType??{});const v=c.create(l,o,null,i);return this.insertImpl(v.hostView,a,Sa(this._hostTNode,null)),v}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const o=t._lView;if(function $3(e){return Wn(e[dn])}(o)){const a=this.indexOf(t);if(-1!==a)this.detach(a);else{const c=o[dn],l=new ex(c,c[$n],c[dn]);l.detach(l.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;return dl(s,o,i,r),t.attachToViewContainerRef(),d_(Wg(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=tx(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=al(this._lContainer,n);r&&(ad(Wg(this._lContainer),n),Zd(r[ke],r))}detach(t){const n=this._adjustIndex(t,-1),r=al(this._lContainer,n);return r&&null!=ad(Wg(this._lContainer),n)?new pl(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function tx(e){return e[8]}function Wg(e){return e[8]||(e[8]=[])}function nx(e,t){let n;const r=t[e.index];return Wn(r)?n=r:(n=cb(r,t,null,e),t[e.index]=n,nf(t,n)),rx(n,t,e,r),new ex(n,e,t)}let rx=function ix(e,t,n,r){if(e[Eo])return;let o;o=8&n.type?Vt(r):function zF(e,t){const n=e[st],r=n.createComment(""),o=or(t,e);return Es(n,Yd(n,o),r,function BR(e,t){return e.nextSibling(t)}(n,o),!1),r}(t,n),e[Eo]=o},Kg=()=>!1;class qg{constructor(t){this.queryList=t,this.matches=null}clone(){return new qg(this.queryList)}setDirty(){this.queryList.setDirty()}}class Qg{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let i=0;it.trim())}(t):t}}class Zg{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r0)r.push(s[a/2]);else{const l=i[a+1],u=t[-c];for(let d=fn;d=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Vc(o.hostAttrs,n=Vc(n,o.hostAttrs))}}(r)}function lO(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const r=t.inputs[n];if(void 0!==r&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const o=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(o))continue;e.inputTransforms??={},e.inputTransforms[o]=t.inputTransforms[o]}}}function vf(e){return e===_o?{}:e===At?[]:e}function dO(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function fO(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function hO(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function Sx(e){const t=e.inputConfig,n={};for(const r in t)if(t.hasOwnProperty(r)){const o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}class Cs{}class Ix{}class nm extends Cs{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Xb(this);const o=jn(t);this._bootstrapComponents=Or(o.bootstrap),this._r3Injector=sE(t,n,[{provide:Cs,useValue:this},{provide:wl,useValue:this.componentFactoryResolver},...r],bn(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class rm extends Ix{constructor(t){super(),this.moduleType=t}create(t){return new nm(this.moduleType,t,[])}}class Tx extends Cs{constructor(t){super(),this.componentFactoryResolver=new Xb(this),this.instance=null;const n=new ya([...t.providers,{provide:Cs,useValue:this},{provide:wl,useValue:this.componentFactoryResolver}],t.parent||Td(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function om(e,t,n=null){return new Tx({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let Al=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ln(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function hn(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Sn(e,t,n,r,o,i,s,a){const c=me(),l=Et(),u=e+ct,d=l.firstCreatePass?function bO(e,t,n,r,o,i,s,a,c){const l=t.consts,u=Aa(t,e,4,s||null,bo(l,a));Cg(t,n,u,bo(l,c)),Nd(t,u);const d=u.tView=xg(2,u,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,l,c,t,n,r,o,i,s):l.data[u];xo(d,!1);const g=Mx(l,c,d,e);sd()&&Xd(l,c,g,d),Qn(g,c);const v=cb(g,c,g,d);return c[u]=v,nf(c,v),function ox(e,t,n){return Kg(e,t,n)}(v,d,c),rd(d)&&Eg(l,c,d),null!=s&&bg(c,d,a),Sn}let Mx=function Nx(e,t,n,r){return Ri(!0),t[st].createComment("")};function wr(e,t,n,r){const o=me();return hn(o,ao(),t)&&(Et(),So(Kt(),o,e,t,n,r)),wr}function Af(e,t){return e<<17|t<<2}function Ui(e){return e>>17&32767}function pm(e){return 2|e}function Ss(e){return(131068&e)>>2}function gm(e,t){return-131069&e|t<<2}function mm(e){return 1|e}function cC(e,t,n,r){const o=e[n+1],i=null===t;let s=r?Ui(o):Ss(o),a=!1;for(;0!==s&&(!1===a||i);){const l=e[s+1];sP(e[s],t)&&(a=!0,e[s+1]=r?mm(l):pm(l)),s=r?Ui(l):Ss(l)}a&&(e[n+1]=r?pm(o):mm(o))}function sP(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ca(e,t)>=0}const In={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lC(e){return e.substring(In.key,In.keyEnd)}function uC(e,t){const n=In.textEnd;return n===t?-1:(t=In.keyEnd=function uP(e,t,n){for(;t32;)t++;return t}(e,In.key=t,n),Ga(e,t,n))}function Ga(e,t,n){for(;t=0;n=uC(t,n))Nr(e,lC(t),!0)}function co(e,t,n,r){const o=me(),i=Et(),s=ti(2);i.firstUpdatePass&&mC(i,e,s,r),t!==dt&&hn(o,s,t)&&vC(i,i.data[Kn()],o,o[st],e,o[s+1]=function EP(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=bn(Rr(e)))),e}(t,n),r,s)}function gC(e,t){return t>=e.expandoStartIndex}function mC(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[Kn()],s=gC(e,n);_C(i,r)&&null===t&&!s&&(t=!1),t=function pP(e,t,n,r){const o=op(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Nl(n=vm(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=vm(o,e,t,n,r),null===i){let c=function gP(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Ss(r))return e[Ui(r)]}(e,t,r);void 0!==c&&Array.isArray(c)&&(c=vm(null,e,t,c[1],r),c=Nl(c,t.attrs,r),function mP(e,t,n,r){e[Ui(n?t.classBindings:t.styleBindings)]=r}(e,t,r,c))}else i=function yP(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(l=!0)):u=n,o)if(0!==c){const g=Ui(e[a+1]);e[r+1]=Af(g,a),0!==g&&(e[g+1]=gm(e[g+1],r)),e[a+1]=function nP(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Af(a,0),0!==a&&(e[a+1]=gm(e[a+1],r)),a=r;else e[r+1]=Af(c,0),0===a?a=r:e[c+1]=gm(e[c+1],r),c=r;l&&(e[r+1]=pm(e[r+1])),cC(e,u,r,!0),cC(e,u,r,!1),function iP(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&ca(i,t)>=0&&(n[r+1]=mm(n[r+1]))}(t,u,e,r,i),s=Af(a,c),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}function vm(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=null===u;let g=n[o+1];g===dt&&(g=d?At:void 0);let v=d?lp(g,r):u===r?g:void 0;if(l&&!Sf(v)&&(v=lp(c,r)),Sf(v)&&(a=v,s))return a;const E=e[o+1];o=s?Ui(E):Ss(E)}if(null!==t){let c=i?t.residualClasses:t.residualStyles;null!=c&&(a=lp(c,r))}return a}function Sf(e){return void 0!==e}function _C(e,t){return 0!=(e.flags&(t?8:16))}function xe(e,t,n,r){const o=me(),i=Et(),s=ct+e,a=o[st],c=i.firstCreatePass?function zP(e,t,n,r,o,i){const s=t.consts,c=Aa(t,e,2,r,bo(s,o));return Cg(t,n,c,bo(s,i)),null!==c.attrs&&mf(c,c.attrs,!1),null!==c.mergedAttrs&&mf(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,i,o,t,n,r):i.data[s],l=CC(i,o,c,a,t,e);o[s]=l;const u=rd(c);return xo(c,!0),YE(a,l,c),32!=(32&c.flags)&&sd()&&Xd(i,o,l,c),0===function G3(){return nt.lFrame.elementDepthCount}()&&Qn(l,o),function W3(){nt.lFrame.elementDepthCount++}(),u&&(Eg(i,o,c),_g(i,c,o)),null!==r&&bg(o,c),xe}function Se(){let e=Lt();tp()?np():(e=e.parent,xo(e,!1));const t=e;(function q3(e){return nt.skipHydrationRootTNode===e})(t)&&function X3(){nt.skipHydrationRootTNode=null}(),function K3(){nt.lFrame.elementDepthCount--}();const n=Et();return n.firstCreatePass&&(Nd(n,e),W0(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function gN(e){return 0!=(8&e.flags)}(t)&&ym(n,t,me(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function mN(e){return 0!=(16&e.flags)}(t)&&ym(n,t,me(),t.stylesWithoutHost,!1),Se}function yt(e,t,n,r){return xe(e,t,n,r),Se(),yt}let CC=(e,t,n,r,o,i)=>(Ri(!0),Qd(r,o,function c_(){return nt.lFrame.currentNamespace}()));function Rl(e,t,n){const r=me(),o=Et(),i=e+ct,s=o.firstCreatePass?function KP(e,t,n,r,o){const i=t.consts,s=bo(i,r),a=Aa(t,e,8,"ng-container",s);return null!==s&&mf(a,s,!0),Cg(t,n,a,bo(i,o)),null!==t.queries&&t.queries.elementStart(t,a),a}(i,o,r,t,n):o.data[i];xo(s,!0);const a=AC(o,r,s,e);return r[i]=a,sd()&&Xd(o,r,a,s),Qn(a,r),rd(s)&&(Eg(o,r,s),_g(o,s,r)),null!=n&&bg(r,s),Rl}function Fl(){let e=Lt();const t=Et();return tp()?np():(e=e.parent,xo(e,!1)),t.firstCreatePass&&(Nd(t,e),W0(e)&&t.queries.elementEnd(e)),Fl}let AC=(e,t,n,r)=>(Ri(!0),hg(t[st],""));function Wa(){return me()}function xm(e,t,n){const r=me();if(hn(r,ao(),t)){const i=Et(),s=Kt();vr(i,s,r,e,t,fb(op(i.data),s,r),n,!0)}return xm}const qa="en-US";let MC=qa;function St(e,t,n,r){const o=me(),i=Et(),s=Lt();return function Am(e,t,n,r,o,i,s){const a=rd(r),l=e.firstCreatePass&&db(e),u=t[Wt],d=ub(t);let g=!0;if(3&r.type||s){const A=or(r,t),U=s?s(A):A,q=d.length,K=s?le=>s(Vt(le[r.index])):r.index;let se=null;if(!s&&a&&(se=function Wk(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;ic?a[c]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==se)(se.__ngLastListenerFn__||se).__ngNextListenerFn__=i,se.__ngLastListenerFn__=i,g=!1;else{i=r2(r,t,u,i,!1);const le=n.listen(U,o,i);d.push(i,le),l&&l.push(o,K,q,q+1)}}else i=r2(r,t,u,i,!1);const v=r.outputs;let E;if(g&&null!==v&&(E=v[o])){const A=E.length;if(A)for(let U=0;U-1?Mr(e.index,t):t);let c=n2(t,n,r,s),l=i.__ngNextListenerFn__;for(;l;)c=n2(t,n,l,s)&&c,l=l.__ngNextListenerFn__;return o&&!1===c&&s.preventDefault(),c}}function Zn(e=1){return function o4(e){return(nt.lFrame.contextLView=function Zw(e,t){for(;e>0;)t=t[ta],e--;return t}(e,nt.lFrame.contextLView))[Wt]}(e)}function Im(e,t,n){lx(e,t,n)}function Rf(e){const t=me(),n=Et(),r=ip();id(r+1);const o=em(n,r);if(e.dirty&&function j3(e){return 4==(4&e[qe])}(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const i=fx(t,r);e.reset(i,u_),e.notifyOnChanges()}return!0}return!1}function Ff(){return function Jg(e,t){return e[Jo].queries[t].queryList}(me(),ip())}function Hi(e){return function oa(e,t){return e[t]}(function J3(){return nt.lFrame.contextLView}(),ct+e)}function Fe(e,t=""){const n=me(),r=Et(),o=e+ct,i=r.firstCreatePass?Aa(r,o,1,t,null):r.data[o],s=x2(r,n,i,t,e);n[o]=s,sd()&&Xd(r,n,s,i),xo(i,!1)}let x2=(e,t,n,r,o)=>(Ri(!0),function qd(e,t){return e.createText(t)}(t[st],r));function Qa(e){return ci("",e,""),Qa}function ci(e,t,n){const r=me(),o=function Ba(e,t,n,r){return hn(e,ao(),n)?t+lt(n)+r:dt}(r,e,t,n);return o!==dt&&function oi(e,t,n){const r=zc(t,e);!function BE(e,t,n){e.setValue(t,n)}(e[st],r,n)}(r,Kn(),o),ci}function Tm(e,t,n,r,o){if(e=tt(e),Array.isArray(e))for(let i=0;i>20;if(ys(e)||!e.multi){const v=new tl(l,o,be),E=Nm(c,t,o?u:u+g,d);-1===E?(Qp(Pd(a,s),i,c),Mm(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(v),s.push(v)):(n[E]=v,s[E]=v)}else{const v=Nm(c,t,u+g,d),E=Nm(c,t,u,u+g),U=E>=0&&n[E];if(o&&!U||!o&&!(v>=0&&n[v])){Qp(Pd(a,s),i,c);const q=function gB(e,t,n,r,o){const i=new tl(e,n,be);return i.multi=[],i.index=t,i.componentProviders=0,O2(i,o,r&&!n),i}(o?pB:hB,n.length,o,r,l);!o&&U&&(n[E].providerFactory=q),Mm(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(q),s.push(q)}else Mm(i,e,v>-1?v:E,O2(n[o?E:v],l,!o&&r));!o&&r&&U&&n[E].componentProviders++}}}function Mm(e,t,n,r){const o=ys(t),i=function z4(e){return!!e.useClass}(t);if(o||i){const c=(i?tt(t.useClass):t).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const u=l.indexOf(n);-1===u?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function O2(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Nm(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function fB(e,t,n){const r=Et();if(r.firstCreatePass){const o=so(e);Tm(n,r.data,r.blueprint,o,!0),Tm(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}let mB=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=F_(0,n.type),o=r.length>0?om([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Ue({token:e,providedIn:"environment",factory:()=>new e(We(Hr))})}return e})();function Of(e){bs("NgStandalone"),e.getStandaloneInjector=t=>t.get(mB).getOrCreateStandaloneInjector(e)}function Om(e,t,n){const r=function ir(){const e=nt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}()+e,o=me();return o[r]===dt?function Io(e,t,n){return e[t]=n}(o,r,n?t.call(n):t()):function Sl(e,t){return e[t]}(o,r)}function q2(e,t){return af(e,t)}let uD=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const gD=new je(""),Lf=new je("");let jm,Um=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,jm||(function O5(e){jm=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ct.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n()},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(We(Ct),We(Hm),We(Lf))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})(),Hm=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return jm?.findTestabilityInTree(this,n,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function zl(e){return!!e&&"function"==typeof e.then}function mD(e){return!!e&&"function"==typeof e.subscribe}const $m=new je("");let zm=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=Pe($m,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(zl(i))n.push(i);else if(mD(i)){const s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Gm=new je("");function wD(e,t){return Array.isArray(t)?t.reduce(wD,e):{...e,...t}}let li=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Pe(cE),this.afterRenderEffectManager=Pe(El),this.componentTypes=[],this.components=[],this.isStable=Pe(Al).hasPendingTasks.pipe(kt(n=>!n)),this._injector=Pe(Hr)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof Tb;if(!this._injector.get(zm).done)throw!o&&function Ii(e){const t=gt(e)||xn(e)||Ln(e);return null!==t&&t.standalone}(n),new he(405,!1);let s;s=o?n:this._injector.get(wl).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function P5(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Cs),l=s.create(qn.NULL,[],r||s.selector,a),u=l.location.nativeElement,d=l.injector.get(gD,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),Vf(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new he(101,!1);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}detectChangesInAttachedViews(){let n=0;do{if(100===n)throw new he(103,!1);const r=0===n;for(let{_lView:o,notifyErrorHandler:i}of this._views)!r&&!_D(o)||this.detectChangesInView(o,i,r);this.afterRenderEffectManager.execute(),n++}while(this._views.some(({_lView:r})=>_D(r)))}detectChangesInView(n,r,o){let i;o?(i=0,n[qe]|=1024):i=64&n[qe]?0:1,sf(n,r,i)}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Vf(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Gm,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Vf(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new he(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Vf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function _D(e){return X0(e)}class B5{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let ED=(()=>{class e{compileModuleSync(n){return new rm(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Or(jn(n).declarations).reduce((s,a)=>{const c=gt(a);return c&&s.push(new Cl(c)),s},[]);return new B5(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),U5=(()=>{class e{constructor(){this.zone=Pe(Ct),this.applicationRef=Pe(li)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function H5(){const e=Pe(Ct),t=Pe(ni);return n=>e.runOutsideAngular(()=>t.handleError(n))}let $5=(()=>{class e{constructor(){this.subscription=new Le,this.initialized=!1,this.zone=Pe(Ct),this.pendingTasks=Pe(Al)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ct.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ct.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ui=new je("",{providedIn:"root",factory:()=>Pe(ui,_t.Optional|_t.SkipSelf)||function z5(){return typeof $localize<"u"&&$localize.locale||qa}()}),Wm=new je("");let DD=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function IF(e="zone.js",t){return"noop"===e?new zb:"zone.js"===e?new Ct(t):e}(r?.ngZone,function CD(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function EO(e,t,n){return new nm(e,t,n)}(n.moduleType,this.injector,function xD(e){return[{provide:Ct,useFactory:e},{provide:ms,multi:!0,useFactory:()=>{const t=Pe(U5,{optional:!0});return()=>t.initialize()}},{provide:ms,multi:!0,useFactory:()=>{const t=Pe($5);return()=>{t.initialize()}}},{provide:cE,useFactory:H5}]}(()=>o)),s=i.injector.get(ni,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:c=>{s.handleError(c)}});i.onDestroy(()=>{Vf(this._modules,i),a.unsubscribe()})}),function vD(e,t,n){try{const r=n();return zl(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(zm);return a.runInitializers(),a.donePromise.then(()=>(function NC(e){"string"==typeof e&&(MC=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(ui,qa)||qa),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=wD({},r);return function V5(e,t,n){const r=new rm(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(li);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new he(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new he(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Wm,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(We(qn))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),ji=null;const AD=new je("");function SD(e,t,n=[]){const r=`Platform: ${t}`,o=new je(r);return(i=[])=>{let s=Km();if(!s||s.injector.get(AD,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function K5(e){if(ji&&!ji.get(AD,!1))throw new he(400,!1);(function yD(){!function D(e){de=e}(()=>{throw new he(600,!1)})})(),ji=e;const t=e.get(DD);(function TD(e){e.get(v_,null)?.forEach(n=>n())})(e)}(function ID(e=[],t){return qn.create({name:t,providers:[{provide:Bp,useValue:"platform"},{provide:Wm,useValue:new Set([()=>ji=null])},...e]})}(a,r))}return function q5(e){const t=Km();if(!t)throw new he(401,!1);return t}()}}function Km(){return ji?.get(DD)??null}const J5=SD(null,"core",[]);let eL=(()=>{class e{constructor(n){}static#e=this.\u0275fac=function(r){return new(r||e)(We(li))};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({})}return e})();function Ja(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let eA=null;function $i(){return eA}class ML{}const Yn=new je("");let ey=(()=>{class e{historyGo(n){throw new Error("")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:()=>Pe(RL),providedIn:"platform"})}return e})();const NL=new je("");let RL=(()=>{class e extends ey{constructor(){super(),this._doc=Pe(Yn),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return $i().getBaseHref(this._doc)}onPopState(n){const r=$i().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=$i().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function ty(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function tA(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function di(e){return e&&"?"!==e[0]?"?"+e:e}let Rs=(()=>{class e{historyGo(n){throw new Error("")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:()=>Pe(rA),providedIn:"root"})}return e})();const nA=new je("");let rA=(()=>{class e extends Rs{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??Pe(Yn).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return ty(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+di(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+di(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+di(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static#e=this.\u0275fac=function(r){return new(r||e)(We(ey),We(nA,8))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),FL=(()=>{class e extends Rs{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){const r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=ty(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+di(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+di(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static#e=this.\u0275fac=function(r){return new(r||e)(We(ey),We(nA,8))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})(),Kl=(()=>{class e{constructor(n){this._subject=new Xt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function kL(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(tA(oA(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+di(r))}normalize(n){return e.stripTrailingSlash(function PL(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,oA(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+di(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+di(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}static#e=this.normalizeQueryParams=di;static#t=this.joinWithSlash=ty;static#n=this.stripTrailingSlash=tA;static#r=this.\u0275fac=function(r){return new(r||e)(We(Rs))};static#o=this.\u0275prov=Ue({token:e,factory:()=>function OL(){return new Kl(We(Rs))}(),providedIn:"root"})}return e})();function oA(e){return e.replace(/\/index.html$/,"")}let zi=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new D7,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){mA("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){mA("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(be($r),be(ii))};static#t=this.\u0275dir=it({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class D7{constructor(){this.$implicit=null,this.ngIf=null}}function mA(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${bn(t)}'.`)}let No=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({})}return e})();const wA="browser";function _A(e){return"server"===e}let t9=(()=>{class e{static#e=this.\u0275prov=Ue({token:e,providedIn:"root",factory:()=>function e9(e){return e===wA}(Pe(ps))?new n9(Pe(Yn),window):new o9})}return e})();class n9{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){const n=function r9(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}}class o9{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}}class F9 extends ML{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class yy extends F9{static makeCurrent(){!function TL(e){eA??=e}(new yy)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function O9(){return Yl=Yl||document.querySelector("base"),Yl?Yl.getAttribute("href"):null}();return null==n?null:function P9(e){return new URL(e,document.baseURI).pathname}(n)}resetBaseElement(){Yl=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function _7(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,t)}}let Yl=null,B9=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();const vy=new je("");let TA=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new he(5101,!1);return this._eventNameToPlugin.set(n,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(We(vy),We(Ct))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();class MA{constructor(t){this._doc=t}}const wy="ng-app-id";let NA=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=_A(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${wy}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(wy),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(wy,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(We(Yn),We(pd),We(__,8),We(ps))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();const _y={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ey=/%COMP%/g,H9=new je("",{providedIn:"root",factory:()=>!0});function FA(e,t){return t.map(n=>n.replace(Ey,e))}let by=(()=>{class e{constructor(n,r,o,i,s,a,c,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=_A(a),this.defaultRenderer=new xy(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===no.ShadowDom&&(r={...r,encapsulation:no.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof PA?o.applyToHost(n):o instanceof Cy&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case no.Emulated:i=new PA(c,l,r,this.appId,u,s,a,d);break;case no.ShadowDom:return new G9(c,l,n,r,s,a,this.nonce,d);default:i=new Cy(c,l,r,u,s,a,d)}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(We(TA),We(NA),We(pd),We(H9),We(Yn),We(ps),We(Ct),We(__))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();class xy{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(_y[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(OA(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(OA(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new he(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=_y[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=_y[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(ki.DashCase|ki.Important)?t.style.setProperty(n,r,o&ki.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ki.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){null!=t&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=$i().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&n.preventDefault()}}}function OA(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class G9 extends xy{constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=FA(o.id,o.styles);for(const u of l){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Cy extends xy{constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?FA(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class PA extends Cy{constructor(t,n,r,o,i,s,a,c){const l=o+"-"+r.id;super(t,n,r,i,s,a,c,l),this.contentAttr=function j9(e){return"_ngcontent-%COMP%".replace(Ey,e)}(l),this.hostAttr=function $9(e){return"_nghost-%COMP%".replace(Ey,e)}(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let W9=(()=>{class e extends MA{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static#e=this.\u0275fac=function(r){return new(r||e)(We(Yn))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();const kA=["alt","control","meta","shift"],K9={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},q9={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Q9=(()=>{class e extends MA{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$i().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),kA.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=K9[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),kA.forEach(s=>{s!==o&&(0,q9[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}static#e=this.\u0275fac=function(r){return new(r||e)(We(Yn))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();const J9=SD(J5,"browser",[{provide:ps,useValue:wA},{provide:v_,useValue:function Z9(){yy.makeCurrent()},multi:!0},{provide:Yn,useFactory:function X9(){return function d4(e){dp=e}(document),document},deps:[]}]),eV=new je(""),VA=[{provide:Lf,useClass:class k9{addToWindow(t){Ot.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new he(5103,!1);return i},Ot.getAllAngularTestabilities=()=>t.getAllTestabilities(),Ot.getAllAngularRootElements=()=>t.getAllRootElements(),Ot.frameworkStabilizers||(Ot.frameworkStabilizers=[]),Ot.frameworkStabilizers.push(r=>{const o=Ot.getAllAngularTestabilities();let i=o.length;const s=function(){i--,0==i&&r()};o.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?$i().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:gD,useClass:Um,deps:[Ct,Hm,Lf]},{provide:Um,useClass:Um,deps:[Ct,Hm,Lf]}],UA=[{provide:Bp,useValue:"root"},{provide:ni,useFactory:function Y9(){return new ni},deps:[]},{provide:vy,useClass:W9,multi:!0,deps:[Yn,Ct,ps]},{provide:vy,useClass:Q9,multi:!0,deps:[Yn]},by,NA,TA,{provide:Lg,useExisting:by},{provide:class i9{},useClass:B9,deps:[]},[]];let HA=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:pd,useValue:n.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(We(eV,12))};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({providers:[...UA,...VA],imports:[No,eL]})}return e})(),tV=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static#e=this.\u0275fac=function(r){return new(r||e)(We(Yn))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),zA=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:function(r){let o=null;return o=r?new(r||e):We(iV),o},providedIn:"root"})}return e})(),iV=(()=>{class e extends zA{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case Fr.NONE:return r;case Fr.HTML:return Ao(r,"HTML")?Rr(r):_E(this._doc,String(r)).toString();case Fr.STYLE:return Ao(r,"Style")?Rr(r):r;case Fr.SCRIPT:if(Ao(r,"Script"))return Rr(r);throw new he(5200,!1);case Fr.URL:return Ao(r,"URL")?Rr(r):$d(String(r));case Fr.RESOURCE_URL:if(Ao(r,"ResourceURL"))return Rr(r);throw new he(5201,!1);default:throw new he(5202,!1)}}bypassSecurityTrustHtml(n){return function UN(e){return new ON(e)}(n)}bypassSecurityTrustStyle(n){return function HN(e){return new PN(e)}(n)}bypassSecurityTrustScript(n){return function jN(e){return new kN(e)}(n)}bypassSecurityTrustUrl(n){return function $N(e){return new BN(e)}(n)}bypassSecurityTrustResourceUrl(n){return function zN(e){return new LN(e)}(n)}static#e=this.\u0275fac=function(r){return new(r||e)(We(Yn))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var tc=y(1316);const WA=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function KA(e){return Ae(e?.then)}function qA(e){return Ae(e[Xs])}function QA(e){return Symbol.asyncIterator&&Ae(e?.[Symbol.asyncIterator])}function ZA(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const YA=function aV(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function XA(e){return Ae(e?.[YA])}function JA(e){return(0,tc.__asyncGenerator)(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield(0,tc.__await)(n.read());if(o)return yield(0,tc.__await)(void 0);yield yield(0,tc.__await)(r)}}finally{n.releaseLock()}})}function eS(e){return Ae(e?.getReader)}function Ro(e){if(e instanceof cn)return e;if(null!=e){if(qA(e))return function cV(e){return new cn(t=>{const n=e[Xs]();if(Ae(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(WA(e))return function lV(e){return new cn(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,rr)})}(e);if(QA(e))return tS(e);if(XA(e))return function dV(e){return new cn(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(eS(e))return function fV(e){return tS(JA(e))}(e)}throw ZA(e)}function tS(e){return new cn(t=>{(function hV(e,t){var n,r,o,i;return(0,tc.__awaiter)(this,void 0,void 0,function*(){try{for(n=(0,tc.__asyncValues)(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function pi(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function nS(e,t=0){return _n((n,r)=>{n.subscribe(En(r,o=>pi(r,e,()=>r.next(o),t),()=>pi(r,e,()=>r.complete(),t),o=>pi(r,e,()=>r.error(o),t)))})}function rS(e,t=0){return _n((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function oS(e,t){if(!e)throw new Error("Iterable cannot be null");return new cn(n=>{pi(n,t,()=>{const r=e[Symbol.asyncIterator]();pi(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Pn(e,t){return t?function wV(e,t){if(null!=e){if(qA(e))return function pV(e,t){return Ro(e).pipe(rS(t),nS(t))}(e,t);if(WA(e))return function mV(e,t){return new cn(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(KA(e))return function gV(e,t){return Ro(e).pipe(rS(t),nS(t))}(e,t);if(QA(e))return oS(e,t);if(XA(e))return function yV(e,t){return new cn(n=>{let r;return pi(n,t,()=>{r=e[YA](),pi(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>Ae(r?.return)&&r.return()})}(e,t);if(eS(e))return function vV(e,t){return oS(JA(e),t)}(e,t)}throw ZA(e)}(e,t):Ro(e)}function Dy(e){return e[e.length-1]}function iS(e){return Ae(Dy(e))?e.pop():void 0}function ah(e){return function _V(e){return e&&Ae(e.schedule)}(Dy(e))?e.pop():void 0}function at(...e){return Pn(e,ah(e))}const{isArray:EV}=Array,{getPrototypeOf:bV,prototype:xV,keys:CV}=Object;function sS(e){if(1===e.length){const t=e[0];if(EV(t))return{args:t,keys:null};if(function DV(e){return e&&"object"==typeof e&&bV(e)===xV}(t)){const n=CV(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:AV}=Array;function aS(e){return kt(t=>function SV(e,t){return AV(t)?e(...t):e(t)}(e,t))}function cS(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Ay(...e){const t=ah(e),n=iS(e),{args:r,keys:o}=sS(e);if(0===r.length)return Pn([],t);const i=new cn(function IV(e,t,n=Qo){return r=>{lS(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let c=0;c{const l=Pn(e[c],t);let u=!1;l.subscribe(En(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>cS(o,s):Qo));return n?i.pipe(aS(n)):i}function lS(e,t,n){e?pi(n,e,t):t()}const Jl=Be(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Xn(e,t,n=1/0){return Ae(t)?Xn((r,o)=>kt((i,s)=>t(r,i,o,s))(Ro(e(r,o))),n):("number"==typeof t&&(n=t),_n((r,o)=>function TV(e,t,n,r,o,i,s,a){const c=[];let l=0,u=0,d=!1;const g=()=>{d&&!c.length&&!l&&t.complete()},v=A=>l{i&&t.next(A),l++;let U=!1;Ro(n(A,u++)).subscribe(En(t,q=>{o?.(q),i?v(q):t.next(q)},()=>{U=!0},void 0,()=>{if(U)try{for(l--;c.length&&lE(q)):E(q)}g()}catch(q){t.error(q)}}))};return e.subscribe(En(t,v,()=>{d=!0,g()})),()=>{a?.()}}(r,o,e,n)))}function eu(e=1/0){return Xn(Qo,e)}function Sy(...e){return function MV(){return eu(1)}()(Pn(e,ah(e)))}function uS(e){return new cn(t=>{Ro(e()).subscribe(t)})}function ch(e,t){const n=Ae(e)?e:()=>e,r=o=>o.error(n());return new cn(t?o=>t.schedule(r,0,o):r)}const gi=new cn(e=>e.complete());function Iy(){return _n((e,t)=>{let n=null;e._refCount++;const r=En(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class dS extends cn{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,kc(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Le;const n=this.getSubject();t.add(this.source.subscribe(En(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Le.EMPTY)}return t}refCount(){return Iy()(this)}}function Fo(e,t){return _n((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(En(r,c=>{o?.unsubscribe();let l=0;const u=i++;Ro(e(c,u)).subscribe(o=En(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function nc(e){return e<=0?()=>gi:_n((t,n)=>{let r=0;t.subscribe(En(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function mi(e,t){return _n((n,r)=>{let o=0;n.subscribe(En(r,i=>e.call(t,i,o++)&&r.next(i)))})}function lh(e){return _n((t,n)=>{let r=!1;t.subscribe(En(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function fS(e=FV){return _n((t,n)=>{let r=!1;t.subscribe(En(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function FV(){return new Jl}function Gi(e,t){const n=arguments.length>=2;return r=>r.pipe(e?mi((o,i)=>e(o,i,r)):Qo,nc(1),n?lh(t):fS(()=>new Jl))}function tu(e,t){return Ae(t)?Xn(e,t,1):Xn(e,1)}function Jn(e,t,n){const r=Ae(e)||t||n?{next:e,error:t,complete:n}:e;return r?_n((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(En(i,c=>{var l;null===(l=r.next)||void 0===l||l.call(r,c),i.next(c)},()=>{var c;a=!1,null===(c=r.complete)||void 0===c||c.call(r),i.complete()},c=>{var l;a=!1,null===(l=r.error)||void 0===l||l.call(r,c),i.error(c)},()=>{var c,l;a&&(null===(c=r.unsubscribe)||void 0===c||c.call(r)),null===(l=r.finalize)||void 0===l||l.call(r)}))}):Qo}function rc(e){return _n((t,n)=>{let i,r=null,o=!1;r=t.subscribe(En(n,void 0,void 0,s=>{i=Ro(e(s,rc(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Ty(e){return e<=0?()=>gi:_n((t,n)=>{let r=[];t.subscribe(En(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function My(e){return _n((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const ht="primary",nu=Symbol("RouteTitle");class VV{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function oc(e){return new VV(e)}function UV(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function pS(e){return e.length>0?e[e.length-1]:null}function Wi(e){return function sV(e){return!!e&&(e instanceof cn||Ae(e.lift)&&Ae(e.subscribe))}(e)?e:zl(e)?Pn(Promise.resolve(e)):at(e)}const jV={exact:function yS(e,t,n){if(!Fs(e.segments,t.segments)||!uh(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!yS(e.children[r],t.children[r],n))return!1;return!0},subset:vS},gS={exact:function $V(e,t){return Oo(e,t)},subset:function zV(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>hS(e[n],t[n]))},ignored:()=>!0};function mS(e,t,n){return jV[n.paths](e.root,t.root,n.matrixParams)&&gS[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function vS(e,t,n){return wS(e,t,t.segments,n)}function wS(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!Fs(o,n)||t.hasChildren()||!uh(o,n,r))}if(e.segments.length===n.length){if(!Fs(e.segments,n)||!uh(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!vS(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(Fs(e.segments,o)&&uh(e.segments,o,r)&&e.children[ht])&&wS(e.children[ht],t,i,r)}}function uh(e,t,n){return t.every((r,o)=>gS[n](e[o].parameters,r.parameters))}class ic{constructor(t=new Ut([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=oc(this.queryParams),this._queryParamMap}toString(){return KV.serialize(this)}}class Ut{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return dh(this)}}class ru{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=oc(this.parameters),this._parameterMap}toString(){return bS(this)}}function Fs(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let sc=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:()=>new Ry,providedIn:"root"})}return e})();class Ry{parse(t){const n=new oU(t);return new ic(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${ou(t.root,!0)}`,r=function ZV(e){const t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${fh(n)}=${fh(o)}`).join("&"):`${fh(n)}=${fh(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function qV(e){return encodeURI(e)}(t.fragment)}`:""}`}}const KV=new Ry;function dh(e){return e.segments.map(t=>bS(t)).join("/")}function ou(e,t){if(!e.hasChildren())return dh(e);if(t){const n=e.children[ht]?ou(e.children[ht],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==ht&&r.push(`${o}:${ou(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function WV(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===ht&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==ht&&(n=n.concat(t(o,r)))}),n}(e,(r,o)=>o===ht?[ou(e.children[ht],!1)]:[`${o}:${ou(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[ht]?`${dh(e)}/${n[0]}`:`${dh(e)}/(${n.join("//")})`}}function _S(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fh(e){return _S(e).replace(/%3B/gi,";")}function Fy(e){return _S(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function hh(e){return decodeURIComponent(e)}function ES(e){return hh(e.replace(/\+/g,"%20"))}function bS(e){return`${Fy(e.path)}${function QV(e){return Object.entries(e).map(([t,n])=>`;${Fy(t)}=${Fy(n)}`).join("")}(e.parameters)}`}const YV=/^[^\/()?;#]+/;function Oy(e){const t=e.match(YV);return t?t[0]:""}const XV=/^[^\/()?;=#]+/,eU=/^[^=?&#]+/,nU=/^[^&#]+/;class oU{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ut([],{}):new Ut([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[ht]=new Ut(t,n)),r}parseSegment(){const t=Oy(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new he(4009,!1);return this.capture(t),new ru(hh(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function JV(e){const t=e.match(XV);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Oy(this.remaining);o&&(r=o,this.capture(r))}t[hh(n)]=hh(r)}parseQueryParam(t){const n=function tU(e){const t=e.match(eU);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function rU(e){const t=e.match(nU);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=ES(n),i=ES(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Oy(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new he(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=ht);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[ht]:new Ut([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new he(4011,!1)}}function xS(e){return e.segments.length>0?new Ut([],{[ht]:e}):e}function CS(e){const t={};for(const[r,o]of Object.entries(e.children)){const i=CS(o);if(r===ht&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function iU(e){if(1===e.numberOfChildren&&e.children[ht]){const t=e.children[ht];return new Ut(e.segments.concat(t.segments),t.children)}return e}(new Ut(e.segments,t))}function ac(e){return e instanceof ic}function DS(e){let t;const o=xS(function n(i){const s={};for(const c of i.children){const l=n(c);s[c.outlet]=l}const a=new Ut(i.url,s);return i===e&&(t=a),a}(e.root));return t??o}function AS(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(0===t.length)return Py(o,o,o,n,r);const i=function aU(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new IS(!0,0,e);let t=0,n=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([c,l])=>{a[c]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,c)=>{0==c&&"."===a||(0==c&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new IS(n,t,r)}(t);if(i.toRoot())return Py(o,o,new Ut([],{}),n,r);const s=function cU(e,t,n){if(e.isAbsolute)return new gh(t,!0,0);if(!n)return new gh(t,!1,NaN);if(null===n.parent)return new gh(n,!0,0);const r=ph(e.commands[0])?0:1;return function lU(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new he(4005,!1);o=r.segments.length}return new gh(r,!1,o-i)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?su(s.segmentGroup,s.index,i.commands):TS(s.segmentGroup,s.index,i.commands);return Py(o,s.segmentGroup,a,n,r)}function ph(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function iu(e){return"object"==typeof e&&null!=e&&e.outlets}function Py(e,t,n,r,o){let s,i={};r&&Object.entries(r).forEach(([c,l])=>{i[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=e===t?n:SS(e,t,n);const a=xS(CS(s));return new ic(a,i,o)}function SS(e,t,n){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===t?n:SS(i,t,n)}),new Ut(e.segments,r)}class IS{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ph(r[0]))throw new he(4003,!1);const o=r.find(iu);if(o&&o!==pS(r))throw new he(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class gh{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function TS(e,t,n){if(e??=new Ut([],{}),0===e.segments.length&&e.hasChildren())return su(e,t,n);const r=function dU(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(iu(a))break;const c=`${a}`,l=r0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!NS(c,l,s))return i;r+=2}else{if(!NS(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==ht)&&e.children[ht]&&1===e.numberOfChildren&&0===e.children[ht].segments.length){const i=su(e.children[ht],t,n);return new Ut(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=TS(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new Ut(e.segments,o)}}function ky(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=ky(new Ut([],{}),0,r))}),t}function MS(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function NS(e,t,n){return e==n.path&&Oo(t,n.parameters)}const au="imperative";var xt=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(xt||{});class Po{constructor(t,n){this.id=t,this.url=n}}class cu extends Po{constructor(t,n,r="imperative",o=null){super(t,n),this.type=xt.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class yi extends Po{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=xt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var qr=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(qr||{}),mh=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(mh||{});class cc extends Po{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=xt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class lc extends Po{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=xt.NavigationSkipped}}class yh extends Po{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=xt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class RS extends Po{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=xt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hU extends Po{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=xt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pU extends Po{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=xt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class gU extends Po{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=xt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mU extends Po{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=xt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yU{constructor(t){this.route=t,this.type=xt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class vU{constructor(t){this.route=t,this.type=xt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class wU{constructor(t){this.snapshot=t,this.type=xt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _U{constructor(t){this.snapshot=t,this.type=xt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class EU{constructor(t){this.snapshot=t,this.type=xt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bU{constructor(t){this.snapshot=t,this.type=xt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class FS{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=xt.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class By{}class Ly{constructor(t){this.url=t}}class xU{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new lu,this.attachRef=null}}let lu=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new xU,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class OS{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=Vy(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=Vy(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=Uy(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Uy(t,this._root).map(n=>n.value)}}function Vy(e,t){if(e===t.value)return t;for(const n of t.children){const r=Vy(e,n);if(r)return r}return null}function Uy(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Uy(e,n);if(r.length)return r.unshift(t),r}return[]}class ho{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function uc(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class PS extends OS{constructor(t,n){super(t),this.snapshot=n,$y(this,t)}toString(){return this.snapshot.toString()}}function kS(e){const t=function CU(e){const i=new jy([],{},{},"",{},ht,e,null,{});return new BS("",new ho(i,[]))}(e),n=new ln([new ru("",{})]),r=new ln({}),o=new ln({}),i=new ln({}),s=new ln(""),a=new dc(n,r,i,s,o,ht,e,t.root);return a.snapshot=t.root,new PS(new ho(a,[]),t)}class dc{constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(kt(l=>l[nu]))??at(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(kt(t=>oc(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(kt(t=>oc(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Hy(e,t,n="emptyOnly"){let r;const{routeConfig:o}=e;return r=null===t||"always"!==n&&""!==o?.path&&(t.component||t.routeConfig?.loadComponent)?{params:{...e.params},data:{...e.data},resolve:{...e.data,...e._resolvedData??{}}}:{params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.data,...o?.data,...e._resolvedData}},o&&VS(o)&&(r.resolve[nu]=o.title),r}class jy{get title(){return this.data?.[nu]}constructor(t,n,r,o,i,s,a,c,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=oc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=oc(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class BS extends OS{constructor(t,n){super(n),this.url=t,$y(this,n)}toString(){return LS(this._root)}}function $y(e,t){t.value._routerState=e,t.children.forEach(n=>$y(e,n))}function LS(e){const t=e.children.length>0?` { ${e.children.map(LS).join(", ")} } `:"";return`${e.value}${t}`}function zy(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Oo(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Oo(t.params,n.params)||e.paramsSubject.next(n.params),function HV(e,t){if(e.length!==t.length)return!1;for(let n=0;nOo(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||Gy(e.parent,t.parent))}function VS(e){return"string"==typeof e.title||null===e.title}let Wy=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=ht,this.activateEvents=new Xt,this.deactivateEvents=new Xt,this.attachEvents=new Xt,this.detachEvents=new Xt,this.parentContexts=Pe(lu),this.location=Pe($r),this.changeDetector=Pe(_l),this.environmentInjector=Pe(Hr),this.inputBinder=Pe(vh,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new he(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new he(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new he(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new he(4013,!1);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new DU(n,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=it({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[jr]})}return e})();class DU{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===dc?this.route:t===lu?this.childContexts:this.parent.get(t,n)}}const vh=new je("");let US=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=Ay([r.queryParams,r.params,r.data]).pipe(Fo(([i,s,a],c)=>(a={...i,...s,...a},0===c?at(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const s=function IL(e){const t=gt(e);if(!t)return null;const n=new Cl(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}(r.component);if(s)for(const{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();function uu(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function SU(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return uu(e,r,o);return uu(e,r)})}(e,t,n);return new ho(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>uu(e,a)),s}}const r=function IU(e){return new dc(new ln(e.url),new ln(e.params),new ln(e.queryParams),new ln(e.fragment),new ln(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>uu(e,i));return new ho(r,o)}}const HS="ngNavigationCancelingError";function jS(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=ac(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=$S(!1,qr.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function $S(e,t){const n=new Error(`NavigationCancelingError: ${e||""}`);return n[HS]=!0,n.cancellationCode=t,n}function zS(e){return!!e&&e[HS]}let GS=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Tr({type:e,selectors:[["ng-component"]],standalone:!0,features:[Of],decls:1,vars:0,template:function(r,o){1&r&&yt(0,"router-outlet")},dependencies:[Wy],encapsulation:2})}return e})();function Ky(e){const t=e.children&&e.children.map(Ky),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==ht&&(n.component=GS),n}function ko(e){return e.outlet||ht}function du(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class kU{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),zy(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=uc(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=uc(t);for(const s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=uc(t);for(const s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){const o=uc(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new bU(i.value.snapshot))}),t.children.length&&this.forwardEvent(new _U(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(zy(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),zy(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=du(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class WS{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class wh{constructor(t,n){this.component=t,this.route=n}}function BU(e,t,n){const r=e._root;return fu(r,t?t._root:null,n,[r.value])}function fc(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function f4(e){return null!==dd(e)}(e)?t.get(e):e:r}function fu(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=uc(t);return e.children.forEach(s=>{(function VU(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const c=function UU(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Fs(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Fs(e.url,t.url)||!Oo(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Gy(e,t)||!Oo(e.queryParams,t.queryParams);default:return!Gy(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new WS(r)):(i.data=s.data,i._resolvedData=s._resolvedData),fu(e,t,i.component?a?a.children:null:n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new wh(a.outlet.component,s))}else s&&hu(t,a,o),o.canActivateChecks.push(new WS(r)),fu(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>hu(a,n.getContext(s),o)),o}function hu(e,t,n){const r=uc(e),o=e.value;Object.entries(r).forEach(([i,s])=>{hu(s,o.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new wh(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function pu(e){return"function"==typeof e}function KS(e){return e instanceof Jl||"EmptyError"===e?.name}const _h=Symbol("INITIAL_VALUE");function hc(){return Fo(e=>Ay(e.map(t=>t.pipe(nc(1),function RV(...e){const t=ah(e);return _n((n,r)=>{(t?Sy(e,n,t):Sy(e,n)).subscribe(r)})}(_h)))).pipe(kt(t=>{for(const n of t)if(!0!==n){if(n===_h)return _h;if(!1===n||n instanceof ic)return n}return!0}),mi(t=>t!==_h),nc(1)))}function qS(e){return function k0(...e){return Qu(e)}(Jn(t=>{if(ac(t))throw jS(0,t)}),kt(t=>!0===t))}class qy{constructor(t){this.segmentGroup=t||null}}class Qy extends Error{constructor(t){super(),this.urlTree=t}}function pc(e){return ch(new qy(e))}class iH{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return at(r);if(o.numberOfChildren>1||!o.children[ht])return ch(new he(4e3,!1));o=o.children[ht]}}applyRedirectCommands(t,n,r){const o=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n.startsWith("/"))throw new Qy(o);return o}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new ic(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Object.entries(t).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new Ut(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new he(4001,!1);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}const Zy={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function sH(e,t,n,r,o){const i=Yy(e,t,n);return i.matched?(r=function MU(e,t){return e.providers&&!e._injector&&(e._injector=om(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function nH(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?at(o.map(s=>{const a=fc(s,e);return Wi(function WU(e){return e&&pu(e.canMatch)}(a)?a.canMatch(t,n):vs(e,()=>a(t,n)))})).pipe(hc(),qS()):at(!0)}(r,t,n).pipe(kt(s=>!0===s?i:{...Zy}))):at(i)}function Yy(e,t,n){if("**"===t.path)return function aH(e){return{matched:!0,parameters:e.length>0?pS(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(n);if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...Zy}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||UV)(n,e,t);if(!o)return{...Zy};const i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function QS(e,t,n,r){return n.length>0&&function uH(e,t,n){return n.some(r=>Eh(e,t,r)&&ko(r)!==ht)}(e,n,r)?{segmentGroup:new Ut(t,lH(r,new Ut(n,e.children))),slicedSegments:[]}:0===n.length&&function dH(e,t,n){return n.some(r=>Eh(e,t,r))}(e,n,r)?{segmentGroup:new Ut(e.segments,cH(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new Ut(e.segments,e.children),slicedSegments:n}}function cH(e,t,n,r){const o={};for(const i of n)if(Eh(e,t,i)&&!r[ko(i)]){const s=new Ut([],{});o[ko(i)]=s}return{...r,...o}}function lH(e,t){const n={};n[ht]=t;for(const r of e)if(""===r.path&&ko(r)!==ht){const o=new Ut([],{});n[ko(r)]=o}return n}function Eh(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class pH{}class yH{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new iH(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new he(4002,`'${t.segmentGroup}'`)}recognize(){const t=QS(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(kt(n=>{const r=new jy([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ht,this.rootComponentType,null,{}),o=new ho(r,n),i=new BS("",o),s=function sU(e,t,n=null,r=null){return AS(DS(e),t,n,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root,null),{state:i,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,ht).pipe(rc(r=>{if(r instanceof Qy)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof qy?this.noMatchError(r):r}))}inheritParamsAndData(t,n){const r=t.value,o=Hy(r,n,this.paramsInheritanceStrategy);r.params=Object.freeze(o.params),r.data=Object.freeze(o.data),t.children.forEach(i=>this.inheritParamsAndData(i,r))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o,!0).pipe(kt(i=>i instanceof ho?[i]:[]))}processChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return Pn(o).pipe(tu(i=>{const s=r.children[i],a=function OU(e,t){const n=e.filter(r=>ko(r)===t);return n.push(...e.filter(r=>ko(r)!==t)),n}(n,i);return this.processSegmentGroup(t,a,s,i)}),function PV(e,t){return _n(function OV(e,t,n,r,o){return(i,s)=>{let a=n,c=t,l=0;i.subscribe(En(s,u=>{const d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}(e,t,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),lh(null),function kV(e,t){const n=arguments.length>=2;return r=>r.pipe(e?mi((o,i)=>e(o,i,r)):Qo,Ty(1),n?lh(t):fS(()=>new Jl))}(),Xn(i=>{if(null===i)return pc(r);const s=ZS(i);return function vH(e){e.sort((t,n)=>t.value.outlet===ht?-1:n.value.outlet===ht?1:t.value.outlet.localeCompare(n.value.outlet))}(s),at(s)}))}processSegment(t,n,r,o,i,s){return Pn(n).pipe(tu(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s).pipe(rc(c=>{if(c instanceof qy)return at(null);throw c}))),Gi(a=>!!a),rc(a=>{if(KS(a))return function hH(e,t,n){return 0===t.length&&!e.children[n]}(r,o,i)?at(new pH):pc(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,a){return function fH(e,t,n,r){return!!(ko(e)===r||r!==ht&&Eh(t,n,e))&&Yy(t,e,n).matched}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,o,r,i,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s):pc(o):pc(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:c,positionalParamSegments:l,remainingSegments:u}=Yy(n,o,i);if(!a)return pc(n);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const d=this.applyRedirects.applyRedirectCommands(c,o.redirectTo,l);return this.applyRedirects.lineralizeSegments(o,d).pipe(Xn(g=>this.processSegment(t,r,n,g.concat(u),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i){const s=sH(n,r,o,t);return"**"===r.path&&(n.children={}),s.pipe(Fo(a=>a.matched?this.getChildConfig(t=r._injector??t,r,o).pipe(Fo(({routes:c})=>{const l=r._loadedInjector??t,{consumedSegments:u,remainingSegments:d,parameters:g}=a,v=new jy(u,g,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function _H(e){return e.data||{}}(r),ko(r),r.component??r._loadedComponent??null,r,function EH(e){return e.resolve||{}}(r)),{segmentGroup:E,slicedSegments:A}=QS(n,u,d,c);if(0===A.length&&E.hasChildren())return this.processChildren(l,c,E).pipe(kt(q=>null===q?null:new ho(v,q)));if(0===c.length&&0===A.length)return at(new ho(v,[]));const U=ko(r)===i;return this.processSegment(l,c,E,A,U?ht:i,!0).pipe(kt(q=>new ho(v,q instanceof ho?[q]:[])))})):pc(n)))}getChildConfig(t,n,r){return n.children?at({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?at({routes:n._loadedRoutes,injector:n._loadedInjector}):function tH(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?at(!0):at(o.map(s=>{const a=fc(s,e);return Wi(function jU(e){return e&&pu(e.canLoad)}(a)?a.canLoad(t,n):vs(e,()=>a(t,n)))})).pipe(hc(),qS())}(t,n,r).pipe(Xn(o=>o?this.configLoader.loadChildren(t,n).pipe(Jn(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function oH(e){return ch($S(!1,qr.GuardRejected))}())):at({routes:[],injector:t})}}function wH(e){const t=e.value.routeConfig;return t&&""===t.path}function ZS(e){const t=[],n=new Set;for(const r of e){if(!wH(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=ZS(r.children);t.push(new ho(r.value,o))}return t.filter(r=>!n.has(r))}function YS(e){const t=e.children.map(n=>YS(n)).flat();return[e,...t]}function Xy(e){return Fo(t=>{const n=e(t);return n?Pn(n).pipe(kt(()=>t)):at(t)})}let XS=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===ht);return r}getResolvedTitleForRoute(n){return n.data[nu]}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:()=>Pe(SH),providedIn:"root"})}return e})(),SH=(()=>{class e extends XS{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}static#e=this.\u0275fac=function(r){return new(r||e)(We(tV))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const gc=new je("",{providedIn:"root",factory:()=>({})}),mc=new je("");let Jy=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Pe(ED)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return at(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=Wi(n.loadComponent()).pipe(kt(JS),Jn(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),My(()=>{this.componentLoaders.delete(n)})),o=new dS(r,()=>new en).pipe(Iy());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return at({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=function IH(e,t,n,r){return Wi(e.loadChildren()).pipe(kt(JS),Xn(o=>o instanceof Ix||Array.isArray(o)?at(o):Pn(t.compileModuleAsync(o))),kt(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,!0):(i=o.create(n).injector,s=i.get(mc,[],{optional:!0,self:!0}).flat()),{routes:s.map(Ky),injector:i}}))}(r,this.compiler,n,this.onLoadEndListener).pipe(My(()=>{this.childrenLoaders.delete(r)})),s=new dS(i,()=>new en).pipe(Iy());return this.childrenLoaders.set(r,s),s}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function JS(e){return function TH(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let ev=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:()=>Pe(MH),providedIn:"root"})}return e})(),MH=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const eI=new je(""),tI=new je("");function NH(e,t,n){const r=e.get(tI),o=e.get(Yn);return e.get(Ct).runOutsideAngular(()=>{if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,Promise.resolve();let i;const s=new Promise(l=>{i=l}),a=o.startViewTransition(()=>(i(),function RH(e){return new Promise(t=>{Kb(t,{injector:e})})}(e))),{onViewTransitionCreated:c}=r;return c&&vs(e,()=>c({transition:a,from:t,to:n})),s})}let bh=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new en,this.transitionAbortSubject=new en,this.configLoader=Pe(Jy),this.environmentInjector=Pe(Hr),this.urlSerializer=Pe(sc),this.rootContexts=Pe(lu),this.location=Pe(Kl),this.inputBindingEnabled=null!==Pe(vh,{optional:!0}),this.titleStrategy=Pe(XS),this.options=Pe(gc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Pe(ev),this.createViewTransition=Pe(eI,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>at(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new vU(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new yU(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n,r,o){return this.transitions=new ln({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:au,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(mi(i=>0!==i.id),kt(i=>({...i,extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),Fo(i=>{this.currentTransition=i;let s=!1,a=!1;return at(i).pipe(Jn(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Fo(c=>{const l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!l&&"reload"!==(c.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const d="";return this.events.next(new lc(c.id,this.urlSerializer.serialize(c.rawUrl),d,mh.IgnoredSameUrlNavigation)),c.resolve(null),gi}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return at(c).pipe(Fo(d=>{const g=this.transitions?.getValue();return this.events.next(new cu(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),g!==this.transitions?.getValue()?gi:Promise.resolve(d)}),function bH(e,t,n,r,o,i){return Xn(s=>function gH(e,t,n,r,o,i,s="emptyOnly"){return new yH(e,t,n,r,o,s,i).recognize()}(e,t,n,r,s.extractedUrl,o,i).pipe(kt(({state:a,tree:c})=>({...s,targetSnapshot:a,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Jn(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects};const g=new RS(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(g)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:d,extractedUrl:g,source:v,restoredState:E,extras:A}=c,U=new cu(d,this.urlSerializer.serialize(g),v,E);this.events.next(U);const q=kS(this.rootComponentType).snapshot;return this.currentTransition=i={...c,targetSnapshot:q,urlAfterRedirects:g,extras:{...A,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=g,at(i)}{const d="";return this.events.next(new lc(c.id,this.urlSerializer.serialize(c.extractedUrl),d,mh.IgnoredByUrlHandlingStrategy)),c.resolve(null),gi}}),Jn(c=>{const l=new hU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),kt(c=>(this.currentTransition=i={...c,guards:BU(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},i)),function KU(e,t){return Xn(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?at({...n,guardsResult:!0}):function qU(e,t,n,r){return Pn(e).pipe(Xn(o=>function eH(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?at(i.map(a=>{const c=du(t)??o,l=fc(a,c);return Wi(function GU(e){return e&&pu(e.canDeactivate)}(l)?l.canDeactivate(e,t,n,r):vs(c,()=>l(e,t,n,r))).pipe(Gi())})).pipe(hc()):at(!0)}(o.component,o.route,n,t,r)),Gi(o=>!0!==o,!0))}(s,r,o,e).pipe(Xn(a=>a&&function HU(e){return"boolean"==typeof e}(a)?function QU(e,t,n,r){return Pn(t).pipe(tu(o=>Sy(function YU(e,t){return null!==e&&t&&t(new wU(e)),at(!0)}(o.route.parent,r),function ZU(e,t){return null!==e&&t&&t(new EU(e)),at(!0)}(o.route,r),function JU(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function LU(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>uS(()=>at(s.guards.map(c=>{const l=du(s.node)??n,u=fc(c,l);return Wi(function zU(e){return e&&pu(e.canActivateChild)}(u)?u.canActivateChild(r,e):vs(l,()=>u(r,e))).pipe(Gi())})).pipe(hc())));return at(i).pipe(hc())}(e,o.path,n),function XU(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return at(!0);const o=r.map(i=>uS(()=>{const s=du(t)??n,a=fc(i,s);return Wi(function $U(e){return e&&pu(e.canActivate)}(a)?a.canActivate(t,e):vs(s,()=>a(t,e))).pipe(Gi())}));return at(o).pipe(hc())}(e,o.route,n))),Gi(o=>!0!==o,!0))}(r,i,e,t):at(a)),kt(a=>({...n,guardsResult:a})))})}(this.environmentInjector,c=>this.events.next(c)),Jn(c=>{if(i.guardsResult=c.guardsResult,ac(c.guardsResult))throw jS(0,c.guardsResult);const l=new pU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),mi(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",qr.GuardRejected),!1)),Xy(c=>{if(c.guards.canActivateChecks.length)return at(c).pipe(Jn(l=>{const u=new gU(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),Fo(l=>{let u=!1;return at(l).pipe(function xH(e,t){return Xn(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return at(n);const i=new Set(o.map(c=>c.route)),s=new Set;for(const c of i)if(!s.has(c))for(const l of YS(c))s.add(l);let a=0;return Pn(s).pipe(tu(c=>i.has(c)?function CH(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!VS(o)&&(i[nu]=o.title),function DH(e,t,n,r){const o=Ny(e);if(0===o.length)return at({});const i={};return Pn(o).pipe(Xn(s=>function AH(e,t,n,r){const o=du(t)??r,i=fc(e,o);return Wi(i.resolve?i.resolve(t,n):vs(o,()=>i(t,n)))}(e[s],t,n,r).pipe(Gi(),Jn(a=>{i[s]=a}))),Ty(1),function BV(e){return kt(()=>e)}(i),rc(s=>KS(s)?gi:ch(s)))}(i,e,t,r).pipe(kt(s=>(e._resolvedData=s,e.data=Hy(e,e.parent,n).resolve,null)))}(c,r,e,t):(c.data=Hy(c,c.parent,e).resolve,at(void 0))),Jn(()=>a++),Ty(1),Xn(c=>a===s.size?at(n):gi))})}(this.paramsInheritanceStrategy,this.environmentInjector),Jn({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(l,"",qr.NoDataFromResolver)}}))}),Jn(l=>{const u=new mU(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}))}),Xy(c=>{const l=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(Jn(g=>{u.component=g}),kt(()=>{})));for(const g of u.children)d.push(...l(g));return d};return Ay(l(c.targetSnapshot.root)).pipe(lh(null),nc(1))}),Xy(()=>this.afterPreactivation()),Fo(()=>{const{currentSnapshot:c,targetSnapshot:l}=i,u=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return u?Pn(u).pipe(kt(()=>i)):at(i)}),kt(c=>{const l=function AU(e,t,n){const r=uu(e,t._root,n?n._root:void 0);return new PS(r,t)}(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=i={...c,targetRouterState:l},this.currentNavigation.targetRouterState=l,i}),Jn(()=>{this.events.next(new By)}),((e,t,n,r)=>kt(o=>(new kU(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)))(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),nc(1),Jn({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new yi(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),function LV(e){return _n((t,n)=>{Ro(e).subscribe(En(n,()=>n.complete(),Bn)),!n.closed&&t.subscribe(n)})}(this.transitionAbortSubject.pipe(Jn(c=>{throw c}))),My(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",qr.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),rc(c=>{if(a=!0,zS(c))this.events.next(new cc(i.id,this.urlSerializer.serialize(i.extractedUrl),c.message,c.cancellationCode)),function TU(e){return zS(e)&&ac(e.url)}(c)?this.events.next(new Ly(c.url)):i.resolve(!1);else{this.events.next(new yh(i.id,this.urlSerializer.serialize(i.extractedUrl),c,i.targetSnapshot??void 0));try{i.resolve(n.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return gi}))}))}cancelNavigationTransition(n,r,o){const i=new cc(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function FH(e){return e!==au}let OH=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:()=>Pe(kH),providedIn:"root"})}return e})();class PH{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let kH=(()=>{class e extends PH{static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),nI=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:()=>Pe(BH),providedIn:"root"})}return e})(),BH=(()=>{class e extends nI{constructor(){super(...arguments),this.location=Pe(Kl),this.urlSerializer=Pe(sc),this.options=Pe(gc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Pe(ev),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new ic,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=kS(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{"popstate"===r.type&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof cu)this.stateMemento=this.createStateMemento();else if(n instanceof lc)this.rawUrlTree=r.initialUrl;else if(n instanceof RS){if("eager"===this.urlUpdateStrategy&&!r.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(o,r)}}else n instanceof By?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,"deferred"===this.urlUpdateStrategy&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof cc&&(n.code===qr.GuardRejected||n.code===qr.NoDataFromResolver)?this.restoreHistory(r):n instanceof yh?this.restoreHistory(r,!0):n instanceof yi&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(o,"",i)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-this.browserPageId;0!==i?this.location.historyGo(i):this.currentUrlTree===n.finalUrl&&0===i&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var gu=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(gu||{});function rI(e,t){e.events.pipe(mi(n=>n instanceof yi||n instanceof cc||n instanceof yh||n instanceof lc),kt(n=>n instanceof yi||n instanceof lc?gu.COMPLETE:n instanceof cc&&(n.code===qr.Redirect||n.code===qr.SupersededByNewNavigation)?gu.REDIRECTING:gu.FAILED),mi(n=>n!==gu.REDIRECTING),nc(1)).subscribe(()=>{t()})}function LH(e){throw e}const VH={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},UH={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let lr=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=Pe(uD),this.stateManager=Pe(nI),this.options=Pe(gc,{optional:!0})||{},this.pendingTasks=Pe(Al),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Pe(bh),this.urlSerializer=Pe(sc),this.location=Pe(Kl),this.urlHandlingStrategy=Pe(ev),this._events=new en,this.errorHandler=this.options.errorHandler||LH,this.navigated=!1,this.routeReuseStrategy=Pe(OH),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Pe(mc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Pe(vh,{optional:!0}),this.eventsSubscription=new Le,this.isNgZoneEnabled=Pe(Ct)instanceof Ct&&Ct.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const n=this.navigationTransitions.events.subscribe(r=>{try{const o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(null!==o&&null!==i)if(this.stateManager.handleRouterEvent(r,i),r instanceof cc&&r.code!==qr.Redirect&&r.code!==qr.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof yi)this.navigated=!0;else if(r instanceof Ly){const s=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),a={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||FH(o.source)};this.scheduleNavigation(s,au,null,a,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function jH(e){return!(e instanceof By||e instanceof Ly)})(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),au,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const c={...o};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(i.state=c)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Ky),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s;let d,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...i};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}null!==u&&(u=this.removeEmptyProps(u));try{d=DS(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return AS(d,n,u,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=ac(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,au,null,r)}navigate(n,r={skipLocationChange:!1}){return function HH(e){for(let t=0;t(null!=i&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,g)=>{a=d,c=g});const u=this.pendingTasks.add();return rI(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Os=(()=>{class e{constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new en,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof yi&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,i,s){const a=this.urlTree;return!!(null===a||this.isAnchorElement&&(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(a,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const n=this.urlTree;this.href=null!==n&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;const r=null===this.href?null:function bE(e,t,n){return function oR(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?EE:og}(t,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(r){return new(r||e)(be(lr),be(dc),function Ld(e){return function _N(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(mi(n=>n instanceof yi),tu(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=om(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return Pn(o).pipe(eu())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):at(null);const i=o.pipe(Xn(s=>null===s?at(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?Pn([i,this.loader.loadComponent(r)]).pipe(eu()):i})}static#e=this.\u0275fac=function(r){return new(r||e)(We(lr),We(ED),We(Hr),We(oI),We(Jy))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const tv=new je("");let iI=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof cu?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof yi?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof lc&&n.code===mh.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof FS&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new FS(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){!function JE(){throw new Error("invalid")}()};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();function Bo(e,t){return{\u0275kind:e,\u0275providers:t}}function aI(){const e=Pe(qn);return t=>{const n=e.get(li);if(t!==n.components[0])return;const r=e.get(lr),o=e.get(cI);1===e.get(nv)&&r.initialNavigation(),e.get(lI,null,_t.Optional)?.setUpPreloading(),e.get(tv,null,_t.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const cI=new je("",{factory:()=>new en}),nv=new je("",{providedIn:"root",factory:()=>1}),lI=new je("");function QH(e){return Bo(0,[{provide:lI,useExisting:GH},{provide:oI,useExisting:e}])}function YH(e){return Bo(9,[{provide:eI,useValue:NH},{provide:tI,useValue:{skipNextTransition:!!e?.skipInitialTransition,...e}}])}const uI=new je("ROUTER_FORROOT_GUARD"),XH=[Kl,{provide:sc,useClass:Ry},lr,lu,{provide:dc,useFactory:function sI(e){return e.routerState.root},deps:[lr]},Jy,[]];let Ps=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[XH,[],{provide:mc,multi:!0,useValue:n},{provide:uI,useFactory:nj,deps:[[lr,new xd,new Cd]]},{provide:gc,useValue:r||{}},r?.useHash?{provide:Rs,useClass:FL}:{provide:Rs,useClass:rA},{provide:tv,useFactory:()=>{const e=Pe(t9),t=Pe(Ct),n=Pe(gc),r=Pe(bh),o=Pe(sc);return n.scrollOffset&&e.setOffset(n.scrollOffset),new iI(o,r,e,t,n)}},r?.preloadingStrategy?QH(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?rj(r):[],r?.bindToComponentInputs?Bo(8,[US,{provide:vh,useExisting:US}]).\u0275providers:[],r?.enableViewTransitions?YH().\u0275providers:[],[{provide:dI,useFactory:aI},{provide:Gm,multi:!0,useExisting:dI}]]}}static forChild(n){return{ngModule:e,providers:[{provide:mc,multi:!0,useValue:n}]}}static#e=this.\u0275fac=function(r){return new(r||e)(We(uI,8))};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({})}return e})();function nj(e){return"guarded"}function rj(e){return["disabled"===e.initialNavigation?Bo(3,[{provide:$m,multi:!0,useFactory:()=>{const t=Pe(lr);return()=>{t.setUpLocationChangeListener()}}},{provide:nv,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Bo(2,[{provide:nv,useValue:0},{provide:$m,multi:!0,deps:[qn],useFactory:t=>{const n=t.get(NL,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(lr),i=t.get(cI);rI(o,()=>{r(!0)}),t.get(bh).afterPreactivation=()=>(r(!0),i.closed?at(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const dI=new je("");let fI=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static#e=this.\u0275fac=function(r){return new(r||e)(be(si),be(pr))};static#t=this.\u0275dir=it({type:e})}return e})(),ks=(()=>{class e extends fI{static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275dir=it({type:e,features:[Nt]})}return e})();const Lo=new je(""),sj={provide:Lo,useExisting:qt(()=>rv),multi:!0};let rv=(()=>{class e extends ks{writeValue(n){this.setProperty("checked",n)}static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275dir=it({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){1&r&&St("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},features:[nn([sj]),Nt]})}return e})();const aj={provide:Lo,useExisting:qt(()=>yc),multi:!0},lj=new je("");let yc=(()=>{class e extends fI{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function cj(){const e=$i()?$i().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static#e=this.\u0275fac=function(r){return new(r||e)(be(si),be(pr),be(lj,8))};static#t=this.\u0275dir=it({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){1&r&&St("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[nn([aj]),Nt]})}return e})();function Ki(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function hI(e){return null!=e&&"number"==typeof e.length}const er=new je(""),qi=new je(""),uj=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Bs{static min(t){return function pI(e){return t=>{if(Ki(t.value)||Ki(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n{if(Ki(t.value)||Ki(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(t)}static required(t){return function mI(e){return Ki(e.value)?{required:!0}:null}(t)}static requiredTrue(t){return function yI(e){return!0===e.value?null:{required:!0}}(t)}static email(t){return function vI(e){return Ki(e.value)||uj.test(e.value)?null:{email:!0}}(t)}static minLength(t){return function wI(e){return t=>Ki(t.value)||!hI(t.value)?null:t.value.length{if(Ki(r.value))return null;const o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}(t)}static nullValidator(t){return null}static compose(t){return SI(t)}static composeAsync(t){return II(t)}}function _I(e){return t=>hI(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function xh(e){return null}function bI(e){return null!=e}function xI(e){return zl(e)?Pn(e):e}function CI(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function DI(e,t){return t.map(n=>n(e))}function AI(e){return e.map(t=>function dj(e){return!e.validate}(t)?t:n=>t.validate(n))}function SI(e){if(!e)return null;const t=e.filter(bI);return 0==t.length?null:function(n){return CI(DI(n,t))}}function ov(e){return null!=e?SI(AI(e)):null}function II(e){if(!e)return null;const t=e.filter(bI);return 0==t.length?null:function(n){return function ij(...e){const t=iS(e),{args:n,keys:r}=sS(e),o=new cn(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let c=s,l=s;for(let u=0;u{d||(d=!0,l--),a[u]=g},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?cS(r,a):a),i.complete())}))}});return t?o.pipe(aS(t)):o}(DI(n,t).map(xI)).pipe(kt(CI))}}function iv(e){return null!=e?II(AI(e)):null}function TI(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function MI(e){return e._rawValidators}function NI(e){return e._rawAsyncValidators}function sv(e){return e?Array.isArray(e)?e:[e]:[]}function Ch(e,t){return Array.isArray(e)?e.includes(t):e===t}function RI(e,t){const n=sv(t);return sv(e).forEach(o=>{Ch(n,o)||n.push(o)}),n}function FI(e,t){return sv(t).filter(n=>!Ch(e,n))}class OI{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=ov(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=iv(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class ur extends OI{get formDirective(){return null}get path(){return null}}class Qi extends OI{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class PI{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Dh=(()=>{class e extends PI{constructor(n){super(n)}static#e=this.\u0275fac=function(r){return new(r||e)(be(Qi,2))};static#t=this.\u0275dir=it({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){2&r&&Ts("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Nt]})}return e})(),Ah=(()=>{class e extends PI{constructor(n){super(n)}static#e=this.\u0275fac=function(r){return new(r||e)(be(ur,10))};static#t=this.\u0275dir=it({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){2&r&&Ts("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[Nt]})}return e})();const mu="VALID",Ih="INVALID",vc="PENDING",yu="DISABLED";function lv(e){return(Th(e)?e.validators:e)||null}function uv(e,t){return(Th(t)?t.asyncValidators:e)||null}function Th(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function BI(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new he(1e3,"");if(!r[n])throw new he(1001,"")}function LI(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new he(1002,"")})}class Mh{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===mu}get invalid(){return this.status===Ih}get pending(){return this.status==vc}get disabled(){return this.status===yu}get enabled(){return this.status!==yu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(RI(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(RI(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(FI(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(FI(t,this._rawAsyncValidators))}hasValidator(t){return Ch(this._rawValidators,t)}hasAsyncValidator(t){return Ch(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=vc,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=yu,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=mu,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===mu||this.status===vc)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?yu:mu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=vc,this._hasOwnPendingAsyncValidator=!0;const n=xI(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Xt,this.statusChanges=new Xt}_calculateStatus(){return this._allControlsDisabled()?yu:this.errors?Ih:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vc)?vc:this._anyControlsHaveStatus(Ih)?Ih:mu}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Th(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function gj(e){return Array.isArray(e)?ov(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function mj(e){return Array.isArray(e)?iv(e):e||null}(this._rawAsyncValidators)}}class vu extends Mh{constructor(t,n,r){super(lv(n),uv(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){LI(this,0,t),Object.keys(t).forEach(r=>{BI(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}class VI extends vu{}const wc=new je("CallSetDisabledState",{providedIn:"root",factory:()=>Nh}),Nh="always";function wu(e,t,n=Nh){dv(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function vj(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&UI(e,t)})}(e,t),function _j(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function wj(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&UI(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function yj(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function Fh(e,t,n=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),Ph(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Oh(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function dv(e,t){const n=MI(e);null!==t.validator?e.setValidators(TI(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=NI(e);null!==t.asyncValidator?e.setAsyncValidators(TI(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();Oh(t._rawValidators,o),Oh(t._rawAsyncValidators,o)}function Ph(e,t){let n=!1;if(null!==e){if(null!==t.validator){const o=MI(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==t.validator);i.length!==o.length&&(n=!0,e.setValidators(i))}}if(null!==t.asyncValidator){const o=NI(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==t.asyncValidator);i.length!==o.length&&(n=!0,e.setAsyncValidators(i))}}}const r=()=>{};return Oh(t._rawValidators,r),Oh(t._rawAsyncValidators,r),n}function UI(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function $I(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function zI(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const Eu=class extends Mh{constructor(t=null,n,r){super(lv(n),uv(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Th(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=zI(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){$I(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){$I(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){zI(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};Promise.resolve();let kh=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=it({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const Tj={provide:Lo,useExisting:qt(()=>mv),multi:!0};let mv=(()=>{class e extends ks{writeValue(n){this.setProperty("value",n??"")}registerOnChange(n){this.onChange=r=>{n(""==r?null:parseFloat(r))}}static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275dir=it({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){1&r&&St("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},features:[nn([Tj]),Nt]})}return e})();const Mj={provide:Lo,useExisting:qt(()=>yv),multi:!0};let Nj=(()=>{class e{constructor(){this._accessors=[]}add(n,r){this._accessors.push([n,r])}remove(n){for(let r=this._accessors.length-1;r>=0;--r)if(this._accessors[r][1]===n)return void this._accessors.splice(r,1)}select(n){this._accessors.forEach(r=>{this._isSameGroup(r,n)&&r[1]!==n&&r[1].fireUncheck(n.value)})}_isSameGroup(n,r){return!!n[0].control&&n[0]._parent===r._control._parent&&n[1].name===r.name}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),yv=(()=>{class e extends ks{constructor(n,r,o,i){super(n,r),this._registry=o,this._injector=i,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=Pe(wc,{optional:!0})??Nh}ngOnInit(){this._control=this._injector.get(Qi),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(n){this._state=n===this.value,this.setProperty("checked",this._state)}registerOnChange(n){this._fn=n,this.onChange=()=>{n(this.value),this._registry.select(this)}}setDisabledState(n){(this.setDisabledStateFired||n||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",n),this.setDisabledStateFired=!0}fireUncheck(n){this.writeValue(n)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(r){return new(r||e)(be(si),be(pr),be(Nj),be(qn))};static#t=this.\u0275dir=it({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(r,o){1&r&&St("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[nn([Mj]),Nt]})}return e})();const vv=new je(""),Oj={provide:ur,useExisting:qt(()=>_c)};let _c=(()=>{class e extends ur{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Xt,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ph(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){const r=this.form.get(n.path);return wu(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Fh(n.control||null,n,!1),function Cj(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,function jI(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{const r=n.control,o=this.form.get(n.path);r!==o&&(Fh(r||null,n),(e=>e instanceof Eu)(o)&&(wu(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){const r=this.form.get(n.path);(function HI(e,t){dv(e,t)})(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){const r=this.form.get(n.path);r&&function Ej(e,t){return Ph(e,t)}(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){dv(this.form,this),this._oldForm&&Ph(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||e)(be(er,10),be(qi,10),be(wc,8))};static#t=this.\u0275dir=it({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){1&r&&St("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[Jt.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[nn([Oj]),Nt,jr]})}return e})();const Bj={provide:Qi,useExisting:qt(()=>bu)};let bu=(()=>{class e extends Qi{set isDisabled(n){}static#e=this._ngModelWarningSentOnce=!1;constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new Xt,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function pv(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===yc?n=i:function xj(e){return Object.getPrototypeOf(e.constructor)===ks}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){this._added||this._setUpControl(),function hv(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return function Rh(e,t){return[...t.path,e]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(r){return new(r||e)(be(ur,13),be(er,10),be(qi,10),be(Lo,10),be(vv,8))};static#n=this.\u0275dir=it({type:e,selectors:[["","formControlName",""]],inputs:{name:[Jt.None,"formControlName","name"],isDisabled:[Jt.None,"disabled","isDisabled"],model:[Jt.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[nn([Bj]),Nt,jr]})}return e})();const Lj={provide:Lo,useExisting:qt(()=>Bh),multi:!0};function XI(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Bh=(()=>{class e extends ks{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const o=XI(this._getOptionId(n),n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){const r=function Vj(e){return e.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275dir=it({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){1&r&&St("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[nn([Lj]),Nt]})}return e})(),JI=(()=>{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(XI(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(r){return new(r||e)(be(pr),be(si),be(Bh,9))};static#t=this.\u0275dir=it({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})();const Uj={provide:Lo,useExisting:qt(()=>Ev),multi:!0};function eT(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Ev=(()=>{class e extends ks{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let r;if(this.value=n,Array.isArray(n)){const o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275dir=it({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){1&r&&St("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[nn([Uj]),Nt]})}return e})(),tT=(()=>{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(eT(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(eT(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(r){return new(r||e)(be(pr),be(si),be(Ev,9))};static#t=this.\u0275dir=it({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})();let Ls=(()=>{class e{constructor(){this._validator=xh}ngOnChanges(n){if(this.inputName in n){const r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):xh,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return null!=n}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=it({type:e,features:[jr]})}return e})();const qj={provide:er,useExisting:qt(()=>Lh),multi:!0};let Lh=(()=>{class e extends Ls{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=n=>function nT(e){return"number"==typeof e?e:parseInt(e,10)}(n),this.createValidator=n=>_I(n)}static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275dir=it({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){2&r&&wr("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[nn([qj]),Nt]})}return e})(),Zj=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({})}return e})();class uT extends Mh{constructor(t,n,r){super(lv(n),uv(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,n={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(t,n,r={}){this.controls.splice(t,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,n={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(t,n,r={}){let o=this._adjustIndex(t);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),n&&(this.controls.splice(o,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,n={}){LI(this,0,t),t.forEach((r,o)=>{BI(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(t.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t=[],n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((n,r)=>!!r._syncPendingControls()||n,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((n,r)=>{t(n,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(n=>n.enabled&&t(n))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}}function dT(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let xv=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const n=new e;return n.useNonNullable=!0,n}group(n,r=null){const o=this._reduceControls(n);let i={};return dT(r)?i=r:null!==r&&(i.validators=r.validator,i.asyncValidators=r.asyncValidator),new vu(o,i)}record(n,r=null){const o=this._reduceControls(n);return new VI(o,r)}control(n,r,o){let i={};return this.useNonNullable?(dT(r)?i=r:(i.validators=r,i.asyncValidators=o),new Eu(n,{...i,nonNullable:!0})):new Eu(n,r,o)}array(n,r,o){const i=n.map(s=>this._createControl(s));return new uT(i,r,o)}_reduceControls(n){const r={};return Object.keys(n).forEach(o=>{r[o]=this._createControl(n[o])}),r}_createControl(n){return n instanceof Eu||n instanceof Mh?n:Array.isArray(n)?this.control(n[0],n.length>1?n[1]:null,n.length>2?n[2]:null):this.control(n)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Cv=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:vv,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:wc,useValue:n.callSetDisabledState??Nh}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({imports:[Zj]})}return e})();var Dv=y(4920);y(9564),y(9872);let Av=(()=>{class e{match(n){return Dv.EncryptedURI.matcher(n)}encrypt(n,r,o){return Dv.EncryptedURI.encrypt({content:n,password:r,algorithm:o.algorithm||"aes/cbc",kdf:{derivateKeyLength:32,kdf:"pbkdf2",hasher:o.kdfHasher||"sha256",rounds:Number(o.kdfRounds||"32")}})}decrypt(n,r){return Dv.EncryptedURI.decrypt(n,r)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Zi=y(8108);let fT=(()=>{class e{constructor(){this.mode=Zi.mode.CBC,this.padding=Zi.pad.Pkcs7}match(n){return/^encrypted:aes\?iv=/.test(n)}encrypt(n,r){const o=Zi.enc.Hex.parse(Zi.lib.WordArray.random(16).toString());return`encrypted:aes?iv=${o};`+Zi.AES.encrypt(n,String(r),{iv:o,mode:this.mode,padding:this.padding})}decrypt(n,r){const o=this.parseEncryptedQrcode(n);if(o.encrypted&&"aes"===o.type){const i=Zi.AES.decrypt(o.content,r,{iv:o.iv,mode:this.mode,padding:this.padding});return Zi.enc.Utf8.stringify(i)}return o.content}parseEncryptedQrcode(n){if(this.match(n)){const r=n.replace(/(^.*iv=|;.*$)/g,""),o=n.replace(/^.*;/,"");return{encrypted:!0,type:"aes",iv:Zi.enc.Hex.parse(r),content:o}}return{encrypted:!1,content:n}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Sv(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function Iv(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function xu(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}const Tv="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,Mv=e=>e instanceof Uint8Array,Nv=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),Vo=(e,t)=>e<<32-t|e>>>t;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Cu(e){if("string"==typeof e&&(e=function e$(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}(e)),!Mv(e))throw new Error("expected Uint8Array, got "+typeof e);return e}class gT{clone(){return this._cloneInto()}}function r$(e){const t=r=>e().update(Cu(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function mT(e=32){if(Tv&&"function"==typeof Tv.getRandomValues)return Tv.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}class i$ extends gT{constructor(t,n,r,o){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=Nv(this.buffer)}update(t){xu(this);const{view:n,buffer:r,blockLen:o}=this,i=(t=Cu(t)).length;for(let s=0;so-s&&(this.process(r,0),s=0);for(let d=s;d>o&i),a=Number(n&i),l=r?0:4;e.setUint32(t+(r?4:0),s,r),e.setUint32(t+l,a,r)})(r,o-8,BigInt(8*this.length),i),this.process(r,0);const a=Nv(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,u=this.get();if(l>u.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;de&t^~e&n,a$=(e,t,n)=>e&t^e&n^t&n,c$=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Yi=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Xi=new Uint32Array(64);class yT extends i${constructor(){super(64,32,8,!1),this.A=0|Yi[0],this.B=0|Yi[1],this.C=0|Yi[2],this.D=0|Yi[3],this.E=0|Yi[4],this.F=0|Yi[5],this.G=0|Yi[6],this.H=0|Yi[7]}get(){const{A:t,B:n,C:r,D:o,E:i,F:s,G:a,H:c}=this;return[t,n,r,o,i,s,a,c]}set(t,n,r,o,i,s,a,c){this.A=0|t,this.B=0|n,this.C=0|r,this.D=0|o,this.E=0|i,this.F=0|s,this.G=0|a,this.H=0|c}process(t,n){for(let d=0;d<16;d++,n+=4)Xi[d]=t.getUint32(n,!1);for(let d=16;d<64;d++){const g=Xi[d-15],v=Xi[d-2],E=Vo(g,7)^Vo(g,18)^g>>>3,A=Vo(v,17)^Vo(v,19)^v>>>10;Xi[d]=A+Xi[d-7]+E+Xi[d-16]|0}let{A:r,B:o,C:i,D:s,E:a,F:c,G:l,H:u}=this;for(let d=0;d<64;d++){const v=u+(Vo(a,6)^Vo(a,11)^Vo(a,25))+s$(a,c,l)+c$[d]+Xi[d]|0,A=(Vo(r,2)^Vo(r,13)^Vo(r,22))+a$(r,o,i)|0;u=l,l=c,c=a,a=s+v|0,s=i,i=o,o=r,r=v+A|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,s=s+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(r,o,i,s,a,c,l,u)}roundClean(){Xi.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Fv=r$(()=>new yT),Vh=(BigInt(0),BigInt(1)),l$=BigInt(2),Uh=e=>e instanceof Uint8Array,u$=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Ec(e){if(!Uh(e))throw new Error("Uint8Array expected");let t="";for(let n=0;nr+o.length,0));let n=0;return e.forEach(r=>{if(!Uh(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}const kv=e=>(l$<new Uint8Array(e),_T=e=>Uint8Array.from(e);function ET(e,t,n){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");let r=Bv(e),o=Bv(e),i=0;const s=()=>{r.fill(1),o.fill(0),i=0},a=(...d)=>n(o,r,...d),c=(d=Bv())=>{o=a(_T([0]),d),r=a(),0!==d.length&&(o=a(_T([1]),d),r=a())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const g=[];for(;d{let v;for(s(),c(d);!(v=g(l()));)c();return s(),v}}const f$={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function Du(e,t,n={}){const r=(o,i,s)=>{const a=f$[i];if("function"!=typeof a)throw new Error(`Invalid validator "${i}", expected function`);const c=e[o];if(!(s&&void 0===c||a(c,e)))throw new Error(`Invalid param ${String(o)}=${c} (${typeof c}), expected ${i}`)};for(const[o,i]of Object.entries(t))r(o,i,!1);for(const[o,i]of Object.entries(n))r(o,i,!0);return e}const Mn=BigInt(0),$t=BigInt(1),es=BigInt(2),h$=BigInt(3),Lv=BigInt(4),bT=BigInt(5),xT=BigInt(8);function Nn(e,t){const n=e%t;return n>=Mn?n:t+n}function m$(e,t,n){if(n<=Mn||t 0");if(n===$t)return Mn;let r=$t;for(;t>Mn;)t&$t&&(r=r*e%n),e=e*e%n,t>>=$t;return r}function Qr(e,t,n){let r=e;for(;t-- >Mn;)r*=r,r%=n;return r}function Hh(e,t){if(e===Mn||t<=Mn)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=Nn(e,t),r=t,o=Mn,i=$t,s=$t,a=Mn;for(;n!==Mn;){const l=r/n,u=r%n,d=o-s*l,g=i-a*l;r=n,n=u,o=s,i=a,s=d,a=g}if(r!==$t)throw new Error("invert: does not exist");return Nn(o,t)}BigInt(9),BigInt(16);const w$=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Vv(e,t){const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function CT(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function DT(e){const t=CT(e);return t+Math.ceil(t/2)}class AT extends gT{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,function hT(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Sv(e.outputLen),Sv(e.blockLen)}(t);const r=Cu(n);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,i=new Uint8Array(o);i.set(r.length>o?t.create().update(r).digest():r);for(let s=0;snew AT(e,t).update(n).digest();ST.create=(e,t)=>new AT(e,t);const D$=BigInt(0),Uv=BigInt(1);function IT(e){return function _$(e){Du(e,w$.reduce((r,o)=>(r[o]="function",r),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(e.Fp),Du(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Vv(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}const{bytesToNumberBE:I$,hexToBytes:T$}=m,Us={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(e){const{Err:t}=Us;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");const n=e[1],r=e.subarray(2,n+2);if(!n||r.length!==n)throw new t("Invalid signature integer: wrong length");if(128&r[0])throw new t("Invalid signature integer: negative");if(0===r[0]&&!(128&r[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:I$(r),l:e.subarray(n+2)}},toSig(e){const{Err:t}=Us,n="string"==typeof e?T$(e):e;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let r=n.length;if(r<2||48!=n[0])throw new t("Invalid signature tag");if(n[1]!==r-2)throw new t("Invalid signature: incorrect length");const{d:o,l:i}=Us._parseInt(n.subarray(2)),{d:s,l:a}=Us._parseInt(i);if(a.length)throw new t("Invalid signature: left bytes after parsing");return{r:o,s}},hexFromSig(e){const t=l=>8&Number.parseInt(l[0],16)?"00"+l:l,n=l=>{const u=l.toString(16);return 1&u.length?`0${u}`:u},r=t(n(e.s)),o=t(n(e.r)),i=r.length/2,s=o.length/2,a=n(i),c=n(s);return`30${n(s+i+4)}02${c}${o}02${a}${r}`}},po=BigInt(0),sn=BigInt(1),jh=(BigInt(2),BigInt(3));function R$(e){const t=function N$(e){const t=IT(e);return Du(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:n,n:r}=t,o=n.BYTES+1,i=2*n.BYTES+1;function a(De){return Nn(De,r)}function c(De){return Hh(De,r)}const{ProjectivePoint:l,normPrivateKeyToScalar:u,weierstrassEquation:d,isWithinCurveOrder:g}=function M$(e){const t=function S$(e){const t=IT(e);Du(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:o}=t;if(n){if(!r.eql(o,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:n}=t,r=t.toBytes||((E,A,U)=>{const q=A.toAffine();return Vs(Uint8Array.from([4]),n.toBytes(q.x),n.toBytes(q.y))}),o=t.fromBytes||(E=>{const A=E.subarray(1);return{x:n.fromBytes(A.subarray(0,n.BYTES)),y:n.fromBytes(A.subarray(n.BYTES,2*n.BYTES))}});function i(E){const{a:A,b:U}=t,q=n.sqr(E),K=n.mul(q,E);return n.add(n.add(K,n.mul(E,A)),U)}if(!n.eql(n.sqr(t.Gy),i(t.Gx)))throw new Error("bad generator point: equation left != right");function s(E){return"bigint"==typeof E&&pon.eql(se,n.ZERO);return K(U)&&K(q)?d.ZERO:new d(U,q,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(A){const U=n.invertBatch(A.map(q=>q.pz));return A.map((q,K)=>q.toAffine(U[K])).map(d.fromAffine)}static fromHex(A){const U=d.fromAffine(o(tr("pointHex",A)));return U.assertValidity(),U}static fromPrivateKey(A){return d.BASE.multiply(c(A))}_setWindowSize(A){this._WINDOW_SIZE=A,l.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:A,y:U}=this.toAffine();if(!n.isValid(A)||!n.isValid(U))throw new Error("bad point: x or y not FE");const q=n.sqr(U),K=i(A);if(!n.eql(q,K))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:A}=this.toAffine();if(n.isOdd)return!n.isOdd(A);throw new Error("Field doesn't support isOdd")}equals(A){u(A);const{px:U,py:q,pz:K}=this,{px:se,py:le,pz:ge}=A,_e=n.eql(n.mul(U,ge),n.mul(se,K)),Ne=n.eql(n.mul(q,ge),n.mul(le,K));return _e&&Ne}negate(){return new d(this.px,n.neg(this.py),this.pz)}double(){const{a:A,b:U}=t,q=n.mul(U,jh),{px:K,py:se,pz:le}=this;let ge=n.ZERO,_e=n.ZERO,Ne=n.ZERO,Oe=n.mul(K,K),Ke=n.mul(se,se),$e=n.mul(le,le),ze=n.mul(K,se);return ze=n.add(ze,ze),Ne=n.mul(K,le),Ne=n.add(Ne,Ne),ge=n.mul(A,Ne),_e=n.mul(q,$e),_e=n.add(ge,_e),ge=n.sub(Ke,_e),_e=n.add(Ke,_e),_e=n.mul(ge,_e),ge=n.mul(ze,ge),Ne=n.mul(q,Ne),$e=n.mul(A,$e),ze=n.sub(Oe,$e),ze=n.mul(A,ze),ze=n.add(ze,Ne),Ne=n.add(Oe,Oe),Oe=n.add(Ne,Oe),Oe=n.add(Oe,$e),Oe=n.mul(Oe,ze),_e=n.add(_e,Oe),$e=n.mul(se,le),$e=n.add($e,$e),Oe=n.mul($e,ze),ge=n.sub(ge,Oe),Ne=n.mul($e,Ke),Ne=n.add(Ne,Ne),Ne=n.add(Ne,Ne),new d(ge,_e,Ne)}add(A){u(A);const{px:U,py:q,pz:K}=this,{px:se,py:le,pz:ge}=A;let _e=n.ZERO,Ne=n.ZERO,Oe=n.ZERO;const Ke=t.a,$e=n.mul(t.b,jh);let ze=n.mul(U,se),Ze=n.mul(q,le),Je=n.mul(K,ge),ft=n.add(U,q),De=n.add(se,le);ft=n.mul(ft,De),De=n.add(ze,Ze),ft=n.sub(ft,De),De=n.add(U,K);let ue=n.add(se,ge);return De=n.mul(De,ue),ue=n.add(ze,Je),De=n.sub(De,ue),ue=n.add(q,K),_e=n.add(le,ge),ue=n.mul(ue,_e),_e=n.add(Ze,Je),ue=n.sub(ue,_e),Oe=n.mul(Ke,De),_e=n.mul($e,Je),Oe=n.add(_e,Oe),_e=n.sub(Ze,Oe),Oe=n.add(Ze,Oe),Ne=n.mul(_e,Oe),Ze=n.add(ze,ze),Ze=n.add(Ze,ze),Je=n.mul(Ke,Je),De=n.mul($e,De),Ze=n.add(Ze,Je),Je=n.sub(ze,Je),Je=n.mul(Ke,Je),De=n.add(De,Je),ze=n.mul(Ze,De),Ne=n.add(Ne,ze),ze=n.mul(ue,De),_e=n.mul(ft,_e),_e=n.sub(_e,ze),ze=n.mul(ft,Ze),Oe=n.mul(ue,Oe),Oe=n.add(Oe,ze),new d(_e,Ne,Oe)}subtract(A){return this.add(A.negate())}is0(){return this.equals(d.ZERO)}wNAF(A){return v.wNAFCached(this,l,A,U=>{const q=n.invertBatch(U.map(K=>K.pz));return U.map((K,se)=>K.toAffine(q[se])).map(d.fromAffine)})}multiplyUnsafe(A){const U=d.ZERO;if(A===po)return U;if(a(A),A===sn)return this;const{endo:q}=t;if(!q)return v.unsafeLadder(this,A);let{k1neg:K,k1:se,k2neg:le,k2:ge}=q.splitScalar(A),_e=U,Ne=U,Oe=this;for(;se>po||ge>po;)se&sn&&(_e=_e.add(Oe)),ge&sn&&(Ne=Ne.add(Oe)),Oe=Oe.double(),se>>=sn,ge>>=sn;return K&&(_e=_e.negate()),le&&(Ne=Ne.negate()),Ne=new d(n.mul(Ne.px,q.beta),Ne.py,Ne.pz),_e.add(Ne)}multiply(A){a(A);let q,K,U=A;const{endo:se}=t;if(se){const{k1neg:le,k1:ge,k2neg:_e,k2:Ne}=se.splitScalar(U);let{p:Oe,f:Ke}=this.wNAF(ge),{p:$e,f:ze}=this.wNAF(Ne);Oe=v.constTimeNegate(le,Oe),$e=v.constTimeNegate(_e,$e),$e=new d(n.mul($e.px,se.beta),$e.py,$e.pz),q=Oe.add($e),K=Ke.add(ze)}else{const{p:le,f:ge}=this.wNAF(U);q=le,K=ge}return d.normalizeZ([q,K])[0]}multiplyAndAddUnsafe(A,U,q){const K=d.BASE,se=(ge,_e)=>_e!==po&&_e!==sn&&ge.equals(K)?ge.multiply(_e):ge.multiplyUnsafe(_e),le=se(this,U).add(se(A,q));return le.is0()?void 0:le}toAffine(A){const{px:U,py:q,pz:K}=this,se=this.is0();null==A&&(A=se?n.ONE:n.inv(K));const le=n.mul(U,A),ge=n.mul(q,A),_e=n.mul(K,A);if(se)return{x:n.ZERO,y:n.ZERO};if(!n.eql(_e,n.ONE))throw new Error("invZ was invalid");return{x:le,y:ge}}isTorsionFree(){const{h:A,isTorsionFree:U}=t;if(A===sn)return!0;if(U)return U(d,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:A,clearCofactor:U}=t;return A===sn?this:U?U(d,this):this.multiplyUnsafe(t.h)}toRawBytes(A=!0){return this.assertValidity(),r(d,this,A)}toHex(A=!0){return Ec(this.toRawBytes(A))}}d.BASE=new d(t.Gx,t.Gy,n.ONE),d.ZERO=new d(n.ZERO,n.ONE,n.ZERO);const g=t.nBitLength,v=function A$(e,t){const n=(o,i)=>{const s=i.negate();return o?s:i},r=o=>({windows:Math.ceil(t/o)+1,windowSize:2**(o-1)});return{constTimeNegate:n,unsafeLadder(o,i){let s=e.ZERO,a=o;for(;i>D$;)i&Uv&&(s=s.add(a)),a=a.double(),i>>=Uv;return s},precomputeWindow(o,i){const{windows:s,windowSize:a}=r(i),c=[];let l=o,u=l;for(let d=0;d>=v,U>c&&(U-=g,s+=Uv);const q=A,K=A+Math.abs(U)-1,le=U<0;0===U?u=u.add(n(E%2!=0,i[q])):l=l.add(n(le,i[K]))}return{p:l,f:u}},wNAFCached(o,i,s,a){const c=o._WINDOW_SIZE||1;let l=i.get(o);return l||(l=this.precomputeWindow(o,c),1!==c&&i.set(o,a(l))),this.wNAF(c,l,s)}}}(d,t.endo?Math.ceil(g/2):g);return{CURVE:t,ProjectivePoint:d,normPrivateKeyToScalar:c,weierstrassEquation:i,isWithinCurveOrder:s}}({...t,toBytes(De,ue,ve){const Ie=ue.toAffine(),we=n.toBytes(Ie.x),He=Vs;return ve?He(Uint8Array.from([ue.hasEvenY()?2:3]),we):He(Uint8Array.from([4]),we,n.toBytes(Ie.y))},fromBytes(De){const ue=De.length,ve=De[0],Ie=De.subarray(1);if(ue!==o||2!==ve&&3!==ve){if(ue===i&&4===ve)return{x:n.fromBytes(Ie.subarray(0,n.BYTES)),y:n.fromBytes(Ie.subarray(n.BYTES,2*n.BYTES))};throw new Error(`Point of length ${ue} was invalid. Expected ${o} compressed bytes or ${i} uncompressed bytes`)}{const we=Er(Ie);if(!function s(De){return poEc(Ji(De,t.nByteLength));function E(De){return De>r>>sn}const U=(De,ue,ve)=>Er(De.slice(ue,ve));class q{constructor(ue,ve,Ie){this.r=ue,this.s=ve,this.recovery=Ie,this.assertValidity()}static fromCompact(ue){const ve=t.nByteLength;return ue=tr("compactSignature",ue,2*ve),new q(U(ue,0,ve),U(ue,ve,2*ve))}static fromDER(ue){const{r:ve,s:Ie}=Us.toSig(tr("DER",ue));return new q(ve,Ie)}assertValidity(){if(!g(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!g(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(ue){return new q(this.r,this.s,ue)}recoverPublicKey(ue){const{r:ve,s:Ie,recovery:we}=this,He=Ne(tr("msgHash",ue));if(null==we||![0,1,2,3].includes(we))throw new Error("recovery id invalid");const Ye=2===we||3===we?ve+t.n:ve;if(Ye>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const zt=l.fromHex((1&we?"03":"02")+v(Ye)),vt=c(Ye),nr=a(-He*vt),Cr=a(Ie*vt),Tt=l.BASE.multiplyAndAddUnsafe(zt,nr,Cr);if(!Tt)throw new Error("point at infinify");return Tt.assertValidity(),Tt}hasHighS(){return E(this.s)}normalizeS(){return this.hasHighS()?new q(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return bc(this.toDERHex())}toDERHex(){return Us.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return bc(this.toCompactHex())}toCompactHex(){return v(this.r)+v(this.s)}}const K={isValidPrivateKey(De){try{return u(De),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const De=DT(t.n);return function C$(e,t,n=!1){const r=e.length,o=CT(t),i=DT(t);if(r<16||r1024)throw new Error(`expected ${i}-1024 bytes of input, got ${r}`);const a=Nn(n?Er(e):Ov(e),t-$t)+$t;return n?Pv(a,o):Ji(a,o)}(t.randomBytes(De),t.n)},precompute:(De=8,ue=l.BASE)=>(ue._setWindowSize(De),ue.multiply(BigInt(3)),ue)};function le(De){const ue=De instanceof Uint8Array,ve="string"==typeof De,Ie=(ue||ve)&&De.length;return ue?Ie===o||Ie===i:ve?Ie===2*o||Ie===2*i:De instanceof l}const _e=t.bits2int||function(De){const ue=Er(De),ve=8*De.length-t.nBitLength;return ve>0?ue>>BigInt(ve):ue},Ne=t.bits2int_modN||function(De){return a(_e(De))},Oe=kv(t.nBitLength);function Ke(De){if("bigint"!=typeof De)throw new Error("bigint expected");if(!(po<=De&&DeGt in ve))throw new Error("sign() legacy options not supported");const{hash:Ie,randomBytes:we}=t;let{lowS:He,prehash:Ye,extraEntropy:Xe}=ve;null==He&&(He=!0),De=tr("msgHash",De),Ye&&(De=tr("prehashed msgHash",Ie(De)));const zt=Ne(De),vt=u(ue),nr=[Ke(vt),Ke(zt)];if(null!=Xe){const Gt=!0===Xe?we(n.BYTES):Xe;nr.push(tr("extraEntropy",Gt))}const Cr=Vs(...nr),Tt=zt;return{seed:Cr,k2sig:function kn(Gt){const vo=_e(Gt);if(!g(vo))return;const Fc=c(vo),qo=l.BASE.multiply(vo).toAffine(),Oc=a(qo.x);if(Oc===po)return;const F0=a(Fc*a(Tt+Oc*vt));if(F0===po)return;let p3=(qo.x===Oc?0:2)|Number(qo.y&sn),g3=F0;return He&&E(F0)&&(g3=function A(De){return E(De)?a(-De):De}(F0),p3^=1),new q(Oc,g3,p3)}}}(De,ue,ve);return ET(t.hash.outputLen,t.nByteLength,t.hmac)(Ie,we)},verify:function ft(De,ue,ve,Ie=Ze){const we=De;if(ue=tr("msgHash",ue),ve=tr("publicKey",ve),"strict"in Ie)throw new Error("options.strict was renamed to lowS");const{lowS:He,prehash:Ye}=Ie;let Xe,zt;try{if("string"==typeof we||we instanceof Uint8Array)try{Xe=q.fromDER(we)}catch(qo){if(!(qo instanceof Us.Err))throw qo;Xe=q.fromCompact(we)}else{if("object"!=typeof we||"bigint"!=typeof we.r||"bigint"!=typeof we.s)throw new Error("PARSE");{const{r:qo,s:Oc}=we;Xe=new q(qo,Oc)}}zt=l.fromHex(ve)}catch(qo){if("PARSE"===qo.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(He&&Xe.hasHighS())return!1;Ye&&(ue=t.hash(ue));const{r:vt,s:nr}=Xe,Cr=Ne(ue),Tt=c(nr),kn=a(Cr*Tt),Gt=a(vt*Tt),vo=l.BASE.multiplyAndAddUnsafe(zt,kn,Gt)?.toAffine();return!!vo&&a(vo.x)===vt},ProjectivePoint:l,Signature:q,utils:K}}function O$(e){return{hash:e,hmac:(t,...n)=>ST(e,t,function t$(...e){const t=new Uint8Array(e.reduce((r,o)=>r+o.length,0));let n=0;return e.forEach(r=>{if(!Mv(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}(...n)),randomBytes:mT}}BigInt(4);const $h=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),zh=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),MT=BigInt(1),Gh=BigInt(2),NT=(e,t)=>(e+t/Gh)/t;function RT(e){const t=$h,n=BigInt(3),r=BigInt(6),o=BigInt(11),i=BigInt(22),s=BigInt(23),a=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,d=Qr(u,n,t)*u%t,g=Qr(d,n,t)*u%t,v=Qr(g,Gh,t)*l%t,E=Qr(v,o,t)*v%t,A=Qr(E,i,t)*E%t,U=Qr(A,a,t)*A%t,q=Qr(U,c,t)*U%t,K=Qr(q,a,t)*A%t,se=Qr(K,n,t)*u%t,le=Qr(se,s,t)*E%t,ge=Qr(le,r,t)*l%t,_e=Qr(ge,Gh,t);if(!Hv.eql(Hv.sqr(_e),e))throw new Error("Cannot find square root");return _e}const Hv=function x$(e,t,n=!1,r={}){if(e<=Mn)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:o,nByteLength:i}=Vv(e,t);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const s=function v$(e){if(e%Lv===h$){const t=(e+$t)/Lv;return function(r,o){const i=r.pow(o,t);if(!r.eql(r.sqr(i),o))throw new Error("Cannot find square root");return i}}if(e%xT===bT){const t=(e-bT)/xT;return function(r,o){const i=r.mul(o,es),s=r.pow(i,t),a=r.mul(o,s),c=r.mul(r.mul(a,es),s),l=r.mul(a,r.sub(c,r.ONE));if(!r.eql(r.sqr(l),o))throw new Error("Cannot find square root");return l}}return function y$(e){const t=(e-$t)/es;let n,r,o;for(n=e-$t,r=0;n%es===Mn;n/=es,r++);for(o=es;oNn(c,e),isValid:c=>{if("bigint"!=typeof c)throw new Error("Invalid field element: expected bigint, got "+typeof c);return Mn<=c&&cc===Mn,isOdd:c=>(c&$t)===$t,neg:c=>Nn(-c,e),eql:(c,l)=>c===l,sqr:c=>Nn(c*c,e),add:(c,l)=>Nn(c+l,e),sub:(c,l)=>Nn(c-l,e),mul:(c,l)=>Nn(c*l,e),pow:(c,l)=>function E$(e,t,n){if(n 0");if(n===Mn)return e.ONE;if(n===$t)return t;let r=e.ONE,o=t;for(;n>Mn;)n&$t&&(r=e.mul(r,o)),o=e.sqr(o),n>>=$t;return r}(a,c,l),div:(c,l)=>Nn(c*Hh(l,e),e),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>Hh(c,e),sqrt:r.sqrt||(c=>s(a,c)),invertBatch:c=>function b$(e,t){const n=new Array(t.length),r=t.reduce((i,s,a)=>e.is0(s)?i:(n[a]=i,e.mul(i,s)),e.ONE),o=e.inv(r);return t.reduceRight((i,s,a)=>e.is0(s)?i:(n[a]=e.mul(i,n[a]),e.mul(i,s)),o),n}(a,c),cmov:(c,l,u)=>u?l:c,toBytes:c=>n?Pv(c,i):Ji(c,i),fromBytes:c=>{if(c.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${c.length}`);return n?Ov(c):Er(c)}});return Object.freeze(a)}($h,void 0,void 0,{sqrt:RT}),xc=function P$(e,t){const n=r=>R$({...e,...O$(r)});return Object.freeze({...n(t),create:n})}({a:BigInt(0),b:BigInt(7),Fp:Hv,n:zh,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=zh,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-MT*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=n,s=BigInt("0x100000000000000000000000000000000"),a=NT(i*e,t),c=NT(-r*e,t);let l=Nn(e-a*n-c*o,t),u=Nn(-a*r-c*i,t);const d=l>s,g=u>s;if(d&&(l=t-l),g&&(u=t-u),l>s||u>s)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:l,k2neg:g,k2:u}}}},Fv),Wh=BigInt(0),FT=e=>"bigint"==typeof e&&Who.charCodeAt(0)));n=Vs(r,r),OT[e]=n}return Fv(Vs(n,...t))}const jv=e=>e.toRawBytes(!0).slice(1),$v=e=>Ji(e,32),zv=e=>Nn(e,$h),Au=e=>Nn(e,zh),Gv=xc.ProjectivePoint;function Wv(e){let t=xc.utils.normPrivateKeyToScalar(e),n=Gv.fromPrivateKey(t);return{scalar:n.hasEvenY()?t:Au(-t),bytes:jv(n)}}function PT(e){if(!FT(e))throw new Error("bad x: need 0 < x < p");const t=zv(e*e);let r=RT(zv(t*e+BigInt(7)));r%Gh!==Wh&&(r=zv(-r));const o=new Gv(e,r,MT);return o.assertValidity(),o}function kT(...e){return Au(Er(Kh("BIP0340/challenge",...e)))}function BT(e,t,n){const r=tr("signature",e,64),o=tr("message",t),i=tr("publicKey",n,32);try{const s=PT(Er(i)),a=Er(r.subarray(0,32));if(!FT(a))return!1;const c=Er(r.subarray(32,64));if(!(e=>"bigint"==typeof e&&WhGv.BASE.multiplyAndAddUnsafe(e,t,n))(s,c,Au(-l));return!(!u||!u.hasEvenY()||u.toAffine().x!==a)}catch{return!1}}const Su={getPublicKey:function L$(e){return Wv(e).bytes},sign:function V$(e,t,n=mT(32)){const r=tr("message",e),{bytes:o,scalar:i}=Wv(t),s=tr("auxRand",n,32),a=$v(i^Er(Kh("BIP0340/aux",s))),c=Kh("BIP0340/nonce",a,o,r),l=Au(Er(c));if(l===Wh)throw new Error("sign failed: k is zero");const{bytes:u,scalar:d}=Wv(l),g=kT(u,o,r),v=new Uint8Array(64);if(v.set(u,0),v.set($v(Au(d+g*i)),32),!BT(v,r,o))throw new Error("sign: Invalid signature produced");return v},verify:BT,utils:{randomPrivateKey:xc.utils.randomPrivateKey,lift_x:PT,pointToBytes:jv,numberToBytesBE:Ji,bytesToNumberBE:Er,taggedHash:Kh,mod:Nn}},Kv="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,qv=e=>e instanceof Uint8Array,Qv=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),qh=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),Uo=(e,t)=>e<<32-t|e>>>t;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const U$=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function br(e){if(!qv(e))throw new Error("Uint8Array expected");let t="";for(let n=0;nr+o.length,0));let n=0;return e.forEach(r=>{if(!qv(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}class VT{clone(){return this._cloneInto()}}const j$=e=>"[object Object]"===Object.prototype.toString.call(e)&&e.constructor===Object;function UT(e,t){if(void 0!==t&&("object"!=typeof t||!j$(t)))throw new Error("Options should be object or undefined");return Object.assign(e,t)}function HT(e){const t=r=>e().update(vi(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Qh(e=32){if(Kv&&"function"==typeof Kv.getRandomValues)return Kv.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}function Yv(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function jT(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}const wn={number:Yv,bool:function $$(e){if("boolean"!=typeof e)throw new Error(`Expected boolean, not ${e}`)},bytes:jT,hash:function z$(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Yv(e.outputLen),Yv(e.blockLen)},exists:function G$(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},output:function W$(e,t){jT(e);const n=t.outputLen;if(e.lengtho-s&&(this.process(r,0),s=0);for(let d=s;d>o&i),a=Number(n&i),l=r?0:4;e.setUint32(t+(r?4:0),s,r),e.setUint32(t+l,a,r)})(r,o-8,BigInt(8*this.length),i),this.process(r,0);const a=qh(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,u=this.get();if(l>u.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;de&t^~e&n,Z$=(e,t,n)=>e&t^e&n^t&n,Y$=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ns=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),rs=new Uint32Array(64);class $T extends q${constructor(){super(64,32,8,!1),this.A=0|ns[0],this.B=0|ns[1],this.C=0|ns[2],this.D=0|ns[3],this.E=0|ns[4],this.F=0|ns[5],this.G=0|ns[6],this.H=0|ns[7]}get(){const{A:t,B:n,C:r,D:o,E:i,F:s,G:a,H:c}=this;return[t,n,r,o,i,s,a,c]}set(t,n,r,o,i,s,a,c){this.A=0|t,this.B=0|n,this.C=0|r,this.D=0|o,this.E=0|i,this.F=0|s,this.G=0|a,this.H=0|c}process(t,n){for(let d=0;d<16;d++,n+=4)rs[d]=t.getUint32(n,!1);for(let d=16;d<64;d++){const g=rs[d-15],v=rs[d-2],E=Uo(g,7)^Uo(g,18)^g>>>3,A=Uo(v,17)^Uo(v,19)^v>>>10;rs[d]=A+rs[d-7]+E+rs[d-16]|0}let{A:r,B:o,C:i,D:s,E:a,F:c,G:l,H:u}=this;for(let d=0;d<64;d++){const v=u+(Uo(a,6)^Uo(a,11)^Uo(a,25))+Q$(a,c,l)+Y$[d]+rs[d]|0,A=(Uo(r,2)^Uo(r,13)^Uo(r,22))+Z$(r,o,i)|0;u=l,l=c,c=a,a=s+v|0,s=i,i=o,o=r,r=v+A|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,s=s+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(r,o,i,s,a,c,l,u)}roundClean(){rs.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class X$ extends $T{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const Hs=HT(()=>new $T);function js(e){if(!Number.isSafeInteger(e))throw new Error(`Wrong integer: ${e}`)}function go(...e){const t=(o,i)=>s=>o(i(s));return{encode:Array.from(e).reverse().reduce((o,i)=>o?t(o,i.encode):i.encode,void 0),decode:e.reduce((o,i)=>o?t(o,i.decode):i.decode,void 0)}}function Ho(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("alphabet.encode input should be an array of numbers");return t.map(n=>{if(js(n),n<0||n>=e.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${e.length})`);return e[n]})},decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("alphabet.decode input should be array of strings");return t.map(n=>{if("string"!=typeof n)throw new Error(`alphabet.decode: not string element=${n}`);const r=e.indexOf(n);if(-1===r)throw new Error(`Unknown letter: "${n}". Allowed: ${e}`);return r})}}}function jo(e=""){if("string"!=typeof e)throw new Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("join.encode input should be array of strings");for(let n of t)if("string"!=typeof n)throw new Error(`join.encode: non-string input=${n}`);return t.join(e)},decode:t=>{if("string"!=typeof t)throw new Error("join.decode input should be string");return t.split(e)}}}function Tu(e,t="="){if(js(e),"string"!=typeof t)throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let r of n)if("string"!=typeof r)throw new Error(`padding.encode: non-string input=${r}`);for(;n.length*e%8;)n.push(t);return n},decode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let o of n)if("string"!=typeof o)throw new Error(`padding.decode: non-string input=${o}`);let r=n.length;if(r*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--)if(!((r-1)*e%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,r)}}}function zT(e){if("function"!=typeof e)throw new Error("normalize fn should be function");return{encode:t=>t,decode:t=>e(t)}}function GT(e,t,n){if(t<2)throw new Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: wrong to=${n}, base cannot be less than 2`);if(!Array.isArray(e))throw new Error("convertRadix: data should be array");if(!e.length)return[];let r=0;const o=[],i=Array.from(e);for(i.forEach(s=>{if(js(s),s<0||s>=t)throw new Error(`Wrong integer: ${s}`)});;){let s=0,a=!0;for(let c=r;cnew X$);const WT=(e,t)=>t?WT(t,e%t):e,Zh=(e,t)=>e+(t-WT(e,t));function Xv(e,t,n,r){if(!Array.isArray(e))throw new Error("convertRadix2: data should be array");if(t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(Zh(t,n)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${Zh(t,n)}`);let o=0,i=0;const s=2**n-1,a=[];for(const c of e){if(js(c),c>=2**t)throw new Error(`convertRadix2: invalid data word=${c} from=${t}`);if(o=o<32)throw new Error(`convertRadix2: carry overflow pos=${i} from=${t}`);for(i+=t;i>=n;i-=n)a.push((o>>i-n&s)>>>0);o&=2**i-1}if(o=o<=t)throw new Error("Excess padding");if(!r&&o)throw new Error(`Non-zero padding: ${o}`);return r&&i>0&&a.push(o>>>0),a}function wi(e,t=!1){if(js(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(Zh(8,e)>32||Zh(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!(n instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return Xv(Array.from(n),8,e,!t)},decode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(Xv(n,e,8,t))}}}function qT(e){if("function"!=typeof e)throw new Error("unsafeWrapper fn should be function");return function(...t){try{return e.apply(null,t)}catch{}}}go(wi(4),Ho("0123456789ABCDEF"),jo("")),go(wi(5),Ho("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),Tu(5),jo(""));const _i=(go(wi(5),Ho("0123456789ABCDEFGHIJKLMNOPQRSTUV"),Tu(5),jo("")),go(wi(5),Ho("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),jo(""),zT(e=>e.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),go(wi(6),Ho("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),Tu(6),jo(""))),Jv=(go(wi(6),Ho("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),Tu(6),jo("")),e=>go(function KT(e){return js(e),{encode:t=>{if(!(t instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return GT(Array.from(t),256,e)},decode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(GT(t,e,256))}}}(58),Ho(e),jo(""))),e1=(Jv("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),Jv("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),Jv("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),go(Ho("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),jo(""))),YT=[996825010,642813549,513874426,1027748829,705979059];function Mu(e){const t=e>>25;let n=(33554431&e)<<5;for(let r=0;r>r&1)&&(n^=YT[r]);return n}function XT(e,t,n=1){const r=e.length;let o=1;for(let i=0;i126)throw new Error(`Invalid prefix (${e})`);o=Mu(o)^s>>5}o=Mu(o);for(let i=0;id)throw new TypeError(`Wrong string length: ${u.length} (${u}). Expected (8..${d})`);const g=u.toLowerCase();if(u!==g&&u!==u.toUpperCase())throw new Error("String must be lowercase or uppercase");const v=(u=g).lastIndexOf("1");if(0===v||-1===v)throw new Error('Letter "1" must be present between prefix and data only');const E=u.slice(0,v),A=u.slice(v+1);if(A.length<6)throw new Error("Data must be at least 6 characters long");const U=e1.decode(A).slice(0,-6),q=XT(E,U,t);if(!A.endsWith(q))throw new Error(`Invalid checksum in ${u}: expected "${q}"`);return{prefix:E,words:U}}return{encode:function s(u,d,g=90){if("string"!=typeof u)throw new Error("bech32.encode prefix should be string, not "+typeof u);if(!Array.isArray(d)||d.length&&"number"!=typeof d[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof d);const v=u.length+7+d.length;if(!1!==g&&v>g)throw new TypeError(`Length ${v} exceeds limit ${g}`);return`${u=u.toLowerCase()}1${e1.encode(d)}${XT(u,d,t)}`},decode:a,decodeToBytes:function l(u){const{prefix:d,words:g}=a(u,!1);return{prefix:d,words:g,bytes:r(g)}},decodeUnsafe:qT(a),fromWords:r,fromWordsUnsafe:i,toWords:o}}const $o=JT("bech32");function Dc(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function t1(e){if("boolean"!=typeof e)throw new Error(`boolean expected, not ${e}`)}function tM(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function bt(e,...t){if(!tM(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function $s(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Jh(e,t){bt(e);const n=t.outputLen;if(e.length{if("string"!=typeof e||e.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()}));const wt=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),Ac=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function o1(e){if("string"!=typeof e)throw new Error("string expected, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function os(e){if("string"==typeof e)e=o1(e);else{if(!tM(e))throw new Error("Uint8Array expected, got "+typeof e);e=e.slice()}return e}function e0(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r(Object.assign(t,e),t);function zs(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);const o=BigInt(32),i=BigInt(4294967295),s=Number(n>>o&i),a=Number(n&i),l=r?0:4;e.setUint32(t+(r?4:0),s,r),e.setUint32(t+l,a,r)}const i1=new Uint8Array(16),zo=wt(i1),hz=(e,t,n,r)=>({s3:n<<31|r>>>1,s2:t<<31|n>>>1,s1:e<<31|t>>>1,s0:e>>>1^225<<24&-(1&r)}),Zr=e=>(e>>>0&255)<<24|(e>>>8&255)<<16|(e>>>16&255)<<8|e>>>24&255|0;class rM{constructor(t,n){this.blockLen=16,this.outputLen=16,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,bt(t=os(t),16);const r=Ac(t);let o=r.getUint32(0,!1),i=r.getUint32(4,!1),s=r.getUint32(8,!1),a=r.getUint32(12,!1);const c=[];for(let E=0;E<128;E++)c.push({s0:Zr(o),s1:Zr(i),s2:Zr(s),s3:Zr(a)}),({s0:o,s1:i,s2:s,s3:a}=hz(o,i,s,a));const l=(e=n||1024)>65536?8:e>1024?4:2;var e;if(![1,2,4,8].includes(l))throw new Error(`ghash: wrong window size=${l}, should be 2, 4 or 8`);this.W=l;const d=128/l,g=this.windowSize=2**l,v=[];for(let E=0;E>>l-le-1&1))continue;const{s0:_e,s1:Ne,s2:Oe,s3:Ke}=c[l*E+le];U^=_e,q^=Ne,K^=Oe,se^=Ke}v.push({s0:U,s1:q,s2:K,s3:se})}this.t=v}_updateBlock(t,n,r,o){t^=this.s0,n^=this.s1,r^=this.s2,o^=this.s3;const{W:i,t:s,windowSize:a}=this;let c=0,l=0,u=0,d=0;const g=(1<>>8*A&255;for(let q=8/i-1;q>=0;q--){const K=U>>>i*q&g,{s0:se,s1:le,s2:ge,s3:_e}=s[v*a+K];c^=se,l^=le,u^=ge,d^=_e,v+=1}}this.s0=c,this.s1=l,this.s2=u,this.s3=d}update(t){t=os(t),$s(this);const n=wt(t),r=Math.floor(t.length/16),o=t.length%16;for(let i=0;i>>1|n,n=(1&o)<<7}return e[0]^=225&-t,e}((t=os(t)).slice());super(r,n),r.fill(0)}update(t){t=os(t),$s(this);const n=wt(t),r=t.length%16,o=Math.floor(t.length/16);for(let i=0;ie(o,r.length).update(os(r)).digest(),n=e(new Uint8Array(16),0);return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=(r,o)=>e(r,o),t}oM((e,t)=>new rM(e,t)),oM((e,t)=>new mz(e,t)),new Uint8Array(16);const vz=283;function a1(e){return e<<1^vz&-(e>>7)}function Sc(e,t){let n=0;for(;t>0;t>>=1)n^=e&-(1&t),e=a1(e);return n}const c1=(()=>{let e=new Uint8Array(256);for(let n=0,r=1;n<256;n++,r^=a1(r))e[n]=r;const t=new Uint8Array(256);t[0]=99;for(let n=0;n<255;n++){let r=e[255-n];r|=r<<8,t[e[n]]=255&(r^r>>4^r>>5^r>>6^r>>7^99)}return t})(),wz=c1.map((e,t)=>c1.indexOf(t)),_z=e=>e<<24|e>>>8,l1=e=>e<<8|e>>>24;function sM(e,t){if(256!==e.length)throw new Error("Wrong sbox length");const n=new Uint32Array(256).map((l,u)=>t(e[u])),r=n.map(l1),o=r.map(l1),i=o.map(l1),s=new Uint32Array(65536),a=new Uint32Array(65536),c=new Uint16Array(65536);for(let l=0;l<256;l++)for(let u=0;u<256;u++){const d=256*l+u;s[d]=n[l]^r[u],a[d]=o[l]^i[u],c[d]=e[l]<<8|e[u]}return{sbox:e,sbox2:c,T0:n,T1:r,T2:o,T3:i,T01:s,T23:a}}const u1=sM(c1,e=>Sc(e,3)<<24|e<<16|e<<8|Sc(e,2)),aM=sM(wz,e=>Sc(e,11)<<24|Sc(e,13)<<16|Sc(e,9)<<8|Sc(e,14)),Ez=(()=>{const e=new Uint8Array(16);for(let t=0,n=1;t<16;t++,n=a1(n))e[t]=n;return e})();function xi(e){bt(e);const t=e.length;if(![16,24,32].includes(t))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${t}`);const{sbox2:n}=u1,r=wt(e),o=r.length,i=a=>Go(n,a,a,a,a),s=new Uint32Array(t+28);s.set(r);for(let a=o;a6&&a%o==4&&(c=i(c)),s[a]=s[a-o]^c}return s}function ss(e,t,n,r,o,i){return e[n<<8&65280|r>>>8&255]^t[o>>>8&65280|i>>>24&255]}function Go(e,t,n,r,o){return e[255&t|65280&n]|e[r>>>16&255|o>>>16&65280]<<16}function xr(e,t,n,r,o){const{sbox2:i,T01:s,T23:a}=u1;let c=0;t^=e[c++],n^=e[c++],r^=e[c++],o^=e[c++];const l=e.length/4-2;for(let E=0;E{const a=xi(t),{b:c,o:l,out:u}=function uM(e,t,n){let r=e.length;const o=r%16;if(!t&&0!==o)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");const i=wt(e);if(t){let c=16-o;c||(c=16),r+=c}const s=Ic(r,n);return{b:i,o:wt(s),out:s}}(i,o,s),d=wt(n);let g=d[0],v=d[1],E=d[2],A=d[3],U=0;for(;U+4<=c.length;)g^=c[U+0],v^=c[U+1],E^=c[U+2],A^=c[U+3],({s0:g,s1:v,s2:E,s3:A}=xr(a,g,v,E,A)),l[U++]=g,l[U++]=v,l[U++]=E,l[U++]=A;if(o){const q=function fM(e){const t=new Uint8Array(16),n=wt(t);t.set(e);const r=16-e.length;for(let o=16-r;o<16;o++)t[o]=r;return n}(i.subarray(4*U));g^=q[0],v^=q[1],E^=q[2],A^=q[3],({s0:g,s1:v,s2:E,s3:A}=xr(a,g,v,E,A)),l[U++]=g,l[U++]=v,l[U++]=E,l[U++]=A}return a.fill(0),u},decrypt:(i,s)=>{!function lM(e){if(bt(e),e.length%16!=0)throw new Error("aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size 16")}(i);const a=function d1(e){const t=xi(e),n=t.slice(),r=t.length,{sbox2:o}=u1,{T0:i,T1:s,T2:a,T3:c}=aM;for(let l=0;l>>8&255]^a[d>>>16&255]^c[d>>>24]}return n}(t),c=wt(n),l=Ic(i.length,s),u=wt(i),d=wt(l);let g=c[0],v=c[1],E=c[2],A=c[3];for(let U=0;U+4<=u.length;){const q=g,K=v,se=E,le=A;g=u[U+0],v=u[U+1],E=u[U+2],A=u[U+3];const{s0:ge,s1:_e,s2:Ne,s3:Oe}=n0(a,g,v,E,A);d[U++]=ge^q,d[U++]=_e^K,d[U++]=Ne^se,d[U++]=Oe^le}return a.fill(0),function dM(e,t){if(!t)return e;const n=e.length;if(!n)throw new Error("aes/pcks5: empty ciphertext not allowed");const r=e[n-1];if(r<=0||r>16)throw new Error(`aes/pcks5: wrong padding byte: ${r}`);const o=e.subarray(0,-r);for(let i=0;i255&e[t++]|(255&e[t++])<<8;class Cz{constructor(t){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,bt(t=os(t),32);const n=Vn(t,0),r=Vn(t,2),o=Vn(t,4),i=Vn(t,6),s=Vn(t,8),a=Vn(t,10),c=Vn(t,12),l=Vn(t,14);this.r[0]=8191&n,this.r[1]=8191&(n>>>13|r<<3),this.r[2]=7939&(r>>>10|o<<6),this.r[3]=8191&(o>>>7|i<<9),this.r[4]=255&(i>>>4|s<<12),this.r[5]=s>>>1&8190,this.r[6]=8191&(s>>>14|a<<2),this.r[7]=8065&(a>>>11|c<<5),this.r[8]=8191&(c>>>8|l<<8),this.r[9]=l>>>5&127;for(let u=0;u<8;u++)this.pad[u]=Vn(t,16+2*u)}process(t,n,r=!1){const o=r?0:2048,{h:i,r:s}=this,a=s[0],c=s[1],l=s[2],u=s[3],d=s[4],g=s[5],v=s[6],E=s[7],A=s[8],U=s[9],q=Vn(t,n+0),K=Vn(t,n+2),se=Vn(t,n+4),le=Vn(t,n+6),ge=Vn(t,n+8),_e=Vn(t,n+10),Ne=Vn(t,n+12),Oe=Vn(t,n+14);let Ke=i[0]+(8191&q),$e=i[1]+(8191&(q>>>13|K<<3)),ze=i[2]+(8191&(K>>>10|se<<6)),Ze=i[3]+(8191&(se>>>7|le<<9)),Je=i[4]+(8191&(le>>>4|ge<<12)),ft=i[5]+(ge>>>1&8191),De=i[6]+(8191&(ge>>>14|_e<<2)),ue=i[7]+(8191&(_e>>>11|Ne<<5)),ve=i[8]+(8191&(Ne>>>8|Oe<<8)),Ie=i[9]+(Oe>>>5|o),we=0,He=we+Ke*a+$e*(5*U)+ze*(5*A)+Ze*(5*E)+Je*(5*v);we=He>>>13,He&=8191,He+=ft*(5*g)+De*(5*d)+ue*(5*u)+ve*(5*l)+Ie*(5*c),we+=He>>>13,He&=8191;let Ye=we+Ke*c+$e*a+ze*(5*U)+Ze*(5*A)+Je*(5*E);we=Ye>>>13,Ye&=8191,Ye+=ft*(5*v)+De*(5*g)+ue*(5*d)+ve*(5*u)+Ie*(5*l),we+=Ye>>>13,Ye&=8191;let Xe=we+Ke*l+$e*c+ze*a+Ze*(5*U)+Je*(5*A);we=Xe>>>13,Xe&=8191,Xe+=ft*(5*E)+De*(5*v)+ue*(5*g)+ve*(5*d)+Ie*(5*u),we+=Xe>>>13,Xe&=8191;let zt=we+Ke*u+$e*l+ze*c+Ze*a+Je*(5*U);we=zt>>>13,zt&=8191,zt+=ft*(5*A)+De*(5*E)+ue*(5*v)+ve*(5*g)+Ie*(5*d),we+=zt>>>13,zt&=8191;let vt=we+Ke*d+$e*u+ze*l+Ze*c+Je*a;we=vt>>>13,vt&=8191,vt+=ft*(5*U)+De*(5*A)+ue*(5*E)+ve*(5*v)+Ie*(5*g),we+=vt>>>13,vt&=8191;let nr=we+Ke*g+$e*d+ze*u+Ze*l+Je*c;we=nr>>>13,nr&=8191,nr+=ft*a+De*(5*U)+ue*(5*A)+ve*(5*E)+Ie*(5*v),we+=nr>>>13,nr&=8191;let Cr=we+Ke*v+$e*g+ze*d+Ze*u+Je*l;we=Cr>>>13,Cr&=8191,Cr+=ft*c+De*a+ue*(5*U)+ve*(5*A)+Ie*(5*E),we+=Cr>>>13,Cr&=8191;let Tt=we+Ke*E+$e*v+ze*g+Ze*d+Je*u;we=Tt>>>13,Tt&=8191,Tt+=ft*l+De*c+ue*a+ve*(5*U)+Ie*(5*A),we+=Tt>>>13,Tt&=8191;let kn=we+Ke*A+$e*E+ze*v+Ze*g+Je*d;we=kn>>>13,kn&=8191,kn+=ft*u+De*l+ue*c+ve*a+Ie*(5*U),we+=kn>>>13,kn&=8191;let Gt=we+Ke*U+$e*A+ze*E+Ze*v+Je*g;we=Gt>>>13,Gt&=8191,Gt+=ft*d+De*u+ue*l+ve*c+Ie*a,we+=Gt>>>13,Gt&=8191,we=(we<<2)+we|0,we=we+He|0,He=8191&we,we>>>=13,Ye+=we,i[0]=He,i[1]=Ye,i[2]=Xe,i[3]=zt,i[4]=vt,i[5]=nr,i[6]=Cr,i[7]=Tt,i[8]=kn,i[9]=Gt}finalize(){const{h:t,pad:n}=this,r=new Uint16Array(10);let o=t[1]>>>13;t[1]&=8191;for(let a=2;a<10;a++)t[a]+=o,o=t[a]>>>13,t[a]&=8191;t[0]+=5*o,o=t[0]>>>13,t[0]&=8191,t[1]+=o,o=t[1]>>>13,t[1]&=8191,t[2]+=o,r[0]=t[0]+5,o=r[0]>>>13,r[0]&=8191;for(let a=1;a<10;a++)r[a]=t[a]+o,o=r[a]>>>13,r[a]&=8191;r[9]-=8192;let i=(1^o)-1;for(let a=0;a<10;a++)r[a]&=i;i=~i;for(let a=0;a<10;a++)t[a]=t[a]&i|r[a];t[0]=65535&(t[0]|t[1]<<13),t[1]=65535&(t[1]>>>3|t[2]<<10),t[2]=65535&(t[2]>>>6|t[3]<<7),t[3]=65535&(t[3]>>>9|t[4]<<4),t[4]=65535&(t[4]>>>12|t[5]<<1|t[6]<<14),t[5]=65535&(t[6]>>>2|t[7]<<11),t[6]=65535&(t[7]>>>5|t[8]<<8),t[7]=65535&(t[8]>>>8|t[9]<<5);let s=t[0]+n[0];t[0]=65535&s;for(let a=1;a<8;a++)s=(t[a]+n[a]|0)+(s>>>16)|0,t[a]=65535&s}update(t){$s(this);const{buffer:n,blockLen:r}=this,o=(t=os(t)).length;for(let i=0;i>>0,t[i++]=r[s]>>>8;return t}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}}const Az=function Dz(e){const t=(r,o)=>e(o).update(os(r)).digest(),n=e(new Uint8Array(32));return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}(e=>new Cz(e)),Sz=o1("expand 16-byte k"),Iz=o1("expand 32-byte k"),Tz=wt(Sz),Mz=wt(Iz);function Ge(e,t){return e<>>32-t}function f1(e){return e.byteOffset%4==0}const mM=2**32-1,yM=new Uint32Array;function Nu(e,t){const{allowShortKeys:n,extendNonceFn:r,counterLength:o,counterRight:i,rounds:s}=function dz(e,t){if(null==t||"object"!=typeof t)throw new Error("options must be defined");return Object.assign(e,t)}({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},t);if("function"!=typeof e)throw new Error("core must be a function");return Dc(o),Dc(s),t1(i),t1(n),(a,c,l,u,d=0)=>{bt(a),bt(c),bt(l);const g=l.length;if(u||(u=new Uint8Array(g)),bt(u),Dc(d),d<0||d>=mM)throw new Error("arx: counter overflow");if(u.length=mM)throw new Error("arx: counter overflow");const A=Math.min(64,c-E);if(d&&64===A){const U=E/4;if(E%4!=0)throw new Error("arx: invalid block position");for(let K,q=0;q<16;q++)K=U+q,v[K]=g[K]^u[q];E+=64}else{for(let q,U=0;U0;)v.pop().fill(0);return u}}function Ru(e,t,n,r,o,i=20){let s=e[0],a=e[1],c=e[2],l=e[3],u=t[0],d=t[1],g=t[2],v=t[3],E=t[4],A=t[5],U=t[6],q=t[7],K=o,se=n[0],le=n[1],ge=n[2],_e=s,Ne=a,Oe=c,Ke=l,$e=u,ze=d,Ze=g,Je=v,ft=E,De=A,ue=U,ve=q,Ie=K,we=se,He=le,Ye=ge;for(let zt=0;zt{e.update(t);const n=t.length%16;n&&e.update(Pz.subarray(n))},kz=new Uint8Array(32);function wM(e,t,n,r,o){const i=e(t,n,kz),s=Az.create(i);o&&vM(s,o),vM(s,r);const a=new Uint8Array(16),c=Ac(a);zs(c,0,BigInt(o?o.length:0),!0),zs(c,8,BigInt(r.length),!0),s.update(a);const l=s.digest();return i.fill(0),l}const _M=e=>(t,n,r)=>(bt(t,32),bt(n),{encrypt:(i,s)=>{const a=i.length,c=a+16;s?bt(s,c):s=new Uint8Array(c),e(t,n,i,s,1);const l=wM(e,t,n,s.subarray(0,-16),r);return s.set(l,a),s},decrypt:(i,s)=>{const a=i.length,c=a-16;if(a<16)throw new Error("encrypted data must be at least 16 bytes");s?bt(s,c):s=new Uint8Array(c);const l=i.subarray(0,-16);if(!e0(i.subarray(-16),wM(e,t,n,l,r)))throw new Error("invalid tag");return e(t,n,l,s,1),s}}),EM=(_M(h1),is({blockSize:64,nonceLength:24,tagLength:16},_M(Oz)));class bM extends VT{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,wn.hash(t);const r=vi(n);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,i=new Uint8Array(o);i.set(r.length>o?t.create().update(r).digest():r);for(let s=0;snew bM(e,t).update(n).digest();Fu.create=(e,t)=>new bM(e,t);const p1=new Uint8Array([0]),CM=new Uint8Array;var Bz=Object.defineProperty,mn=(e,t)=>{for(var n in t)Bz(e,n,{get:t[n],enumerable:!0})},Gs=Symbol("verified"),Lz=e=>e instanceof Object;function AM(e){if(!Lz(e)||"number"!=typeof e.kind||"string"!=typeof e.content||"number"!=typeof e.created_at||"string"!=typeof e.pubkey||!e.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(e.tags))return!1;for(let t=0;tIM,QueueNode:()=>SM,binarySearch:()=>g1,insertEventIntoAscendingList:()=>Hz,insertEventIntoDescendingList:()=>Uz,normalizeURL:()=>Mc,utf8Decoder:()=>Ci,utf8Encoder:()=>Wo});var Ci=new TextDecoder("utf-8"),Wo=new TextEncoder;function Mc(e){-1===e.indexOf("://")&&(e="wss://"+e);let t=new URL(e);return t.pathname=t.pathname.replace(/\/+/g,"/"),t.pathname.endsWith("/")&&(t.pathname=t.pathname.slice(0,-1)),("80"===t.port&&"ws:"===t.protocol||"443"===t.port&&"wss:"===t.protocol)&&(t.port=""),t.searchParams.sort(),t.hash="",t.toString()}function Uz(e,t){const[n,r]=g1(e,o=>t.id===o.id?0:t.created_at===o.created_at?-1:o.created_at-t.created_at);return r||e.splice(n,0,t),e}function Hz(e,t){const[n,r]=g1(e,o=>t.id===o.id?0:t.created_at===o.created_at?-1:t.created_at-o.created_at);return r||e.splice(n,0,t),e}function g1(e,t){let n=0,r=e.length-1;for(;n<=r;){const o=Math.floor((n+r)/2),i=t(e[o]);if(0===i)return[o,!0];i<0?r=o-1:n=o+1}return[n,!1]}var SM=class{value;next=null;prev=null;constructor(e){this.value=e}},IM=class{first;last;constructor(){this.first=null,this.last=null}enqueue(e){const t=new SM(e);return this.last?this.last===this.first?(this.last=t,this.last.prev=this.first,this.first.next=t):(t.prev=this.last,this.last.next=t,this.last=t):(this.first=t,this.last=t),!0}dequeue(){if(!this.first)return null;if(this.first===this.last){const t=this.first;return this.first=null,this.last=null,t.value}const e=this.first;return this.first=e.next,e.value}};function s0(e){let t=Hs(Wo.encode(function $z(e){if(!AM(e))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,e.pubkey,e.created_at,e.kind,e.tags,e.content])}(e)));return br(t)}var a0=new class{generateSecretKey(){return Su.utils.randomPrivateKey()}getPublicKey(e){return br(Su.getPublicKey(e))}finalizeEvent(e,t){const n=e;return n.pubkey=br(Su.getPublicKey(t)),n.id=s0(n),n.sig=br(Su.sign(s0(n),t)),n[Gs]=!0,n}verifyEvent(e){if("boolean"==typeof e[Gs])return e[Gs];const t=s0(e);if(t!==e.id)return e[Gs]=!1,!1;try{const n=Su.verify(e.sig,t,e.pubkey);return e[Gs]=n,n}catch{return e[Gs]=!1,!1}}},as=a0.finalizeEvent,Ou=a0.verifyEvent;function TM(e){return 1e3<=e&&e<1e4||[1,2,4,5,6,7,8,16,40,41,42,43,44].includes(e)}function m1(e){return[0,3].includes(e)||1e4<=e&&e<2e4}function MM(e){return 2e4<=e&&e<3e4}function NM(e){return 3e4<=e&&e<4e4}function Gz(e){return TM(e)?"regular":m1(e)?"replaceable":MM(e)?"ephemeral":NM(e)?"parameterized":"unknown"}mn({},{Application:()=>zG,BadgeAward:()=>Jz,BadgeDefinition:()=>BG,BlockedRelaysList:()=>bG,BookmarkList:()=>wG,Bookmarksets:()=>OG,Calendar:()=>YG,CalendarEventRSVP:()=>XG,ChannelCreation:()=>RM,ChannelHideMessage:()=>PM,ChannelMessage:()=>OM,ChannelMetadata:()=>FM,ChannelMuteUser:()=>kM,ClassifiedListing:()=>KG,ClientAuth:()=>BM,CommunitiesList:()=>_G,CommunityDefinition:()=>tW,CommunityPostApproval:()=>cG,Contacts:()=>Qz,CreateOrUpdateProduct:()=>UG,CreateOrUpdateStall:()=>VG,Curationsets:()=>PG,Date:()=>QG,DraftClassifiedListing:()=>qG,DraftLong:()=>jG,Emojisets:()=>$G,EncryptedDirectMessage:()=>Zz,EncryptedDirectMessages:()=>Yz,EventDeletion:()=>Xz,FileMetadata:()=>nG,FileServerPreference:()=>AG,Followsets:()=>NG,GenericRepost:()=>eG,Genericlists:()=>RG,HTTPAuth:()=>w1,Handlerinformation:()=>eW,Handlerrecommendation:()=>JG,Highlights:()=>gG,InterestsList:()=>CG,Interestsets:()=>LG,JobFeedback:()=>dG,JobRequest:()=>lG,JobResult:()=>uG,Label:()=>aG,LightningPubRPC:()=>IG,LiveChatMessage:()=>rG,LiveEvent:()=>GG,LongFormArticle:()=>HG,Metadata:()=>Wz,Mutelist:()=>mG,NWCWalletInfo:()=>SG,NWCWalletRequest:()=>LM,NWCWalletResponse:()=>TG,NostrConnect:()=>MG,OpenTimestamps:()=>tG,Pinlist:()=>yG,ProblemTracker:()=>oG,ProfileBadges:()=>kG,PublicChatsList:()=>EG,Reaction:()=>v1,RecommendRelay:()=>qz,RelayList:()=>vG,Relaysets:()=>FG,Report:()=>iG,Reporting:()=>sG,Repost:()=>y1,SearchRelaysList:()=>xG,ShortTextNote:()=>Kz,Time:()=>ZG,UserEmojiList:()=>DG,UserStatuses:()=>WG,Zap:()=>pG,ZapGoal:()=>fG,ZapRequest:()=>hG,classifyKind:()=>Gz,isEphemeralKind:()=>MM,isParameterizedReplaceableKind:()=>NM,isRegularKind:()=>TM,isReplaceableKind:()=>m1});var Wz=0,Kz=1,qz=2,Qz=3,Zz=4,Yz=4,Xz=5,y1=6,v1=7,Jz=8,eG=16,RM=40,FM=41,OM=42,PM=43,kM=44,tG=1040,nG=1063,rG=1311,oG=1971,iG=1984,sG=1984,aG=1985,cG=4550,lG=5999,uG=6999,dG=7e3,fG=9041,hG=9734,pG=9735,gG=9802,mG=1e4,yG=10001,vG=10002,wG=10003,_G=10004,EG=10005,bG=10006,xG=10007,CG=10015,DG=10030,AG=10096,SG=13194,IG=21e3,BM=22242,LM=23194,TG=23195,MG=24133,w1=27235,NG=3e4,RG=30001,FG=30002,OG=30003,PG=30004,kG=30008,BG=30009,LG=30015,VG=30017,UG=30018,HG=30023,jG=30024,$G=30030,zG=30078,GG=30311,WG=30315,KG=30402,qG=30403,QG=31922,ZG=31923,YG=31924,XG=31925,JG=31989,eW=31990,tW=34550;function c0(e,t){let n=t.length+3,r=e.indexOf(`"${t}":`)+n,o=e.slice(r).indexOf('"')+r+1;return e.slice(o,o+64)}function VM(e,t){let n=t.length,r=e.indexOf(`"${t}":`)+n+3,o=e.slice(r),i=Math.min(o.indexOf(","),o.indexOf("}"));return parseInt(o.slice(0,i),10)}function UM(e){let t=e.slice(0,22).indexOf('"EVENT"');if(-1===t)return null;let n=e.slice(t+7+1).indexOf('"');if(-1===n)return null;let r=t+7+1+n,o=e.slice(r+1,80).indexOf('"');return-1===o?null:e.slice(r+1,r+1+o)}function iW(e,t){return t===c0(e,"id")}function sW(e,t){return t===c0(e,"pubkey")}function aW(e,t){return t===VM(e,"kind")}function HM(e,t){return{kind:BM,created_at:Math.floor(Date.now()/1e3),tags:[["relay",e],["challenge",t]],content:""}}mn({},{getHex64:()=>c0,getInt:()=>VM,getSubscriptionId:()=>UM,matchEventId:()=>iW,matchEventKind:()=>aW,matchEventPubkey:()=>sW}),mn({},{makeAuthEvent:()=>HM});try{WebSocket}catch{}var l0={};mn(l0,{BECH32_REGEX:()=>$M,Bech32MaxSize:()=>x1,decode:()=>Pu,encodeBytes:()=>d0,naddrEncode:()=>wW,neventEncode:()=>vW,noteEncode:()=>mW,nprofileEncode:()=>yW,npubEncode:()=>gW,nrelayEncode:()=>_W,nsecEncode:()=>pW});var x1=5e3,$M=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function Pu(e){let{prefix:t,words:n}=$o.decode(e,x1),r=new Uint8Array($o.fromWords(n));switch(t){case"nprofile":{let o=u0(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==o[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:br(o[0][0]),relays:o[1]?o[1].map(i=>Ci.decode(i)):[]}}}case"nevent":{let o=u0(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==o[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(o[2]&&32!==o[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(o[3]&&4!==o[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:br(o[0][0]),relays:o[1]?o[1].map(i=>Ci.decode(i)):[],author:o[2]?.[0]?br(o[2][0]):void 0,kind:o[3]?.[0]?parseInt(br(o[3][0]),16):void 0}}}case"naddr":{let o=u0(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!o[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==o[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!o[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==o[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:Ci.decode(o[0][0]),pubkey:br(o[2][0]),kind:parseInt(br(o[3][0]),16),relays:o[1]?o[1].map(i=>Ci.decode(i)):[]}}}case"nrelay":{let o=u0(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for nrelay");return{type:"nrelay",data:Ci.decode(o[0][0])}}case"nsec":return{type:t,data:r};case"npub":case"note":return{type:t,data:br(r)};default:throw new Error(`unknown prefix ${t}`)}}function u0(e){let t={},n=e;for(;n.length>0;){let r=n[0],o=n[1],i=n.slice(2,2+o);if(n=n.slice(2+o),i.lengthWo.encode(n))}))}function vW(e){let t;return void 0!==e.kind&&(t=function hW(e){const t=new Uint8Array(4);return t[0]=e>>24&255,t[1]=e>>16&255,t[2]=e>>8&255,t[3]=255&e,t}(e.kind)),ku("nevent",f0({0:[Cc(e.id)],1:(e.relays||[]).map(r=>Wo.encode(r)),2:e.author?[Cc(e.author)]:[],3:t?[new Uint8Array(t)]:[]}))}function wW(e){let t=new ArrayBuffer(4);return new DataView(t).setUint32(0,e.kind,!1),ku("naddr",f0({0:[Wo.encode(e.identifier)],1:(e.relays||[]).map(r=>Wo.encode(r)),2:[Cc(e.pubkey)],3:[new Uint8Array(t)]}))}function _W(e){return ku("nrelay",f0({0:[Wo.encode(e)]}))}function f0(e){let t=[];return Object.entries(e).reverse().forEach(([n,r])=>{r.forEach(o=>{let i=new Uint8Array(o.length+2);i.set([parseInt(n)],0),i.set([o.length],1),i.set(o,2),t.push(i)})}),Iu(...t)}function zM(e,t,n){return C1.apply(this,arguments)}function C1(){return(C1=(0,h.c)(function*(e,t,n){const r=e instanceof Uint8Array?br(e):e,i=GM(xc.getSharedSecret(r,"02"+t));let s=Uint8Array.from(Qh(16)),a=Wo.encode(n),c=hM(i,s).encrypt(a);return`${_i.encode(new Uint8Array(c))}?iv=${_i.encode(new Uint8Array(s.buffer))}`})).apply(this,arguments)}function xW(e,t,n){return D1.apply(this,arguments)}function D1(){return(D1=(0,h.c)(function*(e,t,n){const r=e instanceof Uint8Array?br(e):e;let[o,i]=n.split("?iv="),a=GM(xc.getSharedSecret(r,"02"+t)),c=_i.decode(i),l=_i.decode(o),u=hM(a,c).decrypt(l);return Ci.decode(u)})).apply(this,arguments)}function GM(e){return e.slice(1,33)}mn({},{decrypt:()=>xW,encrypt:()=>zM}),mn({},{NIP05_REGEX:()=>WM,isValid:()=>SW,queryProfile:()=>KM,searchDomain:()=>AW,useFetchImplementation:()=>DW});var h0,WM=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/;try{h0=fetch}catch{}function DW(e){h0=e}function AW(e){return A1.apply(this,arguments)}function A1(){return(A1=(0,h.c)(function*(e,t=""){try{const n=`https://${e}/.well-known/nostr.json?name=${t}`;return(yield(yield h0(n,{redirect:"error"})).json()).names}catch{return{}}})).apply(this,arguments)}function KM(e){return S1.apply(this,arguments)}function S1(){return(S1=(0,h.c)(function*(e){const t=e.match(WM);if(!t)return null;const[n,r="_",o]=t;try{const i=`https://${o}/.well-known/nostr.json?name=${r}`,s=yield(yield h0(i,{redirect:"error"})).json();let a=s.names[r];return a?{pubkey:a,relays:s.relays?.[a]}:null}catch{return null}})).apply(this,arguments)}function SW(e,t){return I1.apply(this,arguments)}function I1(){return(I1=(0,h.c)(function*(e,t){let n=yield KM(t);return!!n&&n.pubkey===e})).apply(this,arguments)}function TW(e){const t={reply:void 0,root:void 0,mentions:[],profiles:[]},n=[];for(const r of e.tags)"e"===r[0]&&r[1]&&n.push(r),"p"===r[0]&&r[1]&&t.profiles.push({pubkey:r[1],relays:r[2]?[r[2]]:[]});for(let r=0;rTW}),mn({},{fetchRelayInformation:()=>RW,useFetchImplementation:()=>NW});try{fetch}catch{}function NW(e){}function RW(e){return T1.apply(this,arguments)}function T1(){return(T1=(0,h.c)(function*(e){return yield(yield fetch(e.replace("ws://","http://").replace("wss://","https://"),{headers:{Accept:"application/nostr+json"}})).json()})).apply(this,arguments)}function QM(e){let t=0;for(let n=0;n=t)break}return r}function kW(e,t,n,r){return as({kind:y1,tags:[...e.tags??[],["e",t.id,n],["p",t.pubkey]],content:""===e.content?"":JSON.stringify(t),created_at:e.created_at},r)}function ZM(e){if(e.kind!==y1)return;let t,n;for(let r=e.tags.length-1;r>=0&&(void 0===t||void 0===n);r--){const o=e.tags[r];o.length>=2&&("e"===o[0]&&void 0===t?t=o:"p"===o[0]&&void 0===n&&(n=o))}return void 0!==t?{id:t[1],relays:[t[2],n?.[2]].filter(r=>"string"==typeof r),author:n?.[1]}:void 0}function BW(e,{skipVerification:t}={}){const n=ZM(e);if(void 0===n||""===e.content)return;let r;try{r=JSON.parse(e.content)}catch{return}return r.id===n.id&&(t||Ou(r))?r:void 0}mn({},{getPow:()=>QM,minePow:()=>OW}),mn({},{finishRepostEvent:()=>kW,getRepostedEvent:()=>BW,getRepostedEventPointer:()=>ZM}),mn({},{NOSTR_URI_REGEX:()=>p0,parse:()=>UW,test:()=>VW});var p0=new RegExp(`nostr:(${$M.source})`);function VW(e){return"string"==typeof e&&new RegExp(`^${p0.source}$`).test(e)}function UW(e){const t=e.match(new RegExp(`^${p0.source}$`));if(!t)throw new Error(`Invalid Nostr URI: ${e}`);return{uri:t[0],value:t[1],decoded:Pu(t[1])}}function jW(e,t,n){const r=t.tags.filter(o=>o.length>=2&&("e"===o[0]||"p"===o[0]));return as({...e,kind:v1,tags:[...e.tags??[],...r,["e",t.id],["p",t.pubkey]],content:e.content??"+"},n)}function $W(e){if(e.kind!==v1)return;let t,n;for(let r=e.tags.length-1;r>=0&&(void 0===t||void 0===n);r--){const o=e.tags[r];o.length>=2&&("e"===o[0]&&void 0===t?t=o:"p"===o[0]&&void 0===n&&(n=o))}return void 0!==t&&void 0!==n?{id:t[1],relays:[t[2],n[2]].filter(r=>void 0!==r),author:n[1]}:void 0}mn({},{finishReactionEvent:()=>jW,getReactedEventPointer:()=>$W}),mn({},{matchAll:()=>GW,regex:()=>M1,replaceAll:()=>WW});var M1=()=>new RegExp(`\\b${p0.source}\\b`,"g");function*GW(e){const t=e.matchAll(M1());for(const n of t)try{const[r,o]=n;yield{uri:r,value:o,decoded:Pu(o),start:n.index,end:n.index+r.length}}catch{}}function WW(e,t){return e.replaceAll(M1(),(n,r)=>t({uri:n,value:r,decoded:Pu(r)}))}mn({},{channelCreateEvent:()=>qW,channelHideMessageEvent:()=>YW,channelMessageEvent:()=>ZW,channelMetadataEvent:()=>QW,channelMuteUserEvent:()=>XW});var qW=(e,t)=>{let n;if("object"==typeof e.content)n=JSON.stringify(e.content);else{if("string"!=typeof e.content)return;n=e.content}return as({kind:RM,tags:[...e.tags??[]],content:n,created_at:e.created_at},t)},QW=(e,t)=>{let n;if("object"==typeof e.content)n=JSON.stringify(e.content);else{if("string"!=typeof e.content)return;n=e.content}return as({kind:FM,tags:[["e",e.channel_create_event_id],...e.tags??[]],content:n,created_at:e.created_at},t)},ZW=(e,t)=>{const n=[["e",e.channel_create_event_id,e.relay_url,"root"]];return e.reply_to_channel_message_event_id&&n.push(["e",e.reply_to_channel_message_event_id,e.relay_url,"reply"]),as({kind:OM,tags:[...n,...e.tags??[]],content:e.content,created_at:e.created_at},t)},YW=(e,t)=>{let n;if("object"==typeof e.content)n=JSON.stringify(e.content);else{if("string"!=typeof e.content)return;n=e.content}return as({kind:PM,tags:[["e",e.channel_message_event_id],...e.tags??[]],content:n,created_at:e.created_at},t)},XW=(e,t)=>{let n;if("object"==typeof e.content)n=JSON.stringify(e.content);else{if("string"!=typeof e.content)return;n=e.content}return as({kind:kM,tags:[["p",e.pubkey_to_mute],...e.tags??[]],content:n,created_at:e.created_at},t)};mn({},{EMOJI_SHORTCODE_REGEX:()=>YM,matchAll:()=>eK,regex:()=>N1,replaceAll:()=>tK});var R1,YM=/:(\w+):/,N1=()=>new RegExp(`\\B${YM.source}\\B`,"g");function*eK(e){const t=e.matchAll(N1());for(const n of t)try{const[r,o]=n;yield{shortcode:r,name:o,start:n.index,end:n.index+r.length}}catch{}}function tK(e,t){return e.replaceAll(N1(),(n,r)=>t({shortcode:n,name:r}))}mn({},{useFetchImplementation:()=>rK,validateGithub:()=>oK});try{R1=fetch}catch{}function rK(e){R1=e}function oK(e,t,n){return F1.apply(this,arguments)}function F1(){return(F1=(0,h.c)(function*(e,t,n){try{return(yield(yield R1(`https://gist.github.com/${t}/${n}/raw`)).text())===`Verifying that I control the following Nostr public key: ${e}`}catch{return!1}})).apply(this,arguments)}mn({},{default:()=>lK,v2:()=>XM});var P1,sK=new TextDecoder,Un={minPlaintextSize:1,maxPlaintextSize:65535,utf8Encode:LT,utf8Decode:e=>sK.decode(e),getConversationKey(e,t){const n=xc.getSharedSecret(e,"02"+t).subarray(1,33);return function xM(e,t,n){return wn.hash(e),void 0===n&&(n=new Uint8Array(e.outputLen)),Fu(e,vi(n),vi(t))}(Hs,n,"nip44-v2")},getMessageKeys(e,t){const n=function DM(e,t,n,r=32){if(wn.hash(e),wn.number(r),r>255*e.outputLen)throw new Error("Length should be <= 255*HashLen");const o=Math.ceil(r/e.outputLen);void 0===n&&(n=CM);const i=new Uint8Array(o*e.outputLen),s=Fu.create(e,t),a=s._cloneInto(),c=new Uint8Array(s.outputLen);for(let l=0;lUn.maxPlaintextSize)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");const t=new Uint8Array(2);return new DataView(t.buffer).setUint16(0,e,!1),t},pad(e){const t=Un.utf8Encode(e),n=t.length;return Iu(Un.writeU16BE(n),t,new Uint8Array(Un.calcPaddedLen(n)-n))},unpad(e){const t=new DataView(e.buffer).getUint16(0),n=e.subarray(2,2+t);if(tUn.maxPlaintextSize||n.length!==t||e.length!==2+Un.calcPaddedLen(t))throw new Error("invalid padding");return Un.utf8Decode(n)},hmacAad(e,t,n){if(32!==n.length)throw new Error("AAD associated data must be 32 bytes");const r=Iu(n,t);return Fu(Hs,e,r)},decodePayload(e){if("string"!=typeof e)throw new Error("payload must be a valid string");const t=e.length;if(t<132||t>87472)throw new Error("invalid payload length: "+t);if("#"===e[0])throw new Error("unknown encryption version");let n;try{n=_i.decode(e)}catch(i){throw new Error("invalid base64: "+i.message)}const r=n.length;if(r<99||r>65603)throw new Error("invalid data length: "+r);const o=n[0];if(2!==o)throw new Error("unknown encryption version "+o);return{nonce:n.subarray(1,33),ciphertext:n.subarray(33,-32),mac:n.subarray(-32)}}},XM={utils:Un,encrypt:function aK(e,t,n=Qh(32)){const{chacha_key:r,chacha_nonce:o,hmac_key:i}=Un.getMessageKeys(t,n),s=Un.pad(e),a=h1(r,o,s),c=Un.hmacAad(i,a,n);return _i.encode(Iu(new Uint8Array([2]),n,a,c))},decrypt:function cK(e,t){const{nonce:n,ciphertext:r,mac:o}=Un.decodePayload(e),{chacha_key:i,chacha_nonce:s,hmac_key:a}=Un.getMessageKeys(t,n);if(!e0(Un.hmacAad(a,r,n),o))throw new Error("invalid MAC");const l=h1(i,s,r);return Un.unpad(l)}},lK={v2:XM};function dK(e){const{pathname:t,searchParams:n}=new URL(e),r=t,o=n.get("relay"),i=n.get("secret");if(!r||!o||!i)throw new Error("invalid connection string");return{pubkey:r,relay:o,secret:i}}function fK(e,t,n){return O1.apply(this,arguments)}function O1(){return(O1=(0,h.c)(function*(e,t,n){const o=yield zM(t,e,JSON.stringify({method:"pay_invoice",params:{invoice:n}})),i={kind:LM,created_at:Math.round(Date.now()/1e3),content:o,tags:[["p",e]]};return as(i,t)})).apply(this,arguments)}mn({},{makeNwcRequestEvent:()=>fK,parseConnectionString:()=>dK}),mn({},{getZapEndpoint:()=>gK,makeZapReceipt:()=>vK,makeZapRequest:()=>mK,useFetchImplementation:()=>pK,validateZapRequest:()=>yK});try{P1=fetch}catch{}function pK(e){P1=e}function gK(e){return k1.apply(this,arguments)}function k1(){return(k1=(0,h.c)(function*(e){try{let t="",{lud06:n,lud16:r}=JSON.parse(e.content);if(n){let{words:s}=$o.decode(n,1e3),a=$o.fromWords(s);t=Ci.decode(a)}else{if(!r)return null;{let[s,a]=r.split("@");t=new URL(`/.well-known/lnurlp/${s}`,`https://${a}`).toString()}}let i=yield(yield P1(t)).json();if(i.allowsNostr&&i.nostrPubkey)return i.callback}catch{}return null})).apply(this,arguments)}function mK({profile:e,event:t,amount:n,relays:r,comment:o=""}){if(!n)throw new Error("amount not given");if(!e)throw new Error("profile not given");let i={kind:9734,created_at:Math.round(Date.now()/1e3),content:o,tags:[["p",e],["amount",n.toString()],["relays",...r]]};return t&&i.tags.push(["e",t]),i}function yK(e){let t;try{t=JSON.parse(e)}catch{return"Invalid zap request JSON."}if(!AM(t))return"Zap request is not a valid Nostr event.";if(!Ou(t))return"Invalid signature on zap request.";let n=t.tags.find(([i,s])=>"p"===i&&s);if(!n)return"Zap request doesn't have a 'p' tag.";if(!n[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let r=t.tags.find(([i,s])=>"e"===i&&s);return r&&!r[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":t.tags.find(([i,s])=>"relays"===i&&s)?null:"Zap request doesn't have a 'relays' tag."}function vK({zapRequest:e,preimage:t,bolt11:n,paidAt:r}){let o=JSON.parse(e),i=o.tags.filter(([a])=>"e"===a||"p"===a||"a"===a),s={kind:9735,created_at:Math.round(r.getTime()/1e3),content:"",tags:[...i,["P",o.pubkey],["bolt11",n],["description",e]]};return t&&s.tags.push(["preimage",t]),s}mn({},{getToken:()=>_K,hashPayload:()=>U1,unpackEventFromToken:()=>e8,validateEvent:()=>s8,validateEventKind:()=>n8,validateEventMethodTag:()=>o8,validateEventPayloadTag:()=>i8,validateEventTimestamp:()=>t8,validateEventUrlTag:()=>r8,validateToken:()=>EK});var JM="Nostr ";function _K(e,t,n){return B1.apply(this,arguments)}function B1(){return(B1=(0,h.c)(function*(e,t,n,r=!1,o){const i={kind:w1,tags:[["u",e],["method",t]],created_at:Math.round((new Date).getTime()/1e3),content:""};o&&i.tags.push(["payload",U1(o)]);const s=yield n(i);return(r?JM:"")+_i.encode(Wo.encode(JSON.stringify(s)))})).apply(this,arguments)}function EK(e,t,n){return L1.apply(this,arguments)}function L1(){return(L1=(0,h.c)(function*(e,t,n){const r=yield e8(e).catch(i=>{throw i});return yield s8(r,t,n).catch(i=>{throw i})})).apply(this,arguments)}function e8(e){return V1.apply(this,arguments)}function V1(){return(V1=(0,h.c)(function*(e){if(!e)throw new Error("Missing token");e=e.replace(JM,"");const t=Ci.decode(_i.decode(e));if(!t||0===t.length||!t.startsWith("{"))throw new Error("Invalid token");return JSON.parse(t)})).apply(this,arguments)}function t8(e){return!!e.created_at&&Math.round((new Date).getTime()/1e3)-e.created_at<60}function n8(e){return e.kind===w1}function r8(e,t){const n=e.tags.find(r=>"u"===r[0]);return!!n&&n.length>0&&n[1]===t}function o8(e,t){const n=e.tags.find(r=>"method"===r[0]);return!!n&&n.length>0&&n[1].toLowerCase()===t.toLowerCase()}function U1(e){return br(Hs(Wo.encode(JSON.stringify(e))))}function i8(e,t){const n=e.tags.find(o=>"payload"===o[0]);if(!n)return!1;const r=U1(t);return n.length>0&&n[1]===r}function s8(e,t,n,r){return H1.apply(this,arguments)}function H1(){return(H1=(0,h.c)(function*(e,t,n,r){if(!Ou(e))throw new Error("Invalid nostr event, signature invalid");if(!n8(e))throw new Error("Invalid nostr event, kind invalid");if(!t8(e))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!r8(e,t))throw new Error("Invalid nostr event, url tag invalid");if(!o8(e,n))throw new Error("Invalid nostr event, method tag invalid");if(r&&"object"==typeof r&&Object.keys(r).length>0&&!i8(e,r))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0})).apply(this,arguments)}function l8(e,t,n,r){const{c:o,dkLen:i,DK:s,PRF:a,PRFSalt:c}=function a8(e,t,n,r){wn.hash(e);const o=UT({dkLen:32,asyncTick:10},r),{c:i,dkLen:s,asyncTick:a}=o;if(wn.number(i),wn.number(s),wn.number(a),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const c=vi(t),l=vi(n),u=new Uint8Array(s),d=Fu.create(e,c),g=d._cloneInto().update(l);return{c:i,dkLen:s,asyncTick:a,DK:u,PRF:d,PRFSalt:g}}(e,t,n,r);let l;const u=new Uint8Array(4),d=qh(u),g=new Uint8Array(a.outputLen);for(let v=1,E=0;Ee<>>32-t;function u8(e,t,n,r,o,i){let s=e[t++]^n[r++],a=e[t++]^n[r++],c=e[t++]^n[r++],l=e[t++]^n[r++],u=e[t++]^n[r++],d=e[t++]^n[r++],g=e[t++]^n[r++],v=e[t++]^n[r++],E=e[t++]^n[r++],A=e[t++]^n[r++],U=e[t++]^n[r++],q=e[t++]^n[r++],K=e[t++]^n[r++],se=e[t++]^n[r++],le=e[t++]^n[r++],ge=e[t++]^n[r++],_e=s,Ne=a,Oe=c,Ke=l,$e=u,ze=d,Ze=g,Je=v,ft=E,De=A,ue=U,ve=q,Ie=K,we=se,He=le,Ye=ge;for(let Xe=0;Xe<8;Xe+=2)$e^=It(_e+Ie|0,7),ft^=It($e+_e|0,9),Ie^=It(ft+$e|0,13),_e^=It(Ie+ft|0,18),De^=It(ze+Ne|0,7),we^=It(De+ze|0,9),Ne^=It(we+De|0,13),ze^=It(Ne+we|0,18),He^=It(ue+Ze|0,7),Oe^=It(He+ue|0,9),Ze^=It(Oe+He|0,13),ue^=It(Ze+Oe|0,18),Ke^=It(Ye+ve|0,7),Je^=It(Ke+Ye|0,9),ve^=It(Je+Ke|0,13),Ye^=It(ve+Je|0,18),Ne^=It(_e+Ke|0,7),Oe^=It(Ne+_e|0,9),Ke^=It(Oe+Ne|0,13),_e^=It(Ke+Oe|0,18),Ze^=It(ze+$e|0,7),Je^=It(Ze+ze|0,9),$e^=It(Je+Ze|0,13),ze^=It($e+Je|0,18),ve^=It(ue+De|0,7),ft^=It(ve+ue|0,9),De^=It(ft+ve|0,13),ue^=It(De+ft|0,18),Ie^=It(Ye+He|0,7),we^=It(Ie+Ye|0,9),He^=It(we+Ie|0,13),Ye^=It(He+we|0,18);o[i++]=s+_e|0,o[i++]=a+Ne|0,o[i++]=c+Oe|0,o[i++]=l+Ke|0,o[i++]=u+$e|0,o[i++]=d+ze|0,o[i++]=g+Ze|0,o[i++]=v+Je|0,o[i++]=E+ft|0,o[i++]=A+De|0,o[i++]=U+ue|0,o[i++]=q+ve|0,o[i++]=K+Ie|0,o[i++]=se+we|0,o[i++]=le+He|0,o[i++]=ge+Ye|0}function Nc(e,t,n,r,o){let i=r+0,s=r+16*o;for(let a=0;a<16;a++)n[s+a]=e[t+16*(2*o-1)+a];for(let a=0;a0&&(s+=16),u8(n,i,e,t+=16,n,s)}function h8(e,t,n){const{N:r,r:o,p:i,dkLen:s,blockSize32:a,V:c,B32:l,B:u,tmp:d,blockMixCb:g}=function d8(e,t,n){const r=UT({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:o,r:i,p:s,dkLen:a,asyncTick:c,maxmem:l,onProgress:u}=r;if(wn.number(o),wn.number(i),wn.number(s),wn.number(a),wn.number(c),wn.number(l),void 0!==u&&"function"!=typeof u)throw new Error("progressCb should be function");const d=128*i,g=d/4;if(o<=1||o&o-1||o>=2**(d/8)||o>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(s<0||s>137438953440/d)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(a<0||a>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const v=d*(o+s);if(v>l)throw new Error(`Scrypt: parameters too large, ${v} (128 * r * (N + p)) > ${l} (maxmem)`);const E=l8(Hs,e,t,{c:1,dkLen:d*s}),A=Qv(E),U=Qv(new Uint8Array(d*o)),q=Qv(new Uint8Array(d));let K=()=>{};if(u){const se=2*o*s,le=Math.max(Math.floor(se/1e4),1);let ge=0;K=()=>{ge++,u&&(!(ge%le)||ge===se)&&u(ge/se)}}return{N:o,r:i,p:s,dkLen:a,blockSize32:g,V:U,B32:A,B:E,tmp:q,blockMixCb:K,asyncTick:c}}(e,t,n);for(let v=0;v{class e{match(n){return/^ncryptsec/.test(n)}encrypt(n,r){return function CK(e,t,n=16,r=2){let o=Qh(16),i=2**n,s=h8(t.normalize("NFKC"),o,{N:i,r:8,p:1,dkLen:32}),a=Qh(24),c=Uint8Array.from([r]),u=EM(s,a,c).encrypt(e);return function xK(e,t){return function bK(e,t){let n=$o.toWords(t);return $o.encode(e,n,5e3)}(e,t)}("ncryptsec",Iu(Uint8Array.from([2]),Uint8Array.from([n]),o,a,c,u))}(l0.decode(n).data,r)}decrypt(n,r){return l0.nsecEncode(function DK(e,t){let{prefix:n,words:r}=$o.decode(e,5e3);if("ncryptsec"!==n)throw new Error(`invalid prefix ${n}, expected 'ncryptsec'`);let o=new Uint8Array($o.fromWords(r)),i=o[0];if(2!==i)throw new Error(`invalid version ${i}, expected 0x02`);let a=2**o[1],c=o.slice(2,18),l=o.slice(18,42),d=Uint8Array.from([o[42]]),g=o.slice(43),v=h8(t.normalize("NFKC"),c,{N:a,r:8,p:1,dkLen:32});return EM(v,l,d).decrypt(g)}(n,r))}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),g8=(()=>{class e{constructor(n,r,o){this.encryptedUriService=n,this.cryptoJSService=r,this.nostrNcryptsecService=o}decrypt(n,r){var o=this;return(0,h.c)(function*(){return o.cryptoJSService.match(n)?Promise.resolve(o.cryptoJSService.decrypt(n,r)):o.encryptedUriService.match(n)?o.encryptedUriService.decrypt(n,r):o.nostrNcryptsecService.match(n)?Promise.resolve(o.nostrNcryptsecService.decrypt(n,r)):Promise.reject(new Error("encryption serialization format not supported"))})()}static#e=this.\u0275fac=function(r){return new(r||e)(We(Av),We(fT),We(z1))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();function AK(e,t){1&e&&(On(),xe(0,"svg",8),yt(1,"path",9)(2,"path",15),Se())}function SK(e,t){1&e&&(xe(0,"span",16),Fe(1,"Invalid key"),Se())}let IK=(()=>{class e{constructor(n,r,o){this.fb=n,this.router=r,this.decryptService=o,this.invalidKey=!1}ngOnInit(){this.getEncryptedFromHistoryState(),this.initForm()}getEncryptedFromHistoryState(){this.encrypted=history.state.encrypted,this.encrypted||this.router.navigate(["/home"]).catch(n=>console.error(n))}initForm(){this.invalidKey=!1,this.form=this.fb.group({key:["",[Bs.required.bind(this)]]})}unlock(){if(this.form.valid&&this.encrypted)try{const n=this.form.getRawValue();this.decryptService.decrypt(this.encrypted,n.key).then(r=>{this.router.navigate(["/opened"],{state:{opened:r}})}).catch(r=>{console.error(r),this.invalidKey=!0})}catch(n){console.error(n),this.invalidKey=!0}}static#e=this.\u0275fac=function(r){return new(r||e)(be(xv),be(lr),be(g8))};static#t=this.\u0275cmp=Tr({type:e,selectors:[["app-decrypt-qrcode"]],decls:21,vars:5,consts:[[1,"main-icon"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round",4,"ngIf"],["id","decryptForm","novalidate","","autocomplete","off",3,"formGroup","submit"],["formControlName","key","name","key","placeholder","insert the key","type","password","autocomplete","off",1,"field-key"],["key",""],["class","error-msg",4,"ngIf"],[1,"buttons"],["routerLink","/home","type","button",1,"btn"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1"],["type","submit","form","decryptForm",1,"btn","btn-primary",3,"click"],["d","M5 11m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z"],["d","M12 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"],["d","M8 11v-5a4 4 0 0 1 8 0"],["d","M12 2c-.218 0 -.432 .002 -.642 .005l-.616 .017l-.299 .013l-.579 .034l-.553 .046c-4.785 .464 -6.732 2.411 -7.196 7.196l-.046 .553l-.034 .579c-.005 .098 -.01 .198 -.013 .299l-.017 .616l-.004 .318l-.001 .324c0 .218 .002 .432 .005 .642l.017 .616l.013 .299l.034 .579l.046 .553c.464 4.785 2.411 6.732 7.196 7.196l.553 .046l.579 .034c.098 .005 .198 .01 .299 .013l.616 .017l.642 .005l.642 -.005l.616 -.017l.299 -.013l.579 -.034l.553 -.046c4.785 -.464 6.732 -2.411 7.196 -7.196l.046 -.553l.034 -.579c.005 -.098 .01 -.198 .013 -.299l.017 -.616l.005 -.642l-.005 -.642l-.017 -.616l-.013 -.299l-.034 -.579l-.046 -.553c-.464 -4.785 -2.411 -6.732 -7.196 -7.196l-.553 -.046l-.579 -.034a28.058 28.058 0 0 0 -.299 -.013l-.616 -.017l-.318 -.004l-.324 -.001zm0 4a3 3 0 0 1 2.995 2.824l.005 .176v1a2 2 0 0 1 1.995 1.85l.005 .15v3a2 2 0 0 1 -1.85 1.995l-.15 .005h-6a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-3a2 2 0 0 1 1.85 -1.995l.15 -.005v-1a3 3 0 0 1 3 -3zm3 6h-6v3h6v-3zm-3 -4a1 1 0 0 0 -.993 .883l-.007 .117v1h2v-1a1 1 0 0 0 -1 -1z","fill","currentColor","stroke-width","0"],[1,"error-msg"]],template:function(r,o){if(1&r&&(xe(0,"h1"),Fe(1,"Private QRCode"),Se(),xe(2,"div",0),Sn(3,AK,3,0,"svg",1),Se(),xe(4,"form",2),St("submit",function(){return o.unlock()}),yt(5,"input",3,4),Sn(7,SK,2,0,"span",5),Se(),xe(8,"div",6)(9,"button",7),On(),xe(10,"svg",8),yt(11,"path",9)(12,"path",10),Se(),Fe(13," Back "),Se(),Ur(),xe(14,"button",11),St("click",function(){return o.unlock()}),On(),xe(15,"svg",8),yt(16,"path",9)(17,"path",12)(18,"path",13)(19,"path",14),Se(),Fe(20," Unlock "),Se()()),2&r){const i=Hi(6);rt(3),mt("ngIf",o.encrypted),rt(),mt("formGroup",o.form),rt(),Ts("has-value",!!i.value),rt(2),mt("ngIf",o.invalidKey)}},dependencies:[zi,kh,yc,Dh,Ah,_c,bu,Os],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.main-icon[_ngcontent-%COMP%]{flex:1 1 0px}.main-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:100%;height:300px}.buttons[_ngcontent-%COMP%]{display:flex;margin:1rem 0;justify-content:space-between}"]})}return e})(),TK=(()=>{class e{constructor(n){this.router=n,this.currentState=""}ngOnInit(){const n=history.state.opened;this.currentState=n?String(n):""}close(){this.router.navigate(["/home"])}static#e=this.\u0275fac=function(r){return new(r||e)(be(lr))};static#t=this.\u0275cmp=Tr({type:e,selectors:[["app-decrypted-content"]],decls:11,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"main-icon"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M5 11m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z"],["d","M12 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"],["d","M8 11v-5a4 4 0 0 1 8 0"],[3,"innerHTML"],[1,"buttons"],["type","button",1,"btn",3,"click"]],template:function(r,o){1&r&&(xe(0,"h1"),Fe(1,"Private QRCode"),Se(),On(),xe(2,"svg",0),yt(3,"path",1)(4,"path",2)(5,"path",3)(6,"path",4),Se(),Ur(),yt(7,"textarea",5),xe(8,"div",6)(9,"button",7),St("click",function(){return o.close()}),Fe(10,"Back"),Se()()),2&r&&(rt(7),mt("innerHTML",o.currentState,Gd))},styles:["[_nghost-%COMP%]{display:flex;height:calc(100vh - 3rem);flex-direction:column}.main-icon[_ngcontent-%COMP%]{width:100%;margin-top:1rem;height:200px}textarea[_ngcontent-%COMP%]{margin-top:1rem;flex:1 1 0}"]})}return e})();function m8(e,t){const n="object"==typeof t;return new Promise((r,o)=>{const i=new to({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new Jl)}});e.subscribe(i)})}const MK=["modalContainer"];function NK(e,t){}class Bu{static#e=this.modalInjectSubject=new en;static#t=this.modalInject$=Bu.modalInjectSubject.asObservable();constructor(t){this.component=t,this.injectData=null,this.cssClasses=[],this.subscription=new Le}setData(t){return this.injectData=t,this}setBindToRoute(t){return this.router=t,this}setRootCssClasses(t){return this.cssClasses=t,this}build(){const t=new en,n=this.injectData,r=this.component;return this.router?(this.subscription.add(this.router.events.pipe(mi(o=>o instanceof cu)).pipe(Gi()).subscribe(()=>{t.closed||t.complete()})),this.subscription.add(t.subscribe({complete:()=>this.subscription.unsubscribe()}))):console.warn(`Component "${r.name}" served as modal was not associated with the route and will not be automatically removed if the route is changed`),Bu.modalInjectSubject.next({component:r,data:n,cssClasses:this.cssClasses,response:t}),t.asObservable()}}let G1=(()=>{class e{createModal(n){return new Bu(n)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})(),RK=(()=>{class e{constructor(n){this.ngZone=n,this.modalInject$=Bu.modalInject$,this.classes=[],this.isOpen=!1,this.content=null,this.subscriptions=new Le,this.container=null,this.display="none",this.showingDisplay="block",this.opened=new Xt,this.closed=new Xt}ngOnInit(){this.listenModalInjection()}listenModalInjection(){this.subscriptions.add(this.modalInject$.subscribe({next:n=>{setTimeout(()=>{this.open(),this.openModal(n)})}}))}open(){this.ngZone.run(()=>{this.isOpen=!0,this.display=this.showingDisplay,this.opened.emit()})}close(){this.ngZone.run(()=>{this.isOpen=!1,this.display="none",this.closed.emit()})}getClasses(n){return(n=n||[]).concat(this.classes).join(" ")}openModal(n){const r=this.container;if(!r)return void console.error("Impossible to create modal: the this.container attribute is empty");r.clear();const o=this.content=r.createComponent(n.component).instance;this.classes=n.cssClasses,o?(o.response=n.response,o.onInjectData&&o.onInjectData(n.data||null),n.response.subscribe({error:this.closeModal.bind(this),complete:this.closeModal.bind(this)})):console.error(`Could not create component ${n.component.name} inside modal container.`)}closeModal(n){const r=this.container;r?setTimeout(()=>{r.clear(),this.close(),this.content?.response.complete()}):console.error("Impossible to create modal: the this.container attribute is empty",n)}ngOnDestroy(){this.subscriptions.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)(be(Ct))};static#t=this.\u0275cmp=Tr({type:e,selectors:[["modal-outlet"]],viewQuery:function(r,o){if(1&r&&Im(MK,5,$r),2&r){let i;Rf(i=Ff())&&(o.container=i.first)}},hostVars:2,hostBindings:function(r,o){2&r&&Is("display",o.display)},inputs:{showingDisplay:"showingDisplay"},outputs:{opened:"opened",closed:"closed"},decls:2,vars:0,consts:[["modalContainer",""]],template:function(r,o){1&r&&Sn(0,NK,0,0,"ng-template",null,0,q2)},encapsulation:2})}return e})(),W1=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({providers:[G1]})}return e})();class y8{close(){this.response.complete()}}function FK(e,t){1&e&&(xe(0,"span",33),Fe(1,"* required"),Se())}function OK(e,t){1&e&&(xe(0,"span",34),Fe(1,"hey calm down"),Se())}let PK=(()=>{class e extends y8{constructor(n){super(),this.formBuilder=n,this.response=new en,this.submitted=!1,this.form=this.formBuilder.group({algorithm:["",[Bs.required.bind(this)]],kdfHasher:["",[Bs.required.bind(this)]],kdfRounds:["",[Bs.required.bind(this)]],saveConfig:[!0]})}onInjectData(n){this.form.setValue({algorithm:n.algorithm,kdfHasher:n.kdfHasher,kdfRounds:n.kdfRounds,saveConfig:n.saveConfig})}getErrors(n,r){const o=this.form.controls;return this.submitted&&o[n]?.errors&&o[n].errors[r]||!1}onSubmit(){if(this.submitted=!0,this.form.valid){const n=this.form.getRawValue();if(n.kdfRounds&&String(n.kdfRounds).length>3){const o=`The key hash will run ${Number(n.kdfRounds).toLocaleString(void 0,{useGrouping:!0})} times into your device, are you sure?`;if(!confirm(o))return}n.saveConfig&&localStorage.setItem("private-qrcode-config",JSON.stringify(n)),this.response.next(n),this.close()}}static#e=this.\u0275fac=function(r){return new(r||e)(be(xv))};static#t=this.\u0275cmp=Tr({type:e,selectors:[["app-config"]],features:[Nt],decls:63,vars:3,consts:[["novalidate","","autocomplete","off",3,"formGroup","submit"],["for","algorithm"],["id","algorithm","formControlName","algorithm","name","algorithm"],["value","aes/cbc"],["value","aes/ecb"],["value","aes/ctr"],["value","aes/gcm"],["value","aes/siv"],["for","encryptKDFHasher"],["id","encryptKDFHasher","formControlName","kdfHasher","name","encryptKDFHasher"],["value","sha256"],["value","sha384"],["value","sha512"],["value","sha512_256"],["value","sha3_224"],["value","sha3_256"],["value","sha3_384"],["value","sha3_512"],["value","keccak_224"],["value","keccak_256"],["value","keccak_384"],["value","keccak_512"],["for","encryptKDFRounds"],["type","number","id","encryptKDFRounds","name","encryptKDFRounds","formControlName","kdfRounds","maxlength","6"],["encryptKDFRounds",""],["class","error",4,"ngIf"],["class","warn-msg",4,"ngIf"],["for","saveConfig"],["type","checkbox","id","saveConfig","name","saveConfig","formControlName","saveConfig"],[1,"flex-fill"],[1,"buttons"],["type","button",1,"btn",3,"click"],["type","submit",1,"btn","btn-primary"],[1,"error"],[1,"warn-msg"]],template:function(r,o){if(1&r&&(xe(0,"form",0),St("submit",function(){return o.onSubmit()}),xe(1,"fieldset")(2,"legend"),Fe(3,"Config"),Se(),xe(4,"div")(5,"label",1),Fe(6,"Select an algorithm"),Se(),xe(7,"select",2)(8,"option",3),Fe(9,"aes/cbc"),Se(),xe(10,"option",4),Fe(11,"aes/ecb"),Se(),xe(12,"option",5),Fe(13,"aes/ctr"),Se(),xe(14,"option",6),Fe(15,"aes/gcm"),Se(),xe(16,"option",7),Fe(17,"aes/siv"),Se()()(),xe(18,"div")(19,"label",8),Fe(20,"Select a KDF hasher"),Se(),xe(21,"select",9)(22,"option",10),Fe(23,"sha256"),Se(),xe(24,"option",11),Fe(25,"sha384"),Se(),xe(26,"option",12),Fe(27,"sha512"),Se(),xe(28,"option",13),Fe(29,"sha512_256"),Se(),xe(30,"option",14),Fe(31,"sha3_224"),Se(),xe(32,"option",15),Fe(33,"sha3_256"),Se(),xe(34,"option",16),Fe(35,"sha3_384"),Se(),xe(36,"option",17),Fe(37,"sha3_512"),Se(),xe(38,"option",18),Fe(39,"keccak_224"),Se(),xe(40,"option",19),Fe(41,"keccak_256"),Se(),xe(42,"option",20),Fe(43,"keccak_384"),Se(),xe(44,"option",21),Fe(45,"keccak_512"),Se()()(),xe(46,"div")(47,"label",22),Fe(48,"KDF rounds:"),Se(),yt(49,"input",23,24),Sn(51,FK,2,0,"span",25)(52,OK,2,0,"span",26),Se(),xe(53,"div")(54,"label",27),Fe(55,"Set config as default:"),Se(),yt(56,"input",28),Se()(),yt(57,"div",29),xe(58,"div",30)(59,"button",31),St("click",function(){return o.close()}),Fe(60,"Back"),Se(),xe(61,"button",32),Fe(62,"Configure"),Se()()()),2&r){const i=Hi(50);mt("formGroup",o.form),rt(51),mt("ngIf",o.getErrors("encryptKDFRounds","required")),rt(),mt("ngIf",i.value.length>3)}},dependencies:[zi,kh,JI,tT,yc,mv,rv,Bh,Dh,Ah,Lh,_c,bu],styles:["[_nghost-%COMP%]{height:100%;padding:1rem;display:block;box-sizing:border-box}form[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}form[_ngcontent-%COMP%] > fieldset[_ngcontent-%COMP%]{padding:1rem}form[_ngcontent-%COMP%] > fieldset[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin:1rem 0}form[_ngcontent-%COMP%] > fieldset[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%] > fieldset[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{width:230px;height:20px}.flex-fill[_ngcontent-%COMP%]{flex:1 1 0}"]})}return e})();class kK{static getValidator(){return t=>t.get("key")?.value===t.get("confirmKey")?.value?null:{confirmKey:!0}}}class BK{static getValidator(){return t=>{const n=t.get("config")?.value,r=t.get("content")?.value;if("nostrCredential"!==n||!r)return null;try{const{type:o}=l0.decode(r);return"npub"===o?{invalidNostrPublicGivenInstead:!0}:"nsec"===o?null:{invalidNostrSecret:!0}}catch{return{invalidNostrSecret:!0}}}}}function LK(e,t){if(1&e&&(xe(0,"div",38)(1,"strong"),Fe(2,"encode: "),Se(),xe(3,"span"),Fe(4,"encrypted uri"),Se(),Fe(5,", "),xe(6,"strong"),Fe(7,"algorithm: "),Se(),xe(8,"span"),Fe(9),Se(),Fe(10,", "),xe(11,"strong"),Fe(12,"kdf: "),Se(),xe(13,"span"),Fe(14,"pbkdf2"),Se(),Fe(15,", "),xe(16,"strong"),Fe(17,"hasher: "),Se(),xe(18,"span"),Fe(19),Se(),Fe(20,", "),xe(21,"strong"),Fe(22,"iterations: "),Se(),xe(23,"span"),Fe(24),Se(),Fe(25,", "),xe(26,"strong"),Fe(27,"key length: "),Se(),xe(28,"span"),Fe(29,"32"),Se()()),2&e){const n=Zn();let r,o,i;rt(9),Qa(null==(r=n.getChoosenConfig())?null:r.algorithm),rt(10),Qa(null==(o=n.getChoosenConfig())?null:o.kdfHasher),rt(5),Qa(null==(i=n.getChoosenConfig())?null:i.kdfRounds)}}function VK(e,t){1&e&&(xe(0,"div",38)(1,"strong"),Fe(2,"encode: "),Se(),xe(3,"span"),Fe(4,"nostr nip49"),Se(),Fe(5,", "),xe(6,"strong"),Fe(7,"algorithm: "),Se(),xe(8,"span"),Fe(9,"xchacha20/poly1305"),Se(),Fe(10,", "),xe(11,"strong"),Fe(12,"kdf: "),Se(),xe(13,"span"),Fe(14,"scrypt"),Se(),Fe(15,", "),xe(16,"strong"),Fe(17,"exponential iterations: "),Se(),xe(18,"span"),Fe(19,"16"),Se(),Fe(20,", "),xe(21,"strong"),Fe(22,"key length: "),Se(),xe(23,"span"),Fe(24,"32"),Se()())}function UK(e,t){1&e&&yt(0,"input",39)}function HK(e,t){1&e&&yt(0,"textarea",40)}function jK(e,t){1&e&&(xe(0,"span",41),Fe(1,"*This field is required!"),Se())}function $K(e,t){1&e&&(xe(0,"span",41),Fe(1,"*Invalid! Nostr public (npub) was given instead Nostr Secret (nsec)"),Se())}function zK(e,t){1&e&&(xe(0,"span",41),Fe(1,"*Invalid Nostr Secret was given!"),Se())}function GK(e,t){1&e&&(xe(0,"span",41),Fe(1,"*This field is required!"),Se())}function WK(e,t){1&e&&(xe(0,"span",41),Fe(1,"*This field is required!"),Se())}function KK(e,t){1&e&&(xe(0,"span",41),Fe(1,"*Divergent confirmation field!"),Se())}let qK=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.fb=r,this.modalService=o,this.encryptedUriService=i,this.nostrNcryptsecService=s,this.defaultConfigs={algorithm:"aes/cbc",kdfHasher:"sha256",kdfRounds:"32",saveConfig:!0},this.config=this.defaultConfigs,this.submitted=!1}ngOnInit(){this.defaultConfigs=this.loadDefaultConfig(),this.initForm()}getChoosenConfig(){const n=this.form.getRawValue();return"default"===n.config?this.defaultConfigs:"customized"===n.config?this.config||this.defaultConfigs:null}loadDefaultConfig(){const n=localStorage.getItem("private-qrcode-config");if(n)try{return JSON.parse(n)}catch{}return{algorithm:"aes/cbc",kdfHasher:"sha256",kdfRounds:"32",saveConfig:!0}}initForm(){this.form=this.fb.group({title:[""],config:["default"],content:["",[Bs.required.bind(this)]],key:["",[Bs.required.bind(this)]],confirmKey:["",[Bs.required.bind(this)]]}),this.form.addValidators(kK.getValidator()),this.form.addValidators(BK.getValidator())}customizeConfigs(){m8(this.modalService.createModal(PK).setData(this.getSavedConfigs()).setBindToRoute(this.router).build()).then(n=>{n&&(this.config=n)})}getSavedConfigs(){const n=localStorage.getItem("private-qrcode-config");if(n)try{return JSON.parse(n)}catch{}return this.defaultConfigs}getErrorFromForm(n){return!!this.submitted&&!(!this.form.errors||!this.form.errors[n])}getErrorFromField(n,r="required"){if(!this.submitted)return!1;const o=this.form.controls[n];return!!(o&&o.errors&&o.errors[r])}encrypt(n,r,o){if("customized"===o&&this.config)return this.encryptedUriService.encrypt(n,r,this.config);if("nostrCredential"===o){const i=this.nostrNcryptsecService.encrypt(n,r);return Promise.resolve(i)}return this.encryptedUriService.encrypt(n,r,this.defaultConfigs)}onSubmit(){if(this.submitted=!0,this.form.valid){const n=this.form.getRawValue();this.encrypt(n.content,n.key,n.config).then(r=>{this.router.navigate(["/share"],{state:{encrypted:r,title:n.title}}).catch(o=>console.error(o))}).catch(r=>console.error(r))}}static#e=this.\u0275fac=function(r){return new(r||e)(be(lr),be(xv),be(G1),be(Av),be(z1))};static#t=this.\u0275cmp=Tr({type:e,selectors:[["app-generate-qrcode"]],decls:56,vars:15,consts:[["id","generaQRCodeForm","novalidate","","autocomplete","off",3,"formGroup","submit"],[1,"buttons"],["for","configDefault",1,"btn-radio"],["radioConfigDefault",""],["name","config","formControlName","config","id","configDefault","type","radio","value","default","checked",""],["type","button",1,"btn",3,"click"],["for","configNostrCredential",1,"btn-radio"],["radioConfigNostrCredential",""],["name","config","formControlName","config","id","configNostrCredential","type","radio","value","nostrCredential"],["for","configCustomized",1,"btn-radio",3,"click"],["radioConfigCustomized",""],["name","config","formControlName","config","id","configCustomized","type","radio","value","customized"],["class","configs",4,"ngIf"],["name","title","type","text","formControlName","title","placeholder","insert a title (optional)","autocomplete","off"],["name","content","type","password","maxlength","63","formControlName","content","placeholder","nostr secret (nsec)",4,"ngIf"],["name","content","formControlName","content","placeholder","content to encrypt",4,"ngIf"],["class","error-msg",4,"ngIf"],["formControlName","key","name","key","placeholder","insert a key","type","password","autocomplete","off",1,"field-key"],["key",""],["name","confirmKey","placeholder","Confirm the key","formControlName","confirmKey","type","password","autocomplete","off",1,"field-key"],["confirmKey",""],["routerLink","/home","type","button",1,"btn"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1"],["form","generaQRCodeForm","type","submit",1,"btn","btn-primary"],["d","M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M7 17l0 .01"],["d","M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M7 7l0 .01"],["d","M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M17 7l0 .01"],["d","M14 14l3 0"],["d","M20 14l0 .01"],["d","M14 14l0 3"],["d","M14 20l3 0"],["d","M17 17l3 0"],["d","M20 17l0 3"],[1,"configs"],["name","content","type","password","maxlength","63","formControlName","content","placeholder","nostr secret (nsec)"],["name","content","formControlName","content","placeholder","content to encrypt"],[1,"error-msg"]],template:function(r,o){if(1&r){const i=Wa();xe(0,"h1"),Fe(1,"Private QRCode"),Se(),xe(2,"form",0),St("submit",function(){return o.onSubmit()}),xe(3,"div",1)(4,"label",2,3),yt(6,"input",4),xe(7,"button",5),St("click",function(){return Mi(i),Hi(5).click(),Ni(o.config=o.defaultConfigs)}),Fe(8," Default "),Se()(),xe(9,"label",6,7),yt(11,"input",8),xe(12,"button",5),St("click",function(){return Mi(i),Hi(10).click(),Ni(o.config=null)}),Fe(13," Nostr "),Se()(),xe(14,"label",9,10),St("click",function(){return o.customizeConfigs()}),yt(16,"input",11),xe(17,"button",5),St("click",function(){return Mi(i),Ni(Hi(15).click())}),Fe(18," Customized "),Se()()(),Sn(19,LK,30,3,"div",12)(20,VK,25,0,"div",12),yt(21,"input",13),Sn(22,UK,1,0,"input",14)(23,HK,1,0,"textarea",15)(24,jK,2,0,"span",16)(25,$K,2,0,"span",16)(26,zK,2,0,"span",16),yt(27,"input",17,18),Sn(29,GK,2,0,"span",16),yt(30,"input",19,20),Sn(32,WK,2,0,"span",16)(33,KK,2,0,"span",16),Se(),xe(34,"div",1)(35,"button",21),On(),xe(36,"svg",22),yt(37,"path",23)(38,"path",24),Se(),Fe(39," Back "),Se(),Ur(),xe(40,"button",25),On(),xe(41,"svg",22),yt(42,"path",23)(43,"path",26)(44,"path",27)(45,"path",28)(46,"path",29)(47,"path",30)(48,"path",31)(49,"path",32)(50,"path",33)(51,"path",34)(52,"path",35)(53,"path",36)(54,"path",37),Se(),Fe(55," Generate "),Se()()}if(2&r){const i=Hi(28),s=Hi(31);rt(2),mt("formGroup",o.form),rt(17),mt("ngIf",o.getChoosenConfig()),rt(),mt("ngIf",!o.getChoosenConfig()),rt(2),mt("ngIf",!o.config),rt(),mt("ngIf",o.config),rt(),mt("ngIf",o.getErrorFromField("content")),rt(),mt("ngIf",o.getErrorFromForm("invalidNostrPublicGivenInstead")),rt(),mt("ngIf",o.getErrorFromForm("invalidNostrSecret")),rt(),Ts("has-value",!!i.value),rt(2),mt("ngIf",o.getErrorFromField("key")),rt(),Ts("has-value",!!s.value),rt(2),mt("ngIf",o.getErrorFromField("confirmKey")),rt(),mt("ngIf",o.getErrorFromForm("confirmKey"))}},dependencies:[zi,Os,kh,yc,yv,Dh,Ah,Lh,_c,bu],styles:["[_nghost-%COMP%]{display:flex;width:100%;height:100%;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex:1 1 0px;display:flex;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%] .configs[_ngcontent-%COMP%]{margin-top:1rem}[_nghost-%COMP%] form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{flex:1 1 0px;margin-top:1rem}[_nghost-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-top:1rem}"]})}return e})();const g0=(()=>{class e{constructor(n,r,o,i,s){this._legacyCanvasSize=e.DEFAULT_CANVAS_SIZE,this._preferredCamera="environment",this._maxScansPerSecond=25,this._lastScanTimestamp=-1,this._destroyed=this._flashOn=this._paused=this._active=!1,this.$video=n,this.$canvas=document.createElement("canvas"),o&&"object"==typeof o?this._onDecode=r:(console.warn(o||i||s?"You're using a deprecated version of the QrScanner constructor which will be removed in the future":"Note that the type of the scan result passed to onDecode will change in the future. To already switch to the new api today, you can pass returnDetailedScanResult: true."),this._legacyOnDecode=r),this._onDecodeError=(r="object"==typeof o?o:{}).onDecodeError||("function"==typeof o?o:this._onDecodeError),this._calculateScanRegion=r.calculateScanRegion||("function"==typeof i?i:this._calculateScanRegion),this._preferredCamera=r.preferredCamera||s||this._preferredCamera,this._legacyCanvasSize="number"==typeof o?o:"number"==typeof i?i:this._legacyCanvasSize,this._maxScansPerSecond=r.maxScansPerSecond||this._maxScansPerSecond,this._onPlay=this._onPlay.bind(this),this._onLoadedMetaData=this._onLoadedMetaData.bind(this),this._onVisibilityChange=this._onVisibilityChange.bind(this),this._updateOverlay=this._updateOverlay.bind(this),n.disablePictureInPicture=!0,n.playsInline=!0,n.muted=!0;let a=!1;if(n.hidden&&(n.hidden=!1,a=!0),document.body.contains(n)||(document.body.appendChild(n),a=!0),o=n.parentElement,r.highlightScanRegion||r.highlightCodeOutline){if(i=!!r.overlay,this.$overlay=r.overlay||document.createElement("div"),(s=this.$overlay.style).position="absolute",s.display="none",s.pointerEvents="none",this.$overlay.classList.add("scan-region-highlight"),!i&&r.highlightScanRegion){this.$overlay.innerHTML='';try{this.$overlay.firstElementChild.animate({transform:["scale(.98)","scale(1.01)"]},{duration:400,iterations:1/0,direction:"alternate",easing:"ease-in-out"})}catch{}o.insertBefore(this.$overlay,this.$video.nextSibling)}r.highlightCodeOutline&&(this.$overlay.insertAdjacentHTML("beforeend",''),this.$codeOutlineHighlight=this.$overlay.lastElementChild)}this._scanRegion=this._calculateScanRegion(n),requestAnimationFrame(()=>{let c=window.getComputedStyle(n);"none"===c.display&&(n.style.setProperty("display","block","important"),a=!0),"visible"!==c.visibility&&(n.style.setProperty("visibility","visible","important"),a=!0),a&&(console.warn("QrScanner has overwritten the video hiding style to avoid Safari stopping the playback."),n.style.opacity="0",n.style.width="0",n.style.height="0",this.$overlay&&this.$overlay.parentElement&&this.$overlay.parentElement.removeChild(this.$overlay),delete this.$overlay,delete this.$codeOutlineHighlight),this.$overlay&&this._updateOverlay()}),n.addEventListener("play",this._onPlay),n.addEventListener("loadedmetadata",this._onLoadedMetaData),document.addEventListener("visibilitychange",this._onVisibilityChange),window.addEventListener("resize",this._updateOverlay),this._qrEnginePromise=e.createQrEngine()}static set WORKER_PATH(n){console.warn("Setting QrScanner.WORKER_PATH is not required and not supported anymore. Have a look at the README for new setup instructions.")}static hasCamera(){return(0,h.c)(function*(){try{return!!(yield e.listCameras(!1)).length}catch{return!1}})()}static listCameras(n=!1){return(0,h.c)(function*(){if(!navigator.mediaDevices)return[];let o,r=function(){var i=(0,h.c)(function*(){return(yield navigator.mediaDevices.enumerateDevices()).filter(s=>"videoinput"===s.kind)});return function(){return i.apply(this,arguments)}}();try{n&&(yield r()).every(i=>!i.label)&&(o=yield navigator.mediaDevices.getUserMedia({audio:!1,video:!0}))}catch{}try{return(yield r()).map((i,s)=>({id:i.deviceId,label:i.label||(0===s?"Default Camera":`Camera ${s+1}`)}))}finally{o&&(console.warn("Call listCameras after successfully starting a QR scanner to avoid creating a temporary video stream"),e._stopVideoStream(o))}})()}hasFlash(){var n=this;return(0,h.c)(function*(){let r;try{if(n.$video.srcObject){if(!(n.$video.srcObject instanceof MediaStream))return!1;r=n.$video.srcObject}else r=(yield n._getCameraStream()).stream;return"torch"in r.getVideoTracks()[0].getSettings()}catch{return!1}finally{r&&r!==n.$video.srcObject&&(console.warn("Call hasFlash after successfully starting the scanner to avoid creating a temporary video stream"),e._stopVideoStream(r))}})()}isFlashOn(){return this._flashOn}toggleFlash(){var n=this;return(0,h.c)(function*(){n._flashOn?yield n.turnFlashOff():yield n.turnFlashOn()})()}turnFlashOn(){var n=this;return(0,h.c)(function*(){if(!n._flashOn&&!n._destroyed&&(n._flashOn=!0,n._active&&!n._paused))try{if(!(yield n.hasFlash()))throw"No flash available";yield n.$video.srcObject.getVideoTracks()[0].applyConstraints({advanced:[{torch:!0}]})}catch(r){throw n._flashOn=!1,r}})()}turnFlashOff(){var n=this;return(0,h.c)(function*(){n._flashOn&&(n._flashOn=!1,yield n._restartVideoStream())})()}destroy(){this.$video.removeEventListener("loadedmetadata",this._onLoadedMetaData),this.$video.removeEventListener("play",this._onPlay),document.removeEventListener("visibilitychange",this._onVisibilityChange),window.removeEventListener("resize",this._updateOverlay),this._destroyed=!0,this._flashOn=!1,this.stop(),e._postWorkerMessage(this._qrEnginePromise,"close")}start(){var n=this;return(0,h.c)(function*(){if(n._destroyed)throw Error("The QR scanner can not be started as it had been destroyed.");if((!n._active||n._paused)&&("https:"!==window.location.protocol&&console.warn("The camera stream is only accessible if the page is transferred via https."),n._active=!0,!document.hidden))if(n._paused=!1,n.$video.srcObject)yield n.$video.play();else try{let{stream:r,facingMode:o}=yield n._getCameraStream();!n._active||n._paused?e._stopVideoStream(r):(n._setVideoMirror(o),n.$video.srcObject=r,yield n.$video.play(),n._flashOn&&(n._flashOn=!1,n.turnFlashOn().catch(()=>{})))}catch(r){if(!n._paused)throw n._active=!1,r}})()}stop(){this.pause(),this._active=!1}pause(n=!1){var r=this;return(0,h.c)(function*(){if(r._paused=!0,!r._active)return!0;r.$video.pause(),r.$overlay&&(r.$overlay.style.display="none");let o=()=>{r.$video.srcObject instanceof MediaStream&&(e._stopVideoStream(r.$video.srcObject),r.$video.srcObject=null)};return n?(o(),!0):(yield new Promise(i=>setTimeout(i,300)),!!r._paused&&(o(),!0))})()}setCamera(n){var r=this;return(0,h.c)(function*(){n!==r._preferredCamera&&(r._preferredCamera=n,yield r._restartVideoStream())})()}static scanImage(n,r,o,i,s=!1,a=!1){return(0,h.c)(function*(){let c,l=!1;r&&("scanRegion"in r||"qrEngine"in r||"canvas"in r||"disallowCanvasResizing"in r||"alsoTryWithoutScanRegion"in r||"returnDetailedScanResult"in r)?(c=r.scanRegion,o=r.qrEngine,i=r.canvas,s=r.disallowCanvasResizing||!1,a=r.alsoTryWithoutScanRegion||!1,l=!0):console.warn(r||o||i||s||a?"You're using a deprecated api for scanImage which will be removed in the future.":"Note that the return type of scanImage will change in the future. To already switch to the new api today, you can pass returnDetailedScanResult: true."),r=!!o;try{let u,d,g;if([o,u]=yield Promise.all([o||e.createQrEngine(),e._loadImage(n)]),[i,d]=e._drawToCanvas(u,c,i,s),o instanceof Worker){let v=o;r||e._postWorkerMessageSync(v,"inversionMode","both"),g=yield new Promise((E,A)=>{let U,q,K,se=-1;q=ge=>{ge.data.id===se&&(v.removeEventListener("message",q),v.removeEventListener("error",K),clearTimeout(U),null!==ge.data.data?E({data:ge.data.data,cornerPoints:e._convertPoints(ge.data.cornerPoints,c)}):A(e.NO_QR_CODE_FOUND))},K=ge=>{v.removeEventListener("message",q),v.removeEventListener("error",K),clearTimeout(U),A("Scanner error: "+(ge?ge.message||ge:"Unknown Error"))},v.addEventListener("message",q),v.addEventListener("error",K),U=setTimeout(()=>K("timeout"),1e4);let le=d.getImageData(0,0,i.width,i.height);se=e._postWorkerMessageSync(v,"decode",le,[le.data.buffer])})}else g=yield Promise.race([new Promise((v,E)=>window.setTimeout(()=>E("Scanner error: timeout"),1e4)),(0,h.c)(function*(){try{var[v]=yield o.detect(i);if(!v)throw e.NO_QR_CODE_FOUND;return{data:v.rawValue,cornerPoints:e._convertPoints(v.cornerPoints,c)}}catch(E){if(/not implemented|service unavailable/.test(v=E.message||E))return e._disableBarcodeDetector=!0,e.scanImage(n,{scanRegion:c,canvas:i,disallowCanvasResizing:s,alsoTryWithoutScanRegion:a});throw`Scanner error: ${v}`}})()]);return l?g:g.data}catch(u){if(!c||!a)throw u;let d=yield e.scanImage(n,{qrEngine:o,canvas:i,disallowCanvasResizing:s});return l?d:d.data}finally{r||e._postWorkerMessage(o,"close")}})()}setGrayscaleWeights(n,r,o,i=!0){e._postWorkerMessage(this._qrEnginePromise,"grayscaleWeights",{red:n,green:r,blue:o,useIntegerApproximation:i})}setInversionMode(n){e._postWorkerMessage(this._qrEnginePromise,"inversionMode",n)}static createQrEngine(n){return(0,h.c)(function*(){if(n&&console.warn("Specifying a worker path is not required and not supported anymore."),n=()=>y.e(368).then(y.bind(y,8368)).then(o=>o.createWorker()),e._disableBarcodeDetector||!("BarcodeDetector"in window)||!BarcodeDetector.getSupportedFormats||!(yield BarcodeDetector.getSupportedFormats()).includes("qr_code"))return n();let r=navigator.userAgentData;return r&&r.brands.some(({brand:o})=>/Chromium/i.test(o))&&/mac ?OS/i.test(r.platform)&&(yield r.getHighEntropyValues(["architecture","platformVersion"]).then(({architecture:o,platformVersion:i})=>/arm/i.test(o||"arm")&&13<=parseInt(i||"13")).catch(()=>!0))?n():new BarcodeDetector({formats:["qr_code"]})})()}_onPlay(){this._scanRegion=this._calculateScanRegion(this.$video),this._updateOverlay(),this.$overlay&&(this.$overlay.style.display=""),this._scanFrame()}_onLoadedMetaData(){this._scanRegion=this._calculateScanRegion(this.$video),this._updateOverlay()}_onVisibilityChange(){document.hidden?this.pause():this._active&&this.start()}_calculateScanRegion(n){let r=Math.round(.6666666666666666*Math.min(n.videoWidth,n.videoHeight));return{x:Math.round((n.videoWidth-r)/2),y:Math.round((n.videoHeight-r)/2),width:r,height:r,downScaledWidth:this._legacyCanvasSize,downScaledHeight:this._legacyCanvasSize}}_updateOverlay(){requestAnimationFrame(()=>{if(this.$overlay){var n=this.$video,r=n.videoWidth,o=n.videoHeight,i=n.offsetWidth,s=n.offsetHeight,a=n.offsetLeft,c=n.offsetTop,l=window.getComputedStyle(n),u=l.objectFit,d=r/o,g=i/s;switch(u){case"none":var v=r,E=o;break;case"fill":v=i,E=s;break;default:("cover"===u?d>g:d{const le=parseFloat(K);return K.endsWith("%")?(se?s-E:i-v)*le/100:le});g=this._scanRegion.height||o,u=this._scanRegion.x||0;var q=this._scanRegion.y||0;(d=this.$overlay.style).width=(l=this._scanRegion.width||r)/r*v+"px",d.height=g/o*E+"px",d.top=`${c+U+q/o*E}px`,o=/scaleX\(-1\)/.test(n.style.transform),d.left=`${a+(o?i-A-v:A)+(o?r-u-l:u)/r*v}px`,d.transform=n.style.transform}})}static _convertPoints(n,r){if(!r)return n;let o=r.x||0,i=r.y||0,s=r.width&&r.downScaledWidth?r.width/r.downScaledWidth:1;r=r.height&&r.downScaledHeight?r.height/r.downScaledHeight:1;for(let a of n)a.x=a.x*s+o,a.y=a.y*r+i;return n}_scanFrame(){var n=this;!this._active||this.$video.paused||this.$video.ended||("requestVideoFrameCallback"in this.$video?this.$video.requestVideoFrameCallback.bind(this.$video):requestAnimationFrame)((0,h.c)(function*(){if(!(1>=n.$video.readyState)){var r=Date.now()-n._lastScanTimestamp,o=1e3/n._maxScansPerSecond;rsetTimeout(s,o-r))),n._lastScanTimestamp=Date.now();try{var i=yield e.scanImage(n.$video,{scanRegion:n._scanRegion,qrEngine:n._qrEnginePromise,canvas:n.$canvas})}catch(s){if(!n._active)return;n._onDecodeError(s)}!e._disableBarcodeDetector||(yield n._qrEnginePromise)instanceof Worker||(n._qrEnginePromise=e.createQrEngine()),i?(n._onDecode?n._onDecode(i):n._legacyOnDecode&&n._legacyOnDecode(i.data),n.$codeOutlineHighlight&&(clearTimeout(n._codeOutlineHighlightRemovalTimeout),n._codeOutlineHighlightRemovalTimeout=void 0,n.$codeOutlineHighlight.setAttribute("viewBox",`${n._scanRegion.x||0} ${n._scanRegion.y||0} ${n._scanRegion.width||n.$video.videoWidth} ${n._scanRegion.height||n.$video.videoHeight}`),n.$codeOutlineHighlight.firstElementChild.setAttribute("points",i.cornerPoints.map(({x:s,y:a})=>`${s},${a}`).join(" ")),n.$codeOutlineHighlight.style.display="")):n.$codeOutlineHighlight&&!n._codeOutlineHighlightRemovalTimeout&&(n._codeOutlineHighlightRemovalTimeout=setTimeout(()=>n.$codeOutlineHighlight.style.display="none",100))}n._scanFrame()}))}_onDecodeError(n){n!==e.NO_QR_CODE_FOUND&&console.log(n)}_getCameraStream(){var n=this;return(0,h.c)(function*(){if(!navigator.mediaDevices)throw"Camera not found.";let r=/^(environment|user)$/.test(n._preferredCamera)?"facingMode":"deviceId",o=[{width:{min:1024}},{width:{min:768}},{}],i=o.map(s=>Object.assign({},s,{[r]:{exact:n._preferredCamera}}));for(let s of[...i,...o])try{let a=yield navigator.mediaDevices.getUserMedia({video:s,audio:!1});return{stream:a,facingMode:n._getFacingMode(a)||(s.facingMode?n._preferredCamera:"environment"===n._preferredCamera?"user":"environment")}}catch{}throw"Camera not found."})()}_restartVideoStream(){var n=this;return(0,h.c)(function*(){let r=n._paused;(yield n.pause(!0))&&!r&&n._active&&(yield n.start())})()}static _stopVideoStream(n){for(let r of n.getTracks())r.stop(),n.removeTrack(r)}_setVideoMirror(n){this.$video.style.transform="scaleX("+("user"===n?-1:1)+")"}_getFacingMode(n){return(n=n.getVideoTracks()[0])?/rear|back|environment/i.test(n.label)?"environment":/front|user|face/i.test(n.label)?"user":null:null}static _drawToCanvas(n,r,o,i=!1){o=o||document.createElement("canvas");let s=r&&r.x?r.x:0,a=r&&r.y?r.y:0,c=r&&r.width?r.width:n.videoWidth||n.width,l=r&&r.height?r.height:n.videoHeight||n.height;return i||(i=r&&r.downScaledWidth?r.downScaledWidth:c,r=r&&r.downScaledHeight?r.downScaledHeight:l,o.width!==i&&(o.width=i),o.height!==r&&(o.height=r)),(r=o.getContext("2d",{alpha:!1})).imageSmoothingEnabled=!1,r.drawImage(n,s,a,c,l,0,0,o.width,o.height),[o,r]}static _loadImage(n){return(0,h.c)(function*(){if(n instanceof Image)return yield e._awaitImageLoad(n),n;if(n instanceof HTMLVideoElement||n instanceof HTMLCanvasElement||n instanceof SVGImageElement||"OffscreenCanvas"in window&&n instanceof OffscreenCanvas||"ImageBitmap"in window&&n instanceof ImageBitmap)return n;if(!(n instanceof File||n instanceof Blob||n instanceof URL||"string"==typeof n))throw"Unsupported image type.";{let r=new Image;r.src=n instanceof File||n instanceof Blob?URL.createObjectURL(n):n.toString();try{return yield e._awaitImageLoad(r),r}finally{(n instanceof File||n instanceof Blob)&&URL.revokeObjectURL(r.src)}}})()}static _awaitImageLoad(n){return(0,h.c)(function*(){n.complete&&0!==n.naturalWidth||(yield new Promise((r,o)=>{let i=s=>{n.removeEventListener("load",i),n.removeEventListener("error",i),s instanceof ErrorEvent?o("Image load error"):r()};n.addEventListener("load",i),n.addEventListener("error",i)}))})()}static _postWorkerMessage(n,r,o,i){return(0,h.c)(function*(){return e._postWorkerMessageSync(yield n,r,o,i)})()}static _postWorkerMessageSync(n,r,o,i){if(!(n instanceof Worker))return-1;let s=e._workerMessageId++;return n.postMessage({id:s,type:r,data:o},i),s}}return e.DEFAULT_CANVAS_SIZE=400,e.NO_QR_CODE_FOUND="No QR code found",e._disableBarcodeDetector=!1,e._workerMessageId=0,e})();var Ws=y(6400),v8=y(5404);const Lu=(0,Ws.C_)("Filesystem",{web:()=>y.e(308).then(y.bind(y,7688)).then(e=>new e.FilesystemWeb)}),w8=(0,Ws.C_)("Share",{web:()=>y.e(852).then(y.bind(y,1852)).then(e=>new e.ShareWeb)});function kr(...e){const t=i=>i,n=(i,s)=>a=>i(s(a));return{encode:e.map(i=>i.encode).reduceRight(n,t),decode:e.map(i=>i.decode).reduce(n,t)}}function Yr(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("alphabet.encode input should be an array of numbers");return t.map(n=>{if(n<0||n>=e.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${e.length})`);return e[n]})},decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("alphabet.decode input should be array of strings");return t.map(n=>{if("string"!=typeof n)throw new Error(`alphabet.decode: not string element=${n}`);const r=e.indexOf(n);if(-1===r)throw new Error(`Unknown letter: "${n}". Allowed: ${e}`);return r})}}}function Xr(e=""){if("string"!=typeof e)throw new Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("join.encode input should be array of strings");for(let n of t)if("string"!=typeof n)throw new Error(`join.encode: non-string input=${n}`);return t.join(e)},decode:t=>{if("string"!=typeof t)throw new Error("join.decode input should be string");return t.split(e)}}}function Uu(e,t="="){if("string"!=typeof t)throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let r of n)if("string"!=typeof r)throw new Error(`padding.encode: non-string input=${r}`);for(;n.length*e%8;)n.push(t);return n},decode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let o of n)if("string"!=typeof o)throw new Error(`padding.decode: non-string input=${o}`);let r=n.length;if(r*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--)if(!((r-1)*e%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,r)}}}const E8=(e,t)=>t?E8(t,e%t):e,m0=(e,t)=>e+(t-E8(e,t));function y0(e,t,n,r){if(!Array.isArray(e))throw new Error("convertRadix2: data should be array");if(t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(m0(t,n)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${m0(t,n)}`);let o=0,i=0;const s=2**n-1,a=[];for(const c of e){if(c>=2**t)throw new Error(`convertRadix2: invalid data word=${c} from=${t}`);if(o=o<32)throw new Error(`convertRadix2: carry overflow pos=${i} from=${t}`);for(i+=t;i>=n;i-=n)a.push((o>>i-n&s)>>>0);o&=2**i-1}if(o=o<=t)throw new Error("Excess padding");if(!r&&o)throw new Error(`Non-zero padding: ${o}`);return r&&i>0&&a.push(o>>>0),a}function mo(e,t=!1){if(e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(m0(8,e)>32||m0(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!function Vu(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}(n))throw new Error("radix2.encode input should be Uint8Array");return y0(Array.from(n),8,e,!t)},decode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(y0(n,e,8,t))}}}const q1=kr(mo(6),Yr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),Uu(6),Xr(""));class eq extends Ws.w8{constructor(){super(...arguments),this.ERROR_PICK_FILE_CANCELED="pickFiles canceled."}convertHeicToJpeg(t){var n=this;return(0,h.c)(function*(){throw n.unimplemented("Not implemented on web.")})()}pickFiles(t){var n=this;return(0,h.c)(function*(){const r=yield n.openFilePicker(t);if(!r)throw new Error(n.ERROR_PICK_FILE_CANCELED);const o={files:[]};for(const i of r){const s={blob:i,modifiedAt:i.lastModified,mimeType:n.getMimeTypeFromUrl(i),name:n.getNameFromUrl(i),path:void 0,size:n.getSizeFromUrl(i)};t?.readData&&(s.data=yield n.getDataFromFile(i)),o.files.push(s)}return o})()}pickImages(t){var n=this;return(0,h.c)(function*(){return n.pickFiles(Object.assign({types:["image/*"]},t))})()}pickMedia(t){var n=this;return(0,h.c)(function*(){return n.pickFiles(Object.assign({types:["image/*","video/*"]},t))})()}pickVideos(t){var n=this;return(0,h.c)(function*(){return n.pickFiles(Object.assign({types:["video/*"]},t))})()}openFilePicker(t){var n=this;return(0,h.c)(function*(){var r;const o=(null===(r=t?.types)||void 0===r?void 0:r.join(","))||"",i=!!t?.multiple;return new Promise(s=>{let a=!1;const c=document.createElement("input");c.type="file",c.accept=o,c.multiple=i,c.addEventListener("change",()=>{a=!0;const l=Array.from(c.files||[]);s(l)},{once:!0}),window.addEventListener("focus",(0,h.c)(function*(){yield n.wait(1e3),!a&&s(void 0)}),{once:!0}),c.click()})})()}getDataFromFile(t){return(0,h.c)(function*(){return new Promise((n,r)=>{const o=new FileReader;o.readAsDataURL(t),o.onload=()=>{const a=("string"==typeof o.result?o.result:"").split("base64,")[1]||"";n(a)},o.onerror=i=>{r(i)}})})()}getNameFromUrl(t){return t.name}getMimeTypeFromUrl(t){return t.type}getSizeFromUrl(t){return t.size}wait(t){return(0,h.c)(function*(){return new Promise(n=>setTimeout(n,t))})()}}const tq=(0,Ws.C_)("FilePicker",{web:()=>new eq});let Z1=(()=>{class e{base64ToBlob(n){const[,,r,,o]=Array.from(n.match(/(data:)([^ ]+)(;base64,)([^ ]+)/)||[]),i=q1.decode(o),s=[];for(let a=0;a{const o=new FileReader;o.onload=i=>{const s=i.target?.result;if(!s)return r("");const a=new Uint8Array(s);return r(`data:${n.type||"image/png"};base64,`+q1.encode(a))},o.readAsArrayBuffer(n)}):Promise.resolve("")}save(n,r){return"web"===Ws.m3.getPlatform()?this.webSave(this.base64ToBlob(n),r):this.androidSave(n,r),Promise.resolve()}share(n,r){return"web"===Ws.m3.getPlatform()?this.webShare(this.base64ToBlob(n),r):this.androidShare(n,r)}load(){var n=this;return(0,h.c)(function*(){return"web"===Ws.m3.getPlatform()?n.webLoad():n.androidLoad()})()}webSave(n,r){const o=URL.createObjectURL(n),i=document.createElement("a");document.body.appendChild(i),i.href=o,i.download=r,i.click(),URL.revokeObjectURL(o)}androidSave(n,r){return(0,h.c)(function*(){return yield Lu.requestPermissions(),yield Lu.writeFile({path:r,data:n,directory:v8.Y9.Documents}),Promise.resolve()})()}webShare(n,r){return navigator.share({title:r,files:[new File([n],r,{type:n.type})]})}androidShare(n,r){return(0,h.c)(function*(){yield Lu.requestPermissions();const o=yield Lu.writeFile({path:r,data:n,directory:v8.Y9.Cache});return yield w8.share({title:r,files:[o.uri]}),Promise.resolve()})()}webLoad(n="image/*"){var r=this;return(0,h.c)(function*(){const o=document.createElement("input");o.setAttribute("type","file"),o.setAttribute("accept",n),o.click();const i=yield new Promise(s=>{o.addEventListener("change",()=>s(o.files&&o.files[0]||null))});return i?r.blobToBase64(i):Promise.resolve("")})()}androidLoad(){return(0,h.c)(function*(){yield Lu.requestPermissions();const r=(yield tq.pickImages({multiple:!1,readData:!0})).files[0];return Promise.resolve(`data:${r.mimeType};base64,${r.data||""}`)})()}isSharable(){return(0,h.c)(function*(){if(navigator.share)return Promise.resolve(!0);const n=yield w8.canShare();return"Capacitor"in window&&n.value?Promise.resolve(!0):Promise.resolve(!1)})()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();const nq=["video"];function rq(e,t){if(1&e){const n=Wa();On(),Ur(),xe(0,"button",8),St("click",function(){return Mi(n),Ni(Zn().flipCamera())}),On(),xe(1,"svg",9),yt(2,"path",2)(3,"path",10)(4,"path",11)(5,"path",12)(6,"path",13),Se()()}}let oq=(()=>{class e extends y8{constructor(){super(...arguments),this.cameras=[],this.response=new en}ngAfterViewInit(){this.videoEl&&this.videoEl.nativeElement&&this.readQRCode(this.videoEl.nativeElement)}ngOnDestroy(){this.videoEl&&this.videoEl.nativeElement&&this.stopStreaming(this.videoEl.nativeElement),this.stopScanning()}flipCamera(){const n=this.cameras,r=localStorage.getItem("privateQRcodeChoosenCameraId"),i=n.findIndex(a=>a.id===r)+1;let s;s=n[i]?n[i]:n[0],localStorage.setItem("privateQRcodeChoosenCameraId",s.id),this.scanning&&this.scanning.setCamera(s.id)}readQRCode(n){var r=this;return(0,h.c)(function*(){return r.stopScanning(),r.scanning=new g0(n,o=>{r.response.next(o.data),r.close()},{}),r.cameras=yield g0.listCameras(),yield r.scanning.setCamera(r.chooseCam(r.cameras).id),yield r.scanning.start(),r.cameras=yield g0.listCameras(),Promise.resolve()})()}chooseCam(n){if(1===n.length)return n[0];const r=localStorage.getItem("privateQRcodeChoosenCameraId");if(r)return{id:r};const o=n.find(i=>/back/.test(i.label))||n[0];return localStorage.setItem("privateQRcodeChoosenCameraId",o.id),o}stopScanning(){this.scanning&&(this.scanning.stop(),this.scanning.destroy())}stopStreaming(n){if(n){const r=n.srcObject;r instanceof MediaStream&&r.getTracks().forEach(o=>o.stop())}}static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275cmp=Tr({type:e,selectors:[["app-modal-scan-qrcode"]],viewQuery:function(r,o){if(1&r&&Im(nq,5,pr),2&r){let i;Rf(i=Ff())&&(o.videoEl=i.first)}},features:[Nt],decls:8,vars:1,consts:[["title","close","type","button",1,"circle-button","close-button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","stroke","currentColor","viewBox","0 0 24 24","stroke-width","2","fill","none","stroke-linecap","round","stroke-linejoin","round"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M18 6l-12 12"],["d","M6 6l12 12"],["title","change camera","type","button","class","circle-button flip-camera-button",3,"click",4,"ngIf"],["autoplay",""],["video",""],["title","change camera","type","button",1,"circle-button","flip-camera-button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","stroke","currentColor","viewBox","0 0 24 24","fill","none","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2"],["d","M11.245 15.904a3 3 0 0 0 3.755 -2.904m-2.25 -2.905a3 3 0 0 0 -3.75 2.905"],["d","M14 13h2v2"],["d","M10 13h-2v-2"]],template:function(r,o){1&r&&(xe(0,"button",0),St("click",function(){return o.close()}),On(),xe(1,"svg",1),yt(2,"path",2)(3,"path",3)(4,"path",4),Se()(),Sn(5,rq,7,0,"button",5),Ur(),yt(6,"video",6,7)),2&r&&(rt(5),mt("ngIf",o.cameras.length>1))},dependencies:[zi],styles:["video[_ngcontent-%COMP%]{background-color:#000;position:fixed;inset:0;z-index:49;height:100vh;width:100%}.close-button[_ngcontent-%COMP%]{position:fixed;top:5px;right:5px;z-index:50}.flip-camera-button[_ngcontent-%COMP%]{position:fixed;top:50px;right:5px;z-index:50}"]})}return e})(),T8=(()=>{class e{constructor(n){this.modalService=n}scan(){var n=this;return(0,h.c)(function*(){const r=yield m8(n.modalService.createModal(oq).build());return Promise.resolve(r||"")})()}static#e=this.\u0275fac=function(r){return new(r||e)(We(G1))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const iq=()=>["/generate"];let sq=(()=>{class e{constructor(n,r,o){this.router=n,this.fileManagerService=r,this.scanQrcodeService=o,this.appVersion="0.1.0"}uploadPicture(){this.fileManagerService.load().then(n=>{g0.scanImage(n,{}).then(r=>this.router.navigate(["/open"],{state:{encrypted:r}})).catch(r=>console.error(r))}).catch(n=>console.error(n))}openQrcodeScanner(){this.scanQrcodeService.scan().then(n=>this.router.navigate(["/open"],{state:{encrypted:n}})).catch(n=>console.error(n))}static#e=this.\u0275fac=function(r){return new(r||e)(be(lr),be(Z1),be(T8))};static#t=this.\u0275cmp=Tr({type:e,selectors:[["app-home"]],decls:40,vars:3,consts:[["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round",1,"main-icon"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M12 2c-.218 0 -.432 .002 -.642 .005l-.616 .017l-.299 .013l-.579 .034l-.553 .046c-4.785 .464 -6.732 2.411 -7.196 7.196l-.046 .553l-.034 .579c-.005 .098 -.01 .198 -.013 .299l-.017 .616l-.004 .318l-.001 .324c0 .218 .002 .432 .005 .642l.017 .616l.013 .299l.034 .579l.046 .553c.464 4.785 2.411 6.732 7.196 7.196l.553 .046l.579 .034c.098 .005 .198 .01 .299 .013l.616 .017l.642 .005l.642 -.005l.616 -.017l.299 -.013l.579 -.034l.553 -.046c4.785 -.464 6.732 -2.411 7.196 -7.196l.046 -.553l.034 -.579c.005 -.098 .01 -.198 .013 -.299l.017 -.616l.005 -.642l-.005 -.642l-.017 -.616l-.013 -.299l-.034 -.579l-.046 -.553c-.464 -4.785 -2.411 -6.732 -7.196 -7.196l-.553 -.046l-.579 -.034a28.058 28.058 0 0 0 -.299 -.013l-.616 -.017l-.318 -.004l-.324 -.001zm0 4a3 3 0 0 1 2.995 2.824l.005 .176v1a2 2 0 0 1 1.995 1.85l.005 .15v3a2 2 0 0 1 -1.85 1.995l-.15 .005h-6a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-3a2 2 0 0 1 1.85 -1.995l.15 -.005v-1a3 3 0 0 1 3 -3zm3 6h-6v3h6v-3zm-3 -4a1 1 0 0 0 -.993 .883l-.007 .117v1h2v-1a1 1 0 0 0 -1 -1z","fill","currentColor","stroke-width","0"],[1,"space-between"],["type","button",1,"btn","btn-primary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["d","M15 8h.01"],["d","M12.5 21h-6.5a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v6.5"],["d","M3 16l5 -5c.928 -.893 2.072 -.893 3 0l3.5 3.5"],["d","M14 14l1 -1c.679 -.653 1.473 -.829 2.214 -.526"],["d","M19 22v-6"],["d","M22 19l-3 -3l-3 3"],["d","M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2"],["d","M9 13a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"],["type","button",1,"btn","btn-primary",3,"routerLink"],["d","M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M7 17l0 .01"],["d","M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M7 7l0 .01"],["d","M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M17 7l0 .01"],["d","M14 14l3 0"],["d","M20 14l0 .01"],["d","M14 14l0 3"],["d","M14 20l3 0"],["d","M17 17l3 0"],["d","M20 17l0 3"],[1,"version"]],template:function(r,o){1&r&&(xe(0,"h1"),Fe(1,"Private QRCode"),Se(),On(),xe(2,"svg",0),yt(3,"path",1)(4,"path",2),Se(),Ur(),yt(5,"div",3),xe(6,"button",4),St("click",function(){return o.uploadPicture()}),On(),xe(7,"svg",5),yt(8,"path",1)(9,"path",6)(10,"path",7)(11,"path",8)(12,"path",9)(13,"path",10)(14,"path",11),Se(),Fe(15," Load QRCode\n"),Se(),Ur(),xe(16,"button",4),St("click",function(){return o.openQrcodeScanner()}),On(),xe(17,"svg",5),yt(18,"path",1)(19,"path",12)(20,"path",13),Se(),Fe(21," Scan QRCode\n"),Se(),Ur(),xe(22,"button",14),On(),xe(23,"svg",5),yt(24,"path",1)(25,"path",15)(26,"path",16)(27,"path",17)(28,"path",18)(29,"path",19)(30,"path",20)(31,"path",21)(32,"path",22)(33,"path",23)(34,"path",24)(35,"path",25)(36,"path",26),Se(),Fe(37," Generate QRCode\n"),Se(),Ur(),xe(38,"footer",27),Fe(39),Se()),2&r&&(rt(22),mt("routerLink",Om(2,iq)),rt(17),Qa(o.appVersion))},dependencies:[Os],styles:["[_nghost-%COMP%]{width:100%;height:100%;display:flex;padding:1rem;flex-direction:column;box-sizing:border-box}[_nghost-%COMP%] .main-icon[_ngcontent-%COMP%]{width:100%;margin-top:1rem;height:200px}[_nghost-%COMP%] button[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] button[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem}[_nghost-%COMP%] .space-between[_ngcontent-%COMP%]{flex:1 1 0px}[_nghost-%COMP%] .version[_ngcontent-%COMP%]{font-size:.8rem;color:#666;text-align:center}"]})}return e})();var aq=y(4336),ot=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(ot||{});const Di="*";function cq(e,t){return{type:ot.Trigger,name:e,definitions:t,options:{}}}function M8(e,t=null){return{type:ot.Animate,styles:t,timings:e}}function ju(e){return{type:ot.Style,styles:e,offset:null}}function Y1(e,t,n){return{type:ot.State,name:e,styles:t,options:n}}function N8(e,t,n=null){return{type:ot.Transition,expr:e,animation:t,options:n}}class $u{constructor(t=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class R8{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let n=0,r=0,o=0;const i=this.players.length;0==i?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==i&&this._onFinish()}),s.onDestroy(()=>{++r==i&&this._onDestroy()}),s.onStart(()=>{++o==i&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const n=t*this.totalTime;this.players.forEach(r=>{const o=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(o)})}getPosition(){const t=this.players.reduce((n,r)=>null===n||r.totalTime>n.totalTime?r:n,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}const F8=["toast-component",""];function pq(e,t){if(1&e){const n=Wa();xe(0,"button",5),St("click",function(){return Mi(n),Ni(Zn().remove())}),xe(1,"span",6),Fe(2,"\xd7"),Se()()}}function gq(e,t){if(1&e&&(Rl(0),Fe(1),Fl()),2&e){const n=Zn(2);rt(),ci("[",n.duplicatesCount+1,"]")}}function mq(e,t){if(1&e&&(xe(0,"div"),Fe(1),Sn(2,gq,2,1,"ng-container",4),Se()),2&e){const n=Zn();ai(n.options.titleClass),wr("aria-label",n.title),rt(),ci(" ",n.title," "),rt(),mt("ngIf",n.duplicatesCount)}}function yq(e,t){if(1&e&&yt(0,"div",7),2&e){const n=Zn();ai(n.options.messageClass),mt("innerHTML",n.message,Gd)}}function vq(e,t){if(1&e&&(xe(0,"div",8),Fe(1),Se()),2&e){const n=Zn();ai(n.options.messageClass),wr("aria-label",n.message),rt(),ci(" ",n.message," ")}}function wq(e,t){if(1&e&&(xe(0,"div"),yt(1,"div",9),Se()),2&e){const n=Zn();rt(),Is("width",n.width+"%")}}class Aq{_attachedHost;component;viewContainerRef;injector;constructor(t,n){this.component=t,this.injector=n}attach(t,n){return this._attachedHost=t,t.attach(this,n)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Sq{_attachedPortal;_disposeFn;attach(t,n){return this._attachedPortal=t,this.attachComponentPortal(t,n)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}class Iq{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new en;_activate=new en;_manualClose=new en;_resetTimeout=new en;_countDuplicate=new en;constructor(t){this._overlayRef=t}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(t,n){t&&this._resetTimeout.next(),n&&this._countDuplicate.next(++this.duplicatesCount)}}class _0{toastId;config;message;title;toastType;toastRef;_onTap=new en;_onAction=new en;constructor(t,n,r,o,i,s){this.toastId=t,this.config=n,this.message=r,this.title=o,this.toastType=i,this.toastRef=s,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const P8=new je("ToastConfig");class Tq extends Sq{_hostDomElement;_componentFactoryResolver;_appRef;constructor(t,n,r){super(),this._hostDomElement=t,this._componentFactoryResolver=n,this._appRef=r}attachComponentPortal(t,n){const r=this._componentFactoryResolver.resolveComponentFactory(t.component);let o;return o=r.create(t.injector),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.detachView(o.hostView),o.destroy()}),n?this._hostDomElement.insertBefore(this._getComponentRootNode(o),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(o)),o}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Mq=(()=>{class e{_document=Pe(Yn);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const n=this._document.createElement("div");n.classList.add("overlay-container"),n.setAttribute("aria-live","polite"),this._document.body.appendChild(n),this._containerElement=n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class Nq{_portalHost;constructor(t){this._portalHost=t}attach(t,n=!0){return this._portalHost.attach(t,n)}detach(){return this._portalHost.detach()}}let Rq=(()=>{class e{_overlayContainer=Pe(Mq);_componentFactoryResolver=Pe(wl);_appRef=Pe(li);_document=Pe(Yn);_paneElements=new Map;create(n,r){return this._createOverlayRef(this.getPaneElement(n,r))}getPaneElement(n="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[n]||(this._paneElements.get(r)[n]=this._createPaneElement(n,r)),this._paneElements.get(r)[n]}_createPaneElement(n,r){const o=this._document.createElement("div");return o.id="toast-container",o.classList.add(n),o.classList.add("toast-container"),r?r.getContainerElement().appendChild(o):this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalHost(n){return new Tq(n,this._componentFactoryResolver,this._appRef)}_createOverlayRef(n){return new Nq(this._createPortalHost(n))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),J1=(()=>{class e{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(n,r,o,i,s){this.overlay=r,this._injector=o,this.sanitizer=i,this.ngZone=s,this.toastrConfig={...n.default,...n.config},n.config.iconClasses&&(this.toastrConfig.iconClasses={...n.default.iconClasses,...n.config.iconClasses})}show(n,r,o={},i=""){return this._preBuildNotification(i,n,r,this.applyConfig(o))}success(n,r,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",n,r,this.applyConfig(o))}error(n,r,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",n,r,this.applyConfig(o))}info(n,r,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",n,r,this.applyConfig(o))}warning(n,r,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",n,r,this.applyConfig(o))}clear(n){for(const r of this.toasts)if(void 0!==n){if(r.toastId===n)return void r.toastRef.manualClose()}else r.toastRef.manualClose()}remove(n){const r=this._findToast(n);if(!r||(r.activeToast.toastRef.close(),this.toasts.splice(r.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(n,r,o,i)):this._buildNotification(n,r,o,i)}_buildNotification(n,r,o,i){if(!i.toastComponent)throw new Error("toastComponent required");const s=this.findDuplicate(o,r,this.toastrConfig.resetTimeoutOnDuplicate&&i.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&o||r)&&this.toastrConfig.preventDuplicates&&null!==s)return s;this.previousToastMessage=r;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const c=this.overlay.create(i.positionClass,this.overlayContainer);this.index=this.index+1;let l=r;r&&i.enableHtml&&(l=this.sanitizer.sanitize(Fr.HTML,r));const u=new Iq(c),d=new _0(this.index,i,l,o,n,u),v=qn.create({providers:[{provide:_0,useValue:d}],parent:this._injector}),E=new Aq(i.toastComponent,v),A=c.attach(E,i.newestOnTop);u.componentInstance=A.instance;const U={toastId:this.index,title:o||"",message:r||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:A};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{U.toastRef.activate()})),this.toasts.push(U),U}static \u0275fac=function(r){return new(r||e)(We(P8),We(Rq),We(qn),We(zA),We(Ct))};static \u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Fq={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class e{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(n,r,o){this.toastrService=n,this.toastPackage=r,this.ngZone=o,this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(i=>{this.duplicatesCount=i}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const n=(new Date).getTime();this.width=(this.hideTime-n)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(n,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(n),r)):this.timeout=setTimeout(()=>n(),r)}outsideInterval(n,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(n),r)):this.intervalId=setInterval(()=>n(),r)}runInsideAngular(n){this.ngZone?this.ngZone.run(()=>n()):n()}static \u0275fac=function(r){return new(r||e)(be(J1),be(_0),be(Ct))};static \u0275cmp=Tr({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(r,o){1&r&&St("click",function(){return o.tapToast()})("mouseenter",function(){return o.stickAround()})("mouseleave",function(){return o.delayedHideToast()}),2&r&&(xm("@flyInOut",o.state),ai(o.toastClasses),Is("display",o.displayStyle))},standalone:!0,features:[Of],attrs:F8,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(r,o){1&r&&Sn(0,pq,3,0,"button",0)(1,mq,3,5,"div",1)(2,yq,1,3,"div",2)(3,vq,2,4,"div",3)(4,wq,2,2,"div",4),2&r&&(mt("ngIf",o.options.closeButton),rt(),mt("ngIf",o.title),rt(),mt("ngIf",o.message&&o.options.enableHtml),rt(),mt("ngIf",o.message&&!o.options.enableHtml),rt(),mt("ngIf",o.options.progressBar))},dependencies:[zi],encapsulation:2,data:{animation:[cq("flyInOut",[Y1("inactive",ju({opacity:0})),Y1("active",ju({opacity:1})),Y1("removed",ju({opacity:0})),N8("inactive => active",M8("{{ easeTime }}ms {{ easing }}")),N8("active => removed",M8("{{ easeTime }}ms {{ easing }}"))])]}})}return e})()},Oq=(e={})=>function Ad(e){return{\u0275providers:e}}([{provide:P8,useValue:{default:Fq,config:e}}]);let Pq=(()=>{class e{static forRoot(n={}){return{ngModule:e,providers:[Oq(n)]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=un({type:e});static \u0275inj=on({})}return e})();function kq(e,t){if(1&e){const n=Wa();On(),Ur(),xe(0,"button",8),St("click",function(){return Mi(n),Ni(Zn().share())}),On(),xe(1,"svg",5),yt(2,"path",6)(3,"path",14)(4,"path",15)(5,"path",16)(6,"path",17)(7,"path",18),Se(),Fe(8," Share "),Se()}}const Bq=()=>["/home"],Lq=[{path:"home",component:sq},{path:"generate",component:qK},{path:"open",component:IK},{path:"opened",component:TK},{path:"share",component:(()=>{class e{constructor(n,r){this.fileExporterService=n,this.toastrService=r,this.sharable=!1}ngOnInit(){this.renderStateToCanvas(),this.loadSharable()}loadSharable(){this.fileExporterService.isSharable().then(n=>this.sharable=n)}renderStateToCanvas(){const n=history.state.encrypted,r=history.state.title,o=n?String(n):"",i=document.createElement("canvas");r?(i.setAttribute("height","750px"),i.setAttribute("width","500px")):(i.setAttribute("height","500px"),i.setAttribute("width","500px")),(0,aq.gH)(i,o,{margin:5},s=>{if(s)return void console.error(s);const a=i.getContext("2d");a&&r&&(a.fillStyle="#000",a.font='15px "Segoe UI", Roboto, "Noto Sans", Helvetica, Arial, sans-serif',a.fillText(r,17,15)),setTimeout(()=>this.src=i.toDataURL("image/png"))})}generateFileName(){let n="private qrcode.png";return history.state.title&&(n=`private qrcode - ${history.state.title.replace(/[,<>:"/\\|?*]/g,"")} - ${(new Date).getTime()}.png`),n}save(){var n=this;return(0,h.c)(function*(){const r=n.src;return r&&(yield n.fileExporterService.save(r,n.generateFileName()),n.toastrService.success("File saved.")),Promise.resolve()})()}share(){var n=this;return(0,h.c)(function*(){const r=n.src;return r?n.fileExporterService.share(r,n.generateFileName()):Promise.resolve()})()}static#e=this.\u0275fac=function(r){return new(r||e)(be(Z1),be(J1))};static#t=this.\u0275cmp=Tr({type:e,selectors:[["app-share-qrcode"]],decls:19,vars:4,consts:[[1,"space-between"],[3,"src"],["qrcode",""],[1,"buttons"],["type","button",1,"btn",3,"routerLink"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1"],["type","button",1,"btn","btn-primary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round",1,"icon","icon-tabler","icon-tabler-device-floppy"],["d","M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"],["d","M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"],["d","M14 4l0 4l-6 0l0 -4"],["class","btn btn-primary","type","button",3,"click",4,"ngIf"],["d","M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"],["d","M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"],["d","M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"],["d","M8.7 10.7l6.6 -3.4"],["d","M8.7 13.3l6.6 3.4"]],template:function(r,o){1&r&&(xe(0,"h1"),Fe(1,"Private QRCode"),Se(),xe(2,"div",0),yt(3,"img",1,2),Se(),xe(5,"div",3)(6,"button",4),On(),xe(7,"svg",5),yt(8,"path",6)(9,"path",7),Se(),Fe(10," Back "),Se(),Ur(),xe(11,"button",8),St("click",function(){return o.save()}),On(),xe(12,"svg",9),yt(13,"path",6)(14,"path",10)(15,"path",11)(16,"path",12),Se(),Fe(17," Save "),Se(),Sn(18,kq,9,0,"button",13),Se()),2&r&&(rt(3),mt("src",o.src,og),rt(3),mt("routerLink",Om(3,Bq)),rt(12),mt("ngIf",o.sharable))},dependencies:[zi,Os],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-around}@media only screen and (max-width: 350px){.buttons[_ngcontent-%COMP%]{flex-direction:column}}.space-between[_ngcontent-%COMP%]{flex:1 1 0}img[_ngcontent-%COMP%]{margin:1rem auto;display:block;background-color:#000;width:100%;max-width:450px}"]})}return e})()},{path:"",redirectTo:"home",pathMatch:"full"}];let Vq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({imports:[Ps.forRoot(Lq,{useHash:!0}),Ps]})}return e})(),Uq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Tr({type:e,selectors:[["app-root"]],decls:2,vars:0,template:function(r,o){1&r&&yt(0,"modal-outlet")(1,"router-outlet")},dependencies:[Wy,RK]})}return e})(),Hq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({imports:[No,W1,Ps,Cv]})}return e})(),jq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({imports:[No,Ps]})}return e})(),$q=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({providers:[T8],imports:[No,Ps,W1,W1]})}return e})(),zq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({providers:[Z1],imports:[No]})}return e})(),Gq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({imports:[No,Ps,zq]})}return e})(),Wq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({providers:[fT,Av,z1,g8],imports:[No]})}return e})(),Kq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({imports:[No,Cv]})}return e})(),qq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({imports:[No]})}return e})(),Qq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({imports:[No,Cv,Ps]})}return e})();function k8(e){return new he(3e3,!1)}function cs(e){switch(e.length){case 0:return new $u;case 1:return e[0];default:return new R8(e)}}function B8(e,t,n=new Map,r=new Map){const o=[],i=[];let s=-1,a=null;if(t.forEach(c=>{const l=c.get("offset"),u=l==s,d=u&&a||new Map;c.forEach((g,v)=>{let E=v,A=g;if("offset"!==v)switch(E=e.normalizePropertyName(E,o),A){case"!":A=n.get(v);break;case Di:A=r.get(v);break;default:A=e.normalizeStyleValue(v,E,A,o)}d.set(E,A)}),u||i.push(d),a=d,s=l}),o.length)throw function vQ(e){return new he(3502,!1)}();return i}function ew(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&tw(n,"start",e)));break;case"done":e.onDone(()=>r(n&&tw(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&tw(n,"destroy",e)))}}function tw(e,t,n){const i=nw(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,n.totalTime??e.totalTime,!!n.disabled),s=e._data;return null!=s&&(i._data=s),i}function nw(e,t,n,r,o="",i=0,s){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:o,totalTime:i,disabled:!!s}}function Br(e,t,n){let r=e.get(t);return r||e.set(t,r=n),r}function L8(e){const t=e.indexOf(":");return[e.substring(1,t),e.slice(t+1)]}const MQ=typeof document>"u"?null:document.documentElement;function rw(e){const t=e.parentNode||e.host||null;return t===MQ?null:t}let qs=null,V8=!1;function U8(e,t){for(;t;){if(t===e)return!0;t=rw(t)}return!1}function H8(e,t,n){if(n)return Array.from(e.querySelectorAll(t));const r=e.querySelector(t);return r?[r]:[]}let ow=(()=>{class e{validateStyleProperty(n){return function RQ(e){qs||(qs=function FQ(){return typeof document<"u"?document.body:null}()||{},V8=!!qs.style&&"WebkitAppearance"in qs.style);let t=!0;return qs.style&&!function NQ(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in qs.style,!t&&V8&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in qs.style)),t}(n)}matchesElement(n,r){return!1}containsElement(n,r){return U8(n,r)}getParentElement(n){return rw(n)}query(n,r,o){return H8(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,i,s,a=[],c){return new $u(o,i)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();class iw{static#e=this.NOOP=new ow}class sw{}const PQ=1e3,aw="ng-enter",E0="ng-leave",b0="ng-trigger",x0=".ng-trigger",$8="ng-animating",cw=".ng-animating";function Ai(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:lw(parseFloat(t[1]),t[2])}function lw(e,t){return"s"===t?e*PQ:e}function C0(e,t,n){return e.hasOwnProperty("duration")?e:function BQ(e,t,n){let o,i=0,s="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(k8()),{duration:0,delay:0,easing:""};o=lw(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(i=lw(parseFloat(c),a[4]));const l=a[5];l&&(s=l)}else o=e;if(!n){let a=!1,c=t.length;o<0&&(t.push(function Zq(){return new he(3100,!1)}()),a=!0),i<0&&(t.push(function Yq(){return new he(3101,!1)}()),a=!0),a&&t.splice(c,0,k8())}return{duration:o,delay:i,easing:s}}(e,t,n)}function Ko(e,t,n){t.forEach((r,o)=>{const i=dw(o);n&&!n.has(o)&&n.set(o,e.style[i]),e.style[i]=r})}function Qs(e,t){t.forEach((n,r)=>{const o=dw(r);e.style[o]=""})}function zu(e){return Array.isArray(e)?1==e.length?e[0]:function lq(e,t=null){return{type:ot.Sequence,steps:e,options:t}}(e):e}const uw=new RegExp("{{\\s*(.+?)\\s*}}","g");function G8(e){let t=[];if("string"==typeof e){let n;for(;n=uw.exec(e);)t.push(n[1]);uw.lastIndex=0}return t}function Gu(e,t,n){const r=`${e}`,o=r.replace(uw,(i,s)=>{let a=t[s];return null==a&&(n.push(function Jq(e){return new he(3003,!1)}()),a=""),a.toString()});return o==r?e:o}const UQ=/-+([a-z0-9])/g;function dw(e){return e.replace(UQ,(...t)=>t[1].toUpperCase())}function Lr(e,t,n){switch(t.type){case ot.Trigger:return e.visitTrigger(t,n);case ot.State:return e.visitState(t,n);case ot.Transition:return e.visitTransition(t,n);case ot.Sequence:return e.visitSequence(t,n);case ot.Group:return e.visitGroup(t,n);case ot.Animate:return e.visitAnimate(t,n);case ot.Keyframes:return e.visitKeyframes(t,n);case ot.Style:return e.visitStyle(t,n);case ot.Reference:return e.visitReference(t,n);case ot.AnimateChild:return e.visitAnimateChild(t,n);case ot.AnimateRef:return e.visitAnimateRef(t,n);case ot.Query:return e.visitQuery(t,n);case ot.Stagger:return e.visitStagger(t,n);default:throw function eQ(e){return new he(3004,!1)}()}}function fw(e,t){return window.getComputedStyle(e)[t]}const $Q=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class W8 extends sw{normalizePropertyName(t,n){return dw(t)}normalizeStyleValue(t,n,r,o){let i="";const s=r.toString().trim();if($Q.has(n)&&0!==r&&"0"!==r)if("number"==typeof r)i="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function tQ(e,t){return new he(3005,!1)}())}return s+i}}const D0="*";const A0=new Set(["true","1"]),S0=new Set(["false","0"]);function K8(e,t){const n=A0.has(e)||S0.has(e),r=A0.has(t)||S0.has(t);return(o,i)=>{let s=e==D0||e==o,a=t==D0||t==i;return!s&&n&&"boolean"==typeof o&&(s=o?A0.has(e):S0.has(e)),!a&&r&&"boolean"==typeof i&&(a=i?A0.has(t):S0.has(t)),s&&a}}const KQ=new RegExp("s*:selfs*,?","g");function hw(e,t,n,r){return new qQ(e).build(t,n,r)}class qQ{constructor(t){this._driver=t}build(t,n,r){const o=new YQ(n);return this._resetContextStyleTimingState(o),Lr(this,zu(t),o)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,n){let r=n.queryCount=0,o=n.depCount=0;const i=[],s=[];return"@"==t.name.charAt(0)&&n.errors.push(function nQ(){return new he(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==ot.State){const c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,i.push(this.visitState(c,n))}),c.name=l}else if(a.type==ot.Transition){const c=this.visitTransition(a,n);r+=c.queryCount,o+=c.depCount,s.push(c)}else n.errors.push(function rQ(){return new he(3007,!1)}())}),{type:ot.Trigger,name:t.name,states:i,transitions:s,queryCount:r,depCount:o,options:null}}visitState(t,n){const r=this.visitStyle(t.styles,n),o=t.options&&t.options.params||null;if(r.containsDynamicStyles){const i=new Set,s=o||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{G8(c).forEach(l=>{s.hasOwnProperty(l)||i.add(l)})})}),i.size&&n.errors.push(function oQ(e,t){return new he(3008,!1)}(0,i.values()))}return{type:ot.State,name:t.name,style:r,options:o?{params:o}:null}}visitTransition(t,n){n.queryCount=0,n.depCount=0;const r=Lr(this,zu(t.animation),n),o=function zQ(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(r=>function GQ(e,t,n){if(":"==e[0]){const c=function WQ(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r) *"}}(e,n);if("function"==typeof c)return void t.push(c);e=c}const r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(function hQ(e){return new he(3015,!1)}()),t;const o=r[1],i=r[2],s=r[3];t.push(K8(o,s)),"<"==i[0]&&(o!=D0||s!=D0)&&t.push(K8(s,o))}(r,n,t)):n.push(e),n}(t.expr,n.errors);return{type:ot.Transition,matchers:o,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:Zs(t.options)}}visitSequence(t,n){return{type:ot.Sequence,steps:t.steps.map(r=>Lr(this,r,n)),options:Zs(t.options)}}visitGroup(t,n){const r=n.currentTime;let o=0;const i=t.steps.map(s=>{n.currentTime=r;const a=Lr(this,s,n);return o=Math.max(o,n.currentTime),a});return n.currentTime=o,{type:ot.Group,steps:i,options:Zs(t.options)}}visitAnimate(t,n){const r=function JQ(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return pw(C0(e,t).duration,0,"");const n=e;if(n.split(/\s+/).some(i=>"{"==i.charAt(0)&&"{"==i.charAt(1))){const i=pw(0,0,"");return i.dynamic=!0,i.strValue=n,i}const o=C0(n,t);return pw(o.duration,o.delay,o.easing)}(t.timings,n.errors);n.currentAnimateTimings=r;let o,i=t.styles?t.styles:ju({});if(i.type==ot.Keyframes)o=this.visitKeyframes(i,n);else{let s=t.styles,a=!1;if(!s){a=!0;const l={};r.easing&&(l.easing=r.easing),s=ju(l)}n.currentTime+=r.duration+r.delay;const c=this.visitStyle(s,n);c.isEmptyStep=a,o=c}return n.currentAnimateTimings=null,{type:ot.Animate,timings:r,style:o,options:null}}visitStyle(t,n){const r=this._makeStyleAst(t,n);return this._validateStyleAst(r,n),r}_makeStyleAst(t,n){const r=[],o=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of o)"string"==typeof a?a===Di?r.push(a):n.errors.push(new he(3002,!1)):r.push(new Map(Object.entries(a)));let i=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!i))for(let c of a.values())if(c.toString().indexOf("{{")>=0){i=!0;break}}),{type:ot.Style,styles:r,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,n){const r=n.currentAnimateTimings;let o=n.currentTime,i=n.currentTime;r&&i>0&&(i-=r.duration+r.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,c)=>{const l=n.collectedStyles.get(n.currentQuerySelector),u=l.get(c);let d=!0;u&&(i!=o&&i>=u.startTime&&o<=u.endTime&&(n.errors.push(function sQ(e,t,n,r,o){return new he(3010,!1)}()),d=!1),i=u.startTime),d&&l.set(c,{startTime:i,endTime:o}),n.options&&function VQ(e,t,n){const r=t.params||{},o=G8(e);o.length&&o.forEach(i=>{r.hasOwnProperty(i)||n.push(function Xq(e){return new he(3001,!1)}())})}(a,n.options,n.errors)})})}visitKeyframes(t,n){const r={type:ot.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function aQ(){return new he(3011,!1)}()),r;let i=0;const s=[];let a=!1,c=!1,l=0;const u=t.steps.map(q=>{const K=this._makeStyleAst(q,n);let se=null!=K.offset?K.offset:function XQ(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(n=>{if(n instanceof Map&&n.has("offset")){const r=n;t=parseFloat(r.get("offset")),r.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const n=e;t=parseFloat(n.get("offset")),n.delete("offset")}return t}(K.styles),le=0;return null!=se&&(i++,le=K.offset=se),c=c||le<0||le>1,a=a||le0&&i{const se=g>0?K==v?1:g*K:s[K],le=se*U;n.currentTime=E+A.delay+le,A.duration=le,this._validateStyleAst(q,n),q.offset=se,r.styles.push(q)}),r}visitReference(t,n){return{type:ot.Reference,animation:Lr(this,zu(t.animation),n),options:Zs(t.options)}}visitAnimateChild(t,n){return n.depCount++,{type:ot.AnimateChild,options:Zs(t.options)}}visitAnimateRef(t,n){return{type:ot.AnimateRef,animation:this.visitReference(t.animation,n),options:Zs(t.options)}}visitQuery(t,n){const r=n.currentQuerySelector,o=t.options||{};n.queryCount++,n.currentQuery=t;const[i,s]=function QQ(e){const t=!!e.split(/\s*,\s*/).find(n=>":self"==n);return t&&(e=e.replace(KQ,"")),e=e.replace(/@\*/g,x0).replace(/@\w+/g,n=>x0+"-"+n.slice(1)).replace(/:animating/g,cw),[e,t]}(t.selector);n.currentQuerySelector=r.length?r+" "+i:i,Br(n.collectedStyles,n.currentQuerySelector,new Map);const a=Lr(this,zu(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:ot.Query,selector:i,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Zs(t.options)}}visitStagger(t,n){n.currentQuery||n.errors.push(function dQ(){return new he(3013,!1)}());const r="full"===t.timings?{duration:0,delay:0,easing:"full"}:C0(t.timings,n.errors,!0);return{type:ot.Stagger,animation:Lr(this,zu(t.animation),n),timings:r,options:null}}}class YQ{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Zs(e){return e?(e={...e}).params&&(e.params=function ZQ(e){return e?{...e}:null}(e.params)):e={},e}function pw(e,t,n){return{duration:e,delay:t,easing:n}}function gw(e,t,n,r,o,i,s=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:s,subTimeline:a}}class I0{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,n){let r=this._map.get(t);r||this._map.set(t,r=[]),r.push(...n)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const nZ=new RegExp(":enter","g"),oZ=new RegExp(":leave","g");function mw(e,t,n,r,o,i=new Map,s=new Map,a,c,l=[]){return(new iZ).buildKeyframes(e,t,n,r,o,i,s,a,c,l)}class iZ{buildKeyframes(t,n,r,o,i,s,a,c,l,u=[]){l=l||new I0;const d=new yw(t,n,l,o,i,u,[]);d.options=c;const g=c.delay?Ai(c.delay):0;d.currentTimeline.delayNextStep(g),d.currentTimeline.setStyles([s],null,d.errors,c),Lr(this,r,d);const v=d.timelines.filter(E=>E.containsAnimation());if(v.length&&a.size){let E;for(let A=v.length-1;A>=0;A--){const U=v[A];if(U.element===n){E=U;break}}E&&!E.allowOnlyTimelineStyles()&&E.setStyles([a],null,d.errors,c)}return v.length?v.map(E=>E.buildKeyframes()):[gw(n,[],[],[],0,g,"",!1)]}visitTrigger(t,n){}visitState(t,n){}visitTransition(t,n){}visitAnimateChild(t,n){const r=n.subInstructions.get(n.element);if(r){const o=n.createSubContext(t.options),i=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,o,o.options);i!=s&&n.transformIntoNewTimeline(s)}n.previousNode=t}visitAnimateRef(t,n){const r=n.createSubContext(t.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],n,r),this.visitReference(t.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=t}_applyAnimationRefDelays(t,n,r){for(const o of t){const i=o?.delay;if(i){const s="number"==typeof i?i:Ai(Gu(i,o?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(t,n,r){let i=n.currentTimeline.currentTime;const s=null!=r.duration?Ai(r.duration):null,a=null!=r.delay?Ai(r.delay):null;return 0!==s&&t.forEach(c=>{const l=n.appendInstructionToTimeline(c,s,a);i=Math.max(i,l.duration+l.delay)}),i}visitReference(t,n){n.updateOptions(t.options,!0),Lr(this,t.animation,n),n.previousNode=t}visitSequence(t,n){const r=n.subContextCount;let o=n;const i=t.options;if(i&&(i.params||i.delay)&&(o=n.createSubContext(i),o.transformIntoNewTimeline(),null!=i.delay)){o.previousNode.type==ot.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=T0);const s=Ai(i.delay);o.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Lr(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),n.previousNode=t}visitGroup(t,n){const r=[];let o=n.currentTimeline.currentTime;const i=t.options&&t.options.delay?Ai(t.options.delay):0;t.steps.forEach(s=>{const a=n.createSubContext(t.options);i&&a.delayNextStep(i),Lr(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(o),n.previousNode=t}_visitTiming(t,n){if(t.dynamic){const r=t.strValue;return C0(n.params?Gu(r,n.params,n.errors):r,n.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,n){const r=n.currentAnimateTimings=this._visitTiming(t.timings,n),o=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),o.snapshotCurrentStyles());const i=t.style;i.type==ot.Keyframes?this.visitKeyframes(i,n):(n.incrementTime(r.duration),this.visitStyle(i,n),o.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}visitStyle(t,n){const r=n.currentTimeline,o=n.currentAnimateTimings;!o&&r.hasCurrentStyleProperties()&&r.forwardFrame();const i=o&&o.easing||t.easing;t.isEmptyStep?r.applyEmptyStep(i):r.setStyles(t.styles,i,n.errors,n.options),n.previousNode=t}visitKeyframes(t,n){const r=n.currentAnimateTimings,o=n.currentTimeline.duration,i=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,t.styles.forEach(c=>{a.forwardTime((c.offset||0)*i),a.setStyles(c.styles,c.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(o+i),n.previousNode=t}visitQuery(t,n){const r=n.currentTimeline.currentTime,o=t.options||{},i=o.delay?Ai(o.delay):0;i&&(n.previousNode.type===ot.Style||0==r&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=T0);let s=r;const a=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,n.errors);n.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{n.currentQueryIndex=u;const d=n.createSubContext(t.options,l);i&&d.delayNextStep(i),l===n.element&&(c=d.currentTimeline),Lr(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}visitStagger(t,n){const r=n.parentContext,o=n.currentTimeline,i=t.timings,s=Math.abs(i.duration),a=s*(n.currentQueryTotal-1);let c=s*n.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime}const u=n.currentTimeline;c&&u.delayNextStep(c);const d=u.currentTime;Lr(this,t.animation,n),n.previousNode=t,r.currentStaggerTime=o.currentTime-d+(o.startTime-r.currentTimeline.startTime)}}const T0={};class yw{constructor(t,n,r,o,i,s,a,c){this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=o,this._leaveClassName=i,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=T0,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new M0(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,n){if(!t)return;const r=t;let o=this.options;null!=r.duration&&(o.duration=Ai(r.duration)),null!=r.delay&&(o.delay=Ai(r.delay));const i=r.params;if(i){let s=o.params;s||(s=this.options.params={}),Object.keys(i).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=Gu(i[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const n=this.options.params;if(n){const r=t.params={};Object.keys(n).forEach(o=>{r[o]=n[o]})}}return t}createSubContext(t=null,n,r){const o=n||this.element,i=new yw(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=T0,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,n,r){const o={duration:n??t.duration,delay:this.currentTimeline.currentTime+(r??0)+t.delay,easing:""},i=new sZ(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,o,t.stretchStartingKeyframe);return this.timelines.push(i),o}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,n,r,o,i,s){let a=[];if(o&&a.push(this.element),t.length>0){t=(t=t.replace(nZ,"."+this._enterClassName)).replace(oZ,"."+this._leaveClassName);let l=this._driver.query(this.element,t,1!=r);0!==r&&(l=r<0?l.slice(l.length+r,l.length):l.slice(0,r)),a.push(...l)}return!i&&0==a.length&&s.push(function fQ(e){return new he(3014,!1)}()),a}}class M0{constructor(t,n,r,o){this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const n=1===this._keyframes.size&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,n){return this.applyStylesToKeyframe(),new M0(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,n){this._localTimelineStyles.set(t,n),this._globalTimelineStyles.set(t,n),this._styleSummary.set(t,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||Di),this._currentKeyframe.set(n,Di);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,n,r,o){n&&this._previousKeyframe.set("easing",n);const i=o&&o.params||{},s=function aZ(e,t){const n=new Map;let r;return e.forEach(o=>{if("*"===o){r??=t.keys();for(let i of r)n.set(i,Di)}else for(let[i,s]of o)n.set(i,s)}),n}(t,this._globalTimelineStyles);for(let[a,c]of s){const l=Gu(c,i,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Di),this._updateStyle(a,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,n)=>{this._currentKeyframe.set(n,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,t)}))}snapshotCurrentStyles(){for(let[t,n]of this._localTimelineStyles)this._pendingStyles.set(t,n),this._updateStyle(t,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let n in this._currentKeyframe)t.push(n);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((n,r)=>{const o=this._styleSummary.get(r);(!o||n.time>o.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,c)=>{const l=new Map([...this._backFill,...a]);l.forEach((u,d)=>{"!"===u?t.add(d):u===Di&&n.add(d)}),r||l.set("offset",c/this.duration),o.push(l)});const i=[...t.values()],s=[...n.values()];if(r){const a=o[0],c=new Map(a);a.set("offset",0),c.set("offset",1),o=[a,c]}return gw(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)}}class sZ extends M0{constructor(t,n,r,o,i,s,a=!1){super(t,n,s.delay),this.keyframes=r,this.preStyleProps=o,this.postStyleProps=i,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:n,duration:r,easing:o}=this.timings;if(this._stretchStartingKeyframe&&n){const i=[],s=r+n,a=n/s,c=new Map(t[0]);c.set("offset",0),i.push(c);const l=new Map(t[0]);l.set("offset",Z8(a)),i.push(l);const u=t.length-1;for(let d=1;d<=u;d++){let g=new Map(t[d]);const v=g.get("offset");g.set("offset",Z8((n+v*r)/s)),i.push(g)}r=s,n=0,o="",t=i}return gw(this.element,t,this.preStyleProps,this.postStyleProps,r,n,o,!0)}}function Z8(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}function Y8(e,t,n,r,o,i,s,a,c,l,u,d,g){return{type:0,element:e,triggerName:t,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:g}}const vw={};class X8{constructor(t,n,r){this._triggerName=t,this.ast=n,this._stateStyles=r}match(t,n,r,o){return function cZ(e,t,n,r,o){return e.some(i=>i(t,n,r,o))}(this.ast.matchers,t,n,r,o)}buildStyles(t,n,r){let o=this._stateStyles.get("*");return void 0!==t&&(o=this._stateStyles.get(t?.toString())||o),o?o.buildStyles(n,r):new Map}build(t,n,r,o,i,s,a,c,l,u){const d=[],g=this.ast.options&&this.ast.options.params||vw,E=this.buildStyles(r,a&&a.params||vw,d),A=c&&c.params||vw,U=this.buildStyles(o,A,d),q=new Set,K=new Map,se=new Map,le="void"===o,ge={params:J8(A,g),delay:this.ast.options?.delay},_e=u?[]:mw(t,n,this.ast.animation,i,s,E,U,ge,l,d);let Ne=0;return _e.forEach(Oe=>{Ne=Math.max(Oe.duration+Oe.delay,Ne)}),d.length?Y8(n,this._triggerName,r,o,le,E,U,[],[],K,se,Ne,d):(_e.forEach(Oe=>{const Ke=Oe.element,$e=Br(K,Ke,new Set);Oe.preStyleProps.forEach(Ze=>$e.add(Ze));const ze=Br(se,Ke,new Set);Oe.postStyleProps.forEach(Ze=>ze.add(Ze)),Ke!==n&&q.add(Ke)}),Y8(n,this._triggerName,r,o,le,E,U,_e,[...q.values()],K,se,Ne))}}function J8(e,t){const n={...t};return Object.entries(e).forEach(([r,o])=>{null!=o&&(n[r]=o)}),n}class lZ{constructor(t,n,r){this.styles=t,this.defaultParams=n,this.normalizer=r}buildStyles(t,n){const r=new Map,o=J8(t,this.defaultParams);return this.styles.styles.forEach(i=>{"string"!=typeof i&&i.forEach((s,a)=>{s&&(s=Gu(s,o,n));const c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),r.set(a,s)})}),r}}class dZ{constructor(t,n,r){this.name=t,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states=new Map,n.states.forEach(o=>{this.states.set(o.name,new lZ(o.style,o.options&&o.options.params||{},r))}),e3(this.states,"true","1"),e3(this.states,"false","0"),n.transitions.forEach(o=>{this.transitionFactories.push(new X8(t,o,this.states))}),this.fallbackTransition=function fZ(e,t,n){return new X8(e,{type:ot.Transition,animation:{type:ot.Sequence,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,n,r,o){return this.transitionFactories.find(s=>s.match(t,n,r,o))||null}matchStyles(t,n,r){return this.fallbackTransition.buildStyles(t,n,r)}}function e3(e,t,n){e.has(t)?e.has(n)||e.set(n,e.get(t)):e.has(n)&&e.set(t,e.get(n))}const hZ=new I0;class pZ{constructor(t,n,r){this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,n){const r=[],i=hw(this._driver,n,r,[]);if(r.length)throw function wQ(e){return new he(3503,!1)}();this._animations.set(t,i)}_buildPlayer(t,n,r){const o=t.element,i=B8(this._normalizer,t.keyframes,n,r);return this._driver.animate(o,i,t.duration,t.delay,t.easing,[],!0)}create(t,n,r={}){const o=[],i=this._animations.get(t);let s;const a=new Map;if(i?(s=mw(this._driver,n,i,aw,E0,new Map,new Map,r,hZ,o),s.forEach(u=>{const d=Br(a,u.element,new Map);u.postStyleProps.forEach(g=>d.set(g,null))})):(o.push(function _Q(){return new he(3300,!1)}()),s=[]),o.length)throw function EQ(e){return new he(3504,!1)}();a.forEach((u,d)=>{u.forEach((g,v)=>{u.set(v,this._driver.computeStyle(d,v,Di))})});const l=cs(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(t,l),l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}destroy(t){const n=this._getPlayer(t);n.destroy(),this._playersById.delete(t);const r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(t){const n=this._playersById.get(t);if(!n)throw function bQ(e){return new he(3301,!1)}();return n}listen(t,n,r,o){const i=nw(n,"","","");return ew(this._getPlayer(t),r,i,o),()=>{}}command(t,n,r,o){if("register"==r)return void this.register(t,o[0]);if("create"==r)return void this.create(t,n,o[0]||{});const i=this._getPlayer(t);switch(r){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(t)}}}const t3="ng-animate-queued",ww="ng-animate-disabled",wZ=[],n3={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_Z={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},yo="__ng_removed";class _w{get params(){return this.options.params}constructor(t,n=""){this.namespaceId=n;const r=t&&t.hasOwnProperty("value");if(this.value=function CZ(e){return e??null}(r?t.value:t),r){const{value:i,...s}=t;this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){const n=t.params;if(n){const r=this.options.params;Object.keys(n).forEach(o=>{null==r[o]&&(r[o]=n[o])})}}}const Wu="void",Ew=new _w(Wu);class EZ{constructor(t,n,r){this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Jr(n,this._hostClassName)}listen(t,n,r,o){if(!this._triggers.has(n))throw function xQ(e,t){return new he(3302,!1)}();if(null==r||0==r.length)throw function CQ(e){return new he(3303,!1)}();if(!function DZ(e){return"start"==e||"done"==e}(r))throw function DQ(e,t){return new he(3400,!1)}();const i=Br(this._elementListeners,t,[]),s={name:n,phase:r,callback:o};i.push(s);const a=Br(this._engine.statesByElement,t,new Map);return a.has(n)||(Jr(t,b0),Jr(t,b0+"-"+n),a.set(n,Ew)),()=>{this._engine.afterFlush(()=>{const c=i.indexOf(s);c>=0&&i.splice(c,1),this._triggers.has(n)||a.delete(n)})}}register(t,n){return!this._triggers.has(t)&&(this._triggers.set(t,n),!0)}_getTrigger(t){const n=this._triggers.get(t);if(!n)throw function AQ(e){return new he(3401,!1)}();return n}trigger(t,n,r,o=!0){const i=this._getTrigger(n),s=new bw(this.id,n,t);let a=this._engine.statesByElement.get(t);a||(Jr(t,b0),Jr(t,b0+"-"+n),this._engine.statesByElement.set(t,a=new Map));let c=a.get(n);const l=new _w(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(n,l),c||(c=Ew),l.value!==Wu&&c.value===l.value){if(!function IZ(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let o=0;o{Qs(t,U),Ko(t,q)})}return}const g=Br(this._engine.playersByElement,t,[]);g.forEach(A=>{A.namespaceId==this.id&&A.triggerName==n&&A.queued&&A.destroy()});let v=i.matchTransition(c.value,l.value,t,l.params),E=!1;if(!v){if(!o)return;v=i.fallbackTransition,E=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:v,fromState:c,toState:l,player:s,isFallbackTransition:E}),E||(Jr(t,t3),s.onStart(()=>{Rc(t,t3)})),s.onDone(()=>{let A=this.players.indexOf(s);A>=0&&this.players.splice(A,1);const U=this._engine.playersByElement.get(t);if(U){let q=U.indexOf(s);q>=0&&U.splice(q,1)}}),this.players.push(s),g.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(n=>n.delete(t)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(o=>o.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const n=this._engine.playersByElement.get(t);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,n){const r=this._engine.driver.query(t,x0,!0);r.forEach(o=>{if(o[yo])return;const i=this._engine.fetchNamespacesByElement(o);i.size?i.forEach(s=>s.triggerLeaveAnimation(o,n,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(t,n,r,o){const i=this._engine.statesByElement.get(t),s=new Map;if(i){const a=[];if(i.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){const u=this.trigger(t,l,Wu,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,n,s),r&&cs(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const n=this._elementListeners.get(t),r=this._engine.statesByElement.get(t);if(n&&r){const o=new Set;n.forEach(i=>{const s=i.name;if(o.has(s))return;o.add(s);const c=this._triggers.get(s).fallbackTransition,l=r.get(s)||Ew,u=new _w(Wu),d=new bw(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:c,fromState:l,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,n){const r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),this.triggerLeaveAnimation(t,n,!0))return;let o=!1;if(r.totalAnimations){const i=r.players.length?r.playersByQueriedElement.get(t):[];if(i&&i.length)o=!0;else{let s=t;for(;s=s.parentNode;)if(r.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(t),o)r.markElementAsRemoved(this.id,t,!1,n);else{const i=t[yo];(!i||i===n3)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,n))}}insertNode(t,n){Jr(t,this._hostClassName)}drainQueuedTransitions(t){const n=[];return this._queue.forEach(r=>{const o=r.player;if(o.destroyed)return;const i=r.element,s=this._elementListeners.get(i);s&&s.forEach(a=>{if(a.name==r.triggerName){const c=nw(i,r.triggerName,r.fromState.value,r.toState.value);c._data=t,ew(r.player,a.phase,c,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):n.push(r)}),this._queue=[],n.sort((r,o)=>{const i=r.transition.ast.depCount,s=o.transition.ast.depCount;return 0==i||0==s?i-s:this._engine.driver.containsElement(r.element,o.element)?1:-1})}destroy(t){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}}class bZ{_onRemovalComplete(t,n){this.onRemovalComplete(t,n)}constructor(t,n,r,o){this.bodyNode=t,this.driver=n,this._normalizer=r,this.scheduler=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,s)=>{}}get queuedPlayers(){const t=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&t.push(r)})}),t}createNamespace(t,n){const r=new EZ(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[t]=r}_balanceNamespaceList(t,n){const r=this._namespaceList,o=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){const c=o.get(a);if(c){const l=r.indexOf(c);r.splice(l+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(t)}else r.push(t);return o.set(n,t),t}register(t,n){let r=this._namespaceLookup[t];return r||(r=this.createNamespace(t,n)),r}registerTrigger(t,n,r){let o=this._namespaceLookup[t];o&&o.register(n,r)&&this.totalAnimations++}destroy(t,n){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const r=this._fetchNamespace(t);this.namespacesByHostElement.delete(r.hostElement);const o=this._namespaceList.indexOf(r);o>=0&&this._namespaceList.splice(o,1),r.destroy(n),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const n=new Set,r=this.statesByElement.get(t);if(r)for(let o of r.values())if(o.namespaceId){const i=this._fetchNamespace(o.namespaceId);i&&n.add(i)}return n}trigger(t,n,r,o){if(N0(n)){const i=this._fetchNamespace(t);if(i)return i.trigger(n,r,o),!0}return!1}insertNode(t,n,r,o){if(!N0(n))return;const i=n[yo];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(n,r)}o&&this.collectEnterElement(n)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Jr(t,ww)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Rc(t,ww))}removeNode(t,n,r){if(N0(n)){this.scheduler?.notify();const o=t?this._fetchNamespace(t):null;o?o.removeNode(n,r):this.markElementAsRemoved(t,n,!1,r);const i=this.namespacesByHostElement.get(n);i&&i.id!==t&&i.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(t,n,r,o,i){this.collectedLeaveElements.push(n),n[yo]={namespaceId:t,setForRemoval:o,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:i}}listen(t,n,r,o,i){return N0(n)?this._fetchNamespace(t).listen(n,r,o,i):()=>{}}_buildInstruction(t,n,r,o,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,r,o,t.fromState.options,t.toState.options,n,i)}destroyInnerAnimations(t){let n=this.driver.query(t,x0,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,cw,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(t){const n=this.playersByElement.get(t);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(t){const n=this.playersByQueriedElement.get(t);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return cs(this.players).onDone(()=>t());t()})}processLeaveNode(t){const n=t[yo];if(n&&n.setForRemoval){if(t[yo]=n3,n.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}t.classList?.contains(ww)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,o)=>this._balanceNamespaceList(r,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],n.length?cs(n).onDone(()=>{r.forEach(o=>o())}):r.forEach(o=>o())}}reportError(t){throw function SQ(e){return new he(3402,!1)}()}_flushAnimations(t,n){const r=new I0,o=[],i=new Map,s=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(ue=>{u.add(ue);const ve=this.driver.query(ue,".ng-animate-queued",!0);for(let Ie=0;Ie{const Ie=aw+A++;E.set(ve,Ie),ue.forEach(we=>Jr(we,Ie))});const U=[],q=new Set,K=new Set;for(let ue=0;ueq.add(we)):K.add(ve))}const se=new Map,le=i3(g,Array.from(q));le.forEach((ue,ve)=>{const Ie=E0+A++;se.set(ve,Ie),ue.forEach(we=>Jr(we,Ie))}),t.push(()=>{v.forEach((ue,ve)=>{const Ie=E.get(ve);ue.forEach(we=>Rc(we,Ie))}),le.forEach((ue,ve)=>{const Ie=se.get(ve);ue.forEach(we=>Rc(we,Ie))}),U.forEach(ue=>{this.processLeaveNode(ue)})});const ge=[],_e=[];for(let ue=this._namespaceList.length-1;ue>=0;ue--)this._namespaceList[ue].drainQueuedTransitions(n).forEach(Ie=>{const we=Ie.player,He=Ie.element;if(ge.push(we),this.collectedEnterElements.length){const Tt=He[yo];if(Tt&&Tt.setForMove){if(Tt.previousTriggersValues&&Tt.previousTriggersValues.has(Ie.triggerName)){const kn=Tt.previousTriggersValues.get(Ie.triggerName),Gt=this.statesByElement.get(Ie.element);if(Gt&&Gt.has(Ie.triggerName)){const vo=Gt.get(Ie.triggerName);vo.value=kn,Gt.set(Ie.triggerName,vo)}}return void we.destroy()}}const Ye=!d||!this.driver.containsElement(d,He),Xe=se.get(He),zt=E.get(He),vt=this._buildInstruction(Ie,r,zt,Xe,Ye);if(vt.errors&&vt.errors.length)return void _e.push(vt);if(Ye)return we.onStart(()=>Qs(He,vt.fromStyles)),we.onDestroy(()=>Ko(He,vt.toStyles)),void o.push(we);if(Ie.isFallbackTransition)return we.onStart(()=>Qs(He,vt.fromStyles)),we.onDestroy(()=>Ko(He,vt.toStyles)),void o.push(we);const nr=[];vt.timelines.forEach(Tt=>{Tt.stretchStartingKeyframe=!0,this.disabledNodes.has(Tt.element)||nr.push(Tt)}),vt.timelines=nr,r.append(He,vt.timelines),s.push({instruction:vt,player:we,element:He}),vt.queriedElements.forEach(Tt=>Br(a,Tt,[]).push(we)),vt.preStyleProps.forEach((Tt,kn)=>{if(Tt.size){let Gt=c.get(kn);Gt||c.set(kn,Gt=new Set),Tt.forEach((vo,Fc)=>Gt.add(Fc))}}),vt.postStyleProps.forEach((Tt,kn)=>{let Gt=l.get(kn);Gt||l.set(kn,Gt=new Set),Tt.forEach((vo,Fc)=>Gt.add(Fc))})});if(_e.length){const ue=[];_e.forEach(ve=>{ue.push(function IQ(e,t){return new he(3505,!1)}())}),ge.forEach(ve=>ve.destroy()),this.reportError(ue)}const Ne=new Map,Oe=new Map;s.forEach(ue=>{const ve=ue.element;r.has(ve)&&(Oe.set(ve,ve),this._beforeAnimationBuild(ue.player.namespaceId,ue.instruction,Ne))}),o.forEach(ue=>{const ve=ue.element;this._getPreviousPlayers(ve,!1,ue.namespaceId,ue.triggerName,null).forEach(we=>{Br(Ne,ve,[]).push(we),we.destroy()})});const Ke=U.filter(ue=>a3(ue,c,l)),$e=new Map;o3($e,this.driver,K,l,Di).forEach(ue=>{a3(ue,c,l)&&Ke.push(ue)});const Ze=new Map;v.forEach((ue,ve)=>{o3(Ze,this.driver,new Set(ue),c,"!")}),Ke.forEach(ue=>{const ve=$e.get(ue),Ie=Ze.get(ue);$e.set(ue,new Map([...ve?.entries()??[],...Ie?.entries()??[]]))});const Je=[],ft=[],De={};s.forEach(ue=>{const{element:ve,player:Ie,instruction:we}=ue;if(r.has(ve)){if(u.has(ve))return Ie.onDestroy(()=>Ko(ve,we.toStyles)),Ie.disabled=!0,Ie.overrideTotalTime(we.totalTime),void o.push(Ie);let He=De;if(Oe.size>1){let Xe=ve;const zt=[];for(;Xe=Xe.parentNode;){const vt=Oe.get(Xe);if(vt){He=vt;break}zt.push(Xe)}zt.forEach(vt=>Oe.set(vt,He))}const Ye=this._buildAnimation(Ie.namespaceId,we,Ne,i,Ze,$e);if(Ie.setRealPlayer(Ye),He===De)Je.push(Ie);else{const Xe=this.playersByElement.get(He);Xe&&Xe.length&&(Ie.parentPlayer=cs(Xe)),o.push(Ie)}}else Qs(ve,we.fromStyles),Ie.onDestroy(()=>Ko(ve,we.toStyles)),ft.push(Ie),u.has(ve)&&o.push(Ie)}),ft.forEach(ue=>{const ve=i.get(ue.element);if(ve&&ve.length){const Ie=cs(ve);ue.setRealPlayer(Ie)}}),o.forEach(ue=>{ue.parentPlayer?ue.syncPlayerEvents(ue.parentPlayer):ue.destroy()});for(let ue=0;ue!Ye.destroyed);He.length?AZ(this,ve,He):this.processLeaveNode(ve)}return U.length=0,Je.forEach(ue=>{this.players.push(ue),ue.onDone(()=>{ue.destroy();const ve=this.players.indexOf(ue);this.players.splice(ve,1)}),ue.play()}),Je}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,n,r,o,i){let s=[];if(n){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const c=!i||i==Wu;a.forEach(l=>{l.queued||!c&&l.triggerName!=o||s.push(l)})}}return(r||o)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(t,n,r){const i=n.element,s=n.isRemovalTransition?void 0:t,a=n.isRemovalTransition?void 0:n.triggerName;for(const c of n.timelines){const l=c.element,u=l!==i,d=Br(r,l,[]);this._getPreviousPlayers(l,u,s,a,n.toState).forEach(v=>{const E=v.getRealPlayer();E.beforeDestroy&&E.beforeDestroy(),v.destroy(),d.push(v)})}Qs(i,n.fromStyles)}_buildAnimation(t,n,r,o,i,s){const a=n.triggerName,c=n.element,l=[],u=new Set,d=new Set,g=n.timelines.map(E=>{const A=E.element;u.add(A);const U=A[yo];if(U&&U.removedBeforeQueried)return new $u(E.duration,E.delay);const q=A!==c,K=function SZ(e){const t=[];return s3(e,t),t}((r.get(A)||wZ).map(Ne=>Ne.getRealPlayer())).filter(Ne=>!!Ne.element&&Ne.element===A),se=i.get(A),le=s.get(A),ge=B8(this._normalizer,E.keyframes,se,le),_e=this._buildPlayer(E,ge,K);if(E.subTimeline&&o&&d.add(A),q){const Ne=new bw(t,a,A);Ne.setRealPlayer(_e),l.push(Ne)}return _e});l.forEach(E=>{Br(this.playersByQueriedElement,E.element,[]).push(E),E.onDone(()=>function xZ(e,t,n){let r=e.get(t);if(r){if(r.length){const o=r.indexOf(n);r.splice(o,1)}0==r.length&&e.delete(t)}return r}(this.playersByQueriedElement,E.element,E))}),u.forEach(E=>Jr(E,$8));const v=cs(g);return v.onDestroy(()=>{u.forEach(E=>Rc(E,$8)),Ko(c,n.toStyles)}),d.forEach(E=>{Br(o,E,[]).push(v)}),v}_buildPlayer(t,n,r){return n.length>0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,r):new $u(t.duration,t.delay)}}class bw{constructor(t,n,r){this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new $u,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((n,r)=>{n.forEach(o=>ew(t,r,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const n=this._player;n.triggerCallback&&t.onStart(()=>n.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,n){Br(this._queuedCallbacks,t,[]).push(n)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const n=this._player;n.triggerCallback&&n.triggerCallback(t)}}function N0(e){return e&&1===e.nodeType}function r3(e,t){const n=e.style.display;return e.style.display=t??"none",n}function o3(e,t,n,r,o){const i=[];n.forEach(c=>i.push(r3(c)));const s=[];r.forEach((c,l)=>{const u=new Map;c.forEach(d=>{const g=t.computeStyle(l,d,o);u.set(d,g),(!g||0==g.length)&&(l[yo]=_Z,s.push(l))}),e.set(l,u)});let a=0;return n.forEach(c=>r3(c,i[a++])),s}function i3(e,t){const n=new Map;if(e.forEach(a=>n.set(a,[])),0==t.length)return n;const o=new Set(t),i=new Map;function s(a){if(!a)return 1;let c=i.get(a);if(c)return c;const l=a.parentNode;return c=n.has(l)?l:o.has(l)?1:s(l),i.set(a,c),c}return t.forEach(a=>{const c=s(a);1!==c&&n.get(c).push(a)}),n}function Jr(e,t){e.classList?.add(t)}function Rc(e,t){e.classList?.remove(t)}function AZ(e,t,n){cs(n).onDone(()=>e.processLeaveNode(t))}function s3(e,t){for(let n=0;no.add(i)):t.set(e,r),n.delete(e),!0}class Ku{constructor(t,n,r,o){this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new bZ(t.body,n,r,o),this._timelineEngine=new pZ(t.body,n,r),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(t,n,r,o,i){const s=t+"-"+o;let a=this._triggerCache[s];if(!a){const c=[],u=hw(this._driver,i,c,[]);if(c.length)throw function yQ(e,t){return new he(3404,!1)}();a=function uZ(e,t,n){return new dZ(e,t,n)}(o,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,o,a)}register(t,n){this._transitionEngine.register(t,n)}destroy(t,n){this._transitionEngine.destroy(t,n)}onInsert(t,n,r,o){this._transitionEngine.insertNode(t,n,r,o)}onRemove(t,n,r){this._transitionEngine.removeNode(t,n,r)}disableAnimations(t,n){this._transitionEngine.markElementAsDisabled(t,n)}process(t,n,r,o){if("@"==r.charAt(0)){const[i,s]=L8(r);this._timelineEngine.command(i,n,s,o)}else this._transitionEngine.trigger(t,n,r,o)}listen(t,n,r,o,i){if("@"==r.charAt(0)){const[s,a]=L8(r);return this._timelineEngine.listen(s,n,a,i)}return this._transitionEngine.listen(t,n,r,o,i)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}}class qu{static#e=this.initialStylesByElement=new WeakMap;constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;let o=qu.initialStylesByElement.get(t);o||qu.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Ko(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ko(this._element,this._initialStyles),this._endStyles&&(Ko(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(qu.initialStylesByElement.delete(this._element),this._startStyles&&(Qs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Qs(this._element,this._endStyles),this._endStyles=null),Ko(this._element,this._initialStyles),this._state=3)}}function xw(e){let t=null;return e.forEach((n,r)=>{(function MZ(e){return"display"===e||"position"===e})(r)&&(t=t||new Map,t.set(r,n))}),t}class c3{constructor(t,n,r,o){this.element=t,this.keyframes=n,this.options=r,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;const n=()=>this._onFinish();this.domPlayer.addEventListener("finish",n),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",n)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const n=[];return t.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(t,n,r){return t.animate(this._convertKeyframesToObject(n),r)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,o)=>{"offset"!==o&&t.set(o,this._finished?r:fw(this.element,o))}),this.currentSnapshot=t}triggerCallback(t){const n="start"===t?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class l3{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,n){return!1}containsElement(t,n){return U8(t,n)}getParentElement(t){return rw(t)}query(t,n,r){return H8(t,n,r)}computeStyle(t,n,r){return fw(t,n)}animate(t,n,r,o,i,s=[]){const c={duration:r,delay:o,fill:0==o?"both":"forwards"};i&&(c.easing=i);const l=new Map,u=s.filter(v=>v instanceof c3);(function HQ(e,t){return 0===e||0===t})(r,o)&&u.forEach(v=>{v.currentSnapshot.forEach((E,A)=>l.set(A,E))});let d=function LQ(e){return e.length?e[0]instanceof Map?e:e.map(t=>new Map(Object.entries(t))):[]}(n).map(v=>new Map(v));d=function jQ(e,t,n){if(n.size&&t.length){let r=t[0],o=[];if(n.forEach((i,s)=>{r.has(s)||o.push(s),r.set(s,i)}),o.length)for(let i=1;is.set(a,fw(e,a)))}}return t}(t,d,l);const g=function TZ(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=xw(t[0]),t.length>1&&(r=xw(t[t.length-1]))):t instanceof Map&&(n=xw(t)),n||r?new qu(e,n,r):null}(t,d);return new c3(t,d,c,g)}}const u3="@.disabled";class d3{constructor(t,n,r,o){this.namespaceId=t,this.delegate=n,this.engine=r,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,n){return this.delegate.createElement(t,n)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,n){this.delegate.appendChild(t,n),this.engine.onInsert(this.namespaceId,n,t,!1)}insertBefore(t,n,r,o=!0){this.delegate.insertBefore(t,n,r),this.engine.onInsert(this.namespaceId,n,t,o)}removeChild(t,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(t,n){return this.delegate.selectRootElement(t,n)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,n,r,o){this.delegate.setAttribute(t,n,r,o)}removeAttribute(t,n,r){this.delegate.removeAttribute(t,n,r)}addClass(t,n){this.delegate.addClass(t,n)}removeClass(t,n){this.delegate.removeClass(t,n)}setStyle(t,n,r,o){this.delegate.setStyle(t,n,r,o)}removeStyle(t,n,r){this.delegate.removeStyle(t,n,r)}setProperty(t,n,r){"@"==n.charAt(0)&&n==u3?this.disableAnimations(t,!!r):this.delegate.setProperty(t,n,r)}setValue(t,n){this.delegate.setValue(t,n)}listen(t,n,r){return this.delegate.listen(t,n,r)}disableAnimations(t,n){this.engine.disableAnimations(t,n)}}class NZ extends d3{constructor(t,n,r,o,i){super(n,r,o,i),this.factory=t,this.namespaceId=n}setProperty(t,n,r){"@"==n.charAt(0)?"."==n.charAt(1)&&n==u3?this.disableAnimations(t,r=void 0===r||!!r):this.engine.process(this.namespaceId,t,n.slice(1),r):this.delegate.setProperty(t,n,r)}listen(t,n,r){if("@"==n.charAt(0)){const o=function RZ(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(t);let i=n.slice(1),s="";return"@"!=i.charAt(0)&&([i,s]=function FZ(e){const t=e.indexOf(".");return[e.substring(0,t),e.slice(t+1)]}(i)),this.engine.listen(this.namespaceId,o,i,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(t,n,r)}}class OZ{constructor(t,n,r){this.delegate=t,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(o,i)=>{const s=i?.parentNode(o);s&&i.removeChild(s,o)}}createRenderer(t,n){const o=this.delegate.createRenderer(t,n);if(!t||!n?.data?.animation){const l=this._rendererCache;let u=l.get(o);return u||(u=new d3("",o,this.engine,()=>l.delete(o)),l.set(o,u)),u}const i=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(i,s,t,l.name,l)};return n.data.animation.forEach(a),new NZ(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,n,r){if(t>=0&&tn(r));const o=this._animationCallbacksBuffer;0==o.length&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(i=>{const[s,a]=i;s(a)}),this._animationCallbacksBuffer=[]})}),o.push([n,r])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const f3=[{provide:sw,useFactory:function kZ(){return new W8}},{provide:Ku,useClass:(()=>{class e extends Ku{constructor(n,r,o){super(n,r,o,Pe(Bg,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(r){return new(r||e)(We(Yn),We(iw),We(sw))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})()},{provide:Lg,useFactory:function BZ(e,t,n){return new OZ(e,t,n)},deps:[by,Ku,Ct]}],Cw=[{provide:iw,useFactory:()=>new l3},{provide:w_,useValue:"BrowserAnimations"},...f3],h3=[{provide:iw,useClass:ow},{provide:w_,useValue:"NoopAnimations"},...f3];let LZ=(()=>{class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?h3:Cw}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({providers:Cw,imports:[HA]})}return e})(),VZ=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e,bootstrap:[Uq]});static#n=this.\u0275inj=on({imports:[HA,Vq,jq,Kq,Hq,Gq,$q,Wq,Qq,qq,LZ,Pq.forRoot()]})}return e})();J9().bootstrapModule(VZ).catch(e=>console.error(e))},2820:(ae,f)=>{"use strict";function y(p){if(!Number.isSafeInteger(p)||p<0)throw new Error(`positive integer expected, not ${p}`)}function m(p){if("boolean"!=typeof p)throw new Error(`boolean expected, not ${p}`)}function h(p){return p instanceof Uint8Array||null!=p&&"object"==typeof p&&"Uint8Array"===p.constructor.name}function _(p,...I){if(!h(p))throw new Error("Uint8Array expected");if(I.length>0&&!I.includes(p.length))throw new Error(`Uint8Array expected of length ${I}, not of length=${p.length}`)}function w(p){if("function"!=typeof p||"function"!=typeof p.create)throw new Error("hash must be wrapped by utils.wrapConstructor");y(p.outputLen),y(p.blockLen)}function k(p,I=!0){if(p.destroyed)throw new Error("Hash instance has been destroyed");if(I&&p.finished)throw new Error("Hash#digest() has already been called")}function S(p,I){_(p);const H=I.outputLen;if(p.length{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.polyval=f.ghash=f._toGHASHKey=void 0;const m=y(4924),h=y(2820),_=16,w=new Uint8Array(16),k=(0,m.u32)(w),$=(N,b,W,G)=>({s3:W<<31|G>>>1,s2:b<<31|W>>>1,s1:N<<31|b>>>1,s0:N>>>1^225<<24&-(1&G)}),p=N=>(N>>>0&255)<<24|(N>>>8&255)<<16|(N>>>16&255)<<8|N>>>24&255|0;function I(N){N.reverse();const b=1&N[15];let W=0;for(let G=0;G>>1|W,W=(1&T)<<7}return N[0]^=225&-b,N}f._toGHASHKey=I;class P{constructor(b,W){this.blockLen=_,this.outputLen=_,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,b=(0,m.toBytes)(b),(0,h.bytes)(b,16);const G=(0,m.createView)(b);let T=G.getUint32(0,!1),O=G.getUint32(4,!1),Q=G.getUint32(8,!1),Y=G.getUint32(12,!1);const X=[];for(let M=0;M<128;M++)X.push({s0:p(T),s1:p(O),s2:p(Q),s3:p(Y)}),({s0:T,s1:O,s2:Q,s3:Y}=$(T,O,Q,Y));const Z=(N=W||1024)>65536?8:N>1024?4:2;var N;if(![1,2,4,8].includes(Z))throw new Error(`ghash: wrong window size=${Z}, should be 2, 4 or 8`);this.W=Z;const J=128/Z,ee=this.windowSize=2**Z,z=[];for(let M=0;M>>Z-de-1&1))continue;const{s0:D,s1:F,s2:B,s3:j}=X[Z*M+de];R^=D,L^=F,ne^=B,oe^=j}z.push({s0:R,s1:L,s2:ne,s3:oe})}this.t=z}_updateBlock(b,W,G,T){b^=this.s0,W^=this.s1,G^=this.s2,T^=this.s3;const{W:O,t:Q,windowSize:Y}=this;let X=0,Z=0,re=0,J=0;const ee=(1<>>8*V&255;for(let L=8/O-1;L>=0;L--){const ne=R>>>O*L&ee,{s0:oe,s1:de,s2:Ce,s3:D}=Q[z*Y+ne];X^=oe,Z^=de,re^=Ce,J^=D,z+=1}}this.s0=X,this.s1=Z,this.s2=re,this.s3=J}update(b){b=(0,m.toBytes)(b),(0,h.exists)(this);const W=(0,m.u32)(b),G=Math.floor(b.length/_),T=b.length%_;for(let O=0;ON(T,G.length).update((0,m.toBytes)(G)).digest(),W=N(new Uint8Array(16),0);return b.outputLen=W.outputLen,b.blockLen=W.blockLen,b.create=(G,T)=>N(G,T),b}f.ghash=x((N,b)=>new P(N,b)),f.polyval=x((N,b)=>new C(N,b))},888:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.unsafe=f.siv=f.gcm=f.cfb=f.cbc=f.ecb=f.ctr=f.expandKeyDecLE=f.expandKeyLE=void 0;const m=y(4924),h=y(3804),_=y(2820),w=16,S=new Uint8Array(w),$=283;function p(D){return D<<1^$&-(D>>7)}function I(D,F){let B=0;for(;F>0;F>>=1)B^=D&-(1&F),D=p(D);return B}const H=(()=>{let D=new Uint8Array(256);for(let B=0,j=1;B<256;B++,j^=p(j))D[B]=j;const F=new Uint8Array(256);F[0]=99;for(let B=0;B<255;B++){let j=D[255-B];j|=j<<8,F[D[B]]=255&(j^j>>4^j>>5^j>>6^j>>7^99)}return F})(),P=H.map((D,F)=>H.indexOf(F)),C=D=>D<<24|D>>>8,x=D=>D<<8|D>>>24;function N(D,F){if(256!==D.length)throw new Error("Wrong sbox length");const B=new Uint32Array(256).map((pe,Ee)=>F(D[Ee])),j=B.map(x),te=j.map(x),ie=te.map(x),fe=new Uint32Array(65536),ce=new Uint32Array(65536),ye=new Uint16Array(65536);for(let pe=0;pe<256;pe++)for(let Ee=0;Ee<256;Ee++){const Re=256*pe+Ee;fe[Re]=B[pe]^j[Ee],ce[Re]=te[pe]^ie[Ee],ye[Re]=D[pe]<<8|D[Ee]}return{sbox:D,sbox2:ye,T0:B,T1:j,T2:te,T3:ie,T01:fe,T23:ce}}const b=N(H,D=>I(D,3)<<24|D<<16|D<<8|I(D,2)),W=N(P,D=>I(D,11)<<24|I(D,13)<<16|I(D,9)<<8|I(D,14)),G=(()=>{const D=new Uint8Array(16);for(let F=0,B=1;F<16;F++,B=p(B))D[F]=B;return D})();function T(D){(0,_.bytes)(D);const F=D.length;if(![16,24,32].includes(F))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${F}`);const{sbox2:B}=b,j=(0,m.u32)(D),te=j.length,ie=ce=>Y(B,ce,ce,ce,ce),fe=new Uint32Array(F+28);fe.set(j);for(let ce=te;ce6&&ce%te==4&&(ye=ie(ye)),fe[ce]=fe[ce-te]^ye}return fe}function O(D){const F=T(D),B=F.slice(),j=F.length,{sbox2:te}=b,{T0:ie,T1:fe,T2:ce,T3:ye}=W;for(let pe=0;pe>>8&255]^ce[Re>>>16&255]^ye[Re>>>24]}return B}function Q(D,F,B,j,te,ie){return D[B<<8&65280|j>>>8&255]^F[te>>>8&65280|ie>>>24&255]}function Y(D,F,B,j,te){return D[255&F|65280&B]|D[j>>>16&255|te>>>16&65280]<<16}function X(D,F,B,j,te){const{sbox2:ie,T01:fe,T23:ce}=b;let ye=0;F^=D[ye++],B^=D[ye++],j^=D[ye++],te^=D[ye++];const pe=D.length/4-2;for(let Be=0;Be=0;Te--)Ve=Ve+(255&ie[Te])|0,ie[Te]=255&Ve,Ve>>>=8;({s0:ce,s1:ye,s2:pe,s3:Ee}=X(D,fe[0],fe[1],fe[2],fe[3]))}const Ae=w*Math.floor(Re.length/4);if(Ae>>0,ce.setUint32(Ee,Me,F),({s0:Ae,s1:Be,s2:Ve,s3:Te}=X(D,fe[0],fe[1],fe[2],fe[3]));const Le=w*Math.floor(ye.length/4);if(Le16)throw new Error(`aes/pcks5: wrong padding byte: ${j}`);const te=D.subarray(0,-j);for(let ie=0;iej(te,ie),decrypt:(te,ie)=>j(te,ie)}}),f.ecb=(0,m.wrapCipher)({blockSize:16},function(F,B={}){(0,_.bytes)(F);const j=!B.disablePadding;return{encrypt:(te,ie)=>{(0,_.bytes)(te);const{b:fe,o:ce,out:ye}=M(te,j,ie),pe=T(F);let Ee=0;for(;Ee+4<=fe.length;){const{s0:Re,s1:Me,s2:Ae,s3:Be}=X(pe,fe[Ee+0],fe[Ee+1],fe[Ee+2],fe[Ee+3]);ce[Ee++]=Re,ce[Ee++]=Me,ce[Ee++]=Ae,ce[Ee++]=Be}if(j){const Re=R(te.subarray(4*Ee)),{s0:Me,s1:Ae,s2:Be,s3:Ve}=X(pe,Re[0],Re[1],Re[2],Re[3]);ce[Ee++]=Me,ce[Ee++]=Ae,ce[Ee++]=Be,ce[Ee++]=Ve}return pe.fill(0),ye},decrypt:(te,ie)=>{z(te);const fe=O(F),ce=re(te.length,ie),ye=(0,m.u32)(te),pe=(0,m.u32)(ce);for(let Ee=0;Ee+4<=ye.length;){const{s0:Re,s1:Me,s2:Ae,s3:Be}=Z(fe,ye[Ee+0],ye[Ee+1],ye[Ee+2],ye[Ee+3]);pe[Ee++]=Re,pe[Ee++]=Me,pe[Ee++]=Ae,pe[Ee++]=Be}return fe.fill(0),V(ce,j)}}}),f.cbc=(0,m.wrapCipher)({blockSize:16,nonceLength:16},function(F,B,j={}){(0,_.bytes)(F),(0,_.bytes)(B,16);const te=!j.disablePadding;return{encrypt:(ie,fe)=>{const ce=T(F),{b:ye,o:pe,out:Ee}=M(ie,te,fe),Re=(0,m.u32)(B);let Me=Re[0],Ae=Re[1],Be=Re[2],Ve=Re[3],Te=0;for(;Te+4<=ye.length;)Me^=ye[Te+0],Ae^=ye[Te+1],Be^=ye[Te+2],Ve^=ye[Te+3],({s0:Me,s1:Ae,s2:Be,s3:Ve}=X(ce,Me,Ae,Be,Ve)),pe[Te++]=Me,pe[Te++]=Ae,pe[Te++]=Be,pe[Te++]=Ve;if(te){const Le=R(ie.subarray(4*Te));Me^=Le[0],Ae^=Le[1],Be^=Le[2],Ve^=Le[3],({s0:Me,s1:Ae,s2:Be,s3:Ve}=X(ce,Me,Ae,Be,Ve)),pe[Te++]=Me,pe[Te++]=Ae,pe[Te++]=Be,pe[Te++]=Ve}return ce.fill(0),Ee},decrypt:(ie,fe)=>{z(ie);const ce=O(F),ye=(0,m.u32)(B),pe=re(ie.length,fe),Ee=(0,m.u32)(ie),Re=(0,m.u32)(pe);let Me=ye[0],Ae=ye[1],Be=ye[2],Ve=ye[3];for(let Te=0;Te+4<=Ee.length;){const Le=Me,Qe=Ae,Dt=Be,pt=Ve;Me=Ee[Te+0],Ae=Ee[Te+1],Be=Ee[Te+2],Ve=Ee[Te+3];const{s0:ut,s1:an,s2:rr,s3:Bn}=Z(ce,Me,Ae,Be,Ve);Re[Te++]=ut^Le,Re[Te++]=an^Qe,Re[Te++]=rr^Dt,Re[Te++]=Bn^pt}return ce.fill(0),V(pe,te)}}}),f.cfb=(0,m.wrapCipher)({blockSize:16,nonceLength:16},function(F,B){function j(te,ie,fe){const ce=T(F),ye=te.length;fe=re(ye,fe);const pe=(0,m.u32)(te),Ee=(0,m.u32)(fe),Re=ie?Ee:pe,Me=(0,m.u32)(B);let Ae=Me[0],Be=Me[1],Ve=Me[2],Te=Me[3];for(let Qe=0;Qe+4<=pe.length;){const{s0:Dt,s1:pt,s2:ut,s3:an}=X(ce,Ae,Be,Ve,Te);Ee[Qe+0]=pe[Qe+0]^Dt,Ee[Qe+1]=pe[Qe+1]^pt,Ee[Qe+2]=pe[Qe+2]^ut,Ee[Qe+3]=pe[Qe+3]^an,Ae=Re[Qe++],Be=Re[Qe++],Ve=Re[Qe++],Te=Re[Qe++]}const Le=w*Math.floor(pe.length/4);if(Lej(te,!0,ie),decrypt:(te,ie)=>j(te,!1,ie)}}),f.gcm=(0,m.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16},function(F,B,j){if((0,_.bytes)(B),0===B.length)throw new Error("aes/gcm: empty nonce");function ie(ce,ye,pe){const Ee=L(h.ghash,!1,ce,pe,j);for(let Re=0;Re{(0,_.bytes)(ce);const{xk:ye,authKey:pe,counter:Ee,tagMask:Re}=fe(),Me=new Uint8Array(ce.length+16);ee(ye,!1,Ee,ce,Me);const Ae=ie(pe,Re,Me.subarray(0,Me.length-16));return Me.set(Ae,ce.length),ye.fill(0),Me},decrypt:ce=>{if((0,_.bytes)(ce),ce.length<16)throw new Error("aes/gcm: ciphertext less than tagLen (16)");const{xk:ye,authKey:pe,counter:Ee,tagMask:Re}=fe(),Me=ce.subarray(0,-16),Ae=ce.subarray(-16),Be=ie(pe,Re,Me);if(!(0,m.equalBytes)(Be,Ae))throw new Error("aes/gcm: invalid ghash tag");const Ve=ee(ye,!1,Ee,Me);return pe.fill(0),Re.fill(0),ye.fill(0),Ve}}});const ne=(D,F,B)=>j=>{if(!Number.isSafeInteger(j)||F>j||j>B)throw new Error(`${D}: invalid value=${j}, must be [${F}..${B}]`)};function oe(D){return null!=D&&"object"==typeof D&&(D instanceof Uint32Array||"Uint32Array"===D.constructor.name)}f.siv=(0,m.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16},function(F,B,j){const ie=ne("AAD",0,68719476736),fe=ne("plaintext",0,2**36),ce=ne("nonce",12,12),ye=ne("ciphertext",16,2**36+16);function pe(){const Me=F.length;if(16!==Me&&24!==Me&&32!==Me)throw new Error(`key length must be 16, 24 or 32 bytes, got: ${Me} bytes`);const Ae=T(F),Be=new Uint8Array(Me),Ve=new Uint8Array(16),Te=(0,m.u32)(B);let Le=0,Qe=Te[0],Dt=Te[1],pt=Te[2],ut=0;for(const an of[Ve,Be].map(m.u32)){const rr=(0,m.u32)(an);for(let Bn=0;Bn{(0,_.bytes)(Me),fe(Me.length);const{encKey:Ae,authKey:Be}=pe(),Ve=Ee(Ae,Be,Me),Te=new Uint8Array(Me.length+16);return Te.set(Ve,Me.length),Te.set(Re(Ae,Ve,Me)),Ae.fill(0),Be.fill(0),Te},decrypt:Me=>{(0,_.bytes)(Me),ye(Me.length);const Ae=Me.subarray(-16),{encKey:Be,authKey:Ve}=pe(),Te=Re(Be,Ae,Me.subarray(0,-16)),Le=Ee(Be,Ve,Te);if(Be.fill(0),Ve.fill(0),!(0,m.equalBytes)(Ae,Le))throw new Error("invalid polyval tag");return Te}}}),f.unsafe={expandKeyLE:T,expandKeyDecLE:O,encrypt:X,decrypt:Z,encryptBlock:function de(D,F){if((0,_.bytes)(F,16),!oe(D))throw new Error("_encryptBlock accepts result of expandKeyLE");const B=(0,m.u32)(F);let{s0:j,s1:te,s2:ie,s3:fe}=X(D,B[0],B[1],B[2],B[3]);return B[0]=j,B[1]=te,B[2]=ie,B[3]=fe,F},decryptBlock:function Ce(D,F){if((0,_.bytes)(F,16),!oe(D))throw new Error("_decryptBlock accepts result of expandKeyLE");const B=(0,m.u32)(F);let{s0:j,s1:te,s2:ie,s3:fe}=Z(D,B[0],B[1],B[2],B[3]);return B[0]=j,B[1]=te,B[2]=ie,B[3]=fe,F},ctrCounter:J,ctr32:ee}},4220:(ae,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getWebcryptoSubtle=f.randomBytes=void 0;const y="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;f.randomBytes=function m(_=32){if(y&&"function"==typeof y.getRandomValues)return y.getRandomValues(new Uint8Array(_));throw new Error("crypto.getRandomValues must be defined")},f.getWebcryptoSubtle=function h(){if(y&&"object"==typeof y.subtle&&null!=y.subtle)return y.subtle;throw new Error("crypto.subtle must be defined")}},4924:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0}),f.u64Lengths=f.setBigUint64=f.wrapCipher=f.Hash=f.equalBytes=f.checkOpts=f.concatBytes=f.toBytes=f.bytesToUtf8=f.utf8ToBytes=f.asyncLoop=f.nextTick=f.numberToBytesBE=f.bytesToNumberBE=f.hexToNumber=f.hexToBytes=f.bytesToHex=f.isLE=f.createView=f.u32=f.u16=f.u8=void 0;const h=y(2820);if(f.u8=M=>new Uint8Array(M.buffer,M.byteOffset,M.byteLength),f.u16=M=>new Uint16Array(M.buffer,M.byteOffset,Math.floor(M.byteLength/2)),f.u32=M=>new Uint32Array(M.buffer,M.byteOffset,Math.floor(M.byteLength/4)),f.createView=M=>new DataView(M.buffer,M.byteOffset,M.byteLength),f.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!f.isLE)throw new Error("Non little-endian hardware is not supported");const $=Array.from({length:256},(M,V)=>V.toString(16).padStart(2,"0"));function p(M){(0,h.bytes)(M);let V="";for(let R=0;R=I._0&&M<=I._9?M-I._0:M>=I._A&&M<=I._F?M-(I._A-10):M>=I._a&&M<=I._f?M-(I._a-10):void 0}function P(M){if("string"!=typeof M)throw new Error("hex string expected, got "+typeof M);const V=M.length,R=V/2;if(V%2)throw new Error("padded hex string expected, got unpadded hex of length "+V);const L=new Uint8Array(R);for(let ne=0,oe=0;ne=0&&oe>ne&oe),Ce=Number(R&oe),F=L?0:4;M.setUint32(V+(L?4:0),de,L),M.setUint32(V+F,Ce,L)}f.hexToBytes=P,f.hexToNumber=C,f.bytesToNumberBE=function x(M){return C(p(M))},f.numberToBytesBE=function N(M,V){return P(M.toString(16).padStart(2*V,"0"))},f.nextTick=function(){var M=m(function*(){});return function(){return M.apply(this,arguments)}}(),f.asyncLoop=function W(M,V,R){return G.apply(this,arguments)},f.utf8ToBytes=T,f.bytesToUtf8=function O(M){return(new TextDecoder).decode(M)},f.toBytes=function Q(M){if("string"==typeof M)M=T(M);else{if(!(0,h.isBytes)(M))throw new Error("Uint8Array expected, got "+typeof M);M=M.slice()}return M},f.concatBytes=function Y(...M){let V=0;for(let L=0;L(Object.assign(V,M),V),f.setBigUint64=ee,f.u64Lengths=function z(M,V){const R=new Uint8Array(16),L=(0,f.createView)(R);return ee(L,0,BigInt(V?V.length:0),!0),ee(L,8,BigInt(M.length),!0),R}},1640:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0}),f.gcm=f.ctr=f.cbc=f.utils=f.managedNonce=f.getWebcryptoSubtle=f.randomBytes=void 0;const h=y(4220);Object.defineProperty(f,"randomBytes",{enumerable:!0,get:function(){return h.randomBytes}}),Object.defineProperty(f,"getWebcryptoSubtle",{enumerable:!0,get:function(){return h.getWebcryptoSubtle}});const _=y(4924),w=y(2820);f.managedNonce=function k(I){return(0,w.number)(I.nonceLength),(H,...P)=>({encrypt:(C,...x)=>{const{nonceLength:N}=I,b=(0,h.randomBytes)(N),W=I(H,b,...P).encrypt(C,...x),G=(0,_.concatBytes)(b,W);return W.fill(0),G},decrypt:(C,...x)=>{const{nonceLength:N}=I,b=C.subarray(0,N),W=C.subarray(N);return I(H,b,...P).decrypt(W,...x)}})},f.utils={encrypt:(I,H,P,C)=>m(function*(){const x=(0,h.getWebcryptoSubtle)(),N=yield x.importKey("raw",I,H,!0,["encrypt"]),b=yield x.encrypt(P,N,C);return new Uint8Array(b)})(),decrypt:(I,H,P,C)=>m(function*(){const x=(0,h.getWebcryptoSubtle)(),N=yield x.importKey("raw",I,H,!0,["decrypt"]),b=yield x.decrypt(P,N,C);return new Uint8Array(b)})()};const S_CBC="AES-CBC",S_CTR="AES-CTR",S_GCM="AES-GCM";function p(I){return(H,P,C)=>{(0,w.bytes)(H),(0,w.bytes)(P);const x={name:I,length:8*H.length},N=function $(I,H,P){if(I===S_CBC)return{name:S_CBC,iv:H};if(I===S_CTR)return{name:S_CTR,counter:H,length:64};if(I===S_GCM)return{name:S_GCM,iv:H,additionalData:P};throw new Error("unknown aes block mode")}(I,P,C);return{encrypt:b=>((0,w.bytes)(b),f.utils.encrypt(H,x,N,b)),decrypt:b=>((0,w.bytes)(b),f.utils.decrypt(H,x,N,b))}}}f.cbc=p(S_CBC),f.ctr=p(S_CTR),f.gcm=p(S_GCM)},5496:(ae,f)=>{"use strict";function m(z){return z instanceof Uint8Array||null!=z&&"object"==typeof z&&"Uint8Array"===z.constructor.name}function h(...z){const M=ne=>ne,V=(ne,oe)=>de=>ne(oe(de));return{encode:z.map(ne=>ne.encode).reduceRight(V,M),decode:z.map(ne=>ne.decode).reduce(V,M)}}function _(z){return{encode:M=>{if(!Array.isArray(M)||M.length&&"number"!=typeof M[0])throw new Error("alphabet.encode input should be an array of numbers");return M.map(V=>{if(V<0||V>=z.length)throw new Error(`Digit index outside alphabet: ${V} (alphabet: ${z.length})`);return z[V]})},decode:M=>{if(!Array.isArray(M)||M.length&&"string"!=typeof M[0])throw new Error("alphabet.decode input should be array of strings");return M.map(V=>{if("string"!=typeof V)throw new Error(`alphabet.decode: not string element=${V}`);const R=z.indexOf(V);if(-1===R)throw new Error(`Unknown letter: "${V}". Allowed: ${z}`);return R})}}}function w(z=""){if("string"!=typeof z)throw new Error("join separator should be string");return{encode:M=>{if(!Array.isArray(M)||M.length&&"string"!=typeof M[0])throw new Error("join.encode input should be array of strings");for(let V of M)if("string"!=typeof V)throw new Error(`join.encode: non-string input=${V}`);return M.join(z)},decode:M=>{if("string"!=typeof M)throw new Error("join.decode input should be string");return M.split(z)}}}function k(z,M="="){if("string"!=typeof M)throw new Error("padding chr should be string");return{encode(V){if(!Array.isArray(V)||V.length&&"string"!=typeof V[0])throw new Error("padding.encode input should be array of strings");for(let R of V)if("string"!=typeof R)throw new Error(`padding.encode: non-string input=${R}`);for(;V.length*z%8;)V.push(M);return V},decode(V){if(!Array.isArray(V)||V.length&&"string"!=typeof V[0])throw new Error("padding.encode input should be array of strings");for(let L of V)if("string"!=typeof L)throw new Error(`padding.decode: non-string input=${L}`);let R=V.length;if(R*z%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;R>0&&V[R-1]===M;R--)if(!((R-1)*z%8))throw new Error("Invalid padding: string has too much padding");return V.slice(0,R)}}}function S(z){if("function"!=typeof z)throw new Error("normalize fn should be function");return{encode:M=>M,decode:M=>z(M)}}function $(z,M,V){if(M<2)throw new Error(`convertRadix: wrong from=${M}, base cannot be less than 2`);if(V<2)throw new Error(`convertRadix: wrong to=${V}, base cannot be less than 2`);if(!Array.isArray(z))throw new Error("convertRadix: data should be array");if(!z.length)return[];let R=0;const L=[],ne=Array.from(z);for(ne.forEach(oe=>{if(oe<0||oe>=M)throw new Error(`Wrong integer: ${oe}`)});;){let oe=0,de=!0;for(let Ce=R;CeM?p(M,z%M):z,I=(z,M)=>z+(M-p(z,M));function H(z,M,V,R){if(!Array.isArray(z))throw new Error("convertRadix2: data should be array");if(M<=0||M>32)throw new Error(`convertRadix2: wrong from=${M}`);if(V<=0||V>32)throw new Error(`convertRadix2: wrong to=${V}`);if(I(M,V)>32)throw new Error(`convertRadix2: carry overflow from=${M} to=${V} carryBits=${I(M,V)}`);let L=0,ne=0;const oe=2**V-1,de=[];for(const Ce of z){if(Ce>=2**M)throw new Error(`convertRadix2: invalid data word=${Ce} from=${M}`);if(L=L<32)throw new Error(`convertRadix2: carry overflow pos=${ne} from=${M}`);for(ne+=M;ne>=V;ne-=V)de.push((L>>ne-V&oe)>>>0);L&=2**ne-1}if(L=L<=M)throw new Error("Excess padding");if(!R&&L)throw new Error(`Non-zero padding: ${L}`);return R&&ne>0&&de.push(L>>>0),de}function P(z){return{encode:M=>{if(!m(M))throw new Error("radix.encode input should be Uint8Array");return $(Array.from(M),256,z)},decode:M=>{if(!Array.isArray(M)||M.length&&"number"!=typeof M[0])throw new Error("radix.decode input should be array of numbers");return Uint8Array.from($(M,z,256))}}}function C(z,M=!1){if(z<=0||z>32)throw new Error("radix2: bits should be in (0..32]");if(I(8,z)>32||I(z,8)>32)throw new Error("radix2: carry overflow");return{encode:V=>{if(!m(V))throw new Error("radix2.encode input should be Uint8Array");return H(Array.from(V),8,z,!M)},decode:V=>{if(!Array.isArray(V)||V.length&&"number"!=typeof V[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(H(V,z,8,M))}}}function x(z){if("function"!=typeof z)throw new Error("unsafeWrapper fn should be function");return function(...M){try{return z.apply(null,M)}catch{}}}function N(z,M){if("function"!=typeof M)throw new Error("checksum fn should be function");return{encode(V){if(!m(V))throw new Error("checksum.encode: input should be Uint8Array");const R=M(V).slice(0,z),L=new Uint8Array(V.length+z);return L.set(V),L.set(R,V.length),L},decode(V){if(!m(V))throw new Error("checksum.decode: input should be Uint8Array");const R=V.slice(0,-z),L=M(R).slice(0,z),ne=V.slice(-z);for(let oe=0;oez.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),f.base64=h(C(6),_("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),k(6),w("")),f.base64nopad=h(C(6),_("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),w("")),f.base64url=h(C(6),_("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),k(6),w("")),f.base64urlnopad=h(C(6),_("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),w(""));const b=z=>h(P(58),_(z),w(""));f.base58=b("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),f.base58flickr=b("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),f.base58xrp=b("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const W=[0,2,3,5,6,7,9,10,11];f.base58xmr={encode(z){let M="";for(let V=0;Vh(N(4,M=>z(z(M))),f.base58),f.base58check=f.createBase58check;const T=h(_("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),w("")),O=[996825010,642813549,513874426,1027748829,705979059];function Q(z){const M=z>>25;let V=(33554431&z)<<5;for(let R=0;R>R&1)&&(V^=O[R]);return V}function Y(z,M,V=1){const R=z.length;let L=1;for(let ne=0;ne126)throw new Error(`Invalid prefix (${z})`);L=Q(L)^oe>>5}L=Q(L);for(let ne=0;neB)throw new TypeError(`Wrong string length: ${F.length} (${F}). Expected (8..${B})`);const j=F.toLowerCase();if(F!==j&&F!==F.toUpperCase())throw new Error("String must be lowercase or uppercase");const te=j.lastIndexOf("1");if(0===te||-1===te)throw new Error('Letter "1" must be present between prefix and data only');const ie=j.slice(0,te),fe=j.slice(te+1);if(fe.length<6)throw new Error("Data must be at least 6 characters long");const ce=T.decode(fe).slice(0,-6),ye=Y(ie,ce,M);if(!fe.endsWith(ye))throw new Error(`Invalid checksum in ${F}: expected "${ye}"`);return{prefix:ie,words:ce}}return{encode:function oe(F,B,j=90){if("string"!=typeof F)throw new Error("bech32.encode prefix should be string, not "+typeof F);if(!Array.isArray(B)||B.length&&"number"!=typeof B[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof B);if(0===F.length)throw new TypeError(`Invalid prefix length ${F.length}`);const te=F.length+7+B.length;if(!1!==j&&te>j)throw new TypeError(`Length ${te} exceeds limit ${j}`);const ie=F.toLowerCase(),fe=Y(ie,B,M);return`${ie}1${T.encode(B)}${fe}`},decode:de,decodeToBytes:function D(F){const{prefix:B,words:j}=de(F,!1);return{prefix:B,words:j,bytes:R(j)}},decodeUnsafe:x(de),fromWords:R,fromWordsUnsafe:ne,toWords:L}}f.bech32=X("bech32"),f.bech32m=X("bech32m"),f.utf8={encode:z=>(new TextDecoder).decode(z),decode:z=>(new TextEncoder).encode(z)},f.hex=h(C(4),_("0123456789abcdef"),w(""),S(z=>{if("string"!=typeof z||z.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof z} with length ${z.length}`);return z.toLowerCase()}));const Z={utf8:f.utf8,hex:f.hex,base16:f.base16,base32:f.base32,base64:f.base64,base64url:f.base64url,base58:f.base58,base58xmr:f.base58xmr},re="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr";f.bytesToString=(z,M)=>{if("string"!=typeof z||!Z.hasOwnProperty(z))throw new TypeError(re);if(!m(M))throw new TypeError("bytesToString() expects Uint8Array");return Z[z].encode(M)},f.str=f.bytesToString,f.stringToBytes=(z,M)=>{if(!Z.hasOwnProperty(z))throw new TypeError(re);if("string"!=typeof M)throw new TypeError("stringToBytes() expects string");return Z[z].decode(M)},f.bytes=f.stringToBytes},8220:function(ae,f,y){var m;ae.exports=(m=y(8648),y(8872),y(740),y(9755),y(7904),function(){var h=m,w=h.lib.BlockCipher,k=h.algo,S=[],$=[],p=[],I=[],H=[],P=[],C=[],x=[],N=[],b=[];!function(){for(var T=[],O=0;O<256;O++)T[O]=O<128?O<<1:O<<1^283;var Q=0,Y=0;for(O=0;O<256;O++){var X=Y^Y<<1^Y<<2^Y<<3^Y<<4;S[Q]=X=X>>>8^255&X^99,$[X]=Q;var ee,Z=T[Q],re=T[Z],J=T[re];p[Q]=(ee=257*T[X]^16843008*X)<<24|ee>>>8,I[Q]=ee<<16|ee>>>16,H[Q]=ee<<8|ee>>>24,P[Q]=ee,C[X]=(ee=16843009*J^65537*re^257*Z^16843008*Q)<<24|ee>>>8,x[X]=ee<<16|ee>>>16,N[X]=ee<<8|ee>>>24,b[X]=ee,Q?(Q=Z^T[T[T[J^Z]]],Y^=T[T[Y]]):Q=Y=1}}();var W=[0,1,2,4,8,16,32,64,128,27,54],G=k.AES=w.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var O=this._keyPriorReset=this._key,Q=O.words,Y=O.sigBytes/4,Z=4*((this._nRounds=Y+6)+1),re=this._keySchedule=[],J=0;J6&&J%Y==4&&(T=S[T>>>24]<<24|S[T>>>16&255]<<16|S[T>>>8&255]<<8|S[255&T]):(T=S[(T=T<<8|T>>>24)>>>24]<<24|S[T>>>16&255]<<16|S[T>>>8&255]<<8|S[255&T],T^=W[J/Y|0]<<24),re[J]=re[J-Y]^T);for(var ee=this._invKeySchedule=[],z=0;z>>24]]^x[S[T>>>16&255]]^N[S[T>>>8&255]]^b[S[255&T]]}}},encryptBlock:function(T,O){this._doCryptBlock(T,O,this._keySchedule,p,I,H,P,S)},decryptBlock:function(T,O){var Q=T[O+1];T[O+1]=T[O+3],T[O+3]=Q,this._doCryptBlock(T,O,this._invKeySchedule,C,x,N,b,$),Q=T[O+1],T[O+1]=T[O+3],T[O+3]=Q},_doCryptBlock:function(T,O,Q,Y,X,Z,re,J){for(var ee=this._nRounds,z=T[O]^Q[0],M=T[O+1]^Q[1],V=T[O+2]^Q[2],R=T[O+3]^Q[3],L=4,ne=1;ne>>24]^X[M>>>16&255]^Z[V>>>8&255]^re[255&R]^Q[L++],de=Y[M>>>24]^X[V>>>16&255]^Z[R>>>8&255]^re[255&z]^Q[L++],Ce=Y[V>>>24]^X[R>>>16&255]^Z[z>>>8&255]^re[255&M]^Q[L++],D=Y[R>>>24]^X[z>>>16&255]^Z[M>>>8&255]^re[255&V]^Q[L++];z=oe,M=de,V=Ce,R=D}oe=(J[z>>>24]<<24|J[M>>>16&255]<<16|J[V>>>8&255]<<8|J[255&R])^Q[L++],de=(J[M>>>24]<<24|J[V>>>16&255]<<16|J[R>>>8&255]<<8|J[255&z])^Q[L++],Ce=(J[V>>>24]<<24|J[R>>>16&255]<<16|J[z>>>8&255]<<8|J[255&M])^Q[L++],D=(J[R>>>24]<<24|J[z>>>16&255]<<16|J[M>>>8&255]<<8|J[255&V])^Q[L++],T[O]=oe,T[O+1]=de,T[O+2]=Ce,T[O+3]=D},keySize:8});h.AES=w._createHelper(G)}(),m.AES)},920:function(ae,f,y){var m;ae.exports=(m=y(8648),y(8872),y(740),y(9755),y(7904),function(){var h=m,w=h.lib.BlockCipher;const S=16,$=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],p=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var I={pbox:[],sbox:[]};function H(b,W){let Y=b.sbox[0][W>>24&255]+b.sbox[1][W>>16&255];return Y^=b.sbox[2][W>>8&255],Y+=b.sbox[3][255&W],Y}function P(b,W,G){let Q,T=W,O=G;for(let Y=0;Y=G&&(T=0);let O=0,Q=0,Y=0;for(let X=0;X1;--Y)T^=b.pbox[Y],O=H(b,T)^O,Q=T,T=O,O=Q;return Q=T,T=O,O=Q,O^=b.pbox[1],T^=b.pbox[0],{left:T,right:O}}(I,b[W],b[W+1]);b[W]=G.left,b[W+1]=G.right},blockSize:2,keySize:4,ivSize:2});h.Blowfish=w._createHelper(N)}(),m.Blowfish)},7904:function(ae,f,y){var _,w,k,S,$,p,H,C,x,b,W,G,O,Y,Z,re,ee,z,m;ae.exports=(m=y(8648),y(9755),void(m.lib.Cipher||(_=m,w=_.lib,k=w.Base,S=w.WordArray,$=w.BufferedBlockAlgorithm,p=_.enc,H=p.Base64,C=_.algo.EvpKDF,x=w.Cipher=$.extend({cfg:k.extend(),createEncryptor:function(M,V){return this.create(this._ENC_XFORM_MODE,M,V)},createDecryptor:function(M,V){return this.create(this._DEC_XFORM_MODE,M,V)},init:function(M,V,R){this.cfg=this.cfg.extend(R),this._xformMode=M,this._key=V,this.reset()},reset:function(){$.reset.call(this),this._doReset()},process:function(M){return this._append(M),this._process()},finalize:function(M){return M&&this._append(M),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function M(V){return"string"==typeof V?z:re}return function(V){return{encrypt:function(R,L,ne){return M(L).encrypt(V,R,L,ne)},decrypt:function(R,L,ne){return M(L).decrypt(V,R,L,ne)}}}}()}),w.StreamCipher=x.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),b=_.mode={},W=w.BlockCipherMode=k.extend({createEncryptor:function(M,V){return this.Encryptor.create(M,V)},createDecryptor:function(M,V){return this.Decryptor.create(M,V)},init:function(M,V){this._cipher=M,this._iv=V}}),G=b.CBC=function(){var M=W.extend();function V(R,L,ne){var oe,de=this._iv;de?(oe=de,this._iv=undefined):oe=this._prevBlock;for(var Ce=0;Ce>>2]}},w.BlockCipher=x.extend({cfg:x.cfg.extend({mode:G,padding:O}),reset:function(){var M;x.reset.call(this);var V=this.cfg,R=V.iv,L=V.mode;this._xformMode==this._ENC_XFORM_MODE?M=L.createEncryptor:(M=L.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==M?this._mode.init(this,R&&R.words):(this._mode=M.call(L,this,R&&R.words),this._mode.__creator=M)},_doProcessBlock:function(M,V){this._mode.processBlock(M,V)},_doFinalize:function(){var M,V=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(V.pad(this._data,this.blockSize),M=this._process(!0)):(M=this._process(!0),V.unpad(M)),M},blockSize:4}),Y=w.CipherParams=k.extend({init:function(M){this.mixIn(M)},toString:function(M){return(M||this.formatter).stringify(this)}}),Z=(_.format={}).OpenSSL={stringify:function(M){var R=M.ciphertext,L=M.salt;return(L?S.create([1398893684,1701076831]).concat(L).concat(R):R).toString(H)},parse:function(M){var V,R=H.parse(M),L=R.words;return 1398893684==L[0]&&1701076831==L[1]&&(V=S.create(L.slice(2,4)),L.splice(0,4),R.sigBytes-=16),Y.create({ciphertext:R,salt:V})}},re=w.SerializableCipher=k.extend({cfg:k.extend({format:Z}),encrypt:function(M,V,R,L){L=this.cfg.extend(L);var ne=M.createEncryptor(R,L),oe=ne.finalize(V),de=ne.cfg;return Y.create({ciphertext:oe,key:R,iv:de.iv,algorithm:M,mode:de.mode,padding:de.padding,blockSize:M.blockSize,formatter:L.format})},decrypt:function(M,V,R,L){return L=this.cfg.extend(L),V=this._parse(V,L.format),M.createDecryptor(R,L).finalize(V.ciphertext)},_parse:function(M,V){return"string"==typeof M?V.parse(M,this):M}}),ee=(_.kdf={}).OpenSSL={execute:function(M,V,R,L,ne){if(L||(L=S.random(8)),ne)var oe=C.create({keySize:V+R,hasher:ne}).compute(M,L);else oe=C.create({keySize:V+R}).compute(M,L);var de=S.create(oe.words.slice(V),4*R);return oe.sigBytes=4*V,Y.create({key:oe,iv:de,salt:L})}},z=w.PasswordBasedCipher=re.extend({cfg:re.cfg.extend({kdf:ee}),encrypt:function(M,V,R,L){var ne=(L=this.cfg.extend(L)).kdf.execute(R,M.keySize,M.ivSize,L.salt,L.hasher);L.iv=ne.iv;var oe=re.encrypt.call(this,M,V,ne.key,L);return oe.mixIn(ne),oe},decrypt:function(M,V,R,L){L=this.cfg.extend(L),V=this._parse(V,L.format);var ne=L.kdf.execute(R,M.keySize,M.ivSize,V.salt,L.hasher);return L.iv=ne.iv,re.decrypt.call(this,M,V,ne.key,L)}}))))},8648:function(ae,f,y){var m;ae.exports=(m=m||function(h,_){var w;if(typeof window<"u"&&window.crypto&&(w=window.crypto),typeof self<"u"&&self.crypto&&(w=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(w=globalThis.crypto),!w&&typeof window<"u"&&window.msCrypto&&(w=window.msCrypto),!w&&typeof global<"u"&&global.crypto&&(w=global.crypto),!w)try{w=y(9392)}catch{}var k=function(){if(w){if("function"==typeof w.getRandomValues)try{return w.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof w.randomBytes)try{return w.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},S=Object.create||function(){function T(){}return function(O){var Q;return T.prototype=O,Q=new T,T.prototype=null,Q}}(),$={},p=$.lib={},I=p.Base=function(){return{extend:function(T){var O=S(this);return T&&O.mixIn(T),(!O.hasOwnProperty("init")||this.init===O.init)&&(O.init=function(){O.$super.init.apply(this,arguments)}),O.init.prototype=O,O.$super=this,O},create:function(){var T=this.extend();return T.init.apply(T,arguments),T},init:function(){},mixIn:function(T){for(var O in T)T.hasOwnProperty(O)&&(this[O]=T[O]);T.hasOwnProperty("toString")&&(this.toString=T.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),H=p.WordArray=I.extend({init:function(T,O){T=this.words=T||[],this.sigBytes=null!=O?O:4*T.length},toString:function(T){return(T||C).stringify(this)},concat:function(T){var O=this.words,Q=T.words,Y=this.sigBytes,X=T.sigBytes;if(this.clamp(),Y%4)for(var Z=0;Z>>2]|=(Q[Z>>>2]>>>24-Z%4*8&255)<<24-(Y+Z)%4*8;else for(var J=0;J>>2]=Q[J>>>2];return this.sigBytes+=X,this},clamp:function(){var T=this.words,O=this.sigBytes;T[O>>>2]&=4294967295<<32-O%4*8,T.length=h.ceil(O/4)},clone:function(){var T=I.clone.call(this);return T.words=this.words.slice(0),T},random:function(T){for(var O=[],Q=0;Q>>2]>>>24-X%4*8&255;Y.push((Z>>>4).toString(16)),Y.push((15&Z).toString(16))}return Y.join("")},parse:function(T){for(var O=T.length,Q=[],Y=0;Y>>3]|=parseInt(T.substr(Y,2),16)<<24-Y%8*4;return new H.init(Q,O/2)}},x=P.Latin1={stringify:function(T){for(var O=T.words,Q=T.sigBytes,Y=[],X=0;X>>2]>>>24-X%4*8&255));return Y.join("")},parse:function(T){for(var O=T.length,Q=[],Y=0;Y>>2]|=(255&T.charCodeAt(Y))<<24-Y%4*8;return new H.init(Q,O)}},N=P.Utf8={stringify:function(T){try{return decodeURIComponent(escape(x.stringify(T)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(T){return x.parse(unescape(encodeURIComponent(T)))}},b=p.BufferedBlockAlgorithm=I.extend({reset:function(){this._data=new H.init,this._nDataBytes=0},_append:function(T){"string"==typeof T&&(T=N.parse(T)),this._data.concat(T),this._nDataBytes+=T.sigBytes},_process:function(T){var O,Q=this._data,Y=Q.words,X=Q.sigBytes,Z=this.blockSize,J=X/(4*Z),ee=(J=T?h.ceil(J):h.max((0|J)-this._minBufferSize,0))*Z,z=h.min(4*ee,X);if(ee){for(var M=0;M>>2]>>>24-x%4*8&255)<<16|(I[x+1>>>2]>>>24-(x+1)%4*8&255)<<8|I[x+2>>>2]>>>24-(x+2)%4*8&255,T=0;T<4&&x+.75*T>>6*(3-T)&63));var O=P.charAt(64);if(O)for(;C.length%4;)C.push(O);return C.join("")},parse:function(p){var I=p.length,H=this._map,P=this._reverseMap;if(!P){P=this._reverseMap=[];for(var C=0;C>>6-x%4*2;P[C>>>2]|=(N|b)<<24-C%4*8,C++}return w.create(P,C)}(p,I,P)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},m.enc.Base64)},188:function(ae,f,y){var m,w;ae.exports=(m=y(8648),w=m.lib.WordArray,m.enc.Base64url={stringify:function(p,I){void 0===I&&(I=!0);var H=p.words,P=p.sigBytes,C=I?this._safe_map:this._map;p.clamp();for(var x=[],N=0;N>>2]>>>24-N%4*8&255)<<16|(H[N+1>>>2]>>>24-(N+1)%4*8&255)<<8|H[N+2>>>2]>>>24-(N+2)%4*8&255,O=0;O<4&&N+.75*O>>6*(3-O)&63));var Q=C.charAt(64);if(Q)for(;x.length%4;)x.push(Q);return x.join("")},parse:function(p,I){void 0===I&&(I=!0);var H=p.length,P=I?this._safe_map:this._map,C=this._reverseMap;if(!C){C=this._reverseMap=[];for(var x=0;x>>6-x%4*2;P[C>>>2]|=(N|b)<<24-C%4*8,C++}return w.create(P,C)}(p,H,C)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},m.enc.Base64url)},3316:function(ae,f,y){var m;ae.exports=(m=y(8648),function(){var w=m.lib.WordArray,k=m.enc;function $(p){return p<<8&4278255360|p>>>8&16711935}k.Utf16=k.Utf16BE={stringify:function(p){for(var I=p.words,H=p.sigBytes,P=[],C=0;C>>2]>>>16-C%4*8&65535));return P.join("")},parse:function(p){for(var I=p.length,H=[],P=0;P>>1]|=p.charCodeAt(P)<<16-P%2*16;return w.create(H,2*I)}},k.Utf16LE={stringify:function(p){for(var I=p.words,H=p.sigBytes,P=[],C=0;C>>2]>>>16-C%4*8&65535);P.push(String.fromCharCode(x))}return P.join("")},parse:function(p){for(var I=p.length,H=[],P=0;P>>1]|=$(p.charCodeAt(P)<<16-P%2*16);return w.create(H,2*I)}}}(),m.enc.Utf16)},9755:function(ae,f,y){var h,_,w,k,S,p,m;ae.exports=(m=y(8648),y(6488),y(5620),k=(_=(h=m).lib).WordArray,p=(S=h.algo).EvpKDF=(w=_.Base).extend({cfg:w.extend({keySize:4,hasher:S.MD5,iterations:1}),init:function(I){this.cfg=this.cfg.extend(I)},compute:function(I,H){for(var P,C=this.cfg,x=C.hasher.create(),N=k.create(),b=N.words,W=C.keySize,G=C.iterations;b.lengthC&&(H=I.finalize(H)),H.clamp();for(var x=this._oKey=H.clone(),N=this._iKey=H.clone(),b=x.words,W=N.words,G=0;G>>2]|=$[H]<<24-H%4*8;k.call(this,I,p)}else k.apply(this,arguments)};S.prototype=w}}(),m.lib.WordArray)},740:function(ae,f,y){var m;ae.exports=(m=y(8648),function(h){var _=m,w=_.lib,k=w.WordArray,S=w.Hasher,$=_.algo,p=[];!function(){for(var N=0;N<64;N++)p[N]=4294967296*h.abs(h.sin(N+1))|0}();var I=$.MD5=S.extend({_doReset:function(){this._hash=new k.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(N,b){for(var W=0;W<16;W++){var G=b+W,T=N[G];N[G]=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8)}var O=this._hash.words,Q=N[b+0],Y=N[b+1],X=N[b+2],Z=N[b+3],re=N[b+4],J=N[b+5],ee=N[b+6],z=N[b+7],M=N[b+8],V=N[b+9],R=N[b+10],L=N[b+11],ne=N[b+12],oe=N[b+13],de=N[b+14],Ce=N[b+15],D=O[0],F=O[1],B=O[2],j=O[3];D=H(D,F,B,j,Q,7,p[0]),j=H(j,D,F,B,Y,12,p[1]),B=H(B,j,D,F,X,17,p[2]),F=H(F,B,j,D,Z,22,p[3]),D=H(D,F,B,j,re,7,p[4]),j=H(j,D,F,B,J,12,p[5]),B=H(B,j,D,F,ee,17,p[6]),F=H(F,B,j,D,z,22,p[7]),D=H(D,F,B,j,M,7,p[8]),j=H(j,D,F,B,V,12,p[9]),B=H(B,j,D,F,R,17,p[10]),F=H(F,B,j,D,L,22,p[11]),D=H(D,F,B,j,ne,7,p[12]),j=H(j,D,F,B,oe,12,p[13]),B=H(B,j,D,F,de,17,p[14]),D=P(D,F=H(F,B,j,D,Ce,22,p[15]),B,j,Y,5,p[16]),j=P(j,D,F,B,ee,9,p[17]),B=P(B,j,D,F,L,14,p[18]),F=P(F,B,j,D,Q,20,p[19]),D=P(D,F,B,j,J,5,p[20]),j=P(j,D,F,B,R,9,p[21]),B=P(B,j,D,F,Ce,14,p[22]),F=P(F,B,j,D,re,20,p[23]),D=P(D,F,B,j,V,5,p[24]),j=P(j,D,F,B,de,9,p[25]),B=P(B,j,D,F,Z,14,p[26]),F=P(F,B,j,D,M,20,p[27]),D=P(D,F,B,j,oe,5,p[28]),j=P(j,D,F,B,X,9,p[29]),B=P(B,j,D,F,z,14,p[30]),D=C(D,F=P(F,B,j,D,ne,20,p[31]),B,j,J,4,p[32]),j=C(j,D,F,B,M,11,p[33]),B=C(B,j,D,F,L,16,p[34]),F=C(F,B,j,D,de,23,p[35]),D=C(D,F,B,j,Y,4,p[36]),j=C(j,D,F,B,re,11,p[37]),B=C(B,j,D,F,z,16,p[38]),F=C(F,B,j,D,R,23,p[39]),D=C(D,F,B,j,oe,4,p[40]),j=C(j,D,F,B,Q,11,p[41]),B=C(B,j,D,F,Z,16,p[42]),F=C(F,B,j,D,ee,23,p[43]),D=C(D,F,B,j,V,4,p[44]),j=C(j,D,F,B,ne,11,p[45]),B=C(B,j,D,F,Ce,16,p[46]),D=x(D,F=C(F,B,j,D,X,23,p[47]),B,j,Q,6,p[48]),j=x(j,D,F,B,z,10,p[49]),B=x(B,j,D,F,de,15,p[50]),F=x(F,B,j,D,J,21,p[51]),D=x(D,F,B,j,ne,6,p[52]),j=x(j,D,F,B,Z,10,p[53]),B=x(B,j,D,F,R,15,p[54]),F=x(F,B,j,D,Y,21,p[55]),D=x(D,F,B,j,M,6,p[56]),j=x(j,D,F,B,Ce,10,p[57]),B=x(B,j,D,F,ee,15,p[58]),F=x(F,B,j,D,oe,21,p[59]),D=x(D,F,B,j,re,6,p[60]),j=x(j,D,F,B,L,10,p[61]),B=x(B,j,D,F,X,15,p[62]),F=x(F,B,j,D,V,21,p[63]),O[0]=O[0]+D|0,O[1]=O[1]+F|0,O[2]=O[2]+B|0,O[3]=O[3]+j|0},_doFinalize:function(){var N=this._data,b=N.words,W=8*this._nDataBytes,G=8*N.sigBytes;b[G>>>5]|=128<<24-G%32;var T=h.floor(W/4294967296),O=W;b[15+(G+64>>>9<<4)]=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8),b[14+(G+64>>>9<<4)]=16711935&(O<<8|O>>>24)|4278255360&(O<<24|O>>>8),N.sigBytes=4*(b.length+1),this._process();for(var Q=this._hash,Y=Q.words,X=0;X<4;X++){var Z=Y[X];Y[X]=16711935&(Z<<8|Z>>>24)|4278255360&(Z<<24|Z>>>8)}return Q},clone:function(){var N=S.clone.call(this);return N._hash=this._hash.clone(),N}});function H(N,b,W,G,T,O,Q){var Y=N+(b&W|~b&G)+T+Q;return(Y<>>32-O)+b}function P(N,b,W,G,T,O,Q){var Y=N+(b&G|W&~G)+T+Q;return(Y<>>32-O)+b}function C(N,b,W,G,T,O,Q){var Y=N+(b^W^G)+T+Q;return(Y<>>32-O)+b}function x(N,b,W,G,T,O,Q){var Y=N+(W^(b|~G))+T+Q;return(Y<>>32-O)+b}_.MD5=S._createHelper(I),_.HmacMD5=S._createHmacHelper(I)}(Math),m.MD5)},5436:function(ae,f,y){var m;ae.exports=(m=y(8648),y(7904),m.mode.CFB=function(){var h=m.lib.BlockCipherMode.extend();function _(w,k,S,$){var p,I=this._iv;I?(p=I.slice(0),this._iv=void 0):p=this._prevBlock,$.encryptBlock(p,0);for(var H=0;H>24&255)){var $=S>>16&255,p=S>>8&255,I=255&S;255===$?($=0,255===p?(p=0,255===I?I=0:++I):++p):++$,S=0,S+=$<<16,S+=p<<8,S+=I}else S+=1<<24;return S}var k=h.Encryptor=h.extend({processBlock:function(S,$){var p=this._cipher,I=p.blockSize,H=this._iv,P=this._counter;H&&(P=this._counter=H.slice(0),this._iv=void 0),function w(S){return 0===(S[0]=_(S[0]))&&(S[1]=_(S[1])),S}(P);var C=P.slice(0);p.encryptBlock(C,0);for(var x=0;x>>2]|=S<<24-$%4*8,h.sigBytes+=S},unpad:function(h){h.sigBytes-=255&h.words[h.sigBytes-1>>>2]}},m.pad.Ansix923)},2824:function(ae,f,y){var m;ae.exports=(m=y(8648),y(7904),m.pad.Iso10126={pad:function(h,_){var w=4*_,k=w-h.sigBytes%w;h.concat(m.lib.WordArray.random(k-1)).concat(m.lib.WordArray.create([k<<24],1))},unpad:function(h){h.sigBytes-=255&h.words[h.sigBytes-1>>>2]}},m.pad.Iso10126)},4236:function(ae,f,y){var m;ae.exports=(m=y(8648),y(7904),m.pad.Iso97971={pad:function(h,_){h.concat(m.lib.WordArray.create([2147483648],1)),m.pad.ZeroPadding.pad(h,_)},unpad:function(h){m.pad.ZeroPadding.unpad(h),h.sigBytes--}},m.pad.Iso97971)},968:function(ae,f,y){var m;ae.exports=(m=y(8648),y(7904),m.pad.NoPadding={pad:function(){},unpad:function(){}},m.pad.NoPadding)},1632:function(ae,f,y){var m;ae.exports=(m=y(8648),y(7904),m.pad.ZeroPadding={pad:function(h,_){var w=4*_;h.clamp(),h.sigBytes+=w-(h.sigBytes%w||w)},unpad:function(h){var _=h.words,w=h.sigBytes-1;for(w=h.sigBytes-1;w>=0;w--)if(_[w>>>2]>>>24-w%4*8&255){h.sigBytes=w+1;break}}},m.pad.ZeroPadding)},6760:function(ae,f,y){var h,_,w,k,S,p,I,m;ae.exports=(m=y(8648),y(3504),y(5620),k=(_=(h=m).lib).WordArray,p=(S=h.algo).HMAC,I=S.PBKDF2=(w=_.Base).extend({cfg:w.extend({keySize:4,hasher:S.SHA256,iterations:25e4}),init:function(H){this.cfg=this.cfg.extend(H)},compute:function(H,P){for(var C=this.cfg,x=p.create(C.hasher,H),N=k.create(),b=k.create([1]),W=N.words,G=b.words,T=C.keySize,O=C.iterations;W.length>>16,P[1],P[0]<<16|P[3]>>>16,P[2],P[1]<<16|P[0]>>>16,P[3],P[2]<<16|P[1]>>>16],N=this._C=[P[2]<<16|P[2]>>>16,4294901760&P[0]|65535&P[1],P[3]<<16|P[3]>>>16,4294901760&P[1]|65535&P[2],P[0]<<16|P[0]>>>16,4294901760&P[2]|65535&P[3],P[1]<<16|P[1]>>>16,4294901760&P[3]|65535&P[0]];this._b=0;for(var b=0;b<4;b++)H.call(this);for(b=0;b<8;b++)N[b]^=x[b+4&7];if(C){var W=C.words,G=W[0],T=W[1],O=16711935&(G<<8|G>>>24)|4278255360&(G<<24|G>>>8),Q=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8),Y=O>>>16|4294901760&Q,X=Q<<16|65535&O;for(N[0]^=O,N[1]^=Y,N[2]^=Q,N[3]^=X,N[4]^=O,N[5]^=Y,N[6]^=Q,N[7]^=X,b=0;b<4;b++)H.call(this)}},_doProcessBlock:function(P,C){var x=this._X;H.call(this),S[0]=x[0]^x[5]>>>16^x[3]<<16,S[1]=x[2]^x[7]>>>16^x[5]<<16,S[2]=x[4]^x[1]>>>16^x[7]<<16,S[3]=x[6]^x[3]>>>16^x[1]<<16;for(var N=0;N<4;N++)S[N]=16711935&(S[N]<<8|S[N]>>>24)|4278255360&(S[N]<<24|S[N]>>>8),P[C+N]^=S[N]},blockSize:4,ivSize:2});function H(){for(var P=this._X,C=this._C,x=0;x<8;x++)$[x]=C[x];for(C[0]=C[0]+1295307597+this._b|0,C[1]=C[1]+3545052371+(C[0]>>>0<$[0]>>>0?1:0)|0,C[2]=C[2]+886263092+(C[1]>>>0<$[1]>>>0?1:0)|0,C[3]=C[3]+1295307597+(C[2]>>>0<$[2]>>>0?1:0)|0,C[4]=C[4]+3545052371+(C[3]>>>0<$[3]>>>0?1:0)|0,C[5]=C[5]+886263092+(C[4]>>>0<$[4]>>>0?1:0)|0,C[6]=C[6]+1295307597+(C[5]>>>0<$[5]>>>0?1:0)|0,C[7]=C[7]+3545052371+(C[6]>>>0<$[6]>>>0?1:0)|0,this._b=C[7]>>>0<$[7]>>>0?1:0,x=0;x<8;x++){var N=P[x]+C[x],b=65535&N,W=N>>>16;p[x]=((b*b>>>17)+b*W>>>15)+W*W^((4294901760&N)*N|0)+((65535&N)*N|0)}P[0]=p[0]+(p[7]<<16|p[7]>>>16)+(p[6]<<16|p[6]>>>16)|0,P[1]=p[1]+(p[0]<<8|p[0]>>>24)+p[7]|0,P[2]=p[2]+(p[1]<<16|p[1]>>>16)+(p[0]<<16|p[0]>>>16)|0,P[3]=p[3]+(p[2]<<8|p[2]>>>24)+p[1]|0,P[4]=p[4]+(p[3]<<16|p[3]>>>16)+(p[2]<<16|p[2]>>>16)|0,P[5]=p[5]+(p[4]<<8|p[4]>>>24)+p[3]|0,P[6]=p[6]+(p[5]<<16|p[5]>>>16)+(p[4]<<16|p[4]>>>16)|0,P[7]=p[7]+(p[6]<<8|p[6]>>>24)+p[5]|0}h.RabbitLegacy=w._createHelper(I)}(),m.RabbitLegacy)},5104:function(ae,f,y){var m;ae.exports=(m=y(8648),y(8872),y(740),y(9755),y(7904),function(){var h=m,w=h.lib.StreamCipher,S=[],$=[],p=[],I=h.algo.Rabbit=w.extend({_doReset:function(){for(var P=this._key.words,C=this.cfg.iv,x=0;x<4;x++)P[x]=16711935&(P[x]<<8|P[x]>>>24)|4278255360&(P[x]<<24|P[x]>>>8);var N=this._X=[P[0],P[3]<<16|P[2]>>>16,P[1],P[0]<<16|P[3]>>>16,P[2],P[1]<<16|P[0]>>>16,P[3],P[2]<<16|P[1]>>>16],b=this._C=[P[2]<<16|P[2]>>>16,4294901760&P[0]|65535&P[1],P[3]<<16|P[3]>>>16,4294901760&P[1]|65535&P[2],P[0]<<16|P[0]>>>16,4294901760&P[2]|65535&P[3],P[1]<<16|P[1]>>>16,4294901760&P[3]|65535&P[0]];for(this._b=0,x=0;x<4;x++)H.call(this);for(x=0;x<8;x++)b[x]^=N[x+4&7];if(C){var W=C.words,G=W[0],T=W[1],O=16711935&(G<<8|G>>>24)|4278255360&(G<<24|G>>>8),Q=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8),Y=O>>>16|4294901760&Q,X=Q<<16|65535&O;for(b[0]^=O,b[1]^=Y,b[2]^=Q,b[3]^=X,b[4]^=O,b[5]^=Y,b[6]^=Q,b[7]^=X,x=0;x<4;x++)H.call(this)}},_doProcessBlock:function(P,C){var x=this._X;H.call(this),S[0]=x[0]^x[5]>>>16^x[3]<<16,S[1]=x[2]^x[7]>>>16^x[5]<<16,S[2]=x[4]^x[1]>>>16^x[7]<<16,S[3]=x[6]^x[3]>>>16^x[1]<<16;for(var N=0;N<4;N++)S[N]=16711935&(S[N]<<8|S[N]>>>24)|4278255360&(S[N]<<24|S[N]>>>8),P[C+N]^=S[N]},blockSize:4,ivSize:2});function H(){for(var P=this._X,C=this._C,x=0;x<8;x++)$[x]=C[x];for(C[0]=C[0]+1295307597+this._b|0,C[1]=C[1]+3545052371+(C[0]>>>0<$[0]>>>0?1:0)|0,C[2]=C[2]+886263092+(C[1]>>>0<$[1]>>>0?1:0)|0,C[3]=C[3]+1295307597+(C[2]>>>0<$[2]>>>0?1:0)|0,C[4]=C[4]+3545052371+(C[3]>>>0<$[3]>>>0?1:0)|0,C[5]=C[5]+886263092+(C[4]>>>0<$[4]>>>0?1:0)|0,C[6]=C[6]+1295307597+(C[5]>>>0<$[5]>>>0?1:0)|0,C[7]=C[7]+3545052371+(C[6]>>>0<$[6]>>>0?1:0)|0,this._b=C[7]>>>0<$[7]>>>0?1:0,x=0;x<8;x++){var N=P[x]+C[x],b=65535&N,W=N>>>16;p[x]=((b*b>>>17)+b*W>>>15)+W*W^((4294901760&N)*N|0)+((65535&N)*N|0)}P[0]=p[0]+(p[7]<<16|p[7]>>>16)+(p[6]<<16|p[6]>>>16)|0,P[1]=p[1]+(p[0]<<8|p[0]>>>24)+p[7]|0,P[2]=p[2]+(p[1]<<16|p[1]>>>16)+(p[0]<<16|p[0]>>>16)|0,P[3]=p[3]+(p[2]<<8|p[2]>>>24)+p[1]|0,P[4]=p[4]+(p[3]<<16|p[3]>>>16)+(p[2]<<16|p[2]>>>16)|0,P[5]=p[5]+(p[4]<<8|p[4]>>>24)+p[3]|0,P[6]=p[6]+(p[5]<<16|p[5]>>>16)+(p[4]<<16|p[4]>>>16)|0,P[7]=p[7]+(p[6]<<8|p[6]>>>24)+p[5]|0}h.Rabbit=w._createHelper(I)}(),m.Rabbit)},7868:function(ae,f,y){var m;ae.exports=(m=y(8648),y(8872),y(740),y(9755),y(7904),function(){var h=m,w=h.lib.StreamCipher,k=h.algo,S=k.RC4=w.extend({_doReset:function(){for(var I=this._key,H=I.words,P=I.sigBytes,C=this._S=[],x=0;x<256;x++)C[x]=x;x=0;for(var N=0;x<256;x++){var b=x%P,G=C[x];C[x]=C[N=(N+C[x]+(H[b>>>2]>>>24-b%4*8&255))%256],C[N]=G}this._i=this._j=0},_doProcessBlock:function(I,H){I[H]^=$.call(this)},keySize:8,ivSize:0});function $(){for(var I=this._S,H=this._i,P=this._j,C=0,x=0;x<4;x++){var N=I[H=(H+1)%256];I[H]=I[P=(P+I[H])%256],I[P]=N,C|=I[(I[H]+I[P])%256]<<24-8*x}return this._i=H,this._j=P,C}h.RC4=w._createHelper(S);var p=k.RC4Drop=S.extend({cfg:S.cfg.extend({drop:192}),_doReset:function(){S._doReset.call(this);for(var I=this.cfg.drop;I>0;I--)$.call(this)}});h.RC4Drop=w._createHelper(p)}(),m.RC4)},6576:function(ae,f,y){var m;ae.exports=(m=y(8648),function(h){var _=m,w=_.lib,k=w.WordArray,S=w.Hasher,$=_.algo,p=k.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),I=k.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),H=k.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),P=k.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),C=k.create([0,1518500249,1859775393,2400959708,2840853838]),x=k.create([1352829926,1548603684,1836072691,2053994217,0]),N=$.RIPEMD160=S.extend({_doReset:function(){this._hash=k.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(Y,X){for(var Z=0;Z<16;Z++){var re=X+Z,J=Y[re];Y[re]=16711935&(J<<8|J>>>24)|4278255360&(J<<24|J>>>8)}var oe,de,Ce,D,F,B,j,te,ie,fe,ce,ee=this._hash.words,z=C.words,M=x.words,V=p.words,R=I.words,L=H.words,ne=P.words;for(B=oe=ee[0],j=de=ee[1],te=Ce=ee[2],ie=D=ee[3],fe=F=ee[4],Z=0;Z<80;Z+=1)ce=oe+Y[X+V[Z]]|0,ce+=Z<16?b(de,Ce,D)+z[0]:Z<32?W(de,Ce,D)+z[1]:Z<48?G(de,Ce,D)+z[2]:Z<64?T(de,Ce,D)+z[3]:O(de,Ce,D)+z[4],ce=(ce=Q(ce|=0,L[Z]))+F|0,oe=F,F=D,D=Q(Ce,10),Ce=de,de=ce,ce=B+Y[X+R[Z]]|0,ce+=Z<16?O(j,te,ie)+M[0]:Z<32?T(j,te,ie)+M[1]:Z<48?G(j,te,ie)+M[2]:Z<64?W(j,te,ie)+M[3]:b(j,te,ie)+M[4],ce=(ce=Q(ce|=0,ne[Z]))+fe|0,B=fe,fe=ie,ie=Q(te,10),te=j,j=ce;ce=ee[1]+Ce+ie|0,ee[1]=ee[2]+D+fe|0,ee[2]=ee[3]+F+B|0,ee[3]=ee[4]+oe+j|0,ee[4]=ee[0]+de+te|0,ee[0]=ce},_doFinalize:function(){var Y=this._data,X=Y.words,Z=8*this._nDataBytes,re=8*Y.sigBytes;X[re>>>5]|=128<<24-re%32,X[14+(re+64>>>9<<4)]=16711935&(Z<<8|Z>>>24)|4278255360&(Z<<24|Z>>>8),Y.sigBytes=4*(X.length+1),this._process();for(var J=this._hash,ee=J.words,z=0;z<5;z++){var M=ee[z];ee[z]=16711935&(M<<8|M>>>24)|4278255360&(M<<24|M>>>8)}return J},clone:function(){var Y=S.clone.call(this);return Y._hash=this._hash.clone(),Y}});function b(Y,X,Z){return Y^X^Z}function W(Y,X,Z){return Y&X|~Y&Z}function G(Y,X,Z){return(Y|~X)^Z}function T(Y,X,Z){return Y&Z|X&~Z}function O(Y,X,Z){return Y^(X|~Z)}function Q(Y,X){return Y<>>32-X}_.RIPEMD160=S._createHelper(N),_.HmacRIPEMD160=S._createHmacHelper(N)}(Math),m.RIPEMD160)},6488:function(ae,f,y){var h,_,w,k,$,p,m;ae.exports=(m=y(8648),w=(_=(h=m).lib).WordArray,$=[],p=h.algo.SHA1=(k=_.Hasher).extend({_doReset:function(){this._hash=new w.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(I,H){for(var P=this._hash.words,C=P[0],x=P[1],N=P[2],b=P[3],W=P[4],G=0;G<80;G++){if(G<16)$[G]=0|I[H+G];else{var T=$[G-3]^$[G-8]^$[G-14]^$[G-16];$[G]=T<<1|T>>>31}var O=(C<<5|C>>>27)+W+$[G];O+=G<20?1518500249+(x&N|~x&b):G<40?1859775393+(x^N^b):G<60?(x&N|x&b|N&b)-1894007588:(x^N^b)-899497514,W=b,b=N,N=x<<30|x>>>2,x=C,C=O}P[0]=P[0]+C|0,P[1]=P[1]+x|0,P[2]=P[2]+N|0,P[3]=P[3]+b|0,P[4]=P[4]+W|0},_doFinalize:function(){var I=this._data,H=I.words,P=8*this._nDataBytes,C=8*I.sigBytes;return H[C>>>5]|=128<<24-C%32,H[14+(C+64>>>9<<4)]=Math.floor(P/4294967296),H[15+(C+64>>>9<<4)]=P,I.sigBytes=4*H.length,this._process(),this._hash},clone:function(){var I=k.clone.call(this);return I._hash=this._hash.clone(),I}}),h.SHA1=k._createHelper(p),h.HmacSHA1=k._createHmacHelper(p),m.SHA1)},9576:function(ae,f,y){var h,w,k,S,$,m;ae.exports=(m=y(8648),y(3504),w=(h=m).lib.WordArray,$=(k=h.algo).SHA224=(S=k.SHA256).extend({_doReset:function(){this._hash=new w.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var p=S._doFinalize.call(this);return p.sigBytes-=4,p}}),h.SHA224=S._createHelper($),h.HmacSHA224=S._createHmacHelper($),m.SHA224)},3504:function(ae,f,y){var m;ae.exports=(m=y(8648),function(h){var _=m,w=_.lib,k=w.WordArray,S=w.Hasher,$=_.algo,p=[],I=[];!function(){function C(W){for(var G=h.sqrt(W),T=2;T<=G;T++)if(!(W%T))return!1;return!0}function x(W){return 4294967296*(W-(0|W))|0}for(var N=2,b=0;b<64;)C(N)&&(b<8&&(p[b]=x(h.pow(N,.5))),I[b]=x(h.pow(N,1/3)),b++),N++}();var H=[],P=$.SHA256=S.extend({_doReset:function(){this._hash=new k.init(p.slice(0))},_doProcessBlock:function(C,x){for(var N=this._hash.words,b=N[0],W=N[1],G=N[2],T=N[3],O=N[4],Q=N[5],Y=N[6],X=N[7],Z=0;Z<64;Z++){if(Z<16)H[Z]=0|C[x+Z];else{var re=H[Z-15],ee=H[Z-2];H[Z]=((re<<25|re>>>7)^(re<<14|re>>>18)^re>>>3)+H[Z-7]+((ee<<15|ee>>>17)^(ee<<13|ee>>>19)^ee>>>10)+H[Z-16]}var V=b&W^b&G^W&G,ne=X+((O<<26|O>>>6)^(O<<21|O>>>11)^(O<<7|O>>>25))+(O&Q^~O&Y)+I[Z]+H[Z];X=Y,Y=Q,Q=O,O=T+ne|0,T=G,G=W,W=b,b=ne+(((b<<30|b>>>2)^(b<<19|b>>>13)^(b<<10|b>>>22))+V)|0}N[0]=N[0]+b|0,N[1]=N[1]+W|0,N[2]=N[2]+G|0,N[3]=N[3]+T|0,N[4]=N[4]+O|0,N[5]=N[5]+Q|0,N[6]=N[6]+Y|0,N[7]=N[7]+X|0},_doFinalize:function(){var C=this._data,x=C.words,N=8*this._nDataBytes,b=8*C.sigBytes;return x[b>>>5]|=128<<24-b%32,x[14+(b+64>>>9<<4)]=h.floor(N/4294967296),x[15+(b+64>>>9<<4)]=N,C.sigBytes=4*x.length,this._process(),this._hash},clone:function(){var C=S.clone.call(this);return C._hash=this._hash.clone(),C}});_.SHA256=S._createHelper(P),_.HmacSHA256=S._createHmacHelper(P)}(Math),m.SHA256)},4808:function(ae,f,y){var m;ae.exports=(m=y(8648),y(6744),function(h){var _=m,w=_.lib,k=w.WordArray,S=w.Hasher,p=_.x64.Word,I=_.algo,H=[],P=[],C=[];!function(){for(var b=1,W=0,G=0;G<24;G++){H[b+5*W]=(G+1)*(G+2)/2%64;var O=(2*b+3*W)%5;b=W%5,W=O}for(b=0;b<5;b++)for(W=0;W<5;W++)P[b+5*W]=W+(2*b+3*W)%5*5;for(var Q=1,Y=0;Y<24;Y++){for(var X=0,Z=0,re=0;re<7;re++){if(1&Q){var J=(1<>>24)|4278255360&(Q<<24|Q>>>8),(X=G[O]).high^=Y=16711935&(Y<<8|Y>>>24)|4278255360&(Y<<24|Y>>>8),X.low^=Q}for(var Z=0;Z<24;Z++){for(var re=0;re<5;re++){for(var J=0,ee=0,z=0;z<5;z++)J^=(X=G[re+5*z]).high,ee^=X.low;var M=x[re];M.high=J,M.low=ee}for(re=0;re<5;re++){var V=x[(re+4)%5],R=x[(re+1)%5],L=R.high,ne=R.low;for(J=V.high^(L<<1|ne>>>31),ee=V.low^(ne<<1|L>>>31),z=0;z<5;z++)(X=G[re+5*z]).high^=J,X.low^=ee}for(var oe=1;oe<25;oe++){var de=(X=G[oe]).high,Ce=X.low,D=H[oe];D<32?(J=de<>>32-D,ee=Ce<>>32-D):(J=Ce<>>64-D,ee=de<>>64-D);var F=x[P[oe]];F.high=J,F.low=ee}var B=x[0],j=G[0];for(B.high=j.high,B.low=j.low,re=0;re<5;re++)for(z=0;z<5;z++){var te=x[oe=re+5*z],ie=x[(re+1)%5+5*z],fe=x[(re+2)%5+5*z];(X=G[oe]).high=te.high^~ie.high&fe.high,X.low=te.low^~ie.low&fe.low}var X,ce=C[Z];(X=G[0]).high^=ce.high,X.low^=ce.low}},_doFinalize:function(){var b=this._data,W=b.words,T=8*b.sigBytes,O=32*this.blockSize;W[T>>>5]|=1<<24-T%32,W[(h.ceil((T+1)/O)*O>>>5)-1]|=128,b.sigBytes=4*W.length,this._process();for(var Q=this._state,Y=this.cfg.outputLength/8,X=Y/8,Z=[],re=0;re>>24)|4278255360&(ee<<24|ee>>>8),Z.push(z=16711935&(z<<8|z>>>24)|4278255360&(z<<24|z>>>8)),Z.push(ee)}return new k.init(Z,Y)},clone:function(){for(var b=S.clone.call(this),W=b._state=this._state.slice(0),G=0;G<25;G++)W[G]=W[G].clone();return b}});_.SHA3=S._createHelper(N),_.HmacSHA3=S._createHmacHelper(N)}(Math),m.SHA3)},2712:function(ae,f,y){var h,_,w,k,S,$,p,m;ae.exports=(m=y(8648),y(6744),y(7348),w=(_=(h=m).x64).Word,k=_.WordArray,p=(S=h.algo).SHA384=($=S.SHA512).extend({_doReset:function(){this._hash=new k.init([new w.init(3418070365,3238371032),new w.init(1654270250,914150663),new w.init(2438529370,812702999),new w.init(355462360,4144912697),new w.init(1731405415,4290775857),new w.init(2394180231,1750603025),new w.init(3675008525,1694076839),new w.init(1203062813,3204075428)])},_doFinalize:function(){var I=$._doFinalize.call(this);return I.sigBytes-=16,I}}),h.SHA384=$._createHelper(p),h.HmacSHA384=$._createHmacHelper(p),m.SHA384)},7348:function(ae,f,y){var m;ae.exports=(m=y(8648),y(6744),function(){var h=m,w=h.lib.Hasher,k=h.x64,S=k.Word,$=k.WordArray,p=h.algo;function I(){return S.create.apply(S,arguments)}var H=[I(1116352408,3609767458),I(1899447441,602891725),I(3049323471,3964484399),I(3921009573,2173295548),I(961987163,4081628472),I(1508970993,3053834265),I(2453635748,2937671579),I(2870763221,3664609560),I(3624381080,2734883394),I(310598401,1164996542),I(607225278,1323610764),I(1426881987,3590304994),I(1925078388,4068182383),I(2162078206,991336113),I(2614888103,633803317),I(3248222580,3479774868),I(3835390401,2666613458),I(4022224774,944711139),I(264347078,2341262773),I(604807628,2007800933),I(770255983,1495990901),I(1249150122,1856431235),I(1555081692,3175218132),I(1996064986,2198950837),I(2554220882,3999719339),I(2821834349,766784016),I(2952996808,2566594879),I(3210313671,3203337956),I(3336571891,1034457026),I(3584528711,2466948901),I(113926993,3758326383),I(338241895,168717936),I(666307205,1188179964),I(773529912,1546045734),I(1294757372,1522805485),I(1396182291,2643833823),I(1695183700,2343527390),I(1986661051,1014477480),I(2177026350,1206759142),I(2456956037,344077627),I(2730485921,1290863460),I(2820302411,3158454273),I(3259730800,3505952657),I(3345764771,106217008),I(3516065817,3606008344),I(3600352804,1432725776),I(4094571909,1467031594),I(275423344,851169720),I(430227734,3100823752),I(506948616,1363258195),I(659060556,3750685593),I(883997877,3785050280),I(958139571,3318307427),I(1322822218,3812723403),I(1537002063,2003034995),I(1747873779,3602036899),I(1955562222,1575990012),I(2024104815,1125592928),I(2227730452,2716904306),I(2361852424,442776044),I(2428436474,593698344),I(2756734187,3733110249),I(3204031479,2999351573),I(3329325298,3815920427),I(3391569614,3928383900),I(3515267271,566280711),I(3940187606,3454069534),I(4118630271,4000239992),I(116418474,1914138554),I(174292421,2731055270),I(289380356,3203993006),I(460393269,320620315),I(685471733,587496836),I(852142971,1086792851),I(1017036298,365543100),I(1126000580,2618297676),I(1288033470,3409855158),I(1501505948,4234509866),I(1607167915,987167468),I(1816402316,1246189591)],P=[];!function(){for(var x=0;x<80;x++)P[x]=I()}();var C=p.SHA512=w.extend({_doReset:function(){this._hash=new $.init([new S.init(1779033703,4089235720),new S.init(3144134277,2227873595),new S.init(1013904242,4271175723),new S.init(2773480762,1595750129),new S.init(1359893119,2917565137),new S.init(2600822924,725511199),new S.init(528734635,4215389547),new S.init(1541459225,327033209)])},_doProcessBlock:function(x,N){for(var b=this._hash.words,W=b[0],G=b[1],T=b[2],O=b[3],Q=b[4],Y=b[5],X=b[6],Z=b[7],re=W.high,J=W.low,ee=G.high,z=G.low,M=T.high,V=T.low,R=O.high,L=O.low,ne=Q.high,oe=Q.low,de=Y.high,Ce=Y.low,D=X.high,F=X.low,B=Z.high,j=Z.low,te=re,ie=J,fe=ee,ce=z,ye=M,pe=V,Ee=R,Re=L,Me=ne,Ae=oe,Be=de,Ve=Ce,Te=D,Le=F,Qe=B,Dt=j,pt=0;pt<80;pt++){var ut,an,rr=P[pt];if(pt<16)an=rr.high=0|x[N+2*pt],ut=rr.low=0|x[N+2*pt+1];else{var Bn=P[pt-15],Dr=Bn.high,Vr=Bn.low,wo=(Vr>>>1|Dr<<31)^(Vr>>>8|Dr<<24)^(Vr>>>7|Dr<<25),Pt=P[pt-2],Ht=Pt.high,Rn=Pt.low,Ar=(Rn>>>19|Ht<<13)^(Rn<<3|Ht>>>29)^(Rn>>>6|Ht<<26),Fn=P[pt-7],ls=P[pt-16],Ys=ls.low;rr.high=an=(an=(an=((Dr>>>1|Vr<<31)^(Dr>>>8|Vr<<24)^Dr>>>7)+Fn.high+((ut=wo+Fn.low)>>>0>>0?1:0))+((Ht>>>19|Rn<<13)^(Ht<<3|Rn>>>29)^Ht>>>6)+((ut+=Ar)>>>0>>0?1:0))+ls.high+((ut+=Ys)>>>0>>0?1:0),rr.low=ut}var Hn,P0=Me&Be^~Me&Te,Xs=Ae&Ve^~Ae&Le,Qo=te&fe^te&ye^fe&ye,cn=(ie>>>28|te<<4)^(ie<<30|te>>>2)^(ie<<25|te>>>7),Yu=H[pt],en=Yu.low,ln=Qe+((Me>>>14|Ae<<18)^(Me>>>18|Ae<<14)^(Me<<23|Ae>>>9))+((Hn=Dt+((Ae>>>14|Me<<18)^(Ae>>>18|Me<<14)^(Ae<<23|Me>>>9)))>>>0
>>0?1:0),kc=cn+(ie&ce^ie&pe^ce&pe);Qe=Te,Dt=Le,Te=Be,Le=Ve,Be=Me,Ve=Ae,Me=Ee+(ln=(ln=(ln=ln+P0+((Hn+=Xs)>>>0>>0?1:0))+Yu.high+((Hn+=en)>>>0>>0?1:0))+an+((Hn+=ut)>>>0>>0?1:0))+((Ae=Re+Hn|0)>>>0>>0?1:0)|0,Ee=ye,Re=pe,ye=fe,pe=ce,fe=te,ce=ie,te=ln+(((te>>>28|ie<<4)^(te<<30|ie>>>2)^(te<<25|ie>>>7))+Qo+(kc>>>0>>0?1:0))+((ie=Hn+kc|0)>>>0>>0?1:0)|0}J=W.low=J+ie,W.high=re+te+(J>>>0>>0?1:0),z=G.low=z+ce,G.high=ee+fe+(z>>>0>>0?1:0),V=T.low=V+pe,T.high=M+ye+(V>>>0>>0?1:0),L=O.low=L+Re,O.high=R+Ee+(L>>>0>>0?1:0),oe=Q.low=oe+Ae,Q.high=ne+Me+(oe>>>0>>0?1:0),Ce=Y.low=Ce+Ve,Y.high=de+Be+(Ce>>>0>>0?1:0),F=X.low=F+Le,X.high=D+Te+(F>>>0>>0?1:0),j=Z.low=j+Dt,Z.high=B+Qe+(j>>>0
>>0?1:0)},_doFinalize:function(){var x=this._data,N=x.words,b=8*this._nDataBytes,W=8*x.sigBytes;return N[W>>>5]|=128<<24-W%32,N[30+(W+128>>>10<<5)]=Math.floor(b/4294967296),N[31+(W+128>>>10<<5)]=b,x.sigBytes=4*N.length,this._process(),this._hash.toX32()},clone:function(){var x=w.clone.call(this);return x._hash=this._hash.clone(),x},blockSize:32});h.SHA512=w._createHelper(C),h.HmacSHA512=w._createHmacHelper(C)}(),m.SHA512)},2636:function(ae,f,y){var m;ae.exports=(m=y(8648),y(8872),y(740),y(9755),y(7904),function(){var h=m,_=h.lib,w=_.WordArray,k=_.BlockCipher,S=h.algo,$=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],p=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],I=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],H=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],P=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],C=S.DES=k.extend({_doReset:function(){for(var G=this._key.words,T=[],O=0;O<56;O++){var Q=$[O]-1;T[O]=G[Q>>>5]>>>31-Q%32&1}for(var Y=this._subKeys=[],X=0;X<16;X++){var Z=Y[X]=[],re=I[X];for(O=0;O<24;O++)Z[O/6|0]|=T[(p[O]-1+re)%28]<<31-O%6,Z[4+(O/6|0)]|=T[28+(p[O+24]-1+re)%28]<<31-O%6;for(Z[0]=Z[0]<<1|Z[0]>>>31,O=1;O<7;O++)Z[O]=Z[O]>>>4*(O-1)+3;Z[7]=Z[7]<<5|Z[7]>>>27}var J=this._invSubKeys=[];for(O=0;O<16;O++)J[O]=Y[15-O]},encryptBlock:function(W,G){this._doCryptBlock(W,G,this._subKeys)},decryptBlock:function(W,G){this._doCryptBlock(W,G,this._invSubKeys)},_doCryptBlock:function(W,G,T){this._lBlock=W[G],this._rBlock=W[G+1],x.call(this,4,252645135),x.call(this,16,65535),N.call(this,2,858993459),N.call(this,8,16711935),x.call(this,1,1431655765);for(var O=0;O<16;O++){for(var Q=T[O],Y=this._lBlock,X=this._rBlock,Z=0,re=0;re<8;re++)Z|=H[re][((X^Q[re])&P[re])>>>0];this._lBlock=X,this._rBlock=Y^Z}var J=this._lBlock;this._lBlock=this._rBlock,this._rBlock=J,x.call(this,1,1431655765),N.call(this,8,16711935),N.call(this,2,858993459),x.call(this,16,65535),x.call(this,4,252645135),W[G]=this._lBlock,W[G+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function x(W,G){var T=(this._lBlock>>>W^this._rBlock)&G;this._rBlock^=T,this._lBlock^=T<>>W^this._lBlock)&G;this._lBlock^=T,this._rBlock^=T<192.");var T=G.slice(0,2),O=G.length<4?G.slice(0,2):G.slice(2,4),Q=G.length<6?G.slice(0,2):G.slice(4,6);this._des1=C.createEncryptor(w.create(T)),this._des2=C.createEncryptor(w.create(O)),this._des3=C.createEncryptor(w.create(Q))},encryptBlock:function(W,G){this._des1.encryptBlock(W,G),this._des2.decryptBlock(W,G),this._des3.encryptBlock(W,G)},decryptBlock:function(W,G){this._des3.decryptBlock(W,G),this._des2.encryptBlock(W,G),this._des1.decryptBlock(W,G)},keySize:6,ivSize:2,blockSize:2});h.TripleDES=k._createHelper(b)}(),m.TripleDES)},6744:function(ae,f,y){var w,k,S,$,m;ae.exports=(m=y(8648),k=(w=m.lib).Base,S=w.WordArray,($=m.x64={}).Word=k.extend({init:function(H,P){this.high=H,this.low=P}}),$.WordArray=k.extend({init:function(H,P){H=this.words=H||[],this.sigBytes=null!=P?P:8*H.length},toX32:function(){for(var H=this.words,P=H.length,C=[],x=0;x{"use strict";var f={single_source_shortest_paths:function(y,m,h){var _={},w={};w[m]=0;var S,$,p,I,H,C,k=f.PriorityQueue.make();for(k.push(m,0);!k.empty();)for(p in I=(S=k.pop()).cost,H=y[$=S.value]||{})H.hasOwnProperty(p)&&(C=I+H[p],(typeof w[p]>"u"||w[p]>C)&&(w[p]=C,k.push(p,C),_[p]=$));if(typeof h<"u"&&typeof w[h]>"u"){var b=["Could not find a path from ",m," to ",h,"."].join("");throw new Error(b)}return _},extract_shortest_path_from_predecessor_list:function(y,m){for(var h=[],_=m;_;)h.push(_),_=y[_];return h.reverse(),h},find_path:function(y,m,h){var _=f.single_source_shortest_paths(y,m,h);return f.extract_shortest_path_from_predecessor_list(_,h)},PriorityQueue:{make:function(y){var _,m=f.PriorityQueue,h={};for(_ in y=y||{},m)m.hasOwnProperty(_)&&(h[_]=m[_]);return h.queue=[],h.sorter=y.sorter||m.default_sorter,h},default_sorter:function(y,m){return y.cost-m.cost},push:function(y,m){this.queue.push({value:y,cost:m}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};ae.exports=f},8940:ae=>{"use strict";ae.exports=function(y){for(var m=[],h=y.length,_=0;_=55296&&w<=56319&&h>_+1){var k=y.charCodeAt(_+1);k>=56320&&k<=57343&&(w=1024*(w-55296)+k-56320+65536,_+=1)}w<128?m.push(w):w<2048?(m.push(w>>6|192),m.push(63&w|128)):w<55296||w>=57344&&w<65536?(m.push(w>>12|224),m.push(w>>6&63|128),m.push(63&w|128)):w>=65536&&w<=1114111?(m.push(w>>18|240),m.push(w>>12&63|128),m.push(w>>6&63|128),m.push(63&w|128)):m.push(239,191,189)}return new Uint8Array(m).buffer}},4336:(ae,f,y)=>{const h=y(8072),_=y(8004),w=y(2384),k=y(9944);function S($,p,I,H,P){const C=[].slice.call(arguments,1),x=C.length,N="function"==typeof C[x-1];if(!N&&!h())throw new Error("Callback required as last argument");if(!N){if(x<1)throw new Error("Too few arguments provided");return 1===x?(I=p,p=H=void 0):2===x&&!p.getContext&&(H=I,I=p,p=void 0),new Promise(function(b,W){try{const G=_.create(I,H);b($(G,p,H))}catch(G){W(G)}})}if(x<2)throw new Error("Too few arguments provided");2===x?(P=I,I=p,p=H=void 0):3===x&&(p.getContext&&typeof P>"u"?(P=H,H=void 0):(P=H,H=I,I=p,p=void 0));try{const b=_.create(I,H);P(null,$(b,p,H))}catch(b){P(b)}}f.gH=S.bind(null,w.render),S.bind(null,w.renderToDataURL),S.bind(null,function($,p,I){return k.render($,I)})},8072:ae=>{ae.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},4936:(ae,f,y)=>{const m=y(8124).getSymbolSize;f.getRowColCoords=function(_){if(1===_)return[];const w=Math.floor(_/7)+2,k=m(_),S=145===k?26:2*Math.ceil((k-13)/(2*w-2)),$=[k-7];for(let p=1;p{const m=y(3612),h=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function _(w){this.mode=m.ALPHANUMERIC,this.data=w}_.getBitsLength=function(k){return 11*Math.floor(k/2)+k%2*6},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(k){let S;for(S=0;S+2<=this.data.length;S+=2){let $=45*h.indexOf(this.data[S]);$+=h.indexOf(this.data[S+1]),k.put($,11)}this.data.length%2&&k.put(h.indexOf(this.data[S]),6)},ae.exports=_},8980:ae=>{function f(){this.buffer=[],this.length=0}f.prototype={get:function(y){const m=Math.floor(y/8);return 1==(this.buffer[m]>>>7-y%8&1)},put:function(y,m){for(let h=0;h>>m-h-1&1))},getLengthInBits:function(){return this.length},putBit:function(y){const m=Math.floor(this.length/8);this.buffer.length<=m&&this.buffer.push(0),y&&(this.buffer[m]|=128>>>this.length%8),this.length++}},ae.exports=f},664:ae=>{function f(y){if(!y||y<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=y,this.data=new Uint8Array(y*y),this.reservedBit=new Uint8Array(y*y)}f.prototype.set=function(y,m,h,_){const w=y*this.size+m;this.data[w]=h,_&&(this.reservedBit[w]=!0)},f.prototype.get=function(y,m){return this.data[y*this.size+m]},f.prototype.xor=function(y,m,h){this.data[y*this.size+m]^=h},f.prototype.isReserved=function(y,m){return this.reservedBit[y*this.size+m]},ae.exports=f},4692:(ae,f,y)=>{const m=y(8940),h=y(3612);function _(w){this.mode=h.BYTE,"string"==typeof w&&(w=m(w)),this.data=new Uint8Array(w)}_.getBitsLength=function(k){return 8*k},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(w){for(let k=0,S=this.data.length;k{const m=y(5120),h=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],_=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];f.getBlocksCount=function(k,S){switch(S){case m.L:return h[4*(k-1)+0];case m.M:return h[4*(k-1)+1];case m.Q:return h[4*(k-1)+2];case m.H:return h[4*(k-1)+3];default:return}},f.getTotalCodewordsCount=function(k,S){switch(S){case m.L:return _[4*(k-1)+0];case m.M:return _[4*(k-1)+1];case m.Q:return _[4*(k-1)+2];case m.H:return _[4*(k-1)+3];default:return}}},5120:(ae,f)=>{f.L={bit:1},f.M={bit:0},f.Q={bit:3},f.H={bit:2},f.isValid=function(h){return h&&typeof h.bit<"u"&&h.bit>=0&&h.bit<4},f.from=function(h,_){if(f.isValid(h))return h;try{return function y(m){if("string"!=typeof m)throw new Error("Param is not a string");switch(m.toLowerCase()){case"l":case"low":return f.L;case"m":case"medium":return f.M;case"q":case"quartile":return f.Q;case"h":case"high":return f.H;default:throw new Error("Unknown EC Level: "+m)}}(h)}catch{return _}}},8984:(ae,f,y)=>{const m=y(8124).getSymbolSize;f.getPositions=function(w){const k=m(w);return[[0,0],[k-7,0],[0,k-7]]}},8196:(ae,f,y)=>{const m=y(8124),w=m.getBCHDigit(1335);f.getEncodedBits=function(S,$){const p=S.bit<<3|$;let I=p<<10;for(;m.getBCHDigit(I)-w>=0;)I^=1335<{const y=new Uint8Array(512),m=new Uint8Array(256);(function(){let _=1;for(let w=0;w<255;w++)y[w]=_,m[_]=w,_<<=1,256&_&&(_^=285);for(let w=255;w<512;w++)y[w]=y[w-255]})(),f.log=function(_){if(_<1)throw new Error("log("+_+")");return m[_]},f.exp=function(_){return y[_]},f.mul=function(_,w){return 0===_||0===w?0:y[m[_]+m[w]]}},6396:(ae,f,y)=>{const m=y(3612),h=y(8124);function _(w){this.mode=m.KANJI,this.data=w}_.getBitsLength=function(k){return 13*k},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(w){let k;for(k=0;k=33088&&S<=40956)S-=33088;else{if(!(S>=57408&&S<=60351))throw new Error("Invalid SJIS character: "+this.data[k]+"\nMake sure your charset is UTF-8");S-=49472}S=192*(S>>>8&255)+(255&S),w.put(S,13)}},ae.exports=_},1920:(ae,f)=>{f.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function m(h,_,w){switch(h){case f.Patterns.PATTERN000:return(_+w)%2==0;case f.Patterns.PATTERN001:return _%2==0;case f.Patterns.PATTERN010:return w%3==0;case f.Patterns.PATTERN011:return(_+w)%3==0;case f.Patterns.PATTERN100:return(Math.floor(_/2)+Math.floor(w/3))%2==0;case f.Patterns.PATTERN101:return _*w%2+_*w%3==0;case f.Patterns.PATTERN110:return(_*w%2+_*w%3)%2==0;case f.Patterns.PATTERN111:return(_*w%3+(_+w)%2)%2==0;default:throw new Error("bad maskPattern:"+h)}}f.isValid=function(_){return null!=_&&""!==_&&!isNaN(_)&&_>=0&&_<=7},f.from=function(_){return f.isValid(_)?parseInt(_,10):void 0},f.getPenaltyN1=function(_){const w=_.size;let k=0,S=0,$=0,p=null,I=null;for(let H=0;H=5&&(k+=S-5+3),p=C,S=1),C=_.get(P,H),C===I?$++:($>=5&&(k+=$-5+3),I=C,$=1)}S>=5&&(k+=S-5+3),$>=5&&(k+=$-5+3)}return k},f.getPenaltyN2=function(_){const w=_.size;let k=0;for(let S=0;S=10&&(1488===S||93===S)&&k++,$=$<<1&2047|_.get(I,p),I>=10&&(1488===$||93===$)&&k++}return 40*k},f.getPenaltyN4=function(_){let w=0;const k=_.data.length;for(let $=0;${const m=y(8656),h=y(8768);f.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},f.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},f.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},f.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},f.MIXED={bit:-1},f.getCharCountIndicator=function(k,S){if(!k.ccBits)throw new Error("Invalid mode: "+k);if(!m.isValid(S))throw new Error("Invalid version: "+S);return S>=1&&S<10?k.ccBits[0]:S<27?k.ccBits[1]:k.ccBits[2]},f.getBestModeForData=function(k){return h.testNumeric(k)?f.NUMERIC:h.testAlphanumeric(k)?f.ALPHANUMERIC:h.testKanji(k)?f.KANJI:f.BYTE},f.toString=function(k){if(k&&k.id)return k.id;throw new Error("Invalid mode")},f.isValid=function(k){return k&&k.bit&&k.ccBits},f.from=function(k,S){if(f.isValid(k))return k;try{return function _(w){if("string"!=typeof w)throw new Error("Param is not a string");switch(w.toLowerCase()){case"numeric":return f.NUMERIC;case"alphanumeric":return f.ALPHANUMERIC;case"kanji":return f.KANJI;case"byte":return f.BYTE;default:throw new Error("Unknown mode: "+w)}}(k)}catch{return S}}},4983:(ae,f,y)=>{const m=y(3612);function h(_){this.mode=m.NUMERIC,this.data=_.toString()}h.getBitsLength=function(w){return 10*Math.floor(w/3)+(w%3?w%3*3+1:0)},h.prototype.getLength=function(){return this.data.length},h.prototype.getBitsLength=function(){return h.getBitsLength(this.data.length)},h.prototype.write=function(w){let k,S,$;for(k=0;k+3<=this.data.length;k+=3)S=this.data.substr(k,3),$=parseInt(S,10),w.put($,10);const p=this.data.length-k;p>0&&(S=this.data.substr(k),$=parseInt(S,10),w.put($,3*p+1))},ae.exports=h},7892:(ae,f,y)=>{const m=y(9144);f.mul=function(_,w){const k=new Uint8Array(_.length+w.length-1);for(let S=0;S<_.length;S++)for(let $=0;$=0;){const S=k[0];for(let p=0;p{const m=y(8124),h=y(5120),_=y(8980),w=y(664),k=y(4936),S=y(8984),$=y(1920),p=y(2136),I=y(4176),H=y(6544),P=y(8196),C=y(3612),x=y(4168);function T(Z,re,J){const ee=Z.size,z=P.getEncodedBits(re,J);let M,V;for(M=0;M<15;M++)V=1==(z>>M&1),Z.set(M<6?M:M<8?M+1:ee-15+M,8,V,!0),Z.set(8,M<8?ee-M-1:M<9?15-M-1+1:15-M-1,V,!0);Z.set(ee-8,8,1,!0)}function X(Z,re,J,ee){let z;if(Array.isArray(Z))z=x.fromArray(Z);else{if("string"!=typeof Z)throw new Error("Invalid data");{let ne=re;if(!ne){const oe=x.rawSplit(Z);ne=H.getBestVersionForData(oe,J)}z=x.fromString(Z,ne||40)}}const M=H.getBestVersionForData(z,J);if(!M)throw new Error("The amount of data is too big to be stored in a QR Code");if(re){if(re=0&&R<=6&&(0===L||6===L)||L>=0&&L<=6&&(0===R||6===R)||R>=2&&R<=4&&L>=2&&L<=4,!0)}}(L,re),function b(Z){const re=Z.size;for(let J=8;J=7&&function G(Z,re){const J=Z.size,ee=H.getEncodedBits(re);let z,M,V;for(let R=0;R<18;R++)z=Math.floor(R/3),M=R%3+J-8-3,V=1==(ee>>R&1),Z.set(z,M,V,!0),Z.set(M,z,V,!0)}(L,re),function O(Z,re){const J=Z.size;let ee=-1,z=J-1,M=7,V=0;for(let R=J-1;R>0;R-=2)for(6===R&&R--;;){for(let L=0;L<2;L++)if(!Z.isReserved(z,R-L)){let ne=!1;V>>M&1)),Z.set(z,R-L,ne),M--,-1===M&&(V++,M=7)}if(z+=ee,z<0||J<=z){z-=ee,ee=-ee;break}}}(L,V),isNaN(ee)&&(ee=$.getBestMask(L,T.bind(null,L,J))),$.applyMask(ee,L),T(L,J,ee),{modules:L,version:re,errorCorrectionLevel:J,maskPattern:ee,segments:z}}f.create=function(re,J){if(typeof re>"u"||""===re)throw new Error("No input text");let z,M,ee=h.M;return typeof J<"u"&&(ee=h.from(J.errorCorrectionLevel,h.M),z=H.from(J.version),M=$.from(J.maskPattern),J.toSJISFunc&&m.setToSJISFunction(J.toSJISFunc)),X(re,z,ee,M)}},4176:(ae,f,y)=>{const m=y(7892);function h(_){this.genPoly=void 0,this.degree=_,this.degree&&this.initialize(this.degree)}h.prototype.initialize=function(w){this.degree=w,this.genPoly=m.generateECPolynomial(this.degree)},h.prototype.encode=function(w){if(!this.genPoly)throw new Error("Encoder not initialized");const k=new Uint8Array(w.length+this.degree);k.set(w);const S=m.mod(k,this.genPoly),$=this.degree-S.length;if($>0){const p=new Uint8Array(this.degree);return p.set(S,$),p}return S},ae.exports=h},8768:(ae,f)=>{const y="[0-9]+";let h="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";h=h.replace(/u/g,"\\u");const _="(?:(?![A-Z0-9 $%*+\\-./:]|"+h+")(?:.|[\r\n]))+";f.KANJI=new RegExp(h,"g"),f.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),f.BYTE=new RegExp(_,"g"),f.NUMERIC=new RegExp(y,"g"),f.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const w=new RegExp("^"+h+"$"),k=new RegExp("^"+y+"$"),S=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");f.testKanji=function(p){return w.test(p)},f.testNumeric=function(p){return k.test(p)},f.testAlphanumeric=function(p){return S.test(p)}},4168:(ae,f,y)=>{const m=y(3612),h=y(4983),_=y(4600),w=y(4692),k=y(6396),S=y(8768),$=y(8124),p=y(4868);function I(G){return unescape(encodeURIComponent(G)).length}function H(G,T,O){const Q=[];let Y;for(;null!==(Y=G.exec(O));)Q.push({data:Y[0],index:Y.index,mode:T,length:Y[0].length});return Q}function P(G){const T=H(S.NUMERIC,m.NUMERIC,G),O=H(S.ALPHANUMERIC,m.ALPHANUMERIC,G);let Q,Y;return $.isKanjiModeEnabled()?(Q=H(S.BYTE,m.BYTE,G),Y=H(S.KANJI,m.KANJI,G)):(Q=H(S.BYTE_KANJI,m.BYTE,G),Y=[]),T.concat(O,Q,Y).sort(function(Z,re){return Z.index-re.index}).map(function(Z){return{data:Z.data,mode:Z.mode,length:Z.length}})}function C(G,T){switch(T){case m.NUMERIC:return h.getBitsLength(G);case m.ALPHANUMERIC:return _.getBitsLength(G);case m.KANJI:return k.getBitsLength(G);case m.BYTE:return w.getBitsLength(G)}}function W(G,T){let O;const Q=m.getBestModeForData(G);if(O=m.from(T,Q),O!==m.BYTE&&O.bit=0?T[T.length-1]:null;return Q&&Q.mode===O.mode?(T[T.length-1].data+=O.data,T):(T.push(O),T)},[])}(re))},f.rawSplit=function(T){return f.fromArray(P(T,$.isKanjiModeEnabled()))}},8124:(ae,f)=>{let y;const m=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];f.getSymbolSize=function(_){if(!_)throw new Error('"version" cannot be null or undefined');if(_<1||_>40)throw new Error('"version" should be in range from 1 to 40');return 4*_+17},f.getSymbolTotalCodewords=function(_){return m[_]},f.getBCHDigit=function(h){let _=0;for(;0!==h;)_++,h>>>=1;return _},f.setToSJISFunction=function(_){if("function"!=typeof _)throw new Error('"toSJISFunc" is not a valid function.');y=_},f.isKanjiModeEnabled=function(){return typeof y<"u"},f.toSJIS=function(_){return y(_)}},8656:(ae,f)=>{f.isValid=function(m){return!isNaN(m)&&m>=1&&m<=40}},6544:(ae,f,y)=>{const m=y(8124),h=y(2136),_=y(5120),w=y(3612),k=y(8656),$=m.getBCHDigit(7973);function I(C,x){return w.getCharCountIndicator(C,x)+4}function H(C,x){let N=0;return C.forEach(function(b){const W=I(b.mode,x);N+=W+b.getBitsLength()}),N}f.from=function(x,N){return k.isValid(x)?parseInt(x,10):N},f.getCapacity=function(x,N,b){if(!k.isValid(x))throw new Error("Invalid QR Code version");typeof b>"u"&&(b=w.BYTE);const T=8*(m.getSymbolTotalCodewords(x)-h.getTotalCodewordsCount(x,N));if(b===w.MIXED)return T;const O=T-I(b,x);switch(b){case w.NUMERIC:return Math.floor(O/10*3);case w.ALPHANUMERIC:return Math.floor(O/11*2);case w.KANJI:return Math.floor(O/13);default:return Math.floor(O/8)}},f.getBestVersionForData=function(x,N){let b;const W=_.from(N,_.M);if(Array.isArray(x)){if(x.length>1)return function P(C,x){for(let N=1;N<=40;N++)if(H(C,N)<=f.getCapacity(N,x,w.MIXED))return N}(x,W);if(0===x.length)return 1;b=x[0]}else b=x;return function p(C,x,N){for(let b=1;b<=40;b++)if(x<=f.getCapacity(b,N,C))return b}(b.mode,b.getLength(),W)},f.getEncodedBits=function(x){if(!k.isValid(x)||x<7)throw new Error("Invalid QR Code version");let N=x<<12;for(;m.getBCHDigit(N)-$>=0;)N^=7973<{const m=y(3848);f.render=function(k,S,$){let p=$,I=S;typeof p>"u"&&(!S||!S.getContext)&&(p=S,S=void 0),S||(I=function _(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),p=m.getOptions(p);const H=m.getImageWidth(k.modules.size,p),P=I.getContext("2d"),C=P.createImageData(H,H);return m.qrToImageData(C.data,k,p),function h(w,k,S){w.clearRect(0,0,k.width,k.height),k.style||(k.style={}),k.height=S,k.width=S,k.style.height=S+"px",k.style.width=S+"px"}(P,I,H),P.putImageData(C,0,0),I},f.renderToDataURL=function(k,S,$){let p=$;return typeof p>"u"&&(!S||!S.getContext)&&(p=S,S=void 0),p||(p={}),f.render(k,S,p).toDataURL(p.type||"image/png",(p.rendererOpts||{}).quality)}},9944:(ae,f,y)=>{const m=y(3848);function h(k,S){const $=k.a/255,p=S+'="'+k.hex+'"';return $<1?p+" "+S+'-opacity="'+$.toFixed(2).slice(1)+'"':p}function _(k,S,$){let p=k+S;return typeof $<"u"&&(p+=" "+$),p}f.render=function(S,$,p){const I=m.getOptions($),H=S.modules.size,P=S.modules.data,C=H+2*I.margin,x=I.color.light.a?"':"",N="0&&x>0&&k[C-1]||(p+=H?_("M",x+$,.5+N+$):_("m",I,0),I=0,H=!1),x+1',G=''+x+N+"\n";return"function"==typeof p&&p(null,G),G}},3848:(ae,f)=>{function y(m){if("number"==typeof m&&(m=m.toString()),"string"!=typeof m)throw new Error("Color should be defined as hex string");let h=m.slice().replace("#","").split("");if(h.length<3||5===h.length||h.length>8)throw new Error("Invalid hex color: "+m);(3===h.length||4===h.length)&&(h=Array.prototype.concat.apply([],h.map(function(w){return[w,w]}))),6===h.length&&h.push("F","F");const _=parseInt(h.join(""),16);return{r:_>>24&255,g:_>>16&255,b:_>>8&255,a:255&_,hex:"#"+h.slice(0,6).join("")}}f.getOptions=function(h){h||(h={}),h.color||(h.color={});const w=h.width&&h.width>=21?h.width:void 0;return{width:w,scale:w?4:h.scale||4,margin:typeof h.margin>"u"||null===h.margin||h.margin<0?4:h.margin,color:{dark:y(h.color.dark||"#000000ff"),light:y(h.color.light||"#ffffffff")},type:h.type,rendererOpts:h.rendererOpts||{}}},f.getScale=function(h,_){return _.width&&_.width>=h+2*_.margin?_.width/(h+2*_.margin):_.scale},f.getImageWidth=function(h,_){const w=f.getScale(h,_);return Math.floor((h+2*_.margin)*w)},f.qrToImageData=function(h,_,w){const k=_.modules.size,S=_.modules.data,$=f.getScale(k,w),p=Math.floor((k+2*w.margin)*$),I=w.margin*$,H=[w.color.light,w.color.dark];for(let P=0;P=I&&C>=I&&P{},1196:ae=>{function f(m,h,_,w,k,S,$){try{var p=m[S]($),I=p.value}catch(H){return void _(H)}p.done?h(I):Promise.resolve(I).then(w,k)}ae.exports=function y(m){return function(){var h=this,_=arguments;return new Promise(function(w,k){var S=m.apply(h,_);function $(I){f(S,w,k,$,p,"next",I)}function p(I){f(S,w,k,$,p,"throw",I)}$(void 0)})}},ae.exports.__esModule=!0,ae.exports.default=ae.exports},1528:(ae,f,y)=>{"use strict";function m(_,w,k,S,$,p,I){try{var H=_[p](I),P=H.value}catch(C){return void k(C)}H.done?w(P):Promise.resolve(P).then(S,$)}function h(_){return function(){var w=this,k=arguments;return new Promise(function(S,$){var p=_.apply(w,k);function I(P){m(p,S,$,I,H,"next",P)}function H(P){m(p,S,$,I,H,"throw",P)}I(void 0)})}}y.d(f,{c:()=>h})},1316:(ae,f,y)=>{"use strict";y.r(f),y.d(f,{__addDisposableResource:()=>ne,__assign:()=>_,__asyncDelegator:()=>Z,__asyncGenerator:()=>X,__asyncValues:()=>re,__await:()=>Y,__awaiter:()=>C,__classPrivateFieldGet:()=>V,__classPrivateFieldIn:()=>L,__classPrivateFieldSet:()=>R,__createBinding:()=>N,__decorate:()=>k,__disposeResources:()=>de,__esDecorate:()=>$,__exportStar:()=>b,__extends:()=>h,__generator:()=>x,__importDefault:()=>M,__importStar:()=>z,__makeTemplateObject:()=>J,__metadata:()=>P,__param:()=>S,__propKey:()=>I,__read:()=>G,__rest:()=>w,__runInitializers:()=>p,__setFunctionName:()=>H,__spread:()=>T,__spreadArray:()=>Q,__spreadArrays:()=>O,__values:()=>W,default:()=>Ce});var m=function(D,F){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,j){B.__proto__=j}||function(B,j){for(var te in j)Object.prototype.hasOwnProperty.call(j,te)&&(B[te]=j[te])})(D,F)};function h(D,F){if("function"!=typeof F&&null!==F)throw new TypeError("Class extends value "+String(F)+" is not a constructor or null");function B(){this.constructor=D}m(D,F),D.prototype=null===F?Object.create(F):(B.prototype=F.prototype,new B)}var _=function(){return _=Object.assign||function(F){for(var B,j=1,te=arguments.length;j=0;ce--)(fe=D[ce])&&(ie=(te<3?fe(ie):te>3?fe(F,B,ie):fe(F,B))||ie);return te>3&&ie&&Object.defineProperty(F,B,ie),ie}function S(D,F){return function(B,j){F(B,j,D)}}function $(D,F,B,j,te,ie){function fe(Le){if(void 0!==Le&&"function"!=typeof Le)throw new TypeError("Function expected");return Le}for(var Re,ce=j.kind,ye="getter"===ce?"get":"setter"===ce?"set":"value",pe=!F&&D?j.static?D:D.prototype:null,Ee=F||(pe?Object.getOwnPropertyDescriptor(pe,j.name):{}),Me=!1,Ae=B.length-1;Ae>=0;Ae--){var Be={};for(var Ve in j)Be[Ve]="access"===Ve?{}:j[Ve];for(var Ve in j.access)Be.access[Ve]=j.access[Ve];Be.addInitializer=function(Le){if(Me)throw new TypeError("Cannot add initializers after decoration has completed");ie.push(fe(Le||null))};var Te=(0,B[Ae])("accessor"===ce?{get:Ee.get,set:Ee.set}:Ee[ye],Be);if("accessor"===ce){if(void 0===Te)continue;if(null===Te||"object"!=typeof Te)throw new TypeError("Object expected");(Re=fe(Te.get))&&(Ee.get=Re),(Re=fe(Te.set))&&(Ee.set=Re),(Re=fe(Te.init))&&te.unshift(Re)}else(Re=fe(Te))&&("field"===ce?te.unshift(Re):Ee[ye]=Re)}pe&&Object.defineProperty(pe,j.name,Ee),Me=!0}function p(D,F,B){for(var j=arguments.length>2,te=0;te0&&ie[ie.length-1])&&(6===pe[0]||2===pe[0])){B=0;continue}if(3===pe[0]&&(!ie||pe[1]>ie[0]&&pe[1]=D.length&&(D=void 0),{value:D&&D[j++],done:!D}}};throw new TypeError(F?"Object is not iterable.":"Symbol.iterator is not defined.")}function G(D,F){var B="function"==typeof Symbol&&D[Symbol.iterator];if(!B)return D;var te,fe,j=B.call(D),ie=[];try{for(;(void 0===F||F-- >0)&&!(te=j.next()).done;)ie.push(te.value)}catch(ce){fe={error:ce}}finally{try{te&&!te.done&&(B=j.return)&&B.call(j)}finally{if(fe)throw fe.error}}return ie}function T(){for(var D=[],F=0;F1||ce(Me,Ae)})})}function ce(Me,Ae){try{!function ye(Me){Me.value instanceof Y?Promise.resolve(Me.value.v).then(pe,Ee):Re(ie[0][2],Me)}(j[Me](Ae))}catch(Be){Re(ie[0][3],Be)}}function pe(Me){ce("next",Me)}function Ee(Me){ce("throw",Me)}function Re(Me,Ae){Me(Ae),ie.shift(),ie.length&&ce(ie[0][0],ie[0][1])}}function Z(D){var F,B;return F={},j("next"),j("throw",function(te){throw te}),j("return"),F[Symbol.iterator]=function(){return this},F;function j(te,ie){F[te]=D[te]?function(fe){return(B=!B)?{value:Y(D[te](fe)),done:!1}:ie?ie(fe):fe}:ie}}function re(D){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var B,F=D[Symbol.asyncIterator];return F?F.call(D):(D=W(D),B={},j("next"),j("throw"),j("return"),B[Symbol.asyncIterator]=function(){return this},B);function j(ie){B[ie]=D[ie]&&function(fe){return new Promise(function(ce,ye){!function te(ie,fe,ce,ye){Promise.resolve(ye).then(function(pe){ie({value:pe,done:ce})},fe)}(ce,ye,(fe=D[ie](fe)).done,fe.value)})}}}function J(D,F){return Object.defineProperty?Object.defineProperty(D,"raw",{value:F}):D.raw=F,D}var ee=Object.create?function(D,F){Object.defineProperty(D,"default",{enumerable:!0,value:F})}:function(D,F){D.default=F};function z(D){if(D&&D.__esModule)return D;var F={};if(null!=D)for(var B in D)"default"!==B&&Object.prototype.hasOwnProperty.call(D,B)&&N(F,D,B);return ee(F,D),F}function M(D){return D&&D.__esModule?D:{default:D}}function V(D,F,B,j){if("a"===B&&!j)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof F?D!==F||!j:!F.has(D))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===B?j:"a"===B?j.call(D):j?j.value:F.get(D)}function R(D,F,B,j,te){if("m"===j)throw new TypeError("Private method is not writable");if("a"===j&&!te)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof F?D!==F||!te:!F.has(D))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===j?te.call(D,B):te?te.value=B:F.set(D,B),B}function L(D,F){if(null===F||"object"!=typeof F&&"function"!=typeof F)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof D?F===D:D.has(F)}function ne(D,F,B){if(null!=F){if("object"!=typeof F&&"function"!=typeof F)throw new TypeError("Object expected.");var j;if(B){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");j=F[Symbol.asyncDispose]}if(void 0===j){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");j=F[Symbol.dispose]}if("function"!=typeof j)throw new TypeError("Object not disposable.");D.stack.push({value:F,dispose:j,async:B})}else B&&D.stack.push({async:!0});return F}var oe="function"==typeof SuppressedError?SuppressedError:function(D,F,B){var j=new Error(B);return j.name="SuppressedError",j.error=D,j.suppressed=F,j};function de(D){function F(j){D.error=D.hasError?new oe(j,D.error,"An error was suppressed during disposal."):j,D.hasError=!0}return function B(){for(;D.stack.length;){var j=D.stack.pop();try{var te=j.dispose&&j.dispose.call(j.value);if(j.async)return Promise.resolve(te).then(B,function(ie){return F(ie),B()})}catch(ie){F(ie)}}if(D.hasError)throw D.error}()}const Ce={__extends:h,__assign:_,__rest:w,__decorate:k,__param:S,__metadata:P,__awaiter:C,__generator:x,__createBinding:N,__exportStar:b,__values:W,__read:G,__spread:T,__spreadArrays:O,__spreadArray:Q,__await:Y,__asyncGenerator:X,__asyncDelegator:Z,__asyncValues:re,__makeTemplateObject:J,__importStar:z,__importDefault:M,__classPrivateFieldGet:V,__classPrivateFieldSet:R,__classPrivateFieldIn:L,__addDisposableResource:ne,__disposeResources:de}}},ae=>{ae(ae.s=9680)}]); \ No newline at end of file +(self.webpackChunkprivate_qrcode=self.webpackChunkprivate_qrcode||[]).push([[590],{4400:(ae,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.IterableString=void 0,f.IterableString=class y{constructor(h){this.str=h,this.cursor=0}get currenPosition(){return this.cursor}toString(){return this.str.substring(this.cursor)}valueOf(){return this.str.substring(this.cursor)}getOriginalString(){return this.str}addCursor(h,_=!0){let w="";return w="number"==typeof h?this.addCursorNumeric(h):"string"==typeof h?this.addCursorRegExp(new RegExp(h)):h instanceof RegExp?this.addCursorRegExp(h):this.addCursorNumeric(),_?w.trim():w}spy(h,_=!0){let w="";return w="number"==typeof h?this.spyNumeric(h):"string"==typeof h?this.spyRegExp(new RegExp(h)):h instanceof RegExp?this.spyRegExp(h):this.spyNumeric(),_?w.trim():w}spyNumeric(h=1){return this.str.substring(this.cursor,this.cursor+h)}spyRegExp(h){const _=String(this).match(h);return _&&_.length&&_[0]||""}addCursorRegExp(h){if(!String(h).match(/^\/\^/))throw new Error(`all regexp used to move the cursor in the iterable string must start with ^. Entry regex: "${String(h)}"`);const _=this.spyRegExp(h);return this.addCursorNumeric(_.length||0)}addCursorNumeric(h=1){const _=this.spyNumeric(h);return this.cursor+=h,_}toTheEnd(){const h=this.str.substring(this.cursor);return this.cursor+=h.length,h}endContent(){return this.end()||!!this.spy(/^\s*$/,!1)}end(){return this.str.length<=this.cursor}}},6400:(ae,f,y)=>{"use strict";y.d(f,{C_:()=>N,io:()=>ee,m3:()=>x,w8:()=>G});var m=y(1528);typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"&&global;var p=function(V){return V.Unimplemented="UNIMPLEMENTED",V.Unavailable="UNAVAILABLE",V}(p||{});class I extends Error{constructor(R,L,ne){super(R),this.message=R,this.code=L,this.data=ne}}const P=V=>{var R,L,ne,oe,de;const Ce=V.CapacitorCustomPlatform||null,D=V.Capacitor||{},F=D.Plugins=D.Plugins||{},B=V.CapacitorPlatforms,te=(null===(R=B?.currentPlatform)||void 0===R?void 0:R.getPlatform)||(()=>null!==Ce?Ce.name:(V=>{var R,L;return V?.androidBridge?"android":null!==(L=null===(R=V?.webkit)||void 0===R?void 0:R.messageHandlers)&&void 0!==L&&L.bridge?"ios":"web"})(V)),fe=(null===(L=B?.currentPlatform)||void 0===L?void 0:L.isNativePlatform)||(()=>"web"!==te()),ye=(null===(ne=B?.currentPlatform)||void 0===ne?void 0:ne.isPluginAvailable)||(Te=>{const Le=Ae.get(Te);return!(!Le?.platforms.has(te())&&!Ee(Te))}),Ee=(null===(oe=B?.currentPlatform)||void 0===oe?void 0:oe.getPluginHeader)||(Te=>{var Le;return null===(Le=D.PluginHeaders)||void 0===Le?void 0:Le.find(Qe=>Qe.name===Te)}),Ae=new Map,Ve=(null===(de=B?.currentPlatform)||void 0===de?void 0:de.registerPlugin)||((Te,Le={})=>{const Qe=Ae.get(Te);if(Qe)return console.warn(`Capacitor plugin "${Te}" already registered. Cannot register plugins twice.`),Qe.proxy;const Dt=te(),pt=Ee(Te);let ut;const an=function(){var Pt=(0,m.c)(function*(){return!ut&&Dt in Le?ut=ut="function"==typeof Le[Dt]?yield Le[Dt]():Le[Dt]:null!==Ce&&!ut&&"web"in Le&&(ut=ut="function"==typeof Le.web?yield Le.web():Le.web),ut});return function(){return Pt.apply(this,arguments)}}(),Bn=Pt=>{let Ht;const Rn=(...fr)=>{const Ar=an().then(Fn=>{const eo=((Pt,Ht)=>{var Rn,fr;if(!pt){if(Pt)return null===(fr=Pt[Ht])||void 0===fr?void 0:fr.bind(Pt);throw new I(`"${Te}" plugin is not implemented on ${Dt}`,p.Unimplemented)}{const Ar=pt?.methods.find(Fn=>Ht===Fn.name);if(Ar)return"promise"===Ar.rtype?Fn=>D.nativePromise(Te,Ht.toString(),Fn):(Fn,eo)=>D.nativeCallback(Te,Ht.toString(),Fn,eo);if(Pt)return null===(Rn=Pt[Ht])||void 0===Rn?void 0:Rn.bind(Pt)}})(Fn,Pt);if(eo){const to=eo(...fr);return Ht=to?.remove,to}throw new I(`"${Te}.${Pt}()" is not implemented on ${Dt}`,p.Unimplemented)});return"addListener"===Pt&&(Ar.remove=(0,m.c)(function*(){return Ht()})),Ar};return Rn.toString=()=>`${Pt.toString()}() { [capacitor code] }`,Object.defineProperty(Rn,"name",{value:Pt,writable:!1,configurable:!1}),Rn},Dr=Bn("addListener"),Vr=Bn("removeListener"),Pc=(Pt,Ht)=>{const Rn=Dr({eventName:Pt},Ht),fr=function(){var Fn=(0,m.c)(function*(){const eo=yield Rn;Vr({eventName:Pt,callbackId:eo},Ht)});return function(){return Fn.apply(this,arguments)}}(),Ar=new Promise(Fn=>Rn.then(()=>Fn({remove:fr})));return Ar.remove=(0,m.c)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield fr()}),Ar},wo=new Proxy({},{get(Pt,Ht){switch(Ht){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return pt?Pc:Dr;case"removeListener":return Vr;default:return Bn(Ht)}}});return F[Te]=wo,Ae.set(Te,{name:Te,proxy:wo,platforms:new Set([...Object.keys(Le),...pt?[Dt]:[]])}),wo});return D.convertFileSrc||(D.convertFileSrc=Te=>Te),D.getPlatform=te,D.handleError=Te=>V.console.error(Te),D.isNativePlatform=fe,D.isPluginAvailable=ye,D.pluginMethodNoop=(Te,Le,Qe)=>Promise.reject(`${Qe} does not have an implementation of "${Le}".`),D.registerPlugin=Ve,D.Exception=I,D.DEBUG=!!D.DEBUG,D.isLoggingEnabled=!!D.isLoggingEnabled,D.platform=D.getPlatform(),D.isNative=D.isNativePlatform(),D},x=(V=>V.Capacitor=P(V))(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),N=x.registerPlugin;class G{constructor(R){this.listeners={},this.windowListeners={},R&&(console.warn(`Capacitor WebPlugin "${R.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=R)}addListener(R,L){var ne=this;this.listeners[R]||(this.listeners[R]=[]),this.listeners[R].push(L);const de=this.windowListeners[R];de&&!de.registered&&this.addWindowListener(de);const Ce=function(){var F=(0,m.c)(function*(){return ne.removeListener(R,L)});return function(){return F.apply(this,arguments)}}(),D=Promise.resolve({remove:Ce});return Object.defineProperty(D,"remove",{value:(F=(0,m.c)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield Ce()}),function(){return F.apply(this,arguments)})}),D;var F}removeAllListeners(){var R=this;return(0,m.c)(function*(){R.listeners={};for(const L in R.windowListeners)R.removeWindowListener(R.windowListeners[L]);R.windowListeners={}})()}notifyListeners(R,L){const ne=this.listeners[R];ne&&ne.forEach(oe=>oe(L))}hasListeners(R){return!!this.listeners[R].length}registerWindowListener(R,L){this.windowListeners[L]={registered:!1,windowEventName:R,pluginEventName:L,handler:ne=>{this.notifyListeners(L,ne)}}}unimplemented(R="not implemented"){return new x.Exception(R,p.Unimplemented)}unavailable(R="not available"){return new x.Exception(R,p.Unavailable)}removeListener(R,L){var ne=this;return(0,m.c)(function*(){const oe=ne.listeners[R];if(!oe)return;const de=oe.indexOf(L);ne.listeners[R].splice(de,1),ne.listeners[R].length||ne.removeWindowListener(ne.windowListeners[R])})()}addWindowListener(R){window.addEventListener(R.windowEventName,R.handler),R.registered=!0}removeWindowListener(R){R&&(window.removeEventListener(R.windowEventName,R.handler),R.registered=!1)}}const O=V=>encodeURIComponent(V).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),Q=V=>V.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class Y extends G{getCookies(){return(0,m.c)(function*(){const R=document.cookie,L={};return R.split(";").forEach(ne=>{if(ne.length<=0)return;let[oe,de]=ne.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");oe=Q(oe).trim(),de=Q(de).trim(),L[oe]=de}),L})()}setCookie(R){return(0,m.c)(function*(){try{const L=O(R.key),ne=O(R.value),oe=`; expires=${(R.expires||"").replace("expires=","")}`,de=(R.path||"/").replace("path=",""),Ce=null!=R.url&&R.url.length>0?`domain=${R.url}`:"";document.cookie=`${L}=${ne||""}${oe}; path=${de}; ${Ce};`}catch(L){return Promise.reject(L)}})()}deleteCookie(R){return(0,m.c)(function*(){try{document.cookie=`${R.key}=; Max-Age=0`}catch(L){return Promise.reject(L)}})()}clearCookies(){return(0,m.c)(function*(){try{const R=document.cookie.split(";")||[];for(const L of R)document.cookie=L.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)}catch(R){return Promise.reject(R)}})()}clearAllCookies(){var R=this;return(0,m.c)(function*(){try{yield R.clearCookies()}catch(L){return Promise.reject(L)}})()}}N("CapacitorCookies",{web:()=>new Y});const Z=function(){var V=(0,m.c)(function*(R){return new Promise((L,ne)=>{const oe=new FileReader;oe.onload=()=>{const de=oe.result;L(de.indexOf(",")>=0?de.split(",")[1]:de)},oe.onerror=de=>ne(de),oe.readAsDataURL(R)})});return function(L){return V.apply(this,arguments)}}(),ee=(V,R={})=>{const L=Object.assign({method:V.method||"GET",headers:V.headers},R),oe=((V={})=>{const R=Object.keys(V);return Object.keys(V).map(oe=>oe.toLocaleLowerCase()).reduce((oe,de,Ce)=>(oe[de]=V[R[Ce]],oe),{})})(V.headers)["content-type"]||"";if("string"==typeof V.data)L.body=V.data;else if(oe.includes("application/x-www-form-urlencoded")){const de=new URLSearchParams;for(const[Ce,D]of Object.entries(V.data||{}))de.set(Ce,D);L.body=de.toString()}else if(oe.includes("multipart/form-data")||V.data instanceof FormData){const de=new FormData;if(V.data instanceof FormData)V.data.forEach((D,F)=>{de.append(F,D)});else for(const D of Object.keys(V.data))de.append(D,V.data[D]);L.body=de;const Ce=new Headers(L.headers);Ce.delete("content-type"),L.headers=Ce}else(oe.includes("application/json")||"object"==typeof V.data)&&(L.body=JSON.stringify(V.data));return L};class z extends G{request(R){return(0,m.c)(function*(){const L=ee(R,R.webFetchExtra),ne=((V,R=!0)=>V?Object.entries(V).reduce((ne,oe)=>{const[de,Ce]=oe;let D,F;return Array.isArray(Ce)?(F="",Ce.forEach(B=>{D=R?encodeURIComponent(B):B,F+=`${de}=${D}&`}),F.slice(0,-1)):(D=R?encodeURIComponent(Ce):Ce,F=`${de}=${D}`),`${ne}&${F}`},"").substr(1):null)(R.params,R.shouldEncodeUrlParams),oe=ne?`${R.url}?${ne}`:R.url,de=yield fetch(oe,L),Ce=de.headers.get("content-type")||"";let F,B,{responseType:D="text"}=de.ok?R:{};switch(Ce.includes("application/json")&&(D="json"),D){case"arraybuffer":case"blob":B=yield de.blob(),F=yield Z(B);break;case"json":F=yield de.json();break;default:F=yield de.text()}const j={};return de.headers.forEach((te,ie)=>{j[ie]=te}),{data:F,headers:j,status:de.status,url:de.url}})()}get(R){var L=this;return(0,m.c)(function*(){return L.request(Object.assign(Object.assign({},R),{method:"GET"}))})()}post(R){var L=this;return(0,m.c)(function*(){return L.request(Object.assign(Object.assign({},R),{method:"POST"}))})()}put(R){var L=this;return(0,m.c)(function*(){return L.request(Object.assign(Object.assign({},R),{method:"PUT"}))})()}patch(R){var L=this;return(0,m.c)(function*(){return L.request(Object.assign(Object.assign({},R),{method:"PATCH"}))})()}delete(R){var L=this;return(0,m.c)(function*(){return L.request(Object.assign(Object.assign({},R),{method:"DELETE"}))})()}}N("CapacitorHttp",{web:()=>new z})},5404:(ae,f,y)=>{"use strict";y.d(f,{Gq:()=>h,Y9:()=>m});var m=function(k){return k.Documents="DOCUMENTS",k.Data="DATA",k.Library="LIBRARY",k.Cache="CACHE",k.External="EXTERNAL",k.ExternalStorage="EXTERNAL_STORAGE",k}(m||{}),h=function(k){return k.UTF8="utf8",k.ASCII="ascii",k.UTF16="utf16",k}(h||{})},5500:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0});const h=y(1316),_=y(4920),w=y(4924),k=y(1640),S=y(7760),$=y(5496),p=y(7312),I=y(384),H=y(3984),P=y(7428);class C extends _.EncryptedURIDecrypter{constructor(b,W){super(b,W)}decrypt(){var b=this;return m(function*(){const W=(0,p.getInitializationVector)(b.decoded),G=$.base64.decode(b.decoded.cipher),T=(0,P.getSalt)(G,b.decoded?.params),O=(0,I.kdf)(b.password,T.salt,b.decoded),Q=yield(0,k.cbc)(O,(0,w.hexToBytes)(W)).decrypt(T.cipher);return(0,w.bytesToUtf8)(Q)})()}}let x=class extends _.EncryptedURIEncrypter{constructor(b){super(b)}encrypt(){var b=this;return m(function*(){const W=(0,p.getInitializationVector)(b.params),G=(0,w.hexToBytes)(W),T=(0,w.utf8ToBytes)(b.params.content),Q=(0,S.randomBytes)(8),Y=(0,I.kdf)(b.params.password,Q,b.params),X=yield(0,k.cbc)(Y,G).encrypt(T);return Promise.resolve({cipher:$.base64.encode(H.OpenSSLSerializer.encode(X,Q)),params:{iv:W}})})()}};x=h.__decorate([(0,_.EncryptedURIAlgorithm)({algorithm:"aes/cbc",decrypter:C})],x),_.EncryptedURI.setAlgorithm("",x,C),_.EncryptedURI.setAlgorithm("aes",x,C)},3288:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0});const h=y(1316),_=y(4920),w=y(4924),k=y(1640),S=y(7760),$=y(5496),p=y(7312),I=y(384),H=y(3984),P=y(7428);let x=class extends _.EncryptedURIEncrypter{constructor(b){super(b)}encrypt(){var b=this;return m(function*(){const W=(0,p.getInitializationVector)(b.params),G=(0,w.hexToBytes)(W),T=(0,w.utf8ToBytes)(b.params.content),Q=(0,S.randomBytes)(8),Y=(0,I.kdf)(b.params.password,Q,b.params),X=yield(0,k.ctr)(Y,G).encrypt(T);return Promise.resolve({cipher:$.base64.encode(H.OpenSSLSerializer.encode(X,Q)),params:{iv:W}})})()}};x=h.__decorate([(0,_.EncryptedURIAlgorithm)({algorithm:"aes/ctr",decrypter:class C extends _.EncryptedURIDecrypter{constructor(b,W){super(b,W)}decrypt(){var b=this;return m(function*(){const W=(0,p.getInitializationVector)(b.decoded),G=$.base64.decode(b.decoded.cipher),T=(0,P.getSalt)(G,b.decoded?.params),O=(0,I.kdf)(b.password,T.salt,b.decoded),Q=yield(0,k.ctr)(O,(0,w.hexToBytes)(W)).decrypt(T.cipher);return(0,w.bytesToUtf8)(Q)})()}}})],x)},6032:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0});const h=y(1316),_=y(4920),w=y(888),k=y(4924),S=y(7760),$=y(5496),p=y(384),I=y(3984),H=y(7428);let C=class extends _.EncryptedURIEncrypter{constructor(N){super(N)}encrypt(){var N=this;return m(function*(){const b=(0,k.utf8ToBytes)(N.params.content),G=(0,S.randomBytes)(8),T=(0,p.kdf)(N.params.password,G,N.params),O=yield(0,w.ecb)(T).encrypt(b),Q=$.base64.encode(I.OpenSSLSerializer.encode(O,G));return Promise.resolve({cipher:Q})})()}};C=h.__decorate([(0,_.EncryptedURIAlgorithm)({algorithm:"aes/ecb",decrypter:class P extends _.EncryptedURIDecrypter{constructor(N,b){super(N,b)}decrypt(){var N=this;return m(function*(){const b=$.base64.decode(N.decoded.cipher||""),W=(0,H.getSalt)(b,N.decoded?.params),G=(0,p.kdf)(N.password,W.salt,N.decoded),T=yield(0,w.ecb)(G).decrypt(W.cipher);return(0,k.bytesToUtf8)(T)})()}}})],C)},5116:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0});const h=y(1316),_=y(4920),w=y(4924),k=y(1640),S=y(7760),$=y(5496),p=y(384),I=y(5944),H=y(3984),P=y(7428);let x=class extends _.EncryptedURIEncrypter{constructor(b){super(b)}encrypt(){var b=this;return m(function*(){const W=(0,I.getNumberOnce)(b.params),G=(0,w.hexToBytes)(W),T=(0,w.utf8ToBytes)(b.params.content),Q=(0,S.randomBytes)(8),Y=(0,p.kdf)(b.params.password,Q,b.params),X=yield(0,k.gcm)(Y,G,new Uint8Array(0)).encrypt(T);return Promise.resolve({cipher:$.base64.encode(H.OpenSSLSerializer.encode(X,Q)),params:{no:W}})})()}};x=h.__decorate([(0,_.EncryptedURIAlgorithm)({algorithm:"aes/gcm",decrypter:class C extends _.EncryptedURIDecrypter{constructor(b,W){super(b,W)}decrypt(){var b=this;return m(function*(){const W=(0,I.getNumberOnce)(b.decoded),G=$.base64.decode(b.decoded.cipher),T=(0,P.getSalt)(G,b.decoded?.params),O=(0,p.kdf)(b.password,T.salt,b.decoded),Q=yield(0,k.gcm)(O,(0,w.hexToBytes)(W),new Uint8Array(0)).decrypt(T.cipher);return(0,w.bytesToUtf8)(Q)})()}}})],x)},9564:(ae,f,y)=>{"use strict";y(2564),y(5500),y(3288),y(6032),y(5116),y(1324)},7312:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getInitializationVector=void 0;const m=y(4924),h=y(1640);f.getInitializationVector=function _(w){if(w){const S=w.params?.iv||"queryString"in w&&w.queryString;if(S)return S}return(0,m.bytesToHex)((0,h.randomBytes)(16))}},384:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.kdf=void 0;const m=y(4920),h=y(1864),_=y(1992);f.kdf=function w(k,S,$){const p=m.EncryptedURI.getKDFParams($);if(8!==S.length)throw new Error(`salt length must be 8 bytes, ${S.length} bytes was given`);if("pbkdf2"===p.kdf)return(0,h.pbkdf2)(_.HashSupport.get(p.hasher),k,S,{c:p.rounds,dkLen:p.derivateKeyLength});throw new Error(`kdf "${p.kdf}" not supported`)}},5944:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getNumberOnce=void 0;const m=y(4924),h=y(1640);f.getNumberOnce=function _(w){if(w){const S=w.params?.no||"queryString"in w&&w.queryString;if(S)return S}return(0,m.bytesToHex)((0,h.randomBytes)(12))}},3984:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.OpenSSLSerializer=void 0;const m=y(7760);class h{static encode(w,k){return Uint8Array.from([...this.saltedHeader,...k,...w])}static decode(w){const S=Array.from(w);if((0,m.bytesToHex)(w.slice(0,8))===(0,m.bytesToHex)(this.saltedHeader)){S.splice(0,8);const $=S.splice(0,8);return{salt:Uint8Array.from($),cipher:Uint8Array.from(S)}}return{cipher:w}}}f.OpenSSLSerializer=h,h.saltedHeader=Uint8Array.from([83,97,108,116,101,100,95,95])},7428:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getSalt=void 0;const m=y(4924),h=y(3984);f.getSalt=function _(w,k){const S=h.OpenSSLSerializer.decode(w);if(S.salt)return{salt:S.salt,cipher:S.cipher};if(k?.s)return{salt:(0,m.hexToBytes)(k.s),cipher:w};throw new Error("salt not found, can't open cipher")}},1324:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0});const h=y(1316),_=y(4920),w=y(888),k=y(4924),S=y(7760),$=y(5496),p=y(384),I=y(5944),H=y(3984),P=y(7428);let x=class extends _.EncryptedURIEncrypter{constructor(b){super(b)}encrypt(){var b=this;return m(function*(){const W=(0,I.getNumberOnce)(b.params),G=(0,k.hexToBytes)(W),T=(0,k.utf8ToBytes)(b.params.content),Q=(0,S.randomBytes)(8),Y=(0,p.kdf)(b.params.password,Q,b.params),X=yield(0,w.siv)(Y,G).encrypt(T);return Promise.resolve({cipher:$.base64.encode(H.OpenSSLSerializer.encode(X,Q)),params:{no:W}})})()}};x=h.__decorate([(0,_.EncryptedURIAlgorithm)({algorithm:"aes/siv",decrypter:class C extends _.EncryptedURIDecrypter{constructor(b,W){super(b,W)}decrypt(){var b=this;return m(function*(){const W=(0,I.getNumberOnce)(b.decoded),G=$.base64.decode(b.decoded.cipher),T=(0,P.getSalt)(G,b.decoded?.params),O=(0,p.kdf)(b.password,T.salt,b.decoded),Q=yield(0,w.siv)(O,(0,k.hexToBytes)(W)).decrypt(T.cipher);return(0,k.bytesToUtf8)(Q)})()}}})],x)},1992:(ae,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.HashSupport=void 0;class y{static addSupport(h,_){this.supported[h]?console.warn(`HashSupport: "${h}" hasher already loaded, not overriding`):this.supported[h]=_}static listSupported(){return Object.keys(this.supported)}static get(h){const _=this.supported[h];if(!_)throw new Error(`"${h}" not supported`);return _}}f.HashSupport=y,y.supported={}},9872:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(1316);m.__exportStar(y(7224),f),m.__exportStar(y(7381),f),m.__exportStar(y(7624),f),m.__exportStar(y(5432),f),m.__exportStar(y(2564),f),m.__exportStar(y(9844),f),m.__exportStar(y(5656),f),m.__exportStar(y(4861),f),m.__exportStar(y(8e3),f),m.__exportStar(y(7100),f),m.__exportStar(y(2496),f),m.__exportStar(y(6788),f)},7224:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(704);y(1992).HashSupport.addSupport("keccak_224",m.keccak_224)},7381:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(704);y(1992).HashSupport.addSupport("keccak_256",m.keccak_256)},7624:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(704);y(1992).HashSupport.addSupport("keccak_384",m.keccak_384)},5432:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(704);y(1992).HashSupport.addSupport("keccak_512",m.keccak_512)},2564:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(5636);y(1992).HashSupport.addSupport("sha256",m.sha256)},9844:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(8736);y(1992).HashSupport.addSupport("sha384",m.sha384)},5656:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(704);y(1992).HashSupport.addSupport("sha3_224",m.sha3_224)},4861:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(704);y(1992).HashSupport.addSupport("sha3_256",m.sha3_256)},8e3:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(704);y(1992).HashSupport.addSupport("sha3_384",m.sha3_384)},7100:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(704);y(1992).HashSupport.addSupport("sha3_512",m.sha3_512)},2496:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(8736);y(1992).HashSupport.addSupport("sha512",m.sha512)},6788:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const m=y(8736);y(1992).HashSupport.addSupport("sha512_256",m.sha512_256)},3608:(ae,f)=>{"use strict";function y(p){if(!Number.isSafeInteger(p)||p<0)throw new Error(`positive integer expected, not ${p}`)}function m(p){if("boolean"!=typeof p)throw new Error(`boolean expected, not ${p}`)}function h(p){return p instanceof Uint8Array||null!=p&&"object"==typeof p&&"Uint8Array"===p.constructor.name}function _(p,...I){if(!h(p))throw new Error("Uint8Array expected");if(I.length>0&&!I.includes(p.length))throw new Error(`Uint8Array expected of length ${I}, not of length=${p.length}`)}function w(p){if("function"!=typeof p||"function"!=typeof p.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");y(p.outputLen),y(p.blockLen)}function k(p,I=!0){if(p.destroyed)throw new Error("Hash instance has been destroyed");if(I&&p.finished)throw new Error("Hash#digest() has already been called")}function S(p,I){_(p);const H=I.outputLen;if(p.length{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.HashMD=f.Maj=f.Chi=void 0;const m=y(3608),h=y(7760);f.Chi=($,p,I)=>$&p^~$&I,f.Maj=($,p,I)=>$&p^$&I^p&I,f.HashMD=class S extends h.Hash{constructor(p,I,H,P){super(),this.blockLen=p,this.outputLen=I,this.padOffset=H,this.isLE=P,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(p),this.view=(0,h.createView)(this.buffer)}update(p){(0,m.exists)(this);const{view:I,buffer:H,blockLen:P}=this,C=(p=(0,h.toBytes)(p)).length;for(let x=0;xP-x&&(this.process(H,0),x=0);for(let T=x;T>P&C),N=Number(I&C),W=H?0:4;$.setUint32(p+(H?4:0),x,H),$.setUint32(p+W,N,H)})(H,P-8,BigInt(8*this.length),C),this.process(H,0);const N=(0,h.createView)(p),b=this.outputLen;if(b%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const W=b/4,G=this.get();if(W>G.length)throw new Error("_sha2: outputLen bigger than state");for(let T=0;T{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.add5L=f.add5H=f.add4H=f.add4L=f.add3H=f.add3L=f.add=f.rotlBL=f.rotlBH=f.rotlSL=f.rotlSH=f.rotr32L=f.rotr32H=f.rotrBL=f.rotrBH=f.rotrSL=f.rotrSH=f.shrSL=f.shrSH=f.toBig=f.split=f.fromBig=void 0;const y=BigInt(2**32-1),m=BigInt(32);function h(J,ee=!1){return ee?{h:Number(J&y),l:Number(J>>m&y)}:{h:0|Number(J>>m&y),l:0|Number(J&y)}}function _(J,ee=!1){let z=new Uint32Array(J.length),M=new Uint32Array(J.length);for(let V=0;VBigInt(J>>>0)<>>0);f.toBig=w;const k=(J,ee,z)=>J>>>z;f.shrSH=k;const S=(J,ee,z)=>J<<32-z|ee>>>z;f.shrSL=S;const $=(J,ee,z)=>J>>>z|ee<<32-z;f.rotrSH=$;const p=(J,ee,z)=>J<<32-z|ee>>>z;f.rotrSL=p;const I=(J,ee,z)=>J<<64-z|ee>>>z-32;f.rotrBH=I;const H=(J,ee,z)=>J>>>z-32|ee<<64-z;f.rotrBL=H;const P=(J,ee)=>ee;f.rotr32H=P;const C=(J,ee)=>J;f.rotr32L=C;const x=(J,ee,z)=>J<>>32-z;f.rotlSH=x;const N=(J,ee,z)=>ee<>>32-z;f.rotlSL=N;const b=(J,ee,z)=>ee<>>64-z;f.rotlBH=b;const W=(J,ee,z)=>J<>>64-z;function G(J,ee,z,M){const V=(ee>>>0)+(M>>>0);return{h:J+z+(V/2**32|0)|0,l:0|V}}f.rotlBL=W,f.add=G;const T=(J,ee,z)=>(J>>>0)+(ee>>>0)+(z>>>0);f.add3L=T;const O=(J,ee,z,M)=>ee+z+M+(J/2**32|0)|0;f.add3H=O;const Q=(J,ee,z,M)=>(J>>>0)+(ee>>>0)+(z>>>0)+(M>>>0);f.add4L=Q;const Y=(J,ee,z,M,V)=>ee+z+M+V+(J/2**32|0)|0;f.add4H=Y;const X=(J,ee,z,M,V)=>(J>>>0)+(ee>>>0)+(z>>>0)+(M>>>0)+(V>>>0);f.add5L=X;const Z=(J,ee,z,M,V,R)=>ee+z+M+V+R+(J/2**32|0)|0;f.add5H=Z,f.default={fromBig:h,split:_,toBig:w,shrSH:k,shrSL:S,rotrSH:$,rotrSL:p,rotrBH:I,rotrBL:H,rotr32H:P,rotr32L:C,rotlSH:x,rotlSL:N,rotlBH:b,rotlBL:W,add:G,add3L:T,add3H:O,add4L:Q,add4H:Y,add5H:Z,add5L:X}},7888:(ae,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.crypto=void 0,f.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},3880:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.hmac=f.HMAC=void 0;const m=y(3608),h=y(7760);class _ extends h.Hash{constructor(S,$){super(),this.finished=!1,this.destroyed=!1,(0,m.hash)(S);const p=(0,h.toBytes)($);if(this.iHash=S.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const I=this.blockLen,H=new Uint8Array(I);H.set(p.length>I?S.create().update(p).digest():p);for(let P=0;Pnew _(k,S).update($).digest(),f.hmac.create=(k,S)=>new _(k,S)},1864:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0}),f.pbkdf2Async=f.pbkdf2=void 0;const h=y(3608),_=y(3880),w=y(7760);function k(H,P,C,x){(0,h.hash)(H);const N=(0,w.checkOpts)({dkLen:32,asyncTick:10},x),{c:b,dkLen:W,asyncTick:G}=N;if((0,h.number)(b),(0,h.number)(W),(0,h.number)(G),b<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const T=(0,w.toBytes)(P),O=(0,w.toBytes)(C),Q=new Uint8Array(W),Y=_.hmac.create(H,T),X=Y._cloneInto().update(O);return{c:b,dkLen:W,asyncTick:G,DK:Q,PRF:Y,PRFSalt:X}}function S(H,P,C,x,N){return H.destroy(),P.destroy(),x&&x.destroy(),N.fill(0),C}function I(){return(I=m(function*(H,P,C,x){const{c:N,dkLen:b,asyncTick:W,DK:G,PRF:T,PRFSalt:O}=k(H,P,C,x);let Q;const Y=new Uint8Array(4),X=(0,w.createView)(Y),Z=new Uint8Array(T.outputLen);for(let re=1,J=0;J{T._cloneInto(Q).update(Z).digestInto(Z);for(let z=0;z{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.sha224=f.sha256=void 0;const m=y(1984),h=y(7760),_=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),w=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),k=new Uint32Array(64);class S extends m.HashMD{constructor(){super(64,32,8,!1),this.A=0|w[0],this.B=0|w[1],this.C=0|w[2],this.D=0|w[3],this.E=0|w[4],this.F=0|w[5],this.G=0|w[6],this.H=0|w[7]}get(){const{A:I,B:H,C:P,D:C,E:x,F:N,G:b,H:W}=this;return[I,H,P,C,x,N,b,W]}set(I,H,P,C,x,N,b,W){this.A=0|I,this.B=0|H,this.C=0|P,this.D=0|C,this.E=0|x,this.F=0|N,this.G=0|b,this.H=0|W}process(I,H){for(let O=0;O<16;O++,H+=4)k[O]=I.getUint32(H,!1);for(let O=16;O<64;O++){const Q=k[O-15],Y=k[O-2],X=(0,h.rotr)(Q,7)^(0,h.rotr)(Q,18)^Q>>>3,Z=(0,h.rotr)(Y,17)^(0,h.rotr)(Y,19)^Y>>>10;k[O]=Z+k[O-7]+X+k[O-16]|0}let{A:P,B:C,C:x,D:N,E:b,F:W,G,H:T}=this;for(let O=0;O<64;O++){const Y=T+((0,h.rotr)(b,6)^(0,h.rotr)(b,11)^(0,h.rotr)(b,25))+(0,m.Chi)(b,W,G)+_[O]+k[O]|0,Z=((0,h.rotr)(P,2)^(0,h.rotr)(P,13)^(0,h.rotr)(P,22))+(0,m.Maj)(P,C,x)|0;T=G,G=W,W=b,b=N+Y|0,N=x,x=C,C=P,P=Y+Z|0}P=P+this.A|0,C=C+this.B|0,x=x+this.C|0,N=N+this.D|0,b=b+this.E|0,W=W+this.F|0,G=G+this.G|0,T=T+this.H|0,this.set(P,C,x,N,b,W,G,T)}roundClean(){k.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class $ extends S{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}f.sha256=(0,h.wrapConstructor)(()=>new S),f.sha224=(0,h.wrapConstructor)(()=>new $)},704:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.shake256=f.shake128=f.keccak_512=f.keccak_384=f.keccak_256=f.keccak_224=f.sha3_512=f.sha3_384=f.sha3_256=f.sha3_224=f.Keccak=f.keccakP=void 0;const m=y(3608),h=y(2640),_=y(7760),w=[],k=[],S=[],$=BigInt(0),p=BigInt(1),I=BigInt(2),H=BigInt(7),P=BigInt(256),C=BigInt(113);for(let Y=0,X=p,Z=1,re=0;Y<24;Y++){[Z,re]=[re,(2*Z+3*re)%5],w.push(2*(5*re+Z)),k.push((Y+1)*(Y+2)/2%64);let J=$;for(let ee=0;ee<7;ee++)X=(X<>H)*C)%P,X&I&&(J^=p<<(p<Z>32?(0,h.rotlBH)(Y,X,Z):(0,h.rotlSH)(Y,X,Z),W=(Y,X,Z)=>Z>32?(0,h.rotlBL)(Y,X,Z):(0,h.rotlSL)(Y,X,Z);function G(Y,X=24){const Z=new Uint32Array(10);for(let re=24-X;re<24;re++){for(let z=0;z<10;z++)Z[z]=Y[z]^Y[z+10]^Y[z+20]^Y[z+30]^Y[z+40];for(let z=0;z<10;z+=2){const M=(z+8)%10,V=(z+2)%10,R=Z[V],L=Z[V+1],ne=b(R,L,1)^Z[M],oe=W(R,L,1)^Z[M+1];for(let de=0;de<50;de+=10)Y[z+de]^=ne,Y[z+de+1]^=oe}let J=Y[2],ee=Y[3];for(let z=0;z<24;z++){const M=k[z],V=b(J,ee,M),R=W(J,ee,M),L=w[z];J=Y[L],ee=Y[L+1],Y[L]=V,Y[L+1]=R}for(let z=0;z<50;z+=10){for(let M=0;M<10;M++)Z[M]=Y[z+M];for(let M=0;M<10;M++)Y[z+M]^=~Z[(M+2)%10]&Z[(M+4)%10]}Y[0]^=x[re],Y[1]^=N[re]}Z.fill(0)}f.keccakP=G;class T extends _.Hash{constructor(X,Z,re,J=!1,ee=24){if(super(),this.blockLen=X,this.suffix=Z,this.outputLen=re,this.enableXOF=J,this.rounds=ee,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,m.number)(re),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,_.u32)(this.state)}keccak(){_.isLE||(0,_.byteSwap32)(this.state32),G(this.state32,this.rounds),_.isLE||(0,_.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(X){(0,m.exists)(this);const{blockLen:Z,state:re}=this,J=(X=(0,_.toBytes)(X)).length;for(let ee=0;ee=re&&this.keccak();const z=Math.min(re-this.posOut,ee-J);X.set(Z.subarray(this.posOut,this.posOut+z),J),this.posOut+=z,J+=z}return X}xofInto(X){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(X)}xof(X){return(0,m.number)(X),this.xofInto(new Uint8Array(X))}digestInto(X){if((0,m.output)(X,this),this.finished)throw new Error("digest() was already called");return this.writeInto(X),this.destroy(),X}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(X){const{blockLen:Z,suffix:re,outputLen:J,rounds:ee,enableXOF:z}=this;return X||(X=new T(Z,re,J,z,ee)),X.state32.set(this.state32),X.pos=this.pos,X.posOut=this.posOut,X.finished=this.finished,X.rounds=ee,X.suffix=re,X.outputLen=J,X.enableXOF=z,X.destroyed=this.destroyed,X}}f.Keccak=T;const O=(Y,X,Z)=>(0,_.wrapConstructor)(()=>new T(X,Y,Z));f.sha3_224=O(6,144,28),f.sha3_256=O(6,136,32),f.sha3_384=O(6,104,48),f.sha3_512=O(6,72,64),f.keccak_224=O(1,144,28),f.keccak_256=O(1,136,32),f.keccak_384=O(1,104,48),f.keccak_512=O(1,72,64);const Q=(Y,X,Z)=>(0,_.wrapXOFConstructorWithOpts)((re={})=>new T(X,Y,void 0===re.dkLen?Z:re.dkLen,!0));f.shake128=Q(31,168,16),f.shake256=Q(31,136,32)},8736:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.sha384=f.sha512_256=f.sha512_224=f.sha512=f.SHA512=void 0;const m=y(1984),h=y(2640),_=y(7760),[w,k]=h.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(C=>BigInt(C))),S=new Uint32Array(80),$=new Uint32Array(80);class p extends m.HashMD{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:x,Al:N,Bh:b,Bl:W,Ch:G,Cl:T,Dh:O,Dl:Q,Eh:Y,El:X,Fh:Z,Fl:re,Gh:J,Gl:ee,Hh:z,Hl:M}=this;return[x,N,b,W,G,T,O,Q,Y,X,Z,re,J,ee,z,M]}set(x,N,b,W,G,T,O,Q,Y,X,Z,re,J,ee,z,M){this.Ah=0|x,this.Al=0|N,this.Bh=0|b,this.Bl=0|W,this.Ch=0|G,this.Cl=0|T,this.Dh=0|O,this.Dl=0|Q,this.Eh=0|Y,this.El=0|X,this.Fh=0|Z,this.Fl=0|re,this.Gh=0|J,this.Gl=0|ee,this.Hh=0|z,this.Hl=0|M}process(x,N){for(let L=0;L<16;L++,N+=4)S[L]=x.getUint32(N),$[L]=x.getUint32(N+=4);for(let L=16;L<80;L++){const ne=0|S[L-15],oe=0|$[L-15],de=h.default.rotrSH(ne,oe,1)^h.default.rotrSH(ne,oe,8)^h.default.shrSH(ne,oe,7),Ce=h.default.rotrSL(ne,oe,1)^h.default.rotrSL(ne,oe,8)^h.default.shrSL(ne,oe,7),D=0|S[L-2],F=0|$[L-2],B=h.default.rotrSH(D,F,19)^h.default.rotrBH(D,F,61)^h.default.shrSH(D,F,6),j=h.default.rotrSL(D,F,19)^h.default.rotrBL(D,F,61)^h.default.shrSL(D,F,6),te=h.default.add4L(Ce,j,$[L-7],$[L-16]),ie=h.default.add4H(te,de,B,S[L-7],S[L-16]);S[L]=0|ie,$[L]=0|te}let{Ah:b,Al:W,Bh:G,Bl:T,Ch:O,Cl:Q,Dh:Y,Dl:X,Eh:Z,El:re,Fh:J,Fl:ee,Gh:z,Gl:M,Hh:V,Hl:R}=this;for(let L=0;L<80;L++){const ne=h.default.rotrSH(Z,re,14)^h.default.rotrSH(Z,re,18)^h.default.rotrBH(Z,re,41),oe=h.default.rotrSL(Z,re,14)^h.default.rotrSL(Z,re,18)^h.default.rotrBL(Z,re,41),de=Z&J^~Z&z,D=h.default.add5L(R,oe,re&ee^~re&M,k[L],$[L]),F=h.default.add5H(D,V,ne,de,w[L],S[L]),B=0|D,j=h.default.rotrSH(b,W,28)^h.default.rotrBH(b,W,34)^h.default.rotrBH(b,W,39),te=h.default.rotrSL(b,W,28)^h.default.rotrBL(b,W,34)^h.default.rotrBL(b,W,39),ie=b&G^b&O^G&O,fe=W&T^W&Q^T&Q;V=0|z,R=0|M,z=0|J,M=0|ee,J=0|Z,ee=0|re,({h:Z,l:re}=h.default.add(0|Y,0|X,0|F,0|B)),Y=0|O,X=0|Q,O=0|G,Q=0|T,G=0|b,T=0|W;const ce=h.default.add3L(B,te,fe);b=h.default.add3H(ce,F,j,ie),W=0|ce}({h:b,l:W}=h.default.add(0|this.Ah,0|this.Al,0|b,0|W)),({h:G,l:T}=h.default.add(0|this.Bh,0|this.Bl,0|G,0|T)),({h:O,l:Q}=h.default.add(0|this.Ch,0|this.Cl,0|O,0|Q)),({h:Y,l:X}=h.default.add(0|this.Dh,0|this.Dl,0|Y,0|X)),({h:Z,l:re}=h.default.add(0|this.Eh,0|this.El,0|Z,0|re)),({h:J,l:ee}=h.default.add(0|this.Fh,0|this.Fl,0|J,0|ee)),({h:z,l:M}=h.default.add(0|this.Gh,0|this.Gl,0|z,0|M)),({h:V,l:R}=h.default.add(0|this.Hh,0|this.Hl,0|V,0|R)),this.set(b,W,G,T,O,Q,Y,X,Z,re,J,ee,z,M,V,R)}roundClean(){S.fill(0),$.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}f.SHA512=p;class I extends p{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class H extends p{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class P extends p{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}f.sha512=(0,_.wrapConstructor)(()=>new p),f.sha512_224=(0,_.wrapConstructor)(()=>new I),f.sha512_256=(0,_.wrapConstructor)(()=>new H),f.sha384=(0,_.wrapConstructor)(()=>new P)},7760:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0}),f.randomBytes=f.wrapXOFConstructorWithOpts=f.wrapConstructorWithOpts=f.wrapConstructor=f.checkOpts=f.Hash=f.concatBytes=f.toBytes=f.utf8ToBytes=f.asyncLoop=f.nextTick=f.hexToBytes=f.bytesToHex=f.byteSwap32=f.byteSwapIfBE=f.byteSwap=f.isLE=f.rotl=f.rotr=f.createView=f.u32=f.u8=f.isBytes=void 0;const h=y(7888),_=y(3608);f.isBytes=function w(R){return R instanceof Uint8Array||null!=R&&"object"==typeof R&&"Uint8Array"===R.constructor.name},f.u8=R=>new Uint8Array(R.buffer,R.byteOffset,R.byteLength),f.u32=R=>new Uint32Array(R.buffer,R.byteOffset,Math.floor(R.byteLength/4)),f.createView=R=>new DataView(R.buffer,R.byteOffset,R.byteLength),f.rotr=(R,L)=>R<<32-L|R>>>L,f.rotl=(R,L)=>R<>>32-L>>>0,f.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],f.byteSwap=R=>R<<24&4278190080|R<<8&16711680|R>>>8&65280|R>>>24&255,f.byteSwapIfBE=f.isLE?R=>R:R=>(0,f.byteSwap)(R),f.byteSwap32=function P(R){for(let L=0;LL.toString(16).padStart(2,"0"));f.bytesToHex=function x(R){(0,_.bytes)(R);let L="";for(let ne=0;ne=N__0&&R<=N__9?R-N__0:R>=N__A&&R<=N__F?R-(N__A-10):R>=N__a&&R<=N__f?R-(N__a-10):void 0}function O(){return(O=m(function*(R,L,ne){let oe=Date.now();for(let de=0;de=0&&CeR().update(Y(oe)).digest(),ne=R();return L.outputLen=ne.outputLen,L.blockLen=ne.blockLen,L.create=()=>R(),L},f.wrapConstructorWithOpts=function z(R){const L=(oe,de)=>R(de).update(Y(oe)).digest(),ne=R({});return L.outputLen=ne.outputLen,L.blockLen=ne.blockLen,L.create=oe=>R(oe),L},f.wrapXOFConstructorWithOpts=function M(R){const L=(oe,de)=>R(de).update(Y(oe)).digest(),ne=R({});return L.outputLen=ne.outputLen,L.blockLen=ne.blockLen,L.create=oe=>R(oe),L},f.randomBytes=function V(R=32){if(h.crypto&&"function"==typeof h.crypto.getRandomValues)return h.crypto.getRandomValues(new Uint8Array(R));throw new Error("crypto.getRandomValues must be defined")}},4920:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0}),f.EncryptedURI=f.EncryptedURIAlgorithm=f.EncryptedURIDecrypter=f.EncryptedURIEncrypter=f.EncryptedURIParser=void 0;const h=y(4400);class _{match(C){return/^encrypted:/.test(C)}}class w{constructor(){this.ENCRYPTED_URI_MATCHER=/^encrypted:/,this.QUERY_STRING_MATCHER=/^\?[^;]*;/}decode(C){const x={cipher:""},N=new h.IterableString(C);return this.checkURI(N),this.identifyAlgorithm(N,x),this.readQueryString(N,x),x.cipher=N.toTheEnd().replace(/^;/,""),x}checkURI(C){if(!C.addCursor(this.ENCRYPTED_URI_MATCHER))throw new Error("not an encrypted uri")}identifyAlgorithm(C,x){const b=C.addCursor(/^[^?;]*/);b&&(x.algorithm=b)}readQueryString(C,x){const b=C.addCursor(this.QUERY_STRING_MATCHER),W=b.replace(/^\?|;$/g,"");if(x.queryString=W,/^\?([^=]+=[^=]+)(&([^=]+=[^=]+))*[;]$/.test(b)){const G=new URL(`encrypted://_?${W}`),T={};G.searchParams.forEach((O,Q)=>{T[Q]=decodeURI(String(O))}),Object.keys(T).length&&(x.params=T)}}}class k{static propertyShouldBeIgnored(C,x,N){const b={...H.defaultParams,...C},W=H.getConfigsOfDefaults(N);return!(b[x]&&(!W.ignoreDefaultValues||H.defaultParams[x]!==b[x]))}static castKDFConfigToParams(C){const x={};return C.kdf&&(this.propertyShouldBeIgnored(C.kdf,"kdf",C.config)||(x.kdf=C.kdf.kdf),this.propertyShouldBeIgnored(C.kdf,"hasher",C.config)||(x.h=C.kdf.hasher),this.propertyShouldBeIgnored(C.kdf,"derivateKeyLength",C.config)||(x.dklen=String(C.kdf.derivateKeyLength)),this.propertyShouldBeIgnored(C.kdf,"rounds",C.config)||(x.c=String(C.kdf.rounds))),x}encode(C){const x=this.encodeAlgorithm(C),N=this.encodeParameters(C);return N?`encrypted:${x}?${N};${C.cipher}`:`encrypted:${x};${C.cipher}`}encodeParameters(C){const x={},N=k.castKDFConfigToParams(C),b={...C.params,...N},W=H.getConfigsOfDefaults(C.config),G=Object.keys(b);if(W.ignoreMandatoryParamName&&("iv"===G[0]||"no"===G[0])&&1===G.length)return b[G[0]];if(!G.length)return C.queryString||"";G.forEach(O=>x[O]=b[O]);const T=new URLSearchParams;return G.forEach(O=>T.append(O,x[O])),T.toString()}encodeAlgorithm(C){return H.getConfigsOfDefaults(C.config).ignoreDefaultAlgorithm&&C.algorithm===H.defaultAlgotithm?"":C.algorithm||""}}class S{static matcher(C){return(new _).match(C)}constructor(C){if("string"==typeof C){const x=new w;this.decoded=x.decode(this.encoded=C),this.encoded=C}else{const x=new k;this.decoded=C,this.encoded=x.encode(C)}}}f.EncryptedURIParser=S,f.EncryptedURIEncrypter=class ${constructor(C){this.params=C}},f.EncryptedURIDecrypter=class p{constructor(C,x){this.decoded=C,this.password=x,this.kdf=this.getKDFParams(this.decoded)}getKDFParams(C){return H.getKDFParams(C)}},f.EncryptedURIAlgorithm=function I(P){return function(C){C.algorithm=P.algorithm,H.setAlgorithm(P.algorithm,C,P.decrypter)}};class H{static getConfigsOfDefaults(C){const x={ignoreDefaultAlgorithm:!0,ignoreDefaultValues:!0,ignoreMandatoryParamName:!0};return C?"ignoreDefaults"in C?{ignoreDefaultAlgorithm:C.ignoreDefaults,ignoreDefaultValues:C.ignoreDefaults,ignoreMandatoryParamName:C.ignoreDefaults}:{...x,...C}:x}static getKDFParams(C){let x=H.defaultParams;return C&&("kdf"in C&&C.kdf?x=C.kdf:C.params&&(x=H.castParamsToConfig(C.params))),{...H.defaultParams,...x}}static castParamsToConfig(C){const x={};if(!C)return x;if("string"===C.kdf&&(x.kdf=C.kdf),"string"==typeof C.h&&(x.hasher=C.h),"string"==typeof C.dklen){const N=Number(C.dklen);Number.isSafeInteger(N)&&(x.derivateKeyLength=N)}if("string"==typeof C.c){const N=Number(C.c);Number.isSafeInteger(N)&&(x.rounds=N)}return x}static castKDFConfigToParams(C){return k.castKDFConfigToParams(C)}static matcher(C){return(new _).match(C)}static encode(C){return new S(C).encoded}static encrypt(C,...x){var N=this;return m(function*(){const[b]=N.getAlgorithm(C.algorithm),W=yield new b({...C,password:C.password.normalize("NFKC")},...x).encrypt();return W.algorithm=b.algorithm||C.algorithm,Promise.resolve(N.encode({...W,kdf:C.kdf,config:C.config}))})()}static decrypt(C,x,...N){const b=new S(C).decoded,[,W]=this.getAlgorithm(b.algorithm),G={...H.defaultParams};return new W(b,x.normalize("NFKC"),G,...N).decrypt()}static setAlgorithm(C,x,N){this.supportedAlgorithm[C]||(this.supportedAlgorithm[C]=[x,N])}static getAlgorithm(C){C=C||H.defaultAlgotithm;const[x,N]=this.supportedAlgorithm[C]||[null,null];if(!x&&!N)throw new Error(`Algorithm '${C}' not supported`);return[x,N]}}f.EncryptedURI=H,H.defaultParams={kdf:"pbkdf2",hasher:"sha256",derivateKeyLength:32,rounds:32},H.defaultAlgotithm="aes/cbc",H.supportedAlgorithm={}},9680:(ae,f,y)=>{"use strict";var m={};y.r(m),y.d(m,{yA:()=>kv,EH:()=>Ec,bytesToNumberBE:()=>Er,MH:()=>Ov,Q7:()=>Vs,c1:()=>ET,qG:()=>tr,hexToBytes:()=>bc,e_:()=>Ji,Gs:()=>Pv,El:()=>Du});var h=y(1528);let w=null,S=1;const $=Symbol("SIGNAL");function p(e){const t=w;return w=e,t}function b(e){if((!J(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==S)){if(!e.producerMustRecompute(e)&&!Y(e))return e.dirty=!1,void(e.lastCleanEpoch=S);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=S}}function Y(e){ee(e);for(let t=0;t0}function ee(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let de=null;function Ae(e){return"function"==typeof e}function Be(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Ve=Be(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Te(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Le{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(Ae(r))try{r()}catch(i){t=i instanceof Ve?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{pt(i)}catch(s){t=t??[],s instanceof Ve?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ve(t)}}add(t){var n;if(t&&t!==this)if(this.closed)pt(t);else{if(t instanceof Le){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Te(n,t)}remove(t){const{_finalizers:n}=this;n&&Te(n,t),t instanceof Le&&t._removeParent(this)}}Le.EMPTY=(()=>{const e=new Le;return e.closed=!0,e})();const Qe=Le.EMPTY;function Dt(e){return e instanceof Le||e&&"closed"in e&&Ae(e.remove)&&Ae(e.add)&&Ae(e.unsubscribe)}function pt(e){Ae(e)?e():e.unsubscribe()}const ut={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},an={setTimeout(e,t,...n){const{delegate:r}=an;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=an;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function rr(e){an.setTimeout(()=>{const{onUnhandledError:t}=ut;if(!t)throw e;t(e)})}function Bn(){}const Dr=wo("C",void 0,void 0);function wo(e,t,n){return{kind:e,value:t,error:n}}let Pt=null;function Ht(e){if(ut.useDeprecatedSynchronousErrorHandling){const t=!Pt;if(t&&(Pt={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Pt;if(Pt=null,n)throw r}}else e()}class fr extends Le{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Dt(t)&&t.add(this)):this.destination=P0}static create(t,n,r){return new to(t,n,r)}next(t){this.isStopped?Ys(function Pc(e){return wo("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Ys(function Vr(e){return wo("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ys(Dr,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ar=Function.prototype.bind;function Fn(e,t){return Ar.call(e,t)}class eo{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ls(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ls(r)}else ls(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ls(n)}}}class to extends fr{constructor(t,n,r){let o;if(super(),Ae(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ut.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Fn(t.next,i),error:t.error&&Fn(t.error,i),complete:t.complete&&Fn(t.complete,i)}):o=t}this.destination=new eo(o)}}function ls(e){ut.useDeprecatedSynchronousErrorHandling?function Rn(e){ut.useDeprecatedSynchronousErrorHandling&&Pt&&(Pt.errorThrown=!0,Pt.error=e)}(e):rr(e)}function Ys(e,t){const{onStoppedNotification:n}=ut;n&&an.setTimeout(()=>n(e,t))}const P0={closed:!0,next:Bn,error:function O0(e){throw e},complete:Bn},Xs="function"==typeof Symbol&&Symbol.observable||"@@observable";function Qo(e){return e}function Qu(e){return 0===e.length?Qo:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let cn=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function Yu(e){return e&&e instanceof fr||function B0(e){return e&&Ae(e.next)&&Ae(e.error)&&Ae(e.complete)}(e)&&Dt(e)}(n)?n:new to(n,r,o);return Ht(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Zu(r))((o,i)=>{const s=new to({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Xs](){return this}pipe(...n){return Qu(n)(this)}toPromise(n){return new(n=Zu(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Zu(e){var t;return null!==(t=e??ut.Promise)&&void 0!==t?t:Promise}const L0=Be(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let en=(()=>{class e extends cn{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Hn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new L0}next(n){Ht(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Ht(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Ht(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Qe:(this.currentObservers=null,i.push(n),new Le(()=>{this.currentObservers=null,Te(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new cn;return n.source=this,n}}return e.create=(t,n)=>new Hn(t,n),e})();class Hn extends en{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Qe}}class ln extends en{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function kc(e){return Ae(e?.lift)}function _n(e){return t=>{if(kc(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function En(e,t,n,r,o){return new m3(e,t,n,r,o)}class m3 extends fr{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function kt(e,t){return _n((n,r)=>{let o=0;n.subscribe(En(r,i=>{r.next(e.call(t,i,o++))}))})}const Dw="https://g.co/ng/security#xss";class he extends Error{constructor(t,n){super(function Js(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function V0(e){return t=>{setTimeout(e,void 0,t)}}const Xt=class y3 extends en{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=V0(i),o&&(o=V0(o)),s&&(s=V0(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof Le&&t.add(a),a}};var _t=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(_t||{});function bn(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(bn).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function U0(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var Ju=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Ju||{}),no=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(no||{});function Zo(e){return{toString:e}.toString()}const Ot=globalThis,_o={},At=[];function Bt(e){for(let t in e)if(e[t]===Bt)return t;throw Error("Could not find renamed property on target object.")}function E3(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}const Bc=Bt({\u0275cmp:Bt}),H0=Bt({\u0275dir:Bt}),j0=Bt({\u0275pipe:Bt}),Iw=Bt({\u0275mod:Bt}),Yo=Bt({\u0275fac:Bt}),Lc=Bt({__NG_ELEMENT_ID__:Bt}),Tw=Bt({__NG_ENV_ID__:Bt});var Jt=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Jt||{});function Mw(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function $0(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const v=8&r?g:null;if(v&&-1!==Mw(v,l,0)||2&r&&l!==g){if(ro(r))return!1;s=!0}}}}else{if(!s&&!ro(r)&&!ro(c))return!1;if(s&&ro(c))continue;s=!1,r=c|1&r}}return ro(r)||s}function ro(e){return 0==(1&e)}function D3(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!ro(s)&&(t+=Bw(i,o),o=""),r=s,i=i||!ro(r);n++}return""!==o&&(t+=Bw(i,o)),t}function Tr(e){return Zo(()=>{const t=Vw(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ju.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||no.Emulated,styles:e.styles||At,_:null,schemas:e.schemas||null,tView:null,id:""};Uw(n);const r=e.dependencies;return n.directiveDefs=ed(r,!1),n.pipeDefs=ed(r,!0),n.id=function k3(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function F3(e){return gt(e)||xn(e)}function O3(e){return null!==e}function un(e){return Zo(()=>({type:e.type,bootstrap:e.bootstrap||At,declarations:e.declarations||At,imports:e.imports||At,exports:e.exports||At,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Lw(e,t){if(null==e)return _o;const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];let i,s,a=Jt.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Jt.None?[r,a]:r,t[i]=s):n[i]=r}return n}function it(e){return Zo(()=>{const t=Vw(e);return Uw(t),t})}function gt(e){return e[Bc]||null}function xn(e){return e[H0]||null}function Ln(e){return e[j0]||null}function jn(e,t){const n=e[Iw]||null;if(!n&&!0===t)throw new Error(`Type ${bn(e)} does not have '\u0275mod' property.`);return n}function Vw(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||_o,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||At,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Lw(e.inputs,t),outputs:Lw(e.outputs),debugInfo:null}}function Uw(e){e.features?.forEach(t=>t(e))}function ed(e,t){if(!e)return null;const n=t?Ln:F3;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(O3)}const tn=0,ke=1,qe=2,dn=3,oo=4,$n=5,io=6,ea=7,Wt=8,zn=9,Xo=10,st=11,Uc=12,Hw=13,ta=14,rn=15,Hc=16,na=17,Jo=18,jc=19,jw=20,Ti=21,td=22,us=23,ct=25,z0=1,Eo=7,ra=9,fn=10;var G0=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(G0||{});function Gn(e){return Array.isArray(e)&&"object"==typeof e[z0]}function Wn(e){return Array.isArray(e)&&!0===e[z0]}function W0(e){return 0!=(4&e.flags)}function ds(e){return e.componentOffset>-1}function rd(e){return 1==(1&e.flags)}function so(e){return!!e.template}function K0(e){return 0!=(512&e[qe])}const Ww="svg";let qw=!1;function Vt(e){for(;Array.isArray(e);)e=e[tn];return e}function zc(e,t){return Vt(t[e])}function or(e,t){return Vt(t[e.index])}function Gc(e,t){return e.data[t]}function Mr(e,t){const n=t[e];return Gn(n)?n:n[tn]}function Y0(e){return 128==(128&e[qe])}function bo(e,t){return null==t?null:e[t]}function Qw(e){e[na]=0}function z3(e){1024&e[qe]||(e[qe]|=1024,Y0(e)&&Wc(e))}function X0(e){return!!(9216&e[qe]||e[us]?.dirty)}function J0(e){X0(e)?Wc(e):64&e[qe]&&(function U3(){return qw}()?(e[qe]|=1024,Wc(e)):e[Xo].changeDetectionScheduler?.notify())}function Wc(e){e[Xo].changeDetectionScheduler?.notify();let t=fs(e);for(;null!==t&&!(8192&t[qe])&&(t[qe]|=8192,Y0(t));)t=fs(t)}function od(e,t){if(256==(256&e[qe]))throw new he(911,!1);null===e[Ti]&&(e[Ti]=[]),e[Ti].push(t)}function fs(e){const t=e[dn];return Wn(t)?t[dn]:t}const nt={lFrame:i_(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Xw(){return nt.bindingsEnabled}function me(){return nt.lFrame.lView}function Et(){return nt.lFrame.tView}function Mi(e){return nt.lFrame.contextLView=e,e[Wt]}function Ni(e){return nt.lFrame.contextLView=null,e}function Lt(){let e=Jw();for(;null!==e&&64===e.type;)e=e.parent;return e}function Jw(){return nt.lFrame.currentTNode}function xo(e,t){const n=nt.lFrame;n.currentTNode=e,n.isParent=t}function tp(){return nt.lFrame.isParent}function np(){nt.lFrame.isParent=!1}function ao(){return nt.lFrame.bindingIndex++}function ti(e){const t=nt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function t4(e,t){const n=nt.lFrame;n.bindingIndex=n.bindingRootIndex=e,rp(t)}function rp(e){nt.lFrame.currentDirectiveIndex=e}function op(e){const t=nt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function ip(){return nt.lFrame.currentQueryIndex}function id(e){nt.lFrame.currentQueryIndex=e}function r4(e){const t=e[ke];return 2===t.type?t.declTNode:1===t.type?e[$n]:null}function r_(e,t,n){if(n&_t.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&_t.Host||(o=r4(i),null===o||(i=i[ta],10&o.type))););if(null===o)return!1;t=o,e=i}const r=nt.lFrame=o_();return r.currentTNode=t,r.lView=e,!0}function sp(e){const t=o_(),n=e[ke];nt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function o_(){const e=nt.lFrame,t=null===e?null:e.child;return null===t?i_(e):t}function i_(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function s_(){const e=nt.lFrame;return nt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const a_=s_;function ap(){const e=s_();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Kn(){return nt.lFrame.selectedIndex}function hs(e){nt.lFrame.selectedIndex=e}function Kt(){const e=nt.lFrame;return Gc(e.tView,e.selectedIndex)}function On(){nt.lFrame.currentNamespace=Ww}function Ur(){!function s4(){nt.lFrame.currentNamespace=null}()}let l_=!0;function sd(){return l_}function Ri(e){l_=e}function a4(){return sa(Lt(),me())}function sa(e,t){return new pr(or(e,t))}let dp,pr=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=a4}return e})();function u_(e){return e instanceof pr?e.nativeElement:e}function aa(e,t){e.forEach(n=>Array.isArray(n)?aa(n,t):t(n))}function d_(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ad(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Nr(e,t,n){let r=ca(e,t);return r>=0?e[1|r]=n:(r=~r,function f_(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function lp(e,t){const n=ca(e,t);if(n>=0)return e[1|n]}function ca(e,t){return function h_(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<g4}),g4="ng",v_=new je(""),ps=new je("",{providedIn:"platform",factory:()=>"unknown"}),w_=new je(""),__=new je("",{providedIn:"root",factory:()=>Fi().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),v4=Bt({__forward_ref__:Bt});function qt(e){return e.__forward_ref__=qt,e.toString=function(){return bn(this())},e}function tt(e){return gd(e)?e():e}function gd(e){return"function"==typeof e&&e.hasOwnProperty(v4)&&e.__forward_ref__===qt}function yp(e){return e&&!!e.\u0275providers}function lt(e){return"string"==typeof e?e:null==e?"":String(e)}function vp(e,t){throw new he(-201,!1)}let wp;function b_(){return wp}function mr(e){const t=wp;return wp=e,t}function x_(e,t,n){const r=dd(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&_t.Optional?null:void 0!==t?t:void vp()}const Qc={},_p="__NG_DI_FLAG__",md="ngTempTokenPath",C4=/\n/gm,C_="__source";let la;function Oi(e){const t=la;return la=e,t}function S4(e,t=_t.Default){if(void 0===la)throw new he(-203,!1);return null===la?x_(e,void 0,t):la.get(e,t&_t.Optional?null:void 0,t)}function We(e,t=_t.Default){return(b_()||S4)(tt(e),t)}function Pe(e,t=_t.Default){return We(e,yd(t))}function yd(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ep(e){const t=[];for(let n=0;nnull;function Tp(e,t,n=!1){return A_(e,t,n)}const pa="__parameters__";function ma(e,t,n){return Zo(()=>{const r=function Fp(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(c,l,u){const d=c.hasOwnProperty(pa)?c[pa]:Object.defineProperty(c,pa,{value:[]})[pa];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}const xd=Zc(ma("Optional"),8),Cd=Zc(ma("SkipSelf"),4);function gs(e,t){return e.hasOwnProperty(Yo)?e[Yo]:null}const ms=new je(""),R_=new je("",-1),Op=new je("");class Dd{get(t,n=Qc){if(n===Qc){const r=new Error(`NullInjectorError: No provider for ${bn(t)}!`);throw r.name="NullInjectorError",r}return n}}function j4(...e){return{\u0275providers:F_(0,e),\u0275fromNgModule:!0}}function F_(e,...t){const n=[],r=new Set;let o;const i=s=>{n.push(s)};return aa(t,s=>{const a=s;Sd(a,i,[],r)&&(o||=[],o.push(a))}),void 0!==o&&O_(o,i),n}function O_(e,t){for(let n=0;n{t(i,r)})}}function Sd(e,t,n,r){if(!(e=tt(e)))return!1;let o=null,i=fd(e);const s=!i&>(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const c=e.ngModule;if(i=fd(c),!i)return!1;o=c}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)Sd(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{aa(i.imports,u=>{Sd(u,t,n,r)&&(l||=[],l.push(u))})}finally{}void 0!==l&&O_(l,t)}if(!a){const l=gs(o)||(()=>new o);t({provide:o,useFactory:l,deps:At},o),t({provide:Op,useValue:o,multi:!0},o),t({provide:ms,useValue:()=>We(o),multi:!0},o)}const c=i.providers;if(null!=c&&!a){const l=e;Pp(c,u=>{t(u,l)})}}}return o!==e&&void 0!==e.providers}function Pp(e,t){for(let n of e)yp(n)&&(n=n.\u0275providers),Array.isArray(n)?Pp(n,t):t(n)}const $4=Bt({provide:String,useValue:Bt});function kp(e){return null!==e&&"object"==typeof e&&$4 in e}function ys(e){return"function"==typeof e}const Bp=new je(""),Id={},G4={};let Lp;function Td(){return void 0===Lp&&(Lp=new Dd),Lp}class Hr{}class ya extends Hr{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Up(t,s=>this.processProvider(s)),this.records.set(R_,va(void 0,this)),o.has("environment")&&this.records.set(Hr,va(void 0,this));const i=this.records.get(Bp);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Op,At,_t.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Oi(this),r=mr(void 0);try{return t()}finally{Oi(n),mr(r)}}get(t,n=Qc,r=_t.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Tw))return t[Tw](this);r=yd(r);const i=Oi(this),s=mr(void 0);try{if(!(r&_t.SkipSelf)){let c=this.records.get(t);if(void 0===c){const l=function Z4(e){return"function"==typeof e||"object"==typeof e&&e instanceof je}(t)&&dd(t);c=l&&this.injectableDefInScope(l)?va(Vp(t),Id):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(r&_t.Self?Td():this.parent).get(t,n=r&_t.Optional&&n===Qc?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[md]=a[md]||[]).unshift(bn(t)),i)throw a;return function T4(e,t,n,r){const o=e[md];throw t[C_]&&o.unshift(t[C_]),e.message=function M4(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=bn(t);if(Array.isArray(t))o=t.map(bn).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):bn(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(C4,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[md]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{mr(s),Oi(i)}}resolveInjectorInitializers(){const t=Oi(this),n=mr(void 0);try{const o=this.get(ms,At,_t.Self);for(const i of o)i()}finally{Oi(t),mr(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(bn(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new he(205,!1)}processProvider(t){let n=ys(t=tt(t))?t:tt(t&&t.provide);const r=function K4(e){return kp(e)?va(void 0,e.useValue):va(B_(e),Id)}(t);if(!ys(t)&&!0===t.multi){let o=this.records.get(n);o||(o=va(void 0,Id,!0),o.factory=()=>Ep(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Id&&(n.value=G4,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Q4(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=tt(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Vp(e){const t=dd(e),n=null!==t?t.factory:gs(e);if(null!==n)return n;if(e instanceof je)throw new he(204,!1);if(e instanceof Function)return function W4(e){if(e.length>0)throw new he(204,!1);const n=function h4(e){return e&&(e[hd]||e[y_])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new he(204,!1)}function B_(e,t,n){let r;if(ys(e)){const o=tt(e);return gs(o)||Vp(o)}if(kp(e))r=()=>tt(e.useValue);else if(function k_(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Ep(e.deps||[]));else if(function P_(e){return!(!e||!e.useExisting)}(e))r=()=>We(tt(e.useExisting));else{const o=tt(e&&(e.useClass||e.provide));if(!function q4(e){return!!e.deps}(e))return gs(o)||Vp(o);r=()=>new o(...Ep(e.deps))}return r}function va(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Up(e,t){for(const n of e)Array.isArray(n)?Up(n,t):n&&yp(n)?Up(n.\u0275providers,t):t(n)}function vs(e,t){e instanceof ya&&e.assertNotDestroyed();const r=Oi(e),o=mr(void 0);try{return t()}finally{Oi(r),mr(o)}}class sN{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function V_(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function jr(){return U_}function U_(e){return e.type.prototype.ngOnChanges&&(e.setInput=cN),aN}function aN(){const e=j_(this),t=e?.current;if(t){const n=e.previous;if(n===_o)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function cN(e,t,n,r,o){const i=this.declaredInputs[r],s=j_(e)||function lN(e,t){return e[H_]=t}(e,{previous:_o,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new sN(l&&l.currentValue,n,c===_o),V_(e,t,o,n)}jr.ngInherit=!0;const H_="__ngSimpleChanges__";function j_(e){return e[H_]||null}const Co=function(e,t,n){};function Nd(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[na]+=65536),(a>14>16&&(3&e[qe])===t&&(e[qe]+=16384,z_(a,i)):z_(a,i)}const _a=-1;class tl{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Wp(e){return e!==_a}function nl(e){return 32767&e}function rl(e,t){let n=function yN(e){return e>>16}(e),r=t;for(;n>0;)r=r[ta],n--;return r}let Kp=!0;function Od(e){const t=Kp;return Kp=e,t}const G_=255,W_=5;let vN=0;const Do={};function Pd(e,t){const n=K_(e,t);if(-1!==n)return n;const r=t[ke];r.firstCreatePass&&(e.injectorIndex=t.length,qp(r.data,e),qp(t,null),qp(r.blueprint,null));const o=kd(e,t),i=e.injectorIndex;if(Wp(o)){const s=nl(o),a=rl(o,t),c=a[ke].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function qp(e,t){e.push(0,0,0,0,0,0,0,0,t)}function K_(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function kd(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=eE(o),null===r)return _a;if(n++,o=o[ta],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return _a}function Qp(e,t,n){!function wN(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Lc)&&(r=n[Lc]),null==r&&(r=n[Lc]=vN++);const o=r&G_;t.data[e+(o>>W_)]|=1<=0?t&G_:xN:t}(n);if("function"==typeof i){if(!r_(t,e,r))return r&_t.Host?q_(o,0,r):Q_(t,n,r,o);try{let s;if(s=i(r),null!=s||r&_t.Optional)return s;vp()}finally{a_()}}else if("number"==typeof i){let s=null,a=K_(e,t),c=_a,l=r&_t.Host?t[rn][$n]:null;for((-1===a||r&_t.SkipSelf)&&(c=-1===a?kd(e,t):t[a+8],c!==_a&&J_(r,!1)?(s=t[ke],a=nl(c),t=rl(c,t)):a=-1);-1!==a;){const u=t[ke];if(X_(i,a,u.data)){const d=EN(a,t,n,s,r,l);if(d!==Do)return d}c=t[a+8],c!==_a&&J_(r,t[ke].data[a+8]===l)&&X_(i,a,t)?(s=u,a=nl(c),t=rl(c,t)):a=-1}}return o}function EN(e,t,n,r,o,i){const s=t[ke],a=s.data[e+8],u=Bd(a,s,n,null==r?ds(a)&&Kp:r!=s&&0!=(3&a.type),o&_t.Host&&i===a);return null!==u?ws(t,s,u,a):Do}function Bd(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,c=e.directiveStart,u=i>>20,g=o?a+u:e.directiveEnd;for(let v=r?a:a+u;v=c&&E.type===n)return v}if(o){const v=s[c];if(v&&so(v)&&v.type===n)return c}return null}function ws(e,t,n,r){let o=e[n];const i=t.data;if(function hN(e){return e instanceof tl}(o)){const s=o;s.resolving&&function E4(e,t){throw t&&t.join(" > "),new he(-200,e)}(function Mt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():lt(e)}(i[n]));const a=Od(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?mr(s.injectImpl):null;r_(e,r,_t.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function dN(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=U_(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&mr(l),Od(a),s.resolving=!1,a_()}}return o}function X_(e,t,n){return!!(n[t+(e>>W_)]&1<{const t=e.prototype.constructor,n=t[Yo]||Zp(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[Yo]||Zp(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Zp(e){return gd(e)?()=>{const t=Zp(tt(e));return t&&t()}:gs(e)}function eE(e){const t=e[ke],n=t.type;return 2===n?t.declTNode:1===n?e[$n]:null}function iE(e,t=null,n=null,r){const o=sE(e,t,n,r);return o.resolveInjectorInitializers(),o}function sE(e,t=null,n=null,r,o=new Set){const i=[n||At,j4(e)];return r=r||("object"==typeof e?void 0:bn(e)),new ya(i,t||Td(),r||null,o)}let qn=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Qc;static#t=this.NULL=new Dd;static create(n,r){if(Array.isArray(n))return iE({name:""},r,n,"");{const o=n.name??"";return iE({name:o},n.parent,n.providers,o)}}static#n=this.\u0275prov=Ue({token:e,providedIn:"any",factory:()=>We(R_)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function Xp(e){return e.ngOriginalError}class ni{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Xp(t);for(;n&&Xp(n);)n=Xp(n);return n||null}}const cE=new je("",{providedIn:"root",factory:()=>Pe(ni).handleError.bind(void 0)}),uE=new je("",{providedIn:"root",factory:()=>!1});let Hd,jd;function xa(e){return function Jp(){if(void 0===Hd&&(Hd=null,Ot.trustedTypes))try{Hd=Ot.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Hd}()?.createHTML(e)||e}function eg(){if(void 0===jd&&(jd=null,Ot.trustedTypes))try{jd=Ot.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return jd}function dE(e){return eg()?.createHTML(e)||e}function hE(e){return eg()?.createScriptURL(e)||e}class _s{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Dw})`}}class ON extends _s{getTypeName(){return"HTML"}}class PN extends _s{getTypeName(){return"Style"}}class kN extends _s{getTypeName(){return"Script"}}class BN extends _s{getTypeName(){return"URL"}}class LN extends _s{getTypeName(){return"ResourceURL"}}function Rr(e){return e instanceof _s?e.changingThisBreaksApplicationSecurity:e}function Ao(e,t){const n=function VN(e){return e instanceof _s&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Dw})`)}return n===t}class GN{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(xa(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class WN{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=xa(t),n}}const qN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function $d(e){return(e=String(e)).match(qN)?e:"unsafe:"+e}function ri(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function ol(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const gE=ri("area,br,col,hr,img,wbr"),mE=ri("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),yE=ri("rp,rt"),tg=ol(gE,ol(mE,ri("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ol(yE,ri("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ol(yE,mE)),ng=ri("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),vE=ol(ng,ri("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ri("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),QN=ri("script,style,template");class ZN{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!tg.hasOwnProperty(n))return this.sanitizedSomething=!0,!QN.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o"),!0}endElement(t){const n=t.nodeName.toLowerCase();tg.hasOwnProperty(n)&&!gE.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(wE(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const YN=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,XN=/([^\#-~ |!])/g;function wE(e){return e.replace(/&/g,"&").replace(YN,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(XN,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let zd;function _E(e,t){let n=null;try{zd=zd||function pE(e){const t=new WN(e);return function KN(){try{return!!(new window.DOMParser).parseFromString(xa(""),"text/html")}catch{return!1}}()?new GN(t):t}(e);let r=t?String(t):"";n=zd.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=zd.getInertBodyElement(r)}while(r!==i);return xa((new ZN).sanitizeChildren(rg(n)||n))}finally{if(n){const r=rg(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function rg(e){return"content"in e&&function JN(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Fr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Fr||{});function Gd(e){const t=il();return t?dE(t.sanitize(Fr.HTML,e)||""):Ao(e,"HTML")?dE(Rr(e)):_E(Fi(),lt(e))}function og(e){const t=il();return t?t.sanitize(Fr.URL,e)||"":Ao(e,"URL")?Rr(e):$d(lt(e))}function EE(e){const t=il();if(t)return hE(t.sanitize(Fr.RESOURCE_URL,e)||"");if(Ao(e,"ResourceURL"))return hE(Rr(e));throw new he(904,!1)}function il(){const e=me();return e&&e[Xo].sanitizer}const iR=/^>|^->||--!>|)/g,aR="\u200b$1\u200b";const ig=new Map;let fR=0;const ag="__ngContext__";function Qn(e,t){Gn(t)?(e[ag]=t[jc],function pR(e){ig.set(e[jc],e)}(t)):e[ag]=t}function Or(e){return e instanceof Function?e():e}var ki=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ki||{});let dg;function fg(e,t){return dg(e,t)}function Da(e,t,n,r,o){if(null!=r){let i,s=!1;Wn(r)?i=r:Gn(r)&&(s=!0,r=r[tn]);const a=Vt(r);0===e&&null!==n?null==o?HE(t,n,a):Es(t,n,a,o||null,!0):1===e&&null!==n?Es(t,n,a,o||null,!0):2===e?function Jd(e,t,n){const r=Yd(e,t);r&&function kR(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function VR(e,t,n,r,o){const i=n[Eo];i!==Vt(n)&&Da(t,e,r,i,o);for(let a=fn;at.replace(sR,aR))}(t))}function Qd(e,t,n){return e.createElement(t,n)}function LE(e,t){ef(e,t,t[st],2,null,null)}function VE(e,t){const n=e[ra],r=n.indexOf(t);n.splice(r,1)}function al(e,t){if(e.length<=fn)return;const n=fn+t,r=e[n];if(r){const o=r[Hc];null!==o&&o!==e&&VE(o,r),t>0&&(e[n-1][oo]=r[oo]);const i=ad(e,fn+t);!function TR(e,t){LE(e,t),t[tn]=null,t[$n]=null}(r[ke],r);const s=i[Jo];null!==s&&s.detachView(i[ke]),r[dn]=null,r[oo]=null,r[qe]&=-129}return r}function Zd(e,t){if(!(256&t[qe])){const n=t[st];n.destroyNode&&ef(e,t,n,3,null,null),function NR(e){let t=e[Uc];if(!t)return pg(e[ke],e);for(;t;){let n=null;if(Gn(t))n=t[Uc];else{const r=t[fn];r&&(n=r)}if(!n){for(;t&&!t[oo]&&t!==e;)Gn(t)&&pg(t[ke],t),t=t[dn];null===t&&(t=e),Gn(t)&&pg(t[ke],t),n=t&&t[oo]}t=n}}(t)}}function pg(e,t){if(!(256&t[qe])){t[qe]&=-129,t[qe]|=256,t[us]&&function X(e){if(ee(e),J(e))for(let t=0;t=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[ea]=null);const o=t[Ti];if(null!==o){t[Ti]=null;for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===no.None||i===no.Emulated)return null}return or(r,n)}}(e,t.parent,n)}function Es(e,t,n,r,o){e.insertBefore(t,n,r,o)}function HE(e,t,n){e.appendChild(t,n)}function jE(e,t,n,r,o){null!==r?Es(e,t,n,r,o):HE(e,t,n)}function Yd(e,t){return e.parentNode(t)}let mg,GE=function zE(e,t,n){return 40&e.type?or(e,n):null};function Xd(e,t,n,r){const o=gg(e,r,t),i=t[st],a=function $E(e,t,n){return GE(e,t,n)}(r.parent||t[$n],r,t);if(null!=o)if(Array.isArray(n))for(let c=0;cct&&XE(e,t,ct,!1),Co(s?2:0,o),n(r,o)}finally{hs(i),Co(s?3:1,o)}}function _g(e,t,n){if(W0(t)){const r=p(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function ob(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;const s=t[i];if(void 0===s)continue;r??={};let a,c=Jt.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=i;if(null!==o){if(!o.hasOwnProperty(i))continue;l=o[i]}0===e?ib(r,n,l,a,c):ib(r,n,l,a)}return r}function ib(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],void 0!==o&&i.push(o)}function vr(e,t,n,r,o,i,s,a){const c=or(t,n);let u,l=t.inputs;!a&&null!=l&&(u=l[r])?(Ig(e,n,u,r,o),ds(t)&&function XR(e,t){const n=Mr(t,e);16&n[qe]||(n[qe]|=64)}(n,t.index)):3&t.type&&(r=function YR(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(c,r,o))}function Cg(e,t,n,r){if(Xw()){const o=null===r?null:{"":-1},i=function o6(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,ll(e,n,o.hostVars,dt),o)}function So(e,t,n,r,o,i){const s=or(e,t);!function Ag(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?lt(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[st],s,i,e.value,n,r,o)}function u6(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a0&&(n[o-1][oo]=t),r!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Wc(e.lView)},consumerOnSignalRead(){this.lView[us]=this}};function mb(e){return vb(e[Uc])}function yb(e){return vb(e[oo])}function vb(e){for(;null!==e&&!Wn(e);)e=e[oo];return e}function sf(e,t=!0,n=0){const r=e[Xo],o=r.rendererFactory;o.begin?.();try{!function E6(e,t){Ng(e,t);let n=0;for(;X0(e);){if(100===n)throw new he(103,!1);n++,Ng(e,1)}}(e,n)}catch(s){throw t&&rf(e,s),s}finally{o.end?.(),r.inlineEffectRunner?.flush()}}function b6(e,t,n,r){const o=t[qe];if(256==(256&o))return;t[Xo].inlineEffectRunner?.flush(),sp(t);let s=null,a=null;(function x6(e){return 2!==e.type})(e)&&(a=function g6(e){return e[us]??function m6(e){const t=gb.pop()??Object.create(v6);return t.lView=e,t}(e)}(t),s=function O(e){return e&&(e.nextProducerIndex=0),p(e)}(a));try{Qw(t),function t_(e){return nt.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&tb(e,t,n,2,r);const c=3==(3&o);if(c){const d=e.preOrderCheckHooks;null!==d&&Rd(t,d,null)}else{const d=e.preOrderHooks;null!==d&&Fd(t,d,0,null),zp(t,0)}if(function C6(e){for(let t=mb(e);null!==t;t=yb(t)){if(!(t[qe]&G0.HasTransplantedViews))continue;const n=t[ra];for(let r=0;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(a,s),function y6(e){e.lView[us]!==e&&(e.lView=null,gb.push(e))}(a)),ap()}}function _b(e,t){for(let n=mb(e);null!==n;n=yb(n))for(let r=fn;r-1&&(al(t,r),ad(n,r))}this._attachedToViewContainer=!1}Zd(this._lView[ke],this._lView)}onDestroy(t){od(this._lView,t)}markForCheck(){hl(this._cdRefInjectingView||this._lView)}detach(){this._lView[qe]&=-129}reattach(){J0(this._lView),this._lView[qe]|=128}detectChanges(){this._lView[qe]|=1024,sf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new he(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,LE(this._lView[ke],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new he(902,!1);this._appRef=t,J0(this._lView)}}let ii=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=I6}return e})();const A6=ii,S6=class extends A6{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const o=function ul(e,t,n,r){const o=t.tView,a=tf(e,o,n,4096&e[qe]?4096:16,null,t,null,null,null,r?.injector??null,r?.dehydratedView??null);a[Hc]=e[t.index];const l=e[Jo];return null!==l&&(a[Jo]=l.createEmbeddedView(o)),Tg(o,a,n),a}(this._declarationLView,this._declarationTContainer,t,{injector:n,dehydratedView:r});return new pl(o)}};function I6(){return af(Lt(),me())}function af(e,t){return 4&e.type?new S6(t,e,sa(e,t)):null}class Bg{}class Z6{}class Tb{}class X6{resolveComponentFactory(t){throw function Y6(e){const t=Error(`No component factory found for ${bn(e)}.`);return t.ngComponent=e,t}(t)}}let wl=(()=>{class e{static#e=this.NULL=new X6}return e})();class Lg{}let si=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function J6(){const e=me(),n=Mr(Lt().index,e);return(Gn(n)?n:e)[st]}()}return e})(),eF=(()=>{class e{static#e=this.\u0275prov=Ue({token:e,providedIn:"root",factory:()=>null})}return e})();const Vg={};let _l=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=fF}return e})();function fF(e){return function hF(e,t,n){if(ds(e)&&!n){const r=Mr(e.index,t);return new pl(r,r)}return 47&e.type?new pl(t[rn],t):null}(Lt(),me(),16==(16&e))}let pf=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=yF;static#t=this.__NG_ENV_ID__=n=>n}return e})();class mF extends pf{constructor(t){super(),this._lView=t}onDestroy(t){return od(this._lView,t),()=>function ep(e,t){if(null===e[Ti])return;const n=e[Ti].indexOf(t);-1!==n&&e[Ti].splice(n,1)}(this._lView,t)}}function yF(){return new mF(me())}const Ub=new Set;function bs(e){Ub.has(e)||(Ub.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Hb(...e){}class Ct{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Xt(!1),this.onMicrotaskEmpty=new Xt(!1),this.onStable=new Xt(!1),this.onError=new Xt(!1),typeof Zone>"u")throw new he(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function xF(){const e="function"==typeof Ot.requestAnimationFrame;let t=Ot[e?"requestAnimationFrame":"setTimeout"],n=Ot[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function AF(e){const t=()=>{!function DF(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ot,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,$g(e),e.isCheckStableRunning=!0,jg(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),$g(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(function SF(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return n.invokeTask(o,i,s,a);try{return jb(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),$b(e)}},onInvoke:(n,r,o,i,s,a,c)=>{try{return jb(e),n.invoke(o,i,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),$b(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,$g(e),jg(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ct.isInAngularZone())throw new he(909,!1)}static assertNotInAngularZone(){if(Ct.isInAngularZone())throw new he(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,CF,Hb,Hb);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const CF={};function jg(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function $g(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function jb(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function $b(e){e._nesting--,jg(e)}class zb{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Xt,this.onMicrotaskEmpty=new Xt,this.onStable=new Xt,this.onError=new Xt}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}var xs=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(xs||{});const Gb={destroy(){}};function Kb(e,t){!t&&function Hp(e){if(!b_()&&!function A4(){return la}())throw new he(-203,!1)}();const n=t?.injector??Pe(qn);if(!function Pi(e){return"browser"===(e??Pe(qn)).get(ps)}(n))return Gb;bs("NgAfterNextRender");const r=n.get(El),o=r.handler??=new Qb,i=t?.phase??xs.MixedReadWrite,s=()=>{o.unregister(c),a()},a=n.get(pf).onDestroy(s),c=new qb(n,i,()=>{s(),e()});return o.register(c),{destroy:s}}class qb{constructor(t,n,r){this.phase=n,this.callbackFn=r,this.zone=t.get(Ct),this.errorHandler=t.get(ni,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(t){this.errorHandler?.handleError(t)}}}class Qb{constructor(){this.executingCallbacks=!1,this.buckets={[xs.EarlyRead]:new Set,[xs.Write]:new Set,[xs.MixedReadWrite]:new Set,[xs.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const n of t)n.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let El=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){const n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of n)r();this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=Ue({token:e,providedIn:"root",factory:()=>new e})}return e})();function mf(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0&&ZE(e,n,i.join(" "))}}(g,ge,E,r),void 0!==n&&function UF(e,t,n){const r=e.projection=[];for(let o=0;o{class e{static#e=this.__NG_ELEMENT_ID__=jF}return e})();function jF(){return nx(Lt(),me())}const $F=$r,ex=class extends $F{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return sa(this._hostTNode,this._hostLView)}get injector(){return new Dn(this._hostTNode,this._hostLView)}get parentInjector(){const t=kd(this._hostTNode,this._hostLView);if(Wp(t)){const n=rl(t,this._hostLView),r=nl(t);return new Dn(n[ke].data[r+8],n)}return new Dn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=tx(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-fn}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,Sa(this._hostTNode,null)),a}createComponent(t,n,r,o,i){const s=t&&!function el(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const E=n||{};a=E.index,r=E.injector,o=E.projectableNodes,i=E.environmentInjector||E.ngModuleRef}const c=s?t:new Cl(gt(t)),l=r||this.parentInjector;if(!i&&null==c.ngModule){const A=(s?l:this.parentInjector).get(Hr,null);A&&(i=A)}gt(c.componentType??{});const v=c.create(l,o,null,i);return this.insertImpl(v.hostView,a,Sa(this._hostTNode,null)),v}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const o=t._lView;if(function $3(e){return Wn(e[dn])}(o)){const a=this.indexOf(t);if(-1!==a)this.detach(a);else{const c=o[dn],l=new ex(c,c[$n],c[dn]);l.detach(l.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;return dl(s,o,i,r),t.attachToViewContainerRef(),d_(Wg(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=tx(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=al(this._lContainer,n);r&&(ad(Wg(this._lContainer),n),Zd(r[ke],r))}detach(t){const n=this._adjustIndex(t,-1),r=al(this._lContainer,n);return r&&null!=ad(Wg(this._lContainer),n)?new pl(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function tx(e){return e[8]}function Wg(e){return e[8]||(e[8]=[])}function nx(e,t){let n;const r=t[e.index];return Wn(r)?n=r:(n=cb(r,t,null,e),t[e.index]=n,nf(t,n)),rx(n,t,e,r),new ex(n,e,t)}let rx=function ix(e,t,n,r){if(e[Eo])return;let o;o=8&n.type?Vt(r):function zF(e,t){const n=e[st],r=n.createComment(""),o=or(t,e);return Es(n,Yd(n,o),r,function BR(e,t){return e.nextSibling(t)}(n,o),!1),r}(t,n),e[Eo]=o},Kg=()=>!1;class qg{constructor(t){this.queryList=t,this.matches=null}clone(){return new qg(this.queryList)}setDirty(){this.queryList.setDirty()}}class Qg{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let i=0;it.trim())}(t):t}}class Zg{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r0)r.push(s[a/2]);else{const l=i[a+1],u=t[-c];for(let d=fn;d=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Vc(o.hostAttrs,n=Vc(n,o.hostAttrs))}}(r)}function lO(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const r=t.inputs[n];if(void 0!==r&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const o=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(o))continue;e.inputTransforms??={},e.inputTransforms[o]=t.inputTransforms[o]}}}function vf(e){return e===_o?{}:e===At?[]:e}function dO(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function fO(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function hO(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function Sx(e){const t=e.inputConfig,n={};for(const r in t)if(t.hasOwnProperty(r)){const o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}class Cs{}class Ix{}class nm extends Cs{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Xb(this);const o=jn(t);this._bootstrapComponents=Or(o.bootstrap),this._r3Injector=sE(t,n,[{provide:Cs,useValue:this},{provide:wl,useValue:this.componentFactoryResolver},...r],bn(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class rm extends Ix{constructor(t){super(),this.moduleType=t}create(t){return new nm(this.moduleType,t,[])}}class Tx extends Cs{constructor(t){super(),this.componentFactoryResolver=new Xb(this),this.instance=null;const n=new ya([...t.providers,{provide:Cs,useValue:this},{provide:wl,useValue:this.componentFactoryResolver}],t.parent||Td(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function om(e,t,n=null){return new Tx({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let Al=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ln(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function hn(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Sn(e,t,n,r,o,i,s,a){const c=me(),l=Et(),u=e+ct,d=l.firstCreatePass?function bO(e,t,n,r,o,i,s,a,c){const l=t.consts,u=Aa(t,e,4,s||null,bo(l,a));Cg(t,n,u,bo(l,c)),Nd(t,u);const d=u.tView=xg(2,u,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,l,c,t,n,r,o,i,s):l.data[u];xo(d,!1);const g=Mx(l,c,d,e);sd()&&Xd(l,c,g,d),Qn(g,c);const v=cb(g,c,g,d);return c[u]=v,nf(c,v),function ox(e,t,n){return Kg(e,t,n)}(v,d,c),rd(d)&&Eg(l,c,d),null!=s&&bg(c,d,a),Sn}let Mx=function Nx(e,t,n,r){return Ri(!0),t[st].createComment("")};function wr(e,t,n,r){const o=me();return hn(o,ao(),t)&&(Et(),So(Kt(),o,e,t,n,r)),wr}function Af(e,t){return e<<17|t<<2}function Ui(e){return e>>17&32767}function pm(e){return 2|e}function Ss(e){return(131068&e)>>2}function gm(e,t){return-131069&e|t<<2}function mm(e){return 1|e}function cC(e,t,n,r){const o=e[n+1],i=null===t;let s=r?Ui(o):Ss(o),a=!1;for(;0!==s&&(!1===a||i);){const l=e[s+1];sP(e[s],t)&&(a=!0,e[s+1]=r?mm(l):pm(l)),s=r?Ui(l):Ss(l)}a&&(e[n+1]=r?pm(o):mm(o))}function sP(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ca(e,t)>=0}const In={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lC(e){return e.substring(In.key,In.keyEnd)}function uC(e,t){const n=In.textEnd;return n===t?-1:(t=In.keyEnd=function uP(e,t,n){for(;t32;)t++;return t}(e,In.key=t,n),Ga(e,t,n))}function Ga(e,t,n){for(;t=0;n=uC(t,n))Nr(e,lC(t),!0)}function co(e,t,n,r){const o=me(),i=Et(),s=ti(2);i.firstUpdatePass&&mC(i,e,s,r),t!==dt&&hn(o,s,t)&&vC(i,i.data[Kn()],o,o[st],e,o[s+1]=function EP(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=bn(Rr(e)))),e}(t,n),r,s)}function gC(e,t){return t>=e.expandoStartIndex}function mC(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[Kn()],s=gC(e,n);_C(i,r)&&null===t&&!s&&(t=!1),t=function pP(e,t,n,r){const o=op(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Nl(n=vm(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=vm(o,e,t,n,r),null===i){let c=function gP(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Ss(r))return e[Ui(r)]}(e,t,r);void 0!==c&&Array.isArray(c)&&(c=vm(null,e,t,c[1],r),c=Nl(c,t.attrs,r),function mP(e,t,n,r){e[Ui(n?t.classBindings:t.styleBindings)]=r}(e,t,r,c))}else i=function yP(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(l=!0)):u=n,o)if(0!==c){const g=Ui(e[a+1]);e[r+1]=Af(g,a),0!==g&&(e[g+1]=gm(e[g+1],r)),e[a+1]=function nP(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Af(a,0),0!==a&&(e[a+1]=gm(e[a+1],r)),a=r;else e[r+1]=Af(c,0),0===a?a=r:e[c+1]=gm(e[c+1],r),c=r;l&&(e[r+1]=pm(e[r+1])),cC(e,u,r,!0),cC(e,u,r,!1),function iP(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&ca(i,t)>=0&&(n[r+1]=mm(n[r+1]))}(t,u,e,r,i),s=Af(a,c),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}function vm(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=null===u;let g=n[o+1];g===dt&&(g=d?At:void 0);let v=d?lp(g,r):u===r?g:void 0;if(l&&!Sf(v)&&(v=lp(c,r)),Sf(v)&&(a=v,s))return a;const E=e[o+1];o=s?Ui(E):Ss(E)}if(null!==t){let c=i?t.residualClasses:t.residualStyles;null!=c&&(a=lp(c,r))}return a}function Sf(e){return void 0!==e}function _C(e,t){return 0!=(e.flags&(t?8:16))}function xe(e,t,n,r){const o=me(),i=Et(),s=ct+e,a=o[st],c=i.firstCreatePass?function zP(e,t,n,r,o,i){const s=t.consts,c=Aa(t,e,2,r,bo(s,o));return Cg(t,n,c,bo(s,i)),null!==c.attrs&&mf(c,c.attrs,!1),null!==c.mergedAttrs&&mf(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,i,o,t,n,r):i.data[s],l=CC(i,o,c,a,t,e);o[s]=l;const u=rd(c);return xo(c,!0),YE(a,l,c),32!=(32&c.flags)&&sd()&&Xd(i,o,l,c),0===function G3(){return nt.lFrame.elementDepthCount}()&&Qn(l,o),function W3(){nt.lFrame.elementDepthCount++}(),u&&(Eg(i,o,c),_g(i,c,o)),null!==r&&bg(o,c),xe}function Se(){let e=Lt();tp()?np():(e=e.parent,xo(e,!1));const t=e;(function q3(e){return nt.skipHydrationRootTNode===e})(t)&&function X3(){nt.skipHydrationRootTNode=null}(),function K3(){nt.lFrame.elementDepthCount--}();const n=Et();return n.firstCreatePass&&(Nd(n,e),W0(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function gN(e){return 0!=(8&e.flags)}(t)&&ym(n,t,me(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function mN(e){return 0!=(16&e.flags)}(t)&&ym(n,t,me(),t.stylesWithoutHost,!1),Se}function yt(e,t,n,r){return xe(e,t,n,r),Se(),yt}let CC=(e,t,n,r,o,i)=>(Ri(!0),Qd(r,o,function c_(){return nt.lFrame.currentNamespace}()));function Rl(e,t,n){const r=me(),o=Et(),i=e+ct,s=o.firstCreatePass?function KP(e,t,n,r,o){const i=t.consts,s=bo(i,r),a=Aa(t,e,8,"ng-container",s);return null!==s&&mf(a,s,!0),Cg(t,n,a,bo(i,o)),null!==t.queries&&t.queries.elementStart(t,a),a}(i,o,r,t,n):o.data[i];xo(s,!0);const a=AC(o,r,s,e);return r[i]=a,sd()&&Xd(o,r,a,s),Qn(a,r),rd(s)&&(Eg(o,r,s),_g(o,s,r)),null!=n&&bg(r,s),Rl}function Fl(){let e=Lt();const t=Et();return tp()?np():(e=e.parent,xo(e,!1)),t.firstCreatePass&&(Nd(t,e),W0(e)&&t.queries.elementEnd(e)),Fl}let AC=(e,t,n,r)=>(Ri(!0),hg(t[st],""));function Wa(){return me()}function xm(e,t,n){const r=me();if(hn(r,ao(),t)){const i=Et(),s=Kt();vr(i,s,r,e,t,fb(op(i.data),s,r),n,!0)}return xm}const qa="en-US";let MC=qa;function St(e,t,n,r){const o=me(),i=Et(),s=Lt();return function Am(e,t,n,r,o,i,s){const a=rd(r),l=e.firstCreatePass&&db(e),u=t[Wt],d=ub(t);let g=!0;if(3&r.type||s){const A=or(r,t),U=s?s(A):A,q=d.length,K=s?le=>s(Vt(le[r.index])):r.index;let se=null;if(!s&&a&&(se=function Wk(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;ic?a[c]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==se)(se.__ngLastListenerFn__||se).__ngNextListenerFn__=i,se.__ngLastListenerFn__=i,g=!1;else{i=r2(r,t,u,i,!1);const le=n.listen(U,o,i);d.push(i,le),l&&l.push(o,K,q,q+1)}}else i=r2(r,t,u,i,!1);const v=r.outputs;let E;if(g&&null!==v&&(E=v[o])){const A=E.length;if(A)for(let U=0;U-1?Mr(e.index,t):t);let c=n2(t,n,r,s),l=i.__ngNextListenerFn__;for(;l;)c=n2(t,n,l,s)&&c,l=l.__ngNextListenerFn__;return o&&!1===c&&s.preventDefault(),c}}function Zn(e=1){return function o4(e){return(nt.lFrame.contextLView=function Zw(e,t){for(;e>0;)t=t[ta],e--;return t}(e,nt.lFrame.contextLView))[Wt]}(e)}function Im(e,t,n){lx(e,t,n)}function Rf(e){const t=me(),n=Et(),r=ip();id(r+1);const o=em(n,r);if(e.dirty&&function j3(e){return 4==(4&e[qe])}(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const i=fx(t,r);e.reset(i,u_),e.notifyOnChanges()}return!0}return!1}function Ff(){return function Jg(e,t){return e[Jo].queries[t].queryList}(me(),ip())}function Hi(e){return function oa(e,t){return e[t]}(function J3(){return nt.lFrame.contextLView}(),ct+e)}function Fe(e,t=""){const n=me(),r=Et(),o=e+ct,i=r.firstCreatePass?Aa(r,o,1,t,null):r.data[o],s=x2(r,n,i,t,e);n[o]=s,sd()&&Xd(r,n,s,i),xo(i,!1)}let x2=(e,t,n,r,o)=>(Ri(!0),function qd(e,t){return e.createText(t)}(t[st],r));function Qa(e){return ci("",e,""),Qa}function ci(e,t,n){const r=me(),o=function Ba(e,t,n,r){return hn(e,ao(),n)?t+lt(n)+r:dt}(r,e,t,n);return o!==dt&&function oi(e,t,n){const r=zc(t,e);!function BE(e,t,n){e.setValue(t,n)}(e[st],r,n)}(r,Kn(),o),ci}function Tm(e,t,n,r,o){if(e=tt(e),Array.isArray(e))for(let i=0;i>20;if(ys(e)||!e.multi){const v=new tl(l,o,be),E=Nm(c,t,o?u:u+g,d);-1===E?(Qp(Pd(a,s),i,c),Mm(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(v),s.push(v)):(n[E]=v,s[E]=v)}else{const v=Nm(c,t,u+g,d),E=Nm(c,t,u,u+g),U=E>=0&&n[E];if(o&&!U||!o&&!(v>=0&&n[v])){Qp(Pd(a,s),i,c);const q=function gB(e,t,n,r,o){const i=new tl(e,n,be);return i.multi=[],i.index=t,i.componentProviders=0,O2(i,o,r&&!n),i}(o?pB:hB,n.length,o,r,l);!o&&U&&(n[E].providerFactory=q),Mm(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(q),s.push(q)}else Mm(i,e,v>-1?v:E,O2(n[o?E:v],l,!o&&r));!o&&r&&U&&n[E].componentProviders++}}}function Mm(e,t,n,r){const o=ys(t),i=function z4(e){return!!e.useClass}(t);if(o||i){const c=(i?tt(t.useClass):t).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const u=l.indexOf(n);-1===u?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function O2(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Nm(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function fB(e,t,n){const r=Et();if(r.firstCreatePass){const o=so(e);Tm(n,r.data,r.blueprint,o,!0),Tm(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}let mB=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=F_(0,n.type),o=r.length>0?om([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Ue({token:e,providedIn:"environment",factory:()=>new e(We(Hr))})}return e})();function Of(e){bs("NgStandalone"),e.getStandaloneInjector=t=>t.get(mB).getOrCreateStandaloneInjector(e)}function Om(e,t,n){const r=function ir(){const e=nt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}()+e,o=me();return o[r]===dt?function Io(e,t,n){return e[t]=n}(o,r,n?t.call(n):t()):function Sl(e,t){return e[t]}(o,r)}function q2(e,t){return af(e,t)}let uD=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const gD=new je(""),Lf=new je("");let jm,Um=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,jm||(function O5(e){jm=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ct.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n()},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(We(Ct),We(Hm),We(Lf))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})(),Hm=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return jm?.findTestabilityInTree(this,n,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function zl(e){return!!e&&"function"==typeof e.then}function mD(e){return!!e&&"function"==typeof e.subscribe}const $m=new je("");let zm=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=Pe($m,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(zl(i))n.push(i);else if(mD(i)){const s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Gm=new je("");function wD(e,t){return Array.isArray(t)?t.reduce(wD,e):{...e,...t}}let li=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Pe(cE),this.afterRenderEffectManager=Pe(El),this.componentTypes=[],this.components=[],this.isStable=Pe(Al).hasPendingTasks.pipe(kt(n=>!n)),this._injector=Pe(Hr)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof Tb;if(!this._injector.get(zm).done)throw!o&&function Ii(e){const t=gt(e)||xn(e)||Ln(e);return null!==t&&t.standalone}(n),new he(405,!1);let s;s=o?n:this._injector.get(wl).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function P5(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Cs),l=s.create(qn.NULL,[],r||s.selector,a),u=l.location.nativeElement,d=l.injector.get(gD,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),Vf(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new he(101,!1);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}detectChangesInAttachedViews(){let n=0;do{if(100===n)throw new he(103,!1);const r=0===n;for(let{_lView:o,notifyErrorHandler:i}of this._views)!r&&!_D(o)||this.detectChangesInView(o,i,r);this.afterRenderEffectManager.execute(),n++}while(this._views.some(({_lView:r})=>_D(r)))}detectChangesInView(n,r,o){let i;o?(i=0,n[qe]|=1024):i=64&n[qe]?0:1,sf(n,r,i)}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Vf(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Gm,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Vf(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new he(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Vf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function _D(e){return X0(e)}class B5{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let ED=(()=>{class e{compileModuleSync(n){return new rm(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Or(jn(n).declarations).reduce((s,a)=>{const c=gt(a);return c&&s.push(new Cl(c)),s},[]);return new B5(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),U5=(()=>{class e{constructor(){this.zone=Pe(Ct),this.applicationRef=Pe(li)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function H5(){const e=Pe(Ct),t=Pe(ni);return n=>e.runOutsideAngular(()=>t.handleError(n))}let $5=(()=>{class e{constructor(){this.subscription=new Le,this.initialized=!1,this.zone=Pe(Ct),this.pendingTasks=Pe(Al)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ct.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ct.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ui=new je("",{providedIn:"root",factory:()=>Pe(ui,_t.Optional|_t.SkipSelf)||function z5(){return typeof $localize<"u"&&$localize.locale||qa}()}),Wm=new je("");let DD=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function IF(e="zone.js",t){return"noop"===e?new zb:"zone.js"===e?new Ct(t):e}(r?.ngZone,function CD(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function EO(e,t,n){return new nm(e,t,n)}(n.moduleType,this.injector,function xD(e){return[{provide:Ct,useFactory:e},{provide:ms,multi:!0,useFactory:()=>{const t=Pe(U5,{optional:!0});return()=>t.initialize()}},{provide:ms,multi:!0,useFactory:()=>{const t=Pe($5);return()=>{t.initialize()}}},{provide:cE,useFactory:H5}]}(()=>o)),s=i.injector.get(ni,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:c=>{s.handleError(c)}});i.onDestroy(()=>{Vf(this._modules,i),a.unsubscribe()})}),function vD(e,t,n){try{const r=n();return zl(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(zm);return a.runInitializers(),a.donePromise.then(()=>(function NC(e){"string"==typeof e&&(MC=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(ui,qa)||qa),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=wD({},r);return function V5(e,t,n){const r=new rm(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(li);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new he(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new he(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Wm,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(We(qn))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),ji=null;const AD=new je("");function SD(e,t,n=[]){const r=`Platform: ${t}`,o=new je(r);return(i=[])=>{let s=Km();if(!s||s.injector.get(AD,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function K5(e){if(ji&&!ji.get(AD,!1))throw new he(400,!1);(function yD(){!function D(e){de=e}(()=>{throw new he(600,!1)})})(),ji=e;const t=e.get(DD);(function TD(e){e.get(v_,null)?.forEach(n=>n())})(e)}(function ID(e=[],t){return qn.create({name:t,providers:[{provide:Bp,useValue:"platform"},{provide:Wm,useValue:new Set([()=>ji=null])},...e]})}(a,r))}return function q5(e){const t=Km();if(!t)throw new he(401,!1);return t}()}}function Km(){return ji?.get(DD)??null}const J5=SD(null,"core",[]);let eL=(()=>{class e{constructor(n){}static#e=this.\u0275fac=function(r){return new(r||e)(We(li))};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({})}return e})();function Ja(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let eA=null;function $i(){return eA}class ML{}const Yn=new je("");let ey=(()=>{class e{historyGo(n){throw new Error("")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:()=>Pe(RL),providedIn:"platform"})}return e})();const NL=new je("");let RL=(()=>{class e extends ey{constructor(){super(),this._doc=Pe(Yn),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return $i().getBaseHref(this._doc)}onPopState(n){const r=$i().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=$i().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function ty(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function tA(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function di(e){return e&&"?"!==e[0]?"?"+e:e}let Rs=(()=>{class e{historyGo(n){throw new Error("")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:()=>Pe(rA),providedIn:"root"})}return e})();const nA=new je("");let rA=(()=>{class e extends Rs{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??Pe(Yn).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return ty(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+di(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+di(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+di(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static#e=this.\u0275fac=function(r){return new(r||e)(We(ey),We(nA,8))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),FL=(()=>{class e extends Rs{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){const r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=ty(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+di(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+di(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static#e=this.\u0275fac=function(r){return new(r||e)(We(ey),We(nA,8))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})(),Kl=(()=>{class e{constructor(n){this._subject=new Xt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function kL(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(tA(oA(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+di(r))}normalize(n){return e.stripTrailingSlash(function PL(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,oA(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+di(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+di(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}static#e=this.normalizeQueryParams=di;static#t=this.joinWithSlash=ty;static#n=this.stripTrailingSlash=tA;static#r=this.\u0275fac=function(r){return new(r||e)(We(Rs))};static#o=this.\u0275prov=Ue({token:e,factory:()=>function OL(){return new Kl(We(Rs))}(),providedIn:"root"})}return e})();function oA(e){return e.replace(/\/index.html$/,"")}let zi=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new D7,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){mA("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){mA("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(be($r),be(ii))};static#t=this.\u0275dir=it({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class D7{constructor(){this.$implicit=null,this.ngIf=null}}function mA(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${bn(t)}'.`)}let No=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({})}return e})();const wA="browser";function _A(e){return"server"===e}let t9=(()=>{class e{static#e=this.\u0275prov=Ue({token:e,providedIn:"root",factory:()=>function e9(e){return e===wA}(Pe(ps))?new n9(Pe(Yn),window):new o9})}return e})();class n9{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){const n=function r9(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}}class o9{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}}class F9 extends ML{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class yy extends F9{static makeCurrent(){!function TL(e){eA??=e}(new yy)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function O9(){return Yl=Yl||document.querySelector("base"),Yl?Yl.getAttribute("href"):null}();return null==n?null:function P9(e){return new URL(e,document.baseURI).pathname}(n)}resetBaseElement(){Yl=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function _7(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,t)}}let Yl=null,B9=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();const vy=new je("");let TA=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new he(5101,!1);return this._eventNameToPlugin.set(n,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(We(vy),We(Ct))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();class MA{constructor(t){this._doc=t}}const wy="ng-app-id";let NA=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=_A(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${wy}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(wy),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(wy,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(We(Yn),We(pd),We(__,8),We(ps))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();const _y={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ey=/%COMP%/g,H9=new je("",{providedIn:"root",factory:()=>!0});function FA(e,t){return t.map(n=>n.replace(Ey,e))}let by=(()=>{class e{constructor(n,r,o,i,s,a,c,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=_A(a),this.defaultRenderer=new xy(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===no.ShadowDom&&(r={...r,encapsulation:no.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof PA?o.applyToHost(n):o instanceof Cy&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case no.Emulated:i=new PA(c,l,r,this.appId,u,s,a,d);break;case no.ShadowDom:return new G9(c,l,n,r,s,a,this.nonce,d);default:i=new Cy(c,l,r,u,s,a,d)}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(We(TA),We(NA),We(pd),We(H9),We(Yn),We(ps),We(Ct),We(__))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();class xy{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(_y[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(OA(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(OA(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new he(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=_y[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=_y[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(ki.DashCase|ki.Important)?t.style.setProperty(n,r,o&ki.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ki.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){null!=t&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=$i().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&n.preventDefault()}}}function OA(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class G9 extends xy{constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=FA(o.id,o.styles);for(const u of l){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Cy extends xy{constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?FA(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class PA extends Cy{constructor(t,n,r,o,i,s,a,c){const l=o+"-"+r.id;super(t,n,r,i,s,a,c,l),this.contentAttr=function j9(e){return"_ngcontent-%COMP%".replace(Ey,e)}(l),this.hostAttr=function $9(e){return"_nghost-%COMP%".replace(Ey,e)}(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let W9=(()=>{class e extends MA{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static#e=this.\u0275fac=function(r){return new(r||e)(We(Yn))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();const kA=["alt","control","meta","shift"],K9={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},q9={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Q9=(()=>{class e extends MA{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$i().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),kA.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=K9[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),kA.forEach(s=>{s!==o&&(0,q9[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}static#e=this.\u0275fac=function(r){return new(r||e)(We(Yn))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();const J9=SD(J5,"browser",[{provide:ps,useValue:wA},{provide:v_,useValue:function Z9(){yy.makeCurrent()},multi:!0},{provide:Yn,useFactory:function X9(){return function d4(e){dp=e}(document),document},deps:[]}]),eV=new je(""),VA=[{provide:Lf,useClass:class k9{addToWindow(t){Ot.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new he(5103,!1);return i},Ot.getAllAngularTestabilities=()=>t.getAllTestabilities(),Ot.getAllAngularRootElements=()=>t.getAllRootElements(),Ot.frameworkStabilizers||(Ot.frameworkStabilizers=[]),Ot.frameworkStabilizers.push(r=>{const o=Ot.getAllAngularTestabilities();let i=o.length;const s=function(){i--,0==i&&r()};o.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?$i().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:gD,useClass:Um,deps:[Ct,Hm,Lf]},{provide:Um,useClass:Um,deps:[Ct,Hm,Lf]}],UA=[{provide:Bp,useValue:"root"},{provide:ni,useFactory:function Y9(){return new ni},deps:[]},{provide:vy,useClass:W9,multi:!0,deps:[Yn,Ct,ps]},{provide:vy,useClass:Q9,multi:!0,deps:[Yn]},by,NA,TA,{provide:Lg,useExisting:by},{provide:class i9{},useClass:B9,deps:[]},[]];let HA=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:pd,useValue:n.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(We(eV,12))};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({providers:[...UA,...VA],imports:[No,eL]})}return e})(),tV=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static#e=this.\u0275fac=function(r){return new(r||e)(We(Yn))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),zA=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:function(r){let o=null;return o=r?new(r||e):We(iV),o},providedIn:"root"})}return e})(),iV=(()=>{class e extends zA{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case Fr.NONE:return r;case Fr.HTML:return Ao(r,"HTML")?Rr(r):_E(this._doc,String(r)).toString();case Fr.STYLE:return Ao(r,"Style")?Rr(r):r;case Fr.SCRIPT:if(Ao(r,"Script"))return Rr(r);throw new he(5200,!1);case Fr.URL:return Ao(r,"URL")?Rr(r):$d(String(r));case Fr.RESOURCE_URL:if(Ao(r,"ResourceURL"))return Rr(r);throw new he(5201,!1);default:throw new he(5202,!1)}}bypassSecurityTrustHtml(n){return function UN(e){return new ON(e)}(n)}bypassSecurityTrustStyle(n){return function HN(e){return new PN(e)}(n)}bypassSecurityTrustScript(n){return function jN(e){return new kN(e)}(n)}bypassSecurityTrustUrl(n){return function $N(e){return new BN(e)}(n)}bypassSecurityTrustResourceUrl(n){return function zN(e){return new LN(e)}(n)}static#e=this.\u0275fac=function(r){return new(r||e)(We(Yn))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var tc=y(1316);const WA=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function KA(e){return Ae(e?.then)}function qA(e){return Ae(e[Xs])}function QA(e){return Symbol.asyncIterator&&Ae(e?.[Symbol.asyncIterator])}function ZA(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const YA=function aV(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function XA(e){return Ae(e?.[YA])}function JA(e){return(0,tc.__asyncGenerator)(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield(0,tc.__await)(n.read());if(o)return yield(0,tc.__await)(void 0);yield yield(0,tc.__await)(r)}}finally{n.releaseLock()}})}function eS(e){return Ae(e?.getReader)}function Ro(e){if(e instanceof cn)return e;if(null!=e){if(qA(e))return function cV(e){return new cn(t=>{const n=e[Xs]();if(Ae(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(WA(e))return function lV(e){return new cn(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,rr)})}(e);if(QA(e))return tS(e);if(XA(e))return function dV(e){return new cn(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(eS(e))return function fV(e){return tS(JA(e))}(e)}throw ZA(e)}function tS(e){return new cn(t=>{(function hV(e,t){var n,r,o,i;return(0,tc.__awaiter)(this,void 0,void 0,function*(){try{for(n=(0,tc.__asyncValues)(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function pi(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function nS(e,t=0){return _n((n,r)=>{n.subscribe(En(r,o=>pi(r,e,()=>r.next(o),t),()=>pi(r,e,()=>r.complete(),t),o=>pi(r,e,()=>r.error(o),t)))})}function rS(e,t=0){return _n((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function oS(e,t){if(!e)throw new Error("Iterable cannot be null");return new cn(n=>{pi(n,t,()=>{const r=e[Symbol.asyncIterator]();pi(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Pn(e,t){return t?function wV(e,t){if(null!=e){if(qA(e))return function pV(e,t){return Ro(e).pipe(rS(t),nS(t))}(e,t);if(WA(e))return function mV(e,t){return new cn(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(KA(e))return function gV(e,t){return Ro(e).pipe(rS(t),nS(t))}(e,t);if(QA(e))return oS(e,t);if(XA(e))return function yV(e,t){return new cn(n=>{let r;return pi(n,t,()=>{r=e[YA](),pi(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>Ae(r?.return)&&r.return()})}(e,t);if(eS(e))return function vV(e,t){return oS(JA(e),t)}(e,t)}throw ZA(e)}(e,t):Ro(e)}function Dy(e){return e[e.length-1]}function iS(e){return Ae(Dy(e))?e.pop():void 0}function ah(e){return function _V(e){return e&&Ae(e.schedule)}(Dy(e))?e.pop():void 0}function at(...e){return Pn(e,ah(e))}const{isArray:EV}=Array,{getPrototypeOf:bV,prototype:xV,keys:CV}=Object;function sS(e){if(1===e.length){const t=e[0];if(EV(t))return{args:t,keys:null};if(function DV(e){return e&&"object"==typeof e&&bV(e)===xV}(t)){const n=CV(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:AV}=Array;function aS(e){return kt(t=>function SV(e,t){return AV(t)?e(...t):e(t)}(e,t))}function cS(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Ay(...e){const t=ah(e),n=iS(e),{args:r,keys:o}=sS(e);if(0===r.length)return Pn([],t);const i=new cn(function IV(e,t,n=Qo){return r=>{lS(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let c=0;c{const l=Pn(e[c],t);let u=!1;l.subscribe(En(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>cS(o,s):Qo));return n?i.pipe(aS(n)):i}function lS(e,t,n){e?pi(n,e,t):t()}const Jl=Be(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Xn(e,t,n=1/0){return Ae(t)?Xn((r,o)=>kt((i,s)=>t(r,i,o,s))(Ro(e(r,o))),n):("number"==typeof t&&(n=t),_n((r,o)=>function TV(e,t,n,r,o,i,s,a){const c=[];let l=0,u=0,d=!1;const g=()=>{d&&!c.length&&!l&&t.complete()},v=A=>l{i&&t.next(A),l++;let U=!1;Ro(n(A,u++)).subscribe(En(t,q=>{o?.(q),i?v(q):t.next(q)},()=>{U=!0},void 0,()=>{if(U)try{for(l--;c.length&&lE(q)):E(q)}g()}catch(q){t.error(q)}}))};return e.subscribe(En(t,v,()=>{d=!0,g()})),()=>{a?.()}}(r,o,e,n)))}function eu(e=1/0){return Xn(Qo,e)}function Sy(...e){return function MV(){return eu(1)}()(Pn(e,ah(e)))}function uS(e){return new cn(t=>{Ro(e()).subscribe(t)})}function ch(e,t){const n=Ae(e)?e:()=>e,r=o=>o.error(n());return new cn(t?o=>t.schedule(r,0,o):r)}const gi=new cn(e=>e.complete());function Iy(){return _n((e,t)=>{let n=null;e._refCount++;const r=En(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class dS extends cn{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,kc(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Le;const n=this.getSubject();t.add(this.source.subscribe(En(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Le.EMPTY)}return t}refCount(){return Iy()(this)}}function Fo(e,t){return _n((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(En(r,c=>{o?.unsubscribe();let l=0;const u=i++;Ro(e(c,u)).subscribe(o=En(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function nc(e){return e<=0?()=>gi:_n((t,n)=>{let r=0;t.subscribe(En(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function mi(e,t){return _n((n,r)=>{let o=0;n.subscribe(En(r,i=>e.call(t,i,o++)&&r.next(i)))})}function lh(e){return _n((t,n)=>{let r=!1;t.subscribe(En(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function fS(e=FV){return _n((t,n)=>{let r=!1;t.subscribe(En(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function FV(){return new Jl}function Gi(e,t){const n=arguments.length>=2;return r=>r.pipe(e?mi((o,i)=>e(o,i,r)):Qo,nc(1),n?lh(t):fS(()=>new Jl))}function tu(e,t){return Ae(t)?Xn(e,t,1):Xn(e,1)}function Jn(e,t,n){const r=Ae(e)||t||n?{next:e,error:t,complete:n}:e;return r?_n((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(En(i,c=>{var l;null===(l=r.next)||void 0===l||l.call(r,c),i.next(c)},()=>{var c;a=!1,null===(c=r.complete)||void 0===c||c.call(r),i.complete()},c=>{var l;a=!1,null===(l=r.error)||void 0===l||l.call(r,c),i.error(c)},()=>{var c,l;a&&(null===(c=r.unsubscribe)||void 0===c||c.call(r)),null===(l=r.finalize)||void 0===l||l.call(r)}))}):Qo}function rc(e){return _n((t,n)=>{let i,r=null,o=!1;r=t.subscribe(En(n,void 0,void 0,s=>{i=Ro(e(s,rc(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Ty(e){return e<=0?()=>gi:_n((t,n)=>{let r=[];t.subscribe(En(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function My(e){return _n((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const ht="primary",nu=Symbol("RouteTitle");class VV{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function oc(e){return new VV(e)}function UV(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function pS(e){return e.length>0?e[e.length-1]:null}function Wi(e){return function sV(e){return!!e&&(e instanceof cn||Ae(e.lift)&&Ae(e.subscribe))}(e)?e:zl(e)?Pn(Promise.resolve(e)):at(e)}const jV={exact:function yS(e,t,n){if(!Fs(e.segments,t.segments)||!uh(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!yS(e.children[r],t.children[r],n))return!1;return!0},subset:vS},gS={exact:function $V(e,t){return Oo(e,t)},subset:function zV(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>hS(e[n],t[n]))},ignored:()=>!0};function mS(e,t,n){return jV[n.paths](e.root,t.root,n.matrixParams)&&gS[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function vS(e,t,n){return wS(e,t,t.segments,n)}function wS(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!Fs(o,n)||t.hasChildren()||!uh(o,n,r))}if(e.segments.length===n.length){if(!Fs(e.segments,n)||!uh(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!vS(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(Fs(e.segments,o)&&uh(e.segments,o,r)&&e.children[ht])&&wS(e.children[ht],t,i,r)}}function uh(e,t,n){return t.every((r,o)=>gS[n](e[o].parameters,r.parameters))}class ic{constructor(t=new Ut([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=oc(this.queryParams),this._queryParamMap}toString(){return KV.serialize(this)}}class Ut{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return dh(this)}}class ru{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=oc(this.parameters),this._parameterMap}toString(){return bS(this)}}function Fs(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let sc=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:()=>new Ry,providedIn:"root"})}return e})();class Ry{parse(t){const n=new oU(t);return new ic(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${ou(t.root,!0)}`,r=function ZV(e){const t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${fh(n)}=${fh(o)}`).join("&"):`${fh(n)}=${fh(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function qV(e){return encodeURI(e)}(t.fragment)}`:""}`}}const KV=new Ry;function dh(e){return e.segments.map(t=>bS(t)).join("/")}function ou(e,t){if(!e.hasChildren())return dh(e);if(t){const n=e.children[ht]?ou(e.children[ht],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==ht&&r.push(`${o}:${ou(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function WV(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===ht&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==ht&&(n=n.concat(t(o,r)))}),n}(e,(r,o)=>o===ht?[ou(e.children[ht],!1)]:[`${o}:${ou(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[ht]?`${dh(e)}/${n[0]}`:`${dh(e)}/(${n.join("//")})`}}function _S(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fh(e){return _S(e).replace(/%3B/gi,";")}function Fy(e){return _S(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function hh(e){return decodeURIComponent(e)}function ES(e){return hh(e.replace(/\+/g,"%20"))}function bS(e){return`${Fy(e.path)}${function QV(e){return Object.entries(e).map(([t,n])=>`;${Fy(t)}=${Fy(n)}`).join("")}(e.parameters)}`}const YV=/^[^\/()?;#]+/;function Oy(e){const t=e.match(YV);return t?t[0]:""}const XV=/^[^\/()?;=#]+/,eU=/^[^=?&#]+/,nU=/^[^&#]+/;class oU{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ut([],{}):new Ut([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[ht]=new Ut(t,n)),r}parseSegment(){const t=Oy(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new he(4009,!1);return this.capture(t),new ru(hh(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function JV(e){const t=e.match(XV);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Oy(this.remaining);o&&(r=o,this.capture(r))}t[hh(n)]=hh(r)}parseQueryParam(t){const n=function tU(e){const t=e.match(eU);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function rU(e){const t=e.match(nU);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=ES(n),i=ES(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Oy(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new he(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=ht);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[ht]:new Ut([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new he(4011,!1)}}function xS(e){return e.segments.length>0?new Ut([],{[ht]:e}):e}function CS(e){const t={};for(const[r,o]of Object.entries(e.children)){const i=CS(o);if(r===ht&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function iU(e){if(1===e.numberOfChildren&&e.children[ht]){const t=e.children[ht];return new Ut(e.segments.concat(t.segments),t.children)}return e}(new Ut(e.segments,t))}function ac(e){return e instanceof ic}function DS(e){let t;const o=xS(function n(i){const s={};for(const c of i.children){const l=n(c);s[c.outlet]=l}const a=new Ut(i.url,s);return i===e&&(t=a),a}(e.root));return t??o}function AS(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(0===t.length)return Py(o,o,o,n,r);const i=function aU(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new IS(!0,0,e);let t=0,n=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([c,l])=>{a[c]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,c)=>{0==c&&"."===a||(0==c&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new IS(n,t,r)}(t);if(i.toRoot())return Py(o,o,new Ut([],{}),n,r);const s=function cU(e,t,n){if(e.isAbsolute)return new gh(t,!0,0);if(!n)return new gh(t,!1,NaN);if(null===n.parent)return new gh(n,!0,0);const r=ph(e.commands[0])?0:1;return function lU(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new he(4005,!1);o=r.segments.length}return new gh(r,!1,o-i)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?su(s.segmentGroup,s.index,i.commands):TS(s.segmentGroup,s.index,i.commands);return Py(o,s.segmentGroup,a,n,r)}function ph(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function iu(e){return"object"==typeof e&&null!=e&&e.outlets}function Py(e,t,n,r,o){let s,i={};r&&Object.entries(r).forEach(([c,l])=>{i[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=e===t?n:SS(e,t,n);const a=xS(CS(s));return new ic(a,i,o)}function SS(e,t,n){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===t?n:SS(i,t,n)}),new Ut(e.segments,r)}class IS{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ph(r[0]))throw new he(4003,!1);const o=r.find(iu);if(o&&o!==pS(r))throw new he(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class gh{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function TS(e,t,n){if(e??=new Ut([],{}),0===e.segments.length&&e.hasChildren())return su(e,t,n);const r=function dU(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(iu(a))break;const c=`${a}`,l=r0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!NS(c,l,s))return i;r+=2}else{if(!NS(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==ht)&&e.children[ht]&&1===e.numberOfChildren&&0===e.children[ht].segments.length){const i=su(e.children[ht],t,n);return new Ut(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=TS(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new Ut(e.segments,o)}}function ky(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=ky(new Ut([],{}),0,r))}),t}function MS(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function NS(e,t,n){return e==n.path&&Oo(t,n.parameters)}const au="imperative";var xt=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(xt||{});class Po{constructor(t,n){this.id=t,this.url=n}}class cu extends Po{constructor(t,n,r="imperative",o=null){super(t,n),this.type=xt.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class yi extends Po{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=xt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var qr=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(qr||{}),mh=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(mh||{});class cc extends Po{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=xt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class lc extends Po{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=xt.NavigationSkipped}}class yh extends Po{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=xt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class RS extends Po{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=xt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hU extends Po{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=xt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pU extends Po{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=xt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class gU extends Po{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=xt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mU extends Po{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=xt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yU{constructor(t){this.route=t,this.type=xt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class vU{constructor(t){this.route=t,this.type=xt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class wU{constructor(t){this.snapshot=t,this.type=xt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _U{constructor(t){this.snapshot=t,this.type=xt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class EU{constructor(t){this.snapshot=t,this.type=xt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bU{constructor(t){this.snapshot=t,this.type=xt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class FS{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=xt.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class By{}class Ly{constructor(t){this.url=t}}class xU{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new lu,this.attachRef=null}}let lu=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new xU,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class OS{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=Vy(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=Vy(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=Uy(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Uy(t,this._root).map(n=>n.value)}}function Vy(e,t){if(e===t.value)return t;for(const n of t.children){const r=Vy(e,n);if(r)return r}return null}function Uy(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Uy(e,n);if(r.length)return r.unshift(t),r}return[]}class ho{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function uc(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class PS extends OS{constructor(t,n){super(t),this.snapshot=n,$y(this,t)}toString(){return this.snapshot.toString()}}function kS(e){const t=function CU(e){const i=new jy([],{},{},"",{},ht,e,null,{});return new BS("",new ho(i,[]))}(e),n=new ln([new ru("",{})]),r=new ln({}),o=new ln({}),i=new ln({}),s=new ln(""),a=new dc(n,r,i,s,o,ht,e,t.root);return a.snapshot=t.root,new PS(new ho(a,[]),t)}class dc{constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(kt(l=>l[nu]))??at(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(kt(t=>oc(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(kt(t=>oc(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Hy(e,t,n="emptyOnly"){let r;const{routeConfig:o}=e;return r=null===t||"always"!==n&&""!==o?.path&&(t.component||t.routeConfig?.loadComponent)?{params:{...e.params},data:{...e.data},resolve:{...e.data,...e._resolvedData??{}}}:{params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.data,...o?.data,...e._resolvedData}},o&&VS(o)&&(r.resolve[nu]=o.title),r}class jy{get title(){return this.data?.[nu]}constructor(t,n,r,o,i,s,a,c,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=oc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=oc(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class BS extends OS{constructor(t,n){super(n),this.url=t,$y(this,n)}toString(){return LS(this._root)}}function $y(e,t){t.value._routerState=e,t.children.forEach(n=>$y(e,n))}function LS(e){const t=e.children.length>0?` { ${e.children.map(LS).join(", ")} } `:"";return`${e.value}${t}`}function zy(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Oo(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Oo(t.params,n.params)||e.paramsSubject.next(n.params),function HV(e,t){if(e.length!==t.length)return!1;for(let n=0;nOo(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||Gy(e.parent,t.parent))}function VS(e){return"string"==typeof e.title||null===e.title}let Wy=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=ht,this.activateEvents=new Xt,this.deactivateEvents=new Xt,this.attachEvents=new Xt,this.detachEvents=new Xt,this.parentContexts=Pe(lu),this.location=Pe($r),this.changeDetector=Pe(_l),this.environmentInjector=Pe(Hr),this.inputBinder=Pe(vh,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new he(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new he(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new he(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new he(4013,!1);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new DU(n,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=it({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[jr]})}return e})();class DU{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===dc?this.route:t===lu?this.childContexts:this.parent.get(t,n)}}const vh=new je("");let US=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=Ay([r.queryParams,r.params,r.data]).pipe(Fo(([i,s,a],c)=>(a={...i,...s,...a},0===c?at(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const s=function IL(e){const t=gt(e);if(!t)return null;const n=new Cl(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}(r.component);if(s)for(const{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();function uu(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function SU(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return uu(e,r,o);return uu(e,r)})}(e,t,n);return new ho(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>uu(e,a)),s}}const r=function IU(e){return new dc(new ln(e.url),new ln(e.params),new ln(e.queryParams),new ln(e.fragment),new ln(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>uu(e,i));return new ho(r,o)}}const HS="ngNavigationCancelingError";function jS(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=ac(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=$S(!1,qr.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function $S(e,t){const n=new Error(`NavigationCancelingError: ${e||""}`);return n[HS]=!0,n.cancellationCode=t,n}function zS(e){return!!e&&e[HS]}let GS=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Tr({type:e,selectors:[["ng-component"]],standalone:!0,features:[Of],decls:1,vars:0,template:function(r,o){1&r&&yt(0,"router-outlet")},dependencies:[Wy],encapsulation:2})}return e})();function Ky(e){const t=e.children&&e.children.map(Ky),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==ht&&(n.component=GS),n}function ko(e){return e.outlet||ht}function du(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class kU{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),zy(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=uc(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=uc(t);for(const s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=uc(t);for(const s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){const o=uc(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new bU(i.value.snapshot))}),t.children.length&&this.forwardEvent(new _U(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(zy(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),zy(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=du(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class WS{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class wh{constructor(t,n){this.component=t,this.route=n}}function BU(e,t,n){const r=e._root;return fu(r,t?t._root:null,n,[r.value])}function fc(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function f4(e){return null!==dd(e)}(e)?t.get(e):e:r}function fu(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=uc(t);return e.children.forEach(s=>{(function VU(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const c=function UU(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Fs(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Fs(e.url,t.url)||!Oo(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Gy(e,t)||!Oo(e.queryParams,t.queryParams);default:return!Gy(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new WS(r)):(i.data=s.data,i._resolvedData=s._resolvedData),fu(e,t,i.component?a?a.children:null:n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new wh(a.outlet.component,s))}else s&&hu(t,a,o),o.canActivateChecks.push(new WS(r)),fu(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>hu(a,n.getContext(s),o)),o}function hu(e,t,n){const r=uc(e),o=e.value;Object.entries(r).forEach(([i,s])=>{hu(s,o.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new wh(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function pu(e){return"function"==typeof e}function KS(e){return e instanceof Jl||"EmptyError"===e?.name}const _h=Symbol("INITIAL_VALUE");function hc(){return Fo(e=>Ay(e.map(t=>t.pipe(nc(1),function RV(...e){const t=ah(e);return _n((n,r)=>{(t?Sy(e,n,t):Sy(e,n)).subscribe(r)})}(_h)))).pipe(kt(t=>{for(const n of t)if(!0!==n){if(n===_h)return _h;if(!1===n||n instanceof ic)return n}return!0}),mi(t=>t!==_h),nc(1)))}function qS(e){return function k0(...e){return Qu(e)}(Jn(t=>{if(ac(t))throw jS(0,t)}),kt(t=>!0===t))}class qy{constructor(t){this.segmentGroup=t||null}}class Qy extends Error{constructor(t){super(),this.urlTree=t}}function pc(e){return ch(new qy(e))}class iH{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return at(r);if(o.numberOfChildren>1||!o.children[ht])return ch(new he(4e3,!1));o=o.children[ht]}}applyRedirectCommands(t,n,r){const o=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n.startsWith("/"))throw new Qy(o);return o}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new ic(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Object.entries(t).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new Ut(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new he(4001,!1);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}const Zy={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function sH(e,t,n,r,o){const i=Yy(e,t,n);return i.matched?(r=function MU(e,t){return e.providers&&!e._injector&&(e._injector=om(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function nH(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?at(o.map(s=>{const a=fc(s,e);return Wi(function WU(e){return e&&pu(e.canMatch)}(a)?a.canMatch(t,n):vs(e,()=>a(t,n)))})).pipe(hc(),qS()):at(!0)}(r,t,n).pipe(kt(s=>!0===s?i:{...Zy}))):at(i)}function Yy(e,t,n){if("**"===t.path)return function aH(e){return{matched:!0,parameters:e.length>0?pS(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(n);if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...Zy}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||UV)(n,e,t);if(!o)return{...Zy};const i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function QS(e,t,n,r){return n.length>0&&function uH(e,t,n){return n.some(r=>Eh(e,t,r)&&ko(r)!==ht)}(e,n,r)?{segmentGroup:new Ut(t,lH(r,new Ut(n,e.children))),slicedSegments:[]}:0===n.length&&function dH(e,t,n){return n.some(r=>Eh(e,t,r))}(e,n,r)?{segmentGroup:new Ut(e.segments,cH(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new Ut(e.segments,e.children),slicedSegments:n}}function cH(e,t,n,r){const o={};for(const i of n)if(Eh(e,t,i)&&!r[ko(i)]){const s=new Ut([],{});o[ko(i)]=s}return{...r,...o}}function lH(e,t){const n={};n[ht]=t;for(const r of e)if(""===r.path&&ko(r)!==ht){const o=new Ut([],{});n[ko(r)]=o}return n}function Eh(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class pH{}class yH{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new iH(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new he(4002,`'${t.segmentGroup}'`)}recognize(){const t=QS(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(kt(n=>{const r=new jy([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ht,this.rootComponentType,null,{}),o=new ho(r,n),i=new BS("",o),s=function sU(e,t,n=null,r=null){return AS(DS(e),t,n,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root,null),{state:i,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,ht).pipe(rc(r=>{if(r instanceof Qy)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof qy?this.noMatchError(r):r}))}inheritParamsAndData(t,n){const r=t.value,o=Hy(r,n,this.paramsInheritanceStrategy);r.params=Object.freeze(o.params),r.data=Object.freeze(o.data),t.children.forEach(i=>this.inheritParamsAndData(i,r))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o,!0).pipe(kt(i=>i instanceof ho?[i]:[]))}processChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return Pn(o).pipe(tu(i=>{const s=r.children[i],a=function OU(e,t){const n=e.filter(r=>ko(r)===t);return n.push(...e.filter(r=>ko(r)!==t)),n}(n,i);return this.processSegmentGroup(t,a,s,i)}),function PV(e,t){return _n(function OV(e,t,n,r,o){return(i,s)=>{let a=n,c=t,l=0;i.subscribe(En(s,u=>{const d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}(e,t,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),lh(null),function kV(e,t){const n=arguments.length>=2;return r=>r.pipe(e?mi((o,i)=>e(o,i,r)):Qo,Ty(1),n?lh(t):fS(()=>new Jl))}(),Xn(i=>{if(null===i)return pc(r);const s=ZS(i);return function vH(e){e.sort((t,n)=>t.value.outlet===ht?-1:n.value.outlet===ht?1:t.value.outlet.localeCompare(n.value.outlet))}(s),at(s)}))}processSegment(t,n,r,o,i,s){return Pn(n).pipe(tu(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s).pipe(rc(c=>{if(c instanceof qy)return at(null);throw c}))),Gi(a=>!!a),rc(a=>{if(KS(a))return function hH(e,t,n){return 0===t.length&&!e.children[n]}(r,o,i)?at(new pH):pc(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,a){return function fH(e,t,n,r){return!!(ko(e)===r||r!==ht&&Eh(t,n,e))&&Yy(t,e,n).matched}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,o,r,i,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s):pc(o):pc(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:c,positionalParamSegments:l,remainingSegments:u}=Yy(n,o,i);if(!a)return pc(n);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const d=this.applyRedirects.applyRedirectCommands(c,o.redirectTo,l);return this.applyRedirects.lineralizeSegments(o,d).pipe(Xn(g=>this.processSegment(t,r,n,g.concat(u),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i){const s=sH(n,r,o,t);return"**"===r.path&&(n.children={}),s.pipe(Fo(a=>a.matched?this.getChildConfig(t=r._injector??t,r,o).pipe(Fo(({routes:c})=>{const l=r._loadedInjector??t,{consumedSegments:u,remainingSegments:d,parameters:g}=a,v=new jy(u,g,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function _H(e){return e.data||{}}(r),ko(r),r.component??r._loadedComponent??null,r,function EH(e){return e.resolve||{}}(r)),{segmentGroup:E,slicedSegments:A}=QS(n,u,d,c);if(0===A.length&&E.hasChildren())return this.processChildren(l,c,E).pipe(kt(q=>null===q?null:new ho(v,q)));if(0===c.length&&0===A.length)return at(new ho(v,[]));const U=ko(r)===i;return this.processSegment(l,c,E,A,U?ht:i,!0).pipe(kt(q=>new ho(v,q instanceof ho?[q]:[])))})):pc(n)))}getChildConfig(t,n,r){return n.children?at({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?at({routes:n._loadedRoutes,injector:n._loadedInjector}):function tH(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?at(!0):at(o.map(s=>{const a=fc(s,e);return Wi(function jU(e){return e&&pu(e.canLoad)}(a)?a.canLoad(t,n):vs(e,()=>a(t,n)))})).pipe(hc(),qS())}(t,n,r).pipe(Xn(o=>o?this.configLoader.loadChildren(t,n).pipe(Jn(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function oH(e){return ch($S(!1,qr.GuardRejected))}())):at({routes:[],injector:t})}}function wH(e){const t=e.value.routeConfig;return t&&""===t.path}function ZS(e){const t=[],n=new Set;for(const r of e){if(!wH(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=ZS(r.children);t.push(new ho(r.value,o))}return t.filter(r=>!n.has(r))}function YS(e){const t=e.children.map(n=>YS(n)).flat();return[e,...t]}function Xy(e){return Fo(t=>{const n=e(t);return n?Pn(n).pipe(kt(()=>t)):at(t)})}let XS=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===ht);return r}getResolvedTitleForRoute(n){return n.data[nu]}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:()=>Pe(SH),providedIn:"root"})}return e})(),SH=(()=>{class e extends XS{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}static#e=this.\u0275fac=function(r){return new(r||e)(We(tV))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const gc=new je("",{providedIn:"root",factory:()=>({})}),mc=new je("");let Jy=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Pe(ED)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return at(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=Wi(n.loadComponent()).pipe(kt(JS),Jn(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),My(()=>{this.componentLoaders.delete(n)})),o=new dS(r,()=>new en).pipe(Iy());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return at({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=function IH(e,t,n,r){return Wi(e.loadChildren()).pipe(kt(JS),Xn(o=>o instanceof Ix||Array.isArray(o)?at(o):Pn(t.compileModuleAsync(o))),kt(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,!0):(i=o.create(n).injector,s=i.get(mc,[],{optional:!0,self:!0}).flat()),{routes:s.map(Ky),injector:i}}))}(r,this.compiler,n,this.onLoadEndListener).pipe(My(()=>{this.childrenLoaders.delete(r)})),s=new dS(i,()=>new en).pipe(Iy());return this.childrenLoaders.set(r,s),s}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function JS(e){return function TH(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let ev=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:()=>Pe(MH),providedIn:"root"})}return e})(),MH=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const eI=new je(""),tI=new je("");function NH(e,t,n){const r=e.get(tI),o=e.get(Yn);return e.get(Ct).runOutsideAngular(()=>{if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,Promise.resolve();let i;const s=new Promise(l=>{i=l}),a=o.startViewTransition(()=>(i(),function RH(e){return new Promise(t=>{Kb(t,{injector:e})})}(e))),{onViewTransitionCreated:c}=r;return c&&vs(e,()=>c({transition:a,from:t,to:n})),s})}let bh=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new en,this.transitionAbortSubject=new en,this.configLoader=Pe(Jy),this.environmentInjector=Pe(Hr),this.urlSerializer=Pe(sc),this.rootContexts=Pe(lu),this.location=Pe(Kl),this.inputBindingEnabled=null!==Pe(vh,{optional:!0}),this.titleStrategy=Pe(XS),this.options=Pe(gc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Pe(ev),this.createViewTransition=Pe(eI,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>at(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new vU(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new yU(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n,r,o){return this.transitions=new ln({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:au,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(mi(i=>0!==i.id),kt(i=>({...i,extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),Fo(i=>{this.currentTransition=i;let s=!1,a=!1;return at(i).pipe(Jn(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Fo(c=>{const l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!l&&"reload"!==(c.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const d="";return this.events.next(new lc(c.id,this.urlSerializer.serialize(c.rawUrl),d,mh.IgnoredSameUrlNavigation)),c.resolve(null),gi}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return at(c).pipe(Fo(d=>{const g=this.transitions?.getValue();return this.events.next(new cu(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),g!==this.transitions?.getValue()?gi:Promise.resolve(d)}),function bH(e,t,n,r,o,i){return Xn(s=>function gH(e,t,n,r,o,i,s="emptyOnly"){return new yH(e,t,n,r,o,s,i).recognize()}(e,t,n,r,s.extractedUrl,o,i).pipe(kt(({state:a,tree:c})=>({...s,targetSnapshot:a,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Jn(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects};const g=new RS(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(g)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:d,extractedUrl:g,source:v,restoredState:E,extras:A}=c,U=new cu(d,this.urlSerializer.serialize(g),v,E);this.events.next(U);const q=kS(this.rootComponentType).snapshot;return this.currentTransition=i={...c,targetSnapshot:q,urlAfterRedirects:g,extras:{...A,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=g,at(i)}{const d="";return this.events.next(new lc(c.id,this.urlSerializer.serialize(c.extractedUrl),d,mh.IgnoredByUrlHandlingStrategy)),c.resolve(null),gi}}),Jn(c=>{const l=new hU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),kt(c=>(this.currentTransition=i={...c,guards:BU(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},i)),function KU(e,t){return Xn(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?at({...n,guardsResult:!0}):function qU(e,t,n,r){return Pn(e).pipe(Xn(o=>function eH(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?at(i.map(a=>{const c=du(t)??o,l=fc(a,c);return Wi(function GU(e){return e&&pu(e.canDeactivate)}(l)?l.canDeactivate(e,t,n,r):vs(c,()=>l(e,t,n,r))).pipe(Gi())})).pipe(hc()):at(!0)}(o.component,o.route,n,t,r)),Gi(o=>!0!==o,!0))}(s,r,o,e).pipe(Xn(a=>a&&function HU(e){return"boolean"==typeof e}(a)?function QU(e,t,n,r){return Pn(t).pipe(tu(o=>Sy(function YU(e,t){return null!==e&&t&&t(new wU(e)),at(!0)}(o.route.parent,r),function ZU(e,t){return null!==e&&t&&t(new EU(e)),at(!0)}(o.route,r),function JU(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function LU(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>uS(()=>at(s.guards.map(c=>{const l=du(s.node)??n,u=fc(c,l);return Wi(function zU(e){return e&&pu(e.canActivateChild)}(u)?u.canActivateChild(r,e):vs(l,()=>u(r,e))).pipe(Gi())})).pipe(hc())));return at(i).pipe(hc())}(e,o.path,n),function XU(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return at(!0);const o=r.map(i=>uS(()=>{const s=du(t)??n,a=fc(i,s);return Wi(function $U(e){return e&&pu(e.canActivate)}(a)?a.canActivate(t,e):vs(s,()=>a(t,e))).pipe(Gi())}));return at(o).pipe(hc())}(e,o.route,n))),Gi(o=>!0!==o,!0))}(r,i,e,t):at(a)),kt(a=>({...n,guardsResult:a})))})}(this.environmentInjector,c=>this.events.next(c)),Jn(c=>{if(i.guardsResult=c.guardsResult,ac(c.guardsResult))throw jS(0,c.guardsResult);const l=new pU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),mi(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",qr.GuardRejected),!1)),Xy(c=>{if(c.guards.canActivateChecks.length)return at(c).pipe(Jn(l=>{const u=new gU(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),Fo(l=>{let u=!1;return at(l).pipe(function xH(e,t){return Xn(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return at(n);const i=new Set(o.map(c=>c.route)),s=new Set;for(const c of i)if(!s.has(c))for(const l of YS(c))s.add(l);let a=0;return Pn(s).pipe(tu(c=>i.has(c)?function CH(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!VS(o)&&(i[nu]=o.title),function DH(e,t,n,r){const o=Ny(e);if(0===o.length)return at({});const i={};return Pn(o).pipe(Xn(s=>function AH(e,t,n,r){const o=du(t)??r,i=fc(e,o);return Wi(i.resolve?i.resolve(t,n):vs(o,()=>i(t,n)))}(e[s],t,n,r).pipe(Gi(),Jn(a=>{i[s]=a}))),Ty(1),function BV(e){return kt(()=>e)}(i),rc(s=>KS(s)?gi:ch(s)))}(i,e,t,r).pipe(kt(s=>(e._resolvedData=s,e.data=Hy(e,e.parent,n).resolve,null)))}(c,r,e,t):(c.data=Hy(c,c.parent,e).resolve,at(void 0))),Jn(()=>a++),Ty(1),Xn(c=>a===s.size?at(n):gi))})}(this.paramsInheritanceStrategy,this.environmentInjector),Jn({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(l,"",qr.NoDataFromResolver)}}))}),Jn(l=>{const u=new mU(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}))}),Xy(c=>{const l=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(Jn(g=>{u.component=g}),kt(()=>{})));for(const g of u.children)d.push(...l(g));return d};return Ay(l(c.targetSnapshot.root)).pipe(lh(null),nc(1))}),Xy(()=>this.afterPreactivation()),Fo(()=>{const{currentSnapshot:c,targetSnapshot:l}=i,u=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return u?Pn(u).pipe(kt(()=>i)):at(i)}),kt(c=>{const l=function AU(e,t,n){const r=uu(e,t._root,n?n._root:void 0);return new PS(r,t)}(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=i={...c,targetRouterState:l},this.currentNavigation.targetRouterState=l,i}),Jn(()=>{this.events.next(new By)}),((e,t,n,r)=>kt(o=>(new kU(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)))(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),nc(1),Jn({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new yi(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),function LV(e){return _n((t,n)=>{Ro(e).subscribe(En(n,()=>n.complete(),Bn)),!n.closed&&t.subscribe(n)})}(this.transitionAbortSubject.pipe(Jn(c=>{throw c}))),My(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",qr.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),rc(c=>{if(a=!0,zS(c))this.events.next(new cc(i.id,this.urlSerializer.serialize(i.extractedUrl),c.message,c.cancellationCode)),function TU(e){return zS(e)&&ac(e.url)}(c)?this.events.next(new Ly(c.url)):i.resolve(!1);else{this.events.next(new yh(i.id,this.urlSerializer.serialize(i.extractedUrl),c,i.targetSnapshot??void 0));try{i.resolve(n.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return gi}))}))}cancelNavigationTransition(n,r,o){const i=new cc(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function FH(e){return e!==au}let OH=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:()=>Pe(kH),providedIn:"root"})}return e})();class PH{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let kH=(()=>{class e extends PH{static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),nI=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:()=>Pe(BH),providedIn:"root"})}return e})(),BH=(()=>{class e extends nI{constructor(){super(...arguments),this.location=Pe(Kl),this.urlSerializer=Pe(sc),this.options=Pe(gc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Pe(ev),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new ic,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=kS(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{"popstate"===r.type&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof cu)this.stateMemento=this.createStateMemento();else if(n instanceof lc)this.rawUrlTree=r.initialUrl;else if(n instanceof RS){if("eager"===this.urlUpdateStrategy&&!r.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(o,r)}}else n instanceof By?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,"deferred"===this.urlUpdateStrategy&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof cc&&(n.code===qr.GuardRejected||n.code===qr.NoDataFromResolver)?this.restoreHistory(r):n instanceof yh?this.restoreHistory(r,!0):n instanceof yi&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(o,"",i)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-this.browserPageId;0!==i?this.location.historyGo(i):this.currentUrlTree===n.finalUrl&&0===i&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var gu=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(gu||{});function rI(e,t){e.events.pipe(mi(n=>n instanceof yi||n instanceof cc||n instanceof yh||n instanceof lc),kt(n=>n instanceof yi||n instanceof lc?gu.COMPLETE:n instanceof cc&&(n.code===qr.Redirect||n.code===qr.SupersededByNewNavigation)?gu.REDIRECTING:gu.FAILED),mi(n=>n!==gu.REDIRECTING),nc(1)).subscribe(()=>{t()})}function LH(e){throw e}const VH={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},UH={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let lr=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=Pe(uD),this.stateManager=Pe(nI),this.options=Pe(gc,{optional:!0})||{},this.pendingTasks=Pe(Al),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Pe(bh),this.urlSerializer=Pe(sc),this.location=Pe(Kl),this.urlHandlingStrategy=Pe(ev),this._events=new en,this.errorHandler=this.options.errorHandler||LH,this.navigated=!1,this.routeReuseStrategy=Pe(OH),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Pe(mc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Pe(vh,{optional:!0}),this.eventsSubscription=new Le,this.isNgZoneEnabled=Pe(Ct)instanceof Ct&&Ct.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const n=this.navigationTransitions.events.subscribe(r=>{try{const o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(null!==o&&null!==i)if(this.stateManager.handleRouterEvent(r,i),r instanceof cc&&r.code!==qr.Redirect&&r.code!==qr.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof yi)this.navigated=!0;else if(r instanceof Ly){const s=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),a={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||FH(o.source)};this.scheduleNavigation(s,au,null,a,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function jH(e){return!(e instanceof By||e instanceof Ly)})(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),au,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const c={...o};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(i.state=c)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Ky),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s;let d,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...i};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}null!==u&&(u=this.removeEmptyProps(u));try{d=DS(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return AS(d,n,u,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=ac(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,au,null,r)}navigate(n,r={skipLocationChange:!1}){return function HH(e){for(let t=0;t(null!=i&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,g)=>{a=d,c=g});const u=this.pendingTasks.add();return rI(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Os=(()=>{class e{constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new en,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof yi&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,i,s){const a=this.urlTree;return!!(null===a||this.isAnchorElement&&(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(a,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const n=this.urlTree;this.href=null!==n&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;const r=null===this.href?null:function bE(e,t,n){return function oR(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?EE:og}(t,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(r){return new(r||e)(be(lr),be(dc),function Ld(e){return function _N(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(mi(n=>n instanceof yi),tu(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=om(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return Pn(o).pipe(eu())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):at(null);const i=o.pipe(Xn(s=>null===s?at(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?Pn([i,this.loader.loadComponent(r)]).pipe(eu()):i})}static#e=this.\u0275fac=function(r){return new(r||e)(We(lr),We(ED),We(Hr),We(oI),We(Jy))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const tv=new je("");let iI=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof cu?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof yi?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof lc&&n.code===mh.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof FS&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new FS(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){!function JE(){throw new Error("invalid")}()};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();function Bo(e,t){return{\u0275kind:e,\u0275providers:t}}function aI(){const e=Pe(qn);return t=>{const n=e.get(li);if(t!==n.components[0])return;const r=e.get(lr),o=e.get(cI);1===e.get(nv)&&r.initialNavigation(),e.get(lI,null,_t.Optional)?.setUpPreloading(),e.get(tv,null,_t.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const cI=new je("",{factory:()=>new en}),nv=new je("",{providedIn:"root",factory:()=>1}),lI=new je("");function QH(e){return Bo(0,[{provide:lI,useExisting:GH},{provide:oI,useExisting:e}])}function YH(e){return Bo(9,[{provide:eI,useValue:NH},{provide:tI,useValue:{skipNextTransition:!!e?.skipInitialTransition,...e}}])}const uI=new je("ROUTER_FORROOT_GUARD"),XH=[Kl,{provide:sc,useClass:Ry},lr,lu,{provide:dc,useFactory:function sI(e){return e.routerState.root},deps:[lr]},Jy,[]];let Ps=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[XH,[],{provide:mc,multi:!0,useValue:n},{provide:uI,useFactory:nj,deps:[[lr,new xd,new Cd]]},{provide:gc,useValue:r||{}},r?.useHash?{provide:Rs,useClass:FL}:{provide:Rs,useClass:rA},{provide:tv,useFactory:()=>{const e=Pe(t9),t=Pe(Ct),n=Pe(gc),r=Pe(bh),o=Pe(sc);return n.scrollOffset&&e.setOffset(n.scrollOffset),new iI(o,r,e,t,n)}},r?.preloadingStrategy?QH(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?rj(r):[],r?.bindToComponentInputs?Bo(8,[US,{provide:vh,useExisting:US}]).\u0275providers:[],r?.enableViewTransitions?YH().\u0275providers:[],[{provide:dI,useFactory:aI},{provide:Gm,multi:!0,useExisting:dI}]]}}static forChild(n){return{ngModule:e,providers:[{provide:mc,multi:!0,useValue:n}]}}static#e=this.\u0275fac=function(r){return new(r||e)(We(uI,8))};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({})}return e})();function nj(e){return"guarded"}function rj(e){return["disabled"===e.initialNavigation?Bo(3,[{provide:$m,multi:!0,useFactory:()=>{const t=Pe(lr);return()=>{t.setUpLocationChangeListener()}}},{provide:nv,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Bo(2,[{provide:nv,useValue:0},{provide:$m,multi:!0,deps:[qn],useFactory:t=>{const n=t.get(NL,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(lr),i=t.get(cI);rI(o,()=>{r(!0)}),t.get(bh).afterPreactivation=()=>(r(!0),i.closed?at(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const dI=new je("");let fI=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static#e=this.\u0275fac=function(r){return new(r||e)(be(si),be(pr))};static#t=this.\u0275dir=it({type:e})}return e})(),ks=(()=>{class e extends fI{static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275dir=it({type:e,features:[Nt]})}return e})();const Lo=new je(""),sj={provide:Lo,useExisting:qt(()=>rv),multi:!0};let rv=(()=>{class e extends ks{writeValue(n){this.setProperty("checked",n)}static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275dir=it({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){1&r&&St("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},features:[nn([sj]),Nt]})}return e})();const aj={provide:Lo,useExisting:qt(()=>yc),multi:!0},lj=new je("");let yc=(()=>{class e extends fI{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function cj(){const e=$i()?$i().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static#e=this.\u0275fac=function(r){return new(r||e)(be(si),be(pr),be(lj,8))};static#t=this.\u0275dir=it({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){1&r&&St("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[nn([aj]),Nt]})}return e})();function Ki(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function hI(e){return null!=e&&"number"==typeof e.length}const er=new je(""),qi=new je(""),uj=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Bs{static min(t){return function pI(e){return t=>{if(Ki(t.value)||Ki(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n{if(Ki(t.value)||Ki(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(t)}static required(t){return function mI(e){return Ki(e.value)?{required:!0}:null}(t)}static requiredTrue(t){return function yI(e){return!0===e.value?null:{required:!0}}(t)}static email(t){return function vI(e){return Ki(e.value)||uj.test(e.value)?null:{email:!0}}(t)}static minLength(t){return function wI(e){return t=>Ki(t.value)||!hI(t.value)?null:t.value.length{if(Ki(r.value))return null;const o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}(t)}static nullValidator(t){return null}static compose(t){return SI(t)}static composeAsync(t){return II(t)}}function _I(e){return t=>hI(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function xh(e){return null}function bI(e){return null!=e}function xI(e){return zl(e)?Pn(e):e}function CI(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function DI(e,t){return t.map(n=>n(e))}function AI(e){return e.map(t=>function dj(e){return!e.validate}(t)?t:n=>t.validate(n))}function SI(e){if(!e)return null;const t=e.filter(bI);return 0==t.length?null:function(n){return CI(DI(n,t))}}function ov(e){return null!=e?SI(AI(e)):null}function II(e){if(!e)return null;const t=e.filter(bI);return 0==t.length?null:function(n){return function ij(...e){const t=iS(e),{args:n,keys:r}=sS(e),o=new cn(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let c=s,l=s;for(let u=0;u{d||(d=!0,l--),a[u]=g},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?cS(r,a):a),i.complete())}))}});return t?o.pipe(aS(t)):o}(DI(n,t).map(xI)).pipe(kt(CI))}}function iv(e){return null!=e?II(AI(e)):null}function TI(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function MI(e){return e._rawValidators}function NI(e){return e._rawAsyncValidators}function sv(e){return e?Array.isArray(e)?e:[e]:[]}function Ch(e,t){return Array.isArray(e)?e.includes(t):e===t}function RI(e,t){const n=sv(t);return sv(e).forEach(o=>{Ch(n,o)||n.push(o)}),n}function FI(e,t){return sv(t).filter(n=>!Ch(e,n))}class OI{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=ov(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=iv(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class ur extends OI{get formDirective(){return null}get path(){return null}}class Qi extends OI{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class PI{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Dh=(()=>{class e extends PI{constructor(n){super(n)}static#e=this.\u0275fac=function(r){return new(r||e)(be(Qi,2))};static#t=this.\u0275dir=it({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){2&r&&Ts("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Nt]})}return e})(),Ah=(()=>{class e extends PI{constructor(n){super(n)}static#e=this.\u0275fac=function(r){return new(r||e)(be(ur,10))};static#t=this.\u0275dir=it({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){2&r&&Ts("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[Nt]})}return e})();const mu="VALID",Ih="INVALID",vc="PENDING",yu="DISABLED";function lv(e){return(Th(e)?e.validators:e)||null}function uv(e,t){return(Th(t)?t.asyncValidators:e)||null}function Th(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function BI(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new he(1e3,"");if(!r[n])throw new he(1001,"")}function LI(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new he(1002,"")})}class Mh{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===mu}get invalid(){return this.status===Ih}get pending(){return this.status==vc}get disabled(){return this.status===yu}get enabled(){return this.status!==yu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(RI(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(RI(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(FI(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(FI(t,this._rawAsyncValidators))}hasValidator(t){return Ch(this._rawValidators,t)}hasAsyncValidator(t){return Ch(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=vc,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=yu,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=mu,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===mu||this.status===vc)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?yu:mu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=vc,this._hasOwnPendingAsyncValidator=!0;const n=xI(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Xt,this.statusChanges=new Xt}_calculateStatus(){return this._allControlsDisabled()?yu:this.errors?Ih:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vc)?vc:this._anyControlsHaveStatus(Ih)?Ih:mu}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Th(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function gj(e){return Array.isArray(e)?ov(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function mj(e){return Array.isArray(e)?iv(e):e||null}(this._rawAsyncValidators)}}class vu extends Mh{constructor(t,n,r){super(lv(n),uv(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){LI(this,0,t),Object.keys(t).forEach(r=>{BI(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}class VI extends vu{}const wc=new je("CallSetDisabledState",{providedIn:"root",factory:()=>Nh}),Nh="always";function wu(e,t,n=Nh){dv(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function vj(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&UI(e,t)})}(e,t),function _j(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function wj(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&UI(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function yj(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function Fh(e,t,n=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),Ph(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Oh(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function dv(e,t){const n=MI(e);null!==t.validator?e.setValidators(TI(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=NI(e);null!==t.asyncValidator?e.setAsyncValidators(TI(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();Oh(t._rawValidators,o),Oh(t._rawAsyncValidators,o)}function Ph(e,t){let n=!1;if(null!==e){if(null!==t.validator){const o=MI(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==t.validator);i.length!==o.length&&(n=!0,e.setValidators(i))}}if(null!==t.asyncValidator){const o=NI(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==t.asyncValidator);i.length!==o.length&&(n=!0,e.setAsyncValidators(i))}}}const r=()=>{};return Oh(t._rawValidators,r),Oh(t._rawAsyncValidators,r),n}function UI(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function $I(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function zI(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const Eu=class extends Mh{constructor(t=null,n,r){super(lv(n),uv(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Th(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=zI(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){$I(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){$I(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){zI(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};Promise.resolve();let kh=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=it({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const Tj={provide:Lo,useExisting:qt(()=>mv),multi:!0};let mv=(()=>{class e extends ks{writeValue(n){this.setProperty("value",n??"")}registerOnChange(n){this.onChange=r=>{n(""==r?null:parseFloat(r))}}static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275dir=it({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){1&r&&St("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},features:[nn([Tj]),Nt]})}return e})();const Mj={provide:Lo,useExisting:qt(()=>yv),multi:!0};let Nj=(()=>{class e{constructor(){this._accessors=[]}add(n,r){this._accessors.push([n,r])}remove(n){for(let r=this._accessors.length-1;r>=0;--r)if(this._accessors[r][1]===n)return void this._accessors.splice(r,1)}select(n){this._accessors.forEach(r=>{this._isSameGroup(r,n)&&r[1]!==n&&r[1].fireUncheck(n.value)})}_isSameGroup(n,r){return!!n[0].control&&n[0]._parent===r._control._parent&&n[1].name===r.name}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),yv=(()=>{class e extends ks{constructor(n,r,o,i){super(n,r),this._registry=o,this._injector=i,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=Pe(wc,{optional:!0})??Nh}ngOnInit(){this._control=this._injector.get(Qi),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(n){this._state=n===this.value,this.setProperty("checked",this._state)}registerOnChange(n){this._fn=n,this.onChange=()=>{n(this.value),this._registry.select(this)}}setDisabledState(n){(this.setDisabledStateFired||n||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",n),this.setDisabledStateFired=!0}fireUncheck(n){this.writeValue(n)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(r){return new(r||e)(be(si),be(pr),be(Nj),be(qn))};static#t=this.\u0275dir=it({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(r,o){1&r&&St("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[nn([Mj]),Nt]})}return e})();const vv=new je(""),Oj={provide:ur,useExisting:qt(()=>_c)};let _c=(()=>{class e extends ur{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Xt,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ph(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){const r=this.form.get(n.path);return wu(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Fh(n.control||null,n,!1),function Cj(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,function jI(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{const r=n.control,o=this.form.get(n.path);r!==o&&(Fh(r||null,n),(e=>e instanceof Eu)(o)&&(wu(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){const r=this.form.get(n.path);(function HI(e,t){dv(e,t)})(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){const r=this.form.get(n.path);r&&function Ej(e,t){return Ph(e,t)}(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){dv(this.form,this),this._oldForm&&Ph(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||e)(be(er,10),be(qi,10),be(wc,8))};static#t=this.\u0275dir=it({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){1&r&&St("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[Jt.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[nn([Oj]),Nt,jr]})}return e})();const Bj={provide:Qi,useExisting:qt(()=>bu)};let bu=(()=>{class e extends Qi{set isDisabled(n){}static#e=this._ngModelWarningSentOnce=!1;constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new Xt,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function pv(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===yc?n=i:function xj(e){return Object.getPrototypeOf(e.constructor)===ks}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){this._added||this._setUpControl(),function hv(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return function Rh(e,t){return[...t.path,e]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(r){return new(r||e)(be(ur,13),be(er,10),be(qi,10),be(Lo,10),be(vv,8))};static#n=this.\u0275dir=it({type:e,selectors:[["","formControlName",""]],inputs:{name:[Jt.None,"formControlName","name"],isDisabled:[Jt.None,"disabled","isDisabled"],model:[Jt.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[nn([Bj]),Nt,jr]})}return e})();const Lj={provide:Lo,useExisting:qt(()=>Bh),multi:!0};function XI(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Bh=(()=>{class e extends ks{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const o=XI(this._getOptionId(n),n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){const r=function Vj(e){return e.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275dir=it({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){1&r&&St("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[nn([Lj]),Nt]})}return e})(),JI=(()=>{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(XI(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(r){return new(r||e)(be(pr),be(si),be(Bh,9))};static#t=this.\u0275dir=it({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})();const Uj={provide:Lo,useExisting:qt(()=>Ev),multi:!0};function eT(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Ev=(()=>{class e extends ks{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let r;if(this.value=n,Array.isArray(n)){const o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275dir=it({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){1&r&&St("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[nn([Uj]),Nt]})}return e})(),tT=(()=>{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(eT(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(eT(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(r){return new(r||e)(be(pr),be(si),be(Ev,9))};static#t=this.\u0275dir=it({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})();let Ls=(()=>{class e{constructor(){this._validator=xh}ngOnChanges(n){if(this.inputName in n){const r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):xh,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return null!=n}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=it({type:e,features:[jr]})}return e})();const qj={provide:er,useExisting:qt(()=>Lh),multi:!0};let Lh=(()=>{class e extends Ls{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=n=>function nT(e){return"number"==typeof e?e:parseInt(e,10)}(n),this.createValidator=n=>_I(n)}static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275dir=it({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){2&r&&wr("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[nn([qj]),Nt]})}return e})(),Zj=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({})}return e})();class uT extends Mh{constructor(t,n,r){super(lv(n),uv(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,n={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(t,n,r={}){this.controls.splice(t,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,n={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(t,n,r={}){let o=this._adjustIndex(t);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),n&&(this.controls.splice(o,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,n={}){LI(this,0,t),t.forEach((r,o)=>{BI(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(t.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t=[],n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((n,r)=>!!r._syncPendingControls()||n,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((n,r)=>{t(n,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(n=>n.enabled&&t(n))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}}function dT(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let xv=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const n=new e;return n.useNonNullable=!0,n}group(n,r=null){const o=this._reduceControls(n);let i={};return dT(r)?i=r:null!==r&&(i.validators=r.validator,i.asyncValidators=r.asyncValidator),new vu(o,i)}record(n,r=null){const o=this._reduceControls(n);return new VI(o,r)}control(n,r,o){let i={};return this.useNonNullable?(dT(r)?i=r:(i.validators=r,i.asyncValidators=o),new Eu(n,{...i,nonNullable:!0})):new Eu(n,r,o)}array(n,r,o){const i=n.map(s=>this._createControl(s));return new uT(i,r,o)}_reduceControls(n){const r={};return Object.keys(n).forEach(o=>{r[o]=this._createControl(n[o])}),r}_createControl(n){return n instanceof Eu||n instanceof Mh?n:Array.isArray(n)?this.control(n[0],n.length>1?n[1]:null,n.length>2?n[2]:null):this.control(n)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Cv=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:vv,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:wc,useValue:n.callSetDisabledState??Nh}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({imports:[Zj]})}return e})();var Dv=y(4920);y(9564),y(9872);let Av=(()=>{class e{match(n){return Dv.EncryptedURI.matcher(n)}encrypt(n,r,o){return Dv.EncryptedURI.encrypt({content:n,password:r,algorithm:o.algorithm||"aes/cbc",kdf:{derivateKeyLength:32,kdf:"pbkdf2",hasher:o.kdfHasher||"sha256",rounds:Number(o.kdfRounds||"32")}})}decrypt(n,r){return Dv.EncryptedURI.decrypt(n,r)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Zi=y(8108);let fT=(()=>{class e{constructor(){this.mode=Zi.mode.CBC,this.padding=Zi.pad.Pkcs7}match(n){return/^encrypted:aes\?iv=/.test(n)}encrypt(n,r){const o=Zi.enc.Hex.parse(Zi.lib.WordArray.random(16).toString());return`encrypted:aes?iv=${o};`+Zi.AES.encrypt(n,String(r),{iv:o,mode:this.mode,padding:this.padding})}decrypt(n,r){const o=this.parseEncryptedQrcode(n);if(o.encrypted&&"aes"===o.type){const i=Zi.AES.decrypt(o.content,r,{iv:o.iv,mode:this.mode,padding:this.padding});return Zi.enc.Utf8.stringify(i)}return o.content}parseEncryptedQrcode(n){if(this.match(n)){const r=n.replace(/(^.*iv=|;.*$)/g,""),o=n.replace(/^.*;/,"");return{encrypted:!0,type:"aes",iv:Zi.enc.Hex.parse(r),content:o}}return{encrypted:!1,content:n}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Sv(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function Iv(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function xu(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}const Tv="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,Mv=e=>e instanceof Uint8Array,Nv=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),Vo=(e,t)=>e<<32-t|e>>>t;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Cu(e){if("string"==typeof e&&(e=function e$(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}(e)),!Mv(e))throw new Error("expected Uint8Array, got "+typeof e);return e}class gT{clone(){return this._cloneInto()}}function r$(e){const t=r=>e().update(Cu(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function mT(e=32){if(Tv&&"function"==typeof Tv.getRandomValues)return Tv.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}class i$ extends gT{constructor(t,n,r,o){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=Nv(this.buffer)}update(t){xu(this);const{view:n,buffer:r,blockLen:o}=this,i=(t=Cu(t)).length;for(let s=0;so-s&&(this.process(r,0),s=0);for(let d=s;d>o&i),a=Number(n&i),l=r?0:4;e.setUint32(t+(r?4:0),s,r),e.setUint32(t+l,a,r)})(r,o-8,BigInt(8*this.length),i),this.process(r,0);const a=Nv(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,u=this.get();if(l>u.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;de&t^~e&n,a$=(e,t,n)=>e&t^e&n^t&n,c$=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Yi=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Xi=new Uint32Array(64);class yT extends i${constructor(){super(64,32,8,!1),this.A=0|Yi[0],this.B=0|Yi[1],this.C=0|Yi[2],this.D=0|Yi[3],this.E=0|Yi[4],this.F=0|Yi[5],this.G=0|Yi[6],this.H=0|Yi[7]}get(){const{A:t,B:n,C:r,D:o,E:i,F:s,G:a,H:c}=this;return[t,n,r,o,i,s,a,c]}set(t,n,r,o,i,s,a,c){this.A=0|t,this.B=0|n,this.C=0|r,this.D=0|o,this.E=0|i,this.F=0|s,this.G=0|a,this.H=0|c}process(t,n){for(let d=0;d<16;d++,n+=4)Xi[d]=t.getUint32(n,!1);for(let d=16;d<64;d++){const g=Xi[d-15],v=Xi[d-2],E=Vo(g,7)^Vo(g,18)^g>>>3,A=Vo(v,17)^Vo(v,19)^v>>>10;Xi[d]=A+Xi[d-7]+E+Xi[d-16]|0}let{A:r,B:o,C:i,D:s,E:a,F:c,G:l,H:u}=this;for(let d=0;d<64;d++){const v=u+(Vo(a,6)^Vo(a,11)^Vo(a,25))+s$(a,c,l)+c$[d]+Xi[d]|0,A=(Vo(r,2)^Vo(r,13)^Vo(r,22))+a$(r,o,i)|0;u=l,l=c,c=a,a=s+v|0,s=i,i=o,o=r,r=v+A|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,s=s+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(r,o,i,s,a,c,l,u)}roundClean(){Xi.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Fv=r$(()=>new yT),Vh=(BigInt(0),BigInt(1)),l$=BigInt(2),Uh=e=>e instanceof Uint8Array,u$=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Ec(e){if(!Uh(e))throw new Error("Uint8Array expected");let t="";for(let n=0;nr+o.length,0));let n=0;return e.forEach(r=>{if(!Uh(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}const kv=e=>(l$<new Uint8Array(e),_T=e=>Uint8Array.from(e);function ET(e,t,n){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");let r=Bv(e),o=Bv(e),i=0;const s=()=>{r.fill(1),o.fill(0),i=0},a=(...d)=>n(o,r,...d),c=(d=Bv())=>{o=a(_T([0]),d),r=a(),0!==d.length&&(o=a(_T([1]),d),r=a())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const g=[];for(;d{let v;for(s(),c(d);!(v=g(l()));)c();return s(),v}}const f$={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function Du(e,t,n={}){const r=(o,i,s)=>{const a=f$[i];if("function"!=typeof a)throw new Error(`Invalid validator "${i}", expected function`);const c=e[o];if(!(s&&void 0===c||a(c,e)))throw new Error(`Invalid param ${String(o)}=${c} (${typeof c}), expected ${i}`)};for(const[o,i]of Object.entries(t))r(o,i,!1);for(const[o,i]of Object.entries(n))r(o,i,!0);return e}const Mn=BigInt(0),$t=BigInt(1),es=BigInt(2),h$=BigInt(3),Lv=BigInt(4),bT=BigInt(5),xT=BigInt(8);function Nn(e,t){const n=e%t;return n>=Mn?n:t+n}function m$(e,t,n){if(n<=Mn||t 0");if(n===$t)return Mn;let r=$t;for(;t>Mn;)t&$t&&(r=r*e%n),e=e*e%n,t>>=$t;return r}function Qr(e,t,n){let r=e;for(;t-- >Mn;)r*=r,r%=n;return r}function Hh(e,t){if(e===Mn||t<=Mn)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=Nn(e,t),r=t,o=Mn,i=$t,s=$t,a=Mn;for(;n!==Mn;){const l=r/n,u=r%n,d=o-s*l,g=i-a*l;r=n,n=u,o=s,i=a,s=d,a=g}if(r!==$t)throw new Error("invert: does not exist");return Nn(o,t)}BigInt(9),BigInt(16);const w$=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Vv(e,t){const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function CT(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function DT(e){const t=CT(e);return t+Math.ceil(t/2)}class AT extends gT{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,function hT(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Sv(e.outputLen),Sv(e.blockLen)}(t);const r=Cu(n);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,i=new Uint8Array(o);i.set(r.length>o?t.create().update(r).digest():r);for(let s=0;snew AT(e,t).update(n).digest();ST.create=(e,t)=>new AT(e,t);const D$=BigInt(0),Uv=BigInt(1);function IT(e){return function _$(e){Du(e,w$.reduce((r,o)=>(r[o]="function",r),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(e.Fp),Du(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Vv(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}const{bytesToNumberBE:I$,hexToBytes:T$}=m,Us={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(e){const{Err:t}=Us;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");const n=e[1],r=e.subarray(2,n+2);if(!n||r.length!==n)throw new t("Invalid signature integer: wrong length");if(128&r[0])throw new t("Invalid signature integer: negative");if(0===r[0]&&!(128&r[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:I$(r),l:e.subarray(n+2)}},toSig(e){const{Err:t}=Us,n="string"==typeof e?T$(e):e;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let r=n.length;if(r<2||48!=n[0])throw new t("Invalid signature tag");if(n[1]!==r-2)throw new t("Invalid signature: incorrect length");const{d:o,l:i}=Us._parseInt(n.subarray(2)),{d:s,l:a}=Us._parseInt(i);if(a.length)throw new t("Invalid signature: left bytes after parsing");return{r:o,s}},hexFromSig(e){const t=l=>8&Number.parseInt(l[0],16)?"00"+l:l,n=l=>{const u=l.toString(16);return 1&u.length?`0${u}`:u},r=t(n(e.s)),o=t(n(e.r)),i=r.length/2,s=o.length/2,a=n(i),c=n(s);return`30${n(s+i+4)}02${c}${o}02${a}${r}`}},po=BigInt(0),sn=BigInt(1),jh=(BigInt(2),BigInt(3));function R$(e){const t=function N$(e){const t=IT(e);return Du(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:n,n:r}=t,o=n.BYTES+1,i=2*n.BYTES+1;function a(De){return Nn(De,r)}function c(De){return Hh(De,r)}const{ProjectivePoint:l,normPrivateKeyToScalar:u,weierstrassEquation:d,isWithinCurveOrder:g}=function M$(e){const t=function S$(e){const t=IT(e);Du(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:o}=t;if(n){if(!r.eql(o,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:n}=t,r=t.toBytes||((E,A,U)=>{const q=A.toAffine();return Vs(Uint8Array.from([4]),n.toBytes(q.x),n.toBytes(q.y))}),o=t.fromBytes||(E=>{const A=E.subarray(1);return{x:n.fromBytes(A.subarray(0,n.BYTES)),y:n.fromBytes(A.subarray(n.BYTES,2*n.BYTES))}});function i(E){const{a:A,b:U}=t,q=n.sqr(E),K=n.mul(q,E);return n.add(n.add(K,n.mul(E,A)),U)}if(!n.eql(n.sqr(t.Gy),i(t.Gx)))throw new Error("bad generator point: equation left != right");function s(E){return"bigint"==typeof E&&pon.eql(se,n.ZERO);return K(U)&&K(q)?d.ZERO:new d(U,q,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(A){const U=n.invertBatch(A.map(q=>q.pz));return A.map((q,K)=>q.toAffine(U[K])).map(d.fromAffine)}static fromHex(A){const U=d.fromAffine(o(tr("pointHex",A)));return U.assertValidity(),U}static fromPrivateKey(A){return d.BASE.multiply(c(A))}_setWindowSize(A){this._WINDOW_SIZE=A,l.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:A,y:U}=this.toAffine();if(!n.isValid(A)||!n.isValid(U))throw new Error("bad point: x or y not FE");const q=n.sqr(U),K=i(A);if(!n.eql(q,K))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:A}=this.toAffine();if(n.isOdd)return!n.isOdd(A);throw new Error("Field doesn't support isOdd")}equals(A){u(A);const{px:U,py:q,pz:K}=this,{px:se,py:le,pz:ge}=A,_e=n.eql(n.mul(U,ge),n.mul(se,K)),Ne=n.eql(n.mul(q,ge),n.mul(le,K));return _e&&Ne}negate(){return new d(this.px,n.neg(this.py),this.pz)}double(){const{a:A,b:U}=t,q=n.mul(U,jh),{px:K,py:se,pz:le}=this;let ge=n.ZERO,_e=n.ZERO,Ne=n.ZERO,Oe=n.mul(K,K),Ke=n.mul(se,se),$e=n.mul(le,le),ze=n.mul(K,se);return ze=n.add(ze,ze),Ne=n.mul(K,le),Ne=n.add(Ne,Ne),ge=n.mul(A,Ne),_e=n.mul(q,$e),_e=n.add(ge,_e),ge=n.sub(Ke,_e),_e=n.add(Ke,_e),_e=n.mul(ge,_e),ge=n.mul(ze,ge),Ne=n.mul(q,Ne),$e=n.mul(A,$e),ze=n.sub(Oe,$e),ze=n.mul(A,ze),ze=n.add(ze,Ne),Ne=n.add(Oe,Oe),Oe=n.add(Ne,Oe),Oe=n.add(Oe,$e),Oe=n.mul(Oe,ze),_e=n.add(_e,Oe),$e=n.mul(se,le),$e=n.add($e,$e),Oe=n.mul($e,ze),ge=n.sub(ge,Oe),Ne=n.mul($e,Ke),Ne=n.add(Ne,Ne),Ne=n.add(Ne,Ne),new d(ge,_e,Ne)}add(A){u(A);const{px:U,py:q,pz:K}=this,{px:se,py:le,pz:ge}=A;let _e=n.ZERO,Ne=n.ZERO,Oe=n.ZERO;const Ke=t.a,$e=n.mul(t.b,jh);let ze=n.mul(U,se),Ze=n.mul(q,le),Je=n.mul(K,ge),ft=n.add(U,q),De=n.add(se,le);ft=n.mul(ft,De),De=n.add(ze,Ze),ft=n.sub(ft,De),De=n.add(U,K);let ue=n.add(se,ge);return De=n.mul(De,ue),ue=n.add(ze,Je),De=n.sub(De,ue),ue=n.add(q,K),_e=n.add(le,ge),ue=n.mul(ue,_e),_e=n.add(Ze,Je),ue=n.sub(ue,_e),Oe=n.mul(Ke,De),_e=n.mul($e,Je),Oe=n.add(_e,Oe),_e=n.sub(Ze,Oe),Oe=n.add(Ze,Oe),Ne=n.mul(_e,Oe),Ze=n.add(ze,ze),Ze=n.add(Ze,ze),Je=n.mul(Ke,Je),De=n.mul($e,De),Ze=n.add(Ze,Je),Je=n.sub(ze,Je),Je=n.mul(Ke,Je),De=n.add(De,Je),ze=n.mul(Ze,De),Ne=n.add(Ne,ze),ze=n.mul(ue,De),_e=n.mul(ft,_e),_e=n.sub(_e,ze),ze=n.mul(ft,Ze),Oe=n.mul(ue,Oe),Oe=n.add(Oe,ze),new d(_e,Ne,Oe)}subtract(A){return this.add(A.negate())}is0(){return this.equals(d.ZERO)}wNAF(A){return v.wNAFCached(this,l,A,U=>{const q=n.invertBatch(U.map(K=>K.pz));return U.map((K,se)=>K.toAffine(q[se])).map(d.fromAffine)})}multiplyUnsafe(A){const U=d.ZERO;if(A===po)return U;if(a(A),A===sn)return this;const{endo:q}=t;if(!q)return v.unsafeLadder(this,A);let{k1neg:K,k1:se,k2neg:le,k2:ge}=q.splitScalar(A),_e=U,Ne=U,Oe=this;for(;se>po||ge>po;)se&sn&&(_e=_e.add(Oe)),ge&sn&&(Ne=Ne.add(Oe)),Oe=Oe.double(),se>>=sn,ge>>=sn;return K&&(_e=_e.negate()),le&&(Ne=Ne.negate()),Ne=new d(n.mul(Ne.px,q.beta),Ne.py,Ne.pz),_e.add(Ne)}multiply(A){a(A);let q,K,U=A;const{endo:se}=t;if(se){const{k1neg:le,k1:ge,k2neg:_e,k2:Ne}=se.splitScalar(U);let{p:Oe,f:Ke}=this.wNAF(ge),{p:$e,f:ze}=this.wNAF(Ne);Oe=v.constTimeNegate(le,Oe),$e=v.constTimeNegate(_e,$e),$e=new d(n.mul($e.px,se.beta),$e.py,$e.pz),q=Oe.add($e),K=Ke.add(ze)}else{const{p:le,f:ge}=this.wNAF(U);q=le,K=ge}return d.normalizeZ([q,K])[0]}multiplyAndAddUnsafe(A,U,q){const K=d.BASE,se=(ge,_e)=>_e!==po&&_e!==sn&&ge.equals(K)?ge.multiply(_e):ge.multiplyUnsafe(_e),le=se(this,U).add(se(A,q));return le.is0()?void 0:le}toAffine(A){const{px:U,py:q,pz:K}=this,se=this.is0();null==A&&(A=se?n.ONE:n.inv(K));const le=n.mul(U,A),ge=n.mul(q,A),_e=n.mul(K,A);if(se)return{x:n.ZERO,y:n.ZERO};if(!n.eql(_e,n.ONE))throw new Error("invZ was invalid");return{x:le,y:ge}}isTorsionFree(){const{h:A,isTorsionFree:U}=t;if(A===sn)return!0;if(U)return U(d,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:A,clearCofactor:U}=t;return A===sn?this:U?U(d,this):this.multiplyUnsafe(t.h)}toRawBytes(A=!0){return this.assertValidity(),r(d,this,A)}toHex(A=!0){return Ec(this.toRawBytes(A))}}d.BASE=new d(t.Gx,t.Gy,n.ONE),d.ZERO=new d(n.ZERO,n.ONE,n.ZERO);const g=t.nBitLength,v=function A$(e,t){const n=(o,i)=>{const s=i.negate();return o?s:i},r=o=>({windows:Math.ceil(t/o)+1,windowSize:2**(o-1)});return{constTimeNegate:n,unsafeLadder(o,i){let s=e.ZERO,a=o;for(;i>D$;)i&Uv&&(s=s.add(a)),a=a.double(),i>>=Uv;return s},precomputeWindow(o,i){const{windows:s,windowSize:a}=r(i),c=[];let l=o,u=l;for(let d=0;d>=v,U>c&&(U-=g,s+=Uv);const q=A,K=A+Math.abs(U)-1,le=U<0;0===U?u=u.add(n(E%2!=0,i[q])):l=l.add(n(le,i[K]))}return{p:l,f:u}},wNAFCached(o,i,s,a){const c=o._WINDOW_SIZE||1;let l=i.get(o);return l||(l=this.precomputeWindow(o,c),1!==c&&i.set(o,a(l))),this.wNAF(c,l,s)}}}(d,t.endo?Math.ceil(g/2):g);return{CURVE:t,ProjectivePoint:d,normPrivateKeyToScalar:c,weierstrassEquation:i,isWithinCurveOrder:s}}({...t,toBytes(De,ue,ve){const Ie=ue.toAffine(),we=n.toBytes(Ie.x),He=Vs;return ve?He(Uint8Array.from([ue.hasEvenY()?2:3]),we):He(Uint8Array.from([4]),we,n.toBytes(Ie.y))},fromBytes(De){const ue=De.length,ve=De[0],Ie=De.subarray(1);if(ue!==o||2!==ve&&3!==ve){if(ue===i&&4===ve)return{x:n.fromBytes(Ie.subarray(0,n.BYTES)),y:n.fromBytes(Ie.subarray(n.BYTES,2*n.BYTES))};throw new Error(`Point of length ${ue} was invalid. Expected ${o} compressed bytes or ${i} uncompressed bytes`)}{const we=Er(Ie);if(!function s(De){return poEc(Ji(De,t.nByteLength));function E(De){return De>r>>sn}const U=(De,ue,ve)=>Er(De.slice(ue,ve));class q{constructor(ue,ve,Ie){this.r=ue,this.s=ve,this.recovery=Ie,this.assertValidity()}static fromCompact(ue){const ve=t.nByteLength;return ue=tr("compactSignature",ue,2*ve),new q(U(ue,0,ve),U(ue,ve,2*ve))}static fromDER(ue){const{r:ve,s:Ie}=Us.toSig(tr("DER",ue));return new q(ve,Ie)}assertValidity(){if(!g(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!g(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(ue){return new q(this.r,this.s,ue)}recoverPublicKey(ue){const{r:ve,s:Ie,recovery:we}=this,He=Ne(tr("msgHash",ue));if(null==we||![0,1,2,3].includes(we))throw new Error("recovery id invalid");const Ye=2===we||3===we?ve+t.n:ve;if(Ye>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const zt=l.fromHex((1&we?"03":"02")+v(Ye)),vt=c(Ye),nr=a(-He*vt),Cr=a(Ie*vt),Tt=l.BASE.multiplyAndAddUnsafe(zt,nr,Cr);if(!Tt)throw new Error("point at infinify");return Tt.assertValidity(),Tt}hasHighS(){return E(this.s)}normalizeS(){return this.hasHighS()?new q(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return bc(this.toDERHex())}toDERHex(){return Us.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return bc(this.toCompactHex())}toCompactHex(){return v(this.r)+v(this.s)}}const K={isValidPrivateKey(De){try{return u(De),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const De=DT(t.n);return function C$(e,t,n=!1){const r=e.length,o=CT(t),i=DT(t);if(r<16||r1024)throw new Error(`expected ${i}-1024 bytes of input, got ${r}`);const a=Nn(n?Er(e):Ov(e),t-$t)+$t;return n?Pv(a,o):Ji(a,o)}(t.randomBytes(De),t.n)},precompute:(De=8,ue=l.BASE)=>(ue._setWindowSize(De),ue.multiply(BigInt(3)),ue)};function le(De){const ue=De instanceof Uint8Array,ve="string"==typeof De,Ie=(ue||ve)&&De.length;return ue?Ie===o||Ie===i:ve?Ie===2*o||Ie===2*i:De instanceof l}const _e=t.bits2int||function(De){const ue=Er(De),ve=8*De.length-t.nBitLength;return ve>0?ue>>BigInt(ve):ue},Ne=t.bits2int_modN||function(De){return a(_e(De))},Oe=kv(t.nBitLength);function Ke(De){if("bigint"!=typeof De)throw new Error("bigint expected");if(!(po<=De&&DeGt in ve))throw new Error("sign() legacy options not supported");const{hash:Ie,randomBytes:we}=t;let{lowS:He,prehash:Ye,extraEntropy:Xe}=ve;null==He&&(He=!0),De=tr("msgHash",De),Ye&&(De=tr("prehashed msgHash",Ie(De)));const zt=Ne(De),vt=u(ue),nr=[Ke(vt),Ke(zt)];if(null!=Xe){const Gt=!0===Xe?we(n.BYTES):Xe;nr.push(tr("extraEntropy",Gt))}const Cr=Vs(...nr),Tt=zt;return{seed:Cr,k2sig:function kn(Gt){const vo=_e(Gt);if(!g(vo))return;const Fc=c(vo),qo=l.BASE.multiply(vo).toAffine(),Oc=a(qo.x);if(Oc===po)return;const F0=a(Fc*a(Tt+Oc*vt));if(F0===po)return;let p3=(qo.x===Oc?0:2)|Number(qo.y&sn),g3=F0;return He&&E(F0)&&(g3=function A(De){return E(De)?a(-De):De}(F0),p3^=1),new q(Oc,g3,p3)}}}(De,ue,ve);return ET(t.hash.outputLen,t.nByteLength,t.hmac)(Ie,we)},verify:function ft(De,ue,ve,Ie=Ze){const we=De;if(ue=tr("msgHash",ue),ve=tr("publicKey",ve),"strict"in Ie)throw new Error("options.strict was renamed to lowS");const{lowS:He,prehash:Ye}=Ie;let Xe,zt;try{if("string"==typeof we||we instanceof Uint8Array)try{Xe=q.fromDER(we)}catch(qo){if(!(qo instanceof Us.Err))throw qo;Xe=q.fromCompact(we)}else{if("object"!=typeof we||"bigint"!=typeof we.r||"bigint"!=typeof we.s)throw new Error("PARSE");{const{r:qo,s:Oc}=we;Xe=new q(qo,Oc)}}zt=l.fromHex(ve)}catch(qo){if("PARSE"===qo.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(He&&Xe.hasHighS())return!1;Ye&&(ue=t.hash(ue));const{r:vt,s:nr}=Xe,Cr=Ne(ue),Tt=c(nr),kn=a(Cr*Tt),Gt=a(vt*Tt),vo=l.BASE.multiplyAndAddUnsafe(zt,kn,Gt)?.toAffine();return!!vo&&a(vo.x)===vt},ProjectivePoint:l,Signature:q,utils:K}}function O$(e){return{hash:e,hmac:(t,...n)=>ST(e,t,function t$(...e){const t=new Uint8Array(e.reduce((r,o)=>r+o.length,0));let n=0;return e.forEach(r=>{if(!Mv(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}(...n)),randomBytes:mT}}BigInt(4);const $h=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),zh=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),MT=BigInt(1),Gh=BigInt(2),NT=(e,t)=>(e+t/Gh)/t;function RT(e){const t=$h,n=BigInt(3),r=BigInt(6),o=BigInt(11),i=BigInt(22),s=BigInt(23),a=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,d=Qr(u,n,t)*u%t,g=Qr(d,n,t)*u%t,v=Qr(g,Gh,t)*l%t,E=Qr(v,o,t)*v%t,A=Qr(E,i,t)*E%t,U=Qr(A,a,t)*A%t,q=Qr(U,c,t)*U%t,K=Qr(q,a,t)*A%t,se=Qr(K,n,t)*u%t,le=Qr(se,s,t)*E%t,ge=Qr(le,r,t)*l%t,_e=Qr(ge,Gh,t);if(!Hv.eql(Hv.sqr(_e),e))throw new Error("Cannot find square root");return _e}const Hv=function x$(e,t,n=!1,r={}){if(e<=Mn)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:o,nByteLength:i}=Vv(e,t);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const s=function v$(e){if(e%Lv===h$){const t=(e+$t)/Lv;return function(r,o){const i=r.pow(o,t);if(!r.eql(r.sqr(i),o))throw new Error("Cannot find square root");return i}}if(e%xT===bT){const t=(e-bT)/xT;return function(r,o){const i=r.mul(o,es),s=r.pow(i,t),a=r.mul(o,s),c=r.mul(r.mul(a,es),s),l=r.mul(a,r.sub(c,r.ONE));if(!r.eql(r.sqr(l),o))throw new Error("Cannot find square root");return l}}return function y$(e){const t=(e-$t)/es;let n,r,o;for(n=e-$t,r=0;n%es===Mn;n/=es,r++);for(o=es;oNn(c,e),isValid:c=>{if("bigint"!=typeof c)throw new Error("Invalid field element: expected bigint, got "+typeof c);return Mn<=c&&cc===Mn,isOdd:c=>(c&$t)===$t,neg:c=>Nn(-c,e),eql:(c,l)=>c===l,sqr:c=>Nn(c*c,e),add:(c,l)=>Nn(c+l,e),sub:(c,l)=>Nn(c-l,e),mul:(c,l)=>Nn(c*l,e),pow:(c,l)=>function E$(e,t,n){if(n 0");if(n===Mn)return e.ONE;if(n===$t)return t;let r=e.ONE,o=t;for(;n>Mn;)n&$t&&(r=e.mul(r,o)),o=e.sqr(o),n>>=$t;return r}(a,c,l),div:(c,l)=>Nn(c*Hh(l,e),e),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>Hh(c,e),sqrt:r.sqrt||(c=>s(a,c)),invertBatch:c=>function b$(e,t){const n=new Array(t.length),r=t.reduce((i,s,a)=>e.is0(s)?i:(n[a]=i,e.mul(i,s)),e.ONE),o=e.inv(r);return t.reduceRight((i,s,a)=>e.is0(s)?i:(n[a]=e.mul(i,n[a]),e.mul(i,s)),o),n}(a,c),cmov:(c,l,u)=>u?l:c,toBytes:c=>n?Pv(c,i):Ji(c,i),fromBytes:c=>{if(c.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${c.length}`);return n?Ov(c):Er(c)}});return Object.freeze(a)}($h,void 0,void 0,{sqrt:RT}),xc=function P$(e,t){const n=r=>R$({...e,...O$(r)});return Object.freeze({...n(t),create:n})}({a:BigInt(0),b:BigInt(7),Fp:Hv,n:zh,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=zh,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-MT*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=n,s=BigInt("0x100000000000000000000000000000000"),a=NT(i*e,t),c=NT(-r*e,t);let l=Nn(e-a*n-c*o,t),u=Nn(-a*r-c*i,t);const d=l>s,g=u>s;if(d&&(l=t-l),g&&(u=t-u),l>s||u>s)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:l,k2neg:g,k2:u}}}},Fv),Wh=BigInt(0),FT=e=>"bigint"==typeof e&&Who.charCodeAt(0)));n=Vs(r,r),OT[e]=n}return Fv(Vs(n,...t))}const jv=e=>e.toRawBytes(!0).slice(1),$v=e=>Ji(e,32),zv=e=>Nn(e,$h),Au=e=>Nn(e,zh),Gv=xc.ProjectivePoint;function Wv(e){let t=xc.utils.normPrivateKeyToScalar(e),n=Gv.fromPrivateKey(t);return{scalar:n.hasEvenY()?t:Au(-t),bytes:jv(n)}}function PT(e){if(!FT(e))throw new Error("bad x: need 0 < x < p");const t=zv(e*e);let r=RT(zv(t*e+BigInt(7)));r%Gh!==Wh&&(r=zv(-r));const o=new Gv(e,r,MT);return o.assertValidity(),o}function kT(...e){return Au(Er(Kh("BIP0340/challenge",...e)))}function BT(e,t,n){const r=tr("signature",e,64),o=tr("message",t),i=tr("publicKey",n,32);try{const s=PT(Er(i)),a=Er(r.subarray(0,32));if(!FT(a))return!1;const c=Er(r.subarray(32,64));if(!(e=>"bigint"==typeof e&&WhGv.BASE.multiplyAndAddUnsafe(e,t,n))(s,c,Au(-l));return!(!u||!u.hasEvenY()||u.toAffine().x!==a)}catch{return!1}}const Su={getPublicKey:function L$(e){return Wv(e).bytes},sign:function V$(e,t,n=mT(32)){const r=tr("message",e),{bytes:o,scalar:i}=Wv(t),s=tr("auxRand",n,32),a=$v(i^Er(Kh("BIP0340/aux",s))),c=Kh("BIP0340/nonce",a,o,r),l=Au(Er(c));if(l===Wh)throw new Error("sign failed: k is zero");const{bytes:u,scalar:d}=Wv(l),g=kT(u,o,r),v=new Uint8Array(64);if(v.set(u,0),v.set($v(Au(d+g*i)),32),!BT(v,r,o))throw new Error("sign: Invalid signature produced");return v},verify:BT,utils:{randomPrivateKey:xc.utils.randomPrivateKey,lift_x:PT,pointToBytes:jv,numberToBytesBE:Ji,bytesToNumberBE:Er,taggedHash:Kh,mod:Nn}},Kv="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,qv=e=>e instanceof Uint8Array,Qv=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),qh=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),Uo=(e,t)=>e<<32-t|e>>>t;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const U$=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function br(e){if(!qv(e))throw new Error("Uint8Array expected");let t="";for(let n=0;nr+o.length,0));let n=0;return e.forEach(r=>{if(!qv(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}class VT{clone(){return this._cloneInto()}}const j$=e=>"[object Object]"===Object.prototype.toString.call(e)&&e.constructor===Object;function UT(e,t){if(void 0!==t&&("object"!=typeof t||!j$(t)))throw new Error("Options should be object or undefined");return Object.assign(e,t)}function HT(e){const t=r=>e().update(vi(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Qh(e=32){if(Kv&&"function"==typeof Kv.getRandomValues)return Kv.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}function Yv(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function jT(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}const wn={number:Yv,bool:function $$(e){if("boolean"!=typeof e)throw new Error(`Expected boolean, not ${e}`)},bytes:jT,hash:function z$(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Yv(e.outputLen),Yv(e.blockLen)},exists:function G$(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},output:function W$(e,t){jT(e);const n=t.outputLen;if(e.lengtho-s&&(this.process(r,0),s=0);for(let d=s;d>o&i),a=Number(n&i),l=r?0:4;e.setUint32(t+(r?4:0),s,r),e.setUint32(t+l,a,r)})(r,o-8,BigInt(8*this.length),i),this.process(r,0);const a=qh(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,u=this.get();if(l>u.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;de&t^~e&n,Z$=(e,t,n)=>e&t^e&n^t&n,Y$=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ns=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),rs=new Uint32Array(64);class $T extends q${constructor(){super(64,32,8,!1),this.A=0|ns[0],this.B=0|ns[1],this.C=0|ns[2],this.D=0|ns[3],this.E=0|ns[4],this.F=0|ns[5],this.G=0|ns[6],this.H=0|ns[7]}get(){const{A:t,B:n,C:r,D:o,E:i,F:s,G:a,H:c}=this;return[t,n,r,o,i,s,a,c]}set(t,n,r,o,i,s,a,c){this.A=0|t,this.B=0|n,this.C=0|r,this.D=0|o,this.E=0|i,this.F=0|s,this.G=0|a,this.H=0|c}process(t,n){for(let d=0;d<16;d++,n+=4)rs[d]=t.getUint32(n,!1);for(let d=16;d<64;d++){const g=rs[d-15],v=rs[d-2],E=Uo(g,7)^Uo(g,18)^g>>>3,A=Uo(v,17)^Uo(v,19)^v>>>10;rs[d]=A+rs[d-7]+E+rs[d-16]|0}let{A:r,B:o,C:i,D:s,E:a,F:c,G:l,H:u}=this;for(let d=0;d<64;d++){const v=u+(Uo(a,6)^Uo(a,11)^Uo(a,25))+Q$(a,c,l)+Y$[d]+rs[d]|0,A=(Uo(r,2)^Uo(r,13)^Uo(r,22))+Z$(r,o,i)|0;u=l,l=c,c=a,a=s+v|0,s=i,i=o,o=r,r=v+A|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,s=s+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(r,o,i,s,a,c,l,u)}roundClean(){rs.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class X$ extends $T{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const Hs=HT(()=>new $T);function js(e){if(!Number.isSafeInteger(e))throw new Error(`Wrong integer: ${e}`)}function go(...e){const t=(o,i)=>s=>o(i(s));return{encode:Array.from(e).reverse().reduce((o,i)=>o?t(o,i.encode):i.encode,void 0),decode:e.reduce((o,i)=>o?t(o,i.decode):i.decode,void 0)}}function Ho(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("alphabet.encode input should be an array of numbers");return t.map(n=>{if(js(n),n<0||n>=e.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${e.length})`);return e[n]})},decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("alphabet.decode input should be array of strings");return t.map(n=>{if("string"!=typeof n)throw new Error(`alphabet.decode: not string element=${n}`);const r=e.indexOf(n);if(-1===r)throw new Error(`Unknown letter: "${n}". Allowed: ${e}`);return r})}}}function jo(e=""){if("string"!=typeof e)throw new Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("join.encode input should be array of strings");for(let n of t)if("string"!=typeof n)throw new Error(`join.encode: non-string input=${n}`);return t.join(e)},decode:t=>{if("string"!=typeof t)throw new Error("join.decode input should be string");return t.split(e)}}}function Tu(e,t="="){if(js(e),"string"!=typeof t)throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let r of n)if("string"!=typeof r)throw new Error(`padding.encode: non-string input=${r}`);for(;n.length*e%8;)n.push(t);return n},decode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let o of n)if("string"!=typeof o)throw new Error(`padding.decode: non-string input=${o}`);let r=n.length;if(r*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--)if(!((r-1)*e%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,r)}}}function zT(e){if("function"!=typeof e)throw new Error("normalize fn should be function");return{encode:t=>t,decode:t=>e(t)}}function GT(e,t,n){if(t<2)throw new Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: wrong to=${n}, base cannot be less than 2`);if(!Array.isArray(e))throw new Error("convertRadix: data should be array");if(!e.length)return[];let r=0;const o=[],i=Array.from(e);for(i.forEach(s=>{if(js(s),s<0||s>=t)throw new Error(`Wrong integer: ${s}`)});;){let s=0,a=!0;for(let c=r;cnew X$);const WT=(e,t)=>t?WT(t,e%t):e,Zh=(e,t)=>e+(t-WT(e,t));function Xv(e,t,n,r){if(!Array.isArray(e))throw new Error("convertRadix2: data should be array");if(t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(Zh(t,n)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${Zh(t,n)}`);let o=0,i=0;const s=2**n-1,a=[];for(const c of e){if(js(c),c>=2**t)throw new Error(`convertRadix2: invalid data word=${c} from=${t}`);if(o=o<32)throw new Error(`convertRadix2: carry overflow pos=${i} from=${t}`);for(i+=t;i>=n;i-=n)a.push((o>>i-n&s)>>>0);o&=2**i-1}if(o=o<=t)throw new Error("Excess padding");if(!r&&o)throw new Error(`Non-zero padding: ${o}`);return r&&i>0&&a.push(o>>>0),a}function wi(e,t=!1){if(js(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(Zh(8,e)>32||Zh(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!(n instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return Xv(Array.from(n),8,e,!t)},decode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(Xv(n,e,8,t))}}}function qT(e){if("function"!=typeof e)throw new Error("unsafeWrapper fn should be function");return function(...t){try{return e.apply(null,t)}catch{}}}go(wi(4),Ho("0123456789ABCDEF"),jo("")),go(wi(5),Ho("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),Tu(5),jo(""));const _i=(go(wi(5),Ho("0123456789ABCDEFGHIJKLMNOPQRSTUV"),Tu(5),jo("")),go(wi(5),Ho("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),jo(""),zT(e=>e.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),go(wi(6),Ho("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),Tu(6),jo(""))),Jv=(go(wi(6),Ho("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),Tu(6),jo("")),e=>go(function KT(e){return js(e),{encode:t=>{if(!(t instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return GT(Array.from(t),256,e)},decode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(GT(t,e,256))}}}(58),Ho(e),jo(""))),e1=(Jv("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),Jv("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),Jv("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),go(Ho("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),jo(""))),YT=[996825010,642813549,513874426,1027748829,705979059];function Mu(e){const t=e>>25;let n=(33554431&e)<<5;for(let r=0;r>r&1)&&(n^=YT[r]);return n}function XT(e,t,n=1){const r=e.length;let o=1;for(let i=0;i126)throw new Error(`Invalid prefix (${e})`);o=Mu(o)^s>>5}o=Mu(o);for(let i=0;id)throw new TypeError(`Wrong string length: ${u.length} (${u}). Expected (8..${d})`);const g=u.toLowerCase();if(u!==g&&u!==u.toUpperCase())throw new Error("String must be lowercase or uppercase");const v=(u=g).lastIndexOf("1");if(0===v||-1===v)throw new Error('Letter "1" must be present between prefix and data only');const E=u.slice(0,v),A=u.slice(v+1);if(A.length<6)throw new Error("Data must be at least 6 characters long");const U=e1.decode(A).slice(0,-6),q=XT(E,U,t);if(!A.endsWith(q))throw new Error(`Invalid checksum in ${u}: expected "${q}"`);return{prefix:E,words:U}}return{encode:function s(u,d,g=90){if("string"!=typeof u)throw new Error("bech32.encode prefix should be string, not "+typeof u);if(!Array.isArray(d)||d.length&&"number"!=typeof d[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof d);const v=u.length+7+d.length;if(!1!==g&&v>g)throw new TypeError(`Length ${v} exceeds limit ${g}`);return`${u=u.toLowerCase()}1${e1.encode(d)}${XT(u,d,t)}`},decode:a,decodeToBytes:function l(u){const{prefix:d,words:g}=a(u,!1);return{prefix:d,words:g,bytes:r(g)}},decodeUnsafe:qT(a),fromWords:r,fromWordsUnsafe:i,toWords:o}}const $o=JT("bech32");function Dc(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function t1(e){if("boolean"!=typeof e)throw new Error(`boolean expected, not ${e}`)}function tM(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function bt(e,...t){if(!tM(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function $s(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Jh(e,t){bt(e);const n=t.outputLen;if(e.length{if("string"!=typeof e||e.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()}));const wt=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),Ac=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function o1(e){if("string"!=typeof e)throw new Error("string expected, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function os(e){if("string"==typeof e)e=o1(e);else{if(!tM(e))throw new Error("Uint8Array expected, got "+typeof e);e=e.slice()}return e}function e0(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r(Object.assign(t,e),t);function zs(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);const o=BigInt(32),i=BigInt(4294967295),s=Number(n>>o&i),a=Number(n&i),l=r?0:4;e.setUint32(t+(r?4:0),s,r),e.setUint32(t+l,a,r)}const i1=new Uint8Array(16),zo=wt(i1),hz=(e,t,n,r)=>({s3:n<<31|r>>>1,s2:t<<31|n>>>1,s1:e<<31|t>>>1,s0:e>>>1^225<<24&-(1&r)}),Zr=e=>(e>>>0&255)<<24|(e>>>8&255)<<16|(e>>>16&255)<<8|e>>>24&255|0;class rM{constructor(t,n){this.blockLen=16,this.outputLen=16,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,bt(t=os(t),16);const r=Ac(t);let o=r.getUint32(0,!1),i=r.getUint32(4,!1),s=r.getUint32(8,!1),a=r.getUint32(12,!1);const c=[];for(let E=0;E<128;E++)c.push({s0:Zr(o),s1:Zr(i),s2:Zr(s),s3:Zr(a)}),({s0:o,s1:i,s2:s,s3:a}=hz(o,i,s,a));const l=(e=n||1024)>65536?8:e>1024?4:2;var e;if(![1,2,4,8].includes(l))throw new Error(`ghash: wrong window size=${l}, should be 2, 4 or 8`);this.W=l;const d=128/l,g=this.windowSize=2**l,v=[];for(let E=0;E>>l-le-1&1))continue;const{s0:_e,s1:Ne,s2:Oe,s3:Ke}=c[l*E+le];U^=_e,q^=Ne,K^=Oe,se^=Ke}v.push({s0:U,s1:q,s2:K,s3:se})}this.t=v}_updateBlock(t,n,r,o){t^=this.s0,n^=this.s1,r^=this.s2,o^=this.s3;const{W:i,t:s,windowSize:a}=this;let c=0,l=0,u=0,d=0;const g=(1<>>8*A&255;for(let q=8/i-1;q>=0;q--){const K=U>>>i*q&g,{s0:se,s1:le,s2:ge,s3:_e}=s[v*a+K];c^=se,l^=le,u^=ge,d^=_e,v+=1}}this.s0=c,this.s1=l,this.s2=u,this.s3=d}update(t){t=os(t),$s(this);const n=wt(t),r=Math.floor(t.length/16),o=t.length%16;for(let i=0;i>>1|n,n=(1&o)<<7}return e[0]^=225&-t,e}((t=os(t)).slice());super(r,n),r.fill(0)}update(t){t=os(t),$s(this);const n=wt(t),r=t.length%16,o=Math.floor(t.length/16);for(let i=0;ie(o,r.length).update(os(r)).digest(),n=e(new Uint8Array(16),0);return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=(r,o)=>e(r,o),t}oM((e,t)=>new rM(e,t)),oM((e,t)=>new mz(e,t)),new Uint8Array(16);const vz=283;function a1(e){return e<<1^vz&-(e>>7)}function Sc(e,t){let n=0;for(;t>0;t>>=1)n^=e&-(1&t),e=a1(e);return n}const c1=(()=>{let e=new Uint8Array(256);for(let n=0,r=1;n<256;n++,r^=a1(r))e[n]=r;const t=new Uint8Array(256);t[0]=99;for(let n=0;n<255;n++){let r=e[255-n];r|=r<<8,t[e[n]]=255&(r^r>>4^r>>5^r>>6^r>>7^99)}return t})(),wz=c1.map((e,t)=>c1.indexOf(t)),_z=e=>e<<24|e>>>8,l1=e=>e<<8|e>>>24;function sM(e,t){if(256!==e.length)throw new Error("Wrong sbox length");const n=new Uint32Array(256).map((l,u)=>t(e[u])),r=n.map(l1),o=r.map(l1),i=o.map(l1),s=new Uint32Array(65536),a=new Uint32Array(65536),c=new Uint16Array(65536);for(let l=0;l<256;l++)for(let u=0;u<256;u++){const d=256*l+u;s[d]=n[l]^r[u],a[d]=o[l]^i[u],c[d]=e[l]<<8|e[u]}return{sbox:e,sbox2:c,T0:n,T1:r,T2:o,T3:i,T01:s,T23:a}}const u1=sM(c1,e=>Sc(e,3)<<24|e<<16|e<<8|Sc(e,2)),aM=sM(wz,e=>Sc(e,11)<<24|Sc(e,13)<<16|Sc(e,9)<<8|Sc(e,14)),Ez=(()=>{const e=new Uint8Array(16);for(let t=0,n=1;t<16;t++,n=a1(n))e[t]=n;return e})();function xi(e){bt(e);const t=e.length;if(![16,24,32].includes(t))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${t}`);const{sbox2:n}=u1,r=wt(e),o=r.length,i=a=>Go(n,a,a,a,a),s=new Uint32Array(t+28);s.set(r);for(let a=o;a6&&a%o==4&&(c=i(c)),s[a]=s[a-o]^c}return s}function ss(e,t,n,r,o,i){return e[n<<8&65280|r>>>8&255]^t[o>>>8&65280|i>>>24&255]}function Go(e,t,n,r,o){return e[255&t|65280&n]|e[r>>>16&255|o>>>16&65280]<<16}function xr(e,t,n,r,o){const{sbox2:i,T01:s,T23:a}=u1;let c=0;t^=e[c++],n^=e[c++],r^=e[c++],o^=e[c++];const l=e.length/4-2;for(let E=0;E{const a=xi(t),{b:c,o:l,out:u}=function uM(e,t,n){let r=e.length;const o=r%16;if(!t&&0!==o)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");const i=wt(e);if(t){let c=16-o;c||(c=16),r+=c}const s=Ic(r,n);return{b:i,o:wt(s),out:s}}(i,o,s),d=wt(n);let g=d[0],v=d[1],E=d[2],A=d[3],U=0;for(;U+4<=c.length;)g^=c[U+0],v^=c[U+1],E^=c[U+2],A^=c[U+3],({s0:g,s1:v,s2:E,s3:A}=xr(a,g,v,E,A)),l[U++]=g,l[U++]=v,l[U++]=E,l[U++]=A;if(o){const q=function fM(e){const t=new Uint8Array(16),n=wt(t);t.set(e);const r=16-e.length;for(let o=16-r;o<16;o++)t[o]=r;return n}(i.subarray(4*U));g^=q[0],v^=q[1],E^=q[2],A^=q[3],({s0:g,s1:v,s2:E,s3:A}=xr(a,g,v,E,A)),l[U++]=g,l[U++]=v,l[U++]=E,l[U++]=A}return a.fill(0),u},decrypt:(i,s)=>{!function lM(e){if(bt(e),e.length%16!=0)throw new Error("aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size 16")}(i);const a=function d1(e){const t=xi(e),n=t.slice(),r=t.length,{sbox2:o}=u1,{T0:i,T1:s,T2:a,T3:c}=aM;for(let l=0;l>>8&255]^a[d>>>16&255]^c[d>>>24]}return n}(t),c=wt(n),l=Ic(i.length,s),u=wt(i),d=wt(l);let g=c[0],v=c[1],E=c[2],A=c[3];for(let U=0;U+4<=u.length;){const q=g,K=v,se=E,le=A;g=u[U+0],v=u[U+1],E=u[U+2],A=u[U+3];const{s0:ge,s1:_e,s2:Ne,s3:Oe}=n0(a,g,v,E,A);d[U++]=ge^q,d[U++]=_e^K,d[U++]=Ne^se,d[U++]=Oe^le}return a.fill(0),function dM(e,t){if(!t)return e;const n=e.length;if(!n)throw new Error("aes/pcks5: empty ciphertext not allowed");const r=e[n-1];if(r<=0||r>16)throw new Error(`aes/pcks5: wrong padding byte: ${r}`);const o=e.subarray(0,-r);for(let i=0;i255&e[t++]|(255&e[t++])<<8;class Cz{constructor(t){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,bt(t=os(t),32);const n=Vn(t,0),r=Vn(t,2),o=Vn(t,4),i=Vn(t,6),s=Vn(t,8),a=Vn(t,10),c=Vn(t,12),l=Vn(t,14);this.r[0]=8191&n,this.r[1]=8191&(n>>>13|r<<3),this.r[2]=7939&(r>>>10|o<<6),this.r[3]=8191&(o>>>7|i<<9),this.r[4]=255&(i>>>4|s<<12),this.r[5]=s>>>1&8190,this.r[6]=8191&(s>>>14|a<<2),this.r[7]=8065&(a>>>11|c<<5),this.r[8]=8191&(c>>>8|l<<8),this.r[9]=l>>>5&127;for(let u=0;u<8;u++)this.pad[u]=Vn(t,16+2*u)}process(t,n,r=!1){const o=r?0:2048,{h:i,r:s}=this,a=s[0],c=s[1],l=s[2],u=s[3],d=s[4],g=s[5],v=s[6],E=s[7],A=s[8],U=s[9],q=Vn(t,n+0),K=Vn(t,n+2),se=Vn(t,n+4),le=Vn(t,n+6),ge=Vn(t,n+8),_e=Vn(t,n+10),Ne=Vn(t,n+12),Oe=Vn(t,n+14);let Ke=i[0]+(8191&q),$e=i[1]+(8191&(q>>>13|K<<3)),ze=i[2]+(8191&(K>>>10|se<<6)),Ze=i[3]+(8191&(se>>>7|le<<9)),Je=i[4]+(8191&(le>>>4|ge<<12)),ft=i[5]+(ge>>>1&8191),De=i[6]+(8191&(ge>>>14|_e<<2)),ue=i[7]+(8191&(_e>>>11|Ne<<5)),ve=i[8]+(8191&(Ne>>>8|Oe<<8)),Ie=i[9]+(Oe>>>5|o),we=0,He=we+Ke*a+$e*(5*U)+ze*(5*A)+Ze*(5*E)+Je*(5*v);we=He>>>13,He&=8191,He+=ft*(5*g)+De*(5*d)+ue*(5*u)+ve*(5*l)+Ie*(5*c),we+=He>>>13,He&=8191;let Ye=we+Ke*c+$e*a+ze*(5*U)+Ze*(5*A)+Je*(5*E);we=Ye>>>13,Ye&=8191,Ye+=ft*(5*v)+De*(5*g)+ue*(5*d)+ve*(5*u)+Ie*(5*l),we+=Ye>>>13,Ye&=8191;let Xe=we+Ke*l+$e*c+ze*a+Ze*(5*U)+Je*(5*A);we=Xe>>>13,Xe&=8191,Xe+=ft*(5*E)+De*(5*v)+ue*(5*g)+ve*(5*d)+Ie*(5*u),we+=Xe>>>13,Xe&=8191;let zt=we+Ke*u+$e*l+ze*c+Ze*a+Je*(5*U);we=zt>>>13,zt&=8191,zt+=ft*(5*A)+De*(5*E)+ue*(5*v)+ve*(5*g)+Ie*(5*d),we+=zt>>>13,zt&=8191;let vt=we+Ke*d+$e*u+ze*l+Ze*c+Je*a;we=vt>>>13,vt&=8191,vt+=ft*(5*U)+De*(5*A)+ue*(5*E)+ve*(5*v)+Ie*(5*g),we+=vt>>>13,vt&=8191;let nr=we+Ke*g+$e*d+ze*u+Ze*l+Je*c;we=nr>>>13,nr&=8191,nr+=ft*a+De*(5*U)+ue*(5*A)+ve*(5*E)+Ie*(5*v),we+=nr>>>13,nr&=8191;let Cr=we+Ke*v+$e*g+ze*d+Ze*u+Je*l;we=Cr>>>13,Cr&=8191,Cr+=ft*c+De*a+ue*(5*U)+ve*(5*A)+Ie*(5*E),we+=Cr>>>13,Cr&=8191;let Tt=we+Ke*E+$e*v+ze*g+Ze*d+Je*u;we=Tt>>>13,Tt&=8191,Tt+=ft*l+De*c+ue*a+ve*(5*U)+Ie*(5*A),we+=Tt>>>13,Tt&=8191;let kn=we+Ke*A+$e*E+ze*v+Ze*g+Je*d;we=kn>>>13,kn&=8191,kn+=ft*u+De*l+ue*c+ve*a+Ie*(5*U),we+=kn>>>13,kn&=8191;let Gt=we+Ke*U+$e*A+ze*E+Ze*v+Je*g;we=Gt>>>13,Gt&=8191,Gt+=ft*d+De*u+ue*l+ve*c+Ie*a,we+=Gt>>>13,Gt&=8191,we=(we<<2)+we|0,we=we+He|0,He=8191&we,we>>>=13,Ye+=we,i[0]=He,i[1]=Ye,i[2]=Xe,i[3]=zt,i[4]=vt,i[5]=nr,i[6]=Cr,i[7]=Tt,i[8]=kn,i[9]=Gt}finalize(){const{h:t,pad:n}=this,r=new Uint16Array(10);let o=t[1]>>>13;t[1]&=8191;for(let a=2;a<10;a++)t[a]+=o,o=t[a]>>>13,t[a]&=8191;t[0]+=5*o,o=t[0]>>>13,t[0]&=8191,t[1]+=o,o=t[1]>>>13,t[1]&=8191,t[2]+=o,r[0]=t[0]+5,o=r[0]>>>13,r[0]&=8191;for(let a=1;a<10;a++)r[a]=t[a]+o,o=r[a]>>>13,r[a]&=8191;r[9]-=8192;let i=(1^o)-1;for(let a=0;a<10;a++)r[a]&=i;i=~i;for(let a=0;a<10;a++)t[a]=t[a]&i|r[a];t[0]=65535&(t[0]|t[1]<<13),t[1]=65535&(t[1]>>>3|t[2]<<10),t[2]=65535&(t[2]>>>6|t[3]<<7),t[3]=65535&(t[3]>>>9|t[4]<<4),t[4]=65535&(t[4]>>>12|t[5]<<1|t[6]<<14),t[5]=65535&(t[6]>>>2|t[7]<<11),t[6]=65535&(t[7]>>>5|t[8]<<8),t[7]=65535&(t[8]>>>8|t[9]<<5);let s=t[0]+n[0];t[0]=65535&s;for(let a=1;a<8;a++)s=(t[a]+n[a]|0)+(s>>>16)|0,t[a]=65535&s}update(t){$s(this);const{buffer:n,blockLen:r}=this,o=(t=os(t)).length;for(let i=0;i>>0,t[i++]=r[s]>>>8;return t}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}}const Az=function Dz(e){const t=(r,o)=>e(o).update(os(r)).digest(),n=e(new Uint8Array(32));return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}(e=>new Cz(e)),Sz=o1("expand 16-byte k"),Iz=o1("expand 32-byte k"),Tz=wt(Sz),Mz=wt(Iz);function Ge(e,t){return e<>>32-t}function f1(e){return e.byteOffset%4==0}const mM=2**32-1,yM=new Uint32Array;function Nu(e,t){const{allowShortKeys:n,extendNonceFn:r,counterLength:o,counterRight:i,rounds:s}=function dz(e,t){if(null==t||"object"!=typeof t)throw new Error("options must be defined");return Object.assign(e,t)}({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},t);if("function"!=typeof e)throw new Error("core must be a function");return Dc(o),Dc(s),t1(i),t1(n),(a,c,l,u,d=0)=>{bt(a),bt(c),bt(l);const g=l.length;if(u||(u=new Uint8Array(g)),bt(u),Dc(d),d<0||d>=mM)throw new Error("arx: counter overflow");if(u.length=mM)throw new Error("arx: counter overflow");const A=Math.min(64,c-E);if(d&&64===A){const U=E/4;if(E%4!=0)throw new Error("arx: invalid block position");for(let K,q=0;q<16;q++)K=U+q,v[K]=g[K]^u[q];E+=64}else{for(let q,U=0;U0;)v.pop().fill(0);return u}}function Ru(e,t,n,r,o,i=20){let s=e[0],a=e[1],c=e[2],l=e[3],u=t[0],d=t[1],g=t[2],v=t[3],E=t[4],A=t[5],U=t[6],q=t[7],K=o,se=n[0],le=n[1],ge=n[2],_e=s,Ne=a,Oe=c,Ke=l,$e=u,ze=d,Ze=g,Je=v,ft=E,De=A,ue=U,ve=q,Ie=K,we=se,He=le,Ye=ge;for(let zt=0;zt{e.update(t);const n=t.length%16;n&&e.update(Pz.subarray(n))},kz=new Uint8Array(32);function wM(e,t,n,r,o){const i=e(t,n,kz),s=Az.create(i);o&&vM(s,o),vM(s,r);const a=new Uint8Array(16),c=Ac(a);zs(c,0,BigInt(o?o.length:0),!0),zs(c,8,BigInt(r.length),!0),s.update(a);const l=s.digest();return i.fill(0),l}const _M=e=>(t,n,r)=>(bt(t,32),bt(n),{encrypt:(i,s)=>{const a=i.length,c=a+16;s?bt(s,c):s=new Uint8Array(c),e(t,n,i,s,1);const l=wM(e,t,n,s.subarray(0,-16),r);return s.set(l,a),s},decrypt:(i,s)=>{const a=i.length,c=a-16;if(a<16)throw new Error("encrypted data must be at least 16 bytes");s?bt(s,c):s=new Uint8Array(c);const l=i.subarray(0,-16);if(!e0(i.subarray(-16),wM(e,t,n,l,r)))throw new Error("invalid tag");return e(t,n,l,s,1),s}}),EM=(_M(h1),is({blockSize:64,nonceLength:24,tagLength:16},_M(Oz)));class bM extends VT{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,wn.hash(t);const r=vi(n);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,i=new Uint8Array(o);i.set(r.length>o?t.create().update(r).digest():r);for(let s=0;snew bM(e,t).update(n).digest();Fu.create=(e,t)=>new bM(e,t);const p1=new Uint8Array([0]),CM=new Uint8Array;var Bz=Object.defineProperty,mn=(e,t)=>{for(var n in t)Bz(e,n,{get:t[n],enumerable:!0})},Gs=Symbol("verified"),Lz=e=>e instanceof Object;function AM(e){if(!Lz(e)||"number"!=typeof e.kind||"string"!=typeof e.content||"number"!=typeof e.created_at||"string"!=typeof e.pubkey||!e.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(e.tags))return!1;for(let t=0;tIM,QueueNode:()=>SM,binarySearch:()=>g1,insertEventIntoAscendingList:()=>Hz,insertEventIntoDescendingList:()=>Uz,normalizeURL:()=>Mc,utf8Decoder:()=>Ci,utf8Encoder:()=>Wo});var Ci=new TextDecoder("utf-8"),Wo=new TextEncoder;function Mc(e){-1===e.indexOf("://")&&(e="wss://"+e);let t=new URL(e);return t.pathname=t.pathname.replace(/\/+/g,"/"),t.pathname.endsWith("/")&&(t.pathname=t.pathname.slice(0,-1)),("80"===t.port&&"ws:"===t.protocol||"443"===t.port&&"wss:"===t.protocol)&&(t.port=""),t.searchParams.sort(),t.hash="",t.toString()}function Uz(e,t){const[n,r]=g1(e,o=>t.id===o.id?0:t.created_at===o.created_at?-1:o.created_at-t.created_at);return r||e.splice(n,0,t),e}function Hz(e,t){const[n,r]=g1(e,o=>t.id===o.id?0:t.created_at===o.created_at?-1:t.created_at-o.created_at);return r||e.splice(n,0,t),e}function g1(e,t){let n=0,r=e.length-1;for(;n<=r;){const o=Math.floor((n+r)/2),i=t(e[o]);if(0===i)return[o,!0];i<0?r=o-1:n=o+1}return[n,!1]}var SM=class{value;next=null;prev=null;constructor(e){this.value=e}},IM=class{first;last;constructor(){this.first=null,this.last=null}enqueue(e){const t=new SM(e);return this.last?this.last===this.first?(this.last=t,this.last.prev=this.first,this.first.next=t):(t.prev=this.last,this.last.next=t,this.last=t):(this.first=t,this.last=t),!0}dequeue(){if(!this.first)return null;if(this.first===this.last){const t=this.first;return this.first=null,this.last=null,t.value}const e=this.first;return this.first=e.next,e.value}};function s0(e){let t=Hs(Wo.encode(function $z(e){if(!AM(e))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,e.pubkey,e.created_at,e.kind,e.tags,e.content])}(e)));return br(t)}var a0=new class{generateSecretKey(){return Su.utils.randomPrivateKey()}getPublicKey(e){return br(Su.getPublicKey(e))}finalizeEvent(e,t){const n=e;return n.pubkey=br(Su.getPublicKey(t)),n.id=s0(n),n.sig=br(Su.sign(s0(n),t)),n[Gs]=!0,n}verifyEvent(e){if("boolean"==typeof e[Gs])return e[Gs];const t=s0(e);if(t!==e.id)return e[Gs]=!1,!1;try{const n=Su.verify(e.sig,t,e.pubkey);return e[Gs]=n,n}catch{return e[Gs]=!1,!1}}},as=a0.finalizeEvent,Ou=a0.verifyEvent;function TM(e){return 1e3<=e&&e<1e4||[1,2,4,5,6,7,8,16,40,41,42,43,44].includes(e)}function m1(e){return[0,3].includes(e)||1e4<=e&&e<2e4}function MM(e){return 2e4<=e&&e<3e4}function NM(e){return 3e4<=e&&e<4e4}function Gz(e){return TM(e)?"regular":m1(e)?"replaceable":MM(e)?"ephemeral":NM(e)?"parameterized":"unknown"}mn({},{Application:()=>zG,BadgeAward:()=>Jz,BadgeDefinition:()=>BG,BlockedRelaysList:()=>bG,BookmarkList:()=>wG,Bookmarksets:()=>OG,Calendar:()=>YG,CalendarEventRSVP:()=>XG,ChannelCreation:()=>RM,ChannelHideMessage:()=>PM,ChannelMessage:()=>OM,ChannelMetadata:()=>FM,ChannelMuteUser:()=>kM,ClassifiedListing:()=>KG,ClientAuth:()=>BM,CommunitiesList:()=>_G,CommunityDefinition:()=>tW,CommunityPostApproval:()=>cG,Contacts:()=>Qz,CreateOrUpdateProduct:()=>UG,CreateOrUpdateStall:()=>VG,Curationsets:()=>PG,Date:()=>QG,DraftClassifiedListing:()=>qG,DraftLong:()=>jG,Emojisets:()=>$G,EncryptedDirectMessage:()=>Zz,EncryptedDirectMessages:()=>Yz,EventDeletion:()=>Xz,FileMetadata:()=>nG,FileServerPreference:()=>AG,Followsets:()=>NG,GenericRepost:()=>eG,Genericlists:()=>RG,HTTPAuth:()=>w1,Handlerinformation:()=>eW,Handlerrecommendation:()=>JG,Highlights:()=>gG,InterestsList:()=>CG,Interestsets:()=>LG,JobFeedback:()=>dG,JobRequest:()=>lG,JobResult:()=>uG,Label:()=>aG,LightningPubRPC:()=>IG,LiveChatMessage:()=>rG,LiveEvent:()=>GG,LongFormArticle:()=>HG,Metadata:()=>Wz,Mutelist:()=>mG,NWCWalletInfo:()=>SG,NWCWalletRequest:()=>LM,NWCWalletResponse:()=>TG,NostrConnect:()=>MG,OpenTimestamps:()=>tG,Pinlist:()=>yG,ProblemTracker:()=>oG,ProfileBadges:()=>kG,PublicChatsList:()=>EG,Reaction:()=>v1,RecommendRelay:()=>qz,RelayList:()=>vG,Relaysets:()=>FG,Report:()=>iG,Reporting:()=>sG,Repost:()=>y1,SearchRelaysList:()=>xG,ShortTextNote:()=>Kz,Time:()=>ZG,UserEmojiList:()=>DG,UserStatuses:()=>WG,Zap:()=>pG,ZapGoal:()=>fG,ZapRequest:()=>hG,classifyKind:()=>Gz,isEphemeralKind:()=>MM,isParameterizedReplaceableKind:()=>NM,isRegularKind:()=>TM,isReplaceableKind:()=>m1});var Wz=0,Kz=1,qz=2,Qz=3,Zz=4,Yz=4,Xz=5,y1=6,v1=7,Jz=8,eG=16,RM=40,FM=41,OM=42,PM=43,kM=44,tG=1040,nG=1063,rG=1311,oG=1971,iG=1984,sG=1984,aG=1985,cG=4550,lG=5999,uG=6999,dG=7e3,fG=9041,hG=9734,pG=9735,gG=9802,mG=1e4,yG=10001,vG=10002,wG=10003,_G=10004,EG=10005,bG=10006,xG=10007,CG=10015,DG=10030,AG=10096,SG=13194,IG=21e3,BM=22242,LM=23194,TG=23195,MG=24133,w1=27235,NG=3e4,RG=30001,FG=30002,OG=30003,PG=30004,kG=30008,BG=30009,LG=30015,VG=30017,UG=30018,HG=30023,jG=30024,$G=30030,zG=30078,GG=30311,WG=30315,KG=30402,qG=30403,QG=31922,ZG=31923,YG=31924,XG=31925,JG=31989,eW=31990,tW=34550;function c0(e,t){let n=t.length+3,r=e.indexOf(`"${t}":`)+n,o=e.slice(r).indexOf('"')+r+1;return e.slice(o,o+64)}function VM(e,t){let n=t.length,r=e.indexOf(`"${t}":`)+n+3,o=e.slice(r),i=Math.min(o.indexOf(","),o.indexOf("}"));return parseInt(o.slice(0,i),10)}function UM(e){let t=e.slice(0,22).indexOf('"EVENT"');if(-1===t)return null;let n=e.slice(t+7+1).indexOf('"');if(-1===n)return null;let r=t+7+1+n,o=e.slice(r+1,80).indexOf('"');return-1===o?null:e.slice(r+1,r+1+o)}function iW(e,t){return t===c0(e,"id")}function sW(e,t){return t===c0(e,"pubkey")}function aW(e,t){return t===VM(e,"kind")}function HM(e,t){return{kind:BM,created_at:Math.floor(Date.now()/1e3),tags:[["relay",e],["challenge",t]],content:""}}mn({},{getHex64:()=>c0,getInt:()=>VM,getSubscriptionId:()=>UM,matchEventId:()=>iW,matchEventKind:()=>aW,matchEventPubkey:()=>sW}),mn({},{makeAuthEvent:()=>HM});try{WebSocket}catch{}var l0={};mn(l0,{BECH32_REGEX:()=>$M,Bech32MaxSize:()=>x1,decode:()=>Pu,encodeBytes:()=>d0,naddrEncode:()=>wW,neventEncode:()=>vW,noteEncode:()=>mW,nprofileEncode:()=>yW,npubEncode:()=>gW,nrelayEncode:()=>_W,nsecEncode:()=>pW});var x1=5e3,$M=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function Pu(e){let{prefix:t,words:n}=$o.decode(e,x1),r=new Uint8Array($o.fromWords(n));switch(t){case"nprofile":{let o=u0(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==o[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:br(o[0][0]),relays:o[1]?o[1].map(i=>Ci.decode(i)):[]}}}case"nevent":{let o=u0(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==o[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(o[2]&&32!==o[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(o[3]&&4!==o[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:br(o[0][0]),relays:o[1]?o[1].map(i=>Ci.decode(i)):[],author:o[2]?.[0]?br(o[2][0]):void 0,kind:o[3]?.[0]?parseInt(br(o[3][0]),16):void 0}}}case"naddr":{let o=u0(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!o[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==o[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!o[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==o[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:Ci.decode(o[0][0]),pubkey:br(o[2][0]),kind:parseInt(br(o[3][0]),16),relays:o[1]?o[1].map(i=>Ci.decode(i)):[]}}}case"nrelay":{let o=u0(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for nrelay");return{type:"nrelay",data:Ci.decode(o[0][0])}}case"nsec":return{type:t,data:r};case"npub":case"note":return{type:t,data:br(r)};default:throw new Error(`unknown prefix ${t}`)}}function u0(e){let t={},n=e;for(;n.length>0;){let r=n[0],o=n[1],i=n.slice(2,2+o);if(n=n.slice(2+o),i.lengthWo.encode(n))}))}function vW(e){let t;return void 0!==e.kind&&(t=function hW(e){const t=new Uint8Array(4);return t[0]=e>>24&255,t[1]=e>>16&255,t[2]=e>>8&255,t[3]=255&e,t}(e.kind)),ku("nevent",f0({0:[Cc(e.id)],1:(e.relays||[]).map(r=>Wo.encode(r)),2:e.author?[Cc(e.author)]:[],3:t?[new Uint8Array(t)]:[]}))}function wW(e){let t=new ArrayBuffer(4);return new DataView(t).setUint32(0,e.kind,!1),ku("naddr",f0({0:[Wo.encode(e.identifier)],1:(e.relays||[]).map(r=>Wo.encode(r)),2:[Cc(e.pubkey)],3:[new Uint8Array(t)]}))}function _W(e){return ku("nrelay",f0({0:[Wo.encode(e)]}))}function f0(e){let t=[];return Object.entries(e).reverse().forEach(([n,r])=>{r.forEach(o=>{let i=new Uint8Array(o.length+2);i.set([parseInt(n)],0),i.set([o.length],1),i.set(o,2),t.push(i)})}),Iu(...t)}function zM(e,t,n){return C1.apply(this,arguments)}function C1(){return(C1=(0,h.c)(function*(e,t,n){const r=e instanceof Uint8Array?br(e):e,i=GM(xc.getSharedSecret(r,"02"+t));let s=Uint8Array.from(Qh(16)),a=Wo.encode(n),c=hM(i,s).encrypt(a);return`${_i.encode(new Uint8Array(c))}?iv=${_i.encode(new Uint8Array(s.buffer))}`})).apply(this,arguments)}function xW(e,t,n){return D1.apply(this,arguments)}function D1(){return(D1=(0,h.c)(function*(e,t,n){const r=e instanceof Uint8Array?br(e):e;let[o,i]=n.split("?iv="),a=GM(xc.getSharedSecret(r,"02"+t)),c=_i.decode(i),l=_i.decode(o),u=hM(a,c).decrypt(l);return Ci.decode(u)})).apply(this,arguments)}function GM(e){return e.slice(1,33)}mn({},{decrypt:()=>xW,encrypt:()=>zM}),mn({},{NIP05_REGEX:()=>WM,isValid:()=>SW,queryProfile:()=>KM,searchDomain:()=>AW,useFetchImplementation:()=>DW});var h0,WM=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/;try{h0=fetch}catch{}function DW(e){h0=e}function AW(e){return A1.apply(this,arguments)}function A1(){return(A1=(0,h.c)(function*(e,t=""){try{const n=`https://${e}/.well-known/nostr.json?name=${t}`;return(yield(yield h0(n,{redirect:"error"})).json()).names}catch{return{}}})).apply(this,arguments)}function KM(e){return S1.apply(this,arguments)}function S1(){return(S1=(0,h.c)(function*(e){const t=e.match(WM);if(!t)return null;const[n,r="_",o]=t;try{const i=`https://${o}/.well-known/nostr.json?name=${r}`,s=yield(yield h0(i,{redirect:"error"})).json();let a=s.names[r];return a?{pubkey:a,relays:s.relays?.[a]}:null}catch{return null}})).apply(this,arguments)}function SW(e,t){return I1.apply(this,arguments)}function I1(){return(I1=(0,h.c)(function*(e,t){let n=yield KM(t);return!!n&&n.pubkey===e})).apply(this,arguments)}function TW(e){const t={reply:void 0,root:void 0,mentions:[],profiles:[]},n=[];for(const r of e.tags)"e"===r[0]&&r[1]&&n.push(r),"p"===r[0]&&r[1]&&t.profiles.push({pubkey:r[1],relays:r[2]?[r[2]]:[]});for(let r=0;rTW}),mn({},{fetchRelayInformation:()=>RW,useFetchImplementation:()=>NW});try{fetch}catch{}function NW(e){}function RW(e){return T1.apply(this,arguments)}function T1(){return(T1=(0,h.c)(function*(e){return yield(yield fetch(e.replace("ws://","http://").replace("wss://","https://"),{headers:{Accept:"application/nostr+json"}})).json()})).apply(this,arguments)}function QM(e){let t=0;for(let n=0;n=t)break}return r}function kW(e,t,n,r){return as({kind:y1,tags:[...e.tags??[],["e",t.id,n],["p",t.pubkey]],content:""===e.content?"":JSON.stringify(t),created_at:e.created_at},r)}function ZM(e){if(e.kind!==y1)return;let t,n;for(let r=e.tags.length-1;r>=0&&(void 0===t||void 0===n);r--){const o=e.tags[r];o.length>=2&&("e"===o[0]&&void 0===t?t=o:"p"===o[0]&&void 0===n&&(n=o))}return void 0!==t?{id:t[1],relays:[t[2],n?.[2]].filter(r=>"string"==typeof r),author:n?.[1]}:void 0}function BW(e,{skipVerification:t}={}){const n=ZM(e);if(void 0===n||""===e.content)return;let r;try{r=JSON.parse(e.content)}catch{return}return r.id===n.id&&(t||Ou(r))?r:void 0}mn({},{getPow:()=>QM,minePow:()=>OW}),mn({},{finishRepostEvent:()=>kW,getRepostedEvent:()=>BW,getRepostedEventPointer:()=>ZM}),mn({},{NOSTR_URI_REGEX:()=>p0,parse:()=>UW,test:()=>VW});var p0=new RegExp(`nostr:(${$M.source})`);function VW(e){return"string"==typeof e&&new RegExp(`^${p0.source}$`).test(e)}function UW(e){const t=e.match(new RegExp(`^${p0.source}$`));if(!t)throw new Error(`Invalid Nostr URI: ${e}`);return{uri:t[0],value:t[1],decoded:Pu(t[1])}}function jW(e,t,n){const r=t.tags.filter(o=>o.length>=2&&("e"===o[0]||"p"===o[0]));return as({...e,kind:v1,tags:[...e.tags??[],...r,["e",t.id],["p",t.pubkey]],content:e.content??"+"},n)}function $W(e){if(e.kind!==v1)return;let t,n;for(let r=e.tags.length-1;r>=0&&(void 0===t||void 0===n);r--){const o=e.tags[r];o.length>=2&&("e"===o[0]&&void 0===t?t=o:"p"===o[0]&&void 0===n&&(n=o))}return void 0!==t&&void 0!==n?{id:t[1],relays:[t[2],n[2]].filter(r=>void 0!==r),author:n[1]}:void 0}mn({},{finishReactionEvent:()=>jW,getReactedEventPointer:()=>$W}),mn({},{matchAll:()=>GW,regex:()=>M1,replaceAll:()=>WW});var M1=()=>new RegExp(`\\b${p0.source}\\b`,"g");function*GW(e){const t=e.matchAll(M1());for(const n of t)try{const[r,o]=n;yield{uri:r,value:o,decoded:Pu(o),start:n.index,end:n.index+r.length}}catch{}}function WW(e,t){return e.replaceAll(M1(),(n,r)=>t({uri:n,value:r,decoded:Pu(r)}))}mn({},{channelCreateEvent:()=>qW,channelHideMessageEvent:()=>YW,channelMessageEvent:()=>ZW,channelMetadataEvent:()=>QW,channelMuteUserEvent:()=>XW});var qW=(e,t)=>{let n;if("object"==typeof e.content)n=JSON.stringify(e.content);else{if("string"!=typeof e.content)return;n=e.content}return as({kind:RM,tags:[...e.tags??[]],content:n,created_at:e.created_at},t)},QW=(e,t)=>{let n;if("object"==typeof e.content)n=JSON.stringify(e.content);else{if("string"!=typeof e.content)return;n=e.content}return as({kind:FM,tags:[["e",e.channel_create_event_id],...e.tags??[]],content:n,created_at:e.created_at},t)},ZW=(e,t)=>{const n=[["e",e.channel_create_event_id,e.relay_url,"root"]];return e.reply_to_channel_message_event_id&&n.push(["e",e.reply_to_channel_message_event_id,e.relay_url,"reply"]),as({kind:OM,tags:[...n,...e.tags??[]],content:e.content,created_at:e.created_at},t)},YW=(e,t)=>{let n;if("object"==typeof e.content)n=JSON.stringify(e.content);else{if("string"!=typeof e.content)return;n=e.content}return as({kind:PM,tags:[["e",e.channel_message_event_id],...e.tags??[]],content:n,created_at:e.created_at},t)},XW=(e,t)=>{let n;if("object"==typeof e.content)n=JSON.stringify(e.content);else{if("string"!=typeof e.content)return;n=e.content}return as({kind:kM,tags:[["p",e.pubkey_to_mute],...e.tags??[]],content:n,created_at:e.created_at},t)};mn({},{EMOJI_SHORTCODE_REGEX:()=>YM,matchAll:()=>eK,regex:()=>N1,replaceAll:()=>tK});var R1,YM=/:(\w+):/,N1=()=>new RegExp(`\\B${YM.source}\\B`,"g");function*eK(e){const t=e.matchAll(N1());for(const n of t)try{const[r,o]=n;yield{shortcode:r,name:o,start:n.index,end:n.index+r.length}}catch{}}function tK(e,t){return e.replaceAll(N1(),(n,r)=>t({shortcode:n,name:r}))}mn({},{useFetchImplementation:()=>rK,validateGithub:()=>oK});try{R1=fetch}catch{}function rK(e){R1=e}function oK(e,t,n){return F1.apply(this,arguments)}function F1(){return(F1=(0,h.c)(function*(e,t,n){try{return(yield(yield R1(`https://gist.github.com/${t}/${n}/raw`)).text())===`Verifying that I control the following Nostr public key: ${e}`}catch{return!1}})).apply(this,arguments)}mn({},{default:()=>lK,v2:()=>XM});var P1,sK=new TextDecoder,Un={minPlaintextSize:1,maxPlaintextSize:65535,utf8Encode:LT,utf8Decode:e=>sK.decode(e),getConversationKey(e,t){const n=xc.getSharedSecret(e,"02"+t).subarray(1,33);return function xM(e,t,n){return wn.hash(e),void 0===n&&(n=new Uint8Array(e.outputLen)),Fu(e,vi(n),vi(t))}(Hs,n,"nip44-v2")},getMessageKeys(e,t){const n=function DM(e,t,n,r=32){if(wn.hash(e),wn.number(r),r>255*e.outputLen)throw new Error("Length should be <= 255*HashLen");const o=Math.ceil(r/e.outputLen);void 0===n&&(n=CM);const i=new Uint8Array(o*e.outputLen),s=Fu.create(e,t),a=s._cloneInto(),c=new Uint8Array(s.outputLen);for(let l=0;lUn.maxPlaintextSize)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");const t=new Uint8Array(2);return new DataView(t.buffer).setUint16(0,e,!1),t},pad(e){const t=Un.utf8Encode(e),n=t.length;return Iu(Un.writeU16BE(n),t,new Uint8Array(Un.calcPaddedLen(n)-n))},unpad(e){const t=new DataView(e.buffer).getUint16(0),n=e.subarray(2,2+t);if(tUn.maxPlaintextSize||n.length!==t||e.length!==2+Un.calcPaddedLen(t))throw new Error("invalid padding");return Un.utf8Decode(n)},hmacAad(e,t,n){if(32!==n.length)throw new Error("AAD associated data must be 32 bytes");const r=Iu(n,t);return Fu(Hs,e,r)},decodePayload(e){if("string"!=typeof e)throw new Error("payload must be a valid string");const t=e.length;if(t<132||t>87472)throw new Error("invalid payload length: "+t);if("#"===e[0])throw new Error("unknown encryption version");let n;try{n=_i.decode(e)}catch(i){throw new Error("invalid base64: "+i.message)}const r=n.length;if(r<99||r>65603)throw new Error("invalid data length: "+r);const o=n[0];if(2!==o)throw new Error("unknown encryption version "+o);return{nonce:n.subarray(1,33),ciphertext:n.subarray(33,-32),mac:n.subarray(-32)}}},XM={utils:Un,encrypt:function aK(e,t,n=Qh(32)){const{chacha_key:r,chacha_nonce:o,hmac_key:i}=Un.getMessageKeys(t,n),s=Un.pad(e),a=h1(r,o,s),c=Un.hmacAad(i,a,n);return _i.encode(Iu(new Uint8Array([2]),n,a,c))},decrypt:function cK(e,t){const{nonce:n,ciphertext:r,mac:o}=Un.decodePayload(e),{chacha_key:i,chacha_nonce:s,hmac_key:a}=Un.getMessageKeys(t,n);if(!e0(Un.hmacAad(a,r,n),o))throw new Error("invalid MAC");const l=h1(i,s,r);return Un.unpad(l)}},lK={v2:XM};function dK(e){const{pathname:t,searchParams:n}=new URL(e),r=t,o=n.get("relay"),i=n.get("secret");if(!r||!o||!i)throw new Error("invalid connection string");return{pubkey:r,relay:o,secret:i}}function fK(e,t,n){return O1.apply(this,arguments)}function O1(){return(O1=(0,h.c)(function*(e,t,n){const o=yield zM(t,e,JSON.stringify({method:"pay_invoice",params:{invoice:n}})),i={kind:LM,created_at:Math.round(Date.now()/1e3),content:o,tags:[["p",e]]};return as(i,t)})).apply(this,arguments)}mn({},{makeNwcRequestEvent:()=>fK,parseConnectionString:()=>dK}),mn({},{getZapEndpoint:()=>gK,makeZapReceipt:()=>vK,makeZapRequest:()=>mK,useFetchImplementation:()=>pK,validateZapRequest:()=>yK});try{P1=fetch}catch{}function pK(e){P1=e}function gK(e){return k1.apply(this,arguments)}function k1(){return(k1=(0,h.c)(function*(e){try{let t="",{lud06:n,lud16:r}=JSON.parse(e.content);if(n){let{words:s}=$o.decode(n,1e3),a=$o.fromWords(s);t=Ci.decode(a)}else{if(!r)return null;{let[s,a]=r.split("@");t=new URL(`/.well-known/lnurlp/${s}`,`https://${a}`).toString()}}let i=yield(yield P1(t)).json();if(i.allowsNostr&&i.nostrPubkey)return i.callback}catch{}return null})).apply(this,arguments)}function mK({profile:e,event:t,amount:n,relays:r,comment:o=""}){if(!n)throw new Error("amount not given");if(!e)throw new Error("profile not given");let i={kind:9734,created_at:Math.round(Date.now()/1e3),content:o,tags:[["p",e],["amount",n.toString()],["relays",...r]]};return t&&i.tags.push(["e",t]),i}function yK(e){let t;try{t=JSON.parse(e)}catch{return"Invalid zap request JSON."}if(!AM(t))return"Zap request is not a valid Nostr event.";if(!Ou(t))return"Invalid signature on zap request.";let n=t.tags.find(([i,s])=>"p"===i&&s);if(!n)return"Zap request doesn't have a 'p' tag.";if(!n[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let r=t.tags.find(([i,s])=>"e"===i&&s);return r&&!r[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":t.tags.find(([i,s])=>"relays"===i&&s)?null:"Zap request doesn't have a 'relays' tag."}function vK({zapRequest:e,preimage:t,bolt11:n,paidAt:r}){let o=JSON.parse(e),i=o.tags.filter(([a])=>"e"===a||"p"===a||"a"===a),s={kind:9735,created_at:Math.round(r.getTime()/1e3),content:"",tags:[...i,["P",o.pubkey],["bolt11",n],["description",e]]};return t&&s.tags.push(["preimage",t]),s}mn({},{getToken:()=>_K,hashPayload:()=>U1,unpackEventFromToken:()=>e8,validateEvent:()=>s8,validateEventKind:()=>n8,validateEventMethodTag:()=>o8,validateEventPayloadTag:()=>i8,validateEventTimestamp:()=>t8,validateEventUrlTag:()=>r8,validateToken:()=>EK});var JM="Nostr ";function _K(e,t,n){return B1.apply(this,arguments)}function B1(){return(B1=(0,h.c)(function*(e,t,n,r=!1,o){const i={kind:w1,tags:[["u",e],["method",t]],created_at:Math.round((new Date).getTime()/1e3),content:""};o&&i.tags.push(["payload",U1(o)]);const s=yield n(i);return(r?JM:"")+_i.encode(Wo.encode(JSON.stringify(s)))})).apply(this,arguments)}function EK(e,t,n){return L1.apply(this,arguments)}function L1(){return(L1=(0,h.c)(function*(e,t,n){const r=yield e8(e).catch(i=>{throw i});return yield s8(r,t,n).catch(i=>{throw i})})).apply(this,arguments)}function e8(e){return V1.apply(this,arguments)}function V1(){return(V1=(0,h.c)(function*(e){if(!e)throw new Error("Missing token");e=e.replace(JM,"");const t=Ci.decode(_i.decode(e));if(!t||0===t.length||!t.startsWith("{"))throw new Error("Invalid token");return JSON.parse(t)})).apply(this,arguments)}function t8(e){return!!e.created_at&&Math.round((new Date).getTime()/1e3)-e.created_at<60}function n8(e){return e.kind===w1}function r8(e,t){const n=e.tags.find(r=>"u"===r[0]);return!!n&&n.length>0&&n[1]===t}function o8(e,t){const n=e.tags.find(r=>"method"===r[0]);return!!n&&n.length>0&&n[1].toLowerCase()===t.toLowerCase()}function U1(e){return br(Hs(Wo.encode(JSON.stringify(e))))}function i8(e,t){const n=e.tags.find(o=>"payload"===o[0]);if(!n)return!1;const r=U1(t);return n.length>0&&n[1]===r}function s8(e,t,n,r){return H1.apply(this,arguments)}function H1(){return(H1=(0,h.c)(function*(e,t,n,r){if(!Ou(e))throw new Error("Invalid nostr event, signature invalid");if(!n8(e))throw new Error("Invalid nostr event, kind invalid");if(!t8(e))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!r8(e,t))throw new Error("Invalid nostr event, url tag invalid");if(!o8(e,n))throw new Error("Invalid nostr event, method tag invalid");if(r&&"object"==typeof r&&Object.keys(r).length>0&&!i8(e,r))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0})).apply(this,arguments)}function l8(e,t,n,r){const{c:o,dkLen:i,DK:s,PRF:a,PRFSalt:c}=function a8(e,t,n,r){wn.hash(e);const o=UT({dkLen:32,asyncTick:10},r),{c:i,dkLen:s,asyncTick:a}=o;if(wn.number(i),wn.number(s),wn.number(a),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const c=vi(t),l=vi(n),u=new Uint8Array(s),d=Fu.create(e,c),g=d._cloneInto().update(l);return{c:i,dkLen:s,asyncTick:a,DK:u,PRF:d,PRFSalt:g}}(e,t,n,r);let l;const u=new Uint8Array(4),d=qh(u),g=new Uint8Array(a.outputLen);for(let v=1,E=0;Ee<>>32-t;function u8(e,t,n,r,o,i){let s=e[t++]^n[r++],a=e[t++]^n[r++],c=e[t++]^n[r++],l=e[t++]^n[r++],u=e[t++]^n[r++],d=e[t++]^n[r++],g=e[t++]^n[r++],v=e[t++]^n[r++],E=e[t++]^n[r++],A=e[t++]^n[r++],U=e[t++]^n[r++],q=e[t++]^n[r++],K=e[t++]^n[r++],se=e[t++]^n[r++],le=e[t++]^n[r++],ge=e[t++]^n[r++],_e=s,Ne=a,Oe=c,Ke=l,$e=u,ze=d,Ze=g,Je=v,ft=E,De=A,ue=U,ve=q,Ie=K,we=se,He=le,Ye=ge;for(let Xe=0;Xe<8;Xe+=2)$e^=It(_e+Ie|0,7),ft^=It($e+_e|0,9),Ie^=It(ft+$e|0,13),_e^=It(Ie+ft|0,18),De^=It(ze+Ne|0,7),we^=It(De+ze|0,9),Ne^=It(we+De|0,13),ze^=It(Ne+we|0,18),He^=It(ue+Ze|0,7),Oe^=It(He+ue|0,9),Ze^=It(Oe+He|0,13),ue^=It(Ze+Oe|0,18),Ke^=It(Ye+ve|0,7),Je^=It(Ke+Ye|0,9),ve^=It(Je+Ke|0,13),Ye^=It(ve+Je|0,18),Ne^=It(_e+Ke|0,7),Oe^=It(Ne+_e|0,9),Ke^=It(Oe+Ne|0,13),_e^=It(Ke+Oe|0,18),Ze^=It(ze+$e|0,7),Je^=It(Ze+ze|0,9),$e^=It(Je+Ze|0,13),ze^=It($e+Je|0,18),ve^=It(ue+De|0,7),ft^=It(ve+ue|0,9),De^=It(ft+ve|0,13),ue^=It(De+ft|0,18),Ie^=It(Ye+He|0,7),we^=It(Ie+Ye|0,9),He^=It(we+Ie|0,13),Ye^=It(He+we|0,18);o[i++]=s+_e|0,o[i++]=a+Ne|0,o[i++]=c+Oe|0,o[i++]=l+Ke|0,o[i++]=u+$e|0,o[i++]=d+ze|0,o[i++]=g+Ze|0,o[i++]=v+Je|0,o[i++]=E+ft|0,o[i++]=A+De|0,o[i++]=U+ue|0,o[i++]=q+ve|0,o[i++]=K+Ie|0,o[i++]=se+we|0,o[i++]=le+He|0,o[i++]=ge+Ye|0}function Nc(e,t,n,r,o){let i=r+0,s=r+16*o;for(let a=0;a<16;a++)n[s+a]=e[t+16*(2*o-1)+a];for(let a=0;a0&&(s+=16),u8(n,i,e,t+=16,n,s)}function h8(e,t,n){const{N:r,r:o,p:i,dkLen:s,blockSize32:a,V:c,B32:l,B:u,tmp:d,blockMixCb:g}=function d8(e,t,n){const r=UT({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:o,r:i,p:s,dkLen:a,asyncTick:c,maxmem:l,onProgress:u}=r;if(wn.number(o),wn.number(i),wn.number(s),wn.number(a),wn.number(c),wn.number(l),void 0!==u&&"function"!=typeof u)throw new Error("progressCb should be function");const d=128*i,g=d/4;if(o<=1||o&o-1||o>=2**(d/8)||o>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(s<0||s>137438953440/d)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(a<0||a>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const v=d*(o+s);if(v>l)throw new Error(`Scrypt: parameters too large, ${v} (128 * r * (N + p)) > ${l} (maxmem)`);const E=l8(Hs,e,t,{c:1,dkLen:d*s}),A=Qv(E),U=Qv(new Uint8Array(d*o)),q=Qv(new Uint8Array(d));let K=()=>{};if(u){const se=2*o*s,le=Math.max(Math.floor(se/1e4),1);let ge=0;K=()=>{ge++,u&&(!(ge%le)||ge===se)&&u(ge/se)}}return{N:o,r:i,p:s,dkLen:a,blockSize32:g,V:U,B32:A,B:E,tmp:q,blockMixCb:K,asyncTick:c}}(e,t,n);for(let v=0;v{class e{match(n){return/^ncryptsec/.test(n)}encrypt(n,r){return function CK(e,t,n=16,r=2){let o=Qh(16),i=2**n,s=h8(t.normalize("NFKC"),o,{N:i,r:8,p:1,dkLen:32}),a=Qh(24),c=Uint8Array.from([r]),u=EM(s,a,c).encrypt(e);return function xK(e,t){return function bK(e,t){let n=$o.toWords(t);return $o.encode(e,n,5e3)}(e,t)}("ncryptsec",Iu(Uint8Array.from([2]),Uint8Array.from([n]),o,a,c,u))}(l0.decode(n).data,r)}decrypt(n,r){return l0.nsecEncode(function DK(e,t){let{prefix:n,words:r}=$o.decode(e,5e3);if("ncryptsec"!==n)throw new Error(`invalid prefix ${n}, expected 'ncryptsec'`);let o=new Uint8Array($o.fromWords(r)),i=o[0];if(2!==i)throw new Error(`invalid version ${i}, expected 0x02`);let a=2**o[1],c=o.slice(2,18),l=o.slice(18,42),d=Uint8Array.from([o[42]]),g=o.slice(43),v=h8(t.normalize("NFKC"),c,{N:a,r:8,p:1,dkLen:32});return EM(v,l,d).decrypt(g)}(n,r))}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),g8=(()=>{class e{constructor(n,r,o){this.encryptedUriService=n,this.cryptoJSService=r,this.nostrNcryptsecService=o}decrypt(n,r){var o=this;return(0,h.c)(function*(){return o.cryptoJSService.match(n)?Promise.resolve(o.cryptoJSService.decrypt(n,r)):o.encryptedUriService.match(n)?o.encryptedUriService.decrypt(n,r):o.nostrNcryptsecService.match(n)?Promise.resolve(o.nostrNcryptsecService.decrypt(n,r)):Promise.reject(new Error("encryption serialization format not supported"))})()}static#e=this.\u0275fac=function(r){return new(r||e)(We(Av),We(fT),We(z1))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();function AK(e,t){1&e&&(On(),xe(0,"svg",8),yt(1,"path",9)(2,"path",15),Se())}function SK(e,t){1&e&&(xe(0,"span",16),Fe(1,"Invalid key"),Se())}let IK=(()=>{class e{constructor(n,r,o){this.fb=n,this.router=r,this.decryptService=o,this.invalidKey=!1}ngOnInit(){this.getEncryptedFromHistoryState(),this.initForm()}getEncryptedFromHistoryState(){this.encrypted=history.state.encrypted,this.encrypted||this.router.navigate(["/home"]).catch(n=>console.error(n))}initForm(){this.invalidKey=!1,this.form=this.fb.group({key:["",[Bs.required.bind(this)]]})}unlock(){if(this.form.valid&&this.encrypted)try{const n=this.form.getRawValue();this.decryptService.decrypt(this.encrypted,n.key).then(r=>{r?this.router.navigate(["/opened"],{state:{opened:r}}):this.invalidKey=!0}).catch(r=>{console.error(r),this.invalidKey=!0})}catch(n){console.error(n),this.invalidKey=!0}}static#e=this.\u0275fac=function(r){return new(r||e)(be(xv),be(lr),be(g8))};static#t=this.\u0275cmp=Tr({type:e,selectors:[["app-decrypt-qrcode"]],decls:21,vars:5,consts:[[1,"main-icon"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round",4,"ngIf"],["id","decryptForm","novalidate","","autocomplete","off",3,"formGroup","submit"],["formControlName","key","name","key","placeholder","insert the key","type","password","autocomplete","off",1,"field-key"],["key",""],["class","error-msg",4,"ngIf"],[1,"buttons"],["routerLink","/home","type","button",1,"btn"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1"],["type","submit","form","decryptForm",1,"btn","btn-primary",3,"click"],["d","M5 11m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z"],["d","M12 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"],["d","M8 11v-5a4 4 0 0 1 8 0"],["d","M12 2c-.218 0 -.432 .002 -.642 .005l-.616 .017l-.299 .013l-.579 .034l-.553 .046c-4.785 .464 -6.732 2.411 -7.196 7.196l-.046 .553l-.034 .579c-.005 .098 -.01 .198 -.013 .299l-.017 .616l-.004 .318l-.001 .324c0 .218 .002 .432 .005 .642l.017 .616l.013 .299l.034 .579l.046 .553c.464 4.785 2.411 6.732 7.196 7.196l.553 .046l.579 .034c.098 .005 .198 .01 .299 .013l.616 .017l.642 .005l.642 -.005l.616 -.017l.299 -.013l.579 -.034l.553 -.046c4.785 -.464 6.732 -2.411 7.196 -7.196l.046 -.553l.034 -.579c.005 -.098 .01 -.198 .013 -.299l.017 -.616l.005 -.642l-.005 -.642l-.017 -.616l-.013 -.299l-.034 -.579l-.046 -.553c-.464 -4.785 -2.411 -6.732 -7.196 -7.196l-.553 -.046l-.579 -.034a28.058 28.058 0 0 0 -.299 -.013l-.616 -.017l-.318 -.004l-.324 -.001zm0 4a3 3 0 0 1 2.995 2.824l.005 .176v1a2 2 0 0 1 1.995 1.85l.005 .15v3a2 2 0 0 1 -1.85 1.995l-.15 .005h-6a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-3a2 2 0 0 1 1.85 -1.995l.15 -.005v-1a3 3 0 0 1 3 -3zm3 6h-6v3h6v-3zm-3 -4a1 1 0 0 0 -.993 .883l-.007 .117v1h2v-1a1 1 0 0 0 -1 -1z","fill","currentColor","stroke-width","0"],[1,"error-msg"]],template:function(r,o){if(1&r&&(xe(0,"h1"),Fe(1,"Private QRCode"),Se(),xe(2,"div",0),Sn(3,AK,3,0,"svg",1),Se(),xe(4,"form",2),St("submit",function(){return o.unlock()}),yt(5,"input",3,4),Sn(7,SK,2,0,"span",5),Se(),xe(8,"div",6)(9,"button",7),On(),xe(10,"svg",8),yt(11,"path",9)(12,"path",10),Se(),Fe(13," Back "),Se(),Ur(),xe(14,"button",11),St("click",function(){return o.unlock()}),On(),xe(15,"svg",8),yt(16,"path",9)(17,"path",12)(18,"path",13)(19,"path",14),Se(),Fe(20," Unlock "),Se()()),2&r){const i=Hi(6);rt(3),mt("ngIf",o.encrypted),rt(),mt("formGroup",o.form),rt(),Ts("has-value",!!i.value),rt(2),mt("ngIf",o.invalidKey)}},dependencies:[zi,kh,yc,Dh,Ah,_c,bu,Os],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.main-icon[_ngcontent-%COMP%]{flex:1 1 0px}.main-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:100%;height:300px}.buttons[_ngcontent-%COMP%]{display:flex;margin:1rem 0;justify-content:space-between}"]})}return e})(),TK=(()=>{class e{constructor(n){this.router=n,this.currentState=""}ngOnInit(){const n=history.state.opened;this.currentState=n?String(n):""}close(){this.router.navigate(["/home"])}static#e=this.\u0275fac=function(r){return new(r||e)(be(lr))};static#t=this.\u0275cmp=Tr({type:e,selectors:[["app-decrypted-content"]],decls:11,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"main-icon"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M5 11m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z"],["d","M12 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"],["d","M8 11v-5a4 4 0 0 1 8 0"],[3,"innerHTML"],[1,"buttons"],["type","button",1,"btn",3,"click"]],template:function(r,o){1&r&&(xe(0,"h1"),Fe(1,"Private QRCode"),Se(),On(),xe(2,"svg",0),yt(3,"path",1)(4,"path",2)(5,"path",3)(6,"path",4),Se(),Ur(),yt(7,"textarea",5),xe(8,"div",6)(9,"button",7),St("click",function(){return o.close()}),Fe(10,"Back"),Se()()),2&r&&(rt(7),mt("innerHTML",o.currentState,Gd))},styles:["[_nghost-%COMP%]{display:flex;height:calc(100vh - 3rem);flex-direction:column}.main-icon[_ngcontent-%COMP%]{width:100%;margin-top:1rem;height:200px}textarea[_ngcontent-%COMP%]{margin-top:1rem;flex:1 1 0}"]})}return e})();function m8(e,t){const n="object"==typeof t;return new Promise((r,o)=>{const i=new to({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new Jl)}});e.subscribe(i)})}const MK=["modalContainer"];function NK(e,t){}class Bu{static#e=this.modalInjectSubject=new en;static#t=this.modalInject$=Bu.modalInjectSubject.asObservable();constructor(t){this.component=t,this.injectData=null,this.cssClasses=[],this.subscription=new Le}setData(t){return this.injectData=t,this}setBindToRoute(t){return this.router=t,this}setRootCssClasses(t){return this.cssClasses=t,this}build(){const t=new en,n=this.injectData,r=this.component;return this.router?(this.subscription.add(this.router.events.pipe(mi(o=>o instanceof cu)).pipe(Gi()).subscribe(()=>{t.closed||t.complete()})),this.subscription.add(t.subscribe({complete:()=>this.subscription.unsubscribe()}))):console.warn(`Component "${r.name}" served as modal was not associated with the route and will not be automatically removed if the route is changed`),Bu.modalInjectSubject.next({component:r,data:n,cssClasses:this.cssClasses,response:t}),t.asObservable()}}let G1=(()=>{class e{createModal(n){return new Bu(n)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})(),RK=(()=>{class e{constructor(n){this.ngZone=n,this.modalInject$=Bu.modalInject$,this.classes=[],this.isOpen=!1,this.content=null,this.subscriptions=new Le,this.container=null,this.display="none",this.showingDisplay="block",this.opened=new Xt,this.closed=new Xt}ngOnInit(){this.listenModalInjection()}listenModalInjection(){this.subscriptions.add(this.modalInject$.subscribe({next:n=>{setTimeout(()=>{this.open(),this.openModal(n)})}}))}open(){this.ngZone.run(()=>{this.isOpen=!0,this.display=this.showingDisplay,this.opened.emit()})}close(){this.ngZone.run(()=>{this.isOpen=!1,this.display="none",this.closed.emit()})}getClasses(n){return(n=n||[]).concat(this.classes).join(" ")}openModal(n){const r=this.container;if(!r)return void console.error("Impossible to create modal: the this.container attribute is empty");r.clear();const o=this.content=r.createComponent(n.component).instance;this.classes=n.cssClasses,o?(o.response=n.response,o.onInjectData&&o.onInjectData(n.data||null),n.response.subscribe({error:this.closeModal.bind(this),complete:this.closeModal.bind(this)})):console.error(`Could not create component ${n.component.name} inside modal container.`)}closeModal(n){const r=this.container;r?setTimeout(()=>{r.clear(),this.close(),this.content?.response.complete()}):console.error("Impossible to create modal: the this.container attribute is empty",n)}ngOnDestroy(){this.subscriptions.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)(be(Ct))};static#t=this.\u0275cmp=Tr({type:e,selectors:[["modal-outlet"]],viewQuery:function(r,o){if(1&r&&Im(MK,5,$r),2&r){let i;Rf(i=Ff())&&(o.container=i.first)}},hostVars:2,hostBindings:function(r,o){2&r&&Is("display",o.display)},inputs:{showingDisplay:"showingDisplay"},outputs:{opened:"opened",closed:"closed"},decls:2,vars:0,consts:[["modalContainer",""]],template:function(r,o){1&r&&Sn(0,NK,0,0,"ng-template",null,0,q2)},encapsulation:2})}return e})(),W1=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({providers:[G1]})}return e})();class y8{close(){this.response.complete()}}function FK(e,t){1&e&&(xe(0,"span",33),Fe(1,"* required"),Se())}function OK(e,t){1&e&&(xe(0,"span",34),Fe(1,"hey calm down"),Se())}let PK=(()=>{class e extends y8{constructor(n){super(),this.formBuilder=n,this.response=new en,this.submitted=!1,this.form=this.formBuilder.group({algorithm:["",[Bs.required.bind(this)]],kdfHasher:["",[Bs.required.bind(this)]],kdfRounds:["",[Bs.required.bind(this)]],saveConfig:[!0]})}onInjectData(n){this.form.setValue({algorithm:n.algorithm,kdfHasher:n.kdfHasher,kdfRounds:n.kdfRounds,saveConfig:n.saveConfig})}getErrors(n,r){const o=this.form.controls;return this.submitted&&o[n]?.errors&&o[n].errors[r]||!1}onSubmit(){if(this.submitted=!0,this.form.valid){const n=this.form.getRawValue();if(n.kdfRounds&&String(n.kdfRounds).length>3){const o=`The key hash will run ${Number(n.kdfRounds).toLocaleString(void 0,{useGrouping:!0})} times into your device, are you sure?`;if(!confirm(o))return}n.saveConfig&&localStorage.setItem("private-qrcode-config",JSON.stringify(n)),this.response.next(n),this.close()}}static#e=this.\u0275fac=function(r){return new(r||e)(be(xv))};static#t=this.\u0275cmp=Tr({type:e,selectors:[["app-config"]],features:[Nt],decls:63,vars:3,consts:[["novalidate","","autocomplete","off",3,"formGroup","submit"],["for","algorithm"],["id","algorithm","formControlName","algorithm","name","algorithm"],["value","aes/cbc"],["value","aes/ecb"],["value","aes/ctr"],["value","aes/gcm"],["value","aes/siv"],["for","encryptKDFHasher"],["id","encryptKDFHasher","formControlName","kdfHasher","name","encryptKDFHasher"],["value","sha256"],["value","sha384"],["value","sha512"],["value","sha512_256"],["value","sha3_224"],["value","sha3_256"],["value","sha3_384"],["value","sha3_512"],["value","keccak_224"],["value","keccak_256"],["value","keccak_384"],["value","keccak_512"],["for","encryptKDFRounds"],["type","number","id","encryptKDFRounds","name","encryptKDFRounds","formControlName","kdfRounds","maxlength","6"],["encryptKDFRounds",""],["class","error",4,"ngIf"],["class","warn-msg",4,"ngIf"],["for","saveConfig"],["type","checkbox","id","saveConfig","name","saveConfig","formControlName","saveConfig"],[1,"flex-fill"],[1,"buttons"],["type","button",1,"btn",3,"click"],["type","submit",1,"btn","btn-primary"],[1,"error"],[1,"warn-msg"]],template:function(r,o){if(1&r&&(xe(0,"form",0),St("submit",function(){return o.onSubmit()}),xe(1,"fieldset")(2,"legend"),Fe(3,"Config"),Se(),xe(4,"div")(5,"label",1),Fe(6,"Select an algorithm"),Se(),xe(7,"select",2)(8,"option",3),Fe(9,"aes/cbc"),Se(),xe(10,"option",4),Fe(11,"aes/ecb"),Se(),xe(12,"option",5),Fe(13,"aes/ctr"),Se(),xe(14,"option",6),Fe(15,"aes/gcm"),Se(),xe(16,"option",7),Fe(17,"aes/siv"),Se()()(),xe(18,"div")(19,"label",8),Fe(20,"Select a KDF hasher"),Se(),xe(21,"select",9)(22,"option",10),Fe(23,"sha256"),Se(),xe(24,"option",11),Fe(25,"sha384"),Se(),xe(26,"option",12),Fe(27,"sha512"),Se(),xe(28,"option",13),Fe(29,"sha512_256"),Se(),xe(30,"option",14),Fe(31,"sha3_224"),Se(),xe(32,"option",15),Fe(33,"sha3_256"),Se(),xe(34,"option",16),Fe(35,"sha3_384"),Se(),xe(36,"option",17),Fe(37,"sha3_512"),Se(),xe(38,"option",18),Fe(39,"keccak_224"),Se(),xe(40,"option",19),Fe(41,"keccak_256"),Se(),xe(42,"option",20),Fe(43,"keccak_384"),Se(),xe(44,"option",21),Fe(45,"keccak_512"),Se()()(),xe(46,"div")(47,"label",22),Fe(48,"KDF rounds:"),Se(),yt(49,"input",23,24),Sn(51,FK,2,0,"span",25)(52,OK,2,0,"span",26),Se(),xe(53,"div")(54,"label",27),Fe(55,"Set config as default:"),Se(),yt(56,"input",28),Se()(),yt(57,"div",29),xe(58,"div",30)(59,"button",31),St("click",function(){return o.close()}),Fe(60,"Back"),Se(),xe(61,"button",32),Fe(62,"Configure"),Se()()()),2&r){const i=Hi(50);mt("formGroup",o.form),rt(51),mt("ngIf",o.getErrors("encryptKDFRounds","required")),rt(),mt("ngIf",i.value.length>3)}},dependencies:[zi,kh,JI,tT,yc,mv,rv,Bh,Dh,Ah,Lh,_c,bu],styles:["[_nghost-%COMP%]{height:100%;padding:1rem;display:block;box-sizing:border-box}form[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}form[_ngcontent-%COMP%] > fieldset[_ngcontent-%COMP%]{padding:1rem}form[_ngcontent-%COMP%] > fieldset[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin:1rem 0}form[_ngcontent-%COMP%] > fieldset[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%] > fieldset[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{width:230px;height:20px}.flex-fill[_ngcontent-%COMP%]{flex:1 1 0}"]})}return e})();class kK{static getValidator(){return t=>t.get("key")?.value===t.get("confirmKey")?.value?null:{confirmKey:!0}}}class BK{static getValidator(){return t=>{const n=t.get("config")?.value,r=t.get("content")?.value;if("nostrCredential"!==n||!r)return null;try{const{type:o}=l0.decode(r);return"npub"===o?{invalidNostrPublicGivenInstead:!0}:"nsec"===o?null:{invalidNostrSecret:!0}}catch{return{invalidNostrSecret:!0}}}}}function LK(e,t){if(1&e&&(xe(0,"div",38)(1,"strong"),Fe(2,"encode: "),Se(),xe(3,"span"),Fe(4,"encrypted uri"),Se(),Fe(5,", "),xe(6,"strong"),Fe(7,"algorithm: "),Se(),xe(8,"span"),Fe(9),Se(),Fe(10,", "),xe(11,"strong"),Fe(12,"kdf: "),Se(),xe(13,"span"),Fe(14,"pbkdf2"),Se(),Fe(15,", "),xe(16,"strong"),Fe(17,"hasher: "),Se(),xe(18,"span"),Fe(19),Se(),Fe(20,", "),xe(21,"strong"),Fe(22,"iterations: "),Se(),xe(23,"span"),Fe(24),Se(),Fe(25,", "),xe(26,"strong"),Fe(27,"key length: "),Se(),xe(28,"span"),Fe(29,"32"),Se()()),2&e){const n=Zn();let r,o,i;rt(9),Qa(null==(r=n.getChoosenConfig())?null:r.algorithm),rt(10),Qa(null==(o=n.getChoosenConfig())?null:o.kdfHasher),rt(5),Qa(null==(i=n.getChoosenConfig())?null:i.kdfRounds)}}function VK(e,t){1&e&&(xe(0,"div",38)(1,"strong"),Fe(2,"encode: "),Se(),xe(3,"span"),Fe(4,"nostr nip49"),Se(),Fe(5,", "),xe(6,"strong"),Fe(7,"algorithm: "),Se(),xe(8,"span"),Fe(9,"xchacha20/poly1305"),Se(),Fe(10,", "),xe(11,"strong"),Fe(12,"kdf: "),Se(),xe(13,"span"),Fe(14,"scrypt"),Se(),Fe(15,", "),xe(16,"strong"),Fe(17,"exponential iterations: "),Se(),xe(18,"span"),Fe(19,"16"),Se(),Fe(20,", "),xe(21,"strong"),Fe(22,"key length: "),Se(),xe(23,"span"),Fe(24,"32"),Se()())}function UK(e,t){1&e&&yt(0,"input",39)}function HK(e,t){1&e&&yt(0,"textarea",40)}function jK(e,t){1&e&&(xe(0,"span",41),Fe(1,"*This field is required!"),Se())}function $K(e,t){1&e&&(xe(0,"span",41),Fe(1,"*Invalid! Nostr public (npub) was given instead Nostr Secret (nsec)"),Se())}function zK(e,t){1&e&&(xe(0,"span",41),Fe(1,"*Invalid Nostr Secret was given!"),Se())}function GK(e,t){1&e&&(xe(0,"span",41),Fe(1,"*This field is required!"),Se())}function WK(e,t){1&e&&(xe(0,"span",41),Fe(1,"*This field is required!"),Se())}function KK(e,t){1&e&&(xe(0,"span",41),Fe(1,"*Divergent confirmation field!"),Se())}let qK=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.fb=r,this.modalService=o,this.encryptedUriService=i,this.nostrNcryptsecService=s,this.defaultConfigs={algorithm:"aes/cbc",kdfHasher:"sha256",kdfRounds:"32",saveConfig:!0},this.config=this.defaultConfigs,this.submitted=!1}ngOnInit(){this.defaultConfigs=this.loadDefaultConfig(),this.initForm()}getChoosenConfig(){const n=this.form.getRawValue();return"default"===n.config?this.defaultConfigs:"customized"===n.config?this.config||this.defaultConfigs:null}loadDefaultConfig(){const n=localStorage.getItem("private-qrcode-config");if(n)try{return JSON.parse(n)}catch{}return{algorithm:"aes/cbc",kdfHasher:"sha256",kdfRounds:"32",saveConfig:!0}}initForm(){this.form=this.fb.group({title:[""],config:["default"],content:["",[Bs.required.bind(this)]],key:["",[Bs.required.bind(this)]],confirmKey:["",[Bs.required.bind(this)]]}),this.form.addValidators(kK.getValidator()),this.form.addValidators(BK.getValidator())}customizeConfigs(){m8(this.modalService.createModal(PK).setData(this.getSavedConfigs()).setBindToRoute(this.router).build()).then(n=>{n&&(this.config=n)})}getSavedConfigs(){const n=localStorage.getItem("private-qrcode-config");if(n)try{return JSON.parse(n)}catch{}return this.defaultConfigs}getErrorFromForm(n){return!!this.submitted&&!(!this.form.errors||!this.form.errors[n])}getErrorFromField(n,r="required"){if(!this.submitted)return!1;const o=this.form.controls[n];return!!(o&&o.errors&&o.errors[r])}encrypt(n,r,o){if("customized"===o&&this.config)return this.encryptedUriService.encrypt(n,r,this.config);if("nostrCredential"===o){const i=this.nostrNcryptsecService.encrypt(n,r);return Promise.resolve(i)}return this.encryptedUriService.encrypt(n,r,this.defaultConfigs)}onSubmit(){if(this.submitted=!0,this.form.valid){const n=this.form.getRawValue();this.encrypt(n.content,n.key,n.config).then(r=>{this.router.navigate(["/share"],{state:{encrypted:r,title:n.title}}).catch(o=>console.error(o))}).catch(r=>console.error(r))}}static#e=this.\u0275fac=function(r){return new(r||e)(be(lr),be(xv),be(G1),be(Av),be(z1))};static#t=this.\u0275cmp=Tr({type:e,selectors:[["app-generate-qrcode"]],decls:56,vars:15,consts:[["id","generaQRCodeForm","novalidate","","autocomplete","off",3,"formGroup","submit"],[1,"buttons"],["for","configDefault",1,"btn-radio"],["radioConfigDefault",""],["name","config","formControlName","config","id","configDefault","type","radio","value","default","checked",""],["type","button",1,"btn",3,"click"],["for","configNostrCredential",1,"btn-radio"],["radioConfigNostrCredential",""],["name","config","formControlName","config","id","configNostrCredential","type","radio","value","nostrCredential"],["for","configCustomized",1,"btn-radio",3,"click"],["radioConfigCustomized",""],["name","config","formControlName","config","id","configCustomized","type","radio","value","customized"],["class","configs",4,"ngIf"],["name","title","type","text","formControlName","title","placeholder","insert a title (optional)","autocomplete","off"],["name","content","type","password","maxlength","63","formControlName","content","placeholder","nostr secret (nsec)",4,"ngIf"],["name","content","formControlName","content","placeholder","content to encrypt",4,"ngIf"],["class","error-msg",4,"ngIf"],["formControlName","key","name","key","placeholder","insert a key","type","password","autocomplete","off",1,"field-key"],["key",""],["name","confirmKey","placeholder","Confirm the key","formControlName","confirmKey","type","password","autocomplete","off",1,"field-key"],["confirmKey",""],["routerLink","/home","type","button",1,"btn"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1"],["form","generaQRCodeForm","type","submit",1,"btn","btn-primary"],["d","M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M7 17l0 .01"],["d","M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M7 7l0 .01"],["d","M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M17 7l0 .01"],["d","M14 14l3 0"],["d","M20 14l0 .01"],["d","M14 14l0 3"],["d","M14 20l3 0"],["d","M17 17l3 0"],["d","M20 17l0 3"],[1,"configs"],["name","content","type","password","maxlength","63","formControlName","content","placeholder","nostr secret (nsec)"],["name","content","formControlName","content","placeholder","content to encrypt"],[1,"error-msg"]],template:function(r,o){if(1&r){const i=Wa();xe(0,"h1"),Fe(1,"Private QRCode"),Se(),xe(2,"form",0),St("submit",function(){return o.onSubmit()}),xe(3,"div",1)(4,"label",2,3),yt(6,"input",4),xe(7,"button",5),St("click",function(){return Mi(i),Hi(5).click(),Ni(o.config=o.defaultConfigs)}),Fe(8," Default "),Se()(),xe(9,"label",6,7),yt(11,"input",8),xe(12,"button",5),St("click",function(){return Mi(i),Hi(10).click(),Ni(o.config=null)}),Fe(13," Nostr "),Se()(),xe(14,"label",9,10),St("click",function(){return o.customizeConfigs()}),yt(16,"input",11),xe(17,"button",5),St("click",function(){return Mi(i),Ni(Hi(15).click())}),Fe(18," Customized "),Se()()(),Sn(19,LK,30,3,"div",12)(20,VK,25,0,"div",12),yt(21,"input",13),Sn(22,UK,1,0,"input",14)(23,HK,1,0,"textarea",15)(24,jK,2,0,"span",16)(25,$K,2,0,"span",16)(26,zK,2,0,"span",16),yt(27,"input",17,18),Sn(29,GK,2,0,"span",16),yt(30,"input",19,20),Sn(32,WK,2,0,"span",16)(33,KK,2,0,"span",16),Se(),xe(34,"div",1)(35,"button",21),On(),xe(36,"svg",22),yt(37,"path",23)(38,"path",24),Se(),Fe(39," Back "),Se(),Ur(),xe(40,"button",25),On(),xe(41,"svg",22),yt(42,"path",23)(43,"path",26)(44,"path",27)(45,"path",28)(46,"path",29)(47,"path",30)(48,"path",31)(49,"path",32)(50,"path",33)(51,"path",34)(52,"path",35)(53,"path",36)(54,"path",37),Se(),Fe(55," Generate "),Se()()}if(2&r){const i=Hi(28),s=Hi(31);rt(2),mt("formGroup",o.form),rt(17),mt("ngIf",o.getChoosenConfig()),rt(),mt("ngIf",!o.getChoosenConfig()),rt(2),mt("ngIf",!o.config),rt(),mt("ngIf",o.config),rt(),mt("ngIf",o.getErrorFromField("content")),rt(),mt("ngIf",o.getErrorFromForm("invalidNostrPublicGivenInstead")),rt(),mt("ngIf",o.getErrorFromForm("invalidNostrSecret")),rt(),Ts("has-value",!!i.value),rt(2),mt("ngIf",o.getErrorFromField("key")),rt(),Ts("has-value",!!s.value),rt(2),mt("ngIf",o.getErrorFromField("confirmKey")),rt(),mt("ngIf",o.getErrorFromForm("confirmKey"))}},dependencies:[zi,Os,kh,yc,yv,Dh,Ah,Lh,_c,bu],styles:["[_nghost-%COMP%]{display:flex;width:100%;height:100%;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex:1 1 0px;display:flex;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%] .configs[_ngcontent-%COMP%]{margin-top:1rem}[_nghost-%COMP%] form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{flex:1 1 0px;margin-top:1rem}[_nghost-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-top:1rem}"]})}return e})();const g0=(()=>{class e{constructor(n,r,o,i,s){this._legacyCanvasSize=e.DEFAULT_CANVAS_SIZE,this._preferredCamera="environment",this._maxScansPerSecond=25,this._lastScanTimestamp=-1,this._destroyed=this._flashOn=this._paused=this._active=!1,this.$video=n,this.$canvas=document.createElement("canvas"),o&&"object"==typeof o?this._onDecode=r:(console.warn(o||i||s?"You're using a deprecated version of the QrScanner constructor which will be removed in the future":"Note that the type of the scan result passed to onDecode will change in the future. To already switch to the new api today, you can pass returnDetailedScanResult: true."),this._legacyOnDecode=r),this._onDecodeError=(r="object"==typeof o?o:{}).onDecodeError||("function"==typeof o?o:this._onDecodeError),this._calculateScanRegion=r.calculateScanRegion||("function"==typeof i?i:this._calculateScanRegion),this._preferredCamera=r.preferredCamera||s||this._preferredCamera,this._legacyCanvasSize="number"==typeof o?o:"number"==typeof i?i:this._legacyCanvasSize,this._maxScansPerSecond=r.maxScansPerSecond||this._maxScansPerSecond,this._onPlay=this._onPlay.bind(this),this._onLoadedMetaData=this._onLoadedMetaData.bind(this),this._onVisibilityChange=this._onVisibilityChange.bind(this),this._updateOverlay=this._updateOverlay.bind(this),n.disablePictureInPicture=!0,n.playsInline=!0,n.muted=!0;let a=!1;if(n.hidden&&(n.hidden=!1,a=!0),document.body.contains(n)||(document.body.appendChild(n),a=!0),o=n.parentElement,r.highlightScanRegion||r.highlightCodeOutline){if(i=!!r.overlay,this.$overlay=r.overlay||document.createElement("div"),(s=this.$overlay.style).position="absolute",s.display="none",s.pointerEvents="none",this.$overlay.classList.add("scan-region-highlight"),!i&&r.highlightScanRegion){this.$overlay.innerHTML='';try{this.$overlay.firstElementChild.animate({transform:["scale(.98)","scale(1.01)"]},{duration:400,iterations:1/0,direction:"alternate",easing:"ease-in-out"})}catch{}o.insertBefore(this.$overlay,this.$video.nextSibling)}r.highlightCodeOutline&&(this.$overlay.insertAdjacentHTML("beforeend",''),this.$codeOutlineHighlight=this.$overlay.lastElementChild)}this._scanRegion=this._calculateScanRegion(n),requestAnimationFrame(()=>{let c=window.getComputedStyle(n);"none"===c.display&&(n.style.setProperty("display","block","important"),a=!0),"visible"!==c.visibility&&(n.style.setProperty("visibility","visible","important"),a=!0),a&&(console.warn("QrScanner has overwritten the video hiding style to avoid Safari stopping the playback."),n.style.opacity="0",n.style.width="0",n.style.height="0",this.$overlay&&this.$overlay.parentElement&&this.$overlay.parentElement.removeChild(this.$overlay),delete this.$overlay,delete this.$codeOutlineHighlight),this.$overlay&&this._updateOverlay()}),n.addEventListener("play",this._onPlay),n.addEventListener("loadedmetadata",this._onLoadedMetaData),document.addEventListener("visibilitychange",this._onVisibilityChange),window.addEventListener("resize",this._updateOverlay),this._qrEnginePromise=e.createQrEngine()}static set WORKER_PATH(n){console.warn("Setting QrScanner.WORKER_PATH is not required and not supported anymore. Have a look at the README for new setup instructions.")}static hasCamera(){return(0,h.c)(function*(){try{return!!(yield e.listCameras(!1)).length}catch{return!1}})()}static listCameras(n=!1){return(0,h.c)(function*(){if(!navigator.mediaDevices)return[];let o,r=function(){var i=(0,h.c)(function*(){return(yield navigator.mediaDevices.enumerateDevices()).filter(s=>"videoinput"===s.kind)});return function(){return i.apply(this,arguments)}}();try{n&&(yield r()).every(i=>!i.label)&&(o=yield navigator.mediaDevices.getUserMedia({audio:!1,video:!0}))}catch{}try{return(yield r()).map((i,s)=>({id:i.deviceId,label:i.label||(0===s?"Default Camera":`Camera ${s+1}`)}))}finally{o&&(console.warn("Call listCameras after successfully starting a QR scanner to avoid creating a temporary video stream"),e._stopVideoStream(o))}})()}hasFlash(){var n=this;return(0,h.c)(function*(){let r;try{if(n.$video.srcObject){if(!(n.$video.srcObject instanceof MediaStream))return!1;r=n.$video.srcObject}else r=(yield n._getCameraStream()).stream;return"torch"in r.getVideoTracks()[0].getSettings()}catch{return!1}finally{r&&r!==n.$video.srcObject&&(console.warn("Call hasFlash after successfully starting the scanner to avoid creating a temporary video stream"),e._stopVideoStream(r))}})()}isFlashOn(){return this._flashOn}toggleFlash(){var n=this;return(0,h.c)(function*(){n._flashOn?yield n.turnFlashOff():yield n.turnFlashOn()})()}turnFlashOn(){var n=this;return(0,h.c)(function*(){if(!n._flashOn&&!n._destroyed&&(n._flashOn=!0,n._active&&!n._paused))try{if(!(yield n.hasFlash()))throw"No flash available";yield n.$video.srcObject.getVideoTracks()[0].applyConstraints({advanced:[{torch:!0}]})}catch(r){throw n._flashOn=!1,r}})()}turnFlashOff(){var n=this;return(0,h.c)(function*(){n._flashOn&&(n._flashOn=!1,yield n._restartVideoStream())})()}destroy(){this.$video.removeEventListener("loadedmetadata",this._onLoadedMetaData),this.$video.removeEventListener("play",this._onPlay),document.removeEventListener("visibilitychange",this._onVisibilityChange),window.removeEventListener("resize",this._updateOverlay),this._destroyed=!0,this._flashOn=!1,this.stop(),e._postWorkerMessage(this._qrEnginePromise,"close")}start(){var n=this;return(0,h.c)(function*(){if(n._destroyed)throw Error("The QR scanner can not be started as it had been destroyed.");if((!n._active||n._paused)&&("https:"!==window.location.protocol&&console.warn("The camera stream is only accessible if the page is transferred via https."),n._active=!0,!document.hidden))if(n._paused=!1,n.$video.srcObject)yield n.$video.play();else try{let{stream:r,facingMode:o}=yield n._getCameraStream();!n._active||n._paused?e._stopVideoStream(r):(n._setVideoMirror(o),n.$video.srcObject=r,yield n.$video.play(),n._flashOn&&(n._flashOn=!1,n.turnFlashOn().catch(()=>{})))}catch(r){if(!n._paused)throw n._active=!1,r}})()}stop(){this.pause(),this._active=!1}pause(n=!1){var r=this;return(0,h.c)(function*(){if(r._paused=!0,!r._active)return!0;r.$video.pause(),r.$overlay&&(r.$overlay.style.display="none");let o=()=>{r.$video.srcObject instanceof MediaStream&&(e._stopVideoStream(r.$video.srcObject),r.$video.srcObject=null)};return n?(o(),!0):(yield new Promise(i=>setTimeout(i,300)),!!r._paused&&(o(),!0))})()}setCamera(n){var r=this;return(0,h.c)(function*(){n!==r._preferredCamera&&(r._preferredCamera=n,yield r._restartVideoStream())})()}static scanImage(n,r,o,i,s=!1,a=!1){return(0,h.c)(function*(){let c,l=!1;r&&("scanRegion"in r||"qrEngine"in r||"canvas"in r||"disallowCanvasResizing"in r||"alsoTryWithoutScanRegion"in r||"returnDetailedScanResult"in r)?(c=r.scanRegion,o=r.qrEngine,i=r.canvas,s=r.disallowCanvasResizing||!1,a=r.alsoTryWithoutScanRegion||!1,l=!0):console.warn(r||o||i||s||a?"You're using a deprecated api for scanImage which will be removed in the future.":"Note that the return type of scanImage will change in the future. To already switch to the new api today, you can pass returnDetailedScanResult: true."),r=!!o;try{let u,d,g;if([o,u]=yield Promise.all([o||e.createQrEngine(),e._loadImage(n)]),[i,d]=e._drawToCanvas(u,c,i,s),o instanceof Worker){let v=o;r||e._postWorkerMessageSync(v,"inversionMode","both"),g=yield new Promise((E,A)=>{let U,q,K,se=-1;q=ge=>{ge.data.id===se&&(v.removeEventListener("message",q),v.removeEventListener("error",K),clearTimeout(U),null!==ge.data.data?E({data:ge.data.data,cornerPoints:e._convertPoints(ge.data.cornerPoints,c)}):A(e.NO_QR_CODE_FOUND))},K=ge=>{v.removeEventListener("message",q),v.removeEventListener("error",K),clearTimeout(U),A("Scanner error: "+(ge?ge.message||ge:"Unknown Error"))},v.addEventListener("message",q),v.addEventListener("error",K),U=setTimeout(()=>K("timeout"),1e4);let le=d.getImageData(0,0,i.width,i.height);se=e._postWorkerMessageSync(v,"decode",le,[le.data.buffer])})}else g=yield Promise.race([new Promise((v,E)=>window.setTimeout(()=>E("Scanner error: timeout"),1e4)),(0,h.c)(function*(){try{var[v]=yield o.detect(i);if(!v)throw e.NO_QR_CODE_FOUND;return{data:v.rawValue,cornerPoints:e._convertPoints(v.cornerPoints,c)}}catch(E){if(/not implemented|service unavailable/.test(v=E.message||E))return e._disableBarcodeDetector=!0,e.scanImage(n,{scanRegion:c,canvas:i,disallowCanvasResizing:s,alsoTryWithoutScanRegion:a});throw`Scanner error: ${v}`}})()]);return l?g:g.data}catch(u){if(!c||!a)throw u;let d=yield e.scanImage(n,{qrEngine:o,canvas:i,disallowCanvasResizing:s});return l?d:d.data}finally{r||e._postWorkerMessage(o,"close")}})()}setGrayscaleWeights(n,r,o,i=!0){e._postWorkerMessage(this._qrEnginePromise,"grayscaleWeights",{red:n,green:r,blue:o,useIntegerApproximation:i})}setInversionMode(n){e._postWorkerMessage(this._qrEnginePromise,"inversionMode",n)}static createQrEngine(n){return(0,h.c)(function*(){if(n&&console.warn("Specifying a worker path is not required and not supported anymore."),n=()=>y.e(368).then(y.bind(y,8368)).then(o=>o.createWorker()),e._disableBarcodeDetector||!("BarcodeDetector"in window)||!BarcodeDetector.getSupportedFormats||!(yield BarcodeDetector.getSupportedFormats()).includes("qr_code"))return n();let r=navigator.userAgentData;return r&&r.brands.some(({brand:o})=>/Chromium/i.test(o))&&/mac ?OS/i.test(r.platform)&&(yield r.getHighEntropyValues(["architecture","platformVersion"]).then(({architecture:o,platformVersion:i})=>/arm/i.test(o||"arm")&&13<=parseInt(i||"13")).catch(()=>!0))?n():new BarcodeDetector({formats:["qr_code"]})})()}_onPlay(){this._scanRegion=this._calculateScanRegion(this.$video),this._updateOverlay(),this.$overlay&&(this.$overlay.style.display=""),this._scanFrame()}_onLoadedMetaData(){this._scanRegion=this._calculateScanRegion(this.$video),this._updateOverlay()}_onVisibilityChange(){document.hidden?this.pause():this._active&&this.start()}_calculateScanRegion(n){let r=Math.round(.6666666666666666*Math.min(n.videoWidth,n.videoHeight));return{x:Math.round((n.videoWidth-r)/2),y:Math.round((n.videoHeight-r)/2),width:r,height:r,downScaledWidth:this._legacyCanvasSize,downScaledHeight:this._legacyCanvasSize}}_updateOverlay(){requestAnimationFrame(()=>{if(this.$overlay){var n=this.$video,r=n.videoWidth,o=n.videoHeight,i=n.offsetWidth,s=n.offsetHeight,a=n.offsetLeft,c=n.offsetTop,l=window.getComputedStyle(n),u=l.objectFit,d=r/o,g=i/s;switch(u){case"none":var v=r,E=o;break;case"fill":v=i,E=s;break;default:("cover"===u?d>g:d{const le=parseFloat(K);return K.endsWith("%")?(se?s-E:i-v)*le/100:le});g=this._scanRegion.height||o,u=this._scanRegion.x||0;var q=this._scanRegion.y||0;(d=this.$overlay.style).width=(l=this._scanRegion.width||r)/r*v+"px",d.height=g/o*E+"px",d.top=`${c+U+q/o*E}px`,o=/scaleX\(-1\)/.test(n.style.transform),d.left=`${a+(o?i-A-v:A)+(o?r-u-l:u)/r*v}px`,d.transform=n.style.transform}})}static _convertPoints(n,r){if(!r)return n;let o=r.x||0,i=r.y||0,s=r.width&&r.downScaledWidth?r.width/r.downScaledWidth:1;r=r.height&&r.downScaledHeight?r.height/r.downScaledHeight:1;for(let a of n)a.x=a.x*s+o,a.y=a.y*r+i;return n}_scanFrame(){var n=this;!this._active||this.$video.paused||this.$video.ended||("requestVideoFrameCallback"in this.$video?this.$video.requestVideoFrameCallback.bind(this.$video):requestAnimationFrame)((0,h.c)(function*(){if(!(1>=n.$video.readyState)){var r=Date.now()-n._lastScanTimestamp,o=1e3/n._maxScansPerSecond;rsetTimeout(s,o-r))),n._lastScanTimestamp=Date.now();try{var i=yield e.scanImage(n.$video,{scanRegion:n._scanRegion,qrEngine:n._qrEnginePromise,canvas:n.$canvas})}catch(s){if(!n._active)return;n._onDecodeError(s)}!e._disableBarcodeDetector||(yield n._qrEnginePromise)instanceof Worker||(n._qrEnginePromise=e.createQrEngine()),i?(n._onDecode?n._onDecode(i):n._legacyOnDecode&&n._legacyOnDecode(i.data),n.$codeOutlineHighlight&&(clearTimeout(n._codeOutlineHighlightRemovalTimeout),n._codeOutlineHighlightRemovalTimeout=void 0,n.$codeOutlineHighlight.setAttribute("viewBox",`${n._scanRegion.x||0} ${n._scanRegion.y||0} ${n._scanRegion.width||n.$video.videoWidth} ${n._scanRegion.height||n.$video.videoHeight}`),n.$codeOutlineHighlight.firstElementChild.setAttribute("points",i.cornerPoints.map(({x:s,y:a})=>`${s},${a}`).join(" ")),n.$codeOutlineHighlight.style.display="")):n.$codeOutlineHighlight&&!n._codeOutlineHighlightRemovalTimeout&&(n._codeOutlineHighlightRemovalTimeout=setTimeout(()=>n.$codeOutlineHighlight.style.display="none",100))}n._scanFrame()}))}_onDecodeError(n){n!==e.NO_QR_CODE_FOUND&&console.log(n)}_getCameraStream(){var n=this;return(0,h.c)(function*(){if(!navigator.mediaDevices)throw"Camera not found.";let r=/^(environment|user)$/.test(n._preferredCamera)?"facingMode":"deviceId",o=[{width:{min:1024}},{width:{min:768}},{}],i=o.map(s=>Object.assign({},s,{[r]:{exact:n._preferredCamera}}));for(let s of[...i,...o])try{let a=yield navigator.mediaDevices.getUserMedia({video:s,audio:!1});return{stream:a,facingMode:n._getFacingMode(a)||(s.facingMode?n._preferredCamera:"environment"===n._preferredCamera?"user":"environment")}}catch{}throw"Camera not found."})()}_restartVideoStream(){var n=this;return(0,h.c)(function*(){let r=n._paused;(yield n.pause(!0))&&!r&&n._active&&(yield n.start())})()}static _stopVideoStream(n){for(let r of n.getTracks())r.stop(),n.removeTrack(r)}_setVideoMirror(n){this.$video.style.transform="scaleX("+("user"===n?-1:1)+")"}_getFacingMode(n){return(n=n.getVideoTracks()[0])?/rear|back|environment/i.test(n.label)?"environment":/front|user|face/i.test(n.label)?"user":null:null}static _drawToCanvas(n,r,o,i=!1){o=o||document.createElement("canvas");let s=r&&r.x?r.x:0,a=r&&r.y?r.y:0,c=r&&r.width?r.width:n.videoWidth||n.width,l=r&&r.height?r.height:n.videoHeight||n.height;return i||(i=r&&r.downScaledWidth?r.downScaledWidth:c,r=r&&r.downScaledHeight?r.downScaledHeight:l,o.width!==i&&(o.width=i),o.height!==r&&(o.height=r)),(r=o.getContext("2d",{alpha:!1})).imageSmoothingEnabled=!1,r.drawImage(n,s,a,c,l,0,0,o.width,o.height),[o,r]}static _loadImage(n){return(0,h.c)(function*(){if(n instanceof Image)return yield e._awaitImageLoad(n),n;if(n instanceof HTMLVideoElement||n instanceof HTMLCanvasElement||n instanceof SVGImageElement||"OffscreenCanvas"in window&&n instanceof OffscreenCanvas||"ImageBitmap"in window&&n instanceof ImageBitmap)return n;if(!(n instanceof File||n instanceof Blob||n instanceof URL||"string"==typeof n))throw"Unsupported image type.";{let r=new Image;r.src=n instanceof File||n instanceof Blob?URL.createObjectURL(n):n.toString();try{return yield e._awaitImageLoad(r),r}finally{(n instanceof File||n instanceof Blob)&&URL.revokeObjectURL(r.src)}}})()}static _awaitImageLoad(n){return(0,h.c)(function*(){n.complete&&0!==n.naturalWidth||(yield new Promise((r,o)=>{let i=s=>{n.removeEventListener("load",i),n.removeEventListener("error",i),s instanceof ErrorEvent?o("Image load error"):r()};n.addEventListener("load",i),n.addEventListener("error",i)}))})()}static _postWorkerMessage(n,r,o,i){return(0,h.c)(function*(){return e._postWorkerMessageSync(yield n,r,o,i)})()}static _postWorkerMessageSync(n,r,o,i){if(!(n instanceof Worker))return-1;let s=e._workerMessageId++;return n.postMessage({id:s,type:r,data:o},i),s}}return e.DEFAULT_CANVAS_SIZE=400,e.NO_QR_CODE_FOUND="No QR code found",e._disableBarcodeDetector=!1,e._workerMessageId=0,e})();var Ws=y(6400),v8=y(5404);const Lu=(0,Ws.C_)("Filesystem",{web:()=>y.e(308).then(y.bind(y,7688)).then(e=>new e.FilesystemWeb)}),w8=(0,Ws.C_)("Share",{web:()=>y.e(852).then(y.bind(y,1852)).then(e=>new e.ShareWeb)});function kr(...e){const t=i=>i,n=(i,s)=>a=>i(s(a));return{encode:e.map(i=>i.encode).reduceRight(n,t),decode:e.map(i=>i.decode).reduce(n,t)}}function Yr(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("alphabet.encode input should be an array of numbers");return t.map(n=>{if(n<0||n>=e.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${e.length})`);return e[n]})},decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("alphabet.decode input should be array of strings");return t.map(n=>{if("string"!=typeof n)throw new Error(`alphabet.decode: not string element=${n}`);const r=e.indexOf(n);if(-1===r)throw new Error(`Unknown letter: "${n}". Allowed: ${e}`);return r})}}}function Xr(e=""){if("string"!=typeof e)throw new Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("join.encode input should be array of strings");for(let n of t)if("string"!=typeof n)throw new Error(`join.encode: non-string input=${n}`);return t.join(e)},decode:t=>{if("string"!=typeof t)throw new Error("join.decode input should be string");return t.split(e)}}}function Uu(e,t="="){if("string"!=typeof t)throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let r of n)if("string"!=typeof r)throw new Error(`padding.encode: non-string input=${r}`);for(;n.length*e%8;)n.push(t);return n},decode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let o of n)if("string"!=typeof o)throw new Error(`padding.decode: non-string input=${o}`);let r=n.length;if(r*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--)if(!((r-1)*e%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,r)}}}const E8=(e,t)=>t?E8(t,e%t):e,m0=(e,t)=>e+(t-E8(e,t));function y0(e,t,n,r){if(!Array.isArray(e))throw new Error("convertRadix2: data should be array");if(t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(m0(t,n)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${m0(t,n)}`);let o=0,i=0;const s=2**n-1,a=[];for(const c of e){if(c>=2**t)throw new Error(`convertRadix2: invalid data word=${c} from=${t}`);if(o=o<32)throw new Error(`convertRadix2: carry overflow pos=${i} from=${t}`);for(i+=t;i>=n;i-=n)a.push((o>>i-n&s)>>>0);o&=2**i-1}if(o=o<=t)throw new Error("Excess padding");if(!r&&o)throw new Error(`Non-zero padding: ${o}`);return r&&i>0&&a.push(o>>>0),a}function mo(e,t=!1){if(e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(m0(8,e)>32||m0(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!function Vu(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}(n))throw new Error("radix2.encode input should be Uint8Array");return y0(Array.from(n),8,e,!t)},decode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(y0(n,e,8,t))}}}const q1=kr(mo(6),Yr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),Uu(6),Xr(""));class eq extends Ws.w8{constructor(){super(...arguments),this.ERROR_PICK_FILE_CANCELED="pickFiles canceled."}convertHeicToJpeg(t){var n=this;return(0,h.c)(function*(){throw n.unimplemented("Not implemented on web.")})()}pickFiles(t){var n=this;return(0,h.c)(function*(){const r=yield n.openFilePicker(t);if(!r)throw new Error(n.ERROR_PICK_FILE_CANCELED);const o={files:[]};for(const i of r){const s={blob:i,modifiedAt:i.lastModified,mimeType:n.getMimeTypeFromUrl(i),name:n.getNameFromUrl(i),path:void 0,size:n.getSizeFromUrl(i)};t?.readData&&(s.data=yield n.getDataFromFile(i)),o.files.push(s)}return o})()}pickImages(t){var n=this;return(0,h.c)(function*(){return n.pickFiles(Object.assign({types:["image/*"]},t))})()}pickMedia(t){var n=this;return(0,h.c)(function*(){return n.pickFiles(Object.assign({types:["image/*","video/*"]},t))})()}pickVideos(t){var n=this;return(0,h.c)(function*(){return n.pickFiles(Object.assign({types:["video/*"]},t))})()}openFilePicker(t){var n=this;return(0,h.c)(function*(){var r;const o=(null===(r=t?.types)||void 0===r?void 0:r.join(","))||"",i=!!t?.multiple;return new Promise(s=>{let a=!1;const c=document.createElement("input");c.type="file",c.accept=o,c.multiple=i,c.addEventListener("change",()=>{a=!0;const l=Array.from(c.files||[]);s(l)},{once:!0}),window.addEventListener("focus",(0,h.c)(function*(){yield n.wait(1e3),!a&&s(void 0)}),{once:!0}),c.click()})})()}getDataFromFile(t){return(0,h.c)(function*(){return new Promise((n,r)=>{const o=new FileReader;o.readAsDataURL(t),o.onload=()=>{const a=("string"==typeof o.result?o.result:"").split("base64,")[1]||"";n(a)},o.onerror=i=>{r(i)}})})()}getNameFromUrl(t){return t.name}getMimeTypeFromUrl(t){return t.type}getSizeFromUrl(t){return t.size}wait(t){return(0,h.c)(function*(){return new Promise(n=>setTimeout(n,t))})()}}const tq=(0,Ws.C_)("FilePicker",{web:()=>new eq});let Z1=(()=>{class e{base64ToBlob(n){const[,,r,,o]=Array.from(n.match(/(data:)([^ ]+)(;base64,)([^ ]+)/)||[]),i=q1.decode(o),s=[];for(let a=0;a{const o=new FileReader;o.onload=i=>{const s=i.target?.result;if(!s)return r("");const a=new Uint8Array(s);return r(`data:${n.type||"image/png"};base64,`+q1.encode(a))},o.readAsArrayBuffer(n)}):Promise.resolve("")}save(n,r){return"web"===Ws.m3.getPlatform()?this.webSave(this.base64ToBlob(n),r):this.androidSave(n,r),Promise.resolve()}share(n,r){return"web"===Ws.m3.getPlatform()?this.webShare(this.base64ToBlob(n),r):this.androidShare(n,r)}load(){var n=this;return(0,h.c)(function*(){return"web"===Ws.m3.getPlatform()?n.webLoad():n.androidLoad()})()}webSave(n,r){const o=URL.createObjectURL(n),i=document.createElement("a");document.body.appendChild(i),i.href=o,i.download=r,i.click(),URL.revokeObjectURL(o)}androidSave(n,r){return(0,h.c)(function*(){return yield Lu.requestPermissions(),yield Lu.writeFile({path:r,data:n,directory:v8.Y9.Documents}),Promise.resolve()})()}webShare(n,r){return navigator.share({title:r,files:[new File([n],r,{type:n.type})]})}androidShare(n,r){return(0,h.c)(function*(){yield Lu.requestPermissions();const o=yield Lu.writeFile({path:r,data:n,directory:v8.Y9.Cache});return yield w8.share({title:r,files:[o.uri]}),Promise.resolve()})()}webLoad(n="image/*"){var r=this;return(0,h.c)(function*(){const o=document.createElement("input");o.setAttribute("type","file"),o.setAttribute("accept",n),o.click();const i=yield new Promise(s=>{o.addEventListener("change",()=>s(o.files&&o.files[0]||null))});return i?r.blobToBase64(i):Promise.resolve("")})()}androidLoad(){return(0,h.c)(function*(){yield Lu.requestPermissions();const r=(yield tq.pickImages({multiple:!1,readData:!0})).files[0];return Promise.resolve(`data:${r.mimeType};base64,${r.data||""}`)})()}isSharable(){return(0,h.c)(function*(){if(navigator.share)return Promise.resolve(!0);const n=yield w8.canShare();return"Capacitor"in window&&n.value?Promise.resolve(!0):Promise.resolve(!1)})()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();const nq=["video"];function rq(e,t){if(1&e){const n=Wa();On(),Ur(),xe(0,"button",8),St("click",function(){return Mi(n),Ni(Zn().flipCamera())}),On(),xe(1,"svg",9),yt(2,"path",2)(3,"path",10)(4,"path",11)(5,"path",12)(6,"path",13),Se()()}}let oq=(()=>{class e extends y8{constructor(){super(...arguments),this.cameras=[],this.response=new en}ngAfterViewInit(){this.videoEl&&this.videoEl.nativeElement&&this.readQRCode(this.videoEl.nativeElement)}ngOnDestroy(){this.videoEl&&this.videoEl.nativeElement&&this.stopStreaming(this.videoEl.nativeElement),this.stopScanning()}flipCamera(){const n=this.cameras,r=localStorage.getItem("privateQRcodeChoosenCameraId"),i=n.findIndex(a=>a.id===r)+1;let s;s=n[i]?n[i]:n[0],localStorage.setItem("privateQRcodeChoosenCameraId",s.id),this.scanning&&this.scanning.setCamera(s.id)}readQRCode(n){var r=this;return(0,h.c)(function*(){return r.stopScanning(),r.scanning=new g0(n,o=>{r.response.next(o.data),r.close()},{}),r.cameras=yield g0.listCameras(),yield r.scanning.setCamera(r.chooseCam(r.cameras).id),yield r.scanning.start(),r.cameras=yield g0.listCameras(),Promise.resolve()})()}chooseCam(n){if(1===n.length)return n[0];const r=localStorage.getItem("privateQRcodeChoosenCameraId");if(r)return{id:r};const o=n.find(i=>/back/.test(i.label))||n[0];return localStorage.setItem("privateQRcodeChoosenCameraId",o.id),o}stopScanning(){this.scanning&&(this.scanning.stop(),this.scanning.destroy())}stopStreaming(n){if(n){const r=n.srcObject;r instanceof MediaStream&&r.getTracks().forEach(o=>o.stop())}}static#e=this.\u0275fac=(()=>{let n;return function(o){return(n||(n=An(e)))(o||e)}})();static#t=this.\u0275cmp=Tr({type:e,selectors:[["app-modal-scan-qrcode"]],viewQuery:function(r,o){if(1&r&&Im(nq,5,pr),2&r){let i;Rf(i=Ff())&&(o.videoEl=i.first)}},features:[Nt],decls:8,vars:1,consts:[["title","close","type","button",1,"circle-button","close-button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","stroke","currentColor","viewBox","0 0 24 24","stroke-width","2","fill","none","stroke-linecap","round","stroke-linejoin","round"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M18 6l-12 12"],["d","M6 6l12 12"],["title","change camera","type","button","class","circle-button flip-camera-button",3,"click",4,"ngIf"],["autoplay",""],["video",""],["title","change camera","type","button",1,"circle-button","flip-camera-button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","stroke","currentColor","viewBox","0 0 24 24","fill","none","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2"],["d","M11.245 15.904a3 3 0 0 0 3.755 -2.904m-2.25 -2.905a3 3 0 0 0 -3.75 2.905"],["d","M14 13h2v2"],["d","M10 13h-2v-2"]],template:function(r,o){1&r&&(xe(0,"button",0),St("click",function(){return o.close()}),On(),xe(1,"svg",1),yt(2,"path",2)(3,"path",3)(4,"path",4),Se()(),Sn(5,rq,7,0,"button",5),Ur(),yt(6,"video",6,7)),2&r&&(rt(5),mt("ngIf",o.cameras.length>1))},dependencies:[zi],styles:["video[_ngcontent-%COMP%]{background-color:#000;position:fixed;inset:0;z-index:49;height:100vh;width:100%}.close-button[_ngcontent-%COMP%]{position:fixed;top:5px;right:5px;z-index:50}.flip-camera-button[_ngcontent-%COMP%]{position:fixed;top:50px;right:5px;z-index:50}"]})}return e})(),T8=(()=>{class e{constructor(n){this.modalService=n}scan(){var n=this;return(0,h.c)(function*(){const r=yield m8(n.modalService.createModal(oq).build());return Promise.resolve(r||"")})()}static#e=this.\u0275fac=function(r){return new(r||e)(We(G1))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const iq=()=>["/generate"];let sq=(()=>{class e{constructor(n,r,o){this.router=n,this.fileManagerService=r,this.scanQrcodeService=o,this.appVersion="0.1.0"}uploadPicture(){this.fileManagerService.load().then(n=>{g0.scanImage(n,{}).then(r=>this.router.navigate(["/open"],{state:{encrypted:r}})).catch(r=>console.error(r))}).catch(n=>console.error(n))}openQrcodeScanner(){this.scanQrcodeService.scan().then(n=>this.router.navigate(["/open"],{state:{encrypted:n}})).catch(n=>console.error(n))}static#e=this.\u0275fac=function(r){return new(r||e)(be(lr),be(Z1),be(T8))};static#t=this.\u0275cmp=Tr({type:e,selectors:[["app-home"]],decls:40,vars:3,consts:[["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round",1,"main-icon"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M12 2c-.218 0 -.432 .002 -.642 .005l-.616 .017l-.299 .013l-.579 .034l-.553 .046c-4.785 .464 -6.732 2.411 -7.196 7.196l-.046 .553l-.034 .579c-.005 .098 -.01 .198 -.013 .299l-.017 .616l-.004 .318l-.001 .324c0 .218 .002 .432 .005 .642l.017 .616l.013 .299l.034 .579l.046 .553c.464 4.785 2.411 6.732 7.196 7.196l.553 .046l.579 .034c.098 .005 .198 .01 .299 .013l.616 .017l.642 .005l.642 -.005l.616 -.017l.299 -.013l.579 -.034l.553 -.046c4.785 -.464 6.732 -2.411 7.196 -7.196l.046 -.553l.034 -.579c.005 -.098 .01 -.198 .013 -.299l.017 -.616l.005 -.642l-.005 -.642l-.017 -.616l-.013 -.299l-.034 -.579l-.046 -.553c-.464 -4.785 -2.411 -6.732 -7.196 -7.196l-.553 -.046l-.579 -.034a28.058 28.058 0 0 0 -.299 -.013l-.616 -.017l-.318 -.004l-.324 -.001zm0 4a3 3 0 0 1 2.995 2.824l.005 .176v1a2 2 0 0 1 1.995 1.85l.005 .15v3a2 2 0 0 1 -1.85 1.995l-.15 .005h-6a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-3a2 2 0 0 1 1.85 -1.995l.15 -.005v-1a3 3 0 0 1 3 -3zm3 6h-6v3h6v-3zm-3 -4a1 1 0 0 0 -.993 .883l-.007 .117v1h2v-1a1 1 0 0 0 -1 -1z","fill","currentColor","stroke-width","0"],[1,"space-between"],["type","button",1,"btn","btn-primary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["d","M15 8h.01"],["d","M12.5 21h-6.5a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v6.5"],["d","M3 16l5 -5c.928 -.893 2.072 -.893 3 0l3.5 3.5"],["d","M14 14l1 -1c.679 -.653 1.473 -.829 2.214 -.526"],["d","M19 22v-6"],["d","M22 19l-3 -3l-3 3"],["d","M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2"],["d","M9 13a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"],["type","button",1,"btn","btn-primary",3,"routerLink"],["d","M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M7 17l0 .01"],["d","M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M7 7l0 .01"],["d","M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M17 7l0 .01"],["d","M14 14l3 0"],["d","M20 14l0 .01"],["d","M14 14l0 3"],["d","M14 20l3 0"],["d","M17 17l3 0"],["d","M20 17l0 3"],[1,"version"]],template:function(r,o){1&r&&(xe(0,"h1"),Fe(1,"Private QRCode"),Se(),On(),xe(2,"svg",0),yt(3,"path",1)(4,"path",2),Se(),Ur(),yt(5,"div",3),xe(6,"button",4),St("click",function(){return o.uploadPicture()}),On(),xe(7,"svg",5),yt(8,"path",1)(9,"path",6)(10,"path",7)(11,"path",8)(12,"path",9)(13,"path",10)(14,"path",11),Se(),Fe(15," Load QRCode\n"),Se(),Ur(),xe(16,"button",4),St("click",function(){return o.openQrcodeScanner()}),On(),xe(17,"svg",5),yt(18,"path",1)(19,"path",12)(20,"path",13),Se(),Fe(21," Scan QRCode\n"),Se(),Ur(),xe(22,"button",14),On(),xe(23,"svg",5),yt(24,"path",1)(25,"path",15)(26,"path",16)(27,"path",17)(28,"path",18)(29,"path",19)(30,"path",20)(31,"path",21)(32,"path",22)(33,"path",23)(34,"path",24)(35,"path",25)(36,"path",26),Se(),Fe(37," Generate QRCode\n"),Se(),Ur(),xe(38,"footer",27),Fe(39),Se()),2&r&&(rt(22),mt("routerLink",Om(2,iq)),rt(17),Qa(o.appVersion))},dependencies:[Os],styles:["[_nghost-%COMP%]{width:100%;height:100%;display:flex;padding:1rem;flex-direction:column;box-sizing:border-box}[_nghost-%COMP%] .main-icon[_ngcontent-%COMP%]{width:100%;margin-top:1rem;height:200px}[_nghost-%COMP%] button[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] button[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem}[_nghost-%COMP%] .space-between[_ngcontent-%COMP%]{flex:1 1 0px}[_nghost-%COMP%] .version[_ngcontent-%COMP%]{font-size:.8rem;color:#666;text-align:center}"]})}return e})();var aq=y(4336),ot=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(ot||{});const Di="*";function cq(e,t){return{type:ot.Trigger,name:e,definitions:t,options:{}}}function M8(e,t=null){return{type:ot.Animate,styles:t,timings:e}}function ju(e){return{type:ot.Style,styles:e,offset:null}}function Y1(e,t,n){return{type:ot.State,name:e,styles:t,options:n}}function N8(e,t,n=null){return{type:ot.Transition,expr:e,animation:t,options:n}}class $u{constructor(t=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class R8{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let n=0,r=0,o=0;const i=this.players.length;0==i?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==i&&this._onFinish()}),s.onDestroy(()=>{++r==i&&this._onDestroy()}),s.onStart(()=>{++o==i&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const n=t*this.totalTime;this.players.forEach(r=>{const o=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(o)})}getPosition(){const t=this.players.reduce((n,r)=>null===n||r.totalTime>n.totalTime?r:n,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}const F8=["toast-component",""];function pq(e,t){if(1&e){const n=Wa();xe(0,"button",5),St("click",function(){return Mi(n),Ni(Zn().remove())}),xe(1,"span",6),Fe(2,"\xd7"),Se()()}}function gq(e,t){if(1&e&&(Rl(0),Fe(1),Fl()),2&e){const n=Zn(2);rt(),ci("[",n.duplicatesCount+1,"]")}}function mq(e,t){if(1&e&&(xe(0,"div"),Fe(1),Sn(2,gq,2,1,"ng-container",4),Se()),2&e){const n=Zn();ai(n.options.titleClass),wr("aria-label",n.title),rt(),ci(" ",n.title," "),rt(),mt("ngIf",n.duplicatesCount)}}function yq(e,t){if(1&e&&yt(0,"div",7),2&e){const n=Zn();ai(n.options.messageClass),mt("innerHTML",n.message,Gd)}}function vq(e,t){if(1&e&&(xe(0,"div",8),Fe(1),Se()),2&e){const n=Zn();ai(n.options.messageClass),wr("aria-label",n.message),rt(),ci(" ",n.message," ")}}function wq(e,t){if(1&e&&(xe(0,"div"),yt(1,"div",9),Se()),2&e){const n=Zn();rt(),Is("width",n.width+"%")}}class Aq{_attachedHost;component;viewContainerRef;injector;constructor(t,n){this.component=t,this.injector=n}attach(t,n){return this._attachedHost=t,t.attach(this,n)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Sq{_attachedPortal;_disposeFn;attach(t,n){return this._attachedPortal=t,this.attachComponentPortal(t,n)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}class Iq{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new en;_activate=new en;_manualClose=new en;_resetTimeout=new en;_countDuplicate=new en;constructor(t){this._overlayRef=t}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(t,n){t&&this._resetTimeout.next(),n&&this._countDuplicate.next(++this.duplicatesCount)}}class _0{toastId;config;message;title;toastType;toastRef;_onTap=new en;_onAction=new en;constructor(t,n,r,o,i,s){this.toastId=t,this.config=n,this.message=r,this.title=o,this.toastType=i,this.toastRef=s,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const P8=new je("ToastConfig");class Tq extends Sq{_hostDomElement;_componentFactoryResolver;_appRef;constructor(t,n,r){super(),this._hostDomElement=t,this._componentFactoryResolver=n,this._appRef=r}attachComponentPortal(t,n){const r=this._componentFactoryResolver.resolveComponentFactory(t.component);let o;return o=r.create(t.injector),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.detachView(o.hostView),o.destroy()}),n?this._hostDomElement.insertBefore(this._getComponentRootNode(o),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(o)),o}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Mq=(()=>{class e{_document=Pe(Yn);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const n=this._document.createElement("div");n.classList.add("overlay-container"),n.setAttribute("aria-live","polite"),this._document.body.appendChild(n),this._containerElement=n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class Nq{_portalHost;constructor(t){this._portalHost=t}attach(t,n=!0){return this._portalHost.attach(t,n)}detach(){return this._portalHost.detach()}}let Rq=(()=>{class e{_overlayContainer=Pe(Mq);_componentFactoryResolver=Pe(wl);_appRef=Pe(li);_document=Pe(Yn);_paneElements=new Map;create(n,r){return this._createOverlayRef(this.getPaneElement(n,r))}getPaneElement(n="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[n]||(this._paneElements.get(r)[n]=this._createPaneElement(n,r)),this._paneElements.get(r)[n]}_createPaneElement(n,r){const o=this._document.createElement("div");return o.id="toast-container",o.classList.add(n),o.classList.add("toast-container"),r?r.getContainerElement().appendChild(o):this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalHost(n){return new Tq(n,this._componentFactoryResolver,this._appRef)}_createOverlayRef(n){return new Nq(this._createPortalHost(n))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),J1=(()=>{class e{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(n,r,o,i,s){this.overlay=r,this._injector=o,this.sanitizer=i,this.ngZone=s,this.toastrConfig={...n.default,...n.config},n.config.iconClasses&&(this.toastrConfig.iconClasses={...n.default.iconClasses,...n.config.iconClasses})}show(n,r,o={},i=""){return this._preBuildNotification(i,n,r,this.applyConfig(o))}success(n,r,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",n,r,this.applyConfig(o))}error(n,r,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",n,r,this.applyConfig(o))}info(n,r,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",n,r,this.applyConfig(o))}warning(n,r,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",n,r,this.applyConfig(o))}clear(n){for(const r of this.toasts)if(void 0!==n){if(r.toastId===n)return void r.toastRef.manualClose()}else r.toastRef.manualClose()}remove(n){const r=this._findToast(n);if(!r||(r.activeToast.toastRef.close(),this.toasts.splice(r.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(n,r,o,i)):this._buildNotification(n,r,o,i)}_buildNotification(n,r,o,i){if(!i.toastComponent)throw new Error("toastComponent required");const s=this.findDuplicate(o,r,this.toastrConfig.resetTimeoutOnDuplicate&&i.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&o||r)&&this.toastrConfig.preventDuplicates&&null!==s)return s;this.previousToastMessage=r;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const c=this.overlay.create(i.positionClass,this.overlayContainer);this.index=this.index+1;let l=r;r&&i.enableHtml&&(l=this.sanitizer.sanitize(Fr.HTML,r));const u=new Iq(c),d=new _0(this.index,i,l,o,n,u),v=qn.create({providers:[{provide:_0,useValue:d}],parent:this._injector}),E=new Aq(i.toastComponent,v),A=c.attach(E,i.newestOnTop);u.componentInstance=A.instance;const U={toastId:this.index,title:o||"",message:r||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:A};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{U.toastRef.activate()})),this.toasts.push(U),U}static \u0275fac=function(r){return new(r||e)(We(P8),We(Rq),We(qn),We(zA),We(Ct))};static \u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Fq={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class e{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(n,r,o){this.toastrService=n,this.toastPackage=r,this.ngZone=o,this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(i=>{this.duplicatesCount=i}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const n=(new Date).getTime();this.width=(this.hideTime-n)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(n,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(n),r)):this.timeout=setTimeout(()=>n(),r)}outsideInterval(n,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(n),r)):this.intervalId=setInterval(()=>n(),r)}runInsideAngular(n){this.ngZone?this.ngZone.run(()=>n()):n()}static \u0275fac=function(r){return new(r||e)(be(J1),be(_0),be(Ct))};static \u0275cmp=Tr({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(r,o){1&r&&St("click",function(){return o.tapToast()})("mouseenter",function(){return o.stickAround()})("mouseleave",function(){return o.delayedHideToast()}),2&r&&(xm("@flyInOut",o.state),ai(o.toastClasses),Is("display",o.displayStyle))},standalone:!0,features:[Of],attrs:F8,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(r,o){1&r&&Sn(0,pq,3,0,"button",0)(1,mq,3,5,"div",1)(2,yq,1,3,"div",2)(3,vq,2,4,"div",3)(4,wq,2,2,"div",4),2&r&&(mt("ngIf",o.options.closeButton),rt(),mt("ngIf",o.title),rt(),mt("ngIf",o.message&&o.options.enableHtml),rt(),mt("ngIf",o.message&&!o.options.enableHtml),rt(),mt("ngIf",o.options.progressBar))},dependencies:[zi],encapsulation:2,data:{animation:[cq("flyInOut",[Y1("inactive",ju({opacity:0})),Y1("active",ju({opacity:1})),Y1("removed",ju({opacity:0})),N8("inactive => active",M8("{{ easeTime }}ms {{ easing }}")),N8("active => removed",M8("{{ easeTime }}ms {{ easing }}"))])]}})}return e})()},Oq=(e={})=>function Ad(e){return{\u0275providers:e}}([{provide:P8,useValue:{default:Fq,config:e}}]);let Pq=(()=>{class e{static forRoot(n={}){return{ngModule:e,providers:[Oq(n)]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=un({type:e});static \u0275inj=on({})}return e})();function kq(e,t){if(1&e){const n=Wa();On(),Ur(),xe(0,"button",8),St("click",function(){return Mi(n),Ni(Zn().share())}),On(),xe(1,"svg",5),yt(2,"path",6)(3,"path",14)(4,"path",15)(5,"path",16)(6,"path",17)(7,"path",18),Se(),Fe(8," Share "),Se()}}const Bq=()=>["/home"],Lq=[{path:"home",component:sq},{path:"generate",component:qK},{path:"open",component:IK},{path:"opened",component:TK},{path:"share",component:(()=>{class e{constructor(n,r){this.fileExporterService=n,this.toastrService=r,this.sharable=!1}ngOnInit(){this.renderStateToCanvas(),this.loadSharable()}loadSharable(){this.fileExporterService.isSharable().then(n=>this.sharable=n)}renderStateToCanvas(){const n=history.state.encrypted,r=history.state.title,o=n?String(n):"",i=document.createElement("canvas");r?(i.setAttribute("height","750px"),i.setAttribute("width","500px")):(i.setAttribute("height","500px"),i.setAttribute("width","500px")),(0,aq.gH)(i,o,{margin:5},s=>{if(s)return void console.error(s);const a=i.getContext("2d");a&&r&&(a.fillStyle="#000",a.font='15px "Segoe UI", Roboto, "Noto Sans", Helvetica, Arial, sans-serif',a.fillText(r,17,15)),setTimeout(()=>this.src=i.toDataURL("image/png"))})}generateFileName(){let n="private qrcode.png";return history.state.title&&(n=`private qrcode - ${history.state.title.replace(/[,<>:"/\\|?*]/g,"")} - ${(new Date).getTime()}.png`),n}save(){var n=this;return(0,h.c)(function*(){const r=n.src;return r&&(yield n.fileExporterService.save(r,n.generateFileName()),n.toastrService.success("File saved.")),Promise.resolve()})()}share(){var n=this;return(0,h.c)(function*(){const r=n.src;return r?n.fileExporterService.share(r,n.generateFileName()):Promise.resolve()})()}static#e=this.\u0275fac=function(r){return new(r||e)(be(Z1),be(J1))};static#t=this.\u0275cmp=Tr({type:e,selectors:[["app-share-qrcode"]],decls:19,vars:4,consts:[[1,"space-between"],[3,"src"],["qrcode",""],[1,"buttons"],["type","button",1,"btn",3,"routerLink"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1"],["type","button",1,"btn","btn-primary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round",1,"icon","icon-tabler","icon-tabler-device-floppy"],["d","M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"],["d","M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"],["d","M14 4l0 4l-6 0l0 -4"],["class","btn btn-primary","type","button",3,"click",4,"ngIf"],["d","M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"],["d","M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"],["d","M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"],["d","M8.7 10.7l6.6 -3.4"],["d","M8.7 13.3l6.6 3.4"]],template:function(r,o){1&r&&(xe(0,"h1"),Fe(1,"Private QRCode"),Se(),xe(2,"div",0),yt(3,"img",1,2),Se(),xe(5,"div",3)(6,"button",4),On(),xe(7,"svg",5),yt(8,"path",6)(9,"path",7),Se(),Fe(10," Back "),Se(),Ur(),xe(11,"button",8),St("click",function(){return o.save()}),On(),xe(12,"svg",9),yt(13,"path",6)(14,"path",10)(15,"path",11)(16,"path",12),Se(),Fe(17," Save "),Se(),Sn(18,kq,9,0,"button",13),Se()),2&r&&(rt(3),mt("src",o.src,og),rt(3),mt("routerLink",Om(3,Bq)),rt(12),mt("ngIf",o.sharable))},dependencies:[zi,Os],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-around}@media only screen and (max-width: 350px){.buttons[_ngcontent-%COMP%]{flex-direction:column}}.space-between[_ngcontent-%COMP%]{flex:1 1 0}img[_ngcontent-%COMP%]{margin:1rem auto;display:block;background-color:#000;width:100%;max-width:450px}"]})}return e})()},{path:"",redirectTo:"home",pathMatch:"full"}];let Vq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({imports:[Ps.forRoot(Lq,{useHash:!0}),Ps]})}return e})(),Uq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Tr({type:e,selectors:[["app-root"]],decls:2,vars:0,template:function(r,o){1&r&&yt(0,"modal-outlet")(1,"router-outlet")},dependencies:[Wy,RK]})}return e})(),Hq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({imports:[No,W1,Ps,Cv]})}return e})(),jq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({imports:[No,Ps]})}return e})(),$q=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({providers:[T8],imports:[No,Ps,W1,W1]})}return e})(),zq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({providers:[Z1],imports:[No]})}return e})(),Gq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({imports:[No,Ps,zq]})}return e})(),Wq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({providers:[fT,Av,z1,g8],imports:[No]})}return e})(),Kq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({imports:[No,Cv]})}return e})(),qq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({imports:[No]})}return e})(),Qq=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({imports:[No,Cv,Ps]})}return e})();function k8(e){return new he(3e3,!1)}function cs(e){switch(e.length){case 0:return new $u;case 1:return e[0];default:return new R8(e)}}function B8(e,t,n=new Map,r=new Map){const o=[],i=[];let s=-1,a=null;if(t.forEach(c=>{const l=c.get("offset"),u=l==s,d=u&&a||new Map;c.forEach((g,v)=>{let E=v,A=g;if("offset"!==v)switch(E=e.normalizePropertyName(E,o),A){case"!":A=n.get(v);break;case Di:A=r.get(v);break;default:A=e.normalizeStyleValue(v,E,A,o)}d.set(E,A)}),u||i.push(d),a=d,s=l}),o.length)throw function vQ(e){return new he(3502,!1)}();return i}function ew(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&tw(n,"start",e)));break;case"done":e.onDone(()=>r(n&&tw(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&tw(n,"destroy",e)))}}function tw(e,t,n){const i=nw(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,n.totalTime??e.totalTime,!!n.disabled),s=e._data;return null!=s&&(i._data=s),i}function nw(e,t,n,r,o="",i=0,s){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:o,totalTime:i,disabled:!!s}}function Br(e,t,n){let r=e.get(t);return r||e.set(t,r=n),r}function L8(e){const t=e.indexOf(":");return[e.substring(1,t),e.slice(t+1)]}const MQ=typeof document>"u"?null:document.documentElement;function rw(e){const t=e.parentNode||e.host||null;return t===MQ?null:t}let qs=null,V8=!1;function U8(e,t){for(;t;){if(t===e)return!0;t=rw(t)}return!1}function H8(e,t,n){if(n)return Array.from(e.querySelectorAll(t));const r=e.querySelector(t);return r?[r]:[]}let ow=(()=>{class e{validateStyleProperty(n){return function RQ(e){qs||(qs=function FQ(){return typeof document<"u"?document.body:null}()||{},V8=!!qs.style&&"WebkitAppearance"in qs.style);let t=!0;return qs.style&&!function NQ(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in qs.style,!t&&V8&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in qs.style)),t}(n)}matchesElement(n,r){return!1}containsElement(n,r){return U8(n,r)}getParentElement(n){return rw(n)}query(n,r,o){return H8(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,i,s,a=[],c){return new $u(o,i)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})();class iw{static#e=this.NOOP=new ow}class sw{}const PQ=1e3,aw="ng-enter",E0="ng-leave",b0="ng-trigger",x0=".ng-trigger",$8="ng-animating",cw=".ng-animating";function Ai(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:lw(parseFloat(t[1]),t[2])}function lw(e,t){return"s"===t?e*PQ:e}function C0(e,t,n){return e.hasOwnProperty("duration")?e:function BQ(e,t,n){let o,i=0,s="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(k8()),{duration:0,delay:0,easing:""};o=lw(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(i=lw(parseFloat(c),a[4]));const l=a[5];l&&(s=l)}else o=e;if(!n){let a=!1,c=t.length;o<0&&(t.push(function Zq(){return new he(3100,!1)}()),a=!0),i<0&&(t.push(function Yq(){return new he(3101,!1)}()),a=!0),a&&t.splice(c,0,k8())}return{duration:o,delay:i,easing:s}}(e,t,n)}function Ko(e,t,n){t.forEach((r,o)=>{const i=dw(o);n&&!n.has(o)&&n.set(o,e.style[i]),e.style[i]=r})}function Qs(e,t){t.forEach((n,r)=>{const o=dw(r);e.style[o]=""})}function zu(e){return Array.isArray(e)?1==e.length?e[0]:function lq(e,t=null){return{type:ot.Sequence,steps:e,options:t}}(e):e}const uw=new RegExp("{{\\s*(.+?)\\s*}}","g");function G8(e){let t=[];if("string"==typeof e){let n;for(;n=uw.exec(e);)t.push(n[1]);uw.lastIndex=0}return t}function Gu(e,t,n){const r=`${e}`,o=r.replace(uw,(i,s)=>{let a=t[s];return null==a&&(n.push(function Jq(e){return new he(3003,!1)}()),a=""),a.toString()});return o==r?e:o}const UQ=/-+([a-z0-9])/g;function dw(e){return e.replace(UQ,(...t)=>t[1].toUpperCase())}function Lr(e,t,n){switch(t.type){case ot.Trigger:return e.visitTrigger(t,n);case ot.State:return e.visitState(t,n);case ot.Transition:return e.visitTransition(t,n);case ot.Sequence:return e.visitSequence(t,n);case ot.Group:return e.visitGroup(t,n);case ot.Animate:return e.visitAnimate(t,n);case ot.Keyframes:return e.visitKeyframes(t,n);case ot.Style:return e.visitStyle(t,n);case ot.Reference:return e.visitReference(t,n);case ot.AnimateChild:return e.visitAnimateChild(t,n);case ot.AnimateRef:return e.visitAnimateRef(t,n);case ot.Query:return e.visitQuery(t,n);case ot.Stagger:return e.visitStagger(t,n);default:throw function eQ(e){return new he(3004,!1)}()}}function fw(e,t){return window.getComputedStyle(e)[t]}const $Q=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class W8 extends sw{normalizePropertyName(t,n){return dw(t)}normalizeStyleValue(t,n,r,o){let i="";const s=r.toString().trim();if($Q.has(n)&&0!==r&&"0"!==r)if("number"==typeof r)i="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function tQ(e,t){return new he(3005,!1)}())}return s+i}}const D0="*";const A0=new Set(["true","1"]),S0=new Set(["false","0"]);function K8(e,t){const n=A0.has(e)||S0.has(e),r=A0.has(t)||S0.has(t);return(o,i)=>{let s=e==D0||e==o,a=t==D0||t==i;return!s&&n&&"boolean"==typeof o&&(s=o?A0.has(e):S0.has(e)),!a&&r&&"boolean"==typeof i&&(a=i?A0.has(t):S0.has(t)),s&&a}}const KQ=new RegExp("s*:selfs*,?","g");function hw(e,t,n,r){return new qQ(e).build(t,n,r)}class qQ{constructor(t){this._driver=t}build(t,n,r){const o=new YQ(n);return this._resetContextStyleTimingState(o),Lr(this,zu(t),o)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,n){let r=n.queryCount=0,o=n.depCount=0;const i=[],s=[];return"@"==t.name.charAt(0)&&n.errors.push(function nQ(){return new he(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==ot.State){const c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,i.push(this.visitState(c,n))}),c.name=l}else if(a.type==ot.Transition){const c=this.visitTransition(a,n);r+=c.queryCount,o+=c.depCount,s.push(c)}else n.errors.push(function rQ(){return new he(3007,!1)}())}),{type:ot.Trigger,name:t.name,states:i,transitions:s,queryCount:r,depCount:o,options:null}}visitState(t,n){const r=this.visitStyle(t.styles,n),o=t.options&&t.options.params||null;if(r.containsDynamicStyles){const i=new Set,s=o||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{G8(c).forEach(l=>{s.hasOwnProperty(l)||i.add(l)})})}),i.size&&n.errors.push(function oQ(e,t){return new he(3008,!1)}(0,i.values()))}return{type:ot.State,name:t.name,style:r,options:o?{params:o}:null}}visitTransition(t,n){n.queryCount=0,n.depCount=0;const r=Lr(this,zu(t.animation),n),o=function zQ(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(r=>function GQ(e,t,n){if(":"==e[0]){const c=function WQ(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r) *"}}(e,n);if("function"==typeof c)return void t.push(c);e=c}const r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(function hQ(e){return new he(3015,!1)}()),t;const o=r[1],i=r[2],s=r[3];t.push(K8(o,s)),"<"==i[0]&&(o!=D0||s!=D0)&&t.push(K8(s,o))}(r,n,t)):n.push(e),n}(t.expr,n.errors);return{type:ot.Transition,matchers:o,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:Zs(t.options)}}visitSequence(t,n){return{type:ot.Sequence,steps:t.steps.map(r=>Lr(this,r,n)),options:Zs(t.options)}}visitGroup(t,n){const r=n.currentTime;let o=0;const i=t.steps.map(s=>{n.currentTime=r;const a=Lr(this,s,n);return o=Math.max(o,n.currentTime),a});return n.currentTime=o,{type:ot.Group,steps:i,options:Zs(t.options)}}visitAnimate(t,n){const r=function JQ(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return pw(C0(e,t).duration,0,"");const n=e;if(n.split(/\s+/).some(i=>"{"==i.charAt(0)&&"{"==i.charAt(1))){const i=pw(0,0,"");return i.dynamic=!0,i.strValue=n,i}const o=C0(n,t);return pw(o.duration,o.delay,o.easing)}(t.timings,n.errors);n.currentAnimateTimings=r;let o,i=t.styles?t.styles:ju({});if(i.type==ot.Keyframes)o=this.visitKeyframes(i,n);else{let s=t.styles,a=!1;if(!s){a=!0;const l={};r.easing&&(l.easing=r.easing),s=ju(l)}n.currentTime+=r.duration+r.delay;const c=this.visitStyle(s,n);c.isEmptyStep=a,o=c}return n.currentAnimateTimings=null,{type:ot.Animate,timings:r,style:o,options:null}}visitStyle(t,n){const r=this._makeStyleAst(t,n);return this._validateStyleAst(r,n),r}_makeStyleAst(t,n){const r=[],o=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of o)"string"==typeof a?a===Di?r.push(a):n.errors.push(new he(3002,!1)):r.push(new Map(Object.entries(a)));let i=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!i))for(let c of a.values())if(c.toString().indexOf("{{")>=0){i=!0;break}}),{type:ot.Style,styles:r,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,n){const r=n.currentAnimateTimings;let o=n.currentTime,i=n.currentTime;r&&i>0&&(i-=r.duration+r.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,c)=>{const l=n.collectedStyles.get(n.currentQuerySelector),u=l.get(c);let d=!0;u&&(i!=o&&i>=u.startTime&&o<=u.endTime&&(n.errors.push(function sQ(e,t,n,r,o){return new he(3010,!1)}()),d=!1),i=u.startTime),d&&l.set(c,{startTime:i,endTime:o}),n.options&&function VQ(e,t,n){const r=t.params||{},o=G8(e);o.length&&o.forEach(i=>{r.hasOwnProperty(i)||n.push(function Xq(e){return new he(3001,!1)}())})}(a,n.options,n.errors)})})}visitKeyframes(t,n){const r={type:ot.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function aQ(){return new he(3011,!1)}()),r;let i=0;const s=[];let a=!1,c=!1,l=0;const u=t.steps.map(q=>{const K=this._makeStyleAst(q,n);let se=null!=K.offset?K.offset:function XQ(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(n=>{if(n instanceof Map&&n.has("offset")){const r=n;t=parseFloat(r.get("offset")),r.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const n=e;t=parseFloat(n.get("offset")),n.delete("offset")}return t}(K.styles),le=0;return null!=se&&(i++,le=K.offset=se),c=c||le<0||le>1,a=a||le0&&i{const se=g>0?K==v?1:g*K:s[K],le=se*U;n.currentTime=E+A.delay+le,A.duration=le,this._validateStyleAst(q,n),q.offset=se,r.styles.push(q)}),r}visitReference(t,n){return{type:ot.Reference,animation:Lr(this,zu(t.animation),n),options:Zs(t.options)}}visitAnimateChild(t,n){return n.depCount++,{type:ot.AnimateChild,options:Zs(t.options)}}visitAnimateRef(t,n){return{type:ot.AnimateRef,animation:this.visitReference(t.animation,n),options:Zs(t.options)}}visitQuery(t,n){const r=n.currentQuerySelector,o=t.options||{};n.queryCount++,n.currentQuery=t;const[i,s]=function QQ(e){const t=!!e.split(/\s*,\s*/).find(n=>":self"==n);return t&&(e=e.replace(KQ,"")),e=e.replace(/@\*/g,x0).replace(/@\w+/g,n=>x0+"-"+n.slice(1)).replace(/:animating/g,cw),[e,t]}(t.selector);n.currentQuerySelector=r.length?r+" "+i:i,Br(n.collectedStyles,n.currentQuerySelector,new Map);const a=Lr(this,zu(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:ot.Query,selector:i,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Zs(t.options)}}visitStagger(t,n){n.currentQuery||n.errors.push(function dQ(){return new he(3013,!1)}());const r="full"===t.timings?{duration:0,delay:0,easing:"full"}:C0(t.timings,n.errors,!0);return{type:ot.Stagger,animation:Lr(this,zu(t.animation),n),timings:r,options:null}}}class YQ{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Zs(e){return e?(e={...e}).params&&(e.params=function ZQ(e){return e?{...e}:null}(e.params)):e={},e}function pw(e,t,n){return{duration:e,delay:t,easing:n}}function gw(e,t,n,r,o,i,s=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:s,subTimeline:a}}class I0{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,n){let r=this._map.get(t);r||this._map.set(t,r=[]),r.push(...n)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const nZ=new RegExp(":enter","g"),oZ=new RegExp(":leave","g");function mw(e,t,n,r,o,i=new Map,s=new Map,a,c,l=[]){return(new iZ).buildKeyframes(e,t,n,r,o,i,s,a,c,l)}class iZ{buildKeyframes(t,n,r,o,i,s,a,c,l,u=[]){l=l||new I0;const d=new yw(t,n,l,o,i,u,[]);d.options=c;const g=c.delay?Ai(c.delay):0;d.currentTimeline.delayNextStep(g),d.currentTimeline.setStyles([s],null,d.errors,c),Lr(this,r,d);const v=d.timelines.filter(E=>E.containsAnimation());if(v.length&&a.size){let E;for(let A=v.length-1;A>=0;A--){const U=v[A];if(U.element===n){E=U;break}}E&&!E.allowOnlyTimelineStyles()&&E.setStyles([a],null,d.errors,c)}return v.length?v.map(E=>E.buildKeyframes()):[gw(n,[],[],[],0,g,"",!1)]}visitTrigger(t,n){}visitState(t,n){}visitTransition(t,n){}visitAnimateChild(t,n){const r=n.subInstructions.get(n.element);if(r){const o=n.createSubContext(t.options),i=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,o,o.options);i!=s&&n.transformIntoNewTimeline(s)}n.previousNode=t}visitAnimateRef(t,n){const r=n.createSubContext(t.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],n,r),this.visitReference(t.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=t}_applyAnimationRefDelays(t,n,r){for(const o of t){const i=o?.delay;if(i){const s="number"==typeof i?i:Ai(Gu(i,o?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(t,n,r){let i=n.currentTimeline.currentTime;const s=null!=r.duration?Ai(r.duration):null,a=null!=r.delay?Ai(r.delay):null;return 0!==s&&t.forEach(c=>{const l=n.appendInstructionToTimeline(c,s,a);i=Math.max(i,l.duration+l.delay)}),i}visitReference(t,n){n.updateOptions(t.options,!0),Lr(this,t.animation,n),n.previousNode=t}visitSequence(t,n){const r=n.subContextCount;let o=n;const i=t.options;if(i&&(i.params||i.delay)&&(o=n.createSubContext(i),o.transformIntoNewTimeline(),null!=i.delay)){o.previousNode.type==ot.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=T0);const s=Ai(i.delay);o.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Lr(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),n.previousNode=t}visitGroup(t,n){const r=[];let o=n.currentTimeline.currentTime;const i=t.options&&t.options.delay?Ai(t.options.delay):0;t.steps.forEach(s=>{const a=n.createSubContext(t.options);i&&a.delayNextStep(i),Lr(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(o),n.previousNode=t}_visitTiming(t,n){if(t.dynamic){const r=t.strValue;return C0(n.params?Gu(r,n.params,n.errors):r,n.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,n){const r=n.currentAnimateTimings=this._visitTiming(t.timings,n),o=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),o.snapshotCurrentStyles());const i=t.style;i.type==ot.Keyframes?this.visitKeyframes(i,n):(n.incrementTime(r.duration),this.visitStyle(i,n),o.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}visitStyle(t,n){const r=n.currentTimeline,o=n.currentAnimateTimings;!o&&r.hasCurrentStyleProperties()&&r.forwardFrame();const i=o&&o.easing||t.easing;t.isEmptyStep?r.applyEmptyStep(i):r.setStyles(t.styles,i,n.errors,n.options),n.previousNode=t}visitKeyframes(t,n){const r=n.currentAnimateTimings,o=n.currentTimeline.duration,i=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,t.styles.forEach(c=>{a.forwardTime((c.offset||0)*i),a.setStyles(c.styles,c.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(o+i),n.previousNode=t}visitQuery(t,n){const r=n.currentTimeline.currentTime,o=t.options||{},i=o.delay?Ai(o.delay):0;i&&(n.previousNode.type===ot.Style||0==r&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=T0);let s=r;const a=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,n.errors);n.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{n.currentQueryIndex=u;const d=n.createSubContext(t.options,l);i&&d.delayNextStep(i),l===n.element&&(c=d.currentTimeline),Lr(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}visitStagger(t,n){const r=n.parentContext,o=n.currentTimeline,i=t.timings,s=Math.abs(i.duration),a=s*(n.currentQueryTotal-1);let c=s*n.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime}const u=n.currentTimeline;c&&u.delayNextStep(c);const d=u.currentTime;Lr(this,t.animation,n),n.previousNode=t,r.currentStaggerTime=o.currentTime-d+(o.startTime-r.currentTimeline.startTime)}}const T0={};class yw{constructor(t,n,r,o,i,s,a,c){this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=o,this._leaveClassName=i,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=T0,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new M0(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,n){if(!t)return;const r=t;let o=this.options;null!=r.duration&&(o.duration=Ai(r.duration)),null!=r.delay&&(o.delay=Ai(r.delay));const i=r.params;if(i){let s=o.params;s||(s=this.options.params={}),Object.keys(i).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=Gu(i[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const n=this.options.params;if(n){const r=t.params={};Object.keys(n).forEach(o=>{r[o]=n[o]})}}return t}createSubContext(t=null,n,r){const o=n||this.element,i=new yw(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=T0,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,n,r){const o={duration:n??t.duration,delay:this.currentTimeline.currentTime+(r??0)+t.delay,easing:""},i=new sZ(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,o,t.stretchStartingKeyframe);return this.timelines.push(i),o}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,n,r,o,i,s){let a=[];if(o&&a.push(this.element),t.length>0){t=(t=t.replace(nZ,"."+this._enterClassName)).replace(oZ,"."+this._leaveClassName);let l=this._driver.query(this.element,t,1!=r);0!==r&&(l=r<0?l.slice(l.length+r,l.length):l.slice(0,r)),a.push(...l)}return!i&&0==a.length&&s.push(function fQ(e){return new he(3014,!1)}()),a}}class M0{constructor(t,n,r,o){this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const n=1===this._keyframes.size&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,n){return this.applyStylesToKeyframe(),new M0(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,n){this._localTimelineStyles.set(t,n),this._globalTimelineStyles.set(t,n),this._styleSummary.set(t,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||Di),this._currentKeyframe.set(n,Di);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,n,r,o){n&&this._previousKeyframe.set("easing",n);const i=o&&o.params||{},s=function aZ(e,t){const n=new Map;let r;return e.forEach(o=>{if("*"===o){r??=t.keys();for(let i of r)n.set(i,Di)}else for(let[i,s]of o)n.set(i,s)}),n}(t,this._globalTimelineStyles);for(let[a,c]of s){const l=Gu(c,i,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Di),this._updateStyle(a,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,n)=>{this._currentKeyframe.set(n,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,t)}))}snapshotCurrentStyles(){for(let[t,n]of this._localTimelineStyles)this._pendingStyles.set(t,n),this._updateStyle(t,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let n in this._currentKeyframe)t.push(n);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((n,r)=>{const o=this._styleSummary.get(r);(!o||n.time>o.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,c)=>{const l=new Map([...this._backFill,...a]);l.forEach((u,d)=>{"!"===u?t.add(d):u===Di&&n.add(d)}),r||l.set("offset",c/this.duration),o.push(l)});const i=[...t.values()],s=[...n.values()];if(r){const a=o[0],c=new Map(a);a.set("offset",0),c.set("offset",1),o=[a,c]}return gw(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)}}class sZ extends M0{constructor(t,n,r,o,i,s,a=!1){super(t,n,s.delay),this.keyframes=r,this.preStyleProps=o,this.postStyleProps=i,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:n,duration:r,easing:o}=this.timings;if(this._stretchStartingKeyframe&&n){const i=[],s=r+n,a=n/s,c=new Map(t[0]);c.set("offset",0),i.push(c);const l=new Map(t[0]);l.set("offset",Z8(a)),i.push(l);const u=t.length-1;for(let d=1;d<=u;d++){let g=new Map(t[d]);const v=g.get("offset");g.set("offset",Z8((n+v*r)/s)),i.push(g)}r=s,n=0,o="",t=i}return gw(this.element,t,this.preStyleProps,this.postStyleProps,r,n,o,!0)}}function Z8(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}function Y8(e,t,n,r,o,i,s,a,c,l,u,d,g){return{type:0,element:e,triggerName:t,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:g}}const vw={};class X8{constructor(t,n,r){this._triggerName=t,this.ast=n,this._stateStyles=r}match(t,n,r,o){return function cZ(e,t,n,r,o){return e.some(i=>i(t,n,r,o))}(this.ast.matchers,t,n,r,o)}buildStyles(t,n,r){let o=this._stateStyles.get("*");return void 0!==t&&(o=this._stateStyles.get(t?.toString())||o),o?o.buildStyles(n,r):new Map}build(t,n,r,o,i,s,a,c,l,u){const d=[],g=this.ast.options&&this.ast.options.params||vw,E=this.buildStyles(r,a&&a.params||vw,d),A=c&&c.params||vw,U=this.buildStyles(o,A,d),q=new Set,K=new Map,se=new Map,le="void"===o,ge={params:J8(A,g),delay:this.ast.options?.delay},_e=u?[]:mw(t,n,this.ast.animation,i,s,E,U,ge,l,d);let Ne=0;return _e.forEach(Oe=>{Ne=Math.max(Oe.duration+Oe.delay,Ne)}),d.length?Y8(n,this._triggerName,r,o,le,E,U,[],[],K,se,Ne,d):(_e.forEach(Oe=>{const Ke=Oe.element,$e=Br(K,Ke,new Set);Oe.preStyleProps.forEach(Ze=>$e.add(Ze));const ze=Br(se,Ke,new Set);Oe.postStyleProps.forEach(Ze=>ze.add(Ze)),Ke!==n&&q.add(Ke)}),Y8(n,this._triggerName,r,o,le,E,U,_e,[...q.values()],K,se,Ne))}}function J8(e,t){const n={...t};return Object.entries(e).forEach(([r,o])=>{null!=o&&(n[r]=o)}),n}class lZ{constructor(t,n,r){this.styles=t,this.defaultParams=n,this.normalizer=r}buildStyles(t,n){const r=new Map,o=J8(t,this.defaultParams);return this.styles.styles.forEach(i=>{"string"!=typeof i&&i.forEach((s,a)=>{s&&(s=Gu(s,o,n));const c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),r.set(a,s)})}),r}}class dZ{constructor(t,n,r){this.name=t,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states=new Map,n.states.forEach(o=>{this.states.set(o.name,new lZ(o.style,o.options&&o.options.params||{},r))}),e3(this.states,"true","1"),e3(this.states,"false","0"),n.transitions.forEach(o=>{this.transitionFactories.push(new X8(t,o,this.states))}),this.fallbackTransition=function fZ(e,t,n){return new X8(e,{type:ot.Transition,animation:{type:ot.Sequence,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,n,r,o){return this.transitionFactories.find(s=>s.match(t,n,r,o))||null}matchStyles(t,n,r){return this.fallbackTransition.buildStyles(t,n,r)}}function e3(e,t,n){e.has(t)?e.has(n)||e.set(n,e.get(t)):e.has(n)&&e.set(t,e.get(n))}const hZ=new I0;class pZ{constructor(t,n,r){this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,n){const r=[],i=hw(this._driver,n,r,[]);if(r.length)throw function wQ(e){return new he(3503,!1)}();this._animations.set(t,i)}_buildPlayer(t,n,r){const o=t.element,i=B8(this._normalizer,t.keyframes,n,r);return this._driver.animate(o,i,t.duration,t.delay,t.easing,[],!0)}create(t,n,r={}){const o=[],i=this._animations.get(t);let s;const a=new Map;if(i?(s=mw(this._driver,n,i,aw,E0,new Map,new Map,r,hZ,o),s.forEach(u=>{const d=Br(a,u.element,new Map);u.postStyleProps.forEach(g=>d.set(g,null))})):(o.push(function _Q(){return new he(3300,!1)}()),s=[]),o.length)throw function EQ(e){return new he(3504,!1)}();a.forEach((u,d)=>{u.forEach((g,v)=>{u.set(v,this._driver.computeStyle(d,v,Di))})});const l=cs(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(t,l),l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}destroy(t){const n=this._getPlayer(t);n.destroy(),this._playersById.delete(t);const r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(t){const n=this._playersById.get(t);if(!n)throw function bQ(e){return new he(3301,!1)}();return n}listen(t,n,r,o){const i=nw(n,"","","");return ew(this._getPlayer(t),r,i,o),()=>{}}command(t,n,r,o){if("register"==r)return void this.register(t,o[0]);if("create"==r)return void this.create(t,n,o[0]||{});const i=this._getPlayer(t);switch(r){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(t)}}}const t3="ng-animate-queued",ww="ng-animate-disabled",wZ=[],n3={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_Z={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},yo="__ng_removed";class _w{get params(){return this.options.params}constructor(t,n=""){this.namespaceId=n;const r=t&&t.hasOwnProperty("value");if(this.value=function CZ(e){return e??null}(r?t.value:t),r){const{value:i,...s}=t;this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){const n=t.params;if(n){const r=this.options.params;Object.keys(n).forEach(o=>{null==r[o]&&(r[o]=n[o])})}}}const Wu="void",Ew=new _w(Wu);class EZ{constructor(t,n,r){this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Jr(n,this._hostClassName)}listen(t,n,r,o){if(!this._triggers.has(n))throw function xQ(e,t){return new he(3302,!1)}();if(null==r||0==r.length)throw function CQ(e){return new he(3303,!1)}();if(!function DZ(e){return"start"==e||"done"==e}(r))throw function DQ(e,t){return new he(3400,!1)}();const i=Br(this._elementListeners,t,[]),s={name:n,phase:r,callback:o};i.push(s);const a=Br(this._engine.statesByElement,t,new Map);return a.has(n)||(Jr(t,b0),Jr(t,b0+"-"+n),a.set(n,Ew)),()=>{this._engine.afterFlush(()=>{const c=i.indexOf(s);c>=0&&i.splice(c,1),this._triggers.has(n)||a.delete(n)})}}register(t,n){return!this._triggers.has(t)&&(this._triggers.set(t,n),!0)}_getTrigger(t){const n=this._triggers.get(t);if(!n)throw function AQ(e){return new he(3401,!1)}();return n}trigger(t,n,r,o=!0){const i=this._getTrigger(n),s=new bw(this.id,n,t);let a=this._engine.statesByElement.get(t);a||(Jr(t,b0),Jr(t,b0+"-"+n),this._engine.statesByElement.set(t,a=new Map));let c=a.get(n);const l=new _w(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(n,l),c||(c=Ew),l.value!==Wu&&c.value===l.value){if(!function IZ(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let o=0;o{Qs(t,U),Ko(t,q)})}return}const g=Br(this._engine.playersByElement,t,[]);g.forEach(A=>{A.namespaceId==this.id&&A.triggerName==n&&A.queued&&A.destroy()});let v=i.matchTransition(c.value,l.value,t,l.params),E=!1;if(!v){if(!o)return;v=i.fallbackTransition,E=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:v,fromState:c,toState:l,player:s,isFallbackTransition:E}),E||(Jr(t,t3),s.onStart(()=>{Rc(t,t3)})),s.onDone(()=>{let A=this.players.indexOf(s);A>=0&&this.players.splice(A,1);const U=this._engine.playersByElement.get(t);if(U){let q=U.indexOf(s);q>=0&&U.splice(q,1)}}),this.players.push(s),g.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(n=>n.delete(t)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(o=>o.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const n=this._engine.playersByElement.get(t);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,n){const r=this._engine.driver.query(t,x0,!0);r.forEach(o=>{if(o[yo])return;const i=this._engine.fetchNamespacesByElement(o);i.size?i.forEach(s=>s.triggerLeaveAnimation(o,n,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(t,n,r,o){const i=this._engine.statesByElement.get(t),s=new Map;if(i){const a=[];if(i.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){const u=this.trigger(t,l,Wu,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,n,s),r&&cs(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const n=this._elementListeners.get(t),r=this._engine.statesByElement.get(t);if(n&&r){const o=new Set;n.forEach(i=>{const s=i.name;if(o.has(s))return;o.add(s);const c=this._triggers.get(s).fallbackTransition,l=r.get(s)||Ew,u=new _w(Wu),d=new bw(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:c,fromState:l,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,n){const r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),this.triggerLeaveAnimation(t,n,!0))return;let o=!1;if(r.totalAnimations){const i=r.players.length?r.playersByQueriedElement.get(t):[];if(i&&i.length)o=!0;else{let s=t;for(;s=s.parentNode;)if(r.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(t),o)r.markElementAsRemoved(this.id,t,!1,n);else{const i=t[yo];(!i||i===n3)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,n))}}insertNode(t,n){Jr(t,this._hostClassName)}drainQueuedTransitions(t){const n=[];return this._queue.forEach(r=>{const o=r.player;if(o.destroyed)return;const i=r.element,s=this._elementListeners.get(i);s&&s.forEach(a=>{if(a.name==r.triggerName){const c=nw(i,r.triggerName,r.fromState.value,r.toState.value);c._data=t,ew(r.player,a.phase,c,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):n.push(r)}),this._queue=[],n.sort((r,o)=>{const i=r.transition.ast.depCount,s=o.transition.ast.depCount;return 0==i||0==s?i-s:this._engine.driver.containsElement(r.element,o.element)?1:-1})}destroy(t){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}}class bZ{_onRemovalComplete(t,n){this.onRemovalComplete(t,n)}constructor(t,n,r,o){this.bodyNode=t,this.driver=n,this._normalizer=r,this.scheduler=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,s)=>{}}get queuedPlayers(){const t=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&t.push(r)})}),t}createNamespace(t,n){const r=new EZ(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[t]=r}_balanceNamespaceList(t,n){const r=this._namespaceList,o=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){const c=o.get(a);if(c){const l=r.indexOf(c);r.splice(l+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(t)}else r.push(t);return o.set(n,t),t}register(t,n){let r=this._namespaceLookup[t];return r||(r=this.createNamespace(t,n)),r}registerTrigger(t,n,r){let o=this._namespaceLookup[t];o&&o.register(n,r)&&this.totalAnimations++}destroy(t,n){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const r=this._fetchNamespace(t);this.namespacesByHostElement.delete(r.hostElement);const o=this._namespaceList.indexOf(r);o>=0&&this._namespaceList.splice(o,1),r.destroy(n),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const n=new Set,r=this.statesByElement.get(t);if(r)for(let o of r.values())if(o.namespaceId){const i=this._fetchNamespace(o.namespaceId);i&&n.add(i)}return n}trigger(t,n,r,o){if(N0(n)){const i=this._fetchNamespace(t);if(i)return i.trigger(n,r,o),!0}return!1}insertNode(t,n,r,o){if(!N0(n))return;const i=n[yo];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(n,r)}o&&this.collectEnterElement(n)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Jr(t,ww)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Rc(t,ww))}removeNode(t,n,r){if(N0(n)){this.scheduler?.notify();const o=t?this._fetchNamespace(t):null;o?o.removeNode(n,r):this.markElementAsRemoved(t,n,!1,r);const i=this.namespacesByHostElement.get(n);i&&i.id!==t&&i.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(t,n,r,o,i){this.collectedLeaveElements.push(n),n[yo]={namespaceId:t,setForRemoval:o,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:i}}listen(t,n,r,o,i){return N0(n)?this._fetchNamespace(t).listen(n,r,o,i):()=>{}}_buildInstruction(t,n,r,o,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,r,o,t.fromState.options,t.toState.options,n,i)}destroyInnerAnimations(t){let n=this.driver.query(t,x0,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,cw,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(t){const n=this.playersByElement.get(t);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(t){const n=this.playersByQueriedElement.get(t);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return cs(this.players).onDone(()=>t());t()})}processLeaveNode(t){const n=t[yo];if(n&&n.setForRemoval){if(t[yo]=n3,n.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}t.classList?.contains(ww)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,o)=>this._balanceNamespaceList(r,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],n.length?cs(n).onDone(()=>{r.forEach(o=>o())}):r.forEach(o=>o())}}reportError(t){throw function SQ(e){return new he(3402,!1)}()}_flushAnimations(t,n){const r=new I0,o=[],i=new Map,s=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(ue=>{u.add(ue);const ve=this.driver.query(ue,".ng-animate-queued",!0);for(let Ie=0;Ie{const Ie=aw+A++;E.set(ve,Ie),ue.forEach(we=>Jr(we,Ie))});const U=[],q=new Set,K=new Set;for(let ue=0;ueq.add(we)):K.add(ve))}const se=new Map,le=i3(g,Array.from(q));le.forEach((ue,ve)=>{const Ie=E0+A++;se.set(ve,Ie),ue.forEach(we=>Jr(we,Ie))}),t.push(()=>{v.forEach((ue,ve)=>{const Ie=E.get(ve);ue.forEach(we=>Rc(we,Ie))}),le.forEach((ue,ve)=>{const Ie=se.get(ve);ue.forEach(we=>Rc(we,Ie))}),U.forEach(ue=>{this.processLeaveNode(ue)})});const ge=[],_e=[];for(let ue=this._namespaceList.length-1;ue>=0;ue--)this._namespaceList[ue].drainQueuedTransitions(n).forEach(Ie=>{const we=Ie.player,He=Ie.element;if(ge.push(we),this.collectedEnterElements.length){const Tt=He[yo];if(Tt&&Tt.setForMove){if(Tt.previousTriggersValues&&Tt.previousTriggersValues.has(Ie.triggerName)){const kn=Tt.previousTriggersValues.get(Ie.triggerName),Gt=this.statesByElement.get(Ie.element);if(Gt&&Gt.has(Ie.triggerName)){const vo=Gt.get(Ie.triggerName);vo.value=kn,Gt.set(Ie.triggerName,vo)}}return void we.destroy()}}const Ye=!d||!this.driver.containsElement(d,He),Xe=se.get(He),zt=E.get(He),vt=this._buildInstruction(Ie,r,zt,Xe,Ye);if(vt.errors&&vt.errors.length)return void _e.push(vt);if(Ye)return we.onStart(()=>Qs(He,vt.fromStyles)),we.onDestroy(()=>Ko(He,vt.toStyles)),void o.push(we);if(Ie.isFallbackTransition)return we.onStart(()=>Qs(He,vt.fromStyles)),we.onDestroy(()=>Ko(He,vt.toStyles)),void o.push(we);const nr=[];vt.timelines.forEach(Tt=>{Tt.stretchStartingKeyframe=!0,this.disabledNodes.has(Tt.element)||nr.push(Tt)}),vt.timelines=nr,r.append(He,vt.timelines),s.push({instruction:vt,player:we,element:He}),vt.queriedElements.forEach(Tt=>Br(a,Tt,[]).push(we)),vt.preStyleProps.forEach((Tt,kn)=>{if(Tt.size){let Gt=c.get(kn);Gt||c.set(kn,Gt=new Set),Tt.forEach((vo,Fc)=>Gt.add(Fc))}}),vt.postStyleProps.forEach((Tt,kn)=>{let Gt=l.get(kn);Gt||l.set(kn,Gt=new Set),Tt.forEach((vo,Fc)=>Gt.add(Fc))})});if(_e.length){const ue=[];_e.forEach(ve=>{ue.push(function IQ(e,t){return new he(3505,!1)}())}),ge.forEach(ve=>ve.destroy()),this.reportError(ue)}const Ne=new Map,Oe=new Map;s.forEach(ue=>{const ve=ue.element;r.has(ve)&&(Oe.set(ve,ve),this._beforeAnimationBuild(ue.player.namespaceId,ue.instruction,Ne))}),o.forEach(ue=>{const ve=ue.element;this._getPreviousPlayers(ve,!1,ue.namespaceId,ue.triggerName,null).forEach(we=>{Br(Ne,ve,[]).push(we),we.destroy()})});const Ke=U.filter(ue=>a3(ue,c,l)),$e=new Map;o3($e,this.driver,K,l,Di).forEach(ue=>{a3(ue,c,l)&&Ke.push(ue)});const Ze=new Map;v.forEach((ue,ve)=>{o3(Ze,this.driver,new Set(ue),c,"!")}),Ke.forEach(ue=>{const ve=$e.get(ue),Ie=Ze.get(ue);$e.set(ue,new Map([...ve?.entries()??[],...Ie?.entries()??[]]))});const Je=[],ft=[],De={};s.forEach(ue=>{const{element:ve,player:Ie,instruction:we}=ue;if(r.has(ve)){if(u.has(ve))return Ie.onDestroy(()=>Ko(ve,we.toStyles)),Ie.disabled=!0,Ie.overrideTotalTime(we.totalTime),void o.push(Ie);let He=De;if(Oe.size>1){let Xe=ve;const zt=[];for(;Xe=Xe.parentNode;){const vt=Oe.get(Xe);if(vt){He=vt;break}zt.push(Xe)}zt.forEach(vt=>Oe.set(vt,He))}const Ye=this._buildAnimation(Ie.namespaceId,we,Ne,i,Ze,$e);if(Ie.setRealPlayer(Ye),He===De)Je.push(Ie);else{const Xe=this.playersByElement.get(He);Xe&&Xe.length&&(Ie.parentPlayer=cs(Xe)),o.push(Ie)}}else Qs(ve,we.fromStyles),Ie.onDestroy(()=>Ko(ve,we.toStyles)),ft.push(Ie),u.has(ve)&&o.push(Ie)}),ft.forEach(ue=>{const ve=i.get(ue.element);if(ve&&ve.length){const Ie=cs(ve);ue.setRealPlayer(Ie)}}),o.forEach(ue=>{ue.parentPlayer?ue.syncPlayerEvents(ue.parentPlayer):ue.destroy()});for(let ue=0;ue!Ye.destroyed);He.length?AZ(this,ve,He):this.processLeaveNode(ve)}return U.length=0,Je.forEach(ue=>{this.players.push(ue),ue.onDone(()=>{ue.destroy();const ve=this.players.indexOf(ue);this.players.splice(ve,1)}),ue.play()}),Je}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,n,r,o,i){let s=[];if(n){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const c=!i||i==Wu;a.forEach(l=>{l.queued||!c&&l.triggerName!=o||s.push(l)})}}return(r||o)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(t,n,r){const i=n.element,s=n.isRemovalTransition?void 0:t,a=n.isRemovalTransition?void 0:n.triggerName;for(const c of n.timelines){const l=c.element,u=l!==i,d=Br(r,l,[]);this._getPreviousPlayers(l,u,s,a,n.toState).forEach(v=>{const E=v.getRealPlayer();E.beforeDestroy&&E.beforeDestroy(),v.destroy(),d.push(v)})}Qs(i,n.fromStyles)}_buildAnimation(t,n,r,o,i,s){const a=n.triggerName,c=n.element,l=[],u=new Set,d=new Set,g=n.timelines.map(E=>{const A=E.element;u.add(A);const U=A[yo];if(U&&U.removedBeforeQueried)return new $u(E.duration,E.delay);const q=A!==c,K=function SZ(e){const t=[];return s3(e,t),t}((r.get(A)||wZ).map(Ne=>Ne.getRealPlayer())).filter(Ne=>!!Ne.element&&Ne.element===A),se=i.get(A),le=s.get(A),ge=B8(this._normalizer,E.keyframes,se,le),_e=this._buildPlayer(E,ge,K);if(E.subTimeline&&o&&d.add(A),q){const Ne=new bw(t,a,A);Ne.setRealPlayer(_e),l.push(Ne)}return _e});l.forEach(E=>{Br(this.playersByQueriedElement,E.element,[]).push(E),E.onDone(()=>function xZ(e,t,n){let r=e.get(t);if(r){if(r.length){const o=r.indexOf(n);r.splice(o,1)}0==r.length&&e.delete(t)}return r}(this.playersByQueriedElement,E.element,E))}),u.forEach(E=>Jr(E,$8));const v=cs(g);return v.onDestroy(()=>{u.forEach(E=>Rc(E,$8)),Ko(c,n.toStyles)}),d.forEach(E=>{Br(o,E,[]).push(v)}),v}_buildPlayer(t,n,r){return n.length>0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,r):new $u(t.duration,t.delay)}}class bw{constructor(t,n,r){this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new $u,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((n,r)=>{n.forEach(o=>ew(t,r,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const n=this._player;n.triggerCallback&&t.onStart(()=>n.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,n){Br(this._queuedCallbacks,t,[]).push(n)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const n=this._player;n.triggerCallback&&n.triggerCallback(t)}}function N0(e){return e&&1===e.nodeType}function r3(e,t){const n=e.style.display;return e.style.display=t??"none",n}function o3(e,t,n,r,o){const i=[];n.forEach(c=>i.push(r3(c)));const s=[];r.forEach((c,l)=>{const u=new Map;c.forEach(d=>{const g=t.computeStyle(l,d,o);u.set(d,g),(!g||0==g.length)&&(l[yo]=_Z,s.push(l))}),e.set(l,u)});let a=0;return n.forEach(c=>r3(c,i[a++])),s}function i3(e,t){const n=new Map;if(e.forEach(a=>n.set(a,[])),0==t.length)return n;const o=new Set(t),i=new Map;function s(a){if(!a)return 1;let c=i.get(a);if(c)return c;const l=a.parentNode;return c=n.has(l)?l:o.has(l)?1:s(l),i.set(a,c),c}return t.forEach(a=>{const c=s(a);1!==c&&n.get(c).push(a)}),n}function Jr(e,t){e.classList?.add(t)}function Rc(e,t){e.classList?.remove(t)}function AZ(e,t,n){cs(n).onDone(()=>e.processLeaveNode(t))}function s3(e,t){for(let n=0;no.add(i)):t.set(e,r),n.delete(e),!0}class Ku{constructor(t,n,r,o){this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new bZ(t.body,n,r,o),this._timelineEngine=new pZ(t.body,n,r),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(t,n,r,o,i){const s=t+"-"+o;let a=this._triggerCache[s];if(!a){const c=[],u=hw(this._driver,i,c,[]);if(c.length)throw function yQ(e,t){return new he(3404,!1)}();a=function uZ(e,t,n){return new dZ(e,t,n)}(o,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,o,a)}register(t,n){this._transitionEngine.register(t,n)}destroy(t,n){this._transitionEngine.destroy(t,n)}onInsert(t,n,r,o){this._transitionEngine.insertNode(t,n,r,o)}onRemove(t,n,r){this._transitionEngine.removeNode(t,n,r)}disableAnimations(t,n){this._transitionEngine.markElementAsDisabled(t,n)}process(t,n,r,o){if("@"==r.charAt(0)){const[i,s]=L8(r);this._timelineEngine.command(i,n,s,o)}else this._transitionEngine.trigger(t,n,r,o)}listen(t,n,r,o,i){if("@"==r.charAt(0)){const[s,a]=L8(r);return this._timelineEngine.listen(s,n,a,i)}return this._transitionEngine.listen(t,n,r,o,i)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}}class qu{static#e=this.initialStylesByElement=new WeakMap;constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;let o=qu.initialStylesByElement.get(t);o||qu.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Ko(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ko(this._element,this._initialStyles),this._endStyles&&(Ko(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(qu.initialStylesByElement.delete(this._element),this._startStyles&&(Qs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Qs(this._element,this._endStyles),this._endStyles=null),Ko(this._element,this._initialStyles),this._state=3)}}function xw(e){let t=null;return e.forEach((n,r)=>{(function MZ(e){return"display"===e||"position"===e})(r)&&(t=t||new Map,t.set(r,n))}),t}class c3{constructor(t,n,r,o){this.element=t,this.keyframes=n,this.options=r,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;const n=()=>this._onFinish();this.domPlayer.addEventListener("finish",n),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",n)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const n=[];return t.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(t,n,r){return t.animate(this._convertKeyframesToObject(n),r)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,o)=>{"offset"!==o&&t.set(o,this._finished?r:fw(this.element,o))}),this.currentSnapshot=t}triggerCallback(t){const n="start"===t?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class l3{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,n){return!1}containsElement(t,n){return U8(t,n)}getParentElement(t){return rw(t)}query(t,n,r){return H8(t,n,r)}computeStyle(t,n,r){return fw(t,n)}animate(t,n,r,o,i,s=[]){const c={duration:r,delay:o,fill:0==o?"both":"forwards"};i&&(c.easing=i);const l=new Map,u=s.filter(v=>v instanceof c3);(function HQ(e,t){return 0===e||0===t})(r,o)&&u.forEach(v=>{v.currentSnapshot.forEach((E,A)=>l.set(A,E))});let d=function LQ(e){return e.length?e[0]instanceof Map?e:e.map(t=>new Map(Object.entries(t))):[]}(n).map(v=>new Map(v));d=function jQ(e,t,n){if(n.size&&t.length){let r=t[0],o=[];if(n.forEach((i,s)=>{r.has(s)||o.push(s),r.set(s,i)}),o.length)for(let i=1;is.set(a,fw(e,a)))}}return t}(t,d,l);const g=function TZ(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=xw(t[0]),t.length>1&&(r=xw(t[t.length-1]))):t instanceof Map&&(n=xw(t)),n||r?new qu(e,n,r):null}(t,d);return new c3(t,d,c,g)}}const u3="@.disabled";class d3{constructor(t,n,r,o){this.namespaceId=t,this.delegate=n,this.engine=r,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,n){return this.delegate.createElement(t,n)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,n){this.delegate.appendChild(t,n),this.engine.onInsert(this.namespaceId,n,t,!1)}insertBefore(t,n,r,o=!0){this.delegate.insertBefore(t,n,r),this.engine.onInsert(this.namespaceId,n,t,o)}removeChild(t,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(t,n){return this.delegate.selectRootElement(t,n)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,n,r,o){this.delegate.setAttribute(t,n,r,o)}removeAttribute(t,n,r){this.delegate.removeAttribute(t,n,r)}addClass(t,n){this.delegate.addClass(t,n)}removeClass(t,n){this.delegate.removeClass(t,n)}setStyle(t,n,r,o){this.delegate.setStyle(t,n,r,o)}removeStyle(t,n,r){this.delegate.removeStyle(t,n,r)}setProperty(t,n,r){"@"==n.charAt(0)&&n==u3?this.disableAnimations(t,!!r):this.delegate.setProperty(t,n,r)}setValue(t,n){this.delegate.setValue(t,n)}listen(t,n,r){return this.delegate.listen(t,n,r)}disableAnimations(t,n){this.engine.disableAnimations(t,n)}}class NZ extends d3{constructor(t,n,r,o,i){super(n,r,o,i),this.factory=t,this.namespaceId=n}setProperty(t,n,r){"@"==n.charAt(0)?"."==n.charAt(1)&&n==u3?this.disableAnimations(t,r=void 0===r||!!r):this.engine.process(this.namespaceId,t,n.slice(1),r):this.delegate.setProperty(t,n,r)}listen(t,n,r){if("@"==n.charAt(0)){const o=function RZ(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(t);let i=n.slice(1),s="";return"@"!=i.charAt(0)&&([i,s]=function FZ(e){const t=e.indexOf(".");return[e.substring(0,t),e.slice(t+1)]}(i)),this.engine.listen(this.namespaceId,o,i,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(t,n,r)}}class OZ{constructor(t,n,r){this.delegate=t,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(o,i)=>{const s=i?.parentNode(o);s&&i.removeChild(s,o)}}createRenderer(t,n){const o=this.delegate.createRenderer(t,n);if(!t||!n?.data?.animation){const l=this._rendererCache;let u=l.get(o);return u||(u=new d3("",o,this.engine,()=>l.delete(o)),l.set(o,u)),u}const i=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(i,s,t,l.name,l)};return n.data.animation.forEach(a),new NZ(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,n,r){if(t>=0&&tn(r));const o=this._animationCallbacksBuffer;0==o.length&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(i=>{const[s,a]=i;s(a)}),this._animationCallbacksBuffer=[]})}),o.push([n,r])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const f3=[{provide:sw,useFactory:function kZ(){return new W8}},{provide:Ku,useClass:(()=>{class e extends Ku{constructor(n,r,o){super(n,r,o,Pe(Bg,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(r){return new(r||e)(We(Yn),We(iw),We(sw))};static#t=this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}return e})()},{provide:Lg,useFactory:function BZ(e,t,n){return new OZ(e,t,n)},deps:[by,Ku,Ct]}],Cw=[{provide:iw,useFactory:()=>new l3},{provide:w_,useValue:"BrowserAnimations"},...f3],h3=[{provide:iw,useClass:ow},{provide:w_,useValue:"NoopAnimations"},...f3];let LZ=(()=>{class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?h3:Cw}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e});static#n=this.\u0275inj=on({providers:Cw,imports:[HA]})}return e})(),VZ=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=un({type:e,bootstrap:[Uq]});static#n=this.\u0275inj=on({imports:[HA,Vq,jq,Kq,Hq,Gq,$q,Wq,Qq,qq,LZ,Pq.forRoot()]})}return e})();J9().bootstrapModule(VZ).catch(e=>console.error(e))},2820:(ae,f)=>{"use strict";function y(p){if(!Number.isSafeInteger(p)||p<0)throw new Error(`positive integer expected, not ${p}`)}function m(p){if("boolean"!=typeof p)throw new Error(`boolean expected, not ${p}`)}function h(p){return p instanceof Uint8Array||null!=p&&"object"==typeof p&&"Uint8Array"===p.constructor.name}function _(p,...I){if(!h(p))throw new Error("Uint8Array expected");if(I.length>0&&!I.includes(p.length))throw new Error(`Uint8Array expected of length ${I}, not of length=${p.length}`)}function w(p){if("function"!=typeof p||"function"!=typeof p.create)throw new Error("hash must be wrapped by utils.wrapConstructor");y(p.outputLen),y(p.blockLen)}function k(p,I=!0){if(p.destroyed)throw new Error("Hash instance has been destroyed");if(I&&p.finished)throw new Error("Hash#digest() has already been called")}function S(p,I){_(p);const H=I.outputLen;if(p.length{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.polyval=f.ghash=f._toGHASHKey=void 0;const m=y(4924),h=y(2820),_=16,w=new Uint8Array(16),k=(0,m.u32)(w),$=(N,b,W,G)=>({s3:W<<31|G>>>1,s2:b<<31|W>>>1,s1:N<<31|b>>>1,s0:N>>>1^225<<24&-(1&G)}),p=N=>(N>>>0&255)<<24|(N>>>8&255)<<16|(N>>>16&255)<<8|N>>>24&255|0;function I(N){N.reverse();const b=1&N[15];let W=0;for(let G=0;G>>1|W,W=(1&T)<<7}return N[0]^=225&-b,N}f._toGHASHKey=I;class P{constructor(b,W){this.blockLen=_,this.outputLen=_,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,b=(0,m.toBytes)(b),(0,h.bytes)(b,16);const G=(0,m.createView)(b);let T=G.getUint32(0,!1),O=G.getUint32(4,!1),Q=G.getUint32(8,!1),Y=G.getUint32(12,!1);const X=[];for(let M=0;M<128;M++)X.push({s0:p(T),s1:p(O),s2:p(Q),s3:p(Y)}),({s0:T,s1:O,s2:Q,s3:Y}=$(T,O,Q,Y));const Z=(N=W||1024)>65536?8:N>1024?4:2;var N;if(![1,2,4,8].includes(Z))throw new Error(`ghash: wrong window size=${Z}, should be 2, 4 or 8`);this.W=Z;const J=128/Z,ee=this.windowSize=2**Z,z=[];for(let M=0;M>>Z-de-1&1))continue;const{s0:D,s1:F,s2:B,s3:j}=X[Z*M+de];R^=D,L^=F,ne^=B,oe^=j}z.push({s0:R,s1:L,s2:ne,s3:oe})}this.t=z}_updateBlock(b,W,G,T){b^=this.s0,W^=this.s1,G^=this.s2,T^=this.s3;const{W:O,t:Q,windowSize:Y}=this;let X=0,Z=0,re=0,J=0;const ee=(1<>>8*V&255;for(let L=8/O-1;L>=0;L--){const ne=R>>>O*L&ee,{s0:oe,s1:de,s2:Ce,s3:D}=Q[z*Y+ne];X^=oe,Z^=de,re^=Ce,J^=D,z+=1}}this.s0=X,this.s1=Z,this.s2=re,this.s3=J}update(b){b=(0,m.toBytes)(b),(0,h.exists)(this);const W=(0,m.u32)(b),G=Math.floor(b.length/_),T=b.length%_;for(let O=0;ON(T,G.length).update((0,m.toBytes)(G)).digest(),W=N(new Uint8Array(16),0);return b.outputLen=W.outputLen,b.blockLen=W.blockLen,b.create=(G,T)=>N(G,T),b}f.ghash=x((N,b)=>new P(N,b)),f.polyval=x((N,b)=>new C(N,b))},888:(ae,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.unsafe=f.siv=f.gcm=f.cfb=f.cbc=f.ecb=f.ctr=f.expandKeyDecLE=f.expandKeyLE=void 0;const m=y(4924),h=y(3804),_=y(2820),w=16,S=new Uint8Array(w),$=283;function p(D){return D<<1^$&-(D>>7)}function I(D,F){let B=0;for(;F>0;F>>=1)B^=D&-(1&F),D=p(D);return B}const H=(()=>{let D=new Uint8Array(256);for(let B=0,j=1;B<256;B++,j^=p(j))D[B]=j;const F=new Uint8Array(256);F[0]=99;for(let B=0;B<255;B++){let j=D[255-B];j|=j<<8,F[D[B]]=255&(j^j>>4^j>>5^j>>6^j>>7^99)}return F})(),P=H.map((D,F)=>H.indexOf(F)),C=D=>D<<24|D>>>8,x=D=>D<<8|D>>>24;function N(D,F){if(256!==D.length)throw new Error("Wrong sbox length");const B=new Uint32Array(256).map((pe,Ee)=>F(D[Ee])),j=B.map(x),te=j.map(x),ie=te.map(x),fe=new Uint32Array(65536),ce=new Uint32Array(65536),ye=new Uint16Array(65536);for(let pe=0;pe<256;pe++)for(let Ee=0;Ee<256;Ee++){const Re=256*pe+Ee;fe[Re]=B[pe]^j[Ee],ce[Re]=te[pe]^ie[Ee],ye[Re]=D[pe]<<8|D[Ee]}return{sbox:D,sbox2:ye,T0:B,T1:j,T2:te,T3:ie,T01:fe,T23:ce}}const b=N(H,D=>I(D,3)<<24|D<<16|D<<8|I(D,2)),W=N(P,D=>I(D,11)<<24|I(D,13)<<16|I(D,9)<<8|I(D,14)),G=(()=>{const D=new Uint8Array(16);for(let F=0,B=1;F<16;F++,B=p(B))D[F]=B;return D})();function T(D){(0,_.bytes)(D);const F=D.length;if(![16,24,32].includes(F))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${F}`);const{sbox2:B}=b,j=(0,m.u32)(D),te=j.length,ie=ce=>Y(B,ce,ce,ce,ce),fe=new Uint32Array(F+28);fe.set(j);for(let ce=te;ce6&&ce%te==4&&(ye=ie(ye)),fe[ce]=fe[ce-te]^ye}return fe}function O(D){const F=T(D),B=F.slice(),j=F.length,{sbox2:te}=b,{T0:ie,T1:fe,T2:ce,T3:ye}=W;for(let pe=0;pe>>8&255]^ce[Re>>>16&255]^ye[Re>>>24]}return B}function Q(D,F,B,j,te,ie){return D[B<<8&65280|j>>>8&255]^F[te>>>8&65280|ie>>>24&255]}function Y(D,F,B,j,te){return D[255&F|65280&B]|D[j>>>16&255|te>>>16&65280]<<16}function X(D,F,B,j,te){const{sbox2:ie,T01:fe,T23:ce}=b;let ye=0;F^=D[ye++],B^=D[ye++],j^=D[ye++],te^=D[ye++];const pe=D.length/4-2;for(let Be=0;Be=0;Te--)Ve=Ve+(255&ie[Te])|0,ie[Te]=255&Ve,Ve>>>=8;({s0:ce,s1:ye,s2:pe,s3:Ee}=X(D,fe[0],fe[1],fe[2],fe[3]))}const Ae=w*Math.floor(Re.length/4);if(Ae>>0,ce.setUint32(Ee,Me,F),({s0:Ae,s1:Be,s2:Ve,s3:Te}=X(D,fe[0],fe[1],fe[2],fe[3]));const Le=w*Math.floor(ye.length/4);if(Le16)throw new Error(`aes/pcks5: wrong padding byte: ${j}`);const te=D.subarray(0,-j);for(let ie=0;iej(te,ie),decrypt:(te,ie)=>j(te,ie)}}),f.ecb=(0,m.wrapCipher)({blockSize:16},function(F,B={}){(0,_.bytes)(F);const j=!B.disablePadding;return{encrypt:(te,ie)=>{(0,_.bytes)(te);const{b:fe,o:ce,out:ye}=M(te,j,ie),pe=T(F);let Ee=0;for(;Ee+4<=fe.length;){const{s0:Re,s1:Me,s2:Ae,s3:Be}=X(pe,fe[Ee+0],fe[Ee+1],fe[Ee+2],fe[Ee+3]);ce[Ee++]=Re,ce[Ee++]=Me,ce[Ee++]=Ae,ce[Ee++]=Be}if(j){const Re=R(te.subarray(4*Ee)),{s0:Me,s1:Ae,s2:Be,s3:Ve}=X(pe,Re[0],Re[1],Re[2],Re[3]);ce[Ee++]=Me,ce[Ee++]=Ae,ce[Ee++]=Be,ce[Ee++]=Ve}return pe.fill(0),ye},decrypt:(te,ie)=>{z(te);const fe=O(F),ce=re(te.length,ie),ye=(0,m.u32)(te),pe=(0,m.u32)(ce);for(let Ee=0;Ee+4<=ye.length;){const{s0:Re,s1:Me,s2:Ae,s3:Be}=Z(fe,ye[Ee+0],ye[Ee+1],ye[Ee+2],ye[Ee+3]);pe[Ee++]=Re,pe[Ee++]=Me,pe[Ee++]=Ae,pe[Ee++]=Be}return fe.fill(0),V(ce,j)}}}),f.cbc=(0,m.wrapCipher)({blockSize:16,nonceLength:16},function(F,B,j={}){(0,_.bytes)(F),(0,_.bytes)(B,16);const te=!j.disablePadding;return{encrypt:(ie,fe)=>{const ce=T(F),{b:ye,o:pe,out:Ee}=M(ie,te,fe),Re=(0,m.u32)(B);let Me=Re[0],Ae=Re[1],Be=Re[2],Ve=Re[3],Te=0;for(;Te+4<=ye.length;)Me^=ye[Te+0],Ae^=ye[Te+1],Be^=ye[Te+2],Ve^=ye[Te+3],({s0:Me,s1:Ae,s2:Be,s3:Ve}=X(ce,Me,Ae,Be,Ve)),pe[Te++]=Me,pe[Te++]=Ae,pe[Te++]=Be,pe[Te++]=Ve;if(te){const Le=R(ie.subarray(4*Te));Me^=Le[0],Ae^=Le[1],Be^=Le[2],Ve^=Le[3],({s0:Me,s1:Ae,s2:Be,s3:Ve}=X(ce,Me,Ae,Be,Ve)),pe[Te++]=Me,pe[Te++]=Ae,pe[Te++]=Be,pe[Te++]=Ve}return ce.fill(0),Ee},decrypt:(ie,fe)=>{z(ie);const ce=O(F),ye=(0,m.u32)(B),pe=re(ie.length,fe),Ee=(0,m.u32)(ie),Re=(0,m.u32)(pe);let Me=ye[0],Ae=ye[1],Be=ye[2],Ve=ye[3];for(let Te=0;Te+4<=Ee.length;){const Le=Me,Qe=Ae,Dt=Be,pt=Ve;Me=Ee[Te+0],Ae=Ee[Te+1],Be=Ee[Te+2],Ve=Ee[Te+3];const{s0:ut,s1:an,s2:rr,s3:Bn}=Z(ce,Me,Ae,Be,Ve);Re[Te++]=ut^Le,Re[Te++]=an^Qe,Re[Te++]=rr^Dt,Re[Te++]=Bn^pt}return ce.fill(0),V(pe,te)}}}),f.cfb=(0,m.wrapCipher)({blockSize:16,nonceLength:16},function(F,B){function j(te,ie,fe){const ce=T(F),ye=te.length;fe=re(ye,fe);const pe=(0,m.u32)(te),Ee=(0,m.u32)(fe),Re=ie?Ee:pe,Me=(0,m.u32)(B);let Ae=Me[0],Be=Me[1],Ve=Me[2],Te=Me[3];for(let Qe=0;Qe+4<=pe.length;){const{s0:Dt,s1:pt,s2:ut,s3:an}=X(ce,Ae,Be,Ve,Te);Ee[Qe+0]=pe[Qe+0]^Dt,Ee[Qe+1]=pe[Qe+1]^pt,Ee[Qe+2]=pe[Qe+2]^ut,Ee[Qe+3]=pe[Qe+3]^an,Ae=Re[Qe++],Be=Re[Qe++],Ve=Re[Qe++],Te=Re[Qe++]}const Le=w*Math.floor(pe.length/4);if(Lej(te,!0,ie),decrypt:(te,ie)=>j(te,!1,ie)}}),f.gcm=(0,m.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16},function(F,B,j){if((0,_.bytes)(B),0===B.length)throw new Error("aes/gcm: empty nonce");function ie(ce,ye,pe){const Ee=L(h.ghash,!1,ce,pe,j);for(let Re=0;Re{(0,_.bytes)(ce);const{xk:ye,authKey:pe,counter:Ee,tagMask:Re}=fe(),Me=new Uint8Array(ce.length+16);ee(ye,!1,Ee,ce,Me);const Ae=ie(pe,Re,Me.subarray(0,Me.length-16));return Me.set(Ae,ce.length),ye.fill(0),Me},decrypt:ce=>{if((0,_.bytes)(ce),ce.length<16)throw new Error("aes/gcm: ciphertext less than tagLen (16)");const{xk:ye,authKey:pe,counter:Ee,tagMask:Re}=fe(),Me=ce.subarray(0,-16),Ae=ce.subarray(-16),Be=ie(pe,Re,Me);if(!(0,m.equalBytes)(Be,Ae))throw new Error("aes/gcm: invalid ghash tag");const Ve=ee(ye,!1,Ee,Me);return pe.fill(0),Re.fill(0),ye.fill(0),Ve}}});const ne=(D,F,B)=>j=>{if(!Number.isSafeInteger(j)||F>j||j>B)throw new Error(`${D}: invalid value=${j}, must be [${F}..${B}]`)};function oe(D){return null!=D&&"object"==typeof D&&(D instanceof Uint32Array||"Uint32Array"===D.constructor.name)}f.siv=(0,m.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16},function(F,B,j){const ie=ne("AAD",0,68719476736),fe=ne("plaintext",0,2**36),ce=ne("nonce",12,12),ye=ne("ciphertext",16,2**36+16);function pe(){const Me=F.length;if(16!==Me&&24!==Me&&32!==Me)throw new Error(`key length must be 16, 24 or 32 bytes, got: ${Me} bytes`);const Ae=T(F),Be=new Uint8Array(Me),Ve=new Uint8Array(16),Te=(0,m.u32)(B);let Le=0,Qe=Te[0],Dt=Te[1],pt=Te[2],ut=0;for(const an of[Ve,Be].map(m.u32)){const rr=(0,m.u32)(an);for(let Bn=0;Bn{(0,_.bytes)(Me),fe(Me.length);const{encKey:Ae,authKey:Be}=pe(),Ve=Ee(Ae,Be,Me),Te=new Uint8Array(Me.length+16);return Te.set(Ve,Me.length),Te.set(Re(Ae,Ve,Me)),Ae.fill(0),Be.fill(0),Te},decrypt:Me=>{(0,_.bytes)(Me),ye(Me.length);const Ae=Me.subarray(-16),{encKey:Be,authKey:Ve}=pe(),Te=Re(Be,Ae,Me.subarray(0,-16)),Le=Ee(Be,Ve,Te);if(Be.fill(0),Ve.fill(0),!(0,m.equalBytes)(Ae,Le))throw new Error("invalid polyval tag");return Te}}}),f.unsafe={expandKeyLE:T,expandKeyDecLE:O,encrypt:X,decrypt:Z,encryptBlock:function de(D,F){if((0,_.bytes)(F,16),!oe(D))throw new Error("_encryptBlock accepts result of expandKeyLE");const B=(0,m.u32)(F);let{s0:j,s1:te,s2:ie,s3:fe}=X(D,B[0],B[1],B[2],B[3]);return B[0]=j,B[1]=te,B[2]=ie,B[3]=fe,F},decryptBlock:function Ce(D,F){if((0,_.bytes)(F,16),!oe(D))throw new Error("_decryptBlock accepts result of expandKeyLE");const B=(0,m.u32)(F);let{s0:j,s1:te,s2:ie,s3:fe}=Z(D,B[0],B[1],B[2],B[3]);return B[0]=j,B[1]=te,B[2]=ie,B[3]=fe,F},ctrCounter:J,ctr32:ee}},4220:(ae,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getWebcryptoSubtle=f.randomBytes=void 0;const y="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;f.randomBytes=function m(_=32){if(y&&"function"==typeof y.getRandomValues)return y.getRandomValues(new Uint8Array(_));throw new Error("crypto.getRandomValues must be defined")},f.getWebcryptoSubtle=function h(){if(y&&"object"==typeof y.subtle&&null!=y.subtle)return y.subtle;throw new Error("crypto.subtle must be defined")}},4924:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0}),f.u64Lengths=f.setBigUint64=f.wrapCipher=f.Hash=f.equalBytes=f.checkOpts=f.concatBytes=f.toBytes=f.bytesToUtf8=f.utf8ToBytes=f.asyncLoop=f.nextTick=f.numberToBytesBE=f.bytesToNumberBE=f.hexToNumber=f.hexToBytes=f.bytesToHex=f.isLE=f.createView=f.u32=f.u16=f.u8=void 0;const h=y(2820);if(f.u8=M=>new Uint8Array(M.buffer,M.byteOffset,M.byteLength),f.u16=M=>new Uint16Array(M.buffer,M.byteOffset,Math.floor(M.byteLength/2)),f.u32=M=>new Uint32Array(M.buffer,M.byteOffset,Math.floor(M.byteLength/4)),f.createView=M=>new DataView(M.buffer,M.byteOffset,M.byteLength),f.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!f.isLE)throw new Error("Non little-endian hardware is not supported");const $=Array.from({length:256},(M,V)=>V.toString(16).padStart(2,"0"));function p(M){(0,h.bytes)(M);let V="";for(let R=0;R=I._0&&M<=I._9?M-I._0:M>=I._A&&M<=I._F?M-(I._A-10):M>=I._a&&M<=I._f?M-(I._a-10):void 0}function P(M){if("string"!=typeof M)throw new Error("hex string expected, got "+typeof M);const V=M.length,R=V/2;if(V%2)throw new Error("padded hex string expected, got unpadded hex of length "+V);const L=new Uint8Array(R);for(let ne=0,oe=0;ne=0&&oe>ne&oe),Ce=Number(R&oe),F=L?0:4;M.setUint32(V+(L?4:0),de,L),M.setUint32(V+F,Ce,L)}f.hexToBytes=P,f.hexToNumber=C,f.bytesToNumberBE=function x(M){return C(p(M))},f.numberToBytesBE=function N(M,V){return P(M.toString(16).padStart(2*V,"0"))},f.nextTick=function(){var M=m(function*(){});return function(){return M.apply(this,arguments)}}(),f.asyncLoop=function W(M,V,R){return G.apply(this,arguments)},f.utf8ToBytes=T,f.bytesToUtf8=function O(M){return(new TextDecoder).decode(M)},f.toBytes=function Q(M){if("string"==typeof M)M=T(M);else{if(!(0,h.isBytes)(M))throw new Error("Uint8Array expected, got "+typeof M);M=M.slice()}return M},f.concatBytes=function Y(...M){let V=0;for(let L=0;L(Object.assign(V,M),V),f.setBigUint64=ee,f.u64Lengths=function z(M,V){const R=new Uint8Array(16),L=(0,f.createView)(R);return ee(L,0,BigInt(V?V.length:0),!0),ee(L,8,BigInt(M.length),!0),R}},1640:(ae,f,y)=>{"use strict";var m=y(1196).default;Object.defineProperty(f,"__esModule",{value:!0}),f.gcm=f.ctr=f.cbc=f.utils=f.managedNonce=f.getWebcryptoSubtle=f.randomBytes=void 0;const h=y(4220);Object.defineProperty(f,"randomBytes",{enumerable:!0,get:function(){return h.randomBytes}}),Object.defineProperty(f,"getWebcryptoSubtle",{enumerable:!0,get:function(){return h.getWebcryptoSubtle}});const _=y(4924),w=y(2820);f.managedNonce=function k(I){return(0,w.number)(I.nonceLength),(H,...P)=>({encrypt:(C,...x)=>{const{nonceLength:N}=I,b=(0,h.randomBytes)(N),W=I(H,b,...P).encrypt(C,...x),G=(0,_.concatBytes)(b,W);return W.fill(0),G},decrypt:(C,...x)=>{const{nonceLength:N}=I,b=C.subarray(0,N),W=C.subarray(N);return I(H,b,...P).decrypt(W,...x)}})},f.utils={encrypt:(I,H,P,C)=>m(function*(){const x=(0,h.getWebcryptoSubtle)(),N=yield x.importKey("raw",I,H,!0,["encrypt"]),b=yield x.encrypt(P,N,C);return new Uint8Array(b)})(),decrypt:(I,H,P,C)=>m(function*(){const x=(0,h.getWebcryptoSubtle)(),N=yield x.importKey("raw",I,H,!0,["decrypt"]),b=yield x.decrypt(P,N,C);return new Uint8Array(b)})()};const S_CBC="AES-CBC",S_CTR="AES-CTR",S_GCM="AES-GCM";function p(I){return(H,P,C)=>{(0,w.bytes)(H),(0,w.bytes)(P);const x={name:I,length:8*H.length},N=function $(I,H,P){if(I===S_CBC)return{name:S_CBC,iv:H};if(I===S_CTR)return{name:S_CTR,counter:H,length:64};if(I===S_GCM)return{name:S_GCM,iv:H,additionalData:P};throw new Error("unknown aes block mode")}(I,P,C);return{encrypt:b=>((0,w.bytes)(b),f.utils.encrypt(H,x,N,b)),decrypt:b=>((0,w.bytes)(b),f.utils.decrypt(H,x,N,b))}}}f.cbc=p(S_CBC),f.ctr=p(S_CTR),f.gcm=p(S_GCM)},5496:(ae,f)=>{"use strict";function m(z){return z instanceof Uint8Array||null!=z&&"object"==typeof z&&"Uint8Array"===z.constructor.name}function h(...z){const M=ne=>ne,V=(ne,oe)=>de=>ne(oe(de));return{encode:z.map(ne=>ne.encode).reduceRight(V,M),decode:z.map(ne=>ne.decode).reduce(V,M)}}function _(z){return{encode:M=>{if(!Array.isArray(M)||M.length&&"number"!=typeof M[0])throw new Error("alphabet.encode input should be an array of numbers");return M.map(V=>{if(V<0||V>=z.length)throw new Error(`Digit index outside alphabet: ${V} (alphabet: ${z.length})`);return z[V]})},decode:M=>{if(!Array.isArray(M)||M.length&&"string"!=typeof M[0])throw new Error("alphabet.decode input should be array of strings");return M.map(V=>{if("string"!=typeof V)throw new Error(`alphabet.decode: not string element=${V}`);const R=z.indexOf(V);if(-1===R)throw new Error(`Unknown letter: "${V}". Allowed: ${z}`);return R})}}}function w(z=""){if("string"!=typeof z)throw new Error("join separator should be string");return{encode:M=>{if(!Array.isArray(M)||M.length&&"string"!=typeof M[0])throw new Error("join.encode input should be array of strings");for(let V of M)if("string"!=typeof V)throw new Error(`join.encode: non-string input=${V}`);return M.join(z)},decode:M=>{if("string"!=typeof M)throw new Error("join.decode input should be string");return M.split(z)}}}function k(z,M="="){if("string"!=typeof M)throw new Error("padding chr should be string");return{encode(V){if(!Array.isArray(V)||V.length&&"string"!=typeof V[0])throw new Error("padding.encode input should be array of strings");for(let R of V)if("string"!=typeof R)throw new Error(`padding.encode: non-string input=${R}`);for(;V.length*z%8;)V.push(M);return V},decode(V){if(!Array.isArray(V)||V.length&&"string"!=typeof V[0])throw new Error("padding.encode input should be array of strings");for(let L of V)if("string"!=typeof L)throw new Error(`padding.decode: non-string input=${L}`);let R=V.length;if(R*z%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;R>0&&V[R-1]===M;R--)if(!((R-1)*z%8))throw new Error("Invalid padding: string has too much padding");return V.slice(0,R)}}}function S(z){if("function"!=typeof z)throw new Error("normalize fn should be function");return{encode:M=>M,decode:M=>z(M)}}function $(z,M,V){if(M<2)throw new Error(`convertRadix: wrong from=${M}, base cannot be less than 2`);if(V<2)throw new Error(`convertRadix: wrong to=${V}, base cannot be less than 2`);if(!Array.isArray(z))throw new Error("convertRadix: data should be array");if(!z.length)return[];let R=0;const L=[],ne=Array.from(z);for(ne.forEach(oe=>{if(oe<0||oe>=M)throw new Error(`Wrong integer: ${oe}`)});;){let oe=0,de=!0;for(let Ce=R;CeM?p(M,z%M):z,I=(z,M)=>z+(M-p(z,M));function H(z,M,V,R){if(!Array.isArray(z))throw new Error("convertRadix2: data should be array");if(M<=0||M>32)throw new Error(`convertRadix2: wrong from=${M}`);if(V<=0||V>32)throw new Error(`convertRadix2: wrong to=${V}`);if(I(M,V)>32)throw new Error(`convertRadix2: carry overflow from=${M} to=${V} carryBits=${I(M,V)}`);let L=0,ne=0;const oe=2**V-1,de=[];for(const Ce of z){if(Ce>=2**M)throw new Error(`convertRadix2: invalid data word=${Ce} from=${M}`);if(L=L<32)throw new Error(`convertRadix2: carry overflow pos=${ne} from=${M}`);for(ne+=M;ne>=V;ne-=V)de.push((L>>ne-V&oe)>>>0);L&=2**ne-1}if(L=L<=M)throw new Error("Excess padding");if(!R&&L)throw new Error(`Non-zero padding: ${L}`);return R&&ne>0&&de.push(L>>>0),de}function P(z){return{encode:M=>{if(!m(M))throw new Error("radix.encode input should be Uint8Array");return $(Array.from(M),256,z)},decode:M=>{if(!Array.isArray(M)||M.length&&"number"!=typeof M[0])throw new Error("radix.decode input should be array of numbers");return Uint8Array.from($(M,z,256))}}}function C(z,M=!1){if(z<=0||z>32)throw new Error("radix2: bits should be in (0..32]");if(I(8,z)>32||I(z,8)>32)throw new Error("radix2: carry overflow");return{encode:V=>{if(!m(V))throw new Error("radix2.encode input should be Uint8Array");return H(Array.from(V),8,z,!M)},decode:V=>{if(!Array.isArray(V)||V.length&&"number"!=typeof V[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(H(V,z,8,M))}}}function x(z){if("function"!=typeof z)throw new Error("unsafeWrapper fn should be function");return function(...M){try{return z.apply(null,M)}catch{}}}function N(z,M){if("function"!=typeof M)throw new Error("checksum fn should be function");return{encode(V){if(!m(V))throw new Error("checksum.encode: input should be Uint8Array");const R=M(V).slice(0,z),L=new Uint8Array(V.length+z);return L.set(V),L.set(R,V.length),L},decode(V){if(!m(V))throw new Error("checksum.decode: input should be Uint8Array");const R=V.slice(0,-z),L=M(R).slice(0,z),ne=V.slice(-z);for(let oe=0;oez.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),f.base64=h(C(6),_("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),k(6),w("")),f.base64nopad=h(C(6),_("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),w("")),f.base64url=h(C(6),_("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),k(6),w("")),f.base64urlnopad=h(C(6),_("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),w(""));const b=z=>h(P(58),_(z),w(""));f.base58=b("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),f.base58flickr=b("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),f.base58xrp=b("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const W=[0,2,3,5,6,7,9,10,11];f.base58xmr={encode(z){let M="";for(let V=0;Vh(N(4,M=>z(z(M))),f.base58),f.base58check=f.createBase58check;const T=h(_("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),w("")),O=[996825010,642813549,513874426,1027748829,705979059];function Q(z){const M=z>>25;let V=(33554431&z)<<5;for(let R=0;R>R&1)&&(V^=O[R]);return V}function Y(z,M,V=1){const R=z.length;let L=1;for(let ne=0;ne126)throw new Error(`Invalid prefix (${z})`);L=Q(L)^oe>>5}L=Q(L);for(let ne=0;neB)throw new TypeError(`Wrong string length: ${F.length} (${F}). Expected (8..${B})`);const j=F.toLowerCase();if(F!==j&&F!==F.toUpperCase())throw new Error("String must be lowercase or uppercase");const te=j.lastIndexOf("1");if(0===te||-1===te)throw new Error('Letter "1" must be present between prefix and data only');const ie=j.slice(0,te),fe=j.slice(te+1);if(fe.length<6)throw new Error("Data must be at least 6 characters long");const ce=T.decode(fe).slice(0,-6),ye=Y(ie,ce,M);if(!fe.endsWith(ye))throw new Error(`Invalid checksum in ${F}: expected "${ye}"`);return{prefix:ie,words:ce}}return{encode:function oe(F,B,j=90){if("string"!=typeof F)throw new Error("bech32.encode prefix should be string, not "+typeof F);if(!Array.isArray(B)||B.length&&"number"!=typeof B[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof B);if(0===F.length)throw new TypeError(`Invalid prefix length ${F.length}`);const te=F.length+7+B.length;if(!1!==j&&te>j)throw new TypeError(`Length ${te} exceeds limit ${j}`);const ie=F.toLowerCase(),fe=Y(ie,B,M);return`${ie}1${T.encode(B)}${fe}`},decode:de,decodeToBytes:function D(F){const{prefix:B,words:j}=de(F,!1);return{prefix:B,words:j,bytes:R(j)}},decodeUnsafe:x(de),fromWords:R,fromWordsUnsafe:ne,toWords:L}}f.bech32=X("bech32"),f.bech32m=X("bech32m"),f.utf8={encode:z=>(new TextDecoder).decode(z),decode:z=>(new TextEncoder).encode(z)},f.hex=h(C(4),_("0123456789abcdef"),w(""),S(z=>{if("string"!=typeof z||z.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof z} with length ${z.length}`);return z.toLowerCase()}));const Z={utf8:f.utf8,hex:f.hex,base16:f.base16,base32:f.base32,base64:f.base64,base64url:f.base64url,base58:f.base58,base58xmr:f.base58xmr},re="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr";f.bytesToString=(z,M)=>{if("string"!=typeof z||!Z.hasOwnProperty(z))throw new TypeError(re);if(!m(M))throw new TypeError("bytesToString() expects Uint8Array");return Z[z].encode(M)},f.str=f.bytesToString,f.stringToBytes=(z,M)=>{if(!Z.hasOwnProperty(z))throw new TypeError(re);if("string"!=typeof M)throw new TypeError("stringToBytes() expects string");return Z[z].decode(M)},f.bytes=f.stringToBytes},8220:function(ae,f,y){var m;ae.exports=(m=y(8648),y(8872),y(740),y(9755),y(7904),function(){var h=m,w=h.lib.BlockCipher,k=h.algo,S=[],$=[],p=[],I=[],H=[],P=[],C=[],x=[],N=[],b=[];!function(){for(var T=[],O=0;O<256;O++)T[O]=O<128?O<<1:O<<1^283;var Q=0,Y=0;for(O=0;O<256;O++){var X=Y^Y<<1^Y<<2^Y<<3^Y<<4;S[Q]=X=X>>>8^255&X^99,$[X]=Q;var ee,Z=T[Q],re=T[Z],J=T[re];p[Q]=(ee=257*T[X]^16843008*X)<<24|ee>>>8,I[Q]=ee<<16|ee>>>16,H[Q]=ee<<8|ee>>>24,P[Q]=ee,C[X]=(ee=16843009*J^65537*re^257*Z^16843008*Q)<<24|ee>>>8,x[X]=ee<<16|ee>>>16,N[X]=ee<<8|ee>>>24,b[X]=ee,Q?(Q=Z^T[T[T[J^Z]]],Y^=T[T[Y]]):Q=Y=1}}();var W=[0,1,2,4,8,16,32,64,128,27,54],G=k.AES=w.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var O=this._keyPriorReset=this._key,Q=O.words,Y=O.sigBytes/4,Z=4*((this._nRounds=Y+6)+1),re=this._keySchedule=[],J=0;J6&&J%Y==4&&(T=S[T>>>24]<<24|S[T>>>16&255]<<16|S[T>>>8&255]<<8|S[255&T]):(T=S[(T=T<<8|T>>>24)>>>24]<<24|S[T>>>16&255]<<16|S[T>>>8&255]<<8|S[255&T],T^=W[J/Y|0]<<24),re[J]=re[J-Y]^T);for(var ee=this._invKeySchedule=[],z=0;z>>24]]^x[S[T>>>16&255]]^N[S[T>>>8&255]]^b[S[255&T]]}}},encryptBlock:function(T,O){this._doCryptBlock(T,O,this._keySchedule,p,I,H,P,S)},decryptBlock:function(T,O){var Q=T[O+1];T[O+1]=T[O+3],T[O+3]=Q,this._doCryptBlock(T,O,this._invKeySchedule,C,x,N,b,$),Q=T[O+1],T[O+1]=T[O+3],T[O+3]=Q},_doCryptBlock:function(T,O,Q,Y,X,Z,re,J){for(var ee=this._nRounds,z=T[O]^Q[0],M=T[O+1]^Q[1],V=T[O+2]^Q[2],R=T[O+3]^Q[3],L=4,ne=1;ne>>24]^X[M>>>16&255]^Z[V>>>8&255]^re[255&R]^Q[L++],de=Y[M>>>24]^X[V>>>16&255]^Z[R>>>8&255]^re[255&z]^Q[L++],Ce=Y[V>>>24]^X[R>>>16&255]^Z[z>>>8&255]^re[255&M]^Q[L++],D=Y[R>>>24]^X[z>>>16&255]^Z[M>>>8&255]^re[255&V]^Q[L++];z=oe,M=de,V=Ce,R=D}oe=(J[z>>>24]<<24|J[M>>>16&255]<<16|J[V>>>8&255]<<8|J[255&R])^Q[L++],de=(J[M>>>24]<<24|J[V>>>16&255]<<16|J[R>>>8&255]<<8|J[255&z])^Q[L++],Ce=(J[V>>>24]<<24|J[R>>>16&255]<<16|J[z>>>8&255]<<8|J[255&M])^Q[L++],D=(J[R>>>24]<<24|J[z>>>16&255]<<16|J[M>>>8&255]<<8|J[255&V])^Q[L++],T[O]=oe,T[O+1]=de,T[O+2]=Ce,T[O+3]=D},keySize:8});h.AES=w._createHelper(G)}(),m.AES)},920:function(ae,f,y){var m;ae.exports=(m=y(8648),y(8872),y(740),y(9755),y(7904),function(){var h=m,w=h.lib.BlockCipher;const S=16,$=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],p=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var I={pbox:[],sbox:[]};function H(b,W){let Y=b.sbox[0][W>>24&255]+b.sbox[1][W>>16&255];return Y^=b.sbox[2][W>>8&255],Y+=b.sbox[3][255&W],Y}function P(b,W,G){let Q,T=W,O=G;for(let Y=0;Y=G&&(T=0);let O=0,Q=0,Y=0;for(let X=0;X1;--Y)T^=b.pbox[Y],O=H(b,T)^O,Q=T,T=O,O=Q;return Q=T,T=O,O=Q,O^=b.pbox[1],T^=b.pbox[0],{left:T,right:O}}(I,b[W],b[W+1]);b[W]=G.left,b[W+1]=G.right},blockSize:2,keySize:4,ivSize:2});h.Blowfish=w._createHelper(N)}(),m.Blowfish)},7904:function(ae,f,y){var _,w,k,S,$,p,H,C,x,b,W,G,O,Y,Z,re,ee,z,m;ae.exports=(m=y(8648),y(9755),void(m.lib.Cipher||(_=m,w=_.lib,k=w.Base,S=w.WordArray,$=w.BufferedBlockAlgorithm,p=_.enc,H=p.Base64,C=_.algo.EvpKDF,x=w.Cipher=$.extend({cfg:k.extend(),createEncryptor:function(M,V){return this.create(this._ENC_XFORM_MODE,M,V)},createDecryptor:function(M,V){return this.create(this._DEC_XFORM_MODE,M,V)},init:function(M,V,R){this.cfg=this.cfg.extend(R),this._xformMode=M,this._key=V,this.reset()},reset:function(){$.reset.call(this),this._doReset()},process:function(M){return this._append(M),this._process()},finalize:function(M){return M&&this._append(M),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function M(V){return"string"==typeof V?z:re}return function(V){return{encrypt:function(R,L,ne){return M(L).encrypt(V,R,L,ne)},decrypt:function(R,L,ne){return M(L).decrypt(V,R,L,ne)}}}}()}),w.StreamCipher=x.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),b=_.mode={},W=w.BlockCipherMode=k.extend({createEncryptor:function(M,V){return this.Encryptor.create(M,V)},createDecryptor:function(M,V){return this.Decryptor.create(M,V)},init:function(M,V){this._cipher=M,this._iv=V}}),G=b.CBC=function(){var M=W.extend();function V(R,L,ne){var oe,de=this._iv;de?(oe=de,this._iv=undefined):oe=this._prevBlock;for(var Ce=0;Ce>>2]}},w.BlockCipher=x.extend({cfg:x.cfg.extend({mode:G,padding:O}),reset:function(){var M;x.reset.call(this);var V=this.cfg,R=V.iv,L=V.mode;this._xformMode==this._ENC_XFORM_MODE?M=L.createEncryptor:(M=L.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==M?this._mode.init(this,R&&R.words):(this._mode=M.call(L,this,R&&R.words),this._mode.__creator=M)},_doProcessBlock:function(M,V){this._mode.processBlock(M,V)},_doFinalize:function(){var M,V=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(V.pad(this._data,this.blockSize),M=this._process(!0)):(M=this._process(!0),V.unpad(M)),M},blockSize:4}),Y=w.CipherParams=k.extend({init:function(M){this.mixIn(M)},toString:function(M){return(M||this.formatter).stringify(this)}}),Z=(_.format={}).OpenSSL={stringify:function(M){var R=M.ciphertext,L=M.salt;return(L?S.create([1398893684,1701076831]).concat(L).concat(R):R).toString(H)},parse:function(M){var V,R=H.parse(M),L=R.words;return 1398893684==L[0]&&1701076831==L[1]&&(V=S.create(L.slice(2,4)),L.splice(0,4),R.sigBytes-=16),Y.create({ciphertext:R,salt:V})}},re=w.SerializableCipher=k.extend({cfg:k.extend({format:Z}),encrypt:function(M,V,R,L){L=this.cfg.extend(L);var ne=M.createEncryptor(R,L),oe=ne.finalize(V),de=ne.cfg;return Y.create({ciphertext:oe,key:R,iv:de.iv,algorithm:M,mode:de.mode,padding:de.padding,blockSize:M.blockSize,formatter:L.format})},decrypt:function(M,V,R,L){return L=this.cfg.extend(L),V=this._parse(V,L.format),M.createDecryptor(R,L).finalize(V.ciphertext)},_parse:function(M,V){return"string"==typeof M?V.parse(M,this):M}}),ee=(_.kdf={}).OpenSSL={execute:function(M,V,R,L,ne){if(L||(L=S.random(8)),ne)var oe=C.create({keySize:V+R,hasher:ne}).compute(M,L);else oe=C.create({keySize:V+R}).compute(M,L);var de=S.create(oe.words.slice(V),4*R);return oe.sigBytes=4*V,Y.create({key:oe,iv:de,salt:L})}},z=w.PasswordBasedCipher=re.extend({cfg:re.cfg.extend({kdf:ee}),encrypt:function(M,V,R,L){var ne=(L=this.cfg.extend(L)).kdf.execute(R,M.keySize,M.ivSize,L.salt,L.hasher);L.iv=ne.iv;var oe=re.encrypt.call(this,M,V,ne.key,L);return oe.mixIn(ne),oe},decrypt:function(M,V,R,L){L=this.cfg.extend(L),V=this._parse(V,L.format);var ne=L.kdf.execute(R,M.keySize,M.ivSize,V.salt,L.hasher);return L.iv=ne.iv,re.decrypt.call(this,M,V,ne.key,L)}}))))},8648:function(ae,f,y){var m;ae.exports=(m=m||function(h,_){var w;if(typeof window<"u"&&window.crypto&&(w=window.crypto),typeof self<"u"&&self.crypto&&(w=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(w=globalThis.crypto),!w&&typeof window<"u"&&window.msCrypto&&(w=window.msCrypto),!w&&typeof global<"u"&&global.crypto&&(w=global.crypto),!w)try{w=y(9392)}catch{}var k=function(){if(w){if("function"==typeof w.getRandomValues)try{return w.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof w.randomBytes)try{return w.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},S=Object.create||function(){function T(){}return function(O){var Q;return T.prototype=O,Q=new T,T.prototype=null,Q}}(),$={},p=$.lib={},I=p.Base=function(){return{extend:function(T){var O=S(this);return T&&O.mixIn(T),(!O.hasOwnProperty("init")||this.init===O.init)&&(O.init=function(){O.$super.init.apply(this,arguments)}),O.init.prototype=O,O.$super=this,O},create:function(){var T=this.extend();return T.init.apply(T,arguments),T},init:function(){},mixIn:function(T){for(var O in T)T.hasOwnProperty(O)&&(this[O]=T[O]);T.hasOwnProperty("toString")&&(this.toString=T.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),H=p.WordArray=I.extend({init:function(T,O){T=this.words=T||[],this.sigBytes=null!=O?O:4*T.length},toString:function(T){return(T||C).stringify(this)},concat:function(T){var O=this.words,Q=T.words,Y=this.sigBytes,X=T.sigBytes;if(this.clamp(),Y%4)for(var Z=0;Z>>2]|=(Q[Z>>>2]>>>24-Z%4*8&255)<<24-(Y+Z)%4*8;else for(var J=0;J>>2]=Q[J>>>2];return this.sigBytes+=X,this},clamp:function(){var T=this.words,O=this.sigBytes;T[O>>>2]&=4294967295<<32-O%4*8,T.length=h.ceil(O/4)},clone:function(){var T=I.clone.call(this);return T.words=this.words.slice(0),T},random:function(T){for(var O=[],Q=0;Q>>2]>>>24-X%4*8&255;Y.push((Z>>>4).toString(16)),Y.push((15&Z).toString(16))}return Y.join("")},parse:function(T){for(var O=T.length,Q=[],Y=0;Y>>3]|=parseInt(T.substr(Y,2),16)<<24-Y%8*4;return new H.init(Q,O/2)}},x=P.Latin1={stringify:function(T){for(var O=T.words,Q=T.sigBytes,Y=[],X=0;X>>2]>>>24-X%4*8&255));return Y.join("")},parse:function(T){for(var O=T.length,Q=[],Y=0;Y>>2]|=(255&T.charCodeAt(Y))<<24-Y%4*8;return new H.init(Q,O)}},N=P.Utf8={stringify:function(T){try{return decodeURIComponent(escape(x.stringify(T)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(T){return x.parse(unescape(encodeURIComponent(T)))}},b=p.BufferedBlockAlgorithm=I.extend({reset:function(){this._data=new H.init,this._nDataBytes=0},_append:function(T){"string"==typeof T&&(T=N.parse(T)),this._data.concat(T),this._nDataBytes+=T.sigBytes},_process:function(T){var O,Q=this._data,Y=Q.words,X=Q.sigBytes,Z=this.blockSize,J=X/(4*Z),ee=(J=T?h.ceil(J):h.max((0|J)-this._minBufferSize,0))*Z,z=h.min(4*ee,X);if(ee){for(var M=0;M>>2]>>>24-x%4*8&255)<<16|(I[x+1>>>2]>>>24-(x+1)%4*8&255)<<8|I[x+2>>>2]>>>24-(x+2)%4*8&255,T=0;T<4&&x+.75*T>>6*(3-T)&63));var O=P.charAt(64);if(O)for(;C.length%4;)C.push(O);return C.join("")},parse:function(p){var I=p.length,H=this._map,P=this._reverseMap;if(!P){P=this._reverseMap=[];for(var C=0;C>>6-x%4*2;P[C>>>2]|=(N|b)<<24-C%4*8,C++}return w.create(P,C)}(p,I,P)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},m.enc.Base64)},188:function(ae,f,y){var m,w;ae.exports=(m=y(8648),w=m.lib.WordArray,m.enc.Base64url={stringify:function(p,I){void 0===I&&(I=!0);var H=p.words,P=p.sigBytes,C=I?this._safe_map:this._map;p.clamp();for(var x=[],N=0;N>>2]>>>24-N%4*8&255)<<16|(H[N+1>>>2]>>>24-(N+1)%4*8&255)<<8|H[N+2>>>2]>>>24-(N+2)%4*8&255,O=0;O<4&&N+.75*O>>6*(3-O)&63));var Q=C.charAt(64);if(Q)for(;x.length%4;)x.push(Q);return x.join("")},parse:function(p,I){void 0===I&&(I=!0);var H=p.length,P=I?this._safe_map:this._map,C=this._reverseMap;if(!C){C=this._reverseMap=[];for(var x=0;x>>6-x%4*2;P[C>>>2]|=(N|b)<<24-C%4*8,C++}return w.create(P,C)}(p,H,C)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},m.enc.Base64url)},3316:function(ae,f,y){var m;ae.exports=(m=y(8648),function(){var w=m.lib.WordArray,k=m.enc;function $(p){return p<<8&4278255360|p>>>8&16711935}k.Utf16=k.Utf16BE={stringify:function(p){for(var I=p.words,H=p.sigBytes,P=[],C=0;C>>2]>>>16-C%4*8&65535));return P.join("")},parse:function(p){for(var I=p.length,H=[],P=0;P>>1]|=p.charCodeAt(P)<<16-P%2*16;return w.create(H,2*I)}},k.Utf16LE={stringify:function(p){for(var I=p.words,H=p.sigBytes,P=[],C=0;C>>2]>>>16-C%4*8&65535);P.push(String.fromCharCode(x))}return P.join("")},parse:function(p){for(var I=p.length,H=[],P=0;P>>1]|=$(p.charCodeAt(P)<<16-P%2*16);return w.create(H,2*I)}}}(),m.enc.Utf16)},9755:function(ae,f,y){var h,_,w,k,S,p,m;ae.exports=(m=y(8648),y(6488),y(5620),k=(_=(h=m).lib).WordArray,p=(S=h.algo).EvpKDF=(w=_.Base).extend({cfg:w.extend({keySize:4,hasher:S.MD5,iterations:1}),init:function(I){this.cfg=this.cfg.extend(I)},compute:function(I,H){for(var P,C=this.cfg,x=C.hasher.create(),N=k.create(),b=N.words,W=C.keySize,G=C.iterations;b.lengthC&&(H=I.finalize(H)),H.clamp();for(var x=this._oKey=H.clone(),N=this._iKey=H.clone(),b=x.words,W=N.words,G=0;G>>2]|=$[H]<<24-H%4*8;k.call(this,I,p)}else k.apply(this,arguments)};S.prototype=w}}(),m.lib.WordArray)},740:function(ae,f,y){var m;ae.exports=(m=y(8648),function(h){var _=m,w=_.lib,k=w.WordArray,S=w.Hasher,$=_.algo,p=[];!function(){for(var N=0;N<64;N++)p[N]=4294967296*h.abs(h.sin(N+1))|0}();var I=$.MD5=S.extend({_doReset:function(){this._hash=new k.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(N,b){for(var W=0;W<16;W++){var G=b+W,T=N[G];N[G]=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8)}var O=this._hash.words,Q=N[b+0],Y=N[b+1],X=N[b+2],Z=N[b+3],re=N[b+4],J=N[b+5],ee=N[b+6],z=N[b+7],M=N[b+8],V=N[b+9],R=N[b+10],L=N[b+11],ne=N[b+12],oe=N[b+13],de=N[b+14],Ce=N[b+15],D=O[0],F=O[1],B=O[2],j=O[3];D=H(D,F,B,j,Q,7,p[0]),j=H(j,D,F,B,Y,12,p[1]),B=H(B,j,D,F,X,17,p[2]),F=H(F,B,j,D,Z,22,p[3]),D=H(D,F,B,j,re,7,p[4]),j=H(j,D,F,B,J,12,p[5]),B=H(B,j,D,F,ee,17,p[6]),F=H(F,B,j,D,z,22,p[7]),D=H(D,F,B,j,M,7,p[8]),j=H(j,D,F,B,V,12,p[9]),B=H(B,j,D,F,R,17,p[10]),F=H(F,B,j,D,L,22,p[11]),D=H(D,F,B,j,ne,7,p[12]),j=H(j,D,F,B,oe,12,p[13]),B=H(B,j,D,F,de,17,p[14]),D=P(D,F=H(F,B,j,D,Ce,22,p[15]),B,j,Y,5,p[16]),j=P(j,D,F,B,ee,9,p[17]),B=P(B,j,D,F,L,14,p[18]),F=P(F,B,j,D,Q,20,p[19]),D=P(D,F,B,j,J,5,p[20]),j=P(j,D,F,B,R,9,p[21]),B=P(B,j,D,F,Ce,14,p[22]),F=P(F,B,j,D,re,20,p[23]),D=P(D,F,B,j,V,5,p[24]),j=P(j,D,F,B,de,9,p[25]),B=P(B,j,D,F,Z,14,p[26]),F=P(F,B,j,D,M,20,p[27]),D=P(D,F,B,j,oe,5,p[28]),j=P(j,D,F,B,X,9,p[29]),B=P(B,j,D,F,z,14,p[30]),D=C(D,F=P(F,B,j,D,ne,20,p[31]),B,j,J,4,p[32]),j=C(j,D,F,B,M,11,p[33]),B=C(B,j,D,F,L,16,p[34]),F=C(F,B,j,D,de,23,p[35]),D=C(D,F,B,j,Y,4,p[36]),j=C(j,D,F,B,re,11,p[37]),B=C(B,j,D,F,z,16,p[38]),F=C(F,B,j,D,R,23,p[39]),D=C(D,F,B,j,oe,4,p[40]),j=C(j,D,F,B,Q,11,p[41]),B=C(B,j,D,F,Z,16,p[42]),F=C(F,B,j,D,ee,23,p[43]),D=C(D,F,B,j,V,4,p[44]),j=C(j,D,F,B,ne,11,p[45]),B=C(B,j,D,F,Ce,16,p[46]),D=x(D,F=C(F,B,j,D,X,23,p[47]),B,j,Q,6,p[48]),j=x(j,D,F,B,z,10,p[49]),B=x(B,j,D,F,de,15,p[50]),F=x(F,B,j,D,J,21,p[51]),D=x(D,F,B,j,ne,6,p[52]),j=x(j,D,F,B,Z,10,p[53]),B=x(B,j,D,F,R,15,p[54]),F=x(F,B,j,D,Y,21,p[55]),D=x(D,F,B,j,M,6,p[56]),j=x(j,D,F,B,Ce,10,p[57]),B=x(B,j,D,F,ee,15,p[58]),F=x(F,B,j,D,oe,21,p[59]),D=x(D,F,B,j,re,6,p[60]),j=x(j,D,F,B,L,10,p[61]),B=x(B,j,D,F,X,15,p[62]),F=x(F,B,j,D,V,21,p[63]),O[0]=O[0]+D|0,O[1]=O[1]+F|0,O[2]=O[2]+B|0,O[3]=O[3]+j|0},_doFinalize:function(){var N=this._data,b=N.words,W=8*this._nDataBytes,G=8*N.sigBytes;b[G>>>5]|=128<<24-G%32;var T=h.floor(W/4294967296),O=W;b[15+(G+64>>>9<<4)]=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8),b[14+(G+64>>>9<<4)]=16711935&(O<<8|O>>>24)|4278255360&(O<<24|O>>>8),N.sigBytes=4*(b.length+1),this._process();for(var Q=this._hash,Y=Q.words,X=0;X<4;X++){var Z=Y[X];Y[X]=16711935&(Z<<8|Z>>>24)|4278255360&(Z<<24|Z>>>8)}return Q},clone:function(){var N=S.clone.call(this);return N._hash=this._hash.clone(),N}});function H(N,b,W,G,T,O,Q){var Y=N+(b&W|~b&G)+T+Q;return(Y<>>32-O)+b}function P(N,b,W,G,T,O,Q){var Y=N+(b&G|W&~G)+T+Q;return(Y<>>32-O)+b}function C(N,b,W,G,T,O,Q){var Y=N+(b^W^G)+T+Q;return(Y<>>32-O)+b}function x(N,b,W,G,T,O,Q){var Y=N+(W^(b|~G))+T+Q;return(Y<>>32-O)+b}_.MD5=S._createHelper(I),_.HmacMD5=S._createHmacHelper(I)}(Math),m.MD5)},5436:function(ae,f,y){var m;ae.exports=(m=y(8648),y(7904),m.mode.CFB=function(){var h=m.lib.BlockCipherMode.extend();function _(w,k,S,$){var p,I=this._iv;I?(p=I.slice(0),this._iv=void 0):p=this._prevBlock,$.encryptBlock(p,0);for(var H=0;H>24&255)){var $=S>>16&255,p=S>>8&255,I=255&S;255===$?($=0,255===p?(p=0,255===I?I=0:++I):++p):++$,S=0,S+=$<<16,S+=p<<8,S+=I}else S+=1<<24;return S}var k=h.Encryptor=h.extend({processBlock:function(S,$){var p=this._cipher,I=p.blockSize,H=this._iv,P=this._counter;H&&(P=this._counter=H.slice(0),this._iv=void 0),function w(S){return 0===(S[0]=_(S[0]))&&(S[1]=_(S[1])),S}(P);var C=P.slice(0);p.encryptBlock(C,0);for(var x=0;x>>2]|=S<<24-$%4*8,h.sigBytes+=S},unpad:function(h){h.sigBytes-=255&h.words[h.sigBytes-1>>>2]}},m.pad.Ansix923)},2824:function(ae,f,y){var m;ae.exports=(m=y(8648),y(7904),m.pad.Iso10126={pad:function(h,_){var w=4*_,k=w-h.sigBytes%w;h.concat(m.lib.WordArray.random(k-1)).concat(m.lib.WordArray.create([k<<24],1))},unpad:function(h){h.sigBytes-=255&h.words[h.sigBytes-1>>>2]}},m.pad.Iso10126)},4236:function(ae,f,y){var m;ae.exports=(m=y(8648),y(7904),m.pad.Iso97971={pad:function(h,_){h.concat(m.lib.WordArray.create([2147483648],1)),m.pad.ZeroPadding.pad(h,_)},unpad:function(h){m.pad.ZeroPadding.unpad(h),h.sigBytes--}},m.pad.Iso97971)},968:function(ae,f,y){var m;ae.exports=(m=y(8648),y(7904),m.pad.NoPadding={pad:function(){},unpad:function(){}},m.pad.NoPadding)},1632:function(ae,f,y){var m;ae.exports=(m=y(8648),y(7904),m.pad.ZeroPadding={pad:function(h,_){var w=4*_;h.clamp(),h.sigBytes+=w-(h.sigBytes%w||w)},unpad:function(h){var _=h.words,w=h.sigBytes-1;for(w=h.sigBytes-1;w>=0;w--)if(_[w>>>2]>>>24-w%4*8&255){h.sigBytes=w+1;break}}},m.pad.ZeroPadding)},6760:function(ae,f,y){var h,_,w,k,S,p,I,m;ae.exports=(m=y(8648),y(3504),y(5620),k=(_=(h=m).lib).WordArray,p=(S=h.algo).HMAC,I=S.PBKDF2=(w=_.Base).extend({cfg:w.extend({keySize:4,hasher:S.SHA256,iterations:25e4}),init:function(H){this.cfg=this.cfg.extend(H)},compute:function(H,P){for(var C=this.cfg,x=p.create(C.hasher,H),N=k.create(),b=k.create([1]),W=N.words,G=b.words,T=C.keySize,O=C.iterations;W.length>>16,P[1],P[0]<<16|P[3]>>>16,P[2],P[1]<<16|P[0]>>>16,P[3],P[2]<<16|P[1]>>>16],N=this._C=[P[2]<<16|P[2]>>>16,4294901760&P[0]|65535&P[1],P[3]<<16|P[3]>>>16,4294901760&P[1]|65535&P[2],P[0]<<16|P[0]>>>16,4294901760&P[2]|65535&P[3],P[1]<<16|P[1]>>>16,4294901760&P[3]|65535&P[0]];this._b=0;for(var b=0;b<4;b++)H.call(this);for(b=0;b<8;b++)N[b]^=x[b+4&7];if(C){var W=C.words,G=W[0],T=W[1],O=16711935&(G<<8|G>>>24)|4278255360&(G<<24|G>>>8),Q=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8),Y=O>>>16|4294901760&Q,X=Q<<16|65535&O;for(N[0]^=O,N[1]^=Y,N[2]^=Q,N[3]^=X,N[4]^=O,N[5]^=Y,N[6]^=Q,N[7]^=X,b=0;b<4;b++)H.call(this)}},_doProcessBlock:function(P,C){var x=this._X;H.call(this),S[0]=x[0]^x[5]>>>16^x[3]<<16,S[1]=x[2]^x[7]>>>16^x[5]<<16,S[2]=x[4]^x[1]>>>16^x[7]<<16,S[3]=x[6]^x[3]>>>16^x[1]<<16;for(var N=0;N<4;N++)S[N]=16711935&(S[N]<<8|S[N]>>>24)|4278255360&(S[N]<<24|S[N]>>>8),P[C+N]^=S[N]},blockSize:4,ivSize:2});function H(){for(var P=this._X,C=this._C,x=0;x<8;x++)$[x]=C[x];for(C[0]=C[0]+1295307597+this._b|0,C[1]=C[1]+3545052371+(C[0]>>>0<$[0]>>>0?1:0)|0,C[2]=C[2]+886263092+(C[1]>>>0<$[1]>>>0?1:0)|0,C[3]=C[3]+1295307597+(C[2]>>>0<$[2]>>>0?1:0)|0,C[4]=C[4]+3545052371+(C[3]>>>0<$[3]>>>0?1:0)|0,C[5]=C[5]+886263092+(C[4]>>>0<$[4]>>>0?1:0)|0,C[6]=C[6]+1295307597+(C[5]>>>0<$[5]>>>0?1:0)|0,C[7]=C[7]+3545052371+(C[6]>>>0<$[6]>>>0?1:0)|0,this._b=C[7]>>>0<$[7]>>>0?1:0,x=0;x<8;x++){var N=P[x]+C[x],b=65535&N,W=N>>>16;p[x]=((b*b>>>17)+b*W>>>15)+W*W^((4294901760&N)*N|0)+((65535&N)*N|0)}P[0]=p[0]+(p[7]<<16|p[7]>>>16)+(p[6]<<16|p[6]>>>16)|0,P[1]=p[1]+(p[0]<<8|p[0]>>>24)+p[7]|0,P[2]=p[2]+(p[1]<<16|p[1]>>>16)+(p[0]<<16|p[0]>>>16)|0,P[3]=p[3]+(p[2]<<8|p[2]>>>24)+p[1]|0,P[4]=p[4]+(p[3]<<16|p[3]>>>16)+(p[2]<<16|p[2]>>>16)|0,P[5]=p[5]+(p[4]<<8|p[4]>>>24)+p[3]|0,P[6]=p[6]+(p[5]<<16|p[5]>>>16)+(p[4]<<16|p[4]>>>16)|0,P[7]=p[7]+(p[6]<<8|p[6]>>>24)+p[5]|0}h.RabbitLegacy=w._createHelper(I)}(),m.RabbitLegacy)},5104:function(ae,f,y){var m;ae.exports=(m=y(8648),y(8872),y(740),y(9755),y(7904),function(){var h=m,w=h.lib.StreamCipher,S=[],$=[],p=[],I=h.algo.Rabbit=w.extend({_doReset:function(){for(var P=this._key.words,C=this.cfg.iv,x=0;x<4;x++)P[x]=16711935&(P[x]<<8|P[x]>>>24)|4278255360&(P[x]<<24|P[x]>>>8);var N=this._X=[P[0],P[3]<<16|P[2]>>>16,P[1],P[0]<<16|P[3]>>>16,P[2],P[1]<<16|P[0]>>>16,P[3],P[2]<<16|P[1]>>>16],b=this._C=[P[2]<<16|P[2]>>>16,4294901760&P[0]|65535&P[1],P[3]<<16|P[3]>>>16,4294901760&P[1]|65535&P[2],P[0]<<16|P[0]>>>16,4294901760&P[2]|65535&P[3],P[1]<<16|P[1]>>>16,4294901760&P[3]|65535&P[0]];for(this._b=0,x=0;x<4;x++)H.call(this);for(x=0;x<8;x++)b[x]^=N[x+4&7];if(C){var W=C.words,G=W[0],T=W[1],O=16711935&(G<<8|G>>>24)|4278255360&(G<<24|G>>>8),Q=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8),Y=O>>>16|4294901760&Q,X=Q<<16|65535&O;for(b[0]^=O,b[1]^=Y,b[2]^=Q,b[3]^=X,b[4]^=O,b[5]^=Y,b[6]^=Q,b[7]^=X,x=0;x<4;x++)H.call(this)}},_doProcessBlock:function(P,C){var x=this._X;H.call(this),S[0]=x[0]^x[5]>>>16^x[3]<<16,S[1]=x[2]^x[7]>>>16^x[5]<<16,S[2]=x[4]^x[1]>>>16^x[7]<<16,S[3]=x[6]^x[3]>>>16^x[1]<<16;for(var N=0;N<4;N++)S[N]=16711935&(S[N]<<8|S[N]>>>24)|4278255360&(S[N]<<24|S[N]>>>8),P[C+N]^=S[N]},blockSize:4,ivSize:2});function H(){for(var P=this._X,C=this._C,x=0;x<8;x++)$[x]=C[x];for(C[0]=C[0]+1295307597+this._b|0,C[1]=C[1]+3545052371+(C[0]>>>0<$[0]>>>0?1:0)|0,C[2]=C[2]+886263092+(C[1]>>>0<$[1]>>>0?1:0)|0,C[3]=C[3]+1295307597+(C[2]>>>0<$[2]>>>0?1:0)|0,C[4]=C[4]+3545052371+(C[3]>>>0<$[3]>>>0?1:0)|0,C[5]=C[5]+886263092+(C[4]>>>0<$[4]>>>0?1:0)|0,C[6]=C[6]+1295307597+(C[5]>>>0<$[5]>>>0?1:0)|0,C[7]=C[7]+3545052371+(C[6]>>>0<$[6]>>>0?1:0)|0,this._b=C[7]>>>0<$[7]>>>0?1:0,x=0;x<8;x++){var N=P[x]+C[x],b=65535&N,W=N>>>16;p[x]=((b*b>>>17)+b*W>>>15)+W*W^((4294901760&N)*N|0)+((65535&N)*N|0)}P[0]=p[0]+(p[7]<<16|p[7]>>>16)+(p[6]<<16|p[6]>>>16)|0,P[1]=p[1]+(p[0]<<8|p[0]>>>24)+p[7]|0,P[2]=p[2]+(p[1]<<16|p[1]>>>16)+(p[0]<<16|p[0]>>>16)|0,P[3]=p[3]+(p[2]<<8|p[2]>>>24)+p[1]|0,P[4]=p[4]+(p[3]<<16|p[3]>>>16)+(p[2]<<16|p[2]>>>16)|0,P[5]=p[5]+(p[4]<<8|p[4]>>>24)+p[3]|0,P[6]=p[6]+(p[5]<<16|p[5]>>>16)+(p[4]<<16|p[4]>>>16)|0,P[7]=p[7]+(p[6]<<8|p[6]>>>24)+p[5]|0}h.Rabbit=w._createHelper(I)}(),m.Rabbit)},7868:function(ae,f,y){var m;ae.exports=(m=y(8648),y(8872),y(740),y(9755),y(7904),function(){var h=m,w=h.lib.StreamCipher,k=h.algo,S=k.RC4=w.extend({_doReset:function(){for(var I=this._key,H=I.words,P=I.sigBytes,C=this._S=[],x=0;x<256;x++)C[x]=x;x=0;for(var N=0;x<256;x++){var b=x%P,G=C[x];C[x]=C[N=(N+C[x]+(H[b>>>2]>>>24-b%4*8&255))%256],C[N]=G}this._i=this._j=0},_doProcessBlock:function(I,H){I[H]^=$.call(this)},keySize:8,ivSize:0});function $(){for(var I=this._S,H=this._i,P=this._j,C=0,x=0;x<4;x++){var N=I[H=(H+1)%256];I[H]=I[P=(P+I[H])%256],I[P]=N,C|=I[(I[H]+I[P])%256]<<24-8*x}return this._i=H,this._j=P,C}h.RC4=w._createHelper(S);var p=k.RC4Drop=S.extend({cfg:S.cfg.extend({drop:192}),_doReset:function(){S._doReset.call(this);for(var I=this.cfg.drop;I>0;I--)$.call(this)}});h.RC4Drop=w._createHelper(p)}(),m.RC4)},6576:function(ae,f,y){var m;ae.exports=(m=y(8648),function(h){var _=m,w=_.lib,k=w.WordArray,S=w.Hasher,$=_.algo,p=k.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),I=k.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),H=k.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),P=k.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),C=k.create([0,1518500249,1859775393,2400959708,2840853838]),x=k.create([1352829926,1548603684,1836072691,2053994217,0]),N=$.RIPEMD160=S.extend({_doReset:function(){this._hash=k.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(Y,X){for(var Z=0;Z<16;Z++){var re=X+Z,J=Y[re];Y[re]=16711935&(J<<8|J>>>24)|4278255360&(J<<24|J>>>8)}var oe,de,Ce,D,F,B,j,te,ie,fe,ce,ee=this._hash.words,z=C.words,M=x.words,V=p.words,R=I.words,L=H.words,ne=P.words;for(B=oe=ee[0],j=de=ee[1],te=Ce=ee[2],ie=D=ee[3],fe=F=ee[4],Z=0;Z<80;Z+=1)ce=oe+Y[X+V[Z]]|0,ce+=Z<16?b(de,Ce,D)+z[0]:Z<32?W(de,Ce,D)+z[1]:Z<48?G(de,Ce,D)+z[2]:Z<64?T(de,Ce,D)+z[3]:O(de,Ce,D)+z[4],ce=(ce=Q(ce|=0,L[Z]))+F|0,oe=F,F=D,D=Q(Ce,10),Ce=de,de=ce,ce=B+Y[X+R[Z]]|0,ce+=Z<16?O(j,te,ie)+M[0]:Z<32?T(j,te,ie)+M[1]:Z<48?G(j,te,ie)+M[2]:Z<64?W(j,te,ie)+M[3]:b(j,te,ie)+M[4],ce=(ce=Q(ce|=0,ne[Z]))+fe|0,B=fe,fe=ie,ie=Q(te,10),te=j,j=ce;ce=ee[1]+Ce+ie|0,ee[1]=ee[2]+D+fe|0,ee[2]=ee[3]+F+B|0,ee[3]=ee[4]+oe+j|0,ee[4]=ee[0]+de+te|0,ee[0]=ce},_doFinalize:function(){var Y=this._data,X=Y.words,Z=8*this._nDataBytes,re=8*Y.sigBytes;X[re>>>5]|=128<<24-re%32,X[14+(re+64>>>9<<4)]=16711935&(Z<<8|Z>>>24)|4278255360&(Z<<24|Z>>>8),Y.sigBytes=4*(X.length+1),this._process();for(var J=this._hash,ee=J.words,z=0;z<5;z++){var M=ee[z];ee[z]=16711935&(M<<8|M>>>24)|4278255360&(M<<24|M>>>8)}return J},clone:function(){var Y=S.clone.call(this);return Y._hash=this._hash.clone(),Y}});function b(Y,X,Z){return Y^X^Z}function W(Y,X,Z){return Y&X|~Y&Z}function G(Y,X,Z){return(Y|~X)^Z}function T(Y,X,Z){return Y&Z|X&~Z}function O(Y,X,Z){return Y^(X|~Z)}function Q(Y,X){return Y<>>32-X}_.RIPEMD160=S._createHelper(N),_.HmacRIPEMD160=S._createHmacHelper(N)}(Math),m.RIPEMD160)},6488:function(ae,f,y){var h,_,w,k,$,p,m;ae.exports=(m=y(8648),w=(_=(h=m).lib).WordArray,$=[],p=h.algo.SHA1=(k=_.Hasher).extend({_doReset:function(){this._hash=new w.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(I,H){for(var P=this._hash.words,C=P[0],x=P[1],N=P[2],b=P[3],W=P[4],G=0;G<80;G++){if(G<16)$[G]=0|I[H+G];else{var T=$[G-3]^$[G-8]^$[G-14]^$[G-16];$[G]=T<<1|T>>>31}var O=(C<<5|C>>>27)+W+$[G];O+=G<20?1518500249+(x&N|~x&b):G<40?1859775393+(x^N^b):G<60?(x&N|x&b|N&b)-1894007588:(x^N^b)-899497514,W=b,b=N,N=x<<30|x>>>2,x=C,C=O}P[0]=P[0]+C|0,P[1]=P[1]+x|0,P[2]=P[2]+N|0,P[3]=P[3]+b|0,P[4]=P[4]+W|0},_doFinalize:function(){var I=this._data,H=I.words,P=8*this._nDataBytes,C=8*I.sigBytes;return H[C>>>5]|=128<<24-C%32,H[14+(C+64>>>9<<4)]=Math.floor(P/4294967296),H[15+(C+64>>>9<<4)]=P,I.sigBytes=4*H.length,this._process(),this._hash},clone:function(){var I=k.clone.call(this);return I._hash=this._hash.clone(),I}}),h.SHA1=k._createHelper(p),h.HmacSHA1=k._createHmacHelper(p),m.SHA1)},9576:function(ae,f,y){var h,w,k,S,$,m;ae.exports=(m=y(8648),y(3504),w=(h=m).lib.WordArray,$=(k=h.algo).SHA224=(S=k.SHA256).extend({_doReset:function(){this._hash=new w.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var p=S._doFinalize.call(this);return p.sigBytes-=4,p}}),h.SHA224=S._createHelper($),h.HmacSHA224=S._createHmacHelper($),m.SHA224)},3504:function(ae,f,y){var m;ae.exports=(m=y(8648),function(h){var _=m,w=_.lib,k=w.WordArray,S=w.Hasher,$=_.algo,p=[],I=[];!function(){function C(W){for(var G=h.sqrt(W),T=2;T<=G;T++)if(!(W%T))return!1;return!0}function x(W){return 4294967296*(W-(0|W))|0}for(var N=2,b=0;b<64;)C(N)&&(b<8&&(p[b]=x(h.pow(N,.5))),I[b]=x(h.pow(N,1/3)),b++),N++}();var H=[],P=$.SHA256=S.extend({_doReset:function(){this._hash=new k.init(p.slice(0))},_doProcessBlock:function(C,x){for(var N=this._hash.words,b=N[0],W=N[1],G=N[2],T=N[3],O=N[4],Q=N[5],Y=N[6],X=N[7],Z=0;Z<64;Z++){if(Z<16)H[Z]=0|C[x+Z];else{var re=H[Z-15],ee=H[Z-2];H[Z]=((re<<25|re>>>7)^(re<<14|re>>>18)^re>>>3)+H[Z-7]+((ee<<15|ee>>>17)^(ee<<13|ee>>>19)^ee>>>10)+H[Z-16]}var V=b&W^b&G^W&G,ne=X+((O<<26|O>>>6)^(O<<21|O>>>11)^(O<<7|O>>>25))+(O&Q^~O&Y)+I[Z]+H[Z];X=Y,Y=Q,Q=O,O=T+ne|0,T=G,G=W,W=b,b=ne+(((b<<30|b>>>2)^(b<<19|b>>>13)^(b<<10|b>>>22))+V)|0}N[0]=N[0]+b|0,N[1]=N[1]+W|0,N[2]=N[2]+G|0,N[3]=N[3]+T|0,N[4]=N[4]+O|0,N[5]=N[5]+Q|0,N[6]=N[6]+Y|0,N[7]=N[7]+X|0},_doFinalize:function(){var C=this._data,x=C.words,N=8*this._nDataBytes,b=8*C.sigBytes;return x[b>>>5]|=128<<24-b%32,x[14+(b+64>>>9<<4)]=h.floor(N/4294967296),x[15+(b+64>>>9<<4)]=N,C.sigBytes=4*x.length,this._process(),this._hash},clone:function(){var C=S.clone.call(this);return C._hash=this._hash.clone(),C}});_.SHA256=S._createHelper(P),_.HmacSHA256=S._createHmacHelper(P)}(Math),m.SHA256)},4808:function(ae,f,y){var m;ae.exports=(m=y(8648),y(6744),function(h){var _=m,w=_.lib,k=w.WordArray,S=w.Hasher,p=_.x64.Word,I=_.algo,H=[],P=[],C=[];!function(){for(var b=1,W=0,G=0;G<24;G++){H[b+5*W]=(G+1)*(G+2)/2%64;var O=(2*b+3*W)%5;b=W%5,W=O}for(b=0;b<5;b++)for(W=0;W<5;W++)P[b+5*W]=W+(2*b+3*W)%5*5;for(var Q=1,Y=0;Y<24;Y++){for(var X=0,Z=0,re=0;re<7;re++){if(1&Q){var J=(1<>>24)|4278255360&(Q<<24|Q>>>8),(X=G[O]).high^=Y=16711935&(Y<<8|Y>>>24)|4278255360&(Y<<24|Y>>>8),X.low^=Q}for(var Z=0;Z<24;Z++){for(var re=0;re<5;re++){for(var J=0,ee=0,z=0;z<5;z++)J^=(X=G[re+5*z]).high,ee^=X.low;var M=x[re];M.high=J,M.low=ee}for(re=0;re<5;re++){var V=x[(re+4)%5],R=x[(re+1)%5],L=R.high,ne=R.low;for(J=V.high^(L<<1|ne>>>31),ee=V.low^(ne<<1|L>>>31),z=0;z<5;z++)(X=G[re+5*z]).high^=J,X.low^=ee}for(var oe=1;oe<25;oe++){var de=(X=G[oe]).high,Ce=X.low,D=H[oe];D<32?(J=de<>>32-D,ee=Ce<>>32-D):(J=Ce<>>64-D,ee=de<>>64-D);var F=x[P[oe]];F.high=J,F.low=ee}var B=x[0],j=G[0];for(B.high=j.high,B.low=j.low,re=0;re<5;re++)for(z=0;z<5;z++){var te=x[oe=re+5*z],ie=x[(re+1)%5+5*z],fe=x[(re+2)%5+5*z];(X=G[oe]).high=te.high^~ie.high&fe.high,X.low=te.low^~ie.low&fe.low}var X,ce=C[Z];(X=G[0]).high^=ce.high,X.low^=ce.low}},_doFinalize:function(){var b=this._data,W=b.words,T=8*b.sigBytes,O=32*this.blockSize;W[T>>>5]|=1<<24-T%32,W[(h.ceil((T+1)/O)*O>>>5)-1]|=128,b.sigBytes=4*W.length,this._process();for(var Q=this._state,Y=this.cfg.outputLength/8,X=Y/8,Z=[],re=0;re>>24)|4278255360&(ee<<24|ee>>>8),Z.push(z=16711935&(z<<8|z>>>24)|4278255360&(z<<24|z>>>8)),Z.push(ee)}return new k.init(Z,Y)},clone:function(){for(var b=S.clone.call(this),W=b._state=this._state.slice(0),G=0;G<25;G++)W[G]=W[G].clone();return b}});_.SHA3=S._createHelper(N),_.HmacSHA3=S._createHmacHelper(N)}(Math),m.SHA3)},2712:function(ae,f,y){var h,_,w,k,S,$,p,m;ae.exports=(m=y(8648),y(6744),y(7348),w=(_=(h=m).x64).Word,k=_.WordArray,p=(S=h.algo).SHA384=($=S.SHA512).extend({_doReset:function(){this._hash=new k.init([new w.init(3418070365,3238371032),new w.init(1654270250,914150663),new w.init(2438529370,812702999),new w.init(355462360,4144912697),new w.init(1731405415,4290775857),new w.init(2394180231,1750603025),new w.init(3675008525,1694076839),new w.init(1203062813,3204075428)])},_doFinalize:function(){var I=$._doFinalize.call(this);return I.sigBytes-=16,I}}),h.SHA384=$._createHelper(p),h.HmacSHA384=$._createHmacHelper(p),m.SHA384)},7348:function(ae,f,y){var m;ae.exports=(m=y(8648),y(6744),function(){var h=m,w=h.lib.Hasher,k=h.x64,S=k.Word,$=k.WordArray,p=h.algo;function I(){return S.create.apply(S,arguments)}var H=[I(1116352408,3609767458),I(1899447441,602891725),I(3049323471,3964484399),I(3921009573,2173295548),I(961987163,4081628472),I(1508970993,3053834265),I(2453635748,2937671579),I(2870763221,3664609560),I(3624381080,2734883394),I(310598401,1164996542),I(607225278,1323610764),I(1426881987,3590304994),I(1925078388,4068182383),I(2162078206,991336113),I(2614888103,633803317),I(3248222580,3479774868),I(3835390401,2666613458),I(4022224774,944711139),I(264347078,2341262773),I(604807628,2007800933),I(770255983,1495990901),I(1249150122,1856431235),I(1555081692,3175218132),I(1996064986,2198950837),I(2554220882,3999719339),I(2821834349,766784016),I(2952996808,2566594879),I(3210313671,3203337956),I(3336571891,1034457026),I(3584528711,2466948901),I(113926993,3758326383),I(338241895,168717936),I(666307205,1188179964),I(773529912,1546045734),I(1294757372,1522805485),I(1396182291,2643833823),I(1695183700,2343527390),I(1986661051,1014477480),I(2177026350,1206759142),I(2456956037,344077627),I(2730485921,1290863460),I(2820302411,3158454273),I(3259730800,3505952657),I(3345764771,106217008),I(3516065817,3606008344),I(3600352804,1432725776),I(4094571909,1467031594),I(275423344,851169720),I(430227734,3100823752),I(506948616,1363258195),I(659060556,3750685593),I(883997877,3785050280),I(958139571,3318307427),I(1322822218,3812723403),I(1537002063,2003034995),I(1747873779,3602036899),I(1955562222,1575990012),I(2024104815,1125592928),I(2227730452,2716904306),I(2361852424,442776044),I(2428436474,593698344),I(2756734187,3733110249),I(3204031479,2999351573),I(3329325298,3815920427),I(3391569614,3928383900),I(3515267271,566280711),I(3940187606,3454069534),I(4118630271,4000239992),I(116418474,1914138554),I(174292421,2731055270),I(289380356,3203993006),I(460393269,320620315),I(685471733,587496836),I(852142971,1086792851),I(1017036298,365543100),I(1126000580,2618297676),I(1288033470,3409855158),I(1501505948,4234509866),I(1607167915,987167468),I(1816402316,1246189591)],P=[];!function(){for(var x=0;x<80;x++)P[x]=I()}();var C=p.SHA512=w.extend({_doReset:function(){this._hash=new $.init([new S.init(1779033703,4089235720),new S.init(3144134277,2227873595),new S.init(1013904242,4271175723),new S.init(2773480762,1595750129),new S.init(1359893119,2917565137),new S.init(2600822924,725511199),new S.init(528734635,4215389547),new S.init(1541459225,327033209)])},_doProcessBlock:function(x,N){for(var b=this._hash.words,W=b[0],G=b[1],T=b[2],O=b[3],Q=b[4],Y=b[5],X=b[6],Z=b[7],re=W.high,J=W.low,ee=G.high,z=G.low,M=T.high,V=T.low,R=O.high,L=O.low,ne=Q.high,oe=Q.low,de=Y.high,Ce=Y.low,D=X.high,F=X.low,B=Z.high,j=Z.low,te=re,ie=J,fe=ee,ce=z,ye=M,pe=V,Ee=R,Re=L,Me=ne,Ae=oe,Be=de,Ve=Ce,Te=D,Le=F,Qe=B,Dt=j,pt=0;pt<80;pt++){var ut,an,rr=P[pt];if(pt<16)an=rr.high=0|x[N+2*pt],ut=rr.low=0|x[N+2*pt+1];else{var Bn=P[pt-15],Dr=Bn.high,Vr=Bn.low,wo=(Vr>>>1|Dr<<31)^(Vr>>>8|Dr<<24)^(Vr>>>7|Dr<<25),Pt=P[pt-2],Ht=Pt.high,Rn=Pt.low,Ar=(Rn>>>19|Ht<<13)^(Rn<<3|Ht>>>29)^(Rn>>>6|Ht<<26),Fn=P[pt-7],ls=P[pt-16],Ys=ls.low;rr.high=an=(an=(an=((Dr>>>1|Vr<<31)^(Dr>>>8|Vr<<24)^Dr>>>7)+Fn.high+((ut=wo+Fn.low)>>>0>>0?1:0))+((Ht>>>19|Rn<<13)^(Ht<<3|Rn>>>29)^Ht>>>6)+((ut+=Ar)>>>0>>0?1:0))+ls.high+((ut+=Ys)>>>0>>0?1:0),rr.low=ut}var Hn,P0=Me&Be^~Me&Te,Xs=Ae&Ve^~Ae&Le,Qo=te&fe^te&ye^fe&ye,cn=(ie>>>28|te<<4)^(ie<<30|te>>>2)^(ie<<25|te>>>7),Yu=H[pt],en=Yu.low,ln=Qe+((Me>>>14|Ae<<18)^(Me>>>18|Ae<<14)^(Me<<23|Ae>>>9))+((Hn=Dt+((Ae>>>14|Me<<18)^(Ae>>>18|Me<<14)^(Ae<<23|Me>>>9)))>>>0
>>0?1:0),kc=cn+(ie&ce^ie&pe^ce&pe);Qe=Te,Dt=Le,Te=Be,Le=Ve,Be=Me,Ve=Ae,Me=Ee+(ln=(ln=(ln=ln+P0+((Hn+=Xs)>>>0>>0?1:0))+Yu.high+((Hn+=en)>>>0>>0?1:0))+an+((Hn+=ut)>>>0>>0?1:0))+((Ae=Re+Hn|0)>>>0>>0?1:0)|0,Ee=ye,Re=pe,ye=fe,pe=ce,fe=te,ce=ie,te=ln+(((te>>>28|ie<<4)^(te<<30|ie>>>2)^(te<<25|ie>>>7))+Qo+(kc>>>0>>0?1:0))+((ie=Hn+kc|0)>>>0>>0?1:0)|0}J=W.low=J+ie,W.high=re+te+(J>>>0>>0?1:0),z=G.low=z+ce,G.high=ee+fe+(z>>>0>>0?1:0),V=T.low=V+pe,T.high=M+ye+(V>>>0>>0?1:0),L=O.low=L+Re,O.high=R+Ee+(L>>>0>>0?1:0),oe=Q.low=oe+Ae,Q.high=ne+Me+(oe>>>0>>0?1:0),Ce=Y.low=Ce+Ve,Y.high=de+Be+(Ce>>>0>>0?1:0),F=X.low=F+Le,X.high=D+Te+(F>>>0>>0?1:0),j=Z.low=j+Dt,Z.high=B+Qe+(j>>>0
>>0?1:0)},_doFinalize:function(){var x=this._data,N=x.words,b=8*this._nDataBytes,W=8*x.sigBytes;return N[W>>>5]|=128<<24-W%32,N[30+(W+128>>>10<<5)]=Math.floor(b/4294967296),N[31+(W+128>>>10<<5)]=b,x.sigBytes=4*N.length,this._process(),this._hash.toX32()},clone:function(){var x=w.clone.call(this);return x._hash=this._hash.clone(),x},blockSize:32});h.SHA512=w._createHelper(C),h.HmacSHA512=w._createHmacHelper(C)}(),m.SHA512)},2636:function(ae,f,y){var m;ae.exports=(m=y(8648),y(8872),y(740),y(9755),y(7904),function(){var h=m,_=h.lib,w=_.WordArray,k=_.BlockCipher,S=h.algo,$=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],p=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],I=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],H=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],P=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],C=S.DES=k.extend({_doReset:function(){for(var G=this._key.words,T=[],O=0;O<56;O++){var Q=$[O]-1;T[O]=G[Q>>>5]>>>31-Q%32&1}for(var Y=this._subKeys=[],X=0;X<16;X++){var Z=Y[X]=[],re=I[X];for(O=0;O<24;O++)Z[O/6|0]|=T[(p[O]-1+re)%28]<<31-O%6,Z[4+(O/6|0)]|=T[28+(p[O+24]-1+re)%28]<<31-O%6;for(Z[0]=Z[0]<<1|Z[0]>>>31,O=1;O<7;O++)Z[O]=Z[O]>>>4*(O-1)+3;Z[7]=Z[7]<<5|Z[7]>>>27}var J=this._invSubKeys=[];for(O=0;O<16;O++)J[O]=Y[15-O]},encryptBlock:function(W,G){this._doCryptBlock(W,G,this._subKeys)},decryptBlock:function(W,G){this._doCryptBlock(W,G,this._invSubKeys)},_doCryptBlock:function(W,G,T){this._lBlock=W[G],this._rBlock=W[G+1],x.call(this,4,252645135),x.call(this,16,65535),N.call(this,2,858993459),N.call(this,8,16711935),x.call(this,1,1431655765);for(var O=0;O<16;O++){for(var Q=T[O],Y=this._lBlock,X=this._rBlock,Z=0,re=0;re<8;re++)Z|=H[re][((X^Q[re])&P[re])>>>0];this._lBlock=X,this._rBlock=Y^Z}var J=this._lBlock;this._lBlock=this._rBlock,this._rBlock=J,x.call(this,1,1431655765),N.call(this,8,16711935),N.call(this,2,858993459),x.call(this,16,65535),x.call(this,4,252645135),W[G]=this._lBlock,W[G+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function x(W,G){var T=(this._lBlock>>>W^this._rBlock)&G;this._rBlock^=T,this._lBlock^=T<>>W^this._lBlock)&G;this._lBlock^=T,this._rBlock^=T<192.");var T=G.slice(0,2),O=G.length<4?G.slice(0,2):G.slice(2,4),Q=G.length<6?G.slice(0,2):G.slice(4,6);this._des1=C.createEncryptor(w.create(T)),this._des2=C.createEncryptor(w.create(O)),this._des3=C.createEncryptor(w.create(Q))},encryptBlock:function(W,G){this._des1.encryptBlock(W,G),this._des2.decryptBlock(W,G),this._des3.encryptBlock(W,G)},decryptBlock:function(W,G){this._des3.decryptBlock(W,G),this._des2.encryptBlock(W,G),this._des1.decryptBlock(W,G)},keySize:6,ivSize:2,blockSize:2});h.TripleDES=k._createHelper(b)}(),m.TripleDES)},6744:function(ae,f,y){var w,k,S,$,m;ae.exports=(m=y(8648),k=(w=m.lib).Base,S=w.WordArray,($=m.x64={}).Word=k.extend({init:function(H,P){this.high=H,this.low=P}}),$.WordArray=k.extend({init:function(H,P){H=this.words=H||[],this.sigBytes=null!=P?P:8*H.length},toX32:function(){for(var H=this.words,P=H.length,C=[],x=0;x{"use strict";var f={single_source_shortest_paths:function(y,m,h){var _={},w={};w[m]=0;var S,$,p,I,H,C,k=f.PriorityQueue.make();for(k.push(m,0);!k.empty();)for(p in I=(S=k.pop()).cost,H=y[$=S.value]||{})H.hasOwnProperty(p)&&(C=I+H[p],(typeof w[p]>"u"||w[p]>C)&&(w[p]=C,k.push(p,C),_[p]=$));if(typeof h<"u"&&typeof w[h]>"u"){var b=["Could not find a path from ",m," to ",h,"."].join("");throw new Error(b)}return _},extract_shortest_path_from_predecessor_list:function(y,m){for(var h=[],_=m;_;)h.push(_),_=y[_];return h.reverse(),h},find_path:function(y,m,h){var _=f.single_source_shortest_paths(y,m,h);return f.extract_shortest_path_from_predecessor_list(_,h)},PriorityQueue:{make:function(y){var _,m=f.PriorityQueue,h={};for(_ in y=y||{},m)m.hasOwnProperty(_)&&(h[_]=m[_]);return h.queue=[],h.sorter=y.sorter||m.default_sorter,h},default_sorter:function(y,m){return y.cost-m.cost},push:function(y,m){this.queue.push({value:y,cost:m}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};ae.exports=f},8940:ae=>{"use strict";ae.exports=function(y){for(var m=[],h=y.length,_=0;_=55296&&w<=56319&&h>_+1){var k=y.charCodeAt(_+1);k>=56320&&k<=57343&&(w=1024*(w-55296)+k-56320+65536,_+=1)}w<128?m.push(w):w<2048?(m.push(w>>6|192),m.push(63&w|128)):w<55296||w>=57344&&w<65536?(m.push(w>>12|224),m.push(w>>6&63|128),m.push(63&w|128)):w>=65536&&w<=1114111?(m.push(w>>18|240),m.push(w>>12&63|128),m.push(w>>6&63|128),m.push(63&w|128)):m.push(239,191,189)}return new Uint8Array(m).buffer}},4336:(ae,f,y)=>{const h=y(8072),_=y(8004),w=y(2384),k=y(9944);function S($,p,I,H,P){const C=[].slice.call(arguments,1),x=C.length,N="function"==typeof C[x-1];if(!N&&!h())throw new Error("Callback required as last argument");if(!N){if(x<1)throw new Error("Too few arguments provided");return 1===x?(I=p,p=H=void 0):2===x&&!p.getContext&&(H=I,I=p,p=void 0),new Promise(function(b,W){try{const G=_.create(I,H);b($(G,p,H))}catch(G){W(G)}})}if(x<2)throw new Error("Too few arguments provided");2===x?(P=I,I=p,p=H=void 0):3===x&&(p.getContext&&typeof P>"u"?(P=H,H=void 0):(P=H,H=I,I=p,p=void 0));try{const b=_.create(I,H);P(null,$(b,p,H))}catch(b){P(b)}}f.gH=S.bind(null,w.render),S.bind(null,w.renderToDataURL),S.bind(null,function($,p,I){return k.render($,I)})},8072:ae=>{ae.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},4936:(ae,f,y)=>{const m=y(8124).getSymbolSize;f.getRowColCoords=function(_){if(1===_)return[];const w=Math.floor(_/7)+2,k=m(_),S=145===k?26:2*Math.ceil((k-13)/(2*w-2)),$=[k-7];for(let p=1;p{const m=y(3612),h=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function _(w){this.mode=m.ALPHANUMERIC,this.data=w}_.getBitsLength=function(k){return 11*Math.floor(k/2)+k%2*6},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(k){let S;for(S=0;S+2<=this.data.length;S+=2){let $=45*h.indexOf(this.data[S]);$+=h.indexOf(this.data[S+1]),k.put($,11)}this.data.length%2&&k.put(h.indexOf(this.data[S]),6)},ae.exports=_},8980:ae=>{function f(){this.buffer=[],this.length=0}f.prototype={get:function(y){const m=Math.floor(y/8);return 1==(this.buffer[m]>>>7-y%8&1)},put:function(y,m){for(let h=0;h>>m-h-1&1))},getLengthInBits:function(){return this.length},putBit:function(y){const m=Math.floor(this.length/8);this.buffer.length<=m&&this.buffer.push(0),y&&(this.buffer[m]|=128>>>this.length%8),this.length++}},ae.exports=f},664:ae=>{function f(y){if(!y||y<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=y,this.data=new Uint8Array(y*y),this.reservedBit=new Uint8Array(y*y)}f.prototype.set=function(y,m,h,_){const w=y*this.size+m;this.data[w]=h,_&&(this.reservedBit[w]=!0)},f.prototype.get=function(y,m){return this.data[y*this.size+m]},f.prototype.xor=function(y,m,h){this.data[y*this.size+m]^=h},f.prototype.isReserved=function(y,m){return this.reservedBit[y*this.size+m]},ae.exports=f},4692:(ae,f,y)=>{const m=y(8940),h=y(3612);function _(w){this.mode=h.BYTE,"string"==typeof w&&(w=m(w)),this.data=new Uint8Array(w)}_.getBitsLength=function(k){return 8*k},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(w){for(let k=0,S=this.data.length;k{const m=y(5120),h=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],_=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];f.getBlocksCount=function(k,S){switch(S){case m.L:return h[4*(k-1)+0];case m.M:return h[4*(k-1)+1];case m.Q:return h[4*(k-1)+2];case m.H:return h[4*(k-1)+3];default:return}},f.getTotalCodewordsCount=function(k,S){switch(S){case m.L:return _[4*(k-1)+0];case m.M:return _[4*(k-1)+1];case m.Q:return _[4*(k-1)+2];case m.H:return _[4*(k-1)+3];default:return}}},5120:(ae,f)=>{f.L={bit:1},f.M={bit:0},f.Q={bit:3},f.H={bit:2},f.isValid=function(h){return h&&typeof h.bit<"u"&&h.bit>=0&&h.bit<4},f.from=function(h,_){if(f.isValid(h))return h;try{return function y(m){if("string"!=typeof m)throw new Error("Param is not a string");switch(m.toLowerCase()){case"l":case"low":return f.L;case"m":case"medium":return f.M;case"q":case"quartile":return f.Q;case"h":case"high":return f.H;default:throw new Error("Unknown EC Level: "+m)}}(h)}catch{return _}}},8984:(ae,f,y)=>{const m=y(8124).getSymbolSize;f.getPositions=function(w){const k=m(w);return[[0,0],[k-7,0],[0,k-7]]}},8196:(ae,f,y)=>{const m=y(8124),w=m.getBCHDigit(1335);f.getEncodedBits=function(S,$){const p=S.bit<<3|$;let I=p<<10;for(;m.getBCHDigit(I)-w>=0;)I^=1335<{const y=new Uint8Array(512),m=new Uint8Array(256);(function(){let _=1;for(let w=0;w<255;w++)y[w]=_,m[_]=w,_<<=1,256&_&&(_^=285);for(let w=255;w<512;w++)y[w]=y[w-255]})(),f.log=function(_){if(_<1)throw new Error("log("+_+")");return m[_]},f.exp=function(_){return y[_]},f.mul=function(_,w){return 0===_||0===w?0:y[m[_]+m[w]]}},6396:(ae,f,y)=>{const m=y(3612),h=y(8124);function _(w){this.mode=m.KANJI,this.data=w}_.getBitsLength=function(k){return 13*k},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(w){let k;for(k=0;k=33088&&S<=40956)S-=33088;else{if(!(S>=57408&&S<=60351))throw new Error("Invalid SJIS character: "+this.data[k]+"\nMake sure your charset is UTF-8");S-=49472}S=192*(S>>>8&255)+(255&S),w.put(S,13)}},ae.exports=_},1920:(ae,f)=>{f.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function m(h,_,w){switch(h){case f.Patterns.PATTERN000:return(_+w)%2==0;case f.Patterns.PATTERN001:return _%2==0;case f.Patterns.PATTERN010:return w%3==0;case f.Patterns.PATTERN011:return(_+w)%3==0;case f.Patterns.PATTERN100:return(Math.floor(_/2)+Math.floor(w/3))%2==0;case f.Patterns.PATTERN101:return _*w%2+_*w%3==0;case f.Patterns.PATTERN110:return(_*w%2+_*w%3)%2==0;case f.Patterns.PATTERN111:return(_*w%3+(_+w)%2)%2==0;default:throw new Error("bad maskPattern:"+h)}}f.isValid=function(_){return null!=_&&""!==_&&!isNaN(_)&&_>=0&&_<=7},f.from=function(_){return f.isValid(_)?parseInt(_,10):void 0},f.getPenaltyN1=function(_){const w=_.size;let k=0,S=0,$=0,p=null,I=null;for(let H=0;H=5&&(k+=S-5+3),p=C,S=1),C=_.get(P,H),C===I?$++:($>=5&&(k+=$-5+3),I=C,$=1)}S>=5&&(k+=S-5+3),$>=5&&(k+=$-5+3)}return k},f.getPenaltyN2=function(_){const w=_.size;let k=0;for(let S=0;S=10&&(1488===S||93===S)&&k++,$=$<<1&2047|_.get(I,p),I>=10&&(1488===$||93===$)&&k++}return 40*k},f.getPenaltyN4=function(_){let w=0;const k=_.data.length;for(let $=0;${const m=y(8656),h=y(8768);f.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},f.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},f.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},f.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},f.MIXED={bit:-1},f.getCharCountIndicator=function(k,S){if(!k.ccBits)throw new Error("Invalid mode: "+k);if(!m.isValid(S))throw new Error("Invalid version: "+S);return S>=1&&S<10?k.ccBits[0]:S<27?k.ccBits[1]:k.ccBits[2]},f.getBestModeForData=function(k){return h.testNumeric(k)?f.NUMERIC:h.testAlphanumeric(k)?f.ALPHANUMERIC:h.testKanji(k)?f.KANJI:f.BYTE},f.toString=function(k){if(k&&k.id)return k.id;throw new Error("Invalid mode")},f.isValid=function(k){return k&&k.bit&&k.ccBits},f.from=function(k,S){if(f.isValid(k))return k;try{return function _(w){if("string"!=typeof w)throw new Error("Param is not a string");switch(w.toLowerCase()){case"numeric":return f.NUMERIC;case"alphanumeric":return f.ALPHANUMERIC;case"kanji":return f.KANJI;case"byte":return f.BYTE;default:throw new Error("Unknown mode: "+w)}}(k)}catch{return S}}},4983:(ae,f,y)=>{const m=y(3612);function h(_){this.mode=m.NUMERIC,this.data=_.toString()}h.getBitsLength=function(w){return 10*Math.floor(w/3)+(w%3?w%3*3+1:0)},h.prototype.getLength=function(){return this.data.length},h.prototype.getBitsLength=function(){return h.getBitsLength(this.data.length)},h.prototype.write=function(w){let k,S,$;for(k=0;k+3<=this.data.length;k+=3)S=this.data.substr(k,3),$=parseInt(S,10),w.put($,10);const p=this.data.length-k;p>0&&(S=this.data.substr(k),$=parseInt(S,10),w.put($,3*p+1))},ae.exports=h},7892:(ae,f,y)=>{const m=y(9144);f.mul=function(_,w){const k=new Uint8Array(_.length+w.length-1);for(let S=0;S<_.length;S++)for(let $=0;$=0;){const S=k[0];for(let p=0;p{const m=y(8124),h=y(5120),_=y(8980),w=y(664),k=y(4936),S=y(8984),$=y(1920),p=y(2136),I=y(4176),H=y(6544),P=y(8196),C=y(3612),x=y(4168);function T(Z,re,J){const ee=Z.size,z=P.getEncodedBits(re,J);let M,V;for(M=0;M<15;M++)V=1==(z>>M&1),Z.set(M<6?M:M<8?M+1:ee-15+M,8,V,!0),Z.set(8,M<8?ee-M-1:M<9?15-M-1+1:15-M-1,V,!0);Z.set(ee-8,8,1,!0)}function X(Z,re,J,ee){let z;if(Array.isArray(Z))z=x.fromArray(Z);else{if("string"!=typeof Z)throw new Error("Invalid data");{let ne=re;if(!ne){const oe=x.rawSplit(Z);ne=H.getBestVersionForData(oe,J)}z=x.fromString(Z,ne||40)}}const M=H.getBestVersionForData(z,J);if(!M)throw new Error("The amount of data is too big to be stored in a QR Code");if(re){if(re=0&&R<=6&&(0===L||6===L)||L>=0&&L<=6&&(0===R||6===R)||R>=2&&R<=4&&L>=2&&L<=4,!0)}}(L,re),function b(Z){const re=Z.size;for(let J=8;J=7&&function G(Z,re){const J=Z.size,ee=H.getEncodedBits(re);let z,M,V;for(let R=0;R<18;R++)z=Math.floor(R/3),M=R%3+J-8-3,V=1==(ee>>R&1),Z.set(z,M,V,!0),Z.set(M,z,V,!0)}(L,re),function O(Z,re){const J=Z.size;let ee=-1,z=J-1,M=7,V=0;for(let R=J-1;R>0;R-=2)for(6===R&&R--;;){for(let L=0;L<2;L++)if(!Z.isReserved(z,R-L)){let ne=!1;V>>M&1)),Z.set(z,R-L,ne),M--,-1===M&&(V++,M=7)}if(z+=ee,z<0||J<=z){z-=ee,ee=-ee;break}}}(L,V),isNaN(ee)&&(ee=$.getBestMask(L,T.bind(null,L,J))),$.applyMask(ee,L),T(L,J,ee),{modules:L,version:re,errorCorrectionLevel:J,maskPattern:ee,segments:z}}f.create=function(re,J){if(typeof re>"u"||""===re)throw new Error("No input text");let z,M,ee=h.M;return typeof J<"u"&&(ee=h.from(J.errorCorrectionLevel,h.M),z=H.from(J.version),M=$.from(J.maskPattern),J.toSJISFunc&&m.setToSJISFunction(J.toSJISFunc)),X(re,z,ee,M)}},4176:(ae,f,y)=>{const m=y(7892);function h(_){this.genPoly=void 0,this.degree=_,this.degree&&this.initialize(this.degree)}h.prototype.initialize=function(w){this.degree=w,this.genPoly=m.generateECPolynomial(this.degree)},h.prototype.encode=function(w){if(!this.genPoly)throw new Error("Encoder not initialized");const k=new Uint8Array(w.length+this.degree);k.set(w);const S=m.mod(k,this.genPoly),$=this.degree-S.length;if($>0){const p=new Uint8Array(this.degree);return p.set(S,$),p}return S},ae.exports=h},8768:(ae,f)=>{const y="[0-9]+";let h="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";h=h.replace(/u/g,"\\u");const _="(?:(?![A-Z0-9 $%*+\\-./:]|"+h+")(?:.|[\r\n]))+";f.KANJI=new RegExp(h,"g"),f.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),f.BYTE=new RegExp(_,"g"),f.NUMERIC=new RegExp(y,"g"),f.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const w=new RegExp("^"+h+"$"),k=new RegExp("^"+y+"$"),S=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");f.testKanji=function(p){return w.test(p)},f.testNumeric=function(p){return k.test(p)},f.testAlphanumeric=function(p){return S.test(p)}},4168:(ae,f,y)=>{const m=y(3612),h=y(4983),_=y(4600),w=y(4692),k=y(6396),S=y(8768),$=y(8124),p=y(4868);function I(G){return unescape(encodeURIComponent(G)).length}function H(G,T,O){const Q=[];let Y;for(;null!==(Y=G.exec(O));)Q.push({data:Y[0],index:Y.index,mode:T,length:Y[0].length});return Q}function P(G){const T=H(S.NUMERIC,m.NUMERIC,G),O=H(S.ALPHANUMERIC,m.ALPHANUMERIC,G);let Q,Y;return $.isKanjiModeEnabled()?(Q=H(S.BYTE,m.BYTE,G),Y=H(S.KANJI,m.KANJI,G)):(Q=H(S.BYTE_KANJI,m.BYTE,G),Y=[]),T.concat(O,Q,Y).sort(function(Z,re){return Z.index-re.index}).map(function(Z){return{data:Z.data,mode:Z.mode,length:Z.length}})}function C(G,T){switch(T){case m.NUMERIC:return h.getBitsLength(G);case m.ALPHANUMERIC:return _.getBitsLength(G);case m.KANJI:return k.getBitsLength(G);case m.BYTE:return w.getBitsLength(G)}}function W(G,T){let O;const Q=m.getBestModeForData(G);if(O=m.from(T,Q),O!==m.BYTE&&O.bit=0?T[T.length-1]:null;return Q&&Q.mode===O.mode?(T[T.length-1].data+=O.data,T):(T.push(O),T)},[])}(re))},f.rawSplit=function(T){return f.fromArray(P(T,$.isKanjiModeEnabled()))}},8124:(ae,f)=>{let y;const m=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];f.getSymbolSize=function(_){if(!_)throw new Error('"version" cannot be null or undefined');if(_<1||_>40)throw new Error('"version" should be in range from 1 to 40');return 4*_+17},f.getSymbolTotalCodewords=function(_){return m[_]},f.getBCHDigit=function(h){let _=0;for(;0!==h;)_++,h>>>=1;return _},f.setToSJISFunction=function(_){if("function"!=typeof _)throw new Error('"toSJISFunc" is not a valid function.');y=_},f.isKanjiModeEnabled=function(){return typeof y<"u"},f.toSJIS=function(_){return y(_)}},8656:(ae,f)=>{f.isValid=function(m){return!isNaN(m)&&m>=1&&m<=40}},6544:(ae,f,y)=>{const m=y(8124),h=y(2136),_=y(5120),w=y(3612),k=y(8656),$=m.getBCHDigit(7973);function I(C,x){return w.getCharCountIndicator(C,x)+4}function H(C,x){let N=0;return C.forEach(function(b){const W=I(b.mode,x);N+=W+b.getBitsLength()}),N}f.from=function(x,N){return k.isValid(x)?parseInt(x,10):N},f.getCapacity=function(x,N,b){if(!k.isValid(x))throw new Error("Invalid QR Code version");typeof b>"u"&&(b=w.BYTE);const T=8*(m.getSymbolTotalCodewords(x)-h.getTotalCodewordsCount(x,N));if(b===w.MIXED)return T;const O=T-I(b,x);switch(b){case w.NUMERIC:return Math.floor(O/10*3);case w.ALPHANUMERIC:return Math.floor(O/11*2);case w.KANJI:return Math.floor(O/13);default:return Math.floor(O/8)}},f.getBestVersionForData=function(x,N){let b;const W=_.from(N,_.M);if(Array.isArray(x)){if(x.length>1)return function P(C,x){for(let N=1;N<=40;N++)if(H(C,N)<=f.getCapacity(N,x,w.MIXED))return N}(x,W);if(0===x.length)return 1;b=x[0]}else b=x;return function p(C,x,N){for(let b=1;b<=40;b++)if(x<=f.getCapacity(b,N,C))return b}(b.mode,b.getLength(),W)},f.getEncodedBits=function(x){if(!k.isValid(x)||x<7)throw new Error("Invalid QR Code version");let N=x<<12;for(;m.getBCHDigit(N)-$>=0;)N^=7973<{const m=y(3848);f.render=function(k,S,$){let p=$,I=S;typeof p>"u"&&(!S||!S.getContext)&&(p=S,S=void 0),S||(I=function _(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),p=m.getOptions(p);const H=m.getImageWidth(k.modules.size,p),P=I.getContext("2d"),C=P.createImageData(H,H);return m.qrToImageData(C.data,k,p),function h(w,k,S){w.clearRect(0,0,k.width,k.height),k.style||(k.style={}),k.height=S,k.width=S,k.style.height=S+"px",k.style.width=S+"px"}(P,I,H),P.putImageData(C,0,0),I},f.renderToDataURL=function(k,S,$){let p=$;return typeof p>"u"&&(!S||!S.getContext)&&(p=S,S=void 0),p||(p={}),f.render(k,S,p).toDataURL(p.type||"image/png",(p.rendererOpts||{}).quality)}},9944:(ae,f,y)=>{const m=y(3848);function h(k,S){const $=k.a/255,p=S+'="'+k.hex+'"';return $<1?p+" "+S+'-opacity="'+$.toFixed(2).slice(1)+'"':p}function _(k,S,$){let p=k+S;return typeof $<"u"&&(p+=" "+$),p}f.render=function(S,$,p){const I=m.getOptions($),H=S.modules.size,P=S.modules.data,C=H+2*I.margin,x=I.color.light.a?"':"",N="0&&x>0&&k[C-1]||(p+=H?_("M",x+$,.5+N+$):_("m",I,0),I=0,H=!1),x+1',G=''+x+N+"\n";return"function"==typeof p&&p(null,G),G}},3848:(ae,f)=>{function y(m){if("number"==typeof m&&(m=m.toString()),"string"!=typeof m)throw new Error("Color should be defined as hex string");let h=m.slice().replace("#","").split("");if(h.length<3||5===h.length||h.length>8)throw new Error("Invalid hex color: "+m);(3===h.length||4===h.length)&&(h=Array.prototype.concat.apply([],h.map(function(w){return[w,w]}))),6===h.length&&h.push("F","F");const _=parseInt(h.join(""),16);return{r:_>>24&255,g:_>>16&255,b:_>>8&255,a:255&_,hex:"#"+h.slice(0,6).join("")}}f.getOptions=function(h){h||(h={}),h.color||(h.color={});const w=h.width&&h.width>=21?h.width:void 0;return{width:w,scale:w?4:h.scale||4,margin:typeof h.margin>"u"||null===h.margin||h.margin<0?4:h.margin,color:{dark:y(h.color.dark||"#000000ff"),light:y(h.color.light||"#ffffffff")},type:h.type,rendererOpts:h.rendererOpts||{}}},f.getScale=function(h,_){return _.width&&_.width>=h+2*_.margin?_.width/(h+2*_.margin):_.scale},f.getImageWidth=function(h,_){const w=f.getScale(h,_);return Math.floor((h+2*_.margin)*w)},f.qrToImageData=function(h,_,w){const k=_.modules.size,S=_.modules.data,$=f.getScale(k,w),p=Math.floor((k+2*w.margin)*$),I=w.margin*$,H=[w.color.light,w.color.dark];for(let P=0;P=I&&C>=I&&P{},1196:ae=>{function f(m,h,_,w,k,S,$){try{var p=m[S]($),I=p.value}catch(H){return void _(H)}p.done?h(I):Promise.resolve(I).then(w,k)}ae.exports=function y(m){return function(){var h=this,_=arguments;return new Promise(function(w,k){var S=m.apply(h,_);function $(I){f(S,w,k,$,p,"next",I)}function p(I){f(S,w,k,$,p,"throw",I)}$(void 0)})}},ae.exports.__esModule=!0,ae.exports.default=ae.exports},1528:(ae,f,y)=>{"use strict";function m(_,w,k,S,$,p,I){try{var H=_[p](I),P=H.value}catch(C){return void k(C)}H.done?w(P):Promise.resolve(P).then(S,$)}function h(_){return function(){var w=this,k=arguments;return new Promise(function(S,$){var p=_.apply(w,k);function I(P){m(p,S,$,I,H,"next",P)}function H(P){m(p,S,$,I,H,"throw",P)}I(void 0)})}}y.d(f,{c:()=>h})},1316:(ae,f,y)=>{"use strict";y.r(f),y.d(f,{__addDisposableResource:()=>ne,__assign:()=>_,__asyncDelegator:()=>Z,__asyncGenerator:()=>X,__asyncValues:()=>re,__await:()=>Y,__awaiter:()=>C,__classPrivateFieldGet:()=>V,__classPrivateFieldIn:()=>L,__classPrivateFieldSet:()=>R,__createBinding:()=>N,__decorate:()=>k,__disposeResources:()=>de,__esDecorate:()=>$,__exportStar:()=>b,__extends:()=>h,__generator:()=>x,__importDefault:()=>M,__importStar:()=>z,__makeTemplateObject:()=>J,__metadata:()=>P,__param:()=>S,__propKey:()=>I,__read:()=>G,__rest:()=>w,__runInitializers:()=>p,__setFunctionName:()=>H,__spread:()=>T,__spreadArray:()=>Q,__spreadArrays:()=>O,__values:()=>W,default:()=>Ce});var m=function(D,F){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,j){B.__proto__=j}||function(B,j){for(var te in j)Object.prototype.hasOwnProperty.call(j,te)&&(B[te]=j[te])})(D,F)};function h(D,F){if("function"!=typeof F&&null!==F)throw new TypeError("Class extends value "+String(F)+" is not a constructor or null");function B(){this.constructor=D}m(D,F),D.prototype=null===F?Object.create(F):(B.prototype=F.prototype,new B)}var _=function(){return _=Object.assign||function(F){for(var B,j=1,te=arguments.length;j=0;ce--)(fe=D[ce])&&(ie=(te<3?fe(ie):te>3?fe(F,B,ie):fe(F,B))||ie);return te>3&&ie&&Object.defineProperty(F,B,ie),ie}function S(D,F){return function(B,j){F(B,j,D)}}function $(D,F,B,j,te,ie){function fe(Le){if(void 0!==Le&&"function"!=typeof Le)throw new TypeError("Function expected");return Le}for(var Re,ce=j.kind,ye="getter"===ce?"get":"setter"===ce?"set":"value",pe=!F&&D?j.static?D:D.prototype:null,Ee=F||(pe?Object.getOwnPropertyDescriptor(pe,j.name):{}),Me=!1,Ae=B.length-1;Ae>=0;Ae--){var Be={};for(var Ve in j)Be[Ve]="access"===Ve?{}:j[Ve];for(var Ve in j.access)Be.access[Ve]=j.access[Ve];Be.addInitializer=function(Le){if(Me)throw new TypeError("Cannot add initializers after decoration has completed");ie.push(fe(Le||null))};var Te=(0,B[Ae])("accessor"===ce?{get:Ee.get,set:Ee.set}:Ee[ye],Be);if("accessor"===ce){if(void 0===Te)continue;if(null===Te||"object"!=typeof Te)throw new TypeError("Object expected");(Re=fe(Te.get))&&(Ee.get=Re),(Re=fe(Te.set))&&(Ee.set=Re),(Re=fe(Te.init))&&te.unshift(Re)}else(Re=fe(Te))&&("field"===ce?te.unshift(Re):Ee[ye]=Re)}pe&&Object.defineProperty(pe,j.name,Ee),Me=!0}function p(D,F,B){for(var j=arguments.length>2,te=0;te0&&ie[ie.length-1])&&(6===pe[0]||2===pe[0])){B=0;continue}if(3===pe[0]&&(!ie||pe[1]>ie[0]&&pe[1]=D.length&&(D=void 0),{value:D&&D[j++],done:!D}}};throw new TypeError(F?"Object is not iterable.":"Symbol.iterator is not defined.")}function G(D,F){var B="function"==typeof Symbol&&D[Symbol.iterator];if(!B)return D;var te,fe,j=B.call(D),ie=[];try{for(;(void 0===F||F-- >0)&&!(te=j.next()).done;)ie.push(te.value)}catch(ce){fe={error:ce}}finally{try{te&&!te.done&&(B=j.return)&&B.call(j)}finally{if(fe)throw fe.error}}return ie}function T(){for(var D=[],F=0;F1||ce(Me,Ae)})})}function ce(Me,Ae){try{!function ye(Me){Me.value instanceof Y?Promise.resolve(Me.value.v).then(pe,Ee):Re(ie[0][2],Me)}(j[Me](Ae))}catch(Be){Re(ie[0][3],Be)}}function pe(Me){ce("next",Me)}function Ee(Me){ce("throw",Me)}function Re(Me,Ae){Me(Ae),ie.shift(),ie.length&&ce(ie[0][0],ie[0][1])}}function Z(D){var F,B;return F={},j("next"),j("throw",function(te){throw te}),j("return"),F[Symbol.iterator]=function(){return this},F;function j(te,ie){F[te]=D[te]?function(fe){return(B=!B)?{value:Y(D[te](fe)),done:!1}:ie?ie(fe):fe}:ie}}function re(D){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var B,F=D[Symbol.asyncIterator];return F?F.call(D):(D=W(D),B={},j("next"),j("throw"),j("return"),B[Symbol.asyncIterator]=function(){return this},B);function j(ie){B[ie]=D[ie]&&function(fe){return new Promise(function(ce,ye){!function te(ie,fe,ce,ye){Promise.resolve(ye).then(function(pe){ie({value:pe,done:ce})},fe)}(ce,ye,(fe=D[ie](fe)).done,fe.value)})}}}function J(D,F){return Object.defineProperty?Object.defineProperty(D,"raw",{value:F}):D.raw=F,D}var ee=Object.create?function(D,F){Object.defineProperty(D,"default",{enumerable:!0,value:F})}:function(D,F){D.default=F};function z(D){if(D&&D.__esModule)return D;var F={};if(null!=D)for(var B in D)"default"!==B&&Object.prototype.hasOwnProperty.call(D,B)&&N(F,D,B);return ee(F,D),F}function M(D){return D&&D.__esModule?D:{default:D}}function V(D,F,B,j){if("a"===B&&!j)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof F?D!==F||!j:!F.has(D))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===B?j:"a"===B?j.call(D):j?j.value:F.get(D)}function R(D,F,B,j,te){if("m"===j)throw new TypeError("Private method is not writable");if("a"===j&&!te)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof F?D!==F||!te:!F.has(D))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===j?te.call(D,B):te?te.value=B:F.set(D,B),B}function L(D,F){if(null===F||"object"!=typeof F&&"function"!=typeof F)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof D?F===D:D.has(F)}function ne(D,F,B){if(null!=F){if("object"!=typeof F&&"function"!=typeof F)throw new TypeError("Object expected.");var j;if(B){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");j=F[Symbol.asyncDispose]}if(void 0===j){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");j=F[Symbol.dispose]}if("function"!=typeof j)throw new TypeError("Object not disposable.");D.stack.push({value:F,dispose:j,async:B})}else B&&D.stack.push({async:!0});return F}var oe="function"==typeof SuppressedError?SuppressedError:function(D,F,B){var j=new Error(B);return j.name="SuppressedError",j.error=D,j.suppressed=F,j};function de(D){function F(j){D.error=D.hasError?new oe(j,D.error,"An error was suppressed during disposal."):j,D.hasError=!0}return function B(){for(;D.stack.length;){var j=D.stack.pop();try{var te=j.dispose&&j.dispose.call(j.value);if(j.async)return Promise.resolve(te).then(B,function(ie){return F(ie),B()})}catch(ie){F(ie)}}if(D.hasError)throw D.error}()}const Ce={__extends:h,__assign:_,__rest:w,__decorate:k,__param:S,__metadata:P,__awaiter:C,__generator:x,__createBinding:N,__exportStar:b,__values:W,__read:G,__spread:T,__spreadArrays:O,__spreadArray:Q,__await:Y,__asyncGenerator:X,__asyncDelegator:Z,__asyncValues:re,__makeTemplateObject:J,__importStar:z,__importDefault:M,__classPrivateFieldGet:V,__classPrivateFieldSet:R,__classPrivateFieldIn:L,__addDisposableResource:ne,__disposeResources:de}}},ae=>{ae(ae.s=9680)}]); \ No newline at end of file diff --git a/docs/ngsw.json b/docs/ngsw.json index 6a866d1..e26739e 100644 --- a/docs/ngsw.json +++ b/docs/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1714507783678, + "timestamp": 1714509251305, "index": "/private-qrcode/index.html", "assetGroups": [ { @@ -16,7 +16,7 @@ "/private-qrcode/852.f836098932d08da8.js", "/private-qrcode/favicon.ico", "/private-qrcode/index.html", - "/private-qrcode/main.217b027f86c47fae.js", + "/private-qrcode/main.d231b1bcc275f418.js", "/private-qrcode/manifest.webmanifest", "/private-qrcode/polyfills.48df367aadbe1fae.js", "/private-qrcode/runtime.ad89e601423279bd.js", @@ -58,8 +58,8 @@ "/private-qrcode/assets/icons/icon-72x72.png": "e0bb5b9b2a6b20712140469242c60060863ecdb0", "/private-qrcode/assets/icons/icon-96x96.png": "bebc52063cc5e7440f17b76560156d419bc5ef66", "/private-qrcode/favicon.ico": "22f6a4a3bcaafafb0254e0f2fa4ceb89e505e8b2", - "/private-qrcode/index.html": "72ef8f17b3b0546b4b09bbccaef4edcf30003259", - "/private-qrcode/main.217b027f86c47fae.js": "15ce07a9e888c53a3b2d6f0c10c415b3c0c578c2", + "/private-qrcode/index.html": "647498c902dd77a2d41f95ac57b49dff622b3fa0", + "/private-qrcode/main.d231b1bcc275f418.js": "9a2cacbe28748232e021e577439b9f9ee794487b", "/private-qrcode/manifest.webmanifest": "ddfa638a22dd55d15f28c4c9776a3d19ab2ef543", "/private-qrcode/polyfills.48df367aadbe1fae.js": "3df6795edd917a5b28262abc6f02288f77ad63de", "/private-qrcode/runtime.ad89e601423279bd.js": "6c0bd51dd641c2e2c7d715559da640d191d4e534",