22 lines
59 KiB
JavaScript
22 lines
59 KiB
JavaScript
import{a as yt,b as ur,c as fr,d as vi,f as ve,g as hr,h as cr,i as yi,l as Si}from"./chunk-SB4SBKCP.js";import{b as N,c as k,d as ft,f as me,n as process,o as u,q as f}from"./chunk-QTLWQ5AJ.js";var Rt=k((Qs,kt)=>{u();f();var lr,Dr,pr,dr,_r,br,Er,wr,gr,Qt,ye,mr,vr,St,yr,Sr,xr,Cr,Or,Tr,Ar,Nr,Ur;(function(n){var r=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(t){n(e(r,e(t)))}):typeof kt=="object"&&typeof kt.exports=="object"?n(e(r,e(kt.exports))):n(e(r));function e(t,i){return t!==r&&(typeof Object.create=="function"?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(o,a){return t[o]=i?i(o,a):a}}})(function(n){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])};lr=function(e,t){r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)},Dr=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++){t=arguments[i];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},pr=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(i[o[a]]=e[o[a]]);return i},dr=function(e,t,i,o){var a=arguments.length,s=a<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,i,o);else for(var D=e.length-1;D>=0;D--)(h=e[D])&&(s=(a<3?h(s):a>3?h(t,i,s):h(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s},_r=function(e,t){return function(i,o){t(i,o,e)}},br=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Er=function(e,t,i,o){function a(s){return s instanceof i?s:new i(function(h){h(s)})}return new(i||(i=Promise))(function(s,h){function D(w){try{c(o.next(w))}catch(p){h(p)}}function g(w){try{c(o.throw(w))}catch(p){h(p)}}function c(w){w.done?s(w.value):a(w.value).then(D,g)}c((o=o.apply(e,t||[])).next())})},wr=function(e,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,a,s,h;return h={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function D(c){return function(w){return g([c,w])}}function g(c){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(s=c[0]&2?a.return:c[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,c[1])).done)return s;switch(a=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,a=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(s=i.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){i.label=c[1];break}if(c[0]===6&&i.label<s[1]){i.label=s[1],s=c;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(c);break}s[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(w){c=[6,w],a=0}finally{o=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Ur=function(e,t,i,o){o===void 0&&(o=i),e[o]=t[i]},gr=function(e,t){for(var i in e)i!=="default"&&!t.hasOwnProperty(i)&&(t[i]=e[i])},Qt=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,i=t&&e[t],o=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ye=function(e,t){var i=typeof Symbol=="function"&&e[Symbol.iterator];if(!i)return e;var o=i.call(e),a,s=[],h;try{for(;(t===void 0||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(D){h={error:D}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(h)throw h.error}}return s},mr=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ye(arguments[t]));return e},vr=function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var o=Array(e),a=0,t=0;t<i;t++)for(var s=arguments[t],h=0,D=s.length;h<D;h++,a++)o[a]=s[h];return o},St=function(e){return this instanceof St?(this.v=e,this):new St(e)},yr=function(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(e,t||[]),a,s=[];return a={},h("next"),h("throw"),h("return"),a[Symbol.asyncIterator]=function(){return this},a;function h(l){o[l]&&(a[l]=function(m){return new Promise(function(E,C){s.push([l,m,E,C])>1||D(l,m)})})}function D(l,m){try{g(o[l](m))}catch(E){p(s[0][3],E)}}function g(l){l.value instanceof St?Promise.resolve(l.value.v).then(c,w):p(s[0][2],l)}function c(l){D("next",l)}function w(l){D("throw",l)}function p(l,m){l(m),s.shift(),s.length&&D(s[0][0],s[0][1])}},Sr=function(e){var t,i;return t={},o("next"),o("throw",function(a){throw a}),o("return"),t[Symbol.iterator]=function(){return this},t;function o(a,s){t[a]=e[a]?function(h){return(i=!i)?{value:St(e[a](h)),done:a==="return"}:s?s(h):h}:s}},xr=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],i;return t?t.call(e):(e=typeof Qt=="function"?Qt(e):e[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(s){i[s]=e[s]&&function(h){return new Promise(function(D,g){h=e[s](h),a(D,g,h.done,h.value)})}}function a(s,h,D,g){Promise.resolve(g).then(function(c){s({value:c,done:D})},h)}},Cr=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Or=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t},Tr=function(e){return e&&e.__esModule?e:{default:e}},Ar=function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},Nr=function(e,t,i){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,i),i},n("__extends",lr),n("__assign",Dr),n("__rest",pr),n("__decorate",dr),n("__param",_r),n("__metadata",br),n("__awaiter",Er),n("__generator",wr),n("__exportStar",gr),n("__createBinding",Ur),n("__values",Qt),n("__read",ye),n("__spread",mr),n("__spreadArrays",vr),n("__await",St),n("__asyncGenerator",yr),n("__asyncDelegator",Sr),n("__asyncValues",xr),n("__makeTemplateObject",Cr),n("__importStar",Or),n("__importDefault",Tr),n("__classPrivateFieldGet",Ar),n("__classPrivateFieldSet",Nr)})});var Mr=k(Zt=>{"use strict";u();f();Object.defineProperty(Zt,"__esModule",{value:!0});Zt.delay=void 0;function xi(n){return new Promise(r=>{setTimeout(()=>{r(!0)},n)})}Zt.delay=xi});var Ir=k(xt=>{"use strict";u();f();Object.defineProperty(xt,"__esModule",{value:!0});xt.ONE_THOUSAND=xt.ONE_HUNDRED=void 0;xt.ONE_HUNDRED=100;xt.ONE_THOUSAND=1e3});var Pr=k(d=>{"use strict";u();f();Object.defineProperty(d,"__esModule",{value:!0});d.ONE_YEAR=d.FOUR_WEEKS=d.THREE_WEEKS=d.TWO_WEEKS=d.ONE_WEEK=d.THIRTY_DAYS=d.SEVEN_DAYS=d.FIVE_DAYS=d.THREE_DAYS=d.ONE_DAY=d.TWENTY_FOUR_HOURS=d.TWELVE_HOURS=d.SIX_HOURS=d.THREE_HOURS=d.ONE_HOUR=d.SIXTY_MINUTES=d.THIRTY_MINUTES=d.TEN_MINUTES=d.FIVE_MINUTES=d.ONE_MINUTE=d.SIXTY_SECONDS=d.THIRTY_SECONDS=d.TEN_SECONDS=d.FIVE_SECONDS=d.ONE_SECOND=void 0;d.ONE_SECOND=1;d.FIVE_SECONDS=5;d.TEN_SECONDS=10;d.THIRTY_SECONDS=30;d.SIXTY_SECONDS=60;d.ONE_MINUTE=d.SIXTY_SECONDS;d.FIVE_MINUTES=d.ONE_MINUTE*5;d.TEN_MINUTES=d.ONE_MINUTE*10;d.THIRTY_MINUTES=d.ONE_MINUTE*30;d.SIXTY_MINUTES=d.ONE_MINUTE*60;d.ONE_HOUR=d.SIXTY_MINUTES;d.THREE_HOURS=d.ONE_HOUR*3;d.SIX_HOURS=d.ONE_HOUR*6;d.TWELVE_HOURS=d.ONE_HOUR*12;d.TWENTY_FOUR_HOURS=d.ONE_HOUR*24;d.ONE_DAY=d.TWENTY_FOUR_HOURS;d.THREE_DAYS=d.ONE_DAY*3;d.FIVE_DAYS=d.ONE_DAY*5;d.SEVEN_DAYS=d.ONE_DAY*7;d.THIRTY_DAYS=d.ONE_DAY*30;d.ONE_WEEK=d.SEVEN_DAYS;d.TWO_WEEKS=d.ONE_WEEK*2;d.THREE_WEEKS=d.ONE_WEEK*3;d.FOUR_WEEKS=d.ONE_WEEK*4;d.ONE_YEAR=d.ONE_DAY*365});var Se=k(te=>{"use strict";u();f();Object.defineProperty(te,"__esModule",{value:!0});var Lr=Rt();Lr.__exportStar(Ir(),te);Lr.__exportStar(Pr(),te)});var Br=k(Ct=>{"use strict";u();f();Object.defineProperty(Ct,"__esModule",{value:!0});Ct.fromMiliseconds=Ct.toMiliseconds=void 0;var Rr=Se();function Ci(n){return n*Rr.ONE_THOUSAND}Ct.toMiliseconds=Ci;function Oi(n){return Math.floor(n/Rr.ONE_THOUSAND)}Ct.fromMiliseconds=Oi});var Wr=k(ee=>{"use strict";u();f();Object.defineProperty(ee,"__esModule",{value:!0});var Fr=Rt();Fr.__exportStar(Mr(),ee);Fr.__exportStar(Br(),ee)});var Hr=k(Bt=>{"use strict";u();f();Object.defineProperty(Bt,"__esModule",{value:!0});Bt.Watch=void 0;var re=class{constructor(){this.timestamps=new Map}start(r){if(this.timestamps.has(r))throw new Error(`Watch already started for label: ${r}`);this.timestamps.set(r,{started:Date.now()})}stop(r){let e=this.get(r);if(typeof e.elapsed<"u")throw new Error(`Watch already stopped for label: ${r}`);let t=Date.now()-e.started;this.timestamps.set(r,{started:e.started,elapsed:t})}get(r){let e=this.timestamps.get(r);if(typeof e>"u")throw new Error(`No timestamp found for label: ${r}`);return e}elapsed(r){let e=this.get(r);return e.elapsed||Date.now()-e.started}};Bt.Watch=re;Bt.default=re});var jr=k(ne=>{"use strict";u();f();Object.defineProperty(ne,"__esModule",{value:!0});ne.IWatch=void 0;var xe=class{};ne.IWatch=xe});var qr=k(Ce=>{"use strict";u();f();Object.defineProperty(Ce,"__esModule",{value:!0});var Ti=Rt();Ti.__exportStar(jr(),Ce)});var Kr=k(Ot=>{"use strict";u();f();Object.defineProperty(Ot,"__esModule",{value:!0});var ie=Rt();ie.__exportStar(Wr(),Ot);ie.__exportStar(Hr(),Ot);ie.__exportStar(qr(),Ot);ie.__exportStar(Se(),Ot)});function zr(n){if(typeof n!="string")throw new Error(`Cannot safe json parse value of type ${typeof n}`);try{return Ni(n)}catch{return n}}function Gr(n){return typeof n=="string"?n:Ai(n)||""}var Ai,Ni,Yr=N(()=>{u();f();Ai=n=>JSON.stringify(n,(r,e)=>typeof e=="bigint"?e.toString()+"n":e),Ni=n=>{let r=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,e=n.replace(r,'$1"$2n"$3');return JSON.parse(e,(t,i)=>typeof i=="string"&&i.match(/^\d+n$/)?BigInt(i.substring(0,i.length-1)):i)}});function Tt(n){return globalThis.Buffer!=null?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):n}var oe=N(()=>{u();f()});function se(n=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?Tt(globalThis.Buffer.allocUnsafe(n)):new Uint8Array(n)}var Oe=N(()=>{u();f();oe()});function Jr(n,r){r||(r=n.reduce((i,o)=>i+o.length,0));let e=se(r),t=0;for(let i of n)e.set(i,t),t+=i.length;return Tt(e)}var Vr=N(()=>{u();f();Oe();oe()});function Ui(n,r){if(n.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t<e.length;t++)e[t]=255;for(var i=0;i<n.length;i++){var o=n.charAt(i),a=o.charCodeAt(0);if(e[a]!==255)throw new TypeError(o+" is ambiguous");e[a]=i}var s=n.length,h=n.charAt(0),D=Math.log(s)/Math.log(256),g=Math.log(256)/Math.log(s);function c(l){if(l instanceof Uint8Array||(ArrayBuffer.isView(l)?l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength):Array.isArray(l)&&(l=Uint8Array.from(l))),!(l instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(l.length===0)return"";for(var m=0,E=0,C=0,A=l.length;C!==A&&l[C]===0;)C++,m++;for(var v=(A-C)*g+1>>>0,y=new Uint8Array(v);C!==A;){for(var O=l[C],T=0,S=v-1;(O!==0||T<E)&&S!==-1;S--,T++)O+=256*y[S]>>>0,y[S]=O%s>>>0,O=O/s>>>0;if(O!==0)throw new Error("Non-zero carry");E=T,C++}for(var x=v-E;x!==v&&y[x]===0;)x++;for(var M=h.repeat(m);x<v;++x)M+=n.charAt(y[x]);return M}function w(l){if(typeof l!="string")throw new TypeError("Expected String");if(l.length===0)return new Uint8Array;var m=0;if(l[m]!==" "){for(var E=0,C=0;l[m]===h;)E++,m++;for(var A=(l.length-m)*D+1>>>0,v=new Uint8Array(A);l[m];){var y=e[l.charCodeAt(m)];if(y===255)return;for(var O=0,T=A-1;(y!==0||O<C)&&T!==-1;T--,O++)y+=s*v[T]>>>0,v[T]=y%256>>>0,y=y/256>>>0;if(y!==0)throw new Error("Non-zero carry");C=O,m++}if(l[m]!==" "){for(var S=A-C;S!==A&&v[S]===0;)S++;for(var x=new Uint8Array(E+(A-S)),M=E;S!==A;)x[M++]=v[S++];return x}}}function p(l){var m=w(l);if(m)return m;throw new Error(`Non-${r} character`)}return{encode:c,decodeUnsafe:w,decode:p}}var Mi,Ii,$r,Xr=N(()=>{u();f();Mi=Ui,Ii=Mi,$r=Ii});var Va,Qr,pt,kr,Zr,Et=N(()=>{u();f();Va=new Uint8Array(0),Qr=(n,r)=>{if(n===r)return!0;if(n.byteLength!==r.byteLength)return!1;for(let e=0;e<n.byteLength;e++)if(n[e]!==r[e])return!1;return!0},pt=n=>{if(n instanceof Uint8Array&&n.constructor.name==="Uint8Array")return n;if(n instanceof ArrayBuffer)return new Uint8Array(n);if(ArrayBuffer.isView(n))return new Uint8Array(n.buffer,n.byteOffset,n.byteLength);throw new Error("Unknown type, must be binary type")},kr=n=>new TextEncoder().encode(n),Zr=n=>new TextDecoder().decode(n)});var Te,Ae,Ne,en,Ue,At,wt,Pi,Li,X,ht=N(()=>{u();f();Xr();Et();Te=class{constructor(r,e,t){this.name=r,this.prefix=e,this.baseEncode=t}encode(r){if(r instanceof Uint8Array)return`${this.prefix}${this.baseEncode(r)}`;throw Error("Unknown type, must be binary type")}},Ae=class{constructor(r,e,t){if(this.name=r,this.prefix=e,e.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=e.codePointAt(0),this.baseDecode=t}decode(r){if(typeof r=="string"){if(r.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(r)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(r.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(r){return en(this,r)}},Ne=class{constructor(r){this.decoders=r}or(r){return en(this,r)}decode(r){let e=r[0],t=this.decoders[e];if(t)return t.decode(r);throw RangeError(`Unable to decode multibase string ${JSON.stringify(r)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},en=(n,r)=>new Ne({...n.decoders||{[n.prefix]:n},...r.decoders||{[r.prefix]:r}}),Ue=class{constructor(r,e,t,i){this.name=r,this.prefix=e,this.baseEncode=t,this.baseDecode=i,this.encoder=new Te(r,e,t),this.decoder=new Ae(r,e,i)}encode(r){return this.encoder.encode(r)}decode(r){return this.decoder.decode(r)}},At=({name:n,prefix:r,encode:e,decode:t})=>new Ue(n,r,e,t),wt=({prefix:n,name:r,alphabet:e})=>{let{encode:t,decode:i}=$r(e,r);return At({prefix:n,name:r,encode:t,decode:o=>pt(i(o))})},Pi=(n,r,e,t)=>{let i={};for(let g=0;g<r.length;++g)i[r[g]]=g;let o=n.length;for(;n[o-1]==="=";)--o;let a=new Uint8Array(o*e/8|0),s=0,h=0,D=0;for(let g=0;g<o;++g){let c=i[n[g]];if(c===void 0)throw new SyntaxError(`Non-${t} character`);h=h<<e|c,s+=e,s>=8&&(s-=8,a[D++]=255&h>>s)}if(s>=e||255&h<<8-s)throw new SyntaxError("Unexpected end of data");return a},Li=(n,r,e)=>{let t=r[r.length-1]==="=",i=(1<<e)-1,o="",a=0,s=0;for(let h=0;h<n.length;++h)for(s=s<<8|n[h],a+=8;a>e;)a-=e,o+=r[i&s>>a];if(a&&(o+=r[i&s<<e-a]),t)for(;o.length*e&7;)o+="=";return o},X=({name:n,prefix:r,bitsPerChar:e,alphabet:t})=>At({prefix:r,name:n,encode(i){return Li(i,t,e)},decode(i){return Pi(i,t,e,n)}})});var Me={};ft(Me,{identity:()=>Ri});var Ri,rn=N(()=>{u();f();ht();Et();Ri=At({prefix:"\0",name:"identity",encode:n=>Zr(n),decode:n=>kr(n)})});var Ie={};ft(Ie,{base2:()=>Bi});var Bi,nn=N(()=>{u();f();ht();Bi=X({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1})});var Pe={};ft(Pe,{base8:()=>Fi});var Fi,on=N(()=>{u();f();ht();Fi=X({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3})});var Le={};ft(Le,{base10:()=>Wi});var Wi,sn=N(()=>{u();f();ht();Wi=wt({prefix:"9",name:"base10",alphabet:"0123456789"})});var Re={};ft(Re,{base16:()=>Hi,base16upper:()=>ji});var Hi,ji,an=N(()=>{u();f();ht();Hi=X({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),ji=X({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4})});var Be={};ft(Be,{base32:()=>Nt,base32hex:()=>Gi,base32hexpad:()=>Ji,base32hexpadupper:()=>Vi,base32hexupper:()=>Yi,base32pad:()=>Ki,base32padupper:()=>zi,base32upper:()=>qi,base32z:()=>$i});var Nt,qi,Ki,zi,Gi,Yi,Ji,Vi,$i,Fe=N(()=>{u();f();ht();Nt=X({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),qi=X({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Ki=X({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),zi=X({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Gi=X({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Yi=X({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Ji=X({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Vi=X({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),$i=X({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})});var We={};ft(We,{base36:()=>Xi,base36upper:()=>Qi});var Xi,Qi,un=N(()=>{u();f();ht();Xi=wt({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Qi=wt({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"})});var He={};ft(He,{base58btc:()=>ct,base58flickr:()=>ki});var ct,ki,je=N(()=>{u();f();ht();ct=wt({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),ki=wt({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})});var qe={};ft(qe,{base64:()=>Zi,base64pad:()=>to,base64url:()=>eo,base64urlpad:()=>ro});var Zi,to,eo,ro,fn=N(()=>{u();f();ht();Zi=X({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),to=X({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),eo=X({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ro=X({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6})});var Ke={};ft(Ke,{base256emoji:()=>ao});function oo(n){return n.reduce((r,e)=>(r+=no[e],r),"")}function so(n){let r=[];for(let e of n){let t=io[e.codePointAt(0)];if(t===void 0)throw new Error(`Non-base256emoji character: ${e}`);r.push(t)}return new Uint8Array(r)}var hn,no,io,ao,cn=N(()=>{u();f();ht();hn=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),no=hn.reduce((n,r,e)=>(n[e]=r,n),[]),io=hn.reduce((n,r,e)=>(n[r.codePointAt(0)]=e,n),[]);ao=At({prefix:"\u{1F680}",name:"base256emoji",encode:oo,decode:so})});function pn(n,r,e){r=r||[],e=e||0;for(var t=e;n>=co;)r[e++]=n&255|ln,n/=128;for(;n&ho;)r[e++]=n&255|ln,n>>>=7;return r[e]=n|0,pn.bytes=e-t+1,r}function ze(n,t){var e=0,t=t||0,i=0,o=t,a,s=n.length;do{if(o>=s)throw ze.bytes=0,new RangeError("Could not decode varint");a=n[o++],e+=i<28?(a&Dn)<<i:(a&Dn)*Math.pow(2,i),i+=7}while(a>=Do);return ze.bytes=o-t,e}var uo,ln,fo,ho,co,lo,Do,Dn,po,_o,bo,Eo,wo,go,mo,vo,yo,So,xo,Co,Ft,dn=N(()=>{u();f();uo=pn,ln=128,fo=127,ho=~fo,co=Math.pow(2,31);lo=ze,Do=128,Dn=127;po=Math.pow(2,7),_o=Math.pow(2,14),bo=Math.pow(2,21),Eo=Math.pow(2,28),wo=Math.pow(2,35),go=Math.pow(2,42),mo=Math.pow(2,49),vo=Math.pow(2,56),yo=Math.pow(2,63),So=function(n){return n<po?1:n<_o?2:n<bo?3:n<Eo?4:n<wo?5:n<go?6:n<mo?7:n<vo?8:n<yo?9:10},xo={encode:uo,decode:lo,encodingLength:So},Co=xo,Ft=Co});var Wt,Ut,Mt,ue=N(()=>{u();f();dn();Wt=(n,r=0)=>[Ft.decode(n,r),Ft.decode.bytes],Ut=(n,r,e=0)=>(Ft.encode(n,r,e),r),Mt=n=>Ft.encodingLength(n)});var gt,_n,bn,It,jt=N(()=>{u();f();Et();ue();gt=(n,r)=>{let e=r.byteLength,t=Mt(n),i=t+Mt(e),o=new Uint8Array(i+e);return Ut(n,o,0),Ut(e,o,t),o.set(r,i),new It(n,e,r,o)},_n=n=>{let r=pt(n),[e,t]=Wt(r),[i,o]=Wt(r.subarray(t)),a=r.subarray(t+o);if(a.byteLength!==i)throw new Error("Incorrect length");return new It(e,i,a,r)},bn=(n,r)=>n===r?!0:n.code===r.code&&n.size===r.size&&Qr(n.bytes,r.bytes),It=class{constructor(r,e,t,i){this.code=r,this.size=e,this.digest=t,this.bytes=i}}});var Ye,Ge,Je=N(()=>{u();f();jt();Ye=({name:n,code:r,encode:e})=>new Ge(n,r,e),Ge=class{constructor(r,e,t){this.name=r,this.code=e,this.encode=t}digest(r){if(r instanceof Uint8Array){let e=this.encode(r);return e instanceof Uint8Array?gt(this.code,e):e.then(t=>gt(this.code,t))}else throw Error("Unknown type, must be binary type")}}});var Ve={};ft(Ve,{sha256:()=>Oo,sha512:()=>To});var wn,Oo,To,gn=N(()=>{u();f();Je();wn=n=>async r=>new Uint8Array(await crypto.subtle.digest(n,r)),Oo=Ye({name:"sha2-256",code:18,encode:wn("SHA-256")}),To=Ye({name:"sha2-512",code:19,encode:wn("SHA-512")})});var $e={};ft($e,{identity:()=>Uo});var mn,Ao,vn,No,Uo,yn=N(()=>{u();f();Et();jt();mn=0,Ao="identity",vn=pt,No=n=>gt(mn,vn(n)),Uo={code:mn,name:Ao,encode:vn,digest:No}});var Sn=N(()=>{u();f();Et()});var Zu,tf,xn=N(()=>{u();f();Zu=new TextEncoder,tf=new TextDecoder});var Z,Po,Lo,Ro,qt,Bo,Cn,On,fe,he,Fo,Wo,Ho,Tn=N(()=>{u();f();ue();jt();je();Fe();Et();Z=class{constructor(r,e,t,i){this.code=e,this.version=r,this.multihash=t,this.bytes=i,this.byteOffset=i.byteOffset,this.byteLength=i.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:he,byteLength:he,code:fe,version:fe,multihash:fe,bytes:fe,_baseCache:he,asCID:he})}toV0(){switch(this.version){case 0:return this;default:{let{code:r,multihash:e}=this;if(r!==qt)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(e.code!==Bo)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return Z.createV0(e)}}}toV1(){switch(this.version){case 0:{let{code:r,digest:e}=this.multihash,t=gt(r,e);return Z.createV1(this.code,t)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(r){return r&&this.code===r.code&&this.version===r.version&&bn(this.multihash,r.multihash)}toString(r){let{bytes:e,version:t,_baseCache:i}=this;switch(t){case 0:return Lo(e,i,r||ct.encoder);default:return Ro(e,i,r||Nt.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(r){return Wo(/^0\.0/,Ho),!!(r&&(r[On]||r.asCID===r))}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(r){if(r instanceof Z)return r;if(r!=null&&r.asCID===r){let{version:e,code:t,multihash:i,bytes:o}=r;return new Z(e,t,i,o||Cn(e,t,i.bytes))}else if(r!=null&&r[On]===!0){let{version:e,multihash:t,code:i}=r,o=_n(t);return Z.create(e,i,o)}else return null}static create(r,e,t){if(typeof e!="number")throw new Error("String codecs are no longer supported");switch(r){case 0:{if(e!==qt)throw new Error(`Version 0 CID must use dag-pb (code: ${qt}) block encoding`);return new Z(r,e,t,t.bytes)}case 1:{let i=Cn(r,e,t.bytes);return new Z(r,e,t,i)}default:throw new Error("Invalid version")}}static createV0(r){return Z.create(0,qt,r)}static createV1(r,e){return Z.create(1,r,e)}static decode(r){let[e,t]=Z.decodeFirst(r);if(t.length)throw new Error("Incorrect length");return e}static decodeFirst(r){let e=Z.inspectBytes(r),t=e.size-e.multihashSize,i=pt(r.subarray(t,t+e.multihashSize));if(i.byteLength!==e.multihashSize)throw new Error("Incorrect length");let o=i.subarray(e.multihashSize-e.digestSize),a=new It(e.multihashCode,e.digestSize,o,i);return[e.version===0?Z.createV0(a):Z.createV1(e.codec,a),r.subarray(e.size)]}static inspectBytes(r){let e=0,t=()=>{let[c,w]=Wt(r.subarray(e));return e+=w,c},i=t(),o=qt;if(i===18?(i=0,e=0):i===1&&(o=t()),i!==0&&i!==1)throw new RangeError(`Invalid CID version ${i}`);let a=e,s=t(),h=t(),D=e+h,g=D-a;return{version:i,codec:o,multihashCode:s,digestSize:h,multihashSize:g,size:D}}static parse(r,e){let[t,i]=Po(r,e),o=Z.decode(i);return o._baseCache.set(t,r),o}},Po=(n,r)=>{switch(n[0]){case"Q":{let e=r||ct;return[ct.prefix,e.decode(`${ct.prefix}${n}`)]}case ct.prefix:{let e=r||ct;return[ct.prefix,e.decode(n)]}case Nt.prefix:{let e=r||Nt;return[Nt.prefix,e.decode(n)]}default:{if(r==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[n[0],r.decode(n)]}}},Lo=(n,r,e)=>{let{prefix:t}=e;if(t!==ct.prefix)throw Error(`Cannot string encode V0 in ${e.name} encoding`);let i=r.get(t);if(i==null){let o=e.encode(n).slice(1);return r.set(t,o),o}else return i},Ro=(n,r,e)=>{let{prefix:t}=e,i=r.get(t);if(i==null){let o=e.encode(n);return r.set(t,o),o}else return i},qt=112,Bo=18,Cn=(n,r,e)=>{let t=Mt(n),i=t+Mt(r),o=new Uint8Array(i+e.byteLength);return Ut(n,o,0),Ut(r,o,t),o.set(e,i),o},On=Symbol.for("@ipld/js-cid/CID"),fe={writable:!1,configurable:!1,enumerable:!0},he={writable:!1,enumerable:!1,configurable:!1},Fo="0.0.0-dev",Wo=(n,r)=>{if(n.test(Fo))console.warn(r);else throw new Error(r)},Ho=`CID.isCID(v) is deprecated and will be removed in the next major release.
|
|
Following code pattern:
|
|
|
|
if (CID.isCID(value)) {
|
|
doSomethingWithCID(value)
|
|
}
|
|
|
|
Is replaced with:
|
|
|
|
const cid = CID.asCID(value)
|
|
if (cid) {
|
|
// Make sure to use cid instead of value
|
|
doSomethingWithCID(cid)
|
|
}
|
|
`});var An=N(()=>{u();f();Tn();ue();Et();Je();jt()});var Xe,df,Nn=N(()=>{u();f();rn();nn();on();sn();an();Fe();un();je();fn();cn();gn();yn();Sn();xn();An();Xe={...Me,...Ie,...Pe,...Le,...Re,...Be,...We,...He,...qe,...Ke},df={...Ve,...$e}});function Mn(n,r,e,t){return{name:n,prefix:r,encoder:{name:n,prefix:r,encode:e},decoder:{decode:t}}}var Un,Qe,jo,ce,ke=N(()=>{u();f();Nn();Oe();Un=Mn("utf8","u",n=>"u"+new TextDecoder("utf8").decode(n),n=>new TextEncoder().encode(n.substring(1))),Qe=Mn("ascii","a",n=>{let r="a";for(let e=0;e<n.length;e++)r+=String.fromCharCode(n[e]);return r},n=>{n=n.substring(1);let r=se(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r}),jo={utf8:Un,"utf-8":Un,hex:Xe.base16,latin1:Qe,ascii:Qe,binary:Qe,...Xe},ce=jo});function Kt(n,r="utf8"){let e=ce[r];if(!e)throw new Error(`Unsupported encoding "${r}"`);return(r==="utf8"||r==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(n.buffer,n.byteOffset,n.byteLength).toString("utf8"):e.encoder.encode(n).substring(1)}var In=N(()=>{u();f();ke()});function mt(n,r="utf8"){let e=ce[r];if(!e)throw new Error(`Unsupported encoding "${r}"`);return(r==="utf8"||r==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?Tt(globalThis.Buffer.from(n,"utf-8")):e.decoder.decode(`${e.prefix}${n}`)}var Pn=N(()=>{u();f();ke();oe()});var Ln,Rn,zt,Gt,Ze,tr,Bn,Fn,Wn,er,Hn,jn,le=N(()=>{u();f();Ln="EdDSA",Rn="JWT",zt=".",Gt="base64url",Ze="utf8",tr="utf8",Bn=":",Fn="did",Wn="key",er="base58btc",Hn="z",jn="K36"});function qn(n){return zr(Kt(mt(n,Gt),Ze))}function De(n){return Kt(mt(Gr(n),Ze),Gt)}function Kn(n){let r=mt(jn,er),e=Hn+Kt(Jr([r,n]),er);return[Fn,Wn,e].join(Bn)}function qo(n){return Kt(n,Gt)}function Ko(n){return mt(n,Gt)}function zn(n){return mt([De(n.header),De(n.payload)].join(zt),tr)}function Gn(n){return[De(n.header),De(n.payload),qo(n.signature)].join(zt)}function zo(n){let r=n.split(zt),e=qn(r[0]),t=qn(r[1]),i=Ko(r[2]),o=mt(r.slice(0,2).join(zt),tr);return{header:e,payload:t,signature:i,data:o}}var rr=N(()=>{u();f();Vr();In();Pn();Yr();le()});function Vf(n=(0,Yn.randomBytes)(32)){return Yt.generateKeyPairFromSeed(n)}async function $f(n,r,e,t,i=(0,Jn.fromMiliseconds)(Date.now())){let o={alg:Ln,typ:Rn},a=Kn(t.publicKey),s=i+e,h={iss:a,sub:n,aud:r,iat:i,exp:s},D=zn({header:o,payload:h}),g=Yt.sign(t.secretKey,D);return Gn({header:o,payload:h,signature:g})}var Yt,Yn,Jn,Vn=N(()=>{u();f();Yt=me(vi()),Yn=me(fr()),Jn=me(Kr());le();rr()});var $n=N(()=>{u();f()});var Yo=N(()=>{u();f();Vn();le();$n();rr()});function uh(n){return n?Zn(n):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Qo:typeof navigator<"u"?Zn(navigator.userAgent):ns()}function es(n){return n!==""&&ts.reduce(function(r,e){var t=e[0],i=e[1];if(r)return r;var o=i.exec(n);return!!o&&[t,o]},!1)}function Zn(n){var r=es(n);if(!r)return null;var e=r[0],t=r[1];if(e==="searchbot")return new Xo;var i=t[1]&&t[1].split(".").join("_").split("_").slice(0,3);i?i.length<Qn&&(i=Xn(Xn([],i,!0),is(Qn-i.length),!0)):i=[];var o=i.join("."),a=rs(n),s=Zo.exec(n);return s&&s[1]?new $o(e,o,a,s[1]):new Jo(e,o,a)}function rs(n){for(var r=0,e=kn.length;r<e;r++){var t=kn[r],i=t[0],o=t[1],a=o.exec(n);if(a)return i}return null}function ns(){var n=typeof process<"u"&&process.version;return n?new Vo(process.version.slice(1)):null}function is(n){for(var r=[],e=0;e<n;e++)r.push("0");return r}var Xn,Jo,Vo,$o,Xo,Qo,ko,Zo,Qn,ts,kn,os=N(()=>{u();f();Xn=function(n,r,e){if(e||arguments.length===2)for(var t=0,i=r.length,o;t<i;t++)(o||!(t in r))&&(o||(o=Array.prototype.slice.call(r,0,t)),o[t]=r[t]);return n.concat(o||Array.prototype.slice.call(r))},Jo=function(){function n(r,e,t){this.name=r,this.version=e,this.os=t,this.type="browser"}return n}(),Vo=function(){function n(r){this.version=r,this.type="node",this.name="node",this.os=process.platform}return n}(),$o=function(){function n(r,e,t,i){this.name=r,this.version=e,this.os=t,this.bot=i,this.type="bot-device"}return n}(),Xo=function(){function n(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return n}(),Qo=function(){function n(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return n}(),ko=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Zo=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Qn=3,ts=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",ko]],kn=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]]});var ti=k(J=>{"use strict";u();f();Object.defineProperty(J,"__esModule",{value:!0});J.getLocalStorage=J.getLocalStorageOrThrow=J.getCrypto=J.getCryptoOrThrow=J.getLocation=J.getLocationOrThrow=J.getNavigator=J.getNavigatorOrThrow=J.getDocument=J.getDocumentOrThrow=J.getFromWindowOrThrow=J.getFromWindow=void 0;function vt(n){let r;return typeof window<"u"&&typeof window[n]<"u"&&(r=window[n]),r}J.getFromWindow=vt;function Pt(n){let r=vt(n);if(!r)throw new Error(`${n} is not defined in Window`);return r}J.getFromWindowOrThrow=Pt;function ss(){return Pt("document")}J.getDocumentOrThrow=ss;function as(){return vt("document")}J.getDocument=as;function us(){return Pt("navigator")}J.getNavigatorOrThrow=us;function fs(){return vt("navigator")}J.getNavigator=fs;function hs(){return Pt("location")}J.getLocationOrThrow=hs;function cs(){return vt("location")}J.getLocation=cs;function ls(){return Pt("crypto")}J.getCryptoOrThrow=ls;function Ds(){return vt("crypto")}J.getCrypto=Ds;function ps(){return Pt("localStorage")}J.getLocalStorageOrThrow=ps;function ds(){return vt("localStorage")}J.getLocalStorage=ds});var bs=k(pe=>{"use strict";u();f();Object.defineProperty(pe,"__esModule",{value:!0});pe.getWindowMetadata=void 0;var ei=ti();function _s(){let n,r;try{n=ei.getDocumentOrThrow(),r=ei.getLocationOrThrow()}catch{return null}function e(){let c=n.getElementsByTagName("link"),w=[];for(let p=0;p<c.length;p++){let l=c[p],m=l.getAttribute("rel");if(m&&m.toLowerCase().indexOf("icon")>-1){let E=l.getAttribute("href");if(E)if(E.toLowerCase().indexOf("https:")===-1&&E.toLowerCase().indexOf("http:")===-1&&E.indexOf("//")!==0){let C=r.protocol+"//"+r.host;if(E.indexOf("/")===0)C+=E;else{let A=r.pathname.split("/");A.pop();let v=A.join("/");C+=v+"/"+E}w.push(C)}else if(E.indexOf("//")===0){let C=r.protocol+E;w.push(C)}else w.push(E)}}return w}function t(...c){let w=n.getElementsByTagName("meta");for(let p=0;p<w.length;p++){let l=w[p],m=["itemprop","property","name"].map(E=>l.getAttribute(E)).filter(E=>E?c.includes(E):!1);if(m.length&&m){let E=l.getAttribute("content");if(E)return E}}return""}function i(){let c=t("name","og:site_name","og:title","twitter:title");return c||(c=n.title),c}function o(){return t("description","og:description","twitter:description","keywords")}let a=i(),s=o(),h=r.origin,D=e();return{description:s,url:h,icons:D,name:a}}pe.getWindowMetadata=_s});var ni=k(de=>{"use strict";u();f();Object.defineProperty(de,"__esModule",{value:!0});var ut=ur(),nr=yt(),Es=20;function ws(n,r,e){for(var t=1634760805,i=857760878,o=2036477234,a=1797285236,s=e[3]<<24|e[2]<<16|e[1]<<8|e[0],h=e[7]<<24|e[6]<<16|e[5]<<8|e[4],D=e[11]<<24|e[10]<<16|e[9]<<8|e[8],g=e[15]<<24|e[14]<<16|e[13]<<8|e[12],c=e[19]<<24|e[18]<<16|e[17]<<8|e[16],w=e[23]<<24|e[22]<<16|e[21]<<8|e[20],p=e[27]<<24|e[26]<<16|e[25]<<8|e[24],l=e[31]<<24|e[30]<<16|e[29]<<8|e[28],m=r[3]<<24|r[2]<<16|r[1]<<8|r[0],E=r[7]<<24|r[6]<<16|r[5]<<8|r[4],C=r[11]<<24|r[10]<<16|r[9]<<8|r[8],A=r[15]<<24|r[14]<<16|r[13]<<8|r[12],v=t,y=i,O=o,T=a,S=s,x=h,M=D,I=g,z=c,G=w,Y=p,V=l,q=m,K=E,_=C,U=A,$=0;$<Es;$+=2)v=v+S|0,q^=v,q=q>>>32-16|q<<16,z=z+q|0,S^=z,S=S>>>32-12|S<<12,y=y+x|0,K^=y,K=K>>>32-16|K<<16,G=G+K|0,x^=G,x=x>>>32-12|x<<12,O=O+M|0,_^=O,_=_>>>32-16|_<<16,Y=Y+_|0,M^=Y,M=M>>>32-12|M<<12,T=T+I|0,U^=T,U=U>>>32-16|U<<16,V=V+U|0,I^=V,I=I>>>32-12|I<<12,O=O+M|0,_^=O,_=_>>>32-8|_<<8,Y=Y+_|0,M^=Y,M=M>>>32-7|M<<7,T=T+I|0,U^=T,U=U>>>32-8|U<<8,V=V+U|0,I^=V,I=I>>>32-7|I<<7,y=y+x|0,K^=y,K=K>>>32-8|K<<8,G=G+K|0,x^=G,x=x>>>32-7|x<<7,v=v+S|0,q^=v,q=q>>>32-8|q<<8,z=z+q|0,S^=z,S=S>>>32-7|S<<7,v=v+x|0,U^=v,U=U>>>32-16|U<<16,Y=Y+U|0,x^=Y,x=x>>>32-12|x<<12,y=y+M|0,q^=y,q=q>>>32-16|q<<16,V=V+q|0,M^=V,M=M>>>32-12|M<<12,O=O+I|0,K^=O,K=K>>>32-16|K<<16,z=z+K|0,I^=z,I=I>>>32-12|I<<12,T=T+S|0,_^=T,_=_>>>32-16|_<<16,G=G+_|0,S^=G,S=S>>>32-12|S<<12,O=O+I|0,K^=O,K=K>>>32-8|K<<8,z=z+K|0,I^=z,I=I>>>32-7|I<<7,T=T+S|0,_^=T,_=_>>>32-8|_<<8,G=G+_|0,S^=G,S=S>>>32-7|S<<7,y=y+M|0,q^=y,q=q>>>32-8|q<<8,V=V+q|0,M^=V,M=M>>>32-7|M<<7,v=v+x|0,U^=v,U=U>>>32-8|U<<8,Y=Y+U|0,x^=Y,x=x>>>32-7|x<<7;ut.writeUint32LE(v+t|0,n,0),ut.writeUint32LE(y+i|0,n,4),ut.writeUint32LE(O+o|0,n,8),ut.writeUint32LE(T+a|0,n,12),ut.writeUint32LE(S+s|0,n,16),ut.writeUint32LE(x+h|0,n,20),ut.writeUint32LE(M+D|0,n,24),ut.writeUint32LE(I+g|0,n,28),ut.writeUint32LE(z+c|0,n,32),ut.writeUint32LE(G+w|0,n,36),ut.writeUint32LE(Y+p|0,n,40),ut.writeUint32LE(V+l|0,n,44),ut.writeUint32LE(q+m|0,n,48),ut.writeUint32LE(K+E|0,n,52),ut.writeUint32LE(_+C|0,n,56),ut.writeUint32LE(U+A|0,n,60)}function ri(n,r,e,t,i){if(i===void 0&&(i=0),n.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(t.length<e.length)throw new Error("ChaCha: destination is shorter than source");var o,a;if(i===0){if(r.length!==8&&r.length!==12)throw new Error("ChaCha nonce must be 8 or 12 bytes");o=new Uint8Array(16),a=o.length-r.length,o.set(r,a)}else{if(r.length!==16)throw new Error("ChaCha nonce with counter must be 16 bytes");o=r,a=i}for(var s=new Uint8Array(64),h=0;h<e.length;h+=64){ws(s,o,n);for(var D=h;D<h+64&&D<e.length;D++)t[D]=e[D]^s[D-h];ms(o,0,a)}return nr.wipe(s),i===0&&nr.wipe(o),t}de.streamXOR=ri;function gs(n,r,e,t){return t===void 0&&(t=0),nr.wipe(e),ri(n,r,e,e,t)}de.stream=gs;function ms(n,r,e){for(var t=1;e--;)t=t+(n[r]&255)|0,n[r]=t&255,t>>>=8,r++;if(t>0)throw new Error("ChaCha: counter overflow")}});var _e=k(Lt=>{"use strict";u();f();Object.defineProperty(Lt,"__esModule",{value:!0});function vs(n,r,e){return~(n-1)&r|n-1&e}Lt.select=vs;function ys(n,r){return(n|0)-(r|0)-1>>>31&1}Lt.lessOrEqual=ys;function ii(n,r){if(n.length!==r.length)return 0;for(var e=0,t=0;t<n.length;t++)e|=n[t]^r[t];return 1&e-1>>>8}Lt.compare=ii;function Ss(n,r){return n.length===0||r.length===0?!1:ii(n,r)!==0}Lt.equal=Ss});var si=k(dt=>{"use strict";u();f();Object.defineProperty(dt,"__esModule",{value:!0});var xs=_e(),be=yt();dt.DIGEST_LENGTH=16;var oi=function(){function n(r){this.digestLength=dt.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var e=r[0]|r[1]<<8;this._r[0]=e&8191;var t=r[2]|r[3]<<8;this._r[1]=(e>>>13|t<<3)&8191;var i=r[4]|r[5]<<8;this._r[2]=(t>>>10|i<<6)&7939;var o=r[6]|r[7]<<8;this._r[3]=(i>>>7|o<<9)&8191;var a=r[8]|r[9]<<8;this._r[4]=(o>>>4|a<<12)&255,this._r[5]=a>>>1&8190;var s=r[10]|r[11]<<8;this._r[6]=(a>>>14|s<<2)&8191;var h=r[12]|r[13]<<8;this._r[7]=(s>>>11|h<<5)&8065;var D=r[14]|r[15]<<8;this._r[8]=(h>>>8|D<<8)&8191,this._r[9]=D>>>5&127,this._pad[0]=r[16]|r[17]<<8,this._pad[1]=r[18]|r[19]<<8,this._pad[2]=r[20]|r[21]<<8,this._pad[3]=r[22]|r[23]<<8,this._pad[4]=r[24]|r[25]<<8,this._pad[5]=r[26]|r[27]<<8,this._pad[6]=r[28]|r[29]<<8,this._pad[7]=r[30]|r[31]<<8}return n.prototype._blocks=function(r,e,t){for(var i=this._fin?0:2048,o=this._h[0],a=this._h[1],s=this._h[2],h=this._h[3],D=this._h[4],g=this._h[5],c=this._h[6],w=this._h[7],p=this._h[8],l=this._h[9],m=this._r[0],E=this._r[1],C=this._r[2],A=this._r[3],v=this._r[4],y=this._r[5],O=this._r[6],T=this._r[7],S=this._r[8],x=this._r[9];t>=16;){var M=r[e+0]|r[e+1]<<8;o+=M&8191;var I=r[e+2]|r[e+3]<<8;a+=(M>>>13|I<<3)&8191;var z=r[e+4]|r[e+5]<<8;s+=(I>>>10|z<<6)&8191;var G=r[e+6]|r[e+7]<<8;h+=(z>>>7|G<<9)&8191;var Y=r[e+8]|r[e+9]<<8;D+=(G>>>4|Y<<12)&8191,g+=Y>>>1&8191;var V=r[e+10]|r[e+11]<<8;c+=(Y>>>14|V<<2)&8191;var q=r[e+12]|r[e+13]<<8;w+=(V>>>11|q<<5)&8191;var K=r[e+14]|r[e+15]<<8;p+=(q>>>8|K<<8)&8191,l+=K>>>5|i;var _=0,U=_;U+=o*m,U+=a*(5*x),U+=s*(5*S),U+=h*(5*T),U+=D*(5*O),_=U>>>13,U&=8191,U+=g*(5*y),U+=c*(5*v),U+=w*(5*A),U+=p*(5*C),U+=l*(5*E),_+=U>>>13,U&=8191;var $=_;$+=o*E,$+=a*m,$+=s*(5*x),$+=h*(5*S),$+=D*(5*T),_=$>>>13,$&=8191,$+=g*(5*O),$+=c*(5*y),$+=w*(5*v),$+=p*(5*A),$+=l*(5*C),_+=$>>>13,$&=8191;var P=_;P+=o*C,P+=a*E,P+=s*m,P+=h*(5*x),P+=D*(5*S),_=P>>>13,P&=8191,P+=g*(5*T),P+=c*(5*O),P+=w*(5*y),P+=p*(5*v),P+=l*(5*A),_+=P>>>13,P&=8191;var L=_;L+=o*A,L+=a*C,L+=s*E,L+=h*m,L+=D*(5*x),_=L>>>13,L&=8191,L+=g*(5*S),L+=c*(5*T),L+=w*(5*O),L+=p*(5*y),L+=l*(5*v),_+=L>>>13,L&=8191;var R=_;R+=o*v,R+=a*A,R+=s*C,R+=h*E,R+=D*m,_=R>>>13,R&=8191,R+=g*(5*x),R+=c*(5*S),R+=w*(5*T),R+=p*(5*O),R+=l*(5*y),_+=R>>>13,R&=8191;var B=_;B+=o*y,B+=a*v,B+=s*A,B+=h*C,B+=D*E,_=B>>>13,B&=8191,B+=g*m,B+=c*(5*x),B+=w*(5*S),B+=p*(5*T),B+=l*(5*O),_+=B>>>13,B&=8191;var F=_;F+=o*O,F+=a*y,F+=s*v,F+=h*A,F+=D*C,_=F>>>13,F&=8191,F+=g*E,F+=c*m,F+=w*(5*x),F+=p*(5*S),F+=l*(5*T),_+=F>>>13,F&=8191;var W=_;W+=o*T,W+=a*O,W+=s*y,W+=h*v,W+=D*A,_=W>>>13,W&=8191,W+=g*C,W+=c*E,W+=w*m,W+=p*(5*x),W+=l*(5*S),_+=W>>>13,W&=8191;var H=_;H+=o*S,H+=a*T,H+=s*O,H+=h*y,H+=D*v,_=H>>>13,H&=8191,H+=g*A,H+=c*C,H+=w*E,H+=p*m,H+=l*(5*x),_+=H>>>13,H&=8191;var j=_;j+=o*x,j+=a*S,j+=s*T,j+=h*O,j+=D*y,_=j>>>13,j&=8191,j+=g*v,j+=c*A,j+=w*C,j+=p*E,j+=l*m,_+=j>>>13,j&=8191,_=(_<<2)+_|0,_=_+U|0,U=_&8191,_=_>>>13,$+=_,o=U,a=$,s=P,h=L,D=R,g=B,c=F,w=W,p=H,l=j,e+=16,t-=16}this._h[0]=o,this._h[1]=a,this._h[2]=s,this._h[3]=h,this._h[4]=D,this._h[5]=g,this._h[6]=c,this._h[7]=w,this._h[8]=p,this._h[9]=l},n.prototype.finish=function(r,e){e===void 0&&(e=0);var t=new Uint16Array(10),i,o,a,s;if(this._leftover){for(s=this._leftover,this._buffer[s++]=1;s<16;s++)this._buffer[s]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(i=this._h[1]>>>13,this._h[1]&=8191,s=2;s<10;s++)this._h[s]+=i,i=this._h[s]>>>13,this._h[s]&=8191;for(this._h[0]+=i*5,i=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=i,i=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=i,t[0]=this._h[0]+5,i=t[0]>>>13,t[0]&=8191,s=1;s<10;s++)t[s]=this._h[s]+i,i=t[s]>>>13,t[s]&=8191;for(t[9]-=1<<13,o=(i^1)-1,s=0;s<10;s++)t[s]&=o;for(o=~o,s=0;s<10;s++)this._h[s]=this._h[s]&o|t[s];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,a=this._h[0]+this._pad[0],this._h[0]=a&65535,s=1;s<8;s++)a=(this._h[s]+this._pad[s]|0)+(a>>>16)|0,this._h[s]=a&65535;return r[e+0]=this._h[0]>>>0,r[e+1]=this._h[0]>>>8,r[e+2]=this._h[1]>>>0,r[e+3]=this._h[1]>>>8,r[e+4]=this._h[2]>>>0,r[e+5]=this._h[2]>>>8,r[e+6]=this._h[3]>>>0,r[e+7]=this._h[3]>>>8,r[e+8]=this._h[4]>>>0,r[e+9]=this._h[4]>>>8,r[e+10]=this._h[5]>>>0,r[e+11]=this._h[5]>>>8,r[e+12]=this._h[6]>>>0,r[e+13]=this._h[6]>>>8,r[e+14]=this._h[7]>>>0,r[e+15]=this._h[7]>>>8,this._finished=!0,this},n.prototype.update=function(r){var e=0,t=r.length,i;if(this._leftover){i=16-this._leftover,i>t&&(i=t);for(var o=0;o<i;o++)this._buffer[this._leftover+o]=r[e+o];if(t-=i,e+=i,this._leftover+=i,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(t>=16&&(i=t-t%16,this._blocks(r,e,i),e+=i,t-=i),t){for(var o=0;o<t;o++)this._buffer[this._leftover+o]=r[e+o];this._leftover+=t}return this},n.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var r=new Uint8Array(16);return this.finish(r),r},n.prototype.clean=function(){return be.wipe(this._buffer),be.wipe(this._r),be.wipe(this._h),be.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},n}();dt.Poly1305=oi;function Cs(n,r){var e=new oi(n);e.update(r);var t=e.digest();return e.clean(),t}dt.oneTimeAuth=Cs;function Os(n,r){return n.length!==dt.DIGEST_LENGTH||r.length!==dt.DIGEST_LENGTH?!1:xs.equal(n,r)}dt.equal=Os});var Us=k(_t=>{"use strict";u();f();Object.defineProperty(_t,"__esModule",{value:!0});var Ee=ni(),Ts=si(),Jt=yt(),ai=ur(),As=_e();_t.KEY_LENGTH=32;_t.NONCE_LENGTH=12;_t.TAG_LENGTH=16;var ui=new Uint8Array(16),Ns=function(){function n(r){if(this.nonceLength=_t.NONCE_LENGTH,this.tagLength=_t.TAG_LENGTH,r.length!==_t.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(r)}return n.prototype.seal=function(r,e,t,i){if(r.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(r,o.length-r.length);var a=new Uint8Array(32);Ee.stream(this._key,o,a,4);var s=e.length+this.tagLength,h;if(i){if(i.length!==s)throw new Error("ChaCha20Poly1305: incorrect destination length");h=i}else h=new Uint8Array(s);return Ee.streamXOR(this._key,o,e,h,4),this._authenticate(h.subarray(h.length-this.tagLength,h.length),a,h.subarray(0,h.length-this.tagLength),t),Jt.wipe(o),h},n.prototype.open=function(r,e,t,i){if(r.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(e.length<this.tagLength)return null;var o=new Uint8Array(16);o.set(r,o.length-r.length);var a=new Uint8Array(32);Ee.stream(this._key,o,a,4);var s=new Uint8Array(this.tagLength);if(this._authenticate(s,a,e.subarray(0,e.length-this.tagLength),t),!As.equal(s,e.subarray(e.length-this.tagLength,e.length)))return null;var h=e.length-this.tagLength,D;if(i){if(i.length!==h)throw new Error("ChaCha20Poly1305: incorrect destination length");D=i}else D=new Uint8Array(h);return Ee.streamXOR(this._key,o,e.subarray(0,e.length-this.tagLength),D,4),Jt.wipe(o),D},n.prototype.clean=function(){return Jt.wipe(this._key),this},n.prototype._authenticate=function(r,e,t,i){var o=new Ts.Poly1305(e);i&&(o.update(i),i.length%16>0&&o.update(ui.subarray(i.length%16))),o.update(t),t.length%16>0&&o.update(ui.subarray(t.length%16));var a=new Uint8Array(8);i&&ai.writeUint64LE(i.length,a),o.update(a),ai.writeUint64LE(t.length,a),o.update(a);for(var s=o.digest(),h=0;h<s.length;h++)r[h]=s[h];o.clean(),Jt.wipe(s),Jt.wipe(a)},n}();_t.ChaCha20Poly1305=Ns});var fi=k(ir=>{"use strict";u();f();Object.defineProperty(ir,"__esModule",{value:!0});function Ms(n){return typeof n.saveState<"u"&&typeof n.restoreState<"u"&&typeof n.cleanSavedState<"u"}ir.isSerializableHash=Ms});var ci=k(Vt=>{"use strict";u();f();Object.defineProperty(Vt,"__esModule",{value:!0});var lt=fi(),Is=_e(),Ps=yt(),hi=function(){function n(r,e){this._finished=!1,this._inner=new r,this._outer=new r,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var t=new Uint8Array(this.blockSize);e.length>this.blockSize?this._inner.update(e).finish(t).clean():t.set(e);for(var i=0;i<t.length;i++)t[i]^=54;this._inner.update(t);for(var i=0;i<t.length;i++)t[i]^=106;this._outer.update(t),lt.isSerializableHash(this._inner)&<.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),Ps.wipe(t)}return n.prototype.reset=function(){if(!lt.isSerializableHash(this._inner)||!lt.isSerializableHash(this._outer))throw new Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},n.prototype.clean=function(){lt.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),lt.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},n.prototype.update=function(r){return this._inner.update(r),this},n.prototype.finish=function(r){return this._finished?(this._outer.finish(r),this):(this._inner.finish(r),this._outer.update(r.subarray(0,this.digestLength)).finish(r),this._finished=!0,this)},n.prototype.digest=function(){var r=new Uint8Array(this.digestLength);return this.finish(r),r},n.prototype.saveState=function(){if(!lt.isSerializableHash(this._inner))throw new Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},n.prototype.restoreState=function(r){if(!lt.isSerializableHash(this._inner)||!lt.isSerializableHash(this._outer))throw new Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(r),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},n.prototype.cleanSavedState=function(r){if(!lt.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(r)},n}();Vt.HMAC=hi;function Ls(n,r,e){var t=new hi(n,r);t.update(e);var i=t.digest();return t.clean(),i}Vt.hmac=Ls;Vt.equal=Is.equal});var Bs=k(or=>{"use strict";u();f();Object.defineProperty(or,"__esModule",{value:!0});var li=ci(),Di=yt(),Rs=function(){function n(r,e,t,i){t===void 0&&(t=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=r,this._info=i;var o=li.hmac(this._hash,t,e);this._hmac=new li.HMAC(r,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return n.prototype._fillBuffer=function(){this._counter[0]++;var r=this._counter[0];if(r===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),r>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},n.prototype.expand=function(r){for(var e=new Uint8Array(r),t=0;t<e.length;t++)this._bufpos===this._buffer.length&&this._fillBuffer(),e[t]=this._buffer[this._bufpos++];return e},n.prototype.clean=function(){this._hmac.clean(),Di.wipe(this._buffer),Di.wipe(this._counter),this._bufpos=0},n}();or.HKDF=Rs});var Ys=k(Q=>{"use strict";u();f();Object.defineProperty(Q,"__esModule",{value:!0});Q.sharedKey=Q.generateKeyPair=Q.generateKeyPairFromSeed=Q.scalarMultBase=Q.scalarMult=Q.SHARED_KEY_LENGTH=Q.SECRET_KEY_LENGTH=Q.PUBLIC_KEY_LENGTH=void 0;var Fs=fr(),Ws=yt();Q.PUBLIC_KEY_LENGTH=32;Q.SECRET_KEY_LENGTH=32;Q.SHARED_KEY_LENGTH=32;function Dt(n){let r=new Float64Array(16);if(n)for(let e=0;e<n.length;e++)r[e]=n[e];return r}var pi=new Uint8Array(32);pi[0]=9;var Hs=Dt([56129,1]);function sr(n){let r=1;for(let e=0;e<16;e++){let t=n[e]+r+65535;r=Math.floor(t/65536),n[e]=t-r*65536}n[0]+=r-1+37*(r-1)}function $t(n,r,e){let t=~(e-1);for(let i=0;i<16;i++){let o=t&(n[i]^r[i]);n[i]^=o,r[i]^=o}}function js(n,r){let e=Dt(),t=Dt();for(let i=0;i<16;i++)t[i]=r[i];sr(t),sr(t),sr(t);for(let i=0;i<2;i++){e[0]=t[0]-65517;for(let a=1;a<15;a++)e[a]=t[a]-65535-(e[a-1]>>16&1),e[a-1]&=65535;e[15]=t[15]-32767-(e[14]>>16&1);let o=e[15]>>16&1;e[14]&=65535,$t(t,e,1-o)}for(let i=0;i<16;i++)n[2*i]=t[i]&255,n[2*i+1]=t[i]>>8}function qs(n,r){for(let e=0;e<16;e++)n[e]=r[2*e]+(r[2*e+1]<<8);n[15]&=32767}function we(n,r,e){for(let t=0;t<16;t++)n[t]=r[t]+e[t]}function ge(n,r,e){for(let t=0;t<16;t++)n[t]=r[t]-e[t]}function bt(n,r,e){let t,i,o=0,a=0,s=0,h=0,D=0,g=0,c=0,w=0,p=0,l=0,m=0,E=0,C=0,A=0,v=0,y=0,O=0,T=0,S=0,x=0,M=0,I=0,z=0,G=0,Y=0,V=0,q=0,K=0,_=0,U=0,$=0,P=e[0],L=e[1],R=e[2],B=e[3],F=e[4],W=e[5],H=e[6],j=e[7],tt=e[8],et=e[9],rt=e[10],nt=e[11],it=e[12],ot=e[13],st=e[14],at=e[15];t=r[0],o+=t*P,a+=t*L,s+=t*R,h+=t*B,D+=t*F,g+=t*W,c+=t*H,w+=t*j,p+=t*tt,l+=t*et,m+=t*rt,E+=t*nt,C+=t*it,A+=t*ot,v+=t*st,y+=t*at,t=r[1],a+=t*P,s+=t*L,h+=t*R,D+=t*B,g+=t*F,c+=t*W,w+=t*H,p+=t*j,l+=t*tt,m+=t*et,E+=t*rt,C+=t*nt,A+=t*it,v+=t*ot,y+=t*st,O+=t*at,t=r[2],s+=t*P,h+=t*L,D+=t*R,g+=t*B,c+=t*F,w+=t*W,p+=t*H,l+=t*j,m+=t*tt,E+=t*et,C+=t*rt,A+=t*nt,v+=t*it,y+=t*ot,O+=t*st,T+=t*at,t=r[3],h+=t*P,D+=t*L,g+=t*R,c+=t*B,w+=t*F,p+=t*W,l+=t*H,m+=t*j,E+=t*tt,C+=t*et,A+=t*rt,v+=t*nt,y+=t*it,O+=t*ot,T+=t*st,S+=t*at,t=r[4],D+=t*P,g+=t*L,c+=t*R,w+=t*B,p+=t*F,l+=t*W,m+=t*H,E+=t*j,C+=t*tt,A+=t*et,v+=t*rt,y+=t*nt,O+=t*it,T+=t*ot,S+=t*st,x+=t*at,t=r[5],g+=t*P,c+=t*L,w+=t*R,p+=t*B,l+=t*F,m+=t*W,E+=t*H,C+=t*j,A+=t*tt,v+=t*et,y+=t*rt,O+=t*nt,T+=t*it,S+=t*ot,x+=t*st,M+=t*at,t=r[6],c+=t*P,w+=t*L,p+=t*R,l+=t*B,m+=t*F,E+=t*W,C+=t*H,A+=t*j,v+=t*tt,y+=t*et,O+=t*rt,T+=t*nt,S+=t*it,x+=t*ot,M+=t*st,I+=t*at,t=r[7],w+=t*P,p+=t*L,l+=t*R,m+=t*B,E+=t*F,C+=t*W,A+=t*H,v+=t*j,y+=t*tt,O+=t*et,T+=t*rt,S+=t*nt,x+=t*it,M+=t*ot,I+=t*st,z+=t*at,t=r[8],p+=t*P,l+=t*L,m+=t*R,E+=t*B,C+=t*F,A+=t*W,v+=t*H,y+=t*j,O+=t*tt,T+=t*et,S+=t*rt,x+=t*nt,M+=t*it,I+=t*ot,z+=t*st,G+=t*at,t=r[9],l+=t*P,m+=t*L,E+=t*R,C+=t*B,A+=t*F,v+=t*W,y+=t*H,O+=t*j,T+=t*tt,S+=t*et,x+=t*rt,M+=t*nt,I+=t*it,z+=t*ot,G+=t*st,Y+=t*at,t=r[10],m+=t*P,E+=t*L,C+=t*R,A+=t*B,v+=t*F,y+=t*W,O+=t*H,T+=t*j,S+=t*tt,x+=t*et,M+=t*rt,I+=t*nt,z+=t*it,G+=t*ot,Y+=t*st,V+=t*at,t=r[11],E+=t*P,C+=t*L,A+=t*R,v+=t*B,y+=t*F,O+=t*W,T+=t*H,S+=t*j,x+=t*tt,M+=t*et,I+=t*rt,z+=t*nt,G+=t*it,Y+=t*ot,V+=t*st,q+=t*at,t=r[12],C+=t*P,A+=t*L,v+=t*R,y+=t*B,O+=t*F,T+=t*W,S+=t*H,x+=t*j,M+=t*tt,I+=t*et,z+=t*rt,G+=t*nt,Y+=t*it,V+=t*ot,q+=t*st,K+=t*at,t=r[13],A+=t*P,v+=t*L,y+=t*R,O+=t*B,T+=t*F,S+=t*W,x+=t*H,M+=t*j,I+=t*tt,z+=t*et,G+=t*rt,Y+=t*nt,V+=t*it,q+=t*ot,K+=t*st,_+=t*at,t=r[14],v+=t*P,y+=t*L,O+=t*R,T+=t*B,S+=t*F,x+=t*W,M+=t*H,I+=t*j,z+=t*tt,G+=t*et,Y+=t*rt,V+=t*nt,q+=t*it,K+=t*ot,_+=t*st,U+=t*at,t=r[15],y+=t*P,O+=t*L,T+=t*R,S+=t*B,x+=t*F,M+=t*W,I+=t*H,z+=t*j,G+=t*tt,Y+=t*et,V+=t*rt,q+=t*nt,K+=t*it,_+=t*ot,U+=t*st,$+=t*at,o+=38*O,a+=38*T,s+=38*S,h+=38*x,D+=38*M,g+=38*I,c+=38*z,w+=38*G,p+=38*Y,l+=38*V,m+=38*q,E+=38*K,C+=38*_,A+=38*U,v+=38*$,i=1,t=o+i+65535,i=Math.floor(t/65536),o=t-i*65536,t=a+i+65535,i=Math.floor(t/65536),a=t-i*65536,t=s+i+65535,i=Math.floor(t/65536),s=t-i*65536,t=h+i+65535,i=Math.floor(t/65536),h=t-i*65536,t=D+i+65535,i=Math.floor(t/65536),D=t-i*65536,t=g+i+65535,i=Math.floor(t/65536),g=t-i*65536,t=c+i+65535,i=Math.floor(t/65536),c=t-i*65536,t=w+i+65535,i=Math.floor(t/65536),w=t-i*65536,t=p+i+65535,i=Math.floor(t/65536),p=t-i*65536,t=l+i+65535,i=Math.floor(t/65536),l=t-i*65536,t=m+i+65535,i=Math.floor(t/65536),m=t-i*65536,t=E+i+65535,i=Math.floor(t/65536),E=t-i*65536,t=C+i+65535,i=Math.floor(t/65536),C=t-i*65536,t=A+i+65535,i=Math.floor(t/65536),A=t-i*65536,t=v+i+65535,i=Math.floor(t/65536),v=t-i*65536,t=y+i+65535,i=Math.floor(t/65536),y=t-i*65536,o+=i-1+37*(i-1),i=1,t=o+i+65535,i=Math.floor(t/65536),o=t-i*65536,t=a+i+65535,i=Math.floor(t/65536),a=t-i*65536,t=s+i+65535,i=Math.floor(t/65536),s=t-i*65536,t=h+i+65535,i=Math.floor(t/65536),h=t-i*65536,t=D+i+65535,i=Math.floor(t/65536),D=t-i*65536,t=g+i+65535,i=Math.floor(t/65536),g=t-i*65536,t=c+i+65535,i=Math.floor(t/65536),c=t-i*65536,t=w+i+65535,i=Math.floor(t/65536),w=t-i*65536,t=p+i+65535,i=Math.floor(t/65536),p=t-i*65536,t=l+i+65535,i=Math.floor(t/65536),l=t-i*65536,t=m+i+65535,i=Math.floor(t/65536),m=t-i*65536,t=E+i+65535,i=Math.floor(t/65536),E=t-i*65536,t=C+i+65535,i=Math.floor(t/65536),C=t-i*65536,t=A+i+65535,i=Math.floor(t/65536),A=t-i*65536,t=v+i+65535,i=Math.floor(t/65536),v=t-i*65536,t=y+i+65535,i=Math.floor(t/65536),y=t-i*65536,o+=i-1+37*(i-1),n[0]=o,n[1]=a,n[2]=s,n[3]=h,n[4]=D,n[5]=g,n[6]=c,n[7]=w,n[8]=p,n[9]=l,n[10]=m,n[11]=E,n[12]=C,n[13]=A,n[14]=v,n[15]=y}function Xt(n,r){bt(n,r,r)}function Ks(n,r){let e=Dt();for(let t=0;t<16;t++)e[t]=r[t];for(let t=253;t>=0;t--)Xt(e,e),t!==2&&t!==4&&bt(e,e,r);for(let t=0;t<16;t++)n[t]=e[t]}function ar(n,r){let e=new Uint8Array(32),t=new Float64Array(80),i=Dt(),o=Dt(),a=Dt(),s=Dt(),h=Dt(),D=Dt();for(let p=0;p<31;p++)e[p]=n[p];e[31]=n[31]&127|64,e[0]&=248,qs(t,r);for(let p=0;p<16;p++)o[p]=t[p];i[0]=s[0]=1;for(let p=254;p>=0;--p){let l=e[p>>>3]>>>(p&7)&1;$t(i,o,l),$t(a,s,l),we(h,i,a),ge(i,i,a),we(a,o,s),ge(o,o,s),Xt(s,h),Xt(D,i),bt(i,a,i),bt(a,o,h),we(h,i,a),ge(i,i,a),Xt(o,i),ge(a,s,D),bt(i,a,Hs),we(i,i,s),bt(a,a,i),bt(i,s,D),bt(s,o,t),Xt(o,h),$t(i,o,l),$t(a,s,l)}for(let p=0;p<16;p++)t[p+16]=i[p],t[p+32]=a[p],t[p+48]=o[p],t[p+64]=s[p];let g=t.subarray(32),c=t.subarray(16);Ks(g,g),bt(c,c,g);let w=new Uint8Array(32);return js(w,c),w}Q.scalarMult=ar;function di(n){return ar(n,pi)}Q.scalarMultBase=di;function _i(n){if(n.length!==Q.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${Q.SECRET_KEY_LENGTH} bytes`);let r=new Uint8Array(n);return{publicKey:di(r),secretKey:r}}Q.generateKeyPairFromSeed=_i;function zs(n){let r=(0,Fs.randomBytes)(32,n),e=_i(r);return(0,Ws.wipe)(r),e}Q.generateKeyPair=zs;function Gs(n,r,e=!1){if(n.length!==Q.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(r.length!==Q.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");let t=ar(n,r);if(e){let i=0;for(let o=0;o<t.length;o++)i|=t[o];if(i===0)throw new Error("X25519: invalid shared key")}return t}Q.sharedKey=Gs});function Js(n,r){r||(r=n.reduce((i,o)=>i+o.length,0));let e=ve(r),t=0;for(let i of n)e.set(i,t),t+=i.length;return e}var bi=N(()=>{u();f();hr()});function Vs(n,r="utf8"){let e=cr[r];if(!e)throw new Error(`Unsupported encoding "${r}"`);return(r==="utf8"||r==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(n,"utf8"):e.decoder.decode(`${e.prefix}${n}`)}var Ei=N(()=>{u();f();yi()});var wi=N(()=>{u();f()});var gi=N(()=>{u();f()});var mi=N(()=>{u();f();hr()});var $s=N(()=>{u();f();wi();bi();gi();Ei();Si();mi()});var wc,Xs=N(()=>{u();f();wc={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}}});export{Kr as a,zr as b,Gr as c,Yr as d,Kn as e,zo as f,Vf as g,$f as h,Yo as i,uh as j,os as k,ti as l,bs as m,Us as n,Bs as o,Ys as p,Js as q,Vs as r,$s as s,wc as t,Xs as u};
|
|
|
|
window.inOKXExtension = true;
|
|
window.inMiniApp = false;
|
|
window.ASSETS_BUILD_TYPE = "publish";
|
|
|
|
//# sourceMappingURL=chunk-USIGV7OR.js.map
|