edge-currency-accountbased 2.2.3 → 2.2.5
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/CHANGELOG.md +14 -0
- package/android/src/main/assets/edge-currency-accountbased/1944.chunk.js +4 -0
- package/android/src/main/assets/edge-currency-accountbased/2153.chunk.js +2 -0
- package/android/src/main/assets/edge-currency-accountbased/2821.chunk.js +2 -0
- package/android/src/main/assets/edge-currency-accountbased/2896.chunk.js +35 -0
- package/android/src/main/assets/edge-currency-accountbased/2945.chunk.js +25 -0
- package/android/src/main/assets/edge-currency-accountbased/3491.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/{620.chunk.js → 3620.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/{666.chunk.js → 3666.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/3720.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/{978.chunk.js → 3978.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/4251.chunk.js +4 -0
- package/android/src/main/assets/edge-currency-accountbased/4431.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/4618.chunk.js +20 -0
- package/android/src/main/assets/edge-currency-accountbased/{627.chunk.js → 4627.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/4650.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/{826.chunk.js → 5179.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/{835.chunk.js → 5835.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/5836.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/6266.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/6291.chunk.js +58 -0
- package/android/src/main/assets/edge-currency-accountbased/6341.chunk.js +44 -0
- package/android/src/main/assets/edge-currency-accountbased/7221.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/7428.chunk.js +6 -0
- package/android/src/main/assets/edge-currency-accountbased/{481.chunk.js → 7481.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/7542.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/7786.chunk.js +2 -0
- package/android/src/main/assets/edge-currency-accountbased/8190.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/{689.chunk.js → 8689.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/{726.chunk.js → 8726.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/9068.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/{223.chunk.js → 9223.chunk.js} +2 -2
- package/android/src/main/assets/edge-currency-accountbased/9539.chunk.js +10 -0
- package/android/src/main/assets/edge-currency-accountbased/{645.chunk.js → 9645.chunk.js} +6 -6
- package/android/src/main/assets/edge-currency-accountbased/9669.chunk.js +7 -0
- package/android/src/main/assets/edge-currency-accountbased/algorand.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/bnb.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/edge-currency-accountbased.js +2 -18
- package/android/src/main/assets/edge-currency-accountbased/eos.chunk.js +5 -5
- package/android/src/main/assets/edge-currency-accountbased/ethereum.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/filecoin.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/fio.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/hedera.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/polkadot.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/ripple.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/solana.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/stellar.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/tezos.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/tron.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/zcash.chunk.js +2 -2
- package/lib/ethereum/info/avalancheInfo.js +8 -0
- package/lib/ethereum/info/ethereumInfo.js +8 -0
- package/lib/filecoin/FilecoinEngine.js +112 -79
- package/lib/filecoin/Filfox.js +68 -1
- package/lib/filecoin/filecoinInfo.js +8 -3
- package/lib/filecoin/filecoinTypes.js +1 -6
- package/lib/zcash/ZcashEngine.js +11 -9
- package/package.json +1 -1
- package/android/src/main/assets/edge-currency-accountbased/124.chunk.js +0 -35
- package/android/src/main/assets/edge-currency-accountbased/17.chunk.js +0 -58
- package/android/src/main/assets/edge-currency-accountbased/190.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/221.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/298.chunk.js +0 -44
- package/android/src/main/assets/edge-currency-accountbased/431.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/491.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/539.chunk.js +0 -10
- package/android/src/main/assets/edge-currency-accountbased/542.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/618.chunk.js +0 -20
- package/android/src/main/assets/edge-currency-accountbased/650.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/68.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/720.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/786.chunk.js +0 -2
- package/android/src/main/assets/edge-currency-accountbased/836.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/935.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/944.chunk.js +0 -4
- package/android/src/main/assets/edge-currency-accountbased/945.chunk.js +0 -25
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[7221],{93027:function(h,I,L){var f=L(89509).Buffer;function T(e){if(e.length<8||e.length>72||e[0]!==48||e[1]!==e.length-2||e[2]!==2)return!1;var r=e[3];if(r===0||5+r>=e.length||e[4+r]!==2)return!1;var n=e[5+r];return!(n===0||6+r+n!==e.length||e[4]&128||r>1&&e[4]===0&&!(e[5]&128)||e[r+6]&128||n>1&&e[r+6]===0&&!(e[r+7]&128))}function x(e){if(e.length<8)throw new Error("DER sequence length is too short");if(e.length>72)throw new Error("DER sequence length is too long");if(e[0]!==48)throw new Error("Expected DER sequence");if(e[1]!==e.length-2)throw new Error("DER sequence length is invalid");if(e[2]!==2)throw new Error("Expected DER integer");var r=e[3];if(r===0)throw new Error("R length is zero");if(5+r>=e.length)throw new Error("R length is too long");if(e[4+r]!==2)throw new Error("Expected DER integer (2)");var n=e[5+r];if(n===0)throw new Error("S length is zero");if(6+r+n!==e.length)throw new Error("S length is invalid");if(e[4]&128)throw new Error("R value is negative");if(r>1&&e[4]===0&&!(e[5]&128))throw new Error("R value excessively padded");if(e[r+6]&128)throw new Error("S value is negative");if(n>1&&e[r+6]===0&&!(e[r+7]&128))throw new Error("S value excessively padded");return{r:e.slice(4,4+r),s:e.slice(6+r)}}function a(e,r){var n=e.length,E=r.length;if(n===0)throw new Error("R length is zero");if(E===0)throw new Error("S length is zero");if(n>33)throw new Error("R length is too long");if(E>33)throw new Error("S length is too long");if(e[0]&128)throw new Error("R value is negative");if(r[0]&128)throw new Error("S value is negative");if(n>1&&e[0]===0&&!(e[1]&128))throw new Error("R value excessively padded");if(E>1&&r[0]===0&&!(r[1]&128))throw new Error("S value excessively padded");var o=f.allocUnsafe(6+n+E);return o[0]=48,o[1]=o.length-2,o[2]=2,o[3]=e.length,e.copy(o,4),o[4+n]=2,o[5+n]=r.length,r.copy(o,6+n),o}h.exports={check:T,decode:x,encode:a}},17221:function(h,I,L){"use strict";h.exports=L(59119)(L(43441))},64435:function(h,I,L){"use strict";var f=L(48764).Buffer,T=Object.prototype.toString;I.isArray=function(x,a){if(!Array.isArray(x))throw TypeError(a)},I.isBoolean=function(x,a){if(T.call(x)!=="[object Boolean]")throw TypeError(a)},I.isBuffer=function(x,a){if(!f.isBuffer(x))throw TypeError(a)},I.isFunction=function(x,a){if(T.call(x)!=="[object Function]")throw TypeError(a)},I.isNumber=function(x,a){if(T.call(x)!=="[object Number]")throw TypeError(a)},I.isObject=function(x,a){if(T.call(x)!=="[object Object]")throw TypeError(a)},I.isBufferLength=function(x,a,e){if(x.length!==a)throw RangeError(e)},I.isBufferLength2=function(x,a,e,r){if(x.length!==a&&x.length!==e)throw RangeError(r)},I.isLengthGTZero=function(x,a){if(x.length===0)throw RangeError(a)},I.isNumberInInterval=function(x,a,e,r){if(x<=a||x>=e)throw RangeError(r)}},8424:function(h,I,L){"use strict";var f=L(89509).Buffer,T=L(93027),x=f.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),a=f.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);I.privateKeyExport=function(e,r,n){var E=f.from(n?x:a);return e.copy(E,n?8:9),r.copy(E,n?181:214),E},I.privateKeyImport=function(e){var r=e.length,n=0;if(!(r<n+1||e[n]!==48)&&(n+=1,!(r<n+1||!(e[n]&128)))){var E=e[n]&127;if(n+=1,!(E<1||E>2)&&!(r<n+E)){var o=e[n+E-1]|(E>1?e[n+E-2]<<8:0);if(n+=E,!(r<n+o)&&!(r<n+3||e[n]!==2||e[n+1]!==1||e[n+2]!==1)&&(n+=3,!(r<n+2||e[n]!==4||e[n+1]>32||r<n+2+e[n+1])))return e.slice(n+2,n+2+e[n+1])}}},I.signatureExport=function(e){for(var r=f.concat([f.from([0]),e.r]),n=33,E=0;n>1&&r[E]===0&&!(r[E+1]&128);--n,++E);for(var o=f.concat([f.from([0]),e.s]),A=33,t=0;A>1&&o[t]===0&&!(o[t+1]&128);--A,++t);return T.encode(r.slice(E),o.slice(t))},I.signatureImport=function(e){var r=f.alloc(32,0),n=f.alloc(32,0);try{var E=T.decode(e);if(E.r.length===33&&E.r[0]===0&&(E.r=E.r.slice(1)),E.r.length>32)throw new Error("R length is too long");if(E.s.length===33&&E.s[0]===0&&(E.s=E.s.slice(1)),E.s.length>32)throw new Error("S length is too long")}catch{return}return E.r.copy(r,32-E.r.length),E.s.copy(n,32-E.s.length),{r,s:n}},I.signatureImportLax=function(e){var r=f.alloc(32,0),n=f.alloc(32,0),E=e.length,o=0;if(e[o++]===48){var A=e[o++];if(!(A&128&&(o+=A-128,o>E))&&e[o++]===2){var t=e[o++];if(t&128){if(A=t-128,o+A>E)return;for(;A>0&&e[o]===0;o+=1,A-=1);for(t=0;A>0;o+=1,A-=1)t=(t<<8)+e[o]}if(!(t>E-o)){var i=o;if(o+=t,e[o++]===2){var _=e[o++];if(_&128){if(A=_-128,o+A>E)return;for(;A>0&&e[o]===0;o+=1,A-=1);for(_=0;A>0;o+=1,A-=1)_=(_<<8)+e[o]}if(!(_>E-o)){var u=o;for(o+=_;t>0&&e[i]===0;t-=1,i+=1);if(!(t>32)){var l=e.slice(i,i+t);for(l.copy(r,32-l.length);_>0&&e[u]===0;_-=1,u+=1);if(!(_>32)){var c=e.slice(u,u+_);return c.copy(n,32-c.length),{r,s:n}}}}}}}}}},43441:function(h,I,L){"use strict";var f=L(89509).Buffer,T=L(23482),x=L(13550),a=L(86266).ec,e=L(69610),r=new a("secp256k1"),n=r.curve;function E(t,i){var _=new x(i);if(_.cmp(n.p)>=0)return null;_=_.toRed(n.red);var u=_.redSqr().redIMul(_).redIAdd(n.b).redSqrt();return t===3!==u.isOdd()&&(u=u.redNeg()),r.keyPair({pub:{x:_,y:u}})}function o(t,i,_){var u=new x(i),l=new x(_);if(u.cmp(n.p)>=0||l.cmp(n.p)>=0||(u=u.toRed(n.red),l=l.toRed(n.red),(t===6||t===7)&&l.isOdd()!==(t===7)))return null;var c=u.redSqr().redIMul(u);return l.redSqr().redISub(c.redIAdd(n.b)).isZero()?r.keyPair({pub:{x:u,y:l}}):null}function A(t){var i=t[0];switch(i){case 2:case 3:return t.length!==33?null:E(i,t.slice(1,33));case 4:case 6:case 7:return t.length!==65?null:o(i,t.slice(1,33),t.slice(33,65));default:return null}}I.privateKeyVerify=function(t){var i=new x(t);return i.cmp(n.n)<0&&!i.isZero()},I.privateKeyExport=function(t,i){var _=new x(t);if(_.cmp(n.n)>=0||_.isZero())throw new Error(e.EC_PRIVATE_KEY_EXPORT_DER_FAIL);return f.from(r.keyFromPrivate(t).getPublic(i,!0))},I.privateKeyNegate=function(t){var i=new x(t);return i.isZero()?f.alloc(32):n.n.sub(i).umod(n.n).toArrayLike(f,"be",32)},I.privateKeyModInverse=function(t){var i=new x(t);if(i.cmp(n.n)>=0||i.isZero())throw new Error(e.EC_PRIVATE_KEY_RANGE_INVALID);return i.invm(n.n).toArrayLike(f,"be",32)},I.privateKeyTweakAdd=function(t,i){var _=new x(i);if(_.cmp(n.n)>=0)throw new Error(e.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);if(_.iadd(new x(t)),_.cmp(n.n)>=0&&_.isub(n.n),_.isZero())throw new Error(e.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);return _.toArrayLike(f,"be",32)},I.privateKeyTweakMul=function(t,i){var _=new x(i);if(_.cmp(n.n)>=0||_.isZero())throw new Error(e.EC_PRIVATE_KEY_TWEAK_MUL_FAIL);return _.imul(new x(t)),_.cmp(n.n)&&(_=_.umod(n.n)),_.toArrayLike(f,"be",32)},I.publicKeyCreate=function(t,i){var _=new x(t);if(_.cmp(n.n)>=0||_.isZero())throw new Error(e.EC_PUBLIC_KEY_CREATE_FAIL);return f.from(r.keyFromPrivate(t).getPublic(i,!0))},I.publicKeyConvert=function(t,i){var _=A(t);if(_===null)throw new Error(e.EC_PUBLIC_KEY_PARSE_FAIL);return f.from(_.getPublic(i,!0))},I.publicKeyVerify=function(t){return A(t)!==null},I.publicKeyTweakAdd=function(t,i,_){var u=A(t);if(u===null)throw new Error(e.EC_PUBLIC_KEY_PARSE_FAIL);if(i=new x(i),i.cmp(n.n)>=0)throw new Error(e.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);return f.from(n.g.mul(i).add(u.pub).encode(!0,_))},I.publicKeyTweakMul=function(t,i,_){var u=A(t);if(u===null)throw new Error(e.EC_PUBLIC_KEY_PARSE_FAIL);if(i=new x(i),i.cmp(n.n)>=0||i.isZero())throw new Error(e.EC_PUBLIC_KEY_TWEAK_MUL_FAIL);return f.from(u.pub.mul(i).encode(!0,_))},I.publicKeyCombine=function(t,i){for(var _=new Array(t.length),u=0;u<t.length;++u)if(_[u]=A(t[u]),_[u]===null)throw new Error(e.EC_PUBLIC_KEY_PARSE_FAIL);for(var l=_[0].pub,c=1;c<_.length;++c)l=l.add(_[c].pub);if(l.isInfinity())throw new Error(e.EC_PUBLIC_KEY_COMBINE_FAIL);return f.from(l.encode(!0,i))},I.signatureNormalize=function(t){var i=new x(t.slice(0,32)),_=new x(t.slice(32,64));if(i.cmp(n.n)>=0||_.cmp(n.n)>=0)throw new Error(e.ECDSA_SIGNATURE_PARSE_FAIL);var u=f.from(t);return _.cmp(r.nh)===1&&n.n.sub(_).toArrayLike(f,"be",32).copy(u,32),u},I.signatureExport=function(t){var i=t.slice(0,32),_=t.slice(32,64);if(new x(i).cmp(n.n)>=0||new x(_).cmp(n.n)>=0)throw new Error(e.ECDSA_SIGNATURE_PARSE_FAIL);return{r:i,s:_}},I.signatureImport=function(t){var i=new x(t.r);i.cmp(n.n)>=0&&(i=new x(0));var _=new x(t.s);return _.cmp(n.n)>=0&&(_=new x(0)),f.concat([i.toArrayLike(f,"be",32),_.toArrayLike(f,"be",32)])},I.sign=function(t,i,_,u){if(typeof _=="function"){var l=_;_=function(d){var s=l(t,i,null,u,d);if(!f.isBuffer(s)||s.length!==32)throw new Error(e.ECDSA_SIGN_FAIL);return new x(s)}}var c=new x(i);if(c.cmp(n.n)>=0||c.isZero())throw new Error(e.ECDSA_SIGN_FAIL);var N=r.sign(t,i,{canonical:!0,k:_,pers:u});return{signature:f.concat([N.r.toArrayLike(f,"be",32),N.s.toArrayLike(f,"be",32)]),recovery:N.recoveryParam}},I.verify=function(t,i,_){var u={r:i.slice(0,32),s:i.slice(32,64)},l=new x(u.r),c=new x(u.s);if(l.cmp(n.n)>=0||c.cmp(n.n)>=0)throw new Error(e.ECDSA_SIGNATURE_PARSE_FAIL);if(c.cmp(r.nh)===1||l.isZero()||c.isZero())return!1;var N=A(_);if(N===null)throw new Error(e.EC_PUBLIC_KEY_PARSE_FAIL);return r.verify(t,u,{x:N.pub.x,y:N.pub.y})},I.recover=function(t,i,_,u){var l={r:i.slice(0,32),s:i.slice(32,64)},c=new x(l.r),N=new x(l.s);if(c.cmp(n.n)>=0||N.cmp(n.n)>=0)throw new Error(e.ECDSA_SIGNATURE_PARSE_FAIL);try{if(c.isZero()||N.isZero())throw new Error;var d=r.recoverPubKey(t,l,_);return f.from(d.encode(!0,u))}catch{throw new Error(e.ECDSA_RECOVER_FAIL)}},I.ecdh=function(t,i){var _=I.ecdhUnsafe(t,i,!0);return T("sha256").update(_).digest()},I.ecdhUnsafe=function(t,i,_){var u=A(t);if(u===null)throw new Error(e.EC_PUBLIC_KEY_PARSE_FAIL);var l=new x(i);if(l.cmp(n.n)>=0||l.isZero())throw new Error(e.ECDH_FAIL);return f.from(u.pub.mul(l).encode(!0,_))}},59119:function(h,I,L){"use strict";var f=L(64435),T=L(8424),x=L(69610);function a(e,r){return e===void 0?r:(f.isBoolean(e,x.COMPRESSED_TYPE_INVALID),e)}h.exports=function(e){return{privateKeyVerify:function(r){return f.isBuffer(r,x.EC_PRIVATE_KEY_TYPE_INVALID),r.length===32&&e.privateKeyVerify(r)},privateKeyExport:function(r,n){f.isBuffer(r,x.EC_PRIVATE_KEY_TYPE_INVALID),f.isBufferLength(r,32,x.EC_PRIVATE_KEY_LENGTH_INVALID),n=a(n,!0);var E=e.privateKeyExport(r,n);return T.privateKeyExport(r,E,n)},privateKeyImport:function(r){if(f.isBuffer(r,x.EC_PRIVATE_KEY_TYPE_INVALID),r=T.privateKeyImport(r),r&&r.length===32&&e.privateKeyVerify(r))return r;throw new Error(x.EC_PRIVATE_KEY_IMPORT_DER_FAIL)},privateKeyNegate:function(r){return f.isBuffer(r,x.EC_PRIVATE_KEY_TYPE_INVALID),f.isBufferLength(r,32,x.EC_PRIVATE_KEY_LENGTH_INVALID),e.privateKeyNegate(r)},privateKeyModInverse:function(r){return f.isBuffer(r,x.EC_PRIVATE_KEY_TYPE_INVALID),f.isBufferLength(r,32,x.EC_PRIVATE_KEY_LENGTH_INVALID),e.privateKeyModInverse(r)},privateKeyTweakAdd:function(r,n){return f.isBuffer(r,x.EC_PRIVATE_KEY_TYPE_INVALID),f.isBufferLength(r,32,x.EC_PRIVATE_KEY_LENGTH_INVALID),f.isBuffer(n,x.TWEAK_TYPE_INVALID),f.isBufferLength(n,32,x.TWEAK_LENGTH_INVALID),e.privateKeyTweakAdd(r,n)},privateKeyTweakMul:function(r,n){return f.isBuffer(r,x.EC_PRIVATE_KEY_TYPE_INVALID),f.isBufferLength(r,32,x.EC_PRIVATE_KEY_LENGTH_INVALID),f.isBuffer(n,x.TWEAK_TYPE_INVALID),f.isBufferLength(n,32,x.TWEAK_LENGTH_INVALID),e.privateKeyTweakMul(r,n)},publicKeyCreate:function(r,n){return f.isBuffer(r,x.EC_PRIVATE_KEY_TYPE_INVALID),f.isBufferLength(r,32,x.EC_PRIVATE_KEY_LENGTH_INVALID),n=a(n,!0),e.publicKeyCreate(r,n)},publicKeyConvert:function(r,n){return f.isBuffer(r,x.EC_PUBLIC_KEY_TYPE_INVALID),f.isBufferLength2(r,33,65,x.EC_PUBLIC_KEY_LENGTH_INVALID),n=a(n,!0),e.publicKeyConvert(r,n)},publicKeyVerify:function(r){return f.isBuffer(r,x.EC_PUBLIC_KEY_TYPE_INVALID),e.publicKeyVerify(r)},publicKeyTweakAdd:function(r,n,E){return f.isBuffer(r,x.EC_PUBLIC_KEY_TYPE_INVALID),f.isBufferLength2(r,33,65,x.EC_PUBLIC_KEY_LENGTH_INVALID),f.isBuffer(n,x.TWEAK_TYPE_INVALID),f.isBufferLength(n,32,x.TWEAK_LENGTH_INVALID),E=a(E,!0),e.publicKeyTweakAdd(r,n,E)},publicKeyTweakMul:function(r,n,E){return f.isBuffer(r,x.EC_PUBLIC_KEY_TYPE_INVALID),f.isBufferLength2(r,33,65,x.EC_PUBLIC_KEY_LENGTH_INVALID),f.isBuffer(n,x.TWEAK_TYPE_INVALID),f.isBufferLength(n,32,x.TWEAK_LENGTH_INVALID),E=a(E,!0),e.publicKeyTweakMul(r,n,E)},publicKeyCombine:function(r,n){f.isArray(r,x.EC_PUBLIC_KEYS_TYPE_INVALID),f.isLengthGTZero(r,x.EC_PUBLIC_KEYS_LENGTH_INVALID);for(var E=0;E<r.length;++E)f.isBuffer(r[E],x.EC_PUBLIC_KEY_TYPE_INVALID),f.isBufferLength2(r[E],33,65,x.EC_PUBLIC_KEY_LENGTH_INVALID);return n=a(n,!0),e.publicKeyCombine(r,n)},signatureNormalize:function(r){return f.isBuffer(r,x.ECDSA_SIGNATURE_TYPE_INVALID),f.isBufferLength(r,64,x.ECDSA_SIGNATURE_LENGTH_INVALID),e.signatureNormalize(r)},signatureExport:function(r){f.isBuffer(r,x.ECDSA_SIGNATURE_TYPE_INVALID),f.isBufferLength(r,64,x.ECDSA_SIGNATURE_LENGTH_INVALID);var n=e.signatureExport(r);return T.signatureExport(n)},signatureImport:function(r){f.isBuffer(r,x.ECDSA_SIGNATURE_TYPE_INVALID),f.isLengthGTZero(r,x.ECDSA_SIGNATURE_LENGTH_INVALID);var n=T.signatureImport(r);if(n)return e.signatureImport(n);throw new Error(x.ECDSA_SIGNATURE_PARSE_DER_FAIL)},signatureImportLax:function(r){f.isBuffer(r,x.ECDSA_SIGNATURE_TYPE_INVALID),f.isLengthGTZero(r,x.ECDSA_SIGNATURE_LENGTH_INVALID);var n=T.signatureImportLax(r);if(n)return e.signatureImport(n);throw new Error(x.ECDSA_SIGNATURE_PARSE_DER_FAIL)},sign:function(r,n,E){f.isBuffer(r,x.MSG32_TYPE_INVALID),f.isBufferLength(r,32,x.MSG32_LENGTH_INVALID),f.isBuffer(n,x.EC_PRIVATE_KEY_TYPE_INVALID),f.isBufferLength(n,32,x.EC_PRIVATE_KEY_LENGTH_INVALID);var o=null,A=null;return E!==void 0&&(f.isObject(E,x.OPTIONS_TYPE_INVALID),E.data!==void 0&&(f.isBuffer(E.data,x.OPTIONS_DATA_TYPE_INVALID),f.isBufferLength(E.data,32,x.OPTIONS_DATA_LENGTH_INVALID),o=E.data),E.noncefn!==void 0&&(f.isFunction(E.noncefn,x.OPTIONS_NONCEFN_TYPE_INVALID),A=E.noncefn)),e.sign(r,n,A,o)},verify:function(r,n,E){return f.isBuffer(r,x.MSG32_TYPE_INVALID),f.isBufferLength(r,32,x.MSG32_LENGTH_INVALID),f.isBuffer(n,x.ECDSA_SIGNATURE_TYPE_INVALID),f.isBufferLength(n,64,x.ECDSA_SIGNATURE_LENGTH_INVALID),f.isBuffer(E,x.EC_PUBLIC_KEY_TYPE_INVALID),f.isBufferLength2(E,33,65,x.EC_PUBLIC_KEY_LENGTH_INVALID),e.verify(r,n,E)},recover:function(r,n,E,o){return f.isBuffer(r,x.MSG32_TYPE_INVALID),f.isBufferLength(r,32,x.MSG32_LENGTH_INVALID),f.isBuffer(n,x.ECDSA_SIGNATURE_TYPE_INVALID),f.isBufferLength(n,64,x.ECDSA_SIGNATURE_LENGTH_INVALID),f.isNumber(E,x.RECOVERY_ID_TYPE_INVALID),f.isNumberInInterval(E,-1,4,x.RECOVERY_ID_VALUE_INVALID),o=a(o,!0),e.recover(r,n,E,o)},ecdh:function(r,n){return f.isBuffer(r,x.EC_PUBLIC_KEY_TYPE_INVALID),f.isBufferLength2(r,33,65,x.EC_PUBLIC_KEY_LENGTH_INVALID),f.isBuffer(n,x.EC_PRIVATE_KEY_TYPE_INVALID),f.isBufferLength(n,32,x.EC_PRIVATE_KEY_LENGTH_INVALID),e.ecdh(r,n)},ecdhUnsafe:function(r,n,E){return f.isBuffer(r,x.EC_PUBLIC_KEY_TYPE_INVALID),f.isBufferLength2(r,33,65,x.EC_PUBLIC_KEY_LENGTH_INVALID),f.isBuffer(n,x.EC_PRIVATE_KEY_TYPE_INVALID),f.isBufferLength(n,32,x.EC_PRIVATE_KEY_LENGTH_INVALID),E=a(E,!0),e.ecdhUnsafe(r,n,E)}}}},69610:function(h){"use strict";h.exports=JSON.parse(`{"COMPRESSED_TYPE_INVALID":"compressed should be a boolean","EC_PRIVATE_KEY_TYPE_INVALID":"private key should be a Buffer","EC_PRIVATE_KEY_LENGTH_INVALID":"private key length is invalid","EC_PRIVATE_KEY_RANGE_INVALID":"private key range is invalid","EC_PRIVATE_KEY_TWEAK_ADD_FAIL":"tweak out of range or resulting private key is invalid","EC_PRIVATE_KEY_TWEAK_MUL_FAIL":"tweak out of range","EC_PRIVATE_KEY_EXPORT_DER_FAIL":"couldn't export to DER format","EC_PRIVATE_KEY_IMPORT_DER_FAIL":"couldn't import from DER format","EC_PUBLIC_KEYS_TYPE_INVALID":"public keys should be an Array","EC_PUBLIC_KEYS_LENGTH_INVALID":"public keys Array should have at least 1 element","EC_PUBLIC_KEY_TYPE_INVALID":"public key should be a Buffer","EC_PUBLIC_KEY_LENGTH_INVALID":"public key length is invalid","EC_PUBLIC_KEY_PARSE_FAIL":"the public key could not be parsed or is invalid","EC_PUBLIC_KEY_CREATE_FAIL":"private was invalid, try again","EC_PUBLIC_KEY_TWEAK_ADD_FAIL":"tweak out of range or resulting public key is invalid","EC_PUBLIC_KEY_TWEAK_MUL_FAIL":"tweak out of range","EC_PUBLIC_KEY_COMBINE_FAIL":"the sum of the public keys is not valid","ECDH_FAIL":"scalar was invalid (zero or overflow)","ECDSA_SIGNATURE_TYPE_INVALID":"signature should be a Buffer","ECDSA_SIGNATURE_LENGTH_INVALID":"signature length is invalid","ECDSA_SIGNATURE_PARSE_FAIL":"couldn't parse signature","ECDSA_SIGNATURE_PARSE_DER_FAIL":"couldn't parse DER signature","ECDSA_SIGNATURE_SERIALIZE_DER_FAIL":"couldn't serialize signature to DER format","ECDSA_SIGN_FAIL":"nonce generation function failed or private key is invalid","ECDSA_RECOVER_FAIL":"couldn't recover public key from signature","MSG32_TYPE_INVALID":"message should be a Buffer","MSG32_LENGTH_INVALID":"message length is invalid","OPTIONS_TYPE_INVALID":"options should be an Object","OPTIONS_DATA_TYPE_INVALID":"options.data should be a Buffer","OPTIONS_DATA_LENGTH_INVALID":"options.data length is invalid","OPTIONS_NONCEFN_TYPE_INVALID":"options.noncefn should be a Function","RECOVERY_ID_TYPE_INVALID":"recovery should be a Number","RECOVERY_ID_VALUE_INVALID":"recovery should have value between -1 and 4","TWEAK_TYPE_INVALID":"tweak should be a Buffer","TWEAK_LENGTH_INVALID":"tweak length is invalid"}`)}}]);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[7428],{79742:function(or,g){"use strict";g.byteLength=a,g.toByteArray=m,g.fromByteArray=Y;for(var x=[],p=[],o=typeof Uint8Array<"u"?Uint8Array:Array,F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=0,U=F.length;O<U;++O)x[O]=F[O],p[F.charCodeAt(O)]=O;p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63;function l(h){var f=h.length;if(f%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var E=h.indexOf("=");E===-1&&(E=f);var P=E===f?0:4-E%4;return[E,P]}function a(h){var f=l(h),E=f[0],P=f[1];return(E+P)*3/4-P}function $(h,f,E){return(f+E)*3/4-E}function m(h){var f,E=l(h),P=E[0],_=E[1],I=new o($(h,P,_)),T=0,R=_>0?P-4:P,b;for(b=0;b<R;b+=4)f=p[h.charCodeAt(b)]<<18|p[h.charCodeAt(b+1)]<<12|p[h.charCodeAt(b+2)]<<6|p[h.charCodeAt(b+3)],I[T++]=f>>16&255,I[T++]=f>>8&255,I[T++]=f&255;return _===2&&(f=p[h.charCodeAt(b)]<<2|p[h.charCodeAt(b+1)]>>4,I[T++]=f&255),_===1&&(f=p[h.charCodeAt(b)]<<10|p[h.charCodeAt(b+1)]<<4|p[h.charCodeAt(b+2)]>>2,I[T++]=f>>8&255,I[T++]=f&255),I}function A(h){return x[h>>18&63]+x[h>>12&63]+x[h>>6&63]+x[h&63]}function k(h,f,E){for(var P,_=[],I=f;I<E;I+=3)P=(h[I]<<16&16711680)+(h[I+1]<<8&65280)+(h[I+2]&255),_.push(A(P));return _.join("")}function Y(h){for(var f,E=h.length,P=E%3,_=[],I=16383,T=0,R=E-P;T<R;T+=I)_.push(k(h,T,T+I>R?R:T+I));return P===1?(f=h[E-1],_.push(x[f>>2]+x[f<<4&63]+"==")):P===2&&(f=(h[E-2]<<8)+h[E-1],_.push(x[f>>10]+x[f>>4&63]+x[f<<2&63]+"=")),_.join("")}},48764:function(or,g,x){"use strict";/*!
|
|
2
|
+
* The buffer module from node.js, for the browser.
|
|
3
|
+
*
|
|
4
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/const p=x(79742),o=x(80645),F=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;g.Buffer=a,g.SlowBuffer=I,g.INSPECT_MAX_BYTES=50;const O=2147483647;g.kMaxLength=O,a.TYPED_ARRAY_SUPPORT=U(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function U(){try{const e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(!!a.isBuffer(this))return this.byteOffset}});function l(e){if(e>O)throw new RangeError('The value "'+e+'" is invalid for option "size"');const r=new Uint8Array(e);return Object.setPrototypeOf(r,a.prototype),r}function a(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return k(e)}return $(e,r,t)}a.poolSize=8192;function $(e,r,t){if(typeof e=="string")return Y(e,r);if(ArrayBuffer.isView(e))return f(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return E(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return a.from(n,r,t);const i=P(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return a.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}a.from=function(e,r,t){return $(e,r,t)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function m(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function A(e,r,t){return m(e),e<=0?l(e):r!==void 0?typeof t=="string"?l(e).fill(r,t):l(e).fill(r):l(e)}a.alloc=function(e,r,t){return A(e,r,t)};function k(e){return m(e),l(e<0?0:_(e)|0)}a.allocUnsafe=function(e){return k(e)},a.allocUnsafeSlow=function(e){return k(e)};function Y(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);const t=T(e,r)|0;let n=l(t);const i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function h(e){const r=e.length<0?0:_(e.length)|0,t=l(r);for(let n=0;n<r;n+=1)t[n]=e[n]&255;return t}function f(e){if(G(e,Uint8Array)){const r=new Uint8Array(e);return E(r.buffer,r.byteOffset,r.byteLength)}return h(e)}function E(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,a.prototype),n}function P(e){if(a.isBuffer(e)){const r=_(e.length)|0,t=l(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||Br(e.length)?l(0):h(e);if(e.type==="Buffer"&&Array.isArray(e.data))return h(e.data)}function _(e){if(e>=O)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O.toString(16)+" bytes");return e|0}function I(e){return+e!=e&&(e=0),a.alloc(+e)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype},a.compare=function(r,t){if(G(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),G(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,i=t.length;for(let u=0,s=Math.min(n,i);u<s;++u)if(r[u]!==t[u]){n=r[u],i=t[u];break}return n<i?-1:i<n?1:0},a.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;const i=a.allocUnsafe(t);let u=0;for(n=0;n<r.length;++n){let s=r[n];if(G(s,Uint8Array))u+s.length>i.length?(a.isBuffer(s)||(s=a.from(s)),s.copy(i,u)):Uint8Array.prototype.set.call(i,s,u);else if(a.isBuffer(s))s.copy(i,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=s.length}return i};function T(e,r){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||G(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return S(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return wr(e).length;default:if(i)return n?-1:S(e).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=T;function R(e,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return Er(this,r,t);case"utf8":case"utf-8":return Q(this,r,t);case"ascii":return j(this,r,t);case"latin1":case"binary":return dr(this,r,t);case"base64":return nr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gr(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function b(e,r,t){const n=e[r];e[r]=e[t],e[t]=n}a.prototype.swap16=function(){const r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)b(this,t,t+1);return this},a.prototype.swap32=function(){const r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},a.prototype.swap64=function(){const r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},a.prototype.toString=function(){const r=this.length;return r===0?"":arguments.length===0?Q(this,0,r):R.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(r){if(!a.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0},a.prototype.inspect=function(){let r="";const t=g.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"},F&&(a.prototype[F]=a.prototype.inspect),a.prototype.compare=function(r,t,n,i,u){if(G(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),u===void 0&&(u=this.length),t<0||n>r.length||i<0||u>this.length)throw new RangeError("out of range index");if(i>=u&&t>=n)return 0;if(i>=u)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,u>>>=0,this===r)return 0;let s=u-i,B=n-t;const N=Math.min(s,B),M=this.slice(i,u),v=r.slice(t,n);for(let C=0;C<N;++C)if(M[C]!==v[C]){s=M[C],B=v[C];break}return s<B?-1:B<s?1:0};function V(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Br(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,n)),a.isBuffer(r))return r.length===0?-1:K(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):K(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function K(e,r,t,n,i){let u=1,s=e.length,B=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;u=2,s/=2,B/=2,t/=2}function N(v,C){return u===1?v[C]:v.readUInt16BE(C*u)}let M;if(i){let v=-1;for(M=t;M<s;M++)if(N(e,M)===N(r,v===-1?0:M-v)){if(v===-1&&(v=M),M-v+1===B)return v*u}else v!==-1&&(M-=M-v),v=-1}else for(t+B>s&&(t=s-B),M=t;M>=0;M--){let v=!0;for(let C=0;C<B;C++)if(N(e,M+C)!==N(r,C)){v=!1;break}if(v)return M}return-1}a.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1},a.prototype.indexOf=function(r,t,n){return V(this,r,t,n,!0)},a.prototype.lastIndexOf=function(r,t,n){return V(this,r,t,n,!1)};function H(e,r,t,n){t=Number(t)||0;const i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;const u=r.length;n>u/2&&(n=u/2);let s;for(s=0;s<n;++s){const B=parseInt(r.substr(s*2,2),16);if(Br(B))return s;e[t+s]=B}return s}function Z(e,r,t,n){return ir(S(r,e.length-t),e,t,n)}function rr(e,r,t,n){return ir(D(r),e,t,n)}function tr(e,r,t,n){return ir(wr(r),e,t,n)}function er(e,r,t,n){return ir(z(r,e.length-t),e,t,n)}a.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const u=this.length-t;if((n===void 0||n>u)&&(n=u),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let s=!1;for(;;)switch(i){case"hex":return H(this,r,t,n);case"utf8":case"utf-8":return Z(this,r,t,n);case"ascii":case"latin1":case"binary":return rr(this,r,t,n);case"base64":return tr(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return er(this,r,t,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function nr(e,r,t){return r===0&&t===e.length?p.fromByteArray(e):p.fromByteArray(e.slice(r,t))}function Q(e,r,t){t=Math.min(e.length,t);const n=[];let i=r;for(;i<t;){const u=e[i];let s=null,B=u>239?4:u>223?3:u>191?2:1;if(i+B<=t){let N,M,v,C;switch(B){case 1:u<128&&(s=u);break;case 2:N=e[i+1],(N&192)===128&&(C=(u&31)<<6|N&63,C>127&&(s=C));break;case 3:N=e[i+1],M=e[i+2],(N&192)===128&&(M&192)===128&&(C=(u&15)<<12|(N&63)<<6|M&63,C>2047&&(C<55296||C>57343)&&(s=C));break;case 4:N=e[i+1],M=e[i+2],v=e[i+3],(N&192)===128&&(M&192)===128&&(v&192)===128&&(C=(u&15)<<18|(N&63)<<12|(M&63)<<6|v&63,C>65535&&C<1114112&&(s=C))}}s===null?(s=65533,B=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=B}return ar(n)}const J=4096;function ar(e){const r=e.length;if(r<=J)return String.fromCharCode.apply(String,e);let t="",n=0;for(;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=J));return t}function j(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function dr(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function Er(e,r,t){const n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);let i="";for(let u=r;u<t;++u)i+=br[e[u]];return i}function gr(e,r,t){const n=e.slice(r,t);let i="";for(let u=0;u<n.length-1;u+=2)i+=String.fromCharCode(n[u]+n[u+1]*256);return i}a.prototype.slice=function(r,t){const n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);const i=this.subarray(r,t);return Object.setPrototypeOf(i,a.prototype),i};function L(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||L(r,t,this.length);let i=this[r],u=1,s=0;for(;++s<t&&(u*=256);)i+=this[r+s]*u;return i},a.prototype.readUintBE=a.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||L(r,t,this.length);let i=this[r+--t],u=1;for(;t>0&&(u*=256);)i+=this[r+--t]*u;return i},a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||L(r,1,this.length),this[r]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||L(r,2,this.length),this[r]|this[r+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||L(r,2,this.length),this[r]<<8|this[r+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||L(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||L(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},a.prototype.readBigUInt64LE=X(function(r){r=r>>>0,d(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&c(r,this.length-8);const i=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,u=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(i)+(BigInt(u)<<BigInt(32))}),a.prototype.readBigUInt64BE=X(function(r){r=r>>>0,d(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&c(r,this.length-8);const i=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],u=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(u)}),a.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||L(r,t,this.length);let i=this[r],u=1,s=0;for(;++s<t&&(u*=256);)i+=this[r+s]*u;return u*=128,i>=u&&(i-=Math.pow(2,8*t)),i},a.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||L(r,t,this.length);let i=t,u=1,s=this[r+--i];for(;i>0&&(u*=256);)s+=this[r+--i]*u;return u*=128,s>=u&&(s-=Math.pow(2,8*t)),s},a.prototype.readInt8=function(r,t){return r=r>>>0,t||L(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},a.prototype.readInt16LE=function(r,t){r=r>>>0,t||L(r,2,this.length);const n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},a.prototype.readInt16BE=function(r,t){r=r>>>0,t||L(r,2,this.length);const n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||L(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||L(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},a.prototype.readBigInt64LE=X(function(r){r=r>>>0,d(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&c(r,this.length-8);const i=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)}),a.prototype.readBigInt64BE=X(function(r){r=r>>>0,d(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&c(r,this.length-8);const i=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(i)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n)}),a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||L(r,4,this.length),o.read(this,r,!0,23,4)},a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||L(r,4,this.length),o.read(this,r,!1,23,4)},a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||L(r,8,this.length),o.read(this,r,!0,52,8)},a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||L(r,8,this.length),o.read(this,r,!1,52,8)};function W(e,r,t,n,i,u){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<u)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){const B=Math.pow(2,8*n)-1;W(this,r,t,n,B,0)}let u=1,s=0;for(this[t]=r&255;++s<n&&(u*=256);)this[t+s]=r/u&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){const B=Math.pow(2,8*n)-1;W(this,r,t,n,B,0)}let u=n-1,s=1;for(this[t+u]=r&255;--u>=0&&(s*=256);)this[t+u]=r/s&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||W(this,r,t,1,255,0),this[t]=r&255,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||W(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||W(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||W(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||W(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function sr(e,r,t,n,i){yr(r,n,i,e,t,7);let u=Number(r&BigInt(4294967295));e[t++]=u,u=u>>8,e[t++]=u,u=u>>8,e[t++]=u,u=u>>8,e[t++]=u;let s=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=s,s=s>>8,e[t++]=s,s=s>>8,e[t++]=s,s=s>>8,e[t++]=s,t}function cr(e,r,t,n,i){yr(r,n,i,e,t,7);let u=Number(r&BigInt(4294967295));e[t+7]=u,u=u>>8,e[t+6]=u,u=u>>8,e[t+5]=u,u=u>>8,e[t+4]=u;let s=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=s,s=s>>8,e[t+2]=s,s=s>>8,e[t+1]=s,s=s>>8,e[t]=s,t+8}a.prototype.writeBigUInt64LE=X(function(r,t=0){return sr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=X(function(r,t=0){return cr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){const N=Math.pow(2,8*n-1);W(this,r,t,n,N-1,-N)}let u=0,s=1,B=0;for(this[t]=r&255;++u<n&&(s*=256);)r<0&&B===0&&this[t+u-1]!==0&&(B=1),this[t+u]=(r/s>>0)-B&255;return t+n},a.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){const N=Math.pow(2,8*n-1);W(this,r,t,n,N-1,-N)}let u=n-1,s=1,B=0;for(this[t+u]=r&255;--u>=0&&(s*=256);)r<0&&B===0&&this[t+u+1]!==0&&(B=1),this[t+u]=(r/s>>0)-B&255;return t+n},a.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||W(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1},a.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||W(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2},a.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||W(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2},a.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||W(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4},a.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||W(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4},a.prototype.writeBigInt64LE=X(function(r,t=0){return sr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=X(function(r,t=0){return cr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function fr(e,r,t,n,i,u){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function pr(e,r,t,n,i){return r=+r,t=t>>>0,i||fr(e,r,t,4,34028234663852886e22,-34028234663852886e22),o.write(e,r,t,n,23,4),t+4}a.prototype.writeFloatLE=function(r,t,n){return pr(this,r,t,!0,n)},a.prototype.writeFloatBE=function(r,t,n){return pr(this,r,t,!1,n)};function lr(e,r,t,n,i){return r=+r,t=t>>>0,i||fr(e,r,t,8,17976931348623157e292,-17976931348623157e292),o.write(e,r,t,n,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,n){return lr(this,r,t,!0,n)},a.prototype.writeDoubleBE=function(r,t,n){return lr(this,r,t,!1,n)},a.prototype.copy=function(r,t,n,i){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);const u=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),u},a.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){const s=r.charCodeAt(0);(i==="utf8"&&s<128||i==="latin1")&&(r=s)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else{const s=a.isBuffer(r)?r:a.from(r,i),B=s.length;if(B===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=s[u%B]}return this};const q={};function ur(e,r,t){q[e]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}ur("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ur("ERR_INVALID_ARG_TYPE",function(e,r){return`The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError),ur("ERR_OUT_OF_RANGE",function(e,r,t){let n=`The value of "${e}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=hr(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=hr(i)),i+="n"),n+=` It must be ${r}. Received ${i}`,n},RangeError);function hr(e){let r="",t=e.length;const n=e[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function mr(e,r,t){d(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&c(r,e.length-(t+1))}function yr(e,r,t,n,i,u){if(e>t||e<r){const s=typeof r=="bigint"?"n":"";let B;throw u>3?r===0||r===BigInt(0)?B=`>= 0${s} and < 2${s} ** ${(u+1)*8}${s}`:B=`>= -(2${s} ** ${(u+1)*8-1}${s}) and < 2 ** ${(u+1)*8-1}${s}`:B=`>= ${r}${s} and <= ${t}${s}`,new q.ERR_OUT_OF_RANGE("value",B,e)}mr(n,i,u)}function d(e,r){if(typeof e!="number")throw new q.ERR_INVALID_ARG_TYPE(r,"number",e)}function c(e,r,t){throw Math.floor(e)!==e?(d(e,t),new q.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new q.ERR_BUFFER_OUT_OF_BOUNDS:new q.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}const w=/[^+/0-9A-Za-z-_]/g;function y(e){if(e=e.split("=")[0],e=e.trim().replace(w,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function S(e,r){r=r||1/0;let t;const n=e.length;let i=null;const u=[];for(let s=0;s<n;++s){if(t=e.charCodeAt(s),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&u.push(239,191,189);continue}else if(s+1===n){(r-=3)>-1&&u.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&u.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&u.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;u.push(t)}else if(t<2048){if((r-=2)<0)break;u.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;u.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;u.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return u}function D(e){const r=[];for(let t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function z(e,r){let t,n,i;const u=[];for(let s=0;s<e.length&&!((r-=2)<0);++s)t=e.charCodeAt(s),n=t>>8,i=t%256,u.push(i),u.push(n);return u}function wr(e){return p.toByteArray(y(e))}function ir(e,r,t,n){let i;for(i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function G(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function Br(e){return e!==e}const br=function(){const e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){const n=t*16;for(let i=0;i<16;++i)r[n+i]=e[t]+e[i]}return r}();function X(e){return typeof BigInt>"u"?xr:e}function xr(){throw new Error("BigInt not supported")}},18595:function(or,g,x){"use strict";var p;p={value:!0};var o=x(47630),F=x(79911);const O=o.asCodec(d=>F.base16.parse(o.asString(d)),d=>F.base16.stringify(d).toLowerCase()),U=o.asCodec(d=>F.base32.parse(o.asString(d),{loose:!0}),d=>F.base32.stringify(d,{pad:!1})),l=o.asCodec(d=>F.base64.parse(o.asString(d)),d=>F.base64.stringify(d)),a=o.asObject({voucherId:o.asString,activates:o.asDate,created:o.asDate,ip:o.asString,ipDescription:o.asString,deviceDescription:o.asOptional(o.asString)}),$=o.asObject({min_length:o.asNumber,category:o.asValue("address","must","numeric","recovery2","string"),question:o.asString}),m=o.asObject({encryptionType:o.asNumber,data_base64:o.asString,iv_hex:o.asString}),A=o.asObject({salt_hex:O,n:o.asNumber,r:o.asNumber,p:o.asNumber}),k=o.asObject({loginRequest:o.asOptional(o.asObject({appId:o.asString}).withRest),publicKey:l,timeout:o.asOptional(o.asNumber)}).withRest,Y=o.asObject({publicKey:l,box:m}),h=o.asArray(l);o.asObject({data:o.asUnknown,deviceDescription:o.asOptional(o.asString),otp:o.asOptional(o.asString),voucherId:o.asOptional(o.asString),voucherAuth:o.asOptional(l),loginId:o.asOptional(l),loginAuth:o.asOptional(l),userId:o.asOptional(l),passwordAuth:o.asOptional(l),pin2Id:o.asOptional(l),pin2Auth:o.asOptional(l),recovery2Id:o.asOptional(l),recovery2Auth:o.asOptional(h),loginIds:o.asOptional(o.asArray(l)),otpResetAuth:o.asOptional(o.asString),did:o.asOptional(o.asString),l1:o.asOptional(l),lp1:o.asOptional(l),lpin1:o.asOptional(l),lra1:o.asOptional(l),recoveryAuth:o.asOptional(l)}),o.asObject({results:o.asOptional(o.asUnknown),status_code:o.asNumber,message:o.asString}),o.asObject({otpTimeout:o.asOptional(o.asNumber,7*24*60*60),otpKey:U}),o.asObject({passwordAuth:l,passwordAuthBox:m,passwordAuthSnrp:A,passwordBox:m,passwordKeySnrp:A}),o.asObject({pin2Id:l}),o.asObject({pin2Id:o.asOptional(l),pin2Auth:o.asOptional(l),pin2Box:o.asOptional(m),pin2KeyBox:o.asOptional(m),pin2TextBox:m}),o.asObject({recovery2Id:l}),o.asObject({recovery2Id:l,recovery2Auth:h,recovery2Box:m,recovery2KeyBox:m,question2Box:m}),o.asObject({loginAuthBox:m,loginAuth:l}),o.asObject({userId:l,userTextBox:m}),o.asObject({approvedVouchers:o.asOptional(o.asArray(o.asString)),rejectedVouchers:o.asOptional(o.asArray(o.asString))}),o.asObject({keyBoxes:o.asArray(m),newSyncKeys:o.asOptional(o.asArray(o.asString),()=>[])}),o.asObject({appId:o.asString,loginId:l,parentBox:o.asOptional(m)}).withRest,o.asObject({request:k,replies:o.asArray(Y)});const f=o.asObject({appId:o.asString,created:o.asDate,loginId:l,children:o.asOptional(o.asArray(d=>f(d))),parentBox:o.asOptional(m),otpKey:o.asOptional(U),otpResetDate:o.asOptional(o.asDate),otpTimeout:o.asOptional(o.asNumber),passwordAuthBox:o.asOptional(m),passwordAuthSnrp:o.asOptional(A),passwordBox:o.asOptional(m),passwordKeySnrp:o.asOptional(A),pin2Box:o.asOptional(m),pin2KeyBox:o.asOptional(m),pin2TextBox:o.asOptional(m),question2Box:o.asOptional(m),recovery2Box:o.asOptional(m),recovery2KeyBox:o.asOptional(m),loginAuthBox:o.asOptional(m),userId:o.asOptional(l),userTextBox:o.asOptional(m),pendingVouchers:o.asOptional(o.asArray(a),()=>[]),keyBoxes:o.asOptional(o.asArray(m)),mnemonicBox:o.asOptional(m),rootKeyBox:o.asOptional(m),syncKeyBox:o.asOptional(m)});o.asArray(o.asObject({loginId:l,otpResetPending:o.asOptional(o.asBoolean,!1),pendingVouchers:o.asOptional(o.asArray(a),()=>[]),recovery2Corrupt:o.asOptional(o.asBoolean,!1)}));const E=o.asObject({login_id:o.asOptional(l),otp_reset_auth:o.asOptional(o.asString),otp_timeout_date:o.asOptional(o.asDate),reason:o.asOptional(o.asValue("ip","otp"),"otp"),voucher_activates:o.asOptional(o.asDate),voucher_auth:o.asOptional(l),voucher_id:o.asOptional(o.asString)});o.asObject({otpResetDate:o.asDate});const P=o.asObject({wait_seconds:o.asOptional(o.asNumber)});o.asArray($),o.asObject({question2Box:m}),o.asObject({passwordAuthSnrp:o.asOptional(A),questionBox:o.asOptional(m),questionKeySnrp:o.asOptional(A),recoveryAuthSnrp:o.asOptional(A)});function _(d){const{currencyInfo:c,allTokens:w}=d;let y=d.tokenId;y==null&&d.currencyCode!=null&&d.currencyCode!==c.currencyCode&&(y=Object.keys(w).find(D=>w[D].currencyCode===d.currencyCode));const{currencyCode:S}=y==null?c:w[y];return{currencyCode:S,tokenId:y}}function I(d="Please send a larger amount"){if(!(this instanceof I))throw new TypeError("Class constructor DustSpendError cannot be invoked without 'new'");var c;function w(y){return c=new Error(y),Object.defineProperty(c,"constructor",{value:I,configurable:!0,writable:!0}),c}return w(d),c.name="DustSpendError",c}function T(d={}){if(!(this instanceof T))throw new TypeError("Class constructor InsufficientFundsError cannot be invoked without 'new'");var c;function w(y){return c=new Error(y),Object.defineProperty(c,"constructor",{value:T,configurable:!0,writable:!0}),c}if(typeof d=="string")d.length>5?w(d):(w(`Insufficient ${d}`),c.currencyCode=d);else{const{currencyCode:y,networkFee:S}=d;w(`Insufficient ${y!=null?y:"funds"}`),c.currencyCode=y,c.networkFee=S}return c.name="InsufficientFundsError",c}function R(d="Cannot reach the network"){if(!(this instanceof R))throw new TypeError("Class constructor NetworkError cannot be invoked without 'new'");var c;function w(y){return c=new Error(y),Object.defineProperty(c,"constructor",{value:R,configurable:!0,writable:!0}),c}return w(d),c.name="NetworkError",c}function b(d="Unable to create zero-amount transaction."){if(!(this instanceof b))throw new TypeError("Class constructor NoAmountSpecifiedError cannot be invoked without 'new'");var c;function w(y){return c=new Error(y),Object.defineProperty(c,"constructor",{value:b,configurable:!0,writable:!0}),c}return w(d),c.name="NoAmountSpecifiedError",c}function V(d="The application is too old. Please upgrade."){if(!(this instanceof V))throw new TypeError("Class constructor ObsoleteApiError cannot be invoked without 'new'");var c;function w(y){return c=new Error(y),Object.defineProperty(c,"constructor",{value:V,configurable:!0,writable:!0}),c}return w(d),c.name="ObsoleteApiError",c}function K(d,c="Invalid OTP token"){if(!(this instanceof K))throw new TypeError("Class constructor OtpError cannot be invoked without 'new'");var w;function y(D){return w=new Error(D),Object.defineProperty(w,"constructor",{value:K,configurable:!0,writable:!0}),w}y(c),w.name="OtpError",w.reason="otp";const S=o.asMaybe(E)(d);if(S!=null)return S.login_id!=null&&(w.loginId=F.base64.stringify(S.login_id)),w.resetToken=S.otp_reset_auth,w.reason=S.reason,w.resetDate=S.otp_timeout_date,w.voucherActivates=S.voucher_activates,S.voucher_auth!=null&&(w.voucherAuth=F.base64.stringify(S.voucher_auth)),w.voucherId=S.voucher_id,w}function H(d,c="Invalid password"){if(!(this instanceof H))throw new TypeError("Class constructor PasswordError cannot be invoked without 'new'");var w;function y(D){return w=new Error(D),Object.defineProperty(w,"constructor",{value:H,configurable:!0,writable:!0}),w}y(c),w.name="PasswordError";const S=o.asMaybe(P)(d);if(S!=null)return w.wait=S.wait_seconds,w}function Z(d="Not enough confirmed funds"){if(!(this instanceof Z))throw new TypeError("Class constructor PendingFundsError cannot be invoked without 'new'");var c;function w(y){return c=new Error(y),Object.defineProperty(c,"constructor",{value:Z,configurable:!0,writable:!0}),c}return w(d),c.name="PendingFundsError",c}function rr(d="Wallets can not be the same currency"){if(!(this instanceof rr))throw new TypeError("Class constructor SameCurrencyError cannot be invoked without 'new'");var c;function w(y){return c=new Error(y),Object.defineProperty(c,"constructor",{value:rr,configurable:!0,writable:!0}),c}return w(d),c.name="SameCurrencyError",c}function tr(d="Spending to self"){if(!(this instanceof tr))throw new TypeError("Class constructor SpendToSelfError cannot be invoked without 'new'");var c;function w(y){return c=new Error(y),Object.defineProperty(c,"constructor",{value:tr,configurable:!0,writable:!0}),c}return w(d),c.name="SpendToSelfError",c}function er(d,c,w="from"){if(!(this instanceof er))throw new TypeError("Class constructor SwapAboveLimitError cannot be invoked without 'new'");var y;function S(D){return y=new Error(D),Object.defineProperty(y,"constructor",{value:er,configurable:!0,writable:!0}),y}return S("Amount is too high"),y.name="SwapAboveLimitError",y.pluginId=d.pluginId,y.nativeMax=c,y.direction=w,y}function nr(d,c,w="from"){if(!(this instanceof nr))throw new TypeError("Class constructor SwapBelowLimitError cannot be invoked without 'new'");var y;function S(D){return y=new Error(D),Object.defineProperty(y,"constructor",{value:nr,configurable:!0,writable:!0}),y}return S("Amount is too low"),y.name="SwapBelowLimitError",y.pluginId=d.pluginId,y.nativeMin=c,y.direction=w,y}function Q(d,c,w){if(!(this instanceof Q))throw new TypeError("Class constructor SwapCurrencyError cannot be invoked without 'new'");var y;function S(D){return y=new Error(D),Object.defineProperty(y,"constructor",{value:Q,configurable:!0,writable:!0}),y}if(typeof c=="string")w=w!=null?w:"unknown",S(`${d.displayName} does not support ${c} to ${w}`),y.name="SwapCurrencyError",y.pluginId=d.pluginId,y.fromCurrency=c,y.toCurrency=w;else{const D=_({allTokens:c.fromWallet.currencyConfig.allTokens,currencyInfo:c.fromWallet.currencyInfo,currencyCode:c.fromCurrencyCode,tokenId:c.fromTokenId}),z=_({allTokens:c.toWallet.currencyConfig.allTokens,currencyInfo:c.toWallet.currencyInfo,currencyCode:c.toCurrencyCode,tokenId:c.toTokenId}),wr=D.tokenId==null?D.currencyCode:`${D.currencyCode} (${D.tokenId})`,ir=z.tokenId==null?z.currencyCode:`${z.currencyCode} (${z.tokenId})`;S(`${d.displayName} does not support ${wr} to ${ir}`),y.name="SwapCurrencyError",y.pluginId=d.pluginId,y.fromCurrency=D.currencyCode,y.fromTokenId=D.tokenId,y.toCurrency=z.currencyCode,y.toTokenId=z.tokenId}return y}function J(d,c){if(!(this instanceof J))throw new TypeError("Class constructor SwapPermissionError cannot be invoked without 'new'");var w;function y(S){return w=new Error(S),Object.defineProperty(w,"constructor",{value:J,configurable:!0,writable:!0}),w}return c!=null?y(c):y("You are not allowed to make this trade"),w.name="SwapPermissionError",w.pluginId=d.pluginId,w.reason=c,w}function ar(d="Invalid username"){if(!(this instanceof ar))throw new TypeError("Class constructor UsernameError cannot be invoked without 'new'");var c;function w(y){return c=new Error(y),Object.defineProperty(c,"constructor",{value:ar,configurable:!0,writable:!0}),c}return w(d),c.name="UsernameError",c}function j(d){return function(w){if(w instanceof Error&&w.name===d)return w}}const dr=j("DustSpendError"),Er=j("InsufficientFundsError"),gr=j("NetworkError"),L=j("NoAmountSpecifiedError"),W=j("ObsoleteApiError"),sr=j("OtpError"),cr=j("PasswordError"),fr=j("PendingFundsError"),pr=j("SameCurrencyError"),lr=j("SpendToSelfError"),q=j("SwapAboveLimitError"),ur=j("SwapBelowLimitError"),hr=j("SwapCurrencyError"),mr=j("SwapPermissionError"),yr=j("UsernameError");g.Yy=I,g.C_=T,g.F7=R,g.$D=b,g.D1=V,g.XH=K,g.Yr=H,g.Vq=Z,g.AQ=rr,g.l0=tr,g.I9=er,g.q0=nr,g.Iz=Q,g.d2=J,g.cI=ar,g.y$=dr,g.X7=Er,g.g4=gr,g.xz=L,g.fT=W,g.zQ=sr,g.sl=cr,g.mc=fr,g.q=pr,g.SS=lr,g.Yl=q,g.Gq=ur,g.UW=hr,g.J_=mr,g.L=yr},80645:function(or,g){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */g.read=function(x,p,o,F,O){var U,l,a=O*8-F-1,$=(1<<a)-1,m=$>>1,A=-7,k=o?O-1:0,Y=o?-1:1,h=x[p+k];for(k+=Y,U=h&(1<<-A)-1,h>>=-A,A+=a;A>0;U=U*256+x[p+k],k+=Y,A-=8);for(l=U&(1<<-A)-1,U>>=-A,A+=F;A>0;l=l*256+x[p+k],k+=Y,A-=8);if(U===0)U=1-m;else{if(U===$)return l?NaN:(h?-1:1)*(1/0);l=l+Math.pow(2,F),U=U-m}return(h?-1:1)*l*Math.pow(2,U-F)},g.write=function(x,p,o,F,O,U){var l,a,$,m=U*8-O-1,A=(1<<m)-1,k=A>>1,Y=O===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=F?0:U-1,f=F?1:-1,E=p<0||p===0&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===1/0?(a=isNaN(p)?1:0,l=A):(l=Math.floor(Math.log(p)/Math.LN2),p*($=Math.pow(2,-l))<1&&(l--,$*=2),l+k>=1?p+=Y/$:p+=Y*Math.pow(2,1-k),p*$>=2&&(l++,$/=2),l+k>=A?(a=0,l=A):l+k>=1?(a=(p*$-1)*Math.pow(2,O),l=l+k):(a=p*Math.pow(2,k-1)*Math.pow(2,O),l=0));O>=8;x[o+h]=a&255,h+=f,a/=256,O-=8);for(l=l<<O|a,m+=O;m>0;x[o+h]=l&255,h+=f,l/=256,m-=8);x[o+h-f]|=E*128}},79911:function(or,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0});function x(h,f,E){var P;if(E===void 0&&(E={}),!f.codes){f.codes={};for(var _=0;_<f.chars.length;++_)f.codes[f.chars[_]]=_}if(!E.loose&&h.length*f.bits&7)throw new SyntaxError("Invalid padding");for(var I=h.length;h[I-1]==="=";)if(--I,!E.loose&&!((h.length-I)*f.bits&7))throw new SyntaxError("Invalid padding");for(var T=new((P=E.out)!=null?P:Uint8Array)(I*f.bits/8|0),R=0,b=0,V=0,K=0;K<I;++K){var H=f.codes[h[K]];if(H===void 0)throw new SyntaxError("Invalid character "+h[K]);b=b<<f.bits|H,R+=f.bits,R>=8&&(R-=8,T[V++]=255&b>>R)}if(R>=f.bits||255&b<<8-R)throw new SyntaxError("Unexpected end of data");return T}function p(h,f,E){E===void 0&&(E={});for(var P=E,_=P.pad,I=_===void 0?!0:_,T=(1<<f.bits)-1,R="",b=0,V=0,K=0;K<h.length;++K)for(V=V<<8|255&h[K],b+=8;b>f.bits;)b-=f.bits,R+=f.chars[T&V>>b];if(b&&(R+=f.chars[T&V<<f.bits-b]),I)for(;R.length*f.bits&7;)R+="=";return R}var o={chars:"0123456789ABCDEF",bits:4},F={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bits:5},O={chars:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bits:5},U={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bits:6},l={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bits:6},a={parse:function(f,E){return x(f.toUpperCase(),o,E)},stringify:function(f,E){return p(f,o,E)}},$={parse:function(f,E){return E===void 0&&(E={}),x(E.loose?f.toUpperCase().replace(/0/g,"O").replace(/1/g,"L").replace(/8/g,"B"):f,F,E)},stringify:function(f,E){return p(f,F,E)}},m={parse:function(f,E){return x(f,O,E)},stringify:function(f,E){return p(f,O,E)}},A={parse:function(f,E){return x(f,U,E)},stringify:function(f,E){return p(f,U,E)}},k={parse:function(f,E){return x(f,l,E)},stringify:function(f,E){return p(f,l,E)}},Y={parse:x,stringify:p};g.base16=a,g.base32=$,g.base32hex=m,g.base64=A,g.base64url=k,g.codec=Y},94935:function(or,g,x){"use strict";x.d(g,{$D:function(){return U},C_:function(){return F},l0:function(){return k}});var p=x(18595);const o=p.Yy,F=p.C_,O=p.F7,U=p.$D,l=p.D1,a=p.XH,$=p.Yr,m=p.Vq,A=p.AQ,k=p.l0,Y=p.I9,h=p.q0,f=p.Iz,E=p.d2,P=p.cI,_=p.y$,I=p.X7,T=p.g4,R=p.xz,b=p.fT,V=p.zQ,K=p.sl,H=p.mc,Z=p.q,rr=p.SS,tr=p.Yl,er=p.Gq,nr=p.UW,Q=p.J_,J=p.L}}]);
|