diff --git a/docs/227.47cdfd78c2ee21f1.js b/docs/227.47cdfd78c2ee21f1.js new file mode 100755 index 0000000..bbfa23a --- /dev/null +++ b/docs/227.47cdfd78c2ee21f1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkprivate_qrcode=self.webpackChunkprivate_qrcode||[]).push([[227],{1227:(u,r,e)=>{e.r(r),e.d(r,{ShareWeb:()=>i});var t=e(467),n=e(5083);class i extends n.E_{canShare(){return(0,t.A)(function*(){return typeof navigator>"u"||!navigator.share?{value:!1}:{value:!0}})()}share(a){var s=this;return(0,t.A)(function*(){if(typeof navigator>"u"||!navigator.share)throw s.unavailable("Share API not available in this browser");return yield navigator.share({title:a.title,text:a.text,url:a.url}),{}})()}}}}]); \ No newline at end of file diff --git a/docs/308.38571ea2b292772c.js b/docs/308.38571ea2b292772c.js deleted file mode 100644 index dab05e1..0000000 --- a/docs/308.38571ea2b292772c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkprivate_qrcode=self.webpackChunkprivate_qrcode||[]).push([[308],{7688:(O,P,v)=>{v.r(P),v.d(P,{FilesystemWeb:()=>F});var l=v(1528),x=v(6400),q=v(5404);function R(f){const _=f.split("/").filter(t=>"."!==t),n=[];return _.forEach(t=>{".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():n.push(t)}),n.join("/")}let F=(()=>{class f extends x.w8{constructor(){var n;super(...arguments),n=this,this.DB_VERSION=1,this.DB_NAME="Disc",this._writeCmds=["add","put","delete"],this.downloadFile=function(){var t=(0,l.c)(function*(r){var e,o;const d=(0,x.io)(r,r.webFetchExtra),i=yield fetch(r.url,d);let c;if(r.progress)if(i?.body){const a=i.body.getReader();let u=0;const h=[],m=i.headers.get("content-type"),p=parseInt(i.headers.get("content-length")||"0",10);for(;;){const{done:g,value:w}=yield a.read();if(g)break;h.push(w),u+=w?.length||0,n.notifyListeners("progress",{url:r.url,bytes:u,contentLength:p})}const y=new Uint8Array(u);let b=0;for(const g of h)typeof g>"u"||(y.set(g,b),b+=g.length);c=new Blob([y.buffer],{type:m||void 0})}else c=new Blob;else c=yield i.blob();return{path:(yield n.writeFile({path:r.path,directory:null!==(e=r.directory)&&void 0!==e?e:void 0,recursive:null!==(o=r.recursive)&&void 0!==o&&o,data:c})).uri,blob:c}});return function(r){return t.apply(this,arguments)}}()}initDb(){var n=this;return(0,l.c)(function*(){if(void 0!==n._db)return n._db;if(!("indexedDB"in window))throw n.unavailable("This browser doesn't support IndexedDB");return new Promise((t,r)=>{const e=indexedDB.open(n.DB_NAME,n.DB_VERSION);e.onupgradeneeded=f.doUpgrade,e.onsuccess=()=>{n._db=e.result,t(e.result)},e.onerror=()=>r(e.error),e.onblocked=()=>{console.warn("db blocked")}})})()}static doUpgrade(n){const r=n.target.result;r.objectStoreNames.contains("FileStorage")&&r.deleteObjectStore("FileStorage"),r.createObjectStore("FileStorage",{keyPath:"path"}).createIndex("by_folder","folder")}dbRequest(n,t){var r=this;return(0,l.c)(function*(){const e=-1!==r._writeCmds.indexOf(n)?"readwrite":"readonly";return r.initDb().then(o=>new Promise((d,i)=>{const a=o.transaction(["FileStorage"],e).objectStore("FileStorage")[n](...t);a.onsuccess=()=>d(a.result),a.onerror=()=>i(a.error)}))})()}dbIndexRequest(n,t,r){var e=this;return(0,l.c)(function*(){const o=-1!==e._writeCmds.indexOf(t)?"readwrite":"readonly";return e.initDb().then(d=>new Promise((i,c)=>{const h=d.transaction(["FileStorage"],o).objectStore("FileStorage").index(n)[t](...r);h.onsuccess=()=>i(h.result),h.onerror=()=>c(h.error)}))})()}getPath(n,t){const r=void 0!==t?t.replace(/^[/]+|[/]+$/g,""):"";let e="";return void 0!==n&&(e+="/"+n),""!==t&&(e+="/"+r),e}clear(){var n=this;return(0,l.c)(function*(){(yield n.initDb()).transaction(["FileStorage"],"readwrite").objectStore("FileStorage").clear()})()}readFile(n){var t=this;return(0,l.c)(function*(){const r=t.getPath(n.directory,n.path),e=yield t.dbRequest("get",[r]);if(void 0===e)throw Error("File does not exist.");return{data:e.content?e.content:""}})()}writeFile(n){var t=this;return(0,l.c)(function*(){const r=t.getPath(n.directory,n.path);let e=n.data;const o=n.encoding,d=n.recursive,i=yield t.dbRequest("get",[r]);if(i&&"directory"===i.type)throw Error("The supplied path is a directory.");const c=r.substr(0,r.lastIndexOf("/"));if(void 0===(yield t.dbRequest("get",[c]))){const h=c.indexOf("/",1);if(-1!==h){const m=c.substr(h);yield t.mkdir({path:m,directory:n.directory,recursive:d})}}if(!(o||e instanceof Blob||(e=e.indexOf(",")>=0?e.split(",")[1]:e,t.isBase64String(e))))throw Error("The supplied data is not valid base64 content.");const a=Date.now(),u={path:r,folder:c,type:"file",size:e instanceof Blob?e.size:e.length,ctime:a,mtime:a,content:e};return yield t.dbRequest("put",[u]),{uri:u.path}})()}appendFile(n){var t=this;return(0,l.c)(function*(){const r=t.getPath(n.directory,n.path);let e=n.data;const o=n.encoding,d=r.substr(0,r.lastIndexOf("/")),i=Date.now();let c=i;const s=yield t.dbRequest("get",[r]);if(s&&"directory"===s.type)throw Error("The supplied path is a directory.");if(void 0===(yield t.dbRequest("get",[d]))){const h=d.indexOf("/",1);if(-1!==h){const m=d.substr(h);yield t.mkdir({path:m,directory:n.directory,recursive:!0})}}if(!o&&!t.isBase64String(e))throw Error("The supplied data is not valid base64 content.");if(void 0!==s){if(s.content instanceof Blob)throw Error("The occupied entry contains a Blob object which cannot be appended to.");e=void 0===s.content||o?s.content+e:btoa(atob(s.content)+atob(e)),c=s.ctime}const u={path:r,folder:d,type:"file",size:e.length,ctime:c,mtime:i,content:e};yield t.dbRequest("put",[u])})()}deleteFile(n){var t=this;return(0,l.c)(function*(){const r=t.getPath(n.directory,n.path);if(void 0===(yield t.dbRequest("get",[r])))throw Error("File does not exist.");if(0!==(yield t.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(r)])).length)throw Error("Folder is not empty.");yield t.dbRequest("delete",[r])})()}mkdir(n){var t=this;return(0,l.c)(function*(){const r=t.getPath(n.directory,n.path),e=n.recursive,o=r.substr(0,r.lastIndexOf("/")),d=(r.match(/\//g)||[]).length,i=yield t.dbRequest("get",[o]),c=yield t.dbRequest("get",[r]);if(1===d)throw Error("Cannot create Root directory");if(void 0!==c)throw Error("Current directory does already exist.");if(!e&&2!==d&&void 0===i)throw Error("Parent directory must exist");if(e&&2!==d&&void 0===i){const u=o.substr(o.indexOf("/",1));yield t.mkdir({path:u,directory:n.directory,recursive:e})}const s=Date.now(),a={path:r,folder:o,type:"directory",size:0,ctime:s,mtime:s};yield t.dbRequest("put",[a])})()}rmdir(n){var t=this;return(0,l.c)(function*(){const{path:r,directory:e,recursive:o}=n,d=t.getPath(e,r),i=yield t.dbRequest("get",[d]);if(void 0===i)throw Error("Folder does not exist.");if("directory"!==i.type)throw Error("Requested path is not a directory");const c=yield t.readdir({path:r,directory:e});if(0!==c.files.length&&!o)throw Error("Folder is not empty");for(const s of c.files){const a=`${r}/${s.name}`;"file"===(yield t.stat({path:a,directory:e})).type?yield t.deleteFile({path:a,directory:e}):yield t.rmdir({path:a,directory:e,recursive:o})}yield t.dbRequest("delete",[d])})()}readdir(n){var t=this;return(0,l.c)(function*(){const r=t.getPath(n.directory,n.path),e=yield t.dbRequest("get",[r]);if(""!==n.path&&void 0===e)throw Error("Folder does not exist.");const o=yield t.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(r)]);return{files:yield Promise.all(o.map(function(){var i=(0,l.c)(function*(c){let s=yield t.dbRequest("get",[c]);return void 0===s&&(s=yield t.dbRequest("get",[c+"/"])),{name:c.substring(r.length+1),type:s.type,size:s.size,ctime:s.ctime,mtime:s.mtime,uri:s.path}});return function(c){return i.apply(this,arguments)}}()))}})()}getUri(n){var t=this;return(0,l.c)(function*(){const r=t.getPath(n.directory,n.path);let e=yield t.dbRequest("get",[r]);return void 0===e&&(e=yield t.dbRequest("get",[r+"/"])),{uri:e?.path||r}})()}stat(n){var t=this;return(0,l.c)(function*(){const r=t.getPath(n.directory,n.path);let e=yield t.dbRequest("get",[r]);if(void 0===e&&(e=yield t.dbRequest("get",[r+"/"])),void 0===e)throw Error("Entry does not exist.");return{type:e.type,size:e.size,ctime:e.ctime,mtime:e.mtime,uri:e.path}})()}rename(n){var t=this;return(0,l.c)(function*(){yield t._copy(n,!0)})()}copy(n){var t=this;return(0,l.c)(function*(){return t._copy(n,!1)})()}requestPermissions(){return(0,l.c)(function*(){return{publicStorage:"granted"}})()}checkPermissions(){return(0,l.c)(function*(){return{publicStorage:"granted"}})()}_copy(n,t=!1){var r=this;return(0,l.c)(function*(){let{toDirectory:e}=n;const{to:o,from:d,directory:i}=n;if(!o||!d)throw Error("Both to and from must be provided");e||(e=i);const c=r.getPath(i,d),s=r.getPath(e,o);if(c===s)return{uri:s};if(function D(f,_){f=R(f),_=R(_);const n=f.split("/"),t=_.split("/");return f!==_&&n.every((r,e)=>r===t[e])}(c,s))throw Error("To path cannot contain the from path");let a;try{a=yield r.stat({path:o,directory:e})}catch{const y=o.split("/");y.pop();const b=y.join("/");if(y.length>0&&"directory"!==(yield r.stat({path:b,directory:e})).type)throw new Error("Parent directory of the to path is a file")}if(a&&"directory"===a.type)throw new Error("Cannot overwrite a directory with a file");const u=yield r.stat({path:d,directory:i}),h=function(){var p=(0,l.c)(function*(y,b,g){const w=r.getPath(e,y),E=yield r.dbRequest("get",[w]);E.ctime=b,E.mtime=g,yield r.dbRequest("put",[E])});return function(b,g,w){return p.apply(this,arguments)}}(),m=u.ctime?u.ctime:Date.now();switch(u.type){case"file":{const p=yield r.readFile({path:d,directory:i});let y;t&&(yield r.deleteFile({path:d,directory:i})),!(p.data instanceof Blob)&&!r.isBase64String(p.data)&&(y=q.Gq.UTF8);const b=yield r.writeFile({path:o,directory:e,data:p.data,encoding:y});return t&&(yield h(o,m,u.mtime)),b}case"directory":{if(a)throw Error("Cannot move a directory over an existing object");try{yield r.mkdir({path:o,directory:e,recursive:!1}),t&&(yield h(o,m,u.mtime))}catch{}const p=(yield r.readdir({path:d,directory:i})).files;for(const y of p)yield r._copy({from:`${d}/${y.name}`,to:`${o}/${y.name}`,directory:i,toDirectory:e},t);t&&(yield r.rmdir({path:d,directory:i}))}}return{uri:s}})()}isBase64String(n){try{return btoa(atob(n))==n}catch{return!1}}}return f._debug=!0,f})()}}]); \ No newline at end of file diff --git a/docs/368.2e278543f407b43f.js b/docs/368.2e278543f407b43f.js deleted file mode 100644 index 9f3433b..0000000 --- a/docs/368.2e278543f407b43f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkprivate_qrcode=self.webpackChunkprivate_qrcode||[]).push([[368],{8368:(t,e,o)=>{o.r(e),o.d(e,{createWorker:()=>r});const r=()=>new Worker(URL.createObjectURL(new Blob(['class x{constructor(a,b){this.width=b;this.height=a.length/b;this.data=a}static createEmpty(a,b){return new x(new Uint8ClampedArray(a*b),a)}get(a,b){return 0>a||a>=this.width||0>b||b>=this.height?!1:!!this.data[b*this.width+a]}set(a,b,c){this.data[b*this.width+a]=c?1:0}setRegion(a,b,c,d,e){for(let f=b;fa||32this.available())throw Error("Cannot read "+a.toString()+" bits");var b=0;if(0>8-c<>b;a-=c;this.bitOffset+=c;8===this.bitOffset&&(this.bitOffset=0,this.byteOffset++)}if(0>c<>c,\nthis.bitOffset+=a)}return b}available(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset}}var B,C=B||(B={});C.Numeric="numeric";C.Alphanumeric="alphanumeric";C.Byte="byte";C.Kanji="kanji";C.ECI="eci";C.StructuredAppend="structuredappend";var D,E=D||(D={});E[E.Terminator=0]="Terminator";E[E.Numeric=1]="Numeric";E[E.Alphanumeric=2]="Alphanumeric";E[E.Byte=4]="Byte";E[E.Kanji=8]="Kanji";E[E.ECI=7]="ECI";E[E.StructuredAppend=3]="StructuredAppend";let F="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".split("");\nfunction ca(a,b){let c=[],d="";b=a.readBits([8,16,16][b]);for(let e=0;e`%${("0"+e.toString(16)).substr(-2)}`).join(""))}catch(e){}return{bytes:c,text:d}}\nfunction da(a,b){a=new ba(a);let c=9>=b?0:26>=b?1:2;for(b={text:"",bytes:[],chunks:[],version:b};4<=a.available();){var d=a.readBits(4);if(d===D.Terminator)return b;if(d===D.ECI)0===a.readBits(1)?b.chunks.push({type:B.ECI,assignmentNumber:a.readBits(7)}):0===a.readBits(1)?b.chunks.push({type:B.ECI,assignmentNumber:a.readBits(14)}):0===a.readBits(1)?b.chunks.push({type:B.ECI,assignmentNumber:a.readBits(21)}):b.chunks.push({type:B.ECI,assignmentNumber:-1});else if(d===D.Numeric){var e=a,f=[];d="";for(var g=\ne.readBits([10,12,14][c]);3<=g;){var h=e.readBits(10);if(1E3<=h)throw Error("Invalid numeric value above 999");var k=Math.floor(h/100),m=Math.floor(h/10)%10;h%=10;f.push(48+k,48+m,48+h);d+=k.toString()+m.toString()+h.toString();g-=3}if(2===g){g=e.readBits(7);if(100<=g)throw Error("Invalid numeric value above 99");e=Math.floor(g/10);g%=10;f.push(48+e,48+g);d+=e.toString()+g.toString()}else if(1===g){e=e.readBits(4);if(10<=e)throw Error("Invalid numeric value above 9");f.push(48+e);d+=e.toString()}b.text+=\nd;b.bytes.push(...f);b.chunks.push({type:B.Numeric,text:d})}else if(d===D.Alphanumeric){e=a;f=[];d="";for(g=e.readBits([9,11,13][c]);2<=g;)m=e.readBits(11),k=Math.floor(m/45),m%=45,f.push(F[k].charCodeAt(0),F[m].charCodeAt(0)),d+=F[k]+F[m],g-=2;1===g&&(e=e.readBits(6),f.push(F[e].charCodeAt(0)),d+=F[e]);b.text+=d;b.bytes.push(...f);b.chunks.push({type:B.Alphanumeric,text:d})}else if(d===D.Byte)d=ca(a,c),b.text+=d.text,b.bytes.push(...d.bytes),b.chunks.push({type:B.Byte,bytes:d.bytes,text:d.text});\nelse if(d===D.Kanji){f=a;d=[];e=f.readBits([8,10,12][c]);for(g=0;gk?k+33088:k+49472,d.push(k>>8,k&255);f=(new TextDecoder("shift-jis")).decode(Uint8Array.from(d));b.text+=f;b.bytes.push(...d);b.chunks.push({type:B.Kanji,bytes:d,text:f})}else d===D.StructuredAppend&&b.chunks.push({type:B.StructuredAppend,currentSequence:a.readBits(4),totalSequence:a.readBits(4),parity:a.readBits(8)})}if(0===a.available()||0===a.readBits(a.available()))return b}\nclass G{constructor(a,b){if(0===b.length)throw Error("No coefficients.");this.field=a;let c=b.length;if(1a.length&&([b,a]=[a,b]);let c=new Uint8ClampedArray(a.length),d=a.length-b.length;for(var e=0;ea)throw Error("Invalid degree less than 0");if(0===b)return this.field.zero;let c=this.coefficients.length;a=new Uint8ClampedArray(c+a);for(let d=0;d{b^=d}),b;b=this.coefficients[0];for(let d=1;d=this.size&&(a=(a^this.primitive)&this.size-1);for(a=0;aa)throw Error("Invalid monomial degree less than 0");if(0===b)return this.zero;a=new Uint8ClampedArray(a+1);a[0]=b;return new G(this,a)}log(a){if(0===a)throw Error("Can\'t take log(0)");return this.logTable[a]}exp(a){return this.expTable[a]}}\nfunction fa(a,b,c,d){b.degree()=d/2;){var g=b;let h=e;b=c;e=f;if(b.isZero())return null;c=g;f=a.zero;g=b.getCoefficient(b.degree());for(g=a.inverse(g);c.degree()>=b.degree()&&!c.isZero();){let k=c.degree()-b.degree(),m=a.multiply(c.getCoefficient(c.degree()),g);f=f.addOrSubtract(a.buildMonomial(k,m));c=c.addOrSubtract(b.multiplyByMonomial(k,m))}f=f.multiplyPoly(e).addOrSubtract(h);if(c.degree()>=b.degree())return null}d=f.getCoefficient(0);\nif(0===d)return null;a=a.inverse(d);return[f.multiply(a),c.multiply(a)]}\nfunction ha(a,b){let c=new Uint8ClampedArray(a.length);c.set(a);a=new ea(285,256,0);var d=new G(a,c),e=new Uint8ClampedArray(b),f=!1;for(var g=0;gf)return null;c[f]^=d[e]}return c}\nlet I=[{infoBits:null,versionNumber:1,alignmentPatternCenters:[],errorCorrectionLevels:[{ecCodewordsPerBlock:7,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:13,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:13}]},{ecCodewordsPerBlock:17,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:2,alignmentPatternCenters:[6,18],errorCorrectionLevels:[{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,\ndataCodewordsPerBlock:34}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:28}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]}]},{infoBits:null,versionNumber:3,alignmentPatternCenters:[6,22],errorCorrectionLevels:[{ecCodewordsPerBlock:15,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:55}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:18,\necBlocks:[{numBlocks:2,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:13}]}]},{infoBits:null,versionNumber:4,alignmentPatternCenters:[6,26],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:80}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:32}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:9}]}]},\n{infoBits:null,versionNumber:5,alignmentPatternCenters:[6,30],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:43}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:11},{numBlocks:2,dataCodewordsPerBlock:12}]}]},{infoBits:null,versionNumber:6,alignmentPatternCenters:[6,\n34],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:27}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:31892,versionNumber:7,alignmentPatternCenters:[6,22,38],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:78}]},{ecCodewordsPerBlock:18,\necBlocks:[{numBlocks:4,dataCodewordsPerBlock:31}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:13},{numBlocks:1,dataCodewordsPerBlock:14}]}]},{infoBits:34236,versionNumber:8,alignmentPatternCenters:[6,24,42],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:97}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:38},\n{numBlocks:2,dataCodewordsPerBlock:39}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:18},{numBlocks:2,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:14},{numBlocks:2,dataCodewordsPerBlock:15}]}]},{infoBits:39577,versionNumber:9,alignmentPatternCenters:[6,26,46],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:36},\n{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:12},{numBlocks:4,dataCodewordsPerBlock:13}]}]},{infoBits:42195,versionNumber:10,alignmentPatternCenters:[6,28,50],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68},{numBlocks:2,dataCodewordsPerBlock:69}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,\ndataCodewordsPerBlock:43},{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]}]},{infoBits:48118,versionNumber:11,alignmentPatternCenters:[6,30,54],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:81}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,\ndataCodewordsPerBlock:50},{numBlocks:4,dataCodewordsPerBlock:51}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:22},{numBlocks:4,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:12},{numBlocks:8,dataCodewordsPerBlock:13}]}]},{infoBits:51042,versionNumber:12,alignmentPatternCenters:[6,32,58],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:92},{numBlocks:2,dataCodewordsPerBlock:93}]},\n{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:20},{numBlocks:6,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:55367,versionNumber:13,alignmentPatternCenters:[6,34,62],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:107}]},\n{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:37},{numBlocks:1,dataCodewordsPerBlock:38}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:20},{numBlocks:4,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:11},{numBlocks:4,dataCodewordsPerBlock:12}]}]},{infoBits:58893,versionNumber:14,alignmentPatternCenters:[6,26,46,66],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:115},\n{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:40},{numBlocks:5,dataCodewordsPerBlock:41}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:16},{numBlocks:5,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:5,dataCodewordsPerBlock:13}]}]},{infoBits:63784,versionNumber:15,alignmentPatternCenters:[6,26,48,70],errorCorrectionLevels:[{ecCodewordsPerBlock:22,\necBlocks:[{numBlocks:5,dataCodewordsPerBlock:87},{numBlocks:1,dataCodewordsPerBlock:88}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:41},{numBlocks:5,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:7,dataCodewordsPerBlock:13}]}]},{infoBits:68472,versionNumber:16,alignmentPatternCenters:[6,26,50,\n74],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:98},{numBlocks:1,dataCodewordsPerBlock:99}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:70749,\nversionNumber:17,alignmentPatternCenters:[6,30,54,78],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:1,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22},{numBlocks:15,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:17,\ndataCodewordsPerBlock:15}]}]},{infoBits:76311,versionNumber:18,alignmentPatternCenters:[6,30,56,82],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:120},{numBlocks:1,dataCodewordsPerBlock:121}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:43},{numBlocks:4,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:1,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,\ndataCodewordsPerBlock:14},{numBlocks:19,dataCodewordsPerBlock:15}]}]},{infoBits:79154,versionNumber:19,alignmentPatternCenters:[6,30,58,86],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:113},{numBlocks:4,dataCodewordsPerBlock:114}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:44},{numBlocks:11,dataCodewordsPerBlock:45}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:21},{numBlocks:4,dataCodewordsPerBlock:22}]},\n{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:13},{numBlocks:16,dataCodewordsPerBlock:14}]}]},{infoBits:84390,versionNumber:20,alignmentPatternCenters:[6,34,62,90],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:41},{numBlocks:13,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},\n{numBlocks:5,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:15},{numBlocks:10,dataCodewordsPerBlock:16}]}]},{infoBits:87683,versionNumber:21,alignmentPatternCenters:[6,28,50,72,94],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:116},{numBlocks:4,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},\n{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:16},{numBlocks:6,dataCodewordsPerBlock:17}]}]},{infoBits:92361,versionNumber:22,alignmentPatternCenters:[6,26,50,74,98],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:111},{numBlocks:7,dataCodewordsPerBlock:112}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},\n{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:13}]}]},{infoBits:96236,versionNumber:23,alignmentPatternCenters:[6,30,54,74,102],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:121},{numBlocks:5,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:47},{numBlocks:14,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},\n{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:16,dataCodewordsPerBlock:15},{numBlocks:14,dataCodewordsPerBlock:16}]}]},{infoBits:102084,versionNumber:24,alignmentPatternCenters:[6,28,54,80,106],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:45},{numBlocks:14,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:30,dataCodewordsPerBlock:16},{numBlocks:2,dataCodewordsPerBlock:17}]}]},{infoBits:102881,versionNumber:25,alignmentPatternCenters:[6,32,58,84,110],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:106},{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:47},{numBlocks:13,\ndataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:110507,versionNumber:26,alignmentPatternCenters:[6,30,58,86,114],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:114},{numBlocks:2,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,\ndataCodewordsPerBlock:46},{numBlocks:4,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:28,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:33,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]}]},{infoBits:110734,versionNumber:27,alignmentPatternCenters:[6,34,62,90,118],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},\n{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:23},{numBlocks:26,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:117786,versionNumber:28,alignmentPatternCenters:[6,26,50,74,98,122],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:117},\n{numBlocks:10,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:45},{numBlocks:23,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:24},{numBlocks:31,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:31,dataCodewordsPerBlock:16}]}]},{infoBits:119615,versionNumber:29,alignmentPatternCenters:[6,30,54,78,102,126],errorCorrectionLevels:[{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:7,dataCodewordsPerBlock:116},{numBlocks:7,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:21,dataCodewordsPerBlock:45},{numBlocks:7,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:23},{numBlocks:37,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:26,dataCodewordsPerBlock:16}]}]},{infoBits:126325,versionNumber:30,alignmentPatternCenters:[6,\n26,52,78,104,130],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:115},{numBlocks:10,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:47},{numBlocks:10,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:25,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:25,dataCodewordsPerBlock:16}]}]},\n{infoBits:127568,versionNumber:31,alignmentPatternCenters:[6,30,56,82,108,134],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:3,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:46},{numBlocks:29,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:24},{numBlocks:1,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},\n{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:133589,versionNumber:32,alignmentPatternCenters:[6,34,60,86,112,138],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:24},{numBlocks:35,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,\ndataCodewordsPerBlock:15},{numBlocks:35,dataCodewordsPerBlock:16}]}]},{infoBits:136944,versionNumber:33,alignmentPatternCenters:[6,30,58,86,114,142],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:21,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:24},{numBlocks:19,dataCodewordsPerBlock:25}]},\n{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:141498,versionNumber:34,alignmentPatternCenters:[6,34,62,90,118,146],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:6,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:44,\ndataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:59,dataCodewordsPerBlock:16},{numBlocks:1,dataCodewordsPerBlock:17}]}]},{infoBits:145311,versionNumber:35,alignmentPatternCenters:[6,30,54,78,102,126,150],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:121},{numBlocks:7,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:47},{numBlocks:26,dataCodewordsPerBlock:48}]},\n{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:39,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:41,dataCodewordsPerBlock:16}]}]},{infoBits:150283,versionNumber:36,alignmentPatternCenters:[6,24,50,76,102,128,154],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:121},{numBlocks:14,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,\ndataCodewordsPerBlock:47},{numBlocks:34,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:46,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:64,dataCodewordsPerBlock:16}]}]},{infoBits:152622,versionNumber:37,alignmentPatternCenters:[6,28,54,80,106,132,158],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},\n{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:46},{numBlocks:14,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:49,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:24,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:158308,versionNumber:38,alignmentPatternCenters:[6,32,58,84,110,136,162],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,\ndataCodewordsPerBlock:122},{numBlocks:18,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:46},{numBlocks:32,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:48,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:15},{numBlocks:32,dataCodewordsPerBlock:16}]}]},{infoBits:161089,versionNumber:39,alignmentPatternCenters:[6,26,54,82,110,138,166],\nerrorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:40,dataCodewordsPerBlock:47},{numBlocks:7,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:43,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:15},{numBlocks:67,dataCodewordsPerBlock:16}]}]},{infoBits:167017,\nversionNumber:40,alignmentPatternCenters:[6,30,58,86,114,142,170],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:118},{numBlocks:6,dataCodewordsPerBlock:119}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:18,dataCodewordsPerBlock:47},{numBlocks:31,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:24},{numBlocks:34,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:15},\n{numBlocks:61,dataCodewordsPerBlock:16}]}]}];function J(a,b){a^=b;for(b=0;a;)b++,a&=a-1;return b}function K(a,b){return b<<1|a}\nlet ia=[{bits:21522,formatInfo:{errorCorrectionLevel:1,dataMask:0}},{bits:20773,formatInfo:{errorCorrectionLevel:1,dataMask:1}},{bits:24188,formatInfo:{errorCorrectionLevel:1,dataMask:2}},{bits:23371,formatInfo:{errorCorrectionLevel:1,dataMask:3}},{bits:17913,formatInfo:{errorCorrectionLevel:1,dataMask:4}},{bits:16590,formatInfo:{errorCorrectionLevel:1,dataMask:5}},{bits:20375,formatInfo:{errorCorrectionLevel:1,dataMask:6}},{bits:19104,formatInfo:{errorCorrectionLevel:1,dataMask:7}},{bits:30660,formatInfo:{errorCorrectionLevel:0,\ndataMask:0}},{bits:29427,formatInfo:{errorCorrectionLevel:0,dataMask:1}},{bits:32170,formatInfo:{errorCorrectionLevel:0,dataMask:2}},{bits:30877,formatInfo:{errorCorrectionLevel:0,dataMask:3}},{bits:26159,formatInfo:{errorCorrectionLevel:0,dataMask:4}},{bits:25368,formatInfo:{errorCorrectionLevel:0,dataMask:5}},{bits:27713,formatInfo:{errorCorrectionLevel:0,dataMask:6}},{bits:26998,formatInfo:{errorCorrectionLevel:0,dataMask:7}},{bits:5769,formatInfo:{errorCorrectionLevel:3,dataMask:0}},{bits:5054,\nformatInfo:{errorCorrectionLevel:3,dataMask:1}},{bits:7399,formatInfo:{errorCorrectionLevel:3,dataMask:2}},{bits:6608,formatInfo:{errorCorrectionLevel:3,dataMask:3}},{bits:1890,formatInfo:{errorCorrectionLevel:3,dataMask:4}},{bits:597,formatInfo:{errorCorrectionLevel:3,dataMask:5}},{bits:3340,formatInfo:{errorCorrectionLevel:3,dataMask:6}},{bits:2107,formatInfo:{errorCorrectionLevel:3,dataMask:7}},{bits:13663,formatInfo:{errorCorrectionLevel:2,dataMask:0}},{bits:12392,formatInfo:{errorCorrectionLevel:2,\ndataMask:1}},{bits:16177,formatInfo:{errorCorrectionLevel:2,dataMask:2}},{bits:14854,formatInfo:{errorCorrectionLevel:2,dataMask:3}},{bits:9396,formatInfo:{errorCorrectionLevel:2,dataMask:4}},{bits:8579,formatInfo:{errorCorrectionLevel:2,dataMask:5}},{bits:11994,formatInfo:{errorCorrectionLevel:2,dataMask:6}},{bits:11245,formatInfo:{errorCorrectionLevel:2,dataMask:7}}],ja=[a=>0===(a.y+a.x)%2,a=>0===a.y%2,a=>0===a.x%3,a=>0===(a.y+a.x)%3,a=>0===(Math.floor(a.y/2)+Math.floor(a.x/3))%2,a=>0===a.x*a.y%\n2+a.x*a.y%3,a=>0===(a.y*a.x%2+a.y*a.x%3)%2,a=>0===((a.y+a.x)%2+a.y*a.x%3)%2];\nfunction ka(a,b,c){c=ja[c.dataMask];let d=a.height;var e=17+4*b.versionNumber;let f=x.createEmpty(e,e);f.setRegion(0,0,9,9,!0);f.setRegion(e-8,0,8,9,!0);f.setRegion(0,e-8,9,8,!0);for(var g of b.alignmentPatternCenters)for(var h of b.alignmentPatternCenters)6===g&&6===h||6===g&&h===e-7||g===e-7&&6===h||f.setRegion(g-2,h-2,5,5,!0);f.setRegion(6,9,1,e-17,!0);f.setRegion(9,6,e-17,1,!0);6n;n++){let q=k-n;if(!f.get(q,l)){h++;let r=a.get(q,l);c({y:l,x:q})&&(r=!r);g=g<<1|r;8===h&&(b.push(g),g=h=0)}}}e=!e}return b}\nfunction la(a){var b=a.height,c=Math.floor((b-17)/4);if(6>=c)return I[c-1];c=0;for(var d=5;0<=d;d--)for(var e=b-9;e>=b-11;e--)c=K(a.get(e,d),c);d=0;for(e=5;0<=e;e--)for(let g=b-9;g>=b-11;g--)d=K(a.get(e,g),d);a=Infinity;let f;for(let g of I){if(g.infoBits===c||g.infoBits===d)return g;b=J(c,g.infoBits);b=a)return f}\nfunction ma(a){let b=0;for(var c=0;8>=c;c++)6!==c&&(b=K(a.get(c,8),b));for(c=7;0<=c;c--)6!==c&&(b=K(a.get(8,c),b));var d=a.height;c=0;for(var e=d-1;e>=d-7;e--)c=K(a.get(8,e),c);for(e=d-8;e=a?d:null}\nfunction na(a,b,c){let d=b.errorCorrectionLevels[c],e=[],f=0;d.ecBlocks.forEach(h=>{for(let k=0;ke+f.numDataCodewords,0);c=new Uint8ClampedArray(c);a=0;for(let e of d){d=ha(e.codewords,e.codewords.length-e.numDataCodewords);if(!d)return null;for(let f=0;f{const p=g*r+m*u+q;return{x:(e*r+h*u+l)/p,y:(f*r+k*u+n)/p}};for(let r=0;rMath.sqrt(Math.pow(b.x-a.x,2)+Math.pow(b.y-a.y,2));function O(a){return a.reduce((b,c)=>b+c)}\nfunction qa(a,b,c){let d=N(a,b),e=N(b,c),f=N(a,c),g,h,k;e>=d&&e>=f?[g,h,k]=[b,a,c]:f>=e&&f>=d?[g,h,k]=[a,b,c]:[g,h,k]=[a,c,b];0>(k.x-h.x)*(g.y-h.y)-(k.y-h.y)*(g.x-h.x)&&([g,k]=[k,g]);return{bottomLeft:g,topLeft:h,topRight:k}}\nfunction ra(a,b,c,d){d=(O(P(a,c,d,5))/7+O(P(a,b,d,5))/7+O(P(c,a,d,5))/7+O(P(b,a,d,5))/7)/4;if(1>d)throw Error("Invalid module size");b=Math.round(N(a,b)/d);a=Math.round(N(a,c)/d);a=Math.floor((b+a)/2)+7;switch(a%4){case 0:a++;break;case 2:a--}return{dimension:a,moduleSize:d}}\nfunction Q(a,b,c,d){let e=[{x:Math.floor(a.x),y:Math.floor(a.y)}];var f=Math.abs(b.y-a.y)>Math.abs(b.x-a.x);if(f){var g=Math.floor(a.y);var h=Math.floor(a.x);a=Math.floor(b.y);b=Math.floor(b.x)}else g=Math.floor(a.x),h=Math.floor(a.y),a=Math.floor(b.x),b=Math.floor(b.y);let k=Math.abs(a-g),m=Math.abs(b-h),l=Math.floor(-k/2),n=g{d+=Math.pow(a[f]-e*c,2)});return{averageSize:c,error:d}}\nfunction S(a,b,c){try{let d=P(a,{x:-1,y:a.y},c,b.length),e=P(a,{x:a.x,y:-1},c,b.length),f=P(a,{x:Math.max(0,a.x-a.y)-1,y:Math.max(0,a.y-a.x)-1},c,b.length),g=P(a,{x:Math.min(c.width,a.x+a.y)+1,y:Math.min(c.height,a.y+a.x)+1},c,b.length),h=R(d,b),k=R(e,b),m=R(f,b),l=R(g,b),n=(h.averageSize+k.averageSize+m.averageSize+l.averageSize)/4;return Math.sqrt(h.error*h.error+k.error*k.error+m.error*m.error+l.error*l.error)+(Math.pow(h.averageSize-n,2)+Math.pow(k.averageSize-n,2)+Math.pow(m.averageSize-n,2)+\nMath.pow(l.averageSize-n,2))/n}catch(d){return Infinity}}function T(a,b){for(var c=Math.round(b.x);a.get(c,Math.round(b.y));)c--;for(var d=Math.round(b.x);a.get(d,Math.round(b.y));)d++;c=(c+d)/2;for(d=Math.round(b.y);a.get(Math.round(c),d);)d--;for(b=Math.round(b.y);a.get(Math.round(c),b);)b++;return{x:c,y:(d+b)/2}}\nfunction sa(a){var b=[],c=[];let d=[];var e=[];for(let p=0;p<=a.height;p++){var f=0,g=!1;let t=[0,0,0,0,0];for(let v=-1;v<=a.width;v++){var h=a.get(v,p);if(h===g)f++;else{t=[t[1],t[2],t[3],t[4],f];f=1;g=h;var k=O(t)/7;k=Math.abs(t[0]-k)y>=w.bottom.startX&&\ny<=w.bottom.endX||z>=w.bottom.startX&&y<=w.bottom.endX||y<=w.bottom.startX&&z>=w.bottom.endX&&1.5>t[2]/(w.bottom.endX-w.bottom.startX)&&.5y>=w.bottom.startX&&y<=w.bottom.endX||z>=w.bottom.startX&&y<=w.bottom.endX||y<=w.bottom.startX&&z>=w.bottom.endX&&1.5>t[2]/(w.bottom.endX-w.bottom.startX)&&.5v.bottom.y!==p&&2<=v.bottom.y-v.top.y));c=c.filter(v=>v.bottom.y===p);d.push(...e.filter(v=>v.bottom.y!==p));e=e.filter(v=>v.bottom.y===p)}b.push(...c.filter(p=>2<=p.bottom.y-p.top.y));d.push(...e);c=[];for(var l of b)2>l.bottom.y-l.top.y||(b=(l.top.startX+l.top.endX+l.bottom.startX+l.bottom.endX)/4,e=(l.top.y+l.bottom.y+1)/2,a.get(Math.round(b),Math.round(e))&&(f=[l.top.endX-l.top.startX,l.bottom.endX-l.bottom.startX,l.bottom.y-l.top.y+\n1],f=O(f)/f.length,g=S({x:Math.round(b),y:Math.round(e)},[1,1,3,1,1],a),c.push({score:g,x:b,y:e,size:f})));if(3>c.length)return null;c.sort((p,t)=>p.score-t.score);l=[];for(b=0;bp.score-t.score);l.push({points:[e,f[0],f[1]],score:e.score+f[0].score+f[1].score})}l.sort((p,t)=>p.score-t.score);let {topRight:q,topLeft:r,bottomLeft:u}=qa(...l[0].points);\nl=U(a,d,q,r,u);n=[];l&&n.push({alignmentPattern:{x:l.alignmentPattern.x,y:l.alignmentPattern.y},bottomLeft:{x:u.x,y:u.y},dimension:l.dimension,topLeft:{x:r.x,y:r.y},topRight:{x:q.x,y:q.y}});l=T(a,q);b=T(a,r);c=T(a,u);(a=U(a,d,l,b,c))&&n.push({alignmentPattern:{x:a.alignmentPattern.x,y:a.alignmentPattern.y},bottomLeft:{x:c.x,y:c.y},topLeft:{x:b.x,y:b.y},topRight:{x:l.x,y:l.y},dimension:a.dimension});return 0===n.length?null:n}\nfunction U(a,b,c,d,e){let f,g;try{({dimension:f,moduleSize:g}=ra(d,c,e,a))}catch(l){return null}var h=c.x-d.x+e.x,k=c.y-d.y+e.y;c=(N(d,e)+N(d,c))/2/g;e=1-3/c;let m={x:d.x+e*(h-d.x),y:d.y+e*(k-d.y)};b=b.map(l=>{const n=(l.top.startX+l.top.endX+l.bottom.startX+l.bottom.endX)/4;l=(l.top.y+l.bottom.y+1)/2;if(a.get(Math.floor(n),Math.floor(l))){var q=S({x:Math.floor(n),y:Math.floor(l)},[1,1,1],a)+N({x:n,y:l},m);return{x:n,y:l,score:q}}}).filter(l=>!!l).sort((l,n)=>l.score-n.score);return{alignmentPattern:15<=\nc&&b.length?b[0]:m,dimension:f}}\nfunction V(a){var b=sa(a);if(!b)return null;for(let e of b){b=pa(a,e);var c=b.matrix;if(null==c)c=null;else{var d=L(c);if(d)c=d;else{for(d=0;d{a[c]=b[c]})}\nfunction X(a,b,c,d={}){let e=Object.create(null);W(e,ta);W(e,d);d="onlyInvert"===e.inversionAttempts||"invertFirst"===e.inversionAttempts;var f="attemptBoth"===e.inversionAttempts||d;var g=e.greyScaleWeights,h=e.canOverwriteImage,k=b*c;if(a.length!==4*k)throw Error("Malformed data passed to binarizer.");var m=0;if(h){var l=new Uint8ClampedArray(a.buffer,m,k);m+=k}l=new A(b,c,l);if(g.useIntegerApproximation)for(var n=0;n>8)}else for(n=0;nv;v++)for(let w=0;8>w;w++){let aa=l.get(8*r+w,8*q+v);p=Math.min(p,aa);t=Math.max(t,aa)}v=(p+t)/2;v=Math.min(255,1.11*v);24>=t-p&&(v=p/2,0a?2:a>c?c:a;h=n-3;h=2>b?2:b>h?h:b;k=0;for(m=-2;2>=m;m++)for(p=-2;2>=p;p++)k+=u.get(c+m,h+p);c=k/25;for(h=0;8>h;h++)for(k=0;8>k;k++)m=8*a+h,p=8*b+k,t=l.get(m,p),q.set(m,p,t<=c),f&&r.set(m,p,!(t<=c))}f=f?{binarized:q,inverted:r}:{binarized:q};let {binarized:z,inverted:y}=f;(f=V(d?\ny:z))||"attemptBoth"!==e.inversionAttempts&&"invertFirst"!==e.inversionAttempts||(f=V(d?z:y));return f}X.default=X;let Y="dontInvert",Z={red:77,green:150,blue:29,useIntegerApproximation:!0};\nself.onmessage=a=>{let b=a.data.id,c=a.data.data;switch(a.data.type){case "decode":(a=X(c.data,c.width,c.height,{inversionAttempts:Y,greyScaleWeights:Z}))?self.postMessage({id:b,type:"qrResult",data:a.data,cornerPoints:[a.location.topLeftCorner,a.location.topRightCorner,a.location.bottomRightCorner,a.location.bottomLeftCorner]}):self.postMessage({id:b,type:"qrResult",data:null});break;case "grayscaleWeights":Z.red=c.red;Z.green=c.green;Z.blue=c.blue;Z.useIntegerApproximation=c.useIntegerApproximation;\nbreak;case "inversionMode":switch(c){case "original":Y="dontInvert";break;case "invert":Y="onlyInvert";break;case "both":Y="attemptBoth";break;default:throw Error("Invalid inversion mode");}break;case "close":self.close()}}\n']),{type:"application/javascript"}))}}]); \ No newline at end of file diff --git a/docs/3rdpartylicenses.txt b/docs/3rdpartylicenses.txt old mode 100644 new mode 100755 index 3c2a186..1778883 --- a/docs/3rdpartylicenses.txt +++ b/docs/3rdpartylicenses.txt @@ -306,9 +306,6 @@ THE SOFTWARE. ``` -encode-utf8 -MIT - ngx-toastr MIT The MIT License (MIT) @@ -625,7 +622,7 @@ zone.js MIT The MIT License -Copyright (c) 2010-2023 Google LLC. https://angular.io/license +Copyright (c) 2010-2024 Google LLC. https://angular.io/license Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/docs/43.48830501c0b9c7e9.js b/docs/43.48830501c0b9c7e9.js new file mode 100755 index 0000000..7f26184 --- /dev/null +++ b/docs/43.48830501c0b9c7e9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkprivate_qrcode=self.webpackChunkprivate_qrcode||[]).push([[43],{6043:(t,e,o)=>{o.r(e),o.d(e,{createWorker:()=>r});const r=()=>new Worker(URL.createObjectURL(new Blob(['class x{constructor(a,b){this.width=b;this.height=a.length/b;this.data=a}static createEmpty(a,b){return new x(new Uint8ClampedArray(a*b),a)}get(a,b){return 0>a||a>=this.width||0>b||b>=this.height?!1:!!this.data[b*this.width+a]}set(a,b,c){this.data[b*this.width+a]=c?1:0}setRegion(a,b,c,d,e){for(let f=b;fa||32this.available())throw Error("Cannot read "+a.toString()+" bits");var b=0;if(0>8-c<>b;a-=c;this.bitOffset+=c;8===this.bitOffset&&(this.bitOffset=0,this.byteOffset++)}if(0>c<>c,\nthis.bitOffset+=a)}return b}available(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset}}var B,C=B||(B={});C.Numeric="numeric";C.Alphanumeric="alphanumeric";C.Byte="byte";C.Kanji="kanji";C.ECI="eci";C.StructuredAppend="structuredappend";var D,E=D||(D={});E[E.Terminator=0]="Terminator";E[E.Numeric=1]="Numeric";E[E.Alphanumeric=2]="Alphanumeric";E[E.Byte=4]="Byte";E[E.Kanji=8]="Kanji";E[E.ECI=7]="ECI";E[E.StructuredAppend=3]="StructuredAppend";let F="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".split("");\nfunction ca(a,b){let c=[],d="";b=a.readBits([8,16,16][b]);for(let e=0;e`%${("0"+e.toString(16)).substr(-2)}`).join(""))}catch(e){}return{bytes:c,text:d}}\nfunction da(a,b){a=new ba(a);let c=9>=b?0:26>=b?1:2;for(b={text:"",bytes:[],chunks:[],version:b};4<=a.available();){var d=a.readBits(4);if(d===D.Terminator)return b;if(d===D.ECI)0===a.readBits(1)?b.chunks.push({type:B.ECI,assignmentNumber:a.readBits(7)}):0===a.readBits(1)?b.chunks.push({type:B.ECI,assignmentNumber:a.readBits(14)}):0===a.readBits(1)?b.chunks.push({type:B.ECI,assignmentNumber:a.readBits(21)}):b.chunks.push({type:B.ECI,assignmentNumber:-1});else if(d===D.Numeric){var e=a,f=[];d="";for(var g=\ne.readBits([10,12,14][c]);3<=g;){var h=e.readBits(10);if(1E3<=h)throw Error("Invalid numeric value above 999");var k=Math.floor(h/100),m=Math.floor(h/10)%10;h%=10;f.push(48+k,48+m,48+h);d+=k.toString()+m.toString()+h.toString();g-=3}if(2===g){g=e.readBits(7);if(100<=g)throw Error("Invalid numeric value above 99");e=Math.floor(g/10);g%=10;f.push(48+e,48+g);d+=e.toString()+g.toString()}else if(1===g){e=e.readBits(4);if(10<=e)throw Error("Invalid numeric value above 9");f.push(48+e);d+=e.toString()}b.text+=\nd;b.bytes.push(...f);b.chunks.push({type:B.Numeric,text:d})}else if(d===D.Alphanumeric){e=a;f=[];d="";for(g=e.readBits([9,11,13][c]);2<=g;)m=e.readBits(11),k=Math.floor(m/45),m%=45,f.push(F[k].charCodeAt(0),F[m].charCodeAt(0)),d+=F[k]+F[m],g-=2;1===g&&(e=e.readBits(6),f.push(F[e].charCodeAt(0)),d+=F[e]);b.text+=d;b.bytes.push(...f);b.chunks.push({type:B.Alphanumeric,text:d})}else if(d===D.Byte)d=ca(a,c),b.text+=d.text,b.bytes.push(...d.bytes),b.chunks.push({type:B.Byte,bytes:d.bytes,text:d.text});\nelse if(d===D.Kanji){f=a;d=[];e=f.readBits([8,10,12][c]);for(g=0;gk?k+33088:k+49472,d.push(k>>8,k&255);f=(new TextDecoder("shift-jis")).decode(Uint8Array.from(d));b.text+=f;b.bytes.push(...d);b.chunks.push({type:B.Kanji,bytes:d,text:f})}else d===D.StructuredAppend&&b.chunks.push({type:B.StructuredAppend,currentSequence:a.readBits(4),totalSequence:a.readBits(4),parity:a.readBits(8)})}if(0===a.available()||0===a.readBits(a.available()))return b}\nclass G{constructor(a,b){if(0===b.length)throw Error("No coefficients.");this.field=a;let c=b.length;if(1a.length&&([b,a]=[a,b]);let c=new Uint8ClampedArray(a.length),d=a.length-b.length;for(var e=0;ea)throw Error("Invalid degree less than 0");if(0===b)return this.field.zero;let c=this.coefficients.length;a=new Uint8ClampedArray(c+a);for(let d=0;d{b^=d}),b;b=this.coefficients[0];for(let d=1;d=this.size&&(a=(a^this.primitive)&this.size-1);for(a=0;aa)throw Error("Invalid monomial degree less than 0");if(0===b)return this.zero;a=new Uint8ClampedArray(a+1);a[0]=b;return new G(this,a)}log(a){if(0===a)throw Error("Can\'t take log(0)");return this.logTable[a]}exp(a){return this.expTable[a]}}\nfunction fa(a,b,c,d){b.degree()=d/2;){var g=b;let h=e;b=c;e=f;if(b.isZero())return null;c=g;f=a.zero;g=b.getCoefficient(b.degree());for(g=a.inverse(g);c.degree()>=b.degree()&&!c.isZero();){let k=c.degree()-b.degree(),m=a.multiply(c.getCoefficient(c.degree()),g);f=f.addOrSubtract(a.buildMonomial(k,m));c=c.addOrSubtract(b.multiplyByMonomial(k,m))}f=f.multiplyPoly(e).addOrSubtract(h);if(c.degree()>=b.degree())return null}d=f.getCoefficient(0);\nif(0===d)return null;a=a.inverse(d);return[f.multiply(a),c.multiply(a)]}\nfunction ha(a,b){let c=new Uint8ClampedArray(a.length);c.set(a);a=new ea(285,256,0);var d=new G(a,c),e=new Uint8ClampedArray(b),f=!1;for(var g=0;gf)return null;c[f]^=d[e]}return c}\nlet I=[{infoBits:null,versionNumber:1,alignmentPatternCenters:[],errorCorrectionLevels:[{ecCodewordsPerBlock:7,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:13,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:13}]},{ecCodewordsPerBlock:17,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:2,alignmentPatternCenters:[6,18],errorCorrectionLevels:[{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,\ndataCodewordsPerBlock:34}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:28}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]}]},{infoBits:null,versionNumber:3,alignmentPatternCenters:[6,22],errorCorrectionLevels:[{ecCodewordsPerBlock:15,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:55}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:18,\necBlocks:[{numBlocks:2,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:13}]}]},{infoBits:null,versionNumber:4,alignmentPatternCenters:[6,26],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:80}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:32}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:9}]}]},\n{infoBits:null,versionNumber:5,alignmentPatternCenters:[6,30],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:43}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:11},{numBlocks:2,dataCodewordsPerBlock:12}]}]},{infoBits:null,versionNumber:6,alignmentPatternCenters:[6,\n34],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:27}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:31892,versionNumber:7,alignmentPatternCenters:[6,22,38],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:78}]},{ecCodewordsPerBlock:18,\necBlocks:[{numBlocks:4,dataCodewordsPerBlock:31}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:13},{numBlocks:1,dataCodewordsPerBlock:14}]}]},{infoBits:34236,versionNumber:8,alignmentPatternCenters:[6,24,42],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:97}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:38},\n{numBlocks:2,dataCodewordsPerBlock:39}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:18},{numBlocks:2,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:14},{numBlocks:2,dataCodewordsPerBlock:15}]}]},{infoBits:39577,versionNumber:9,alignmentPatternCenters:[6,26,46],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:36},\n{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:12},{numBlocks:4,dataCodewordsPerBlock:13}]}]},{infoBits:42195,versionNumber:10,alignmentPatternCenters:[6,28,50],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68},{numBlocks:2,dataCodewordsPerBlock:69}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,\ndataCodewordsPerBlock:43},{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]}]},{infoBits:48118,versionNumber:11,alignmentPatternCenters:[6,30,54],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:81}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,\ndataCodewordsPerBlock:50},{numBlocks:4,dataCodewordsPerBlock:51}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:22},{numBlocks:4,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:12},{numBlocks:8,dataCodewordsPerBlock:13}]}]},{infoBits:51042,versionNumber:12,alignmentPatternCenters:[6,32,58],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:92},{numBlocks:2,dataCodewordsPerBlock:93}]},\n{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:20},{numBlocks:6,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:55367,versionNumber:13,alignmentPatternCenters:[6,34,62],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:107}]},\n{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:37},{numBlocks:1,dataCodewordsPerBlock:38}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:20},{numBlocks:4,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:11},{numBlocks:4,dataCodewordsPerBlock:12}]}]},{infoBits:58893,versionNumber:14,alignmentPatternCenters:[6,26,46,66],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:115},\n{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:40},{numBlocks:5,dataCodewordsPerBlock:41}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:16},{numBlocks:5,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:5,dataCodewordsPerBlock:13}]}]},{infoBits:63784,versionNumber:15,alignmentPatternCenters:[6,26,48,70],errorCorrectionLevels:[{ecCodewordsPerBlock:22,\necBlocks:[{numBlocks:5,dataCodewordsPerBlock:87},{numBlocks:1,dataCodewordsPerBlock:88}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:41},{numBlocks:5,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:7,dataCodewordsPerBlock:13}]}]},{infoBits:68472,versionNumber:16,alignmentPatternCenters:[6,26,50,\n74],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:98},{numBlocks:1,dataCodewordsPerBlock:99}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:70749,\nversionNumber:17,alignmentPatternCenters:[6,30,54,78],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:1,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22},{numBlocks:15,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:17,\ndataCodewordsPerBlock:15}]}]},{infoBits:76311,versionNumber:18,alignmentPatternCenters:[6,30,56,82],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:120},{numBlocks:1,dataCodewordsPerBlock:121}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:43},{numBlocks:4,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:1,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,\ndataCodewordsPerBlock:14},{numBlocks:19,dataCodewordsPerBlock:15}]}]},{infoBits:79154,versionNumber:19,alignmentPatternCenters:[6,30,58,86],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:113},{numBlocks:4,dataCodewordsPerBlock:114}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:44},{numBlocks:11,dataCodewordsPerBlock:45}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:21},{numBlocks:4,dataCodewordsPerBlock:22}]},\n{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:13},{numBlocks:16,dataCodewordsPerBlock:14}]}]},{infoBits:84390,versionNumber:20,alignmentPatternCenters:[6,34,62,90],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:41},{numBlocks:13,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},\n{numBlocks:5,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:15},{numBlocks:10,dataCodewordsPerBlock:16}]}]},{infoBits:87683,versionNumber:21,alignmentPatternCenters:[6,28,50,72,94],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:116},{numBlocks:4,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},\n{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:16},{numBlocks:6,dataCodewordsPerBlock:17}]}]},{infoBits:92361,versionNumber:22,alignmentPatternCenters:[6,26,50,74,98],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:111},{numBlocks:7,dataCodewordsPerBlock:112}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},\n{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:13}]}]},{infoBits:96236,versionNumber:23,alignmentPatternCenters:[6,30,54,74,102],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:121},{numBlocks:5,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:47},{numBlocks:14,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},\n{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:16,dataCodewordsPerBlock:15},{numBlocks:14,dataCodewordsPerBlock:16}]}]},{infoBits:102084,versionNumber:24,alignmentPatternCenters:[6,28,54,80,106],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:45},{numBlocks:14,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:30,dataCodewordsPerBlock:16},{numBlocks:2,dataCodewordsPerBlock:17}]}]},{infoBits:102881,versionNumber:25,alignmentPatternCenters:[6,32,58,84,110],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:106},{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:47},{numBlocks:13,\ndataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:110507,versionNumber:26,alignmentPatternCenters:[6,30,58,86,114],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:114},{numBlocks:2,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,\ndataCodewordsPerBlock:46},{numBlocks:4,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:28,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:33,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]}]},{infoBits:110734,versionNumber:27,alignmentPatternCenters:[6,34,62,90,118],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},\n{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:23},{numBlocks:26,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:117786,versionNumber:28,alignmentPatternCenters:[6,26,50,74,98,122],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:117},\n{numBlocks:10,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:45},{numBlocks:23,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:24},{numBlocks:31,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:31,dataCodewordsPerBlock:16}]}]},{infoBits:119615,versionNumber:29,alignmentPatternCenters:[6,30,54,78,102,126],errorCorrectionLevels:[{ecCodewordsPerBlock:30,\necBlocks:[{numBlocks:7,dataCodewordsPerBlock:116},{numBlocks:7,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:21,dataCodewordsPerBlock:45},{numBlocks:7,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:23},{numBlocks:37,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:26,dataCodewordsPerBlock:16}]}]},{infoBits:126325,versionNumber:30,alignmentPatternCenters:[6,\n26,52,78,104,130],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:115},{numBlocks:10,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:47},{numBlocks:10,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:25,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:25,dataCodewordsPerBlock:16}]}]},\n{infoBits:127568,versionNumber:31,alignmentPatternCenters:[6,30,56,82,108,134],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:3,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:46},{numBlocks:29,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:24},{numBlocks:1,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},\n{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:133589,versionNumber:32,alignmentPatternCenters:[6,34,60,86,112,138],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:24},{numBlocks:35,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,\ndataCodewordsPerBlock:15},{numBlocks:35,dataCodewordsPerBlock:16}]}]},{infoBits:136944,versionNumber:33,alignmentPatternCenters:[6,30,58,86,114,142],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:21,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:24},{numBlocks:19,dataCodewordsPerBlock:25}]},\n{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:141498,versionNumber:34,alignmentPatternCenters:[6,34,62,90,118,146],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:6,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:44,\ndataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:59,dataCodewordsPerBlock:16},{numBlocks:1,dataCodewordsPerBlock:17}]}]},{infoBits:145311,versionNumber:35,alignmentPatternCenters:[6,30,54,78,102,126,150],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:121},{numBlocks:7,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:47},{numBlocks:26,dataCodewordsPerBlock:48}]},\n{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:39,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:41,dataCodewordsPerBlock:16}]}]},{infoBits:150283,versionNumber:36,alignmentPatternCenters:[6,24,50,76,102,128,154],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:121},{numBlocks:14,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,\ndataCodewordsPerBlock:47},{numBlocks:34,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:46,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:64,dataCodewordsPerBlock:16}]}]},{infoBits:152622,versionNumber:37,alignmentPatternCenters:[6,28,54,80,106,132,158],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},\n{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:46},{numBlocks:14,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:49,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:24,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:158308,versionNumber:38,alignmentPatternCenters:[6,32,58,84,110,136,162],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,\ndataCodewordsPerBlock:122},{numBlocks:18,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:46},{numBlocks:32,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:48,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:15},{numBlocks:32,dataCodewordsPerBlock:16}]}]},{infoBits:161089,versionNumber:39,alignmentPatternCenters:[6,26,54,82,110,138,166],\nerrorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:40,dataCodewordsPerBlock:47},{numBlocks:7,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:43,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:15},{numBlocks:67,dataCodewordsPerBlock:16}]}]},{infoBits:167017,\nversionNumber:40,alignmentPatternCenters:[6,30,58,86,114,142,170],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:118},{numBlocks:6,dataCodewordsPerBlock:119}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:18,dataCodewordsPerBlock:47},{numBlocks:31,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:24},{numBlocks:34,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:15},\n{numBlocks:61,dataCodewordsPerBlock:16}]}]}];function J(a,b){a^=b;for(b=0;a;)b++,a&=a-1;return b}function K(a,b){return b<<1|a}\nlet ia=[{bits:21522,formatInfo:{errorCorrectionLevel:1,dataMask:0}},{bits:20773,formatInfo:{errorCorrectionLevel:1,dataMask:1}},{bits:24188,formatInfo:{errorCorrectionLevel:1,dataMask:2}},{bits:23371,formatInfo:{errorCorrectionLevel:1,dataMask:3}},{bits:17913,formatInfo:{errorCorrectionLevel:1,dataMask:4}},{bits:16590,formatInfo:{errorCorrectionLevel:1,dataMask:5}},{bits:20375,formatInfo:{errorCorrectionLevel:1,dataMask:6}},{bits:19104,formatInfo:{errorCorrectionLevel:1,dataMask:7}},{bits:30660,formatInfo:{errorCorrectionLevel:0,\ndataMask:0}},{bits:29427,formatInfo:{errorCorrectionLevel:0,dataMask:1}},{bits:32170,formatInfo:{errorCorrectionLevel:0,dataMask:2}},{bits:30877,formatInfo:{errorCorrectionLevel:0,dataMask:3}},{bits:26159,formatInfo:{errorCorrectionLevel:0,dataMask:4}},{bits:25368,formatInfo:{errorCorrectionLevel:0,dataMask:5}},{bits:27713,formatInfo:{errorCorrectionLevel:0,dataMask:6}},{bits:26998,formatInfo:{errorCorrectionLevel:0,dataMask:7}},{bits:5769,formatInfo:{errorCorrectionLevel:3,dataMask:0}},{bits:5054,\nformatInfo:{errorCorrectionLevel:3,dataMask:1}},{bits:7399,formatInfo:{errorCorrectionLevel:3,dataMask:2}},{bits:6608,formatInfo:{errorCorrectionLevel:3,dataMask:3}},{bits:1890,formatInfo:{errorCorrectionLevel:3,dataMask:4}},{bits:597,formatInfo:{errorCorrectionLevel:3,dataMask:5}},{bits:3340,formatInfo:{errorCorrectionLevel:3,dataMask:6}},{bits:2107,formatInfo:{errorCorrectionLevel:3,dataMask:7}},{bits:13663,formatInfo:{errorCorrectionLevel:2,dataMask:0}},{bits:12392,formatInfo:{errorCorrectionLevel:2,\ndataMask:1}},{bits:16177,formatInfo:{errorCorrectionLevel:2,dataMask:2}},{bits:14854,formatInfo:{errorCorrectionLevel:2,dataMask:3}},{bits:9396,formatInfo:{errorCorrectionLevel:2,dataMask:4}},{bits:8579,formatInfo:{errorCorrectionLevel:2,dataMask:5}},{bits:11994,formatInfo:{errorCorrectionLevel:2,dataMask:6}},{bits:11245,formatInfo:{errorCorrectionLevel:2,dataMask:7}}],ja=[a=>0===(a.y+a.x)%2,a=>0===a.y%2,a=>0===a.x%3,a=>0===(a.y+a.x)%3,a=>0===(Math.floor(a.y/2)+Math.floor(a.x/3))%2,a=>0===a.x*a.y%\n2+a.x*a.y%3,a=>0===(a.y*a.x%2+a.y*a.x%3)%2,a=>0===((a.y+a.x)%2+a.y*a.x%3)%2];\nfunction ka(a,b,c){c=ja[c.dataMask];let d=a.height;var e=17+4*b.versionNumber;let f=x.createEmpty(e,e);f.setRegion(0,0,9,9,!0);f.setRegion(e-8,0,8,9,!0);f.setRegion(0,e-8,9,8,!0);for(var g of b.alignmentPatternCenters)for(var h of b.alignmentPatternCenters)6===g&&6===h||6===g&&h===e-7||g===e-7&&6===h||f.setRegion(g-2,h-2,5,5,!0);f.setRegion(6,9,1,e-17,!0);f.setRegion(9,6,e-17,1,!0);6n;n++){let q=k-n;if(!f.get(q,l)){h++;let r=a.get(q,l);c({y:l,x:q})&&(r=!r);g=g<<1|r;8===h&&(b.push(g),g=h=0)}}}e=!e}return b}\nfunction la(a){var b=a.height,c=Math.floor((b-17)/4);if(6>=c)return I[c-1];c=0;for(var d=5;0<=d;d--)for(var e=b-9;e>=b-11;e--)c=K(a.get(e,d),c);d=0;for(e=5;0<=e;e--)for(let g=b-9;g>=b-11;g--)d=K(a.get(e,g),d);a=Infinity;let f;for(let g of I){if(g.infoBits===c||g.infoBits===d)return g;b=J(c,g.infoBits);b=a)return f}\nfunction ma(a){let b=0;for(var c=0;8>=c;c++)6!==c&&(b=K(a.get(c,8),b));for(c=7;0<=c;c--)6!==c&&(b=K(a.get(8,c),b));var d=a.height;c=0;for(var e=d-1;e>=d-7;e--)c=K(a.get(8,e),c);for(e=d-8;e=a?d:null}\nfunction na(a,b,c){let d=b.errorCorrectionLevels[c],e=[],f=0;d.ecBlocks.forEach(h=>{for(let k=0;ke+f.numDataCodewords,0);c=new Uint8ClampedArray(c);a=0;for(let e of d){d=ha(e.codewords,e.codewords.length-e.numDataCodewords);if(!d)return null;for(let f=0;f{const p=g*r+m*u+q;return{x:(e*r+h*u+l)/p,y:(f*r+k*u+n)/p}};for(let r=0;rMath.sqrt(Math.pow(b.x-a.x,2)+Math.pow(b.y-a.y,2));function O(a){return a.reduce((b,c)=>b+c)}\nfunction qa(a,b,c){let d=N(a,b),e=N(b,c),f=N(a,c),g,h,k;e>=d&&e>=f?[g,h,k]=[b,a,c]:f>=e&&f>=d?[g,h,k]=[a,b,c]:[g,h,k]=[a,c,b];0>(k.x-h.x)*(g.y-h.y)-(k.y-h.y)*(g.x-h.x)&&([g,k]=[k,g]);return{bottomLeft:g,topLeft:h,topRight:k}}\nfunction ra(a,b,c,d){d=(O(P(a,c,d,5))/7+O(P(a,b,d,5))/7+O(P(c,a,d,5))/7+O(P(b,a,d,5))/7)/4;if(1>d)throw Error("Invalid module size");b=Math.round(N(a,b)/d);a=Math.round(N(a,c)/d);a=Math.floor((b+a)/2)+7;switch(a%4){case 0:a++;break;case 2:a--}return{dimension:a,moduleSize:d}}\nfunction Q(a,b,c,d){let e=[{x:Math.floor(a.x),y:Math.floor(a.y)}];var f=Math.abs(b.y-a.y)>Math.abs(b.x-a.x);if(f){var g=Math.floor(a.y);var h=Math.floor(a.x);a=Math.floor(b.y);b=Math.floor(b.x)}else g=Math.floor(a.x),h=Math.floor(a.y),a=Math.floor(b.x),b=Math.floor(b.y);let k=Math.abs(a-g),m=Math.abs(b-h),l=Math.floor(-k/2),n=g{d+=Math.pow(a[f]-e*c,2)});return{averageSize:c,error:d}}\nfunction S(a,b,c){try{let d=P(a,{x:-1,y:a.y},c,b.length),e=P(a,{x:a.x,y:-1},c,b.length),f=P(a,{x:Math.max(0,a.x-a.y)-1,y:Math.max(0,a.y-a.x)-1},c,b.length),g=P(a,{x:Math.min(c.width,a.x+a.y)+1,y:Math.min(c.height,a.y+a.x)+1},c,b.length),h=R(d,b),k=R(e,b),m=R(f,b),l=R(g,b),n=(h.averageSize+k.averageSize+m.averageSize+l.averageSize)/4;return Math.sqrt(h.error*h.error+k.error*k.error+m.error*m.error+l.error*l.error)+(Math.pow(h.averageSize-n,2)+Math.pow(k.averageSize-n,2)+Math.pow(m.averageSize-n,2)+\nMath.pow(l.averageSize-n,2))/n}catch(d){return Infinity}}function T(a,b){for(var c=Math.round(b.x);a.get(c,Math.round(b.y));)c--;for(var d=Math.round(b.x);a.get(d,Math.round(b.y));)d++;c=(c+d)/2;for(d=Math.round(b.y);a.get(Math.round(c),d);)d--;for(b=Math.round(b.y);a.get(Math.round(c),b);)b++;return{x:c,y:(d+b)/2}}\nfunction sa(a){var b=[],c=[];let d=[];var e=[];for(let p=0;p<=a.height;p++){var f=0,g=!1;let t=[0,0,0,0,0];for(let v=-1;v<=a.width;v++){var h=a.get(v,p);if(h===g)f++;else{t=[t[1],t[2],t[3],t[4],f];f=1;g=h;var k=O(t)/7;k=Math.abs(t[0]-k)y>=w.bottom.startX&&\ny<=w.bottom.endX||z>=w.bottom.startX&&y<=w.bottom.endX||y<=w.bottom.startX&&z>=w.bottom.endX&&1.5>t[2]/(w.bottom.endX-w.bottom.startX)&&.5y>=w.bottom.startX&&y<=w.bottom.endX||z>=w.bottom.startX&&y<=w.bottom.endX||y<=w.bottom.startX&&z>=w.bottom.endX&&1.5>t[2]/(w.bottom.endX-w.bottom.startX)&&.5v.bottom.y!==p&&2<=v.bottom.y-v.top.y));c=c.filter(v=>v.bottom.y===p);d.push(...e.filter(v=>v.bottom.y!==p));e=e.filter(v=>v.bottom.y===p)}b.push(...c.filter(p=>2<=p.bottom.y-p.top.y));d.push(...e);c=[];for(var l of b)2>l.bottom.y-l.top.y||(b=(l.top.startX+l.top.endX+l.bottom.startX+l.bottom.endX)/4,e=(l.top.y+l.bottom.y+1)/2,a.get(Math.round(b),Math.round(e))&&(f=[l.top.endX-l.top.startX,l.bottom.endX-l.bottom.startX,l.bottom.y-l.top.y+\n1],f=O(f)/f.length,g=S({x:Math.round(b),y:Math.round(e)},[1,1,3,1,1],a),c.push({score:g,x:b,y:e,size:f})));if(3>c.length)return null;c.sort((p,t)=>p.score-t.score);l=[];for(b=0;bp.score-t.score);l.push({points:[e,f[0],f[1]],score:e.score+f[0].score+f[1].score})}l.sort((p,t)=>p.score-t.score);let {topRight:q,topLeft:r,bottomLeft:u}=qa(...l[0].points);\nl=U(a,d,q,r,u);n=[];l&&n.push({alignmentPattern:{x:l.alignmentPattern.x,y:l.alignmentPattern.y},bottomLeft:{x:u.x,y:u.y},dimension:l.dimension,topLeft:{x:r.x,y:r.y},topRight:{x:q.x,y:q.y}});l=T(a,q);b=T(a,r);c=T(a,u);(a=U(a,d,l,b,c))&&n.push({alignmentPattern:{x:a.alignmentPattern.x,y:a.alignmentPattern.y},bottomLeft:{x:c.x,y:c.y},topLeft:{x:b.x,y:b.y},topRight:{x:l.x,y:l.y},dimension:a.dimension});return 0===n.length?null:n}\nfunction U(a,b,c,d,e){let f,g;try{({dimension:f,moduleSize:g}=ra(d,c,e,a))}catch(l){return null}var h=c.x-d.x+e.x,k=c.y-d.y+e.y;c=(N(d,e)+N(d,c))/2/g;e=1-3/c;let m={x:d.x+e*(h-d.x),y:d.y+e*(k-d.y)};b=b.map(l=>{const n=(l.top.startX+l.top.endX+l.bottom.startX+l.bottom.endX)/4;l=(l.top.y+l.bottom.y+1)/2;if(a.get(Math.floor(n),Math.floor(l))){var q=S({x:Math.floor(n),y:Math.floor(l)},[1,1,1],a)+N({x:n,y:l},m);return{x:n,y:l,score:q}}}).filter(l=>!!l).sort((l,n)=>l.score-n.score);return{alignmentPattern:15<=\nc&&b.length?b[0]:m,dimension:f}}\nfunction V(a){var b=sa(a);if(!b)return null;for(let e of b){b=pa(a,e);var c=b.matrix;if(null==c)c=null;else{var d=L(c);if(d)c=d;else{for(d=0;d{a[c]=b[c]})}\nfunction X(a,b,c,d={}){let e=Object.create(null);W(e,ta);W(e,d);d="onlyInvert"===e.inversionAttempts||"invertFirst"===e.inversionAttempts;var f="attemptBoth"===e.inversionAttempts||d;var g=e.greyScaleWeights,h=e.canOverwriteImage,k=b*c;if(a.length!==4*k)throw Error("Malformed data passed to binarizer.");var m=0;if(h){var l=new Uint8ClampedArray(a.buffer,m,k);m+=k}l=new A(b,c,l);if(g.useIntegerApproximation)for(var n=0;n>8)}else for(n=0;nv;v++)for(let w=0;8>w;w++){let aa=l.get(8*r+w,8*q+v);p=Math.min(p,aa);t=Math.max(t,aa)}v=(p+t)/2;v=Math.min(255,1.11*v);24>=t-p&&(v=p/2,0a?2:a>c?c:a;h=n-3;h=2>b?2:b>h?h:b;k=0;for(m=-2;2>=m;m++)for(p=-2;2>=p;p++)k+=u.get(c+m,h+p);c=k/25;for(h=0;8>h;h++)for(k=0;8>k;k++)m=8*a+h,p=8*b+k,t=l.get(m,p),q.set(m,p,t<=c),f&&r.set(m,p,!(t<=c))}f=f?{binarized:q,inverted:r}:{binarized:q};let {binarized:z,inverted:y}=f;(f=V(d?\ny:z))||"attemptBoth"!==e.inversionAttempts&&"invertFirst"!==e.inversionAttempts||(f=V(d?z:y));return f}X.default=X;let Y="dontInvert",Z={red:77,green:150,blue:29,useIntegerApproximation:!0};\nself.onmessage=a=>{let b=a.data.id,c=a.data.data;switch(a.data.type){case "decode":(a=X(c.data,c.width,c.height,{inversionAttempts:Y,greyScaleWeights:Z}))?self.postMessage({id:b,type:"qrResult",data:a.data,cornerPoints:[a.location.topLeftCorner,a.location.topRightCorner,a.location.bottomRightCorner,a.location.bottomLeftCorner]}):self.postMessage({id:b,type:"qrResult",data:null});break;case "grayscaleWeights":Z.red=c.red;Z.green=c.green;Z.blue=c.blue;Z.useIntegerApproximation=c.useIntegerApproximation;\nbreak;case "inversionMode":switch(c){case "original":Y="dontInvert";break;case "invert":Y="onlyInvert";break;case "both":Y="attemptBoth";break;default:throw Error("Invalid inversion mode");}break;case "close":self.close()}}\n']),{type:"application/javascript"}))}}]); \ No newline at end of file diff --git a/docs/852.f836098932d08da8.js b/docs/852.f836098932d08da8.js deleted file mode 100644 index 32ab7dd..0000000 --- a/docs/852.f836098932d08da8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkprivate_qrcode=self.webpackChunkprivate_qrcode||[]).push([[852],{1852:(u,r,e)=>{e.r(r),e.d(r,{ShareWeb:()=>i});var t=e(1528),n=e(6400);class i extends n.w8{canShare(){return(0,t.c)(function*(){return typeof navigator>"u"||!navigator.share?{value:!1}:{value:!0}})()}share(a){var s=this;return(0,t.c)(function*(){if(typeof navigator>"u"||!navigator.share)throw s.unavailable("Share API not available in this browser");return yield navigator.share({title:a.title,text:a.text,url:a.url}),{}})()}}}}]); \ No newline at end of file diff --git a/docs/937.846da021a75d8bd6.js b/docs/937.846da021a75d8bd6.js new file mode 100755 index 0000000..2bad617 --- /dev/null +++ b/docs/937.846da021a75d8bd6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkprivate_qrcode=self.webpackChunkprivate_qrcode||[]).push([[937],{2937:(F,P,v)=>{v.r(P),v.d(P,{FilesystemWeb:()=>D});var l=v(467),x=v(5083),A=v(1889);function R(f){const w=f.split("/").filter(t=>"."!==t),n=[];return w.forEach(t=>{".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():n.push(t)}),n.join("/")}let D=(()=>{class f extends x.E_{constructor(){var n;super(...arguments),n=this,this.DB_VERSION=1,this.DB_NAME="Disc",this._writeCmds=["add","put","delete"],this.downloadFile=function(){var t=(0,l.A)(function*(r){var e,o;const d=(0,x.EA)(r,r.webFetchExtra),i=yield fetch(r.url,d);let a;if(r.progress)if(i?.body){const c=i.body.getReader();let u=0;const h=[],m=i.headers.get("content-type"),p=parseInt(i.headers.get("content-length")||"0",10);for(;;){const{done:g,value:_}=yield c.read();if(g)break;h.push(_),u+=_?.length||0,n.notifyListeners("progress",{url:r.url,bytes:u,contentLength:p})}const y=new Uint8Array(u);let b=0;for(const g of h)typeof g>"u"||(y.set(g,b),b+=g.length);a=new Blob([y.buffer],{type:m||void 0})}else a=new Blob;else a=yield i.blob();return{path:(yield n.writeFile({path:r.path,directory:null!==(e=r.directory)&&void 0!==e?e:void 0,recursive:null!==(o=r.recursive)&&void 0!==o&&o,data:a})).uri,blob:a}});return function(r){return t.apply(this,arguments)}}()}initDb(){var n=this;return(0,l.A)(function*(){if(void 0!==n._db)return n._db;if(!("indexedDB"in window))throw n.unavailable("This browser doesn't support IndexedDB");return new Promise((t,r)=>{const e=indexedDB.open(n.DB_NAME,n.DB_VERSION);e.onupgradeneeded=f.doUpgrade,e.onsuccess=()=>{n._db=e.result,t(e.result)},e.onerror=()=>r(e.error),e.onblocked=()=>{console.warn("db blocked")}})})()}static doUpgrade(n){const r=n.target.result;r.objectStoreNames.contains("FileStorage")&&r.deleteObjectStore("FileStorage"),r.createObjectStore("FileStorage",{keyPath:"path"}).createIndex("by_folder","folder")}dbRequest(n,t){var r=this;return(0,l.A)(function*(){const e=-1!==r._writeCmds.indexOf(n)?"readwrite":"readonly";return r.initDb().then(o=>new Promise((d,i)=>{const c=o.transaction(["FileStorage"],e).objectStore("FileStorage")[n](...t);c.onsuccess=()=>d(c.result),c.onerror=()=>i(c.error)}))})()}dbIndexRequest(n,t,r){var e=this;return(0,l.A)(function*(){const o=-1!==e._writeCmds.indexOf(t)?"readwrite":"readonly";return e.initDb().then(d=>new Promise((i,a)=>{const h=d.transaction(["FileStorage"],o).objectStore("FileStorage").index(n)[t](...r);h.onsuccess=()=>i(h.result),h.onerror=()=>a(h.error)}))})()}getPath(n,t){const r=void 0!==t?t.replace(/^[/]+|[/]+$/g,""):"";let e="";return void 0!==n&&(e+="/"+n),""!==t&&(e+="/"+r),e}clear(){var n=this;return(0,l.A)(function*(){(yield n.initDb()).transaction(["FileStorage"],"readwrite").objectStore("FileStorage").clear()})()}readFile(n){var t=this;return(0,l.A)(function*(){const r=t.getPath(n.directory,n.path),e=yield t.dbRequest("get",[r]);if(void 0===e)throw Error("File does not exist.");return{data:e.content?e.content:""}})()}writeFile(n){var t=this;return(0,l.A)(function*(){const r=t.getPath(n.directory,n.path);let e=n.data;const o=n.encoding,d=n.recursive,i=yield t.dbRequest("get",[r]);if(i&&"directory"===i.type)throw Error("The supplied path is a directory.");const a=r.substr(0,r.lastIndexOf("/"));if(void 0===(yield t.dbRequest("get",[a]))){const h=a.indexOf("/",1);if(-1!==h){const m=a.substr(h);yield t.mkdir({path:m,directory:n.directory,recursive:d})}}if(!(o||e instanceof Blob||(e=e.indexOf(",")>=0?e.split(",")[1]:e,t.isBase64String(e))))throw Error("The supplied data is not valid base64 content.");const c=Date.now(),u={path:r,folder:a,type:"file",size:e instanceof Blob?e.size:e.length,ctime:c,mtime:c,content:e};return yield t.dbRequest("put",[u]),{uri:u.path}})()}appendFile(n){var t=this;return(0,l.A)(function*(){const r=t.getPath(n.directory,n.path);let e=n.data;const o=n.encoding,d=r.substr(0,r.lastIndexOf("/")),i=Date.now();let a=i;const s=yield t.dbRequest("get",[r]);if(s&&"directory"===s.type)throw Error("The supplied path is a directory.");if(void 0===(yield t.dbRequest("get",[d]))){const h=d.indexOf("/",1);if(-1!==h){const m=d.substr(h);yield t.mkdir({path:m,directory:n.directory,recursive:!0})}}if(!o&&!t.isBase64String(e))throw Error("The supplied data is not valid base64 content.");if(void 0!==s){if(s.content instanceof Blob)throw Error("The occupied entry contains a Blob object which cannot be appended to.");e=void 0===s.content||o?s.content+e:btoa(atob(s.content)+atob(e)),a=s.ctime}const u={path:r,folder:d,type:"file",size:e.length,ctime:a,mtime:i,content:e};yield t.dbRequest("put",[u])})()}deleteFile(n){var t=this;return(0,l.A)(function*(){const r=t.getPath(n.directory,n.path);if(void 0===(yield t.dbRequest("get",[r])))throw Error("File does not exist.");if(0!==(yield t.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(r)])).length)throw Error("Folder is not empty.");yield t.dbRequest("delete",[r])})()}mkdir(n){var t=this;return(0,l.A)(function*(){const r=t.getPath(n.directory,n.path),e=n.recursive,o=r.substr(0,r.lastIndexOf("/")),d=(r.match(/\//g)||[]).length,i=yield t.dbRequest("get",[o]),a=yield t.dbRequest("get",[r]);if(1===d)throw Error("Cannot create Root directory");if(void 0!==a)throw Error("Current directory does already exist.");if(!e&&2!==d&&void 0===i)throw Error("Parent directory must exist");if(e&&2!==d&&void 0===i){const u=o.substr(o.indexOf("/",1));yield t.mkdir({path:u,directory:n.directory,recursive:e})}const s=Date.now(),c={path:r,folder:o,type:"directory",size:0,ctime:s,mtime:s};yield t.dbRequest("put",[c])})()}rmdir(n){var t=this;return(0,l.A)(function*(){const{path:r,directory:e,recursive:o}=n,d=t.getPath(e,r),i=yield t.dbRequest("get",[d]);if(void 0===i)throw Error("Folder does not exist.");if("directory"!==i.type)throw Error("Requested path is not a directory");const a=yield t.readdir({path:r,directory:e});if(0!==a.files.length&&!o)throw Error("Folder is not empty");for(const s of a.files){const c=`${r}/${s.name}`;"file"===(yield t.stat({path:c,directory:e})).type?yield t.deleteFile({path:c,directory:e}):yield t.rmdir({path:c,directory:e,recursive:o})}yield t.dbRequest("delete",[d])})()}readdir(n){var t=this;return(0,l.A)(function*(){const r=t.getPath(n.directory,n.path),e=yield t.dbRequest("get",[r]);if(""!==n.path&&void 0===e)throw Error("Folder does not exist.");const o=yield t.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(r)]);return{files:yield Promise.all(o.map(function(){var i=(0,l.A)(function*(a){let s=yield t.dbRequest("get",[a]);return void 0===s&&(s=yield t.dbRequest("get",[a+"/"])),{name:a.substring(r.length+1),type:s.type,size:s.size,ctime:s.ctime,mtime:s.mtime,uri:s.path}});return function(a){return i.apply(this,arguments)}}()))}})()}getUri(n){var t=this;return(0,l.A)(function*(){const r=t.getPath(n.directory,n.path);let e=yield t.dbRequest("get",[r]);return void 0===e&&(e=yield t.dbRequest("get",[r+"/"])),{uri:e?.path||r}})()}stat(n){var t=this;return(0,l.A)(function*(){const r=t.getPath(n.directory,n.path);let e=yield t.dbRequest("get",[r]);if(void 0===e&&(e=yield t.dbRequest("get",[r+"/"])),void 0===e)throw Error("Entry does not exist.");return{type:e.type,size:e.size,ctime:e.ctime,mtime:e.mtime,uri:e.path}})()}rename(n){var t=this;return(0,l.A)(function*(){yield t._copy(n,!0)})()}copy(n){var t=this;return(0,l.A)(function*(){return t._copy(n,!1)})()}requestPermissions(){return(0,l.A)(function*(){return{publicStorage:"granted"}})()}checkPermissions(){return(0,l.A)(function*(){return{publicStorage:"granted"}})()}_copy(n,t=!1){var r=this;return(0,l.A)(function*(){let{toDirectory:e}=n;const{to:o,from:d,directory:i}=n;if(!o||!d)throw Error("Both to and from must be provided");e||(e=i);const a=r.getPath(i,d),s=r.getPath(e,o);if(a===s)return{uri:s};if(function q(f,w){f=R(f),w=R(w);const n=f.split("/"),t=w.split("/");return f!==w&&n.every((r,e)=>r===t[e])}(a,s))throw Error("To path cannot contain the from path");let c;try{c=yield r.stat({path:o,directory:e})}catch{const y=o.split("/");y.pop();const b=y.join("/");if(y.length>0&&"directory"!==(yield r.stat({path:b,directory:e})).type)throw new Error("Parent directory of the to path is a file")}if(c&&"directory"===c.type)throw new Error("Cannot overwrite a directory with a file");const u=yield r.stat({path:d,directory:i}),h=function(){var p=(0,l.A)(function*(y,b,g){const _=r.getPath(e,y),E=yield r.dbRequest("get",[_]);E.ctime=b,E.mtime=g,yield r.dbRequest("put",[E])});return function(b,g,_){return p.apply(this,arguments)}}(),m=u.ctime?u.ctime:Date.now();switch(u.type){case"file":{const p=yield r.readFile({path:d,directory:i});let y;t&&(yield r.deleteFile({path:d,directory:i})),!(p.data instanceof Blob)&&!r.isBase64String(p.data)&&(y=A.Wi.UTF8);const b=yield r.writeFile({path:o,directory:e,data:p.data,encoding:y});return t&&(yield h(o,m,u.mtime)),b}case"directory":{if(c)throw Error("Cannot move a directory over an existing object");try{yield r.mkdir({path:o,directory:e,recursive:!1}),t&&(yield h(o,m,u.mtime))}catch{}const p=(yield r.readdir({path:d,directory:i})).files;for(const y of p)yield r._copy({from:`${d}/${y.name}`,to:`${o}/${y.name}`,directory:i,toDirectory:e},t);t&&(yield r.rmdir({path:d,directory:i}))}}return{uri:s}})()}isBase64String(n){try{return btoa(atob(n))==n}catch{return!1}}}return f._debug=!0,f})()}}]); \ No newline at end of file diff --git a/docs/index.html b/docs/index.html old mode 100644 new mode 100755 index 95ca1fa..3e38199 --- a/docs/index.html +++ b/docs/index.html @@ -16,5 +16,5 @@ - + diff --git a/docs/main.52532e47f88c6ce0.js b/docs/main.52532e47f88c6ce0.js new file mode 100755 index 0000000..60d5d71 --- /dev/null +++ b/docs/main.52532e47f88c6ce0.js @@ -0,0 +1 @@ +(self.webpackChunkprivate_qrcode=self.webpackChunkprivate_qrcode||[]).push([[792],{1446:(le,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,w=!0){let _="";return _="number"==typeof h?this.addCursorNumeric(h):"string"==typeof h?this.addCursorRegExp(new RegExp(h)):h instanceof RegExp?this.addCursorRegExp(h):this.addCursorNumeric(),w?_.trim():_}spy(h,w=!0){let _="";return _="number"==typeof h?this.spyNumeric(h):"string"==typeof h?this.spyRegExp(new RegExp(h)):h instanceof RegExp?this.spyRegExp(h):this.spyNumeric(),w?_.trim():_}spyNumeric(h=1){return this.str.substring(this.cursor,this.cursor+h)}spyRegExp(h){const w=String(this).match(h);return w&&w.length&&w[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 w=this.spyRegExp(h);return this.addCursorNumeric(w.length||0)}addCursorNumeric(h=1){const w=this.spyNumeric(h);return this.cursor+=h,w}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}}},5083:(le,f,y)=>{"use strict";y.d(f,{EA:()=>ee,E_:()=>G,F3:()=>N,Ii:()=>x});var E=y(467);typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"&&global;var g=function(U){return U.Unimplemented="UNIMPLEMENTED",U.Unavailable="UNAVAILABLE",U}(g||{});class I extends Error{constructor(R,B,ne){super(R),this.message=R,this.code=B,this.data=ne}}const O=U=>{var R,B,ne,ie,fe;const Se=U.CapacitorCustomPlatform||null,S=U.Capacitor||{},k=S.Plugins=S.Plugins||{},P=U.CapacitorPlatforms,te=(null===(R=P?.currentPlatform)||void 0===R?void 0:R.getPlatform)||(()=>null!==Se?Se.name:(U=>{var R,B;return U?.androidBridge?"android":null!==(B=null===(R=U?.webkit)||void 0===R?void 0:R.messageHandlers)&&void 0!==B&&B.bridge?"ios":"web"})(U)),ue=(null===(B=P?.currentPlatform)||void 0===B?void 0:B.isNativePlatform)||(()=>"web"!==te()),me=(null===(ne=P?.currentPlatform)||void 0===ne?void 0:ne.isPluginAvailable)||(Te=>{const ze=Oe.get(Te);return!(!ze?.platforms.has(te())&&!be(Te))}),be=(null===(ie=P?.currentPlatform)||void 0===ie?void 0:ie.getPluginHeader)||(Te=>{var ze;return null===(ze=S.PluginHeaders)||void 0===ze?void 0:ze.find(He=>He.name===Te)}),Oe=new Map,Le=(null===(fe=P?.currentPlatform)||void 0===fe?void 0:fe.registerPlugin)||((Te,ze={})=>{const He=Oe.get(Te);if(He)return console.warn(`Capacitor plugin "${Te}" already registered. Cannot register plugins twice.`),He.proxy;const It=te(),mt=be(Te);let yt;const tn=function(){var Jt=(0,E.A)(function*(){return!yt&&It in ze?yt=yt="function"==typeof ze[It]?yield ze[It]():ze[It]:null!==Se&&!yt&&"web"in ze&&(yt=yt="function"==typeof ze.web?yield ze.web():ze.web),yt});return function(){return Jt.apply(this,arguments)}}(),zn=Jt=>{let Lt;const ln=(...Yr)=>{const ir=tn().then(Gn=>{const Fr=((Jt,Lt)=>{var ln,Yr;if(!mt){if(Jt)return null===(Yr=Jt[Lt])||void 0===Yr?void 0:Yr.bind(Jt);throw new I(`"${Te}" plugin is not implemented on ${It}`,g.Unimplemented)}{const ir=mt?.methods.find(Gn=>Lt===Gn.name);if(ir)return"promise"===ir.rtype?Gn=>S.nativePromise(Te,Lt.toString(),Gn):(Gn,Fr)=>S.nativeCallback(Te,Lt.toString(),Gn,Fr);if(Jt)return null===(ln=Jt[Lt])||void 0===ln?void 0:ln.bind(Jt)}})(Gn,Jt);if(Fr){const Li=Fr(...Yr);return Lt=Li?.remove,Li}throw new I(`"${Te}.${Jt}()" is not implemented on ${It}`,g.Unimplemented)});return"addListener"===Jt&&(ir.remove=(0,E.A)(function*(){return Lt()})),ir};return ln.toString=()=>`${Jt.toString()}() { [capacitor code] }`,Object.defineProperty(ln,"name",{value:Jt,writable:!1,configurable:!1}),ln},or=zn("addListener"),Zr=zn("removeListener"),el=(Jt,Lt)=>{const ln=or({eventName:Jt},Lt),Yr=function(){var Gn=(0,E.A)(function*(){const Fr=yield ln;Zr({eventName:Jt,callbackId:Fr},Lt)});return function(){return Gn.apply(this,arguments)}}(),ir=new Promise(Gn=>ln.then(()=>Gn({remove:Yr})));return ir.remove=(0,E.A)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield Yr()}),ir},Bi=new Proxy({},{get(Jt,Lt){switch(Lt){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return mt?el:or;case"removeListener":return Zr;default:return zn(Lt)}}});return k[Te]=Bi,Oe.set(Te,{name:Te,proxy:Bi,platforms:new Set([...Object.keys(ze),...mt?[It]:[]])}),Bi});return S.convertFileSrc||(S.convertFileSrc=Te=>Te),S.getPlatform=te,S.handleError=Te=>U.console.error(Te),S.isNativePlatform=ue,S.isPluginAvailable=me,S.pluginMethodNoop=(Te,ze,He)=>Promise.reject(`${He} does not have an implementation of "${ze}".`),S.registerPlugin=Le,S.Exception=I,S.DEBUG=!!S.DEBUG,S.isLoggingEnabled=!!S.isLoggingEnabled,S.platform=S.getPlatform(),S.isNative=S.isNativePlatform(),S},x=(U=>U.Capacitor=O(U))(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,B){var ne=this;this.listeners[R]||(this.listeners[R]=[]),this.listeners[R].push(B);const fe=this.windowListeners[R];fe&&!fe.registered&&this.addWindowListener(fe);const Se=function(){var k=(0,E.A)(function*(){return ne.removeListener(R,B)});return function(){return k.apply(this,arguments)}}(),S=Promise.resolve({remove:Se});return Object.defineProperty(S,"remove",{value:(k=(0,E.A)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield Se()}),function(){return k.apply(this,arguments)})}),S;var k}removeAllListeners(){var R=this;return(0,E.A)(function*(){R.listeners={};for(const B in R.windowListeners)R.removeWindowListener(R.windowListeners[B]);R.windowListeners={}})()}notifyListeners(R,B){const ne=this.listeners[R];ne&&ne.forEach(ie=>ie(B))}hasListeners(R){return!!this.listeners[R].length}registerWindowListener(R,B){this.windowListeners[B]={registered:!1,windowEventName:R,pluginEventName:B,handler:ne=>{this.notifyListeners(B,ne)}}}unimplemented(R="not implemented"){return new x.Exception(R,g.Unimplemented)}unavailable(R="not available"){return new x.Exception(R,g.Unavailable)}removeListener(R,B){var ne=this;return(0,E.A)(function*(){const ie=ne.listeners[R];if(!ie)return;const fe=ie.indexOf(B);ne.listeners[R].splice(fe,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 F=U=>encodeURIComponent(U).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),Q=U=>U.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class Y extends G{getCookies(){return(0,E.A)(function*(){const R=document.cookie,B={};return R.split(";").forEach(ne=>{if(ne.length<=0)return;let[ie,fe]=ne.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");ie=Q(ie).trim(),fe=Q(fe).trim(),B[ie]=fe}),B})()}setCookie(R){return(0,E.A)(function*(){try{const B=F(R.key),ne=F(R.value),ie=`; expires=${(R.expires||"").replace("expires=","")}`,fe=(R.path||"/").replace("path=",""),Se=null!=R.url&&R.url.length>0?`domain=${R.url}`:"";document.cookie=`${B}=${ne||""}${ie}; path=${fe}; ${Se};`}catch(B){return Promise.reject(B)}})()}deleteCookie(R){return(0,E.A)(function*(){try{document.cookie=`${R.key}=; Max-Age=0`}catch(B){return Promise.reject(B)}})()}clearCookies(){return(0,E.A)(function*(){try{const R=document.cookie.split(";")||[];for(const B of R)document.cookie=B.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)}catch(R){return Promise.reject(R)}})()}clearAllCookies(){var R=this;return(0,E.A)(function*(){try{yield R.clearCookies()}catch(B){return Promise.reject(B)}})()}}N("CapacitorCookies",{web:()=>new Y});const Z=function(){var U=(0,E.A)(function*(R){return new Promise((B,ne)=>{const ie=new FileReader;ie.onload=()=>{const fe=ie.result;B(fe.indexOf(",")>=0?fe.split(",")[1]:fe)},ie.onerror=fe=>ne(fe),ie.readAsDataURL(R)})});return function(B){return U.apply(this,arguments)}}(),ee=(U,R={})=>{const B=Object.assign({method:U.method||"GET",headers:U.headers},R),ie=((U={})=>{const R=Object.keys(U);return Object.keys(U).map(ie=>ie.toLocaleLowerCase()).reduce((ie,fe,Se)=>(ie[fe]=U[R[Se]],ie),{})})(U.headers)["content-type"]||"";if("string"==typeof U.data)B.body=U.data;else if(ie.includes("application/x-www-form-urlencoded")){const fe=new URLSearchParams;for(const[Se,S]of Object.entries(U.data||{}))fe.set(Se,S);B.body=fe.toString()}else if(ie.includes("multipart/form-data")||U.data instanceof FormData){const fe=new FormData;if(U.data instanceof FormData)U.data.forEach((S,k)=>{fe.append(k,S)});else for(const S of Object.keys(U.data))fe.append(S,U.data[S]);B.body=fe;const Se=new Headers(B.headers);Se.delete("content-type"),B.headers=Se}else(ie.includes("application/json")||"object"==typeof U.data)&&(B.body=JSON.stringify(U.data));return B};class z extends G{request(R){return(0,E.A)(function*(){const B=ee(R,R.webFetchExtra),ne=((U,R=!0)=>U?Object.entries(U).reduce((ne,ie)=>{const[fe,Se]=ie;let S,k;return Array.isArray(Se)?(k="",Se.forEach(P=>{S=R?encodeURIComponent(P):P,k+=`${fe}=${S}&`}),k.slice(0,-1)):(S=R?encodeURIComponent(Se):Se,k=`${fe}=${S}`),`${ne}&${k}`},"").substr(1):null)(R.params,R.shouldEncodeUrlParams),ie=ne?`${R.url}?${ne}`:R.url,fe=yield fetch(ie,B),Se=fe.headers.get("content-type")||"";let k,P,{responseType:S="text"}=fe.ok?R:{};switch(Se.includes("application/json")&&(S="json"),S){case"arraybuffer":case"blob":P=yield fe.blob(),k=yield Z(P);break;case"json":k=yield fe.json();break;default:k=yield fe.text()}const j={};return fe.headers.forEach((te,oe)=>{j[oe]=te}),{data:k,headers:j,status:fe.status,url:fe.url}})()}get(R){var B=this;return(0,E.A)(function*(){return B.request(Object.assign(Object.assign({},R),{method:"GET"}))})()}post(R){var B=this;return(0,E.A)(function*(){return B.request(Object.assign(Object.assign({},R),{method:"POST"}))})()}put(R){var B=this;return(0,E.A)(function*(){return B.request(Object.assign(Object.assign({},R),{method:"PUT"}))})()}patch(R){var B=this;return(0,E.A)(function*(){return B.request(Object.assign(Object.assign({},R),{method:"PATCH"}))})()}delete(R){var B=this;return(0,E.A)(function*(){return B.request(Object.assign(Object.assign({},R),{method:"DELETE"}))})()}}N("CapacitorHttp",{web:()=>new z})},1889:(le,f,y)=>{"use strict";y.d(f,{Wi:()=>h,__:()=>E});var E=function(V){return V.Documents="DOCUMENTS",V.Data="DATA",V.Library="LIBRARY",V.Cache="CACHE",V.External="EXTERNAL",V.ExternalStorage="EXTERNAL_STORAGE",V}(E||{}),h=function(V){return V.UTF8="utf8",V.ASCII="ascii",V.UTF16="utf16",V}(h||{})},3925:(le,f,y)=>{"use strict";var E=y(9293).default;Object.defineProperty(f,"__esModule",{value:!0});const h=y(1635),w=y(9331),_=y(7494),V=y(4872),A=y(6492),H=y(1976),g=y(7924),I=y(8863),$=y(5451),O=y(4798);class C extends w.EncryptedURIDecrypter{constructor(b,W){super(b,W)}decrypt(){var b=this;return E(function*(){const W=(0,g.getInitializationVector)(b.decoded),G=H.base64.decode(b.decoded.cipher),T=(0,O.getSalt)(G,b.decoded?.params),F=(0,I.kdf)(b.password,T.salt,b.decoded),Q=yield(0,V.cbc)(F,(0,_.hexToBytes)(W)).decrypt(T.cipher);return(0,_.bytesToUtf8)(Q)})()}}let x=class extends w.EncryptedURIEncrypter{constructor(b){super(b)}encrypt(){var b=this;return E(function*(){const W=(0,g.getInitializationVector)(b.params),G=(0,_.hexToBytes)(W),T=(0,_.utf8ToBytes)(b.params.content),Q=(0,A.randomBytes)(8),Y=(0,I.kdf)(b.params.password,Q,b.params),X=yield(0,V.cbc)(Y,G).encrypt(T);return Promise.resolve({cipher:H.base64.encode($.OpenSSLSerializer.encode(X,Q)),params:{iv:W}})})()}};x=h.__decorate([(0,w.EncryptedURIAlgorithm)({algorithm:"aes/cbc",decrypter:C})],x),w.EncryptedURI.setAlgorithm("",x,C),w.EncryptedURI.setAlgorithm("aes",x,C)},2412:(le,f,y)=>{"use strict";var E=y(9293).default;Object.defineProperty(f,"__esModule",{value:!0});const h=y(1635),w=y(9331),_=y(7494),V=y(4872),A=y(6492),H=y(1976),g=y(7924),I=y(8863),$=y(5451),O=y(4798);let x=class extends w.EncryptedURIEncrypter{constructor(b){super(b)}encrypt(){var b=this;return E(function*(){const W=(0,g.getInitializationVector)(b.params),G=(0,_.hexToBytes)(W),T=(0,_.utf8ToBytes)(b.params.content),Q=(0,A.randomBytes)(8),Y=(0,I.kdf)(b.params.password,Q,b.params),X=yield(0,V.ctr)(Y,G).encrypt(T);return Promise.resolve({cipher:H.base64.encode($.OpenSSLSerializer.encode(X,Q)),params:{iv:W}})})()}};x=h.__decorate([(0,w.EncryptedURIAlgorithm)({algorithm:"aes/ctr",decrypter:class C extends w.EncryptedURIDecrypter{constructor(b,W){super(b,W)}decrypt(){var b=this;return E(function*(){const W=(0,g.getInitializationVector)(b.decoded),G=H.base64.decode(b.decoded.cipher),T=(0,O.getSalt)(G,b.decoded?.params),F=(0,I.kdf)(b.password,T.salt,b.decoded),Q=yield(0,V.ctr)(F,(0,_.hexToBytes)(W)).decrypt(T.cipher);return(0,_.bytesToUtf8)(Q)})()}}})],x)},2157:(le,f,y)=>{"use strict";var E=y(9293).default;Object.defineProperty(f,"__esModule",{value:!0});const h=y(1635),w=y(9331),_=y(1504),V=y(7494),A=y(6492),H=y(1976),g=y(8863),I=y(5451),$=y(4798);let C=class extends w.EncryptedURIEncrypter{constructor(N){super(N)}encrypt(){var N=this;return E(function*(){const b=(0,V.utf8ToBytes)(N.params.content),G=(0,A.randomBytes)(8),T=(0,g.kdf)(N.params.password,G,N.params),F=yield(0,_.ecb)(T).encrypt(b),Q=H.base64.encode(I.OpenSSLSerializer.encode(F,G));return Promise.resolve({cipher:Q})})()}};C=h.__decorate([(0,w.EncryptedURIAlgorithm)({algorithm:"aes/ecb",decrypter:class O extends w.EncryptedURIDecrypter{constructor(N,b){super(N,b)}decrypt(){var N=this;return E(function*(){const b=H.base64.decode(N.decoded.cipher||""),W=(0,$.getSalt)(b,N.decoded?.params),G=(0,g.kdf)(N.password,W.salt,N.decoded),T=yield(0,_.ecb)(G).decrypt(W.cipher);return(0,V.bytesToUtf8)(T)})()}}})],C)},4398:(le,f,y)=>{"use strict";var E=y(9293).default;Object.defineProperty(f,"__esModule",{value:!0});const h=y(1635),w=y(9331),_=y(7494),V=y(4872),A=y(6492),H=y(1976),g=y(8863),I=y(9545),$=y(5451),O=y(4798);let x=class extends w.EncryptedURIEncrypter{constructor(b){super(b)}encrypt(){var b=this;return E(function*(){const W=(0,I.getNumberOnce)(b.params),G=(0,_.hexToBytes)(W),T=(0,_.utf8ToBytes)(b.params.content),Q=(0,A.randomBytes)(8),Y=(0,g.kdf)(b.params.password,Q,b.params),X=yield(0,V.gcm)(Y,G,new Uint8Array(0)).encrypt(T);return Promise.resolve({cipher:H.base64.encode($.OpenSSLSerializer.encode(X,Q)),params:{no:W}})})()}};x=h.__decorate([(0,w.EncryptedURIAlgorithm)({algorithm:"aes/gcm",decrypter:class C extends w.EncryptedURIDecrypter{constructor(b,W){super(b,W)}decrypt(){var b=this;return E(function*(){const W=(0,I.getNumberOnce)(b.decoded),G=H.base64.decode(b.decoded.cipher),T=(0,O.getSalt)(G,b.decoded?.params),F=(0,g.kdf)(b.password,T.salt,b.decoded),Q=yield(0,V.gcm)(F,(0,_.hexToBytes)(W),new Uint8Array(0)).decrypt(T.cipher);return(0,_.bytesToUtf8)(Q)})()}}})],x)},9268:(le,f,y)=>{"use strict";y(702),y(3925),y(2412),y(2157),y(4398),y(2585)},7924:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getInitializationVector=void 0;const E=y(7494),h=y(4872);f.getInitializationVector=function w(_){if(_){const A=_.params?.iv||"queryString"in _&&_.queryString;if(A)return A}return(0,E.bytesToHex)((0,h.randomBytes)(16))}},8863:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.kdf=void 0;const E=y(9331),h=y(6420),w=y(7947);f.kdf=function _(V,A,H){const g=E.EncryptedURI.getKDFParams(H);if(8!==A.length)throw new Error(`salt length must be 8 bytes, ${A.length} bytes was given`);if("pbkdf2"===g.kdf)return(0,h.pbkdf2)(w.HashSupport.get(g.hasher),V,A,{c:g.rounds,dkLen:g.derivateKeyLength});throw new Error(`kdf "${g.kdf}" not supported`)}},9545:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getNumberOnce=void 0;const E=y(7494),h=y(4872);f.getNumberOnce=function w(_){if(_){const A=_.params?.no||"queryString"in _&&_.queryString;if(A)return A}return(0,E.bytesToHex)((0,h.randomBytes)(12))}},5451:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.OpenSSLSerializer=void 0;const E=y(6492);class h{static encode(_,V){return Uint8Array.from([...this.saltedHeader,...V,..._])}static decode(_){const A=Array.from(_);if((0,E.bytesToHex)(_.slice(0,8))===(0,E.bytesToHex)(this.saltedHeader)){A.splice(0,8);const H=A.splice(0,8);return{salt:Uint8Array.from(H),cipher:Uint8Array.from(A)}}return{cipher:_}}}f.OpenSSLSerializer=h,h.saltedHeader=Uint8Array.from([83,97,108,116,101,100,95,95])},4798:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getSalt=void 0;const E=y(7494),h=y(5451);f.getSalt=function w(_,V){const A=h.OpenSSLSerializer.decode(_);if(A.salt)return{salt:A.salt,cipher:A.cipher};if(V?.s)return{salt:(0,E.hexToBytes)(V.s),cipher:_};throw new Error("salt not found, can't open cipher")}},2585:(le,f,y)=>{"use strict";var E=y(9293).default;Object.defineProperty(f,"__esModule",{value:!0});const h=y(1635),w=y(9331),_=y(1504),V=y(7494),A=y(6492),H=y(1976),g=y(8863),I=y(9545),$=y(5451),O=y(4798);let x=class extends w.EncryptedURIEncrypter{constructor(b){super(b)}encrypt(){var b=this;return E(function*(){const W=(0,I.getNumberOnce)(b.params),G=(0,V.hexToBytes)(W),T=(0,V.utf8ToBytes)(b.params.content),Q=(0,A.randomBytes)(8),Y=(0,g.kdf)(b.params.password,Q,b.params),X=yield(0,_.siv)(Y,G).encrypt(T);return Promise.resolve({cipher:H.base64.encode($.OpenSSLSerializer.encode(X,Q)),params:{no:W}})})()}};x=h.__decorate([(0,w.EncryptedURIAlgorithm)({algorithm:"aes/siv",decrypter:class C extends w.EncryptedURIDecrypter{constructor(b,W){super(b,W)}decrypt(){var b=this;return E(function*(){const W=(0,I.getNumberOnce)(b.decoded),G=H.base64.decode(b.decoded.cipher),T=(0,O.getSalt)(G,b.decoded?.params),F=(0,g.kdf)(b.password,T.salt,b.decoded),Q=yield(0,_.siv)(F,(0,V.hexToBytes)(W)).decrypt(T.cipher);return(0,V.bytesToUtf8)(Q)})()}}})],x)},7947:(le,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.HashSupport=void 0;class y{static addSupport(h,w){this.supported[h]?console.warn(`HashSupport: "${h}" hasher already loaded, not overriding`):this.supported[h]=w}static listSupported(){return Object.keys(this.supported)}static get(h){const w=this.supported[h];if(!w)throw new Error(`"${h}" not supported`);return w}}f.HashSupport=y,y.supported={}},8273:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const E=y(1635);E.__exportStar(y(8040),f),E.__exportStar(y(1053),f),E.__exportStar(y(6585),f),E.__exportStar(y(1960),f),E.__exportStar(y(702),f),E.__exportStar(y(4542),f),E.__exportStar(y(5425),f),E.__exportStar(y(184),f),E.__exportStar(y(1292),f),E.__exportStar(y(5485),f),E.__exportStar(y(3103),f),E.__exportStar(y(1557),f)},8040:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const E=y(6434);y(7947).HashSupport.addSupport("keccak_224",E.keccak_224)},1053:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const E=y(6434);y(7947).HashSupport.addSupport("keccak_256",E.keccak_256)},6585:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const E=y(6434);y(7947).HashSupport.addSupport("keccak_384",E.keccak_384)},1960:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const E=y(6434);y(7947).HashSupport.addSupport("keccak_512",E.keccak_512)},702:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const E=y(1806);y(7947).HashSupport.addSupport("sha256",E.sha256)},4542:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const E=y(4207);y(7947).HashSupport.addSupport("sha384",E.sha384)},5425:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const E=y(6434);y(7947).HashSupport.addSupport("sha3_224",E.sha3_224)},184:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const E=y(6434);y(7947).HashSupport.addSupport("sha3_256",E.sha3_256)},1292:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const E=y(6434);y(7947).HashSupport.addSupport("sha3_384",E.sha3_384)},5485:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const E=y(6434);y(7947).HashSupport.addSupport("sha3_512",E.sha3_512)},3103:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const E=y(4207);y(7947).HashSupport.addSupport("sha512",E.sha512)},1557:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const E=y(4207);y(7947).HashSupport.addSupport("sha512_256",E.sha512_256)},9331:(le,f,y)=>{"use strict";var E=y(9293).default;Object.defineProperty(f,"__esModule",{value:!0}),f.EncryptedURI=f.EncryptedURIAlgorithm=f.EncryptedURIDecrypter=f.EncryptedURIEncrypter=f.EncryptedURIParser=void 0;const h=y(1446);class w{match(C){return/^encrypted:/.test(C)}}class _{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((F,Q)=>{T[Q]=decodeURI(String(F))}),Object.keys(T).length&&(x.params=T)}}}class V{static propertyShouldBeIgnored(C,x,N){const b={...$.defaultParams,...C},W=$.getConfigsOfDefaults(N);return!(b[x]&&(!W.ignoreDefaultValues||$.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=V.castKDFConfigToParams(C),b={...C.params,...N},W=$.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(F=>x[F]=b[F]);const T=new URLSearchParams;return G.forEach(F=>T.append(F,x[F])),T.toString()}encodeAlgorithm(C){return $.getConfigsOfDefaults(C.config).ignoreDefaultAlgorithm&&C.algorithm===$.defaultAlgotithm?"":C.algorithm||""}}class A{static matcher(C){return(new w).match(C)}constructor(C){if("string"==typeof C){const x=new _;this.decoded=x.decode(this.encoded=C),this.encoded=C}else{const x=new V;this.decoded=C,this.encoded=x.encode(C)}}}f.EncryptedURIParser=A,f.EncryptedURIEncrypter=class H{constructor(C){this.params=C}},f.EncryptedURIDecrypter=class g{constructor(C,x){this.decoded=C,this.password=x,this.kdf=this.getKDFParams(this.decoded)}getKDFParams(C){return $.getKDFParams(C)}},f.EncryptedURIAlgorithm=function I(O){return function(C){C.algorithm=O.algorithm,$.setAlgorithm(O.algorithm,C,O.decrypter)}};class ${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=$.defaultParams;return C&&("kdf"in C&&C.kdf?x=C.kdf:C.params&&(x=$.castParamsToConfig(C.params))),{...$.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 V.castKDFConfigToParams(C)}static matcher(C){return(new w).match(C)}static encode(C){return new A(C).encoded}static encrypt(C,...x){var N=this;return E(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 A(C).decoded,[,W]=this.getAlgorithm(b.algorithm),G={...$.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||$.defaultAlgotithm;const[x,N]=this.supportedAlgorithm[C]||[null,null];if(!x&&!N)throw new Error(`Algorithm '${C}' not supported`);return[x,N]}}f.EncryptedURI=$,$.defaultParams={kdf:"pbkdf2",hasher:"sha256",derivateKeyLength:32,rounds:32},$.defaultAlgotithm="aes/cbc",$.supportedAlgorithm={}},1567:(le,f,y)=>{"use strict";var E={};function h(e,t){return Object.is(e,t)}y.r(E),y.d(E,{OG:()=>q1,My:()=>Uc,Ph:()=>Ir,lX:()=>W1,Id:()=>sa,fg:()=>F3,qj:()=>nr,aT:()=>Hc,lq:()=>ds,z:()=>K1,Q5:()=>nd});let w=null,_=!1,V=1;const A=Symbol("SIGNAL");function H(e){const t=w;return w=e,t}const O={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function C(e){if(_)throw new Error("");if(null===w)return;w.consumerOnSignalRead(e);const t=w.nextProducerIndex++;J(w),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Q(e){J(e);for(let t=0;t0}function J(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ee(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function z(e){return void 0!==e.producerNode}const U=Symbol("UNSET"),R=Symbol("COMPUTING"),B=Symbol("ERRORED"),ne={...O,value:U,dirty:!0,error:null,equal:h,producerMustRecompute:e=>e.value===U||e.value===R,producerRecomputeValue(e){if(e.value===R)throw new Error("Detected cycle in computations.");const t=e.value;e.value=R;const n=T(e);let r;try{r=e.computation()}catch(o){r=B,e.error=o}finally{F(e,n)}t!==U&&t!==B&&r!==B&&e.equal(t,r)?e.value=t:(e.value=r,e.version++)}};let fe=function ie(){throw new Error};function Se(){fe()}let k=null;function oe(e,t){W()||Se(),e.equal(e.value,t)||(e.value=t,function pe(e){e.version++,function x(){V++}(),b(e),k?.()}(e))}const me={...O,equal:h,value:void 0};function Ae(e){return"function"==typeof e}function Le(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 Te=Le(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 ze(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class He{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 Te?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{yt(i)}catch(s){t=t??[],s instanceof Te?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Te(t)}}add(t){var n;if(t&&t!==this)if(this.closed)yt(t);else{if(t instanceof He){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)&&ze(n,t)}remove(t){const{_finalizers:n}=this;n&&ze(n,t),t instanceof He&&t._removeParent(this)}}He.EMPTY=(()=>{const e=new He;return e.closed=!0,e})();const It=He.EMPTY;function mt(e){return e instanceof He||e&&"closed"in e&&Ae(e.remove)&&Ae(e.add)&&Ae(e.unsubscribe)}function yt(e){Ae(e)?e():e.unsubscribe()}const tn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Bn={setTimeout(e,t,...n){const{delegate:r}=Bn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Bn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function zn(e){Bn.setTimeout(()=>{const{onUnhandledError:t}=tn;if(!t)throw e;t(e)})}function or(){}const Zr=Jt("C",void 0,void 0);function Jt(e,t,n){return{kind:e,value:t,error:n}}let Lt=null;function ln(e){if(tn.useDeprecatedSynchronousErrorHandling){const t=!Lt;if(t&&(Lt={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Lt;if(Lt=null,n)throw r}}else e()}class ir extends He{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,mt(t)&&t.add(this)):this.destination=Sd}static create(t,n,r){return new bs(t,n,r)}next(t){this.isStopped?tl(function Bi(e){return Jt("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?tl(function el(e){return Jt("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?tl(Zr,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 Gn=Function.prototype.bind;function Fr(e,t){return Gn.call(e,t)}class Li{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){va(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){va(r)}else va(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){va(n)}}}class bs extends ir{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&&tn.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Fr(t.next,i),error:t.error&&Fr(t.error,i),complete:t.complete&&Fr(t.complete,i)}):o=t}this.destination=new Li(o)}}function va(e){tn.useDeprecatedSynchronousErrorHandling?function Yr(e){tn.useDeprecatedSynchronousErrorHandling&&Lt&&(Lt.errorThrown=!0,Lt.error=e)}(e):zn(e)}function tl(e,t){const{onStoppedNotification:n}=tn;n&&Bn.setTimeout(()=>n(e,t))}const Sd={closed:!0,next:or,error:function Ad(e){throw e},complete:or},nl="function"==typeof Symbol&&Symbol.observable||"@@observable";function li(e){return e}function rl(e){return 0===e.length?li:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let yn=(()=>{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 Op(e){return e&&e instanceof ir||function Td(e){return e&&Ae(e.next)&&Ae(e.error)&&Ae(e.complete)}(e)&&mt(e)}(n)?n:new bs(n,r,o);return ln(()=>{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=Id(r))((o,i)=>{const s=new bs({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)}[nl](){return this}pipe(...n){return rl(n)(this)}toPromise(n){return new(n=Id(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Id(e){var t;return null!==(t=e??tn.Promise)&&void 0!==t?t:Promise}const Md=Le(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let xt=(()=>{class e extends yn{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new lo(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Md}next(n){ln(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){ln(()=>{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(){ln(()=>{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?It:(this.currentObservers=null,i.push(n),new He(()=>{this.currentObservers=null,ze(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new yn;return n.source=this,n}}return e.create=(t,n)=>new lo(t,n),e})();class lo extends xt{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:It}}class sr extends xt{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 Nd(e){return Ae(e?.lift)}function Ln(e){return t=>{if(Nd(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 _n(e,t,n,r,o){return new kN(e,t,n,r,o)}class kN extends ir{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 Vt(e,t){return Ln((n,r)=>{let o=0;n.subscribe(_n(r,i=>{r.next(e.call(t,i,o++))}))})}typeof navigator<"u"&&navigator,typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||navigator),typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&navigator;const rb="https://g.co/ng/security#xss";class he extends Error{constructor(t,n){super(function Ea(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function ui(e){return{toString:e}.toString()}const ba="__parameters__";function Ca(e,t,n){return ui(()=>{const r=function Hp(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(ba)?c[ba]:Object.defineProperty(c,ba,{value:[]})[ba];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 en=globalThis;function Ut(e){for(let t in e)if(e[t]===Ut)return t;throw Error("Could not find renamed property on target object.")}function kR(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Dn(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Dn).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 jp(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const BR=Ut({__forward_ref__:Ut});function qt(e){return e.__forward_ref__=qt,e.toString=function(){return Dn(this())},e}function ot(e){return kd(e)?e():e}function kd(e){return"function"==typeof e&&e.hasOwnProperty(BR)&&e.__forward_ref__===qt}function Ue(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function an(e){return{providers:e.providers||[],imports:e.imports||[]}}function Bd(e){return ab(e,Vd)||ab(e,cb)}function ab(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ld(e){return e&&(e.hasOwnProperty($p)||e.hasOwnProperty($R))?e[$p]:null}const Vd=Ut({\u0275prov:Ut}),$p=Ut({\u0275inj:Ut}),cb=Ut({ngInjectableDef:Ut}),$R=Ut({ngInjectorDef:Ut});class Ve{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Ue({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function qp(e){return e&&!!e.\u0275providers}const il=Ut({\u0275cmp:Ut}),Qp=Ut({\u0275dir:Ut}),Zp=Ut({\u0275pipe:Ut}),ub=Ut({\u0275mod:Ut}),di=Ut({\u0275fac:Ut}),sl=Ut({__NG_ELEMENT_ID__:Ut}),db=Ut({__NG_ENV_ID__:Ut});function dt(e){return"string"==typeof e?e:null==e?"":String(e)}function Yp(e,t){throw new he(-201,!1)}var Ct=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}(Ct||{});let Xp;function fb(){return Xp}function vr(e){const t=Xp;return Xp=e,t}function hb(e,t,n){const r=Bd(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Ct.Optional?null:void 0!==t?t:void Yp()}const al={},Jp="__NG_DI_FLAG__",Ud="ngTempTokenPath",QR=/\n/gm,pb="__source";let _a;function Hi(e){const t=_a;return _a=e,t}function XR(e,t=Ct.Default){if(void 0===_a)throw new he(-203,!1);return null===_a?hb(e,void 0,t):_a.get(e,t&Ct.Optional?null:void 0,t)}function Ke(e,t=Ct.Default){return(fb()||XR)(ot(e),t)}function Ce(e,t=Ct.Default){return Ke(e,Hd(t))}function Hd(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function eg(e){const t=[];for(let n=0;nArray.isArray(n)?Da(n,t):t(n))}function mb(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function zd(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Br(e,t,n){let r=Aa(e,t);return r>=0?e[1|r]=n:(r=~r,function yb(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 ng(e,t){const n=Aa(e,t);if(n>=0)return e[1|n]}function Aa(e,t){return function vb(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<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?"":o[u+1].toLowerCase(),2&r&&l!==d){if(ho(r))return!1;s=!0}}}}else{if(!s&&!ho(r)&&!ho(c))return!1;if(s&&ho(c))continue;s=!1,r=c|1&r}}return ho(r)||s}function ho(e){return!(1&e)}function uO(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&&!ho(s)&&(t+=Db(i,o),o=""),r=s,i=i||!ho(r);n++}return""!==o&&(t+=Db(i,o)),t}function Lr(e){return ui(()=>{const t=Sb(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Kd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||fo.Emulated,styles:e.styles||Tt,_:null,schemas:e.schemas||null,tView:null,id:""};Ib(n);const r=e.dependencies;return n.directiveDefs=qd(r,!1),n.pipeDefs=qd(r,!0),n.id=function bO(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 vO(e){return vt(e)||An(e)}function EO(e){return null!==e}function un(e){return ui(()=>({type:e.type,bootstrap:e.bootstrap||Tt,declarations:e.declarations||Tt,imports:e.imports||Tt,exports:e.exports||Tt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ab(e,t){if(null==e)return To;const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];let i,s,a=ji.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==ji.None?[r,a]:r,t[i]=s):n[i]=r}return n}function lt(e){return ui(()=>{const t=Sb(e);return Ib(t),t})}function vt(e){return e[il]||null}function An(e){return e[Qp]||null}function Vn(e){return e[Zp]||null}function Wn(e,t){const n=e[ub]||null;if(!n&&!0===t)throw new Error(`Type ${Dn(e)} does not have '\u0275mod' property.`);return n}function Sb(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||To,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Tt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ab(e.inputs,t),outputs:Ab(e.outputs),debugInfo:null}}function Ib(e){e.features?.forEach(t=>t(e))}function qd(e,t){if(!e)return null;const n=t?Vn:vO;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(EO)}function xO(...e){return{\u0275providers:sg(0,e),\u0275fromNgModule:!0}}function sg(e,...t){const n=[],r=new Set;let o;const i=s=>{n.push(s)};return Da(t,s=>{const a=s;Qd(a,i,[],r)&&(o||=[],o.push(a))}),void 0!==o&&Tb(o,i),n}function Tb(e,t){for(let n=0;n{t(i,r)})}}function Qd(e,t,n,r){if(!(e=ot(e)))return!1;let o=null,i=Ld(e);const s=!i&&vt(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const c=e.ngModule;if(i=Ld(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)Qd(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{Da(i.imports,u=>{Qd(u,t,n,r)&&(l||=[],l.push(u))})}finally{}void 0!==l&&Tb(l,t)}if(!a){const l=Cs(o)||(()=>new o);t({provide:o,useFactory:l,deps:Tt},o),t({provide:rg,useValue:o,multi:!0},o),t({provide:uo,useValue:()=>Ke(o),multi:!0},o)}const c=i.providers;if(null!=c&&!a){const l=e;ag(c,u=>{t(u,l)})}}}return o!==e&&void 0!==e.providers}function ag(e,t){for(let n of e)qp(n)&&(n=n.\u0275providers),Array.isArray(n)?ag(n,t):t(n)}const CO=Ut({provide:String,useValue:Ut});function cg(e){return null!==e&&"object"==typeof e&&CO in e}function _s(e){return"function"==typeof e}const lg=new Ve(""),Zd={},DO={};let ug;function Yd(){return void 0===ug&&(ug=new Wd),ug}class br{}class Sa extends br{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,fg(t,s=>this.processProvider(s)),this.records.set(Eb,Ia(void 0,this)),o.has("environment")&&this.records.set(br,Ia(void 0,this));const i=this.records.get(lg);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(rg,Tt,Ct.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=H(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),H(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Hi(this),r=vr(void 0);try{return t()}finally{Hi(n),vr(r)}}get(t,n=al,r=Ct.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(db))return t[db](this);r=Hd(r);const i=Hi(this),s=vr(void 0);try{if(!(r&Ct.SkipSelf)){let c=this.records.get(t);if(void 0===c){const l=function MO(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ve}(t)&&Bd(t);c=l&&this.injectableDefInScope(l)?Ia(dg(t),Zd):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(r&Ct.Self?Yd():this.parent).get(t,n=r&Ct.Optional&&n===al?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[Ud]=a[Ud]||[]).unshift(Dn(t)),i)throw a;return function eO(e,t,n,r){const o=e[Ud];throw t[pb]&&o.unshift(t[pb]),e.message=function tO(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Dn(t);if(Array.isArray(t))o=t.map(Dn).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):Dn(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(QR,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Ud]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{vr(s),Hi(i)}}resolveInjectorInitializers(){const t=H(null),n=Hi(this),r=vr(void 0);try{const i=this.get(uo,Tt,Ct.Self);for(const s of i)s()}finally{Hi(n),vr(r),H(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Dn(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new he(205,!1)}processProvider(t){let n=_s(t=ot(t))?t:ot(t&&t.provide);const r=function SO(e){return cg(e)?Ia(void 0,e.useValue):Ia(Rb(e),Zd)}(t);if(!_s(t)&&!0===t.multi){let o=this.records.get(n);o||(o=Ia(void 0,Zd,!0),o.factory=()=>eg(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=H(null);try{return n.value===Zd&&(n.value=DO,n.value=n.factory()),"object"==typeof n.value&&n.value&&function TO(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{H(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=ot(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 dg(e){const t=Bd(e),n=null!==t?t.factory:Cs(e);if(null!==n)return n;if(e instanceof Ve)throw new he(204,!1);if(e instanceof Function)return function AO(e){if(e.length>0)throw new he(204,!1);const n=function jR(e){return e&&(e[Vd]||e[cb])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new he(204,!1)}function Rb(e,t,n){let r;if(_s(e)){const o=ot(e);return Cs(o)||dg(o)}if(cg(e))r=()=>ot(e.useValue);else if(function Nb(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...eg(e.deps||[]));else if(function Mb(e){return!(!e||!e.useExisting)}(e))r=()=>Ke(ot(e.useExisting));else{const o=ot(e&&(e.useClass||e.provide));if(!function IO(e){return!!e.deps}(e))return Cs(o)||dg(o);r=()=>new o(...eg(e.deps))}return r}function Ia(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function fg(e,t){for(const n of e)Array.isArray(n)?fg(n,t):n&&qp(n)?fg(n.\u0275providers,t):t(n)}function fi(e,t){e instanceof Sa&&e.assertNotDestroyed();const r=Hi(e),o=vr(void 0);try{return t()}finally{Hi(r),vr(o)}}function Ob(){return void 0!==fb()||null!=function YR(){return _a}()}const nn=0,Pe=1,Ye=2,En=3,po=4,Un=5,ar=6,Ma=7,Qt=8,wn=9,Mo=10,it=11,fl=12,Pb=13,Na=14,rn=15,Ds=16,Ra=17,hi=18,Oa=19,kb=20,zi=21,Jd=22,Xr=23,Ze=25,gg=1,No=7,Fa=9,dn=10;var tf=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(tf||{});function In(e){return Array.isArray(e)&&"object"==typeof e[gg]}function Kn(e){return Array.isArray(e)&&!0===e[gg]}function mg(e){return!!(4&e.flags)}function As(e){return e.componentOffset>-1}function nf(e){return!(1&~e.flags)}function go(e){return!!e.template}function pl(e){return!!(512&e[Ye])}class jO{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Hb(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function Jr(){return jb}function jb(e){return e.type.prototype.ngOnChanges&&(e.setInput=zO),$O}function $O(){const e=zb(this),t=e?.current;if(t){const n=e.previous;if(n===To)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function zO(e,t,n,r,o){const i=this.declaredInputs[r],s=zb(e)||function GO(e,t){return e[$b]=t}(e,{previous:To,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new jO(l&&l.currentValue,n,c===To),Hb(e,t,o,n)}Jr.ngInherit=!0;const $b="__ngSimpleChanges__";function zb(e){return e[$b]||null}const Ro=function(e,t,n){},Gb="svg";function Mt(e){for(;Array.isArray(e);)e=e[nn];return e}function gl(e,t){return Mt(t[e])}function cr(e,t){return Mt(t[e.index])}function ml(e,t){return e.data[t]}function Vr(e,t){const n=t[e];return In(n)?n:n[nn]}function bg(e){return!(128&~e[Ye])}function eo(e,t){return null==t?null:e[t]}function Kb(e){e[Ra]=0}function qb(e){1024&e[Ye]||(e[Ye]|=1024,bg(e)&&sf(e))}function rf(e){return!!(9216&e[Ye]||e[Xr]?.dirty)}function xg(e){e[Mo].changeDetectionScheduler?.notify(8),64&e[Ye]&&(e[Ye]|=1024),rf(e)&&sf(e)}function sf(e){e[Mo].changeDetectionScheduler?.notify(0);let t=pi(e);for(;null!==t&&!(8192&t[Ye])&&(t[Ye]|=8192,bg(t));)t=pi(t)}function af(e,t){if(!(256&~e[Ye]))throw new he(911,!1);null===e[zi]&&(e[zi]=[]),e[zi].push(t)}function pi(e){const t=e[En];return Kn(t)?t[En]:t}const st={lFrame:ax(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Zb=!1;function Yb(){return st.bindingsEnabled}function ge(){return st.lFrame.lView}function gt(){return st.lFrame.tView}function qn(e){return st.lFrame.contextLView=e,e[Qt]}function Qn(e){return st.lFrame.contextLView=null,e}function Ht(){let e=Xb();for(;null!==e&&64===e.type;)e=e.parent;return e}function Xb(){return st.lFrame.currentTNode}function mo(e,t){const n=st.lFrame;n.currentTNode=e,n.isParent=t}function Dg(){return st.lFrame.isParent}function Ag(){st.lFrame.isParent=!1}function tx(){return Zb}function nx(e){Zb=e}function yo(){return st.lFrame.bindingIndex++}function mi(e){const t=st.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function iF(e,t){const n=st.lFrame;n.bindingIndex=n.bindingRootIndex=e,Sg(t)}function Sg(e){st.lFrame.currentDirectiveIndex=e}function Ig(e){const t=st.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Tg(){return st.lFrame.currentQueryIndex}function lf(e){st.lFrame.currentQueryIndex=e}function aF(e){const t=e[Pe];return 2===t.type?t.declTNode:1===t.type?e[Un]:null}function ix(e,t,n){if(n&Ct.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&Ct.Host||(o=aF(i),null===o||(i=i[Na],10&o.type))););if(null===o)return!1;t=o,e=i}const r=st.lFrame=sx();return r.currentTNode=t,r.lView=e,!0}function Mg(e){const t=sx(),n=e[Pe];st.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function sx(){const e=st.lFrame,t=null===e?null:e.child;return null===t?ax(e):t}function ax(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 cx(){const e=st.lFrame;return st.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const lx=cx;function Ng(){const e=cx();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 Hn(){return st.lFrame.selectedIndex}function Ts(e){st.lFrame.selectedIndex=e}function Zt(){const e=st.lFrame;return ml(e.tView,e.selectedIndex)}function Zn(){st.lFrame.currentNamespace=Gb}function Oo(){!function uF(){st.lFrame.currentNamespace=null}()}let dx=!0;function vl(){return dx}function Fo(e){dx=e}function uf(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[Ra]+=65536),(a>14>16&&(3&e[Ye])===t&&(e[Ye]+=16384,hx(a,i)):hx(a,i)}const Pa=-1;class El{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}const Fg={};class Ms{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Hd(r);const o=this.injector.get(t,Fg,r);return o!==Fg||n===Fg?o:this.parentInjector.get(t,n,r)}}function Pg(e){return e!==Pa}function wl(e){return 32767&e}function bl(e,t){let n=function yF(e){return e>>16}(e),r=t;for(;n>0;)r=r[Na],n--;return r}let kg=!0;function hf(e){const t=kg;return kg=e,t}const gx=255,mx=5;let EF=0;const Po={};function pf(e,t){const n=yx(e,t);if(-1!==n)return n;const r=t[Pe];r.firstCreatePass&&(e.injectorIndex=t.length,Bg(r.data,e),Bg(t,null),Bg(r.blueprint,null));const o=gf(e,t),i=e.injectorIndex;if(Pg(o)){const s=wl(o),a=bl(o,t),c=a[Pe].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Bg(e,t){e.push(0,0,0,0,0,0,0,0,t)}function yx(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function gf(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=_x(o),null===r)return Pa;if(n++,o=o[Na],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Pa}function Lg(e,t,n){!function wF(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(sl)&&(r=n[sl]),null==r&&(r=n[sl]=EF++);const o=r&gx;t.data[e+(o>>mx)]|=1<=0?t&gx:_F:t}(n);if("function"==typeof i){if(!ix(t,e,r))return r&Ct.Host?vx(o,0,r):Ex(t,n,r,o);try{let s;if(s=i(r),null!=s||r&Ct.Optional)return s;Yp()}finally{lx()}}else if("number"==typeof i){let s=null,a=yx(e,t),c=Pa,l=r&Ct.Host?t[rn][Un]:null;for((-1===a||r&Ct.SkipSelf)&&(c=-1===a?gf(e,t):t[a+8],c!==Pa&&Cx(r,!1)?(s=t[Pe],a=wl(c),t=bl(c,t)):a=-1);-1!==a;){const u=t[Pe];if(xx(i,a,u.data)){const d=xF(a,t,n,s,r,l);if(d!==Po)return d}c=t[a+8],c!==Pa&&Cx(r,t[Pe].data[a+8]===l)&&xx(i,a,t)?(s=u,a=wl(c),t=bl(c,t)):a=-1}}return o}function xF(e,t,n,r,o,i){const s=t[Pe],a=s.data[e+8],u=mf(a,s,n,null==r?As(a)&&kg:r!=s&&!!(3&a.type),o&Ct.Host&&i===a);return null!==u?Ns(t,s,u,a):Po}function mf(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,c=e.directiveStart,u=i>>20,p=o?a+u:e.directiveEnd;for(let m=r?a:a+u;m=c&&v.type===n)return m}if(o){const m=s[c];if(m&&go(m)&&m.type===n)return c}return null}function Ns(e,t,n,r){let o=e[n];const i=t.data;if(function hF(e){return e instanceof El}(o)){const s=o;s.resolving&&function WR(e,t){throw t&&t.join(" > "),new he(-200,e)}(function Ft(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():dt(e)}(i[n]));const a=hf(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?vr(s.injectImpl):null;ix(e,r,Ct.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function dF(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=jb(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&&vr(l),hf(a),s.resolving=!1,lx()}}return o}function xx(e,t,n){return!!(n[t+(e>>mx)]&1<{const t=e.prototype.constructor,n=t[di]||Vg(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[di]||Vg(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Vg(e){return kd(e)?()=>{const t=Vg(ot(e));return t&&t()}:Cs(e)}function _x(e){const t=e[Pe],n=t.type;return 2===n?t.declTNode:1===n?e[Un]:null}function Tx(e,t=null,n=null,r){const o=Mx(e,t,n,r);return o.resolveInjectorInitializers(),o}function Mx(e,t=null,n=null,r,o=new Set){const i=[n||Tt,xO(e)];return r=r||("object"==typeof e?void 0:Dn(e)),new Sa(i,t||Yd(),r||null,o)}class fn{static{this.THROW_IF_NOT_FOUND=al}static{this.NULL=new Wd}static create(t,n){if(Array.isArray(t))return Tx({name:""},n,t,"");{const r=t.name??"";return Tx({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=Ue({token:fn,providedIn:"any",factory:()=>Ke(Eb)})}static{this.__NG_ELEMENT_ID__=-1}}new Ve("").__NG_ELEMENT_ID__=e=>{const t=Ht();if(null===t)throw new he(204,!1);if(2&t.type)return t.value;if(e&Ct.Optional)return null;throw new he(204,!1)};function Hg(e){return e.ngOriginalError}const Rx=!0;let Cl=(()=>{class e{static{this.__NG_ELEMENT_ID__=PF}static{this.__NG_ENV_ID__=n=>n}}return e})();class FF extends Cl{constructor(t){super(),this._lView=t}onDestroy(t){return af(this._lView,t),()=>function Cg(e,t){if(null===e[zi])return;const n=e[zi].indexOf(t);-1!==n&&e[zi].splice(n,1)}(this._lView,t)}}function PF(){return new FF(ge())}let Rs=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new sr(!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{this.\u0275prov=Ue({token:e,providedIn:"root",factory:()=>new e})}}return e})();const on=class kF extends xt{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Ob()&&(this.destroyRef=Ce(Cl,{optional:!0})??void 0,this.pendingTasks=Ce(Rs,{optional:!0})??void 0)}emit(t){const n=H(null);try{super.next(t)}finally{H(n)}}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=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof He&&t.add(a),a}wrapInTimeout(t){return n=>{const r=this.pendingTasks?.add();setTimeout(()=>{t(n),void 0!==r&&this.pendingTasks?.remove(r)})}}};function vf(...e){}function Ox(e){let t,n;function r(){e=vf;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Fx(e){return queueMicrotask(()=>e()),()=>{e=vf}}const jg="isAngularZone",Ef=jg+"_ID";let BF=0;class St{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new on(!1),this.onMicrotaskEmpty=new on(!1),this.onStable=new on(!1),this.onError=new on(!1);const{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Rx}=t;if(typeof Zone>"u")throw new he(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,function UF(e){const t=()=>{!function VF(e){function t(){Ox(()=>{e.callbackScheduled=!1,zg(e),e.isCheckStableRunning=!0,$g(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),zg(e))}(e)},n=BF++;e._inner=e._inner.fork({name:"angular",properties:{[jg]:!0,[Ef]:n,[Ef+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(function HF(e){return Bx(e,"__ignore_ng_zone__")}(c))return r.invokeTask(i,s,a,c);try{return Px(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),kx(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return Px(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function jF(e){return Bx(e,"__scheduler_tick__")}(c)&&t(),kx(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,zg(e),$g(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(jg)}static assertInAngularZone(){if(!St.isInAngularZone())throw new he(909,!1)}static assertNotInAngularZone(){if(St.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,LF,vf,vf);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 LF={};function $g(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 zg(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function Px(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function kx(e){e._nesting--,$g(e)}class Gg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new on,this.onMicrotaskEmpty=new on,this.onStable=new on,this.onError=new on}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)}}function Bx(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class ko{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&&Hg(t);for(;n&&Hg(n);)n=Hg(n);return n||null}}const zF=new Ve("",{providedIn:"root",factory:()=>{const e=Ce(St),t=Ce(ko);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function GF(){return La(Ht(),ge())}function La(e,t){return new xr(cr(e,t))}let xr=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=GF}}return e})();function Vx(e){return e instanceof xr?e.nativeElement:e}function WF(){return this._results[Symbol.iterator]()}class Wg{get changes(){return this._changes??=new on}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=Wg.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=WF)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const r=function Er(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function iO(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rhP}),hP="ng",iC=new Ve(""),Wi=new Ve("",{providedIn:"platform",factory:()=>"unknown"}),sC=new Ve(""),aC=new Ve("",{providedIn:"root",factory:()=>Gi().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let cC=()=>null;function om(e,t,n=!1){return cC(e,t,n)}const mC=new Ve("",{providedIn:"root",factory:()=>!1});let Tf,Mf;function $a(e){return function lm(){if(void 0===Tf&&(Tf=null,en.trustedTypes))try{Tf=en.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Tf}()?.createHTML(e)||e}function um(){if(void 0===Mf&&(Mf=null,en.trustedTypes))try{Mf=en.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Mf}function EC(e){return um()?.createHTML(e)||e}function bC(e){return um()?.createScriptURL(e)||e}class Fs{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${rb})`}}class SP extends Fs{getTypeName(){return"HTML"}}class IP extends Fs{getTypeName(){return"Style"}}class TP extends Fs{getTypeName(){return"Script"}}class MP extends Fs{getTypeName(){return"URL"}}class NP extends Fs{getTypeName(){return"ResourceURL"}}function Ur(e){return e instanceof Fs?e.changingThisBreaksApplicationSecurity:e}function Bo(e,t){const n=function RP(e){return e instanceof Fs&&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 ${rb})`)}return n===t}class LP{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString($a(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}}class VP{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=$a(t),n}}const HP=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Nf(e){return(e=String(e)).match(HP)?e:"unsafe:"+e}function yi(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Rl(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const CC=yi("area,br,col,hr,img,wbr"),_C=yi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),DC=yi("rp,rt"),dm=Rl(CC,Rl(_C,yi("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")),Rl(DC,yi("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")),Rl(DC,_C)),fm=yi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),AC=Rl(fm,yi("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"),yi("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")),jP=yi("script,style,template");class $P{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];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)o.push(n),n=WP(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=GP(n);if(i){n=i;break}n=o.pop()}return this.buf.join("")}startElement(t){const n=SC(t).toLowerCase();if(!dm.hasOwnProperty(n))return this.sanitizedSomething=!0,!jP.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o"),!0}endElement(t){const n=SC(t).toLowerCase();dm.hasOwnProperty(n)&&!CC.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(TC(t))}}function GP(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw IC(t);return t}function WP(e){const t=e.firstChild;if(t&&function zP(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw IC(t);return t}function SC(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function IC(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const KP=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qP=/([^\#-~ |!])/g;function TC(e){return e.replace(/&/g,"&").replace(KP,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(qP,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Rf;function MC(e,t){let n=null;try{Rf=Rf||function xC(e){const t=new VP(e);return function UP(){try{return!!(new window.DOMParser).parseFromString($a(""),"text/html")}catch{return!1}}()?new LP(t):t}(e);let r=t?String(t):"";n=Rf.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=Rf.getInertBodyElement(r)}while(r!==i);return $a((new $P).sanitizeChildren(hm(n)||n))}finally{if(n){const r=hm(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function hm(e){return"content"in e&&function QP(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Hr=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}(Hr||{});function Of(e){const t=Ol();return t?EC(t.sanitize(Hr.HTML,e)||""):Bo(e,"HTML")?EC(Ur(e)):MC(Gi(),dt(e))}function pm(e){const t=Ol();return t?t.sanitize(Hr.URL,e)||"":Bo(e,"URL")?Ur(e):Nf(dt(e))}function NC(e){const t=Ol();if(t)return bC(t.sanitize(Hr.RESOURCE_URL,e)||"");if(Bo(e,"ResourceURL"))return bC(Ur(e));throw new he(904,!1)}function Ol(){const e=ge();return e&&e[Mo].sanitizer}const t6=/^>|^->||--!>|)/g,r6="\u200b$1\u200b";function jr(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 ym;function vm(e,t){return ym(e,t)}function Ga(e,t,n,r,o){if(null!=r){let i,s=!1;Kn(r)?i=r:In(r)&&(s=!0,r=r[nn]);const a=Mt(r);0===e&&null!==n?null==o?GC(t,n,a):Ps(t,n,a,o||null,!0):1===e&&null!==n?Ps(t,n,a,o||null,!0):2===e?function Pl(e,t,n){e.removeChild(null,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function C6(e,t,n,r,o){const i=n[No];i!==Mt(n)&&Ga(t,e,r,i,o);for(let a=dn;at.replace(n6,r6))}(t))}function kf(e,t,n){return e.createElement(t,n)}function jC(e,t){t[Mo].changeDetectionScheduler?.notify(9),Vf(e,t,t[it],2,null,null)}function $C(e,t){const n=e[Fa],r=t[En];(In(r)||t[rn]!==r[En][rn])&&(e[Ye]|=tf.HasTransplantedViews),null===n?e[Fa]=[t]:n.push(t)}function bm(e,t){const n=e[Fa],r=n.indexOf(t);n.splice(r,1)}function Fl(e,t){if(e.length<=dn)return;const n=dn+t,r=e[n];if(r){const o=r[Ds];null!==o&&o!==e&&bm(o,r),t>0&&(e[n-1][po]=r[po]);const i=zd(e,dn+t);!function g6(e,t){jC(e,t),t[nn]=null,t[Un]=null}(r[Pe],r);const s=i[hi];null!==s&&s.detachView(i[Pe]),r[En]=null,r[po]=null,r[Ye]&=-129}return r}function Bf(e,t){if(!(256&t[Ye])){const n=t[it];n.destroyNode&&Vf(e,t,n,3,null,null),function y6(e){let t=e[fl];if(!t)return xm(e[Pe],e);for(;t;){let n=null;if(In(t))n=t[fl];else{const r=t[dn];r&&(n=r)}if(!n){for(;t&&!t[po]&&t!==e;)In(t)&&xm(t[Pe],t),t=t[En];null===t&&(t=e),In(t)&&xm(t[Pe],t),n=t&&t[po]}t=n}}(t)}}function xm(e,t){if(256&t[Ye])return;const n=H(null);try{t[Ye]&=-129,t[Ye]|=256,t[Xr]&&Y(t[Xr]),function w6(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Ma]=null);const o=t[zi];if(null!==o){t[zi]=null;for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===fo.None||i===fo.Emulated)return null}return cr(r,n)}}(e,t.parent,n)}function Ps(e,t,n,r,o){e.insertBefore(t,n,r,o)}function GC(e,t,n){e.appendChild(t,n)}function WC(e,t,n,r,o){null!==r?Ps(e,t,n,r,o):GC(e,t,n)}function _m(e,t){return e.parentNode(t)}let Dm,QC=function qC(e,t,n){return 40&e.type?cr(e,n):null};function Lf(e,t,n,r){const o=Cm(e,r,t),i=t[it],a=function KC(e,t,n){return QC(e,t,n)}(r.parent||t[Un],r,t);if(null!=o)if(Array.isArray(n))for(let c=0;cZe&&n_(e,t,Ze,!1),Ro(s?2:0,o),n(r,o)}finally{Ts(i),Ro(s?3:1,o)}}function Tm(e,t,n){if(mg(t)){const r=H(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function c_(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=ji.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?l_(r,n,l,a,c):l_(r,n,l,a)}return r}function l_(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 _r(e,t,n,r,o,i,s,a){const c=cr(t,n);let u,l=t.inputs;!a&&null!=l&&(u=l[r])?(Bm(e,n,u,r,o),As(t)&&function k6(e,t){const n=Vr(t,e);16&n[Ye]||(n[Ye]|=64)}(n,t.index)):3&t.type&&(r=function P6(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 Om(e,t,n,r){if(Yb()){const o=null===r?null:{"":-1},i=function j6(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,kl(e,n,o.hostVars,ft),o)}function Lo(e,t,n,r,o,i){const s=cr(e,t);!function Pm(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?dt(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[it],s,i,e.value,n,r,o)}function q6(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a{sf(e.lView)},consumerOnSignalRead(){this.lView[Xr]=this}},ok={...O,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=pi(e.lView);for(;t&&!w_(t[Pe]);)t=pi(t);t&&qb(t)},consumerOnSignalRead(){this.lView[Xr]=this}};function w_(e){return 2!==e.type}const ik=100;function $f(e,t=!0,n=0){const r=e[Mo],o=r.rendererFactory;o.begin?.();try{!function sk(e,t){const n=tx();try{nx(!0),Um(e,t);let r=0;for(;rf(e);){if(r===ik)throw new he(103,!1);r++,Um(e,1)}}finally{nx(n)}}(e,n)}catch(s){throw t&&jf(e,s),s}finally{o.end?.(),r.inlineEffectRunner?.flush()}}function ak(e,t,n,r){const o=t[Ye];if(!(256&~o))return;t[Mo].inlineEffectRunner?.flush(),Mg(t);let a=!0,c=null,l=null;w_(e)?(l=function J6(e){return e[Xr]??function ek(e){const t=E_.pop()??Object.create(nk);return t.lView=e,t}(e)}(t),c=T(l)):null===function g(){return w}()?(a=!1,l=function rk(e){const t=e[Xr]??Object.create(ok);return t.lView=e,t}(t),c=T(l)):t[Xr]&&(Y(t[Xr]),t[Xr]=null);try{Kb(t),function rx(e){return st.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&i_(e,t,n,2,r);const u=!(3&~o);if(u){const m=e.preOrderCheckHooks;null!==m&&df(t,m,null)}else{const m=e.preOrderHooks;null!==m&&ff(t,m,0,null),Rg(t,0)}if(function ck(e){for(let t=Qx(e);null!==t;t=Zx(t)){if(!(t[Ye]&tf.HasTransplantedViews))continue;const n=t[Fa];for(let r=0;r-1&&(Fl(t,r),zd(n,r))}this._attachedToViewContainer=!1}Bf(this._lView[Pe],this._lView)}onDestroy(t){af(this._lView,t)}markForCheck(){Ll(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Ye]&=-129}reattach(){xg(this._lView),this._lView[Ye]|=128}detectChanges(){this._lView[Ye]|=1024,$f(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new he(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=pl(this._lView),n=this._lView[Ds];null!==n&&!t&&bm(n,this._lView),jC(this._lView[Pe],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new he(902,!1);this._appRef=t;const n=pl(this._lView),r=this._lView[Ds];null!==r&&!n&&$C(r,this._lView),xg(this._lView)}}let Ei=(()=>{class e{static{this.__NG_ELEMENT_ID__=fk}}return e})();const uk=Ei,dk=class extends uk{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 Wa(e,t,n,r){const o=H(null);try{const i=t.tView,c=Uf(e,i,n,4096&e[Ye]?4096:16,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);c[Ds]=e[t.index];const u=e[hi];return null!==u&&(c[hi]=u.createEmbeddedView(i)),Lm(i,c,n),c}finally{H(o)}}(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Vl(o)}};function fk(){return zf(Ht(),ge())}function zf(e,t){return 4&e.type?new dk(t,e,La(e,t)):null}class Qa{}const Kl=new Ve("",{providedIn:"root",factory:()=>!1}),W_=new Ve(""),Ym=new Ve("");class oB{}class K_{}class sB{resolveComponentFactory(t){throw function iB(e){const t=Error(`No component factory found for ${Dn(e)}.`);return t.ngComponent=e,t}(t)}}class ql{static{this.NULL=new sB}}class Zf{}let wi=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function aB(){const e=ge(),n=Vr(Ht().index,e);return(In(n)?n:e)[it]}()}}return e})(),cB=(()=>{class e{static{this.\u0275prov=Ue({token:e,providedIn:"root",factory:()=>null})}}return e})();function Xf(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0&&e_(e,n,i.join(" "))}}(p,ve,v,r),void 0!==n&&function vB(e,t,n){const r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=wB}}return e})();function wB(){return tD(Ht(),ge())}const bB=to,J_=class extends bB{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return La(this._hostTNode,this._hostLView)}get injector(){return new Tn(this._hostTNode,this._hostLView)}get parentInjector(){const t=gf(this._hostTNode,this._hostLView);if(Pg(t)){const n=bl(t,this._hostLView),r=wl(t);return new Tn(n[Pe].data[r+8],n)}return new Tn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=eD(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-dn}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,Ls(this._hostTNode,null)),a}createComponent(t,n,r,o,i){const s=t&&!function dl(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const v=n||{};a=v.index,r=v.injector,o=v.projectableNodes,i=v.environmentInjector||v.ngModuleRef}const c=s?t:new Yl(vt(t)),l=r||this.parentInjector;if(!i&&null==c.ngModule){const D=(s?l:this.parentInjector).get(br,null);D&&(i=D)}vt(c.componentType??{});const m=c.create(l,o,null,i);return this.insertImpl(m.hostView,a,Ls(this._hostTNode,null)),m}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const o=t._lView;if(function QO(e){return Kn(e[En])}(o)){const a=this.indexOf(t);if(-1!==a)this.detach(a);else{const c=o[En],l=new J_(c,c[Un],c[En]);l.detach(l.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;return function Ka(e,t,n,r=!0){const o=t[Pe];if(function v6(e,t,n,r){const o=dn+r,i=n.length;r>0&&(n[o-1][po]=t),r!1;class ny{constructor(t){this.queryList=t,this.matches=null}clone(){return new ny(this.queryList)}setDirty(){this.queryList.setDirty()}}class ry{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 oy{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=dn;d(C(t),t.value);return n[A]=t,n}(e),r=n[A];return t?.equal&&(r.equal=t.equal),n.set=o=>oe(r,o),n.update=o=>function ue(e,t){W()||Se(),oe(e,t(e.value))}(r,o),n.asReadonly=pD.bind(n),n}function pD(){const e=this[A];if(void 0===e.readonlyFn){const t=()=>this();t[A]=e,e.readonlyFn=t}return e.readonlyFn}function Pt(e){let t=function AD(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let o;if(go(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new he(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);const s=e;s.inputs=eh(e.inputs),s.inputTransforms=eh(e.inputTransforms),s.declaredInputs=eh(e.declaredInputs),s.outputs=eh(e.outputs);const a=o.hostBindings;a&&GB(e,a);const c=o.viewQuery,l=o.contentQueries;if(c&&$B(e,c),l&&zB(e,l),HB(e,o),kR(e.outputs,o.outputs),go(o)&&o.data.animation){const u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=ll(o.hostAttrs,n=ll(n,o.hostAttrs))}}(r)}function HB(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 eh(e){return e===To?{}:e===Tt?[]:e}function $B(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function zB(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function GB(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function MD(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 Hs{}class ND{}class uy extends Hs{constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Y_(this);const i=Wn(t);this._bootstrapComponents=jr(i.bootstrap),this._r3Injector=Mx(t,n,[{provide:Hs,useValue:this},{provide:ql,useValue:this.componentFactoryResolver},...r],Dn(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}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 dy extends ND{constructor(t){super(),this.moduleType=t}create(t){return new uy(this.moduleType,t,[])}}class RD extends Hs{constructor(t){super(),this.componentFactoryResolver=new Y_(this),this.instance=null;const n=new Sa([...t.providers,{provide:Hs,useValue:this},{provide:ql,useValue:this.componentFactoryResolver}],t.parent||Yd(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function th(e,t,n=null){return new RD({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function hn(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function eu(e,t,n,r,o,i,s,a,c,l){const u=n+Ze,d=t.firstCreatePass?function r5(e,t,n,r,o,i,s,a,c){const l=t.consts,u=Bs(t,e,4,s||null,a||null);Om(t,n,u,eo(l,c)),uf(t,u);const d=u.tView=Rm(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,t,e,r,o,i,s,a,c):t.data[u];mo(d,!1);const p=OD(t,e,d,n);vl()&&Lf(t,e,p,d),Yn(p,e);const m=f_(p,e,p,d);return e[u]=m,Hf(e,m),function rD(e,t,n){return ty(e,t,n)}(m,d,e),nf(d)&&Mm(t,e,d),null!=c&&Nm(e,d,l),d}function Xn(e,t,n,r,o,i,s,a){const c=ge(),l=gt();return eu(c,l,e,t,n,r,o,eo(l.consts,i),s,a),Xn}let OD=function FD(e,t,n,r){return Fo(!0),t[it].createComment("")};var Ja=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Ja||{});let UD=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=Ue({token:e,providedIn:"root",factory:()=>new e})}}return e})();class ru{constructor(){this.ngZone=Ce(St),this.scheduler=Ce(Qa),this.errorHandler=Ce(ko,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[Ja.EarlyRead,Ja.Write,Ja.MixedReadWrite,Ja.Read]}execute(){this.executing=!0;for(const t of ru.PHASES)for(const n of this.sequences)if(!n.erroredOrDestroyed&&n.hooks[t])try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(const t of this.sequences)t.afterRun(),t.once&&this.sequences.delete(t);for(const t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=Ue({token:ru,providedIn:"root",factory:()=>new ru})}}class a5{constructor(t,n,r,o){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy()}}function ah(e,t){!t?.injector&&function hg(e){if(!Ob())throw new he(-203,!1)}();const n=t?.injector??Ce(fn);return function $r(e){return"browser"===(e??Ce(fn)).get(Wi)}(n)?(ur("NgAfterNextRender"),function HD(e,t,n,r){const o=t.get(UD);o.impl??=t.get(ru);const s=new a5(o.impl,function l5(e,t){if(e instanceof Function){const n=[void 0,void 0,void 0,void 0];return n[t]=e,n}return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e,n?.phase??Ja.MixedReadWrite),r,t.get(Cl));return o.impl.register(s),s}(e,n,t,!0)):jD}const jD={destroy(){}};function Dr(e,t,n,r){const o=ge();return hn(o,yo(),t)&&(gt(),Lo(Zt(),o,e,t,n,r)),Dr}function uh(e,t){return e<<17|t<<2}function Yi(e){return e>>17&32767}function Cy(e){return 2|e}function zs(e){return(131068&e)>>2}function _y(e,t){return-131069&e|t<<2}function Dy(e){return 1|e}function p2(e,t,n,r){const o=e[n+1],i=null===t;let s=r?Yi(o):zs(o),a=!1;for(;0!==s&&(!1===a||i);){const l=e[s+1];G5(e[s],t)&&(a=!0,e[s+1]=r?Dy(l):Cy(l)),s=r?Yi(l):zs(l)}a&&(e[n+1]=r?Cy(o):Dy(o))}function G5(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Aa(e,t)>=0}const Nn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function g2(e){return e.substring(Nn.key,Nn.keyEnd)}function m2(e,t){const n=Nn.textEnd;return n===t?-1:(t=Nn.keyEnd=function Q5(e,t,n){for(;t32;)t++;return t}(e,Nn.key=t,n),pc(e,t,n))}function pc(e,t,n){for(;t=0;n=m2(t,n))Br(e,g2(t),!0)}function vo(e,t,n,r){const o=ge(),i=gt(),s=mi(2);i.firstUpdatePass&&x2(i,e,s,r),t!==ft&&hn(o,s,t)&&_2(i,i.data[Hn()],o,o[it],e,o[s+1]=function sL(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Dn(Ur(e)))),e}(t,n),r,s)}function b2(e,t){return t>=e.expandoStartIndex}function x2(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[Hn()],s=b2(e,n);A2(i,r)&&null===t&&!s&&(t=!1),t=function J5(e,t,n,r){const o=Ig(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=iu(n=Sy(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Sy(o,e,t,n,r),null===i){let c=function eL(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==zs(r))return e[Yi(r)]}(e,t,r);void 0!==c&&Array.isArray(c)&&(c=Sy(null,e,t,c[1],r),c=iu(c,t.attrs,r),function tL(e,t,n,r){e[Yi(n?t.classBindings:t.styleBindings)]=r}(e,t,r,c))}else i=function nL(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 p=Yi(e[a+1]);e[r+1]=uh(p,a),0!==p&&(e[p+1]=_y(e[p+1],r)),e[a+1]=function H5(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=uh(a,0),0!==a&&(e[a+1]=_y(e[a+1],r)),a=r;else e[r+1]=uh(c,0),0===a?a=r:e[c+1]=_y(e[c+1],r),c=r;l&&(e[r+1]=Cy(e[r+1])),p2(e,u,r,!0),p2(e,u,r,!1),function z5(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Aa(i,t)>=0&&(n[r+1]=Dy(n[r+1]))}(t,u,e,r,i),s=uh(a,c),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}function Sy(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 p=n[o+1];p===ft&&(p=d?Tt:void 0);let m=d?ng(p,r):u===r?p:void 0;if(l&&!dh(m)&&(m=ng(c,r)),dh(m)&&(a=m,s))return a;const v=e[o+1];o=s?Yi(v):zs(v)}if(null!==t){let c=i?t.residualClasses:t.residualStyles;null!=c&&(a=ng(c,r))}return a}function dh(e){return void 0!==e}function A2(e,t){return!!(e.flags&(t?8:16))}function _e(e,t,n,r){const o=ge(),i=gt(),s=Ze+e,a=o[it],c=i.firstCreatePass?function TL(e,t,n,r,o,i){const s=t.consts,c=Bs(t,e,2,r,eo(s,o));return Om(t,n,c,eo(s,i)),null!==c.attrs&&Xf(c,c.attrs,!1),null!==c.mergedAttrs&&Xf(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,i,o,t,n,r):i.data[s],l=M2(i,o,c,a,t,e);o[s]=l;const u=nf(c);return mo(c,!0),t_(a,l,c),!function Ya(e){return!(32&~e.flags)}(c)&&vl()&&Lf(i,o,l,c),0===function ZO(){return st.lFrame.elementDepthCount}()&&Yn(l,o),function YO(){st.lFrame.elementDepthCount++}(),u&&(Mm(i,o,c),Tm(i,c,o)),null!==r&&Nm(o,c),_e}function Me(){let e=Ht();Dg()?Ag():(e=e.parent,mo(e,!1));const t=e;(function JO(e){return st.skipHydrationRootTNode===e})(t)&&function rF(){st.skipHydrationRootTNode=null}(),function XO(){st.lFrame.elementDepthCount--}();const n=gt();return n.firstCreatePass&&(uf(n,e),mg(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function gF(e){return!!(8&e.flags)}(t)&&Ay(n,t,ge(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function mF(e){return!!(16&e.flags)}(t)&&Ay(n,t,ge(),t.stylesWithoutHost,!1),Me}function wt(e,t,n,r){return _e(e,t,n,r),Me(),wt}let M2=(e,t,n,r,o,i)=>(Fo(!0),kf(r,o,function ux(){return st.lFrame.currentNamespace}()));function su(e,t,n){const r=ge(),o=gt(),i=e+Ze,s=o.firstCreatePass?function RL(e,t,n,r,o){const i=t.consts,s=eo(i,r),a=Bs(t,e,8,"ng-container",s);return null!==s&&Xf(a,s,!0),Om(t,n,a,eo(i,o)),null!==t.queries&&t.queries.elementStart(t,a),a}(i,o,r,t,n):o.data[i];mo(s,!0);const a=R2(o,r,s,e);return r[i]=a,vl()&&Lf(o,r,a,s),Yn(a,r),nf(s)&&(Mm(o,r,s),Tm(o,s,r)),null!=n&&Nm(r,s),su}function au(){let e=Ht();const t=gt();return Dg()?Ag():(e=e.parent,mo(e,!1)),t.firstCreatePass&&(uf(t,e),mg(e)&&t.queries.elementEnd(e)),au}let R2=(e,t,n,r)=>(Fo(!0),wm(t[it],""));function $o(){return ge()}function Ny(e,t,n){const r=ge();if(hn(r,yo(),t)){const i=gt(),s=Zt();_r(i,s,r,e,t,m_(Ig(i.data),s,r),n,!0)}return Ny}const hh="en-US";let k2=hh,eA=(e,t,n)=>{};function Nt(e,t,n,r){const o=ge(),i=gt(),s=Ht();return function Fy(e,t,n,r,o,i,s){const a=nf(r),l=e.firstCreatePass&&g_(e),u=t[Qt],d=p_(t);let p=!0;if(3&r.type||s){const D=cr(r,t),L=s?s(D):D,q=d.length,K=s?ae=>s(Mt(ae[r.index])):r.index;let se=null;if(!s&&a&&(se=function D7(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,p=!1;else{i=oA(r,t,u,i),eA(D,o,i);const ae=n.listen(L,o,i);d.push(i,ae),l&&l.push(o,K,q,q+1)}}else i=oA(r,t,u,i);const m=r.outputs;let v;if(p&&null!==m&&(v=m[o])){const D=v.length;if(D)for(let L=0;L-1?Vr(e.index,t):t,5);let a=rA(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=rA(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function Jn(e=1){return function cF(e){return(st.lFrame.contextLView=function Qb(e,t){for(;e>0;)t=t[Na],e--;return t}(e,st.lFrame.contextLView))[Qt]}(e)}function ky(e,t,n){cD(e,t,n)}function yh(e){const t=ge(),n=gt(),r=Tg();lf(r+1);const o=cy(n,r);if(e.dirty&&function qO(e){return!(4&~e[Ye])}(t)===!(2&~o.metadata.flags)){if(null===o.matches)e.reset([]);else{const i=dD(t,r);e.reset(i,Vx),e.notifyOnChanges()}return!0}return!1}function vh(){return function ay(e,t){return e[hi].queries[t].queryList}(ge(),Tg())}function Xi(e){return function Ss(e,t){return e[t]}(function Jb(){return st.lFrame.contextLView}(),Ze+e)}function ke(e,t=""){const n=ge(),r=gt(),o=e+Ze,i=r.firstCreatePass?Bs(r,o,1,t,null):r.data[o],s=_A(r,n,i,t,e);n[o]=s,vl()&&Lf(r,n,s,i),mo(i,!1)}let _A=(e,t,n,r,o)=>(Fo(!0),function Em(e,t){return e.createText(t)}(t[it],r));function mc(e){return xi("",e,""),mc}function xi(e,t,n){const r=ge(),o=function sc(e,t,n,r){return hn(e,yo(),n)?t+dt(n)+r:ft}(r,e,t,n);return o!==ft&&function vi(e,t,n){const r=gl(t,e);!function HC(e,t,n){e.setValue(t,n)}(e[it],r,n)}(r,Hn(),o),xi}function Ly(e,t,n,r,o){if(e=ot(e),Array.isArray(e))for(let i=0;i>20;if(_s(e)||!e.multi){const m=new El(l,o,xe),v=Uy(c,t,o?u:u+p,d);-1===v?(Lg(pf(a,s),i,c),Vy(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(m),s.push(m)):(n[v]=m,s[v]=m)}else{const m=Uy(c,t,u+p,d),v=Uy(c,t,u,u+p),L=v>=0&&n[v];if(o&&!L||!o&&!(m>=0&&n[m])){Lg(pf(a,s),i,c);const q=function Z7(e,t,n,r,o){const i=new El(e,n,xe);return i.multi=[],i.index=t,i.componentProviders=0,BA(i,o,r&&!n),i}(o?Q7:q7,n.length,o,r,l);!o&&L&&(n[v].providerFactory=q),Vy(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(q),s.push(q)}else Vy(i,e,m>-1?m:v,BA(n[o?v:m],l,!o&&r));!o&&r&&L&&n[v].componentProviders++}}}function Vy(e,t,n,r){const o=_s(t),i=function _O(e){return!!e.useClass}(t);if(o||i){const c=(i?ot(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 BA(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Uy(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function K7(e,t,n){const r=gt();if(r.firstCreatePass){const o=go(e);Ly(n,r.data,r.blueprint,o,!0),Ly(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}let Y7=(()=>{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=sg(0,n.type),o=r.length>0?th([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{this.\u0275prov=Ue({token:e,providedIn:"environment",factory:()=>new e(Ke(br))})}}return e})();function Eh(e){ur("NgStandalone"),e.getStandaloneInjector=t=>t.get(Y7).getOrCreateStandaloneInjector(e)}function jy(e,t,n){const r=function lr(){const e=st.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}()+e,o=ge();return o[r]===ft?function Uo(e,t,n){return e[t]=n}(o,r,n?t.call(n):t()):function Jl(e,t){return e[t]}(o,r)}function GA(e,t){return zf(e,t)}let aS=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();const fS=new Ve(""),_h=new Ve("");let Zy,qy=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Zy||(function lV(e){Zy=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:()=>{St.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!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()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static{this.\u0275fac=function(r){return new(r||e)(Ke(St),Ke(Qy),Ke(_h))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}}return e})(),Qy=(()=>{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 Zy?.findTestabilityInTree(this,n,r)??null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function vu(e){return!!e&&"function"==typeof e.then}function hS(e){return!!e&&"function"==typeof e.subscribe}const Yy=new Ve("");let pS=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=Ce(Yy,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(vu(i))n.push(i);else if(hS(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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Dh=new Ve("");function mS(e,t){return Array.isArray(t)?t.reduce(mS,e):{...e,...t}}let ro=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ce(zF),this.afterRenderManager=Ce(UD),this.zonelessEnabled=Ce(Kl),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new xt,this.afterTick=new xt,this.componentTypes=[],this.components=[],this.isStable=Ce(Rs).hasPendingTasks.pipe(Vt(n=>!n)),this._injector=Ce(br)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof K_;if(!this._injector.get(pS).done)throw!o&&function $i(e){const t=vt(e)||An(e)||Vn(e);return null!==t&&t.standalone}(n),new he(405,!1);let s;s=o?n:this._injector.get(ql).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function uV(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Hs),l=s.create(fn.NULL,[],r||s.selector,a),u=l.location.nativeElement,d=l.injector.get(fS,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),Ah(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new he(101,!1);const n=H(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,H(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Zf,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;0!==this.dirtyFlags&&r++<10;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,7&this.dirtyFlags){const r=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:o,notifyErrorHandler:i}of this._views)hV(o,i,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),7&this.dirtyFlags)return}else n?.begin?.(),n?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:n})=>rf(n))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Ah(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Dh,[]);[...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),()=>Ah(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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ah(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function hV(e,t,n,r){(n||rf(e))&&$f(e,t,n&&!r?0:1)}class pV{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let vS=(()=>{class e{compileModuleSync(n){return new dy(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=jr(Wn(n).declarations).reduce((s,a)=>{const c=vt(a);return c&&s.push(new Yl(c)),s},[]);return new pV(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),yV=(()=>{class e{constructor(){this.zone=Ce(St),this.changeDetectionScheduler=Ce(Qa),this.applicationRef=Ce(ro)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Xy({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new St({...Jy(),scheduleInRootZone:n}),[{provide:St,useFactory:e},{provide:uo,multi:!0,useFactory:()=>{const r=Ce(yV,{optional:!0});return()=>r.initialize()}},{provide:uo,multi:!0,useFactory:()=>{const r=Ce(EV);return()=>{r.initialize()}}},!0===t?{provide:W_,useValue:!0}:[],{provide:Ym,useValue:n??Rx}]}function Jy(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let EV=(()=>{class e{constructor(){this.subscription=new He,this.initialized=!1,this.zone=Ce(St),this.pendingTasks=Ce(Rs)}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(()=>{St.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{St.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Eu=(()=>{class e{constructor(){this.appRef=Ce(ro),this.taskService=Ce(Rs),this.ngZone=Ce(St),this.zonelessEnabled=Ce(Kl),this.disableScheduling=Ce(W_,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new He,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ef):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(Ce(Ym,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Gg||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&5===n)return;switch(n){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 7:this.appRef.deferredDirtyFlags|=8;break;default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?Fx:Ox;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ef+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Fx(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Ji=new Ve("",{providedIn:"root",factory:()=>Ce(Ji,Ct.Optional|Ct.SkipSelf)||function wV(){return typeof $localize<"u"&&$localize.locale||hh}()}),tv=new Ve("");function Ih(e){return!!e.platformInjector}let _S=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=r?.scheduleInRootZone,s=r?.ignoreChangesOutsideZone,a=[Xy({ngZoneFactory:()=>function $F(e="zone.js",t){return"noop"===e?new Gg:"zone.js"===e?new St(t):e}(r?.ngZone,{...Jy({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}),scheduleInRootZone:o}),ignoreChangesOutsideZone:s}),{provide:Qa,useExisting:Eu}],c=function XB(e,t,n){return new uy(e,t,n,!1)}(n.moduleType,this.injector,a);return function CS(e){const t=Ih(e)?e.r3Injector:e.moduleRef.injector,n=t.get(St);return n.run(()=>{Ih(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=t.get(ko,null);let o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Ih(e)){const i=()=>t.destroy(),s=e.platformInjector.get(tv);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else e.moduleRef.onDestroy(()=>{Ah(e.allPlatformModules,e.moduleRef),o.unsubscribe()});return function fV(e,t,n){try{const r=n();return vu(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(r,n,()=>{const i=t.get(pS);return i.runInitializers(),i.donePromise.then(()=>{if(function HL(e){"string"==typeof e&&(k2=e.toLowerCase().replace(/_/g,"-"))}(t.get(Ji,hh)||hh),Ih(e)){const a=t.get(ro);return void 0!==e.rootComponent&&a.bootstrap(e.rootComponent),a}return function AV(e,t){const n=e.injector.get(ro);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new he(-403,!1);e.instance.ngDoBootstrap(n)}t.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({moduleRef:c,allPlatformModules:this._modules})}bootstrapModule(n,r=[]){const o=mS({},r);return function mV(e,t,n){const r=new dy(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}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(tv,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(r){return new(r||e)(Ke(fn))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})(),es=null;const DS=new Ve("");function AS(e,t,n=[]){const r=`Platform: ${t}`,o=new Ve(r);return(i=[])=>{let s=nv();if(!s||s.injector.get(DS,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function SV(e){if(es&&!es.get(DS,!1))throw new he(400,!1);(function gS(){!function S(e){fe=e}(()=>{throw new he(600,!1)})})(),es=e;const t=e.get(_S);(function IS(e){e.get(iC,null)?.forEach(n=>n())})(e)}(function SS(e=[],t){return fn.create({name:t,providers:[{provide:lg,useValue:"platform"},{provide:tv,useValue:new Set([()=>es=null])},...e]})}(a,r))}return function IV(){const t=nv();if(!t)throw new he(401,!1);return t}()}}function nv(){return es?.get(_S)??null}let wu=(()=>{class e{static{this.__NG_ELEMENT_ID__=MV}}return e})();function MV(e){return function NV(e,t,n){if(As(e)&&!n){const r=Vr(e.index,t);return new Vl(r,r)}return 175&e.type?new Vl(t[rn],t):null}(Ht(),ge(),!(16&~e))}const $V=AS(null,"core",[]);let zV=(()=>{class e{constructor(n){}static{this.\u0275fac=function(r){return new(r||e)(Ke(ro))}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({})}}return e})();const eI=new Ve("");function Ec(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function _u(e,t){ur("NgSignals");const n=function M(e){const t=Object.create(ne);t.computation=e;const n=()=>{if(N(t),C(t),t.value===B)throw t.error;return t.value};return n[A]=t,n}(e);return t?.equal&&(n[A].equal=t.equal),n}function zo(e){const t=H(null);try{return e()}finally{H(t)}}let uI=null;function ts(){return uI}class TU{}const jn=new Ve("");let dv=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:()=>Ce(NU),providedIn:"platform"})}}return e})();const MU=new Ve("");let NU=(()=>{class e extends dv{constructor(){super(),this._doc=Ce(jn),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ts().getBaseHref(this._doc)}onPopState(n){const r=ts().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=ts().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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function fv(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 dI(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 Ci(e){return e&&"?"!==e[0]?"?"+e:e}let Qs=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:()=>Ce(hI),providedIn:"root"})}}return e})();const fI=new Ve("");let hI=(()=>{class e extends Qs{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??Ce(jn).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 fv(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Ci(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+Ci(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+Ci(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{this.\u0275fac=function(r){return new(r||e)(Ke(dv),Ke(fI,8))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),RU=(()=>{class e extends Qs{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=fv(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Ci(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Ci(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{this.\u0275fac=function(r){return new(r||e)(Ke(dv),Ke(fI,8))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}}return e})(),Du=(()=>{class e{constructor(n){this._subject=new on,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function PU(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(dI(pI(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+Ci(r))}normalize(n){return e.stripTrailingSlash(function FU(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,pI(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+Ci(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ci(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{this.normalizeQueryParams=Ci}static{this.joinWithSlash=fv}static{this.stripTrailingSlash=dI}static{this.\u0275fac=function(r){return new(r||e)(Ke(Qs))}}static{this.\u0275prov=Ue({token:e,factory:()=>function OU(){return new Du(Ke(Qs))}(),providedIn:"root"})}}return e})();function pI(e){return e.replace(/\/index.html$/,"")}let ns=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new _H,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){AI("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){AI("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{this.\u0275fac=function(r){return new(r||e)(xe(to),xe(Ei))}}static{this.\u0275dir=lt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})();class _H{constructor(){this.$implicit=null,this.ngIf=null}}function AI(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Dn(t)}'.`)}let Go=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({})}}return e})();const TI="browser";function MI(e){return"server"===e}let YH=(()=>{class e{static{this.\u0275prov=Ue({token:e,providedIn:"root",factory:()=>function ZH(e){return e===TI}(Ce(Wi))?new XH(Ce(jn),window):new ej})}}return e})();class XH{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 JH(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 ej{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}}class Tj extends TU{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Mv extends Tj{static makeCurrent(){!function IU(e){uI??=e}(new Mv)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}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 Mj(){return Tu=Tu||document.querySelector("base"),Tu?Tu.getAttribute("href"):null}();return null==n?null:function Nj(e){return new URL(e,document.baseURI).pathname}(n)}resetBaseElement(){Tu=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function EH(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 Tu=null,Oj=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}}return e})();const Xh=new Ve("");let UI=(()=>{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{this.\u0275fac=function(r){return new(r||e)(Ke(Xh),Ke(St))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}}return e})();class Nv{constructor(t){this._doc=t}}const Rv="ng-app-id";let HI=(()=>{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=MI(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[${Rv}="${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(Rv),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Rv,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{this.\u0275fac=function(r){return new(r||e)(Ke(jn),Ke(Ua),Ke(aC,8),Ke(Wi))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}}return e})();const Ov={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/Math/MathML"},Fv=/%COMP%/g,Bj=new Ve("",{providedIn:"root",factory:()=>!0});function $I(e,t){return t.map(n=>n.replace(Fv,e))}let Pv=(()=>{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=MI(a),this.defaultRenderer=new kv(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===fo.ShadowDom&&(r={...r,encapsulation:fo.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof GI?o.applyToHost(n):o instanceof Bv&&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 fo.Emulated:i=new GI(c,l,r,this.appId,u,s,a,d);break;case fo.ShadowDom:return new Hj(c,l,n,r,s,a,this.nonce,d);default:i=new Bv(c,l,r,u,s,a,d)}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(Ke(UI),Ke(HI),Ke(Ua),Ke(Bj),Ke(jn),Ke(Wi),Ke(St),Ke(aC))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}}return e})();class kv{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(Ov[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(zI(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(zI(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}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=Ov[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Ov[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=ts().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 zI(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class Hj extends kv{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=$I(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(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Bv extends kv{constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?$I(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class GI extends Bv{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 Lj(e){return"_ngcontent-%COMP%".replace(Fv,e)}(l),this.hostAttr=function Vj(e){return"_nghost-%COMP%".replace(Fv,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 jj=(()=>{class e extends Nv{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{this.\u0275fac=function(r){return new(r||e)(Ke(jn))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}}return e})(),$j=(()=>{class e extends Nv{constructor(n){super(n),this.delegate=Ce(eI,{optional:!0})}supports(n){return!!this.delegate&&this.delegate.supports(n)}addEventListener(n,r,o){return this.delegate.addEventListener(n,r,o)}removeEventListener(n,r,o){return this.delegate.removeEventListener(n,r,o)}static{this.\u0275fac=function(r){return new(r||e)(Ke(jn))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}}return e})();const WI=["alt","control","meta","shift"],zj={"\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"},Gj={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Wj=(()=>{class e extends Nv{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(()=>ts().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."),WI.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=zj[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"),WI.forEach(s=>{s!==o&&(0,Gj[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{this.\u0275fac=function(r){return new(r||e)(Ke(jn))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}}return e})();const Zj=AS($V,"browser",[{provide:Wi,useValue:TI},{provide:iC,useValue:function Kj(){Mv.makeCurrent()},multi:!0},{provide:jn,useFactory:function Qj(){return function fP(e){Yg=e}(document),document},deps:[]}]),Yj=new Ve(""),QI=[{provide:_h,useClass:class Rj{addToWindow(t){en.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new he(5103,!1);return i},en.getAllAngularTestabilities=()=>t.getAllTestabilities(),en.getAllAngularRootElements=()=>t.getAllRootElements(),en.frameworkStabilizers||(en.frameworkStabilizers=[]),en.frameworkStabilizers.push(r=>{const o=en.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?ts().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:fS,useClass:qy,deps:[St,Qy,_h]},{provide:qy,useClass:qy,deps:[St,Qy,_h]}],ZI=[{provide:lg,useValue:"root"},{provide:ko,useFactory:function qj(){return new ko},deps:[]},{provide:Xh,useClass:jj,multi:!0,deps:[jn,St,Wi]},{provide:Xh,useClass:Wj,multi:!0,deps:[jn]},{provide:Xh,useClass:$j,multi:!0},Pv,HI,UI,{provide:Zf,useExisting:Pv},{provide:class tj{},useClass:Oj,deps:[]},[]];let YI=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Ua,useValue:n.appId}]}}static{this.\u0275fac=function(r){return new(r||e)(Ke(Yj,12))}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({providers:[...ZI,...QI],imports:[Go,zV]})}}return e})(),Xj=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(Ke(jn))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),eT=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:function(r){let o=null;return o=r?new(r||e):Ke(n$),o},providedIn:"root"})}}return e})(),n$=(()=>{class e extends eT{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case Hr.NONE:return r;case Hr.HTML:return Bo(r,"HTML")?Ur(r):MC(this._doc,String(r)).toString();case Hr.STYLE:return Bo(r,"Style")?Ur(r):r;case Hr.SCRIPT:if(Bo(r,"Script"))return Ur(r);throw new he(5200,!1);case Hr.URL:return Bo(r,"URL")?Ur(r):Nf(String(r));case Hr.RESOURCE_URL:if(Bo(r,"ResourceURL"))return Ur(r);throw new he(5201,!1);default:throw new he(5202,!1)}}bypassSecurityTrustHtml(n){return function OP(e){return new SP(e)}(n)}bypassSecurityTrustStyle(n){return function FP(e){return new IP(e)}(n)}bypassSecurityTrustScript(n){return function PP(e){return new TP(e)}(n)}bypassSecurityTrustUrl(n){return function kP(e){return new MP(e)}(n)}bypassSecurityTrustResourceUrl(n){return function BP(e){return new NP(e)}(n)}static{this.\u0275fac=function(r){return new(r||e)(Ke(jn))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var xc=y(1635);const tT=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function nT(e){return Ae(e?.then)}function rT(e){return Ae(e[nl])}function oT(e){return Symbol.asyncIterator&&Ae(e?.[Symbol.asyncIterator])}function iT(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 sT=function o$(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function aT(e){return Ae(e?.[sT])}function cT(e){return(0,xc.__asyncGenerator)(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield(0,xc.__await)(n.read());if(o)return yield(0,xc.__await)(void 0);yield yield(0,xc.__await)(r)}}finally{n.releaseLock()}})}function lT(e){return Ae(e?.getReader)}function Wo(e){if(e instanceof yn)return e;if(null!=e){if(rT(e))return function i$(e){return new yn(t=>{const n=e[nl]();if(Ae(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(tT(e))return function s$(e){return new yn(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,zn)})}(e);if(oT(e))return uT(e);if(aT(e))return function c$(e){return new yn(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(lT(e))return function l$(e){return uT(cT(e))}(e)}throw iT(e)}function uT(e){return new yn(t=>{(function u$(e,t){var n,r,o,i;return(0,xc.__awaiter)(this,void 0,void 0,function*(){try{for(n=(0,xc.__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 Ai(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 dT(e,t=0){return Ln((n,r)=>{n.subscribe(_n(r,o=>Ai(r,e,()=>r.next(o),t),()=>Ai(r,e,()=>r.complete(),t),o=>Ai(r,e,()=>r.error(o),t)))})}function fT(e,t=0){return Ln((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function hT(e,t){if(!e)throw new Error("Iterable cannot be null");return new yn(n=>{Ai(n,t,()=>{const r=e[Symbol.asyncIterator]();Ai(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Pn(e,t){return t?function m$(e,t){if(null!=e){if(rT(e))return function d$(e,t){return Wo(e).pipe(fT(t),dT(t))}(e,t);if(tT(e))return function h$(e,t){return new yn(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(nT(e))return function f$(e,t){return Wo(e).pipe(fT(t),dT(t))}(e,t);if(oT(e))return hT(e,t);if(aT(e))return function p$(e,t){return new yn(n=>{let r;return Ai(n,t,()=>{r=e[sT](),Ai(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(lT(e))return function g$(e,t){return hT(cT(e),t)}(e,t)}throw iT(e)}(e,t):Wo(e)}function Lv(e){return e[e.length-1]}function pT(e){return Ae(Lv(e))?e.pop():void 0}function e0(e){return function y$(e){return e&&Ae(e.schedule)}(Lv(e))?e.pop():void 0}function ut(...e){return Pn(e,e0(e))}const{isArray:v$}=Array,{getPrototypeOf:E$,prototype:w$,keys:b$}=Object;function gT(e){if(1===e.length){const t=e[0];if(v$(t))return{args:t,keys:null};if(function x$(e){return e&&"object"==typeof e&&E$(e)===w$}(t)){const n=b$(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:C$}=Array;function mT(e){return Vt(t=>function _$(e,t){return C$(t)?e(...t):e(t)}(e,t))}function yT(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Vv(...e){const t=e0(e),n=pT(e),{args:r,keys:o}=gT(e);if(0===r.length)return Pn([],t);const i=new yn(function D$(e,t,n=li){return r=>{vT(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(_n(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>yT(o,s):li));return n?i.pipe(mT(n)):i}function vT(e,t,n){e?Ai(n,e,t):t()}const Mu=Le(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function er(e,t,n=1/0){return Ae(t)?er((r,o)=>Vt((i,s)=>t(r,i,o,s))(Wo(e(r,o))),n):("number"==typeof t&&(n=t),Ln((r,o)=>function A$(e,t,n,r,o,i,s,a){const c=[];let l=0,u=0,d=!1;const p=()=>{d&&!c.length&&!l&&t.complete()},m=D=>l{i&&t.next(D),l++;let L=!1;Wo(n(D,u++)).subscribe(_n(t,q=>{o?.(q),i?m(q):t.next(q)},()=>{L=!0},void 0,()=>{if(L)try{for(l--;c.length&&lv(q)):v(q)}p()}catch(q){t.error(q)}}))};return e.subscribe(_n(t,m,()=>{d=!0,p()})),()=>{a?.()}}(r,o,e,n)))}function Nu(e=1/0){return er(li,e)}function Uv(...e){return function S$(){return Nu(1)}()(Pn(e,e0(e)))}function ET(e){return new yn(t=>{Wo(e()).subscribe(t)})}function t0(e,t){const n=Ae(e)?e:()=>e,r=o=>o.error(n());return new yn(t?o=>t.schedule(r,0,o):r)}const Ko=new yn(e=>e.complete());function Hv(){return Ln((e,t)=>{let n=null;e._refCount++;const r=_n(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 wT extends yn{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Nd(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 He;const n=this.getSubject();t.add(this.source.subscribe(_n(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=He.EMPTY)}return t}refCount(){return Hv()(this)}}function qo(e,t){return Ln((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(_n(r,c=>{o?.unsubscribe();let l=0;const u=i++;Wo(e(c,u)).subscribe(o=_n(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Cc(e){return e<=0?()=>Ko:Ln((t,n)=>{let r=0;t.subscribe(_n(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Si(e,t){return Ln((n,r)=>{let o=0;n.subscribe(_n(r,i=>e.call(t,i,o++)&&r.next(i)))})}function n0(e){return Ln((t,n)=>{let r=!1;t.subscribe(_n(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function bT(e=M$){return Ln((t,n)=>{let r=!1;t.subscribe(_n(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function M$(){return new Mu}function rs(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Si((o,i)=>e(o,i,r)):li,Cc(1),n?n0(t):bT(()=>new Mu))}function Ru(e,t){return Ae(t)?er(e,t,1):er(e,1)}function pr(e,t,n){const r=Ae(e)||t||n?{next:e,error:t,complete:n}:e;return r?Ln((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(_n(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)}))}):li}function _c(e){return Ln((t,n)=>{let i,r=null,o=!1;r=t.subscribe(_n(n,void 0,void 0,s=>{i=Wo(e(s,_c(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function jv(e){return e<=0?()=>Ko:Ln((t,n)=>{let r=[];t.subscribe(_n(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function $v(e){return Ln((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const pt="primary",Ou=Symbol("RouteTitle");class k${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 Dc(e){return new k$(e)}function B$(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 CT(e){return e.length>0?e[e.length-1]:null}function os(e){return function r$(e){return!!e&&(e instanceof yn||Ae(e.lift)&&Ae(e.subscribe))}(e)?e:vu(e)?Pn(Promise.resolve(e)):ut(e)}const V$={exact:function AT(e,t,n){if(!Xs(e.segments,t.segments)||!r0(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!AT(e.children[r],t.children[r],n))return!1;return!0},subset:ST},_T={exact:function U$(e,t){return Qo(e,t)},subset:function H$(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>xT(e[n],t[n]))},ignored:()=>!0};function DT(e,t,n){return V$[n.paths](e.root,t.root,n.matrixParams)&&_T[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function ST(e,t,n){return IT(e,t,t.segments,n)}function IT(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!Xs(o,n)||t.hasChildren()||!r0(o,n,r))}if(e.segments.length===n.length){if(!Xs(e.segments,n)||!r0(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!ST(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!!(Xs(e.segments,o)&&r0(e.segments,o,r)&&e.children[pt])&&IT(e.children[pt],t,i,r)}}function r0(e,t,n){return t.every((r,o)=>_T[n](e[o].parameters,r.parameters))}class Ys{constructor(t=new jt([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Dc(this.queryParams),this._queryParamMap}toString(){return z$.serialize(this)}}class jt{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 s0(this)}}class Fu{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Dc(this.parameters),this._parameterMap}toString(){return NT(this)}}function Xs(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let Ac=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:()=>new o0,providedIn:"root"})}}return e})();class o0{parse(t){const n=new tz(t);return new Ys(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${Pu(t.root,!0)}`,r=function K$(e){const t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${a0(n)}=${a0(o)}`).join("&"):`${a0(n)}=${a0(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function G$(e){return encodeURI(e)}(t.fragment)}`:""}`}}const z$=new o0;function s0(e){return e.segments.map(t=>NT(t)).join("/")}function Pu(e,t){if(!e.hasChildren())return s0(e);if(t){const n=e.children[pt]?Pu(e.children[pt],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==pt&&r.push(`${o}:${Pu(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function $$(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===pt&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==pt&&(n=n.concat(t(o,r)))}),n}(e,(r,o)=>o===pt?[Pu(e.children[pt],!1)]:[`${o}:${Pu(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[pt]?`${s0(e)}/${n[0]}`:`${s0(e)}/(${n.join("//")})`}}function TT(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function a0(e){return TT(e).replace(/%3B/gi,";")}function Gv(e){return TT(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function c0(e){return decodeURIComponent(e)}function MT(e){return c0(e.replace(/\+/g,"%20"))}function NT(e){return`${Gv(e.path)}${function W$(e){return Object.entries(e).map(([t,n])=>`;${Gv(t)}=${Gv(n)}`).join("")}(e.parameters)}`}const q$=/^[^\/()?;#]+/;function Wv(e){const t=e.match(q$);return t?t[0]:""}const Q$=/^[^\/()?;=#]+/,Y$=/^[^=?&#]+/,J$=/^[^&#]+/;class tz{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new jt([],{}):new jt([],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[pt]=new jt(t,n)),r}parseSegment(){const t=Wv(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new he(4009,!1);return this.capture(t),new Fu(c0(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function Z$(e){const t=e.match(Q$);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Wv(this.remaining);o&&(r=o,this.capture(r))}t[c0(n)]=c0(r)}parseQueryParam(t){const n=function X$(e){const t=e.match(Y$);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function ez(e){const t=e.match(J$);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=MT(n),i=MT(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=Wv(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=pt);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[pt]:new jt([],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 RT(e){return e.segments.length>0?new jt([],{[pt]:e}):e}function OT(e){const t={};for(const[r,o]of Object.entries(e.children)){const i=OT(o);if(r===pt&&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 nz(e){if(1===e.numberOfChildren&&e.children[pt]){const t=e.children[pt];return new jt(e.segments.concat(t.segments),t.children)}return e}(new jt(e.segments,t))}function Js(e){return e instanceof Ys}function FT(e){let t;const o=RT(function n(i){const s={};for(const c of i.children){const l=n(c);s[c.outlet]=l}const a=new jt(i.url,s);return i===e&&(t=a),a}(e.root));return t??o}function PT(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(0===t.length)return Kv(o,o,o,n,r);const i=function oz(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new BT(!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 BT(n,t,r)}(t);if(i.toRoot())return Kv(o,o,new jt([],{}),n,r);const s=function iz(e,t,n){if(e.isAbsolute)return new u0(t,!0,0);if(!n)return new u0(t,!1,NaN);if(null===n.parent)return new u0(n,!0,0);const r=l0(e.commands[0])?0:1;return function sz(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 u0(r,!1,o-i)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?Bu(s.segmentGroup,s.index,i.commands):LT(s.segmentGroup,s.index,i.commands);return Kv(o,s.segmentGroup,a,n,r)}function l0(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ku(e){return"object"==typeof e&&null!=e&&e.outlets}function Kv(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:kT(e,t,n);const a=RT(OT(s));return new Ys(a,i,o)}function kT(e,t,n){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===t?n:kT(i,t,n)}),new jt(e.segments,r)}class BT{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&l0(r[0]))throw new he(4003,!1);const o=r.find(ku);if(o&&o!==CT(r))throw new he(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class u0{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function LT(e,t,n){if(e??=new jt([],{}),0===e.segments.length&&e.hasChildren())return Bu(e,t,n);const r=function cz(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(ku(a))break;const c=`${a}`,l=r0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!UT(c,l,s))return i;r+=2}else{if(!UT(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!==pt)&&e.children[pt]&&1===e.numberOfChildren&&0===e.children[pt].segments.length){const i=Bu(e.children[pt],t,n);return new jt(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=LT(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new jt(e.segments,o)}}function qv(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=qv(new jt([],{}),0,r))}),t}function VT(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function UT(e,t,n){return e==n.path&&Qo(t,n.parameters)}const Lu="imperative";var At=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}(At||{});class Zo{constructor(t,n){this.id=t,this.url=n}}class Vu extends Zo{constructor(t,n,r="imperative",o=null){super(t,n),this.type=At.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ii extends Zo{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=At.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Wr=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(Wr||{}),d0=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(d0||{});class ea extends Zo{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=At.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Sc extends Zo{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=At.NavigationSkipped}}class Qv extends Zo{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=At.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class HT extends Zo{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=At.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uz extends Zo{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=At.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dz extends Zo{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=At.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class fz extends Zo{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=At.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hz extends Zo{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=At.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pz{constructor(t){this.route=t,this.type=At.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class gz{constructor(t){this.route=t,this.type=At.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class mz{constructor(t){this.snapshot=t,this.type=At.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yz{constructor(t){this.snapshot=t,this.type=At.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vz{constructor(t){this.snapshot=t,this.type=At.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ez{constructor(t){this.snapshot=t,this.type=At.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jT{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=At.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Zv{}class f0{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}}function xo(e){return e.outlet||pt}function Uu(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 Dz{get injector(){return Uu(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new Hu(this.rootInjector),this.attachRef=null}}let Hu=(()=>{class e{constructor(n){this.rootInjector=n,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 Dz(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(Ke(br))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();class $T{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=Yv(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=Yv(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=Xv(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Xv(t,this._root).map(n=>n.value)}}function Yv(e,t){if(e===t.value)return t;for(const n of t.children){const r=Yv(e,n);if(r)return r}return null}function Xv(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Xv(e,n);if(r.length)return r.unshift(t),r}return[]}class Co{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function Ic(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class zT extends $T{constructor(t,n){super(t),this.snapshot=n,Jv(this,t)}toString(){return this.snapshot.toString()}}function GT(e){const t=function Az(e){const i=new p0([],{},{},"",{},pt,e,null,{});return new WT("",new Co(i,[]))}(e),n=new sr([new Fu("",{})]),r=new sr({}),o=new sr({}),i=new sr({}),s=new sr(""),a=new Tc(n,r,i,s,o,pt,e,t.root);return a.snapshot=t.root,new zT(new Co(a,[]),t)}class Tc{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(Vt(l=>l[Ou]))??ut(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(Vt(t=>Dc(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Vt(t=>Dc(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function h0(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&&qT(o)&&(r.resolve[Ou]=o.title),r}class p0{get title(){return this.data?.[Ou]}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??=Dc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Dc(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class WT extends $T{constructor(t,n){super(n),this.url=t,Jv(this,n)}toString(){return KT(this._root)}}function Jv(e,t){t.value._routerState=e,t.children.forEach(n=>Jv(e,n))}function KT(e){const t=e.children.length>0?` { ${e.children.map(KT).join(", ")} } `:"";return`${e.value}${t}`}function e1(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Qo(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Qo(t.params,n.params)||e.paramsSubject.next(n.params),function L$(e,t){if(e.length!==t.length)return!1;for(let n=0;nQo(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||t1(e.parent,t.parent))}function qT(e){return"string"==typeof e.title||null===e.title}let n1=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=pt,this.activateEvents=new on,this.deactivateEvents=new on,this.attachEvents=new on,this.detachEvents=new on,this.parentContexts=Ce(Hu),this.location=Ce(to),this.changeDetector=Ce(wu),this.inputBinder=Ce(g0,{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 r1(n,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=lt({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 r1{__ngOutletInjector(t){return new r1(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Tc?this.route:t===Hu?this.childContexts:this.parent.get(t,n)}}const g0=new Ve("");let QT=(()=>{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=Vv([r.queryParams,r.params,r.data]).pipe(qo(([i,s,a],c)=>(a={...i,...s,...a},0===c?ut(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 SU(e){const t=vt(e);if(!t)return null;const n=new Yl(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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}}return e})();function ju(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function Iz(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return ju(e,r,o);return ju(e,r)})}(e,t,n);return new Co(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=>ju(e,a)),s}}const r=function Tz(e){return new Tc(new sr(e.url),new sr(e.params),new sr(e.queryParams),new sr(e.fragment),new sr(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>ju(e,i));return new Co(r,o)}}class o1{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}}const ZT="ngNavigationCancelingError";function m0(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=Js(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=YT(!1,Wr.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function YT(e,t){const n=new Error(`NavigationCancelingError: ${e||""}`);return n[ZT]=!0,n.cancellationCode=t,n}function XT(e){return!!e&&e[ZT]}class Rz{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),e1(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=Ic(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=Ic(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=Ic(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=Ic(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Ez(i.value.snapshot))}),t.children.length&&this.forwardEvent(new yz(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(e1(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),e1(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}}class JT{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class y0{constructor(t,n){this.component=t,this.route=n}}function Oz(e,t,n){const r=e._root;return $u(r,t?t._root:null,n,[r.value])}function Mc(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function HR(e){return null!==Bd(e)}(e)?t.get(e):e:r}function $u(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=Ic(t);return e.children.forEach(s=>{(function Pz(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 kz(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Xs(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Xs(e.url,t.url)||!Qo(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!t1(e,t)||!Qo(e.queryParams,t.queryParams);default:return!t1(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new JT(r)):(i.data=s.data,i._resolvedData=s._resolvedData),$u(e,t,i.component?a?a.children:null:n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new y0(a.outlet.component,s))}else s&&zu(t,a,o),o.canActivateChecks.push(new JT(r)),$u(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])=>zu(a,n.getContext(s),o)),o}function zu(e,t,n){const r=Ic(e),o=e.value;Object.entries(r).forEach(([i,s])=>{zu(s,o.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new y0(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function Gu(e){return"function"==typeof e}function eM(e){return e instanceof Mu||"EmptyError"===e?.name}const v0=Symbol("INITIAL_VALUE");function Nc(){return qo(e=>Vv(e.map(t=>t.pipe(Cc(1),function T$(...e){const t=e0(e);return Ln((n,r)=>{(t?Uv(e,n,t):Uv(e,n)).subscribe(r)})}(v0)))).pipe(Vt(t=>{for(const n of t)if(!0!==n){if(n===v0)return v0;if(!1===n||$z(n))return n}return!0}),Si(t=>t!==v0),Cc(1)))}function $z(e){return Js(e)||e instanceof o1}function tM(e){return function Rp(...e){return rl(e)}(pr(t=>{if("boolean"!=typeof t)throw m0(0,t)}),Vt(t=>!0===t))}class i1{constructor(t){this.segmentGroup=t||null}}class E0 extends Error{constructor(t){super(),this.urlTree=t}}function Rc(e){return t0(new i1(e))}class nG{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 ut(r);if(o.numberOfChildren>1||!o.children[pt])return t0(new he(4e3,!1));o=o.children[pt]}}applyRedirectCommands(t,n,r,o,i){if("string"!=typeof n){const a=n,{queryParams:c,fragment:l,routeConfig:u,url:d,outlet:p,params:m,data:v,title:D}=o,L=fi(i,()=>a({params:m,data:v,queryParams:c,fragment:l,routeConfig:u,url:d,outlet:p,title:D}));if(L instanceof Ys)throw new E0(L);n=L}const s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if("/"===n[0])throw new E0(s);return s}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new Ys(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[0]){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 jt(i,s)}createSegments(t,n,r,o){return n.map(i=>":"===i.path[0]?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 s1={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function rG(e,t,n,r,o){const i=nM(e,t,n);return i.matched?(r=function wz(e,t){return e.providers&&!e._injector&&(e._injector=th(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function Jz(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?ut(o.map(s=>{const a=Mc(s,e);return os(function jz(e){return e&&Gu(e.canMatch)}(a)?a.canMatch(t,n):fi(e,()=>a(t,n)))})).pipe(Nc(),tM()):ut(!0)}(r,t,n).pipe(Vt(s=>!0===s?i:{...s1}))):ut(i)}function nM(e,t,n){if("**"===t.path)return function oG(e){return{matched:!0,parameters:e.length>0?CT(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(n);if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...s1}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||B$)(n,e,t);if(!o)return{...s1};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 rM(e,t,n,r){return n.length>0&&function aG(e,t,n){return n.some(r=>w0(e,t,r)&&xo(r)!==pt)}(e,n,r)?{segmentGroup:new jt(t,sG(r,new jt(n,e.children))),slicedSegments:[]}:0===n.length&&function cG(e,t,n){return n.some(r=>w0(e,t,r))}(e,n,r)?{segmentGroup:new jt(e.segments,iG(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new jt(e.segments,e.children),slicedSegments:n}}function iG(e,t,n,r){const o={};for(const i of n)if(w0(e,t,i)&&!r[xo(i)]){const s=new jt([],{});o[xo(i)]=s}return{...r,...o}}function sG(e,t){const n={};n[pt]=t;for(const r of e)if(""===r.path&&xo(r)!==pt){const o=new jt([],{});n[xo(r)]=o}return n}function w0(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class uG{}class hG{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 nG(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new he(4002,`'${t.segmentGroup}'`)}recognize(){const t=rM(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(Vt(({children:n,rootSnapshot:r})=>{const o=new Co(r,n),i=new WT("",o),s=function rz(e,t,n=null,r=null){return PT(FT(e),t,n,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){const n=new p0([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),pt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,pt,n).pipe(Vt(r=>({children:r,rootSnapshot:n})),_c(r=>{if(r instanceof E0)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof i1?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe(Vt(s=>s instanceof Co?[s]:[]))}processChildren(t,n,r,o){const i=[];for(const s of Object.keys(r.children))"primary"===s?i.unshift(s):i.push(s);return Pn(i).pipe(Ru(s=>{const a=r.children[s],c=function _z(e,t){const n=e.filter(r=>xo(r)===t);return n.push(...e.filter(r=>xo(r)!==t)),n}(n,s);return this.processSegmentGroup(t,c,a,s,o)}),function R$(e,t){return Ln(function N$(e,t,n,r,o){return(i,s)=>{let a=n,c=t,l=0;i.subscribe(_n(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))}((s,a)=>(s.push(...a),s)),n0(null),function O$(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Si((o,i)=>e(o,i,r)):li,jv(1),n?n0(t):bT(()=>new Mu))}(),er(s=>{if(null===s)return Rc(r);const a=oM(s);return function pG(e){e.sort((t,n)=>t.value.outlet===pt?-1:n.value.outlet===pt?1:t.value.outlet.localeCompare(n.value.outlet))}(a),ut(a)}))}processSegment(t,n,r,o,i,s,a){return Pn(n).pipe(Ru(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(_c(l=>{if(l instanceof i1)return ut(null);throw l}))),rs(c=>!!c),_c(c=>{if(eM(c))return function lG(e,t,n){return 0===t.length&&!e.children[n]}(r,o,i)?ut(new uG):Rc(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return xo(r)===s||s!==pt&&w0(o,i,r)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c):Rc(o):Rc(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){const{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:p}=nM(n,o,i);if(!c)return Rc(n);"string"==typeof o.redirectTo&&"/"===o.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const m=new p0(i,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,iM(o),xo(o),o.component??o._loadedComponent??null,o,sM(o)),v=h0(m,a,this.paramsInheritanceStrategy);m.params=Object.freeze(v.params),m.data=Object.freeze(v.data);const D=this.applyRedirects.applyRedirectCommands(u,o.redirectTo,d,m,t);return this.applyRedirects.lineralizeSegments(o,D).pipe(er(L=>this.processSegment(t,r,n,L.concat(p),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){const a=rG(n,r,o,t);return"**"===r.path&&(n.children={}),a.pipe(qo(c=>c.matched?this.getChildConfig(t=r._injector??t,r,o).pipe(qo(({routes:l})=>{const u=r._loadedInjector??t,{parameters:d,consumedSegments:p,remainingSegments:m}=c,v=new p0(p,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,iM(r),xo(r),r.component??r._loadedComponent??null,r,sM(r)),D=h0(v,s,this.paramsInheritanceStrategy);v.params=Object.freeze(D.params),v.data=Object.freeze(D.data);const{segmentGroup:L,slicedSegments:q}=rM(n,p,m,l);if(0===q.length&&L.hasChildren())return this.processChildren(u,l,L,v).pipe(Vt(se=>new Co(v,se)));if(0===l.length&&0===q.length)return ut(new Co(v,[]));const K=xo(r)===i;return this.processSegment(u,l,L,q,K?pt:i,!0,v).pipe(Vt(se=>new Co(v,se instanceof Co?[se]:[])))})):Rc(n)))}getChildConfig(t,n,r){return n.children?ut({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?ut({routes:n._loadedRoutes,injector:n._loadedInjector}):function Xz(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?ut(!0):ut(o.map(s=>{const a=Mc(s,e);return os(function Lz(e){return e&&Gu(e.canLoad)}(a)?a.canLoad(t,n):fi(e,()=>a(t,n)))})).pipe(Nc(),tM())}(t,n,r).pipe(er(o=>o?this.configLoader.loadChildren(t,n).pipe(pr(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function tG(){return t0(YT(!1,Wr.GuardRejected))}())):ut({routes:[],injector:t})}}function gG(e){const t=e.value.routeConfig;return t&&""===t.path}function oM(e){const t=[],n=new Set;for(const r of e){if(!gG(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=oM(r.children);t.push(new Co(r.value,o))}return t.filter(r=>!n.has(r))}function iM(e){return e.data||{}}function sM(e){return e.resolve||{}}function aM(e){const t=e.children.map(n=>aM(n)).flat();return[e,...t]}function a1(e){return qo(t=>{const n=e(t);return n?Pn(n).pipe(Vt(()=>t)):ut(t)})}let cM=(()=>{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===pt);return r}getResolvedTitleForRoute(n){return n.data[Ou]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:()=>Ce(bG),providedIn:"root"})}}return e})(),bG=(()=>{class e extends cM{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(Ke(Xj))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Oc=new Ve("",{providedIn:"root",factory:()=>({})});let lM=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Lr({type:e,selectors:[["ng-component"]],standalone:!0,features:[Eh],decls:1,vars:0,template:function(r,o){1&r&&wt(0,"router-outlet")},dependencies:[n1],encapsulation:2})}}return e})();function c1(e){const t=e.children&&e.children.map(c1),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==pt&&(n.component=lM),n}const Fc=new Ve("");let l1=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Ce(vS)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return ut(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=os(n.loadComponent()).pipe(Vt(uM),pr(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),$v(()=>{this.componentLoaders.delete(n)})),o=new wT(r,()=>new xt).pipe(Hv());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ut({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=function xG(e,t,n,r){return os(e.loadChildren()).pipe(Vt(uM),er(o=>o instanceof ND||Array.isArray(o)?ut(o):Pn(t.compileModuleAsync(o))),Vt(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,!0):(i=o.create(n).injector,s=i.get(Fc,[],{optional:!0,self:!0}).flat()),{routes:s.map(c1),injector:i}}))}(r,this.compiler,n,this.onLoadEndListener).pipe($v(()=>{this.childrenLoaders.delete(r)})),s=new wT(i,()=>new xt).pipe(Hv());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function uM(e){return function CG(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let u1=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:()=>Ce(_G),providedIn:"root"})}}return e})(),_G=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const dM=new Ve(""),fM=new Ve("");function DG(e,t,n){const r=e.get(fM),o=e.get(jn);return e.get(St).runOutsideAngular(()=>{if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(l=>setTimeout(l));let i;const s=new Promise(l=>{i=l}),a=o.startViewTransition(()=>(i(),function AG(e){return new Promise(t=>{ah({read:()=>setTimeout(t)},{injector:e})})}(e))),{onViewTransitionCreated:c}=r;return c&&fi(e,()=>c({transition:a,from:t,to:n})),s})}const hM=new Ve("");let b0=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new xt,this.transitionAbortSubject=new xt,this.configLoader=Ce(l1),this.environmentInjector=Ce(br),this.urlSerializer=Ce(Ac),this.rootContexts=Ce(Hu),this.location=Ce(Du),this.inputBindingEnabled=null!==Ce(g0,{optional:!0}),this.titleStrategy=Ce(cM),this.options=Ce(Oc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Ce(u1),this.createViewTransition=Ce(dM,{optional:!0}),this.navigationErrorHandler=Ce(hM,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ut(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new gz(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new pz(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 sr({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Lu,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Si(i=>0!==i.id),Vt(i=>({...i,extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),qo(i=>{let s=!1,a=!1;return ut(i).pipe(qo(c=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Wr.SupersededByNewNavigation),Ko;this.currentTransition=i,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:"string"==typeof c.extras.browserUrl?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!l&&"reload"!==(c.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const d="";return this.events.next(new Sc(c.id,this.urlSerializer.serialize(c.rawUrl),d,d0.IgnoredSameUrlNavigation)),c.resolve(!1),Ko}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return ut(c).pipe(qo(d=>{const p=this.transitions?.getValue();return this.events.next(new Vu(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),p!==this.transitions?.getValue()?Ko:Promise.resolve(d)}),function mG(e,t,n,r,o,i){return er(s=>function dG(e,t,n,r,o,i,s="emptyOnly"){return new hG(e,t,n,r,o,s,i).recognize()}(e,t,n,r,s.extractedUrl,o,i).pipe(Vt(({state:a,tree:c})=>({...s,targetSnapshot:a,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),pr(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects};const p=new HT(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:d,extractedUrl:p,source:m,restoredState:v,extras:D}=c,L=new Vu(d,this.urlSerializer.serialize(p),m,v);this.events.next(L);const q=GT(this.rootComponentType).snapshot;return this.currentTransition=i={...c,targetSnapshot:q,urlAfterRedirects:p,extras:{...D,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=p,ut(i)}{const d="";return this.events.next(new Sc(c.id,this.urlSerializer.serialize(c.extractedUrl),d,d0.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Ko}}),pr(c=>{const l=new uz(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),Vt(c=>(this.currentTransition=i={...c,guards:Oz(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},i)),function zz(e,t){return er(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?ut({...n,guardsResult:!0}):function Gz(e,t,n,r){return Pn(e).pipe(er(o=>function Yz(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?ut(i.map(a=>{const c=Uu(t)??o,l=Mc(a,c);return os(function Hz(e){return e&&Gu(e.canDeactivate)}(l)?l.canDeactivate(e,t,n,r):fi(c,()=>l(e,t,n,r))).pipe(rs())})).pipe(Nc()):ut(!0)}(o.component,o.route,n,t,r)),rs(o=>!0!==o,!0))}(s,r,o,e).pipe(er(a=>a&&function Bz(e){return"boolean"==typeof e}(a)?function Wz(e,t,n,r){return Pn(t).pipe(Ru(o=>Uv(function qz(e,t){return null!==e&&t&&t(new mz(e)),ut(!0)}(o.route.parent,r),function Kz(e,t){return null!==e&&t&&t(new vz(e)),ut(!0)}(o.route,r),function Zz(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function Fz(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=>ET(()=>ut(s.guards.map(c=>{const l=Uu(s.node)??n,u=Mc(c,l);return os(function Uz(e){return e&&Gu(e.canActivateChild)}(u)?u.canActivateChild(r,e):fi(l,()=>u(r,e))).pipe(rs())})).pipe(Nc())));return ut(i).pipe(Nc())}(e,o.path,n),function Qz(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return ut(!0);const o=r.map(i=>ET(()=>{const s=Uu(t)??n,a=Mc(i,s);return os(function Vz(e){return e&&Gu(e.canActivate)}(a)?a.canActivate(t,e):fi(s,()=>a(t,e))).pipe(rs())}));return ut(o).pipe(Nc())}(e,o.route,n))),rs(o=>!0!==o,!0))}(r,i,e,t):ut(a)),Vt(a=>({...n,guardsResult:a})))})}(this.environmentInjector,c=>this.events.next(c)),pr(c=>{if(i.guardsResult=c.guardsResult,c.guardsResult&&"boolean"!=typeof c.guardsResult)throw m0(0,c.guardsResult);const l=new dz(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),Si(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",Wr.GuardRejected),!1)),a1(c=>{if(c.guards.canActivateChecks.length)return ut(c).pipe(pr(l=>{const u=new fz(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),qo(l=>{let u=!1;return ut(l).pipe(function yG(e,t){return er(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return ut(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 aM(c))s.add(l);let a=0;return Pn(s).pipe(Ru(c=>i.has(c)?function vG(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!qT(o)&&(i[Ou]=o.title),function EG(e,t,n,r){const o=zv(e);if(0===o.length)return ut({});const i={};return Pn(o).pipe(er(s=>function wG(e,t,n,r){const o=Uu(t)??r,i=Mc(e,o);return os(i.resolve?i.resolve(t,n):fi(o,()=>i(t,n)))}(e[s],t,n,r).pipe(rs(),pr(a=>{if(a instanceof o1)throw m0(new o0,a);i[s]=a}))),jv(1),function F$(e){return Vt(()=>e)}(i),_c(s=>eM(s)?Ko:t0(s)))}(i,e,t,r).pipe(Vt(s=>(e._resolvedData=s,e.data=h0(e,e.parent,n).resolve,null)))}(c,r,e,t):(c.data=h0(c,c.parent,e).resolve,ut(void 0))),pr(()=>a++),jv(1),er(c=>a===s.size?ut(n):Ko))})}(this.paramsInheritanceStrategy,this.environmentInjector),pr({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(l,"",Wr.NoDataFromResolver)}}))}),pr(l=>{const u=new hz(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}))}),a1(c=>{const l=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(pr(p=>{u.component=p}),Vt(()=>{})));for(const p of u.children)d.push(...l(p));return d};return Vv(l(c.targetSnapshot.root)).pipe(n0(null),Cc(1))}),a1(()=>this.afterPreactivation()),qo(()=>{const{currentSnapshot:c,targetSnapshot:l}=i,u=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return u?Pn(u).pipe(Vt(()=>i)):ut(i)}),Vt(c=>{const l=function Sz(e,t,n){const r=ju(e,t._root,n?n._root:void 0);return new zT(r,t)}(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=i={...c,targetRouterState:l},this.currentNavigation.targetRouterState=l,i}),pr(()=>{this.events.next(new Zv)}),((e,t,n,r)=>Vt(o=>(new Rz(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)))(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Cc(1),pr({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ii(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 P$(e){return Ln((t,n)=>{Wo(e).subscribe(_n(n,()=>n.complete(),or)),!n.closed&&t.subscribe(n)})}(this.transitionAbortSubject.pipe(pr(c=>{throw c}))),$v(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",Wr.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),_c(c=>{if(a=!0,XT(c))this.events.next(new ea(i.id,this.urlSerializer.serialize(i.extractedUrl),c.message,c.cancellationCode)),function Mz(e){return XT(e)&&Js(e.url)}(c)?this.events.next(new f0(c.url,c.navigationBehaviorOptions)):i.resolve(!1);else{const l=new Qv(i.id,this.urlSerializer.serialize(i.extractedUrl),c,i.targetSnapshot??void 0);try{const u=fi(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(u instanceof o1){const{message:d,cancellationCode:p}=m0(0,u);this.events.next(new ea(i.id,this.urlSerializer.serialize(i.extractedUrl),d,p)),this.events.next(new f0(u.redirectTo,u.navigationBehaviorOptions))}else{this.events.next(l);const d=n.errorHandler(c);i.resolve(!!d)}}catch(u){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(u)}}return Ko}))}))}cancelNavigationTransition(n,r,o){const i=new ea(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(){const n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function SG(e){return e!==Lu}let IG=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:()=>Ce(MG),providedIn:"root"})}}return e})();class TG{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let MG=(()=>{class e extends TG{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Mn(e)))(o||e)}})()}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),pM=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:()=>Ce(NG),providedIn:"root"})}}return e})(),NG=(()=>{class e extends pM{constructor(){super(...arguments),this.location=Ce(Du),this.urlSerializer=Ce(Ac),this.options=Ce(Oc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Ce(u1),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ys,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=GT(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 Vu)this.stateMemento=this.createStateMemento();else if(n instanceof Sc)this.rawUrlTree=r.initialUrl;else if(n instanceof HT){if("eager"===this.urlUpdateStrategy&&!r.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else n instanceof Zv?(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(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof ea&&(n.code===Wr.GuardRejected||n.code===Wr.NoDataFromResolver)?this.restoreHistory(r):n instanceof Qv?this.restoreHistory(r,!0):n instanceof Ii&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){const o=n instanceof Ys?this.urlSerializer.serialize(n):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{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Mn(e)))(o||e)}})()}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Wu=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Wu||{});function gM(e,t){e.events.pipe(Si(n=>n instanceof Ii||n instanceof ea||n instanceof Qv||n instanceof Sc),Vt(n=>n instanceof Ii||n instanceof Sc?Wu.COMPLETE:n instanceof ea&&(n.code===Wr.Redirect||n.code===Wr.SupersededByNewNavigation)?Wu.REDIRECTING:Wu.FAILED),Si(n=>n!==Wu.REDIRECTING),Cc(1)).subscribe(()=>{t()})}function RG(e){throw e}const OG={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},FG={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Sr=(()=>{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.console=Ce(aS),this.stateManager=Ce(pM),this.options=Ce(Oc,{optional:!0})||{},this.pendingTasks=Ce(Rs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Ce(b0),this.urlSerializer=Ce(Ac),this.location=Ce(Du),this.urlHandlingStrategy=Ce(u1),this._events=new xt,this.errorHandler=this.options.errorHandler||RG,this.navigated=!1,this.routeReuseStrategy=Ce(IG),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Ce(Fc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Ce(g0,{optional:!0}),this.eventsSubscription=new He,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 ea&&r.code!==Wr.Redirect&&r.code!==Wr.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Ii)this.navigated=!0;else if(r instanceof f0){const s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c={browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||"eager"===this.urlUpdateStrategy||SG(o.source),...s};this.scheduleNavigation(a,Lu,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function kG(e){return!(e instanceof Zv||e instanceof f0)})(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),Lu,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(c1),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??this.options.defaultQueryParamsHandling){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=FT(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||"/"!==n[0][0])&&(n=[]),d=this.currentUrlTree.root}return PT(d,n,u,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=Js(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Lu,null,r)}navigate(n,r={skipLocationChange:!1}){return function PG(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,p)=>{a=d,c=p});const u=this.pendingTasks.add();return gM(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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),ta=(()=>{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.onChanges=new xt,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;const c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof Ii&&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.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=Js(n)||Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}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 RC(e,t,n){return function e6(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?NC:pm}(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.routerLinkInput?null:Js(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(r){return new(r||e)(xe(Sr),xe(Tc),function xl(e){return function bF(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(Si(n=>n instanceof Ii),Ru(()=>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=th(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(Nu())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):ut(null);const i=o.pipe(er(s=>null===s?ut(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(Nu()):i})}static{this.\u0275fac=function(r){return new(r||e)(Ke(Sr),Ke(vS),Ke(br),Ke(mM),Ke(l1))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const d1=new Ve("");let yM=(()=>{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 Vu?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Ii?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Sc&&n.code===d0.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 jT&&(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 jT(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){!function r_(){throw new Error("invalid")}()}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}}return e})();function Yo(e,t){return{\u0275kind:e,\u0275providers:t}}function EM(){const e=Ce(fn);return t=>{const n=e.get(ro);if(t!==n.components[0])return;const r=e.get(Sr),o=e.get(wM);1===e.get(f1)&&r.initialNavigation(),e.get(bM,null,Ct.Optional)?.setUpPreloading(),e.get(d1,null,Ct.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const wM=new Ve("",{factory:()=>new xt}),f1=new Ve("",{providedIn:"root",factory:()=>1}),bM=new Ve("");function $G(e){return Yo(0,[{provide:bM,useExisting:VG},{provide:mM,useExisting:e}])}function GG(e){return Yo(9,[{provide:dM,useValue:DG},{provide:fM,useValue:{skipNextTransition:!!e?.skipInitialTransition,...e}}])}const xM=new Ve("ROUTER_FORROOT_GUARD"),WG=[Du,{provide:Ac,useClass:o0},Sr,Hu,{provide:Tc,useFactory:function vM(e){return e.routerState.root},deps:[Sr]},l1,[]];let na=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[WG,[],{provide:Fc,multi:!0,useValue:n},{provide:xM,useFactory:ZG,deps:[[Sr,new jd,new $d]]},{provide:Oc,useValue:r||{}},r?.useHash?{provide:Qs,useClass:RU}:{provide:Qs,useClass:hI},{provide:d1,useFactory:()=>{const e=Ce(YH),t=Ce(St),n=Ce(Oc),r=Ce(b0),o=Ce(Ac);return n.scrollOffset&&e.setOffset(n.scrollOffset),new yM(o,r,e,t,n)}},r?.preloadingStrategy?$G(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?YG(r):[],r?.bindToComponentInputs?Yo(8,[QT,{provide:g0,useExisting:QT}]).\u0275providers:[],r?.enableViewTransitions?GG().\u0275providers:[],[{provide:CM,useFactory:EM},{provide:Dh,multi:!0,useExisting:CM}]]}}static forChild(n){return{ngModule:e,providers:[{provide:Fc,multi:!0,useValue:n}]}}static{this.\u0275fac=function(r){return new(r||e)(Ke(xM,8))}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({})}}return e})();function ZG(e){return"guarded"}function YG(e){return["disabled"===e.initialNavigation?Yo(3,[{provide:Yy,multi:!0,useFactory:()=>{const t=Ce(Sr);return()=>{t.setUpLocationChangeListener()}}},{provide:f1,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Yo(2,[{provide:f1,useValue:0},{provide:Yy,multi:!0,deps:[fn],useFactory:t=>{const n=t.get(MU,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(Sr),i=t.get(wM);gM(o,()=>{r(!0)}),t.get(b0).afterPreactivation=()=>(r(!0),i.closed?ut(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const CM=new Ve("");let _M=(()=>{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{this.\u0275fac=function(r){return new(r||e)(xe(wi),xe(xr))}}static{this.\u0275dir=lt({type:e})}}return e})(),ra=(()=>{class e extends _M{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Mn(e)))(o||e)}})()}static{this.\u0275dir=lt({type:e,features:[Pt]})}}return e})();const Xo=new Ve(""),eW={provide:Xo,useExisting:qt(()=>h1),multi:!0};let h1=(()=>{class e extends ra{writeValue(n){this.setProperty("checked",n)}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Mn(e)))(o||e)}})()}static{this.\u0275dir=lt({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){1&r&&Nt("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},features:[sn([eW]),Pt]})}}return e})();const tW={provide:Xo,useExisting:qt(()=>Pc),multi:!0},rW=new Ve("");let Pc=(()=>{class e extends _M{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function nW(){const e=ts()?ts().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{this.\u0275fac=function(r){return new(r||e)(xe(wi),xe(xr),xe(rW,8))}}static{this.\u0275dir=lt({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&&Nt("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:[sn([tW]),Pt]})}}return e})();function is(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function DM(e){return null!=e&&"number"==typeof e.length}const tr=new Ve(""),ss=new Ve(""),oW=/^(?=.{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 oa{static min(t){return function AM(e){return t=>{if(is(t.value)||is(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n{if(is(t.value)||is(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 IM(e){return is(e.value)?{required:!0}:null}(t)}static requiredTrue(t){return function TM(e){return!0===e.value?null:{required:!0}}(t)}static email(t){return function MM(e){return is(e.value)||oW.test(e.value)?null:{email:!0}}(t)}static minLength(t){return function NM(e){return t=>is(t.value)||!DM(t.value)?null:t.value.length{if(is(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 VM(t)}static composeAsync(t){return UM(t)}}function RM(e){return t=>DM(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function x0(e){return null}function FM(e){return null!=e}function PM(e){return vu(e)?Pn(e):e}function kM(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function BM(e,t){return t.map(n=>n(e))}function LM(e){return e.map(t=>function iW(e){return!e.validate}(t)?t:n=>t.validate(n))}function VM(e){if(!e)return null;const t=e.filter(FM);return 0==t.length?null:function(n){return kM(BM(n,t))}}function p1(e){return null!=e?VM(LM(e)):null}function UM(e){if(!e)return null;const t=e.filter(FM);return 0==t.length?null:function(n){return function JG(...e){const t=pT(e),{args:n,keys:r}=gT(e),o=new yn(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]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?yT(r,a):a),i.complete())}))}});return t?o.pipe(mT(t)):o}(BM(n,t).map(PM)).pipe(Vt(kM))}}function g1(e){return null!=e?UM(LM(e)):null}function HM(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function jM(e){return e._rawValidators}function $M(e){return e._rawAsyncValidators}function m1(e){return e?Array.isArray(e)?e:[e]:[]}function C0(e,t){return Array.isArray(e)?e.includes(t):e===t}function zM(e,t){const n=m1(t);return m1(e).forEach(o=>{C0(n,o)||n.push(o)}),n}function GM(e,t){return m1(t).filter(n=>!C0(e,n))}class WM{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=p1(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=g1(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 gr extends WM{get formDirective(){return null}get path(){return null}}class as extends WM{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class KM{constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let _0=(()=>{class e extends KM{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(xe(as,2))}}static{this.\u0275dir=lt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){2&r&&Ws("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:[Pt]})}}return e})(),D0=(()=>{class e extends KM{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(xe(gr,10))}}static{this.\u0275dir=lt({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){2&r&&Ws("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:[Pt]})}}return e})();const Ku="VALID",S0="INVALID",kc="PENDING",qu="DISABLED";class Bc{}class QM extends Bc{constructor(t,n){super(),this.value=t,this.source=n}}class E1 extends Bc{constructor(t,n){super(),this.pristine=t,this.source=n}}class w1 extends Bc{constructor(t,n){super(),this.touched=t,this.source=n}}class I0 extends Bc{constructor(t,n){super(),this.status=t,this.source=n}}class uW extends Bc{constructor(t){super(),this.source=t}}class dW extends Bc{constructor(t){super(),this.source=t}}function b1(e){return(T0(e)?e.validators:e)||null}function x1(e,t){return(T0(t)?t.asyncValidators:e)||null}function T0(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ZM(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 YM(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new he(1002,"")})}class M0{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=_u(()=>this.statusReactive()),this.statusReactive=Vo(void 0),this._pristine=_u(()=>this.pristineReactive()),this.pristineReactive=Vo(!0),this._touched=_u(()=>this.touchedReactive()),this.touchedReactive=Vo(!1),this._events=new xt,this.events=this._events.asObservable(),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 status(){return zo(this.statusReactive)}set status(t){zo(()=>this.statusReactive.set(t))}get valid(){return this.status===Ku}get invalid(){return this.status===S0}get pending(){return this.status==kc}get disabled(){return this.status===qu}get enabled(){return this.status!==qu}get pristine(){return zo(this.pristineReactive)}set pristine(t){zo(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return zo(this.touchedReactive)}set touched(t){zo(()=>this.touchedReactive.set(t))}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(zM(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(zM(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(GM(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(GM(t,this._rawAsyncValidators))}hasValidator(t){return C0(this._rawValidators,t)}hasAsyncValidator(t){return C0(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){const n=!1===this.touched;this.touched=!0;const r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched({...t,sourceControl:r}),n&&!1!==t.emitEvent&&this._events.next(new w1(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){const n=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&!1!==t.emitEvent&&this._events.next(new w1(!1,r))}markAsDirty(t={}){const n=!0===this.pristine;this.pristine=!1;const r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty({...t,sourceControl:r}),n&&!1!==t.emitEvent&&this._events.next(new E1(!1,r))}markAsPristine(t={}){const n=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&!1!==t.emitEvent&&this._events.next(new E1(!0,r))}markAsPending(t={}){this.status=kc;const n=t.sourceControl??this;!1!==t.emitEvent&&(this._events.next(new I0(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending({...t,sourceControl:n})}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=qu,this.errors=null,this._forEachChild(o=>{o.disable({...t,onlySelf:!0})}),this._updateValue();const r=t.sourceControl??this;!1!==t.emitEvent&&(this._events.next(new QM(this.value,r)),this._events.next(new I0(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n},this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Ku,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n},this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ku||this.status===kc)&&this._runAsyncValidator(r,t.emitEvent)}const n=t.sourceControl??this;!1!==t.emitEvent&&(this._events.next(new QM(this.value,n)),this._events.next(new I0(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity({...t,sourceControl:n})}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?qu:Ku}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=kc,this._hasOwnPendingAsyncValidator={emitEvent:!1!==n};const r=PM(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent,this,n.shouldHaveEmitted)}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,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new I0(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new on,this.statusChanges=new on}_calculateStatus(){return this._allControlsDisabled()?qu:this.errors?S0:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kc)?kc:this._anyControlsHaveStatus(S0)?S0:Ku}_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,n){const r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new E1(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new w1(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){T0(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 fW(e){return Array.isArray(e)?p1(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function hW(e){return Array.isArray(e)?g1(e):e||null}(this._rawAsyncValidators)}}class Qu extends M0{constructor(t,n,r){super(b1(n),x1(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={}){YM(this,0,t),Object.keys(t).forEach(r=>{ZM(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),this._updateTouched(n,this),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 XM extends Qu{}const Lc=new Ve("CallSetDisabledState",{providedIn:"root",factory:()=>N0}),N0="always";function Zu(e,t,n=N0){C1(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function gW(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&JM(e,t)})}(e,t),function yW(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 mW(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&JM(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function pW(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function O0(e,t,n=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),P0(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function F0(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function C1(e,t){const n=jM(e);null!==t.validator?e.setValidators(HM(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=$M(e);null!==t.asyncValidator?e.setAsyncValidators(HM(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();F0(t._rawValidators,o),F0(t._rawAsyncValidators,o)}function P0(e,t){let n=!1;if(null!==e){if(null!==t.validator){const o=jM(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=$M(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 F0(t._rawValidators,r),F0(t._rawAsyncValidators,r),n}function JM(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function n3(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function r3(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const Xu=class extends M0{constructor(t=null,n,r){super(b1(n),x1(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}),T0(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=r3(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){n3(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){n3(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){r3(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 k0=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=lt({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return e})();const AW={provide:Xo,useExisting:qt(()=>I1),multi:!0};let I1=(()=>{class e extends ra{writeValue(n){this.setProperty("value",n??"")}registerOnChange(n){this.onChange=r=>{n(""==r?null:parseFloat(r))}}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Mn(e)))(o||e)}})()}static{this.\u0275dir=lt({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){1&r&&Nt("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},features:[sn([AW]),Pt]})}}return e})();const SW={provide:Xo,useExisting:qt(()=>T1),multi:!0};let IW=(()=>{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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),T1=(()=>{class e extends ra{constructor(n,r,o,i){super(n,r),this._registry=o,this._injector=i,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=Ce(Lc,{optional:!0})??N0}ngOnInit(){this._control=this._injector.get(as),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{this.\u0275fac=function(r){return new(r||e)(xe(wi),xe(xr),xe(IW),xe(fn))}}static{this.\u0275dir=lt({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(r,o){1&r&&Nt("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[sn([SW]),Pt]})}}return e})();const M1=new Ve(""),NW={provide:gr,useExisting:qt(()=>Vc)};let Vc=(()=>{class e extends gr{get submitted(){return zo(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}constructor(n,r,o){super(),this.callSetDisabledState=o,this._submitted=_u(()=>this._submittedReactive()),this._submittedReactive=Vo(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new on,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&&(P0(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 Zu(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){O0(n.control||null,n,!1),function bW(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._submittedReactive.set(!0),function t3(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),this.form._events.next(new uW(this.control)),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new dW(this.form))}_updateDomValue(){this.directives.forEach(n=>{const r=n.control,o=this.form.get(n.path);r!==o&&(O0(r||null,n),(e=>e instanceof Xu)(o)&&(Zu(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){const r=this.form.get(n.path);(function e3(e,t){C1(e,t)})(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){const r=this.form.get(n.path);r&&function vW(e,t){return P0(e,t)}(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){C1(this.form,this),this._oldForm&&P0(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(r){return new(r||e)(xe(tr,10),xe(ss,10),xe(Lc,8))}}static{this.\u0275dir=lt({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){1&r&&Nt("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[sn([NW]),Pt,Jr]})}}return e})();const FW={provide:as,useExisting:qt(()=>Ju)};let Ju=(()=>{class e extends as{set isDisabled(n){}static{this._ngModelWarningSentOnce=!1}constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new on,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function A1(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===Pc?n=i:function wW(e){return Object.getPrototypeOf(e.constructor)===ra}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){this._added||this._setUpControl(),function D1(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 R0(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{this.\u0275fac=function(r){return new(r||e)(xe(gr,13),xe(tr,10),xe(ss,10),xe(Xo,10),xe(M1,8))}}static{this.\u0275dir=lt({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[sn([FW]),Pt,Jr]})}}return e})();const PW={provide:Xo,useExisting:qt(()=>B0),multi:!0};function d3(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let B0=(()=>{class e extends ra{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=d3(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 kW(e){return e.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Mn(e)))(o||e)}})()}static{this.\u0275dir=lt({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){1&r&&Nt("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[sn([PW]),Pt]})}}return e})(),f3=(()=>{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(d3(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{this.\u0275fac=function(r){return new(r||e)(xe(xr),xe(wi),xe(B0,9))}}static{this.\u0275dir=lt({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return e})();const BW={provide:Xo,useExisting:qt(()=>O1),multi:!0};function h3(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let O1=(()=>{class e extends ra{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=Mn(e)))(o||e)}})()}static{this.\u0275dir=lt({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){1&r&&Nt("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[sn([BW]),Pt]})}}return e})(),p3=(()=>{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(h3(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(h3(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{this.\u0275fac=function(r){return new(r||e)(xe(xr),xe(wi),xe(O1,9))}}static{this.\u0275dir=lt({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return e})();let ia=(()=>{class e{constructor(){this._validator=x0}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):x0,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return null!=n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=lt({type:e,features:[Jr]})}}return e})();const GW={provide:tr,useExisting:qt(()=>L0),multi:!0};let L0=(()=>{class e extends ia{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=n=>function g3(e){return"number"==typeof e?e:parseInt(e,10)}(n),this.createValidator=n=>RM(n)}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Mn(e)))(o||e)}})()}static{this.\u0275dir=lt({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){2&r&&Dr("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[sn([GW]),Pt]})}}return e})(),KW=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({})}}return e})();class C3 extends M0{constructor(t,n,r){super(b1(n),x1(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={}){YM(this,0,t),t.forEach((r,o)=>{ZM(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),this._updateTouched(n,this),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 _3(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let P1=(()=>{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 _3(r)?i=r:null!==r&&(i.validators=r.validator,i.asyncValidators=r.asyncValidator),new Qu(o,i)}record(n,r=null){const o=this._reduceControls(n);return new XM(o,r)}control(n,r,o){let i={};return this.useNonNullable?(_3(r)?i=r:(i.validators=r,i.asyncValidators=o),new Xu(n,{...i,nonNullable:!0})):new Xu(n,r,o)}array(n,r,o){const i=n.map(s=>this._createControl(s));return new C3(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 Xu||n instanceof M0?n:Array.isArray(n)?this.control(n[0],n.length>1?n[1]:null,n.length>2?n[2]:null):this.control(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),k1=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:M1,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Lc,useValue:n.callSetDisabledState??N0}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({imports:[KW]})}}return e})();var je=y(467),B1=y(9331);y(9268),y(8273);let L1=(()=>{class e{match(n){return B1.EncryptedURI.matcher(n)}encrypt(n,r,o){return B1.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 B1.EncryptedURI.decrypt(n,r)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var cs=y(1471);let D3=(()=>{class e{constructor(){this.mode=cs.mode.CBC,this.padding=cs.pad.Pkcs7}match(n){return/^encrypted:aes\?iv=/.test(n)}encrypt(n,r){const o=cs.enc.Hex.parse(cs.lib.WordArray.random(16).toString());return`encrypted:aes?iv=${o};`+cs.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=cs.AES.decrypt(o.content,r,{iv:o.iv,mode:this.mode,padding:this.padding});return cs.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:cs.enc.Hex.parse(r),content:o}}return{encrypted:!1,content:n}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function V1(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function U1(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 ed(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 H1="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,j1=e=>e instanceof Uint8Array,$1=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),Jo=(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 td(e){if("string"==typeof e&&(e=function YW(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}(e)),!j1(e))throw new Error("expected Uint8Array, got "+typeof e);return e}class I3{clone(){return this._cloneInto()}}function eK(e){const t=r=>e().update(td(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function T3(e=32){if(H1&&"function"==typeof H1.getRandomValues)return H1.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}class nK extends I3{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=$1(this.buffer)}update(t){ed(this);const{view:n,buffer:r,blockLen:o}=this,i=(t=td(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=$1(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,oK=(e,t,n)=>e&t^e&n^t&n,iK=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]),ls=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),us=new Uint32Array(64);class M3 extends nK{constructor(){super(64,32,8,!1),this.A=0|ls[0],this.B=0|ls[1],this.C=0|ls[2],this.D=0|ls[3],this.E=0|ls[4],this.F=0|ls[5],this.G=0|ls[6],this.H=0|ls[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)us[d]=t.getUint32(n,!1);for(let d=16;d<64;d++){const p=us[d-15],m=us[d-2],v=Jo(p,7)^Jo(p,18)^p>>>3,D=Jo(m,17)^Jo(m,19)^m>>>10;us[d]=D+us[d-7]+v+us[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 m=u+(Jo(a,6)^Jo(a,11)^Jo(a,25))+rK(a,c,l)+iK[d]+us[d]|0,D=(Jo(r,2)^Jo(r,13)^Jo(r,22))+oK(r,o,i)|0;u=l,l=c,c=a,a=s+m|0,s=i,i=o,o=r,r=m+D|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(){us.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const G1=eK(()=>new M3),V0=(BigInt(0),BigInt(1)),sK=BigInt(2),U0=e=>e instanceof Uint8Array,aK=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Uc(e){if(!U0(e))throw new Error("Uint8Array expected");let t="";for(let n=0;nr+o.length,0));let n=0;return e.forEach(r=>{if(!U0(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}const q1=e=>(sK<new Uint8Array(e),O3=e=>Uint8Array.from(e);function F3(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=Q1(e),o=Q1(e),i=0;const s=()=>{r.fill(1),o.fill(0),i=0},a=(...d)=>n(o,r,...d),c=(d=Q1())=>{o=a(O3([0]),d),r=a(),0!==d.length&&(o=a(O3([1]),d),r=a())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const p=[];for(;d{let m;for(s(),c(d);!(m=p(l()));)c();return s(),m}}const lK={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 nd(e,t,n={}){const r=(o,i,s)=>{const a=lK[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 On=BigInt(0),Gt=BigInt(1),fs=BigInt(2),uK=BigInt(3),Z1=BigInt(4),P3=BigInt(5),k3=BigInt(8);function Fn(e,t){const n=e%t;return n>=On?n:t+n}function hK(e,t,n){if(n<=On||t 0");if(n===Gt)return On;let r=Gt;for(;t>On;)t&Gt&&(r=r*e%n),e=e*e%n,t>>=Gt;return r}function so(e,t,n){let r=e;for(;t-- >On;)r*=r,r%=n;return r}function H0(e,t){if(e===On||t<=On)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=Fn(e,t),r=t,o=On,i=Gt,s=Gt,a=On;for(;n!==On;){const l=r/n,u=r%n,d=o-s*l,p=i-a*l;r=n,n=u,o=s,i=a,s=d,a=p}if(r!==Gt)throw new Error("invert: does not exist");return Fn(o,t)}BigInt(9),BigInt(16);const mK=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Y1(e,t){const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function B3(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 L3(e){const t=B3(e);return t+Math.ceil(t/2)}class V3 extends I3{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,function A3(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");V1(e.outputLen),V1(e.blockLen)}(t);const r=td(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 V3(e,t).update(n).digest();U3.create=(e,t)=>new V3(e,t);const xK=BigInt(0),X1=BigInt(1);function H3(e){return function yK(e){nd(e,mK.reduce((r,o)=>(r[o]="function",r),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(e.Fp),nd(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Y1(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}const{Ph:DK,aT:AK}=E,aa={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(e){const{Err:t}=aa;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:DK(r),l:e.subarray(n+2)}},toSig(e){const{Err:t}=aa,n="string"==typeof e?AK(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}=aa._parseInt(n.subarray(2)),{d:s,l:a}=aa._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}`}},_o=BigInt(0),cn=BigInt(1),j0=(BigInt(2),BigInt(3));function TK(e){const t=function IK(e){const t=H3(e);return nd(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(Ie){return Fn(Ie,r)}function c(Ie){return H0(Ie,r)}const{ProjectivePoint:l,normPrivateKeyToScalar:u,weierstrassEquation:d,isWithinCurveOrder:p}=function SK(e){const t=function _K(e){const t=H3(e);nd(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||((v,D,L)=>{const q=D.toAffine();return sa(Uint8Array.from([4]),n.toBytes(q.x),n.toBytes(q.y))}),o=t.fromBytes||(v=>{const D=v.subarray(1);return{x:n.fromBytes(D.subarray(0,n.BYTES)),y:n.fromBytes(D.subarray(n.BYTES,2*n.BYTES))}});function i(v){const{a:D,b:L}=t,q=n.sqr(v),K=n.mul(q,v);return n.add(n.add(K,n.mul(v,D)),L)}if(!n.eql(n.sqr(t.Gy),i(t.Gx)))throw new Error("bad generator point: equation left != right");function s(v){return"bigint"==typeof v&&_on.eql(se,n.ZERO);return K(L)&&K(q)?d.ZERO:new d(L,q,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(D){const L=n.invertBatch(D.map(q=>q.pz));return D.map((q,K)=>q.toAffine(L[K])).map(d.fromAffine)}static fromHex(D){const L=d.fromAffine(o(nr("pointHex",D)));return L.assertValidity(),L}static fromPrivateKey(D){return d.BASE.multiply(c(D))}_setWindowSize(D){this._WINDOW_SIZE=D,l.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:D,y:L}=this.toAffine();if(!n.isValid(D)||!n.isValid(L))throw new Error("bad point: x or y not FE");const q=n.sqr(L),K=i(D);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:D}=this.toAffine();if(n.isOdd)return!n.isOdd(D);throw new Error("Field doesn't support isOdd")}equals(D){u(D);const{px:L,py:q,pz:K}=this,{px:se,py:ae,pz:ye}=D,ve=n.eql(n.mul(L,ye),n.mul(se,K)),De=n.eql(n.mul(q,ye),n.mul(ae,K));return ve&&De}negate(){return new d(this.px,n.neg(this.py),this.pz)}double(){const{a:D,b:L}=t,q=n.mul(L,j0),{px:K,py:se,pz:ae}=this;let ye=n.ZERO,ve=n.ZERO,De=n.ZERO,Re=n.mul(K,K),Qe=n.mul(se,se),Ge=n.mul(ae,ae),We=n.mul(K,se);return We=n.add(We,We),De=n.mul(K,ae),De=n.add(De,De),ye=n.mul(D,De),ve=n.mul(q,Ge),ve=n.add(ye,ve),ye=n.sub(Qe,ve),ve=n.add(Qe,ve),ve=n.mul(ye,ve),ye=n.mul(We,ye),De=n.mul(q,De),Ge=n.mul(D,Ge),We=n.sub(Re,Ge),We=n.mul(D,We),We=n.add(We,De),De=n.add(Re,Re),Re=n.add(De,Re),Re=n.add(Re,Ge),Re=n.mul(Re,We),ve=n.add(ve,Re),Ge=n.mul(se,ae),Ge=n.add(Ge,Ge),Re=n.mul(Ge,We),ye=n.sub(ye,Re),De=n.mul(Ge,Qe),De=n.add(De,De),De=n.add(De,De),new d(ye,ve,De)}add(D){u(D);const{px:L,py:q,pz:K}=this,{px:se,py:ae,pz:ye}=D;let ve=n.ZERO,De=n.ZERO,Re=n.ZERO;const Qe=t.a,Ge=n.mul(t.b,j0);let We=n.mul(L,se),Je=n.mul(q,ae),rt=n.mul(K,ye),ht=n.add(L,q),Ie=n.add(se,ae);ht=n.mul(ht,Ie),Ie=n.add(We,Je),ht=n.sub(ht,Ie),Ie=n.add(L,K);let de=n.add(se,ye);return Ie=n.mul(Ie,de),de=n.add(We,rt),Ie=n.sub(Ie,de),de=n.add(q,K),ve=n.add(ae,ye),de=n.mul(de,ve),ve=n.add(Je,rt),de=n.sub(de,ve),Re=n.mul(Qe,Ie),ve=n.mul(Ge,rt),Re=n.add(ve,Re),ve=n.sub(Je,Re),Re=n.add(Je,Re),De=n.mul(ve,Re),Je=n.add(We,We),Je=n.add(Je,We),rt=n.mul(Qe,rt),Ie=n.mul(Ge,Ie),Je=n.add(Je,rt),rt=n.sub(We,rt),rt=n.mul(Qe,rt),Ie=n.add(Ie,rt),We=n.mul(Je,Ie),De=n.add(De,We),We=n.mul(de,Ie),ve=n.mul(ht,ve),ve=n.sub(ve,We),We=n.mul(ht,Je),Re=n.mul(de,Re),Re=n.add(Re,We),new d(ve,De,Re)}subtract(D){return this.add(D.negate())}is0(){return this.equals(d.ZERO)}wNAF(D){return m.wNAFCached(this,l,D,L=>{const q=n.invertBatch(L.map(K=>K.pz));return L.map((K,se)=>K.toAffine(q[se])).map(d.fromAffine)})}multiplyUnsafe(D){const L=d.ZERO;if(D===_o)return L;if(a(D),D===cn)return this;const{endo:q}=t;if(!q)return m.unsafeLadder(this,D);let{k1neg:K,k1:se,k2neg:ae,k2:ye}=q.splitScalar(D),ve=L,De=L,Re=this;for(;se>_o||ye>_o;)se&cn&&(ve=ve.add(Re)),ye&cn&&(De=De.add(Re)),Re=Re.double(),se>>=cn,ye>>=cn;return K&&(ve=ve.negate()),ae&&(De=De.negate()),De=new d(n.mul(De.px,q.beta),De.py,De.pz),ve.add(De)}multiply(D){a(D);let q,K,L=D;const{endo:se}=t;if(se){const{k1neg:ae,k1:ye,k2neg:ve,k2:De}=se.splitScalar(L);let{p:Re,f:Qe}=this.wNAF(ye),{p:Ge,f:We}=this.wNAF(De);Re=m.constTimeNegate(ae,Re),Ge=m.constTimeNegate(ve,Ge),Ge=new d(n.mul(Ge.px,se.beta),Ge.py,Ge.pz),q=Re.add(Ge),K=Qe.add(We)}else{const{p:ae,f:ye}=this.wNAF(L);q=ae,K=ye}return d.normalizeZ([q,K])[0]}multiplyAndAddUnsafe(D,L,q){const K=d.BASE,se=(ye,ve)=>ve!==_o&&ve!==cn&&ye.equals(K)?ye.multiply(ve):ye.multiplyUnsafe(ve),ae=se(this,L).add(se(D,q));return ae.is0()?void 0:ae}toAffine(D){const{px:L,py:q,pz:K}=this,se=this.is0();null==D&&(D=se?n.ONE:n.inv(K));const ae=n.mul(L,D),ye=n.mul(q,D),ve=n.mul(K,D);if(se)return{x:n.ZERO,y:n.ZERO};if(!n.eql(ve,n.ONE))throw new Error("invZ was invalid");return{x:ae,y:ye}}isTorsionFree(){const{h:D,isTorsionFree:L}=t;if(D===cn)return!0;if(L)return L(d,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:D,clearCofactor:L}=t;return D===cn?this:L?L(d,this):this.multiplyUnsafe(t.h)}toRawBytes(D=!0){return this.assertValidity(),r(d,this,D)}toHex(D=!0){return Uc(this.toRawBytes(D))}}d.BASE=new d(t.Gx,t.Gy,n.ONE),d.ZERO=new d(n.ZERO,n.ONE,n.ZERO);const p=t.nBitLength,m=function CK(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>xK;)i&X1&&(s=s.add(a)),a=a.double(),i>>=X1;return s},precomputeWindow(o,i){const{windows:s,windowSize:a}=r(i),c=[];let l=o,u=l;for(let d=0;d>=m,L>c&&(L-=p,s+=X1);const q=D,K=D+Math.abs(L)-1,ae=L<0;0===L?u=u.add(n(v%2!=0,i[q])):l=l.add(n(ae,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(p/2):p);return{CURVE:t,ProjectivePoint:d,normPrivateKeyToScalar:c,weierstrassEquation:i,isWithinCurveOrder:s}}({...t,toBytes(Ie,de,Ee){const Ne=de.toAffine(),we=n.toBytes(Ne.x),$e=sa;return Ee?$e(Uint8Array.from([de.hasEvenY()?2:3]),we):$e(Uint8Array.from([4]),we,n.toBytes(Ne.y))},fromBytes(Ie){const de=Ie.length,Ee=Ie[0],Ne=Ie.subarray(1);if(de!==o||2!==Ee&&3!==Ee){if(de===i&&4===Ee)return{x:n.fromBytes(Ne.subarray(0,n.BYTES)),y:n.fromBytes(Ne.subarray(n.BYTES,2*n.BYTES))};throw new Error(`Point of length ${de} was invalid. Expected ${o} compressed bytes or ${i} uncompressed bytes`)}{const we=Ir(Ne);if(!function s(Ie){return _oUc(ds(Ie,t.nByteLength));function v(Ie){return Ie>r>>cn}const L=(Ie,de,Ee)=>Ir(Ie.slice(de,Ee));class q{constructor(de,Ee,Ne){this.r=de,this.s=Ee,this.recovery=Ne,this.assertValidity()}static fromCompact(de){const Ee=t.nByteLength;return de=nr("compactSignature",de,2*Ee),new q(L(de,0,Ee),L(de,Ee,2*Ee))}static fromDER(de){const{r:Ee,s:Ne}=aa.toSig(nr("DER",de));return new q(Ee,Ne)}assertValidity(){if(!p(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!p(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(de){return new q(this.r,this.s,de)}recoverPublicKey(de){const{r:Ee,s:Ne,recovery:we}=this,$e=De(nr("msgHash",de));if(null==we||![0,1,2,3].includes(we))throw new Error("recovery id invalid");const et=2===we||3===we?Ee+t.n:Ee;if(et>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const Wt=l.fromHex((1&we?"03":"02")+m(et)),bt=c(et),rr=a(-$e*bt),Or=a(Ne*bt),Ot=l.BASE.multiplyAndAddUnsafe(Wt,rr,Or);if(!Ot)throw new Error("point at infinify");return Ot.assertValidity(),Ot}hasHighS(){return v(this.s)}normalizeS(){return this.hasHighS()?new q(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return Hc(this.toDERHex())}toDERHex(){return aa.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Hc(this.toCompactHex())}toCompactHex(){return m(this.r)+m(this.s)}}const K={isValidPrivateKey(Ie){try{return u(Ie),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const Ie=L3(t.n);return function bK(e,t,n=!1){const r=e.length,o=B3(t),i=L3(t);if(r<16||r1024)throw new Error(`expected ${i}-1024 bytes of input, got ${r}`);const a=Fn(n?Ir(e):W1(e),t-Gt)+Gt;return n?K1(a,o):ds(a,o)}(t.randomBytes(Ie),t.n)},precompute:(Ie=8,de=l.BASE)=>(de._setWindowSize(Ie),de.multiply(BigInt(3)),de)};function ae(Ie){const de=Ie instanceof Uint8Array,Ee="string"==typeof Ie,Ne=(de||Ee)&&Ie.length;return de?Ne===o||Ne===i:Ee?Ne===2*o||Ne===2*i:Ie instanceof l}const ve=t.bits2int||function(Ie){const de=Ir(Ie),Ee=8*Ie.length-t.nBitLength;return Ee>0?de>>BigInt(Ee):de},De=t.bits2int_modN||function(Ie){return a(ve(Ie))},Re=q1(t.nBitLength);function Qe(Ie){if("bigint"!=typeof Ie)throw new Error("bigint expected");if(!(_o<=Ie&&IeKt in Ee))throw new Error("sign() legacy options not supported");const{hash:Ne,randomBytes:we}=t;let{lowS:$e,prehash:et,extraEntropy:tt}=Ee;null==$e&&($e=!0),Ie=nr("msgHash",Ie),et&&(Ie=nr("prehashed msgHash",Ne(Ie)));const Wt=De(Ie),bt=u(de),rr=[Qe(bt),Qe(Wt)];if(null!=tt){const Kt=!0===tt?we(n.BYTES):tt;rr.push(nr("extraEntropy",Kt))}const Or=sa(...rr),Ot=Wt;return{seed:Or,k2sig:function kn(Kt){const Io=ve(Kt);if(!p(Io))return;const Xc=c(Io),ci=l.BASE.multiply(Io).toAffine(),Jc=a(ci.x);if(Jc===_o)return;const Np=a(Xc*a(Ot+Jc*bt));if(Np===_o)return;let FN=(ci.x===Jc?0:2)|Number(ci.y&cn),PN=Np;return $e&&v(Np)&&(PN=function D(Ie){return v(Ie)?a(-Ie):Ie}(Np),FN^=1),new q(Jc,PN,FN)}}}(Ie,de,Ee);return F3(t.hash.outputLen,t.nByteLength,t.hmac)(Ne,we)},verify:function ht(Ie,de,Ee,Ne=Je){const we=Ie;if(de=nr("msgHash",de),Ee=nr("publicKey",Ee),"strict"in Ne)throw new Error("options.strict was renamed to lowS");const{lowS:$e,prehash:et}=Ne;let tt,Wt;try{if("string"==typeof we||we instanceof Uint8Array)try{tt=q.fromDER(we)}catch(ci){if(!(ci instanceof aa.Err))throw ci;tt=q.fromCompact(we)}else{if("object"!=typeof we||"bigint"!=typeof we.r||"bigint"!=typeof we.s)throw new Error("PARSE");{const{r:ci,s:Jc}=we;tt=new q(ci,Jc)}}Wt=l.fromHex(Ee)}catch(ci){if("PARSE"===ci.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if($e&&tt.hasHighS())return!1;et&&(de=t.hash(de));const{r:bt,s:rr}=tt,Or=De(de),Ot=c(rr),kn=a(Or*Ot),Kt=a(bt*Ot),Io=l.BASE.multiplyAndAddUnsafe(Wt,kn,Kt)?.toAffine();return!!Io&&a(Io.x)===bt},ProjectivePoint:l,Signature:q,utils:K}}function NK(e){return{hash:e,hmac:(t,...n)=>U3(e,t,function XW(...e){const t=new Uint8Array(e.reduce((r,o)=>r+o.length,0));let n=0;return e.forEach(r=>{if(!j1(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}(...n)),randomBytes:T3}}BigInt(4);const $0=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),z0=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),$3=BigInt(1),G0=BigInt(2),z3=(e,t)=>(e+t/G0)/t;function G3(e){const t=$0,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=so(u,n,t)*u%t,p=so(d,n,t)*u%t,m=so(p,G0,t)*l%t,v=so(m,o,t)*m%t,D=so(v,i,t)*v%t,L=so(D,a,t)*D%t,q=so(L,c,t)*L%t,K=so(q,a,t)*D%t,se=so(K,n,t)*u%t,ae=so(se,s,t)*v%t,ye=so(ae,r,t)*l%t,ve=so(ye,G0,t);if(!J1.eql(J1.sqr(ve),e))throw new Error("Cannot find square root");return ve}const J1=function wK(e,t,n=!1,r={}){if(e<=On)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:o,nByteLength:i}=Y1(e,t);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const s=function gK(e){if(e%Z1===uK){const t=(e+Gt)/Z1;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%k3===P3){const t=(e-P3)/k3;return function(r,o){const i=r.mul(o,fs),s=r.pow(i,t),a=r.mul(o,s),c=r.mul(r.mul(a,fs),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 pK(e){const t=(e-Gt)/fs;let n,r,o;for(n=e-Gt,r=0;n%fs===On;n/=fs,r++);for(o=fs;oFn(c,e),isValid:c=>{if("bigint"!=typeof c)throw new Error("Invalid field element: expected bigint, got "+typeof c);return On<=c&&cc===On,isOdd:c=>(c&Gt)===Gt,neg:c=>Fn(-c,e),eql:(c,l)=>c===l,sqr:c=>Fn(c*c,e),add:(c,l)=>Fn(c+l,e),sub:(c,l)=>Fn(c-l,e),mul:(c,l)=>Fn(c*l,e),pow:(c,l)=>function vK(e,t,n){if(n 0");if(n===On)return e.ONE;if(n===Gt)return t;let r=e.ONE,o=t;for(;n>On;)n&Gt&&(r=e.mul(r,o)),o=e.sqr(o),n>>=Gt;return r}(a,c,l),div:(c,l)=>Fn(c*H0(l,e),e),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>H0(c,e),sqrt:r.sqrt||(c=>s(a,c)),invertBatch:c=>function EK(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?K1(c,i):ds(c,i),fromBytes:c=>{if(c.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${c.length}`);return n?W1(c):Ir(c)}});return Object.freeze(a)}($0,void 0,void 0,{sqrt:G3}),jc=function RK(e,t){const n=r=>TK({...e,...NK(r)});return Object.freeze({...n(t),create:n})}({a:BigInt(0),b:BigInt(7),Fp:J1,n:z0,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=z0,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-$3*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=n,s=BigInt("0x100000000000000000000000000000000"),a=z3(i*e,t),c=z3(-r*e,t);let l=Fn(e-a*n-c*o,t),u=Fn(-a*r-c*i,t);const d=l>s,p=u>s;if(d&&(l=t-l),p&&(u=t-u),l>s||u>s)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:l,k2neg:p,k2:u}}}},G1),W0=BigInt(0),W3=e=>"bigint"==typeof e&&W0o.charCodeAt(0)));n=sa(r,r),K3[e]=n}return G1(sa(n,...t))}const eE=e=>e.toRawBytes(!0).slice(1),tE=e=>ds(e,32),nE=e=>Fn(e,$0),rd=e=>Fn(e,z0),rE=jc.ProjectivePoint;function oE(e){let t=jc.utils.normPrivateKeyToScalar(e),n=rE.fromPrivateKey(t);return{scalar:n.hasEvenY()?t:rd(-t),bytes:eE(n)}}function q3(e){if(!W3(e))throw new Error("bad x: need 0 < x < p");const t=nE(e*e);let r=G3(nE(t*e+BigInt(7)));r%G0!==W0&&(r=nE(-r));const o=new rE(e,r,$3);return o.assertValidity(),o}function Q3(...e){return rd(Ir(K0("BIP0340/challenge",...e)))}function Z3(e,t,n){const r=nr("signature",e,64),o=nr("message",t),i=nr("publicKey",n,32);try{const s=q3(Ir(i)),a=Ir(r.subarray(0,32));if(!W3(a))return!1;const c=Ir(r.subarray(32,64));if(!(e=>"bigint"==typeof e&&W0rE.BASE.multiplyAndAddUnsafe(e,t,n))(s,c,rd(-l));return!(!u||!u.hasEvenY()||u.toAffine().x!==a)}catch{return!1}}const od={getPublicKey:function PK(e){return oE(e).bytes},sign:function kK(e,t,n=T3(32)){const r=nr("message",e),{bytes:o,scalar:i}=oE(t),s=nr("auxRand",n,32),a=tE(i^Ir(K0("BIP0340/aux",s))),c=K0("BIP0340/nonce",a,o,r),l=rd(Ir(c));if(l===W0)throw new Error("sign failed: k is zero");const{bytes:u,scalar:d}=oE(l),p=Q3(u,o,r),m=new Uint8Array(64);if(m.set(u,0),m.set(tE(rd(d+p*i)),32),!Z3(m,r,o))throw new Error("sign: Invalid signature produced");return m},verify:Z3,utils:{randomPrivateKey:jc.utils.randomPrivateKey,lift_x:q3,pointToBytes:eE,numberToBytesBE:ds,bytesToNumberBE:Ir,taggedHash:K0,mod:Fn}},iE="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,sE=e=>e instanceof Uint8Array,aE=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),q0=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),ei=(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 BK=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Tr(e){if(!sE(e))throw new Error("Uint8Array expected");let t="";for(let n=0;nr+o.length,0));let n=0;return e.forEach(r=>{if(!sE(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}class Y3{clone(){return this._cloneInto()}}const UK=e=>"[object Object]"===Object.prototype.toString.call(e)&&e.constructor===Object;function X3(e,t){if(void 0!==t&&("object"!=typeof t||!UK(t)))throw new Error("Options should be object or undefined");return Object.assign(e,t)}function J3(e){const t=r=>e().update(Ti(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Q0(e=32){if(iE&&"function"==typeof iE.getRandomValues)return iE.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}function lE(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function e8(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 Cn={number:lE,bool:function HK(e){if("boolean"!=typeof e)throw new Error(`Expected boolean, not ${e}`)},bytes:e8,hash:function jK(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");lE(e.outputLen),lE(e.blockLen)},exists:function $K(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 zK(e,t){e8(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=q0(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,qK=(e,t,n)=>e&t^e&n^t&n,QK=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]),ps=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),gs=new Uint32Array(64);class t8 extends WK{constructor(){super(64,32,8,!1),this.A=0|ps[0],this.B=0|ps[1],this.C=0|ps[2],this.D=0|ps[3],this.E=0|ps[4],this.F=0|ps[5],this.G=0|ps[6],this.H=0|ps[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)gs[d]=t.getUint32(n,!1);for(let d=16;d<64;d++){const p=gs[d-15],m=gs[d-2],v=ei(p,7)^ei(p,18)^p>>>3,D=ei(m,17)^ei(m,19)^m>>>10;gs[d]=D+gs[d-7]+v+gs[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 m=u+(ei(a,6)^ei(a,11)^ei(a,25))+KK(a,c,l)+QK[d]+gs[d]|0,D=(ei(r,2)^ei(r,13)^ei(r,22))+qK(r,o,i)|0;u=l,l=c,c=a,a=s+m|0,s=i,i=o,o=r,r=m+D|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(){gs.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class ZK extends t8{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 ca=J3(()=>new t8);function la(e){if(!Number.isSafeInteger(e))throw new Error(`Wrong integer: ${e}`)}function Do(...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 ti(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(la(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 ni(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 sd(e,t="="){if(la(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 n8(e){if("function"!=typeof e)throw new Error("normalize fn should be function");return{encode:t=>t,decode:t=>e(t)}}function r8(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(la(s),s<0||s>=t)throw new Error(`Wrong integer: ${s}`)});;){let s=0,a=!0;for(let c=r;cnew ZK);const o8=(e,t)=>t?o8(t,e%t):e,Z0=(e,t)=>e+(t-o8(e,t));function uE(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(Z0(t,n)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${Z0(t,n)}`);let o=0,i=0;const s=2**n-1,a=[];for(const c of e){if(la(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 Mi(e,t=!1){if(la(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(Z0(8,e)>32||Z0(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 uE(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(uE(n,e,8,t))}}}function s8(e){if("function"!=typeof e)throw new Error("unsafeWrapper fn should be function");return function(...t){try{return e.apply(null,t)}catch{}}}Do(Mi(4),ti("0123456789ABCDEF"),ni("")),Do(Mi(5),ti("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),sd(5),ni(""));const Ni=(Do(Mi(5),ti("0123456789ABCDEFGHIJKLMNOPQRSTUV"),sd(5),ni("")),Do(Mi(5),ti("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),ni(""),n8(e=>e.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),Do(Mi(6),ti("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),sd(6),ni(""))),dE=(Do(Mi(6),ti("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),sd(6),ni("")),e=>Do(function i8(e){return la(e),{encode:t=>{if(!(t instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return r8(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(r8(t,e,256))}}}(58),ti(e),ni(""))),fE=(dE("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),dE("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),dE("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),Do(ti("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),ni(""))),l8=[996825010,642813549,513874426,1027748829,705979059];function ad(e){const t=e>>25;let n=(33554431&e)<<5;for(let r=0;r>r&1)&&(n^=l8[r]);return n}function u8(e,t,n=1){const r=e.length;let o=1;for(let i=0;i126)throw new Error(`Invalid prefix (${e})`);o=ad(o)^s>>5}o=ad(o);for(let i=0;id)throw new TypeError(`Wrong string length: ${u.length} (${u}). Expected (8..${d})`);const p=u.toLowerCase();if(u!==p&&u!==u.toUpperCase())throw new Error("String must be lowercase or uppercase");const m=(u=p).lastIndexOf("1");if(0===m||-1===m)throw new Error('Letter "1" must be present between prefix and data only');const v=u.slice(0,m),D=u.slice(m+1);if(D.length<6)throw new Error("Data must be at least 6 characters long");const L=fE.decode(D).slice(0,-6),q=u8(v,L,t);if(!D.endsWith(q))throw new Error(`Invalid checksum in ${u}: expected "${q}"`);return{prefix:v,words:L}}return{encode:function s(u,d,p=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 m=u.length+7+d.length;if(!1!==p&&m>p)throw new TypeError(`Length ${m} exceeds limit ${p}`);return`${u=u.toLowerCase()}1${fE.encode(d)}${u8(u,d,t)}`},decode:a,decodeToBytes:function l(u){const{prefix:d,words:p}=a(u,!1);return{prefix:d,words:p,bytes:r(p)}},decodeUnsafe:s8(a),fromWords:r,fromWordsUnsafe:i,toWords:o}}const ri=d8("bech32");function zc(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function hE(e){if("boolean"!=typeof e)throw new Error(`boolean expected, not ${e}`)}function h8(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function Dt(e,...t){if(!h8(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 ua(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 J0(e,t){Dt(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 _t=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),Gc=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 ms(e){if("string"==typeof e)e=function lq(e){if("string"!=typeof e)throw new Error("string expected, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}(e);else{if(!h8(e))throw new Error("Uint8Array expected, got "+typeof e);e=e.slice()}return e}function ep(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r(Object.assign(t,e),t);function da(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 mE=new Uint8Array(16),oi=_t(mE),fq=(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)}),ao=e=>(e>>>0&255)<<24|(e>>>8&255)<<16|(e>>>16&255)<<8|e>>>24&255;class g8{constructor(t,n){this.blockLen=16,this.outputLen=16,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,Dt(t=ms(t),16);const r=Gc(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 v=0;v<128;v++)c.push({s0:ao(o),s1:ao(i),s2:ao(s),s3:ao(a)}),({s0:o,s1:i,s2:s,s3:a}=fq(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,p=this.windowSize=2**l,m=[];for(let v=0;v>>l-ae-1&1))continue;const{s0:ve,s1:De,s2:Re,s3:Qe}=c[l*v+ae];L^=ve,q^=De,K^=Re,se^=Qe}m.push({s0:L,s1:q,s2:K,s3:se})}this.t=m}_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 p=(1<>>8*D&255;for(let q=8/i-1;q>=0;q--){const K=L>>>i*q&p,{s0:se,s1:ae,s2:ye,s3:ve}=s[m*a+K];c^=se,l^=ae,u^=ye,d^=ve,m+=1}}this.s0=c,this.s1=l,this.s2=u,this.s3=d}update(t){t=ms(t),ua(this);const n=_t(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=ms(t)).slice());super(r,n),r.fill(0)}update(t){t=ms(t),ua(this);const n=_t(t),r=t.length%16,o=Math.floor(t.length/16);for(let i=0;ie(o,r.length).update(ms(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}m8((e,t)=>new g8(e,t)),m8((e,t)=>new gq(e,t)),new Uint8Array(16);const yq=283;function vE(e){return e<<1^yq&-(e>>7)}function Wc(e,t){let n=0;for(;t>0;t>>=1)n^=e&-(1&t),e=vE(e);return n}const EE=(()=>{let e=new Uint8Array(256);for(let n=0,r=1;n<256;n++,r^=vE(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})(),vq=EE.map((e,t)=>EE.indexOf(t)),Eq=e=>e<<24|e>>>8,wE=e=>e<<8|e>>>24;function v8(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(wE),o=r.map(wE),i=o.map(wE),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 bE=v8(EE,e=>Wc(e,3)<<24|e<<16|e<<8|Wc(e,2)),E8=v8(vq,e=>Wc(e,11)<<24|Wc(e,13)<<16|Wc(e,9)<<8|Wc(e,14)),wq=(()=>{const e=new Uint8Array(16);for(let t=0,n=1;t<16;t++,n=vE(n))e[t]=n;return e})();function Fi(e){Dt(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}=bE,r=_t(e),o=r.length,i=a=>ii(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 vs(e,t,n,r,o,i){return e[n<<8&65280|r>>>8&255]^t[o>>>8&65280|i>>>24&255]}function ii(e,t,n,r,o){return e[255&t|65280&n]|e[r>>>16&255|o>>>16&65280]<<16}function Mr(e,t,n,r,o){const{sbox2:i,T01:s,T23:a}=bE;let c=0;t^=e[c++],n^=e[c++],r^=e[c++],o^=e[c++];const l=e.length/4-2;for(let v=0;v{const a=Fi(t),{b:c,o:l,out:u}=function x8(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=_t(e);if(t){let c=16-o;c||(c=16),r+=c}const s=Kc(r,n);return{b:i,o:_t(s),out:s}}(i,o,s),d=_t(n);let p=d[0],m=d[1],v=d[2],D=d[3],L=0;for(;L+4<=c.length;)p^=c[L+0],m^=c[L+1],v^=c[L+2],D^=c[L+3],({s0:p,s1:m,s2:v,s3:D}=Mr(a,p,m,v,D)),l[L++]=p,l[L++]=m,l[L++]=v,l[L++]=D;if(o){const q=function _8(e){const t=new Uint8Array(16),n=_t(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*L));p^=q[0],m^=q[1],v^=q[2],D^=q[3],({s0:p,s1:m,s2:v,s3:D}=Mr(a,p,m,v,D)),l[L++]=p,l[L++]=m,l[L++]=v,l[L++]=D}return a.fill(0),u},decrypt:(i,s)=>{!function b8(e){if(Dt(e),e.length%16!=0)throw new Error("aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size 16")}(i);const a=function xE(e){const t=Fi(e),n=t.slice(),r=t.length,{sbox2:o}=bE,{T0:i,T1:s,T2:a,T3:c}=E8;for(let l=0;l>>8&255]^a[d>>>16&255]^c[d>>>24]}return n}(t),c=_t(n),l=Kc(i.length,s),u=_t(i),d=_t(l);let p=c[0],m=c[1],v=c[2],D=c[3];for(let L=0;L+4<=u.length;){const q=p,K=m,se=v,ae=D;p=u[L+0],m=u[L+1],v=u[L+2],D=u[L+3];const{s0:ye,s1:ve,s2:De,s3:Re}=np(a,p,m,v,D);d[L++]=ye^q,d[L++]=ve^K,d[L++]=De^se,d[L++]=Re^ae}return a.fill(0),function C8(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 Cq{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,Dt(t=ms(t),32);const n=$n(t,0),r=$n(t,2),o=$n(t,4),i=$n(t,6),s=$n(t,8),a=$n(t,10),c=$n(t,12),l=$n(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]=$n(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],p=s[5],m=s[6],v=s[7],D=s[8],L=s[9],q=$n(t,n+0),K=$n(t,n+2),se=$n(t,n+4),ae=$n(t,n+6),ye=$n(t,n+8),ve=$n(t,n+10),De=$n(t,n+12),Re=$n(t,n+14);let Qe=i[0]+(8191&q),Ge=i[1]+(8191&(q>>>13|K<<3)),We=i[2]+(8191&(K>>>10|se<<6)),Je=i[3]+(8191&(se>>>7|ae<<9)),rt=i[4]+(8191&(ae>>>4|ye<<12)),ht=i[5]+(ye>>>1&8191),Ie=i[6]+(8191&(ye>>>14|ve<<2)),de=i[7]+(8191&(ve>>>11|De<<5)),Ee=i[8]+(8191&(De>>>8|Re<<8)),Ne=i[9]+(Re>>>5|o),we=0,$e=we+Qe*a+Ge*(5*L)+We*(5*D)+Je*(5*v)+rt*(5*m);we=$e>>>13,$e&=8191,$e+=ht*(5*p)+Ie*(5*d)+de*(5*u)+Ee*(5*l)+Ne*(5*c),we+=$e>>>13,$e&=8191;let et=we+Qe*c+Ge*a+We*(5*L)+Je*(5*D)+rt*(5*v);we=et>>>13,et&=8191,et+=ht*(5*m)+Ie*(5*p)+de*(5*d)+Ee*(5*u)+Ne*(5*l),we+=et>>>13,et&=8191;let tt=we+Qe*l+Ge*c+We*a+Je*(5*L)+rt*(5*D);we=tt>>>13,tt&=8191,tt+=ht*(5*v)+Ie*(5*m)+de*(5*p)+Ee*(5*d)+Ne*(5*u),we+=tt>>>13,tt&=8191;let Wt=we+Qe*u+Ge*l+We*c+Je*a+rt*(5*L);we=Wt>>>13,Wt&=8191,Wt+=ht*(5*D)+Ie*(5*v)+de*(5*m)+Ee*(5*p)+Ne*(5*d),we+=Wt>>>13,Wt&=8191;let bt=we+Qe*d+Ge*u+We*l+Je*c+rt*a;we=bt>>>13,bt&=8191,bt+=ht*(5*L)+Ie*(5*D)+de*(5*v)+Ee*(5*m)+Ne*(5*p),we+=bt>>>13,bt&=8191;let rr=we+Qe*p+Ge*d+We*u+Je*l+rt*c;we=rr>>>13,rr&=8191,rr+=ht*a+Ie*(5*L)+de*(5*D)+Ee*(5*v)+Ne*(5*m),we+=rr>>>13,rr&=8191;let Or=we+Qe*m+Ge*p+We*d+Je*u+rt*l;we=Or>>>13,Or&=8191,Or+=ht*c+Ie*a+de*(5*L)+Ee*(5*D)+Ne*(5*v),we+=Or>>>13,Or&=8191;let Ot=we+Qe*v+Ge*m+We*p+Je*d+rt*u;we=Ot>>>13,Ot&=8191,Ot+=ht*l+Ie*c+de*a+Ee*(5*L)+Ne*(5*D),we+=Ot>>>13,Ot&=8191;let kn=we+Qe*D+Ge*v+We*m+Je*p+rt*d;we=kn>>>13,kn&=8191,kn+=ht*u+Ie*l+de*c+Ee*a+Ne*(5*L),we+=kn>>>13,kn&=8191;let Kt=we+Qe*L+Ge*D+We*v+Je*m+rt*p;we=Kt>>>13,Kt&=8191,Kt+=ht*d+Ie*u+de*l+Ee*c+Ne*a,we+=Kt>>>13,Kt&=8191,we=(we<<2)+we|0,we=we+$e|0,$e=8191&we,we>>>=13,et+=we,i[0]=$e,i[1]=et,i[2]=tt,i[3]=Wt,i[4]=bt,i[5]=rr,i[6]=Or,i[7]=Ot,i[8]=kn,i[9]=Kt}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){ua(this);const{buffer:n,blockLen:r}=this,o=(t=ms(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 Dq=function _q(e){const t=(r,o)=>e(o).update(ms(r)).digest(),n=e(new Uint8Array(32));return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}(e=>new Cq(e)),I8=e=>Uint8Array.from(e.split("").map(t=>t.charCodeAt(0))),Aq=I8("expand 16-byte k"),Sq=I8("expand 32-byte k"),Iq=_t(Aq),T8=_t(Sq);function qe(e,t){return e<>>32-t}function CE(e){return e.byteOffset%4==0}T8.slice();const M8=2**32-1,N8=new Uint32Array;function cd(e,t){const{allowShortKeys:n,extendNonceFn:r,counterLength:o,counterRight:i,rounds:s}=function uq(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 zc(o),zc(s),hE(i),hE(n),(a,c,l,u,d=0)=>{Dt(a),Dt(c),Dt(l);const p=l.length;if(u||(u=new Uint8Array(p)),Dt(u),zc(d),d<0||d>=M8)throw new Error("arx: counter overflow");if(u.length=M8)throw new Error("arx: counter overflow");const D=Math.min(64,c-v);if(d&&64===D){const L=v/4;if(v%4!=0)throw new Error("arx: invalid block position");for(let K,q=0;q<16;q++)K=L+q,m[K]=p[K]^u[q];v+=64}else{for(let q,L=0;L0;)m.pop().fill(0);return u}}function ld(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],p=t[2],m=t[3],v=t[4],D=t[5],L=t[6],q=t[7],K=o,se=n[0],ae=n[1],ye=n[2],ve=s,De=a,Re=c,Qe=l,Ge=u,We=d,Je=p,rt=m,ht=v,Ie=D,de=L,Ee=q,Ne=K,we=se,$e=ae,et=ye;for(let Wt=0;Wt{e.update(t);const n=t.length%16;n&&e.update(Oq.subarray(n))},Fq=new Uint8Array(32);function O8(e,t,n,r,o){const i=e(t,n,Fq),s=Dq.create(i);o&&R8(s,o),R8(s,r);const a=new Uint8Array(16),c=Gc(a);da(c,0,BigInt(o?o.length:0),!0),da(c,8,BigInt(r.length),!0),s.update(a);const l=s.digest();return i.fill(0),l}const F8=e=>(t,n,r)=>(Dt(t,32),Dt(n),{encrypt:(i,s)=>{const a=i.length,c=a+16;s?Dt(s,c):s=new Uint8Array(c),e(t,n,i,s,1);const l=O8(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?Dt(s,c):s=new Uint8Array(c);const l=i.subarray(0,-16);if(!ep(i.subarray(-16),O8(e,t,n,l,r)))throw new Error("invalid tag");return e(t,n,l,s,1),s}}),P8=(F8(_E),ys({blockSize:64,nonceLength:24,tagLength:16},F8(Rq)));class k8 extends Y3{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,Cn.hash(t);const r=Ti(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 k8(e,t).update(n).digest();ud.create=(e,t)=>new k8(e,t);const DE=new Uint8Array([0]),L8=new Uint8Array;var Pq=Object.defineProperty,mn=(e,t)=>{for(var n in t)Pq(e,n,{get:t[n],enumerable:!0})},fa=Symbol("verified"),kq=e=>e instanceof Object;function U8(e){if(!kq(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;tj8,QueueNode:()=>H8,binarySearch:()=>AE,insertEventIntoAscendingList:()=>Vq,insertEventIntoDescendingList:()=>Lq,normalizeURL:()=>Qc,utf8Decoder:()=>si,utf8Encoder:()=>Ao});var si=new TextDecoder("utf-8"),Ao=new TextEncoder;function Qc(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 Lq(e,t){const[n,r]=AE(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 Vq(e,t){const[n,r]=AE(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 AE(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 H8=class{value;next=null;prev=null;constructor(e){this.value=e}},j8=class{first;last;constructor(){this.first=null,this.last=null}enqueue(e){const t=new H8(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 ip(e){let t=ca(Ao.encode(function Hq(e){if(!U8(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 Tr(t)}var sp=new class{generateSecretKey(){return od.utils.randomPrivateKey()}getPublicKey(e){return Tr(od.getPublicKey(e))}finalizeEvent(e,t){const n=e;return n.pubkey=Tr(od.getPublicKey(t)),n.id=ip(n),n.sig=Tr(od.sign(ip(n),t)),n[fa]=!0,n}verifyEvent(e){if("boolean"==typeof e[fa])return e[fa];const t=ip(e);if(t!==e.id)return e[fa]=!1,!1;try{const n=od.verify(e.sig,t,e.pubkey);return e[fa]=n,n}catch{return e[fa]=!1,!1}}},Es=sp.finalizeEvent,dd=sp.verifyEvent;function $8(e){return 1e3<=e&&e<1e4||[1,2,4,5,6,7,8,16,40,41,42,43,44].includes(e)}function SE(e){return[0,3].includes(e)||1e4<=e&&e<2e4}function z8(e){return 2e4<=e&&e<3e4}function IE(e){return 3e4<=e&&e<4e4}function $q(e){return $8(e)?"regular":SE(e)?"replaceable":z8(e)?"ephemeral":IE(e)?"parameterized":"unknown"}mn({},{Application:()=>jQ,BadgeAward:()=>Yq,BadgeDefinition:()=>PQ,BlockedRelaysList:()=>wQ,BookmarkList:()=>yQ,Bookmarksets:()=>RQ,Calendar:()=>QQ,CalendarEventRSVP:()=>ZQ,ChannelCreation:()=>G8,ChannelHideMessage:()=>q8,ChannelMessage:()=>K8,ChannelMetadata:()=>W8,ChannelMuteUser:()=>Q8,ClassifiedListing:()=>GQ,ClientAuth:()=>Z8,CommunitiesList:()=>vQ,CommunityDefinition:()=>JQ,CommunityPostApproval:()=>sQ,Contacts:()=>Kq,CreateOrUpdateProduct:()=>LQ,CreateOrUpdateStall:()=>BQ,Curationsets:()=>OQ,Date:()=>KQ,DraftClassifiedListing:()=>WQ,DraftLong:()=>UQ,Emojisets:()=>HQ,EncryptedDirectMessage:()=>qq,EncryptedDirectMessages:()=>Qq,EventDeletion:()=>Zq,FileMetadata:()=>eQ,FileServerPreference:()=>_Q,Followsets:()=>TQ,GenericRepost:()=>Xq,Genericlists:()=>MQ,HTTPAuth:()=>NE,Handlerinformation:()=>XQ,Handlerrecommendation:()=>YQ,Highlights:()=>hQ,InterestsList:()=>xQ,Interestsets:()=>kQ,JobFeedback:()=>lQ,JobRequest:()=>aQ,JobResult:()=>cQ,Label:()=>iQ,LightningPubRPC:()=>AQ,LiveChatMessage:()=>tQ,LiveEvent:()=>$Q,LongFormArticle:()=>VQ,Metadata:()=>zq,Mutelist:()=>pQ,NWCWalletInfo:()=>DQ,NWCWalletRequest:()=>Y8,NWCWalletResponse:()=>SQ,NostrConnect:()=>IQ,OpenTimestamps:()=>Jq,Pinlist:()=>gQ,ProblemTracker:()=>nQ,ProfileBadges:()=>FQ,PublicChatsList:()=>EQ,Reaction:()=>ME,RecommendRelay:()=>Wq,RelayList:()=>mQ,Relaysets:()=>NQ,Report:()=>rQ,Reporting:()=>oQ,Repost:()=>TE,SearchRelaysList:()=>bQ,ShortTextNote:()=>Gq,Time:()=>qQ,UserEmojiList:()=>CQ,UserStatuses:()=>zQ,Zap:()=>fQ,ZapGoal:()=>uQ,ZapRequest:()=>dQ,classifyKind:()=>$q,isEphemeralKind:()=>z8,isParameterizedReplaceableKind:()=>IE,isRegularKind:()=>$8,isReplaceableKind:()=>SE});var zq=0,Gq=1,Wq=2,Kq=3,qq=4,Qq=4,Zq=5,TE=6,ME=7,Yq=8,Xq=16,G8=40,W8=41,K8=42,q8=43,Q8=44,Jq=1040,eQ=1063,tQ=1311,nQ=1971,rQ=1984,oQ=1984,iQ=1985,sQ=4550,aQ=5999,cQ=6999,lQ=7e3,uQ=9041,dQ=9734,fQ=9735,hQ=9802,pQ=1e4,gQ=10001,mQ=10002,yQ=10003,vQ=10004,EQ=10005,wQ=10006,bQ=10007,xQ=10015,CQ=10030,_Q=10096,DQ=13194,AQ=21e3,Z8=22242,Y8=23194,SQ=23195,IQ=24133,NE=27235,TQ=3e4,MQ=30001,NQ=30002,RQ=30003,OQ=30004,FQ=30008,PQ=30009,kQ=30015,BQ=30017,LQ=30018,VQ=30023,UQ=30024,HQ=30030,jQ=30078,$Q=30311,zQ=30315,GQ=30402,WQ=30403,KQ=31922,qQ=31923,QQ=31924,ZQ=31925,YQ=31989,XQ=31990,JQ=34550;function ap(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 X8(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 J8(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 rZ(e,t){return t===ap(e,"id")}function oZ(e,t){return t===ap(e,"pubkey")}function iZ(e,t){return t===X8(e,"kind")}function e4(e,t){return{kind:Z8,created_at:Math.floor(Date.now()/1e3),tags:[["relay",e],["challenge",t]],content:""}}mn({},{getHex64:()=>ap,getInt:()=>X8,getSubscriptionId:()=>J8,matchEventId:()=>rZ,matchEventKind:()=>iZ,matchEventPubkey:()=>oZ}),mn({},{makeAuthEvent:()=>e4});try{WebSocket}catch{}try{WebSocket}catch{}var cp={};mn(cp,{BECH32_REGEX:()=>r4,Bech32MaxSize:()=>FE,decode:()=>fd,encodeBytes:()=>up,naddrEncode:()=>vZ,neventEncode:()=>yZ,noteEncode:()=>gZ,nprofileEncode:()=>mZ,npubEncode:()=>pZ,nrelayEncode:()=>EZ,nsecEncode:()=>hZ});var FE=5e3,r4=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function fd(e){let{prefix:t,words:n}=ri.decode(e,FE),r=new Uint8Array(ri.fromWords(n));switch(t){case"nprofile":{let o=lp(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:Tr(o[0][0]),relays:o[1]?o[1].map(i=>si.decode(i)):[]}}}case"nevent":{let o=lp(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:Tr(o[0][0]),relays:o[1]?o[1].map(i=>si.decode(i)):[],author:o[2]?.[0]?Tr(o[2][0]):void 0,kind:o[3]?.[0]?parseInt(Tr(o[3][0]),16):void 0}}}case"naddr":{let o=lp(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:si.decode(o[0][0]),pubkey:Tr(o[2][0]),kind:parseInt(Tr(o[3][0]),16),relays:o[1]?o[1].map(i=>si.decode(i)):[]}}}case"nrelay":{let o=lp(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for nrelay");return{type:"nrelay",data:si.decode(o[0][0])}}case"nsec":return{type:t,data:r};case"npub":case"note":return{type:t,data:Tr(r)};default:throw new Error(`unknown prefix ${t}`)}}function lp(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.lengthAo.encode(n))}))}function yZ(e){let t;return void 0!==e.kind&&(t=function fZ(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)),hd("nevent",dp({0:[$c(e.id)],1:(e.relays||[]).map(r=>Ao.encode(r)),2:e.author?[$c(e.author)]:[],3:t?[new Uint8Array(t)]:[]}))}function vZ(e){let t=new ArrayBuffer(4);return new DataView(t).setUint32(0,e.kind,!1),hd("naddr",dp({0:[Ao.encode(e.identifier)],1:(e.relays||[]).map(r=>Ao.encode(r)),2:[$c(e.pubkey)],3:[new Uint8Array(t)]}))}function EZ(e){return hd("nrelay",dp({0:[Ao.encode(e)]}))}function dp(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)})}),id(...t)}function o4(e,t,n){return PE.apply(this,arguments)}function PE(){return(PE=(0,je.A)(function*(e,t,n){const r=e instanceof Uint8Array?Tr(e):e,i=i4(jc.getSharedSecret(r,"02"+t));let s=Uint8Array.from(Q0(16)),a=Ao.encode(n),c=D8(i,s).encrypt(a);return`${Ni.encode(new Uint8Array(c))}?iv=${Ni.encode(new Uint8Array(s.buffer))}`})).apply(this,arguments)}function xZ(e,t,n){return kE.apply(this,arguments)}function kE(){return(kE=(0,je.A)(function*(e,t,n){const r=e instanceof Uint8Array?Tr(e):e;let[o,i]=n.split("?iv="),a=i4(jc.getSharedSecret(r,"02"+t)),c=Ni.decode(i),l=Ni.decode(o),u=D8(a,c).decrypt(l);return si.decode(u)})).apply(this,arguments)}function i4(e){return e.slice(1,33)}mn({},{decrypt:()=>xZ,encrypt:()=>o4}),mn({},{NIP05_REGEX:()=>s4,isValid:()=>AZ,queryProfile:()=>a4,searchDomain:()=>DZ,useFetchImplementation:()=>_Z});var fp,s4=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/;try{fp=fetch}catch{}function _Z(e){fp=e}function DZ(e){return BE.apply(this,arguments)}function BE(){return(BE=(0,je.A)(function*(e,t=""){try{const n=`https://${e}/.well-known/nostr.json?name=${t}`;return(yield(yield fp(n,{redirect:"error"})).json()).names}catch{return{}}})).apply(this,arguments)}function a4(e){return LE.apply(this,arguments)}function LE(){return(LE=(0,je.A)(function*(e){const t=e.match(s4);if(!t)return null;const[n,r="_",o]=t;try{const i=`https://${o}/.well-known/nostr.json?name=${r}`,s=yield(yield fp(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 AZ(e,t){return VE.apply(this,arguments)}function VE(){return(VE=(0,je.A)(function*(e,t){let n=yield a4(t);return!!n&&n.pubkey===e})).apply(this,arguments)}function IZ(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;rIZ}),mn({},{fetchRelayInformation:()=>NZ,useFetchImplementation:()=>MZ});try{fetch}catch{}function MZ(e){}function NZ(e){return UE.apply(this,arguments)}function UE(){return(UE=(0,je.A)(function*(e){return yield(yield fetch(e.replace("ws://","http://").replace("wss://","https://"),{headers:{Accept:"application/nostr+json"}})).json()})).apply(this,arguments)}function l4(e){let t=0;for(let n=0;n=t)break}return r}function PZ(e,t,n,r){return Es({kind:TE,tags:[...e.tags??[],["e",t.id,n],["p",t.pubkey]],content:""===e.content?"":JSON.stringify(t),created_at:e.created_at},r)}function u4(e){if(e.kind!==TE)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 kZ(e,{skipVerification:t}={}){const n=u4(e);if(void 0===n||""===e.content)return;let r;try{r=JSON.parse(e.content)}catch{return}return r.id===n.id&&(t||dd(r))?r:void 0}mn({},{getPow:()=>l4,minePow:()=>OZ}),mn({},{finishRepostEvent:()=>PZ,getRepostedEvent:()=>kZ,getRepostedEventPointer:()=>u4}),mn({},{NOSTR_URI_REGEX:()=>hp,parse:()=>VZ,test:()=>LZ});var hp=new RegExp(`nostr:(${r4.source})`);function LZ(e){return"string"==typeof e&&new RegExp(`^${hp.source}$`).test(e)}function VZ(e){const t=e.match(new RegExp(`^${hp.source}$`));if(!t)throw new Error(`Invalid Nostr URI: ${e}`);return{uri:t[0],value:t[1],decoded:fd(t[1])}}function HZ(e,t,n){const r=t.tags.filter(o=>o.length>=2&&("e"===o[0]||"p"===o[0]));return Es({...e,kind:ME,tags:[...e.tags??[],...r,["e",t.id],["p",t.pubkey]],content:e.content??"+"},n)}function jZ(e){if(e.kind!==ME)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:()=>HZ,getReactedEventPointer:()=>jZ}),mn({},{matchAll:()=>zZ,regex:()=>HE,replaceAll:()=>GZ});var HE=()=>new RegExp(`\\b${hp.source}\\b`,"g");function*zZ(e){const t=e.matchAll(HE());for(const n of t)try{const[r,o]=n;yield{uri:r,value:o,decoded:fd(o),start:n.index,end:n.index+r.length}}catch{}}function GZ(e,t){return e.replaceAll(HE(),(n,r)=>t({uri:n,value:r,decoded:fd(r)}))}mn({},{channelCreateEvent:()=>KZ,channelHideMessageEvent:()=>ZZ,channelMessageEvent:()=>QZ,channelMetadataEvent:()=>qZ,channelMuteUserEvent:()=>YZ});var KZ=(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 Es({kind:G8,tags:[...e.tags??[]],content:n,created_at:e.created_at},t)},qZ=(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 Es({kind:W8,tags:[["e",e.channel_create_event_id],...e.tags??[]],content:n,created_at:e.created_at},t)},QZ=(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"]),Es({kind:K8,tags:[...n,...e.tags??[]],content:e.content,created_at:e.created_at},t)},ZZ=(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 Es({kind:q8,tags:[["e",e.channel_message_event_id],...e.tags??[]],content:n,created_at:e.created_at},t)},YZ=(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 Es({kind:Q8,tags:[["p",e.pubkey_to_mute],...e.tags??[]],content:n,created_at:e.created_at},t)};mn({},{EMOJI_SHORTCODE_REGEX:()=>d4,matchAll:()=>JZ,regex:()=>jE,replaceAll:()=>eY});var $E,d4=/:(\w+):/,jE=()=>new RegExp(`\\B${d4.source}\\B`,"g");function*JZ(e){const t=e.matchAll(jE());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 eY(e,t){return e.replaceAll(jE(),(n,r)=>t({shortcode:n,name:r}))}mn({},{useFetchImplementation:()=>nY,validateGithub:()=>rY});try{$E=fetch}catch{}function nY(e){$E=e}function rY(e,t,n){return zE.apply(this,arguments)}function zE(){return(zE=(0,je.A)(function*(e,t,n){try{return(yield(yield $E(`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({},{decrypt:()=>v4,encrypt:()=>y4,getConversationKey:()=>p4,v2:()=>lY});var f4=1,h4=65535;function p4(e,t){const n=jc.getSharedSecret(e,"02"+t).subarray(1,33);return function B8(e,t,n){return Cn.hash(e),void 0===n&&(n=new Uint8Array(e.outputLen)),ud(e,Ti(n),Ti(t))}(ca,n,"nip44-v2")}function g4(e,t){const n=function V8(e,t,n,r=32){if(Cn.hash(e),Cn.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=L8);const i=new Uint8Array(o*e.outputLen),s=ud.create(e,t),a=s._cloneInto(),c=new Uint8Array(s.outputLen);for(let l=0;lh4)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}(n);return id(r,t,new Uint8Array(GE(n)-n))}(e),a=_E(r,o,s),c=m4(i,a,n);return Ni.encode(id(new Uint8Array([2]),n,a,c))}function v4(e,t){const{nonce:n,ciphertext:r,mac:o}=function cY(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=Ni.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)}}(e),{chacha_key:i,chacha_nonce:s,hmac_key:a}=g4(t,n);if(!ep(m4(a,r,n),o))throw new Error("invalid MAC");return function aY(e){const t=new DataView(e.buffer).getUint16(0),n=e.subarray(2,2+t);if(th4||n.length!==t||e.length!==2+GE(t))throw new Error("invalid padding");return si.decode(n)}(_E(i,s,r))}var KE,lY={utils:{getConversationKey:p4,calcPaddedLen:GE},encrypt:y4,decrypt:v4};function dY(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 fY(e,t,n){return WE.apply(this,arguments)}function WE(){return(WE=(0,je.A)(function*(e,t,n){const o=yield o4(t,e,JSON.stringify({method:"pay_invoice",params:{invoice:n}})),i={kind:Y8,created_at:Math.round(Date.now()/1e3),content:o,tags:[["p",e]]};return Es(i,t)})).apply(this,arguments)}mn({},{makeNwcRequestEvent:()=>fY,parseConnectionString:()=>dY}),mn({},{getZapEndpoint:()=>gY,makeZapReceipt:()=>vY,makeZapRequest:()=>mY,useFetchImplementation:()=>pY,validateZapRequest:()=>yY});try{KE=fetch}catch{}function pY(e){KE=e}function gY(e){return qE.apply(this,arguments)}function qE(){return(qE=(0,je.A)(function*(e){try{let t="",{lud06:n,lud16:r}=JSON.parse(e.content);if(n){let{words:s}=ri.decode(n,1e3),a=ri.fromWords(s);t=si.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 KE(t)).json();if(i.allowsNostr&&i.nostrPubkey)return i.callback}catch{}return null})).apply(this,arguments)}function mY({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 yY(e){let t;try{t=JSON.parse(e)}catch{return"Invalid zap request JSON."}if(!U8(t))return"Zap request is not a valid Nostr event.";if(!dd(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 vY({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:()=>wY,hashPayload:()=>XE,unpackEventFromToken:()=>w4,validateEvent:()=>A4,validateEventKind:()=>x4,validateEventMethodTag:()=>_4,validateEventPayloadTag:()=>D4,validateEventTimestamp:()=>b4,validateEventUrlTag:()=>C4,validateToken:()=>bY});var E4="Nostr ";function wY(e,t,n){return QE.apply(this,arguments)}function QE(){return(QE=(0,je.A)(function*(e,t,n,r=!1,o){const i={kind:NE,tags:[["u",e],["method",t]],created_at:Math.round((new Date).getTime()/1e3),content:""};o&&i.tags.push(["payload",XE(o)]);const s=yield n(i);return(r?E4:"")+Ni.encode(Ao.encode(JSON.stringify(s)))})).apply(this,arguments)}function bY(e,t,n){return ZE.apply(this,arguments)}function ZE(){return(ZE=(0,je.A)(function*(e,t,n){const r=yield w4(e).catch(i=>{throw i});return yield A4(r,t,n).catch(i=>{throw i})})).apply(this,arguments)}function w4(e){return YE.apply(this,arguments)}function YE(){return(YE=(0,je.A)(function*(e){if(!e)throw new Error("Missing token");e=e.replace(E4,"");const t=si.decode(Ni.decode(e));if(!t||0===t.length||!t.startsWith("{"))throw new Error("Invalid token");return JSON.parse(t)})).apply(this,arguments)}function b4(e){return!!e.created_at&&Math.round((new Date).getTime()/1e3)-e.created_at<60}function x4(e){return e.kind===NE}function C4(e,t){const n=e.tags.find(r=>"u"===r[0]);return!!n&&n.length>0&&n[1]===t}function _4(e,t){const n=e.tags.find(r=>"method"===r[0]);return!!n&&n.length>0&&n[1].toLowerCase()===t.toLowerCase()}function XE(e){return Tr(ca(Ao.encode(JSON.stringify(e))))}function D4(e,t){const n=e.tags.find(o=>"payload"===o[0]);if(!n)return!1;const r=XE(t);return n.length>0&&n[1]===r}function A4(e,t,n,r){return JE.apply(this,arguments)}function JE(){return(JE=(0,je.A)(function*(e,t,n,r){if(!dd(e))throw new Error("Invalid nostr event, signature invalid");if(!x4(e))throw new Error("Invalid nostr event, kind invalid");if(!b4(e))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!C4(e,t))throw new Error("Invalid nostr event, url tag invalid");if(!_4(e,n))throw new Error("Invalid nostr event, method tag invalid");if(r&&"object"==typeof r&&Object.keys(r).length>0&&!D4(e,r))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0})).apply(this,arguments)}function T4(e,t,n,r){const{c:o,dkLen:i,DK:s,PRF:a,PRFSalt:c}=function S4(e,t,n,r){Cn.hash(e);const o=X3({dkLen:32,asyncTick:10},r),{c:i,dkLen:s,asyncTick:a}=o;if(Cn.number(i),Cn.number(s),Cn.number(a),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const c=Ti(t),l=Ti(n),u=new Uint8Array(s),d=ud.create(e,c),p=d._cloneInto().update(l);return{c:i,dkLen:s,asyncTick:a,DK:u,PRF:d,PRFSalt:p}}(e,t,n,r);let l;const u=new Uint8Array(4),d=q0(u),p=new Uint8Array(a.outputLen);for(let m=1,v=0;ve<>>32-t;function M4(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++],p=e[t++]^n[r++],m=e[t++]^n[r++],v=e[t++]^n[r++],D=e[t++]^n[r++],L=e[t++]^n[r++],q=e[t++]^n[r++],K=e[t++]^n[r++],se=e[t++]^n[r++],ae=e[t++]^n[r++],ye=e[t++]^n[r++],ve=s,De=a,Re=c,Qe=l,Ge=u,We=d,Je=p,rt=m,ht=v,Ie=D,de=L,Ee=q,Ne=K,we=se,$e=ae,et=ye;for(let tt=0;tt<8;tt+=2)Ge^=Rt(ve+Ne|0,7),ht^=Rt(Ge+ve|0,9),Ne^=Rt(ht+Ge|0,13),ve^=Rt(Ne+ht|0,18),Ie^=Rt(We+De|0,7),we^=Rt(Ie+We|0,9),De^=Rt(we+Ie|0,13),We^=Rt(De+we|0,18),$e^=Rt(de+Je|0,7),Re^=Rt($e+de|0,9),Je^=Rt(Re+$e|0,13),de^=Rt(Je+Re|0,18),Qe^=Rt(et+Ee|0,7),rt^=Rt(Qe+et|0,9),Ee^=Rt(rt+Qe|0,13),et^=Rt(Ee+rt|0,18),De^=Rt(ve+Qe|0,7),Re^=Rt(De+ve|0,9),Qe^=Rt(Re+De|0,13),ve^=Rt(Qe+Re|0,18),Je^=Rt(We+Ge|0,7),rt^=Rt(Je+We|0,9),Ge^=Rt(rt+Je|0,13),We^=Rt(Ge+rt|0,18),Ee^=Rt(de+Ie|0,7),ht^=Rt(Ee+de|0,9),Ie^=Rt(ht+Ee|0,13),de^=Rt(Ie+ht|0,18),Ne^=Rt(et+$e|0,7),we^=Rt(Ne+et|0,9),$e^=Rt(we+Ne|0,13),et^=Rt($e+we|0,18);o[i++]=s+ve|0,o[i++]=a+De|0,o[i++]=c+Re|0,o[i++]=l+Qe|0,o[i++]=u+Ge|0,o[i++]=d+We|0,o[i++]=p+Je|0,o[i++]=m+rt|0,o[i++]=v+ht|0,o[i++]=D+Ie|0,o[i++]=L+de|0,o[i++]=q+Ee|0,o[i++]=K+Ne|0,o[i++]=se+we|0,o[i++]=ae+$e|0,o[i++]=ye+et|0}function Zc(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),M4(n,i,e,t+=16,n,s)}function O4(e,t,n){const{N:r,r:o,p:i,dkLen:s,blockSize32:a,V:c,B32:l,B:u,tmp:d,blockMixCb:p}=function N4(e,t,n){const r=X3({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:o,r:i,p:s,dkLen:a,asyncTick:c,maxmem:l,onProgress:u}=r;if(Cn.number(o),Cn.number(i),Cn.number(s),Cn.number(a),Cn.number(c),Cn.number(l),void 0!==u&&"function"!=typeof u)throw new Error("progressCb should be function");const d=128*i,p=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 m=d*(o+s);if(m>l)throw new Error(`Scrypt: parameters too large, ${m} (128 * r * (N + p)) > ${l} (maxmem)`);const v=T4(ca,e,t,{c:1,dkLen:d*s}),D=aE(v),L=aE(new Uint8Array(d*o)),q=aE(new Uint8Array(d));let K=()=>{};if(u){const se=2*o*s,ae=Math.max(Math.floor(se/1e4),1);let ye=0;K=()=>{ye++,u&&(!(ye%ae)||ye===se)&&u(ye/se)}}return{N:o,r:i,p:s,dkLen:a,blockSize32:p,V:L,B32:D,B:v,tmp:q,blockMixCb:K,asyncTick:c}}(e,t,n);for(let m=0;m{class e{match(n){return/^ncryptsec/.test(n)}encrypt(n,r){return function _Y(e,t,n=16,r=2){let o=Q0(16),i=2**n,s=O4(t.normalize("NFKC"),o,{N:i,r:8,p:1,dkLen:32}),a=Q0(24),c=Uint8Array.from([r]),u=P8(s,a,c).encrypt(e);return function CY(e,t){return function xY(e,t){let n=ri.toWords(t);return ri.encode(e,n,5e3)}(e,t)}("ncryptsec",id(Uint8Array.from([2]),Uint8Array.from([n]),o,a,c,u))}(cp.decode(n).data,r)}decrypt(n,r){return cp.nsecEncode(function DY(e,t){let{prefix:n,words:r}=ri.decode(e,5e3);if("ncryptsec"!==n)throw new Error(`invalid prefix ${n}, expected 'ncryptsec'`);let o=new Uint8Array(ri.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]]),p=o.slice(43),m=O4(t.normalize("NFKC"),c,{N:a,r:8,p:1,dkLen:32});return P8(m,l,d).decrypt(p)}(n,r))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),P4=(()=>{class e{constructor(n,r,o){this.encryptedUriService=n,this.cryptoJSService=r,this.nostrNcryptsecService=o}decrypt(n,r){var o=this;return(0,je.A)(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{this.\u0275fac=function(r){return new(r||e)(Ke(L1),Ke(D3),Ke(nw))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}}return e})();function AY(e,t){1&e&&(Zn(),_e(0,"svg",8),wt(1,"path",9)(2,"path",15),Me())}function SY(e,t){1&e&&(_e(0,"span",16),ke(1,"Invalid key"),Me())}let IY=(()=>{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:["",[oa.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{this.\u0275fac=function(r){return new(r||e)(xe(P1),xe(Sr),xe(P4))}}static{this.\u0275cmp=Lr({type:e,selectors:[["app-decrypt-qrcode"]],decls:21,vars:5,consts:[["key",""],[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,"submit","formGroup"],["formControlName","key","name","key","placeholder","insert the key","type","password","autocomplete","off",1,"field-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){const i=$o();_e(0,"h1"),ke(1,"Private QRCode"),Me(),_e(2,"div",1),Xn(3,AY,3,0,"svg",2),Me(),_e(4,"form",3),Nt("submit",function(){return qn(i),Qn(o.unlock())}),wt(5,"input",4,0),Xn(7,SY,2,0,"span",5),Me(),_e(8,"div",6)(9,"button",7),Zn(),_e(10,"svg",8),wt(11,"path",9)(12,"path",10),Me(),ke(13," Back "),Me(),Oo(),_e(14,"button",11),Nt("click",function(){return qn(i),Qn(o.unlock())}),Zn(),_e(15,"svg",8),wt(16,"path",9)(17,"path",12)(18,"path",13)(19,"path",14),Me(),ke(20," Unlock "),Me()()}if(2&r){const i=Xi(6);at(3),Et("ngIf",o.encrypted),at(),Et("formGroup",o.form),at(),Ws("has-value",!!i.value),at(2),Et("ngIf",o.invalidKey)}},dependencies:[ns,k0,Pc,_0,D0,Vc,Ju,ta],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})(),TY=(()=>{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{this.\u0275fac=function(r){return new(r||e)(xe(Sr))}}static{this.\u0275cmp=Lr({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&&(_e(0,"h1"),ke(1,"Private QRCode"),Me(),Zn(),_e(2,"svg",0),wt(3,"path",1)(4,"path",2)(5,"path",3)(6,"path",4),Me(),Oo(),wt(7,"textarea",5),_e(8,"div",6)(9,"button",7),Nt("click",function(){return o.close()}),ke(10,"Back"),Me()()),2&r&&(at(7),Et("innerHTML",o.currentState,Of))},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 k4(e,t){const n="object"==typeof t;return new Promise((r,o)=>{const i=new bs({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new Mu)}});e.subscribe(i)})}const MY=["modalContainer"];function NY(e,t){}class pd{static{this.modalInjectSubject=new xt}static{this.modalInject$=pd.modalInjectSubject.asObservable()}constructor(t){this.component=t,this.injectData=null,this.cssClasses=[],this.outletName="default",this.subscription=new He}setData(t){return this.injectData=t,this}setBindToRoute(t){return this.router=t,this}setRootCssClasses(t){return this.cssClasses=t,this}setOutletName(t){return this.outletName=t,this}build(){const t=new xt,n=this.injectData,r=this.component,o=this.outletName;return this.router?(this.subscription.add(this.router.events.pipe(Si(i=>i instanceof Vu)).pipe(rs()).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`),pd.modalInjectSubject.next({component:r,data:n,outletName:o,cssClasses:this.cssClasses,response:t}),t.asObservable()}}let rw=(()=>{class e{createModal(n){return new pd(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}}return e})(),RY=(()=>{class e{constructor(n){this.ngZone=n,this.modalInject$=pd.modalInject$,this.classes=[],this.isOpen=!1,this.content=null,this.subscriptions=new He,this.container=null,this.display="none",this.showingDisplay="block",this.name="default",this.opened=new on,this.closed=new on}ngOnInit(){this.listenModalInjection()}listenModalInjection(){this.subscriptions.add(this.modalInject$.subscribe({next:n=>this.renderModal(n)}))}renderModal(n){n.outletName===this.name&&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{this.\u0275fac=function(r){return new(r||e)(xe(St))}}static{this.\u0275cmp=Lr({type:e,selectors:[["modal-outlet"]],viewQuery:function(r,o){if(1&r&&ky(MY,5,to),2&r){let i;yh(i=vh())&&(o.container=i.first)}},hostVars:2,hostBindings:function(r,o){2&r&&Gs("display",o.display)},inputs:{showingDisplay:"showingDisplay",name:"name"},outputs:{opened:"opened",closed:"closed"},decls:2,vars:0,consts:[["modalContainer",""]],template:function(r,o){1&r&&Xn(0,NY,0,0,"ng-template",null,0,GA)},encapsulation:2})}}return e})(),ow=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({providers:[rw]})}}return e})();class B4{close(){this.response.complete()}}function OY(e,t){1&e&&(_e(0,"span",33),ke(1,"* required"),Me())}function FY(e,t){1&e&&(_e(0,"span",34),ke(1,"hey calm down"),Me())}let PY=(()=>{class e extends B4{constructor(n){super(),this.formBuilder=n,this.response=new xt,this.submitted=!1,this.form=this.formBuilder.group({algorithm:["",[oa.required.bind(this)]],kdfHasher:["",[oa.required.bind(this)]],kdfRounds:["",[oa.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{this.\u0275fac=function(r){return new(r||e)(xe(P1))}}static{this.\u0275cmp=Lr({type:e,selectors:[["app-config"]],features:[Pt],decls:63,vars:3,consts:[["encryptKDFRounds",""],["novalidate","","autocomplete","off",3,"submit","formGroup"],["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"],["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){const i=$o();_e(0,"form",1),Nt("submit",function(){return qn(i),Qn(o.onSubmit())}),_e(1,"fieldset")(2,"legend"),ke(3,"Config"),Me(),_e(4,"div")(5,"label",2),ke(6,"Select an algorithm"),Me(),_e(7,"select",3)(8,"option",4),ke(9,"aes/cbc"),Me(),_e(10,"option",5),ke(11,"aes/ecb"),Me(),_e(12,"option",6),ke(13,"aes/ctr"),Me(),_e(14,"option",7),ke(15,"aes/gcm"),Me(),_e(16,"option",8),ke(17,"aes/siv"),Me()()(),_e(18,"div")(19,"label",9),ke(20,"Select a KDF hasher"),Me(),_e(21,"select",10)(22,"option",11),ke(23,"sha256"),Me(),_e(24,"option",12),ke(25,"sha384"),Me(),_e(26,"option",13),ke(27,"sha512"),Me(),_e(28,"option",14),ke(29,"sha512_256"),Me(),_e(30,"option",15),ke(31,"sha3_224"),Me(),_e(32,"option",16),ke(33,"sha3_256"),Me(),_e(34,"option",17),ke(35,"sha3_384"),Me(),_e(36,"option",18),ke(37,"sha3_512"),Me(),_e(38,"option",19),ke(39,"keccak_224"),Me(),_e(40,"option",20),ke(41,"keccak_256"),Me(),_e(42,"option",21),ke(43,"keccak_384"),Me(),_e(44,"option",22),ke(45,"keccak_512"),Me()()(),_e(46,"div")(47,"label",23),ke(48,"KDF rounds:"),Me(),wt(49,"input",24,0),Xn(51,OY,2,0,"span",25)(52,FY,2,0,"span",26),Me(),_e(53,"div")(54,"label",27),ke(55,"Set config as default:"),Me(),wt(56,"input",28),Me()(),wt(57,"div",29),_e(58,"div",30)(59,"button",31),Nt("click",function(){return qn(i),Qn(o.close())}),ke(60,"Back"),Me(),_e(61,"button",32),ke(62,"Configure"),Me()()()}if(2&r){const i=Xi(50);Et("formGroup",o.form),at(51),Et("ngIf",o.getErrors("encryptKDFRounds","required")),at(),Et("ngIf",i.value.length>3)}},dependencies:[ns,k0,f3,p3,Pc,I1,h1,B0,_0,D0,L0,Vc,Ju],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 kY{static getValidator(){return t=>t.get("key")?.value===t.get("confirmKey")?.value?null:{confirmKey:!0}}}class BY{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}=cp.decode(r);return"npub"===o?{invalidNostrPublicGivenInstead:!0}:"nsec"===o?null:{invalidNostrSecret:!0}}catch{return{invalidNostrSecret:!0}}}}}function LY(e,t){if(1&e&&(_e(0,"div",38)(1,"strong"),ke(2,"encode: "),Me(),_e(3,"span"),ke(4,"encrypted uri"),Me(),ke(5,", "),_e(6,"strong"),ke(7,"algorithm: "),Me(),_e(8,"span"),ke(9),Me(),ke(10,", "),_e(11,"strong"),ke(12,"kdf: "),Me(),_e(13,"span"),ke(14,"pbkdf2"),Me(),ke(15,", "),_e(16,"strong"),ke(17,"hasher: "),Me(),_e(18,"span"),ke(19),Me(),ke(20,", "),_e(21,"strong"),ke(22,"iterations: "),Me(),_e(23,"span"),ke(24),Me(),ke(25,", "),_e(26,"strong"),ke(27,"key length: "),Me(),_e(28,"span"),ke(29,"32"),Me()()),2&e){let n,r,o;const i=Jn();at(9),mc(null==(n=i.getChoosenConfig())?null:n.algorithm),at(10),mc(null==(r=i.getChoosenConfig())?null:r.kdfHasher),at(5),mc(null==(o=i.getChoosenConfig())?null:o.kdfRounds)}}function VY(e,t){1&e&&(_e(0,"div",38)(1,"strong"),ke(2,"encode: "),Me(),_e(3,"span"),ke(4,"nostr nip49"),Me(),ke(5,", "),_e(6,"strong"),ke(7,"algorithm: "),Me(),_e(8,"span"),ke(9,"xchacha20/poly1305"),Me(),ke(10,", "),_e(11,"strong"),ke(12,"kdf: "),Me(),_e(13,"span"),ke(14,"scrypt"),Me(),ke(15,", "),_e(16,"strong"),ke(17,"exponential iterations: "),Me(),_e(18,"span"),ke(19,"16"),Me(),ke(20,", "),_e(21,"strong"),ke(22,"key length: "),Me(),_e(23,"span"),ke(24,"32"),Me()())}function UY(e,t){1&e&&wt(0,"input",39)}function HY(e,t){1&e&&wt(0,"textarea",40)}function jY(e,t){1&e&&(_e(0,"span",41),ke(1,"*This field is required!"),Me())}function $Y(e,t){1&e&&(_e(0,"span",41),ke(1,"*Invalid! Nostr public (npub) was given instead Nostr Secret (nsec)"),Me())}function zY(e,t){1&e&&(_e(0,"span",41),ke(1,"*Invalid Nostr Secret was given!"),Me())}function GY(e,t){1&e&&(_e(0,"span",41),ke(1,"*This field is required!"),Me())}function WY(e,t){1&e&&(_e(0,"span",41),ke(1,"*This field is required!"),Me())}function KY(e,t){1&e&&(_e(0,"span",41),ke(1,"*Divergent confirmation field!"),Me())}let qY=(()=>{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:["",[oa.required.bind(this)]],key:["",[oa.required.bind(this)]],confirmKey:["",[oa.required.bind(this)]]}),this.form.addValidators(kY.getValidator()),this.form.addValidators(BY.getValidator())}customizeConfigs(){k4(this.modalService.createModal(PY).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{this.\u0275fac=function(r){return new(r||e)(xe(Sr),xe(P1),xe(rw),xe(L1),xe(nw))}}static{this.\u0275cmp=Lr({type:e,selectors:[["app-generate-qrcode"]],decls:56,vars:15,consts:[["radioConfigDefault",""],["radioConfigNostrCredential",""],["radioConfigCustomized",""],["key",""],["confirmKey",""],["id","generaQRCodeForm","novalidate","","autocomplete","off",3,"submit","formGroup"],[1,"buttons"],["for","configDefault",1,"btn-radio"],["name","config","formControlName","config","id","configDefault","type","radio","value","default","checked",""],["type","button",1,"btn",3,"click"],["for","configNostrCredential",1,"btn-radio"],["name","config","formControlName","config","id","configNostrCredential","type","radio","value","nostrCredential"],["for","configCustomized",1,"btn-radio",3,"click"],["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"],["name","confirmKey","placeholder","Confirm the key","formControlName","confirmKey","type","password","autocomplete","off",1,"field-key"],["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=$o();_e(0,"h1"),ke(1,"Private QRCode"),Me(),_e(2,"form",5),Nt("submit",function(){return qn(i),Qn(o.onSubmit())}),_e(3,"div",6)(4,"label",7,0),wt(6,"input",8),_e(7,"button",9),Nt("click",function(){return qn(i),Xi(5).click(),Qn(o.config=o.defaultConfigs)}),ke(8," Default "),Me()(),_e(9,"label",10,1),wt(11,"input",11),_e(12,"button",9),Nt("click",function(){return qn(i),Xi(10).click(),Qn(o.config=null)}),ke(13," Nostr "),Me()(),_e(14,"label",12,2),Nt("click",function(){return qn(i),Qn(o.customizeConfigs())}),wt(16,"input",13),_e(17,"button",9),Nt("click",function(){return qn(i),Qn(Xi(15).click())}),ke(18," Customized "),Me()()(),Xn(19,LY,30,3,"div",14)(20,VY,25,0,"div",14),wt(21,"input",15),Xn(22,UY,1,0,"input",16)(23,HY,1,0,"textarea",17)(24,jY,2,0,"span",18)(25,$Y,2,0,"span",18)(26,zY,2,0,"span",18),wt(27,"input",19,3),Xn(29,GY,2,0,"span",18),wt(30,"input",20,4),Xn(32,WY,2,0,"span",18)(33,KY,2,0,"span",18),Me(),_e(34,"div",6)(35,"button",21),Zn(),_e(36,"svg",22),wt(37,"path",23)(38,"path",24),Me(),ke(39," Back "),Me(),Oo(),_e(40,"button",25),Zn(),_e(41,"svg",22),wt(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),Me(),ke(55," Generate "),Me()()}if(2&r){const i=Xi(28),s=Xi(31);at(2),Et("formGroup",o.form),at(17),Et("ngIf",o.getChoosenConfig()),at(),Et("ngIf",!o.getChoosenConfig()),at(2),Et("ngIf",!o.config),at(),Et("ngIf",o.config),at(),Et("ngIf",o.getErrorFromField("content")),at(),Et("ngIf",o.getErrorFromForm("invalidNostrPublicGivenInstead")),at(),Et("ngIf",o.getErrorFromForm("invalidNostrSecret")),at(),Ws("has-value",!!i.value),at(2),Et("ngIf",o.getErrorFromField("key")),at(),Ws("has-value",!!s.value),at(2),Et("ngIf",o.getErrorFromField("confirmKey")),at(),Et("ngIf",o.getErrorFromForm("confirmKey"))}},dependencies:[ns,ta,k0,Pc,T1,_0,D0,L0,Vc,Ju],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 iw=(()=>{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,je.A)(function*(){try{return!!(yield e.listCameras(!1)).length}catch{return!1}})()}static listCameras(n=!1){return(0,je.A)(function*(){if(!navigator.mediaDevices)return[];let o,r=function(){var i=(0,je.A)(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,je.A)(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,je.A)(function*(){n._flashOn?yield n.turnFlashOff():yield n.turnFlashOn()})()}turnFlashOn(){var n=this;return(0,je.A)(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,je.A)(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,je.A)(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,je.A)(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,je.A)(function*(){n!==r._preferredCamera&&(r._preferredCamera=n,yield r._restartVideoStream())})()}static scanImage(n,r,o,i,s=!1,a=!1){return(0,je.A)(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,p;if([o,u]=yield Promise.all([o||e.createQrEngine(),e._loadImage(n)]),[i,d]=e._drawToCanvas(u,c,i,s),o instanceof Worker){let m=o;r||e._postWorkerMessageSync(m,"inversionMode","both"),p=yield new Promise((v,D)=>{let L,q,K,se=-1;q=ye=>{ye.data.id===se&&(m.removeEventListener("message",q),m.removeEventListener("error",K),clearTimeout(L),null!==ye.data.data?v({data:ye.data.data,cornerPoints:e._convertPoints(ye.data.cornerPoints,c)}):D(e.NO_QR_CODE_FOUND))},K=ye=>{m.removeEventListener("message",q),m.removeEventListener("error",K),clearTimeout(L),D("Scanner error: "+(ye?ye.message||ye:"Unknown Error"))},m.addEventListener("message",q),m.addEventListener("error",K),L=setTimeout(()=>K("timeout"),1e4);let ae=d.getImageData(0,0,i.width,i.height);se=e._postWorkerMessageSync(m,"decode",ae,[ae.data.buffer])})}else p=yield Promise.race([new Promise((m,v)=>window.setTimeout(()=>v("Scanner error: timeout"),1e4)),(0,je.A)(function*(){try{var[m]=yield o.detect(i);if(!m)throw e.NO_QR_CODE_FOUND;return{data:m.rawValue,cornerPoints:e._convertPoints(m.cornerPoints,c)}}catch(v){if(/not implemented|service unavailable/.test(m=v.message||v))return e._disableBarcodeDetector=!0,e.scanImage(n,{scanRegion:c,canvas:i,disallowCanvasResizing:s,alsoTryWithoutScanRegion:a});throw`Scanner error: ${m}`}})()]);return l?p:p.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,je.A)(function*(){if(n&&console.warn("Specifying a worker path is not required and not supported anymore."),n=()=>y.e(43).then(y.bind(y,6043)).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,p=i/s;switch(u){case"none":var m=r,v=o;break;case"fill":m=i,v=s;break;default:("cover"===u?d>p:d{const ae=parseFloat(K);return K.endsWith("%")?(se?s-v:i-m)*ae/100:ae});p=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*m+"px",d.height=p/o*v+"px",d.top=`${c+L+q/o*v}px`,o=/scaleX\(-1\)/.test(n.style.transform),d.left=`${a+(o?i-D-m:D)+(o?r-u-l:u)/r*m}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,je.A)(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,je.A)(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,je.A)(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,je.A)(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,je.A)(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,je.A)(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 ha=y(5083),L4=y(1889);const gd=(0,ha.F3)("Filesystem",{web:()=>y.e(937).then(y.bind(y,2937)).then(e=>new e.FilesystemWeb)}),V4=(0,ha.F3)("Share",{web:()=>y.e(227).then(y.bind(y,1227)).then(e=>new e.ShareWeb)});function yr(...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 Nr(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 Rr(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 yd(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 H4=(e,t)=>t?H4(t,e%t):e,pp=(e,t)=>e+(t-H4(e,t));function gp(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(pp(t,n)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${pp(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 Kr(e,t=!1){if(e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(pp(8,e)>32||pp(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!function md(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 gp(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(gp(n,e,8,t))}}}const aw=yr(Kr(6),Nr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),yd(6),Rr(""));class eX extends ha.E_{constructor(){super(...arguments),this.ERROR_PICK_FILE_CANCELED="pickFiles canceled."}convertHeicToJpeg(t){var n=this;return(0,je.A)(function*(){throw n.unimplemented("Not implemented on web.")})()}pickFiles(t){var n=this;return(0,je.A)(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,je.A)(function*(){return n.pickFiles(Object.assign({types:["image/*"]},t))})()}pickMedia(t){var n=this;return(0,je.A)(function*(){return n.pickFiles(Object.assign({types:["image/*","video/*"]},t))})()}pickVideos(t){var n=this;return(0,je.A)(function*(){return n.pickFiles(Object.assign({types:["video/*"]},t))})()}openFilePicker(t){var n=this;return(0,je.A)(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,je.A)(function*(){yield n.wait(1e3),!a&&s(void 0)}),{once:!0}),c.click()})})()}getDataFromFile(t){return(0,je.A)(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,je.A)(function*(){return new Promise(n=>setTimeout(n,t))})()}}const tX=(0,ha.F3)("FilePicker",{web:()=>new eX});let lw=(()=>{class e{base64ToBlob(n){const[,,r,,o]=Array.from(n.match(/(data:)([^ ]+)(;base64,)([^ ]+)/)||[]),i=aw.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,`+aw.encode(a))},o.readAsArrayBuffer(n)}):Promise.resolve("")}save(n,r){return"web"===ha.Ii.getPlatform()?this.webSave(this.base64ToBlob(n),r):this.androidSave(n,r),Promise.resolve()}share(n,r){return"web"===ha.Ii.getPlatform()?this.webShare(this.base64ToBlob(n),r):this.androidShare(n,r)}load(){var n=this;return(0,je.A)(function*(){return"web"===ha.Ii.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,je.A)(function*(){return yield gd.requestPermissions(),yield gd.writeFile({path:r,data:n,directory:L4.__.Documents}),Promise.resolve()})()}webShare(n,r){return navigator.share({title:r,files:[new File([n],r,{type:n.type})]})}androidShare(n,r){return(0,je.A)(function*(){yield gd.requestPermissions();const o=yield gd.writeFile({path:r,data:n,directory:L4.__.Cache});return yield V4.share({title:r,files:[o.uri]}),Promise.resolve()})()}webLoad(n="image/*"){var r=this;return(0,je.A)(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,je.A)(function*(){yield gd.requestPermissions();const r=(yield tX.pickImages({multiple:!1,readData:!0})).files[0];return Promise.resolve(`data:${r.mimeType};base64,${r.data||""}`)})()}isSharable(){return(0,je.A)(function*(){if(navigator.share)return Promise.resolve(!0);const n=yield V4.canShare();return"Capacitor"in window&&n.value?Promise.resolve(!0):Promise.resolve(!1)})()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}}return e})();const nX=["video"];function rX(e,t){if(1&e){const n=$o();_e(0,"button",8),Nt("click",function(){return qn(n),Qn(Jn().flipCamera())}),Zn(),_e(1,"svg",9),wt(2,"path",3)(3,"path",10)(4,"path",11)(5,"path",12)(6,"path",13),Me()()}}let oX=(()=>{class e extends B4{constructor(){super(...arguments),this.cameras=[],this.response=new xt}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=this.scanning._preferredCamera,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,je.A)(function*(){r.stopScanning(),r.scanning=new iw(n,i=>{r.response.next(i.data),r.close()},{}),yield r.scanning.start(),r.cameras=yield iw.listCameras(),console.info("cameras",r.cameras);let o=r.chooseCam(r.cameras);return o?r.scanning._preferredCamera!==o&&(yield r.scanning.setCamera(o)):(o=r.cameras.find(i=>/rear|back|environment/i.test(i.label))?.id||r.cameras[r.cameras.length-1]?.id||null,o&&(yield r.scanning.setCamera(o))),setTimeout(()=>console.info("scanning",r.scanning)),Promise.resolve()})()}chooseCam(n){return localStorage.getItem("privateQRcodeChoosenCameraId")||null}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{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Mn(e)))(o||e)}})()}static{this.\u0275cmp=Lr({type:e,selectors:[["app-modal-scan-qrcode"]],viewQuery:function(r,o){if(1&r&&ky(nX,5,xr),2&r){let i;yh(i=vh())&&(o.videoEl=i.first)}},features:[Pt],decls:8,vars:1,consts:[["video",""],["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",""],["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){if(1&r){const i=$o();_e(0,"button",1),Nt("click",function(){return qn(i),Qn(o.close())}),Zn(),_e(1,"svg",2),wt(2,"path",3)(3,"path",4)(4,"path",5),Me()(),Xn(5,rX,7,0,"button",6),Oo(),wt(6,"video",7,0)}2&r&&(at(5),Et("ngIf",o.cameras.length>1))},dependencies:[ns],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})(),Q4=(()=>{class e{constructor(n){this.modalService=n}scan(){var n=this;return(0,je.A)(function*(){const r=yield k4(n.modalService.createModal(oX).build());return Promise.resolve(r||"")})()}static{this.\u0275fac=function(r){return new(r||e)(Ke(rw))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const iX=()=>["/generate"];let sX=(()=>{class e{constructor(n,r,o){this.router=n,this.fileManagerService=r,this.scanQrcodeService=o,this.appVersion="0.1.1"}uploadPicture(){this.fileManagerService.load().then(n=>{iw.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{this.\u0275fac=function(r){return new(r||e)(xe(Sr),xe(lw),xe(Q4))}}static{this.\u0275cmp=Lr({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&&(_e(0,"h1"),ke(1,"Private QRCode"),Me(),Zn(),_e(2,"svg",0),wt(3,"path",1)(4,"path",2),Me(),Oo(),wt(5,"div",3),_e(6,"button",4),Nt("click",function(){return o.uploadPicture()}),Zn(),_e(7,"svg",5),wt(8,"path",1)(9,"path",6)(10,"path",7)(11,"path",8)(12,"path",9)(13,"path",10)(14,"path",11),Me(),ke(15," Load QRCode\n"),Me(),Oo(),_e(16,"button",4),Nt("click",function(){return o.openQrcodeScanner()}),Zn(),_e(17,"svg",5),wt(18,"path",1)(19,"path",12)(20,"path",13),Me(),ke(21," Scan QRCode\n"),Me(),Oo(),_e(22,"button",14),Zn(),_e(23,"svg",5),wt(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),Me(),ke(37," Generate QRCode\n"),Me(),Oo(),_e(38,"footer",27),ke(39),Me()),2&r&&(at(22),Et("routerLink",jy(2,iX)),at(17),mc(o.appVersion))},dependencies:[ta],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 aX=y(8314),ct=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}(ct||{});const Pi="*";function cX(e,t){return{type:ct.Trigger,name:e,definitions:t,options:{}}}function Z4(e,t=null){return{type:ct.Animate,styles:t,timings:e}}function Ed(e){return{type:ct.Style,styles:e,offset:null}}function uw(e,t,n){return{type:ct.State,name:e,styles:t,options:n}}function Y4(e,t,n=null){return{type:ct.Transition,expr:e,animation:t,options:n}}class wd{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 X4{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 J4=["toast-component",""];function pX(e,t){if(1&e){const n=$o();_e(0,"button",5),Nt("click",function(){return qn(n),Qn(Jn().remove())}),_e(1,"span",6),ke(2,"\xd7"),Me()()}}function gX(e,t){if(1&e&&(su(0),ke(1),au()),2&e){const n=Jn(2);at(),xi("[",n.duplicatesCount+1,"]")}}function mX(e,t){if(1&e&&(_e(0,"div"),ke(1),Xn(2,gX,2,1,"ng-container",4),Me()),2&e){const n=Jn();bi(n.options.titleClass),Dr("aria-label",n.title),at(),xi(" ",n.title," "),at(),Et("ngIf",n.duplicatesCount)}}function yX(e,t){if(1&e&&wt(0,"div",7),2&e){const n=Jn();bi(n.options.messageClass),Et("innerHTML",n.message,Of)}}function vX(e,t){if(1&e&&(_e(0,"div",8),ke(1),Me()),2&e){const n=Jn();bi(n.options.messageClass),Dr("aria-label",n.message),at(),xi(" ",n.message," ")}}function EX(e,t){if(1&e&&(_e(0,"div"),wt(1,"div",9),Me()),2&e){const n=Jn();at(),Gs("width",n.width()+"%")}}class AX{_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 SX{_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 IX{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new xt;_activate=new xt;_manualClose=new xt;_resetTimeout=new xt;_countDuplicate=new xt;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 vp{toastId;config;message;title;toastType;toastRef;_onTap=new xt;_onAction=new xt;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 tN=new Ve("ToastConfig");class TX extends SX{_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 MX=(()=>{class e{_document=Ce(jn);_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 NX{_portalHost;constructor(t){this._portalHost=t}attach(t,n=!0){return this._portalHost.attach(t,n)}detach(){return this._portalHost.detach()}}let RX=(()=>{class e{_overlayContainer=Ce(MX);_componentFactoryResolver=Ce(ql);_appRef=Ce(ro);_document=Ce(jn);_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 TX(n,this._componentFactoryResolver,this._appRef)}_createOverlayRef(n){return new NX(this._createPortalHost(n))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),fw=(()=>{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(Hr.HTML,r));const u=new IX(c),d=new vp(this.index,i,l,o,n,u),m=fn.create({providers:[{provide:vp,useValue:d}],parent:this._injector}),v=new AX(i.toastComponent,m),D=c.attach(v,i.newestOnTop);u.componentInstance=D.instance;const L={toastId:this.index,title:o||"",message:r||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:D};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{L.toastRef.activate()})),this.toasts.push(L),L}static \u0275fac=function(r){return new(r||e)(Ke(tN),Ke(RX),Ke(fn),Ke(eT),Ke(St))};static \u0275prov=Ue({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const OX={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=Vo(-1);toastClasses="";state;get _state(){return this.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=Vo({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.update(n=>({...n,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.set((this.hideTime-n)/this.options.timeOut*100),"increasing"===this.options.progressAnimation&&this.width.update(o=>100-o),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(n=>({...n,value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state().value&&(clearTimeout(this.timeout),this.state.update(n=>({...n,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.set(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.set(-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)(xe(fw),xe(vp),xe(St))};static \u0275cmp=Lr({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(r,o){1&r&&Nt("click",function(){return o.tapToast()})("mouseenter",function(){return o.stickAround()})("mouseleave",function(){return o.delayedHideToast()}),2&r&&(Ny("@flyInOut",o._state),bi(o.toastClasses),Gs("display",o.displayStyle))},standalone:!0,features:[Eh],attrs:J4,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&&Xn(0,pX,3,0,"button",0)(1,mX,3,5,"div",1)(2,yX,1,3,"div",2)(3,vX,2,4,"div",3)(4,EX,2,2,"div",4),2&r&&(Et("ngIf",o.options.closeButton),at(),Et("ngIf",o.title),at(),Et("ngIf",o.message&&o.options.enableHtml),at(),Et("ngIf",o.message&&!o.options.enableHtml),at(),Et("ngIf",o.options.progressBar))},dependencies:[ns],encapsulation:2,data:{animation:[cX("flyInOut",[uw("inactive",Ed({opacity:0})),uw("active",Ed({opacity:1})),uw("removed",Ed({opacity:0})),Y4("inactive => active",Z4("{{ easeTime }}ms {{ easing }}")),Y4("active => removed",Z4("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return e})()},FX=(e={})=>function ul(e){return{\u0275providers:e}}([{provide:tN,useValue:{default:OX,config:e}}]);let PX=(()=>{class e{static forRoot(n={}){return{ngModule:e,providers:[FX(n)]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=un({type:e});static \u0275inj=an({})}return e})();const kX=()=>["/home"];function BX(e,t){if(1&e){const n=$o();_e(0,"button",8),Nt("click",function(){return qn(n),Qn(Jn().share())}),Zn(),_e(1,"svg",5),wt(2,"path",6)(3,"path",14)(4,"path",15)(5,"path",16)(6,"path",17)(7,"path",18),Me(),ke(8," Share "),Me()}}const LX=[{path:"home",component:sX},{path:"generate",component:qY},{path:"open",component:IY},{path:"opened",component:TY},{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,aX.mo)(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,je.A)(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,je.A)(function*(){const r=n.src;return r?n.fileExporterService.share(r,n.generateFileName()):Promise.resolve()})()}static{this.\u0275fac=function(r){return new(r||e)(xe(lw),xe(fw))}}static{this.\u0275cmp=Lr({type:e,selectors:[["app-share-qrcode"]],decls:19,vars:4,consts:[["qrcode",""],[1,"space-between"],[3,"src"],[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){if(1&r){const i=$o();_e(0,"h1"),ke(1,"Private QRCode"),Me(),_e(2,"div",1),wt(3,"img",2,0),Me(),_e(5,"div",3)(6,"button",4),Zn(),_e(7,"svg",5),wt(8,"path",6)(9,"path",7),Me(),ke(10," Back "),Me(),Oo(),_e(11,"button",8),Nt("click",function(){return qn(i),Qn(o.save())}),Zn(),_e(12,"svg",9),wt(13,"path",6)(14,"path",10)(15,"path",11)(16,"path",12),Me(),ke(17," Save "),Me(),Xn(18,BX,9,0,"button",13),Me()}2&r&&(at(3),Et("src",o.src,pm),at(3),Et("routerLink",jy(3,kX)),at(12),Et("ngIf",o.sharable))},dependencies:[ns,ta],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 VX=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({imports:[na.forRoot(LX,{useHash:!0}),na]})}}return e})(),UX=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Lr({type:e,selectors:[["app-root"]],decls:2,vars:0,template:function(r,o){1&r&&wt(0,"modal-outlet")(1,"router-outlet")},dependencies:[n1,RY]})}}return e})(),HX=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({imports:[Go,ow,na,k1]})}}return e})(),jX=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({imports:[Go,na]})}}return e})(),$X=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({providers:[Q4],imports:[Go,na,ow,ow]})}}return e})(),zX=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({providers:[lw],imports:[Go]})}}return e})(),GX=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({imports:[Go,na,zX]})}}return e})(),WX=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({providers:[D3,L1,nw,P4],imports:[Go]})}}return e})(),KX=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({imports:[Go,k1]})}}return e})(),qX=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({imports:[Go]})}}return e})(),QX=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({imports:[Go,k1,na]})}}return e})();function nN(e){return new he(3e3,!1)}function ws(e){switch(e.length){case 0:return new wd;case 1:return e[0];default:return new X4(e)}}function rN(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((p,m)=>{let v=m,D=p;if("offset"!==m)switch(v=e.normalizePropertyName(v,o),D){case"!":D=n.get(m);break;case Pi:D=r.get(m);break;default:D=e.normalizeStyleValue(m,v,D,o)}d.set(v,D)}),u||i.push(d),a=d,s=l}),o.length)throw function vJ(){return new he(3502,!1)}();return i}function hw(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&pw(n,"start",e)));break;case"done":e.onDone(()=>r(n&&pw(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&pw(n,"destroy",e)))}}function pw(e,t,n){const i=gw(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 gw(e,t,n,r,o="",i=0,s){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:o,totalTime:i,disabled:!!s}}function qr(e,t,n){let r=e.get(t);return r||e.set(t,r=n),r}function oN(e){const t=e.indexOf(":");return[e.substring(1,t),e.slice(t+1)]}const MJ=typeof document>"u"?null:document.documentElement;function mw(e){const t=e.parentNode||e.host||null;return t===MJ?null:t}let ga=null,iN=!1;function sN(e,t){for(;t;){if(t===e)return!0;t=mw(t)}return!1}function aN(e,t,n){if(n)return Array.from(e.querySelectorAll(t));const r=e.querySelector(t);return r?[r]:[]}let yw=(()=>{class e{validateStyleProperty(n){return function RJ(e){ga||(ga=function OJ(){return typeof document<"u"?document.body:null}()||{},iN=!!ga.style&&"WebkitAppearance"in ga.style);let t=!0;return ga.style&&!function NJ(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in ga.style,!t&&iN&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in ga.style)),t}(n)}containsElement(n,r){return sN(n,r)}getParentElement(n){return mw(n)}query(n,r,o){return aN(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,i,s,a=[],c){return new wd(o,i)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}}return e})();class vw{static{this.NOOP=new yw}}class Ew{}const PJ=1e3,ww="ng-enter",Ep="ng-leave",wp="ng-trigger",bp=".ng-trigger",lN="ng-animating",bw=".ng-animating";function ki(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:xw(parseFloat(t[1]),t[2])}function xw(e,t){return"s"===t?e*PJ:e}function xp(e,t,n){return e.hasOwnProperty("duration")?e:function BJ(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(nN()),{duration:0,delay:0,easing:""};o=xw(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(i=xw(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 ZX(){return new he(3100,!1)}()),a=!0),i<0&&(t.push(function YX(){return new he(3101,!1)}()),a=!0),a&&t.splice(c,0,nN())}return{duration:o,delay:i,easing:s}}(e,t,n)}function ai(e,t,n){t.forEach((r,o)=>{const i=_w(o);n&&!n.has(o)&&n.set(o,e.style[i]),e.style[i]=r})}function ma(e,t){t.forEach((n,r)=>{const o=_w(r);e.style[o]=""})}function bd(e){return Array.isArray(e)?1==e.length?e[0]:function lX(e,t=null){return{type:ct.Sequence,steps:e,options:t}}(e):e}const Cw=new RegExp("{{\\s*(.+?)\\s*}}","g");function dN(e){let t=[];if("string"==typeof e){let n;for(;n=Cw.exec(e);)t.push(n[1]);Cw.lastIndex=0}return t}function xd(e,t,n){const r=`${e}`,o=r.replace(Cw,(i,s)=>{let a=t[s];return null==a&&(n.push(function JX(){return new he(3003,!1)}()),a=""),a.toString()});return o==r?e:o}const UJ=/-+([a-z0-9])/g;function _w(e){return e.replace(UJ,(...t)=>t[1].toUpperCase())}function Qr(e,t,n){switch(t.type){case ct.Trigger:return e.visitTrigger(t,n);case ct.State:return e.visitState(t,n);case ct.Transition:return e.visitTransition(t,n);case ct.Sequence:return e.visitSequence(t,n);case ct.Group:return e.visitGroup(t,n);case ct.Animate:return e.visitAnimate(t,n);case ct.Keyframes:return e.visitKeyframes(t,n);case ct.Style:return e.visitStyle(t,n);case ct.Reference:return e.visitReference(t,n);case ct.AnimateChild:return e.visitAnimateChild(t,n);case ct.AnimateRef:return e.visitAnimateRef(t,n);case ct.Query:return e.visitQuery(t,n);case ct.Stagger:return e.visitStagger(t,n);default:throw function eJ(){return new he(3004,!1)}()}}function Dw(e,t){return window.getComputedStyle(e)[t]}const $J=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 fN extends Ew{normalizePropertyName(t,n){return _w(t)}normalizeStyleValue(t,n,r,o){let i="";const s=r.toString().trim();if($J.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 tJ(){return new he(3005,!1)}())}return s+i}}const Cp="*";const _p=new Set(["true","1"]),Dp=new Set(["false","0"]);function hN(e,t){const n=_p.has(e)||Dp.has(e),r=_p.has(t)||Dp.has(t);return(o,i)=>{let s=e==Cp||e==o,a=t==Cp||t==i;return!s&&n&&"boolean"==typeof o&&(s=o?_p.has(e):Dp.has(e)),!a&&r&&"boolean"==typeof i&&(a=i?_p.has(t):Dp.has(t)),s&&a}}const KJ=new RegExp("s*:selfs*,?","g");function Aw(e,t,n,r){return new qJ(e).build(t,n,r)}class qJ{constructor(t){this._driver=t}build(t,n,r){const o=new YJ(n);return this._resetContextStyleTimingState(o),Qr(this,bd(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 nJ(){return new he(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==ct.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==ct.Transition){const c=this.visitTransition(a,n);r+=c.queryCount,o+=c.depCount,s.push(c)}else n.errors.push(function rJ(){return new he(3007,!1)}())}),{type:ct.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=>{dN(c).forEach(l=>{s.hasOwnProperty(l)||i.add(l)})})}),i.size&&n.errors.push(function oJ(){return new he(3008,!1)}(0,i.values()))}return{type:ct.State,name:t.name,style:r,options:o?{params:o}:null}}visitTransition(t,n){n.queryCount=0,n.depCount=0;const r=Qr(this,bd(t.animation),n),o=function zJ(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(r=>function GJ(e,t,n){if(":"==e[0]){const c=function WJ(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 hJ(){return new he(3015,!1)}()),t;const o=r[1],i=r[2],s=r[3];t.push(hN(o,s)),"<"==i[0]&&(o!=Cp||s!=Cp)&&t.push(hN(s,o))}(r,n,t)):n.push(e),n}(t.expr,n.errors);return{type:ct.Transition,matchers:o,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:ya(t.options)}}visitSequence(t,n){return{type:ct.Sequence,steps:t.steps.map(r=>Qr(this,r,n)),options:ya(t.options)}}visitGroup(t,n){const r=n.currentTime;let o=0;const i=t.steps.map(s=>{n.currentTime=r;const a=Qr(this,s,n);return o=Math.max(o,n.currentTime),a});return n.currentTime=o,{type:ct.Group,steps:i,options:ya(t.options)}}visitAnimate(t,n){const r=function JJ(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return Sw(xp(e,t).duration,0,"");const n=e;if(n.split(/\s+/).some(i=>"{"==i.charAt(0)&&"{"==i.charAt(1))){const i=Sw(0,0,"");return i.dynamic=!0,i.strValue=n,i}const o=xp(n,t);return Sw(o.duration,o.delay,o.easing)}(t.timings,n.errors);n.currentAnimateTimings=r;let o,i=t.styles?t.styles:Ed({});if(i.type==ct.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=Ed(l)}n.currentTime+=r.duration+r.delay;const c=this.visitStyle(s,n);c.isEmptyStep=a,o=c}return n.currentAnimateTimings=null,{type:ct.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===Pi?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:ct.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 sJ(){return new he(3010,!1)}()),d=!1),i=u.startTime),d&&l.set(c,{startTime:i,endTime:o}),n.options&&function VJ(e,t,n){const r=t.params||{},o=dN(e);o.length&&o.forEach(i=>{r.hasOwnProperty(i)||n.push(function XX(){return new he(3001,!1)}())})}(a,n.options,n.errors)})})}visitKeyframes(t,n){const r={type:ct.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function aJ(){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 XJ(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),ae=0;return null!=se&&(i++,ae=K.offset=se),c=c||ae<0||ae>1,a=a||ae0&&i{const se=p>0?K==m?1:p*K:s[K],ae=se*L;n.currentTime=v+D.delay+ae,D.duration=ae,this._validateStyleAst(q,n),q.offset=se,r.styles.push(q)}),r}visitReference(t,n){return{type:ct.Reference,animation:Qr(this,bd(t.animation),n),options:ya(t.options)}}visitAnimateChild(t,n){return n.depCount++,{type:ct.AnimateChild,options:ya(t.options)}}visitAnimateRef(t,n){return{type:ct.AnimateRef,animation:this.visitReference(t.animation,n),options:ya(t.options)}}visitQuery(t,n){const r=n.currentQuerySelector,o=t.options||{};n.queryCount++,n.currentQuery=t;const[i,s]=function QJ(e){const t=!!e.split(/\s*,\s*/).find(n=>":self"==n);return t&&(e=e.replace(KJ,"")),e=e.replace(/@\*/g,bp).replace(/@\w+/g,n=>bp+"-"+n.slice(1)).replace(/:animating/g,bw),[e,t]}(t.selector);n.currentQuerySelector=r.length?r+" "+i:i,qr(n.collectedStyles,n.currentQuerySelector,new Map);const a=Qr(this,bd(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:ct.Query,selector:i,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:ya(t.options)}}visitStagger(t,n){n.currentQuery||n.errors.push(function dJ(){return new he(3013,!1)}());const r="full"===t.timings?{duration:0,delay:0,easing:"full"}:xp(t.timings,n.errors,!0);return{type:ct.Stagger,animation:Qr(this,bd(t.animation),n),timings:r,options:null}}}class YJ{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 ya(e){return e?(e={...e}).params&&(e.params=function ZJ(e){return e?{...e}:null}(e.params)):e={},e}function Sw(e,t,n){return{duration:e,delay:t,easing:n}}function Iw(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 Ap{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 nee=new RegExp(":enter","g"),oee=new RegExp(":leave","g");function Tw(e,t,n,r,o,i=new Map,s=new Map,a,c,l=[]){return(new iee).buildKeyframes(e,t,n,r,o,i,s,a,c,l)}class iee{buildKeyframes(t,n,r,o,i,s,a,c,l,u=[]){l=l||new Ap;const d=new Mw(t,n,l,o,i,u,[]);d.options=c;const p=c.delay?ki(c.delay):0;d.currentTimeline.delayNextStep(p),d.currentTimeline.setStyles([s],null,d.errors,c),Qr(this,r,d);const m=d.timelines.filter(v=>v.containsAnimation());if(m.length&&a.size){let v;for(let D=m.length-1;D>=0;D--){const L=m[D];if(L.element===n){v=L;break}}v&&!v.allowOnlyTimelineStyles()&&v.setStyles([a],null,d.errors,c)}return m.length?m.map(v=>v.buildKeyframes()):[Iw(n,[],[],[],0,p,"",!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:ki(xd(i,o?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(t,n,r){let i=n.currentTimeline.currentTime;const s=null!=r.duration?ki(r.duration):null,a=null!=r.delay?ki(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),Qr(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==ct.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Sp);const s=ki(i.delay);o.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Qr(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?ki(t.options.delay):0;t.steps.forEach(s=>{const a=n.createSubContext(t.options);i&&a.delayNextStep(i),Qr(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 xp(n.params?xd(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==ct.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?ki(o.delay):0;i&&(n.previousNode.type===ct.Style||0==r&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Sp);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),Qr(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;Qr(this,t.animation,n),n.previousNode=t,r.currentStaggerTime=o.currentTime-d+(o.startTime-r.currentTimeline.startTime)}}const Sp={};class Mw{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=Sp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Ip(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=ki(r.duration)),null!=r.delay&&(o.delay=ki(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]=xd(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 Mw(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=Sp,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 see(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(nee,"."+this._enterClassName)).replace(oee,"."+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 fJ(){return new he(3014,!1)}()),a}}class Ip{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 Ip(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||Pi),this._currentKeyframe.set(n,Pi);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,n,r,o){n&&this._previousKeyframe.set("easing",n);const i=o&&o.params||{},s=function aee(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,Pi)}else for(let[i,s]of o)n.set(i,s)}),n}(t,this._globalTimelineStyles);for(let[a,c]of s){const l=xd(c,i,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Pi),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===Pi&&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 Iw(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)}}class see extends Ip{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",mN(a)),i.push(l);const u=t.length-1;for(let d=1;d<=u;d++){let p=new Map(t[d]);const m=p.get("offset");p.set("offset",mN((n+m*r)/s)),i.push(p)}r=s,n=0,o="",t=i}return Iw(this.element,t,this.preStyleProps,this.postStyleProps,r,n,o,!0)}}function mN(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}function yN(e,t,n,r,o,i,s,a,c,l,u,d,p){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:p}}const Nw={};class vN{constructor(t,n,r){this._triggerName=t,this.ast=n,this._stateStyles=r}match(t,n,r,o){return function cee(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=[],p=this.ast.options&&this.ast.options.params||Nw,v=this.buildStyles(r,a&&a.params||Nw,d),D=c&&c.params||Nw,L=this.buildStyles(o,D,d),q=new Set,K=new Map,se=new Map,ae="void"===o,ye={params:EN(D,p),delay:this.ast.options?.delay},ve=u?[]:Tw(t,n,this.ast.animation,i,s,v,L,ye,l,d);let De=0;return ve.forEach(Re=>{De=Math.max(Re.duration+Re.delay,De)}),d.length?yN(n,this._triggerName,r,o,ae,v,L,[],[],K,se,De,d):(ve.forEach(Re=>{const Qe=Re.element,Ge=qr(K,Qe,new Set);Re.preStyleProps.forEach(Je=>Ge.add(Je));const We=qr(se,Qe,new Set);Re.postStyleProps.forEach(Je=>We.add(Je)),Qe!==n&&q.add(Qe)}),yN(n,this._triggerName,r,o,ae,v,L,ve,[...q.values()],K,se,De))}}function EN(e,t){const n={...t};return Object.entries(e).forEach(([r,o])=>{null!=o&&(n[r]=o)}),n}class lee{constructor(t,n,r){this.styles=t,this.defaultParams=n,this.normalizer=r}buildStyles(t,n){const r=new Map,o=EN(t,this.defaultParams);return this.styles.styles.forEach(i=>{"string"!=typeof i&&i.forEach((s,a)=>{s&&(s=xd(s,o,n));const c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),r.set(a,s)})}),r}}class dee{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 lee(o.style,o.options&&o.options.params||{},r))}),wN(this.states,"true","1"),wN(this.states,"false","0"),n.transitions.forEach(o=>{this.transitionFactories.push(new vN(t,o,this.states))}),this.fallbackTransition=function fee(e,t){return new vN(e,{type:ct.Transition,animation:{type:ct.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 wN(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 hee=new Ap;class pee{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=Aw(this._driver,n,r,[]);if(r.length)throw function EJ(){return new he(3503,!1)}();this._animations.set(t,i)}_buildPlayer(t,n,r){const o=t.element,i=rN(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=Tw(this._driver,n,i,ww,Ep,new Map,new Map,r,hee,o),s.forEach(u=>{const d=qr(a,u.element,new Map);u.postStyleProps.forEach(p=>d.set(p,null))})):(o.push(function wJ(){return new he(3300,!1)}()),s=[]),o.length)throw function bJ(){return new he(3504,!1)}();a.forEach((u,d)=>{u.forEach((p,m)=>{u.set(m,this._driver.computeStyle(d,m,Pi))})});const l=ws(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 xJ(){return new he(3301,!1)}();return n}listen(t,n,r,o){const i=gw(n,"","","");return hw(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 bN="ng-animate-queued",Rw="ng-animate-disabled",Eee=[],xN={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wee={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},So="__ng_removed";class Ow{get params(){return this.options.params}constructor(t,n=""){this.namespaceId=n;const r=t&&t.hasOwnProperty("value");if(this.value=function _ee(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 Cd="void",Fw=new Ow(Cd);class bee{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,co(n,this._hostClassName)}listen(t,n,r,o){if(!this._triggers.has(n))throw function CJ(){return new he(3302,!1)}();if(null==r||0==r.length)throw function _J(){return new he(3303,!1)}();if(!function Dee(e){return"start"==e||"done"==e}(r))throw function DJ(){return new he(3400,!1)}();const i=qr(this._elementListeners,t,[]),s={name:n,phase:r,callback:o};i.push(s);const a=qr(this._engine.statesByElement,t,new Map);return a.has(n)||(co(t,wp),co(t,wp+"-"+n),a.set(n,Fw)),()=>{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 AJ(){return new he(3401,!1)}();return n}trigger(t,n,r,o=!0){const i=this._getTrigger(n),s=new Pw(this.id,n,t);let a=this._engine.statesByElement.get(t);a||(co(t,wp),co(t,wp+"-"+n),this._engine.statesByElement.set(t,a=new Map));let c=a.get(n);const l=new Ow(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(n,l),c||(c=Fw),l.value!==Cd&&c.value===l.value){if(!function Iee(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let o=0;o{ma(t,L),ai(t,q)})}return}const p=qr(this._engine.playersByElement,t,[]);p.forEach(D=>{D.namespaceId==this.id&&D.triggerName==n&&D.queued&&D.destroy()});let m=i.matchTransition(c.value,l.value,t,l.params),v=!1;if(!m){if(!o)return;m=i.fallbackTransition,v=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:m,fromState:c,toState:l,player:s,isFallbackTransition:v}),v||(co(t,bN),s.onStart(()=>{Yc(t,bN)})),s.onDone(()=>{let D=this.players.indexOf(s);D>=0&&this.players.splice(D,1);const L=this._engine.playersByElement.get(t);if(L){let q=L.indexOf(s);q>=0&&L.splice(q,1)}}),this.players.push(s),p.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,bp,!0);r.forEach(o=>{if(o[So])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,Cd,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,n,s),r&&ws(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)||Fw,u=new Ow(Cd),d=new Pw(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[So];(!i||i===xN)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,n))}}insertNode(t,n){co(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=gw(i,r.triggerName,r.fromState.value,r.toState.value);c._data=t,hw(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 xee{_onRemovalComplete(t,n){this.onRemovalComplete(t,n)}constructor(t,n,r){this.bodyNode=t,this.driver=n,this._normalizer=r,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=(o,i)=>{}}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 bee(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(Tp(n)){const i=this._fetchNamespace(t);if(i)return i.trigger(n,r,o),!0}return!1}insertNode(t,n,r,o){if(!Tp(n))return;const i=n[So];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),co(t,Rw)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Yc(t,Rw))}removeNode(t,n,r){if(Tp(n)){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[So]={namespaceId:t,setForRemoval:o,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:i}}listen(t,n,r,o,i){return Tp(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,bp,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,bw,!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 ws(this.players).onDone(()=>t());t()})}processLeaveNode(t){const n=t[So];if(n&&n.setForRemoval){if(t[So]=xN,n.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}t.classList?.contains(Rw)&&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?ws(n).onDone(()=>{r.forEach(o=>o())}):r.forEach(o=>o())}}reportError(t){throw function SJ(){return new he(3402,!1)}()}_flushAnimations(t,n){const r=new Ap,o=[],i=new Map,s=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(de=>{u.add(de);const Ee=this.driver.query(de,".ng-animate-queued",!0);for(let Ne=0;Ne{const Ne=ww+D++;v.set(Ee,Ne),de.forEach(we=>co(we,Ne))});const L=[],q=new Set,K=new Set;for(let de=0;deq.add(we)):K.add(Ee))}const se=new Map,ae=DN(p,Array.from(q));ae.forEach((de,Ee)=>{const Ne=Ep+D++;se.set(Ee,Ne),de.forEach(we=>co(we,Ne))}),t.push(()=>{m.forEach((de,Ee)=>{const Ne=v.get(Ee);de.forEach(we=>Yc(we,Ne))}),ae.forEach((de,Ee)=>{const Ne=se.get(Ee);de.forEach(we=>Yc(we,Ne))}),L.forEach(de=>{this.processLeaveNode(de)})});const ye=[],ve=[];for(let de=this._namespaceList.length-1;de>=0;de--)this._namespaceList[de].drainQueuedTransitions(n).forEach(Ne=>{const we=Ne.player,$e=Ne.element;if(ye.push(we),this.collectedEnterElements.length){const Ot=$e[So];if(Ot&&Ot.setForMove){if(Ot.previousTriggersValues&&Ot.previousTriggersValues.has(Ne.triggerName)){const kn=Ot.previousTriggersValues.get(Ne.triggerName),Kt=this.statesByElement.get(Ne.element);if(Kt&&Kt.has(Ne.triggerName)){const Io=Kt.get(Ne.triggerName);Io.value=kn,Kt.set(Ne.triggerName,Io)}}return void we.destroy()}}const et=!d||!this.driver.containsElement(d,$e),tt=se.get($e),Wt=v.get($e),bt=this._buildInstruction(Ne,r,Wt,tt,et);if(bt.errors&&bt.errors.length)return void ve.push(bt);if(et)return we.onStart(()=>ma($e,bt.fromStyles)),we.onDestroy(()=>ai($e,bt.toStyles)),void o.push(we);if(Ne.isFallbackTransition)return we.onStart(()=>ma($e,bt.fromStyles)),we.onDestroy(()=>ai($e,bt.toStyles)),void o.push(we);const rr=[];bt.timelines.forEach(Ot=>{Ot.stretchStartingKeyframe=!0,this.disabledNodes.has(Ot.element)||rr.push(Ot)}),bt.timelines=rr,r.append($e,bt.timelines),s.push({instruction:bt,player:we,element:$e}),bt.queriedElements.forEach(Ot=>qr(a,Ot,[]).push(we)),bt.preStyleProps.forEach((Ot,kn)=>{if(Ot.size){let Kt=c.get(kn);Kt||c.set(kn,Kt=new Set),Ot.forEach((Io,Xc)=>Kt.add(Xc))}}),bt.postStyleProps.forEach((Ot,kn)=>{let Kt=l.get(kn);Kt||l.set(kn,Kt=new Set),Ot.forEach((Io,Xc)=>Kt.add(Xc))})});if(ve.length){const de=[];ve.forEach(Ee=>{de.push(function IJ(){return new he(3505,!1)}())}),ye.forEach(Ee=>Ee.destroy()),this.reportError(de)}const De=new Map,Re=new Map;s.forEach(de=>{const Ee=de.element;r.has(Ee)&&(Re.set(Ee,Ee),this._beforeAnimationBuild(de.player.namespaceId,de.instruction,De))}),o.forEach(de=>{const Ee=de.element;this._getPreviousPlayers(Ee,!1,de.namespaceId,de.triggerName,null).forEach(we=>{qr(De,Ee,[]).push(we),we.destroy()})});const Qe=L.filter(de=>SN(de,c,l)),Ge=new Map;_N(Ge,this.driver,K,l,Pi).forEach(de=>{SN(de,c,l)&&Qe.push(de)});const Je=new Map;m.forEach((de,Ee)=>{_N(Je,this.driver,new Set(de),c,"!")}),Qe.forEach(de=>{const Ee=Ge.get(de),Ne=Je.get(de);Ge.set(de,new Map([...Ee?.entries()??[],...Ne?.entries()??[]]))});const rt=[],ht=[],Ie={};s.forEach(de=>{const{element:Ee,player:Ne,instruction:we}=de;if(r.has(Ee)){if(u.has(Ee))return Ne.onDestroy(()=>ai(Ee,we.toStyles)),Ne.disabled=!0,Ne.overrideTotalTime(we.totalTime),void o.push(Ne);let $e=Ie;if(Re.size>1){let tt=Ee;const Wt=[];for(;tt=tt.parentNode;){const bt=Re.get(tt);if(bt){$e=bt;break}Wt.push(tt)}Wt.forEach(bt=>Re.set(bt,$e))}const et=this._buildAnimation(Ne.namespaceId,we,De,i,Je,Ge);if(Ne.setRealPlayer(et),$e===Ie)rt.push(Ne);else{const tt=this.playersByElement.get($e);tt&&tt.length&&(Ne.parentPlayer=ws(tt)),o.push(Ne)}}else ma(Ee,we.fromStyles),Ne.onDestroy(()=>ai(Ee,we.toStyles)),ht.push(Ne),u.has(Ee)&&o.push(Ne)}),ht.forEach(de=>{const Ee=i.get(de.element);if(Ee&&Ee.length){const Ne=ws(Ee);de.setRealPlayer(Ne)}}),o.forEach(de=>{de.parentPlayer?de.syncPlayerEvents(de.parentPlayer):de.destroy()});for(let de=0;de!et.destroyed);$e.length?Aee(this,Ee,$e):this.processLeaveNode(Ee)}return L.length=0,rt.forEach(de=>{this.players.push(de),de.onDone(()=>{de.destroy();const Ee=this.players.indexOf(de);this.players.splice(Ee,1)}),de.play()}),rt}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==Cd;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=qr(r,l,[]);this._getPreviousPlayers(l,u,s,a,n.toState).forEach(m=>{const v=m.getRealPlayer();v.beforeDestroy&&v.beforeDestroy(),m.destroy(),d.push(m)})}ma(i,n.fromStyles)}_buildAnimation(t,n,r,o,i,s){const a=n.triggerName,c=n.element,l=[],u=new Set,d=new Set,p=n.timelines.map(v=>{const D=v.element;u.add(D);const L=D[So];if(L&&L.removedBeforeQueried)return new wd(v.duration,v.delay);const q=D!==c,K=function See(e){const t=[];return AN(e,t),t}((r.get(D)||Eee).map(De=>De.getRealPlayer())).filter(De=>!!De.element&&De.element===D),se=i.get(D),ae=s.get(D),ye=rN(this._normalizer,v.keyframes,se,ae),ve=this._buildPlayer(v,ye,K);if(v.subTimeline&&o&&d.add(D),q){const De=new Pw(t,a,D);De.setRealPlayer(ve),l.push(De)}return ve});l.forEach(v=>{qr(this.playersByQueriedElement,v.element,[]).push(v),v.onDone(()=>function Cee(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,v.element,v))}),u.forEach(v=>co(v,lN));const m=ws(p);return m.onDestroy(()=>{u.forEach(v=>Yc(v,lN)),ai(c,n.toStyles)}),d.forEach(v=>{qr(o,v,[]).push(m)}),m}_buildPlayer(t,n,r){return n.length>0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,r):new wd(t.duration,t.delay)}}class Pw{constructor(t,n,r){this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new wd,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=>hw(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){qr(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 Tp(e){return e&&1===e.nodeType}function CN(e,t){const n=e.style.display;return e.style.display=t??"none",n}function _N(e,t,n,r,o){const i=[];n.forEach(c=>i.push(CN(c)));const s=[];r.forEach((c,l)=>{const u=new Map;c.forEach(d=>{const p=t.computeStyle(l,d,o);u.set(d,p),(!p||0==p.length)&&(l[So]=wee,s.push(l))}),e.set(l,u)});let a=0;return n.forEach(c=>CN(c,i[a++])),s}function DN(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 co(e,t){e.classList?.add(t)}function Yc(e,t){e.classList?.remove(t)}function Aee(e,t,n){ws(n).onDone(()=>e.processLeaveNode(t))}function AN(e,t){for(let n=0;no.add(i)):t.set(e,r),n.delete(e),!0}class _d{constructor(t,n,r){this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(o,i)=>{},this._transitionEngine=new xee(t.body,n,r),this._timelineEngine=new pee(t.body,n,r),this._transitionEngine.onRemovalComplete=(o,i)=>this.onRemovalComplete(o,i)}registerTrigger(t,n,r,o,i){const s=t+"-"+o;let a=this._triggerCache[s];if(!a){const c=[],u=Aw(this._driver,i,c,[]);if(c.length)throw function yJ(){return new he(3404,!1)}();a=function uee(e,t,n){return new dee(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]=oN(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]=oN(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 Dd{static{this.initialStylesByElement=new WeakMap}constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;let o=Dd.initialStylesByElement.get(t);o||Dd.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&ai(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ai(this._element,this._initialStyles),this._endStyles&&(ai(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Dd.initialStylesByElement.delete(this._element),this._startStyles&&(ma(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ma(this._element,this._endStyles),this._endStyles=null),ai(this._element,this._initialStyles),this._state=3)}}function kw(e){let t=null;return e.forEach((n,r)=>{(function Mee(e){return"display"===e||"position"===e})(r)&&(t=t||new Map,t.set(r,n))}),t}class IN{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:Dw(this.element,o))}),this.currentSnapshot=t}triggerCallback(t){const n="start"===t?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class TN{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}containsElement(t,n){return sN(t,n)}getParentElement(t){return mw(t)}query(t,n,r){return aN(t,n,r)}computeStyle(t,n,r){return Dw(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(m=>m instanceof IN);(function HJ(e,t){return 0===e||0===t})(r,o)&&u.forEach(m=>{m.currentSnapshot.forEach((v,D)=>l.set(D,v))});let d=function LJ(e){return e.length?e[0]instanceof Map?e:e.map(t=>new Map(Object.entries(t))):[]}(n).map(m=>new Map(m));d=function jJ(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,Dw(e,a)))}}return t}(t,d,l);const p=function Tee(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=kw(t[0]),t.length>1&&(r=kw(t[t.length-1]))):t instanceof Map&&(n=kw(t)),n||r?new Dd(e,n,r):null}(t,d);return new IN(t,d,c,p)}}const MN="@.disabled";class NN{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.parentNode(n)&&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==MN?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 Nee extends NN{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==MN?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 Ree(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 Oee(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 Fee{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)=>{i?.removeChild(null,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 NN("",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 Nee(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 RN=[{provide:Ew,useFactory:function kee(){return new fN}},{provide:_d,useClass:(()=>{class e extends _d{constructor(n,r,o){super(n,r,o)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(r){return new(r||e)(Ke(jn),Ke(vw),Ke(Ew))}}static{this.\u0275prov=Ue({token:e,factory:e.\u0275fac})}}return e})()},{provide:Zf,useFactory:function Bee(e,t,n){return new Fee(e,t,n)},deps:[Pv,_d,St]}],Bw=[{provide:vw,useFactory:()=>new TN},{provide:sC,useValue:"BrowserAnimations"},...RN],ON=[{provide:vw,useClass:yw},{provide:sC,useValue:"NoopAnimations"},...RN];let Lee=(()=>{class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?ON:Bw}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=un({type:e})}static{this.\u0275inj=an({providers:Bw,imports:[YI]})}}return e})(),Vee=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=un({type:e,bootstrap:[UX]})}static{this.\u0275inj=an({imports:[YI,VX,jX,KX,HX,GX,$X,WX,QX,qX,Lee,PX.forRoot()]})}}return e})();Zj().bootstrapModule(Vee).catch(e=>console.error(e))},9184:(le,f)=>{"use strict";function y(g){if(!Number.isSafeInteger(g)||g<0)throw new Error(`positive integer expected, not ${g}`)}function E(g){if("boolean"!=typeof g)throw new Error(`boolean expected, not ${g}`)}function h(g){return g instanceof Uint8Array||null!=g&&"object"==typeof g&&"Uint8Array"===g.constructor.name}function w(g,...I){if(!h(g))throw new Error("Uint8Array expected");if(I.length>0&&!I.includes(g.length))throw new Error(`Uint8Array expected of length ${I}, not of length=${g.length}`)}function _(g){if("function"!=typeof g||"function"!=typeof g.create)throw new Error("hash must be wrapped by utils.wrapConstructor");y(g.outputLen),y(g.blockLen)}function V(g,I=!0){if(g.destroyed)throw new Error("Hash instance has been destroyed");if(I&&g.finished)throw new Error("Hash#digest() has already been called")}function A(g,I){w(g);const $=I.outputLen;if(g.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}Object.defineProperty(f,"__esModule",{value:!0}),f.output=f.exists=f.hash=f.bytes=f.bool=f.number=f.isBytes=void 0,f.number=y,f.bool=E,f.isBytes=h,f.bytes=w,f.hash=_,f.exists=V,f.output=A,f.default={number:y,bool:E,bytes:w,hash:_,exists:V,output:A}},9969:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.polyval=f.ghash=f._toGHASHKey=void 0;const E=y(7494),h=y(9184),w=16,_=new Uint8Array(16),V=(0,E.u32)(_),H=(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)}),g=N=>(N>>>0&255)<<24|(N>>>8&255)<<16|(N>>>16&255)<<8|N>>>24&255;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 O{constructor(b,W){this.blockLen=w,this.outputLen=w,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,b=(0,E.toBytes)(b),(0,h.bytes)(b,16);const G=(0,E.createView)(b);let T=G.getUint32(0,!1),F=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:g(T),s1:g(F),s2:g(Q),s3:g(Y)}),({s0:T,s1:F,s2:Q,s3:Y}=H(T,F,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-fe-1&1))continue;const{s0:S,s1:k,s2:P,s3:j}=X[Z*M+fe];R^=S,B^=k,ne^=P,ie^=j}z.push({s0:R,s1:B,s2:ne,s3:ie})}this.t=z}_updateBlock(b,W,G,T){b^=this.s0,W^=this.s1,G^=this.s2,T^=this.s3;const{W:F,t:Q,windowSize:Y}=this;let X=0,Z=0,re=0,J=0;const ee=(1<>>8*U&255;for(let B=8/F-1;B>=0;B--){const ne=R>>>F*B&ee,{s0:ie,s1:fe,s2:Se,s3:S}=Q[z*Y+ne];X^=ie,Z^=fe,re^=Se,J^=S,z+=1}}this.s0=X,this.s1=Z,this.s2=re,this.s3=J}update(b){b=(0,E.toBytes)(b),(0,h.exists)(this);const W=(0,E.u32)(b),G=Math.floor(b.length/w),T=b.length%w;for(let F=0;FN(T,G.length).update((0,E.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 O(N,b)),f.polyval=x((N,b)=>new C(N,b))},1504:(le,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 E=y(7494),h=y(9969),w=y(9184),_=16,A=new Uint8Array(_),H=283;function g(S){return S<<1^H&-(S>>7)}function I(S,k){let P=0;for(;k>0;k>>=1)P^=S&-(1&k),S=g(S);return P}const $=(()=>{let S=new Uint8Array(256);for(let P=0,j=1;P<256;P++,j^=g(j))S[P]=j;const k=new Uint8Array(256);k[0]=99;for(let P=0;P<255;P++){let j=S[255-P];j|=j<<8,k[S[P]]=255&(j^j>>4^j>>5^j>>6^j>>7^99)}return k})(),O=$.map((S,k)=>$.indexOf(k)),C=S=>S<<24|S>>>8,x=S=>S<<8|S>>>24;function N(S,k){if(256!==S.length)throw new Error("Wrong sbox length");const P=new Uint32Array(256).map((pe,be)=>k(S[be])),j=P.map(x),te=j.map(x),oe=te.map(x),ue=new Uint32Array(65536),ce=new Uint32Array(65536),me=new Uint16Array(65536);for(let pe=0;pe<256;pe++)for(let be=0;be<256;be++){const Fe=256*pe+be;ue[Fe]=P[pe]^j[be],ce[Fe]=te[pe]^oe[be],me[Fe]=S[pe]<<8|S[be]}return{sbox:S,sbox2:me,T0:P,T1:j,T2:te,T3:oe,T01:ue,T23:ce}}const b=N($,S=>I(S,3)<<24|S<<16|S<<8|I(S,2)),W=N(O,S=>I(S,11)<<24|I(S,13)<<16|I(S,9)<<8|I(S,14)),G=(()=>{const S=new Uint8Array(16);for(let k=0,P=1;k<16;k++,P=g(P))S[k]=P;return S})();function T(S){(0,w.bytes)(S);const k=S.length;if(![16,24,32].includes(k))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${k}`);const{sbox2:P}=b,j=(0,E.u32)(S),te=j.length,oe=ce=>Y(P,ce,ce,ce,ce),ue=new Uint32Array(k+28);ue.set(j);for(let ce=te;ce6&&ce%te==4&&(me=oe(me)),ue[ce]=ue[ce-te]^me}return ue}function F(S){const k=T(S),P=k.slice(),j=k.length,{sbox2:te}=b,{T0:oe,T1:ue,T2:ce,T3:me}=W;for(let pe=0;pe>>8&255]^ce[Fe>>>16&255]^me[Fe>>>24]}return P}function Q(S,k,P,j,te,oe){return S[P<<8&65280|j>>>8&255]^k[te>>>8&65280|oe>>>24&255]}function Y(S,k,P,j,te){return S[255&k|65280&P]|S[j>>>16&255|te>>>16&65280]<<16}function X(S,k,P,j,te){const{sbox2:oe,T01:ue,T23:ce}=b;let me=0;k^=S[me++],P^=S[me++],j^=S[me++],te^=S[me++];const pe=S.length/4-2;for(let Ae=0;Ae=0;Te--)Le=Le+(255&oe[Te])|0,oe[Te]=255&Le,Le>>>=8;({s0:ce,s1:me,s2:pe,s3:be}=X(S,ue[0],ue[1],ue[2],ue[3]))}const Oe=_*Math.floor(Fe.length/4);if(Oe>>0,ce.setUint32(be,Be,k),({s0:Oe,s1:Ae,s2:Le,s3:Te}=X(S,ue[0],ue[1],ue[2],ue[3]));const ze=_*Math.floor(me.length/4);if(ze16)throw new Error(`aes/pcks5: wrong padding byte: ${j}`);const te=S.subarray(0,-j);for(let oe=0;oej(te,oe),decrypt:(te,oe)=>j(te,oe)}}),f.ecb=(0,E.wrapCipher)({blockSize:16},function(k,P={}){(0,w.bytes)(k);const j=!P.disablePadding;return{encrypt:(te,oe)=>{(0,w.bytes)(te);const{b:ue,o:ce,out:me}=M(te,j,oe),pe=T(k);let be=0;for(;be+4<=ue.length;){const{s0:Fe,s1:Be,s2:Oe,s3:Ae}=X(pe,ue[be+0],ue[be+1],ue[be+2],ue[be+3]);ce[be++]=Fe,ce[be++]=Be,ce[be++]=Oe,ce[be++]=Ae}if(j){const Fe=R(te.subarray(4*be)),{s0:Be,s1:Oe,s2:Ae,s3:Le}=X(pe,Fe[0],Fe[1],Fe[2],Fe[3]);ce[be++]=Be,ce[be++]=Oe,ce[be++]=Ae,ce[be++]=Le}return pe.fill(0),me},decrypt:(te,oe)=>{z(te);const ue=F(k),ce=re(te.length,oe),me=(0,E.u32)(te),pe=(0,E.u32)(ce);for(let be=0;be+4<=me.length;){const{s0:Fe,s1:Be,s2:Oe,s3:Ae}=Z(ue,me[be+0],me[be+1],me[be+2],me[be+3]);pe[be++]=Fe,pe[be++]=Be,pe[be++]=Oe,pe[be++]=Ae}return ue.fill(0),U(ce,j)}}}),f.cbc=(0,E.wrapCipher)({blockSize:16,nonceLength:16},function(k,P,j={}){(0,w.bytes)(k),(0,w.bytes)(P,16);const te=!j.disablePadding;return{encrypt:(oe,ue)=>{const ce=T(k),{b:me,o:pe,out:be}=M(oe,te,ue),Fe=(0,E.u32)(P);let Be=Fe[0],Oe=Fe[1],Ae=Fe[2],Le=Fe[3],Te=0;for(;Te+4<=me.length;)Be^=me[Te+0],Oe^=me[Te+1],Ae^=me[Te+2],Le^=me[Te+3],({s0:Be,s1:Oe,s2:Ae,s3:Le}=X(ce,Be,Oe,Ae,Le)),pe[Te++]=Be,pe[Te++]=Oe,pe[Te++]=Ae,pe[Te++]=Le;if(te){const ze=R(oe.subarray(4*Te));Be^=ze[0],Oe^=ze[1],Ae^=ze[2],Le^=ze[3],({s0:Be,s1:Oe,s2:Ae,s3:Le}=X(ce,Be,Oe,Ae,Le)),pe[Te++]=Be,pe[Te++]=Oe,pe[Te++]=Ae,pe[Te++]=Le}return ce.fill(0),be},decrypt:(oe,ue)=>{z(oe);const ce=F(k),me=(0,E.u32)(P),pe=re(oe.length,ue),be=(0,E.u32)(oe),Fe=(0,E.u32)(pe);let Be=me[0],Oe=me[1],Ae=me[2],Le=me[3];for(let Te=0;Te+4<=be.length;){const ze=Be,He=Oe,It=Ae,mt=Le;Be=be[Te+0],Oe=be[Te+1],Ae=be[Te+2],Le=be[Te+3];const{s0:yt,s1:tn,s2:Bn,s3:zn}=Z(ce,Be,Oe,Ae,Le);Fe[Te++]=yt^ze,Fe[Te++]=tn^He,Fe[Te++]=Bn^It,Fe[Te++]=zn^mt}return ce.fill(0),U(pe,te)}}}),f.cfb=(0,E.wrapCipher)({blockSize:16,nonceLength:16},function(k,P){function j(te,oe,ue){const ce=T(k),me=te.length;ue=re(me,ue);const pe=(0,E.u32)(te),be=(0,E.u32)(ue),Fe=oe?be:pe,Be=(0,E.u32)(P);let Oe=Be[0],Ae=Be[1],Le=Be[2],Te=Be[3];for(let He=0;He+4<=pe.length;){const{s0:It,s1:mt,s2:yt,s3:tn}=X(ce,Oe,Ae,Le,Te);be[He+0]=pe[He+0]^It,be[He+1]=pe[He+1]^mt,be[He+2]=pe[He+2]^yt,be[He+3]=pe[He+3]^tn,Oe=Fe[He++],Ae=Fe[He++],Le=Fe[He++],Te=Fe[He++]}const ze=_*Math.floor(pe.length/4);if(zej(te,!0,oe),decrypt:(te,oe)=>j(te,!1,oe)}}),f.gcm=(0,E.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16},function(k,P,j){if((0,w.bytes)(P),0===P.length)throw new Error("aes/gcm: empty nonce");function oe(ce,me,pe){const be=B(h.ghash,!1,ce,pe,j);for(let Fe=0;Fe{(0,w.bytes)(ce);const{xk:me,authKey:pe,counter:be,tagMask:Fe}=ue(),Be=new Uint8Array(ce.length+16);ee(me,!1,be,ce,Be);const Oe=oe(pe,Fe,Be.subarray(0,Be.length-16));return Be.set(Oe,ce.length),me.fill(0),Be},decrypt:ce=>{if((0,w.bytes)(ce),ce.length<16)throw new Error("aes/gcm: ciphertext less than tagLen (16)");const{xk:me,authKey:pe,counter:be,tagMask:Fe}=ue(),Be=ce.subarray(0,-16),Oe=ce.subarray(-16),Ae=oe(pe,Fe,Be);if(!(0,E.equalBytes)(Ae,Oe))throw new Error("aes/gcm: invalid ghash tag");const Le=ee(me,!1,be,Be);return pe.fill(0),Fe.fill(0),me.fill(0),Le}}});const ne=(S,k,P)=>j=>{if(!Number.isSafeInteger(j)||k>j||j>P)throw new Error(`${S}: invalid value=${j}, must be [${k}..${P}]`)};function ie(S){return null!=S&&"object"==typeof S&&(S instanceof Uint32Array||"Uint32Array"===S.constructor.name)}f.siv=(0,E.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16},function(k,P,j){const oe=ne("AAD",0,68719476736),ue=ne("plaintext",0,2**36),ce=ne("nonce",12,12),me=ne("ciphertext",16,2**36+16);function pe(){const Be=k.length;if(16!==Be&&24!==Be&&32!==Be)throw new Error(`key length must be 16, 24 or 32 bytes, got: ${Be} bytes`);const Oe=T(k),Ae=new Uint8Array(Be),Le=new Uint8Array(16),Te=(0,E.u32)(P);let ze=0,He=Te[0],It=Te[1],mt=Te[2],yt=0;for(const tn of[Le,Ae].map(E.u32)){const Bn=(0,E.u32)(tn);for(let zn=0;zn{(0,w.bytes)(Be),ue(Be.length);const{encKey:Oe,authKey:Ae}=pe(),Le=be(Oe,Ae,Be),Te=new Uint8Array(Be.length+16);return Te.set(Le,Be.length),Te.set(Fe(Oe,Le,Be)),Oe.fill(0),Ae.fill(0),Te},decrypt:Be=>{(0,w.bytes)(Be),me(Be.length);const Oe=Be.subarray(-16),{encKey:Ae,authKey:Le}=pe(),Te=Fe(Ae,Oe,Be.subarray(0,-16)),ze=be(Ae,Le,Te);if(Ae.fill(0),Le.fill(0),!(0,E.equalBytes)(Oe,ze))throw new Error("invalid polyval tag");return Te}}}),f.unsafe={expandKeyLE:T,expandKeyDecLE:F,encrypt:X,decrypt:Z,encryptBlock:function fe(S,k){if((0,w.bytes)(k,16),!ie(S))throw new Error("_encryptBlock accepts result of expandKeyLE");const P=(0,E.u32)(k);let{s0:j,s1:te,s2:oe,s3:ue}=X(S,P[0],P[1],P[2],P[3]);return P[0]=j,P[1]=te,P[2]=oe,P[3]=ue,k},decryptBlock:function Se(S,k){if((0,w.bytes)(k,16),!ie(S))throw new Error("_decryptBlock accepts result of expandKeyLE");const P=(0,E.u32)(k);let{s0:j,s1:te,s2:oe,s3:ue}=Z(S,P[0],P[1],P[2],P[3]);return P[0]=j,P[1]=te,P[2]=oe,P[3]=ue,k},ctrCounter:J,ctr32:ee}},9202:(le,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 E(w=32){if(y&&"function"==typeof y.getRandomValues)return y.getRandomValues(new Uint8Array(w));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")}},7494:(le,f,y)=>{"use strict";var E=y(9293).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(9184);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 H=Array.from({length:256},(M,U)=>U.toString(16).padStart(2,"0"));function g(M){(0,h.bytes)(M);let U="";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 O(M){if("string"!=typeof M)throw new Error("hex string expected, got "+typeof M);const U=M.length,R=U/2;if(U%2)throw new Error("padded hex string expected, got unpadded hex of length "+U);const B=new Uint8Array(R);for(let ne=0,ie=0;ne=0&&ie>ne&ie),Se=Number(R&ie),k=B?0:4;M.setUint32(U+(B?4:0),fe,B),M.setUint32(U+k,Se,B)}f.hexToBytes=O,f.hexToNumber=C,f.bytesToNumberBE=function x(M){return C(g(M))},f.numberToBytesBE=function N(M,U){return O(M.toString(16).padStart(2*U,"0"))},f.nextTick=function(){var M=E(function*(){});return function(){return M.apply(this,arguments)}}(),f.asyncLoop=function W(M,U,R){return G.apply(this,arguments)},f.utf8ToBytes=T,f.bytesToUtf8=function F(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 U=0;for(let B=0;B(Object.assign(U,M),U),f.setBigUint64=ee,f.u64Lengths=function z(M,U){const R=new Uint8Array(16),B=(0,f.createView)(R);return ee(B,0,BigInt(U?U.length:0),!0),ee(B,8,BigInt(M.length),!0),R}},4872:(le,f,y)=>{"use strict";var E=y(9293).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(9202);Object.defineProperty(f,"randomBytes",{enumerable:!0,get:function(){return h.randomBytes}}),Object.defineProperty(f,"getWebcryptoSubtle",{enumerable:!0,get:function(){return h.getWebcryptoSubtle}});const w=y(7494),_=y(9184);f.managedNonce=function V(I){return(0,_.number)(I.nonceLength),($,...O)=>({encrypt:(C,...x)=>{const{nonceLength:N}=I,b=(0,h.randomBytes)(N),W=I($,b,...O).encrypt(C,...x),G=(0,w.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($,b,...O).decrypt(W,...x)}})},f.utils={encrypt:(I,$,O,C)=>E(function*(){const x=(0,h.getWebcryptoSubtle)(),N=yield x.importKey("raw",I,$,!0,["encrypt"]),b=yield x.encrypt(O,N,C);return new Uint8Array(b)})(),decrypt:(I,$,O,C)=>E(function*(){const x=(0,h.getWebcryptoSubtle)(),N=yield x.importKey("raw",I,$,!0,["decrypt"]),b=yield x.decrypt(O,N,C);return new Uint8Array(b)})()};const A_CBC="AES-CBC",A_CTR="AES-CTR",A_GCM="AES-GCM";function g(I){return($,O,C)=>{(0,_.bytes)($),(0,_.bytes)(O);const x={name:I,length:8*$.length},N=function H(I,$,O){if(I===A_CBC)return{name:A_CBC,iv:$};if(I===A_CTR)return{name:A_CTR,counter:$,length:64};if(I===A_GCM)return O?{name:A_GCM,iv:$,additionalData:O}:{name:A_GCM,iv:$};throw new Error("unknown aes block mode")}(I,O,C);return{encrypt:b=>((0,_.bytes)(b),f.utils.encrypt($,x,N,b)),decrypt:b=>((0,_.bytes)(b),f.utils.decrypt($,x,N,b))}}}f.cbc=g(A_CBC),f.ctr=g(A_CTR),f.gcm=g(A_GCM)},8578:(le,f)=>{"use strict";function y(g){if(!Number.isSafeInteger(g)||g<0)throw new Error(`positive integer expected, not ${g}`)}function E(g){if("boolean"!=typeof g)throw new Error(`boolean expected, not ${g}`)}function h(g){return g instanceof Uint8Array||null!=g&&"object"==typeof g&&"Uint8Array"===g.constructor.name}function w(g,...I){if(!h(g))throw new Error("Uint8Array expected");if(I.length>0&&!I.includes(g.length))throw new Error(`Uint8Array expected of length ${I}, not of length=${g.length}`)}function _(g){if("function"!=typeof g||"function"!=typeof g.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");y(g.outputLen),y(g.blockLen)}function V(g,I=!0){if(g.destroyed)throw new Error("Hash instance has been destroyed");if(I&&g.finished)throw new Error("Hash#digest() has already been called")}function A(g,I){w(g);const $=I.outputLen;if(g.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}Object.defineProperty(f,"__esModule",{value:!0}),f.isBytes=h,f.number=y,f.bool=E,f.bytes=w,f.hash=_,f.exists=V,f.output=A,f.default={number:y,bool:E,bytes:w,hash:_,exists:V,output:A}},1689:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.HashMD=f.Maj=f.Chi=void 0;const E=y(8578),h=y(6492);f.Chi=(H,g,I)=>H&g^~H&I,f.Maj=(H,g,I)=>H&g^H&I^g&I,f.HashMD=class A extends h.Hash{constructor(g,I,$,O){super(),this.blockLen=g,this.outputLen=I,this.padOffset=$,this.isLE=O,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(g),this.view=(0,h.createView)(this.buffer)}update(g){(0,E.exists)(this);const{view:I,buffer:$,blockLen:O}=this,C=(g=(0,h.toBytes)(g)).length;for(let x=0;xO-x&&(this.process($,0),x=0);for(let T=x;T>O&C),N=Number(I&C),W=$?0:4;H.setUint32(g+($?4:0),x,$),H.setUint32(g+W,N,$)})($,O-8,BigInt(8*this.length),C),this.process($,0);const N=(0,h.createView)(g),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.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=void 0,f.fromBig=h,f.split=w,f.add=G;const y=BigInt(2**32-1),E=BigInt(32);function h(J,ee=!1){return ee?{h:Number(J&y),l:Number(J>>E&y)}:{h:0|Number(J>>E&y),l:0|Number(J&y)}}function w(J,ee=!1){let z=new Uint32Array(J.length),M=new Uint32Array(J.length);for(let U=0;UBigInt(J>>>0)<>>0);f.toBig=_;const V=(J,ee,z)=>J>>>z;f.shrSH=V;const A=(J,ee,z)=>J<<32-z|ee>>>z;f.shrSL=A;const H=(J,ee,z)=>J>>>z|ee<<32-z;f.rotrSH=H;const g=(J,ee,z)=>J<<32-z|ee>>>z;f.rotrSL=g;const I=(J,ee,z)=>J<<64-z|ee>>>z-32;f.rotrBH=I;const $=(J,ee,z)=>J>>>z-32|ee<<64-z;f.rotrBL=$;const O=(J,ee)=>ee;f.rotr32H=O;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 U=(ee>>>0)+(M>>>0);return{h:J+z+(U/2**32|0)|0,l:0|U}}f.rotlBL=W;const T=(J,ee,z)=>(J>>>0)+(ee>>>0)+(z>>>0);f.add3L=T;const F=(J,ee,z,M)=>ee+z+M+(J/2**32|0)|0;f.add3H=F;const Q=(J,ee,z,M)=>(J>>>0)+(ee>>>0)+(z>>>0)+(M>>>0);f.add4L=Q;const Y=(J,ee,z,M,U)=>ee+z+M+U+(J/2**32|0)|0;f.add4H=Y;const X=(J,ee,z,M,U)=>(J>>>0)+(ee>>>0)+(z>>>0)+(M>>>0)+(U>>>0);f.add5L=X;const Z=(J,ee,z,M,U,R)=>ee+z+M+U+R+(J/2**32|0)|0;f.add5H=Z,f.default={fromBig:h,split:w,toBig:_,shrSH:V,shrSL:A,rotrSH:H,rotrSL:g,rotrBH:I,rotrBL:$,rotr32H:O,rotr32L:C,rotlSH:x,rotlSL:N,rotlBH:b,rotlBL:W,add:G,add3L:T,add3H:F,add4L:Q,add4H:Y,add5H:Z,add5L:X}},9948:(le,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},4882:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.hmac=f.HMAC=void 0;const E=y(8578),h=y(6492);class w extends h.Hash{constructor(A,H){super(),this.finished=!1,this.destroyed=!1,(0,E.hash)(A);const g=(0,h.toBytes)(H);if(this.iHash=A.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,$=new Uint8Array(I);$.set(g.length>I?A.create().update(g).digest():g);for(let O=0;O<$.length;O++)$[O]^=54;this.iHash.update($),this.oHash=A.create();for(let O=0;O<$.length;O++)$[O]^=106;this.oHash.update($),$.fill(0)}update(A){return(0,E.exists)(this),this.iHash.update(A),this}digestInto(A){(0,E.exists)(this),(0,E.bytes)(A,this.outputLen),this.finished=!0,this.iHash.digestInto(A),this.oHash.update(A),this.oHash.digestInto(A),this.destroy()}digest(){const A=new Uint8Array(this.oHash.outputLen);return this.digestInto(A),A}_cloneInto(A){A||(A=Object.create(Object.getPrototypeOf(this),{}));const{oHash:H,iHash:g,finished:I,destroyed:$,blockLen:O,outputLen:C}=this;return A.finished=I,A.destroyed=$,A.blockLen=O,A.outputLen=C,A.oHash=H._cloneInto(A.oHash),A.iHash=g._cloneInto(A.iHash),A}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}f.HMAC=w,f.hmac=(V,A,H)=>new w(V,A).update(H).digest(),f.hmac.create=(V,A)=>new w(V,A)},6420:(le,f,y)=>{"use strict";var E=y(9293).default;Object.defineProperty(f,"__esModule",{value:!0}),f.pbkdf2=function H($,O,C,x){const{c:N,dkLen:b,DK:W,PRF:G,PRFSalt:T}=V($,O,C,x);let F;const Q=new Uint8Array(4),Y=(0,_.createView)(Q),X=new Uint8Array(G.outputLen);for(let Z=1,re=0;re= 1");const T=(0,_.toBytes)(O),F=(0,_.toBytes)(C),Q=new Uint8Array(W),Y=w.hmac.create($,T),X=Y._cloneInto().update(F);return{c:b,dkLen:W,asyncTick:G,DK:Q,PRF:Y,PRFSalt:X}}function A($,O,C,x,N){return $.destroy(),O.destroy(),x&&x.destroy(),N.fill(0),C}function I(){return(I=E(function*($,O,C,x){const{c:N,dkLen:b,asyncTick:W,DK:G,PRF:T,PRFSalt:F}=V($,O,C,x);let Q;const Y=new Uint8Array(4),X=(0,_.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=f.SHA256=void 0;const E=y(1689),h=y(6492),w=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]),_=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),V=new Uint32Array(64);class A extends E.HashMD{constructor(){super(64,32,8,!1),this.A=0|_[0],this.B=0|_[1],this.C=0|_[2],this.D=0|_[3],this.E=0|_[4],this.F=0|_[5],this.G=0|_[6],this.H=0|_[7]}get(){const{A:I,B:$,C:O,D:C,E:x,F:N,G:b,H:W}=this;return[I,$,O,C,x,N,b,W]}set(I,$,O,C,x,N,b,W){this.A=0|I,this.B=0|$,this.C=0|O,this.D=0|C,this.E=0|x,this.F=0|N,this.G=0|b,this.H=0|W}process(I,$){for(let F=0;F<16;F++,$+=4)V[F]=I.getUint32($,!1);for(let F=16;F<64;F++){const Q=V[F-15],Y=V[F-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;V[F]=Z+V[F-7]+X+V[F-16]|0}let{A:O,B:C,C:x,D:N,E:b,F:W,G,H:T}=this;for(let F=0;F<64;F++){const Y=T+((0,h.rotr)(b,6)^(0,h.rotr)(b,11)^(0,h.rotr)(b,25))+(0,E.Chi)(b,W,G)+w[F]+V[F]|0,Z=((0,h.rotr)(O,2)^(0,h.rotr)(O,13)^(0,h.rotr)(O,22))+(0,E.Maj)(O,C,x)|0;T=G,G=W,W=b,b=N+Y|0,N=x,x=C,C=O,O=Y+Z|0}O=O+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(O,C,x,N,b,W,G,T)}roundClean(){V.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}f.SHA256=A;class H extends A{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 A),f.sha224=(0,h.wrapConstructor)(()=>new H)},6434:(le,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=void 0,f.keccakP=G;const E=y(8578),h=y(5059),w=y(6492),_=[],V=[],A=[],H=BigInt(0),g=BigInt(1),I=BigInt(2),$=BigInt(7),O=BigInt(256),C=BigInt(113);for(let Y=0,X=g,Z=1,re=0;Y<24;Y++){[Z,re]=[re,(2*Z+3*re)%5],_.push(2*(5*re+Z)),V.push((Y+1)*(Y+2)/2%64);let J=H;for(let ee=0;ee<7;ee++)X=(X<>$)*C)%O,X&I&&(J^=g<<(g<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,U=(z+2)%10,R=Z[U],B=Z[U+1],ne=b(R,B,1)^Z[M],ie=W(R,B,1)^Z[M+1];for(let fe=0;fe<50;fe+=10)Y[z+fe]^=ne,Y[z+fe+1]^=ie}let J=Y[2],ee=Y[3];for(let z=0;z<24;z++){const M=V[z],U=b(J,ee,M),R=W(J,ee,M),B=_[z];J=Y[B],ee=Y[B+1],Y[B]=U,Y[B+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)}class T extends w.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,E.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,w.u32)(this.state)}keccak(){w.isLE||(0,w.byteSwap32)(this.state32),G(this.state32,this.rounds),w.isLE||(0,w.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(X){(0,E.exists)(this);const{blockLen:Z,state:re}=this,J=(X=(0,w.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,E.number)(X),this.xofInto(new Uint8Array(X))}digestInto(X){if((0,E.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 F=(Y,X,Z)=>(0,w.wrapConstructor)(()=>new T(X,Y,Z));f.sha3_224=F(6,144,28),f.sha3_256=F(6,136,32),f.sha3_384=F(6,104,48),f.sha3_512=F(6,72,64),f.keccak_224=F(1,144,28),f.keccak_256=F(1,136,32),f.keccak_384=F(1,104,48),f.keccak_512=F(1,72,64);const Q=(Y,X,Z)=>(0,w.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)},4207:(le,f,y)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.sha384=f.sha512_256=f.sha512_224=f.sha512=f.SHA384=f.SHA512_256=f.SHA512_224=f.SHA512=void 0;const E=y(1689),h=y(5059),w=y(6492),[_,V]=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))),A=new Uint32Array(80),H=new Uint32Array(80);class g extends E.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:F,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,F,Q,Y,X,Z,re,J,ee,z,M]}set(x,N,b,W,G,T,F,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|F,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 B=0;B<16;B++,N+=4)A[B]=x.getUint32(N),H[B]=x.getUint32(N+=4);for(let B=16;B<80;B++){const ne=0|A[B-15],ie=0|H[B-15],fe=h.default.rotrSH(ne,ie,1)^h.default.rotrSH(ne,ie,8)^h.default.shrSH(ne,ie,7),Se=h.default.rotrSL(ne,ie,1)^h.default.rotrSL(ne,ie,8)^h.default.shrSL(ne,ie,7),S=0|A[B-2],k=0|H[B-2],P=h.default.rotrSH(S,k,19)^h.default.rotrBH(S,k,61)^h.default.shrSH(S,k,6),j=h.default.rotrSL(S,k,19)^h.default.rotrBL(S,k,61)^h.default.shrSL(S,k,6),te=h.default.add4L(Se,j,H[B-7],H[B-16]),oe=h.default.add4H(te,fe,P,A[B-7],A[B-16]);A[B]=0|oe,H[B]=0|te}let{Ah:b,Al:W,Bh:G,Bl:T,Ch:F,Cl:Q,Dh:Y,Dl:X,Eh:Z,El:re,Fh:J,Fl:ee,Gh:z,Gl:M,Hh:U,Hl:R}=this;for(let B=0;B<80;B++){const ne=h.default.rotrSH(Z,re,14)^h.default.rotrSH(Z,re,18)^h.default.rotrBH(Z,re,41),ie=h.default.rotrSL(Z,re,14)^h.default.rotrSL(Z,re,18)^h.default.rotrBL(Z,re,41),fe=Z&J^~Z&z,S=h.default.add5L(R,ie,re&ee^~re&M,V[B],H[B]),k=h.default.add5H(S,U,ne,fe,_[B],A[B]),P=0|S,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),oe=b&G^b&F^G&F,ue=W&T^W&Q^T&Q;U=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|k,0|P)),Y=0|F,X=0|Q,F=0|G,Q=0|T,G=0|b,T=0|W;const ce=h.default.add3L(P,te,ue);b=h.default.add3H(ce,k,j,oe),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:F,l:Q}=h.default.add(0|this.Ch,0|this.Cl,0|F,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:U,l:R}=h.default.add(0|this.Hh,0|this.Hl,0|U,0|R)),this.set(b,W,G,T,F,Q,Y,X,Z,re,J,ee,z,M,U,R)}roundClean(){A.fill(0),H.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=g;class I extends g{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}}f.SHA512_224=I;class $ extends g{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}}f.SHA512_256=$;class O extends g{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.SHA384=O,f.sha512=(0,w.wrapConstructor)(()=>new g),f.sha512_224=(0,w.wrapConstructor)(()=>new I),f.sha512_256=(0,w.wrapConstructor)(()=>new $),f.sha384=(0,w.wrapConstructor)(()=>new O)},6492:(le,f,y)=>{"use strict";var E=y(9293).default;Object.defineProperty(f,"__esModule",{value:!0}),f.Hash=f.nextTick=f.byteSwapIfBE=f.byteSwap=f.isLE=f.rotl=f.rotr=f.createView=f.u32=f.u8=void 0,f.isBytes=function _(R){return R instanceof Uint8Array||null!=R&&"object"==typeof R&&"Uint8Array"===R.constructor.name},f.byteSwap32=function O(R){for(let B=0;BR().update(Y(ie)).digest(),ne=R();return B.outputLen=ne.outputLen,B.blockLen=ne.blockLen,B.create=()=>R(),B},f.wrapConstructorWithOpts=function z(R){const B=(ie,fe)=>R(fe).update(Y(ie)).digest(),ne=R({});return B.outputLen=ne.outputLen,B.blockLen=ne.blockLen,B.create=ie=>R(ie),B},f.wrapXOFConstructorWithOpts=function M(R){const B=(ie,fe)=>R(fe).update(Y(ie)).digest(),ne=R({});return B.outputLen=ne.outputLen,B.blockLen=ne.blockLen,B.create=ie=>R(ie),B},f.randomBytes=function U(R=32){if(h.crypto&&"function"==typeof h.crypto.getRandomValues)return h.crypto.getRandomValues(new Uint8Array(R));if(h.crypto&&"function"==typeof h.crypto.randomBytes)return h.crypto.randomBytes(R);throw new Error("crypto.getRandomValues must be defined")};const h=y(9948),w=y(8578);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,B)=>R<<32-B|R>>>B,f.rotl=(R,B)=>R<>>32-B>>>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);const C=Array.from({length:256},(R,B)=>B.toString(16).padStart(2,"0")),N={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function b(R){return R>=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 F(){return(F=E(function*(R,B,ne){let ie=Date.now();for(let fe=0;fe=0&&Se{"use strict";function E(z){return z instanceof Uint8Array||null!=z&&"object"==typeof z&&"Uint8Array"===z.constructor.name}function h(...z){const M=ne=>ne,U=(ne,ie)=>fe=>ne(ie(fe));return{encode:z.map(ne=>ne.encode).reduceRight(U,M),decode:z.map(ne=>ne.decode).reduce(U,M)}}function w(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(U=>{if(U<0||U>=z.length)throw new Error(`Digit index outside alphabet: ${U} (alphabet: ${z.length})`);return z[U]})},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(U=>{if("string"!=typeof U)throw new Error(`alphabet.decode: not string element=${U}`);const R=z.indexOf(U);if(-1===R)throw new Error(`Unknown letter: "${U}". Allowed: ${z}`);return R})}}}function _(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 U of M)if("string"!=typeof U)throw new Error(`join.encode: non-string input=${U}`);return M.join(z)},decode:M=>{if("string"!=typeof M)throw new Error("join.decode input should be string");return M.split(z)}}}function V(z,M="="){if("string"!=typeof M)throw new Error("padding chr should be string");return{encode(U){if(!Array.isArray(U)||U.length&&"string"!=typeof U[0])throw new Error("padding.encode input should be array of strings");for(let R of U)if("string"!=typeof R)throw new Error(`padding.encode: non-string input=${R}`);for(;U.length*z%8;)U.push(M);return U},decode(U){if(!Array.isArray(U)||U.length&&"string"!=typeof U[0])throw new Error("padding.encode input should be array of strings");for(let B of U)if("string"!=typeof B)throw new Error(`padding.decode: non-string input=${B}`);let R=U.length;if(R*z%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;R>0&&U[R-1]===M;R--)if(!((R-1)*z%8))throw new Error("Invalid padding: string has too much padding");return U.slice(0,R)}}}function A(z){if("function"!=typeof z)throw new Error("normalize fn should be function");return{encode:M=>M,decode:M=>z(M)}}function H(z,M,U){if(M<2)throw new Error(`convertRadix: wrong from=${M}, base cannot be less than 2`);if(U<2)throw new Error(`convertRadix: wrong to=${U}, 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 B=[],ne=Array.from(z);for(ne.forEach(ie=>{if(ie<0||ie>=M)throw new Error(`Wrong integer: ${ie}`)});;){let ie=0,fe=!0;for(let Se=R;SeM?g(M,z%M):z,I=(z,M)=>z+(M-g(z,M));function $(z,M,U,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(U<=0||U>32)throw new Error(`convertRadix2: wrong to=${U}`);if(I(M,U)>32)throw new Error(`convertRadix2: carry overflow from=${M} to=${U} carryBits=${I(M,U)}`);let B=0,ne=0;const ie=2**U-1,fe=[];for(const Se of z){if(Se>=2**M)throw new Error(`convertRadix2: invalid data word=${Se} from=${M}`);if(B=B<32)throw new Error(`convertRadix2: carry overflow pos=${ne} from=${M}`);for(ne+=M;ne>=U;ne-=U)fe.push((B>>ne-U&ie)>>>0);B&=2**ne-1}if(B=B<=M)throw new Error("Excess padding");if(!R&&B)throw new Error(`Non-zero padding: ${B}`);return R&&ne>0&&fe.push(B>>>0),fe}function O(z){return{encode:M=>{if(!E(M))throw new Error("radix.encode input should be Uint8Array");return H(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(H(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:U=>{if(!E(U))throw new Error("radix2.encode input should be Uint8Array");return $(Array.from(U),8,z,!M)},decode:U=>{if(!Array.isArray(U)||U.length&&"number"!=typeof U[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from($(U,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(U){if(!E(U))throw new Error("checksum.encode: input should be Uint8Array");const R=M(U).slice(0,z),B=new Uint8Array(U.length+z);return B.set(U),B.set(R,U.length),B},decode(U){if(!E(U))throw new Error("checksum.decode: input should be Uint8Array");const R=U.slice(0,-z),B=M(R).slice(0,z),ne=U.slice(-z);for(let ie=0;iez.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),f.base64=h(C(6),w("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),V(6),_("")),f.base64nopad=h(C(6),w("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),_("")),f.base64url=h(C(6),w("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),V(6),_("")),f.base64urlnopad=h(C(6),w("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),_(""));const b=z=>h(O(58),w(z),_(""));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 U=0;Uh(N(4,M=>z(z(M))),f.base58),f.base58check=f.createBase58check;const T=h(w("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),_("")),F=[996825010,642813549,513874426,1027748829,705979059];function Q(z){const M=z>>25;let U=(33554431&z)<<5;for(let R=0;R>R&1)&&(U^=F[R]);return U}function Y(z,M,U=1){const R=z.length;let B=1;for(let ne=0;ne126)throw new Error(`Invalid prefix (${z})`);B=Q(B)^ie>>5}B=Q(B);for(let ne=0;nete)throw new TypeError(`Length ${oe} exceeds limit ${te}`);const ue=P.toLowerCase(),ce=Y(ue,j,M);return`${ue}1${T.encode(j)}${ce}`}function fe(P,j=90){if("string"!=typeof P)throw new Error("bech32.decode input should be string, not "+typeof P);if(P.length<8||!1!==j&&P.length>j)throw new TypeError(`Wrong string length: ${P.length} (${P}). Expected (8..${j})`);const te=P.toLowerCase();if(P!==te&&P!==P.toUpperCase())throw new Error("String must be lowercase or uppercase");const oe=te.lastIndexOf("1");if(0===oe||-1===oe)throw new Error('Letter "1" must be present between prefix and data only');const ue=te.slice(0,oe),ce=te.slice(oe+1);if(ce.length<6)throw new Error("Data must be at least 6 characters long");const me=T.decode(ce).slice(0,-6),pe=Y(ue,me,M);if(!ce.endsWith(pe))throw new Error(`Invalid checksum in ${P}: expected "${pe}"`);return{prefix:ue,words:me}}return{encode:ie,decode:fe,encodeFromBytes:function k(P,j){return ie(P,B(j))},decodeToBytes:function S(P){const{prefix:j,words:te}=fe(P,!1);return{prefix:j,words:te,bytes:R(te)}},decodeUnsafe:x(fe),fromWords:R,fromWordsUnsafe:ne,toWords:B}}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),w("0123456789abcdef"),_(""),A(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(!E(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},3188:function(le,f,y){var E;le.exports=(E=y(7656),y(8891),y(8855),y(4147),y(2414),function(){var h=E,_=h.lib.BlockCipher,V=h.algo,A=[],H=[],g=[],I=[],$=[],O=[],C=[],x=[],N=[],b=[];!function(){for(var T=[],F=0;F<256;F++)T[F]=F<128?F<<1:F<<1^283;var Q=0,Y=0;for(F=0;F<256;F++){var X=Y^Y<<1^Y<<2^Y<<3^Y<<4;A[Q]=X=X>>>8^255&X^99,H[X]=Q;var ee,Z=T[Q],re=T[Z],J=T[re];g[Q]=(ee=257*T[X]^16843008*X)<<24|ee>>>8,I[Q]=ee<<16|ee>>>16,$[Q]=ee<<8|ee>>>24,O[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=V.AES=_.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var F=this._keyPriorReset=this._key,Q=F.words,Y=F.sigBytes/4,Z=4*((this._nRounds=Y+6)+1),re=this._keySchedule=[],J=0;J6&&J%Y==4&&(T=A[T>>>24]<<24|A[T>>>16&255]<<16|A[T>>>8&255]<<8|A[255&T]):(T=A[(T=T<<8|T>>>24)>>>24]<<24|A[T>>>16&255]<<16|A[T>>>8&255]<<8|A[255&T],T^=W[J/Y|0]<<24),re[J]=re[J-Y]^T);for(var ee=this._invKeySchedule=[],z=0;z>>24]]^x[A[T>>>16&255]]^N[A[T>>>8&255]]^b[A[255&T]]}}},encryptBlock:function(T,F){this._doCryptBlock(T,F,this._keySchedule,g,I,$,O,A)},decryptBlock:function(T,F){var Q=T[F+1];T[F+1]=T[F+3],T[F+3]=Q,this._doCryptBlock(T,F,this._invKeySchedule,C,x,N,b,H),Q=T[F+1],T[F+1]=T[F+3],T[F+3]=Q},_doCryptBlock:function(T,F,Q,Y,X,Z,re,J){for(var ee=this._nRounds,z=T[F]^Q[0],M=T[F+1]^Q[1],U=T[F+2]^Q[2],R=T[F+3]^Q[3],B=4,ne=1;ne>>24]^X[M>>>16&255]^Z[U>>>8&255]^re[255&R]^Q[B++],fe=Y[M>>>24]^X[U>>>16&255]^Z[R>>>8&255]^re[255&z]^Q[B++],Se=Y[U>>>24]^X[R>>>16&255]^Z[z>>>8&255]^re[255&M]^Q[B++],S=Y[R>>>24]^X[z>>>16&255]^Z[M>>>8&255]^re[255&U]^Q[B++];z=ie,M=fe,U=Se,R=S}ie=(J[z>>>24]<<24|J[M>>>16&255]<<16|J[U>>>8&255]<<8|J[255&R])^Q[B++],fe=(J[M>>>24]<<24|J[U>>>16&255]<<16|J[R>>>8&255]<<8|J[255&z])^Q[B++],Se=(J[U>>>24]<<24|J[R>>>16&255]<<16|J[z>>>8&255]<<8|J[255&M])^Q[B++],S=(J[R>>>24]<<24|J[z>>>16&255]<<16|J[M>>>8&255]<<8|J[255&U])^Q[B++],T[F]=ie,T[F+1]=fe,T[F+2]=Se,T[F+3]=S},keySize:8});h.AES=_._createHelper(G)}(),E.AES)},5269:function(le,f,y){var E;le.exports=(E=y(7656),y(8891),y(8855),y(4147),y(2414),function(){var h=E,_=h.lib.BlockCipher;const A=16,H=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],g=[[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 $(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 O(b,W,G){let Q,T=W,F=G;for(let Y=0;Y=G&&(T=0);let F=0,Q=0,Y=0;for(let X=0;X1;--Y)T^=b.pbox[Y],F=$(b,T)^F,Q=T,T=F,F=Q;return Q=T,T=F,F=Q,F^=b.pbox[1],T^=b.pbox[0],{left:T,right:F}}(I,b[W],b[W+1]);b[W]=G.left,b[W+1]=G.right},blockSize:2,keySize:4,ivSize:2});h.Blowfish=_._createHelper(N)}(),E.Blowfish)},2414:function(le,f,y){var w,_,V,A,H,g,$,C,x,b,W,G,F,Y,Z,re,ee,z,E;le.exports=(E=y(7656),y(4147),void(E.lib.Cipher||(w=E,_=w.lib,V=_.Base,A=_.WordArray,H=_.BufferedBlockAlgorithm,g=w.enc,$=g.Base64,C=w.algo.EvpKDF,x=_.Cipher=H.extend({cfg:V.extend(),createEncryptor:function(M,U){return this.create(this._ENC_XFORM_MODE,M,U)},createDecryptor:function(M,U){return this.create(this._DEC_XFORM_MODE,M,U)},init:function(M,U,R){this.cfg=this.cfg.extend(R),this._xformMode=M,this._key=U,this.reset()},reset:function(){H.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(U){return"string"==typeof U?z:re}return function(U){return{encrypt:function(R,B,ne){return M(B).encrypt(U,R,B,ne)},decrypt:function(R,B,ne){return M(B).decrypt(U,R,B,ne)}}}}()}),_.StreamCipher=x.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),b=w.mode={},W=_.BlockCipherMode=V.extend({createEncryptor:function(M,U){return this.Encryptor.create(M,U)},createDecryptor:function(M,U){return this.Decryptor.create(M,U)},init:function(M,U){this._cipher=M,this._iv=U}}),G=b.CBC=function(){var M=W.extend();function U(R,B,ne){var ie,fe=this._iv;fe?(ie=fe,this._iv=undefined):ie=this._prevBlock;for(var Se=0;Se>>2]}},_.BlockCipher=x.extend({cfg:x.cfg.extend({mode:G,padding:F}),reset:function(){var M;x.reset.call(this);var U=this.cfg,R=U.iv,B=U.mode;this._xformMode==this._ENC_XFORM_MODE?M=B.createEncryptor:(M=B.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==M?this._mode.init(this,R&&R.words):(this._mode=M.call(B,this,R&&R.words),this._mode.__creator=M)},_doProcessBlock:function(M,U){this._mode.processBlock(M,U)},_doFinalize:function(){var M,U=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(U.pad(this._data,this.blockSize),M=this._process(!0)):(M=this._process(!0),U.unpad(M)),M},blockSize:4}),Y=_.CipherParams=V.extend({init:function(M){this.mixIn(M)},toString:function(M){return(M||this.formatter).stringify(this)}}),Z=(w.format={}).OpenSSL={stringify:function(M){var R=M.ciphertext,B=M.salt;return(B?A.create([1398893684,1701076831]).concat(B).concat(R):R).toString($)},parse:function(M){var U,R=$.parse(M),B=R.words;return 1398893684==B[0]&&1701076831==B[1]&&(U=A.create(B.slice(2,4)),B.splice(0,4),R.sigBytes-=16),Y.create({ciphertext:R,salt:U})}},re=_.SerializableCipher=V.extend({cfg:V.extend({format:Z}),encrypt:function(M,U,R,B){B=this.cfg.extend(B);var ne=M.createEncryptor(R,B),ie=ne.finalize(U),fe=ne.cfg;return Y.create({ciphertext:ie,key:R,iv:fe.iv,algorithm:M,mode:fe.mode,padding:fe.padding,blockSize:M.blockSize,formatter:B.format})},decrypt:function(M,U,R,B){return B=this.cfg.extend(B),U=this._parse(U,B.format),M.createDecryptor(R,B).finalize(U.ciphertext)},_parse:function(M,U){return"string"==typeof M?U.parse(M,this):M}}),ee=(w.kdf={}).OpenSSL={execute:function(M,U,R,B,ne){if(B||(B=A.random(8)),ne)var ie=C.create({keySize:U+R,hasher:ne}).compute(M,B);else ie=C.create({keySize:U+R}).compute(M,B);var fe=A.create(ie.words.slice(U),4*R);return ie.sigBytes=4*U,Y.create({key:ie,iv:fe,salt:B})}},z=_.PasswordBasedCipher=re.extend({cfg:re.cfg.extend({kdf:ee}),encrypt:function(M,U,R,B){var ne=(B=this.cfg.extend(B)).kdf.execute(R,M.keySize,M.ivSize,B.salt,B.hasher);B.iv=ne.iv;var ie=re.encrypt.call(this,M,U,ne.key,B);return ie.mixIn(ne),ie},decrypt:function(M,U,R,B){B=this.cfg.extend(B),U=this._parse(U,B.format);var ne=B.kdf.execute(R,M.keySize,M.ivSize,U.salt,B.hasher);return B.iv=ne.iv,re.decrypt.call(this,M,U,ne.key,B)}}))))},7656:function(le,f,y){var E;le.exports=(E=E||function(h){var _;if(typeof window<"u"&&window.crypto&&(_=window.crypto),typeof self<"u"&&self.crypto&&(_=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(_=globalThis.crypto),!_&&typeof window<"u"&&window.msCrypto&&(_=window.msCrypto),!_&&typeof global<"u"&&global.crypto&&(_=global.crypto),!_)try{_=y(477)}catch{}var V=function(){if(_){if("function"==typeof _.getRandomValues)try{return _.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof _.randomBytes)try{return _.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},A=Object.create||function(){function T(){}return function(F){var Q;return T.prototype=F,Q=new T,T.prototype=null,Q}}(),H={},g=H.lib={},I=g.Base=function(){return{extend:function(T){var F=A(this);return T&&F.mixIn(T),(!F.hasOwnProperty("init")||this.init===F.init)&&(F.init=function(){F.$super.init.apply(this,arguments)}),F.init.prototype=F,F.$super=this,F},create:function(){var T=this.extend();return T.init.apply(T,arguments),T},init:function(){},mixIn:function(T){for(var F in T)T.hasOwnProperty(F)&&(this[F]=T[F]);T.hasOwnProperty("toString")&&(this.toString=T.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),$=g.WordArray=I.extend({init:function(T,F){T=this.words=T||[],this.sigBytes=null!=F?F:4*T.length},toString:function(T){return(T||C).stringify(this)},concat:function(T){var F=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,F=this.sigBytes;T[F>>>2]&=4294967295<<32-F%4*8,T.length=h.ceil(F/4)},clone:function(){var T=I.clone.call(this);return T.words=this.words.slice(0),T},random:function(T){for(var F=[],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 F=T.length,Q=[],Y=0;Y>>3]|=parseInt(T.substr(Y,2),16)<<24-Y%8*4;return new $.init(Q,F/2)}},x=O.Latin1={stringify:function(T){for(var F=T.words,Q=T.sigBytes,Y=[],X=0;X>>2]>>>24-X%4*8&255));return Y.join("")},parse:function(T){for(var F=T.length,Q=[],Y=0;Y>>2]|=(255&T.charCodeAt(Y))<<24-Y%4*8;return new $.init(Q,F)}},N=O.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=g.BufferedBlockAlgorithm=I.extend({reset:function(){this._data=new $.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 F,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<$;T++)C.push(O.charAt(G>>>6*(3-T)&63));var F=O.charAt(64);if(F)for(;C.length%4;)C.push(F);return C.join("")},parse:function(g){var I=g.length,$=this._map,O=this._reverseMap;if(!O){O=this._reverseMap=[];for(var C=0;C<$.length;C++)O[$.charCodeAt(C)]=C}var x=$.charAt(64);if(x){var N=g.indexOf(x);-1!==N&&(I=N)}return function H(g,I,$){for(var O=[],C=0,x=0;x>>6-x%4*2;O[C>>>2]|=(N|b)<<24-C%4*8,C++}return _.create(O,C)}(g,I,O)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},E.enc.Base64)},6598:function(le,f,y){var E,_;le.exports=(E=y(7656),_=E.lib.WordArray,E.enc.Base64url={stringify:function(g,I){void 0===I&&(I=!0);var $=g.words,O=g.sigBytes,C=I?this._safe_map:this._map;g.clamp();for(var x=[],N=0;N>>2]>>>24-N%4*8&255)<<16|($[N+1>>>2]>>>24-(N+1)%4*8&255)<<8|$[N+2>>>2]>>>24-(N+2)%4*8&255,F=0;F<4&&N+.75*F>>6*(3-F)&63));var Q=C.charAt(64);if(Q)for(;x.length%4;)x.push(Q);return x.join("")},parse:function(g,I){void 0===I&&(I=!0);var $=g.length,O=I?this._safe_map:this._map,C=this._reverseMap;if(!C){C=this._reverseMap=[];for(var x=0;x>>6-x%4*2;O[C>>>2]|=(N|b)<<24-C%4*8,C++}return _.create(O,C)}(g,$,C)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},E.enc.Base64url)},5304:function(le,f,y){var E;le.exports=(E=y(7656),function(){var _=E.lib.WordArray,V=E.enc;function H(g){return g<<8&4278255360|g>>>8&16711935}V.Utf16=V.Utf16BE={stringify:function(g){for(var I=g.words,$=g.sigBytes,O=[],C=0;C<$;C+=2)O.push(String.fromCharCode(I[C>>>2]>>>16-C%4*8&65535));return O.join("")},parse:function(g){for(var I=g.length,$=[],O=0;O>>1]|=g.charCodeAt(O)<<16-O%2*16;return _.create($,2*I)}},V.Utf16LE={stringify:function(g){for(var I=g.words,$=g.sigBytes,O=[],C=0;C<$;C+=2){var x=H(I[C>>>2]>>>16-C%4*8&65535);O.push(String.fromCharCode(x))}return O.join("")},parse:function(g){for(var I=g.length,$=[],O=0;O>>1]|=H(g.charCodeAt(O)<<16-O%2*16);return _.create($,2*I)}}}(),E.enc.Utf16)},4147:function(le,f,y){var h,w,_,V,A,g,E;le.exports=(E=y(7656),y(9986),y(7868),V=(w=(h=E).lib).WordArray,g=(A=h.algo).EvpKDF=(_=w.Base).extend({cfg:_.extend({keySize:4,hasher:A.MD5,iterations:1}),init:function(I){this.cfg=this.cfg.extend(I)},compute:function(I,$){for(var O,C=this.cfg,x=C.hasher.create(),N=V.create(),b=N.words,W=C.keySize,G=C.iterations;b.lengthC&&($=I.finalize($)),$.clamp();for(var x=this._oKey=$.clone(),N=this._iKey=$.clone(),b=x.words,W=N.words,G=0;G>>2]|=H[$]<<24-$%4*8;V.call(this,I,g)}else V.apply(this,arguments)};A.prototype=_}}(),E.lib.WordArray)},8855:function(le,f,y){var E;le.exports=(E=y(7656),function(h){var w=E,_=w.lib,V=_.WordArray,A=_.Hasher,H=w.algo,g=[];!function(){for(var N=0;N<64;N++)g[N]=4294967296*h.abs(h.sin(N+1))|0}();var I=H.MD5=A.extend({_doReset:function(){this._hash=new V.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 F=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],U=N[b+9],R=N[b+10],B=N[b+11],ne=N[b+12],ie=N[b+13],fe=N[b+14],Se=N[b+15],S=F[0],k=F[1],P=F[2],j=F[3];S=$(S,k,P,j,Q,7,g[0]),j=$(j,S,k,P,Y,12,g[1]),P=$(P,j,S,k,X,17,g[2]),k=$(k,P,j,S,Z,22,g[3]),S=$(S,k,P,j,re,7,g[4]),j=$(j,S,k,P,J,12,g[5]),P=$(P,j,S,k,ee,17,g[6]),k=$(k,P,j,S,z,22,g[7]),S=$(S,k,P,j,M,7,g[8]),j=$(j,S,k,P,U,12,g[9]),P=$(P,j,S,k,R,17,g[10]),k=$(k,P,j,S,B,22,g[11]),S=$(S,k,P,j,ne,7,g[12]),j=$(j,S,k,P,ie,12,g[13]),P=$(P,j,S,k,fe,17,g[14]),S=O(S,k=$(k,P,j,S,Se,22,g[15]),P,j,Y,5,g[16]),j=O(j,S,k,P,ee,9,g[17]),P=O(P,j,S,k,B,14,g[18]),k=O(k,P,j,S,Q,20,g[19]),S=O(S,k,P,j,J,5,g[20]),j=O(j,S,k,P,R,9,g[21]),P=O(P,j,S,k,Se,14,g[22]),k=O(k,P,j,S,re,20,g[23]),S=O(S,k,P,j,U,5,g[24]),j=O(j,S,k,P,fe,9,g[25]),P=O(P,j,S,k,Z,14,g[26]),k=O(k,P,j,S,M,20,g[27]),S=O(S,k,P,j,ie,5,g[28]),j=O(j,S,k,P,X,9,g[29]),P=O(P,j,S,k,z,14,g[30]),S=C(S,k=O(k,P,j,S,ne,20,g[31]),P,j,J,4,g[32]),j=C(j,S,k,P,M,11,g[33]),P=C(P,j,S,k,B,16,g[34]),k=C(k,P,j,S,fe,23,g[35]),S=C(S,k,P,j,Y,4,g[36]),j=C(j,S,k,P,re,11,g[37]),P=C(P,j,S,k,z,16,g[38]),k=C(k,P,j,S,R,23,g[39]),S=C(S,k,P,j,ie,4,g[40]),j=C(j,S,k,P,Q,11,g[41]),P=C(P,j,S,k,Z,16,g[42]),k=C(k,P,j,S,ee,23,g[43]),S=C(S,k,P,j,U,4,g[44]),j=C(j,S,k,P,ne,11,g[45]),P=C(P,j,S,k,Se,16,g[46]),S=x(S,k=C(k,P,j,S,X,23,g[47]),P,j,Q,6,g[48]),j=x(j,S,k,P,z,10,g[49]),P=x(P,j,S,k,fe,15,g[50]),k=x(k,P,j,S,J,21,g[51]),S=x(S,k,P,j,ne,6,g[52]),j=x(j,S,k,P,Z,10,g[53]),P=x(P,j,S,k,R,15,g[54]),k=x(k,P,j,S,Y,21,g[55]),S=x(S,k,P,j,M,6,g[56]),j=x(j,S,k,P,Se,10,g[57]),P=x(P,j,S,k,ee,15,g[58]),k=x(k,P,j,S,ie,21,g[59]),S=x(S,k,P,j,re,6,g[60]),j=x(j,S,k,P,B,10,g[61]),P=x(P,j,S,k,X,15,g[62]),k=x(k,P,j,S,U,21,g[63]),F[0]=F[0]+S|0,F[1]=F[1]+k|0,F[2]=F[2]+P|0,F[3]=F[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),F=W;b[15+(G+64>>>9<<4)]=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8),b[14+(G+64>>>9<<4)]=16711935&(F<<8|F>>>24)|4278255360&(F<<24|F>>>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=A.clone.call(this);return N._hash=this._hash.clone(),N}});function $(N,b,W,G,T,F,Q){var Y=N+(b&W|~b&G)+T+Q;return(Y<>>32-F)+b}function O(N,b,W,G,T,F,Q){var Y=N+(b&G|W&~G)+T+Q;return(Y<>>32-F)+b}function C(N,b,W,G,T,F,Q){var Y=N+(b^W^G)+T+Q;return(Y<>>32-F)+b}function x(N,b,W,G,T,F,Q){var Y=N+(W^(b|~G))+T+Q;return(Y<>>32-F)+b}w.MD5=A._createHelper(I),w.HmacMD5=A._createHmacHelper(I)}(Math),E.MD5)},4152:function(le,f,y){var E;le.exports=(E=y(7656),y(2414),E.mode.CFB=function(){var h=E.lib.BlockCipherMode.extend();function w(_,V,A,H){var g,I=this._iv;I?(g=I.slice(0),this._iv=void 0):g=this._prevBlock,H.encryptBlock(g,0);for(var $=0;$>24))A+=1<<24;else{var H=A>>16&255,g=A>>8&255,I=255&A;255===H?(H=0,255===g?(g=0,255===I?I=0:++I):++g):++H,A=0,A+=H<<16,A+=g<<8,A+=I}return A}var V=h.Encryptor=h.extend({processBlock:function(A,H){var g=this._cipher,I=g.blockSize,$=this._iv,O=this._counter;$&&(O=this._counter=$.slice(0),this._iv=void 0),function _(A){return 0===(A[0]=w(A[0]))&&(A[1]=w(A[1])),A}(O);var C=O.slice(0);g.encryptBlock(C,0);for(var x=0;x>>2]|=A<<24-H%4*8,h.sigBytes+=A},unpad:function(h){h.sigBytes-=255&h.words[h.sigBytes-1>>>2]}},E.pad.Ansix923)},7516:function(le,f,y){var E;le.exports=(E=y(7656),y(2414),E.pad.Iso10126={pad:function(h,w){var _=4*w,V=_-h.sigBytes%_;h.concat(E.lib.WordArray.random(V-1)).concat(E.lib.WordArray.create([V<<24],1))},unpad:function(h){h.sigBytes-=255&h.words[h.sigBytes-1>>>2]}},E.pad.Iso10126)},9047:function(le,f,y){var E;le.exports=(E=y(7656),y(2414),E.pad.Iso97971={pad:function(h,w){h.concat(E.lib.WordArray.create([2147483648],1)),E.pad.ZeroPadding.pad(h,w)},unpad:function(h){E.pad.ZeroPadding.unpad(h),h.sigBytes--}},E.pad.Iso97971)},2599:function(le,f,y){var E;le.exports=(E=y(7656),y(2414),E.pad.NoPadding={pad:function(){},unpad:function(){}},E.pad.NoPadding)},6964:function(le,f,y){var E;le.exports=(E=y(7656),y(2414),E.pad.ZeroPadding={pad:function(h,w){var _=4*w;h.clamp(),h.sigBytes+=_-(h.sigBytes%_||_)},unpad:function(h){var w=h.words,_=h.sigBytes-1;for(_=h.sigBytes-1;_>=0;_--)if(w[_>>>2]>>>24-_%4*8&255){h.sigBytes=_+1;break}}},E.pad.ZeroPadding)},7738:function(le,f,y){var h,w,_,V,A,g,I,E;le.exports=(E=y(7656),y(5168),y(7868),V=(w=(h=E).lib).WordArray,g=(A=h.algo).HMAC,I=A.PBKDF2=(_=w.Base).extend({cfg:_.extend({keySize:4,hasher:A.SHA256,iterations:25e4}),init:function($){this.cfg=this.cfg.extend($)},compute:function($,O){for(var C=this.cfg,x=g.create(C.hasher,$),N=V.create(),b=V.create([1]),W=N.words,G=b.words,T=C.keySize,F=C.iterations;W.length>>16,O[1],O[0]<<16|O[3]>>>16,O[2],O[1]<<16|O[0]>>>16,O[3],O[2]<<16|O[1]>>>16],N=this._C=[O[2]<<16|O[2]>>>16,4294901760&O[0]|65535&O[1],O[3]<<16|O[3]>>>16,4294901760&O[1]|65535&O[2],O[0]<<16|O[0]>>>16,4294901760&O[2]|65535&O[3],O[1]<<16|O[1]>>>16,4294901760&O[3]|65535&O[0]];this._b=0;for(var b=0;b<4;b++)$.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],F=16711935&(G<<8|G>>>24)|4278255360&(G<<24|G>>>8),Q=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8),Y=F>>>16|4294901760&Q,X=Q<<16|65535&F;for(N[0]^=F,N[1]^=Y,N[2]^=Q,N[3]^=X,N[4]^=F,N[5]^=Y,N[6]^=Q,N[7]^=X,b=0;b<4;b++)$.call(this)}},_doProcessBlock:function(O,C){var x=this._X;$.call(this),A[0]=x[0]^x[5]>>>16^x[3]<<16,A[1]=x[2]^x[7]>>>16^x[5]<<16,A[2]=x[4]^x[1]>>>16^x[7]<<16,A[3]=x[6]^x[3]>>>16^x[1]<<16;for(var N=0;N<4;N++)A[N]=16711935&(A[N]<<8|A[N]>>>24)|4278255360&(A[N]<<24|A[N]>>>8),O[C+N]^=A[N]},blockSize:4,ivSize:2});function $(){for(var O=this._X,C=this._C,x=0;x<8;x++)H[x]=C[x];for(C[0]=C[0]+1295307597+this._b|0,C[1]=C[1]+3545052371+(C[0]>>>0>>0?1:0)|0,C[2]=C[2]+886263092+(C[1]>>>0>>0?1:0)|0,C[3]=C[3]+1295307597+(C[2]>>>0>>0?1:0)|0,C[4]=C[4]+3545052371+(C[3]>>>0>>0?1:0)|0,C[5]=C[5]+886263092+(C[4]>>>0>>0?1:0)|0,C[6]=C[6]+1295307597+(C[5]>>>0>>0?1:0)|0,C[7]=C[7]+3545052371+(C[6]>>>0>>0?1:0)|0,this._b=C[7]>>>0>>0?1:0,x=0;x<8;x++){var N=O[x]+C[x],b=65535&N,W=N>>>16;g[x]=((b*b>>>17)+b*W>>>15)+W*W^((4294901760&N)*N|0)+((65535&N)*N|0)}O[0]=g[0]+(g[7]<<16|g[7]>>>16)+(g[6]<<16|g[6]>>>16)|0,O[1]=g[1]+(g[0]<<8|g[0]>>>24)+g[7]|0,O[2]=g[2]+(g[1]<<16|g[1]>>>16)+(g[0]<<16|g[0]>>>16)|0,O[3]=g[3]+(g[2]<<8|g[2]>>>24)+g[1]|0,O[4]=g[4]+(g[3]<<16|g[3]>>>16)+(g[2]<<16|g[2]>>>16)|0,O[5]=g[5]+(g[4]<<8|g[4]>>>24)+g[3]|0,O[6]=g[6]+(g[5]<<16|g[5]>>>16)+(g[4]<<16|g[4]>>>16)|0,O[7]=g[7]+(g[6]<<8|g[6]>>>24)+g[5]|0}h.RabbitLegacy=_._createHelper(I)}(),E.RabbitLegacy)},2795:function(le,f,y){var E;le.exports=(E=y(7656),y(8891),y(8855),y(4147),y(2414),function(){var h=E,_=h.lib.StreamCipher,A=[],H=[],g=[],I=h.algo.Rabbit=_.extend({_doReset:function(){for(var O=this._key.words,C=this.cfg.iv,x=0;x<4;x++)O[x]=16711935&(O[x]<<8|O[x]>>>24)|4278255360&(O[x]<<24|O[x]>>>8);var N=this._X=[O[0],O[3]<<16|O[2]>>>16,O[1],O[0]<<16|O[3]>>>16,O[2],O[1]<<16|O[0]>>>16,O[3],O[2]<<16|O[1]>>>16],b=this._C=[O[2]<<16|O[2]>>>16,4294901760&O[0]|65535&O[1],O[3]<<16|O[3]>>>16,4294901760&O[1]|65535&O[2],O[0]<<16|O[0]>>>16,4294901760&O[2]|65535&O[3],O[1]<<16|O[1]>>>16,4294901760&O[3]|65535&O[0]];for(this._b=0,x=0;x<4;x++)$.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],F=16711935&(G<<8|G>>>24)|4278255360&(G<<24|G>>>8),Q=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8),Y=F>>>16|4294901760&Q,X=Q<<16|65535&F;for(b[0]^=F,b[1]^=Y,b[2]^=Q,b[3]^=X,b[4]^=F,b[5]^=Y,b[6]^=Q,b[7]^=X,x=0;x<4;x++)$.call(this)}},_doProcessBlock:function(O,C){var x=this._X;$.call(this),A[0]=x[0]^x[5]>>>16^x[3]<<16,A[1]=x[2]^x[7]>>>16^x[5]<<16,A[2]=x[4]^x[1]>>>16^x[7]<<16,A[3]=x[6]^x[3]>>>16^x[1]<<16;for(var N=0;N<4;N++)A[N]=16711935&(A[N]<<8|A[N]>>>24)|4278255360&(A[N]<<24|A[N]>>>8),O[C+N]^=A[N]},blockSize:4,ivSize:2});function $(){for(var O=this._X,C=this._C,x=0;x<8;x++)H[x]=C[x];for(C[0]=C[0]+1295307597+this._b|0,C[1]=C[1]+3545052371+(C[0]>>>0>>0?1:0)|0,C[2]=C[2]+886263092+(C[1]>>>0>>0?1:0)|0,C[3]=C[3]+1295307597+(C[2]>>>0>>0?1:0)|0,C[4]=C[4]+3545052371+(C[3]>>>0>>0?1:0)|0,C[5]=C[5]+886263092+(C[4]>>>0>>0?1:0)|0,C[6]=C[6]+1295307597+(C[5]>>>0>>0?1:0)|0,C[7]=C[7]+3545052371+(C[6]>>>0>>0?1:0)|0,this._b=C[7]>>>0>>0?1:0,x=0;x<8;x++){var N=O[x]+C[x],b=65535&N,W=N>>>16;g[x]=((b*b>>>17)+b*W>>>15)+W*W^((4294901760&N)*N|0)+((65535&N)*N|0)}O[0]=g[0]+(g[7]<<16|g[7]>>>16)+(g[6]<<16|g[6]>>>16)|0,O[1]=g[1]+(g[0]<<8|g[0]>>>24)+g[7]|0,O[2]=g[2]+(g[1]<<16|g[1]>>>16)+(g[0]<<16|g[0]>>>16)|0,O[3]=g[3]+(g[2]<<8|g[2]>>>24)+g[1]|0,O[4]=g[4]+(g[3]<<16|g[3]>>>16)+(g[2]<<16|g[2]>>>16)|0,O[5]=g[5]+(g[4]<<8|g[4]>>>24)+g[3]|0,O[6]=g[6]+(g[5]<<16|g[5]>>>16)+(g[4]<<16|g[4]>>>16)|0,O[7]=g[7]+(g[6]<<8|g[6]>>>24)+g[5]|0}h.Rabbit=_._createHelper(I)}(),E.Rabbit)},5350:function(le,f,y){var E;le.exports=(E=y(7656),y(8891),y(8855),y(4147),y(2414),function(){var h=E,_=h.lib.StreamCipher,V=h.algo,A=V.RC4=_.extend({_doReset:function(){for(var I=this._key,$=I.words,O=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%O,G=C[x];C[x]=C[N=(N+C[x]+($[b>>>2]>>>24-b%4*8&255))%256],C[N]=G}this._i=this._j=0},_doProcessBlock:function(I,$){I[$]^=H.call(this)},keySize:8,ivSize:0});function H(){for(var I=this._S,$=this._i,O=this._j,C=0,x=0;x<4;x++){var N=I[$=($+1)%256];I[$]=I[O=(O+I[$])%256],I[O]=N,C|=I[(I[$]+I[O])%256]<<24-8*x}return this._i=$,this._j=O,C}h.RC4=_._createHelper(A);var g=V.RC4Drop=A.extend({cfg:A.cfg.extend({drop:192}),_doReset:function(){A._doReset.call(this);for(var I=this.cfg.drop;I>0;I--)H.call(this)}});h.RC4Drop=_._createHelper(g)}(),E.RC4)},447:function(le,f,y){var E;le.exports=(E=y(7656),function(){var w=E,_=w.lib,V=_.WordArray,A=_.Hasher,H=w.algo,g=V.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=V.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]),$=V.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]),O=V.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=V.create([0,1518500249,1859775393,2400959708,2840853838]),x=V.create([1352829926,1548603684,1836072691,2053994217,0]),N=H.RIPEMD160=A.extend({_doReset:function(){this._hash=V.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 ie,fe,Se,S,k,P,j,te,oe,ue,ce,ee=this._hash.words,z=C.words,M=x.words,U=g.words,R=I.words,B=$.words,ne=O.words;for(P=ie=ee[0],j=fe=ee[1],te=Se=ee[2],oe=S=ee[3],ue=k=ee[4],Z=0;Z<80;Z+=1)ce=ie+Y[X+U[Z]]|0,ce+=Z<16?b(fe,Se,S)+z[0]:Z<32?W(fe,Se,S)+z[1]:Z<48?G(fe,Se,S)+z[2]:Z<64?T(fe,Se,S)+z[3]:F(fe,Se,S)+z[4],ce=(ce=Q(ce|=0,B[Z]))+k|0,ie=k,k=S,S=Q(Se,10),Se=fe,fe=ce,ce=P+Y[X+R[Z]]|0,ce+=Z<16?F(j,te,oe)+M[0]:Z<32?T(j,te,oe)+M[1]:Z<48?G(j,te,oe)+M[2]:Z<64?W(j,te,oe)+M[3]:b(j,te,oe)+M[4],ce=(ce=Q(ce|=0,ne[Z]))+ue|0,P=ue,ue=oe,oe=Q(te,10),te=j,j=ce;ce=ee[1]+Se+oe|0,ee[1]=ee[2]+S+ue|0,ee[2]=ee[3]+k+P|0,ee[3]=ee[4]+ie+j|0,ee[4]=ee[0]+fe+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=A.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 F(Y,X,Z){return Y^(X|~Z)}function Q(Y,X){return Y<>>32-X}w.RIPEMD160=A._createHelper(N),w.HmacRIPEMD160=A._createHmacHelper(N)}(Math),E.RIPEMD160)},9986:function(le,f,y){var h,w,_,V,H,g,E;le.exports=(E=y(7656),_=(w=(h=E).lib).WordArray,H=[],g=h.algo.SHA1=(V=w.Hasher).extend({_doReset:function(){this._hash=new _.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(I,$){for(var O=this._hash.words,C=O[0],x=O[1],N=O[2],b=O[3],W=O[4],G=0;G<80;G++){if(G<16)H[G]=0|I[$+G];else{var T=H[G-3]^H[G-8]^H[G-14]^H[G-16];H[G]=T<<1|T>>>31}var F=(C<<5|C>>>27)+W+H[G];F+=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=F}O[0]=O[0]+C|0,O[1]=O[1]+x|0,O[2]=O[2]+N|0,O[3]=O[3]+b|0,O[4]=O[4]+W|0},_doFinalize:function(){var I=this._data,$=I.words,O=8*this._nDataBytes,C=8*I.sigBytes;return $[C>>>5]|=128<<24-C%32,$[14+(C+64>>>9<<4)]=Math.floor(O/4294967296),$[15+(C+64>>>9<<4)]=O,I.sigBytes=4*$.length,this._process(),this._hash},clone:function(){var I=V.clone.call(this);return I._hash=this._hash.clone(),I}}),h.SHA1=V._createHelper(g),h.HmacSHA1=V._createHmacHelper(g),E.SHA1)},9225:function(le,f,y){var h,_,V,A,H,E;le.exports=(E=y(7656),y(5168),_=(h=E).lib.WordArray,H=(V=h.algo).SHA224=(A=V.SHA256).extend({_doReset:function(){this._hash=new _.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var g=A._doFinalize.call(this);return g.sigBytes-=4,g}}),h.SHA224=A._createHelper(H),h.HmacSHA224=A._createHmacHelper(H),E.SHA224)},5168:function(le,f,y){var E;le.exports=(E=y(7656),function(h){var w=E,_=w.lib,V=_.WordArray,A=_.Hasher,H=w.algo,g=[],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&&(g[b]=x(h.pow(N,.5))),I[b]=x(h.pow(N,1/3)),b++),N++}();var $=[],O=H.SHA256=A.extend({_doReset:function(){this._hash=new V.init(g.slice(0))},_doProcessBlock:function(C,x){for(var N=this._hash.words,b=N[0],W=N[1],G=N[2],T=N[3],F=N[4],Q=N[5],Y=N[6],X=N[7],Z=0;Z<64;Z++){if(Z<16)$[Z]=0|C[x+Z];else{var re=$[Z-15],ee=$[Z-2];$[Z]=((re<<25|re>>>7)^(re<<14|re>>>18)^re>>>3)+$[Z-7]+((ee<<15|ee>>>17)^(ee<<13|ee>>>19)^ee>>>10)+$[Z-16]}var U=b&W^b&G^W&G,ne=X+((F<<26|F>>>6)^(F<<21|F>>>11)^(F<<7|F>>>25))+(F&Q^~F&Y)+I[Z]+$[Z];X=Y,Y=Q,Q=F,F=T+ne|0,T=G,G=W,W=b,b=ne+(((b<<30|b>>>2)^(b<<19|b>>>13)^(b<<10|b>>>22))+U)|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]+F|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=A.clone.call(this);return C._hash=this._hash.clone(),C}});w.SHA256=A._createHelper(O),w.HmacSHA256=A._createHmacHelper(O)}(Math),E.SHA256)},3752:function(le,f,y){var E;le.exports=(E=y(7656),y(4501),function(h){var w=E,_=w.lib,V=_.WordArray,A=_.Hasher,g=w.x64.Word,I=w.algo,$=[],O=[],C=[];!function(){for(var b=1,W=0,G=0;G<24;G++){$[b+5*W]=(G+1)*(G+2)/2%64;var F=(2*b+3*W)%5;b=W%5,W=F}for(b=0;b<5;b++)for(W=0;W<5;W++)O[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[F]).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 U=x[(re+4)%5],R=x[(re+1)%5],B=R.high,ne=R.low;for(J=U.high^(B<<1|ne>>>31),ee=U.low^(ne<<1|B>>>31),z=0;z<5;z++)(X=G[re+5*z]).high^=J,X.low^=ee}for(var ie=1;ie<25;ie++){var fe=(X=G[ie]).high,Se=X.low,S=$[ie];S<32?(J=fe<>>32-S,ee=Se<>>32-S):(J=Se<>>64-S,ee=fe<>>64-S);var k=x[O[ie]];k.high=J,k.low=ee}var P=x[0],j=G[0];for(P.high=j.high,P.low=j.low,re=0;re<5;re++)for(z=0;z<5;z++){var te=x[ie=re+5*z],oe=x[(re+1)%5+5*z],ue=x[(re+2)%5+5*z];(X=G[ie]).high=te.high^~oe.high&ue.high,X.low=te.low^~oe.low&ue.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,F=32*this.blockSize;W[T>>>5]|=1<<24-T%32,W[(h.ceil((T+1)/F)*F>>>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 V.init(Z,Y)},clone:function(){for(var b=A.clone.call(this),W=b._state=this._state.slice(0),G=0;G<25;G++)W[G]=W[G].clone();return b}});w.SHA3=A._createHelper(N),w.HmacSHA3=A._createHmacHelper(N)}(Math),E.SHA3)},4068:function(le,f,y){var h,w,_,V,A,H,g,E;le.exports=(E=y(7656),y(4501),y(885),_=(w=(h=E).x64).Word,V=w.WordArray,g=(A=h.algo).SHA384=(H=A.SHA512).extend({_doReset:function(){this._hash=new V.init([new _.init(3418070365,3238371032),new _.init(1654270250,914150663),new _.init(2438529370,812702999),new _.init(355462360,4144912697),new _.init(1731405415,4290775857),new _.init(2394180231,1750603025),new _.init(3675008525,1694076839),new _.init(1203062813,3204075428)])},_doFinalize:function(){var I=H._doFinalize.call(this);return I.sigBytes-=16,I}}),h.SHA384=H._createHelper(g),h.HmacSHA384=H._createHmacHelper(g),E.SHA384)},885:function(le,f,y){var E;le.exports=(E=y(7656),y(4501),function(){var h=E,_=h.lib.Hasher,V=h.x64,A=V.Word,H=V.WordArray,g=h.algo;function I(){return A.create.apply(A,arguments)}var $=[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)],O=[];!function(){for(var x=0;x<80;x++)O[x]=I()}();var C=g.SHA512=_.extend({_doReset:function(){this._hash=new H.init([new A.init(1779033703,4089235720),new A.init(3144134277,2227873595),new A.init(1013904242,4271175723),new A.init(2773480762,1595750129),new A.init(1359893119,2917565137),new A.init(2600822924,725511199),new A.init(528734635,4215389547),new A.init(1541459225,327033209)])},_doProcessBlock:function(x,N){for(var b=this._hash.words,W=b[0],G=b[1],T=b[2],F=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,U=T.low,R=F.high,B=F.low,ne=Q.high,ie=Q.low,fe=Y.high,Se=Y.low,S=X.high,k=X.low,P=Z.high,j=Z.low,te=re,oe=J,ue=ee,ce=z,me=M,pe=U,be=R,Fe=B,Be=ne,Oe=ie,Ae=fe,Le=Se,Te=S,ze=k,He=P,It=j,mt=0;mt<80;mt++){var yt,tn,Bn=O[mt];if(mt<16)tn=Bn.high=0|x[N+2*mt],yt=Bn.low=0|x[N+2*mt+1];else{var zn=O[mt-15],or=zn.high,Zr=zn.low,Bi=(Zr>>>1|or<<31)^(Zr>>>8|or<<24)^(Zr>>>7|or<<25),Jt=O[mt-2],Lt=Jt.high,ln=Jt.low,ir=(ln>>>19|Lt<<13)^(ln<<3|Lt>>>29)^(ln>>>6|Lt<<26),Gn=O[mt-7],bs=O[mt-16],Ad=bs.low;Bn.high=tn=(tn=(tn=((or>>>1|Zr<<31)^(or>>>8|Zr<<24)^or>>>7)+Gn.high+((yt=Bi+Gn.low)>>>0>>0?1:0))+((Lt>>>19|ln<<13)^(Lt<<3|ln>>>29)^Lt>>>6)+((yt+=ir)>>>0>>0?1:0))+bs.high+((yt+=Ad)>>>0>>0?1:0),Bn.low=yt}var xt,tl=Be&Ae^~Be&Te,Sd=Oe&Le^~Oe&ze,nl=te&ue^te&me^ue&me,rl=(oe>>>28|te<<4)^(oe<<30|te>>>2)^(oe<<25|te>>>7),Td=$[mt],Md=Td.low,lo=He+((Be>>>14|Oe<<18)^(Be>>>18|Oe<<14)^(Be<<23|Oe>>>9))+((xt=It+((Oe>>>14|Be<<18)^(Oe>>>18|Be<<14)^(Oe<<23|Be>>>9)))>>>0>>0?1:0),sr=rl+(oe&ce^oe&pe^ce&pe);He=Te,It=ze,Te=Ae,ze=Le,Ae=Be,Le=Oe,Be=be+(lo=(lo=(lo=lo+tl+((xt+=Sd)>>>0>>0?1:0))+Td.high+((xt+=Md)>>>0>>0?1:0))+tn+((xt+=yt)>>>0>>0?1:0))+((Oe=Fe+xt|0)>>>0>>0?1:0)|0,be=me,Fe=pe,me=ue,pe=ce,ue=te,ce=oe,te=lo+(((te>>>28|oe<<4)^(te<<30|oe>>>2)^(te<<25|oe>>>7))+nl+(sr>>>0>>0?1:0))+((oe=xt+sr|0)>>>0>>0?1:0)|0}J=W.low=J+oe,W.high=re+te+(J>>>0>>0?1:0),z=G.low=z+ce,G.high=ee+ue+(z>>>0>>0?1:0),U=T.low=U+pe,T.high=M+me+(U>>>0>>0?1:0),B=F.low=B+Fe,F.high=R+be+(B>>>0>>0?1:0),ie=Q.low=ie+Oe,Q.high=ne+Be+(ie>>>0>>0?1:0),Se=Y.low=Se+Le,Y.high=fe+Ae+(Se>>>0>>0?1:0),k=X.low=k+ze,X.high=S+Te+(k>>>0>>0?1:0),j=Z.low=j+It,Z.high=P+He+(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=_.clone.call(this);return x._hash=this._hash.clone(),x},blockSize:32});h.SHA512=_._createHelper(C),h.HmacSHA512=_._createHmacHelper(C)}(),E.SHA512)},2515:function(le,f,y){var E;le.exports=(E=y(7656),y(8891),y(8855),y(4147),y(2414),function(){var h=E,w=h.lib,_=w.WordArray,V=w.BlockCipher,A=h.algo,H=[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],g=[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],$=[{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}],O=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],C=A.DES=V.extend({_doReset:function(){for(var G=this._key.words,T=[],F=0;F<56;F++){var Q=H[F]-1;T[F]=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(F=0;F<24;F++)Z[F/6|0]|=T[(g[F]-1+re)%28]<<31-F%6,Z[4+(F/6|0)]|=T[28+(g[F+24]-1+re)%28]<<31-F%6;for(Z[0]=Z[0]<<1|Z[0]>>>31,F=1;F<7;F++)Z[F]=Z[F]>>>4*(F-1)+3;Z[7]=Z[7]<<5|Z[7]>>>27}var J=this._invSubKeys=[];for(F=0;F<16;F++)J[F]=Y[15-F]},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 F=0;F<16;F++){for(var Q=T[F],Y=this._lBlock,X=this._rBlock,Z=0,re=0;re<8;re++)Z|=$[re][((X^Q[re])&O[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),F=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(_.create(T)),this._des2=C.createEncryptor(_.create(F)),this._des3=C.createEncryptor(_.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=V._createHelper(b)}(),E.TripleDES)},4501:function(le,f,y){var _,V,A,H,E;le.exports=(E=y(7656),V=(_=E.lib).Base,A=_.WordArray,(H=E.x64={}).Word=V.extend({init:function($,O){this.high=$,this.low=O}}),H.WordArray=V.extend({init:function($,O){$=this.words=$||[],this.sigBytes=null!=O?O:8*$.length},toX32:function(){for(var $=this.words,O=$.length,C=[],x=0;x{"use strict";var f={single_source_shortest_paths:function(y,E,h){var w={},_={};_[E]=0;var A,H,g,I,$,C,V=f.PriorityQueue.make();for(V.push(E,0);!V.empty();)for(g in I=(A=V.pop()).cost,$=y[H=A.value]||{})$.hasOwnProperty(g)&&(C=I+$[g],(typeof _[g]>"u"||_[g]>C)&&(_[g]=C,V.push(g,C),w[g]=H));if(typeof h<"u"&&typeof _[h]>"u"){var b=["Could not find a path from ",E," to ",h,"."].join("");throw new Error(b)}return w},extract_shortest_path_from_predecessor_list:function(y,E){for(var h=[],w=E;w;)h.push(w),w=y[w];return h.reverse(),h},find_path:function(y,E,h){var w=f.single_source_shortest_paths(y,E,h);return f.extract_shortest_path_from_predecessor_list(w,h)},PriorityQueue:{make:function(y){var w,E=f.PriorityQueue,h={};for(w in y=y||{},E)E.hasOwnProperty(w)&&(h[w]=E[w]);return h.queue=[],h.sorter=y.sorter||E.default_sorter,h},default_sorter:function(y,E){return y.cost-E.cost},push:function(y,E){this.queue.push({value:y,cost:E}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};le.exports=f},8314:(le,f,y)=>{const h=y(2836),w=y(9460),_=y(7030),V=y(6511);function A(H,g,I,$,O){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=g,g=$=void 0):2===x&&!g.getContext&&($=I,I=g,g=void 0),new Promise(function(b,W){try{const G=w.create(I,$);b(H(G,g,$))}catch(G){W(G)}})}if(x<2)throw new Error("Too few arguments provided");2===x?(O=I,I=g,g=$=void 0):3===x&&(g.getContext&&typeof O>"u"?(O=$,$=void 0):(O=$,$=I,I=g,g=void 0));try{const b=w.create(I,$);O(null,H(b,g,$))}catch(b){O(b)}}f.mo=A.bind(null,_.render),A.bind(null,_.renderToDataURL),A.bind(null,function(H,g,I){return V.render(H,I)})},2836:le=>{le.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6214:(le,f,y)=>{const E=y(9089).getSymbolSize;f.getRowColCoords=function(w){if(1===w)return[];const _=Math.floor(w/7)+2,V=E(w),A=145===V?26:2*Math.ceil((V-13)/(2*_-2)),H=[V-7];for(let g=1;g<_-1;g++)H[g]=H[g-1]-A;return H.push(6),H.reverse()},f.getPositions=function(w){const _=[],V=f.getRowColCoords(w),A=V.length;for(let H=0;H{const E=y(1677),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=E.ALPHANUMERIC,this.data=_}w.getBitsLength=function(V){return 11*Math.floor(V/2)+V%2*6},w.prototype.getLength=function(){return this.data.length},w.prototype.getBitsLength=function(){return w.getBitsLength(this.data.length)},w.prototype.write=function(V){let A;for(A=0;A+2<=this.data.length;A+=2){let H=45*h.indexOf(this.data[A]);H+=h.indexOf(this.data[A+1]),V.put(H,11)}this.data.length%2&&V.put(h.indexOf(this.data[A]),6)},le.exports=w},4662:le=>{function f(){this.buffer=[],this.length=0}f.prototype={get:function(y){const E=Math.floor(y/8);return 1==(this.buffer[E]>>>7-y%8&1)},put:function(y,E){for(let h=0;h>>E-h-1&1))},getLengthInBits:function(){return this.length},putBit:function(y){const E=Math.floor(this.length/8);this.buffer.length<=E&&this.buffer.push(0),y&&(this.buffer[E]|=128>>>this.length%8),this.length++}},le.exports=f},5941:le=>{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,E,h,w){const _=y*this.size+E;this.data[_]=h,w&&(this.reservedBit[_]=!0)},f.prototype.get=function(y,E){return this.data[y*this.size+E]},f.prototype.xor=function(y,E,h){this.data[y*this.size+E]^=h},f.prototype.isReserved=function(y,E){return this.reservedBit[y*this.size+E]},le.exports=f},4969:(le,f,y)=>{const E=y(1677);function h(w){this.mode=E.BYTE,this.data="string"==typeof w?(new TextEncoder).encode(w):new Uint8Array(w)}h.getBitsLength=function(_){return 8*_},h.prototype.getLength=function(){return this.data.length},h.prototype.getBitsLength=function(){return h.getBitsLength(this.data.length)},h.prototype.write=function(w){for(let _=0,V=this.data.length;_{const E=y(7424),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],w=[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(V,A){switch(A){case E.L:return h[4*(V-1)+0];case E.M:return h[4*(V-1)+1];case E.Q:return h[4*(V-1)+2];case E.H:return h[4*(V-1)+3];default:return}},f.getTotalCodewordsCount=function(V,A){switch(A){case E.L:return w[4*(V-1)+0];case E.M:return w[4*(V-1)+1];case E.Q:return w[4*(V-1)+2];case E.H:return w[4*(V-1)+3];default:return}}},7424:(le,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,w){if(f.isValid(h))return h;try{return function y(E){if("string"!=typeof E)throw new Error("Param is not a string");switch(E.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: "+E)}}(h)}catch{return w}}},6269:(le,f,y)=>{const E=y(9089).getSymbolSize;f.getPositions=function(_){const V=E(_);return[[0,0],[V-7,0],[0,V-7]]}},6254:(le,f,y)=>{const E=y(9089),_=E.getBCHDigit(1335);f.getEncodedBits=function(A,H){const g=A.bit<<3|H;let I=g<<10;for(;E.getBCHDigit(I)-_>=0;)I^=1335<{const y=new Uint8Array(512),E=new Uint8Array(256);(function(){let w=1;for(let _=0;_<255;_++)y[_]=w,E[w]=_,w<<=1,256&w&&(w^=285);for(let _=255;_<512;_++)y[_]=y[_-255]})(),f.log=function(w){if(w<1)throw new Error("log("+w+")");return E[w]},f.exp=function(w){return y[w]},f.mul=function(w,_){return 0===w||0===_?0:y[E[w]+E[_]]}},3264:(le,f,y)=>{const E=y(1677),h=y(9089);function w(_){this.mode=E.KANJI,this.data=_}w.getBitsLength=function(V){return 13*V},w.prototype.getLength=function(){return this.data.length},w.prototype.getBitsLength=function(){return w.getBitsLength(this.data.length)},w.prototype.write=function(_){let V;for(V=0;V=33088&&A<=40956)A-=33088;else{if(!(A>=57408&&A<=60351))throw new Error("Invalid SJIS character: "+this.data[V]+"\nMake sure your charset is UTF-8");A-=49472}A=192*(A>>>8&255)+(255&A),_.put(A,13)}},le.exports=w},3361:(le,f)=>{f.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function E(h,w,_){switch(h){case f.Patterns.PATTERN000:return(w+_)%2==0;case f.Patterns.PATTERN001:return w%2==0;case f.Patterns.PATTERN010:return _%3==0;case f.Patterns.PATTERN011:return(w+_)%3==0;case f.Patterns.PATTERN100:return(Math.floor(w/2)+Math.floor(_/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(w){return null!=w&&""!==w&&!isNaN(w)&&w>=0&&w<=7},f.from=function(w){return f.isValid(w)?parseInt(w,10):void 0},f.getPenaltyN1=function(w){const _=w.size;let V=0,A=0,H=0,g=null,I=null;for(let $=0;$<_;$++){A=H=0,g=I=null;for(let O=0;O<_;O++){let C=w.get($,O);C===g?A++:(A>=5&&(V+=A-5+3),g=C,A=1),C=w.get(O,$),C===I?H++:(H>=5&&(V+=H-5+3),I=C,H=1)}A>=5&&(V+=A-5+3),H>=5&&(V+=H-5+3)}return V},f.getPenaltyN2=function(w){const _=w.size;let V=0;for(let A=0;A<_-1;A++)for(let H=0;H<_-1;H++){const g=w.get(A,H)+w.get(A,H+1)+w.get(A+1,H)+w.get(A+1,H+1);(4===g||0===g)&&V++}return 3*V},f.getPenaltyN3=function(w){const _=w.size;let V=0,A=0,H=0;for(let g=0;g<_;g++){A=H=0;for(let I=0;I<_;I++)A=A<<1&2047|w.get(g,I),I>=10&&(1488===A||93===A)&&V++,H=H<<1&2047|w.get(I,g),I>=10&&(1488===H||93===H)&&V++}return 40*V},f.getPenaltyN4=function(w){let _=0;const V=w.data.length;for(let H=0;H{const E=y(377),h=y(9359);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(V,A){if(!V.ccBits)throw new Error("Invalid mode: "+V);if(!E.isValid(A))throw new Error("Invalid version: "+A);return A>=1&&A<10?V.ccBits[0]:A<27?V.ccBits[1]:V.ccBits[2]},f.getBestModeForData=function(V){return h.testNumeric(V)?f.NUMERIC:h.testAlphanumeric(V)?f.ALPHANUMERIC:h.testKanji(V)?f.KANJI:f.BYTE},f.toString=function(V){if(V&&V.id)return V.id;throw new Error("Invalid mode")},f.isValid=function(V){return V&&V.bit&&V.ccBits},f.from=function(V,A){if(f.isValid(V))return V;try{return function w(_){if("string"!=typeof _)throw new Error("Param is not a string");switch(_.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: "+_)}}(V)}catch{return A}}},6628:(le,f,y)=>{const E=y(1677);function h(w){this.mode=E.NUMERIC,this.data=w.toString()}h.getBitsLength=function(_){return 10*Math.floor(_/3)+(_%3?_%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(_){let V,A,H;for(V=0;V+3<=this.data.length;V+=3)A=this.data.substr(V,3),H=parseInt(A,10),_.put(H,10);const g=this.data.length-V;g>0&&(A=this.data.substr(V),H=parseInt(A,10),_.put(H,3*g+1))},le.exports=h},1744:(le,f,y)=>{const E=y(6686);f.mul=function(w,_){const V=new Uint8Array(w.length+_.length-1);for(let A=0;A=0;){const A=V[0];for(let g=0;g<_.length;g++)V[g]^=E.mul(_[g],A);let H=0;for(;H{const E=y(9089),h=y(7424),w=y(4662),_=y(5941),V=y(6214),A=y(6269),H=y(3361),g=y(3677),I=y(6289),$=y(1252),O=y(6254),C=y(1677),x=y(2868);function T(Z,re,J){const ee=Z.size,z=O.getEncodedBits(re,J);let M,U;for(M=0;M<15;M++)U=1==(z>>M&1),Z.set(M<6?M:M<8?M+1:ee-15+M,8,U,!0),Z.set(8,M<8?ee-M-1:M<9?15-M-1+1:15-M-1,U,!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 ie=x.rawSplit(Z);ne=$.getBestVersionForData(ie,J)}z=x.fromString(Z,ne||40)}}const M=$.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===B||6===B)||B>=0&&B<=6&&(0===R||6===R)||R>=2&&R<=4&&B>=2&&B<=4,!0)}}(B,re),function b(Z){const re=Z.size;for(let J=8;J=7&&function G(Z,re){const J=Z.size,ee=$.getEncodedBits(re);let z,M,U;for(let R=0;R<18;R++)z=Math.floor(R/3),M=R%3+J-8-3,U=1==(ee>>R&1),Z.set(z,M,U,!0),Z.set(M,z,U,!0)}(B,re),function F(Z,re){const J=Z.size;let ee=-1,z=J-1,M=7,U=0;for(let R=J-1;R>0;R-=2)for(6===R&&R--;;){for(let B=0;B<2;B++)if(!Z.isReserved(z,R-B)){let ne=!1;U>>M&1)),Z.set(z,R-B,ne),M--,-1===M&&(U++,M=7)}if(z+=ee,z<0||J<=z){z-=ee,ee=-ee;break}}}(B,U),isNaN(ee)&&(ee=H.getBestMask(B,T.bind(null,B,J))),H.applyMask(ee,B),T(B,J,ee),{modules:B,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=$.from(J.version),M=H.from(J.maskPattern),J.toSJISFunc&&E.setToSJISFunction(J.toSJISFunc)),X(re,z,ee,M)}},6289:(le,f,y)=>{const E=y(1744);function h(w){this.genPoly=void 0,this.degree=w,this.degree&&this.initialize(this.degree)}h.prototype.initialize=function(_){this.degree=_,this.genPoly=E.generateECPolynomial(this.degree)},h.prototype.encode=function(_){if(!this.genPoly)throw new Error("Encoder not initialized");const V=new Uint8Array(_.length+this.degree);V.set(_);const A=E.mod(V,this.genPoly),H=this.degree-A.length;if(H>0){const g=new Uint8Array(this.degree);return g.set(A,H),g}return A},le.exports=h},9359:(le,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 w="(?:(?![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(w,"g"),f.NUMERIC=new RegExp(y,"g"),f.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const _=new RegExp("^"+h+"$"),V=new RegExp("^"+y+"$"),A=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");f.testKanji=function(g){return _.test(g)},f.testNumeric=function(g){return V.test(g)},f.testAlphanumeric=function(g){return A.test(g)}},2868:(le,f,y)=>{const E=y(1677),h=y(6628),w=y(1018),_=y(4969),V=y(3264),A=y(9359),H=y(9089),g=y(243);function I(G){return unescape(encodeURIComponent(G)).length}function $(G,T,F){const Q=[];let Y;for(;null!==(Y=G.exec(F));)Q.push({data:Y[0],index:Y.index,mode:T,length:Y[0].length});return Q}function O(G){const T=$(A.NUMERIC,E.NUMERIC,G),F=$(A.ALPHANUMERIC,E.ALPHANUMERIC,G);let Q,Y;return H.isKanjiModeEnabled()?(Q=$(A.BYTE,E.BYTE,G),Y=$(A.KANJI,E.KANJI,G)):(Q=$(A.BYTE_KANJI,E.BYTE,G),Y=[]),T.concat(F,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 E.NUMERIC:return h.getBitsLength(G);case E.ALPHANUMERIC:return w.getBitsLength(G);case E.KANJI:return V.getBitsLength(G);case E.BYTE:return _.getBitsLength(G)}}function W(G,T){let F;const Q=E.getBestModeForData(G);if(F=E.from(T,Q),F!==E.BYTE&&F.bit=0?T[T.length-1]:null;return Q&&Q.mode===F.mode?(T[T.length-1].data+=F.data,T):(T.push(F),T)},[])}(re))},f.rawSplit=function(T){return f.fromArray(O(T,H.isKanjiModeEnabled()))}},9089:(le,f)=>{let y;const E=[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(w){if(!w)throw new Error('"version" cannot be null or undefined');if(w<1||w>40)throw new Error('"version" should be in range from 1 to 40');return 4*w+17},f.getSymbolTotalCodewords=function(w){return E[w]},f.getBCHDigit=function(h){let w=0;for(;0!==h;)w++,h>>>=1;return w},f.setToSJISFunction=function(w){if("function"!=typeof w)throw new Error('"toSJISFunc" is not a valid function.');y=w},f.isKanjiModeEnabled=function(){return typeof y<"u"},f.toSJIS=function(w){return y(w)}},377:(le,f)=>{f.isValid=function(E){return!isNaN(E)&&E>=1&&E<=40}},1252:(le,f,y)=>{const E=y(9089),h=y(3677),w=y(7424),_=y(1677),V=y(377),H=E.getBCHDigit(7973);function I(C,x){return _.getCharCountIndicator(C,x)+4}function $(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 V.isValid(x)?parseInt(x,10):N},f.getCapacity=function(x,N,b){if(!V.isValid(x))throw new Error("Invalid QR Code version");typeof b>"u"&&(b=_.BYTE);const T=8*(E.getSymbolTotalCodewords(x)-h.getTotalCodewordsCount(x,N));if(b===_.MIXED)return T;const F=T-I(b,x);switch(b){case _.NUMERIC:return Math.floor(F/10*3);case _.ALPHANUMERIC:return Math.floor(F/11*2);case _.KANJI:return Math.floor(F/13);default:return Math.floor(F/8)}},f.getBestVersionForData=function(x,N){let b;const W=w.from(N,w.M);if(Array.isArray(x)){if(x.length>1)return function O(C,x){for(let N=1;N<=40;N++)if($(C,N)<=f.getCapacity(N,x,_.MIXED))return N}(x,W);if(0===x.length)return 1;b=x[0]}else b=x;return function g(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(!V.isValid(x)||x<7)throw new Error("Invalid QR Code version");let N=x<<12;for(;E.getBCHDigit(N)-H>=0;)N^=7973<{const E=y(7077);f.render=function(V,A,H){let g=H,I=A;typeof g>"u"&&(!A||!A.getContext)&&(g=A,A=void 0),A||(I=function w(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),g=E.getOptions(g);const $=E.getImageWidth(V.modules.size,g),O=I.getContext("2d"),C=O.createImageData($,$);return E.qrToImageData(C.data,V,g),function h(_,V,A){_.clearRect(0,0,V.width,V.height),V.style||(V.style={}),V.height=A,V.width=A,V.style.height=A+"px",V.style.width=A+"px"}(O,I,$),O.putImageData(C,0,0),I},f.renderToDataURL=function(V,A,H){let g=H;return typeof g>"u"&&(!A||!A.getContext)&&(g=A,A=void 0),g||(g={}),f.render(V,A,g).toDataURL(g.type||"image/png",(g.rendererOpts||{}).quality)}},6511:(le,f,y)=>{const E=y(7077);function h(V,A){const H=V.a/255,g=A+'="'+V.hex+'"';return H<1?g+" "+A+'-opacity="'+H.toFixed(2).slice(1)+'"':g}function w(V,A,H){let g=V+A;return typeof H<"u"&&(g+=" "+H),g}f.render=function(A,H,g){const I=E.getOptions(H),$=A.modules.size,O=A.modules.data,C=$+2*I.margin,x=I.color.light.a?"':"",N="0&&x>0&&V[C-1]||(g+=$?w("M",x+H,.5+N+H):w("m",I,0),I=0,$=!1),x+1',G=''+x+N+"\n";return"function"==typeof g&&g(null,G),G}},7077:(le,f)=>{function y(E){if("number"==typeof E&&(E=E.toString()),"string"!=typeof E)throw new Error("Color should be defined as hex string");let h=E.slice().replace("#","").split("");if(h.length<3||5===h.length||h.length>8)throw new Error("Invalid hex color: "+E);(3===h.length||4===h.length)&&(h=Array.prototype.concat.apply([],h.map(function(_){return[_,_]}))),6===h.length&&h.push("F","F");const w=parseInt(h.join(""),16);return{r:w>>24&255,g:w>>16&255,b:w>>8&255,a:255&w,hex:"#"+h.slice(0,6).join("")}}f.getOptions=function(h){h||(h={}),h.color||(h.color={});const _=h.width&&h.width>=21?h.width:void 0;return{width:_,scale:_?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,w){return w.width&&w.width>=h+2*w.margin?w.width/(h+2*w.margin):w.scale},f.getImageWidth=function(h,w){const _=f.getScale(h,w);return Math.floor((h+2*w.margin)*_)},f.qrToImageData=function(h,w,_){const V=w.modules.size,A=w.modules.data,H=f.getScale(V,_),g=Math.floor((V+2*_.margin)*H),I=_.margin*H,$=[_.color.light,_.color.dark];for(let O=0;O=I&&C>=I&&O{},9293:le=>{function f(E,h,w,_,V,A,H){try{var g=E[A](H),I=g.value}catch($){return void w($)}g.done?h(I):Promise.resolve(I).then(_,V)}le.exports=function y(E){return function(){var h=this,w=arguments;return new Promise(function(_,V){var A=E.apply(h,w);function H(I){f(A,_,V,H,g,"next",I)}function g(I){f(A,_,V,H,g,"throw",I)}H(void 0)})}},le.exports.__esModule=!0,le.exports.default=le.exports},467:(le,f,y)=>{"use strict";function E(w,_,V,A,H,g,I){try{var $=w[g](I),O=$.value}catch(C){return void V(C)}$.done?_(O):Promise.resolve(O).then(A,H)}function h(w){return function(){var _=this,V=arguments;return new Promise(function(A,H){var g=w.apply(_,V);function I(O){E(g,A,H,I,$,"next",O)}function $(O){E(g,A,H,I,$,"throw",O)}I(void 0)})}}y.d(f,{A:()=>h})},1635:(le,f,y)=>{"use strict";y.r(f),y.d(f,{__addDisposableResource:()=>ne,__assign:()=>w,__asyncDelegator:()=>Z,__asyncGenerator:()=>X,__asyncValues:()=>re,__await:()=>Y,__awaiter:()=>C,__classPrivateFieldGet:()=>U,__classPrivateFieldIn:()=>B,__classPrivateFieldSet:()=>R,__createBinding:()=>N,__decorate:()=>V,__disposeResources:()=>fe,__esDecorate:()=>H,__exportStar:()=>b,__extends:()=>h,__generator:()=>x,__importDefault:()=>M,__importStar:()=>z,__makeTemplateObject:()=>J,__metadata:()=>O,__param:()=>A,__propKey:()=>I,__read:()=>G,__rest:()=>_,__runInitializers:()=>g,__setFunctionName:()=>$,__spread:()=>T,__spreadArray:()=>Q,__spreadArrays:()=>F,__values:()=>W,default:()=>Se});var E=function(S,k){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,j){P.__proto__=j}||function(P,j){for(var te in j)Object.prototype.hasOwnProperty.call(j,te)&&(P[te]=j[te])})(S,k)};function h(S,k){if("function"!=typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function P(){this.constructor=S}E(S,k),S.prototype=null===k?Object.create(k):(P.prototype=k.prototype,new P)}var w=function(){return w=Object.assign||function(k){for(var P,j=1,te=arguments.length;j=0;ce--)(ue=S[ce])&&(oe=(te<3?ue(oe):te>3?ue(k,P,oe):ue(k,P))||oe);return te>3&&oe&&Object.defineProperty(k,P,oe),oe}function A(S,k){return function(P,j){k(P,j,S)}}function H(S,k,P,j,te,oe){function ue(ze){if(void 0!==ze&&"function"!=typeof ze)throw new TypeError("Function expected");return ze}for(var Fe,ce=j.kind,me="getter"===ce?"get":"setter"===ce?"set":"value",pe=!k&&S?j.static?S:S.prototype:null,be=k||(pe?Object.getOwnPropertyDescriptor(pe,j.name):{}),Be=!1,Oe=P.length-1;Oe>=0;Oe--){var Ae={};for(var Le in j)Ae[Le]="access"===Le?{}:j[Le];for(var Le in j.access)Ae.access[Le]=j.access[Le];Ae.addInitializer=function(ze){if(Be)throw new TypeError("Cannot add initializers after decoration has completed");oe.push(ue(ze||null))};var Te=(0,P[Oe])("accessor"===ce?{get:be.get,set:be.set}:be[me],Ae);if("accessor"===ce){if(void 0===Te)continue;if(null===Te||"object"!=typeof Te)throw new TypeError("Object expected");(Fe=ue(Te.get))&&(be.get=Fe),(Fe=ue(Te.set))&&(be.set=Fe),(Fe=ue(Te.init))&&te.unshift(Fe)}else(Fe=ue(Te))&&("field"===ce?te.unshift(Fe):be[me]=Fe)}pe&&Object.defineProperty(pe,j.name,be),Be=!0}function g(S,k,P){for(var j=arguments.length>2,te=0;te0&&oe[oe.length-1])&&(6===pe[0]||2===pe[0])){P=0;continue}if(3===pe[0]&&(!oe||pe[1]>oe[0]&&pe[1]=S.length&&(S=void 0),{value:S&&S[j++],done:!S}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}function G(S,k){var P="function"==typeof Symbol&&S[Symbol.iterator];if(!P)return S;var te,ue,j=P.call(S),oe=[];try{for(;(void 0===k||k-- >0)&&!(te=j.next()).done;)oe.push(te.value)}catch(ce){ue={error:ce}}finally{try{te&&!te.done&&(P=j.return)&&P.call(j)}finally{if(ue)throw ue.error}}return oe}function T(){for(var S=[],k=0;k1||me(Oe,Le)})},Ae&&(te[Oe]=Ae(te[Oe])))}function me(Oe,Ae){try{!function pe(Oe){Oe.value instanceof Y?Promise.resolve(Oe.value.v).then(be,Fe):Be(oe[0][2],Oe)}(j[Oe](Ae))}catch(Le){Be(oe[0][3],Le)}}function be(Oe){me("next",Oe)}function Fe(Oe){me("throw",Oe)}function Be(Oe,Ae){Oe(Ae),oe.shift(),oe.length&&me(oe[0][0],oe[0][1])}}function Z(S){var k,P;return k={},j("next"),j("throw",function(te){throw te}),j("return"),k[Symbol.iterator]=function(){return this},k;function j(te,oe){k[te]=S[te]?function(ue){return(P=!P)?{value:Y(S[te](ue)),done:!1}:oe?oe(ue):ue}:oe}}function re(S){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var P,k=S[Symbol.asyncIterator];return k?k.call(S):(S=W(S),P={},j("next"),j("throw"),j("return"),P[Symbol.asyncIterator]=function(){return this},P);function j(oe){P[oe]=S[oe]&&function(ue){return new Promise(function(ce,me){!function te(oe,ue,ce,me){Promise.resolve(me).then(function(pe){oe({value:pe,done:ce})},ue)}(ce,me,(ue=S[oe](ue)).done,ue.value)})}}}function J(S,k){return Object.defineProperty?Object.defineProperty(S,"raw",{value:k}):S.raw=k,S}var ee=Object.create?function(S,k){Object.defineProperty(S,"default",{enumerable:!0,value:k})}:function(S,k){S.default=k};function z(S){if(S&&S.__esModule)return S;var k={};if(null!=S)for(var P in S)"default"!==P&&Object.prototype.hasOwnProperty.call(S,P)&&N(k,S,P);return ee(k,S),k}function M(S){return S&&S.__esModule?S:{default:S}}function U(S,k,P,j){if("a"===P&&!j)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof k?S!==k||!j:!k.has(S))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===P?j:"a"===P?j.call(S):j?j.value:k.get(S)}function R(S,k,P,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 k?S!==k||!te:!k.has(S))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===j?te.call(S,P):te?te.value=P:k.set(S,P),P}function B(S,k){if(null===k||"object"!=typeof k&&"function"!=typeof k)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof S?k===S:S.has(k)}function ne(S,k,P){if(null!=k){if("object"!=typeof k&&"function"!=typeof k)throw new TypeError("Object expected.");var j,te;if(P){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");j=k[Symbol.asyncDispose]}if(void 0===j){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");j=k[Symbol.dispose],P&&(te=j)}if("function"!=typeof j)throw new TypeError("Object not disposable.");te&&(j=function(){try{te.call(this)}catch(oe){return Promise.reject(oe)}}),S.stack.push({value:k,dispose:j,async:P})}else P&&S.stack.push({async:!0});return k}var ie="function"==typeof SuppressedError?SuppressedError:function(S,k,P){var j=new Error(P);return j.name="SuppressedError",j.error=S,j.suppressed=k,j};function fe(S){function k(oe){S.error=S.hasError?new ie(oe,S.error,"An error was suppressed during disposal."):oe,S.hasError=!0}var P,j=0;return function te(){for(;P=S.stack.pop();)try{if(!P.async&&1===j)return j=0,S.stack.push(P),Promise.resolve().then(te);if(P.dispose){var oe=P.dispose.call(P.value);if(P.async)return j|=2,Promise.resolve(oe).then(te,function(ue){return k(ue),te()})}else j|=1}catch(ue){k(ue)}if(1===j)return S.hasError?Promise.reject(S.error):Promise.resolve();if(S.hasError)throw S.error}()}const Se={__extends:h,__assign:w,__rest:_,__decorate:V,__param:A,__metadata:O,__awaiter:C,__generator:x,__createBinding:N,__exportStar:b,__values:W,__read:G,__spread:T,__spreadArrays:F,__spreadArray:Q,__await:Y,__asyncGenerator:X,__asyncDelegator:Z,__asyncValues:re,__makeTemplateObject:J,__importStar:z,__importDefault:M,__classPrivateFieldGet:U,__classPrivateFieldSet:R,__classPrivateFieldIn:B,__addDisposableResource:ne,__disposeResources:fe}}},le=>{le(le.s=1567)}]); \ No newline at end of file diff --git a/docs/main.d231b1bcc275f418.js b/docs/main.d231b1bcc275f418.js deleted file mode 100644 index dabe760..0000000 --- a/docs/main.d231b1bcc275f418.js +++ /dev/null @@ -1 +0,0 @@ -(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-worker.js b/docs/ngsw-worker.js index 79c582b..2bc699e 100755 --- a/docs/ngsw-worker.js +++ b/docs/ngsw-worker.js @@ -1029,7 +1029,7 @@ ${error.stack}`; }; // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/debug.mjs - var SW_VERSION = "17.2.2"; + var SW_VERSION = "18.2.6"; var DEBUG_LOG_BUFFER_SIZE = 100; var DebugHandler = class { constructor(driver, adapter2) { @@ -1859,5 +1859,5 @@ ${msgIdle}`, { headers: this.adapter.newHeaders({ "Content-Type": "text/plain" } * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license + * found in the LICENSE file at https://angular.dev/license */ diff --git a/docs/ngsw.json b/docs/ngsw.json old mode 100644 new mode 100755 index e26739e..1c87c88 --- a/docs/ngsw.json +++ b/docs/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1714509251305, + "timestamp": 1727438447530, "index": "/private-qrcode/index.html", "assetGroups": [ { @@ -11,15 +11,15 @@ "ignoreVary": true }, "urls": [ - "/private-qrcode/308.38571ea2b292772c.js", - "/private-qrcode/368.2e278543f407b43f.js", - "/private-qrcode/852.f836098932d08da8.js", + "/private-qrcode/227.47cdfd78c2ee21f1.js", + "/private-qrcode/43.48830501c0b9c7e9.js", + "/private-qrcode/937.846da021a75d8bd6.js", "/private-qrcode/favicon.ico", "/private-qrcode/index.html", - "/private-qrcode/main.d231b1bcc275f418.js", + "/private-qrcode/main.52532e47f88c6ce0.js", "/private-qrcode/manifest.webmanifest", - "/private-qrcode/polyfills.48df367aadbe1fae.js", - "/private-qrcode/runtime.ad89e601423279bd.js", + "/private-qrcode/polyfills.6d51e2d2f9529cb9.js", + "/private-qrcode/runtime.ddd2010290cee908.js", "/private-qrcode/styles.4e91dddd7036606f.css" ], "patterns": [] @@ -46,9 +46,9 @@ ], "dataGroups": [], "hashTable": { - "/private-qrcode/308.38571ea2b292772c.js": "a26b2c966205768af440f9c7949740dcd9d8113c", - "/private-qrcode/368.2e278543f407b43f.js": "50891863170ef76d311febf3f3de3283e9274efa", - "/private-qrcode/852.f836098932d08da8.js": "31beb7fb2635f405be4695ff1202c9b8c3f9a41d", + "/private-qrcode/227.47cdfd78c2ee21f1.js": "60df3d632a5489a4e7ad0694df3268aa11b69e4c", + "/private-qrcode/43.48830501c0b9c7e9.js": "39c7b971d353f2d6659e35fdbda7ab1c65535826", + "/private-qrcode/937.846da021a75d8bd6.js": "7b526aacbd5841cb42ea424e0c7bd02e8b092374", "/private-qrcode/assets/icons/icon-128x128.png": "6e194fc6a3ce34a93056971e5d20808d19996224", "/private-qrcode/assets/icons/icon-144x144.png": "0f06b082d42cfe914d2a5ed9d6a2f5b86f605a02", "/private-qrcode/assets/icons/icon-152x152.png": "b6460582e64b319d672cac92d5222f9d5b976372", @@ -58,11 +58,11 @@ "/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": "647498c902dd77a2d41f95ac57b49dff622b3fa0", - "/private-qrcode/main.d231b1bcc275f418.js": "9a2cacbe28748232e021e577439b9f9ee794487b", + "/private-qrcode/index.html": "0e8df56620dcc556203c0ee22f7e8d5d167b94fa", + "/private-qrcode/main.52532e47f88c6ce0.js": "db67fcf02295af2d27e653789c43887dc93d464e", "/private-qrcode/manifest.webmanifest": "ddfa638a22dd55d15f28c4c9776a3d19ab2ef543", - "/private-qrcode/polyfills.48df367aadbe1fae.js": "3df6795edd917a5b28262abc6f02288f77ad63de", - "/private-qrcode/runtime.ad89e601423279bd.js": "6c0bd51dd641c2e2c7d715559da640d191d4e534", + "/private-qrcode/polyfills.6d51e2d2f9529cb9.js": "09da7831010b1e49ed0438adc67d89cd2c4e1950", + "/private-qrcode/runtime.ddd2010290cee908.js": "1985da1c3898a22c7bd3aaf996283d2f8be01d2b", "/private-qrcode/styles.4e91dddd7036606f.css": "ae5f889c1be7214829b9df0407fd1c8931231b1b" }, "navigationUrls": [ diff --git a/docs/polyfills.48df367aadbe1fae.js b/docs/polyfills.48df367aadbe1fae.js deleted file mode 100644 index 86a8e0f..0000000 --- a/docs/polyfills.48df367aadbe1fae.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkprivate_qrcode=self.webpackChunkprivate_qrcode||[]).push([[260],{4728:()=>{!function(t){const n=t.performance;function i(L){n&&n.mark&&n.mark(L)}function o(L,T){n&&n.measure&&n.measure(L,T)}i("Zone");const c=t.__Zone_symbol_prefix||"__zone_symbol__";function a(L){return c+L}const y=!0===t[a("forceDuplicateZoneCheck")];if(t.Zone){if(y||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let d=(()=>{class L{static#e=this.__symbol__=a;static assertZonePatched(){if(t.Promise!==se.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=L.current;for(;e.parent;)e=e.parent;return e}static get current(){return U.zone}static get currentTask(){return oe}static __load_patch(e,r,k=!1){if(se.hasOwnProperty(e)){if(!k&&y)throw Error("Already loaded patch: "+e)}else if(!t["__Zone_disable_"+e]){const C="Zone:"+e;i(C),se[e]=r(t,L,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}constructor(e,r){this._parent=e,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}get(e){const r=this.getZoneWith(e);if(r)return r._properties[e]}getZoneWith(e){let r=this;for(;r;){if(r._properties.hasOwnProperty(e))return r;r=r._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,r){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const k=this._zoneDelegate.intercept(this,e,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(e,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,e,r,k,C)}finally{U=U.parent}}runGuarded(e,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,e,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(e,r,k){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||J).name+"; Execution: "+this.name+")");if(e.state===x&&(e.type===Q||e.type===P))return;const C=e.state!=E;C&&e._transitionTo(E,j),e.runCount++;const $=oe;oe=e,U={parent:U,zone:this};try{e.type==P&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,r,k)}catch(u){if(this._zoneDelegate.handleError(this,u))throw u}}finally{e.state!==x&&e.state!==h&&(e.type==Q||e.data&&e.data.isPeriodic?C&&e._transitionTo(j,E):(e.runCount=0,this._updateTaskCount(e,-1),C&&e._transitionTo(x,E,x))),U=U.parent,oe=$}}scheduleTask(e){if(e.zone&&e.zone!==this){let k=this;for(;k;){if(k===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);k=k.parent}}e._transitionTo(X,x);const r=[];e._zoneDelegates=r,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(k){throw e._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return e._zoneDelegates===r&&this._updateTaskCount(e,1),e.state==X&&e._transitionTo(j,X),e}scheduleMicroTask(e,r,k,C){return this.scheduleTask(new p(I,e,r,k,C,void 0))}scheduleMacroTask(e,r,k,C,$){return this.scheduleTask(new p(P,e,r,k,C,$))}scheduleEventTask(e,r,k,C,$){return this.scheduleTask(new p(Q,e,r,k,C,$))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||J).name+"; Execution: "+this.name+")");if(e.state===j||e.state===E){e._transitionTo(G,j,E);try{this._zoneDelegate.cancelTask(this,e)}catch(r){throw e._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(e,-1),e._transitionTo(x,G),e.runCount=0,e}}_updateTaskCount(e,r){const k=e._zoneDelegates;-1==r&&(e._zoneDelegates=null);for(let C=0;CL.hasTask(e,r),onScheduleTask:(L,T,e,r)=>L.scheduleTask(e,r),onInvokeTask:(L,T,e,r,k,C)=>L.invokeTask(e,r,k,C),onCancelTask:(L,T,e,r)=>L.cancelTask(e,r)};class v{constructor(T,e,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=e,this._forkZS=r&&(r&&r.onFork?r:e._forkZS),this._forkDlgt=r&&(r.onFork?e:e._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:e._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:e._interceptZS),this._interceptDlgt=r&&(r.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:e._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:e._invokeZS),this._invokeDlgt=r&&(r.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:e._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:e._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:e._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:e._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:e._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:e._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:e._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:e._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||e&&e._hasTaskZS)&&(this._hasTaskZS=k?r:b,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}fork(T,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,e):new d(T,e)}intercept(T,e,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,e,r):e}invoke(T,e,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,e,r,k,C):e.apply(r,k)}handleError(T,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,e)}scheduleTask(T,e){let r=e;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,e),r||(r=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=I)throw new Error("Task is missing scheduleFn.");R(e)}return r}invokeTask(T,e,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,e,r,k):e.callback.apply(r,k)}cancelTask(T,e){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");r=e.cancelFn(e)}return r}hasTask(T,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,e)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,e){const r=this._taskCounts,k=r[T],C=r[T]=k+e;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:T})}}class p{constructor(T,e,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=e,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const u=this;this.invoke=T===Q&&k&&k.useG?p.invokeTask:function(){return p.invokeTask.call(t,u,this,arguments)}}static invokeTask(T,e,r){T||(T=this),te++;try{return T.runCount++,T.zone.runTask(T,e,r)}finally{1==te&&_(),te--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(T,e,r){if(this._state!==e&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${e}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=T,T==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const M=a("setTimeout"),O=a("Promise"),N=a("then");let K,B=[],H=!1;function q(L){if(K||t[O]&&(K=t[O].resolve(0)),K){let T=K[N];T||(T=K.then),T.call(K,L)}else t[M](L,0)}function R(L){0===te&&0===B.length&&q(_),L&&B.push(L)}function _(){if(!H){for(H=!0;B.length;){const L=B;B=[];for(let T=0;TU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},oe=null,te=0;function W(){}o("Zone","Zone"),t.Zone=d}(globalThis);const fe=Object.getOwnPropertyDescriptor,pe=Object.defineProperty,be=Object.getPrototypeOf,De=Object.create,ct=Array.prototype.slice,Ze="addEventListener",Oe="removeEventListener",Ne=Zone.__symbol__(Ze),Ie=Zone.__symbol__(Oe),ce="true",ae="false",me=Zone.__symbol__("");function Me(t,n){return Zone.current.wrap(t,n)}function Le(t,n,i,o,c){return Zone.current.scheduleMacroTask(t,n,i,o,c)}const A=Zone.__symbol__,Pe=typeof window<"u",_e=Pe?window:void 0,Y=Pe&&_e||globalThis,at="removeAttribute";function je(t,n){for(let i=t.length-1;i>=0;i--)"function"==typeof t[i]&&(t[i]=Me(t[i],n+"_"+i));return t}function Fe(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const Be=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),Ae=!we&&!Be&&!(!Pe||!_e.HTMLElement),Ue=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!_e.HTMLElement),Re={},We=function(t){if(!(t=t||Y.event))return;let n=Re[t.type];n||(n=Re[t.type]=A("ON_PROPERTY"+t.type));const i=this||t.target||Y,o=i[n];let c;return Ae&&i===_e&&"error"===t.type?(c=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===c&&t.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&t.preventDefault()),c};function qe(t,n,i){let o=fe(t,n);if(!o&&i&&fe(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(t.hasOwnProperty(c)&&t[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let b=Re[d];b||(b=Re[d]=A("ON_PROPERTY"+d)),o.set=function(v){let p=this;!p&&t===Y&&(p=Y),p&&("function"==typeof p[b]&&p.removeEventListener(d,We),y&&y.call(p,null),p[b]=v,"function"==typeof v&&p.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&t===Y&&(v=Y),!v)return null;const p=v[b];if(p)return p;if(a){let M=a.call(this);if(M)return o.set.call(this,M),"function"==typeof v[at]&&v.removeAttribute(n),M}return null},pe(t,n,o),t[c]=!0}function Xe(t,n,i){if(n)for(let o=0;ofunction(y,d){const b=i(y,d);return b.cbIdx>=0&&"function"==typeof d[b.cbIdx]?Le(b.name,d[b.cbIdx],b,c):a.apply(y,d)})}function ue(t,n){t[A("OriginalDelegate")]=n}let ze=!1,He=!1;function ht(){if(ze)return He;ze=!0;try{const t=_e.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(He=!0)}catch{}return He}Zone.__load_patch("ZoneAwarePromise",(t,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],b=!1!==t[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),p=y("then"),M="__creationTrace__";i.onUnhandledError=u=>{if(i.showUncaughtError()){const l=u&&u.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",u.zone.name,"; Task:",u.task&&u.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(u)}},i.microtaskDrainDone=()=>{for(;d.length;){const u=d.shift();try{u.zone.runGuarded(()=>{throw u.throwOriginal?u.rejection:u})}catch(l){N(l)}}};const O=y("unhandledPromiseRejectionHandler");function N(u){i.onUnhandledError(u);try{const l=n[O];"function"==typeof l&&l.call(this,u)}catch{}}function B(u){return u&&u.then}function H(u){return u}function K(u){return e.reject(u)}const q=y("state"),R=y("value"),_=y("finally"),J=y("parentPromiseValue"),x=y("parentPromiseState"),X="Promise.then",j=null,E=!0,G=!1,h=0;function I(u,l){return s=>{try{z(u,l,s)}catch(f){z(u,!1,f)}}}const P=function(){let u=!1;return function(s){return function(){u||(u=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",se=y("currentTaskTrace");function z(u,l,s){const f=P();if(u===s)throw new TypeError(Q);if(u[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(w){return f(()=>{z(u,!1,w)})(),u}if(l!==G&&s instanceof e&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)oe(s),z(u,s[q],s[R]);else if(l!==G&&"function"==typeof g)try{g.call(s,f(I(u,l)),f(I(u,!1)))}catch(w){f(()=>{z(u,!1,w)})()}else{u[q]=l;const w=u[R];if(u[R]=s,u[_]===_&&l===E&&(u[q]=u[x],u[R]=u[J]),l===G&&s instanceof Error){const m=n.currentTask&&n.currentTask.data&&n.currentTask.data[M];m&&c(s,se,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{const S=u[R],D=!!s&&_===s[_];D&&(s[J]=S,s[x]=w);const Z=l.run(m,void 0,D&&m!==K&&m!==H?[]:[S]);z(s,!0,Z)}catch(S){z(s,!1,S)}},s)}const L=function(){},T=t.AggregateError;class e{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(l){return l instanceof e?l:z(new this(null),E,l)}static reject(l){return z(new this(null),G,l)}static withResolvers(){const l={};return l.promise=new e((s,f)=>{l.resolve=s,l.reject=f}),l}static any(l){if(!l||"function"!=typeof l[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let m of l)f++,s.push(e.resolve(m))}catch{return Promise.reject(new T([],"All promises were rejected"))}if(0===f)return Promise.reject(new T([],"All promises were rejected"));let g=!1;const w=[];return new e((m,S)=>{for(let D=0;D{g||(g=!0,m(Z))},Z=>{w.push(Z),f--,0===f&&(g=!0,S(new T(w,"All promises were rejected")))})})}static race(l){let s,f,g=new this((S,D)=>{s=S,f=D});function w(S){s(S)}function m(S){f(S)}for(let S of l)B(S)||(S=this.resolve(S)),S.then(w,m);return g}static all(l){return e.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof e?this:e).allWithCallback(l,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(l,s){let f,g,w=new this((Z,V)=>{f=Z,g=V}),m=2,S=0;const D=[];for(let Z of l){B(Z)||(Z=this.resolve(Z));const V=S;try{Z.then(F=>{D[V]=s?s.thenCallback(F):F,m--,0===m&&f(D)},F=>{s?(D[V]=s.errorCallback(F),m--,0===m&&f(D)):g(F)})}catch(F){g(F)}m++,S++}return m-=2,0===m&&f(D),w}constructor(l){const s=this;if(!(s instanceof e))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{const f=P();l&&l(f(I(s,E)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return e}then(l,s){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||e);const g=new f(L),w=n.current;return this[q]==j?this[R].push(w,g,l,s):te(this,w,g,l,s),g}catch(l){return this.then(null,l)}finally(l){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=e);const f=new s(L);f[_]=_;const g=n.current;return this[q]==j?this[R].push(g,f,l,l):te(this,g,f,l,l),f}}e.resolve=e.resolve,e.reject=e.reject,e.race=e.race,e.all=e.all;const r=t[v]=t.Promise;t.Promise=e;const k=y("thenPatched");function C(u){const l=u.prototype,s=o(l,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=l.then;l[p]=f,u.prototype.then=function(g,w){return new e((S,D)=>{f.call(this,S,D)}).then(g,w)},u[k]=!0}return i.patchThen=C,r&&(C(r),le(t,"fetch",u=>function $(u){return function(l,s){let f=u.apply(l,s);if(f instanceof e)return f;let g=f.constructor;return g[k]||C(g),f}}(u))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,e}),Zone.__load_patch("toString",t=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const p=t[o];if(p)return n.call(p)}if(this===Error){const p=t[c];if(p)return n.call(p)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let Ee=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{Ee=!1}const dt={useG:!0},ne={},Ye={},$e=new RegExp("^"+me+"(\\w+)(true|false)$"),Je=A("propagationStopped");function Ke(t,n){const i=(n?n(t):t)+ae,o=(n?n(t):t)+ce,c=me+i,a=me+o;ne[t]={},ne[t][ae]=c,ne[t][ce]=a}function _t(t,n,i,o){const c=o&&o.add||Ze,a=o&&o.rm||Oe,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",b=A(c),v="."+c+":",p="prependListener",M="."+p+":",O=function(R,_,J){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=E=>x.handleEvent(E),R.originalDelegate=x);try{R.invoke(R,_,[J])}catch(E){X=E}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,J.type,R.originalDelegate?R.originalDelegate:R.callback,j),X};function N(R,_,J){if(!(_=_||t.event))return;const x=R||_.target||t,X=x[ne[_.type][J?ce:ae]];if(X){const j=[];if(1===X.length){const E=O(X[0],x,_);E&&j.push(E)}else{const E=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function K(R,_){if(!R)return!1;let J=!0;_&&void 0!==_.useG&&(J=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=be(E);if(!E&&R[c]&&(E=R),!E||E[b])return!1;const G=_&&_.eventNameToString,h={},I=E[b]=E[c],P=E[A(a)]=E[a],Q=E[A(y)]=E[y],se=E[A(d)]=E[d];let z;_&&_.prepend&&(z=E[A(_.prepend)]=E[_.prepend]);const e=J?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=J?function(s){if(!s.isRemoved){const f=ne[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const w=g&&s.target[g];if(w)for(let m=0;m{ie.zone.cancelTask(ie)},{once:!0})),h.target=null,ve&&(ve.taskData=null),nt&&(ee.once=!0),!Ee&&"boolean"==typeof ie.options||(ie.options=ee),ie.target=D,ie.capture=Ge,ie.eventName=Z,F&&(ie.originalDelegate=V),S?ye.unshift(ie):ye.push(ie),m?D:void 0}};return E[c]=l(I,v,e,r,j),z&&(E[p]=l(z,M,function(s){return z.call(h.target,h.eventName,s.invoke,h.options)},r,j,!0)),E[a]=function(){const s=this||t;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=arguments[2],w=!!g&&("boolean"==typeof g||g.capture),m=arguments[1];if(!m)return P.apply(this,arguments);if(x&&!x(P,m,s,arguments))return;const S=ne[f];let D;S&&(D=S[w?ce:ae]);const Z=D&&s[D];if(Z)for(let V=0;Vfunction(c,a){c[Je]=!0,o&&o.apply(c,a)})}function Tt(t,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,b,v){return b&&b.prototype&&c.forEach(function(p){const M=`${i}.${o}::`+p,O=b.prototype;try{if(O.hasOwnProperty(p)){const N=t.ObjectGetOwnPropertyDescriptor(O,p);N&&N.value?(N.value=t.wrapWithCurrentZone(N.value,M),t._redefineProperty(b.prototype,p,N)):O[p]&&(O[p]=t.wrapWithCurrentZone(O[p],M))}else O[p]&&(O[p]=t.wrapWithCurrentZone(O[p],M))}catch{}}),y.call(n,d,b,v)},t.attachOriginToPatched(n[o],y)}function et(t,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===t);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(t,n,i,o){t&&Xe(t,et(t,n,i),o)}function xe(t){return Object.getOwnPropertyNames(t).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(t,n,i)=>{const o=xe(t);i.patchOnProperties=Xe,i.patchMethod=le,i.bindArguments=je,i.patchMacroTask=ut;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");t[a]&&(t[c]=t[a]),t[c]&&(n[c]=n[a]=t[c]),i.patchEventPrototype=Et,i.patchEventTarget=_t,i.isIEOrEdge=ht,i.ObjectDefineProperty=pe,i.ObjectGetOwnPropertyDescriptor=fe,i.ObjectCreate=De,i.ArraySlice=ct,i.patchClass=ge,i.wrapWithCurrentZone=Me,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Tt,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:ne,eventNames:o,isBrowser:Ae,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:me,ADD_EVENT_LISTENER_STR:Ze,REMOVE_EVENT_LISTENER_STR:Oe})});const Ce=A("zoneTask");function Te(t,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const p=v.data;return p.args[0]=function(){return v.invoke.apply(this,arguments)},p.handleId=c.apply(t,p.args),v}function b(v){return a.call(t,v.data.handleId)}c=le(t,n+=o,v=>function(p,M){if("function"==typeof M[0]){const O={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?M[1]||0:void 0,args:M},N=M[0];M[0]=function(){try{return N.apply(this,arguments)}finally{O.isPeriodic||("number"==typeof O.handleId?delete y[O.handleId]:O.handleId&&(O.handleId[Ce]=null))}};const B=Le(n,M[0],O,d,b);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(t,M)}),a=le(t,i,v=>function(p,M){const O=M[0];let N;"number"==typeof O?N=y[O]:(N=O&&O[Ce],N||(N=O)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof O?delete y[O]:O&&(O[Ce]=null),N.zone.cancelTask(N)):v.apply(t,M)})}Zone.__load_patch("legacy",t=>{const n=t[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("timers",t=>{const n="set",i="clear";Te(t,n,i,"Timeout"),Te(t,n,i,"Interval"),Te(t,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{Te(t,"request","cancel","AnimationFrame"),Te(t,"mozRequest","mozCancel","AnimationFrame"),Te(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(b,v){return n.current.run(a,t,v,d)})}),Zone.__load_patch("EventTarget",(t,n,i)=>{(function kt(t,n){n.patchEventPrototype(t,n)})(t,i),function gt(t,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{ge("MutationObserver"),ge("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,n,i)=>{ge("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,n,i)=>{ge("FileReader")}),Zone.__load_patch("on_property",(t,n,i)=>{!function yt(t,n){if(we&&!Ue||Zone[t.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(Ae){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ft(){try{const t=_e.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,xe(c),i&&i.concat(a),be(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function mt(t,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&t.customElements&&"customElements"in t&&n.patchCallbacks(n,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(t,i)}),Zone.__load_patch("XHR",(t,n)=>{!function b(v){const p=v.XMLHttpRequest;if(!p)return;const M=p.prototype;let N=M[Ne],B=M[Ie];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ne],B=I[Ie]}}const H="readystatechange",K="scheduled";function q(h){const I=h.data,P=I.target;P[a]=!1,P[d]=!1;const Q=P[c];N||(N=P[Ne],B=P[Ie]),Q&&B.call(P,H,Q);const se=P[c]=()=>{if(P.readyState===P.DONE)if(!I.aborted&&P[a]&&h.state===K){const U=P[n.__symbol__("loadfalse")];if(0!==P.status&&U&&U.length>0){const oe=h.invoke;h.invoke=function(){const te=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],J.apply(h,I)}),X=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),E=le(M,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return E.apply(h,I);{const P={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Le("XMLHttpRequest.send",R,P,q,_);h&&!0===h[d]&&!P.aborted&&Q.state===K&&Q.invoke()}}),G=le(M,"abort",()=>function(h,I){const P=function O(h){return h[i]}(h);if(P&&"string"==typeof P.type){if(null==P.cancelFn||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(!0===n.current[X])return G.apply(h,I)})}(t);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),y=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function lt(t,n){const i=t.constructor.name;for(let o=0;o{const b=function(){return d.apply(this,je(arguments,i+"."+c))};return ue(b,d),b})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,n)=>{function i(o){return function(c){Qe(t,o).forEach(y=>{const d=t.PromiseRejectionEvent;if(d){const b=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(b)}})}}t.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(t,n,i)=>{!function pt(t,n){n.patchMethod(t,"queueMicrotask",i=>function(o,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}(t,i)})}},fe=>{fe(fe.s=4728)}]); \ No newline at end of file diff --git a/docs/polyfills.6d51e2d2f9529cb9.js b/docs/polyfills.6d51e2d2f9529cb9.js new file mode 100755 index 0000000..24b6ece --- /dev/null +++ b/docs/polyfills.6d51e2d2f9529cb9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkprivate_qrcode=self.webpackChunkprivate_qrcode||[]).push([[461],{6935:()=>{const te=globalThis;function ee(e){return(te.__Zone_symbol_prefix||"__zone_symbol__")+e}const ke=Object.getOwnPropertyDescriptor,Ne=Object.defineProperty,Le=Object.getPrototypeOf,_t=Object.create,Et=Array.prototype.slice,Ie="addEventListener",Me="removeEventListener",Ze=ee(Ie),Ae=ee(Me),ae="true",le="false",ve=ee("");function je(e,r){return Zone.current.wrap(e,r)}function He(e,r,c,t,i){return Zone.current.scheduleMacroTask(e,r,c,t,i)}const j=ee,we=typeof window<"u",Te=we?window:void 0,$=we&&Te||globalThis,Tt="removeAttribute";function xe(e,r){for(let c=e.length-1;c>=0;c--)"function"==typeof e[c]&&(e[c]=je(e[c],r+"_"+c));return e}function We(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const qe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Re=!("nw"in $)&&typeof $.process<"u"&&"[object process]"===$.process.toString(),Ve=!Re&&!qe&&!(!we||!Te.HTMLElement),Xe=typeof $.process<"u"&&"[object process]"===$.process.toString()&&!qe&&!(!we||!Te.HTMLElement),Ce={},yt=j("enable_beforeunload"),Ye=function(e){if(!(e=e||$.event))return;let r=Ce[e.type];r||(r=Ce[e.type]=j("ON_PROPERTY"+e.type));const c=this||e.target||$,t=c[r];let i;return Ve&&c===Te&&"error"===e.type?(i=t&&t.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===i&&e.preventDefault()):(i=t&&t.apply(this,arguments),"beforeunload"===e.type&&$[yt]&&"string"==typeof i?e.returnValue=i:null!=i&&!i&&e.preventDefault()),i};function $e(e,r,c){let t=ke(e,r);if(!t&&c&&ke(c,r)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;const i=j("on"+r+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete t.writable,delete t.value;const u=t.get,E=t.set,T=r.slice(2);let m=Ce[T];m||(m=Ce[T]=j("ON_PROPERTY"+T)),t.set=function(D){let d=this;!d&&e===$&&(d=$),d&&("function"==typeof d[m]&&d.removeEventListener(T,Ye),E&&E.call(d,null),d[m]=D,"function"==typeof D&&d.addEventListener(T,Ye,!1))},t.get=function(){let D=this;if(!D&&e===$&&(D=$),!D)return null;const d=D[m];if(d)return d;if(u){let w=u.call(this);if(w)return t.set.call(this,w),"function"==typeof D[Tt]&&D.removeAttribute(r),w}return null},Ne(e,r,t),e[i]=!0}function Je(e,r,c){if(r)for(let t=0;tfunction(E,T){const m=c(E,T);return m.cbIdx>=0&&"function"==typeof T[m.cbIdx]?He(m.name,T[m.cbIdx],m,i):u.apply(E,T)})}function fe(e,r){e[j("OriginalDelegate")]=r}let Ke=!1,Ge=!1;function kt(){if(Ke)return Ge;Ke=!0;try{const e=Te.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ge=!0)}catch{}return Ge}function Qe(e){return"function"==typeof e}function et(e){return"number"==typeof e}let ge=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){ge=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ge=!1}const vt={useG:!0},ne={},tt={},nt=new RegExp("^"+ve+"(\\w+)(true|false)$"),rt=j("propagationStopped");function ot(e,r){const c=(r?r(e):e)+le,t=(r?r(e):e)+ae,i=ve+c,u=ve+t;ne[e]={},ne[e][le]=i,ne[e][ae]=u}function bt(e,r,c,t){const i=t&&t.add||Ie,u=t&&t.rm||Me,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",m=j(i),D="."+i+":",d="prependListener",w="."+d+":",Z=function(k,h,H){if(k.isRemoved)return;const V=k.callback;let Y;"object"==typeof V&&V.handleEvent&&(k.callback=g=>V.handleEvent(g),k.originalDelegate=V);try{k.invoke(k,h,[H])}catch(g){Y=g}const G=k.options;return G&&"object"==typeof G&&G.once&&h[u].call(h,H.type,k.originalDelegate?k.originalDelegate:k.callback,G),Y};function x(k,h,H){if(!(h=h||e.event))return;const V=k||h.target||e,Y=V[ne[h.type][H?ae:le]];if(Y){const G=[];if(1===Y.length){const g=Z(Y[0],V,h);g&&G.push(g)}else{const g=Y.slice();for(let z=0;z{throw z})}}}const U=function(k){return x(this,k,!1)},J=function(k){return x(this,k,!0)};function K(k,h){if(!k)return!1;let H=!0;h&&void 0!==h.useG&&(H=h.useG);const V=h&&h.vh;let Y=!0;h&&void 0!==h.chkDup&&(Y=h.chkDup);let G=!1;h&&void 0!==h.rt&&(G=h.rt);let g=k;for(;g&&!g.hasOwnProperty(i);)g=Le(g);if(!g&&k[i]&&(g=k),!g||g[m])return!1;const z=h&&h.eventNameToString,O={},R=g[m]=g[i],b=g[j(u)]=g[u],S=g[j(E)]=g[E],Q=g[j(T)]=g[T];let W;h&&h.prepend&&(W=g[j(h.prepend)]=g[h.prepend]);const q=H?function(s){if(!O.isExisting)return R.call(O.target,O.eventName,O.capture?J:U,O.options)}:function(s){return R.call(O.target,O.eventName,s.invoke,O.options)},A=H?function(s){if(!s.isRemoved){const l=ne[s.eventName];let v;l&&(v=l[s.capture?ae:le]);const C=v&&s.target[v];if(C)for(let y=0;yse.zone.cancelTask(se);s.call(me,"abort",ce,{once:!0}),se.removeAbortListener=()=>me.removeEventListener("abort",ce)}return O.target=null,Pe&&(Pe.taskData=null),lt&&(O.options.once=!0),!ge&&"boolean"==typeof se.options||(se.options=ie),se.target=I,se.capture=Be,se.eventName=M,B&&(se.originalDelegate=F),L?pe.unshift(se):pe.push(se),y?I:void 0}};return g[i]=a(R,D,q,A,G),W&&(g[d]=a(W,w,function(s){return W.call(O.target,O.eventName,s.invoke,O.options)},A,G,!0)),g[u]=function(){const s=this||e;let l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));const v=arguments[2],C=!!v&&("boolean"==typeof v||v.capture),y=arguments[1];if(!y)return b.apply(this,arguments);if(V&&!V(b,y,s,arguments))return;const L=ne[l];let I;L&&(I=L[C?ae:le]);const M=I&&s[I];if(M)for(let F=0;Ffunction(i,u){i[rt]=!0,t&&t.apply(i,u)})}const De=j("zoneTask");function ye(e,r,c,t){let i=null,u=null;c+=t;const E={};function T(D){const d=D.data;d.args[0]=function(){return D.invoke.apply(this,arguments)};const w=i.apply(e,d.args);return et(w)?d.handleId=w:(d.handle=w,d.isRefreshable=Qe(w.refresh)),D}function m(D){const{handle:d,handleId:w}=D.data;return u.call(e,d??w)}i=ue(e,r+=t,D=>function(d,w){if(Qe(w[0])){const Z={isRefreshable:!1,isPeriodic:"Interval"===t,delay:"Timeout"===t||"Interval"===t?w[1]||0:void 0,args:w},x=w[0];w[0]=function(){try{return x.apply(this,arguments)}finally{const{handle:H,handleId:V,isPeriodic:Y,isRefreshable:G}=Z;!Y&&!G&&(V?delete E[V]:H&&(H[De]=null))}};const U=He(r,w[0],Z,T,m);if(!U)return U;const{handleId:J,handle:K,isRefreshable:X,isPeriodic:k}=U.data;if(J)E[J]=U;else if(K&&(K[De]=U,X&&!k)){const h=K.refresh;K.refresh=function(){const{zone:H,state:V}=U;return"notScheduled"===V?(U._state="scheduled",H._updateTaskCount(U,1)):"running"===V&&(U._state="scheduling"),h.call(this)}}return K??J??U}return D.apply(e,w)}),u=ue(e,c,D=>function(d,w){const Z=w[0];let x;et(Z)?(x=E[Z],delete E[Z]):(x=Z?.[De],x?Z[De]=null:x=Z),x?.type?x.cancelFn&&x.zone.cancelTask(x):D.apply(e,w)})}function it(e,r,c){if(!c||0===c.length)return r;const t=c.filter(u=>u.target===e);if(!t||0===t.length)return r;const i=t[0].ignoreProperties;return r.filter(u=>-1===i.indexOf(u))}function ct(e,r,c,t){e&&Je(e,it(e,r,c),t)}function Fe(e){return Object.getOwnPropertyNames(e).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function It(e,r,c,t,i){const u=Zone.__symbol__(t);if(r[u])return;const E=r[u]=r[t];r[t]=function(T,m,D){return m&&m.prototype&&i.forEach(function(d){const w=`${c}.${t}::`+d,Z=m.prototype;try{if(Z.hasOwnProperty(d)){const x=e.ObjectGetOwnPropertyDescriptor(Z,d);x&&x.value?(x.value=e.wrapWithCurrentZone(x.value,w),e._redefineProperty(m.prototype,d,x)):Z[d]&&(Z[d]=e.wrapWithCurrentZone(Z[d],w))}else Z[d]&&(Z[d]=e.wrapWithCurrentZone(Z[d],w))}catch{}}),E.call(r,T,m,D)},e.attachOriginToPatched(r[t],E)}const at=function Oe(){const e=globalThis,r=!0===e[ee("forceDuplicateZoneCheck")];if(e.Zone&&(r||"function"!=typeof e.Zone.__symbol__))throw new Error("Zone already loaded.");return e.Zone??=function ze(){const e=te.performance;function r(N){e&&e.mark&&e.mark(N)}function c(N,_){e&&e.measure&&e.measure(N,_)}r("Zone");let t=(()=>{class N{static{this.__symbol__=ee}static assertZonePatched(){if(te.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let n=N.current;for(;n.parent;)n=n.parent;return n}static get current(){return b.zone}static get currentTask(){return S}static __load_patch(n,o,p=!1){if(O.hasOwnProperty(n)){const P=!0===te[ee("forceDuplicateZoneCheck")];if(!p&&P)throw Error("Already loaded patch: "+n)}else if(!te["__Zone_disable_"+n]){const P="Zone:"+n;r(P),O[n]=o(te,N,R),c(P,P)}}get parent(){return this._parent}get name(){return this._name}constructor(n,o){this._parent=n,this._name=o?o.name||"unnamed":"",this._properties=o&&o.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,o)}get(n){const o=this.getZoneWith(n);if(o)return o._properties[n]}getZoneWith(n){let o=this;for(;o;){if(o._properties.hasOwnProperty(n))return o;o=o._parent}return null}fork(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)}wrap(n,o){if("function"!=typeof n)throw new Error("Expecting function got: "+n);const p=this._zoneDelegate.intercept(this,n,o),P=this;return function(){return P.runGuarded(p,this,arguments,o)}}run(n,o,p,P){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,n,o,p,P)}finally{b=b.parent}}runGuarded(n,o=null,p,P){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,n,o,p,P)}catch(q){if(this._zoneDelegate.handleError(this,q))throw q}}finally{b=b.parent}}runTask(n,o,p){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||K).name+"; Execution: "+this.name+")");const P=n,{type:q,data:{isPeriodic:A=!1,isRefreshable:_e=!1}={}}=n;if(n.state===X&&(q===z||q===g))return;const he=n.state!=H;he&&P._transitionTo(H,h);const de=S;S=P,b={parent:b,zone:this};try{q==g&&n.data&&!A&&!_e&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,P,o,p)}catch(oe){if(this._zoneDelegate.handleError(this,oe))throw oe}}finally{const oe=n.state;if(oe!==X&&oe!==Y)if(q==z||A||_e&&oe===k)he&&P._transitionTo(h,H,k);else{const f=P._zoneDelegates;this._updateTaskCount(P,-1),he&&P._transitionTo(X,H,X),_e&&(P._zoneDelegates=f)}b=b.parent,S=de}}scheduleTask(n){if(n.zone&&n.zone!==this){let p=this;for(;p;){if(p===n.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${n.zone.name}`);p=p.parent}}n._transitionTo(k,X);const o=[];n._zoneDelegates=o,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(p){throw n._transitionTo(Y,k,X),this._zoneDelegate.handleError(this,p),p}return n._zoneDelegates===o&&this._updateTaskCount(n,1),n.state==k&&n._transitionTo(h,k),n}scheduleMicroTask(n,o,p,P){return this.scheduleTask(new E(G,n,o,p,P,void 0))}scheduleMacroTask(n,o,p,P,q){return this.scheduleTask(new E(g,n,o,p,P,q))}scheduleEventTask(n,o,p,P,q){return this.scheduleTask(new E(z,n,o,p,P,q))}cancelTask(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||K).name+"; Execution: "+this.name+")");if(n.state===h||n.state===H){n._transitionTo(V,h,H);try{this._zoneDelegate.cancelTask(this,n)}catch(o){throw n._transitionTo(Y,V),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(n,-1),n._transitionTo(X,V),n.runCount=-1,n}}_updateTaskCount(n,o){const p=n._zoneDelegates;-1==o&&(n._zoneDelegates=null);for(let P=0;PN.hasTask(n,o),onScheduleTask:(N,_,n,o)=>N.scheduleTask(n,o),onInvokeTask:(N,_,n,o,p,P)=>N.invokeTask(n,o,p,P),onCancelTask:(N,_,n,o)=>N.cancelTask(n,o)};class u{get zone(){return this._zone}constructor(_,n,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=_,this._parentDelegate=n,this._forkZS=o&&(o&&o.onFork?o:n._forkZS),this._forkDlgt=o&&(o.onFork?n:n._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:n._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:n._interceptZS),this._interceptDlgt=o&&(o.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:n._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:n._invokeZS),this._invokeDlgt=o&&(o.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:n._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:n._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:n._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:n._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:n._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:n._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:n._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:n._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const p=o&&o.onHasTask;(p||n&&n._hasTaskZS)&&(this._hasTaskZS=p?o:i,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this._zone))}fork(_,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,n):new t(_,n)}intercept(_,n,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,n,o):n}invoke(_,n,o,p,P){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,n,o,p,P):n.apply(o,p)}handleError(_,n){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,n)}scheduleTask(_,n){let o=n;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,n),o||(o=n);else if(n.scheduleFn)n.scheduleFn(n);else{if(n.type!=G)throw new Error("Task is missing scheduleFn.");U(n)}return o}invokeTask(_,n,o,p){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,n,o,p):n.callback.apply(o,p)}cancelTask(_,n){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");o=n.cancelFn(n)}return o}hasTask(_,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,n)}catch(o){this.handleError(_,o)}}_updateTaskCount(_,n){const o=this._taskCounts,p=o[_],P=o[_]=p+n;if(P<0)throw new Error("More tasks executed then were scheduled.");0!=p&&0!=P||this.hasTask(this._zone,{microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:_})}}class E{constructor(_,n,o,p,P,q){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=_,this.source=n,this.data=p,this.scheduleFn=P,this.cancelFn=q,!o)throw new Error("callback is not defined");this.callback=o;const A=this;this.invoke=_===z&&p&&p.useG?E.invokeTask:function(){return E.invokeTask.call(te,A,this,arguments)}}static invokeTask(_,n,o){_||(_=this),Q++;try{return _.runCount++,_.zone.runTask(_,n,o)}finally{1==Q&&J(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,k)}_transitionTo(_,n,o){if(this._state!==n&&this._state!==o)throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${n}'${o?" or '"+o+"'":""}, was '${this._state}'.`);this._state=_,_==X&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const T=ee("setTimeout"),m=ee("Promise"),D=ee("then");let Z,d=[],w=!1;function x(N){if(Z||te[m]&&(Z=te[m].resolve(0)),Z){let _=Z[D];_||(_=Z.then),_.call(Z,N)}else te[T](N,0)}function U(N){0===Q&&0===d.length&&x(J),N&&d.push(N)}function J(){if(!w){for(w=!0;d.length;){const N=d;d=[];for(let _=0;_b,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:U,showUncaughtError:()=>!t[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:x};let b={parent:null,zone:new t(null,null)},S=null,Q=0;function W(){}return c("Zone","Zone"),t}(),e.Zone}();(function Zt(e){(function Nt(e){e.__load_patch("ZoneAwarePromise",(r,c,t)=>{const i=Object.getOwnPropertyDescriptor,u=Object.defineProperty,T=t.symbol,m=[],D=!1!==r[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],d=T("Promise"),w=T("then"),Z="__creationTrace__";t.onUnhandledError=f=>{if(t.showUncaughtError()){const a=f&&f.rejection;a?console.error("Unhandled Promise rejection:",a instanceof Error?a.message:a,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",a,a instanceof Error?a.stack:void 0):console.error(f)}},t.microtaskDrainDone=()=>{for(;m.length;){const f=m.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(a){U(a)}}};const x=T("unhandledPromiseRejectionHandler");function U(f){t.onUnhandledError(f);try{const a=c[x];"function"==typeof a&&a.call(this,f)}catch{}}function J(f){return f&&f.then}function K(f){return f}function X(f){return A.reject(f)}const k=T("state"),h=T("value"),H=T("finally"),V=T("parentPromiseValue"),Y=T("parentPromiseState"),G="Promise.then",g=null,z=!0,O=!1,R=0;function b(f,a){return s=>{try{N(f,a,s)}catch(l){N(f,!1,l)}}}const S=function(){let f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",W=T("currentTaskTrace");function N(f,a,s){const l=S();if(f===s)throw new TypeError(Q);if(f[k]===g){let v=null;try{("object"==typeof s||"function"==typeof s)&&(v=s&&s.then)}catch(C){return l(()=>{N(f,!1,C)})(),f}if(a!==O&&s instanceof A&&s.hasOwnProperty(k)&&s.hasOwnProperty(h)&&s[k]!==g)n(s),N(f,s[k],s[h]);else if(a!==O&&"function"==typeof v)try{v.call(s,l(b(f,a)),l(b(f,!1)))}catch(C){l(()=>{N(f,!1,C)})()}else{f[k]=a;const C=f[h];if(f[h]=s,f[H]===H&&a===z&&(f[k]=f[Y],f[h]=f[V]),a===O&&s instanceof Error){const y=c.currentTask&&c.currentTask.data&&c.currentTask.data[Z];y&&u(s,W,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y{try{const L=f[h],I=!!s&&H===s[H];I&&(s[V]=L,s[Y]=C);const M=a.run(y,void 0,I&&y!==X&&y!==K?[]:[L]);N(s,!0,M)}catch(L){N(s,!1,L)}},s)}const P=function(){},q=r.AggregateError;class A{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(a){return a instanceof A?a:N(new this(null),z,a)}static reject(a){return N(new this(null),O,a)}static withResolvers(){const a={};return a.promise=new A((s,l)=>{a.resolve=s,a.reject=l}),a}static any(a){if(!a||"function"!=typeof a[Symbol.iterator])return Promise.reject(new q([],"All promises were rejected"));const s=[];let l=0;try{for(let y of a)l++,s.push(A.resolve(y))}catch{return Promise.reject(new q([],"All promises were rejected"))}if(0===l)return Promise.reject(new q([],"All promises were rejected"));let v=!1;const C=[];return new A((y,L)=>{for(let I=0;I{v||(v=!0,y(M))},M=>{C.push(M),l--,0===l&&(v=!0,L(new q(C,"All promises were rejected")))})})}static race(a){let s,l,v=new this((L,I)=>{s=L,l=I});function C(L){s(L)}function y(L){l(L)}for(let L of a)J(L)||(L=this.resolve(L)),L.then(C,y);return v}static all(a){return A.allWithCallback(a)}static allSettled(a){return(this&&this.prototype instanceof A?this:A).allWithCallback(a,{thenCallback:l=>({status:"fulfilled",value:l}),errorCallback:l=>({status:"rejected",reason:l})})}static allWithCallback(a,s){let l,v,C=new this((M,F)=>{l=M,v=F}),y=2,L=0;const I=[];for(let M of a){J(M)||(M=this.resolve(M));const F=L;try{M.then(B=>{I[F]=s?s.thenCallback(B):B,y--,0===y&&l(I)},B=>{s?(I[F]=s.errorCallback(B),y--,0===y&&l(I)):v(B)})}catch(B){v(B)}y++,L++}return y-=2,0===y&&l(I),C}constructor(a){const s=this;if(!(s instanceof A))throw new Error("Must be an instanceof Promise.");s[k]=g,s[h]=[];try{const l=S();a&&a(l(b(s,z)),l(b(s,O)))}catch(l){N(s,!1,l)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return A}then(a,s){let l=this.constructor?.[Symbol.species];(!l||"function"!=typeof l)&&(l=this.constructor||A);const v=new l(P),C=c.current;return this[k]==g?this[h].push(C,v,a,s):o(this,C,v,a,s),v}catch(a){return this.then(null,a)}finally(a){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=A);const l=new s(P);l[H]=H;const v=c.current;return this[k]==g?this[h].push(v,l,a,a):o(this,v,l,a,a),l}}A.resolve=A.resolve,A.reject=A.reject,A.race=A.race,A.all=A.all;const _e=r[d]=r.Promise;r.Promise=A;const he=T("thenPatched");function de(f){const a=f.prototype,s=i(a,"then");if(s&&(!1===s.writable||!s.configurable))return;const l=a.then;a[w]=l,f.prototype.then=function(v,C){return new A((L,I)=>{l.call(this,L,I)}).then(v,C)},f[he]=!0}return t.patchThen=de,_e&&(de(_e),ue(r,"fetch",f=>function oe(f){return function(a,s){let l=f.apply(a,s);if(l instanceof A)return l;let v=l.constructor;return v[he]||de(v),l}}(f))),Promise[c.__symbol__("uncaughtPromiseErrors")]=m,A})})(e),function Lt(e){e.__load_patch("toString",r=>{const c=Function.prototype.toString,t=j("OriginalDelegate"),i=j("Promise"),u=j("Error"),E=function(){if("function"==typeof this){const d=this[t];if(d)return"function"==typeof d?c.call(d):Object.prototype.toString.call(d);if(this===Promise){const w=r[i];if(w)return c.call(w)}if(this===Error){const w=r[u];if(w)return c.call(w)}}return c.call(this)};E[t]=c,Function.prototype.toString=E;const T=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":T.call(this)}})}(e),function Mt(e){e.__load_patch("util",(r,c,t)=>{const i=Fe(r);t.patchOnProperties=Je,t.patchMethod=ue,t.bindArguments=xe,t.patchMacroTask=mt;const u=c.__symbol__("BLACK_LISTED_EVENTS"),E=c.__symbol__("UNPATCHED_EVENTS");r[E]&&(r[u]=r[E]),r[u]&&(c[u]=c[E]=r[u]),t.patchEventPrototype=Pt,t.patchEventTarget=bt,t.isIEOrEdge=kt,t.ObjectDefineProperty=Ne,t.ObjectGetOwnPropertyDescriptor=ke,t.ObjectCreate=_t,t.ArraySlice=Et,t.patchClass=be,t.wrapWithCurrentZone=je,t.filterProperties=it,t.attachOriginToPatched=fe,t._redefineProperty=Object.defineProperty,t.patchCallbacks=It,t.getGlobalObjects=()=>({globalSources:tt,zoneSymbolEventNames:ne,eventNames:i,isBrowser:Ve,isMix:Xe,isNode:Re,TRUE_STR:ae,FALSE_STR:le,ZONE_SYMBOL_PREFIX:ve,ADD_EVENT_LISTENER_STR:Ie,REMOVE_EVENT_LISTENER_STR:Me})})}(e)})(at),function Ot(e){e.__load_patch("legacy",r=>{const c=r[e.__symbol__("legacyPatch")];c&&c()}),e.__load_patch("timers",r=>{const c="set",t="clear";ye(r,c,t,"Timeout"),ye(r,c,t,"Interval"),ye(r,c,t,"Immediate")}),e.__load_patch("requestAnimationFrame",r=>{ye(r,"request","cancel","AnimationFrame"),ye(r,"mozRequest","mozCancel","AnimationFrame"),ye(r,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(r,c)=>{const t=["alert","prompt","confirm"];for(let i=0;ifunction(D,d){return c.current.run(E,r,d,m)})}),e.__load_patch("EventTarget",(r,c,t)=>{(function Dt(e,r){r.patchEventPrototype(e,r)})(r,t),function Ct(e,r){if(Zone[r.symbol("patchEventTarget")])return;const{eventNames:c,zoneSymbolEventNames:t,TRUE_STR:i,FALSE_STR:u,ZONE_SYMBOL_PREFIX:E}=r.getGlobalObjects();for(let m=0;m{be("MutationObserver"),be("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(r,c,t)=>{be("IntersectionObserver")}),e.__load_patch("FileReader",(r,c,t)=>{be("FileReader")}),e.__load_patch("on_property",(r,c,t)=>{!function St(e,r){if(Re&&!Xe||Zone[e.symbol("patchEvents")])return;const c=r.__Zone_ignore_on_properties;let t=[];if(Ve){const i=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const u=function pt(){try{const e=Te.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:i,ignoreProperties:["error"]}]:[];ct(i,Fe(i),c&&c.concat(u),Le(i))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i{!function Rt(e,r){const{isBrowser:c,isMix:t}=r.getGlobalObjects();(c||t)&&e.customElements&&"customElements"in e&&r.patchCallbacks(r,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(r,t)}),e.__load_patch("XHR",(r,c)=>{!function D(d){const w=d.XMLHttpRequest;if(!w)return;const Z=w.prototype;let U=Z[Ze],J=Z[Ae];if(!U){const R=d.XMLHttpRequestEventTarget;if(R){const b=R.prototype;U=b[Ze],J=b[Ae]}}const K="readystatechange",X="scheduled";function k(R){const b=R.data,S=b.target;S[E]=!1,S[m]=!1;const Q=S[u];U||(U=S[Ze],J=S[Ae]),Q&&J.call(S,K,Q);const W=S[u]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[E]&&R.state===X){const _=S[c.__symbol__("loadfalse")];if(0!==S.status&&_&&_.length>0){const n=R.invoke;R.invoke=function(){const o=S[c.__symbol__("loadfalse")];for(let p=0;pfunction(R,b){return R[i]=0==b[2],R[T]=b[1],V.apply(R,b)}),G=j("fetchTaskAborting"),g=j("fetchTaskScheduling"),z=ue(Z,"send",()=>function(R,b){if(!0===c.current[g]||R[i])return z.apply(R,b);{const S={target:R,url:R[T],isPeriodic:!1,args:b,aborted:!1},Q=He("XMLHttpRequest.send",h,S,k,H);R&&!0===R[m]&&!S.aborted&&Q.state===X&&Q.invoke()}}),O=ue(Z,"abort",()=>function(R,b){const S=function x(R){return R[t]}(R);if(S&&"string"==typeof S.type){if(null==S.cancelFn||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(!0===c.current[G])return O.apply(R,b)})}(r);const t=j("xhrTask"),i=j("xhrSync"),u=j("xhrListener"),E=j("xhrScheduled"),T=j("xhrURL"),m=j("xhrErrorBeforeScheduled")}),e.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&function gt(e,r){const c=e.constructor.name;for(let t=0;t{const m=function(){return T.apply(this,xe(arguments,c+"."+i))};return fe(m,T),m})(u)}}}(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(r,c)=>{function t(i){return function(u){st(r,i).forEach(T=>{const m=r.PromiseRejectionEvent;if(m){const D=new m(i,{promise:u.promise,reason:u.rejection});T.invoke(D)}})}}r.PromiseRejectionEvent&&(c[j("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),c[j("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(r,c,t)=>{!function wt(e,r){r.patchMethod(e,"queueMicrotask",c=>function(t,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}(r,t)})}(at)}},te=>{te(te.s=6935)}]); \ No newline at end of file diff --git a/docs/runtime.ad89e601423279bd.js b/docs/runtime.ad89e601423279bd.js deleted file mode 100644 index 00e314e..0000000 --- a/docs/runtime.ad89e601423279bd.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,v={},m={};function r(e){var o=m[e];if(void 0!==o)return o.exports;var t=m[e]={exports:{}};return v[e].call(t.exports,t,t.exports,r),t.exports}r.m=v,e=[],r.O=(o,t,i,u)=>{if(!t){var a=1/0;for(n=0;n=u)&&Object.keys(r.O).every(b=>r.O[b](t[f]))?t.splice(f--,1):(c=!1,u0&&e[n-1][2]>u;n--)e[n]=e[n-1];e[n]=[t,i,u]},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((o,t)=>(r.f[t](e,o),o),[])),r.u=e=>e+"."+{308:"38571ea2b292772c",368:"2e278543f407b43f",852:"f836098932d08da8"}[e]+".js",r.miniCssF=e=>{},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={},o="private-qrcode:";r.l=(t,i,u,n)=>{if(e[t])e[t].push(i);else{var a,c;if(void 0!==u)for(var f=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(p);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(b)),g)return g(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:o=>o},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={688:0};r.f.j=(i,u)=>{var n=r.o(e,i)?e[i]:void 0;if(0!==n)if(n)u.push(n[2]);else if(688!=i){var a=new Promise((l,s)=>n=e[i]=[l,s]);u.push(n[2]=a);var c=r.p+r.u(i),f=new Error;r.l(c,l=>{if(r.o(e,i)&&(0!==(n=e[i])&&(e[i]=void 0),n)){var s=l&&("load"===l.type?"missing":l.type),p=l&&l.target&&l.target.src;f.message="Loading chunk "+i+" failed.\n("+s+": "+p+")",f.name="ChunkLoadError",f.type=s,f.request=p,n[1](f)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var o=(i,u)=>{var f,d,[n,a,c]=u,l=0;if(n.some(p=>0!==e[p])){for(f in a)r.o(a,f)&&(r.m[f]=a[f]);if(c)var s=c(r)}for(i&&i(u);l{"use strict";var e,b={},m={};function r(e){var o=m[e];if(void 0!==o)return o.exports;var t=m[e]={exports:{}};return b[e].call(t.exports,t,t.exports,r),t.exports}r.m=b,e=[],r.O=(o,t,i,u)=>{if(!t){var a=1/0;for(n=0;n=u)&&Object.keys(r.O).every(v=>r.O[v](t[l]))?t.splice(l--,1):(c=!1,u0&&e[n-1][2]>u;n--)e[n]=e[n-1];e[n]=[t,i,u]},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((o,t)=>(r.f[t](e,o),o),[])),r.u=e=>e+"."+{43:"48830501c0b9c7e9",227:"47cdfd78c2ee21f1",937:"846da021a75d8bd6"}[e]+".js",r.miniCssF=e=>{},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={},o="private-qrcode:";r.l=(t,i,u,n)=>{if(e[t])e[t].push(i);else{var a,c;if(void 0!==u)for(var l=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(p);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(v)),g)return g(v)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:o=>o},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={121:0};r.f.j=(i,u)=>{var n=r.o(e,i)?e[i]:void 0;if(0!==n)if(n)u.push(n[2]);else if(121!=i){var a=new Promise((f,s)=>n=e[i]=[f,s]);u.push(n[2]=a);var c=r.p+r.u(i),l=new Error;r.l(c,f=>{if(r.o(e,i)&&(0!==(n=e[i])&&(e[i]=void 0),n)){var s=f&&("load"===f.type?"missing":f.type),p=f&&f.target&&f.target.src;l.message="Loading chunk "+i+" failed.\n("+s+": "+p+")",l.name="ChunkLoadError",l.type=s,l.request=p,n[1](l)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var o=(i,u)=>{var l,d,[n,a,c]=u,f=0;if(n.some(p=>0!==e[p])){for(l in a)r.o(a,l)&&(r.m[l]=a[l]);if(c)var s=c(r)}for(i&&i(u);f