@linenext/dapp-portal-sdk
Version:
Dapp Portal SDK
1 lines โข 948 kB
JavaScript
var DappPortalSDK=function(){"use strict";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(HO){i(HO)}}function a(e){try{c(r.throw(e))}catch(HO){i(HO)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(HO){a=[6,HO],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function s(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(Qe){o={error:Qe}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var l=function(e){function n(t){var r=e.call(this,t.message)||this;return r.name="RpcException",r.code=t.code,r.data=t.data,Object.setPrototypeOf(r,n.prototype),r}return t(n,e),n}(Error),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function h(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var f,p={},g={},v={},m={};function y(){return f||(f=1,e=m,Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectorState=e.CONNECT_PROTOCOL_VER=e.CONNECT_JSONRPC_VER=e.OKXCONNECTOR_SESSION_LIVE_TTL=e.OKXCONNECTOR_MESSAGE_DISCONNECT_TTL=e.OKXCONNECTOR_MESSAGE_TTL=e.OKXCONNECTOR_WS_URL_PENDING_CLOSE_CODE=e.OKXCONNECTOR_WS_URL_LIST=e.OKXCONNECTOR_WS_URL_IDX_KEY=e.OKXCONNECTOR_WS_URL_3=e.OKXCONNECTOR_WS_URL_2=e.OKXCONNECTOR_WS_URL_1=e.EVENT_EMITTER_MAX_LISTENERS=e.OKXCONNECTOR_PROTOCOL_VERSION=void 0,e.OKXCONNECTOR_PROTOCOL_VERSION=2,e.EVENT_EMITTER_MAX_LISTENERS=10,e.OKXCONNECTOR_WS_URL_1="wss://wsdexpri.okx.com/ws/v1/wallet-connect-relay",e.OKXCONNECTOR_WS_URL_2="wss://wsdexpri.okx.ac/ws/v1/wallet-connect-relay",e.OKXCONNECTOR_WS_URL_3="wss://wsdexpri.coinall.ltd/ws/v1/wallet-connect-relay",e.OKXCONNECTOR_WS_URL_IDX_KEY="wuik",e.OKXCONNECTOR_WS_URL_LIST=[e.OKXCONNECTOR_WS_URL_1,e.OKXCONNECTOR_WS_URL_2,e.OKXCONNECTOR_WS_URL_3],e.OKXCONNECTOR_WS_URL_PENDING_CLOSE_CODE={TIME_OUT:3990,CANCELED:3991,FINISHED:3992},e.OKXCONNECTOR_MESSAGE_TTL=3e5,e.OKXCONNECTOR_MESSAGE_DISCONNECT_TTL=864e5,e.OKXCONNECTOR_SESSION_LIVE_TTL=864e5,e.CONNECT_JSONRPC_VER="2.0",e.CONNECT_PROTOCOL_VER=2,e.ConnectorState={InitState:0,Connecting:1,Connected:2,Disconnected:3,OnError:4}),m;var e}var b,w={};function C(){return b||(b=1,Object.defineProperty(w,"__esModule",{value:!0}),w.OKXCONNECTOR_STORAGE_TOPIC_WALLET_EXPIRE_CACHE=w.OKXCONNECTOR_STORAGE_TOPIC_EXPIRE_CACHE=w.OKXCONNECTOR_STORAGE_PROTOCOL_CACHE=w.OKXCONNECTOR_STORAGE_CIPHER_METHOD=w.OKXCONNECTOR_STORAGE_CRYPTO_CIPHERIV=w.OKXCONNECTOR_STORAGER_CRYPTO_SALT=w.OKXCONNECTOR_STORAGE_CRYPTO_PASSWORD=w.OKXCONNECTOR_TON_KEY=w.OKXCONNECTOR_CRYPTO_SENDER_PK_CACHE=w.OKXCONNECTOR_TOKEN_CACHE=w.OKXCONNECTOR_JWT_KEY=w.OKXCONNECTOR_SESSION_PREFIX_KEY=w.OKXCONNECTOR_CRYPTO_KEY=w.OKXCONNECTOR_CACHE_KEY_DAPP=w.OKXCONNECTOR_CACHE_KEY=void 0,w.OKXCONNECTOR_CACHE_KEY="ck",w.OKXCONNECTOR_CACHE_KEY_DAPP="ck_dapp",w.OKXCONNECTOR_CRYPTO_KEY="cck_k",w.OKXCONNECTOR_SESSION_PREFIX_KEY="cspk_",w.OKXCONNECTOR_JWT_KEY="cjk_k",w.OKXCONNECTOR_TOKEN_CACHE="ct",w.OKXCONNECTOR_CRYPTO_SENDER_PK_CACHE="csp",w.OKXCONNECTOR_TON_KEY="OKXStorage_ctc",w.OKXCONNECTOR_STORAGE_CRYPTO_PASSWORD="scp",w.OKXCONNECTOR_STORAGER_CRYPTO_SALT="scs",w.OKXCONNECTOR_STORAGE_CRYPTO_CIPHERIV="scpc",w.OKXCONNECTOR_STORAGE_CIPHER_METHOD="aes-256-cbc",w.OKXCONNECTOR_STORAGE_PROTOCOL_CACHE="okx_connect_split_cache_key",w.OKXCONNECTOR_STORAGE_TOPIC_EXPIRE_CACHE="okx_connect_te_cache_key",w.OKXCONNECTOR_STORAGE_TOPIC_WALLET_EXPIRE_CACHE="okx_connect_twe_cache_key"),w}var _={};function O(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var E,S={exports:{}},T=h(Object.freeze({__proto__:null,default:{}}));function R(){return E||(E=1,function(e){var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},n=function(){throw new Error("no PRNG")},r=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var i=t(),s=t([1]),a=t([56129,1]),c=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),l=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),u=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function f(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function p(e,t,n,r,o){var i,s=0;for(i=0;i<o;i++)s|=e[t+i]^n[r+i];return(1&s-1>>>8)-1}function g(e,t,n,r){return p(e,t,n,r,16)}function v(e,t,n,r){return p(e,t,n,r,32)}function m(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,f=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,v=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,m=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,C=i,_=s,O=a,E=c,S=l,T=u,R=d,N=h,A=f,P=p,x=g,I=v,k=m,D=y,K=b,M=w,L=0;L<20;L+=2)C^=(o=(k^=(o=(A^=(o=(S^=(o=C+k|0)<<7|o>>>25)+C|0)<<9|o>>>23)+S|0)<<13|o>>>19)+A|0)<<18|o>>>14,T^=(o=(_^=(o=(D^=(o=(P^=(o=T+_|0)<<7|o>>>25)+T|0)<<9|o>>>23)+P|0)<<13|o>>>19)+D|0)<<18|o>>>14,x^=(o=(R^=(o=(O^=(o=(K^=(o=x+R|0)<<7|o>>>25)+x|0)<<9|o>>>23)+K|0)<<13|o>>>19)+O|0)<<18|o>>>14,M^=(o=(I^=(o=(N^=(o=(E^=(o=M+I|0)<<7|o>>>25)+M|0)<<9|o>>>23)+E|0)<<13|o>>>19)+N|0)<<18|o>>>14,C^=(o=(E^=(o=(O^=(o=(_^=(o=C+E|0)<<7|o>>>25)+C|0)<<9|o>>>23)+_|0)<<13|o>>>19)+O|0)<<18|o>>>14,T^=(o=(S^=(o=(N^=(o=(R^=(o=T+S|0)<<7|o>>>25)+T|0)<<9|o>>>23)+R|0)<<13|o>>>19)+N|0)<<18|o>>>14,x^=(o=(P^=(o=(A^=(o=(I^=(o=x+P|0)<<7|o>>>25)+x|0)<<9|o>>>23)+I|0)<<13|o>>>19)+A|0)<<18|o>>>14,M^=(o=(K^=(o=(D^=(o=(k^=(o=M+K|0)<<7|o>>>25)+M|0)<<9|o>>>23)+k|0)<<13|o>>>19)+D|0)<<18|o>>>14;C=C+i|0,_=_+s|0,O=O+a|0,E=E+c|0,S=S+l|0,T=T+u|0,R=R+d|0,N=N+h|0,A=A+f|0,P=P+p|0,x=x+g|0,I=I+v|0,k=k+m|0,D=D+y|0,K=K+b|0,M=M+w|0,e[0]=C>>>0&255,e[1]=C>>>8&255,e[2]=C>>>16&255,e[3]=C>>>24&255,e[4]=_>>>0&255,e[5]=_>>>8&255,e[6]=_>>>16&255,e[7]=_>>>24&255,e[8]=O>>>0&255,e[9]=O>>>8&255,e[10]=O>>>16&255,e[11]=O>>>24&255,e[12]=E>>>0&255,e[13]=E>>>8&255,e[14]=E>>>16&255,e[15]=E>>>24&255,e[16]=S>>>0&255,e[17]=S>>>8&255,e[18]=S>>>16&255,e[19]=S>>>24&255,e[20]=T>>>0&255,e[21]=T>>>8&255,e[22]=T>>>16&255,e[23]=T>>>24&255,e[24]=R>>>0&255,e[25]=R>>>8&255,e[26]=R>>>16&255,e[27]=R>>>24&255,e[28]=N>>>0&255,e[29]=N>>>8&255,e[30]=N>>>16&255,e[31]=N>>>24&255,e[32]=A>>>0&255,e[33]=A>>>8&255,e[34]=A>>>16&255,e[35]=A>>>24&255,e[36]=P>>>0&255,e[37]=P>>>8&255,e[38]=P>>>16&255,e[39]=P>>>24&255,e[40]=x>>>0&255,e[41]=x>>>8&255,e[42]=x>>>16&255,e[43]=x>>>24&255,e[44]=I>>>0&255,e[45]=I>>>8&255,e[46]=I>>>16&255,e[47]=I>>>24&255,e[48]=k>>>0&255,e[49]=k>>>8&255,e[50]=k>>>16&255,e[51]=k>>>24&255,e[52]=D>>>0&255,e[53]=D>>>8&255,e[54]=D>>>16&255,e[55]=D>>>24&255,e[56]=K>>>0&255,e[57]=K>>>8&255,e[58]=K>>>16&255,e[59]=K>>>24&255,e[60]=M>>>0&255,e[61]=M>>>8&255,e[62]=M>>>16&255,e[63]=M>>>24&255}(e,t,n,r)}function y(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,f=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,v=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,m=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,C=0;C<20;C+=2)i^=(o=(m^=(o=(f^=(o=(l^=(o=i+m|0)<<7|o>>>25)+i|0)<<9|o>>>23)+l|0)<<13|o>>>19)+f|0)<<18|o>>>14,u^=(o=(s^=(o=(y^=(o=(p^=(o=u+s|0)<<7|o>>>25)+u|0)<<9|o>>>23)+p|0)<<13|o>>>19)+y|0)<<18|o>>>14,g^=(o=(d^=(o=(a^=(o=(b^=(o=g+d|0)<<7|o>>>25)+g|0)<<9|o>>>23)+b|0)<<13|o>>>19)+a|0)<<18|o>>>14,w^=(o=(v^=(o=(h^=(o=(c^=(o=w+v|0)<<7|o>>>25)+w|0)<<9|o>>>23)+c|0)<<13|o>>>19)+h|0)<<18|o>>>14,i^=(o=(c^=(o=(a^=(o=(s^=(o=i+c|0)<<7|o>>>25)+i|0)<<9|o>>>23)+s|0)<<13|o>>>19)+a|0)<<18|o>>>14,u^=(o=(l^=(o=(h^=(o=(d^=(o=u+l|0)<<7|o>>>25)+u|0)<<9|o>>>23)+d|0)<<13|o>>>19)+h|0)<<18|o>>>14,g^=(o=(p^=(o=(f^=(o=(v^=(o=g+p|0)<<7|o>>>25)+g|0)<<9|o>>>23)+v|0)<<13|o>>>19)+f|0)<<18|o>>>14,w^=(o=(b^=(o=(y^=(o=(m^=(o=w+b|0)<<7|o>>>25)+w|0)<<9|o>>>23)+m|0)<<13|o>>>19)+y|0)<<18|o>>>14;e[0]=i>>>0&255,e[1]=i>>>8&255,e[2]=i>>>16&255,e[3]=i>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=g>>>0&255,e[9]=g>>>8&255,e[10]=g>>>16&255,e[11]=g>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=h>>>0&255,e[21]=h>>>8&255,e[22]=h>>>16&255,e[23]=h>>>24&255,e[24]=f>>>0&255,e[25]=f>>>8&255,e[26]=f>>>16&255,e[27]=f>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,n,r)}var b=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,n,r,o,i,s){var a,c,l=new Uint8Array(16),u=new Uint8Array(64);for(c=0;c<16;c++)l[c]=0;for(c=0;c<8;c++)l[c]=i[c];for(;o>=64;){for(m(u,l,s,b),c=0;c<64;c++)e[t+c]=n[r+c]^u[c];for(a=1,c=8;c<16;c++)a=a+(255&l[c])|0,l[c]=255&a,a>>>=8;o-=64,t+=64,r+=64}if(o>0)for(m(u,l,s,b),c=0;c<o;c++)e[t+c]=n[r+c]^u[c];return 0}function C(e,t,n,r,o){var i,s,a=new Uint8Array(16),c=new Uint8Array(64);for(s=0;s<16;s++)a[s]=0;for(s=0;s<8;s++)a[s]=r[s];for(;n>=64;){for(m(c,a,o,b),s=0;s<64;s++)e[t+s]=c[s];for(i=1,s=8;s<16;s++)i=i+(255&a[s])|0,a[s]=255&i,i>>>=8;n-=64,t+=64}if(n>0)for(m(c,a,o,b),s=0;s<n;s++)e[t+s]=c[s];return 0}function _(e,t,n,r,o){var i=new Uint8Array(32);y(i,r,o,b);for(var s=new Uint8Array(8),a=0;a<8;a++)s[a]=r[a+16];return C(e,t,n,s,i)}function E(e,t,n,r,o,i,s){var a=new Uint8Array(32);y(a,i,s,b);for(var c=new Uint8Array(8),l=0;l<8;l++)c[l]=i[l+16];return w(e,t,n,r,o,c,a)}var S=function(e){var t,n,r,o,i,s,a,c;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),o=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|o<<9),i=255&e[8]|(255&e[9])<<8,this.r[4]=255&(o>>>4|i<<12),this.r[5]=i>>>1&8190,s=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|s<<2),a=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(s>>>11|a<<5),c=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(a>>>8|c<<8),this.r[9]=c>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function R(e,t,n,r,o,i){var s=new S(i);return s.update(n,r,o),s.finish(e,t),0}function N(e,t,n,r,o,i){var s=new Uint8Array(16);return R(s,0,n,r,o,i),g(e,t,s,0)}function A(e,t,n,r,o){var i;if(n<32)return-1;for(E(e,0,t,0,n,r,o),R(e,16,e,32,n-32,e),i=0;i<16;i++)e[i]=0;return 0}function P(e,t,n,r,o){var i,s=new Uint8Array(32);if(n<32)return-1;if(_(s,0,32,r,o),0!==N(t,16,t,32,n-32,s))return-1;for(E(e,0,t,0,n,r,o),i=0;i<32;i++)e[i]=0;return 0}function x(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function I(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function k(e,t,n){for(var r,o=~(n-1),i=0;i<16;i++)r=o&(e[i]^t[i]),e[i]^=r,t[i]^=r}function D(e,n){var r,o,i,s=t(),a=t();for(r=0;r<16;r++)a[r]=n[r];for(I(a),I(a),I(a),o=0;o<2;o++){for(s[0]=a[0]-65517,r=1;r<15;r++)s[r]=a[r]-65535-(s[r-1]>>16&1),s[r-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),i=s[15]>>16&1,s[14]&=65535,k(a,s,1-i)}for(r=0;r<16;r++)e[2*r]=255&a[r],e[2*r+1]=a[r]>>8}function K(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return D(n,e),D(r,t),v(n,0,r,0)}function M(e){var t=new Uint8Array(32);return D(t,e),1&t[0]}function L(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function U(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function j(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function W(e,t,n){var r,o,i=0,s=0,a=0,c=0,l=0,u=0,d=0,h=0,f=0,p=0,g=0,v=0,m=0,y=0,b=0,w=0,C=0,_=0,O=0,E=0,S=0,T=0,R=0,N=0,A=0,P=0,x=0,I=0,k=0,D=0,K=0,M=n[0],L=n[1],U=n[2],j=n[3],W=n[4],B=n[5],X=n[6],H=n[7],F=n[8],q=n[9],J=n[10],V=n[11],z=n[12],$=n[13],G=n[14],Y=n[15];i+=(r=t[0])*M,s+=r*L,a+=r*U,c+=r*j,l+=r*W,u+=r*B,d+=r*X,h+=r*H,f+=r*F,p+=r*q,g+=r*J,v+=r*V,m+=r*z,y+=r*$,b+=r*G,w+=r*Y,s+=(r=t[1])*M,a+=r*L,c+=r*U,l+=r*j,u+=r*W,d+=r*B,h+=r*X,f+=r*H,p+=r*F,g+=r*q,v+=r*J,m+=r*V,y+=r*z,b+=r*$,w+=r*G,C+=r*Y,a+=(r=t[2])*M,c+=r*L,l+=r*U,u+=r*j,d+=r*W,h+=r*B,f+=r*X,p+=r*H,g+=r*F,v+=r*q,m+=r*J,y+=r*V,b+=r*z,w+=r*$,C+=r*G,_+=r*Y,c+=(r=t[3])*M,l+=r*L,u+=r*U,d+=r*j,h+=r*W,f+=r*B,p+=r*X,g+=r*H,v+=r*F,m+=r*q,y+=r*J,b+=r*V,w+=r*z,C+=r*$,_+=r*G,O+=r*Y,l+=(r=t[4])*M,u+=r*L,d+=r*U,h+=r*j,f+=r*W,p+=r*B,g+=r*X,v+=r*H,m+=r*F,y+=r*q,b+=r*J,w+=r*V,C+=r*z,_+=r*$,O+=r*G,E+=r*Y,u+=(r=t[5])*M,d+=r*L,h+=r*U,f+=r*j,p+=r*W,g+=r*B,v+=r*X,m+=r*H,y+=r*F,b+=r*q,w+=r*J,C+=r*V,_+=r*z,O+=r*$,E+=r*G,S+=r*Y,d+=(r=t[6])*M,h+=r*L,f+=r*U,p+=r*j,g+=r*W,v+=r*B,m+=r*X,y+=r*H,b+=r*F,w+=r*q,C+=r*J,_+=r*V,O+=r*z,E+=r*$,S+=r*G,T+=r*Y,h+=(r=t[7])*M,f+=r*L,p+=r*U,g+=r*j,v+=r*W,m+=r*B,y+=r*X,b+=r*H,w+=r*F,C+=r*q,_+=r*J,O+=r*V,E+=r*z,S+=r*$,T+=r*G,R+=r*Y,f+=(r=t[8])*M,p+=r*L,g+=r*U,v+=r*j,m+=r*W,y+=r*B,b+=r*X,w+=r*H,C+=r*F,_+=r*q,O+=r*J,E+=r*V,S+=r*z,T+=r*$,R+=r*G,N+=r*Y,p+=(r=t[9])*M,g+=r*L,v+=r*U,m+=r*j,y+=r*W,b+=r*B,w+=r*X,C+=r*H,_+=r*F,O+=r*q,E+=r*J,S+=r*V,T+=r*z,R+=r*$,N+=r*G,A+=r*Y,g+=(r=t[10])*M,v+=r*L,m+=r*U,y+=r*j,b+=r*W,w+=r*B,C+=r*X,_+=r*H,O+=r*F,E+=r*q,S+=r*J,T+=r*V,R+=r*z,N+=r*$,A+=r*G,P+=r*Y,v+=(r=t[11])*M,m+=r*L,y+=r*U,b+=r*j,w+=r*W,C+=r*B,_+=r*X,O+=r*H,E+=r*F,S+=r*q,T+=r*J,R+=r*V,N+=r*z,A+=r*$,P+=r*G,x+=r*Y,m+=(r=t[12])*M,y+=r*L,b+=r*U,w+=r*j,C+=r*W,_+=r*B,O+=r*X,E+=r*H,S+=r*F,T+=r*q,R+=r*J,N+=r*V,A+=r*z,P+=r*$,x+=r*G,I+=r*Y,y+=(r=t[13])*M,b+=r*L,w+=r*U,C+=r*j,_+=r*W,O+=r*B,E+=r*X,S+=r*H,T+=r*F,R+=r*q,N+=r*J,A+=r*V,P+=r*z,x+=r*$,I+=r*G,k+=r*Y,b+=(r=t[14])*M,w+=r*L,C+=r*U,_+=r*j,O+=r*W,E+=r*B,S+=r*X,T+=r*H,R+=r*F,N+=r*q,A+=r*J,P+=r*V,x+=r*z,I+=r*$,k+=r*G,D+=r*Y,w+=(r=t[15])*M,s+=38*(_+=r*U),a+=38*(O+=r*j),c+=38*(E+=r*W),l+=38*(S+=r*B),u+=38*(T+=r*X),d+=38*(R+=r*H),h+=38*(N+=r*F),f+=38*(A+=r*q),p+=38*(P+=r*J),g+=38*(x+=r*V),v+=38*(I+=r*z),m+=38*(k+=r*$),y+=38*(D+=r*G),b+=38*(K+=r*Y),i=(r=(i+=38*(C+=r*L))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i=(r=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i+=o-1+37*(o-1),e[0]=i,e[1]=s,e[2]=a,e[3]=c,e[4]=l,e[5]=u,e[6]=d,e[7]=h,e[8]=f,e[9]=p,e[10]=g,e[11]=v,e[12]=m,e[13]=y,e[14]=b,e[15]=w}function B(e,t){W(e,t,t)}function X(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=253;r>=0;r--)B(o,o),2!==r&&4!==r&&W(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function H(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=250;r>=0;r--)B(o,o),1!==r&&W(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function F(e,n,r){var o,i,s=new Uint8Array(32),c=new Float64Array(80),l=t(),u=t(),d=t(),h=t(),f=t(),p=t();for(i=0;i<31;i++)s[i]=n[i];for(s[31]=127&n[31]|64,s[0]&=248,L(c,r),i=0;i<16;i++)u[i]=c[i],h[i]=l[i]=d[i]=0;for(l[0]=h[0]=1,i=254;i>=0;--i)k(l,u,o=s[i>>>3]>>>(7&i)&1),k(d,h,o),U(f,l,d),j(l,l,d),U(d,u,h),j(u,u,h),B(h,f),B(p,l),W(l,d,l),W(d,u,f),U(f,l,d),j(l,l,d),B(u,l),j(d,h,p),W(l,d,a),U(l,l,h),W(d,d,l),W(l,h,p),W(h,u,c),B(u,f),k(l,u,o),k(d,h,o);for(i=0;i<16;i++)c[i+16]=l[i],c[i+32]=d[i],c[i+48]=u[i],c[i+64]=h[i];var g=c.subarray(32),v=c.subarray(16);return X(g,g),W(v,v,g),D(e,v),0}function q(e,t){return F(e,t,o)}function J(e,t){return n(t,32),q(e,t)}function V(e,t,n){var o=new Uint8Array(32);return F(o,n,t),y(e,r,o,b)}S.prototype.blocks=function(e,t,n){for(var r,o,i,s,a,c,l,u,d,h,f,p,g,v,m,y,b,w,C,_=this.fin?0:2048,O=this.h[0],E=this.h[1],S=this.h[2],T=this.h[3],R=this.h[4],N=this.h[5],A=this.h[6],P=this.h[7],x=this.h[8],I=this.h[9],k=this.r[0],D=this.r[1],K=this.r[2],M=this.r[3],L=this.r[4],U=this.r[5],j=this.r[6],W=this.r[7],B=this.r[8],X=this.r[9];n>=16;)h=d=0,h+=(O+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*k,h+=(E+=8191&(r>>>13|(o=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*X),h+=(S+=8191&(o>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*B),h+=(T+=8191&(i>>>7|(s=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*W),d=(h+=(R+=8191&(s>>>4|(a=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*j))>>>13,h&=8191,h+=(N+=a>>>1&8191)*(5*U),h+=(A+=8191&(a>>>14|(c=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*L),h+=(P+=8191&(c>>>11|(l=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*M),h+=(x+=8191&(l>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*K),f=d+=(h+=(I+=u>>>5|_)*(5*D))>>>13,f+=O*D,f+=E*k,f+=S*(5*X),f+=T*(5*B),d=(f+=R*(5*W))>>>13,f&=8191,f+=N*(5*j),f+=A*(5*U),f+=P*(5*L),f+=x*(5*M),d+=(f+=I*(5*K))>>>13,f&=8191,p=d,p+=O*K,p+=E*D,p+=S*k,p+=T*(5*X),d=(p+=R*(5*B))>>>13,p&=8191,p+=N*(5*W),p+=A*(5*j),p+=P*(5*U),p+=x*(5*L),g=d+=(p+=I*(5*M))>>>13,g+=O*M,g+=E*K,g+=S*D,g+=T*k,d=(g+=R*(5*X))>>>13,g&=8191,g+=N*(5*B),g+=A*(5*W),g+=P*(5*j),g+=x*(5*U),v=d+=(g+=I*(5*L))>>>13,v+=O*L,v+=E*M,v+=S*K,v+=T*D,d=(v+=R*k)>>>13,v&=8191,v+=N*(5*X),v+=A*(5*B),v+=P*(5*W),v+=x*(5*j),m=d+=(v+=I*(5*U))>>>13,m+=O*U,m+=E*L,m+=S*M,m+=T*K,d=(m+=R*D)>>>13,m&=8191,m+=N*k,m+=A*(5*X),m+=P*(5*B),m+=x*(5*W),y=d+=(m+=I*(5*j))>>>13,y+=O*j,y+=E*U,y+=S*L,y+=T*M,d=(y+=R*K)>>>13,y&=8191,y+=N*D,y+=A*k,y+=P*(5*X),y+=x*(5*B),b=d+=(y+=I*(5*W))>>>13,b+=O*W,b+=E*j,b+=S*U,b+=T*L,d=(b+=R*M)>>>13,b&=8191,b+=N*K,b+=A*D,b+=P*k,b+=x*(5*X),w=d+=(b+=I*(5*B))>>>13,w+=O*B,w+=E*W,w+=S*j,w+=T*U,d=(w+=R*L)>>>13,w&=8191,w+=N*M,w+=A*K,w+=P*D,w+=x*k,C=d+=(w+=I*(5*X))>>>13,C+=O*X,C+=E*B,C+=S*W,C+=T*j,d=(C+=R*U)>>>13,C&=8191,C+=N*L,C+=A*M,C+=P*K,C+=x*D,O=h=8191&(d=(d=((d+=(C+=I*k)>>>13)<<2)+d|0)+(h&=8191)|0),E=f+=d>>>=13,S=p&=8191,T=g&=8191,R=v&=8191,N=m&=8191,A=y&=8191,P=b&=8191,x=w&=8191,I=C&=8191,t+=16,n-=16;this.h[0]=O,this.h[1]=E,this.h[2]=S,this.h[3]=T,this.h[4]=R,this.h[5]=N,this.h[6]=A,this.h[7]=P,this.h[8]=x,this.h[9]=I},S.prototype.finish=function(e,t){var n,r,o,i,s=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=n,n=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,s[0]=this.h[0]+5,n=s[0]>>>13,s[0]&=8191,i=1;i<10;i++)s[i]=this.h[i]+n,n=s[i]>>>13,s[i]&=8191;for(s[9]-=8192,r=(1^n)-1,i=0;i<10;i++)s[i]&=r;for(r=~r,i=0;i<10;i++)this.h[i]=this.h[i]&r|s[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),o=this.h[0]+this.pad[0],this.h[0]=65535&o,i=1;i<8;i++)o=(this.h[i]+this.pad[i]|0)+(o>>>16)|0,this.h[i]=65535&o;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},S.prototype.update=function(e,t,n){var r,o;if(this.leftover){for((o=16-this.leftover)>n&&(o=n),r=0;r<o;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=o,t+=o,this.leftover+=o,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(o=n-n%16,this.blocks(e,t,o),t+=o,n-=o),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var z=A,$=P,G=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Y(e,t,n,r){for(var o,i,s,a,c,l,u,d,h,f,p,g,v,m,y,b,w,C,_,O,E,S,T,R,N,A,P=new Int32Array(16),x=new Int32Array(16),I=e[0],k=e[1],D=e[2],K=e[3],M=e[4],L=e[5],U=e[6],j=e[7],W=t[0],B=t[1],X=t[2],H=t[3],F=t[4],q=t[5],J=t[6],V=t[7],z=0;r>=128;){for(_=0;_<16;_++)O=8*_+z,P[_]=n[O+0]<<24|n[O+1]<<16|n[O+2]<<8|n[O+3],x[_]=n[O+4]<<24|n[O+5]<<16|n[O+6]<<8|n[O+7];for(_=0;_<80;_++)if(o=I,i=k,s=D,a=K,c=M,l=L,u=U,h=W,f=B,p=X,g=H,v=F,m=q,y=J,T=65535&(S=V),R=S>>>16,N=65535&(E=j),A=E>>>16,T+=65535&(S=(F>>>14|M<<18)^(F>>>18|M<<14)^(M>>>9|F<<23)),R+=S>>>16,N+=65535&(E=(M>>>14|F<<18)^(M>>>18|F<<14)^(F>>>9|M<<23)),A+=E>>>16,T+=65535&(S=F&q^~F&J),R+=S>>>16,N+=65535&(E=M&L^~M&U),A+=E>>>16,T+=65535&(S=G[2*_+1]),R+=S>>>16,N+=65535&(E=G[2*_]),A+=E>>>16,E=P[_%16],R+=(S=x[_%16])>>>16,N+=65535&E,A+=E>>>16,N+=(R+=(T+=65535&S)>>>16)>>>16,T=65535&(S=C=65535&T|R<<16),R=S>>>16,N=65535&(E=w=65535&N|(A+=N>>>16)<<16),A=E>>>16,T+=65535&(S=(W>>>28|I<<4)^(I>>>2|W<<30)^(I>>>7|W<<25)),R+=S>>>16,N+=65535&(E=(I>>>28|W<<4)^(W>>>2|I<<30)^(W>>>7|I<<25)),A+=E>>>16,R+=(S=W&B^W&X^B&X)>>>16,N+=65535&(E=I&k^I&D^k&D),A+=E>>>16,d=65535&(N+=(R+=(T+=65535&S)>>>16)>>>16)|(A+=N>>>16)<<16,b=65535&T|R<<16,T=65535&(S=g),R=S>>>16,N=65535&(E=a),A=E>>>16,R+=(S=C)>>>16,N+=65535&(E=w),A+=E>>>16,k=o,D=i,K=s,M=a=65535&(N+=(R+=(T+=65535&S)>>>16)>>>16)|(A+=N>>>16)<<16,L=c,U=l,j=u,I=d,B=h,X=f,H=p,F=g=65535&T|R<<16,q=v,J=m,V=y,W=b,_%16==15)for(O=0;O<16;O++)E=P[O],T=65535&(S=x[O]),R=S>>>16,N=65535&E,A=E>>>16,E=P[(O+9)%16],T+=65535&(S=x[(O+9)%16]),R+=S>>>16,N+=65535&E,A+=E>>>16,w=P[(O+1)%16],T+=65535&(S=((C=x[(O+1)%16])>>>1|w<<31)^(C>>>8|w<<24)^(C>>>7|w<<25)),R+=S>>>16,N+=65535&(E=(w>>>1|C<<31)^(w>>>8|C<<24)^w>>>7),A+=E>>>16,w=P[(O+14)%16],R+=(S=((C=x[(O+14)%16])>>>19|w<<13)^(w>>>29|C<<3)^(C>>>6|w<<26))>>>16,N+=65535&(E=(w>>>19|C<<13)^(C>>>29|w<<3)^w>>>6),A+=E>>>16,A+=(N+=(R+=(T+=65535&S)>>>16)>>>16)>>>16,P[O]=65535&N|A<<16,x[O]=65535&T|R<<16;T=65535&(S=W),R=S>>>16,N=65535&(E=I),A=E>>>16,E=e[0],R+=(S=t[0])>>>16,N+=65535&E,A+=E>>>16,A+=(N+=(R+=(T+=65535&S)>>>16)>>>16)>>>16,e[0]=I=65535&N|A<<16,t[0]=W=65535&T|R<<16,T=65535&(S=B),R=S>>>16,N=65535&(E=k),A=E>>>16,E=e[1],R+=(S=t[1])>>>16,N+=65535&E,A+=E>>>16,A+=(N+=(R+=(T+=65535&S)>>>16)>>>16)>>>16,e[1]=k=65535&N|A<<16,t[1]=B=65535&T|R<<16,T=65535&(S=X),R=S>>>16,N=65535&(E=D),A=E>>>16,E=e[2],R+=(S=t[2])>>>16,N+=65535&E,A+=E>>>16,A+=(N+=(R+=(T+=65535&S)>>>16)>>>16)>>>16,e[2]=D=65535&N|A<<16,t[2]=X=65535&T|R<<16,T=65535&(S=H),R=S>>>16,N=65535&(E=K),A=E>>>16,E=e[3],R+=(S=t[3])>>>16,N+=65535&E,A+=E>>>16,A+=(N+=(R+=(T+=65535&S)>>>16)>>>16)>>>16,e[3]=K=65535&N|A<<16,t[3]=H=65535&T|R<<16,T=65535&(S=F),R=S>>>16,N=65535&(E=M),A=E>>>16,E=e[4],R+=(S=t[4])>>>16,N+=65535&E,A+=E>>>16,A+=(N+=(R+=(T+=65535&S)>>>16)>>>16)>>>16,e[4]=M=65535&N|A<<16,t[4]=F=65535&T|R<<16,T=65535&(S=q),R=S>>>16,N=65535&(E=L),A=E>>>16,E=e[5],R+=(S=t[5])>>>16,N+=65535&E,A+=E>>>16,A+=(N+=(R+=(T+=65535&S)>>>16)>>>16)>>>16,e[5]=L=65535&N|A<<16,t[5]=q=65535&T|R<<16,T=65535&(S=J),R=S>>>16,N=65535&(E=U),A=E>>>16,E=e[6],R+=(S=t[6])>>>16,N+=65535&E,A+=E>>>16,A+=(N+=(R+=(T+=65535&S)>>>16)>>>16)>>>16,e[6]=U=65535&N|A<<16,t[6]=J=65535&T|R<<16,T=65535&(S=V),R=S>>>16,N=65535&(E=j),A=E>>>16,E=e[7],R+=(S=t[7])>>>16,N+=65535&E,A+=E>>>16,A+=(N+=(R+=(T+=65535&S)>>>16)>>>16)>>>16,e[7]=j=65535&N|A<<16,t[7]=V=65535&T|R<<16,z+=128,r-=128}return r}function Q(e,t,n){var r,o=new Int32Array(8),i=new Int32Array(8),s=new Uint8Array(256),a=n;for(o[0]=1779033703,o[1]=3144134277,o[2]=1013904242,o[3]=2773480762,o[4]=1359893119,o[5]=2600822924,o[6]=528734635,o[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,Y(o,i,t,n),n%=128,r=0;r<n;r++)s[r]=t[a-n+r];for(s[n]=128,s[(n=256-128*(n<112?1:0))-9]=0,f(s,n-8,a/536870912|0,a<<3),Y(o,i,s,n),r=0;r<8;r++)f(e,8*r,o[r],i[r]);return 0}function Z(e,n){var r=t(),o=t(),i=t(),s=t(),a=t(),c=t(),u=t(),d=t(),h=t();j(r,e[1],e[0]),j(h,n[1],n[0]),W(r,r,h),U(o,e[0],e[1]),U(h,n[0],n[1]),W(o,o,h),W(i,e[3],n[3]),W(i,i,l),W(s,e[2],n[2]),U(s,s,s),j(a,o,r),j(c,s,i),U(u,s,i),U(d,o,r),W(e[0],a,c),W(e[1],d,u),W(e[2],u,c),W(e[3],a,d)}function ee(e,t,n){var r;for(r=0;r<4;r++)k(e[r],t[r],n)}function te(e,n){var r=t(),o=t(),i=t();X(i,n[2]),W(r,n[0],i),W(o,n[1],i),D(e,o),e[31]^=M(r)<<7}function ne(e,t,n){var r,o;for(x(e[0],i),x(e[1],s),x(e[2],s),x(e[3],i),o=255;o>=0;--o)ee(e,t,r=n[o/8|0]>>(7&o)&1),Z(t,e),Z(e,e),ee(e,t,r)}function re(e,n){var r=[t(),t(),t(),t()];x(r[0],u),x(r[1],d),x(r[2],s),W(r[3],u,d),ne(e,r,n)}function oe(e,r,o){var i,s=new Uint8Array(64),a=[t(),t(),t(),t()];for(o||n(r,32),Q(s,r,32),s[0]&=248,s[31]&=127,s[31]|=64,re(a,s),te(e,a),i=0;i<32;i++)r[i+32]=e[i];return 0}var ie=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function se(e,t){var n,r,o,i;for(r=63;r>=32;--r){for(n=0,o=r-32,i=r-12;o<i;++o)t[o]+=n-16*t[r]*ie[o-(r-32)],n=Math.floor((t[o]+128)/256),t[o]-=256*n;t[o]+=n,t[r]=0}for(n=0,o=0;o<32;o++)t[o]+=n-(t[31]>>4)*ie[o],n=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=n*ie[o];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function ae(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;se(e,n)}function ce(e,n,r,o){var i,s,a=new Uint8Array(64),c=new Uint8Array(64),l=new Uint8Array(64),u=new Float64Array(64),d=[t(),t(),t(),t()];Q(a,o,32),a[0]&=248,a[31]&=127,a[31]|=64;var h=r+64;for(i=0;i<r;i++)e[64+i]=n[i];for(i=0;i<32;i++)e[32+i]=a[32+i];for(Q(l,e.subarray(32),r+32),ae(l),re(d,l),te(e,d),i=32;i<64;i++)e[i]=o[i];for(Q(c,e,r+64),ae(c),i=0;i<64;i++)u[i]=0;for(i=0;i<32;i++)u[i]=l[i];for(i=0;i<32;i++)for(s=0;s<32;s++)u[i+s]+=c[i]*a[s];return se(e.subarray(32),u),h}function le(e,n,r,o){var a,l=new Uint8Array(32),u=new Uint8Array(64),d=[t(),t(),t(),t()],f=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),o=t(),a=t(),l=t(),u=t(),d=t(),f=t();return x(e[2],s),L(e[1],n),B(a,e[1]),W(l,a,c),j(a,a,e[2]),U(l,e[2],l),B(u,l),B(d,u),W(f,d,u),W(r,f,a),W(r,r,l),H(r,r),W(r,r,a),W(r,r,l),W(r,r,l),W(e[0],r,l),B(o,e[0]),W(o,o,l),K(o,a)&&W(e[0],e[0],h),B(o,e[0]),W(o,o,l),K(o,a)?-1:(M(e[0])===n[31]>>7&&j(e[0],i,e[0]),W(e[3],e[0],e[1]),0)}(f,o))return-1;for(a=0;a<r;a++)e[a]=n[a];for(a=0;a<32;a++)e[a+32]=o[a];if(Q(u,e,r),ae(u),ne(d,f,u),re(f,n.subarray(32)),Z(d,f),te(l,d),r-=64,v(n,0,l,0)){for(a=0;a<r;a++)e[a]=0;return-1}for(a=0;a<r;a++)e[a]=n[a+64];return r}var ue=16,de=64,he=32,fe=64;function pe(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function ge(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function ve(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:y,crypto_stream_xor:E,crypto_stream:_,crypto_stream_salsa20_xor:w,crypto_stream_salsa20:C,crypto_onetimeauth:R,crypto_onetimeauth_verify:N,crypto_verify_16:g,crypto_verify_32:v,crypto_secretbox:A,crypto_secretbox_open:P,crypto_scalarmult:F,crypto_scalarmult_base:q,crypto_box_beforenm:V,crypto_box_afternm:z,crypto_box:function(e,t,n,r,o,i){var s=new Uint8Array(32);return V(s,o,i),z(e,t,n,r,s)},crypto_box_open:function(e,t,n,r,o,i){var s=new Uint8Array(32);return V(s,o,i),$(e,t,n,r,s)},crypto_box_keypair:J,crypto_hash:Q,crypto_sign:ce,crypto_sign_keypair:oe,crypto_sign_open:le,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ue,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:de,crypto_sign_PUBLICKEYBYTES:he,crypto_sign_SECRETKEYBYTES:fe,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:c,L:ie,pack25519:D,unpack25519:L,M:W,A:U,S:B,Z:j,pow2523:H,add:Z,set25519:x,modL:se,scalarmult:ne,scalarbase:re},e.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},e.secretbox=function(e,t,n){ge(e,t,n),pe(n,t);for(var r=new Uint8Array(32+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+32]=e[i];return A(o,r,r.length,t,n),o.subarray(ue)},e.secretbox.open=function(e,t,n){ge(e,t,n),pe(n,t);for(var r=new Uint8Array(ue+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+ue]=e[i];return r.length<32||0!==P(o,r,r.length,t,n)?null:o.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=ue,e.scalarMult=function(e,t){if(ge(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return F(n,e,t),n},e.scalarMult.base=function(e){if(ge(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return q(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox(t,n,i)},e.box.before=function(e,t){ge(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return V(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox.open(t,n,i)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return J(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(ge(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return q(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(ge(e,t),t.length!==fe)throw new Error("bad secret key size");var n=new Uint8Array(de+e.length);return ce(n,e,e.length,t),n},e.sign.open=function(e,t){if(ge(e,t),t.length!==he)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=le(n,e,e.length,t);if(r<0)return null;for(var o=new Uint8Array(r),i=0;i<o.length;i++)o[i]=n[i];return o},e.sign.detached=function(t,n){for(var r=e.sign(t,n),o=new Uint8Array(de),i=0;i<o.length;i++)o[i]=r[i];return o},e.sign.detached.verify=function(e,t,n){if(ge(e,t,n),t.length!==de)throw new Error("bad signature size");if(n.length!==he)throw new Error("bad public key size");var r,o=new Uint8Array(de+e.length),i=new Uint8Array(de+e.length);for(r=0;r<de;r++)o[r]=t[r];for(r=0;r<e.length;r++)o[r+de]=e[r];return le(i,o,o.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(he),t=new Uint8Array(fe);return oe(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(ge(e),e.length!==fe)throw new Error("bad secret key size");for(var t=new Uint8Array(he),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(ge(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(he),n=new Uint8Array(fe),r=0;r<32;r++)n[r]=e[r];return oe(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=he,e.sign.secretKeyLength=fe,e.sign.seedLength=32,e.sign.signatureLength=de,e.hash=function(e){ge(e);var t=new Uint8Array(64);return Q(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return ge(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===p(e,0,t,0,e.length)},e.setPRNG=function(e){n=e},function(){var t="undefined"!=typeof self?self.crypto||self.msCrypto:null;t&&t.getRandomValues?e.setPRNG((function(e,n){var r,o=new Uint8Array(n);for(r=0;r<n;r+=65536)t.getRandomValues(o.subarray(r,r+Math.min(n-r,65536)));for(r=0;r<n;r++)e[r]=o[r];ve(o)})):void 0!==O&&(t=T)&&t.randomBytes&&e.setPRNG((function(e,n){var r,o=t.randomBytes(n);for(r=0;r<n;r++)e[r]=o[r];ve(o)}))}()}((e=S).exports?e.exports:self.nacl=self.nacl||{})),S.exports;var e}var N,A={},P={exports:{}},x=P.exports;var I=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r<n.length;r++)n[r]=255;for(var o=0;o<e.length;o++){var i=e.charAt(o),s=i.charCodeAt(0);if(255!==n[s])throw new TypeError(i+" is ambiguous");n[s]=o}var a=e.length,c=e.charAt(0),l=Math.log(a)/Math.log(256),u=Math.log(256)/Math.log(a);function d(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[t]){for(var r=0,o=0;e[t]===c;)r++,t++;for(var i=(e.length-t)*l+1>>>0,s=new Uint8Array(i);e[t];){var u=n[e.charCodeAt(t)];if(255===u)return;for(var d=0,h=i-1;(0!==u||d<o)&&-1!==h;h--,d++)u+=a*s[h]>>>0,s[h]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");o=d,t++}if(" "!==e[t]){for(var f=i-o;f!==i&&0===s[f];)f++;for(var p=new Uint8Array(r+(i-f)),g=r;f!==i;)p[g++]=s[f++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,o=0,i=t.length;o!==i&&0===t[o];)o++,n++;for(var s=(i-o)*u+1>>>0,l=new Uint8Array(s);o!==i;){for(var d=t[o],h=0,f=s-1;(0!==d||h<r)&&-1!==f;f--,h++)d+=256*l[f]>>>0,l[f]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");r=h,o++}for(var p=s-r;p!==s&&0===l[p];)p++;for(var g=c.repeat(n);p<s;++p)g+=e.charAt(l[p]);return g},decodeUnsafe:d,decode:function(e){var n=d(e);if(n)return n;throw new Error(`Non-${t} character`)}}},k=I;let D=class{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},K=class{constructor(e,t,n){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return L(this,e)}},M=class{constructor(e){this.decoders=e}or(e){return L(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}};const L=(e,t)=>new M({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});let U=class{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new D(e,t,n),this.decoder=new K(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}};const j=({name:e,prefix:t,encode:n,decode:r})=>new U(e,t,n,r),W=({prefix:e,name:t,alphabet:n})=>{const{encode:r,decode:o}=k(n,t);return j({prefix:e,name:t,encode:r,decode:e=>(e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")})(o(e))})},B=({name:e,prefix:t,bitsPerChar:n,alphabet:r})=>j({prefix:t,name:e,encode:e=>((e,t,n)=>{const r="="===t[t.length-1],o=(1<<n)-1;let i="",s=0,a=0;for(let c=0;c<e.length;++c)for(a=a<<8|e[c],s+=8;s>n;)s-=n,i+=t[o&a>>s];if(s&&(i+=t[o&a<<n-s]),r)for(;i.length*n&7;)i+="=";return i})(e,r,n),decode:t=>((e,t,n,r)=>{const o={};for(let u=0;u<t.length;++u)o[t[u]]=u;let i=e.length;for(;"="===e[i-1];)--i;const s=new Uint8Array(i*n/8|0);let a=0,c=0,l=0;for(let u=0;u<i;++u){const t=o[e[u]];if(void 0===t)throw new SyntaxError(`Non-${r} character`);c=c<<n|t,a+=n,a>=8&&(a-=8,s[l++]=255&c>>a)}if(a>=n||255&c<<8-a)throw new SyntaxError("Unexpected end of data");return s})(t,r,n,e)}),X=j({prefix:"\0",name:"identity",encode:e=>(e=>(new TextDecoder).decode(e))(e),decode:e=>(e=>(new TextEncoder).encode(e))(e)});var H=Object.freeze({__proto__:null,identity:X});const F=B({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var q=Object.freeze({__proto__:null,base2:F});const J=B({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var V=Object.freeze({__proto__:null,base8:J});const z=W({prefix:"9",name:"base10",alphabet:"0123456789"});var $=Object.freeze({__proto__:null,base10:z});const G=B({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Y=B({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Q=Object.freeze({__proto__:null,base16:G,base16upper:Y});const Z=B({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),ee=B({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),te=B({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),ne=B({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),re=B({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),oe=B({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),ie=B({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),se=B({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),ae=B({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var ce=Object.freeze({__proto__:null,base32:Z,base32hex:re,base32hexpad:ie,base32hexpadupper:se,base32hexupper:oe,base32pad:te,base32padupper:ne,base32upper:ee,base32z:ae});const le=W({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),ue=W({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var de=Object.freeze({__proto__:null,base36:le,base36upper:ue});const he=W({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),fe=W({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var pe=Object.freeze({__proto__:null,base58btc:he,base58flickr:fe});const ge=B({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),ve=B({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),me=B({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ye=B({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var be=Object.freeze({__proto__:null,base64:ge,base64pad:ve,base64url:me,base64urlpad:ye});const we=Array.from("๐๐ชโ๐ฐ๐๐๐๐๐๐๐๐๐๐๐๐๐โ๐ป๐ฅ๐พ๐ฟ๐โค๐๐คฃ๐๐๐๐ญ๐๐๐
๐๐๐ฅ๐ฅฐ๐๐๐๐ข๐ค๐๐๐ช๐โบ๐๐ค๐๐๐๐๐น๐คฆ๐๐โโจ๐คท๐ฑ๐๐ธ๐๐๐๐๐๐๐๐๐คฉ๐๐๐ค๐๐ฏ๐๐๐ถ๐๐คญโฃ๐๐๐๐ช๐๐ฅ๐๐๐ฉ๐ก๐คช๐๐ฅณ๐ฅ๐คค๐๐๐ณโ๐๐๐ด๐๐ฌ๐๐๐ท๐ป๐โญโ
๐ฅบ๐๐๐ค๐ฆโ๐ฃ๐๐โน๐๐๐ โ๐๐บ๐๐ป๐๐๐๐๐น๐ฃ๐ซ๐๐๐ต๐ค๐๐ด๐ค๐ผ๐ซโฝ๐คโ๐๐คซ๐๐ฎ๐๐ป๐๐ถ๐๐ฒ๐ฟ๐งก๐โก๐๐โโ๐๐ฐ๐คจ๐ถ๐ค๐ถ๐ฐ๐๐ข๐ค๐๐จ๐จ๐คฌโ๐๐บ๐ค๐๐๐ฑ๐๐ถ๐ฅดโถโกโ๐๐ธโฌ๐จ๐๐ฆ๐ท๐บโ ๐
๐๐ต๐๐คฒ๐ค ๐คง๐๐ต๐
๐ง๐พ๐๐๐ค๐๐คฏ๐ทโ๐ง๐ฏ๐๐๐ค๐๐โ๐ด๐ฃ๐ธ๐๐๐ฅ๐คข๐
๐ก๐ฉ๐๐ธ๐ป๐ค๐คฎ๐ผ๐ฅต๐ฉ๐๐๐ผ๐๐ฃ๐ฅ"),Ce=we.reduce(((e,t,n)=>(e[n]=t,e)),[]),_e=we.reduce(((e,t,n)=>(e[t.codePointAt(0)]=n,e)),[]);const Oe=j({prefix:"๐",name:"base256emoji",encode:function(e){return e.reduce(((e,t)=>e+=Ce[t]),"")},decode:function(e){const t=[];for(const n of e){const e=_e[n.codePointAt(0)];if(void 0===e)throw new Error(`Non-base256emoji character: ${n}`);t.push(e)}return new Uint8Array(t)}});var Ee=Object.freeze({__proto__:null,base256emoji:Oe});new TextEncoder,new TextDecoder;const Se={...H,...q,...V,...$,...Q,...ce,...de,...pe,...be,...Ee};function Te(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const Re=Te("utf8","u",(e=>"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),Ne=Te("ascii","a",(e=>{let t="a";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}),(e=>{const t=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}((e=e.substring(1)).length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t})),Ae={utf8:Re,"utf-8":Re,hex:Se.base16,latin1:Ne,ascii:Ne,binary:Ne,...Se};var Pe,xe,Ie=Object.freeze({__proto__:null,toString:function(e,t="utf8"){const n=Ae[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?n.encoder.encode(e).substring(1):globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}}),ke=h(Ie),De={},Ke={},Me={};function Le(){if(xe)return Ke;xe=1,Object.defineProperty(Ke,"__esModule",{value:!0});var e,t=(Pe||(Pe=1,e=Me,Object.defineProperty(e,"__esModule",{value:!0}),e.mul=Math.imul||function(e,t){var n=65535&e,r=65535&t;return n*r+((e>>>16&65535)*r+n*(t>>>16&65535)<<16>>>0)|0},e.add=function(e,t){return e+t|0},e.sub=function(e,t){return e-t|0},e.rotl=function(e,t){return e<<t|e>>>32-t},e.rotr=function(e,t){return e<<32-t|e>>>t},e.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},e.MAX_SAFE_INTEGER=9007199254740991,e.isSafeInteger=function(t){return e.isInteger(t)&&t>=-e.MAX_SAFE_INTEGER&&t<=e.MAX_SAFE_INTEGER}),Me);function n(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>8,t[n+1]=e>>>0,t}function r(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t}function o(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function i(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function s(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function a(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function c(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>24,t[n+1]=e>>>16,t[n+2]=e>>>8,t[n+3]=e>>>0,t}function l(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24,t}function u(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),c(e/4294967296>>>0,t,n),c(e>>>0,t,n+4),t}function d(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),l(e>>>0,t,n),l(e/4294967296>>>0,t,n+4),t}return Ke.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},Ke.readUint16BE=function