@dcl/auth-site 5.0.1 → 5.0.2-30575823062.commit-adc472a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{ConstantsUtil-B-iC7NmF.js → ConstantsUtil-BaNeZT1X.js} +1 -1
- package/assets/{ContentfulRichText-D2jVnPtv.js → ContentfulRichText-BW9UDRsk.js} +1 -1
- package/assets/{ExchangeController-jYFSoi3g.js → ExchangeController-BifFEVJQ.js} +1 -1
- package/assets/{HelpersUtil-BHeaqydX.js → HelpersUtil-z1p7Ukeo.js} +1 -1
- package/assets/LoginPage-D_Fiw2bo.js +1 -0
- package/assets/{NetworkUtil-Bkm_YJQn.js → NetworkUtil-B62y6RwJ.js} +1 -1
- package/assets/{SwapController-w6eNOnjq.js → SwapController-BexKehR-.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-B9uiByvm.js → W3MFrameProviderSingleton-HZSGN_a5.js} +3 -3
- package/assets/{biconomy-Dodg9PAr.js → biconomy-BTbWAA8q.js} +1 -1
- package/assets/{browser-e9K59E7k.js → browser-7xlZbWZA.js} +1 -1
- package/assets/browser-ponyfill-Cb8obt81.js +1 -0
- package/assets/{ccip-WtNof6K-.js → ccip-Cn-nlOB_.js} +1 -1
- package/assets/{ccip-CqqAlpnX.js → ccip-JTz2NZBw.js} +1 -1
- package/assets/{chains-DDZ6mAw1.js → chains-BYYzozUb.js} +1 -1
- package/assets/{common-DEdstz3K.js → common-DUg6CSw8.js} +1 -1
- package/assets/{controller-Aby2GHEy.js → controller-BjfQP2vJ.js} +2 -2
- package/assets/{data-capture-BsCISChK.js → data-capture-BazAvr60.js} +1 -1
- package/assets/{email-BZ115Sd8.js → email-ZIoJ0WEu.js} +1 -1
- package/assets/{embedded-wallet-T5bWM5g5.js → embedded-wallet-DOjqfbEA.js} +1 -1
- package/assets/{engine-3Nq4YRpw.js → engine-BriIPmdl.js} +1 -1
- package/assets/{estimate-l1-fee-BSNTVmd9.js → estimate-l1-fee-DyKpd0Te.js} +1 -1
- package/assets/{ethereum-Cu1Z5Lxx.js → ethereum-iaaKXQaq.js} +1 -1
- package/assets/{extractIPFS-C-HdaPLW.js → extractIPFS-BnNCx7uK.js} +1 -1
- package/assets/{features-D4HQy6nH.js → features-HzaP6Ace.js} +1 -1
- package/assets/{fetchTokenMetadata-B7hkBFb-.js → fetchTokenMetadata-OSkm1kKo.js} +1 -1
- package/assets/{fortmatic-CtEeWtjR.js → fortmatic-CG-vbIco.js} +1 -1
- package/assets/{get-ecosystem-wallet-info-9YLvFVp_.js → get-ecosystem-wallet-info-DQEJBVxt.js} +1 -1
- package/assets/{getBalance-DSMPcASV.js → getBalance-B1XC-lXL.js} +1 -1
- package/assets/{getInstalledModules-y33ed_Xl.js → getInstalledModules-Cp2sd9TP.js} +1 -1
- package/assets/{getNFT-CjJWr1G-.js → getNFT-DcQ2UTVs.js} +2 -2
- package/assets/{getNFT-D-XNFYnr.js → getNFT-DsSjN-iO.js} +1 -1
- package/assets/{if-defined-COlC6TLi.js → if-defined-C5UymspQ.js} +1 -1
- package/assets/{in-app-C0hKfbja.js → in-app-uGdl4Cid.js} +2 -2
- package/assets/{in-app-wallet-calls-BOfzVHWH.js → in-app-wallet-calls-CNMb4B8c.js} +1 -1
- package/assets/{index-qas1y3ys.js → index-0zdpq7wj.js} +1 -1
- package/assets/{index-C_yztBIt.js → index-7TSTCMor.js} +1 -1
- package/assets/{index-ChxPwgIw.js → index-B2qqxEZl.js} +3 -3
- package/assets/{index-mvb3gZhv.js → index-B6AOrcnK.js} +1 -1
- package/assets/{index-BAcr6jtr.js → index-B9JxC_Vs.js} +2 -2
- package/assets/{index-BaIgr7rK.js → index-BBorsv5y.js} +1 -1
- package/assets/{index-CS8Omufd.js → index-BCazXkEC.js} +1 -1
- package/assets/{index-Cj-9ip0x.js → index-BDrx3_Zc.js} +1 -1
- package/assets/{index-DsW92Onp.js → index-BK3ozrau.js} +1 -1
- package/assets/{index-DHQ4H4ZH.js → index-BW4tPxWu.js} +1 -1
- package/assets/{index-7dnPzsMy.js → index-Bia6LG94.js} +1 -1
- package/assets/{index-BtAcZ5TJ.js → index-BoN2N87S.js} +3 -3
- package/assets/{index-Dc74cEmh.js → index-Brp-qv0v.js} +1 -1
- package/assets/{index-Dtp0c3su.js → index-BuXE5uJE.js} +1 -1
- package/assets/{index-v0EG60KJ.js → index-BzX6Y2Gs.js} +1 -1
- package/assets/{index-CP-TD4Jj.js → index-CB-1Rn6p.js} +1 -1
- package/assets/{index-BwvnBfGu.js → index-CDY-fCE0.js} +13 -13
- package/assets/{index-DktzXgtz.js → index-CGrkp10p.js} +1 -1
- package/assets/{index-cHC2pxGu.js → index-CKLPwjvB.js} +1 -1
- package/assets/index-CMl1O5Ha.css +1 -0
- package/assets/{index-ATD7BQud.js → index-CMme4NQV.js} +1 -1
- package/assets/{index-BTwyYAsu.js → index-CNYPDnPH.js} +1 -1
- package/assets/{index-H0qg_jef.js → index-CTW1lZaU.js} +1 -1
- package/assets/{index-Bw6GoOG0.js → index-CWo-IqwD.js} +1 -1
- package/assets/{index-DwbN8oO_.js → index-C_vXcwor.js} +1 -1
- package/assets/{index-CCWzYTy8.js → index-CbGgKOmT.js} +1 -1
- package/assets/{index-NgVITQGY.js → index-CfM1TtKN.js} +1 -1
- package/assets/{index-COCPyuIb.js → index-CgeDUOIY.js} +1 -1
- package/assets/{index-CUNTwqLt.js → index-CmjSFUSf.js} +1 -1
- package/assets/{index-BCXlz-CZ.js → index-Cr33k6z-.js} +1 -1
- package/assets/{index-Clncz6ar.js → index-CygySI4V.js} +1 -1
- package/assets/{index-DEdH3uZE.js → index-D0AFTGOC.js} +1 -1
- package/assets/{index-oQP5GBKO.js → index-D4hj-MW3.js} +1 -1
- package/assets/{index-DYsWZZf-.js → index-DE_Ntr4I.js} +2 -2
- package/assets/{index-CV3w4oRu.js → index-Djo9f3NB.js} +1 -1
- package/assets/{index-BBqgkL3A.js → index-DnO4CRG9.js} +1 -1
- package/assets/{index-GiL1YCc4.js → index-DqBoqWMr.js} +1 -1
- package/assets/{index-D7imhnFn.js → index-DzUrlQQ5.js} +1 -1
- package/assets/{index-BLg4imrJ.js → index-FRtQ3Mfa.js} +1 -1
- package/assets/{index-Zi9T_dfd.js → index-Std7f1h0.js} +1 -1
- package/assets/{index-BryBZw1q.js → index-T2As9Itz.js} +1 -1
- package/assets/{index-Db0dbl2b.js → index-WJmU6YKM.js} +1 -1
- package/assets/{index-SFZvXkZx.js → index-aBT-ixmd.js} +1 -1
- package/assets/{index-B46uKh4H.js → index-fItYIYCh.js} +1 -1
- package/assets/{index-CY8kI8av.js → index-h6i4u6IV.js} +1 -1
- package/assets/{index-ah1xhK47.js → index-jC2HYit5.js} +1 -1
- package/assets/{index-C2ZcfLrT.js → index-lI73X9m0.js} +1 -1
- package/assets/{index-DQwarFXF.js → index-m1gWd9HT.js} +1 -1
- package/assets/{index-Ce12iK52.js → index-r1jiBqoI.js} +3 -3
- package/assets/{index.es-BPVfpcS8.js → index.es-Cp0geagm.js} +1 -1
- package/assets/{index.es-Dj9EdCbH.js → index.es-DK8O-nxI.js} +1 -1
- package/assets/{linkAccount-0wVo537m.js → linkAccount-CrGlMZyo.js} +1 -1
- package/assets/{native-BaECZrv0.js → native-DtkOxK1N.js} +1 -1
- package/assets/{networks-TKe7BAwf.js → networks-w9YOGFim.js} +3 -3
- package/assets/{onramp-4z8tKJQ5.js → onramp-ByYQACWP.js} +1 -1
- package/assets/{openzeppelin-BA530WdL.js → openzeppelin-CpA67GNN.js} +1 -1
- package/assets/{ownerOf-BgxWVsR8.js → ownerOf-Ghcr3T8M.js} +1 -1
- package/assets/{parseNft-BBv6IPeK.js → parseNft-DiUnnxWp.js} +2 -2
- package/assets/{pay-with-exchange-DRJxwHL6.js → pay-with-exchange-CXVGqCOr.js} +1 -1
- package/assets/{qr-overlay-DqaFWxA5.js → qr-overlay-Bq39jIHA.js} +3 -3
- package/assets/{receive-Csk27-V9.js → receive-Z-iGDnHj.js} +1 -1
- package/assets/{ref-6OVkP-SI.js → ref-XAZvoeZ4.js} +1 -1
- package/assets/{resolveImplementation-DZsN4UUV.js → resolveImplementation-SCKoEUaz.js} +1 -1
- package/assets/{secp256k1-BzPWqMsb.js → secp256k1-uKd38sUt.js} +1 -1
- package/assets/{send-CVrfJhGP.js → send-BnJtvHeB.js} +1 -1
- package/assets/{send-eip712-transaction-BvC3qdSs.js → send-eip712-transaction-CWlwwhLr.js} +1 -1
- package/assets/{send-gasless-transaction-1m4MGdYX.js → send-gasless-transaction-BUU5Ap9z.js} +2 -2
- package/assets/{session-proposal-CYEZyNMm.js → session-proposal-CmMD1Ehr.js} +1 -1
- package/assets/{session-request-OBx_Bv8y.js → session-request-CNTjfhCz.js} +2 -2
- package/assets/{socials-DdLkp0Bo.js → socials-BGguC5gB.js} +1 -1
- package/assets/{swaps-Ccpd2Zuu.js → swaps-1u3bOwB9.js} +1 -1
- package/assets/{thirdweb-C1sPVgqC.js → thirdweb-BdvHtoLc.js} +5 -5
- package/assets/{totalSupply-BDKZsnKS.js → totalSupply-CwwV1zTS.js} +1 -1
- package/assets/{transactions-BKSml8gE.js → transactions-BeyPdN5F.js} +1 -1
- package/assets/{ui-pqaIrop_.js → ui-E17g3ezc.js} +5 -5
- package/assets/{vendor-DmfjABXs.js → vendor-C4WpNl28.js} +1 -1
- package/assets/{w3m-modal-lm05EHeW.js → w3m-modal-pyT6CIXc.js} +1 -1
- package/assets/{wallets-ySZCEYZt.js → wallets-CdvjfVnX.js} +4 -4
- package/assets/{web-connector-aA_0-wj3.js → web-connector-DM_ACnLc.js} +3 -3
- package/index.html +5 -5
- package/package.json +3 -3
- package/assets/LoginPage-D_gBsoIG.js +0 -1
- package/assets/browser-ponyfill-B7xsflQQ.js +0 -1
- package/assets/index-Iyzm58qs.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as se}from"./ui-pqaIrop_.js";import{K as Wr,$ as qr,B as Kr,m as Vr,q as Xr,J as Ye}from"./index-Db0dbl2b.js";import{g as dt,R as vt,T as ht,k as yt,E as pt,a as mt,V as bt,s as gt,I as _t,b as wt,c as It,N as Et,f as St,d as Ot,v as jt,_ as Nt,e as At,h as Bt,O as kt,y as xt,A as Dt,i as Rt,W as Ct,p as Lt,U as Mt,L as Tt,u as zt,x as Ft}from"./index-Db0dbl2b.js";import"./vendor-DmfjABXs.js";import"./thirdweb-C1sPVgqC.js";var Yr=Object.create,Qe=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Qr=Object.getOwnPropertyNames,Zr=Object.getPrototypeOf,Hr=Object.prototype.hasOwnProperty,pe=(_=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(_,{get:(O,m)=>(typeof require<"u"?require:O)[m]}):_)(function(_){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+_+'" is not supported')}),Ze=(_,O)=>()=>(O||_((O={exports:{}}).exports,O),O.exports),Gr=(_,O,m,x)=>{if(O&&typeof O=="object"||typeof O=="function")for(let q of Qr(O))!Hr.call(_,q)&&q!==m&&Qe(_,q,{get:()=>O[q],enumerable:!(x=Jr(O,q))||x.enumerable});return _},He=(_,O,m)=>(m=_!=null?Yr(Zr(_)):{},Gr(!_||!_.__esModule?Qe(m,"default",{value:_,enumerable:!0}):m,_)),me=(_,O,m)=>new Promise((x,q)=>{var C=D=>{try{j(m.next(D))}catch(L){q(L)}},P=D=>{try{j(m.throw(D))}catch(L){q(L)}},j=D=>D.done?x(D.value):Promise.resolve(D.value).then(C,P);j((m=m.apply(_,O)).next())}),$r=Ze((_,O)=>{(function(m){if(typeof _=="object"&&typeof O<"u")O.exports=m();else if(typeof define=="function"&&define.amd)define([],m);else{var x;typeof window<"u"?x=window:typeof se<"u"?x=se:typeof self<"u"?x=self:x=this,x.localforage=m()}})(function(){return function m(x,q,C){function P(L,Y){if(!q[L]){if(!x[L]){var y=typeof pe=="function"&&pe;if(!Y&&y)return y(L,!0);if(j)return j(L,!0);var w=new Error("Cannot find module '"+L+"'");throw w.code="MODULE_NOT_FOUND",w}var z=q[L]={exports:{}};x[L][0].call(z.exports,function(F){var Z=x[L][1][F];return P(Z||F)},z,z.exports,m,x,q,C)}return q[L].exports}for(var j=typeof pe=="function"&&pe,D=0;D<C.length;D++)P(C[D]);return P}({1:[function(m,x,q){(function(C){var P=C.MutationObserver||C.WebKitMutationObserver,j;if(P){var D=0,L=new P(F),Y=C.document.createTextNode("");L.observe(Y,{characterData:!0}),j=function(){Y.data=D=++D%2}}else if(!C.setImmediate&&typeof C.MessageChannel<"u"){var y=new C.MessageChannel;y.port1.onmessage=F,j=function(){y.port2.postMessage(0)}}else"document"in C&&"onreadystatechange"in C.document.createElement("script")?j=function(){var A=C.document.createElement("script");A.onreadystatechange=function(){F(),A.onreadystatechange=null,A.parentNode.removeChild(A),A=null},C.document.documentElement.appendChild(A)}:j=function(){setTimeout(F,0)};var w,z=[];function F(){w=!0;for(var A,G,U=z.length;U;){for(G=z,z=[],A=-1;++A<U;)G[A]();U=z.length}w=!1}x.exports=Z;function Z(A){z.push(A)===1&&!w&&j()}}).call(this,typeof se<"u"?se:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(m,x,q){var C=m(1);function P(){}var j={},D=["REJECTED"],L=["FULFILLED"],Y=["PENDING"];x.exports=y;function y(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=Y,this.queue=[],this.outcome=void 0,v!==P&&Z(this,v)}y.prototype.catch=function(v){return this.then(null,v)},y.prototype.then=function(v,N){if(typeof v!="function"&&this.state===L||typeof N!="function"&&this.state===D)return this;var E=new this.constructor(P);if(this.state!==Y){var B=this.state===L?v:N;z(E,B,this.outcome)}else this.queue.push(new w(E,v,N));return E};function w(v,N,E){this.promise=v,typeof N=="function"&&(this.onFulfilled=N,this.callFulfilled=this.otherCallFulfilled),typeof E=="function"&&(this.onRejected=E,this.callRejected=this.otherCallRejected)}w.prototype.callFulfilled=function(v){j.resolve(this.promise,v)},w.prototype.otherCallFulfilled=function(v){z(this.promise,this.onFulfilled,v)},w.prototype.callRejected=function(v){j.reject(this.promise,v)},w.prototype.otherCallRejected=function(v){z(this.promise,this.onRejected,v)};function z(v,N,E){C(function(){var B;try{B=N(E)}catch(K){return j.reject(v,K)}B===v?j.reject(v,new TypeError("Cannot resolve promise with itself")):j.resolve(v,B)})}j.resolve=function(v,N){var E=A(F,N);if(E.status==="error")return j.reject(v,E.value);var B=E.value;if(B)Z(v,B);else{v.state=L,v.outcome=N;for(var K=-1,X=v.queue.length;++K<X;)v.queue[K].callFulfilled(N)}return v},j.reject=function(v,N){v.state=D,v.outcome=N;for(var E=-1,B=v.queue.length;++E<B;)v.queue[E].callRejected(N);return v};function F(v){var N=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof N=="function")return function(){N.apply(v,arguments)}}function Z(v,N){var E=!1;function B(Q){E||(E=!0,j.reject(v,Q))}function K(Q){E||(E=!0,j.resolve(v,Q))}function X(){N(K,B)}var J=A(X);J.status==="error"&&B(J.value)}function A(v,N){var E={};try{E.value=v(N),E.status="success"}catch(B){E.status="error",E.value=B}return E}y.resolve=G;function G(v){return v instanceof this?v:j.resolve(new this(P),v)}y.reject=U;function U(v){var N=new this(P);return j.reject(N,v)}y.all=oe;function oe(v){var N=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=v.length,B=!1;if(!E)return this.resolve([]);for(var K=new Array(E),X=0,J=-1,Q=new this(P);++J<E;)$(v[J],J);return Q;function $(ie,ue){N.resolve(ie).then(le,function(re){B||(B=!0,j.reject(Q,re))});function le(re){K[ue]=re,++X===E&&!B&&(B=!0,j.resolve(Q,K))}}}y.race=ee;function ee(v){var N=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=v.length,B=!1;if(!E)return this.resolve([]);for(var K=-1,X=new this(P);++K<E;)J(v[K]);return X;function J(Q){N.resolve(Q).then(function($){B||(B=!0,j.resolve(X,$))},function($){B||(B=!0,j.reject(X,$))})}}},{1:1}],3:[function(m,x,q){(function(C){typeof C.Promise!="function"&&(C.Promise=m(2))}).call(this,typeof se<"u"?se:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(m,x,q){var C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function P(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function j(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var D=j();function L(){try{if(!D||!D.open)return!1;var e=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),r=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!e||r)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function Y(e,r){e=e||[],r=r||{};try{return new Blob(e,r)}catch(i){if(i.name!=="TypeError")throw i;for(var t=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,o=new t,n=0;n<e.length;n+=1)o.append(e[n]);return o.getBlob(r.type)}}typeof Promise>"u"&&m(3);var y=Promise;function w(e,r){r&&e.then(function(t){r(null,t)},function(t){r(t)})}function z(e,r,t){typeof r=="function"&&e.then(r),typeof t=="function"&&e.catch(t)}function F(e){return typeof e!="string"&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function Z(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var A="local-forage-detect-blob-support",G=void 0,U={},oe=Object.prototype.toString,ee="readonly",v="readwrite";function N(e){for(var r=e.length,t=new ArrayBuffer(r),o=new Uint8Array(t),n=0;n<r;n++)o[n]=e.charCodeAt(n);return t}function E(e){return new y(function(r){var t=e.transaction(A,v),o=Y([""]);t.objectStore(A).put(o,"key"),t.onabort=function(n){n.preventDefault(),n.stopPropagation(),r(!1)},t.oncomplete=function(){var n=navigator.userAgent.match(/Chrome\/(\d+)/),i=navigator.userAgent.match(/Edge\//);r(i||!n||parseInt(n[1],10)>=43)}}).catch(function(){return!1})}function B(e){return typeof G=="boolean"?y.resolve(G):E(e).then(function(r){return G=r,G})}function K(e){var r=U[e.name],t={};t.promise=new y(function(o,n){t.resolve=o,t.reject=n}),r.deferredOperations.push(t),r.dbReady?r.dbReady=r.dbReady.then(function(){return t.promise}):r.dbReady=t.promise}function X(e){var r=U[e.name],t=r.deferredOperations.pop();if(t)return t.resolve(),t.promise}function J(e,r){var t=U[e.name],o=t.deferredOperations.pop();if(o)return o.reject(r),o.promise}function Q(e,r){return new y(function(t,o){if(U[e.name]=U[e.name]||g(),e.db)if(r)K(e),e.db.close();else return t(e.db);var n=[e.name];r&&n.push(e.version);var i=D.open.apply(D,n);r&&(i.onupgradeneeded=function(u){var c=i.result;try{c.createObjectStore(e.storeName),u.oldVersion<=1&&c.createObjectStore(A)}catch(d){if(d.name==="ConstraintError")console.warn('The database "'+e.name+'" has been upgraded from version '+u.oldVersion+" to version "+u.newVersion+', but the storage "'+e.storeName+'" already exists.');else throw d}}),i.onerror=function(u){u.preventDefault(),o(i.error)},i.onsuccess=function(){var u=i.result;u.onversionchange=function(c){c.target.close()},t(u),X(e)}})}function $(e){return Q(e,!1)}function ie(e){return Q(e,!0)}function ue(e,r){if(!e.db)return!0;var t=!e.db.objectStoreNames.contains(e.storeName),o=e.version<e.db.version,n=e.version>e.db.version;if(o&&(e.version!==r&&console.warn('The database "'+e.name+`" can't be downgraded from version `+e.db.version+" to version "+e.version+"."),e.version=e.db.version),n||t){if(t){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function le(e){return new y(function(r,t){var o=new FileReader;o.onerror=t,o.onloadend=function(n){var i=btoa(n.target.result||"");r({__local_forage_encoded_blob:!0,data:i,type:e.type})},o.readAsBinaryString(e)})}function re(e){var r=N(atob(e.data));return Y([r],{type:e.type})}function a(e){return e&&e.__local_forage_encoded_blob}function f(e){var r=this,t=r._initReady().then(function(){var o=U[r._dbInfo.name];if(o&&o.dbReady)return o.dbReady});return z(t,e,e),t}function h(e){K(e);for(var r=U[e.name],t=r.forages,o=0;o<t.length;o++){var n=t[o];n._dbInfo.db&&(n._dbInfo.db.close(),n._dbInfo.db=null)}return e.db=null,$(e).then(function(i){return e.db=i,ue(e)?ie(e):i}).then(function(i){e.db=r.db=i;for(var u=0;u<t.length;u++)t[u]._dbInfo.db=i}).catch(function(i){throw J(e,i),i})}function p(e,r,t,o){o===void 0&&(o=1);try{var n=e.db.transaction(e.storeName,r);t(null,n)}catch(i){if(o>0&&(!e.db||i.name==="InvalidStateError"||i.name==="NotFoundError"))return y.resolve().then(function(){if(!e.db||i.name==="NotFoundError"&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),ie(e)}).then(function(){return h(e).then(function(){p(e,r,t,o-1)})}).catch(t);t(i)}}function g(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function I(e){var r=this,t={db:null};if(e)for(var o in e)t[o]=e[o];var n=U[t.name];n||(n=g(),U[t.name]=n),n.forages.push(r),r._initReady||(r._initReady=r.ready,r.ready=f);var i=[];function u(){return y.resolve()}for(var c=0;c<n.forages.length;c++){var d=n.forages[c];d!==r&&i.push(d._initReady().catch(u))}var l=n.forages.slice(0);return y.all(i).then(function(){return t.db=n.db,$(t)}).then(function(s){return t.db=s,ue(t,r._defaultConfig.version)?ie(t):s}).then(function(s){t.db=n.db=s,r._dbInfo=t;for(var b=0;b<l.length;b++){var S=l[b];S!==r&&(S._dbInfo.db=t.db,S._dbInfo.version=t.version)}})}function M(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.get(e);l.onsuccess=function(){var s=l.result;s===void 0&&(s=null),a(s)&&(s=re(s)),n(s)},l.onerror=function(){i(l.error)}}catch(s){i(s)}})}).catch(i)});return w(o,r),o}function V(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.openCursor(),s=1;l.onsuccess=function(){var b=l.result;if(b){var S=b.value;a(S)&&(S=re(S));var R=e(S,b.key,s++);R!==void 0?n(R):b.continue()}else n()},l.onerror=function(){i(l.error)}}catch(b){i(b)}})}).catch(i)});return w(o,r),o}function ce(e,r,t){var o=this;e=F(e);var n=new y(function(i,u){var c;o.ready().then(function(){return c=o._dbInfo,oe.call(r)==="[object Blob]"?B(c.db).then(function(d){return d?r:le(r)}):r}).then(function(d){p(o._dbInfo,v,function(l,s){if(l)return u(l);try{var b=s.objectStore(o._dbInfo.storeName);d===null&&(d=void 0);var S=b.put(d,e);s.oncomplete=function(){d===void 0&&(d=null),i(d)},s.onabort=s.onerror=function(){var R=S.error?S.error:S.transaction.error;u(R)}}catch(R){u(R)}})}).catch(u)});return w(n,t),n}function ae(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,v,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.delete(e);c.oncomplete=function(){n()},c.onerror=function(){i(l.error)},c.onabort=function(){var s=l.error?l.error:l.transaction.error;i(s)}}catch(s){i(s)}})}).catch(i)});return w(o,r),o}function de(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,v,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.clear();u.oncomplete=function(){o()},u.onabort=u.onerror=function(){var l=d.error?d.error:d.transaction.error;n(l)}}catch(l){n(l)}})}).catch(n)});return w(t,e),t}function Ge(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,ee,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.count();d.onsuccess=function(){o(d.result)},d.onerror=function(){n(d.error)}}catch(l){n(l)}})}).catch(n)});return w(t,e),t}function $e(e,r){var t=this,o=new y(function(n,i){if(e<0){n(null);return}t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=!1,s=d.openKeyCursor();s.onsuccess=function(){var b=s.result;if(!b){n(null);return}e===0||l?n(b.key):(l=!0,b.advance(e))},s.onerror=function(){i(s.error)}}catch(b){i(b)}})}).catch(i)});return w(o,r),o}function er(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,ee,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.openKeyCursor(),l=[];d.onsuccess=function(){var s=d.result;if(!s){o(l);return}l.push(s.key),s.continue()},d.onerror=function(){n(d.error)}}catch(s){n(s)}})}).catch(n)});return w(t,e),t}function rr(e,r){r=Z.apply(this,arguments);var t=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var o=this,n;if(!e.name)n=y.reject("Invalid arguments");else{var i=e.name===t.name&&o._dbInfo.db,u=i?y.resolve(o._dbInfo.db):$(e).then(function(c){var d=U[e.name],l=d.forages;d.db=c;for(var s=0;s<l.length;s++)l[s]._dbInfo.db=c;return c});e.storeName?n=u.then(function(c){if(c.objectStoreNames.contains(e.storeName)){var d=c.version+1;K(e);var l=U[e.name],s=l.forages;c.close();for(var b=0;b<s.length;b++){var S=s[b];S._dbInfo.db=null,S._dbInfo.version=d}var R=new y(function(k,W){var T=D.open(e.name,d);T.onerror=function(H){var Oe=T.result;Oe.close(),W(H)},T.onupgradeneeded=function(){var H=T.result;H.deleteObjectStore(e.storeName)},T.onsuccess=function(){var H=T.result;H.close(),k(H)}});return R.then(function(k){l.db=k;for(var W=0;W<s.length;W++){var T=s[W];T._dbInfo.db=k,X(T._dbInfo)}}).catch(function(k){throw(J(e,k)||y.resolve()).catch(function(){}),k})}}):n=u.then(function(c){K(e);var d=U[e.name],l=d.forages;c.close();for(var s=0;s<l.length;s++){var b=l[s];b._dbInfo.db=null}var S=new y(function(R,k){var W=D.deleteDatabase(e.name);W.onerror=function(){var T=W.result;T&&T.close(),k(W.error)},W.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},W.onsuccess=function(){var T=W.result;T&&T.close(),R(T)}});return S.then(function(R){d.db=R;for(var k=0;k<l.length;k++){var W=l[k];X(W._dbInfo)}}).catch(function(R){throw(J(e,R)||y.resolve()).catch(function(){}),R})})}return w(n,r),n}var tr={_driver:"asyncStorage",_initStorage:I,_support:L(),iterate:V,getItem:M,setItem:ce,removeItem:ae,clear:de,length:Ge,key:$e,keys:er,dropInstance:rr};function nr(){return typeof openDatabase=="function"}var te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",or="~~local_forage_type~",Ae=/^~~local_forage_type~([^~]+)~/,he="__lfsc__:",be=he.length,ge="arbf",_e="blob",Be="si08",ke="ui08",xe="uic8",De="si16",Re="si32",Ce="ur16",Le="ui32",Me="fl32",Te="fl64",ze=be+ge.length,Fe=Object.prototype.toString;function Pe(e){var r=e.length*.75,t=e.length,o,n=0,i,u,c,d;e[e.length-1]==="="&&(r--,e[e.length-2]==="="&&r--);var l=new ArrayBuffer(r),s=new Uint8Array(l);for(o=0;o<t;o+=4)i=te.indexOf(e[o]),u=te.indexOf(e[o+1]),c=te.indexOf(e[o+2]),d=te.indexOf(e[o+3]),s[n++]=i<<2|u>>4,s[n++]=(u&15)<<4|c>>2,s[n++]=(c&3)<<6|d&63;return l}function we(e){var r=new Uint8Array(e),t="",o;for(o=0;o<r.length;o+=3)t+=te[r[o]>>2],t+=te[(r[o]&3)<<4|r[o+1]>>4],t+=te[(r[o+1]&15)<<2|r[o+2]>>6],t+=te[r[o+2]&63];return r.length%3===2?t=t.substring(0,t.length-1)+"=":r.length%3===1&&(t=t.substring(0,t.length-2)+"=="),t}function ir(e,r){var t="";if(e&&(t=Fe.call(e)),e&&(t==="[object ArrayBuffer]"||e.buffer&&Fe.call(e.buffer)==="[object ArrayBuffer]")){var o,n=he;e instanceof ArrayBuffer?(o=e,n+=ge):(o=e.buffer,t==="[object Int8Array]"?n+=Be:t==="[object Uint8Array]"?n+=ke:t==="[object Uint8ClampedArray]"?n+=xe:t==="[object Int16Array]"?n+=De:t==="[object Uint16Array]"?n+=Ce:t==="[object Int32Array]"?n+=Re:t==="[object Uint32Array]"?n+=Le:t==="[object Float32Array]"?n+=Me:t==="[object Float64Array]"?n+=Te:r(new Error("Failed to get type for BinaryArray"))),r(n+we(o))}else if(t==="[object Blob]"){var i=new FileReader;i.onload=function(){var u=or+e.type+"~"+we(this.result);r(he+_e+u)},i.readAsArrayBuffer(e)}else try{r(JSON.stringify(e))}catch(u){console.error("Couldn't convert value into a JSON string: ",e),r(null,u)}}function ar(e){if(e.substring(0,be)!==he)return JSON.parse(e);var r=e.substring(ze),t=e.substring(be,ze),o;if(t===_e&&Ae.test(r)){var n=r.match(Ae);o=n[1],r=r.substring(n[0].length)}var i=Pe(r);switch(t){case ge:return i;case _e:return Y([i],{type:o});case Be:return new Int8Array(i);case ke:return new Uint8Array(i);case xe:return new Uint8ClampedArray(i);case De:return new Int16Array(i);case Ce:return new Uint16Array(i);case Re:return new Int32Array(i);case Le:return new Uint32Array(i);case Me:return new Float32Array(i);case Te:return new Float64Array(i);default:throw new Error("Unkown type: "+t)}}var Ie={serialize:ir,deserialize:ar,stringToBuffer:Pe,bufferToString:we};function Ue(e,r,t,o){e.executeSql("CREATE TABLE IF NOT EXISTS "+r.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],t,o)}function ur(e){var r=this,t={db:null};if(e)for(var o in e)t[o]=typeof e[o]!="string"?e[o].toString():e[o];var n=new y(function(i,u){try{t.db=openDatabase(t.name,String(t.version),t.description,t.size)}catch(c){return u(c)}t.db.transaction(function(c){Ue(c,t,function(){r._dbInfo=t,i()},function(d,l){u(l)})},u)});return t.serializer=Ie,n}function ne(e,r,t,o,n,i){e.executeSql(t,o,n,function(u,c){c.code===c.SYNTAX_ERR?u.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[r.storeName],function(d,l){l.rows.length?i(d,c):Ue(d,r,function(){d.executeSql(t,o,n,i)},i)},i):i(u,c)},i)}function cr(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT * FROM "+u.storeName+" WHERE key = ? LIMIT 1",[e],function(d,l){var s=l.rows.length?l.rows.item(0).value:null;s&&(s=u.serializer.deserialize(s)),n(s)},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function fr(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT * FROM "+u.storeName,[],function(d,l){for(var s=l.rows,b=s.length,S=0;S<b;S++){var R=s.item(S),k=R.value;if(k&&(k=u.serializer.deserialize(k)),k=e(k,R.key,S+1),k!==void 0){n(k);return}}n()},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function We(e,r,t,o){var n=this;e=F(e);var i=new y(function(u,c){n.ready().then(function(){r===void 0&&(r=null);var d=r,l=n._dbInfo;l.serializer.serialize(r,function(s,b){b?c(b):l.db.transaction(function(S){ne(S,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,s],function(){u(d)},function(R,k){c(k)})},function(S){if(S.code===S.QUOTA_ERR){if(o>0){u(We.apply(n,[e,d,t,o-1]));return}c(S)}})})}).catch(c)});return w(i,t),i}function sr(e,r,t){return We.apply(this,[e,r,t,1])}function lr(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"DELETE FROM "+u.storeName+" WHERE key = ?",[e],function(){n()},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function dr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"DELETE FROM "+i.storeName,[],function(){o()},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function vr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"SELECT COUNT(key) as c FROM "+i.storeName,[],function(c,d){var l=d.rows.item(0).c;o(l)},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function hr(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT key FROM "+u.storeName+" WHERE id = ? LIMIT 1",[e+1],function(d,l){var s=l.rows.length?l.rows.item(0).key:null;n(s)},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function yr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"SELECT key FROM "+i.storeName,[],function(c,d){for(var l=[],s=0;s<d.rows.length;s++)l.push(d.rows.item(s).key);o(l)},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function pr(e){return new y(function(r,t){e.transaction(function(o){o.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(n,i){for(var u=[],c=0;c<i.rows.length;c++)u.push(i.rows.item(c).name);r({db:e,storeNames:u})},function(n,i){t(i)})},function(o){t(o)})})}function mr(e,r){r=Z.apply(this,arguments);var t=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var o=this,n;return e.name?n=new y(function(i){var u;e.name===t.name?u=o._dbInfo.db:u=openDatabase(e.name,"","",0),e.storeName?i({db:u,storeNames:[e.storeName]}):i(pr(u))}).then(function(i){return new y(function(u,c){i.db.transaction(function(d){function l(R){return new y(function(k,W){d.executeSql("DROP TABLE IF EXISTS "+R,[],function(){k()},function(T,H){W(H)})})}for(var s=[],b=0,S=i.storeNames.length;b<S;b++)s.push(l(i.storeNames[b]));y.all(s).then(function(){u()}).catch(function(R){c(R)})},function(d){c(d)})})}):n=y.reject("Invalid arguments"),w(n,r),n}var br={_driver:"webSQLStorage",_initStorage:ur,_support:nr(),iterate:fr,getItem:cr,setItem:sr,removeItem:lr,clear:dr,length:vr,key:hr,keys:yr,dropInstance:mr};function gr(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function qe(e,r){var t=e.name+"/";return e.storeName!==r.storeName&&(t+=e.storeName+"/"),t}function _r(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch{return!0}}function wr(){return!_r()||localStorage.length>0}function Ir(e){var r=this,t={};if(e)for(var o in e)t[o]=e[o];return t.keyPrefix=qe(e,r._defaultConfig),wr()?(r._dbInfo=t,t.serializer=Ie,y.resolve()):y.reject()}function Er(e){var r=this,t=r.ready().then(function(){for(var o=r._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var i=localStorage.key(n);i.indexOf(o)===0&&localStorage.removeItem(i)}});return w(t,e),t}function Sr(e,r){var t=this;e=F(e);var o=t.ready().then(function(){var n=t._dbInfo,i=localStorage.getItem(n.keyPrefix+e);return i&&(i=n.serializer.deserialize(i)),i});return w(o,r),o}function Or(e,r){var t=this,o=t.ready().then(function(){for(var n=t._dbInfo,i=n.keyPrefix,u=i.length,c=localStorage.length,d=1,l=0;l<c;l++){var s=localStorage.key(l);if(s.indexOf(i)===0){var b=localStorage.getItem(s);if(b&&(b=n.serializer.deserialize(b)),b=e(b,s.substring(u),d++),b!==void 0)return b}}});return w(o,r),o}function jr(e,r){var t=this,o=t.ready().then(function(){var n=t._dbInfo,i;try{i=localStorage.key(e)}catch{i=null}return i&&(i=i.substring(n.keyPrefix.length)),i});return w(o,r),o}function Nr(e){var r=this,t=r.ready().then(function(){for(var o=r._dbInfo,n=localStorage.length,i=[],u=0;u<n;u++){var c=localStorage.key(u);c.indexOf(o.keyPrefix)===0&&i.push(c.substring(o.keyPrefix.length))}return i});return w(t,e),t}function Ar(e){var r=this,t=r.keys().then(function(o){return o.length});return w(t,e),t}function Br(e,r){var t=this;e=F(e);var o=t.ready().then(function(){var n=t._dbInfo;localStorage.removeItem(n.keyPrefix+e)});return w(o,r),o}function kr(e,r,t){var o=this;e=F(e);var n=o.ready().then(function(){r===void 0&&(r=null);var i=r;return new y(function(u,c){var d=o._dbInfo;d.serializer.serialize(r,function(l,s){if(s)c(s);else try{localStorage.setItem(d.keyPrefix+e,l),u(i)}catch(b){(b.name==="QuotaExceededError"||b.name==="NS_ERROR_DOM_QUOTA_REACHED")&&c(b),c(b)}})})});return w(n,t),n}function xr(e,r){if(r=Z.apply(this,arguments),e=typeof e!="function"&&e||{},!e.name){var t=this.config();e.name=e.name||t.name,e.storeName=e.storeName||t.storeName}var o=this,n;return e.name?n=new y(function(i){e.storeName?i(qe(e,o._defaultConfig)):i(e.name+"/")}).then(function(i){for(var u=localStorage.length-1;u>=0;u--){var c=localStorage.key(u);c.indexOf(i)===0&&localStorage.removeItem(c)}}):n=y.reject("Invalid arguments"),w(n,r),n}var Dr={_driver:"localStorageWrapper",_initStorage:Ir,_support:gr(),iterate:Or,getItem:Sr,setItem:kr,removeItem:Br,clear:Er,length:Ar,key:jr,keys:Nr,dropInstance:xr},Rr=function(e,r){return e===r||typeof e=="number"&&typeof r=="number"&&isNaN(e)&&isNaN(r)},Cr=function(e,r){for(var t=e.length,o=0;o<t;){if(Rr(e[o],r))return!0;o++}return!1},Ke=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},ve={},Ve={},fe={INDEXEDDB:tr,WEBSQL:br,LOCALSTORAGE:Dr},Lr=[fe.INDEXEDDB._driver,fe.WEBSQL._driver,fe.LOCALSTORAGE._driver],ye=["dropInstance"],Ee=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ye),Mr={description:"",driver:Lr.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Tr(e,r){e[r]=function(){var t=arguments;return e.ready().then(function(){return e[r].apply(e,t)})}}function Se(){for(var e=1;e<arguments.length;e++){var r=arguments[e];if(r)for(var t in r)r.hasOwnProperty(t)&&(Ke(r[t])?arguments[0][t]=r[t].slice():arguments[0][t]=r[t])}return arguments[0]}var zr=function(){function e(r){P(this,e);for(var t in fe)if(fe.hasOwnProperty(t)){var o=fe[t],n=o._driver;this[t]=n,ve[n]||this.defineDriver(o)}this._defaultConfig=Se({},Mr),this._config=Se({},this._defaultConfig,r),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(r){if((typeof r>"u"?"undefined":C(r))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in r){if(t==="storeName"&&(r[t]=r[t].replace(/\W/g,"_")),t==="version"&&typeof r[t]!="number")return new Error("Database version must be a number.");this._config[t]=r[t]}return"driver"in r&&r.driver?this.setDriver(this._config.driver):!0}else return typeof r=="string"?this._config[r]:this._config},e.prototype.defineDriver=function(r,t,o){var n=new y(function(i,u){try{var c=r._driver,d=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!r._driver){u(d);return}for(var l=Ee.concat("_initStorage"),s=0,b=l.length;s<b;s++){var S=l[s],R=!Cr(ye,S);if((R||r[S])&&typeof r[S]!="function"){u(d);return}}var k=function(){for(var T=function(Pr){return function(){var Ur=new Error("Method "+Pr+" is not implemented by the current driver"),Xe=y.reject(Ur);return w(Xe,arguments[arguments.length-1]),Xe}},H=0,Oe=ye.length;H<Oe;H++){var je=ye[H];r[je]||(r[je]=T(je))}};k();var W=function(T){ve[c]&&console.info("Redefining LocalForage driver: "+c),ve[c]=r,Ve[c]=T,i()};"_support"in r?r._support&&typeof r._support=="function"?r._support().then(W,u):W(!!r._support):W(!0)}catch(T){u(T)}});return z(n,t,o),n},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(r,t,o){var n=ve[r]?y.resolve(ve[r]):y.reject(new Error("Driver not found."));return z(n,t,o),n},e.prototype.getSerializer=function(r){var t=y.resolve(Ie);return z(t,r),t},e.prototype.ready=function(r){var t=this,o=t._driverSet.then(function(){return t._ready===null&&(t._ready=t._initDriver()),t._ready});return z(o,r,r),o},e.prototype.setDriver=function(r,t,o){var n=this;Ke(r)||(r=[r]);var i=this._getSupportedDrivers(r);function u(){n._config.driver=n.driver()}function c(s){return n._extend(s),u(),n._ready=n._initStorage(n._config),n._ready}function d(s){return function(){var b=0;function S(){for(;b<s.length;){var R=s[b];return b++,n._dbInfo=null,n._ready=null,n.getDriver(R).then(c).catch(S)}u();var k=new Error("No available storage method found.");return n._driverSet=y.reject(k),n._driverSet}return S()}}var l=this._driverSet!==null?this._driverSet.catch(function(){return y.resolve()}):y.resolve();return this._driverSet=l.then(function(){var s=i[0];return n._dbInfo=null,n._ready=null,n.getDriver(s).then(function(b){n._driver=b._driver,u(),n._wrapLibraryMethodsWithReady(),n._initDriver=d(i)})}).catch(function(){u();var s=new Error("No available storage method found.");return n._driverSet=y.reject(s),n._driverSet}),z(this._driverSet,t,o),this._driverSet},e.prototype.supports=function(r){return!!Ve[r]},e.prototype._extend=function(r){Se(this,r)},e.prototype._getSupportedDrivers=function(r){for(var t=[],o=0,n=r.length;o<n;o++){var i=r[o];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var r=0,t=Ee.length;r<t;r++)Tr(this,Ee[r])},e.prototype.createInstance=function(r){return new e(r)},e}(),Fr=new zr;x.exports=Fr},{3:3}]},{},[4])(4)})}),et=Ze((_,O)=>{(function(m,x){typeof _=="object"&&typeof O<"u"?x(_):typeof define=="function"&&define.amd?define("localforage-driver-memory",["exports"],x):x(m.LocalforageDriverMemory={})})(typeof self<"u"?self:_,function(m){var x="localforage-driver-memory";function q(a){var f=typeof Symbol=="function"&&a[Symbol.iterator],h=0;return f?f.call(a):{next:function(){return a&&h>=a.length&&(a=void 0),{value:a&&a[h++],done:!a}}}}function C(a,f){a=a||[],f=f||{};try{return new Blob(a,f)}catch(I){if(I.name!=="TypeError")throw I;for(var h=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,p=new h,g=0;g<a.length;g+=1)p.append(a[g]);return p.getBlob(f.type)}}var P=/^~~local_forage_type~([^~]+)~/,j=9,D=j+4,L=Object.prototype.toString;function Y(a){var f=a.length*.75,h=a.length;a[a.length-1]==="="&&(f--,a[a.length-2]==="="&&f--);for(var p=new ArrayBuffer(f),g=new Uint8Array(p),I=0,M=0;I<h;I+=4){var V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I]),ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+1]),ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+2]),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+3]);g[M++]=V<<2|ce>>4,g[M++]=(ce&15)<<4|ae>>2,g[M++]=(ae&3)<<6|de&63}return p}function y(a){for(var f=new Uint8Array(a),h="",p=0;p<f.length;p+=3)h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f[p]>>2],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(f[p]&3)<<4|f[p+1]>>4],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(f[p+1]&15)<<2|f[p+2]>>6],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f[p+2]&63];return f.length%3===2?h=h.substring(0,h.length-1)+"=":f.length%3===1&&(h=h.substring(0,h.length-2)+"=="),h}function w(a,f){var h="";if(a&&(h=L.call(a)),a&&(h==="[object ArrayBuffer]"||a.buffer&&L.call(a.buffer)==="[object ArrayBuffer]")){var p=void 0,g="__lfsc__:";a instanceof ArrayBuffer?(p=a,g+="arbf"):(p=a.buffer,h==="[object Int8Array]"?g+="si08":h==="[object Uint8Array]"?g+="ui08":h==="[object Uint8ClampedArray]"?g+="uic8":h==="[object Int16Array]"?g+="si16":h==="[object Uint16Array]"?g+="ur16":h==="[object Int32Array]"?g+="si32":h==="[object Uint32Array]"?g+="ui32":h==="[object Float32Array]"?g+="fl32":h==="[object Float64Array]"?g+="fl64":f(new Error("Failed to get type for BinaryArray"))),f(g+y(p))}else if(h==="[object Blob]"){var I=new FileReader;I.onload=function(){var M="~~local_forage_type~"+a.type+"~"+y(this.result);f("__lfsc__:blob"+M)},I.readAsArrayBuffer(a)}else try{f(JSON.stringify(a))}catch(M){console.error("Couldn't convert value into a JSON string: ",a),f(null,M)}}function z(a){if(a.substring(0,j)!=="__lfsc__:")return JSON.parse(a);var f=a.substring(D),h=a.substring(j,D),p;if(h==="blob"&&P.test(f)){var g=f.match(P);p=g[1],f=f.substring(g[0].length)}var I=Y(f);switch(h){case"arbf":return I;case"blob":return C([I],{type:p});case"si08":return new Int8Array(I);case"ui08":return new Uint8Array(I);case"uic8":return new Uint8ClampedArray(I);case"si16":return new Int16Array(I);case"ur16":return new Uint16Array(I);case"si32":return new Int32Array(I);case"ui32":return new Uint32Array(I);case"fl32":return new Float32Array(I);case"fl64":return new Float64Array(I);default:throw new Error("Unkown type: "+h)}}function F(a){var f,h;if(a===null||typeof a!="object"||"isActiveClone"in a)return a;var p=a instanceof Date?new Date(a):a.constructor();try{for(var g=q(Object.keys(a)),I=g.next();!I.done;I=g.next()){var M=I.value;Object.prototype.hasOwnProperty.call(a,M)&&(a.isActiveClone=null,p[M]=F(a[M]),delete a.isActiveClone)}}catch(V){f={error:V}}finally{try{I&&!I.done&&(h=g.return)&&h.call(g)}finally{if(f)throw f.error}}return p}function Z(a,f){return(a.name||f.name)+"/"+(a.storeName||f.storeName)+"/"}function A(a,f){f&&a.then(function(h){f(null,h)},function(h){f(h)})}function G(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}function U(a,f){var h=this;if(f=G.apply(this,arguments),a=typeof a!="function"&&a||{},!a.name){var p=this.config();a.name=a.name||p.name,a.storeName=a.storeName||p.storeName}var g;return a.name?g=new Promise(function(I){a.storeName?I(Z(a,h._defaultConfig)):I(a.name+"/")}):g=Promise.reject("Invalid arguments"),{promise:g,callback:f}}function oe(a){return typeof a!="string"&&(console.warn(a+" used as a key, but it is not a string."),a=String(a)),a}var ee={bufferToString:y,deserialize:z,serialize:w,stringToBuffer:Y},v={},N=function(){function a(f){this.kp=f,this.data={}}return a.resolve=function(f){return v[f]||(v[f]=new a(f)),v[f]},a.prototype.clear=function(){this.data={}},a.prototype.drop=function(){this.clear(),delete v[this.kp]},a.prototype.get=function(f){return this.data[f]},a.prototype.key=function(f){return this.keys()[f]},a.prototype.keys=function(){return Object.keys(this.data)},a.prototype.rm=function(f){delete this.data[f]},a.prototype.set=function(f,h){this.data[f]=h},a}();function E(a){var f=a?F(a):{},h=Z(f,this._defaultConfig),p=N.resolve(h);return this._dbInfo=f,this._dbInfo.serializer=ee,this._dbInfo.keyPrefix=h,this._dbInfo.mStore=p,Promise.resolve()}function B(a){var f=this,h=this.ready().then(function(){f._dbInfo.mStore.clear()});return A(h,a),h}function K(a,f){var h=U.apply(this,arguments),p=h.promise,g=h.callback,I=p.then(function(M){N.resolve(M).drop()});return A(I,g),p}function X(a,f){var h=this;a=oe(a);var p=this.ready().then(function(){var g=h._dbInfo.mStore.get(a);return g==null?null:h._dbInfo.serializer.deserialize(g)});return A(p,f),p}function J(a,f){var h=this,p=this.ready().then(function(){for(var g=h._dbInfo.mStore,I=g.keys(),M=0;M<I.length;M++){var V=g.get(I[M]);if(V&&(V=h._dbInfo.serializer.deserialize(V)),V=a(V,I[M],M+1),V!==void 0)return V}});return A(p,f),p}function Q(a,f){var h=this,p=this.ready().then(function(){var g;try{g=h._dbInfo.mStore.key(a),g===void 0&&(g=null)}catch{g=null}return g});return A(p,f),p}function $(a){var f=this,h=this.ready().then(function(){return f._dbInfo.mStore.keys()});return A(h,a),h}function ie(a){var f=this.keys().then(function(h){return h.length});return A(f,a),f}function ue(a,f){var h=this;a=oe(a);var p=this.ready().then(function(){h._dbInfo.mStore.rm(a)});return A(p,f),p}function le(a,f,h){var p=this;a=oe(a);var g=this.ready().then(function(){f===void 0&&(f=null);var I=f;return new Promise(function(M,V){p._dbInfo.serializer.serialize(f,function(ce,ae){if(ae)V(ae);else try{p._dbInfo.mStore.set(a,ce),M(I)}catch(de){V(de)}})})});return A(g,h),g}var re=!0;m._support=re,m._driver=x,m._initStorage=E,m.clear=B,m.dropInstance=K,m.getItem=X,m.iterate=J,m.key=Q,m.keys=$,m.length=ie,m.removeItem=ue,m.setItem=le,Object.defineProperty(m,"__esModule",{value:!0})})}),Ne=He($r()),Je=He(et()),rt={display:"none",position:"fixed",top:"0",right:"0",width:"100%",height:"100%",borderRadius:"0",border:"none",zIndex:"2147483647"};function tt(_){for(let[O,m]of Object.entries(rt))_.style[O]=m}function nt(_){return!![].slice.call(document.querySelectorAll(".magic-iframe")).find(m=>m.src.includes(_))}var ot=class extends Kr{constructor(){super(...arguments),this.activeElement=null}init(){this.test="hello",this.iframe=new Promise(_=>{let O=()=>{if(nt(encodeURIComponent(this.parameters)))Xr().log();else{let m=document.createElement("iframe");m.classList.add("magic-iframe"),m.dataset.magicIframeLabel=Ye(this.endpoint).host,m.title="Secure Modal",m.src=Ye(`/send?params=${encodeURIComponent(this.parameters)}`,this.endpoint).href,tt(m),document.body.appendChild(m),_(m)}};["loaded","interactive","complete"].includes(document.readyState)?O():window.addEventListener("load",O,!1)}),window.addEventListener("message",_=>{var O;if(_.origin===this.endpoint&&_.data&&_.data.msgType&&this.messageHandlers.size){_.data.response=(O=_.data.response)!=null?O:{};for(let m of this.messageHandlers.values())m(_)}})}showOverlay(){return me(this,null,function*(){let _=yield this.iframe;_.style.display="block",this.activeElement=document.activeElement,_.focus()})}hideOverlay(){return me(this,null,function*(){var _;let O=yield this.iframe;O.style.display="none",(_=this.activeElement)!=null&&_.focus&&this.activeElement.focus(),this.activeElement=null})}_post(_){return me(this,null,function*(){let O=yield this.iframe;if(O&&O.contentWindow)O.contentWindow.postMessage(_,this.endpoint);else throw Vr()})}},ft=Wr(qr,{platform:"web",sdkName:"magic-sdk",version:"27.0.0",defaultEndpoint:"https://auth.magic.link/",ViewController:ot,configureStorage:()=>me(void 0,null,function*(){let _=Ne.default.createInstance({name:"MagicAuthLocalStorageDB",storeName:"MagicAuthLocalStorage"});return yield _.defineDriver(Je),yield _.setDriver([Ne.default.INDEXEDDB,Ne.default.LOCALSTORAGE,Je._driver]),_})});export{dt as DeepLinkPage,vt as DeviceVerificationEventEmit,ht as DeviceVerificationEventOnReceived,yt as EthChainType,pt as Events,mt as Extension,bt as ExtensionError,gt as ExtensionWarning,_t as LoginWithEmailOTPEventEmit,wt as LoginWithEmailOTPEventOnReceived,It as LoginWithMagicLinkEventEmit,Et as LoginWithMagicLinkEventOnReceived,ft as Magic,St as MagicIncomingWindowMessage,Ot as MagicOutgoingWindowMessage,jt as MagicPayloadMethod,Nt as RPCError,At as RPCErrorCode,Bt as RecencyCheckEventEmit,kt as RecencyCheckEventOnReceived,xt as RecoveryMethodType,Dt as SDKError,Rt as SDKErrorCode,Ct as SDKWarning,Lt as SDKWarningCode,Mt as UpdateEmailEventEmit,Tt as UpdateEmailEventOnReceived,zt as Wallets,Ft as isPromiEvent};
|
|
1
|
+
import{g as se}from"./ui-E17g3ezc.js";import{K as Wr,$ as qr,B as Kr,m as Vr,q as Xr,J as Ye}from"./index-WJmU6YKM.js";import{g as dt,R as vt,T as ht,k as yt,E as pt,a as mt,V as bt,s as gt,I as _t,b as wt,c as It,N as Et,f as St,d as Ot,v as jt,_ as Nt,e as At,h as Bt,O as kt,y as xt,A as Dt,i as Rt,W as Ct,p as Lt,U as Mt,L as Tt,u as zt,x as Ft}from"./index-WJmU6YKM.js";import"./vendor-C4WpNl28.js";import"./thirdweb-BdvHtoLc.js";var Yr=Object.create,Qe=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Qr=Object.getOwnPropertyNames,Zr=Object.getPrototypeOf,Hr=Object.prototype.hasOwnProperty,pe=(_=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(_,{get:(O,m)=>(typeof require<"u"?require:O)[m]}):_)(function(_){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+_+'" is not supported')}),Ze=(_,O)=>()=>(O||_((O={exports:{}}).exports,O),O.exports),Gr=(_,O,m,x)=>{if(O&&typeof O=="object"||typeof O=="function")for(let q of Qr(O))!Hr.call(_,q)&&q!==m&&Qe(_,q,{get:()=>O[q],enumerable:!(x=Jr(O,q))||x.enumerable});return _},He=(_,O,m)=>(m=_!=null?Yr(Zr(_)):{},Gr(!_||!_.__esModule?Qe(m,"default",{value:_,enumerable:!0}):m,_)),me=(_,O,m)=>new Promise((x,q)=>{var C=D=>{try{j(m.next(D))}catch(L){q(L)}},P=D=>{try{j(m.throw(D))}catch(L){q(L)}},j=D=>D.done?x(D.value):Promise.resolve(D.value).then(C,P);j((m=m.apply(_,O)).next())}),$r=Ze((_,O)=>{(function(m){if(typeof _=="object"&&typeof O<"u")O.exports=m();else if(typeof define=="function"&&define.amd)define([],m);else{var x;typeof window<"u"?x=window:typeof se<"u"?x=se:typeof self<"u"?x=self:x=this,x.localforage=m()}})(function(){return function m(x,q,C){function P(L,Y){if(!q[L]){if(!x[L]){var y=typeof pe=="function"&&pe;if(!Y&&y)return y(L,!0);if(j)return j(L,!0);var w=new Error("Cannot find module '"+L+"'");throw w.code="MODULE_NOT_FOUND",w}var z=q[L]={exports:{}};x[L][0].call(z.exports,function(F){var Z=x[L][1][F];return P(Z||F)},z,z.exports,m,x,q,C)}return q[L].exports}for(var j=typeof pe=="function"&&pe,D=0;D<C.length;D++)P(C[D]);return P}({1:[function(m,x,q){(function(C){var P=C.MutationObserver||C.WebKitMutationObserver,j;if(P){var D=0,L=new P(F),Y=C.document.createTextNode("");L.observe(Y,{characterData:!0}),j=function(){Y.data=D=++D%2}}else if(!C.setImmediate&&typeof C.MessageChannel<"u"){var y=new C.MessageChannel;y.port1.onmessage=F,j=function(){y.port2.postMessage(0)}}else"document"in C&&"onreadystatechange"in C.document.createElement("script")?j=function(){var A=C.document.createElement("script");A.onreadystatechange=function(){F(),A.onreadystatechange=null,A.parentNode.removeChild(A),A=null},C.document.documentElement.appendChild(A)}:j=function(){setTimeout(F,0)};var w,z=[];function F(){w=!0;for(var A,G,U=z.length;U;){for(G=z,z=[],A=-1;++A<U;)G[A]();U=z.length}w=!1}x.exports=Z;function Z(A){z.push(A)===1&&!w&&j()}}).call(this,typeof se<"u"?se:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(m,x,q){var C=m(1);function P(){}var j={},D=["REJECTED"],L=["FULFILLED"],Y=["PENDING"];x.exports=y;function y(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=Y,this.queue=[],this.outcome=void 0,v!==P&&Z(this,v)}y.prototype.catch=function(v){return this.then(null,v)},y.prototype.then=function(v,N){if(typeof v!="function"&&this.state===L||typeof N!="function"&&this.state===D)return this;var E=new this.constructor(P);if(this.state!==Y){var B=this.state===L?v:N;z(E,B,this.outcome)}else this.queue.push(new w(E,v,N));return E};function w(v,N,E){this.promise=v,typeof N=="function"&&(this.onFulfilled=N,this.callFulfilled=this.otherCallFulfilled),typeof E=="function"&&(this.onRejected=E,this.callRejected=this.otherCallRejected)}w.prototype.callFulfilled=function(v){j.resolve(this.promise,v)},w.prototype.otherCallFulfilled=function(v){z(this.promise,this.onFulfilled,v)},w.prototype.callRejected=function(v){j.reject(this.promise,v)},w.prototype.otherCallRejected=function(v){z(this.promise,this.onRejected,v)};function z(v,N,E){C(function(){var B;try{B=N(E)}catch(K){return j.reject(v,K)}B===v?j.reject(v,new TypeError("Cannot resolve promise with itself")):j.resolve(v,B)})}j.resolve=function(v,N){var E=A(F,N);if(E.status==="error")return j.reject(v,E.value);var B=E.value;if(B)Z(v,B);else{v.state=L,v.outcome=N;for(var K=-1,X=v.queue.length;++K<X;)v.queue[K].callFulfilled(N)}return v},j.reject=function(v,N){v.state=D,v.outcome=N;for(var E=-1,B=v.queue.length;++E<B;)v.queue[E].callRejected(N);return v};function F(v){var N=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof N=="function")return function(){N.apply(v,arguments)}}function Z(v,N){var E=!1;function B(Q){E||(E=!0,j.reject(v,Q))}function K(Q){E||(E=!0,j.resolve(v,Q))}function X(){N(K,B)}var J=A(X);J.status==="error"&&B(J.value)}function A(v,N){var E={};try{E.value=v(N),E.status="success"}catch(B){E.status="error",E.value=B}return E}y.resolve=G;function G(v){return v instanceof this?v:j.resolve(new this(P),v)}y.reject=U;function U(v){var N=new this(P);return j.reject(N,v)}y.all=oe;function oe(v){var N=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=v.length,B=!1;if(!E)return this.resolve([]);for(var K=new Array(E),X=0,J=-1,Q=new this(P);++J<E;)$(v[J],J);return Q;function $(ie,ue){N.resolve(ie).then(le,function(re){B||(B=!0,j.reject(Q,re))});function le(re){K[ue]=re,++X===E&&!B&&(B=!0,j.resolve(Q,K))}}}y.race=ee;function ee(v){var N=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=v.length,B=!1;if(!E)return this.resolve([]);for(var K=-1,X=new this(P);++K<E;)J(v[K]);return X;function J(Q){N.resolve(Q).then(function($){B||(B=!0,j.resolve(X,$))},function($){B||(B=!0,j.reject(X,$))})}}},{1:1}],3:[function(m,x,q){(function(C){typeof C.Promise!="function"&&(C.Promise=m(2))}).call(this,typeof se<"u"?se:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(m,x,q){var C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function P(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function j(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var D=j();function L(){try{if(!D||!D.open)return!1;var e=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),r=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!e||r)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function Y(e,r){e=e||[],r=r||{};try{return new Blob(e,r)}catch(i){if(i.name!=="TypeError")throw i;for(var t=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,o=new t,n=0;n<e.length;n+=1)o.append(e[n]);return o.getBlob(r.type)}}typeof Promise>"u"&&m(3);var y=Promise;function w(e,r){r&&e.then(function(t){r(null,t)},function(t){r(t)})}function z(e,r,t){typeof r=="function"&&e.then(r),typeof t=="function"&&e.catch(t)}function F(e){return typeof e!="string"&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function Z(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var A="local-forage-detect-blob-support",G=void 0,U={},oe=Object.prototype.toString,ee="readonly",v="readwrite";function N(e){for(var r=e.length,t=new ArrayBuffer(r),o=new Uint8Array(t),n=0;n<r;n++)o[n]=e.charCodeAt(n);return t}function E(e){return new y(function(r){var t=e.transaction(A,v),o=Y([""]);t.objectStore(A).put(o,"key"),t.onabort=function(n){n.preventDefault(),n.stopPropagation(),r(!1)},t.oncomplete=function(){var n=navigator.userAgent.match(/Chrome\/(\d+)/),i=navigator.userAgent.match(/Edge\//);r(i||!n||parseInt(n[1],10)>=43)}}).catch(function(){return!1})}function B(e){return typeof G=="boolean"?y.resolve(G):E(e).then(function(r){return G=r,G})}function K(e){var r=U[e.name],t={};t.promise=new y(function(o,n){t.resolve=o,t.reject=n}),r.deferredOperations.push(t),r.dbReady?r.dbReady=r.dbReady.then(function(){return t.promise}):r.dbReady=t.promise}function X(e){var r=U[e.name],t=r.deferredOperations.pop();if(t)return t.resolve(),t.promise}function J(e,r){var t=U[e.name],o=t.deferredOperations.pop();if(o)return o.reject(r),o.promise}function Q(e,r){return new y(function(t,o){if(U[e.name]=U[e.name]||g(),e.db)if(r)K(e),e.db.close();else return t(e.db);var n=[e.name];r&&n.push(e.version);var i=D.open.apply(D,n);r&&(i.onupgradeneeded=function(u){var c=i.result;try{c.createObjectStore(e.storeName),u.oldVersion<=1&&c.createObjectStore(A)}catch(d){if(d.name==="ConstraintError")console.warn('The database "'+e.name+'" has been upgraded from version '+u.oldVersion+" to version "+u.newVersion+', but the storage "'+e.storeName+'" already exists.');else throw d}}),i.onerror=function(u){u.preventDefault(),o(i.error)},i.onsuccess=function(){var u=i.result;u.onversionchange=function(c){c.target.close()},t(u),X(e)}})}function $(e){return Q(e,!1)}function ie(e){return Q(e,!0)}function ue(e,r){if(!e.db)return!0;var t=!e.db.objectStoreNames.contains(e.storeName),o=e.version<e.db.version,n=e.version>e.db.version;if(o&&(e.version!==r&&console.warn('The database "'+e.name+`" can't be downgraded from version `+e.db.version+" to version "+e.version+"."),e.version=e.db.version),n||t){if(t){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function le(e){return new y(function(r,t){var o=new FileReader;o.onerror=t,o.onloadend=function(n){var i=btoa(n.target.result||"");r({__local_forage_encoded_blob:!0,data:i,type:e.type})},o.readAsBinaryString(e)})}function re(e){var r=N(atob(e.data));return Y([r],{type:e.type})}function a(e){return e&&e.__local_forage_encoded_blob}function f(e){var r=this,t=r._initReady().then(function(){var o=U[r._dbInfo.name];if(o&&o.dbReady)return o.dbReady});return z(t,e,e),t}function h(e){K(e);for(var r=U[e.name],t=r.forages,o=0;o<t.length;o++){var n=t[o];n._dbInfo.db&&(n._dbInfo.db.close(),n._dbInfo.db=null)}return e.db=null,$(e).then(function(i){return e.db=i,ue(e)?ie(e):i}).then(function(i){e.db=r.db=i;for(var u=0;u<t.length;u++)t[u]._dbInfo.db=i}).catch(function(i){throw J(e,i),i})}function p(e,r,t,o){o===void 0&&(o=1);try{var n=e.db.transaction(e.storeName,r);t(null,n)}catch(i){if(o>0&&(!e.db||i.name==="InvalidStateError"||i.name==="NotFoundError"))return y.resolve().then(function(){if(!e.db||i.name==="NotFoundError"&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),ie(e)}).then(function(){return h(e).then(function(){p(e,r,t,o-1)})}).catch(t);t(i)}}function g(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function I(e){var r=this,t={db:null};if(e)for(var o in e)t[o]=e[o];var n=U[t.name];n||(n=g(),U[t.name]=n),n.forages.push(r),r._initReady||(r._initReady=r.ready,r.ready=f);var i=[];function u(){return y.resolve()}for(var c=0;c<n.forages.length;c++){var d=n.forages[c];d!==r&&i.push(d._initReady().catch(u))}var l=n.forages.slice(0);return y.all(i).then(function(){return t.db=n.db,$(t)}).then(function(s){return t.db=s,ue(t,r._defaultConfig.version)?ie(t):s}).then(function(s){t.db=n.db=s,r._dbInfo=t;for(var b=0;b<l.length;b++){var S=l[b];S!==r&&(S._dbInfo.db=t.db,S._dbInfo.version=t.version)}})}function M(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.get(e);l.onsuccess=function(){var s=l.result;s===void 0&&(s=null),a(s)&&(s=re(s)),n(s)},l.onerror=function(){i(l.error)}}catch(s){i(s)}})}).catch(i)});return w(o,r),o}function V(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.openCursor(),s=1;l.onsuccess=function(){var b=l.result;if(b){var S=b.value;a(S)&&(S=re(S));var R=e(S,b.key,s++);R!==void 0?n(R):b.continue()}else n()},l.onerror=function(){i(l.error)}}catch(b){i(b)}})}).catch(i)});return w(o,r),o}function ce(e,r,t){var o=this;e=F(e);var n=new y(function(i,u){var c;o.ready().then(function(){return c=o._dbInfo,oe.call(r)==="[object Blob]"?B(c.db).then(function(d){return d?r:le(r)}):r}).then(function(d){p(o._dbInfo,v,function(l,s){if(l)return u(l);try{var b=s.objectStore(o._dbInfo.storeName);d===null&&(d=void 0);var S=b.put(d,e);s.oncomplete=function(){d===void 0&&(d=null),i(d)},s.onabort=s.onerror=function(){var R=S.error?S.error:S.transaction.error;u(R)}}catch(R){u(R)}})}).catch(u)});return w(n,t),n}function ae(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,v,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.delete(e);c.oncomplete=function(){n()},c.onerror=function(){i(l.error)},c.onabort=function(){var s=l.error?l.error:l.transaction.error;i(s)}}catch(s){i(s)}})}).catch(i)});return w(o,r),o}function de(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,v,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.clear();u.oncomplete=function(){o()},u.onabort=u.onerror=function(){var l=d.error?d.error:d.transaction.error;n(l)}}catch(l){n(l)}})}).catch(n)});return w(t,e),t}function Ge(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,ee,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.count();d.onsuccess=function(){o(d.result)},d.onerror=function(){n(d.error)}}catch(l){n(l)}})}).catch(n)});return w(t,e),t}function $e(e,r){var t=this,o=new y(function(n,i){if(e<0){n(null);return}t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=!1,s=d.openKeyCursor();s.onsuccess=function(){var b=s.result;if(!b){n(null);return}e===0||l?n(b.key):(l=!0,b.advance(e))},s.onerror=function(){i(s.error)}}catch(b){i(b)}})}).catch(i)});return w(o,r),o}function er(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,ee,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.openKeyCursor(),l=[];d.onsuccess=function(){var s=d.result;if(!s){o(l);return}l.push(s.key),s.continue()},d.onerror=function(){n(d.error)}}catch(s){n(s)}})}).catch(n)});return w(t,e),t}function rr(e,r){r=Z.apply(this,arguments);var t=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var o=this,n;if(!e.name)n=y.reject("Invalid arguments");else{var i=e.name===t.name&&o._dbInfo.db,u=i?y.resolve(o._dbInfo.db):$(e).then(function(c){var d=U[e.name],l=d.forages;d.db=c;for(var s=0;s<l.length;s++)l[s]._dbInfo.db=c;return c});e.storeName?n=u.then(function(c){if(c.objectStoreNames.contains(e.storeName)){var d=c.version+1;K(e);var l=U[e.name],s=l.forages;c.close();for(var b=0;b<s.length;b++){var S=s[b];S._dbInfo.db=null,S._dbInfo.version=d}var R=new y(function(k,W){var T=D.open(e.name,d);T.onerror=function(H){var Oe=T.result;Oe.close(),W(H)},T.onupgradeneeded=function(){var H=T.result;H.deleteObjectStore(e.storeName)},T.onsuccess=function(){var H=T.result;H.close(),k(H)}});return R.then(function(k){l.db=k;for(var W=0;W<s.length;W++){var T=s[W];T._dbInfo.db=k,X(T._dbInfo)}}).catch(function(k){throw(J(e,k)||y.resolve()).catch(function(){}),k})}}):n=u.then(function(c){K(e);var d=U[e.name],l=d.forages;c.close();for(var s=0;s<l.length;s++){var b=l[s];b._dbInfo.db=null}var S=new y(function(R,k){var W=D.deleteDatabase(e.name);W.onerror=function(){var T=W.result;T&&T.close(),k(W.error)},W.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},W.onsuccess=function(){var T=W.result;T&&T.close(),R(T)}});return S.then(function(R){d.db=R;for(var k=0;k<l.length;k++){var W=l[k];X(W._dbInfo)}}).catch(function(R){throw(J(e,R)||y.resolve()).catch(function(){}),R})})}return w(n,r),n}var tr={_driver:"asyncStorage",_initStorage:I,_support:L(),iterate:V,getItem:M,setItem:ce,removeItem:ae,clear:de,length:Ge,key:$e,keys:er,dropInstance:rr};function nr(){return typeof openDatabase=="function"}var te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",or="~~local_forage_type~",Ae=/^~~local_forage_type~([^~]+)~/,he="__lfsc__:",be=he.length,ge="arbf",_e="blob",Be="si08",ke="ui08",xe="uic8",De="si16",Re="si32",Ce="ur16",Le="ui32",Me="fl32",Te="fl64",ze=be+ge.length,Fe=Object.prototype.toString;function Pe(e){var r=e.length*.75,t=e.length,o,n=0,i,u,c,d;e[e.length-1]==="="&&(r--,e[e.length-2]==="="&&r--);var l=new ArrayBuffer(r),s=new Uint8Array(l);for(o=0;o<t;o+=4)i=te.indexOf(e[o]),u=te.indexOf(e[o+1]),c=te.indexOf(e[o+2]),d=te.indexOf(e[o+3]),s[n++]=i<<2|u>>4,s[n++]=(u&15)<<4|c>>2,s[n++]=(c&3)<<6|d&63;return l}function we(e){var r=new Uint8Array(e),t="",o;for(o=0;o<r.length;o+=3)t+=te[r[o]>>2],t+=te[(r[o]&3)<<4|r[o+1]>>4],t+=te[(r[o+1]&15)<<2|r[o+2]>>6],t+=te[r[o+2]&63];return r.length%3===2?t=t.substring(0,t.length-1)+"=":r.length%3===1&&(t=t.substring(0,t.length-2)+"=="),t}function ir(e,r){var t="";if(e&&(t=Fe.call(e)),e&&(t==="[object ArrayBuffer]"||e.buffer&&Fe.call(e.buffer)==="[object ArrayBuffer]")){var o,n=he;e instanceof ArrayBuffer?(o=e,n+=ge):(o=e.buffer,t==="[object Int8Array]"?n+=Be:t==="[object Uint8Array]"?n+=ke:t==="[object Uint8ClampedArray]"?n+=xe:t==="[object Int16Array]"?n+=De:t==="[object Uint16Array]"?n+=Ce:t==="[object Int32Array]"?n+=Re:t==="[object Uint32Array]"?n+=Le:t==="[object Float32Array]"?n+=Me:t==="[object Float64Array]"?n+=Te:r(new Error("Failed to get type for BinaryArray"))),r(n+we(o))}else if(t==="[object Blob]"){var i=new FileReader;i.onload=function(){var u=or+e.type+"~"+we(this.result);r(he+_e+u)},i.readAsArrayBuffer(e)}else try{r(JSON.stringify(e))}catch(u){console.error("Couldn't convert value into a JSON string: ",e),r(null,u)}}function ar(e){if(e.substring(0,be)!==he)return JSON.parse(e);var r=e.substring(ze),t=e.substring(be,ze),o;if(t===_e&&Ae.test(r)){var n=r.match(Ae);o=n[1],r=r.substring(n[0].length)}var i=Pe(r);switch(t){case ge:return i;case _e:return Y([i],{type:o});case Be:return new Int8Array(i);case ke:return new Uint8Array(i);case xe:return new Uint8ClampedArray(i);case De:return new Int16Array(i);case Ce:return new Uint16Array(i);case Re:return new Int32Array(i);case Le:return new Uint32Array(i);case Me:return new Float32Array(i);case Te:return new Float64Array(i);default:throw new Error("Unkown type: "+t)}}var Ie={serialize:ir,deserialize:ar,stringToBuffer:Pe,bufferToString:we};function Ue(e,r,t,o){e.executeSql("CREATE TABLE IF NOT EXISTS "+r.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],t,o)}function ur(e){var r=this,t={db:null};if(e)for(var o in e)t[o]=typeof e[o]!="string"?e[o].toString():e[o];var n=new y(function(i,u){try{t.db=openDatabase(t.name,String(t.version),t.description,t.size)}catch(c){return u(c)}t.db.transaction(function(c){Ue(c,t,function(){r._dbInfo=t,i()},function(d,l){u(l)})},u)});return t.serializer=Ie,n}function ne(e,r,t,o,n,i){e.executeSql(t,o,n,function(u,c){c.code===c.SYNTAX_ERR?u.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[r.storeName],function(d,l){l.rows.length?i(d,c):Ue(d,r,function(){d.executeSql(t,o,n,i)},i)},i):i(u,c)},i)}function cr(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT * FROM "+u.storeName+" WHERE key = ? LIMIT 1",[e],function(d,l){var s=l.rows.length?l.rows.item(0).value:null;s&&(s=u.serializer.deserialize(s)),n(s)},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function fr(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT * FROM "+u.storeName,[],function(d,l){for(var s=l.rows,b=s.length,S=0;S<b;S++){var R=s.item(S),k=R.value;if(k&&(k=u.serializer.deserialize(k)),k=e(k,R.key,S+1),k!==void 0){n(k);return}}n()},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function We(e,r,t,o){var n=this;e=F(e);var i=new y(function(u,c){n.ready().then(function(){r===void 0&&(r=null);var d=r,l=n._dbInfo;l.serializer.serialize(r,function(s,b){b?c(b):l.db.transaction(function(S){ne(S,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,s],function(){u(d)},function(R,k){c(k)})},function(S){if(S.code===S.QUOTA_ERR){if(o>0){u(We.apply(n,[e,d,t,o-1]));return}c(S)}})})}).catch(c)});return w(i,t),i}function sr(e,r,t){return We.apply(this,[e,r,t,1])}function lr(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"DELETE FROM "+u.storeName+" WHERE key = ?",[e],function(){n()},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function dr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"DELETE FROM "+i.storeName,[],function(){o()},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function vr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"SELECT COUNT(key) as c FROM "+i.storeName,[],function(c,d){var l=d.rows.item(0).c;o(l)},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function hr(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT key FROM "+u.storeName+" WHERE id = ? LIMIT 1",[e+1],function(d,l){var s=l.rows.length?l.rows.item(0).key:null;n(s)},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function yr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"SELECT key FROM "+i.storeName,[],function(c,d){for(var l=[],s=0;s<d.rows.length;s++)l.push(d.rows.item(s).key);o(l)},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function pr(e){return new y(function(r,t){e.transaction(function(o){o.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(n,i){for(var u=[],c=0;c<i.rows.length;c++)u.push(i.rows.item(c).name);r({db:e,storeNames:u})},function(n,i){t(i)})},function(o){t(o)})})}function mr(e,r){r=Z.apply(this,arguments);var t=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var o=this,n;return e.name?n=new y(function(i){var u;e.name===t.name?u=o._dbInfo.db:u=openDatabase(e.name,"","",0),e.storeName?i({db:u,storeNames:[e.storeName]}):i(pr(u))}).then(function(i){return new y(function(u,c){i.db.transaction(function(d){function l(R){return new y(function(k,W){d.executeSql("DROP TABLE IF EXISTS "+R,[],function(){k()},function(T,H){W(H)})})}for(var s=[],b=0,S=i.storeNames.length;b<S;b++)s.push(l(i.storeNames[b]));y.all(s).then(function(){u()}).catch(function(R){c(R)})},function(d){c(d)})})}):n=y.reject("Invalid arguments"),w(n,r),n}var br={_driver:"webSQLStorage",_initStorage:ur,_support:nr(),iterate:fr,getItem:cr,setItem:sr,removeItem:lr,clear:dr,length:vr,key:hr,keys:yr,dropInstance:mr};function gr(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function qe(e,r){var t=e.name+"/";return e.storeName!==r.storeName&&(t+=e.storeName+"/"),t}function _r(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch{return!0}}function wr(){return!_r()||localStorage.length>0}function Ir(e){var r=this,t={};if(e)for(var o in e)t[o]=e[o];return t.keyPrefix=qe(e,r._defaultConfig),wr()?(r._dbInfo=t,t.serializer=Ie,y.resolve()):y.reject()}function Er(e){var r=this,t=r.ready().then(function(){for(var o=r._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var i=localStorage.key(n);i.indexOf(o)===0&&localStorage.removeItem(i)}});return w(t,e),t}function Sr(e,r){var t=this;e=F(e);var o=t.ready().then(function(){var n=t._dbInfo,i=localStorage.getItem(n.keyPrefix+e);return i&&(i=n.serializer.deserialize(i)),i});return w(o,r),o}function Or(e,r){var t=this,o=t.ready().then(function(){for(var n=t._dbInfo,i=n.keyPrefix,u=i.length,c=localStorage.length,d=1,l=0;l<c;l++){var s=localStorage.key(l);if(s.indexOf(i)===0){var b=localStorage.getItem(s);if(b&&(b=n.serializer.deserialize(b)),b=e(b,s.substring(u),d++),b!==void 0)return b}}});return w(o,r),o}function jr(e,r){var t=this,o=t.ready().then(function(){var n=t._dbInfo,i;try{i=localStorage.key(e)}catch{i=null}return i&&(i=i.substring(n.keyPrefix.length)),i});return w(o,r),o}function Nr(e){var r=this,t=r.ready().then(function(){for(var o=r._dbInfo,n=localStorage.length,i=[],u=0;u<n;u++){var c=localStorage.key(u);c.indexOf(o.keyPrefix)===0&&i.push(c.substring(o.keyPrefix.length))}return i});return w(t,e),t}function Ar(e){var r=this,t=r.keys().then(function(o){return o.length});return w(t,e),t}function Br(e,r){var t=this;e=F(e);var o=t.ready().then(function(){var n=t._dbInfo;localStorage.removeItem(n.keyPrefix+e)});return w(o,r),o}function kr(e,r,t){var o=this;e=F(e);var n=o.ready().then(function(){r===void 0&&(r=null);var i=r;return new y(function(u,c){var d=o._dbInfo;d.serializer.serialize(r,function(l,s){if(s)c(s);else try{localStorage.setItem(d.keyPrefix+e,l),u(i)}catch(b){(b.name==="QuotaExceededError"||b.name==="NS_ERROR_DOM_QUOTA_REACHED")&&c(b),c(b)}})})});return w(n,t),n}function xr(e,r){if(r=Z.apply(this,arguments),e=typeof e!="function"&&e||{},!e.name){var t=this.config();e.name=e.name||t.name,e.storeName=e.storeName||t.storeName}var o=this,n;return e.name?n=new y(function(i){e.storeName?i(qe(e,o._defaultConfig)):i(e.name+"/")}).then(function(i){for(var u=localStorage.length-1;u>=0;u--){var c=localStorage.key(u);c.indexOf(i)===0&&localStorage.removeItem(c)}}):n=y.reject("Invalid arguments"),w(n,r),n}var Dr={_driver:"localStorageWrapper",_initStorage:Ir,_support:gr(),iterate:Or,getItem:Sr,setItem:kr,removeItem:Br,clear:Er,length:Ar,key:jr,keys:Nr,dropInstance:xr},Rr=function(e,r){return e===r||typeof e=="number"&&typeof r=="number"&&isNaN(e)&&isNaN(r)},Cr=function(e,r){for(var t=e.length,o=0;o<t;){if(Rr(e[o],r))return!0;o++}return!1},Ke=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},ve={},Ve={},fe={INDEXEDDB:tr,WEBSQL:br,LOCALSTORAGE:Dr},Lr=[fe.INDEXEDDB._driver,fe.WEBSQL._driver,fe.LOCALSTORAGE._driver],ye=["dropInstance"],Ee=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ye),Mr={description:"",driver:Lr.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Tr(e,r){e[r]=function(){var t=arguments;return e.ready().then(function(){return e[r].apply(e,t)})}}function Se(){for(var e=1;e<arguments.length;e++){var r=arguments[e];if(r)for(var t in r)r.hasOwnProperty(t)&&(Ke(r[t])?arguments[0][t]=r[t].slice():arguments[0][t]=r[t])}return arguments[0]}var zr=function(){function e(r){P(this,e);for(var t in fe)if(fe.hasOwnProperty(t)){var o=fe[t],n=o._driver;this[t]=n,ve[n]||this.defineDriver(o)}this._defaultConfig=Se({},Mr),this._config=Se({},this._defaultConfig,r),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(r){if((typeof r>"u"?"undefined":C(r))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in r){if(t==="storeName"&&(r[t]=r[t].replace(/\W/g,"_")),t==="version"&&typeof r[t]!="number")return new Error("Database version must be a number.");this._config[t]=r[t]}return"driver"in r&&r.driver?this.setDriver(this._config.driver):!0}else return typeof r=="string"?this._config[r]:this._config},e.prototype.defineDriver=function(r,t,o){var n=new y(function(i,u){try{var c=r._driver,d=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!r._driver){u(d);return}for(var l=Ee.concat("_initStorage"),s=0,b=l.length;s<b;s++){var S=l[s],R=!Cr(ye,S);if((R||r[S])&&typeof r[S]!="function"){u(d);return}}var k=function(){for(var T=function(Pr){return function(){var Ur=new Error("Method "+Pr+" is not implemented by the current driver"),Xe=y.reject(Ur);return w(Xe,arguments[arguments.length-1]),Xe}},H=0,Oe=ye.length;H<Oe;H++){var je=ye[H];r[je]||(r[je]=T(je))}};k();var W=function(T){ve[c]&&console.info("Redefining LocalForage driver: "+c),ve[c]=r,Ve[c]=T,i()};"_support"in r?r._support&&typeof r._support=="function"?r._support().then(W,u):W(!!r._support):W(!0)}catch(T){u(T)}});return z(n,t,o),n},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(r,t,o){var n=ve[r]?y.resolve(ve[r]):y.reject(new Error("Driver not found."));return z(n,t,o),n},e.prototype.getSerializer=function(r){var t=y.resolve(Ie);return z(t,r),t},e.prototype.ready=function(r){var t=this,o=t._driverSet.then(function(){return t._ready===null&&(t._ready=t._initDriver()),t._ready});return z(o,r,r),o},e.prototype.setDriver=function(r,t,o){var n=this;Ke(r)||(r=[r]);var i=this._getSupportedDrivers(r);function u(){n._config.driver=n.driver()}function c(s){return n._extend(s),u(),n._ready=n._initStorage(n._config),n._ready}function d(s){return function(){var b=0;function S(){for(;b<s.length;){var R=s[b];return b++,n._dbInfo=null,n._ready=null,n.getDriver(R).then(c).catch(S)}u();var k=new Error("No available storage method found.");return n._driverSet=y.reject(k),n._driverSet}return S()}}var l=this._driverSet!==null?this._driverSet.catch(function(){return y.resolve()}):y.resolve();return this._driverSet=l.then(function(){var s=i[0];return n._dbInfo=null,n._ready=null,n.getDriver(s).then(function(b){n._driver=b._driver,u(),n._wrapLibraryMethodsWithReady(),n._initDriver=d(i)})}).catch(function(){u();var s=new Error("No available storage method found.");return n._driverSet=y.reject(s),n._driverSet}),z(this._driverSet,t,o),this._driverSet},e.prototype.supports=function(r){return!!Ve[r]},e.prototype._extend=function(r){Se(this,r)},e.prototype._getSupportedDrivers=function(r){for(var t=[],o=0,n=r.length;o<n;o++){var i=r[o];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var r=0,t=Ee.length;r<t;r++)Tr(this,Ee[r])},e.prototype.createInstance=function(r){return new e(r)},e}(),Fr=new zr;x.exports=Fr},{3:3}]},{},[4])(4)})}),et=Ze((_,O)=>{(function(m,x){typeof _=="object"&&typeof O<"u"?x(_):typeof define=="function"&&define.amd?define("localforage-driver-memory",["exports"],x):x(m.LocalforageDriverMemory={})})(typeof self<"u"?self:_,function(m){var x="localforage-driver-memory";function q(a){var f=typeof Symbol=="function"&&a[Symbol.iterator],h=0;return f?f.call(a):{next:function(){return a&&h>=a.length&&(a=void 0),{value:a&&a[h++],done:!a}}}}function C(a,f){a=a||[],f=f||{};try{return new Blob(a,f)}catch(I){if(I.name!=="TypeError")throw I;for(var h=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,p=new h,g=0;g<a.length;g+=1)p.append(a[g]);return p.getBlob(f.type)}}var P=/^~~local_forage_type~([^~]+)~/,j=9,D=j+4,L=Object.prototype.toString;function Y(a){var f=a.length*.75,h=a.length;a[a.length-1]==="="&&(f--,a[a.length-2]==="="&&f--);for(var p=new ArrayBuffer(f),g=new Uint8Array(p),I=0,M=0;I<h;I+=4){var V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I]),ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+1]),ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+2]),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+3]);g[M++]=V<<2|ce>>4,g[M++]=(ce&15)<<4|ae>>2,g[M++]=(ae&3)<<6|de&63}return p}function y(a){for(var f=new Uint8Array(a),h="",p=0;p<f.length;p+=3)h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f[p]>>2],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(f[p]&3)<<4|f[p+1]>>4],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(f[p+1]&15)<<2|f[p+2]>>6],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f[p+2]&63];return f.length%3===2?h=h.substring(0,h.length-1)+"=":f.length%3===1&&(h=h.substring(0,h.length-2)+"=="),h}function w(a,f){var h="";if(a&&(h=L.call(a)),a&&(h==="[object ArrayBuffer]"||a.buffer&&L.call(a.buffer)==="[object ArrayBuffer]")){var p=void 0,g="__lfsc__:";a instanceof ArrayBuffer?(p=a,g+="arbf"):(p=a.buffer,h==="[object Int8Array]"?g+="si08":h==="[object Uint8Array]"?g+="ui08":h==="[object Uint8ClampedArray]"?g+="uic8":h==="[object Int16Array]"?g+="si16":h==="[object Uint16Array]"?g+="ur16":h==="[object Int32Array]"?g+="si32":h==="[object Uint32Array]"?g+="ui32":h==="[object Float32Array]"?g+="fl32":h==="[object Float64Array]"?g+="fl64":f(new Error("Failed to get type for BinaryArray"))),f(g+y(p))}else if(h==="[object Blob]"){var I=new FileReader;I.onload=function(){var M="~~local_forage_type~"+a.type+"~"+y(this.result);f("__lfsc__:blob"+M)},I.readAsArrayBuffer(a)}else try{f(JSON.stringify(a))}catch(M){console.error("Couldn't convert value into a JSON string: ",a),f(null,M)}}function z(a){if(a.substring(0,j)!=="__lfsc__:")return JSON.parse(a);var f=a.substring(D),h=a.substring(j,D),p;if(h==="blob"&&P.test(f)){var g=f.match(P);p=g[1],f=f.substring(g[0].length)}var I=Y(f);switch(h){case"arbf":return I;case"blob":return C([I],{type:p});case"si08":return new Int8Array(I);case"ui08":return new Uint8Array(I);case"uic8":return new Uint8ClampedArray(I);case"si16":return new Int16Array(I);case"ur16":return new Uint16Array(I);case"si32":return new Int32Array(I);case"ui32":return new Uint32Array(I);case"fl32":return new Float32Array(I);case"fl64":return new Float64Array(I);default:throw new Error("Unkown type: "+h)}}function F(a){var f,h;if(a===null||typeof a!="object"||"isActiveClone"in a)return a;var p=a instanceof Date?new Date(a):a.constructor();try{for(var g=q(Object.keys(a)),I=g.next();!I.done;I=g.next()){var M=I.value;Object.prototype.hasOwnProperty.call(a,M)&&(a.isActiveClone=null,p[M]=F(a[M]),delete a.isActiveClone)}}catch(V){f={error:V}}finally{try{I&&!I.done&&(h=g.return)&&h.call(g)}finally{if(f)throw f.error}}return p}function Z(a,f){return(a.name||f.name)+"/"+(a.storeName||f.storeName)+"/"}function A(a,f){f&&a.then(function(h){f(null,h)},function(h){f(h)})}function G(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}function U(a,f){var h=this;if(f=G.apply(this,arguments),a=typeof a!="function"&&a||{},!a.name){var p=this.config();a.name=a.name||p.name,a.storeName=a.storeName||p.storeName}var g;return a.name?g=new Promise(function(I){a.storeName?I(Z(a,h._defaultConfig)):I(a.name+"/")}):g=Promise.reject("Invalid arguments"),{promise:g,callback:f}}function oe(a){return typeof a!="string"&&(console.warn(a+" used as a key, but it is not a string."),a=String(a)),a}var ee={bufferToString:y,deserialize:z,serialize:w,stringToBuffer:Y},v={},N=function(){function a(f){this.kp=f,this.data={}}return a.resolve=function(f){return v[f]||(v[f]=new a(f)),v[f]},a.prototype.clear=function(){this.data={}},a.prototype.drop=function(){this.clear(),delete v[this.kp]},a.prototype.get=function(f){return this.data[f]},a.prototype.key=function(f){return this.keys()[f]},a.prototype.keys=function(){return Object.keys(this.data)},a.prototype.rm=function(f){delete this.data[f]},a.prototype.set=function(f,h){this.data[f]=h},a}();function E(a){var f=a?F(a):{},h=Z(f,this._defaultConfig),p=N.resolve(h);return this._dbInfo=f,this._dbInfo.serializer=ee,this._dbInfo.keyPrefix=h,this._dbInfo.mStore=p,Promise.resolve()}function B(a){var f=this,h=this.ready().then(function(){f._dbInfo.mStore.clear()});return A(h,a),h}function K(a,f){var h=U.apply(this,arguments),p=h.promise,g=h.callback,I=p.then(function(M){N.resolve(M).drop()});return A(I,g),p}function X(a,f){var h=this;a=oe(a);var p=this.ready().then(function(){var g=h._dbInfo.mStore.get(a);return g==null?null:h._dbInfo.serializer.deserialize(g)});return A(p,f),p}function J(a,f){var h=this,p=this.ready().then(function(){for(var g=h._dbInfo.mStore,I=g.keys(),M=0;M<I.length;M++){var V=g.get(I[M]);if(V&&(V=h._dbInfo.serializer.deserialize(V)),V=a(V,I[M],M+1),V!==void 0)return V}});return A(p,f),p}function Q(a,f){var h=this,p=this.ready().then(function(){var g;try{g=h._dbInfo.mStore.key(a),g===void 0&&(g=null)}catch{g=null}return g});return A(p,f),p}function $(a){var f=this,h=this.ready().then(function(){return f._dbInfo.mStore.keys()});return A(h,a),h}function ie(a){var f=this.keys().then(function(h){return h.length});return A(f,a),f}function ue(a,f){var h=this;a=oe(a);var p=this.ready().then(function(){h._dbInfo.mStore.rm(a)});return A(p,f),p}function le(a,f,h){var p=this;a=oe(a);var g=this.ready().then(function(){f===void 0&&(f=null);var I=f;return new Promise(function(M,V){p._dbInfo.serializer.serialize(f,function(ce,ae){if(ae)V(ae);else try{p._dbInfo.mStore.set(a,ce),M(I)}catch(de){V(de)}})})});return A(g,h),g}var re=!0;m._support=re,m._driver=x,m._initStorage=E,m.clear=B,m.dropInstance=K,m.getItem=X,m.iterate=J,m.key=Q,m.keys=$,m.length=ie,m.removeItem=ue,m.setItem=le,Object.defineProperty(m,"__esModule",{value:!0})})}),Ne=He($r()),Je=He(et()),rt={display:"none",position:"fixed",top:"0",right:"0",width:"100%",height:"100%",borderRadius:"0",border:"none",zIndex:"2147483647"};function tt(_){for(let[O,m]of Object.entries(rt))_.style[O]=m}function nt(_){return!![].slice.call(document.querySelectorAll(".magic-iframe")).find(m=>m.src.includes(_))}var ot=class extends Kr{constructor(){super(...arguments),this.activeElement=null}init(){this.test="hello",this.iframe=new Promise(_=>{let O=()=>{if(nt(encodeURIComponent(this.parameters)))Xr().log();else{let m=document.createElement("iframe");m.classList.add("magic-iframe"),m.dataset.magicIframeLabel=Ye(this.endpoint).host,m.title="Secure Modal",m.src=Ye(`/send?params=${encodeURIComponent(this.parameters)}`,this.endpoint).href,tt(m),document.body.appendChild(m),_(m)}};["loaded","interactive","complete"].includes(document.readyState)?O():window.addEventListener("load",O,!1)}),window.addEventListener("message",_=>{var O;if(_.origin===this.endpoint&&_.data&&_.data.msgType&&this.messageHandlers.size){_.data.response=(O=_.data.response)!=null?O:{};for(let m of this.messageHandlers.values())m(_)}})}showOverlay(){return me(this,null,function*(){let _=yield this.iframe;_.style.display="block",this.activeElement=document.activeElement,_.focus()})}hideOverlay(){return me(this,null,function*(){var _;let O=yield this.iframe;O.style.display="none",(_=this.activeElement)!=null&&_.focus&&this.activeElement.focus(),this.activeElement=null})}_post(_){return me(this,null,function*(){let O=yield this.iframe;if(O&&O.contentWindow)O.contentWindow.postMessage(_,this.endpoint);else throw Vr()})}},ft=Wr(qr,{platform:"web",sdkName:"magic-sdk",version:"27.0.0",defaultEndpoint:"https://auth.magic.link/",ViewController:ot,configureStorage:()=>me(void 0,null,function*(){let _=Ne.default.createInstance({name:"MagicAuthLocalStorageDB",storeName:"MagicAuthLocalStorage"});return yield _.defineDriver(Je),yield _.setDriver([Ne.default.INDEXEDDB,Ne.default.LOCALSTORAGE,Je._driver]),_})});export{dt as DeepLinkPage,vt as DeviceVerificationEventEmit,ht as DeviceVerificationEventOnReceived,yt as EthChainType,pt as Events,mt as Extension,bt as ExtensionError,gt as ExtensionWarning,_t as LoginWithEmailOTPEventEmit,wt as LoginWithEmailOTPEventOnReceived,It as LoginWithMagicLinkEventEmit,Et as LoginWithMagicLinkEventOnReceived,ft as Magic,St as MagicIncomingWindowMessage,Ot as MagicOutgoingWindowMessage,jt as MagicPayloadMethod,Nt as RPCError,At as RPCErrorCode,Bt as RecencyCheckEventEmit,kt as RecencyCheckEventOnReceived,xt as RecoveryMethodType,Dt as SDKError,Rt as SDKErrorCode,Ct as SDKWarning,Lt as SDKWarningCode,Mt as UpdateEmailEventEmit,Tt as UpdateEmailEventOnReceived,zt as Wallets,Ft as isPromiEvent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as C,r as O,e as P,i as b,h as l,j as E}from"./index-
|
|
1
|
+
import{d as C,r as O,e as P,i as b,h as l,j as E}from"./index-B2qqxEZl.js";import{n as h,c as v,r as d,U as x}from"./index-m1gWd9HT.js";import"./index-D4hj-MW3.js";import"./index-BBorsv5y.js";import{l as g,R as S,i as $,a as R,S as T}from"./W3MFrameProviderSingleton-HZSGN_a5.js";const L=C`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: inline-block;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as f,d as w,r as v,i as b,h as l,e as y}from"./index-
|
|
1
|
+
import{w as f,d as w,r as v,i as b,h as l,e as y}from"./index-B2qqxEZl.js";import{n as o,c as x,U as $}from"./index-m1gWd9HT.js";import"./index-D0AFTGOC.js";import"./index-h6i4u6IV.js";import{o as z}from"./if-defined-C5UymspQ.js";const S=f`<svg width="86" height="96" fill="none">
|
|
2
2
|
<path
|
|
3
3
|
d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z"
|
|
4
4
|
/>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as b,i as g,h as m,d as v}from"./index-
|
|
1
|
+
import{j as b,i as g,h as m,d as v}from"./index-B2qqxEZl.js";import{n as y,r as h,c as w}from"./index-m1gWd9HT.js";import{w as x,p as $,s as R,c as T,R as C,M as P}from"./W3MFrameProviderSingleton-HZSGN_a5.js";const a=$({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),_={state:a,subscribe(t){return T(a,()=>t(a))},subscribeKey(t,e){return R(a,t,e)},showTooltip({message:t,triggerRect:e,variant:o}){a.open=!0,a.message=t,a.triggerRect=e,a.variant=o},hide(){a.open=!1,a.message="",a.triggerRect={width:0,height:0,top:0,left:0}}},s=x(_),j=b`
|
|
2
2
|
:host {
|
|
3
3
|
width: 100%;
|
|
4
4
|
display: block;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as u,r as p,i as g,h as c}from"./index-
|
|
1
|
+
import{d as u,r as p,i as g,h as c}from"./index-B2qqxEZl.js";import{n as r,c as f}from"./index-m1gWd9HT.js";import{o as m}from"./if-defined-C5UymspQ.js";const b=u`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
width: var(--local-width);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as b,r as p,e as f,i as m,h as l}from"./index-
|
|
1
|
+
import{d as b,r as p,e as f,i as m,h as l}from"./index-B2qqxEZl.js";import{n as s,c as v}from"./index-m1gWd9HT.js";const h=b`
|
|
2
2
|
button {
|
|
3
3
|
border: none;
|
|
4
4
|
background: transparent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
import{_ as A}from"./thirdweb-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-T2As9Itz.js","assets/vanilla-BwPktXNc.js","assets/clsx.m-DHulAg21.js","assets/thirdweb-BdvHtoLc.js","assets/ui-E17g3ezc.js","assets/vendor-C4WpNl28.js","assets/index-CDY-fCE0.js","assets/index-CMl1O5Ha.css","assets/index-r1jiBqoI.js","assets/W3MFrameProviderSingleton-HZSGN_a5.js","assets/index-Bia6LG94.js","assets/browser-ponyfill-Cb8obt81.js","assets/NetworkUtil-B62y6RwJ.js","assets/store-CraP4F4Y.js","assets/index-nibyPLVP.js","assets/index-BW4tPxWu.js","assets/index-CpWZ5dtQ.js","assets/index-FRtQ3Mfa.js","assets/native-DtkOxK1N.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as A}from"./thirdweb-BdvHtoLc.js";import{c as D,C as I,P as g,w as U}from"./index-r1jiBqoI.js";import{i as F}from"./index-r1jiBqoI.js";import{j as _,S as m,n as y,U as b}from"./index-CDY-fCE0.js";import"./W3MFrameProviderSingleton-HZSGN_a5.js";import"./ui-E17g3ezc.js";import"./vendor-C4WpNl28.js";import"./index-Bia6LG94.js";import"./browser-ponyfill-Cb8obt81.js";import"./NetworkUtil-B62y6RwJ.js";import"./store-CraP4F4Y.js";function O(f={}){let l,d,r,a;return D(n=>({id:"baseAccount",name:"Base Account",rdns:"app.base.account",type:"baseAccount",async connect({chainId:t,withCapabilities:e,...o}={}){var s;try{const i=await this.getProvider(),p=t??((s=n.chains[0])==null?void 0:s.id);if(!p)throw new I;const h=await i.request({method:"wallet_connect",params:[{capabilities:"capabilities"in o&&o.capabilities?o.capabilities:{},chainIds:[y(p),...n.chains.filter(c=>c.id!==p).map(c=>y(c.id))]}]}),v=h.accounts.map(c=>({address:_(c.address),capabilities:c.capabilities??{}}));let u=Number(h.chainIds[0]);if(d||(d=this.onAccountsChanged.bind(this),i.on("accountsChanged",d)),r||(r=this.onChainChanged.bind(this),i.on("chainChanged",r)),a||(a=this.onDisconnect.bind(this),i.on("disconnect",a)),t&&u!==t){const c=await this.switchChain({chainId:t}).catch(w=>{if(w.code===b.code)throw w;return{id:u}});u=(c==null?void 0:c.id)??u}return{accounts:e?v:v.map(c=>c.address),chainId:u}}catch(i){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(i.message)?new b(i):i}},async disconnect(){const t=await this.getProvider();d&&(t.removeListener("accountsChanged",d),d=void 0),r&&(t.removeListener("chainChanged",r),r=void 0),a&&(t.removeListener("disconnect",a),a=void 0),t.disconnect()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(e=>_(e))},async getChainId(){const e=await(await this.getProvider()).request({method:"eth_chainId"});return Number(e)},async getProvider(){if(!l){const t=(()=>{var s;return typeof f.preference=="string"?{options:f.preference}:{...f.preference,options:((s=f.preference)==null?void 0:s.options)??"all"}})(),{createBaseAccountSDK:e}=await A(async()=>{const{createBaseAccountSDK:s}=await import("./index-T2As9Itz.js");return{createBaseAccountSDK:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]));l=e({...f,appChainIds:n.chains.map(s=>s.id),preference:t}).getProvider()}return l},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:t,chainId:e}){var i,p,h,v;const o=n.chains.find(u=>u.id===e);if(!o)throw new m(new I);const s=await this.getProvider();try{return await s.request({method:"wallet_switchEthereumChain",params:[{chainId:y(o.id)}]}),o}catch(u){if(u.code===4902)try{let c;t!=null&&t.blockExplorerUrls?c=t.blockExplorerUrls:c=(i=o.blockExplorers)!=null&&i.default.url?[(p=o.blockExplorers)==null?void 0:p.default.url]:[];let w;(h=t==null?void 0:t.rpcUrls)!=null&&h.length?w=t.rpcUrls:w=[((v=o.rpcUrls.default)==null?void 0:v.http[0])??""];const C={blockExplorerUrls:c,chainId:y(e),chainName:(t==null?void 0:t.chainName)??o.name,iconUrls:t==null?void 0:t.iconUrls,nativeCurrency:(t==null?void 0:t.nativeCurrency)??o.nativeCurrency,rpcUrls:w};return await s.request({method:"wallet_addEthereumChain",params:[C]}),o}catch(c){throw new b(c)}throw new m(u)}},onAccountsChanged(t){t.length===0?this.onDisconnect():n.emitter.emit("change",{accounts:t.map(e=>_(e))})},onChainChanged(t){const e=Number(t);n.emitter.emit("change",{chainId:e})},async onDisconnect(t){n.emitter.emit("disconnect");const e=await this.getProvider();d&&(e.removeListener("accountsChanged",d),d=void 0),r&&(e.removeListener("chainChanged",r),r=void 0),a&&(e.removeListener("disconnect",a),a=void 0)}}))}S.type="safe";function S(f={}){const{shimDisconnect:l=!1}=f;let d,r;return D(a=>({id:"safe",name:"Safe",type:S.type,async connect({withCapabilities:n}={}){var s;const t=await this.getProvider();if(!t)throw new g;const e=await this.getAccounts(),o=await this.getChainId();return r||(r=this.onDisconnect.bind(this),t.on("disconnect",r)),l&&await((s=a.storage)==null?void 0:s.removeItem("safe.disconnected")),{accounts:n?e.map(i=>({address:i,capabilities:{}})):e,chainId:o}},async disconnect(){var t;const n=await this.getProvider();if(!n)throw new g;r&&(n.removeListener("disconnect",r),r=void 0),l&&await((t=a.storage)==null?void 0:t.setItem("safe.disconnected",!0))},async getAccounts(){const n=await this.getProvider();if(!n)throw new g;return(await n.request({method:"eth_accounts"})).map(_)},async getProvider(){if(typeof window<"u"&&(window==null?void 0:window.parent)!==window){if(!d){const{default:t}=await A(async()=>{const{default:i}=await import("./index-BW4tPxWu.js");return{default:i}},__vite__mapDeps([15,16,6,3,4,5,7])),e=new t(f),o=await U(()=>e.safe.getInfo(),{timeout:f.unstable_getInfoTimeout??10});if(!o)throw new Error("Could not load Safe information");const s=await(async()=>{const i=await A(()=>import("./index-FRtQ3Mfa.js").then(p=>p.i),__vite__mapDeps([17,3,16,18,4,5]));return typeof i.SafeAppProvider!="function"&&typeof i.default.SafeAppProvider=="function"?i.default.SafeAppProvider:i.SafeAppProvider})();d=new s(o,e)}return d}},async getChainId(){const n=await this.getProvider();if(!n)throw new g;return Number(n.chainId)},async isAuthorized(){var n;try{return l&&await((n=a.storage)==null?void 0:n.getItem("safe.disconnected"))?!1:!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){a.emitter.emit("disconnect")}}))}export{O as baseAccount,F as injected,S as safe};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as l,E as g,R as h,i as m,S as w,a as c,r as E,k as _}from"./W3MFrameProviderSingleton-
|
|
1
|
+
import{C as l,E as g,R as h,i as m,S as w,a as c,r as E,k as _}from"./W3MFrameProviderSingleton-HZSGN_a5.js";import{C as R}from"./NetworkUtil-B62y6RwJ.js";import{d as y,r as b,i as C,h as v,e as O}from"./index-B2qqxEZl.js";import{n as d,c as S}from"./index-m1gWd9HT.js";import{o as $}from"./if-defined-C5UymspQ.js";function I(){try{return c.returnOpenHref(`${R.SECURE_SITE_SDK_ORIGIN}/loading`,"popupWindow","width=600,height=800,scrollbars=yes")}catch{throw new Error("Could not open social popup")}}async function L(){h.push("ConnectingFarcaster");const e=m.getAuthConnector();if(e){const o=l.getAccountData();if(!(o!=null&&o.farcasterUrl))try{const{url:t}=await e.provider.getFarcasterUri();l.setAccountProp("farcasterUrl",t,l.state.activeChain)}catch(t){h.goBack(),w.showError(t)}}}async function T(e){h.push("ConnectingSocial");const o=m.getAuthConnector();let t=null;try{const i=setTimeout(()=>{throw new Error("Social login timed out. Please try again.")},45e3);if(o&&e){if(c.isTelegram()||(t=I()),t)l.setAccountProp("socialWindow",E(t),l.state.activeChain);else if(!c.isTelegram())throw new Error("Could not create social popup");const{uri:n}=await o.provider.getSocialRedirectUri({provider:e});if(!n)throw t==null||t.close(),new Error("Could not fetch the social redirect uri");if(t&&(t.location.href=n),c.isTelegram()){_.setTelegramSocialProvider(e);const r=c.formatTelegramSocialLoginUrl(n);c.openHref(r,"_top")}clearTimeout(i)}}catch(i){t==null||t.close();const n=c.parseError(i);w.showError(n),g.sendEvent({type:"track",event:"SOCIAL_LOGIN_ERROR",properties:{provider:e,message:n}})}}async function F(e){l.setAccountProp("socialProvider",e,l.state.activeChain),g.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}}),e==="farcaster"?await L():await T(e)}const U=y`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as oe,i as se,h as w,r as Ce}from"./index-ChxPwgIw.js";import{U as Te,n as I,r as Q,c as ae}from"./index-DQwarFXF.js";import{g as ye}from"./thirdweb-C1sPVgqC.js";import"./index-CY8kI8av.js";import"./index-oQP5GBKO.js";import{o as Fe}from"./if-defined-COlC6TLi.js";import"./index-DEdH3uZE.js";import"./index-CP-TD4Jj.js";import{C as pe,H as F,a as xe,R as Re,O as Ne,E as Le,e as je,W as ke}from"./W3MFrameProviderSingleton-B9uiByvm.js";var me={exports:{}},ze=me.exports,Ie;function Ue(){return Ie||(Ie=1,function(e,t){(function(i,r){e.exports=r()})(ze,function(){var i=1e3,r=6e4,o=36e5,n="millisecond",s="second",u="minute",g="hour",p="day",y="week",$="month",j="quarter",D="year",R="date",Y="Invalid Date",X=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ee=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,te={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(h){var l=["th","st","nd","rd"],a=h%100;return"["+h+(l[(a-20)%10]||l[a]||l[0])+"]"}},ie=function(h,l,a){var d=String(h);return!d||d.length>=l?h:""+Array(l+1-d.length).join(a)+h},q={s:ie,z:function(h){var l=-h.utcOffset(),a=Math.abs(l),d=Math.floor(a/60),c=a%60;return(l<=0?"+":"-")+ie(d,2,"0")+":"+ie(c,2,"0")},m:function h(l,a){if(l.date()<a.date())return-h(a,l);var d=12*(a.year()-l.year())+(a.month()-l.month()),c=l.clone().add(d,$),m=a-c<0,f=l.clone().add(d+(m?-1:1),$);return+(-(d+(a-c)/(m?c-f:f-c))||0)},a:function(h){return h<0?Math.ceil(h)||0:Math.floor(h)},p:function(h){return{M:$,y:D,w:y,d:p,D:R,h:g,m:u,s,ms:n,Q:j}[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(h){return h===void 0}},S="en",O={};O[S]=te;var V="$isDayjsObject",B=function(h){return h instanceof le||!(!h||!h[V])},ce=function h(l,a,d){var c;if(!l)return S;if(typeof l=="string"){var m=l.toLowerCase();O[m]&&(c=m),a&&(O[m]=a,c=m);var f=l.split("-");if(!c&&f.length>1)return h(f[0])}else{var v=l.name;O[v]=l,c=v}return!d&&c&&(S=c),c||!d&&S},_=function(h,l){if(B(h))return h.clone();var a=typeof l=="object"?l:{};return a.date=h,a.args=arguments,new le(a)},x=q;x.l=ce,x.i=B,x.w=function(h,l){return _(h,{locale:l.$L,utc:l.$u,x:l.$x,$offset:l.$offset})};var le=function(){function h(a){this.$L=ce(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[V]=!0}var l=h.prototype;return l.parse=function(a){this.$d=function(d){var c=d.date,m=d.utc;if(c===null)return new Date(NaN);if(x.u(c))return new Date;if(c instanceof Date)return new Date(c);if(typeof c=="string"&&!/Z$/i.test(c)){var f=c.match(X);if(f){var v=f[2]-1||0,b=(f[7]||"0").substring(0,3);return m?new Date(Date.UTC(f[1],v,f[3]||1,f[4]||0,f[5]||0,f[6]||0,b)):new Date(f[1],v,f[3]||1,f[4]||0,f[5]||0,f[6]||0,b)}}return new Date(c)}(a),this.init()},l.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},l.$utils=function(){return x},l.isValid=function(){return this.$d.toString()!==Y},l.isSame=function(a,d){var c=_(a);return this.startOf(d)<=c&&c<=this.endOf(d)},l.isAfter=function(a,d){return _(a)<this.startOf(d)},l.isBefore=function(a,d){return this.endOf(d)<_(a)},l.$g=function(a,d,c){return x.u(a)?this[d]:this.set(c,a)},l.unix=function(){return Math.floor(this.valueOf()/1e3)},l.valueOf=function(){return this.$d.getTime()},l.startOf=function(a,d){var c=this,m=!!x.u(d)||d,f=x.p(a),v=function(P,A){var z=x.w(c.$u?Date.UTC(c.$y,A,P):new Date(c.$y,A,P),c);return m?z:z.endOf(p)},b=function(P,A){return x.w(c.toDate()[P].apply(c.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(A)),c)},T=this.$W,M=this.$M,C=this.$D,J="set"+(this.$u?"UTC":"");switch(f){case D:return m?v(1,0):v(31,11);case $:return m?v(1,M):v(0,M+1);case y:var W=this.$locale().weekStart||0,re=(T<W?T+7:T)-W;return v(m?C-re:C+(6-re),M);case p:case R:return b(J+"Hours",0);case g:return b(J+"Minutes",1);case u:return b(J+"Seconds",2);case s:return b(J+"Milliseconds",3);default:return this.clone()}},l.endOf=function(a){return this.startOf(a,!1)},l.$set=function(a,d){var c,m=x.p(a),f="set"+(this.$u?"UTC":""),v=(c={},c[p]=f+"Date",c[R]=f+"Date",c[$]=f+"Month",c[D]=f+"FullYear",c[g]=f+"Hours",c[u]=f+"Minutes",c[s]=f+"Seconds",c[n]=f+"Milliseconds",c)[m],b=m===p?this.$D+(d-this.$W):d;if(m===$||m===D){var T=this.clone().set(R,1);T.$d[v](b),T.init(),this.$d=T.set(R,Math.min(this.$D,T.daysInMonth())).$d}else v&&this.$d[v](b);return this.init(),this},l.set=function(a,d){return this.clone().$set(a,d)},l.get=function(a){return this[x.p(a)]()},l.add=function(a,d){var c,m=this;a=Number(a);var f=x.p(d),v=function(M){var C=_(m);return x.w(C.date(C.date()+Math.round(M*a)),m)};if(f===$)return this.set($,this.$M+a);if(f===D)return this.set(D,this.$y+a);if(f===p)return v(1);if(f===y)return v(7);var b=(c={},c[u]=r,c[g]=o,c[s]=i,c)[f]||1,T=this.$d.getTime()+a*b;return x.w(T,this)},l.subtract=function(a,d){return this.add(-1*a,d)},l.format=function(a){var d=this,c=this.$locale();if(!this.isValid())return c.invalidDate||Y;var m=a||"YYYY-MM-DDTHH:mm:ssZ",f=x.z(this),v=this.$H,b=this.$m,T=this.$M,M=c.weekdays,C=c.months,J=c.meridiem,W=function(A,z,ne,de){return A&&(A[z]||A(d,m))||ne[z].slice(0,de)},re=function(A){return x.s(v%12||12,A,"0")},P=J||function(A,z,ne){var de=A<12?"AM":"PM";return ne?de.toLowerCase():de};return m.replace(ee,function(A,z){return z||function(ne){switch(ne){case"YY":return String(d.$y).slice(-2);case"YYYY":return x.s(d.$y,4,"0");case"M":return T+1;case"MM":return x.s(T+1,2,"0");case"MMM":return W(c.monthsShort,T,C,3);case"MMMM":return W(C,T);case"D":return d.$D;case"DD":return x.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return W(c.weekdaysMin,d.$W,M,2);case"ddd":return W(c.weekdaysShort,d.$W,M,3);case"dddd":return M[d.$W];case"H":return String(v);case"HH":return x.s(v,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return P(v,b,!0);case"A":return P(v,b,!1);case"m":return String(b);case"mm":return x.s(b,2,"0");case"s":return String(d.$s);case"ss":return x.s(d.$s,2,"0");case"SSS":return x.s(d.$ms,3,"0");case"Z":return f}return null}(A)||f.replace(":","")})},l.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},l.diff=function(a,d,c){var m,f=this,v=x.p(d),b=_(a),T=(b.utcOffset()-this.utcOffset())*r,M=this-b,C=function(){return x.m(f,b)};switch(v){case D:m=C()/12;break;case $:m=C();break;case j:m=C()/3;break;case y:m=(M-T)/6048e5;break;case p:m=(M-T)/864e5;break;case g:m=M/o;break;case u:m=M/r;break;case s:m=M/i;break;default:m=M}return c?m:x.a(m)},l.daysInMonth=function(){return this.endOf($).$D},l.$locale=function(){return O[this.$L]},l.locale=function(a,d){if(!a)return this.$L;var c=this.clone(),m=ce(a,d,!0);return m&&(c.$L=m),c},l.clone=function(){return x.w(this.$d,this)},l.toDate=function(){return new Date(this.valueOf())},l.toJSON=function(){return this.isValid()?this.toISOString():null},l.toISOString=function(){return this.$d.toISOString()},l.toString=function(){return this.$d.toUTCString()},h}(),_e=le.prototype;return _.prototype=_e,[["$ms",n],["$s",s],["$m",u],["$H",g],["$W",p],["$M",$],["$y",D],["$D",R]].forEach(function(h){_e[h[1]]=function(l){return this.$g(l,h[0],h[1])}}),_.extend=function(h,l){return h.$i||(h(l,le,_),h.$i=!0),_},_.locale=ce,_.isDayjs=B,_.unix=function(h){return _(1e3*h)},_.en=O[S],_.Ls=O,_.p={},_})}(me)),me.exports}var Ee=Ue();const K=ye(Ee);var fe={exports:{}},Ye=fe.exports,Me;function qe(){return Me||(Me=1,function(e,t){(function(i,r){e.exports=r()})(Ye,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(i){var r=["th","st","nd","rd"],o=i%100;return"["+i+(r[(o-20)%10]||r[o]||r[0])+"]"}}})}(fe)),fe.exports}var Be=qe();const We=ye(Be);var ge={exports:{}},Pe=ge.exports,Se;function He(){return Se||(Se=1,function(e,t){(function(i,r){e.exports=r()})(Pe,function(){return function(i,r,o){i=i||{};var n=r.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function u(p,y,$,j){return n.fromToBase(p,y,$,j)}o.en.relativeTime=s,n.fromToBase=function(p,y,$,j,D){for(var R,Y,X,ee=$.$locale().relativeTime||s,te=i.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],ie=te.length,q=0;q<ie;q+=1){var S=te[q];S.d&&(R=j?o(p).diff($,S.d,!0):$.diff(p,S.d,!0));var O=(i.rounding||Math.round)(Math.abs(R));if(X=R>0,O<=S.r||!S.r){O<=1&&q>0&&(S=te[q-1]);var V=ee[S.l];D&&(O=D(""+O)),Y=typeof V=="string"?V.replace("%d",O):V(O,y,S.l,X);break}}if(y)return Y;var B=X?ee.future:ee.past;return typeof B=="function"?B(Y):B.replace("%s",Y)},n.to=function(p,y){return u(p,y,this,!0)},n.from=function(p,y){return u(p,y,this)};var g=function(p){return p.$u?o.utc():o()};n.toNow=function(p){return this.to(g(this),p)},n.fromNow=function(p){return this.from(g(this),p)}}})}(ge)),ge.exports}var Ge=He();const Ve=ye(Ge);var we={exports:{}},Je=we.exports,Oe;function Ze(){return Oe||(Oe=1,function(e,t){(function(i,r){e.exports=r()})(Je,function(){return function(i,r,o){o.updateLocale=function(n,s){var u=o.Ls[n];if(u)return(s?Object.keys(s):[]).forEach(function(g){u[g]=s[g]}),u}}})}(we)),we.exports}var Ke=Ze();const Qe=ye(Ke);K.extend(Ve);K.extend(Qe);const Xe={...We,name:"en-web3-modal",relativeTime:{future:"in %s",past:"%s ago",s:"%d sec",m:"1 min",mm:"%d min",h:"1 hr",hh:"%d hrs",d:"1 d",dd:"%d d",M:"1 mo",MM:"%d mo",y:"1 yr",yy:"%d yr"}},et=["January","February","March","April","May","June","July","August","September","October","November","December"];K.locale("en-web3-modal",Xe);const $e={getMonthNameByIndex(e){return et[e]},getYear(e=new Date().toISOString()){return K(e).year()},getRelativeDateFromNow(e){return K(e).locale("en-web3-modal").fromNow(!0)},formatDate(e,t="DD MMM"){return K(e).format(t)}},tt=3,he=.1,it=["receive","deposit","borrow","claim"],rt=["withdraw","repay","burn"],Z={getTransactionGroupTitle(e,t){const i=$e.getYear(),r=$e.getMonthNameByIndex(t);return e===i?r:`${r} ${e}`},getTransactionImages(e){const[t]=e;return(e==null?void 0:e.length)>1?e.map(r=>this.getTransactionImage(r)):[this.getTransactionImage(t)]},getTransactionImage(e){return{type:Z.getTransactionTransferTokenType(e),url:Z.getTransactionImageURL(e)}},getTransactionImageURL(e){var o,n,s,u,g;let t;const i=!!(e!=null&&e.nft_info),r=!!(e!=null&&e.fungible_info);return e&&i?t=(s=(n=(o=e==null?void 0:e.nft_info)==null?void 0:o.content)==null?void 0:n.preview)==null?void 0:s.url:e&&r&&(t=(g=(u=e==null?void 0:e.fungible_info)==null?void 0:u.icon)==null?void 0:g.url),t},getTransactionTransferTokenType(e){if(e!=null&&e.fungible_info)return"FUNGIBLE";if(e!=null&&e.nft_info)return"NFT"},getTransactionDescriptions(e,t){var j;const i=(j=e==null?void 0:e.metadata)==null?void 0:j.operationType,r=t||(e==null?void 0:e.transfers),o=r&&r.length>0,n=r&&r.length>1,s=o&&r.every(D=>!!(D!=null&&D.fungible_info)),[u,g]=r||[];let p=this.getTransferDescription(u),y=this.getTransferDescription(g);if(!o)return(i==="send"||i==="receive")&&s?(p=Te.getTruncateString({string:e==null?void 0:e.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),y=Te.getTruncateString({string:e==null?void 0:e.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"}),[p,y]):[e.metadata.status];if(n)return r==null?void 0:r.map(D=>this.getTransferDescription(D));let $="";return it.includes(i)?$="+":rt.includes(i)&&($="-"),p=$.concat(p),[p]},getTransferDescription(e){var i;let t="";return e&&(e!=null&&e.nft_info?t=((i=e==null?void 0:e.nft_info)==null?void 0:i.name)||"-":e!=null&&e.fungible_info&&(t=this.getFungibleTransferDescription(e)||"-")),t},getFungibleTransferDescription(e){var r;return e?[this.getQuantityFixedValue(e==null?void 0:e.quantity.numeric),(r=e==null?void 0:e.fungible_info)==null?void 0:r.symbol].join(" ").trim():null},mergeTransfers(e){if((e==null?void 0:e.length)<=1)return e;const i=this.filterGasFeeTransfers(e).reduce((o,n)=>{var g;const s=(g=n==null?void 0:n.fungible_info)==null?void 0:g.name,u=o.find(({fungible_info:p,direction:y})=>s&&s===(p==null?void 0:p.name)&&y===n.direction);if(u){const p=Number(u.quantity.numeric)+Number(n.quantity.numeric);u.quantity.numeric=p.toString(),u.value=(u.value||0)+(n.value||0)}else o.push(n);return o},[]);let r=i;return i.length>2&&(r=i.sort((o,n)=>(n.value||0)-(o.value||0)).slice(0,2)),r=r.sort((o,n)=>o.direction==="out"&&n.direction==="in"?-1:o.direction==="in"&&n.direction==="out"?1:0),r},filterGasFeeTransfers(e){const t=e==null?void 0:e.reduce((r,o)=>{var s;const n=(s=o==null?void 0:o.fungible_info)==null?void 0:s.name;return n&&(r[n]||(r[n]=[]),r[n].push(o)),r},{}),i=[];return Object.values(t??{}).forEach(r=>{if(r.length===1){const o=r[0];o&&i.push(o)}else{const o=r.filter(s=>s.direction==="in"),n=r.filter(s=>s.direction==="out");if(o.length===1&&n.length===1){const s=o[0],u=n[0];let g=!1;if(s&&u){const p=Number(s.quantity.numeric),y=Number(u.quantity.numeric);y<p*he?(i.push(s),g=!0):p<y*he&&(i.push(u),g=!0)}g||i.push(...r)}else{const s=this.filterGasFeesFromTokenGroup(r);i.push(...s)}}}),e==null||e.forEach(r=>{var o;(o=r==null?void 0:r.fungible_info)!=null&&o.name||i.push(r)}),i},filterGasFeesFromTokenGroup(e){if(e.length<=1)return e;const t=e==null?void 0:e.map(u=>Number(u.quantity.numeric)),i=Math.max(...t),r=Math.min(...t),o=.01;if(r<i*o)return e==null?void 0:e.filter(g=>Number(g.quantity.numeric)>=i*o);const n=e==null?void 0:e.filter(u=>u.direction==="in"),s=e==null?void 0:e.filter(u=>u.direction==="out");if(n.length===1&&s.length===1){const u=n[0],g=s[0];if(u&&g){const p=Number(u.quantity.numeric),y=Number(g.quantity.numeric);if(y<p*he)return[u];if(p<y*he)return[g]}}return e},getQuantityFixedValue(e){return e?parseFloat(e).toFixed(tt):null}};var be;(function(e){e.approve="approved",e.bought="bought",e.borrow="borrowed",e.burn="burnt",e.cancel="canceled",e.claim="claimed",e.deploy="deployed",e.deposit="deposited",e.execute="executed",e.mint="minted",e.receive="received",e.repay="repaid",e.send="sent",e.sell="sold",e.stake="staked",e.trade="swapped",e.unstake="unstaked",e.withdraw="withdrawn"})(be||(be={}));const nt=oe`
|
|
1
|
+
import{d as oe,i as se,h as w,r as Ce}from"./index-B2qqxEZl.js";import{U as Te,n as I,r as Q,c as ae}from"./index-m1gWd9HT.js";import{g as ye}from"./thirdweb-BdvHtoLc.js";import"./index-h6i4u6IV.js";import"./index-D4hj-MW3.js";import{o as Fe}from"./if-defined-C5UymspQ.js";import"./index-D0AFTGOC.js";import"./index-CB-1Rn6p.js";import{C as pe,H as F,a as xe,R as Re,O as Ne,E as Le,e as je,W as ke}from"./W3MFrameProviderSingleton-HZSGN_a5.js";var me={exports:{}},ze=me.exports,Ie;function Ue(){return Ie||(Ie=1,function(e,t){(function(i,r){e.exports=r()})(ze,function(){var i=1e3,r=6e4,o=36e5,n="millisecond",s="second",u="minute",g="hour",p="day",y="week",$="month",j="quarter",D="year",R="date",Y="Invalid Date",X=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ee=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,te={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(h){var l=["th","st","nd","rd"],a=h%100;return"["+h+(l[(a-20)%10]||l[a]||l[0])+"]"}},ie=function(h,l,a){var d=String(h);return!d||d.length>=l?h:""+Array(l+1-d.length).join(a)+h},q={s:ie,z:function(h){var l=-h.utcOffset(),a=Math.abs(l),d=Math.floor(a/60),c=a%60;return(l<=0?"+":"-")+ie(d,2,"0")+":"+ie(c,2,"0")},m:function h(l,a){if(l.date()<a.date())return-h(a,l);var d=12*(a.year()-l.year())+(a.month()-l.month()),c=l.clone().add(d,$),m=a-c<0,f=l.clone().add(d+(m?-1:1),$);return+(-(d+(a-c)/(m?c-f:f-c))||0)},a:function(h){return h<0?Math.ceil(h)||0:Math.floor(h)},p:function(h){return{M:$,y:D,w:y,d:p,D:R,h:g,m:u,s,ms:n,Q:j}[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(h){return h===void 0}},S="en",O={};O[S]=te;var V="$isDayjsObject",B=function(h){return h instanceof le||!(!h||!h[V])},ce=function h(l,a,d){var c;if(!l)return S;if(typeof l=="string"){var m=l.toLowerCase();O[m]&&(c=m),a&&(O[m]=a,c=m);var f=l.split("-");if(!c&&f.length>1)return h(f[0])}else{var v=l.name;O[v]=l,c=v}return!d&&c&&(S=c),c||!d&&S},_=function(h,l){if(B(h))return h.clone();var a=typeof l=="object"?l:{};return a.date=h,a.args=arguments,new le(a)},x=q;x.l=ce,x.i=B,x.w=function(h,l){return _(h,{locale:l.$L,utc:l.$u,x:l.$x,$offset:l.$offset})};var le=function(){function h(a){this.$L=ce(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[V]=!0}var l=h.prototype;return l.parse=function(a){this.$d=function(d){var c=d.date,m=d.utc;if(c===null)return new Date(NaN);if(x.u(c))return new Date;if(c instanceof Date)return new Date(c);if(typeof c=="string"&&!/Z$/i.test(c)){var f=c.match(X);if(f){var v=f[2]-1||0,b=(f[7]||"0").substring(0,3);return m?new Date(Date.UTC(f[1],v,f[3]||1,f[4]||0,f[5]||0,f[6]||0,b)):new Date(f[1],v,f[3]||1,f[4]||0,f[5]||0,f[6]||0,b)}}return new Date(c)}(a),this.init()},l.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},l.$utils=function(){return x},l.isValid=function(){return this.$d.toString()!==Y},l.isSame=function(a,d){var c=_(a);return this.startOf(d)<=c&&c<=this.endOf(d)},l.isAfter=function(a,d){return _(a)<this.startOf(d)},l.isBefore=function(a,d){return this.endOf(d)<_(a)},l.$g=function(a,d,c){return x.u(a)?this[d]:this.set(c,a)},l.unix=function(){return Math.floor(this.valueOf()/1e3)},l.valueOf=function(){return this.$d.getTime()},l.startOf=function(a,d){var c=this,m=!!x.u(d)||d,f=x.p(a),v=function(P,A){var z=x.w(c.$u?Date.UTC(c.$y,A,P):new Date(c.$y,A,P),c);return m?z:z.endOf(p)},b=function(P,A){return x.w(c.toDate()[P].apply(c.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(A)),c)},T=this.$W,M=this.$M,C=this.$D,J="set"+(this.$u?"UTC":"");switch(f){case D:return m?v(1,0):v(31,11);case $:return m?v(1,M):v(0,M+1);case y:var W=this.$locale().weekStart||0,re=(T<W?T+7:T)-W;return v(m?C-re:C+(6-re),M);case p:case R:return b(J+"Hours",0);case g:return b(J+"Minutes",1);case u:return b(J+"Seconds",2);case s:return b(J+"Milliseconds",3);default:return this.clone()}},l.endOf=function(a){return this.startOf(a,!1)},l.$set=function(a,d){var c,m=x.p(a),f="set"+(this.$u?"UTC":""),v=(c={},c[p]=f+"Date",c[R]=f+"Date",c[$]=f+"Month",c[D]=f+"FullYear",c[g]=f+"Hours",c[u]=f+"Minutes",c[s]=f+"Seconds",c[n]=f+"Milliseconds",c)[m],b=m===p?this.$D+(d-this.$W):d;if(m===$||m===D){var T=this.clone().set(R,1);T.$d[v](b),T.init(),this.$d=T.set(R,Math.min(this.$D,T.daysInMonth())).$d}else v&&this.$d[v](b);return this.init(),this},l.set=function(a,d){return this.clone().$set(a,d)},l.get=function(a){return this[x.p(a)]()},l.add=function(a,d){var c,m=this;a=Number(a);var f=x.p(d),v=function(M){var C=_(m);return x.w(C.date(C.date()+Math.round(M*a)),m)};if(f===$)return this.set($,this.$M+a);if(f===D)return this.set(D,this.$y+a);if(f===p)return v(1);if(f===y)return v(7);var b=(c={},c[u]=r,c[g]=o,c[s]=i,c)[f]||1,T=this.$d.getTime()+a*b;return x.w(T,this)},l.subtract=function(a,d){return this.add(-1*a,d)},l.format=function(a){var d=this,c=this.$locale();if(!this.isValid())return c.invalidDate||Y;var m=a||"YYYY-MM-DDTHH:mm:ssZ",f=x.z(this),v=this.$H,b=this.$m,T=this.$M,M=c.weekdays,C=c.months,J=c.meridiem,W=function(A,z,ne,de){return A&&(A[z]||A(d,m))||ne[z].slice(0,de)},re=function(A){return x.s(v%12||12,A,"0")},P=J||function(A,z,ne){var de=A<12?"AM":"PM";return ne?de.toLowerCase():de};return m.replace(ee,function(A,z){return z||function(ne){switch(ne){case"YY":return String(d.$y).slice(-2);case"YYYY":return x.s(d.$y,4,"0");case"M":return T+1;case"MM":return x.s(T+1,2,"0");case"MMM":return W(c.monthsShort,T,C,3);case"MMMM":return W(C,T);case"D":return d.$D;case"DD":return x.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return W(c.weekdaysMin,d.$W,M,2);case"ddd":return W(c.weekdaysShort,d.$W,M,3);case"dddd":return M[d.$W];case"H":return String(v);case"HH":return x.s(v,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return P(v,b,!0);case"A":return P(v,b,!1);case"m":return String(b);case"mm":return x.s(b,2,"0");case"s":return String(d.$s);case"ss":return x.s(d.$s,2,"0");case"SSS":return x.s(d.$ms,3,"0");case"Z":return f}return null}(A)||f.replace(":","")})},l.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},l.diff=function(a,d,c){var m,f=this,v=x.p(d),b=_(a),T=(b.utcOffset()-this.utcOffset())*r,M=this-b,C=function(){return x.m(f,b)};switch(v){case D:m=C()/12;break;case $:m=C();break;case j:m=C()/3;break;case y:m=(M-T)/6048e5;break;case p:m=(M-T)/864e5;break;case g:m=M/o;break;case u:m=M/r;break;case s:m=M/i;break;default:m=M}return c?m:x.a(m)},l.daysInMonth=function(){return this.endOf($).$D},l.$locale=function(){return O[this.$L]},l.locale=function(a,d){if(!a)return this.$L;var c=this.clone(),m=ce(a,d,!0);return m&&(c.$L=m),c},l.clone=function(){return x.w(this.$d,this)},l.toDate=function(){return new Date(this.valueOf())},l.toJSON=function(){return this.isValid()?this.toISOString():null},l.toISOString=function(){return this.$d.toISOString()},l.toString=function(){return this.$d.toUTCString()},h}(),_e=le.prototype;return _.prototype=_e,[["$ms",n],["$s",s],["$m",u],["$H",g],["$W",p],["$M",$],["$y",D],["$D",R]].forEach(function(h){_e[h[1]]=function(l){return this.$g(l,h[0],h[1])}}),_.extend=function(h,l){return h.$i||(h(l,le,_),h.$i=!0),_},_.locale=ce,_.isDayjs=B,_.unix=function(h){return _(1e3*h)},_.en=O[S],_.Ls=O,_.p={},_})}(me)),me.exports}var Ee=Ue();const K=ye(Ee);var fe={exports:{}},Ye=fe.exports,Me;function qe(){return Me||(Me=1,function(e,t){(function(i,r){e.exports=r()})(Ye,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(i){var r=["th","st","nd","rd"],o=i%100;return"["+i+(r[(o-20)%10]||r[o]||r[0])+"]"}}})}(fe)),fe.exports}var Be=qe();const We=ye(Be);var ge={exports:{}},Pe=ge.exports,Se;function He(){return Se||(Se=1,function(e,t){(function(i,r){e.exports=r()})(Pe,function(){return function(i,r,o){i=i||{};var n=r.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function u(p,y,$,j){return n.fromToBase(p,y,$,j)}o.en.relativeTime=s,n.fromToBase=function(p,y,$,j,D){for(var R,Y,X,ee=$.$locale().relativeTime||s,te=i.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],ie=te.length,q=0;q<ie;q+=1){var S=te[q];S.d&&(R=j?o(p).diff($,S.d,!0):$.diff(p,S.d,!0));var O=(i.rounding||Math.round)(Math.abs(R));if(X=R>0,O<=S.r||!S.r){O<=1&&q>0&&(S=te[q-1]);var V=ee[S.l];D&&(O=D(""+O)),Y=typeof V=="string"?V.replace("%d",O):V(O,y,S.l,X);break}}if(y)return Y;var B=X?ee.future:ee.past;return typeof B=="function"?B(Y):B.replace("%s",Y)},n.to=function(p,y){return u(p,y,this,!0)},n.from=function(p,y){return u(p,y,this)};var g=function(p){return p.$u?o.utc():o()};n.toNow=function(p){return this.to(g(this),p)},n.fromNow=function(p){return this.from(g(this),p)}}})}(ge)),ge.exports}var Ge=He();const Ve=ye(Ge);var we={exports:{}},Je=we.exports,Oe;function Ze(){return Oe||(Oe=1,function(e,t){(function(i,r){e.exports=r()})(Je,function(){return function(i,r,o){o.updateLocale=function(n,s){var u=o.Ls[n];if(u)return(s?Object.keys(s):[]).forEach(function(g){u[g]=s[g]}),u}}})}(we)),we.exports}var Ke=Ze();const Qe=ye(Ke);K.extend(Ve);K.extend(Qe);const Xe={...We,name:"en-web3-modal",relativeTime:{future:"in %s",past:"%s ago",s:"%d sec",m:"1 min",mm:"%d min",h:"1 hr",hh:"%d hrs",d:"1 d",dd:"%d d",M:"1 mo",MM:"%d mo",y:"1 yr",yy:"%d yr"}},et=["January","February","March","April","May","June","July","August","September","October","November","December"];K.locale("en-web3-modal",Xe);const $e={getMonthNameByIndex(e){return et[e]},getYear(e=new Date().toISOString()){return K(e).year()},getRelativeDateFromNow(e){return K(e).locale("en-web3-modal").fromNow(!0)},formatDate(e,t="DD MMM"){return K(e).format(t)}},tt=3,he=.1,it=["receive","deposit","borrow","claim"],rt=["withdraw","repay","burn"],Z={getTransactionGroupTitle(e,t){const i=$e.getYear(),r=$e.getMonthNameByIndex(t);return e===i?r:`${r} ${e}`},getTransactionImages(e){const[t]=e;return(e==null?void 0:e.length)>1?e.map(r=>this.getTransactionImage(r)):[this.getTransactionImage(t)]},getTransactionImage(e){return{type:Z.getTransactionTransferTokenType(e),url:Z.getTransactionImageURL(e)}},getTransactionImageURL(e){var o,n,s,u,g;let t;const i=!!(e!=null&&e.nft_info),r=!!(e!=null&&e.fungible_info);return e&&i?t=(s=(n=(o=e==null?void 0:e.nft_info)==null?void 0:o.content)==null?void 0:n.preview)==null?void 0:s.url:e&&r&&(t=(g=(u=e==null?void 0:e.fungible_info)==null?void 0:u.icon)==null?void 0:g.url),t},getTransactionTransferTokenType(e){if(e!=null&&e.fungible_info)return"FUNGIBLE";if(e!=null&&e.nft_info)return"NFT"},getTransactionDescriptions(e,t){var j;const i=(j=e==null?void 0:e.metadata)==null?void 0:j.operationType,r=t||(e==null?void 0:e.transfers),o=r&&r.length>0,n=r&&r.length>1,s=o&&r.every(D=>!!(D!=null&&D.fungible_info)),[u,g]=r||[];let p=this.getTransferDescription(u),y=this.getTransferDescription(g);if(!o)return(i==="send"||i==="receive")&&s?(p=Te.getTruncateString({string:e==null?void 0:e.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),y=Te.getTruncateString({string:e==null?void 0:e.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"}),[p,y]):[e.metadata.status];if(n)return r==null?void 0:r.map(D=>this.getTransferDescription(D));let $="";return it.includes(i)?$="+":rt.includes(i)&&($="-"),p=$.concat(p),[p]},getTransferDescription(e){var i;let t="";return e&&(e!=null&&e.nft_info?t=((i=e==null?void 0:e.nft_info)==null?void 0:i.name)||"-":e!=null&&e.fungible_info&&(t=this.getFungibleTransferDescription(e)||"-")),t},getFungibleTransferDescription(e){var r;return e?[this.getQuantityFixedValue(e==null?void 0:e.quantity.numeric),(r=e==null?void 0:e.fungible_info)==null?void 0:r.symbol].join(" ").trim():null},mergeTransfers(e){if((e==null?void 0:e.length)<=1)return e;const i=this.filterGasFeeTransfers(e).reduce((o,n)=>{var g;const s=(g=n==null?void 0:n.fungible_info)==null?void 0:g.name,u=o.find(({fungible_info:p,direction:y})=>s&&s===(p==null?void 0:p.name)&&y===n.direction);if(u){const p=Number(u.quantity.numeric)+Number(n.quantity.numeric);u.quantity.numeric=p.toString(),u.value=(u.value||0)+(n.value||0)}else o.push(n);return o},[]);let r=i;return i.length>2&&(r=i.sort((o,n)=>(n.value||0)-(o.value||0)).slice(0,2)),r=r.sort((o,n)=>o.direction==="out"&&n.direction==="in"?-1:o.direction==="in"&&n.direction==="out"?1:0),r},filterGasFeeTransfers(e){const t=e==null?void 0:e.reduce((r,o)=>{var s;const n=(s=o==null?void 0:o.fungible_info)==null?void 0:s.name;return n&&(r[n]||(r[n]=[]),r[n].push(o)),r},{}),i=[];return Object.values(t??{}).forEach(r=>{if(r.length===1){const o=r[0];o&&i.push(o)}else{const o=r.filter(s=>s.direction==="in"),n=r.filter(s=>s.direction==="out");if(o.length===1&&n.length===1){const s=o[0],u=n[0];let g=!1;if(s&&u){const p=Number(s.quantity.numeric),y=Number(u.quantity.numeric);y<p*he?(i.push(s),g=!0):p<y*he&&(i.push(u),g=!0)}g||i.push(...r)}else{const s=this.filterGasFeesFromTokenGroup(r);i.push(...s)}}}),e==null||e.forEach(r=>{var o;(o=r==null?void 0:r.fungible_info)!=null&&o.name||i.push(r)}),i},filterGasFeesFromTokenGroup(e){if(e.length<=1)return e;const t=e==null?void 0:e.map(u=>Number(u.quantity.numeric)),i=Math.max(...t),r=Math.min(...t),o=.01;if(r<i*o)return e==null?void 0:e.filter(g=>Number(g.quantity.numeric)>=i*o);const n=e==null?void 0:e.filter(u=>u.direction==="in"),s=e==null?void 0:e.filter(u=>u.direction==="out");if(n.length===1&&s.length===1){const u=n[0],g=s[0];if(u&&g){const p=Number(u.quantity.numeric),y=Number(g.quantity.numeric);if(y<p*he)return[u];if(p<y*he)return[g]}}return e},getQuantityFixedValue(e){return e?parseFloat(e).toFixed(tt):null}};var be;(function(e){e.approve="approved",e.bought="bought",e.borrow="borrowed",e.burn="burnt",e.cancel="canceled",e.claim="claimed",e.deploy="deployed",e.deposit="deposited",e.execute="executed",e.mint="minted",e.receive="received",e.repay="repaid",e.send="sent",e.sell="sold",e.stake="staked",e.trade="swapped",e.unstake="unstaked",e.withdraw="withdrawn"})(be||(be={}));const nt=oe`
|
|
2
2
|
:host > wui-flex {
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var To=Object.defineProperty;var Oo=(e,r,t)=>r in e?To(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var Ce=(e,r,t)=>Oo(e,typeof r!="symbol"?r+"":r,t);import{a as Lo,j as Po}from"./index-Db0dbl2b.js";import{c as Fr,g as Ho}from"./thirdweb-C1sPVgqC.js";import{f as Mo,r as No}from"./ui-pqaIrop_.js";import"./vendor-DmfjABXs.js";var Be={exports:{}},be={exports:{}},Uo=be.exports,yt;function N(){return yt||(yt=1,function(e,r){(function(t,n){e.exports=n()})(Uo,function(){var t=t||function(n,o){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof Fr<"u"&&Fr.crypto&&(a=Fr.crypto),!a&&typeof Mo=="function")try{a=No()}catch{}var x=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||function(){function p(){}return function(g){var E;return p.prototype=g,E=new p,p.prototype=null,E}}(),d={},i=d.lib={},s=i.Base=function(){return{extend:function(p){var g=u(this);return p&&g.mixIn(p),(!g.hasOwnProperty("init")||this.init===g.init)&&(g.init=function(){g.$super.init.apply(this,arguments)}),g.init.prototype=g,g.$super=this,g},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var g in p)p.hasOwnProperty(g)&&(this[g]=p[g]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=i.WordArray=s.extend({init:function(p,g){p=this.words=p||[],g!=o?this.sigBytes=g:this.sigBytes=p.length*4},toString:function(p){return(p||l).stringify(this)},concat:function(p){var g=this.words,E=p.words,B=this.sigBytes,A=p.sigBytes;if(this.clamp(),B%4)for(var _=0;_<A;_++){var D=E[_>>>2]>>>24-_%4*8&255;g[B+_>>>2]|=D<<24-(B+_)%4*8}else for(var T=0;T<A;T+=4)g[B+T>>>2]=E[T>>>2];return this.sigBytes+=A,this},clamp:function(){var p=this.words,g=this.sigBytes;p[g>>>2]&=4294967295<<32-g%4*8,p.length=n.ceil(g/4)},clone:function(){var p=s.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var g=[],E=0;E<p;E+=4)g.push(x());return new f.init(g,p)}}),c=d.enc={},l=c.Hex={stringify:function(p){for(var g=p.words,E=p.sigBytes,B=[],A=0;A<E;A++){var _=g[A>>>2]>>>24-A%4*8&255;B.push((_>>>4).toString(16)),B.push((_&15).toString(16))}return B.join("")},parse:function(p){for(var g=p.length,E=[],B=0;B<g;B+=2)E[B>>>3]|=parseInt(p.substr(B,2),16)<<24-B%8*4;return new f.init(E,g/2)}},v=c.Latin1={stringify:function(p){for(var g=p.words,E=p.sigBytes,B=[],A=0;A<E;A++){var _=g[A>>>2]>>>24-A%4*8&255;B.push(String.fromCharCode(_))}return B.join("")},parse:function(p){for(var g=p.length,E=[],B=0;B<g;B++)E[B>>>2]|=(p.charCodeAt(B)&255)<<24-B%4*8;return new f.init(E,g)}},h=c.Utf8={stringify:function(p){try{return decodeURIComponent(escape(v.stringify(p)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(p){return v.parse(unescape(encodeURIComponent(p)))}},C=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=h.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var g,E=this._data,B=E.words,A=E.sigBytes,_=this.blockSize,D=_*4,T=A/D;p?T=n.ceil(T):T=n.max((T|0)-this._minBufferSize,0);var y=T*_,b=n.min(y*4,A);if(y){for(var S=0;S<y;S+=_)this._doProcessBlock(B,S);g=B.splice(0,y),E.sigBytes-=b}return new f.init(g,b)},clone:function(){var p=s.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0});i.Hasher=C.extend({cfg:s.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){C.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var g=this._doFinalize();return g},blockSize:16,_createHelper:function(p){return function(g,E){return new p.init(E).finalize(g)}},_createHmacHelper:function(p){return function(g,E){return new m.HMAC.init(p,E).finalize(g)}}});var m=d.algo={};return d}(Math);return t})}(be)),be.exports}var De={exports:{}},qo=De.exports,At;function mr(){return At||(At=1,function(e,r){(function(t,n){e.exports=n(N())})(qo,function(t){return function(n){var o=t,a=o.lib,x=a.Base,u=a.WordArray,d=o.x64={};d.Word=x.extend({init:function(i,s){this.high=i,this.low=s}}),d.WordArray=x.extend({init:function(i,s){i=this.words=i||[],s!=n?this.sigBytes=s:this.sigBytes=i.length*8},toX32:function(){for(var i=this.words,s=i.length,f=[],c=0;c<s;c++){var l=i[c];f.push(l.high),f.push(l.low)}return u.create(f,this.sigBytes)},clone:function(){for(var i=x.clone.call(this),s=i.words=this.words.slice(0),f=s.length,c=0;c<f;c++)s[c]=s[c].clone();return i}})}(),t})}(De)),De.exports}var Fe={exports:{}},zo=Fe.exports,Bt;function Go(){return Bt||(Bt=1,function(e,r){(function(t,n){e.exports=n(N())})(zo,function(t){return function(){if(typeof ArrayBuffer=="function"){var n=t,o=n.lib,a=o.WordArray,x=a.init,u=a.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var i=d.byteLength,s=[],f=0;f<i;f++)s[f>>>2]|=d[f]<<24-f%4*8;x.call(this,s,i)}else x.apply(this,arguments)};u.prototype=a}}(),t.lib.WordArray})}(Fe)),Fe.exports}var Se={exports:{}},Wo=Se.exports,bt;function $o(){return bt||(bt=1,function(e,r){(function(t,n){e.exports=n(N())})(Wo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Utf16=x.Utf16BE={stringify:function(d){for(var i=d.words,s=d.sigBytes,f=[],c=0;c<s;c+=2){var l=i[c>>>2]>>>16-c%4*8&65535;f.push(String.fromCharCode(l))}return f.join("")},parse:function(d){for(var i=d.length,s=[],f=0;f<i;f++)s[f>>>1]|=d.charCodeAt(f)<<16-f%2*16;return a.create(s,i*2)}},x.Utf16LE={stringify:function(d){for(var i=d.words,s=d.sigBytes,f=[],c=0;c<s;c+=2){var l=u(i[c>>>2]>>>16-c%4*8&65535);f.push(String.fromCharCode(l))}return f.join("")},parse:function(d){for(var i=d.length,s=[],f=0;f<i;f++)s[f>>>1]|=u(d.charCodeAt(f)<<16-f%2*16);return a.create(s,i*2)}};function u(d){return d<<8&4278255360|d>>>8&16711935}}(),t.enc.Utf16})}(Se)),Se.exports}var we={exports:{}},jo=we.exports,Dt;function I0(){return Dt||(Dt=1,function(e,r){(function(t,n){e.exports=n(N())})(jo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Base64={stringify:function(d){var i=d.words,s=d.sigBytes,f=this._map;d.clamp();for(var c=[],l=0;l<s;l+=3)for(var v=i[l>>>2]>>>24-l%4*8&255,h=i[l+1>>>2]>>>24-(l+1)%4*8&255,C=i[l+2>>>2]>>>24-(l+2)%4*8&255,m=v<<16|h<<8|C,p=0;p<4&&l+p*.75<s;p++)c.push(f.charAt(m>>>6*(3-p)&63));var g=f.charAt(64);if(g)for(;c.length%4;)c.push(g);return c.join("")},parse:function(d){var i=d.length,s=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var c=0;c<s.length;c++)f[s.charCodeAt(c)]=c}var l=s.charAt(64);if(l){var v=d.indexOf(l);v!==-1&&(i=v)}return u(d,i,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(d,i,s){for(var f=[],c=0,l=0;l<i;l++)if(l%4){var v=s[d.charCodeAt(l-1)]<<l%4*2,h=s[d.charCodeAt(l)]>>>6-l%4*2,C=v|h;f[c>>>2]|=C<<24-c%4*8,c++}return a.create(f,c)}}(),t.enc.Base64})}(we)),we.exports}var ke={exports:{}},Vo=ke.exports,Ft;function Ko(){return Ft||(Ft=1,function(e,r){(function(t,n){e.exports=n(N())})(Vo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Base64url={stringify:function(d,i){i===void 0&&(i=!0);var s=d.words,f=d.sigBytes,c=i?this._safe_map:this._map;d.clamp();for(var l=[],v=0;v<f;v+=3)for(var h=s[v>>>2]>>>24-v%4*8&255,C=s[v+1>>>2]>>>24-(v+1)%4*8&255,m=s[v+2>>>2]>>>24-(v+2)%4*8&255,p=h<<16|C<<8|m,g=0;g<4&&v+g*.75<f;g++)l.push(c.charAt(p>>>6*(3-g)&63));var E=c.charAt(64);if(E)for(;l.length%4;)l.push(E);return l.join("")},parse:function(d,i){i===void 0&&(i=!0);var s=d.length,f=i?this._safe_map:this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var l=0;l<f.length;l++)c[f.charCodeAt(l)]=l}var v=f.charAt(64);if(v){var h=d.indexOf(v);h!==-1&&(s=h)}return u(d,s,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function u(d,i,s){for(var f=[],c=0,l=0;l<i;l++)if(l%4){var v=s[d.charCodeAt(l-1)]<<l%4*2,h=s[d.charCodeAt(l)]>>>6-l%4*2,C=v|h;f[c>>>2]|=C<<24-c%4*8,c++}return a.create(f,c)}}(),t.enc.Base64url})}(ke)),ke.exports}var Re={exports:{}},Xo=Re.exports,St;function T0(){return St||(St=1,function(e,r){(function(t,n){e.exports=n(N())})(Xo,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.algo,i=[];(function(){for(var h=0;h<64;h++)i[h]=n.abs(n.sin(h+1))*4294967296|0})();var s=d.MD5=u.extend({_doReset:function(){this._hash=new x.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,C){for(var m=0;m<16;m++){var p=C+m,g=h[p];h[p]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var E=this._hash.words,B=h[C+0],A=h[C+1],_=h[C+2],D=h[C+3],T=h[C+4],y=h[C+5],b=h[C+6],S=h[C+7],w=h[C+8],O=h[C+9],L=h[C+10],H=h[C+11],$=h[C+12],U=h[C+13],G=h[C+14],z=h[C+15],F=E[0],R=E[1],I=E[2],k=E[3];F=f(F,R,I,k,B,7,i[0]),k=f(k,F,R,I,A,12,i[1]),I=f(I,k,F,R,_,17,i[2]),R=f(R,I,k,F,D,22,i[3]),F=f(F,R,I,k,T,7,i[4]),k=f(k,F,R,I,y,12,i[5]),I=f(I,k,F,R,b,17,i[6]),R=f(R,I,k,F,S,22,i[7]),F=f(F,R,I,k,w,7,i[8]),k=f(k,F,R,I,O,12,i[9]),I=f(I,k,F,R,L,17,i[10]),R=f(R,I,k,F,H,22,i[11]),F=f(F,R,I,k,$,7,i[12]),k=f(k,F,R,I,U,12,i[13]),I=f(I,k,F,R,G,17,i[14]),R=f(R,I,k,F,z,22,i[15]),F=c(F,R,I,k,A,5,i[16]),k=c(k,F,R,I,b,9,i[17]),I=c(I,k,F,R,H,14,i[18]),R=c(R,I,k,F,B,20,i[19]),F=c(F,R,I,k,y,5,i[20]),k=c(k,F,R,I,L,9,i[21]),I=c(I,k,F,R,z,14,i[22]),R=c(R,I,k,F,T,20,i[23]),F=c(F,R,I,k,O,5,i[24]),k=c(k,F,R,I,G,9,i[25]),I=c(I,k,F,R,D,14,i[26]),R=c(R,I,k,F,w,20,i[27]),F=c(F,R,I,k,U,5,i[28]),k=c(k,F,R,I,_,9,i[29]),I=c(I,k,F,R,S,14,i[30]),R=c(R,I,k,F,$,20,i[31]),F=l(F,R,I,k,y,4,i[32]),k=l(k,F,R,I,w,11,i[33]),I=l(I,k,F,R,H,16,i[34]),R=l(R,I,k,F,G,23,i[35]),F=l(F,R,I,k,A,4,i[36]),k=l(k,F,R,I,T,11,i[37]),I=l(I,k,F,R,S,16,i[38]),R=l(R,I,k,F,L,23,i[39]),F=l(F,R,I,k,U,4,i[40]),k=l(k,F,R,I,B,11,i[41]),I=l(I,k,F,R,D,16,i[42]),R=l(R,I,k,F,b,23,i[43]),F=l(F,R,I,k,O,4,i[44]),k=l(k,F,R,I,$,11,i[45]),I=l(I,k,F,R,z,16,i[46]),R=l(R,I,k,F,_,23,i[47]),F=v(F,R,I,k,B,6,i[48]),k=v(k,F,R,I,S,10,i[49]),I=v(I,k,F,R,G,15,i[50]),R=v(R,I,k,F,y,21,i[51]),F=v(F,R,I,k,$,6,i[52]),k=v(k,F,R,I,D,10,i[53]),I=v(I,k,F,R,L,15,i[54]),R=v(R,I,k,F,A,21,i[55]),F=v(F,R,I,k,w,6,i[56]),k=v(k,F,R,I,z,10,i[57]),I=v(I,k,F,R,b,15,i[58]),R=v(R,I,k,F,U,21,i[59]),F=v(F,R,I,k,T,6,i[60]),k=v(k,F,R,I,H,10,i[61]),I=v(I,k,F,R,_,15,i[62]),R=v(R,I,k,F,O,21,i[63]),E[0]=E[0]+F|0,E[1]=E[1]+R|0,E[2]=E[2]+I|0,E[3]=E[3]+k|0},_doFinalize:function(){var h=this._data,C=h.words,m=this._nDataBytes*8,p=h.sigBytes*8;C[p>>>5]|=128<<24-p%32;var g=n.floor(m/4294967296),E=m;C[(p+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,C[(p+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,h.sigBytes=(C.length+1)*4,this._process();for(var B=this._hash,A=B.words,_=0;_<4;_++){var D=A[_];A[_]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return B},clone:function(){var h=u.clone.call(this);return h._hash=this._hash.clone(),h}});function f(h,C,m,p,g,E,B){var A=h+(C&m|~C&p)+g+B;return(A<<E|A>>>32-E)+C}function c(h,C,m,p,g,E,B){var A=h+(C&p|m&~p)+g+B;return(A<<E|A>>>32-E)+C}function l(h,C,m,p,g,E,B){var A=h+(C^m^p)+g+B;return(A<<E|A>>>32-E)+C}function v(h,C,m,p,g,E,B){var A=h+(m^(C|~p))+g+B;return(A<<E|A>>>32-E)+C}o.MD5=u._createHelper(s),o.HmacMD5=u._createHmacHelper(s)}(Math),t.MD5})}(Re)),Re.exports}var Ie={exports:{}},Yo=Ie.exports,wt;function mn(){return wt||(wt=1,function(e,r){(function(t,n){e.exports=n(N())})(Yo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=o.Hasher,u=n.algo,d=[],i=u.SHA1=x.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(s,f){for(var c=this._hash.words,l=c[0],v=c[1],h=c[2],C=c[3],m=c[4],p=0;p<80;p++){if(p<16)d[p]=s[f+p]|0;else{var g=d[p-3]^d[p-8]^d[p-14]^d[p-16];d[p]=g<<1|g>>>31}var E=(l<<5|l>>>27)+m+d[p];p<20?E+=(v&h|~v&C)+1518500249:p<40?E+=(v^h^C)+1859775393:p<60?E+=(v&h|v&C|h&C)-1894007588:E+=(v^h^C)-899497514,m=C,C=h,h=v<<30|v>>>2,v=l,l=E}c[0]=c[0]+l|0,c[1]=c[1]+v|0,c[2]=c[2]+h|0,c[3]=c[3]+C|0,c[4]=c[4]+m|0},_doFinalize:function(){var s=this._data,f=s.words,c=this._nDataBytes*8,l=s.sigBytes*8;return f[l>>>5]|=128<<24-l%32,f[(l+64>>>9<<4)+14]=Math.floor(c/4294967296),f[(l+64>>>9<<4)+15]=c,s.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var s=x.clone.call(this);return s._hash=this._hash.clone(),s}});n.SHA1=x._createHelper(i),n.HmacSHA1=x._createHmacHelper(i)}(),t.SHA1})}(Ie)),Ie.exports}var Te={exports:{}},Zo=Te.exports,kt;function Wr(){return kt||(kt=1,function(e,r){(function(t,n){e.exports=n(N())})(Zo,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.algo,i=[],s=[];(function(){function l(m){for(var p=n.sqrt(m),g=2;g<=p;g++)if(!(m%g))return!1;return!0}function v(m){return(m-(m|0))*4294967296|0}for(var h=2,C=0;C<64;)l(h)&&(C<8&&(i[C]=v(n.pow(h,1/2))),s[C]=v(n.pow(h,1/3)),C++),h++})();var f=[],c=d.SHA256=u.extend({_doReset:function(){this._hash=new x.init(i.slice(0))},_doProcessBlock:function(l,v){for(var h=this._hash.words,C=h[0],m=h[1],p=h[2],g=h[3],E=h[4],B=h[5],A=h[6],_=h[7],D=0;D<64;D++){if(D<16)f[D]=l[v+D]|0;else{var T=f[D-15],y=(T<<25|T>>>7)^(T<<14|T>>>18)^T>>>3,b=f[D-2],S=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;f[D]=y+f[D-7]+S+f[D-16]}var w=E&B^~E&A,O=C&m^C&p^m&p,L=(C<<30|C>>>2)^(C<<19|C>>>13)^(C<<10|C>>>22),H=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),$=_+H+w+s[D]+f[D],U=L+O;_=A,A=B,B=E,E=g+$|0,g=p,p=m,m=C,C=$+U|0}h[0]=h[0]+C|0,h[1]=h[1]+m|0,h[2]=h[2]+p|0,h[3]=h[3]+g|0,h[4]=h[4]+E|0,h[5]=h[5]+B|0,h[6]=h[6]+A|0,h[7]=h[7]+_|0},_doFinalize:function(){var l=this._data,v=l.words,h=this._nDataBytes*8,C=l.sigBytes*8;return v[C>>>5]|=128<<24-C%32,v[(C+64>>>9<<4)+14]=n.floor(h/4294967296),v[(C+64>>>9<<4)+15]=h,l.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var l=u.clone.call(this);return l._hash=this._hash.clone(),l}});o.SHA256=u._createHelper(c),o.HmacSHA256=u._createHmacHelper(c)}(Math),t.SHA256})}(Te)),Te.exports}var Oe={exports:{}},Qo=Oe.exports,Rt;function Jo(){return Rt||(Rt=1,function(e,r){(function(t,n,o){e.exports=n(N(),Wr())})(Qo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.algo,u=x.SHA256,d=x.SHA224=u.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var i=u._doFinalize.call(this);return i.sigBytes-=4,i}});n.SHA224=u._createHelper(d),n.HmacSHA224=u._createHmacHelper(d)}(),t.SHA224})}(Oe)),Oe.exports}var Le={exports:{}},ea=Le.exports,It;function yn(){return It||(It=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr())})(ea,function(t){return function(){var n=t,o=n.lib,a=o.Hasher,x=n.x64,u=x.Word,d=x.WordArray,i=n.algo;function s(){return u.create.apply(u,arguments)}var f=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];(function(){for(var v=0;v<80;v++)c[v]=s()})();var l=i.SHA512=a.extend({_doReset:function(){this._hash=new d.init([new u.init(1779033703,4089235720),new u.init(3144134277,2227873595),new u.init(1013904242,4271175723),new u.init(2773480762,1595750129),new u.init(1359893119,2917565137),new u.init(2600822924,725511199),new u.init(528734635,4215389547),new u.init(1541459225,327033209)])},_doProcessBlock:function(v,h){for(var C=this._hash.words,m=C[0],p=C[1],g=C[2],E=C[3],B=C[4],A=C[5],_=C[6],D=C[7],T=m.high,y=m.low,b=p.high,S=p.low,w=g.high,O=g.low,L=E.high,H=E.low,$=B.high,U=B.low,G=A.high,z=A.low,F=_.high,R=_.low,I=D.high,k=D.low,j=T,W=y,r0=b,M=S,Y0=w,U0=O,br=L,Z0=H,i0=$,t0=U,pe=G,Q0=z,he=F,J0=R,Dr=I,ee=k,s0=0;s0<80;s0++){var a0,h0,ge=c[s0];if(s0<16)h0=ge.high=v[h+s0*2]|0,a0=ge.low=v[h+s0*2+1]|0;else{var ut=c[s0-15],q0=ut.high,re=ut.low,_o=(q0>>>1|re<<31)^(q0>>>8|re<<24)^q0>>>7,ft=(re>>>1|q0<<31)^(re>>>8|q0<<24)^(re>>>7|q0<<25),dt=c[s0-2],z0=dt.high,te=dt.low,mo=(z0>>>19|te<<13)^(z0<<3|te>>>29)^z0>>>6,lt=(te>>>19|z0<<13)^(te<<3|z0>>>29)^(te>>>6|z0<<26),vt=c[s0-7],yo=vt.high,Ao=vt.low,pt=c[s0-16],Bo=pt.high,ht=pt.low;a0=ft+Ao,h0=_o+yo+(a0>>>0<ft>>>0?1:0),a0=a0+lt,h0=h0+mo+(a0>>>0<lt>>>0?1:0),a0=a0+ht,h0=h0+Bo+(a0>>>0<ht>>>0?1:0),ge.high=h0,ge.low=a0}var bo=i0&pe^~i0&he,gt=t0&Q0^~t0&J0,Do=j&r0^j&Y0^r0&Y0,Fo=W&M^W&U0^M&U0,So=(j>>>28|W<<4)^(j<<30|W>>>2)^(j<<25|W>>>7),Ct=(W>>>28|j<<4)^(W<<30|j>>>2)^(W<<25|j>>>7),wo=(i0>>>14|t0<<18)^(i0>>>18|t0<<14)^(i0<<23|t0>>>9),ko=(t0>>>14|i0<<18)^(t0>>>18|i0<<14)^(t0<<23|i0>>>9),Et=f[s0],Ro=Et.high,_t=Et.low,n0=ee+ko,g0=Dr+wo+(n0>>>0<ee>>>0?1:0),n0=n0+gt,g0=g0+bo+(n0>>>0<gt>>>0?1:0),n0=n0+_t,g0=g0+Ro+(n0>>>0<_t>>>0?1:0),n0=n0+a0,g0=g0+h0+(n0>>>0<a0>>>0?1:0),mt=Ct+Fo,Io=So+Do+(mt>>>0<Ct>>>0?1:0);Dr=he,ee=J0,he=pe,J0=Q0,pe=i0,Q0=t0,t0=Z0+n0|0,i0=br+g0+(t0>>>0<Z0>>>0?1:0)|0,br=Y0,Z0=U0,Y0=r0,U0=M,r0=j,M=W,W=n0+mt|0,j=g0+Io+(W>>>0<n0>>>0?1:0)|0}y=m.low=y+W,m.high=T+j+(y>>>0<W>>>0?1:0),S=p.low=S+M,p.high=b+r0+(S>>>0<M>>>0?1:0),O=g.low=O+U0,g.high=w+Y0+(O>>>0<U0>>>0?1:0),H=E.low=H+Z0,E.high=L+br+(H>>>0<Z0>>>0?1:0),U=B.low=U+t0,B.high=$+i0+(U>>>0<t0>>>0?1:0),z=A.low=z+Q0,A.high=G+pe+(z>>>0<Q0>>>0?1:0),R=_.low=R+J0,_.high=F+he+(R>>>0<J0>>>0?1:0),k=D.low=k+ee,D.high=I+Dr+(k>>>0<ee>>>0?1:0)},_doFinalize:function(){var v=this._data,h=v.words,C=this._nDataBytes*8,m=v.sigBytes*8;h[m>>>5]|=128<<24-m%32,h[(m+128>>>10<<5)+30]=Math.floor(C/4294967296),h[(m+128>>>10<<5)+31]=C,v.sigBytes=h.length*4,this._process();var p=this._hash.toX32();return p},clone:function(){var v=a.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:1024/32});n.SHA512=a._createHelper(l),n.HmacSHA512=a._createHmacHelper(l)}(),t.SHA512})}(Le)),Le.exports}var Pe={exports:{}},ra=Pe.exports,Tt;function ta(){return Tt||(Tt=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr(),yn())})(ra,function(t){return function(){var n=t,o=n.x64,a=o.Word,x=o.WordArray,u=n.algo,d=u.SHA512,i=u.SHA384=d.extend({_doReset:function(){this._hash=new x.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var s=d._doFinalize.call(this);return s.sigBytes-=16,s}});n.SHA384=d._createHelper(i),n.HmacSHA384=d._createHmacHelper(i)}(),t.SHA384})}(Pe)),Pe.exports}var He={exports:{}},na=He.exports,Ot;function oa(){return Ot||(Ot=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr())})(na,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.x64,i=d.Word,s=o.algo,f=[],c=[],l=[];(function(){for(var C=1,m=0,p=0;p<24;p++){f[C+5*m]=(p+1)*(p+2)/2%64;var g=m%5,E=(2*C+3*m)%5;C=g,m=E}for(var C=0;C<5;C++)for(var m=0;m<5;m++)c[C+5*m]=m+(2*C+3*m)%5*5;for(var B=1,A=0;A<24;A++){for(var _=0,D=0,T=0;T<7;T++){if(B&1){var y=(1<<T)-1;y<32?D^=1<<y:_^=1<<y-32}B&128?B=B<<1^113:B<<=1}l[A]=i.create(_,D)}})();var v=[];(function(){for(var C=0;C<25;C++)v[C]=i.create()})();var h=s.SHA3=u.extend({cfg:u.cfg.extend({outputLength:512}),_doReset:function(){for(var C=this._state=[],m=0;m<25;m++)C[m]=new i.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(C,m){for(var p=this._state,g=this.blockSize/2,E=0;E<g;E++){var B=C[m+2*E],A=C[m+2*E+1];B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var _=p[E];_.high^=A,_.low^=B}for(var D=0;D<24;D++){for(var T=0;T<5;T++){for(var y=0,b=0,S=0;S<5;S++){var _=p[T+5*S];y^=_.high,b^=_.low}var w=v[T];w.high=y,w.low=b}for(var T=0;T<5;T++)for(var O=v[(T+4)%5],L=v[(T+1)%5],H=L.high,$=L.low,y=O.high^(H<<1|$>>>31),b=O.low^($<<1|H>>>31),S=0;S<5;S++){var _=p[T+5*S];_.high^=y,_.low^=b}for(var U=1;U<25;U++){var y,b,_=p[U],G=_.high,z=_.low,F=f[U];F<32?(y=G<<F|z>>>32-F,b=z<<F|G>>>32-F):(y=z<<F-32|G>>>64-F,b=G<<F-32|z>>>64-F);var R=v[c[U]];R.high=y,R.low=b}var I=v[0],k=p[0];I.high=k.high,I.low=k.low;for(var T=0;T<5;T++)for(var S=0;S<5;S++){var U=T+5*S,_=p[U],j=v[U],W=v[(T+1)%5+5*S],r0=v[(T+2)%5+5*S];_.high=j.high^~W.high&r0.high,_.low=j.low^~W.low&r0.low}var _=p[0],M=l[D];_.high^=M.high,_.low^=M.low}},_doFinalize:function(){var C=this._data,m=C.words;this._nDataBytes*8;var p=C.sigBytes*8,g=this.blockSize*32;m[p>>>5]|=1<<24-p%32,m[(n.ceil((p+1)/g)*g>>>5)-1]|=128,C.sigBytes=m.length*4,this._process();for(var E=this._state,B=this.cfg.outputLength/8,A=B/8,_=[],D=0;D<A;D++){var T=E[D],y=T.high,b=T.low;y=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,_.push(b),_.push(y)}return new x.init(_,B)},clone:function(){for(var C=u.clone.call(this),m=C._state=this._state.slice(0),p=0;p<25;p++)m[p]=m[p].clone();return C}});o.SHA3=u._createHelper(h),o.HmacSHA3=u._createHmacHelper(h)}(Math),t.SHA3})}(He)),He.exports}var Me={exports:{}},aa=Me.exports,Lt;function ia(){return Lt||(Lt=1,function(e,r){(function(t,n){e.exports=n(N())})(aa,function(t){/** @preserve
|
|
1
|
+
var To=Object.defineProperty;var Oo=(e,r,t)=>r in e?To(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var Ce=(e,r,t)=>Oo(e,typeof r!="symbol"?r+"":r,t);import{a as Lo,j as Po}from"./index-WJmU6YKM.js";import{c as Fr,g as Ho}from"./thirdweb-BdvHtoLc.js";import{f as Mo,r as No}from"./ui-E17g3ezc.js";import"./vendor-C4WpNl28.js";var Be={exports:{}},be={exports:{}},Uo=be.exports,yt;function N(){return yt||(yt=1,function(e,r){(function(t,n){e.exports=n()})(Uo,function(){var t=t||function(n,o){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof Fr<"u"&&Fr.crypto&&(a=Fr.crypto),!a&&typeof Mo=="function")try{a=No()}catch{}var x=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||function(){function p(){}return function(g){var E;return p.prototype=g,E=new p,p.prototype=null,E}}(),d={},i=d.lib={},s=i.Base=function(){return{extend:function(p){var g=u(this);return p&&g.mixIn(p),(!g.hasOwnProperty("init")||this.init===g.init)&&(g.init=function(){g.$super.init.apply(this,arguments)}),g.init.prototype=g,g.$super=this,g},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var g in p)p.hasOwnProperty(g)&&(this[g]=p[g]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=i.WordArray=s.extend({init:function(p,g){p=this.words=p||[],g!=o?this.sigBytes=g:this.sigBytes=p.length*4},toString:function(p){return(p||l).stringify(this)},concat:function(p){var g=this.words,E=p.words,B=this.sigBytes,A=p.sigBytes;if(this.clamp(),B%4)for(var _=0;_<A;_++){var D=E[_>>>2]>>>24-_%4*8&255;g[B+_>>>2]|=D<<24-(B+_)%4*8}else for(var T=0;T<A;T+=4)g[B+T>>>2]=E[T>>>2];return this.sigBytes+=A,this},clamp:function(){var p=this.words,g=this.sigBytes;p[g>>>2]&=4294967295<<32-g%4*8,p.length=n.ceil(g/4)},clone:function(){var p=s.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var g=[],E=0;E<p;E+=4)g.push(x());return new f.init(g,p)}}),c=d.enc={},l=c.Hex={stringify:function(p){for(var g=p.words,E=p.sigBytes,B=[],A=0;A<E;A++){var _=g[A>>>2]>>>24-A%4*8&255;B.push((_>>>4).toString(16)),B.push((_&15).toString(16))}return B.join("")},parse:function(p){for(var g=p.length,E=[],B=0;B<g;B+=2)E[B>>>3]|=parseInt(p.substr(B,2),16)<<24-B%8*4;return new f.init(E,g/2)}},v=c.Latin1={stringify:function(p){for(var g=p.words,E=p.sigBytes,B=[],A=0;A<E;A++){var _=g[A>>>2]>>>24-A%4*8&255;B.push(String.fromCharCode(_))}return B.join("")},parse:function(p){for(var g=p.length,E=[],B=0;B<g;B++)E[B>>>2]|=(p.charCodeAt(B)&255)<<24-B%4*8;return new f.init(E,g)}},h=c.Utf8={stringify:function(p){try{return decodeURIComponent(escape(v.stringify(p)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(p){return v.parse(unescape(encodeURIComponent(p)))}},C=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=h.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var g,E=this._data,B=E.words,A=E.sigBytes,_=this.blockSize,D=_*4,T=A/D;p?T=n.ceil(T):T=n.max((T|0)-this._minBufferSize,0);var y=T*_,b=n.min(y*4,A);if(y){for(var S=0;S<y;S+=_)this._doProcessBlock(B,S);g=B.splice(0,y),E.sigBytes-=b}return new f.init(g,b)},clone:function(){var p=s.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0});i.Hasher=C.extend({cfg:s.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){C.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var g=this._doFinalize();return g},blockSize:16,_createHelper:function(p){return function(g,E){return new p.init(E).finalize(g)}},_createHmacHelper:function(p){return function(g,E){return new m.HMAC.init(p,E).finalize(g)}}});var m=d.algo={};return d}(Math);return t})}(be)),be.exports}var De={exports:{}},qo=De.exports,At;function mr(){return At||(At=1,function(e,r){(function(t,n){e.exports=n(N())})(qo,function(t){return function(n){var o=t,a=o.lib,x=a.Base,u=a.WordArray,d=o.x64={};d.Word=x.extend({init:function(i,s){this.high=i,this.low=s}}),d.WordArray=x.extend({init:function(i,s){i=this.words=i||[],s!=n?this.sigBytes=s:this.sigBytes=i.length*8},toX32:function(){for(var i=this.words,s=i.length,f=[],c=0;c<s;c++){var l=i[c];f.push(l.high),f.push(l.low)}return u.create(f,this.sigBytes)},clone:function(){for(var i=x.clone.call(this),s=i.words=this.words.slice(0),f=s.length,c=0;c<f;c++)s[c]=s[c].clone();return i}})}(),t})}(De)),De.exports}var Fe={exports:{}},zo=Fe.exports,Bt;function Go(){return Bt||(Bt=1,function(e,r){(function(t,n){e.exports=n(N())})(zo,function(t){return function(){if(typeof ArrayBuffer=="function"){var n=t,o=n.lib,a=o.WordArray,x=a.init,u=a.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var i=d.byteLength,s=[],f=0;f<i;f++)s[f>>>2]|=d[f]<<24-f%4*8;x.call(this,s,i)}else x.apply(this,arguments)};u.prototype=a}}(),t.lib.WordArray})}(Fe)),Fe.exports}var Se={exports:{}},Wo=Se.exports,bt;function $o(){return bt||(bt=1,function(e,r){(function(t,n){e.exports=n(N())})(Wo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Utf16=x.Utf16BE={stringify:function(d){for(var i=d.words,s=d.sigBytes,f=[],c=0;c<s;c+=2){var l=i[c>>>2]>>>16-c%4*8&65535;f.push(String.fromCharCode(l))}return f.join("")},parse:function(d){for(var i=d.length,s=[],f=0;f<i;f++)s[f>>>1]|=d.charCodeAt(f)<<16-f%2*16;return a.create(s,i*2)}},x.Utf16LE={stringify:function(d){for(var i=d.words,s=d.sigBytes,f=[],c=0;c<s;c+=2){var l=u(i[c>>>2]>>>16-c%4*8&65535);f.push(String.fromCharCode(l))}return f.join("")},parse:function(d){for(var i=d.length,s=[],f=0;f<i;f++)s[f>>>1]|=u(d.charCodeAt(f)<<16-f%2*16);return a.create(s,i*2)}};function u(d){return d<<8&4278255360|d>>>8&16711935}}(),t.enc.Utf16})}(Se)),Se.exports}var we={exports:{}},jo=we.exports,Dt;function I0(){return Dt||(Dt=1,function(e,r){(function(t,n){e.exports=n(N())})(jo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Base64={stringify:function(d){var i=d.words,s=d.sigBytes,f=this._map;d.clamp();for(var c=[],l=0;l<s;l+=3)for(var v=i[l>>>2]>>>24-l%4*8&255,h=i[l+1>>>2]>>>24-(l+1)%4*8&255,C=i[l+2>>>2]>>>24-(l+2)%4*8&255,m=v<<16|h<<8|C,p=0;p<4&&l+p*.75<s;p++)c.push(f.charAt(m>>>6*(3-p)&63));var g=f.charAt(64);if(g)for(;c.length%4;)c.push(g);return c.join("")},parse:function(d){var i=d.length,s=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var c=0;c<s.length;c++)f[s.charCodeAt(c)]=c}var l=s.charAt(64);if(l){var v=d.indexOf(l);v!==-1&&(i=v)}return u(d,i,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(d,i,s){for(var f=[],c=0,l=0;l<i;l++)if(l%4){var v=s[d.charCodeAt(l-1)]<<l%4*2,h=s[d.charCodeAt(l)]>>>6-l%4*2,C=v|h;f[c>>>2]|=C<<24-c%4*8,c++}return a.create(f,c)}}(),t.enc.Base64})}(we)),we.exports}var ke={exports:{}},Vo=ke.exports,Ft;function Ko(){return Ft||(Ft=1,function(e,r){(function(t,n){e.exports=n(N())})(Vo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Base64url={stringify:function(d,i){i===void 0&&(i=!0);var s=d.words,f=d.sigBytes,c=i?this._safe_map:this._map;d.clamp();for(var l=[],v=0;v<f;v+=3)for(var h=s[v>>>2]>>>24-v%4*8&255,C=s[v+1>>>2]>>>24-(v+1)%4*8&255,m=s[v+2>>>2]>>>24-(v+2)%4*8&255,p=h<<16|C<<8|m,g=0;g<4&&v+g*.75<f;g++)l.push(c.charAt(p>>>6*(3-g)&63));var E=c.charAt(64);if(E)for(;l.length%4;)l.push(E);return l.join("")},parse:function(d,i){i===void 0&&(i=!0);var s=d.length,f=i?this._safe_map:this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var l=0;l<f.length;l++)c[f.charCodeAt(l)]=l}var v=f.charAt(64);if(v){var h=d.indexOf(v);h!==-1&&(s=h)}return u(d,s,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function u(d,i,s){for(var f=[],c=0,l=0;l<i;l++)if(l%4){var v=s[d.charCodeAt(l-1)]<<l%4*2,h=s[d.charCodeAt(l)]>>>6-l%4*2,C=v|h;f[c>>>2]|=C<<24-c%4*8,c++}return a.create(f,c)}}(),t.enc.Base64url})}(ke)),ke.exports}var Re={exports:{}},Xo=Re.exports,St;function T0(){return St||(St=1,function(e,r){(function(t,n){e.exports=n(N())})(Xo,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.algo,i=[];(function(){for(var h=0;h<64;h++)i[h]=n.abs(n.sin(h+1))*4294967296|0})();var s=d.MD5=u.extend({_doReset:function(){this._hash=new x.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,C){for(var m=0;m<16;m++){var p=C+m,g=h[p];h[p]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var E=this._hash.words,B=h[C+0],A=h[C+1],_=h[C+2],D=h[C+3],T=h[C+4],y=h[C+5],b=h[C+6],S=h[C+7],w=h[C+8],O=h[C+9],L=h[C+10],H=h[C+11],$=h[C+12],U=h[C+13],G=h[C+14],z=h[C+15],F=E[0],R=E[1],I=E[2],k=E[3];F=f(F,R,I,k,B,7,i[0]),k=f(k,F,R,I,A,12,i[1]),I=f(I,k,F,R,_,17,i[2]),R=f(R,I,k,F,D,22,i[3]),F=f(F,R,I,k,T,7,i[4]),k=f(k,F,R,I,y,12,i[5]),I=f(I,k,F,R,b,17,i[6]),R=f(R,I,k,F,S,22,i[7]),F=f(F,R,I,k,w,7,i[8]),k=f(k,F,R,I,O,12,i[9]),I=f(I,k,F,R,L,17,i[10]),R=f(R,I,k,F,H,22,i[11]),F=f(F,R,I,k,$,7,i[12]),k=f(k,F,R,I,U,12,i[13]),I=f(I,k,F,R,G,17,i[14]),R=f(R,I,k,F,z,22,i[15]),F=c(F,R,I,k,A,5,i[16]),k=c(k,F,R,I,b,9,i[17]),I=c(I,k,F,R,H,14,i[18]),R=c(R,I,k,F,B,20,i[19]),F=c(F,R,I,k,y,5,i[20]),k=c(k,F,R,I,L,9,i[21]),I=c(I,k,F,R,z,14,i[22]),R=c(R,I,k,F,T,20,i[23]),F=c(F,R,I,k,O,5,i[24]),k=c(k,F,R,I,G,9,i[25]),I=c(I,k,F,R,D,14,i[26]),R=c(R,I,k,F,w,20,i[27]),F=c(F,R,I,k,U,5,i[28]),k=c(k,F,R,I,_,9,i[29]),I=c(I,k,F,R,S,14,i[30]),R=c(R,I,k,F,$,20,i[31]),F=l(F,R,I,k,y,4,i[32]),k=l(k,F,R,I,w,11,i[33]),I=l(I,k,F,R,H,16,i[34]),R=l(R,I,k,F,G,23,i[35]),F=l(F,R,I,k,A,4,i[36]),k=l(k,F,R,I,T,11,i[37]),I=l(I,k,F,R,S,16,i[38]),R=l(R,I,k,F,L,23,i[39]),F=l(F,R,I,k,U,4,i[40]),k=l(k,F,R,I,B,11,i[41]),I=l(I,k,F,R,D,16,i[42]),R=l(R,I,k,F,b,23,i[43]),F=l(F,R,I,k,O,4,i[44]),k=l(k,F,R,I,$,11,i[45]),I=l(I,k,F,R,z,16,i[46]),R=l(R,I,k,F,_,23,i[47]),F=v(F,R,I,k,B,6,i[48]),k=v(k,F,R,I,S,10,i[49]),I=v(I,k,F,R,G,15,i[50]),R=v(R,I,k,F,y,21,i[51]),F=v(F,R,I,k,$,6,i[52]),k=v(k,F,R,I,D,10,i[53]),I=v(I,k,F,R,L,15,i[54]),R=v(R,I,k,F,A,21,i[55]),F=v(F,R,I,k,w,6,i[56]),k=v(k,F,R,I,z,10,i[57]),I=v(I,k,F,R,b,15,i[58]),R=v(R,I,k,F,U,21,i[59]),F=v(F,R,I,k,T,6,i[60]),k=v(k,F,R,I,H,10,i[61]),I=v(I,k,F,R,_,15,i[62]),R=v(R,I,k,F,O,21,i[63]),E[0]=E[0]+F|0,E[1]=E[1]+R|0,E[2]=E[2]+I|0,E[3]=E[3]+k|0},_doFinalize:function(){var h=this._data,C=h.words,m=this._nDataBytes*8,p=h.sigBytes*8;C[p>>>5]|=128<<24-p%32;var g=n.floor(m/4294967296),E=m;C[(p+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,C[(p+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,h.sigBytes=(C.length+1)*4,this._process();for(var B=this._hash,A=B.words,_=0;_<4;_++){var D=A[_];A[_]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return B},clone:function(){var h=u.clone.call(this);return h._hash=this._hash.clone(),h}});function f(h,C,m,p,g,E,B){var A=h+(C&m|~C&p)+g+B;return(A<<E|A>>>32-E)+C}function c(h,C,m,p,g,E,B){var A=h+(C&p|m&~p)+g+B;return(A<<E|A>>>32-E)+C}function l(h,C,m,p,g,E,B){var A=h+(C^m^p)+g+B;return(A<<E|A>>>32-E)+C}function v(h,C,m,p,g,E,B){var A=h+(m^(C|~p))+g+B;return(A<<E|A>>>32-E)+C}o.MD5=u._createHelper(s),o.HmacMD5=u._createHmacHelper(s)}(Math),t.MD5})}(Re)),Re.exports}var Ie={exports:{}},Yo=Ie.exports,wt;function mn(){return wt||(wt=1,function(e,r){(function(t,n){e.exports=n(N())})(Yo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=o.Hasher,u=n.algo,d=[],i=u.SHA1=x.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(s,f){for(var c=this._hash.words,l=c[0],v=c[1],h=c[2],C=c[3],m=c[4],p=0;p<80;p++){if(p<16)d[p]=s[f+p]|0;else{var g=d[p-3]^d[p-8]^d[p-14]^d[p-16];d[p]=g<<1|g>>>31}var E=(l<<5|l>>>27)+m+d[p];p<20?E+=(v&h|~v&C)+1518500249:p<40?E+=(v^h^C)+1859775393:p<60?E+=(v&h|v&C|h&C)-1894007588:E+=(v^h^C)-899497514,m=C,C=h,h=v<<30|v>>>2,v=l,l=E}c[0]=c[0]+l|0,c[1]=c[1]+v|0,c[2]=c[2]+h|0,c[3]=c[3]+C|0,c[4]=c[4]+m|0},_doFinalize:function(){var s=this._data,f=s.words,c=this._nDataBytes*8,l=s.sigBytes*8;return f[l>>>5]|=128<<24-l%32,f[(l+64>>>9<<4)+14]=Math.floor(c/4294967296),f[(l+64>>>9<<4)+15]=c,s.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var s=x.clone.call(this);return s._hash=this._hash.clone(),s}});n.SHA1=x._createHelper(i),n.HmacSHA1=x._createHmacHelper(i)}(),t.SHA1})}(Ie)),Ie.exports}var Te={exports:{}},Zo=Te.exports,kt;function Wr(){return kt||(kt=1,function(e,r){(function(t,n){e.exports=n(N())})(Zo,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.algo,i=[],s=[];(function(){function l(m){for(var p=n.sqrt(m),g=2;g<=p;g++)if(!(m%g))return!1;return!0}function v(m){return(m-(m|0))*4294967296|0}for(var h=2,C=0;C<64;)l(h)&&(C<8&&(i[C]=v(n.pow(h,1/2))),s[C]=v(n.pow(h,1/3)),C++),h++})();var f=[],c=d.SHA256=u.extend({_doReset:function(){this._hash=new x.init(i.slice(0))},_doProcessBlock:function(l,v){for(var h=this._hash.words,C=h[0],m=h[1],p=h[2],g=h[3],E=h[4],B=h[5],A=h[6],_=h[7],D=0;D<64;D++){if(D<16)f[D]=l[v+D]|0;else{var T=f[D-15],y=(T<<25|T>>>7)^(T<<14|T>>>18)^T>>>3,b=f[D-2],S=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;f[D]=y+f[D-7]+S+f[D-16]}var w=E&B^~E&A,O=C&m^C&p^m&p,L=(C<<30|C>>>2)^(C<<19|C>>>13)^(C<<10|C>>>22),H=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),$=_+H+w+s[D]+f[D],U=L+O;_=A,A=B,B=E,E=g+$|0,g=p,p=m,m=C,C=$+U|0}h[0]=h[0]+C|0,h[1]=h[1]+m|0,h[2]=h[2]+p|0,h[3]=h[3]+g|0,h[4]=h[4]+E|0,h[5]=h[5]+B|0,h[6]=h[6]+A|0,h[7]=h[7]+_|0},_doFinalize:function(){var l=this._data,v=l.words,h=this._nDataBytes*8,C=l.sigBytes*8;return v[C>>>5]|=128<<24-C%32,v[(C+64>>>9<<4)+14]=n.floor(h/4294967296),v[(C+64>>>9<<4)+15]=h,l.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var l=u.clone.call(this);return l._hash=this._hash.clone(),l}});o.SHA256=u._createHelper(c),o.HmacSHA256=u._createHmacHelper(c)}(Math),t.SHA256})}(Te)),Te.exports}var Oe={exports:{}},Qo=Oe.exports,Rt;function Jo(){return Rt||(Rt=1,function(e,r){(function(t,n,o){e.exports=n(N(),Wr())})(Qo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.algo,u=x.SHA256,d=x.SHA224=u.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var i=u._doFinalize.call(this);return i.sigBytes-=4,i}});n.SHA224=u._createHelper(d),n.HmacSHA224=u._createHmacHelper(d)}(),t.SHA224})}(Oe)),Oe.exports}var Le={exports:{}},ea=Le.exports,It;function yn(){return It||(It=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr())})(ea,function(t){return function(){var n=t,o=n.lib,a=o.Hasher,x=n.x64,u=x.Word,d=x.WordArray,i=n.algo;function s(){return u.create.apply(u,arguments)}var f=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];(function(){for(var v=0;v<80;v++)c[v]=s()})();var l=i.SHA512=a.extend({_doReset:function(){this._hash=new d.init([new u.init(1779033703,4089235720),new u.init(3144134277,2227873595),new u.init(1013904242,4271175723),new u.init(2773480762,1595750129),new u.init(1359893119,2917565137),new u.init(2600822924,725511199),new u.init(528734635,4215389547),new u.init(1541459225,327033209)])},_doProcessBlock:function(v,h){for(var C=this._hash.words,m=C[0],p=C[1],g=C[2],E=C[3],B=C[4],A=C[5],_=C[6],D=C[7],T=m.high,y=m.low,b=p.high,S=p.low,w=g.high,O=g.low,L=E.high,H=E.low,$=B.high,U=B.low,G=A.high,z=A.low,F=_.high,R=_.low,I=D.high,k=D.low,j=T,W=y,r0=b,M=S,Y0=w,U0=O,br=L,Z0=H,i0=$,t0=U,pe=G,Q0=z,he=F,J0=R,Dr=I,ee=k,s0=0;s0<80;s0++){var a0,h0,ge=c[s0];if(s0<16)h0=ge.high=v[h+s0*2]|0,a0=ge.low=v[h+s0*2+1]|0;else{var ut=c[s0-15],q0=ut.high,re=ut.low,_o=(q0>>>1|re<<31)^(q0>>>8|re<<24)^q0>>>7,ft=(re>>>1|q0<<31)^(re>>>8|q0<<24)^(re>>>7|q0<<25),dt=c[s0-2],z0=dt.high,te=dt.low,mo=(z0>>>19|te<<13)^(z0<<3|te>>>29)^z0>>>6,lt=(te>>>19|z0<<13)^(te<<3|z0>>>29)^(te>>>6|z0<<26),vt=c[s0-7],yo=vt.high,Ao=vt.low,pt=c[s0-16],Bo=pt.high,ht=pt.low;a0=ft+Ao,h0=_o+yo+(a0>>>0<ft>>>0?1:0),a0=a0+lt,h0=h0+mo+(a0>>>0<lt>>>0?1:0),a0=a0+ht,h0=h0+Bo+(a0>>>0<ht>>>0?1:0),ge.high=h0,ge.low=a0}var bo=i0&pe^~i0&he,gt=t0&Q0^~t0&J0,Do=j&r0^j&Y0^r0&Y0,Fo=W&M^W&U0^M&U0,So=(j>>>28|W<<4)^(j<<30|W>>>2)^(j<<25|W>>>7),Ct=(W>>>28|j<<4)^(W<<30|j>>>2)^(W<<25|j>>>7),wo=(i0>>>14|t0<<18)^(i0>>>18|t0<<14)^(i0<<23|t0>>>9),ko=(t0>>>14|i0<<18)^(t0>>>18|i0<<14)^(t0<<23|i0>>>9),Et=f[s0],Ro=Et.high,_t=Et.low,n0=ee+ko,g0=Dr+wo+(n0>>>0<ee>>>0?1:0),n0=n0+gt,g0=g0+bo+(n0>>>0<gt>>>0?1:0),n0=n0+_t,g0=g0+Ro+(n0>>>0<_t>>>0?1:0),n0=n0+a0,g0=g0+h0+(n0>>>0<a0>>>0?1:0),mt=Ct+Fo,Io=So+Do+(mt>>>0<Ct>>>0?1:0);Dr=he,ee=J0,he=pe,J0=Q0,pe=i0,Q0=t0,t0=Z0+n0|0,i0=br+g0+(t0>>>0<Z0>>>0?1:0)|0,br=Y0,Z0=U0,Y0=r0,U0=M,r0=j,M=W,W=n0+mt|0,j=g0+Io+(W>>>0<n0>>>0?1:0)|0}y=m.low=y+W,m.high=T+j+(y>>>0<W>>>0?1:0),S=p.low=S+M,p.high=b+r0+(S>>>0<M>>>0?1:0),O=g.low=O+U0,g.high=w+Y0+(O>>>0<U0>>>0?1:0),H=E.low=H+Z0,E.high=L+br+(H>>>0<Z0>>>0?1:0),U=B.low=U+t0,B.high=$+i0+(U>>>0<t0>>>0?1:0),z=A.low=z+Q0,A.high=G+pe+(z>>>0<Q0>>>0?1:0),R=_.low=R+J0,_.high=F+he+(R>>>0<J0>>>0?1:0),k=D.low=k+ee,D.high=I+Dr+(k>>>0<ee>>>0?1:0)},_doFinalize:function(){var v=this._data,h=v.words,C=this._nDataBytes*8,m=v.sigBytes*8;h[m>>>5]|=128<<24-m%32,h[(m+128>>>10<<5)+30]=Math.floor(C/4294967296),h[(m+128>>>10<<5)+31]=C,v.sigBytes=h.length*4,this._process();var p=this._hash.toX32();return p},clone:function(){var v=a.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:1024/32});n.SHA512=a._createHelper(l),n.HmacSHA512=a._createHmacHelper(l)}(),t.SHA512})}(Le)),Le.exports}var Pe={exports:{}},ra=Pe.exports,Tt;function ta(){return Tt||(Tt=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr(),yn())})(ra,function(t){return function(){var n=t,o=n.x64,a=o.Word,x=o.WordArray,u=n.algo,d=u.SHA512,i=u.SHA384=d.extend({_doReset:function(){this._hash=new x.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var s=d._doFinalize.call(this);return s.sigBytes-=16,s}});n.SHA384=d._createHelper(i),n.HmacSHA384=d._createHmacHelper(i)}(),t.SHA384})}(Pe)),Pe.exports}var He={exports:{}},na=He.exports,Ot;function oa(){return Ot||(Ot=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr())})(na,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.x64,i=d.Word,s=o.algo,f=[],c=[],l=[];(function(){for(var C=1,m=0,p=0;p<24;p++){f[C+5*m]=(p+1)*(p+2)/2%64;var g=m%5,E=(2*C+3*m)%5;C=g,m=E}for(var C=0;C<5;C++)for(var m=0;m<5;m++)c[C+5*m]=m+(2*C+3*m)%5*5;for(var B=1,A=0;A<24;A++){for(var _=0,D=0,T=0;T<7;T++){if(B&1){var y=(1<<T)-1;y<32?D^=1<<y:_^=1<<y-32}B&128?B=B<<1^113:B<<=1}l[A]=i.create(_,D)}})();var v=[];(function(){for(var C=0;C<25;C++)v[C]=i.create()})();var h=s.SHA3=u.extend({cfg:u.cfg.extend({outputLength:512}),_doReset:function(){for(var C=this._state=[],m=0;m<25;m++)C[m]=new i.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(C,m){for(var p=this._state,g=this.blockSize/2,E=0;E<g;E++){var B=C[m+2*E],A=C[m+2*E+1];B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var _=p[E];_.high^=A,_.low^=B}for(var D=0;D<24;D++){for(var T=0;T<5;T++){for(var y=0,b=0,S=0;S<5;S++){var _=p[T+5*S];y^=_.high,b^=_.low}var w=v[T];w.high=y,w.low=b}for(var T=0;T<5;T++)for(var O=v[(T+4)%5],L=v[(T+1)%5],H=L.high,$=L.low,y=O.high^(H<<1|$>>>31),b=O.low^($<<1|H>>>31),S=0;S<5;S++){var _=p[T+5*S];_.high^=y,_.low^=b}for(var U=1;U<25;U++){var y,b,_=p[U],G=_.high,z=_.low,F=f[U];F<32?(y=G<<F|z>>>32-F,b=z<<F|G>>>32-F):(y=z<<F-32|G>>>64-F,b=G<<F-32|z>>>64-F);var R=v[c[U]];R.high=y,R.low=b}var I=v[0],k=p[0];I.high=k.high,I.low=k.low;for(var T=0;T<5;T++)for(var S=0;S<5;S++){var U=T+5*S,_=p[U],j=v[U],W=v[(T+1)%5+5*S],r0=v[(T+2)%5+5*S];_.high=j.high^~W.high&r0.high,_.low=j.low^~W.low&r0.low}var _=p[0],M=l[D];_.high^=M.high,_.low^=M.low}},_doFinalize:function(){var C=this._data,m=C.words;this._nDataBytes*8;var p=C.sigBytes*8,g=this.blockSize*32;m[p>>>5]|=1<<24-p%32,m[(n.ceil((p+1)/g)*g>>>5)-1]|=128,C.sigBytes=m.length*4,this._process();for(var E=this._state,B=this.cfg.outputLength/8,A=B/8,_=[],D=0;D<A;D++){var T=E[D],y=T.high,b=T.low;y=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,_.push(b),_.push(y)}return new x.init(_,B)},clone:function(){for(var C=u.clone.call(this),m=C._state=this._state.slice(0),p=0;p<25;p++)m[p]=m[p].clone();return C}});o.SHA3=u._createHelper(h),o.HmacSHA3=u._createHmacHelper(h)}(Math),t.SHA3})}(He)),He.exports}var Me={exports:{}},aa=Me.exports,Lt;function ia(){return Lt||(Lt=1,function(e,r){(function(t,n){e.exports=n(N())})(aa,function(t){/** @preserve
|
|
2
2
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
3
3
|
|
|
4
4
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as h,r as m,e as g,i as y,h as d}from"./index-
|
|
1
|
+
import{d as h,r as m,e as g,i as y,h as d}from"./index-B2qqxEZl.js";import{n as i,c as b}from"./index-m1gWd9HT.js";import{o as c}from"./if-defined-C5UymspQ.js";import"./index-BBorsv5y.js";const f=h`
|
|
2
2
|
:host {
|
|
3
3
|
width: 100%;
|
|
4
4
|
}
|