1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[519],{81506:function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},48926:function(t){function e(t,e,r,n,i,o,s){try{var u=t[o](s),a=u.value}catch(error){return void r(error)}u.done?e(a):Promise.resolve(a).then(n,i)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(i,o){var s=t.apply(r,n);function u(t){e(s,i,o,u,a,"next",t)}function a(t){e(s,i,o,u,a,"throw",t)}u(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},34575:function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},93913:function(t){function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},29754:function(t){function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},2205:function(t,e,r){var n=r(99489);t.exports=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),writable:!1}),e&&n(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},95318:function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},78585:function(t,e,r){var n=r(50008).default,i=r(81506);t.exports=function(t,e){if(e&&("object"===n(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},99489:function(t){function e(r,n){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},50008:function(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},87757:function(t,e,r){t.exports=r(35666)},57204:function(t,e,r){"use strict";var n=r(48764).Buffer;var i=r(50580);function o(t){var e=n.alloc(2);return e.writeUInt16BE(t,0),e}var s={data:n.alloc(0),dataLength:0,sequence:0};e.Z=function(t,e){return{makeBlocks:function(r){var i=n.concat([o(r.length),r]),s=e-5,u=Math.ceil(i.length/s);i=n.concat([i,n.alloc(u*s-i.length+1).fill(0)]);for(var a=[],c=0;c<u;c++){var h=n.alloc(5);h.writeUInt16BE(t,0),h.writeUInt8(5,2),h.writeUInt16BE(c,3);var l=i.slice(c*s,(c+1)*s);a.push(n.concat([h,l]))}return a},reduceResponse:function(e,r){var o=e||s,u=o.data,a=o.dataLength,c=o.sequence;if(r.readUInt16BE(0)!==t)throw new i.TransportError("Invalid channel","InvalidChannel");if(5!==r.readUInt8(2))throw new i.TransportError("Invalid tag","InvalidTag");if(r.readUInt16BE(3)!==c)throw new i.TransportError("Invalid sequence","InvalidSequence");e||(a=r.readUInt16BE(5)),c++;var h=r.slice(e?5:7);return(u=n.concat([u,h])).length>a&&(u=u.slice(0,a)),{data:u,dataLength:a,sequence:c}},getReducedResult:function(t){if(t&&t.dataLength===t.data.length)return t.data}}}},67801:function(t,e,r){const n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(t,e){if(e=o(e),t instanceof i){if(t.loose===!!e.loose)return t;t=t.value}c("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(t){const e=this.options.loose?s[u.COMPARATORLOOSE]:s[u.COMPARATOR],r=t.match(e);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new h(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(t){if(c("Comparator.test",t,this.options.loose),this.semver===n||t===n)return!0;
vendor: 10,753 bytes, line 1
1if("string"===typeof t)try{t=new h(t,this.options)}catch(e){return!1}return a(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Comparator is required");if(e&&"object"===typeof e||(e={loose:!!e,includePrerelease:!1}),""===this.operator)return""===this.value||new l(t.value,e).test(this.value);if(""===t.operator)return""===t.value||new l(this.value,e).test(t.semver);const r=(">="===this.operator||">"===this.operator)&&(">="===t.operator||">"===t.operator),n=("<="===this.operator||"<"===this.operator)&&("<="===t.operator||"<"===t.operator),o=this.semver.version===t.semver.version,s=(">="===this.operator||"<="===this.operator)&&(">="===t.operator||"<="===t.operator),u=a(this.semver,"<",t.semver,e)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),c=a(this.semver,">",t.semver,e)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return r||n||o&&s||u||c}}t.exports=i;const o=r(25518),{re:s,t:u}=r(41870),a=r(82864),c=r(86322),h=r(86244),l=r(89061)},89061:function(t,e,r){class n{constructor(t,e){if(e=o(e),t instanceof n)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new n(t.raw,e);if(t instanceof s)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t,this.set=t.split(/\s*\|\|\s*/).map((t=>this.parseRange(t.trim()))).filter((t=>t.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${t}`);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter((t=>!d(t[0]))),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&y(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((t=>t.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(t){t=t.trim();const e=`parseRange:${Object.keys(this.options).join(",")}:${t}`,r=i.get(e);if(r)return r;const n=this.options.loose,o=n?c[h.HYPHENRANGELOOSE]:c[h.HYPHENRANGE];t=t.replace(o,S(this.options.includePrerelease)),u("hyphen replace",t),t=t.replace(c[h.COMPARATORTRIM],l),u("comparator trim",t,c[h.COMPARATORTRIM]),t=(t=(t=t.replace(c[h.TILDETRIM],f)).replace(c[h.CARETTRIM],p)).split(/\s+/).join(" ");const a=n?c[h.COMPARATORLOOSE]:c[h.COMPARATOR],y=t.split(" ").map((t=>m(t,this.options))).join(" ").split(/\s+/).map((t=>_(t,this.options))).filter(this.options.loose?t=>!!t.match(a):()=>!0).map((t=>new s(t,this.options))),v=(y.length,new Map);for(const i of y){if(d(i))return[i];v.set(i.value,i)}v.size>1&&v.has("")&&v.delete("");const g=[...v.values()];return i.set(e,g),g}intersects(t,e){if(!(t instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>v(r,e)&&t.set.some((t=>v(t,e)&&r.every((r=>t.every((t=>r.intersects(t,e)))))))))}test(t){if(!t)return!1;if("string"===typeof t)try{t=new a(t,this.options)}catch(e){return!1}for(let r=0;r<this.set.length;r++)if(O(this.set[r],t,this.options))return!0;return!1}}t.exports=n;const i=new(r(39593))({max:1e3}),o=r(25518),s=r(67801),u=r(86322),a=r(86244),{re:c,t:h,comparatorTrimReplace:l,tildeTrimReplace:f,caretTrimReplace:p}=r(41870),d=t=>"<0.0.0-0"===t.value,y=t=>""===t.value,v=(t,e)=>{let r=!0;const n=t.slice();let i=n.pop();for(;r&&n.length;)r=n.every((t=>i.intersects(t,e))),i=n.pop();return r},m=(t,e)=>(u("comp",t,e),t=M(t,e),u("caret",t),t=w(t,e),u("tildes",t),t=A(t,e),u("xrange",t),t=I(t,e),u("stars",t),t),g=t=>!t||"x"===t.toLowerCase()||"*"===t,w=(t,e)=>t.trim().split(/\s+/).map((t=>b(t,e))).join(" "),b=(t,e)=>{const r=e.loose?c[h.TILDELOOSE]:c[h.TILDE];return t.replace(r,((e,r,n,i,o)=>{let s;return u("tilde",t,e,r,n,i,o),g(r)?s="":g(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:g(i)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(u("replaceTilde pr",o),s=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,u("tilde return",s),s}))},M=(t,e)=>t.trim().split(/\s+/).map((t=>E(t,e))).join(" "),E=(t,e)=>{u("caret",t,e);const r=e.loose?c[h.CARETLOOSE]:c[h.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,((e,r,i,o,s)=>{let a;return u("caret",t,e,r,i,o,s),g(r)?a="":g(i)?a=`>=${r}.0.0${n} <${+r+1}.0.0-0`:g(o)?a="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(u("replaceCaret pr",s),a="0"===r?"0"===i?`>=${r}.${i}.${o}-${s} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${s} <${+r+1}.0.0-0`):(u("no pr"),a="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),u("caret return",a),a}))},A=(t,e)=>(u("replaceXRanges",t,e),t.split(/\s+/).map((t=>x(t,e))).join(" ")),x=(t,e)=>{t=t.trim();const r=e.loose?c[h.XRANGELOOSE]:c[h.XRANGE];return t.replace(r,((r,n,i,o,s,a)=>{u("xRange",t,r,n,i,o,s,a);const c=g(i),h=c||g(o),l=h||g(s),f=l;return"="===n&&f&&(n=""),a=e.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&f?(h&&(o=0),s=0,">"===n?(n=">=",h?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===n&&(n="<",h?i=+i+1:o=+o+1),"<"===n&&(a="-0"),r=`${n+i}.${o}.${s}${a}`):h?r=`>=${i}.0.0${a} <${+i+1}.0.0-0`:l&&(r=`>=${i}.${o}.0${a} <${i}.${+o+1}.0-0`),u("xRange return",r),r}))},I=(t,e)=>(u("replaceStars",t,e),t.trim().replace(c[h.STAR],"")),_=(t,e)=>(u("replaceGTE0",t,e),t.trim().replace(c[e.includePrerelease?h.GTE0PRE:h.GTE0],"")),S=t=>(e,r,n,i,o,s,u,a,c,h,l,f,p)=>`${r=g(n)?"":g(i)?`>=${n}.0.0${t?"-0":""}`:g(o)?`>=${n}.${i}.0${t?"-0":""}`:s?`>=${r}`:`>=${r}${t?"-0":""}`} ${a=g(c)?"":g(h)?`<${+c+1}.0.0-0`:g(l)?`<${c}.${+h+1}.0-0`:f?`<=${c}.${h}.${l}-${f}`:t?`<${c}.${h}.${+l+1}-0`:`<=${a}`}`.trim(),O=(t,e,r)=>{for(let n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let r=0;r<t.length;r++)if(u(t[r].semver),t[r].semver!==s.ANY&&t[r].semver.prerelease.length>0){const n=t[r].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}},86244:function(t,e,r){const n=r(86322),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=r(40602),{re:s,t:u}=r(41870),a=r(25518),{compareIdentifiers:c}=r(13189);class h{constructor(t,e){if(e=a(e),t instanceof h){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!==typeof t)throw new TypeError(`Invalid Version: ${t}`);if(t.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const r=t.trim().match(e.loose?s[u.LOOSE]:s[u.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<o)return e}return t})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(n("SemVer.compare",this.version,this.options,t),!(t instanceof h)){if("string"===typeof t&&t===this.version)return 0;t=new h(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof h||(t=new h(t,this.options)),c(this.major,t.major)||c(this.minor,t.minor)||c(this.patch,t.patch)}comparePre(t){if(t instanceof h||(t=new h(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{const r=this.prerelease[e],i=t.prerelease[e];if(n("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return c(r,i)}while(++e)}compareBuild(t){t instanceof h||(t=new h(t,this.options));let e=0;do{const r=this.build[e],i=t.build[e];if(n("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return c(r,i)}while(++e)}inc(t,e){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e),this.inc("pre",e);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e),this.inc("pre",e);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let t=this.prerelease.length;for(;--t>=0;)"number"===typeof this.prerelease[t]&&(this.prerelease[t]++,t=-2);-1===t&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}}t.exports=h},32340:function(t,e,r){const n=r(82362);t.exports=(t,e)=>{const r=n(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null}},82864:function(t,e,r){const n=r(65254),i=r(16570),o=r(81666),s=r(63041),u=r(98771),a=r(77179);t.exports=(t,e,r,c)=>{switch(e){case"===":return"object"===typeof t&&(t=t.version),"object"===typeof r&&(r=r.version),t===r;case"!==":return"object"===typeof t&&(t=t.version),"object"===typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return n(t,r,c);case"!=":return i(t,r,c);case">":return o(t,r,c);case">=":return s(t,r,c);case"<":return u(t,r,c);case"<=":return a(t,r,c);default:throw new TypeError(`Invalid operator: ${e}`)}}},88384:function(t,e,r){const n=r(86244),i=r(82362),{re:o,t:s}=r(41870);t.exports=(t,e)=>{if(t instanceof n)return t;if("number"===typeof t&&(t=String(t)),"string"!==typeof t)return null;let r=null;if((e=e||{}).rtl){let e;for(;(e=o[s.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)r&&e.index+e[0].length===r.index+r[0].length||(r=e),o[s.COERCERTL].lastIndex=e.index+e[1].length+e[2].length;o[s.COERCERTL].lastIndex=-1}else r=t.match(o[s.COERCE]);return null===r?null:i(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)}},62754:function(t,e,r){const n=r(86244);t.exports=(t,e,r)=>{const i=new n(t,r),o=new n(e,r);
1return i.compare(o)||i.compareBuild(o)}},20869:function(t,e,r){const n=r(32641);t.exports=(t,e)=>n(t,e,!0)},32641:function(t,e,r){const n=r(86244);t.exports=(t,e,r)=>new n(t,r).compare(new n(e,r))},92330:function(t,e,r){const n=r(82362),i=r(65254);t.exports=(t,e)=>{if(i(t,e))return null;{const r=n(t),i=n(e),o=r.prerelease.length||i.prerelease.length,s=o?"pre":"",u=o?"prerelease":"";for(const t in r)if(("major"===t||"minor"===t||"patch"===t)&&r[t]!==i[t])return s+t;return u}}},65254:function(t,e,r){const n=r(32641);t.exports=(t,e,r)=>0===n(t,e,r)},81666:function(t,e,r){const n=r(32641);t.exports=(t,e,r)=>n(t,e,r)>0},63041:function(t,e,r){const n=r(32641);t.exports=(t,e,r)=>n(t,e,r)>=0},64156:function(t,e,r){const n=r(86244);t.exports=(t,e,r,i)=>{"string"===typeof r&&(i=r,r=void 0);try{return new n(t,r).inc(e,i).version}catch(o){return null}}},98771:function(t,e,r){const n=r(32641);t.exports=(t,e,r)=>n(t,e,r)<0},77179:function(t,e,r){const n=r(32641);t.exports=(t,e,r)=>n(t,e,r)<=0},98760:function(t,e,r){const n=r(86244);t.exports=(t,e)=>new n(t,e).major},71801:function(t,e,r){const n=r(86244);t.exports=(t,e)=>new n(t,e).minor},16570:function(t,e,r){const n=r(32641);t.exports=(t,e,r)=>0!==n(t,e,r)},82362:function(t,e,r){const{MAX_LENGTH:n}=r(40602),{re:i,t:o}=r(41870),s=r(86244),u=r(25518);t.exports=(t,e)=>{if(e=u(e),t instanceof s)return t;if("string"!==typeof t)return null;if(t.length>n)return null;if(!(e.loose?i[o.LOOSE]:i[o.FULL]).test(t))return null;try{return new s(t,e)}catch(r){return null}}},47184:function(t,e,r){const n=r(86244);t.exports=(t,e)=>new n(t,e).patch},6399:function(t,e,r){const n=r(82362);t.exports=(t,e)=>{const r=n(t,e);return r&&r.prerelease.length?r.prerelease:null}},58209:function(t,e,r){const n=r(32641);t.exports=(t,e,r)=>n(e,t,r)},53729:function(t,e,r){const n=r(62754);t.exports=(t,e)=>t.sort(((t,r)=>n(r,t,e)))},8139:function(t,e,r){const n=r(89061);t.exports=(t,e,r)=>{try{e=new n(e,r)}catch(i){return!1}return e.test(t)}},46184:function(t,e,r){const n=r(62754);t.exports=(t,e)=>t.sort(((t,r)=>n(t,r,e)))},87705:function(t,e,r){const n=r(82362);t.exports=(t,e)=>{const r=n(t,e);return r?r.version:null}},28371:function(t,e,r){const n=r(41870);t.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r(40602).SEMVER_SPEC_VERSION,SemVer:r(86244),compareIdentifiers:r(13189).compareIdentifiers,rcompareIdentifiers:r(13189).rcompareIdentifiers,parse:r(82362),valid:r(87705),clean:r(32340),inc:r(64156),diff:r(92330),major:r(98760),minor:r(71801),patch:r(47184),prerelease:r(6399),compare:r(32641),rcompare:r(58209),compareLoose:r(20869),compareBuild:r(62754),sort:r(46184),rsort:r(53729),gt:r(81666),lt:r(98771),eq:r(65254),neq:r(16570),gte:r(63041),lte:r(77179),cmp:r(82864),coerce:r(88384),Comparator:r(67801),Range:r(89061),satisfies:r(8139),toComparators:r(92811),maxSatisfying:r(59290),minSatisfying:r(62465),minVersion:r(91785),validRange:r(77855),outside:r(86049),gtr:r(42097),ltr:r(59850),intersects:r(34298),simplifyRange:r(29905),subset:r(1254)}},40602:function(t){const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:e,MAX_SAFE_COMPONENT_LENGTH:16}},86322:function(t,e,r){var n=r(34155);const i="object"===typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=i},13189:function(t){const e=/^[0-9]+$/,r=(t,r)=>{const n=e.test(t),i=e.test(r);return n&&i&&(t=+t,r=+r),t===r?0:n&&!i?-1:i&&!n?1:t<r?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(t,e)=>r(e,t)}},25518:function(t){const e=["includePrerelease","loose","rtl"];t.exports=t=>t?"object"!==typeof t?{loose:!0}:e.filter((e=>t[e])).reduce(((t,e)=>(t[e]=!0,t)),{}):{}},41870:function(t,e,r){const{MAX_SAFE_COMPONENT_LENGTH:n}=r(40602),i=r(86322),o=(e=t.exports={}).re=[],s=e.src=[],u=e.t={};let a=0;const c=(t,e,r)=>{const n=a++;i(n,e),u[t]=n,s[n]=e,o[n]=new RegExp(e,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${s[u.NUMERICIDENTIFIER]})\\.(${s[u.NUMERICIDENTIFIER]})\\.(${s[u.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${s[u.NUMERICIDENTIFIERLOOSE]})\\.(${s[u.NUMERICIDENTIFIERLOOSE]})\\.(${s[u.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${s[u.NUMERICIDENTIFIER]}|${s[u.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${s[u.NUMERICIDENTIFIERLOOSE]}|${s[u.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${s[u.PRERELEASEIDENTIFIER]}(?:\\.${s[u.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${s[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[u.PRERELEASEIDENTIFIERLOOSE]}
1)*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${s[u.BUILDIDENTIFIER]}(?:\\.${s[u.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${s[u.MAINVERSION]}${s[u.PRERELEASE]}?${s[u.BUILD]}?`),c("FULL",`^${s[u.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${s[u.MAINVERSIONLOOSE]}${s[u.PRERELEASELOOSE]}?${s[u.BUILD]}?`),c("LOOSE",`^${s[u.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${s[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${s[u.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${s[u.XRANGEIDENTIFIER]})(?:\\.(${s[u.XRANGEIDENTIFIER]})(?:\\.(${s[u.XRANGEIDENTIFIER]})(?:${s[u.PRERELEASE]})?${s[u.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${s[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[u.XRANGEIDENTIFIERLOOSE]})(?:${s[u.PRERELEASELOOSE]})?${s[u.BUILD]}?)?)?`),c("XRANGE",`^${s[u.GTLT]}\\s*${s[u.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${s[u.GTLT]}\\s*${s[u.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),c("COERCERTL",s[u.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${s[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",c("TILDE",`^${s[u.LONETILDE]}${s[u.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${s[u.LONETILDE]}${s[u.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${s[u.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",c("CARET",`^${s[u.LONECARET]}${s[u.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${s[u.LONECARET]}${s[u.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${s[u.GTLT]}\\s*(${s[u.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${s[u.GTLT]}\\s*(${s[u.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${s[u.GTLT]}\\s*(${s[u.LOOSEPLAIN]}|${s[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${s[u.XRANGEPLAIN]})\\s+-\\s+(${s[u.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${s[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[u.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>
1=\\s*0.0.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},42097:function(t,e,r){const n=r(86049);t.exports=(t,e,r)=>n(t,e,">",r)},34298:function(t,e,r){const n=r(89061);t.exports=(t,e,r)=>(t=new n(t,r),e=new n(e,r),t.intersects(e))},59850:function(t,e,r){const n=r(86049);t.exports=(t,e,r)=>n(t,e,"<",r)},59290:function(t,e,r){const n=r(86244),i=r(89061);t.exports=(t,e,r)=>{let o=null,s=null,u=null;try{u=new i(e,r)}catch(a){return null}return t.forEach((t=>{u.test(t)&&(o&&-1!==s.compare(t)||(o=t,s=new n(o,r)))})),o}},62465:function(t,e,r){const n=r(86244),i=r(89061);t.exports=(t,e,r)=>{let o=null,s=null,u=null;try{u=new i(e,r)}catch(a){return null}return t.forEach((t=>{u.test(t)&&(o&&1!==s.compare(t)||(o=t,s=new n(o,r)))})),o}},91785:function(t,e,r){const n=r(86244),i=r(89061),o=r(81666);t.exports=(t,e)=>{t=new i(t,e);let r=new n("0.0.0");if(t.test(r))return r;if(r=new n("0.0.0-0"),t.test(r))return r;r=null;for(let i=0;i<t.set.length;++i){const e=t.set[i];let s=null;e.forEach((t=>{const e=new n(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":s&&!o(e,s)||(s=e);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}})),!s||r&&!o(r,s)||(r=s)}return r&&t.test(r)?r:null}},86049:function(t,e,r){const n=r(86244),i=r(67801),{ANY:o}=i,s=r(89061),u=r(8139),a=r(81666),c=r(98771),h=r(77179),l=r(63041);t.exports=(t,e,r,f)=>{let p,d,y,v,m;switch(t=new n(t,f),e=new s(e,f),r){case">":p=a,d=h,y=c,v=">",m=">=";break;case"<":p=c,d=l,y=a,v="<",m="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(u(t,e,f))return!1;for(let n=0;n<e.set.length;++n){const r=e.set[n];let s=null,u=null;if(r.forEach((t=>{t.semver===o&&(t=new i(">=0.0.0")),s=s||t,u=u||t,p(t.semver,s.semver,f)?s=t:y(t.semver,u.semver,f)&&(u=t)})),s.operator===v||s.operator===m)return!1;if((!u.operator||u.operator===v)&&d(t,u.semver))return!1;if(u.operator===m&&y(t,u.semver))return!1}return!0}},29905:function(t,e,r){const n=r(8139),i=r(32641);t.exports=(t,e,r)=>{const o=[];let s=null,u=null;const a=t.sort(((t,e)=>i(t,e,r)));for(const i of a){n(i,e,r)?(u=i,s||(s=i)):(u&&o.push([s,u]),u=null,s=null)}s&&o.push([s,null]);const c=[];for(const[n,i]of o)n===i?c.push(n):i||n!==a[0]?i?n===a[0]?c.push(`<=${i}`):c.push(`${n} - ${i}`):c.push(`>=${n}`):c.push("*");const h=c.join(" || "),l="string"===typeof e.raw?e.raw:String(e);return h.length<l.length?h:e}},1254:function(t,e,r){const n=r(89061),i=r(67801),{ANY:o}=i,s=r(8139),u=r(32641),a=(t,e,r)=>{if(t===e)return!0;if(1===t.length&&t[0].semver===o){if(1===e.length&&e[0].semver===o)return!0;t=r.includePrerelease?[new i(">=0.0.0-0")]:[new i(">=0.0.0")]}if(1===e.length&&e[0].semver===o){if(r.includePrerelease)return!0;e=[new i(">=0.0.0")]}const n=new Set;let a,l,f,p,d,y,v;for(const i of t)">"===i.operator||">="===i.operator?a=c(a,i,r):"<"===i.operator||"<="===i.operator?l=h(l,i,r):n.add(i.semver);if(n.size>1)return null;if(a&&l){if(f=u(a.semver,l.semver,r),f>0)return null;if(0===f&&(">="!==a.operator||"<="!==l.operator))return null}for(const i of n){if(a&&!s(i,String(a),r))return null;if(l&&!s(i,String(l),r))return null;for(const t of e)if(!s(i,String(t),r))return!1;return!0}let m=!(!l||r.includePrerelease||!l.semver.prerelease.length)&&l.semver,g=!(!a||r.includePrerelease||!a.semver.prerelease.length)&&a.semver;m&&1===m.prerelease.length&&"<"===l.operator&&0===m.prerelease[0]&&(m=!1);for(const i of e){if(v=v||">"===i.operator||">="===i.operator,y=y||"<"===i.operator||"<="===i.operator,a)if(g&&i.semver.prerelease&&i.semver.prerelease.length&&i.semver.major===g.major&&i.semver.minor===g.minor&&i.semver.patch===g.patch&&(g=!1),">"===i.operator||">="===i.operator){if(p=c(a,i,r),p===i&&p!==a)return!1}else if(">="===a.operator&&!s(a.semver,String(i),r))return!1;if(l)if(m&&i.semver.prerelease&&i.semver.prerelease.length&&i.semver.major===m.major&&i.semver.minor===m.minor&&i.semver.patch===m.patch&&(m=!1),"<"===i.operator||"<="===i.operator){if(d=h(l,i,r),d===i&&d!==l)return!1}else if("<="===l.operator&&!s(l.semver,String(i),r))return!1;if(!i.operator&&(l||a)&&0!==f)return!1}return!(a&&y&&!l&&0!==f)&&(!(l&&v&&!a&&0!==f)&&(!g&&!m))},c=(t,e,r)=>{if(!t)return e;const n=u(t.semver,e.semver,r);return n>0?t:n<0||">"===e.operator&&">="===t.operator?e:t},h=(t,e,r)=>{if(!t)return e;const n=u(t.semver,e.semver,r);return n<0?t:n>0||"<"===e.operator&&"<="===t.operator?e:t};t.exports=(t,e,r={})=>
1{if(t===e)return!0;t=new n(t,r),e=new n(e,r);let i=!1;t:for(const n of t.set){for(const t of e.set){const e=a(n,t,r);if(i=i||null!==e,e)continue t}if(i)return!1}return!0}},92811:function(t,e,r){const n=r(89061);t.exports=(t,e)=>new n(t,e).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")))},77855:function(t,e,r){const n=r(89061);t.exports=(t,e)=>{try{return new n(t,e).range||"*"}catch(r){return null}}},50580:function(t,e,r){"use strict";r.r(e),r.d(e,{AccountNameRequiredError:function(){return l},AccountNotSupported:function(){return f},AmountRequired:function(){return p},BluetoothRequired:function(){return d},BtcUnmatchedApp:function(){return y},CantOpenDevice:function(){return v},CantScanQRCode:function(){return Pt},CashAddrNotSupported:function(){return m},CurrencyNotSupported:function(){return g},DBNotReset:function(){return Vt},DBWrongPassword:function(){return Wt},DeviceAppVerifyNotSupported:function(){return w},DeviceGenuineSocketEarlyClose:function(){return b},DeviceHalted:function(){return I},DeviceInOSUExpected:function(){return x},DeviceNameInvalid:function(){return _},DeviceNotGenuineError:function(){return M},DeviceOnDashboardExpected:function(){return E},DeviceOnDashboardUnexpected:function(){return A},DeviceShouldStayInApp:function(){return Lt},DeviceSocketFail:function(){return S},DeviceSocketNoBulkStatus:function(){return O},DisconnectedDevice:function(){return k},DisconnectedDeviceDuringOperation:function(){return N},ETHAddressNonEIP:function(){return Ut},EnpointConfigError:function(){return T},EthAppPleaseEnableContractData:function(){return L},FeeEstimationFailed:function(){return R},FeeNotLoaded:function(){return Ct},FeeRequired:function(){return zt},FeeTooHigh:function(){return Ft},FirmwareNotRecognized:function(){return j},FirmwareOrAppUpdateRequired:function(){return qt},GasLessThanEstimate:function(){return at},GenuineCheckFailed:function(){return Gt},HardResetFail:function(){return D},InvalidAddress:function(){return U},InvalidAddressBecauseDestinationIsAlsoSource:function(){return P},InvalidXRPTag:function(){return B},LatestMCUInstalledError:function(){return C},LedgerAPI4xx:function(){return Zt},LedgerAPI5xx:function(){return Kt},LedgerAPIError:function(){return F},LedgerAPIErrorWithMessage:function(){return Y},LedgerAPINotAvailable:function(){return $},MCUNotGenuineToDashboard:function(){return yt},ManagerAppAlreadyInstalledError:function(){return G},ManagerAppDepInstallRequired:function(){return K},ManagerAppDepUninstallRequired:function(){return q},ManagerAppRelyOnBTCError:function(){return Z},ManagerDeviceLockedError:function(){return Q},ManagerFirmwareNotEnoughSpaceError:function(){return W},ManagerNotEnoughSpaceError:function(){return V},ManagerUninstallBTCDep:function(){return H},NetworkDown:function(){return X},NoAccessToCamera:function(){return ot},NoAddressesFound:function(){return J},NoDBPathGiven:function(){return Qt},NotEnoughBalance:function(){return tt},NotEnoughBalanceBecauseDestinationNotCreated:function(){return it},NotEnoughBalanceInParentAccount:function(){return rt},NotEnoughBalanceToDelegate:function(){return et},NotEnoughGas:function(){return st},NotEnoughSpendableBalance:function(){return nt},NotSupportedLegacyAddress:function(){return ut},PairingFailed:function(){return $t},PasswordIncorrectError:function(){return ht},PasswordsDontMatchError:function(){return ct},RecipientRequired:function(){return vt},RecommendSubAccountsToEmpty:function(){return lt},RecommendUndelegation:function(){return ft},StatusCodes:function(){return Xt},SyncError:function(){return Yt},TimeoutTagged:function(){return pt},TransportError:function(){return Ht},TransportInterfaceNotAvailable:function(){return kt},TransportOpenUserCancelled:function(){return Ot},TransportRaceCondition:function(){return Nt},TransportStatusError:function(){return te},TransportWebUSBGestureRequired:function(){return Tt},UnavailableTezosOriginatedAccountReceive:function(){return mt},UnavailableTezosOriginatedAccountSend:function(){return gt},UnexpectedBootloader:function(){return dt},UnknownMCU:function(){return z},UpdateFetchFileFail:function(){return wt},UpdateIncorrectHash:function(){return bt},UpdateIncorrectSig:function(){return Mt},UpdateYourApp:function(){return Et},UserRefusedAddress:function(){return xt},UserRefusedAllowManager:function(){return _t},UserRefusedDeviceNameChange:function(){return At},UserRefusedFirmwareUpdate:function(){return It},UserRefusedOnDevice:function(){return St},WebsocketConnectionError:function(){return Rt},WebsocketConnectionFailed:function(){return jt},WrongAppForCurrency:function(){return Bt},WrongDeviceForAccount:function(){return Dt},addCustomErrorDeserializer:function(){return s},createCustomErrorClass:function(){return u},deserializeError:function(){return a},getAltStatusMessage:function(){return Jt},serializeError:function(){return c}});var n=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i={},o={},s=function(t,e){o[t]=e},u=function(t){var e=function(e,r){Object.assign(this,r),this.name=t,this.message=e||t,this.stack=(new Error).stack};return e.prototype=new Error,i[t]=e,e},a=function(t){if("object"===typeof t&&t){try{var e=JSON.parse(t.message);e.message&&e.name&&(t=e)}catch(l){}var r=void 0;if("string"===typeof t.name){var n=t.name,s=o[n];if(s)r=s(t);else{var c="Error"===n?Error:i[n];c||(console.warn("deserializing an unknown class '"+n+"'"),c=u(n)),r=Object.create(c.prototype);try{for(var h in t)t.hasOwnProperty(h)&&(r[h]=t[h])}catch(l){}}}else r=new Error(t.message);return!r.stack&&Error.captureStackTrace&&Error.captureStackTrace(r,a),r}return new Error(String(t))},c=function(t){return t?"object"===typeof t?h(t,[]):"function"===typeof t?"[Function: "+(t.name||"anonymous")+"]":t:t};function h(t,e){var r,i,o={};e.push(t);try{for(var s=n(Object.keys(t)),u=s.next();!u.done;u=s.next()){var a=u.value,c=t[a];"function"!==typeof c&&(c&&"object"===typeof c?-1!==e.indexOf(t[a])?o[a]="[Circular]":o[a]=h(t[a
1],e.slice(0)):o[a]=c)}}catch(l){r={error:l}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return"string"===typeof t.name&&(o.name=t.name),"string"===typeof t.message&&(o.message=t.message),"string"===typeof t.stack&&(o.stack=t.stack),o}var l=u("AccountNameRequired"),f=u("AccountNotSupported"),p=u("AmountRequired"),d=u("BluetoothRequired"),y=u("BtcUnmatchedApp"),v=u("CantOpenDevice"),m=u("CashAddrNotSupported"),g=u("CurrencyNotSupported"),w=u("DeviceAppVerifyNotSupported"),b=u("DeviceGenuineSocketEarlyClose"),M=u("DeviceNotGenuine"),E=u("DeviceOnDashboardExpected"),A=u("DeviceOnDashboardUnexpected"),x=u("DeviceInOSUExpected"),I=u("DeviceHalted"),_=u("DeviceNameInvalid"),S=u("DeviceSocketFail"),O=u("DeviceSocketNoBulkStatus"),k=u("DisconnectedDevice"),N=u("DisconnectedDeviceDuringOperation"),T=u("EnpointConfig"),L=u("EthAppPleaseEnableContractData"),R=u("FeeEstimationFailed"),j=u("FirmwareNotRecognized"),D=u("HardResetFail"),B=u("InvalidXRPTag"),U=u("InvalidAddress"),P=u("InvalidAddressBecauseDestinationIsAlsoSource"),C=u("LatestMCUInstalledError"),z=u("UnknownMCU"),F=u("LedgerAPIError"),Y=u("LedgerAPIErrorWithMessage"),$=u("LedgerAPINotAvailable"),G=u("ManagerAppAlreadyInstalled"),Z=u("ManagerAppRelyOnBTC"),K=u("ManagerAppDepInstallRequired"),q=u("ManagerAppDepUninstallRequired"),Q=u("ManagerDeviceLocked"),W=u("ManagerFirmwareNotEnoughSpace"),V=u("ManagerNotEnoughSpace"),H=u("ManagerUninstallBTCDep"),X=u("NetworkDown"),J=u("NoAddressesFound"),tt=u("NotEnoughBalance"),et=u("NotEnoughBalanceToDelegate"),rt=u("NotEnoughBalanceInParentAccount"),nt=u("NotEnoughSpendableBalance"),it=u("NotEnoughBalanceBecauseDestinationNotCreated"),ot=u("NoAccessToCamera"),st=u("NotEnoughGas"),ut=u("NotSupportedLegacyAddress"),at=u("GasLessThanEstimate"),ct=u("PasswordsDontMatch"),ht=u("PasswordIncorrect"),lt=u("RecommendSubAccountsToEmpty"),ft=u("RecommendUndelegation"),pt=u("TimeoutTagged"),dt=u("UnexpectedBootloader"),yt=u("MCUNotGenuineToDashboard"),vt=u("RecipientRequired"),mt=u("UnavailableTezosOriginatedAccountReceive"),gt=u("UnavailableTezosOriginatedAccountSend"),wt=u("UpdateFetchFileFail"),bt=u("UpdateIncorrectHash"),Mt=u("UpdateIncorrectSig"),Et=u("UpdateYourApp"),At=u("UserRefusedDeviceNameChange"),xt=u("UserRefusedAddress"),It=u("UserRefusedFirmwareUpdate"),_t=u("UserRefusedAllowManager"),St=u("UserRefusedOnDevice"),Ot=u("TransportOpenUserCancelled"),kt=u("TransportInterfaceNotAvailable"),Nt=u("TransportRaceCondition"),Tt=u("TransportWebUSBGestureRequired"),Lt=u("DeviceShouldStayInApp"),Rt=u("WebsocketConnectionError"),jt=u("WebsocketConnectionFailed"),Dt=u("WrongDeviceForAccount"),Bt=u("WrongAppForCurrency"),Ut=u("ETHAddressNonEIP"),Pt=u("CantScanQRCode"),Ct=u("FeeNotLoaded"),zt=u("FeeRequired"),Ft=u("FeeTooHigh"),Yt=u("SyncError"),$t=u("PairingFailed"),Gt=u("GenuineCheckFailed"),Zt=u("LedgerAPI4xx"),Kt=u("LedgerAPI5xx"),qt=u("FirmwareOrAppUpdateRequired"),Qt=u("NoDBPathGiven"),Wt=u("DBWrongPassword"),Vt=u("DBNotReset");function Ht(t,e){this.name="TransportError",this.message=t,this.stack=(new Error).stack,this.id=e}Ht.prototype=new Error,s("TransportError",(function(t){return new Ht(t.message,t.id)}));var Xt={PIN_REMAINING_ATTEMPTS:25536,INCORRECT_LENGTH:26368,MISSING_CRITICAL_PARAMETER:26624,COMMAND_INCOMPATIBLE_FILE_STRUCTURE:27009,SECURITY_STATUS_NOT_SATISFIED:27010,CONDITIONS_OF_USE_NOT_SATISFIED:27013,INCORRECT_DATA:27264,NOT_ENOUGH_MEMORY_SPACE:27268,REFERENCED_DATA_NOT_FOUND:27272,FILE_ALREADY_EXISTS:27273,INCORRECT_P1_P2:27392,INS_NOT_SUPPORTED:27904,CLA_NOT_SUPPORTED:28160,TECHNICAL_PROBLEM:28416,OK:36864,MEMORY_PROBLEM:37440,NO_EF_SELECTED:37888,INVALID_OFFSET:37890,FILE_NOT_FOUND:37892,INCONSISTENT_FILE:37896,ALGORITHM_NOT_SUPPORTED:38020,INVALID_KCV:38021,CODE_NOT_INITIALIZED:38914,ACCESS_CONDITION_NOT_FULFILLED:38916,CONTRADICTION_SECRET_CODE_STATUS:38920,CONTRADICTION_INVALIDATION:38928,CODE_BLOCKED:38976,MAX_VALUE_REACHED:38992,GP_AUTH_FAILED:25344,LICENSING:28482,HALTED:28586};function Jt(t){switch(t){case 26368:return"Incorrect length";case 26624:return"Missing critical parameter";case 27010:return"Security not satisfied (dongle locked or have invalid access rights)";case 27013:return"Condition of use not satisfied (denied by the user?)";case 27264:return"Invalid data received";case 27392:return"Invalid parameter received"}if(28416<=t&&t<=28671)return"Internal error, please report"}
1function te(t){this.name="TransportStatusError";var e=Object.keys(Xt).find((function(e){return Xt[e]===t}))||"UNKNOWN_ERROR",r=Jt(t)||e,n=t.toString(16);this.message="Ledger device: "+r+" (0x"+n+")",this.stack=(new Error).stack,this.statusCode=t,this.statusText=e}te.prototype=new Error,s("TransportStatusError",(function(t){return new te(t.statusCode)}))},39386:function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();e.__esModule=!0,e.s16=e.s8=e.nu64be=e.u48be=e.u40be=e.u32be=e.u24be=e.u16be=e.nu64=e.u48=e.u40=e.u32=e.u24=e.u16=e.u8=e.offset=e.greedy=e.Constant=e.UTF8=e.CString=e.Blob=e.Boolean=e.BitField=e.BitStructure=e.VariantLayout=e.Union=e.UnionLayoutDiscriminator=e.UnionDiscriminator=e.Structure=e.Sequence=e.DoubleBE=e.Double=e.FloatBE=e.Float=e.NearInt64BE=e.NearInt64=e.NearUInt64BE=e.NearUInt64=e.IntBE=e.Int=e.UIntBE=e.UInt=e.OffsetLayout=e.GreedyCount=e.ExternalLayout=e.bindConstructorLayout=e.nameWithProperty=e.Layout=e.uint8ArrayToBuffer=e.checkUint8Array=void 0,e.constant=e.utf8=e.cstr=e.blob=e.unionLayoutDiscriminator=e.union=e.seq=e.bits=e.struct=e.f64be=e.f64=e.f32be=e.f32=e.ns64be=e.s48be=e.s40be=e.s32be=e.s24be=e.s16be=e.ns64=e.s48=e.s40=e.s32=e.s24=void 0;var i=r(48764);function o(t){if(!(t instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function s(t){return o(t),i.Buffer.from(t.buffer,t.byteOffset,t.length)}e.checkUint8Array=o,e.uint8ArrayToBuffer=s;var u=function(){function t(t,e){if(!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=e}return t.prototype.makeDestinationObject=function(){return{}},t.prototype.decode=function(t,e){throw new Error("Layout is abstract")},t.prototype.encode=function(t,e,r){throw new Error("Layout is abstract")},t.prototype.getSpan=function(t,e){if(0>this.span)throw new RangeError("indeterminate span");return this.span},t.prototype.replicate=function(t){var e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e},t.prototype.fromArray=function(t){},t}();function a(t,e){return e.property?t+"["+e.property+"]":t}e.Layout=u,e.nameWithProperty=a,e.bindConstructorLayout=function(t,e){if("function"!==typeof t)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(t,"layout_"))throw new Error("Class is already bound to a layout");if(!(e&&e instanceof u))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(e,"boundConstructor_"))throw new Error("layout is already bound to a constructor");t.layout_=e,e.boundConstructor_=t,e.makeDestinationObject=function(){return new t},Object.defineProperty(t.prototype,"encode",{value:function(t,r){return e.encode(this,t,r)},writable:!0}),Object.defineProperty(t,"decode",{value:function(t,r){return e.decode(t,r)},writable:!0})};var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.isCount=function(){throw new Error("ExternalLayout is abstract")},e}(u);e.ExternalLayout=c;var h=function(t){function e(e,r){var n=this;if(void 0===e&&(e=1),!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");return(n=t.call(this,-1,r)||this).elementSpan=e,n}return n(e,t),e.prototype.isCount=function(){return!0},e.prototype.decode=function(t,e){o(t),void 0===e&&(e=0);var r=t.length-e;return Math.floor(r/this.elementSpan)},e.prototype.encode=function(t,e,r){return 0},e}(c);e.GreedyCount=h;var l=function(t){function e(e,r,n){var i=this;if(!(e instanceof u))throw new TypeError("layout must be a Layout");if(void 0===r)r=0;else if(!Number.isInteger(r))throw new TypeError("offset must be integer or undefined");return(i=t.call(this,e.span,n||e.property)||this).layout=e,i.offset=r,i}return n(e,t),e.prototype.isCount=function(){return this.layout instanceof f||this.layout instanceof p},e.prototype.decode=function(t,e){return void 0===e&&(e=0),this.layout.decode(t,e+this.offset)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),this.layout.encode(t,e,r+this.offset)},e}(c);e.OffsetLayout=l;var f=function(t){function e(e,r){var n=t.call(this,e,r)||this;if(6<n.span)throw new RangeError("span must not exceed 6 bytes");return n}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),s(t).readUIntLE(e,this.span)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),s(e).writeUIntLE(t,r,this.span),this.span},e}(u);e.UInt=f;var p=function(t){function e(e,r){var n=t.call(this,e,r)||this;if(6<n.span)throw new RangeError("span must not exceed 6 bytes");return n}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),s(t).readUIntBE(e,this.span)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),s(e).writeUIntBE(t,r,this.span),this.span},e}(u);e.UIntBE=p;var d=function(t){function e(e,r){var n=t.call(this,e,r)||this;if(6<n.span)throw new RangeError("span must not exceed 6 bytes");return n}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),s(t).readIntLE(e,this.span)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),s(e).writeIntLE(t,r,this.span),this.span},e}(u);e.Int=d;var y=function(t){function e(e,r){var n=t.call(this,e,r)||this;if(6<n.span)throw new RangeError("span must not exceed 6 bytes");return n}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),s(t).readIntBE(e,this.span)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),s(e).writeIntBE(t,r,this.span),this.span},e}(u);e.IntBE=y;var v=Math.pow(2,32);function m(t){var e=Math.floor(t/v);return{hi32:e,lo32:t-e*v}}function g(t,e){return t*v+e}var w=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=s(t),n=r.readUInt32LE(e);return g(r.readUInt32LE(e+4),n)},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=m(t),i=s(e);return i.writeUInt32LE(n.lo32,r),i.writeUInt32LE(n.hi32,r+4),8},e}(u);e.NearUInt64=w;var b=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=s(t);return g(r.readUInt32BE(e),r.readUInt32BE(e+4))},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=m(t),i=s(e);return i.writeUInt32BE(n.hi32,r),i.writeUInt32BE(n.lo32,r+4),8},e}(u);e.NearUInt64BE=b;var M=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=s(t),n=r.readUInt32LE(e);return g(r.readInt32LE(e+4),n)},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=m(t),i=s(e);return i.writeUInt32LE(n.lo32,r),i.writeInt32LE(n.hi32,r+4),8},e}(u);e.NearInt64=M;var E=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=s(t);return g(r.readInt32BE(e),r.readUInt32BE(e+4))},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=m(t),i=s(e);return i.writeInt32BE(n.hi32,r),i.writeUInt32BE(n.lo32,r+4),8},e}(u);e.NearInt64BE=E;var A=function(t){function e(e){return t.call(this,4,e)||this}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),s(t).readFloatLE(e)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),s(e).writeFloatLE(t,r),4},e}(u);e.Float=A;var x=function(t){function e(e){return t.call(this,4,e)||this}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),s(t).readFloatBE(e)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),s(e).writeFloatBE(t,r),4},e}(u);e.FloatBE=x;var I=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),s(t).readDoubleLE(e)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),s(e).writeDoubleLE(t,r),8},e}(u);e.Double=I;var _=function(t){function e(e){return t.call(this,8,e)||this}return n(e,t),e.prototype.decode=function(t,e){return void 0===e&&(e=0),s(t).readDoubleBE(e)},e.prototype.encode=function(t,e,r){return void 0===r&&(r=0),s(e).writeDoubleBE(t,r),8},e}(u);e.DoubleBE=_;var S=function(t){function e(e,r,n){var i=this;if(!(e instanceof u))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof c&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var o=-1;return!(r instanceof c)&&0<e.span&&(o=r*e.span),(i=t.call(this,o,n)||this).elementLayout=e,i.count=r,i}return n(e,t),e.prototype.getSpan=function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=0,n=this.count;if(n instanceof c&&(n=n.decode(t,e)),0<this.elementLayout.span)r=n*this.elementLayout.span;else for(var i=0;i<n;)r+=this.elementLayout.getSpan(t,e+r),++i;return r},e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=[],n=0,i=this.count;for(i instanceof c&&(i=i.decode(t,e));n<i;)r.push(this.elementLayout.decode(t,e)),e+=this.elementLayout.getSpan(t,e),n+=1;return r},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=this.elementLayout,i=t.reduce((function(t,i){return t+n.encode(i,e,r+t)}),0);return this.count instanceof c&&this.count.encode(t.length,e,r),i},e}(u);e.Sequence=S;var O=function(t){function e(e,r,n){var i=this;if(!Array.isArray(e)||!e.reduce((function(t,e){return t&&e instanceof u}),!0))throw new TypeError("fields must be array of Layout instances");"boolean"===typeof r&&void 0===n&&(n=r,r=void 0);for(var o=0,s=e;o<s.length;o++){var a=s[o];if(0>a.span&&void 0===a.property)throw new Error("fields cannot contain unnamed variable-length layout")}var c=-1;try{c=e.reduce((function(t,e){return t+e.getSpan()}),0)}catch(h){}return(i=t.call(this,c,r)||this).fields=e,i.decodePrefixes=!!n,i}return n(e,t),e.prototype.getSpan=function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=0;try{r=this.fields.reduce((function(r,n){var i=n.getSpan(t,e);return e+=i,r+i}),0)}catch(n){throw new RangeError("indeterminate span")}return r},e.prototype.decode=function(t,e){o(t),void 0===e&&(e=0);for(var r=this.makeDestinationObject(),n=0,i=this.fields;n<i.length;n++){var s=i[n];if(void 0!==s.property&&(r[s.property]=s.decode(t,e)),e+=s.getSpan(t,e),this.decodePrefixes&&t.length===e)break}return r},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);for(var n=r,i=0,o=0,s=0,u=this.fields;s<u.length;s++){var a=u[s],c=a.span;if(o=0<c?c:0,void 0!==a.property){var h=t[a.property];void 0!==h&&(o=a.encode(h,e,r),0>c&&(c=a.getSpan(e,r)))}i=r,r+=c}return i+o-n},e.prototype.fromArray=function(t){for(var e=this.makeDestinationObject(),r=0,n=this.fields;r<n.length;r++){var i=n[r];void 0!==i.property&&0<t.length&&(e[i.property]=t.shift())}return e},e.prototype.layoutFor=function(t){if("string"!==typeof t)throw new TypeError("property must be string");for(var e=0,r=this.fields;e<r.length;e++){var n=r[e];if(n.property===t)return n}},e.prototype.offsetOf=function(t){if("string"!==typeof t)throw new TypeError("property must be string");for(var e=0,r=0,n=this.fields;r<n.length;r++){var i=n[r];if(i.property===t)return e;0>i.span?e=-1:0<=e&&(e+=i.span)}},e}(u);e.Structure=O;var k=function(){function t(t){this.property=t}return t.prototype.decode=function(t,e){throw new Error("UnionDiscriminator is abstract")},t.prototype.encode=function(t,e,r){throw new Error("UnionDiscriminator is abstract")},t}();e.UnionDiscriminator=k;var N=function(t){function e(e,r){var n=this;if(!(e instanceof c&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(n=t.call(this,r||e.property||"variant")||this).layout=e,n}return n(e,t),e.prototype.decode=function(t,e){return this.layout.decode(t,e)},e.prototype.encode=function(t,e,r){return this.layout.encode(t,e,r)},e}(k);e.UnionLayoutDiscriminator=N;var T=function(t){function e(e,r,n){var i,o=this,s=e instanceof f||e instanceof p;if(s)i=new N(new l(e));else if(e instanceof c&&e.isCount())i=new N(e);else{if(!(e instanceof k))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");i=e}if(void 0===r&&(r=null),!(null===r||r instanceof u))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var a=-1;r&&0<=(a=r.span)&&s&&(a+=i.layout.span),(o=t.call(this,a,n)||this).discriminator=i,o.usesPrefixDiscriminator=s,o.defaultLayout=r,o.registry={};var h=o.defaultGetSourceVariant.bind(o);return o.getSourceVariant=function(t){return h(t)},o.configGetSourceVariant=function(t){h=t.bind(this)},o}return n(e,t),e.prototype.getSpan=function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=this.getVariant(t,e);if(!r)throw new Error("unable to determine span for unrecognized variant");return r.getSpan(t,e)},e.prototype.defaultGetSourceVariant=function(t){if(Object.prototype.hasOwnProperty.call(t,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(t,this.defaultLayout.property))return;if((r=this.registry[t[this.discriminator.property]])&&(!r.layout||r.property&&Object.prototype.hasOwnProperty.call(t,r.property)))return r}else for(var e in this.registry){var r;if((r=this.registry[e]).property&&Object.prototype.hasOwnProperty.call(t,r.property))return r}throw new Error("unable to infer src variant")},e.prototype.decode=function(t,e){var r;void 0===e&&(e=0);var n=this.discriminator,i=n.decode(t,e),o=this.registry[i];if(void 0===o){var s=this.defaultLayout,u=0;this.usesPrefixDiscriminator&&(u=n.layout.span),(r=this.makeDestinationObject())[n.property]=i,r[s.property]=s.decode(t,e+u)}else r=o.decode(t,e);return r},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=this.getSourceVariant(t);if(void 0===n){var i=this.discriminator,o=this.defaultLayout,s=0;return this.usesPrefixDiscriminator&&(s=i.layout.span),i.encode(t[i.property],e,r),s+o.encode(t[o.property],e,r+s)}return n.encode(t,e,r)},e.prototype.addVariant=function(t,e,r){var n=new L(this,t,e,r);return this.registry[t]=n,n},e.prototype.getVariant=function(t,e){var r;return t instanceof Uint8Array?(void 0===e&&(e=0),r=this.discriminator.decode(t,e)):r=t,this.registry[r]},e}(u);e.Union=T;var L=function(t){function e(e,r,n,i){var o=this;if(!(e instanceof T))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");
1if("string"===typeof n&&void 0===i&&(i=n,n=null),n){if(!(n instanceof u))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=n.span&&n.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!==typeof i)throw new TypeError("variant must have a String property")}var s=e.span;return 0>e.span&&0<=(s=n?n.span:0)&&e.usesPrefixDiscriminator&&(s+=e.discriminator.layout.span),(o=t.call(this,s,i)||this).union=e,o.variant=r,o.layout=n||null,o}return n(e,t),e.prototype.getSpan=function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var r=0;this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span);var n=0;return this.layout&&(n=this.layout.getSpan(t,e+r)),r+n},e.prototype.decode=function(t,e){var r=this.makeDestinationObject();if(void 0===e&&(e=0),this!==this.union.getVariant(t,e))throw new Error("variant mismatch");var n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);var i=this.property;return this.layout?r[i]=this.layout.decode(t,e+n):i?r[i]=!0:this.union.usesPrefixDiscriminator&&(r[this.union.discriminator.property]=this.variant),r},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);var i=this.property;if(this.layout&&!Object.prototype.hasOwnProperty.call(t,i))throw new TypeError("variant lacks property "+i);this.union.discriminator.encode(this.variant,e,r);var o=n;if(this.layout&&(this.layout.encode(t[i],e,r+n),o+=this.layout.getSpan(e,r+n),0<=this.union.span&&o>this.union.span))throw new Error("encoded variant overruns containing union");return o},e.prototype.fromArray=function(t){if(this.layout)return this.layout.fromArray(t)},e}(u);function R(t){return 0>t&&(t+=4294967296),t}e.VariantLayout=L;var j=function(t){function e(e,r,n){var i=this;if(!(e instanceof f||e instanceof p))throw new TypeError("word must be a UInt or UIntBE layout");if("string"===typeof r&&void 0===n&&(n=r,r=!1),4<e.span)throw new RangeError("word cannot exceed 32 bits");(i=t.call(this,e.span,n)||this).word=e,i.msb=!!r,i.fields=[];var o=0;return i._packedSetValue=function(t){return o=R(t),this},i._packedGetValue=function(){return o},i}return n(e,t),e.prototype.decode=function(t,e){var r=this.makeDestinationObject();void 0===e&&(e=0);var n=this.word.decode(t,e);this._packedSetValue(n);for(var i=0,o=this.fields;i<o.length;i++){var s=o[i];void 0!==s.property&&(r[s.property]=s.decode(n))}return r},e.prototype.encode=function(t,e,r){void 0===r&&(r=0);var n=this.word.decode(e,r);this._packedSetValue(n);for(var i=0,o=this.fields;i<o.length;i++){var s=o[i];if(void 0!==s.property){var u=t[s.property];void 0!==u&&s.encode(u)}}return this.word.encode(this._packedGetValue(),e,r)},e.prototype.addField=function(t,e){var r=new D(this,t,e);return this.fields.push(r),r},e.prototype.addBoolean=function(t){var e=new B(this,t);return this.fields.push(e),e},e.prototype.fieldFor=function(t){if("string"!==typeof t)throw new TypeError("property must be string");for(var e=0,r=this.fields;e<r.length;e++){var n=r[e];if(n.property===t)return n}},e}(u);e.BitStructure=j;var D=function(){function t(t,e,r){if(!(t instanceof j))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(e)||0>=e)throw new TypeError("bits must be positive integer");var n=8*t.span,i=t.fields.reduce((function(t,e){return t+e.bits}),0);if(e+i>n)throw new Error("bits too long for span remainder ("+(n-i)+" of "+n+" remain)");this.container=t,this.bits=e,this.valueMask=(1<<e)-1,32===e&&(this.valueMask=4294967295),this.start=i,this.container.msb&&(this.start=n-i-e),this.wordMask=R(this.valueMask<<this.start),this.property=r}return t.prototype.decode=function(t,e){return R(this.container._packedGetValue()&this.wordMask)>>>this.start},t.prototype.encode=function(t){if(!Number.isInteger(t)||t!==R(t&this.valueMask))throw new TypeError(a("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var e=this.container._packedGetValue(),r=R(t<<this.start);this.container._packedSetValue(R(e&~this.wordMask)|r)},t}();e.BitField=D;var B=function(t){function e(e,r){return t.call(this,e,1,r)||this}return n(e,t),e.prototype.decode=function(t,e){return!!D.prototype.decode.call(this,t,e)},e.prototype.encode=function(t){return"boolean"===typeof t&&(t=+t),D.prototype.encode.call(this,t)},e}(D);e.Boolean=B;var U=function(t){function e(e,r){var n=this;if(!(e instanceof c&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");var i=-1;return e instanceof c||(i=e),(n=t.call(this,i,r)||this).length=e,n}return n(e,t),e.prototype.getSpan=function(t,e){var r=this.span;return 0>r&&(r=this.length.decode(t,e)),r},e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=this.span;return 0>r&&(r=this.length.decode(t,e)),s(t).slice(e,e+r)},e.prototype.encode=function(t,e,r){var n=this.length;if(this.length instanceof c&&(n=t.length),!(t instanceof Uint8Array&&n===t.length))throw new TypeError(a("Blob.encode",this)+" requires (length "+n+") Uint8Array as src");if(r+n>e.length)throw new RangeError("encoding overruns Uint8Array");var i=s(t);return s(e).write(i.toString("hex"),r,n,"hex"),this.length instanceof c&&this.length.encode(n,e,r),n},e}(u);e.Blob=U;var P=function(t){function e(e){return t.call(this,-1,e)||this}return n(e,t),e.prototype.getSpan=function(t,e){o(t),void 0===e&&(e=0);for(var r=e;r<t.length&&0!==t[r];)r+=1;return 1+r-e},e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=this.getSpan(t,e);return s(t).slice(e,e+r-1).toString("utf-8")},e.prototype.encode=function(t,e,r){void 0===r&&(r=0),"string"!==typeof t&&(t=t.toString());var n=i.Buffer.from(t,"utf8"),o=n.length;if(r+o>e.length)throw new RangeError("encoding overruns Buffer");var u=s(e);return n.copy(u,r),u[r+o]=0,o+1},e}(u);e.CString=P;var C=function(t){function e(e,r){var n=this;if("string"===typeof e&&void 0===r&&(r=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");return(n=t.call(this,-1,r)||this).maxSpan=e,n}return n(e,t),e.prototype.getSpan=function(t,e){return o(t),void 0===e&&(e=0),t.length-e},e.prototype.decode=function(t,e){void 0===e&&(e=0);var r=this.getSpan(t,e);if(0<=this.maxSpan&&this.maxSpan<r)throw new RangeError("text length exceeds maxSpan");return s(t).slice(e,e+r).toString("utf-8")},e.prototype.encode=function(t,e,r){void 0===r&&(r=0),"string"!==typeof t&&(t=t.toString());var n=i.Buffer.from(t,"utf8"),o=n.length;if(0<=this.maxSpan&&this.maxSpan<o)throw new RangeError("text length exceeds maxSpan");if(r+o>e.length)throw new RangeError("encoding overruns Buffer");return n.copy(s(e),r),o},e}(u);e.UTF8=C;var z=function(t){function e(e,r){var n=t.call(this,0,r)||this;return n.value=e,n}return n(e,t),e.prototype.decode=function(t,e){return this.value},e.prototype.encode=function(t,e,r){return 0},e}(u);e.Constant=z,e.greedy=function(t,e){return new h(t,e)},e.offset=function(t,e,r){return new l(t,e,r)},e.u8=function(t){return new f(1,t)},e.u16=function(t){return new f(2,t)},e.u24=function(t){return new f(3,t)},e.u32=function(t){return new f(4,t)},e.u40=function(t){return new f(5,t)},e.u48=function(t){return new f(6,t)},e.nu64=function(t){return new w(t)},e.u16be=function(t){return new p(2,t)},e.u24be=function(t){return new p(3,t)},e.u32be=function(t){return new p(4,t)},e.u40be=function(t){return new p(5,t)},e.u48be=function(t){return new p(6,t)},e.nu64be=function(t){return new b(t)},e.s8=function(t){return new d(1,t)},e.s16=function(t){return new d(2,t)},e.s24=function(t){return new d(3,t)},e.s32=function(t){return new d(4,t)},e.s40=function(t){return new d(5,t)},e.s48=function(t){return new d(6,t)},e.ns64=function(t){return new M(t)},e.s16be=function(t){return new y(2,t)},e.s24be=function(t){return new y(3,t)},e.s32be=function(t){return new y(4,t)},e.s40be=function(t){return new y(5,t)},e.s48be=function(t){return new y(6,t)},e.ns64be=function(t){return new E(t)},e.f32=function(t){return new A(t)},e.f32be=function(t){return new x(t)},e.f64=function(t){return new I(t)},e.f64be=function(t){return new _(t)},e.struct=function(t,e,r){return new O(t,e,r)},e.bits=function(t,e,r){return new j(t,e,r)},e.seq=function(t,e,r){return new S(t,e,r)},e.union=function(t,e,r){return new T(t,e,r)},e.unionLayoutDiscriminator=function(t,e){return new N(t,e)},e.blob=function(t,e){return new U(t,e)},e.cstr=function(t){return new P(t)},e.utf8=function(t,e){return new C(t,e)},e.constant=function(t,e){return new z(t,e)}},13384:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;
vendor: 4,490 bytes, line 1
1"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(11922).Buffer}catch(O){}function u(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function a(t,e,r){var n=u(t,r);return r-1>=e&&(n|=u(t,r-1)<<4),n}function c(t,e,r,i){for(var o=0,s=0,u=Math.min(t.length,r),a=e;a<u;a++){var c=t.charCodeAt(a)-48;o*=i,s=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&s<i,"Invalid character"),o+=s}return o}function h(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,u=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<u&67108863,this.words[o+1]=s>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<u&67108863,this.words[o+1]=s>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=a(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(t.length-e)%2===0?e+1:e;n<t.length;n+=2)i=a(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,u=Math.min(o,o-s)+r,a=0,h=r;h<u;h+=n)a=c(t,h,h+n,e),this.imuln(i),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(0!==s){var l=1;for(a=c(t,h,t.length,e),h=0;h<s;h++)l*=e;this.imuln(l),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){h(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(O){o.prototype.inspect=l}else o.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 21,460 bytes, line 1
1777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var u=this.words[s],a=(16777215&(u<<i|o)).toString(16);r=0!==(o=u>>>24-i&16777215)||s!==this.length-1?f[6-a.length]+a+r:a+r,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=p[t],h=d[t];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var y=l.modrn(h).toString(t);r=(l=l.idivn(h)).isZero()?y+r:f[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function y(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,u=67108863&s,a=s/67108864|0;r.words[0]=u;for(var c=1;c<n;c++){for(var h=a>>>26,l=67108863&a,f=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p<=f;p++){var d=c-p|0;h+=(s=(i=0|t.words[d])*(o=0|e.words[p])+l)/67108864|0,l=67108863&s}r.words[c]=0|l,a=0|h}return 0!==a?r.words[c]=0|a:r.length--,r._strip()}o.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var s=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,i),s},o.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r++]=255&s,r<t.length&&(t[r++]=s>>8&255),r<t.length&&(t[r++]=s>>16&255),6===o?(r<t.length&&(t[r++]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r--]=255&s,r>=0&&(t[r--]=s>>8&255),r>=0&&(t[r--]=s>>16&255),6===o?(r>=0&&(t[r--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)o=(e=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)o=(e=(0|r.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var v=function(t,e,r){var n,i,o,s=t.words,u=e.words,a=r.words,c=0,h=0|s[0],l=8191&h,f=h>>>13,p=0|s[1],d=8191&p,y=p>>>13,v=0|s[2],m=8191&v,g=v>>>13,w=0|s[3],b=8191&w,M=w>>>13,E=0|s[4],A=8191&E,x=E>>>13,I=0|s[5],_=8191&I,S=I>>>13,O=0|s[6],k=8191&O,N=O>>>13,T=0|s[7],L=8191&T,R=T>>>13,j=0|s[8],D=8191&j,B=j>>>13,U=0|s[9],P=8191&U,C=U>>>13,z=0|u[0],F=8191&z,Y=z>>>13,$=0|u[1],G=8191&$,Z=$>>>13,K=0|u[2],q=8191&K,Q=K>>>13,W=0|u[3],V=8191&W,H=W>>>13,X=0|u[4],J=8191&X,tt=X>>>13,et=0|u[5],rt=8191&et,nt=et>>>13,it=0|u[6],ot=8191&it,st=it>>>13,ut=0|u[7],at=8191&ut,ct=ut>>>13,ht=0|u[8],lt=8191&ht,ft=ht>>>13,pt=0|u[9],dt=8191&pt,yt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(c+(n=Math.imul(l,F))|0)+((8191&(i=(i=Math.imul(l,Y))+Math.imul(f,F)|0))<<13)|0;c=((o=Math.imul(f,Y))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(d,F),i=(i=Math.imul(d,Y))+Math.imul(y,F)|0,o=Math.imul(y,Y);var mt=(c+(n=n+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,Z)|0)+Math.imul(f,G)|0))<<13)|0;c=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,F),i=(i=Math.imul(m,Y))+Math.imul(g,F)|0,o=Math.imul(g,Y),n=n+Math.imul(d,G)|0,i=(i=i+Math.imul(d,Z)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,Z)|0;var gt=(c+(n=n+Math.imul(l,q)|0)|0)+((8191&(i=(i=i+Math.imul(l,Q)|0)+Math.imul(f,q)|0))<<13)|0;c=((o=o+Math.imul(f,Q)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(b,F),i=(i=Math.imul(b,Y))+Math.imul(M,F)|0,o=Math.imul(M,Y),n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(g,G)|0,o=o+Math.imul(g,Z)|0,n=n+Math.imul(d,q)|0,i=(i=i+Math.imul(d,Q)|0)+Math.imul(y,q)|0,o=o+Math.imul(y,Q)|0;var wt=(c+(n=n+Math.imul(l,V)|0)|0)+((8191&(i=(i=i+Math.imul(l,H)|0)+Math.imul(f,V)|0))<<13)|0;c=((o=o+Math.imul(f,H)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,F),i=(i=Math.imul(A,Y))+Math.imul(x,F)|0,o=Math.imul(x,Y),n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(m,q)|0,i=(i=i+Math.imul(m,Q)|0)+Math.imul(g,q)|0,o=o+Math.imul(g,Q)|0,n=n+Math.imul(d,V)|0,i=(i=i+Math.imul(d,H)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,H)|0;var bt=(c+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,tt)|0)+Math.imul(f,J)|0))<<13)|0;c=((o=o+Math.imul(f,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,F),i=(i=Math.imul(_,Y))+Math.imul(S,F)|0,o=Math.imul(S,Y),n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(x,G)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Q)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,Q)|0,n=n+Math.imul(m,V)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(g,V)|0,o=o+Math.imul(g,H)|0,n=n+Math.imul(d,J)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,tt)|0;var Mt=(c+(n=n+Math.imul(l,rt)|0)|0)+((8191&(i=(i=i+Math.imul(l,nt)|0)+Math.imul(f,rt)|0))<<13)|0;c=((o=o+Math.imul(f,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(k,F),i=(i=Math.imul(k,Y))+Math.imul(N,F)|0,o=Math.imul(N,Y),n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Q)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,Q)|0,n=n+Math.imul(b,V)|0,i=(i=i+Math.imul(b,H)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,H)|0,n=n+Math.imul(m,J)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(g,J)|0,o=o+Math.imul(g,tt)|0,n=n+Math.imul(d,rt)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0;var Et=(c+(n=n+Math.imul(l,ot)|0)|0)+((8191&(i=(i=i+Math.imul(l,st)|0)+Math.imul(f,ot)|0))<<13)|0;c=((o=o+Math.imul(f,st)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(L,F),i=(i=Math.imul(L,Y))+Math.imul(R,F)|0,o=Math.imul(R,Y),n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(_,q)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(S,q)|0,o=o+Math.imul(S,Q)|0,n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,H)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,H)|0,n=n+Math.imul(b,J)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(g,rt)|0,o=o+Math.imul(g,nt)|0,n=n+Math.imul(d,ot)|0,i=(i=i+Math.imul(d,st)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0;var At=(c+(n=n+Math.imul(l,at)|0)|0)+((8191&(i=(i=i+Math.imul(l,ct)|0)+Math.imul(f,at)|0))<<13)|0;c=((o=o+Math.imul(f,ct)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,F),i=(i=Math.imul(D,Y))+Math.imul(B,F)|0,o=Math.imul(B,Y),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,Z)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Z)|0,n=n+Math.imul(k,q)|0,i=(i=i+Math.imul(k,Q)|0)+Math.imul(N,q)|0,o=o+Math.imul(N,Q)|0,n=n+Math.imul(_,V)|0,i=(i=i+Math.imul(_,H)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,H)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,st)|0)+Math.imul(g,ot)|0,o=o+Math.imul(g,st)|0,n=n+Math.imul(d,at)|0,i=(i=i+Math.imul(d,ct)|0)+Math.imul(y,at)|0,o=o+Math.imul(y,ct)|0;var xt=(c+(n=n+Math.imul(l,lt)|0)|0)+((8191&(i=(i=i+Math.imul(l,ft)|0)+Math.imul(f,lt)|0))<<13)|0;c=((o=o+Math.imul(f,ft)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(P,F),i=(i=Math.imul(P,Y))+Math.imul(C,F)|0,o=Math.imul(C,Y),n=n+Math.imul(D,G)|0,i=(i=i+Math.imul(D,Z)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,Z)|0,n=n+Math.imul(L,q)|0,i=(i=i+Math.imul(L,Q)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,Q)|0,n=n+Math.imul(k,V)|0,i=(i=i+Math.imul(k,H)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,H)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(x,rt)|0,o=o+Math.imul(x,nt)|0,n=n+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,st)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(m,at)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(g,at)|0,o=o+Math.imul(g,ct)|0,n=n+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ft)|0)+Math.imul(y,lt)|0,o=o+Math.imul(y,ft)|0;var It=(c+(n=n+Math.imul(l,dt)|0)|0)+((8191&(i=(i=i+Math.imul(l,yt)|0)+Math.imul(f,dt)|0))<<13)|0;c=((o=o+Math.imul(f,yt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(P,G),i=(i=Math.imul(P,Z))+Math.imul(C,G)|0,o=Math.imul(C,Z),n=n+Math.imul(D,q)|0,i=(i=i+Math.imul(D,Q)|0)+Math.imul(B,q)|0,o=o+Math.imul(B,Q)|0,n=n+Math.imul(L,V)|0,i=(i=i+Math.imul(L,H)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,H)|0,n=n+Math.imul(k,J)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(_,rt)|0,i=(i=i+Math.imul(_,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,st)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,st)|0,n=n+Math.imul(b,at)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(M,at)|0,o=o+Math.imul(M,ct)|0,n=n+Math.imul(m,lt)|0,i=(i=i+Math.imul(m,ft)|0)+Math.imul(g,lt)|0,o=o+Math.imul(g,ft)|0;var _t=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,yt)|0)+Math.imul(y,dt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,Q))+Math.imul(C,q)|0,o=Math.imul(C,Q),n=n+Math.imul(D,V)|0,i=(i=i+Math.imul(D,H)|0)+Math.imul(B,V)|0,o=o+Math.imul(B,H)|0,n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(R,J)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(_,ot)|0,i=(i=i+Math.imul(_,st)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(A,at)|0,i=(i=i+Math.imul(A,ct)|0)+Math.imul(x,at)|0,o=o+Math.imul(x,ct)|0,n=n+Math.imul(b,lt)|0,i=(i=i+Math.imul(b,ft)|0)+Math.imul(M,lt)|0,o=o+Math.imul(M,ft)|0;var St=(c+(n=n+Math.imul(m,dt)|0)|0)+((8191&(i=(i=i+Math.imul(m,yt)|0)+Math.imul(g,dt)|0))<<13)|0;c=((o=o+Math.imul(g,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(P,V),i=(i=Math.imul(P,H))+Math.imul(C,V)|0,o=Math.imul(C,H),n=n+Math.imul(D,J)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(L,rt)|0,i=(i=i+Math.imul(L,nt)|0)+Math.imul(R,rt)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,st)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,st)|0,n=n+Math.imul(_,at)|0,i=(i=i+Math.imul(_,ct)|0)+Math.imul(S,at)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ft)|0)+Math.imul(x,lt)|0,o=o+Math.imul(x,ft)|0;var Ot=(c+(n=n+Math.imul(b,dt)|0)|0)+((8191&(i=(i=i+Math.imul(b,yt)|0)+Math.imul(M,dt)|0))<<13)|0;c=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(P,J),i=(i=Math.imul(P,tt))+Math.imul(C,J)|0,o=Math.imul(C,tt),n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(L,ot)|0,i=(i=i+Math.imul(L,st)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,st)|0,n=n+Math.imul(k,at)|0,i=(i=i+Math.imul(k,ct)|0)+Math.imul(N,at)|0,o=o+Math.imul(N,ct)|0,n=n+Math.imul(_,lt)|0,i=(i=i+Math.imul(_,ft)|0)+Math.imul(S,lt)|0,o=o+Math.imul(S,ft)|0;var kt=(c+(n=n+Math.imul(A,dt)|0)|0)+((8191&(i=(i=i+Math.imul(A,yt)|0)+Math.imul(x,dt)|0))<<13)|0;c=((o=o+Math.imul(x,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(P,rt),i=(i=Math.imul(P,nt))+Math.imul(C,rt)|0,o=Math.imul(C,nt),n=n+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,st)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,st)|0,n=n+Math.imul(L,at)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(R,at)|0,o=o+Math.imul(R,ct)|0,n=n+Math.imul(k,lt)|0,i=(i=i+Math.imul(k,ft)|0)+Math.imul(N,lt)|0,o=o+Math.imul(N,ft)|0;var Nt=(c+(n=n+Math.imul(_,dt)|0)|0)+((8191&(i=(i=i+Math.imul(_,yt)|0)+Math.imul(S,dt)|0))<<13)|0;c=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(P,ot),i=(i=Math.imul(P,st))+Math.imul(C,ot)|0,o=Math.imul(C,st),n=n+Math.imul(D,at)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(B,at)|0,o=o+Math.imul(B,ct)|0,n=n+Math.imul(L,lt)|0,i=(i=i+Math.imul(L,ft)|0)+Math.imul(R,lt)|0,o=o+Math.imul(R,ft)|0;var Tt=(c+(n=n+Math.imul(k,dt)|0)|0)+((8191&(i=(i=i+Math.imul(k,yt)|0)+Math.imul(N,dt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(P,at),i=(i=Math.imul(P,ct))+Math.imul(C,at)|0,o=Math.imul(C,ct),n=n+Math.imul(D,lt)|0,i=(i=i+Math.imul(D,ft)|0)+Math.imul(B,lt)|0,o=o+Math.imul(B,ft)|0;var Lt=(c+(n=n+Math.imul(L,dt)|0)|0)+((8191&(i=(i=i+Math.imul(L,yt)|0)+Math.imul(R,dt)|0))<<13)|0;c=((o=o+Math.imul(R,yt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(P,lt),i=(i=Math.imul(P,ft))+Math.imul(C,lt)|0,o=Math.imul(C,ft);var Rt=(c+(n=n+Math.imul(D,dt)|0)|0)+((8191&(i=(i=i+Math.imul(D,yt)|0)+Math.imul(B,dt)|0))<<13)|0;c=((o=o+Math.imul(B,yt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var jt=(c+(n=Math.imul(P,dt))|0)+((8191&(i=(i=Math.imul(P,yt))+Math.imul(C,dt)|0))<<13)|0;return c=((o=Math.imul(C,yt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,a[0]=vt,a[1]=mt,a[2]=gt,a[3]=wt,a[4]=bt,a[5]=Mt,a[6]=Et,a[7]=At,a[8]=xt,a[9]=It,a[10]=_t,a[11]=St,a[12]=Ot,a[13]=kt,a[14]=Nt,a[15]=Tt,a[16]=Lt,a[17]=Rt,a[18]=jt,0!==c&&(a[19]=c,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var u=67108863&n,a=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=a;c++){var h=o-c,l=(0|t.words[h])*(0|e.words[c]),f=67108863&l;u=67108863&(f=f+u|0),i+=(s=(s=s+(l/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}r.words[o]=u,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function g(t,e,r){return m(t,e,r)}function w(t,e){this.x=t,this.y=e}Math.imul||(v=y),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?v(this,t,e):r<63?y(this,t,e):r<1024?m(this,t,e):g(this,t,e)},w.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},w.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},w.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},w.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var u=s<<1,a=Math.cos(2*Math.PI/u),c=Math.sin(2*Math.PI/u),h=0;h<i;h+=u)for(var l=a,f=c,p=0;p<s;p++){var d=r[h+p],y=n[h+p],v=r[h+p+s],m=n[h+p+s],g=l*v-f*m;m=l*m+f*v,v=g,r[h+p]=d+v,n[h+p]=y+m,r[h+p+s]=d-v,n[h+p+s]=y-m,p!==u&&(g=a*l-c*f,f=a*f+c*l,l=g)}},w.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},w.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},w.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},w.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},w.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},w.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),u=new Array(n),a=new Array(n),c=new Array(n),h=new Array(n),l=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,c,n),this.transform(s,o,u,a,n,i),this.transform(c,o,h,l,n,i);for(var p=0;p<n;p++){var d=u[p]*h[p]-a[p]*l[p];a[p]=u[p]*l[p]+a[p]*h[p],u[p]=d}return this.conjugate(u,a,n),this.transform(u,a,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),g(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"===typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,s=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=s>>>26,this.words[i]=67108863&s}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r
vendor: 16,384 bytes, line 1
1=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var u=this.words[e]&o,a=(0|this.words[e])-u<<r;this.words[e]=a|s,s=u>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),u=67108863^67108863>>>o<<o,a=r;if(i-=s,i=Math.max(0,i),a){for(var c=0;c<s;c++)a.words[c]=this.words[c];a.length=s}if(0===s);else if(this.length>s)for(this.length-=s,c=0;c<this.length;c++)this.words[c]=this.words[c+s];else this.words[0]=0,this.length=1;var h=0;for(c=this.length-1;c>=0&&(0!==h||c>=i);c--){var l=0|this.words[c];this.words[c]=h<<26-o|l>>>o,h=l&u}return a&&0!==h&&(a.words[a.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var u=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+u;var a=(0|t.words[i])*e;u=((o-=67108863&a)>>26)-(a/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)u=(o=(0|this.words[i+r])+u)>>26,this.words[i+r]=67108863&o;if(0===u)return this._strip();for(n(-1===u),u=0,i=0;i<this.length;i++)u=(o=-(0|this.words[i])+u)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,s=0|i.words[i.length-1];0!==(r=26-this._countBits(s))&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,a=n.length-i.length;if("mod"!==e){(u=new o(null)).length=a+1,u.words=new Array(u.length);for(var c=0;c<u.length;c++)u.words[c]=0}var h=n.clone()._ishlnsubmul(i,1,a);0===h.negative&&(n=h,u&&(u.words[a]=1));for(var l=a-1;l>=0;l--){var f=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(f=Math.min(f/s|0,67108863),n._ishlnsubmul(i,f,l);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);u&&(u.words[l]=f)}return u&&u._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,e),"mod"!==e&&(i=u.div.neg()),"div"!==e&&(s=u.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),e),"mod"!==e&&(i=u.div.neg()),{div:i,mod:u.mod}):0!==(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),e),"div"!==e&&(s=u.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:u.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,s,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),u=new o(0),a=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var h=r.clone(),l=e.clone();!e.isZero();){for(var f=0,p=1;0===(e.words[0]&p)&&f<26;++f,p<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(h),s.isub(l)),i.iushrn(1),s.iushrn(1);for(var d=0,y=1;0===(r.words[0]&y)&&d<26;++d,y<<=1);if(d>0)for(r.iushrn(d);d-- >0;)(u.isOdd()||a.isOdd())&&(u.iadd(h),a.isub(l)),u.iushrn(1),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(u),s.isub(a)):(r.isub(e),u.isub(i),a.isub(s))}return{a:u,b:a,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,s=new o(1),u=new o(0),a=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,h=1;0===(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(a),s.iushrn(1);for(var l=0,f=1;0===(r.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(r.iushrn(l);l-- >0;)u.isOdd()&&u.iadd(a),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),s.isub(u)):(r.isub(e),u.isub(s))}return(i=0===e.cmpn(1)?s:u).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var u=0|this.words[s];o=(u+=o)>>>26,u&=67108863,this.words[s]=u}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new _(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function M(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){M.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){M.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){M.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){M.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}M.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},M.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},M.prototype.split=function(t,e){t.iushrn(this.n,0,e)},M.prototype.imulK=function(t){return t.imul(this.k)},i(E,M),E.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},E.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(A,M),i(x,M),i(I,M),I.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new E;else if("p224"===t)e=new A;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new I}return b[t]=e,e},_.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(h(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},_.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var u=new o(1).toRed(this),a=u.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new o(2*h*h).toRed(this);0!==this.pow(h,c).cmp(a);)h.redIAdd(a);for(var l=this.pow(h,i),f=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=s;0!==p.cmp(u);){for(var y=p,v=0;0!==y.cmp(u);v++)y=y.redSqr();n(v<d);var m=this.pow(l,new o(1).iushln(d-v-1));f=f.redMul(m),l=m.redSqr(),p=p.redMul(l),d=v}return f},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this)
vendor: 5,738 bytes, line 1
1;if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],s=0,u=0,a=e.bitLength()%26;for(0===a&&(a=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],h=a-1;h>=0;h--){var l=c>>h&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==s?(s<<=1,s|=l,(4===++u||0===n&&0===h)&&(i=this.mul(i,r[s]),u=0,s=0)):u=0}a=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new S(t)},i(S,_),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},64285:function(t,e,r){"use strict";const n=r(79742),i=r(80645),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.lW=a,e.h2=50;const s=2147483647;function u(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,r){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,r)}function c(t,e,r){if("string"===typeof t)return function(t,e){"string"===typeof e&&""!==e||(e="utf8");if(!a.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|y(t,e);let n=u(r);const i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(W(t,Uint8Array)){const e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return f(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(W(t,ArrayBuffer)||t&&W(t.buffer,ArrayBuffer))return p(t,e,r);if("undefined"!==typeof SharedArrayBuffer&&(W(t,SharedArrayBuffer)||t&&W(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return a.from(n,e,r);const i=function(t){if(a.isBuffer(t)){const e=0|d(t.length),r=u(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!==typeof t.length||V(t.length)?u(0):f(t);if("Buffer"===t.type&&Array.isArray(t.data))return f(t.data)}(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function h(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return h(t),u(t<0?0:0|d(t))}function f(t){const e=t.length<0?0:0|d(t.length),r=u(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function p(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,a.prototype),n}function d(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function y(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||W(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(t).length;default:if(i)return n?-1:K(t).length;e=(""+e).toLowerCase(),i=!0}}function v(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return N(this,e,r);case"utf8":case"utf-8":return _(this,e,r);case"ascii":return O(this,e,r);case"latin1":case"binary":return k(this,e,r);case"base64":return I(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function g(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),V(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}
vendor: 5,415 bytes, line 1
1else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,n,i){let o,s=1,u=t.length,a=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,u/=2,a/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let n=-1;for(o=r;o<u;o++)if(c(t,o)===c(e,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===a)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+a>u&&(r=u-a),o=r;o>=0;o--){let r=!0;for(let n=0;n<a;n++)if(c(t,o+n)!==c(e,n)){r=!1;break}if(r)return o}return-1}function b(t,e,r,n){r=Number(r)||0;const i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=e.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(e.substr(2*s,2),16);if(V(n))return s;t[r+s]=n}return s}function M(t,e,r,n){return Q(K(e,t.length-r),t,r,n)}function E(t,e,r,n){return Q(function(t){const e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function A(t,e,r,n){return Q(q(e),t,r,n)}function x(t,e,r,n){return Q(function(t,e){let r,n,i;const o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function I(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function _(t,e,r){r=Math.min(t.length,r);const n=[];let i=e;for(;i<r;){const e=t[i];let o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=r){let r,n,u,a;switch(s){case 1:e<128&&(o=e);break;case 2:r=t[i+1],128===(192&r)&&(a=(31&e)<<6|63&r,a>127&&(o=a));break;case 3:r=t[i+1],n=t[i+2],128===(192&r)&&128===(192&n)&&(a=(15&e)<<12|(63&r)<<6|63&n,a>2047&&(a<55296||a>57343)&&(o=a));break;case 4:r=t[i+1],n=t[i+2],u=t[i+3],128===(192&r)&&128===(192&n)&&128===(192&u)&&(a=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&u,a>65535&&a<1114112&&(o=a))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(t){const e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=S));return r}(n)}a.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||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."),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}}),a.poolSize=8192,a.from=function(t,e,r){return c(t,e,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,r){return function(t,e,r){return h(t),t<=0?u(t):void 0!==e?"string"===typeof r?u(t).fill(e,r):u(t).fill(e):u(t)}(t,e,r)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(W(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),W(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(t){switch(String(t).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(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const n=a.allocUnsafe(e);let i=0;for(r=0;r<t.length;++r){let e=t[r];if(W(e,Uint8Array))i+e.length>n.length?(a.isBuffer(e)||(e=a.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!a.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},a.byteLength=y,a.prototype._isBuffer=!0,a.prototype.swap16=function(){const t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)m(this,e,e+1);return this},a.prototype.swap32=function(){const t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},a.prototype.swap64=function(){const t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},a.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?_(this,0,t):v.apply(this,arguments)}
vendor: 7,122 bytes, line 1
1,a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){let t="";const r=e.h2;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(t,e,r,n,i){if(W(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;let o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0);const u=Math.min(o,s),c=this.slice(n,i),h=t.slice(e,r);for(let a=0;a<u;++a)if(c[a]!==h[a]){o=c[a],s=h[a];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return g(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return g(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"===typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return M(this,t,e,r);case"ascii":case"latin1":case"binary":return E(this,t,e,r);case"base64":return A(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const S=4096;function O(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function k(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function N(t,e,r){const n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let o=e;o<r;++o)i+=H[t[o]];return i}function T(t,e,r){const n=t.slice(e,r);let i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function L(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,r,n,i,o){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function j(t,e,r,n,i){Y(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,r}function D(t,e,r,n,i){Y(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s>>=8,t[r+2]=s,s>>=8,t[r+1]=s,s>>=8,t[r]=s,r+8}function B(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(t,e,r,n,o){return e=+e,r>>>=0,o||B(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function P(t,e,r,n,o){return e=+e,r>>>=0,o||B(t,0,r,8),i.write(t,e,r,n,52,8),r+8}a.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);const n=this.subarray(t,e);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),this[t]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readBigUInt64LE=X((function(t){$(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||G(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),a.prototype.readBigUInt64BE=X((function(t){$(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||G(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);let n=e,i=1,o=this[t+--n];for(;n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},a.prototype.readInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||L(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||L(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readBigInt64LE=X((function(t){$(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||G(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),a.prototype.readBigInt64BE=X((function(t){$(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||G(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)}
vendor: 4,903 bytes, line 1
1)),a.prototype.readFloatLE=function(t,e){return t>>>=0,e||L(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||L(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||L(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||L(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){R(this,t,e,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){R(this,t,e,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeBigUInt64LE=X((function(t,e=0){return j(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeBigUInt64BE=X((function(t,e=0){return D(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);R(this,t,e,r,n-1,-n)}let i=0,o=1,s=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);R(this,t,e,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeBigInt64LE=X((function(t,e=0){return j(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeBigInt64BE=X((function(t,e=0){return D(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return P(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return P(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);const i=n-r;return this===t&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},a.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){const e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"===typeof t?t&=255:"boolean"===typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;let i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(i=e;i<r;++i)this[i]=t;else{const o=a.isBuffer(t)?t:a.from(t,n),s=o.length;
1if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=o[i%s]}return this};const C={};function z(t,e,r){C[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function F(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function Y(t,e,r,n,i,o){if(t>r||t<e){const n="bigint"===typeof e?"n":"";let i;throw i=o>3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new C.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,r){$(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||G(e,t.length-(r+1))}(n,i,o)}function $(t,e){if("number"!==typeof t)throw new C.ERR_INVALID_ARG_TYPE(e,"number",t)}function G(t,e,r){if(Math.floor(t)!==t)throw $(t,r),new C.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new C.ERR_BUFFER_OUT_OF_BOUNDS;throw new C.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}z("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),z("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),z("ERR_OUT_OF_RANGE",(function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=F(String(r)):"bigint"===typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=F(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n}),RangeError);const Z=/[^+/0-9A-Za-z-_]/g;function K(t,e){let r;e=e||1/0;const n=t.length;let i=null;const o=[];for(let s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function q(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function Q(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function W(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function V(t){return t!==t}const H=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function X(t){return"undefined"===typeof BigInt?J:t}function J(){throw new Error("BigInt not supported")}},58162:function(t,e,r){"use strict";var n=r(89509).Buffer;t.exports=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var i=0;i<t.length;i++){var o=t.charAt(i),s=o.charCodeAt(0);if(255!==e[s])throw new TypeError(o+" is ambiguous");e[s]=i}var u=t.length,a=t.charAt(0),c=Math.log(u)/Math.log(256),h=Math.log(256)/Math.log(u);function l(t){if("string"!==typeof t)throw new TypeError("Expected String");if(0===t.length)return n.alloc(0);for(var r=0,i=0,o=0;t[r]===a;)i++,r++;for(var s=(t.length-r)*c+1>>>0,h=new Uint8Array(s);t[r];){var l=e[t.charCodeAt(r)];if(255===l)return;for(var f=0,p=s-1;(0!==l||f<o)&&-1!==p;p--,f++)l+=u*h[p]>>>0,h[p]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");o=f,r++}for(var d=s-o;d!==s&&0===h[d];)d++;var y=n.allocUnsafe(i+(s-d));y.fill(0,0,i);for(var v=i;d!==s;)y[v++]=h[d++];return y}return{encode:function(e){if((Array.isArray(e)||e instanceof Uint8Array)&&(e=n.from(e)),!n.isBuffer(e))throw new TypeError("Expected Buffer");if(0===e.length)return"";for(var r=0,i=0,o=0,s=e.length;o!==s&&0===e[o];)o++,r++;for(var c=(s-o)*h+1>>>0,l=new Uint8Array(c);o!==s;){for(var f=e[o],p=0,d=c-1;(0!==f||p<i)&&-1!==d;d--,p++)f+=256*l[d]>>>0,l[d]=f%u>>>0,f=f/u>>>0;
1if(0!==f)throw new Error("Non-zero carry");i=p,o++}for(var y=c-i;y!==c&&0===l[y];)y++;for(var v=a.repeat(r);y<c;++y)v+=t.charAt(l[y]);return v},decodeUnsafe:l,decode:function(t){var e=l(t);if(e)return e;throw new Error("Non-base"+u+" character")}}}},25532:function(t,e,r){"use strict";var n=r(48764).Buffer,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.hasOwnProperty.call(t,r)&&i(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.deserializeUnchecked=e.deserialize=e.serialize=e.BinaryReader=e.BinaryWriter=e.BorshError=e.baseDecode=e.baseEncode=void 0;const c=a(r(70945)),h=a(r(77191)),l=u(r(21127)),f=new("function"!==typeof r.g.TextDecoder?l.TextDecoder:r.g.TextDecoder)("utf-8",{fatal:!0});e.baseEncode=function(t){return"string"===typeof t&&(t=n.from(t,"utf8")),h.default.encode(n.from(t))},e.baseDecode=function(t){return n.from(h.default.decode(t))};const p=1024;class d extends Error{constructor(t){super(t),this.fieldPath=[],this.originalMessage=t}addToFieldPath(t){this.fieldPath.splice(0,0,t),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}e.BorshError=d;class y{constructor(){this.buf=n.alloc(p),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=n.concat([this.buf,n.alloc(p)]))}writeU8(t){this.maybeResize(),this.buf.writeUInt8(t,this.length),this.length+=1}writeU16(t){this.maybeResize(),this.buf.writeUInt16LE(t,this.length),this.length+=2}writeU32(t){this.maybeResize(),this.buf.writeUInt32LE(t,this.length),this.length+=4}writeU64(t){this.maybeResize(),this.writeBuffer(n.from(new c.default(t).toArray("le",8)))}writeU128(t){this.maybeResize(),this.writeBuffer(n.from(new c.default(t).toArray("le",16)))}writeU256(t){this.maybeResize(),this.writeBuffer(n.from(new c.default(t).toArray("le",32)))}writeU512(t){this.maybeResize(),this.writeBuffer(n.from(new c.default(t).toArray("le",64)))}writeBuffer(t){this.buf=n.concat([n.from(this.buf.subarray(0,this.length)),t,n.alloc(p)]),this.length+=t.length}writeString(t){this.maybeResize();const e=n.from(t,"utf8");this.writeU32(e.length),this.writeBuffer(e)}writeFixedArray(t){this.writeBuffer(n.from(t))}writeArray(t,e){this.maybeResize(),this.writeU32(t.length);for(const r of t)this.maybeResize(),e(r)}toArray(){return this.buf.subarray(0,this.length)}}function v(t,e,r){const n=r.value;r.value=function(...t){try{return n.apply(this,t)}catch(e){if(e instanceof RangeError){const t=e.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(t)>=0)throw new d("Reached the end of buffer when deserializing")}throw e}}}e.BinaryWriter=y;class m{constructor(t){this.buf=t,this.offset=0}readU8(){const t=this.buf.readUInt8(this.offset);return this.offset+=1,t}readU16(){const t=this.buf.readUInt16LE(this.offset);return this.offset+=2,t}readU32(){const t=this.buf.readUInt32LE(this.offset);return this.offset+=4,t}readU64(){const t=this.readBuffer(8);return new c.default(t,"le")}readU128(){const t=this.readBuffer(16);return new c.default(t,"le")}readU256(){const t=this.readBuffer(32);return new c.default(t,"le")}readU512(){const t=this.readBuffer(64);return new c.default(t,"le")}readBuffer(t){if(this.offset+t>this.buf.length)throw new d(`Expected buffer length ${t} isn't within bounds`);const e=this.buf.slice(this.offset,this.offset+t);return this.offset+=t,e}readString(){const t=this.readU32(),e=this.readBuffer(t);try{return f.decode(e)}
1catch(r){throw new d(`Error decoding UTF-8 string: ${r}`)}}readFixedArray(t){return new Uint8Array(this.readBuffer(t))}readArray(t){const e=this.readU32(),r=Array();for(let n=0;n<e;++n)r.push(t());return r}}function g(t){return t.charAt(0).toUpperCase()+t.slice(1)}function w(t,e,r,n,i){try{if("string"===typeof n)i[`write${g(n)}`](r);else if(n instanceof Array)if("number"===typeof n[0]){if(r.length!==n[0])throw new d(`Expecting byte array of length ${n[0]}, but got ${r.length} bytes`);i.writeFixedArray(r)}else i.writeArray(r,(r=>{w(t,e,r,n[0],i)}));else if(void 0!==n.kind)switch(n.kind){case"option":null===r||void 0===r?i.writeU8(0):(i.writeU8(1),w(t,e,r,n.type,i));break;default:throw new d(`FieldType ${n} unrecognized`)}else b(t,r,i)}catch(error){throw error instanceof d&&error.addToFieldPath(e),error}}function b(t,e,r){const n=t.get(e.constructor);if(!n)throw new d(`Class ${e.constructor.name} is missing in schema`);if("struct"===n.kind)n.fields.map((([n,i])=>{w(t,n,e[n],i,r)}));else{if("enum"!==n.kind)throw new d(`Unexpected schema kind: ${n.kind} for ${e.constructor.name}`);{const i=e[n.field];for(let o=0;o<n.values.length;++o){const[s,u]=n.values[o];if(s===i){r.writeU8(o),w(t,s,e[s],u,r);break}}}}}function M(t,e,r,n){try{if("string"===typeof r)return n[`read${g(r)}`]();if(r instanceof Array)return"number"===typeof r[0]?n.readFixedArray(r[0]):n.readArray((()=>M(t,e,r[0],n)));if("option"===r.kind){return n.readU8()?M(t,e,r.type,n):void 0}return E(t,r,n)}catch(error){throw error instanceof d&&error.addToFieldPath(e),error}}function E(t,e,r){const n=t.get(e);if(!n)throw new d(`Class ${e.name} is missing in schema`);if("struct"===n.kind){const n={};for(const[i,o]of t.get(e).fields)n[i]=M(t,i,o,r);return new e(n)}if("enum"===n.kind){const i=r.readU8();if(i>=n.values.length)throw new d(`Enum index: ${i} is out of range`);const[o,s]=n.values[i];return new e({[o]:M(t,o,s,r)})}throw new d(`Unexpected schema kind: ${n.kind} for ${e.constructor.name}`)}s([v],m.prototype,"readU8",null),s([v],m.prototype,"readU16",null),s([v],m.prototype,"readU32",null),s([v],m.prototype,"readU64",null),s([v],m.prototype,"readU128",null),s([v],m.prototype,"readU256",null),s([v],m.prototype,"readU512",null),s([v],m.prototype,"readString",null),s([v],m.prototype,"readFixedArray",null),s([v],m.prototype,"readArray",null),e.BinaryReader=m,e.serialize=function(t,e){const r=new y;return b(t,e,r),r.toArray()},e.deserialize=function(t,e,r){const n=new m(r),i=E(t,e,n);if(n.offset<r.length)throw new d(`Unexpected ${r.length-n.offset} bytes after deserialized data`);return i},e.deserializeUnchecked=function(t,e,r){return E(t,e,new m(r))}},70945:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(71456).Buffer}catch(O){}function u(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function a(t,e,r){var n=u(t,r);return r-1>=e&&(n|=u(t,r-1)<<4),n}function c(t,e,r,i){for(var o=0,s=0,u=Math.min(t.length,r),a=e;a<u;a++){var c=t.charCodeAt(a)-48;o*=i,s=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&s<i,"Invalid character"),o+=s}return o}function h(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,u=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<u&67108863,this.words[o+1]=s>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<u&67108863,this.words[o+1]=s>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=a(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(t.length-e)%2===0?e+1:e;n<t.length;n+=2)i=a(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,u=Math.min(o,o-s)+r,a=0,h=r;h<u;h+=n)a=c(t,h,h+n,e),this.imuln(i),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(0!==s){var l=1;for(a=c(t,h,t.length,e),h=0;h<s;h++)l*=e;this.imuln(l),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){h(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(O){o.prototype.inspect=l}else o.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 21,460 bytes, line 1
1777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var u=this.words[s],a=(16777215&(u<<i|o)).toString(16);r=0!==(o=u>>>24-i&16777215)||s!==this.length-1?f[6-a.length]+a+r:a+r,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=p[t],h=d[t];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var y=l.modrn(h).toString(t);r=(l=l.idivn(h)).isZero()?y+r:f[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function y(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,u=67108863&s,a=s/67108864|0;r.words[0]=u;for(var c=1;c<n;c++){for(var h=a>>>26,l=67108863&a,f=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p<=f;p++){var d=c-p|0;h+=(s=(i=0|t.words[d])*(o=0|e.words[p])+l)/67108864|0,l=67108863&s}r.words[c]=0|l,a=0|h}return 0!==a?r.words[c]=0|a:r.length--,r._strip()}o.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var s=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,i),s},o.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r++]=255&s,r<t.length&&(t[r++]=s>>8&255),r<t.length&&(t[r++]=s>>16&255),6===o?(r<t.length&&(t[r++]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r--]=255&s,r>=0&&(t[r--]=s>>8&255),r>=0&&(t[r--]=s>>16&255),6===o?(r>=0&&(t[r--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)o=(e=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)o=(e=(0|r.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var v=function(t,e,r){var n,i,o,s=t.words,u=e.words,a=r.words,c=0,h=0|s[0],l=8191&h,f=h>>>13,p=0|s[1],d=8191&p,y=p>>>13,v=0|s[2],m=8191&v,g=v>>>13,w=0|s[3],b=8191&w,M=w>>>13,E=0|s[4],A=8191&E,x=E>>>13,I=0|s[5],_=8191&I,S=I>>>13,O=0|s[6],k=8191&O,N=O>>>13,T=0|s[7],L=8191&T,R=T>>>13,j=0|s[8],D=8191&j,B=j>>>13,U=0|s[9],P=8191&U,C=U>>>13,z=0|u[0],F=8191&z,Y=z>>>13,$=0|u[1],G=8191&$,Z=$>>>13,K=0|u[2],q=8191&K,Q=K>>>13,W=0|u[3],V=8191&W,H=W>>>13,X=0|u[4],J=8191&X,tt=X>>>13,et=0|u[5],rt=8191&et,nt=et>>>13,it=0|u[6],ot=8191&it,st=it>>>13,ut=0|u[7],at=8191&ut,ct=ut>>>13,ht=0|u[8],lt=8191&ht,ft=ht>>>13,pt=0|u[9],dt=8191&pt,yt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(c+(n=Math.imul(l,F))|0)+((8191&(i=(i=Math.imul(l,Y))+Math.imul(f,F)|0))<<13)|0;c=((o=Math.imul(f,Y))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(d,F),i=(i=Math.imul(d,Y))+Math.imul(y,F)|0,o=Math.imul(y,Y);var mt=(c+(n=n+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,Z)|0)+Math.imul(f,G)|0))<<13)|0;c=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,F),i=(i=Math.imul(m,Y))+Math.imul(g,F)|0,o=Math.imul(g,Y),n=n+Math.imul(d,G)|0,i=(i=i+Math.imul(d,Z)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,Z)|0;var gt=(c+(n=n+Math.imul(l,q)|0)|0)+((8191&(i=(i=i+Math.imul(l,Q)|0)+Math.imul(f,q)|0))<<13)|0;c=((o=o+Math.imul(f,Q)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(b,F),i=(i=Math.imul(b,Y))+Math.imul(M,F)|0,o=Math.imul(M,Y),n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(g,G)|0,o=o+Math.imul(g,Z)|0,n=n+Math.imul(d,q)|0,i=(i=i+Math.imul(d,Q)|0)+Math.imul(y,q)|0,o=o+Math.imul(y,Q)|0;var wt=(c+(n=n+Math.imul(l,V)|0)|0)+((8191&(i=(i=i+Math.imul(l,H)|0)+Math.imul(f,V)|0))<<13)|0;c=((o=o+Math.imul(f,H)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(A,F),i=(i=Math.imul(A,Y))+Math.imul(x,F)|0,o=Math.imul(x,Y),n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(m,q)|0,i=(i=i+Math.imul(m,Q)|0)+Math.imul(g,q)|0,o=o+Math.imul(g,Q)|0,n=n+Math.imul(d,V)|0,i=(i=i+Math.imul(d,H)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,H)|0;var bt=(c+(n=n+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,tt)|0)+Math.imul(f,J)|0))<<13)|0;c=((o=o+Math.imul(f,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,F),i=(i=Math.imul(_,Y))+Math.imul(S,F)|0,o=Math.imul(S,Y),n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(x,G)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Q)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,Q)|0,n=n+Math.imul(m,V)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(g,V)|0,o=o+Math.imul(g,H)|0,n=n+Math.imul(d,J)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,tt)|0;var Mt=(c+(n=n+Math.imul(l,rt)|0)|0)+((8191&(i=(i=i+Math.imul(l,nt)|0)+Math.imul(f,rt)|0))<<13)|0;c=((o=o+Math.imul(f,nt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(k,F),i=(i=Math.imul(k,Y))+Math.imul(N,F)|0,o=Math.imul(N,Y),n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Q)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,Q)|0,n=n+Math.imul(b,V)|0,i=(i=i+Math.imul(b,H)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,H)|0,n=n+Math.imul(m,J)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(g,J)|0,o=o+Math.imul(g,tt)|0,n=n+Math.imul(d,rt)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0;var Et=(c+(n=n+Math.imul(l,ot)|0)|0)+((8191&(i=(i=i+Math.imul(l,st)|0)+Math.imul(f,ot)|0))<<13)|0;c=((o=o+Math.imul(f,st)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(L,F),i=(i=Math.imul(L,Y))+Math.imul(R,F)|0,o=Math.imul(R,Y),n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(_,q)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(S,q)|0,o=o+Math.imul(S,Q)|0,n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,H)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,H)|0,n=n+Math.imul(b,J)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(g,rt)|0,o=o+Math.imul(g,nt)|0,n=n+Math.imul(d,ot)|0,i=(i=i+Math.imul(d,st)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0;var At=(c+(n=n+Math.imul(l,at)|0)|0)+((8191&(i=(i=i+Math.imul(l,ct)|0)+Math.imul(f,at)|0))<<13)|0;c=((o=o+Math.imul(f,ct)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,F),i=(i=Math.imul(D,Y))+Math.imul(B,F)|0,o=Math.imul(B,Y),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,Z)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,Z)|0,n=n+Math.imul(k,q)|0,i=(i=i+Math.imul(k,Q)|0)+Math.imul(N,q)|0,o=o+Math.imul(N,Q)|0,n=n+Math.imul(_,V)|0,i=(i=i+Math.imul(_,H)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,H)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,st)|0)+Math.imul(g,ot)|0,o=o+Math.imul(g,st)|0,n=n+Math.imul(d,at)|0,i=(i=i+Math.imul(d,ct)|0)+Math.imul(y,at)|0,o=o+Math.imul(y,ct)|0;var xt=(c+(n=n+Math.imul(l,lt)|0)|0)+((8191&(i=(i=i+Math.imul(l,ft)|0)+Math.imul(f,lt)|0))<<13)|0;c=((o=o+Math.imul(f,ft)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(P,F),i=(i=Math.imul(P,Y))+Math.imul(C,F)|0,o=Math.imul(C,Y),n=n+Math.imul(D,G)|0,i=(i=i+Math.imul(D,Z)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,Z)|0,n=n+Math.imul(L,q)|0,i=(i=i+Math.imul(L,Q)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,Q)|0,n=n+Math.imul(k,V)|0,i=(i=i+Math.imul(k,H)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,H)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(x,rt)|0,o=o+Math.imul(x,nt)|0,n=n+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,st)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(m,at)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(g,at)|0,o=o+Math.imul(g,ct)|0,n=n+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ft)|0)+Math.imul(y,lt)|0,o=o+Math.imul(y,ft)|0;var It=(c+(n=n+Math.imul(l,dt)|0)|0)+((8191&(i=(i=i+Math.imul(l,yt)|0)+Math.imul(f,dt)|0))<<13)|0;c=((o=o+Math.imul(f,yt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(P,G),i=(i=Math.imul(P,Z))+Math.imul(C,G)|0,o=Math.imul(C,Z),n=n+Math.imul(D,q)|0,i=(i=i+Math.imul(D,Q)|0)+Math.imul(B,q)|0,o=o+Math.imul(B,Q)|0,n=n+Math.imul(L,V)|0,i=(i=i+Math.imul(L,H)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,H)|0,n=n+Math.imul(k,J)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(_,rt)|0,i=(i=i+Math.imul(_,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,st)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,st)|0,n=n+Math.imul(b,at)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(M,at)|0,o=o+Math.imul(M,ct)|0,n=n+Math.imul(m,lt)|0,i=(i=i+Math.imul(m,ft)|0)+Math.imul(g,lt)|0,o=o+Math.imul(g,ft)|0;var _t=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,yt)|0)+Math.imul(y,dt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,Q))+Math.imul(C,q)|0,o=Math.imul(C,Q),n=n+Math.imul(D,V)|0,i=(i=i+Math.imul(D,H)|0)+Math.imul(B,V)|0,o=o+Math.imul(B,H)|0,n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(R,J)|0,o=o+Math.imul(R,tt)|0,n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(_,ot)|0,i=(i=i+Math.imul(_,st)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(A,at)|0,i=(i=i+Math.imul(A,ct)|0)+Math.imul(x,at)|0,o=o+Math.imul(x,ct)|0,n=n+Math.imul(b,lt)|0,i=(i=i+Math.imul(b,ft)|0)+Math.imul(M,lt)|0,o=o+Math.imul(M,ft)|0;var St=(c+(n=n+Math.imul(m,dt)|0)|0)+((8191&(i=(i=i+Math.imul(m,yt)|0)+Math.imul(g,dt)|0))<<13)|0;c=((o=o+Math.imul(g,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(P,V),i=(i=Math.imul(P,H))+Math.imul(C,V)|0,o=Math.imul(C,H),n=n+Math.imul(D,J)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(L,rt)|0,i=(i=i+Math.imul(L,nt)|0)+Math.imul(R,rt)|0,o=o+Math.imul(R,nt)|0,n=n+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,st)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,st)|0,n=n+Math.imul(_,at)|0,i=(i=i+Math.imul(_,ct)|0)+Math.imul(S,at)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ft)|0)+Math.imul(x,lt)|0,o=o+Math.imul(x,ft)|0;var Ot=(c+(n=n+Math.imul(b,dt)|0)|0)+((8191&(i=(i=i+Math.imul(b,yt)|0)+Math.imul(M,dt)|0))<<13)|0;c=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(P,J),i=(i=Math.imul(P,tt))+Math.imul(C,J)|0,o=Math.imul(C,tt),n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(L,ot)|0,i=(i=i+Math.imul(L,st)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,st)|0,n=n+Math.imul(k,at)|0,i=(i=i+Math.imul(k,ct)|0)+Math.imul(N,at)|0,o=o+Math.imul(N,ct)|0,n=n+Math.imul(_,lt)|0,i=(i=i+Math.imul(_,ft)|0)+Math.imul(S,lt)|0,o=o+Math.imul(S,ft)|0;var kt=(c+(n=n+Math.imul(A,dt)|0)|0)+((8191&(i=(i=i+Math.imul(A,yt)|0)+Math.imul(x,dt)|0))<<13)|0;c=((o=o+Math.imul(x,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(P,rt),i=(i=Math.imul(P,nt))+Math.imul(C,rt)|0,o=Math.imul(C,nt),n=n+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,st)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,st)|0,n=n+Math.imul(L,at)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(R,at)|0,o=o+Math.imul(R,ct)|0,n=n+Math.imul(k,lt)|0,i=(i=i+Math.imul(k,ft)|0)+Math.imul(N,lt)|0,o=o+Math.imul(N,ft)|0;var Nt=(c+(n=n+Math.imul(_,dt)|0)|0)+((8191&(i=(i=i+Math.imul(_,yt)|0)+Math.imul(S,dt)|0))<<13)|0;c=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(P,ot),i=(i=Math.imul(P,st))+Math.imul(C,ot)|0,o=Math.imul(C,st),n=n+Math.imul(D,at)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(B,at)|0,o=o+Math.imul(B,ct)|0,n=n+Math.imul(L,lt)|0,i=(i=i+Math.imul(L,ft)|0)+Math.imul(R,lt)|0,o=o+Math.imul(R,ft)|0;var Tt=(c+(n=n+Math.imul(k,dt)|0)|0)+((8191&(i=(i=i+Math.imul(k,yt)|0)+Math.imul(N,dt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(P,at),i=(i=Math.imul(P,ct))+Math.imul(C,at)|0,o=Math.imul(C,ct),n=n+Math.imul(D,lt)|0,i=(i=i+Math.imul(D,ft)|0)+Math.imul(B,lt)|0,o=o+Math.imul(B,ft)|0;var Lt=(c+(n=n+Math.imul(L,dt)|0)|0)+((8191&(i=(i=i+Math.imul(L,yt)|0)+Math.imul(R,dt)|0))<<13)|0;c=((o=o+Math.imul(R,yt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(P,lt),i=(i=Math.imul(P,ft))+Math.imul(C,lt)|0,o=Math.imul(C,ft);var Rt=(c+(n=n+Math.imul(D,dt)|0)|0)+((8191&(i=(i=i+Math.imul(D,yt)|0)+Math.imul(B,dt)|0))<<13)|0;c=((o=o+Math.imul(B,yt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var jt=(c+(n=Math.imul(P,dt))|0)+((8191&(i=(i=Math.imul(P,yt))+Math.imul(C,dt)|0))<<13)|0;return c=((o=Math.imul(C,yt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,a[0]=vt,a[1]=mt,a[2]=gt,a[3]=wt,a[4]=bt,a[5]=Mt,a[6]=Et,a[7]=At,a[8]=xt,a[9]=It,a[10]=_t,a[11]=St,a[12]=Ot,a[13]=kt,a[14]=Nt,a[15]=Tt,a[16]=Lt,a[17]=Rt,a[18]=jt,0!==c&&(a[19]=c,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var u=67108863&n,a=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=a;c++){var h=o-c,l=(0|t.words[h])*(0|e.words[c]),f=67108863&l;u=67108863&(f=f+u|0),i+=(s=(s=s+(l/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}r.words[o]=u,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function g(t,e,r){return m(t,e,r)}function w(t,e){this.x=t,this.y=e}Math.imul||(v=y),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?v(this,t,e):r<63?y(this,t,e):r<1024?m(this,t,e):g(this,t,e)},w.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},w.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},w.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},w.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var u=s<<1,a=Math.cos(2*Math.PI/u),c=Math.sin(2*Math.PI/u),h=0;h<i;h+=u)for(var l=a,f=c,p=0;p<s;p++){var d=r[h+p],y=n[h+p],v=r[h+p+s],m=n[h+p+s],g=l*v-f*m;m=l*m+f*v,v=g,r[h+p]=d+v,n[h+p]=y+m,r[h+p+s]=d-v,n[h+p+s]=y-m,p!==u&&(g=a*l-c*f,f=a*f+c*l,l=g)}},w.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},w.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},w.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},w.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n(0===(-8192&o))},w.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},w.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),u=new Array(n),a=new Array(n),c=new Array(n),h=new Array(n),l=new Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,c,n),this.transform(s,o,u,a,n,i),this.transform(c,o,h,l,n,i);for(var p=0;p<n;p++){var d=u[p]*h[p]-a[p]*l[p];a[p]=u[p]*l[p]+a[p]*h[p],u[p]=d}return this.conjugate(u,a,n),this.transform(u,a,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),g(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"===typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,s=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=s>>>26,this.words[i]=67108863&s}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r
vendor: 16,384 bytes, line 1
1=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var u=this.words[e]&o,a=(0|this.words[e])-u<<r;this.words[e]=a|s,s=u>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),u=67108863^67108863>>>o<<o,a=r;if(i-=s,i=Math.max(0,i),a){for(var c=0;c<s;c++)a.words[c]=this.words[c];a.length=s}if(0===s);else if(this.length>s)for(this.length-=s,c=0;c<this.length;c++)this.words[c]=this.words[c+s];else this.words[0]=0,this.length=1;var h=0;for(c=this.length-1;c>=0&&(0!==h||c>=i);c--){var l=0|this.words[c];this.words[c]=h<<26-o|l>>>o,h=l&u}return a&&0!==h&&(a.words[a.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var u=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+u;var a=(0|t.words[i])*e;u=((o-=67108863&a)>>26)-(a/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)u=(o=(0|this.words[i+r])+u)>>26,this.words[i+r]=67108863&o;if(0===u)return this._strip();for(n(-1===u),u=0,i=0;i<this.length;i++)u=(o=-(0|this.words[i])+u)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,s=0|i.words[i.length-1];0!==(r=26-this._countBits(s))&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,a=n.length-i.length;if("mod"!==e){(u=new o(null)).length=a+1,u.words=new Array(u.length);for(var c=0;c<u.length;c++)u.words[c]=0}var h=n.clone()._ishlnsubmul(i,1,a);0===h.negative&&(n=h,u&&(u.words[a]=1));for(var l=a-1;l>=0;l--){var f=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(f=Math.min(f/s|0,67108863),n._ishlnsubmul(i,f,l);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);u&&(u.words[l]=f)}return u&&u._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,e),"mod"!==e&&(i=u.div.neg()),"div"!==e&&(s=u.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),e),"mod"!==e&&(i=u.div.neg()),{div:i,mod:u.mod}):0!==(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),e),"div"!==e&&(s=u.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:u.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,s,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),u=new o(0),a=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var h=r.clone(),l=e.clone();!e.isZero();){for(var f=0,p=1;0===(e.words[0]&p)&&f<26;++f,p<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(h),s.isub(l)),i.iushrn(1),s.iushrn(1);for(var d=0,y=1;0===(r.words[0]&y)&&d<26;++d,y<<=1);if(d>0)for(r.iushrn(d);d-- >0;)(u.isOdd()||a.isOdd())&&(u.iadd(h),a.isub(l)),u.iushrn(1),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(u),s.isub(a)):(r.isub(e),u.isub(i),a.isub(s))}return{a:u,b:a,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,s=new o(1),u=new o(0),a=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,h=1;0===(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(a),s.iushrn(1);for(var l=0,f=1;0===(r.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(r.iushrn(l);l-- >0;)u.isOdd()&&u.iadd(a),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),s.isub(u)):(r.isub(e),u.isub(s))}return(i=0===e.cmpn(1)?s:u).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var u=0|this.words[s];o=(u+=o)>>>26,u&=67108863,this.words[s]=u}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new _(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function M(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){M.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){M.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){M.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){M.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}M.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},M.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},M.prototype.split=function(t,e){t.iushrn(this.n,0,e)},M.prototype.imulK=function(t){return t.imul(this.k)},i(E,M),E.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},E.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(A,M),i(x,M),i(I,M),I.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new E;else if("p224"===t)e=new A;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new I}return b[t]=e,e},_.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(h(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},_.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var u=new o(1).toRed(this),a=u.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new o(2*h*h).toRed(this);0!==this.pow(h,c).cmp(a);)h.redIAdd(a);for(var l=this.pow(h,i),f=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=s;0!==p.cmp(u);){for(var y=p,v=0;0!==y.cmp(u);v++)y=y.redSqr();n(v<d);var m=this.pow(l,new o(1).iushln(d-v-1));f=f.redMul(m),l=m.redSqr(),p=p.redMul(l),d=v}return f},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this)
1;if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],s=0,u=0,a=e.bitLength()%26;for(0===a&&(a=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],h=a-1;h>=0;h--){var l=c>>h&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==s?(s<<=1,s|=l,(4===++u||0===n&&0===h)&&(i=this.mul(i,r[s]),u=0,s=0)):u=0}a=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new S(t)},i(S,_),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},77191:function(t,e,r){var n=r(58162);t.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},37953:function(t){var e="~",r="\\x"+("0"+e.charCodeAt(0).toString(16)).slice(-2),n="\\"+r,i=new RegExp(r,"g"),o=new RegExp(n,"g"),s=new RegExp("(?:^|([^\\\\]))"+n),u=[].indexOf||function(t){for(var e=this.length;e--&&this[e]!==t;);return e},a=String;function c(t,r,n){return r instanceof Array?function(t,e,r){for(var n=0,i=e.length;n<i;n++)e[n]=c(t,e[n],r);return e}(t,r,n):r instanceof a?r.length?n.hasOwnProperty(r)?n[r]:n[r]=function(t,r){for(var n=0,i=r.length;n<i;t=t[r[n++].replace(o,e)]);return t}(t,r.split(e)):t:r instanceof Object?function(t,e,r){for(var n in e)e.hasOwnProperty(n)&&(e[n]=c(t,e[n],r));return e}(t,r,n):r}var h={stringify:function(t,o,s,a){return h.parser.stringify(t,function(t,o,s){var a,c,h=!1,l=!!o,f=[],p=[t],d=[t],y=[s?e:"[Circular]"],v=t,m=1;return l&&(c="object"===typeof o?function(t,e){return""!==t&&o.indexOf(t)<0?void 0:e}:o),function(t,o){return l&&(o=c.call(this,t,o)),h?(v!==this&&(a=m-u.call(p,this)-1,m-=a,p.splice(m,p.length),f.splice(m-1,f.length),v=this),"object"===typeof o&&o?(u.call(p,o)<0&&p.push(v=o),m=p.length,(a=u.call(d,o))<0?(a=d.push(o)-1,s?(f.push((""+t).replace(i,r)),y[a]=e+f.join(e)):y[a]=y[0]):o=y[a]):"string"===typeof o&&s&&(o=o.replace(r,n).replace(e,r))):h=!0,o}}(t,o,!a),s)},parse:function(t,i){return h.parser.parse(t,function(t){return function(i,o){var u="string"===typeof o;return u&&o.charAt(0)===e?new a(o.slice(1)):(""===i&&(o=c(o,o,{})),u&&(o=o.replace(s,"$1~").replace(n,r)),t?t.call(this,i,o):o)}}(i))},parser:JSON};t.exports=h},26729:function(t){"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,s){if("function"!==typeof n)throw new TypeError("The listener must be a function");var u=new i(n,o||t,s),a=r?r+e:e;return t._events[a]?t._events[a].fn?t._events[a]=[t._events[a],u]:t._events[a].push(u):(t._events[a]=u,t._eventsCount++),t}function s(t,e){0===--t._eventsCount?t._events=new n:delete t._events[e]}function u(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),u.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},u.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,s=new Array(o);i<o;i++)s[i]=n[i].fn;return s},u.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},u.prototype.emit=function(t,e,n,i,o,s){var u=r?r+t:t;if(!this._events[u])return!1;var a,c,h=this._events[u],l=arguments.length;if(h.fn){switch(h.once&&this.removeListener(t,h.fn,void 0,!0),l){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,e),!0;case 3:return h.fn.call(h.context,e,n),!0;case 4:return h.fn.call(h.context,e,n,i),!0;case 5:return h.fn.call(h.context,e,n,i,o),!0;case 6:return h.fn.call(h.context,e,n,i,o,s),!0}for(c=1,a=new Array(l-1);c<l;c++)a[c-1]=arguments[c];h.fn.apply(h.context,a)}else{var f,p=h.length;for(c=0;c<p;c++)switch(h[c].once&&this.removeListener(t,h[c].fn,void 0,!0),l){case 1:h[c].fn.call(h[c].context);break;case 2:h[c].fn.call(h[c].context,e);break;case 3:h[c].fn.call(h[c].context,e,n);break;case 4:h[c].fn.call(h[c].context,e,n,i);break;default:if(!a)for(f=1,a=new Array(l-1);f<l;f++)a[f-1]=arguments[f];
1h[c].fn.apply(h[c].context,a)}}return!0},u.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},u.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},u.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return s(this,o),this;var u=this._events[o];if(u.fn)u.fn!==e||i&&!u.once||n&&u.context!==n||s(this,o);else{for(var a=0,c=[],h=u.length;a<h;a++)(u[a].fn!==e||i&&!u[a].once||n&&u[a].context!==n)&&c.push(u[a]);c.length?this._events[o]=1===c.length?c[0]:c:s(this,o)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&s(this,e)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,t.exports=u},31198:function(t,e,r){"use strict";const n=r(74880).v4,i=r(17741),o=function(t,e){if(!(this instanceof o))return new o(t,e);e||(e={}),this.options={reviver:"undefined"!==typeof e.reviver?e.reviver:null,replacer:"undefined"!==typeof e.replacer?e.replacer:null,generator:"undefined"!==typeof e.generator?e.generator:function(){return n()},version:"undefined"!==typeof e.version?e.version:2,notificationIdNull:"boolean"===typeof e.notificationIdNull&&e.notificationIdNull},this.callServer=t};t.exports=o,o.prototype.request=function(t,e,r,n){const o=this;let s=null;const u=Array.isArray(t)&&"function"===typeof e;if(1===this.options.version&&u)throw new TypeError("JSON-RPC 1.0 does not support batching");if(u||!u&&t&&"object"===typeof t&&"function"===typeof e)n=e,s=t;else{"function"===typeof r&&(n=r,r=void 0);const o="function"===typeof n;try{s=i(t,e,r,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(c){if(o)return n(c);throw c}if(!o)return s}let a;try{a=JSON.stringify(s,this.options.replacer)}catch(c){return n(c)}return this.callServer(a,(function(t,e){o._parseResponse(t,e,n)})),s},o.prototype._parseResponse=function(t,e,r){if(t)return void r(t);if(!e)return r();let n;try{n=JSON.parse(e,this.options.reviver)}catch(t){return r(t)}if(3===r.length){if(Array.isArray(n)){const t=function(t){return"undefined"!==typeof t.error},e=function(e){return!t(e)};return r(null,n.filter(t),n.filter(e))}return r(null,n.error,n.result)}r(null,n)}},17741:function(t,e,r){"use strict";const n=r(74880).v4;t.exports=function(t,e,r,i){if("string"!==typeof t)throw new TypeError(t+" must be a string");const o="number"===typeof(i=i||{}).version?i.version:2;if(1!==o&&2!==o)throw new TypeError(o+" must be 1 or 2");const s={method:t};if(2===o&&(s.jsonrpc="2.0"),e){if("object"!==typeof e&&!Array.isArray(e))throw new TypeError(e+" must be an object, array or omitted");s.params=e}if("undefined"===typeof r){const t="function"===typeof i.generator?i.generator:function(){return n()};s.id=t(s,i)}else 2===o&&null===r?i.notificationIdNull&&(s.id=null):s.id=r;return s}},91094:function(t,e,r){var n,i=r(34155);!function(){"use strict";var o="input is invalid type",s="object"===typeof window,u=s?window:{};u.JS_SHA3_NO_WINDOW&&(s=!1);var a=!s&&"object"===typeof self;!u.JS_SHA3_NO_NODE_JS&&"object"===typeof i&&i.versions&&i.versions.node?u=r.g:a&&(u=self);var c=!u.JS_SHA3_NO_COMMON_JS&&t.exports,h=r.amdO,l=!u.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,f="0123456789abcdef".split(""),p=[4,1024,262144,67108864],d=[0,8,16,24],y=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],v=[224,256,384,512],m=[128,256],g=["hex","buffer","arrayBuffer","array","digest"],w={128:168,256:136};!u.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!l||!u.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var b=function(t,e,r){return function(n){return new D(t,e,t).update(n)[r]()}},M=function(t,e,r){return function(n,i){return new D(t,e,i).update(n)[r]()}},E=function(t,e,r){return function(e,n,i,o){return S["cshake"+t].update(e,n,i,o)[r]()}},A=function(t,e,r){return function(e,n,i,o){return S["kmac"+t].update(e,n,i,o)[r]()}},x=function(t,e,r,n){for(var i=0;i<g.length;++i){var o=g[i];t[o]=e(r,n,o)}return t},I=function(t,e){var r=b(t,e,"hex");return r.create=function(){return new D(t,e,t)},r.update=function(t){return r.create().update(t)},x(r,b,t,e)},_=[{name:"keccak",padding:[1,256,65536,16777216],bits:v,createMethod:I},{name:"sha3",padding:[6,1536,393216,100663296],bits:v,createMethod:I},{name:"shake",padding:[31,7936,2031616,520093696],bits:m,createMethod:function(t,e){var r=M(t,e,"hex");return r.create=function(r){return new D(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},x(r,M,t,e)}},{name:"cshake",padding:p,bits:m,createMethod:function(t,e){var r=w[t],n=E(t,0,"hex");return n.create=function(n,i,o){return i||o?new D(t,e,n).bytepad([i,o],r):S["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},x(n,E,t,e)}},{name:"kmac",padding:p,bits:m,createMethod:function(t,e){var r=w[t],n=A(t,0,"hex");return n.create=function(n,i,o){return new B(t,e,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},x(n,A,t,e)}}],S={},O=[],k=0;k<_.length;++k)for(var N=_[k],T=N.bits,L=0;L<T.length;
vendor: 4,108 bytes, line 1
1++L){var R=N.name+"_"+T[L];if(O.push(R),S[R]=N.createMethod(T[L],N.padding),"sha3"!==N.name){var j=N.name+T[L];O.push(j),S[j]=S[R]}}function D(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function B(t,e,r){D.call(this,t,e,r)}D.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(o);if(null===t)throw new Error(o);if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!l||!ArrayBuffer.isView(t)))throw new Error(o);e=!0}for(var n,i,s=this.blocks,u=this.byteCount,a=t.length,c=this.blockCount,h=0,f=this.s;h<a;){if(this.reset)for(this.reset=!1,s[0]=this.block,n=1;n<c+1;++n)s[n]=0;if(e)for(n=this.start;h<a&&n<u;++h)s[n>>2]|=t[h]<<d[3&n++];else for(n=this.start;h<a&&n<u;++h)(i=t.charCodeAt(h))<128?s[n>>2]|=i<<d[3&n++]:i<2048?(s[n>>2]|=(192|i>>6)<<d[3&n++],s[n>>2]|=(128|63&i)<<d[3&n++]):i<55296||i>=57344?(s[n>>2]|=(224|i>>12)<<d[3&n++],s[n>>2]|=(128|i>>6&63)<<d[3&n++],s[n>>2]|=(128|63&i)<<d[3&n++]):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++h)),s[n>>2]|=(240|i>>18)<<d[3&n++],s[n>>2]|=(128|i>>12&63)<<d[3&n++],s[n>>2]|=(128|i>>6&63)<<d[3&n++],s[n>>2]|=(128|63&i)<<d[3&n++]);if(this.lastByteIndex=n,n>=u){for(this.start=n-u,this.block=s[c],n=0;n<c;++n)f[n]^=s[n];U(f),this.reset=!0}else this.start=n}return this},D.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(r=255&(t>>=8);r>0;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},D.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(o);if(null===t)throw new Error(o);if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!l||!ArrayBuffer.isView(t)))throw new Error(o);e=!0}var n=0,i=t.length;if(e)n=i;else for(var s=0;s<t.length;++s){var u=t.charCodeAt(s);u<128?n+=1:u<2048?n+=2:u<55296||u>=57344?n+=3:(u=65536+((1023&u)<<10|1023&t.charCodeAt(++s)),n+=4)}return n+=this.encode(8*n),this.update(t),n},D.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,o=[];return o.length=i,this.update(o),this},D.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];U(n)}},D.prototype.toString=D.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,u="";s<n;){for(o=0;o<e&&s<n;++o,++s)t=r[o],u+=f[t>>4&15]+f[15&t]+f[t>>12&15]+f[t>>8&15]+f[t>>20&15]+f[t>>16&15]+f[t>>28&15]+f[t>>24&15];s%e===0&&(U(r),o=0)}return i&&(t=r[o],u+=f[t>>4&15]+f[15&t],i>1&&(u+=f[t>>12&15]+f[t>>8&15]),i>2&&(u+=f[t>>20&15]+f[t>>16&15])),u},D.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,u=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(u);for(var a=new Uint32Array(t);s<n;){for(o=0;o<e&&s<n;++o,++s)a[s]=r[o];s%e===0&&U(r)}return i&&(a[o]=r[o],t=t.slice(0,u)),t},D.prototype.buffer=D.prototype.arrayBuffer,D.prototype.digest=D.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,s=0,u=0,a=[];u<i;){for(s=0;s<r&&u<i;++s,++u)t=u<<2,e=n[s],a[t]=255&e,a[t+1]=e>>8&255,a[t+2]=e>>16&255,a[t+3]=e>>24&255;u%r===0&&U(n)}return o&&(t=u<<2,e=n[s],a[t]=255&e,o>1&&(a[t+1]=e>>8&255),o>2&&(a[t+2]=e>>16&255)),a},B.prototype=new D,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),D.prototype.finalize.call(this)};var U=function(t){var e,r,n,i,o,s,u,a,c,h,l,f,p,d,v,m,g,w,b,M,E,A,x,I,_,S,O,k,N,T,L,R,j,D,B,U,P,C,z,F,Y,$,G,Z,K,q,Q,W,V,H,X,J,tt,et,rt,nt,it,ot,st,ut,at,ct,ht;
1for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],u=t[3]^t[13]^t[23]^t[33]^t[43],a=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],e=(f=t[8]^t[18]^t[28]^t[38]^t[48])^(s<<1|u>>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(u<<1|s>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(a<<1|c>>>31),r=o^(c<<1|a>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=s^(h<<1|l>>>31),r=u^(l<<1|h>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=a^(f<<1|p>>>31),r=c^(p<<1|f>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=h^(i<<1|o>>>31),r=l^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,d=t[0],v=t[1],q=t[11]<<4|t[10]>>>28,Q=t[10]<<4|t[11]>>>28,k=t[20]<<3|t[21]>>>29,N=t[21]<<3|t[20]>>>29,ut=t[31]<<9|t[30]>>>23,at=t[30]<<9|t[31]>>>23,$=t[40]<<18|t[41]>>>14,G=t[41]<<18|t[40]>>>14,D=t[2]<<1|t[3]>>>31,B=t[3]<<1|t[2]>>>31,m=t[13]<<12|t[12]>>>20,g=t[12]<<12|t[13]>>>20,W=t[22]<<10|t[23]>>>22,V=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,L=t[32]<<13|t[33]>>>19,ct=t[42]<<2|t[43]>>>30,ht=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,U=t[14]<<6|t[15]>>>26,P=t[15]<<6|t[14]>>>26,w=t[25]<<11|t[24]>>>21,b=t[24]<<11|t[25]>>>21,H=t[34]<<15|t[35]>>>17,X=t[35]<<15|t[34]>>>17,R=t[45]<<29|t[44]>>>3,j=t[44]<<29|t[45]>>>3,I=t[6]<<28|t[7]>>>4,_=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,C=t[26]<<25|t[27]>>>7,z=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,J=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,Z=t[8]<<27|t[9]>>>5,K=t[9]<<27|t[8]>>>5,S=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,F=t[38]<<8|t[39]>>>24,Y=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,x=t[49]<<14|t[48]>>>18,t[0]=d^~m&w,t[1]=v^~g&b,t[10]=I^~S&k,t[11]=_^~O&N,t[20]=D^~U&C,t[21]=B^~P&z,t[30]=Z^~q&W,t[31]=K^~Q&V,t[40]=et^~nt&ot,t[41]=rt^~it&st,t[2]=m^~w&M,t[3]=g^~b&E,t[12]=S^~k&T,t[13]=O^~N&L,t[22]=U^~C&F,t[23]=P^~z&Y,t[32]=q^~W&H,t[33]=Q^~V&X,t[42]=nt^~ot&ut,t[43]=it^~st&at,t[4]=w^~M&A,t[5]=b^~E&x,t[14]=k^~T&R,t[15]=N^~L&j,t[24]=C^~F&$,t[25]=z^~Y&G,t[34]=W^~H&J,t[35]=V^~X&tt,t[44]=ot^~ut&ct,t[45]=st^~at&ht,t[6]=M^~A&d,t[7]=E^~x&v,t[16]=T^~R&I,t[17]=L^~j&_,t[26]=F^~$&D,t[27]=Y^~G&B,t[36]=H^~J&Z,t[37]=X^~tt&K,t[46]=ut^~ct&et,t[47]=at^~ht&rt,t[8]=A^~d&m,t[9]=x^~v&g,t[18]=R^~I&S,t[19]=j^~_&O,t[28]=$^~D&U,t[29]=G^~B&P,t[38]=J^~Z&q,t[39]=tt^~K&Q,t[48]=ct^~et&nt,t[49]=ht^~rt&it,t[0]^=y[n],t[1]^=y[n+1]};if(c)t.exports=S;else{for(k=0;k<O.length;++k)u[O[k]]=S[O[k]];h&&(void 0===(n=function(){return S}.call(e,r,e,t))||(t.exports=n))}}()},39593:function(t,e,r){"use strict";const n=r(34411),i=Symbol("max"),o=Symbol("length"),s=Symbol("lengthCalculator"),u=Symbol("allowStale"),a=Symbol("maxAge"),c=Symbol("dispose"),h=Symbol("noDisposeOnSet"),l=Symbol("lruList"),f=Symbol("cache"),p=Symbol("updateAgeOnGet"),d=()=>1;const y=(t,e,r)=>{const n=t[f].get(e);if(n){const e=n.value;if(v(t,e)){if(g(t,n),!t[u])return}else r&&(t[p]&&(n.value.now=Date.now()),t[l].unshiftNode(n));return e.value}},v=(t,e)=>{if(!e||!e.maxAge&&!t[a])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[a]&&r>t[a]},m=t=>{if(t[o]>t[i])for(let e=t[l].tail;t[o]>t[i]&&null!==e;){const r=e.prev;g(t,e),e=r}},g=(t,e)=>{if(e){const r=e.value;t[c]&&t[c](r.key,r.value),t[o]-=r.length,t[f].delete(r.key),t[l].removeNode(e)}};class w{constructor(t,e,r,n,i){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=i||0}}const b=(t,e,r,n)=>{let i=r.value;v(t,i)&&(g(t,r),t[u]||(i=void 0)),i&&e.call(n,i.value,i.key,t)};t.exports=class{constructor(t){if("number"===typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!==typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;const e=t.length||d;if(this[s]="function"!==typeof e?d:e,this[u]=t.stale||!1,t.maxAge&&"number"!==typeof t.maxAge)throw new TypeError("maxAge must be a number");this[a]=t.maxAge||0,this[c]=t.dispose,this[h]=t.noDisposeOnSet||!1,this[p]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!==typeof t||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||1/0,m(this)}get max(){return this[i]}set allowStale(t){this[u]=!!t}get allowStale(){return this[u]}set maxAge(t){if("number"!==typeof t)throw new TypeError("maxAge must be a non-negative number");this[a]=t,m(this)}get maxAge(){return this[a]}set lengthCalculator(t){"function"!==typeof t&&(t=d),t!==this[s]&&(this[s]=t,this[o]=0,this[l].forEach((t=>{t.length=this[s](t.value,t.key),this[o]+=t.length}))),m(this)}get lengthCalculator(){return this[s]}get length(){return this[o]}get itemCount(){return this[l].length}
1rforEach(t,e){e=e||this;for(let r=this[l].tail;null!==r;){const n=r.prev;b(this,t,r,e),r=n}}forEach(t,e){e=e||this;for(let r=this[l].head;null!==r;){const n=r.next;b(this,t,r,e),r=n}}keys(){return this[l].toArray().map((t=>t.key))}values(){return this[l].toArray().map((t=>t.value))}reset(){this[c]&&this[l]&&this[l].length&&this[l].forEach((t=>this[c](t.key,t.value))),this[f]=new Map,this[l]=new n,this[o]=0}dump(){return this[l].map((t=>!v(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[l]}set(t,e,r){if((r=r||this[a])&&"number"!==typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,u=this[s](e,t);if(this[f].has(t)){if(u>this[i])return g(this,this[f].get(t)),!1;const s=this[f].get(t).value;return this[c]&&(this[h]||this[c](t,s.value)),s.now=n,s.maxAge=r,s.value=e,this[o]+=u-s.length,s.length=u,this.get(t),m(this),!0}const p=new w(t,e,u,n,r);return p.length>this[i]?(this[c]&&this[c](t,e),!1):(this[o]+=p.length,this[l].unshift(p),this[f].set(t,this[l].head),m(this),!0)}has(t){if(!this[f].has(t))return!1;const e=this[f].get(t).value;return!v(this,e)}get(t){return y(this,t,!0)}peek(t){return y(this,t,!1)}pop(){const t=this[l].tail;return t?(g(this,t),t.value):null}del(t){g(this,this[f].get(t))}load(t){this.reset();const e=Date.now();for(let r=t.length-1;r>=0;r--){const n=t[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const t=i-e;t>0&&this.set(n.k,n.v,t)}}}prune(){this[f].forEach(((t,e)=>y(this,e,!1)))}}},96296:function(t,e,r){"use strict";r.d(e,{mI:function(){return f},QZ:function(){return h}});var n=r(26729);function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=o(t);if(e){var i=o(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return s(this,r)}}var h,l,f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(r,t);var e=c(r);function r(){return i(this,r),e.apply(this,arguments)}return r}(r.n(n)());(l=h||(h={})).Mainnet="mainnet-beta",l.Testnet="testnet",l.Devnet="devnet"},4004:function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function o(t,e,r){return(o=i()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&c(i,r.prototype),i}).apply(null,arguments)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function a(t,e){return!e||"object"!==h(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}
1function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}r.d(e,{lj:function(){return p},l5:function(){return d},Yf:function(){return y},OZ:function(){return v},$w:function(){return m},at:function(){return g},UG:function(){return w},Nx:function(){return b},oS:function(){return M},IW:function(){return E},fk:function(){return A},PY:function(){return x},NK:function(){return I},d2:function(){return _},hd:function(){return S}});var h=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function l(t){var e="function"===typeof Map?new Map:void 0;return(l=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return o(t,arguments,s(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,t)})(t)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=s(t);if(e){var i=s(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return a(this,r)}}var p=function(t){u(r,t);var e=f(r);function r(t,i){var o;return n(this,r),(o=e.call(this,t)).error=i,o}return r}(l(Error)),d=function(t){u(r,t);var e=f(r);function r(){var t;return n(this,r),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).name="WalletNotFoundError",t}return r}(p),y=function(t){u(r,t);var e=f(r);function r(){var t;return n(this,r),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).name="WalletNotInstalledError",t}return r}(p),v=function(t){u(r,t);var e=f(r);function r(){var t;return n(this,r),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).name="WalletNotReadyError",t}return r}(p),m=function(t){u(r,t);var e=f(r);function r(){var t;return n(this,r),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).name="WalletConnectionError",t}return r}(p),g=function(t){u(r,t);var e=f(r);function r(){var t;return n(this,r),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).name="WalletDisconnectedError",t}return r}(p),w=function(t){u(r,t);var e=f(r);function r(){var t;return n(this,r),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).name="WalletDisconnectionError",t}return r}(p),b=function(t){u(r,t);var e=f(r);function r(){var t;return n(this,r),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).name="WalletPublicKeyError",t}return r}(p),M=function(t){u(r,t);var e=f(r);function r(){var t;return n(this,r),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).name="WalletNotConnectedError",t}return r}(p),E=function(t){u(r,t);var e=f(r);function r(){var t;return n(this,r),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).name="WalletSendTransactionError",t}return r}(p),A=function(t){u(r,t);var e=f(r);function r(){var t;return n(this,r),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).name="WalletSignMessageError",t}return r}(p),x=function(t){u(r,t);var e=f(r);function r(){var t;return n(this,r),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).name="WalletSignTransactionError",t}return r}(p),I=function(t){u(r,t);var e=f(r);function r(){var t;return n(this,r),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).name="WalletTimeoutError",t}return r}(p),_=function(t){u(r,t);var e=f(r);function r(){var t;return n(this,r),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).name="WalletWindowBlockedError",t}return r}(p),S=function(t){u(r,t);var e=f(r);function r(){var t;return n(this,r),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).name="WalletWindowClosedError",t}return r}(p)},92983:function(t,e,r){"use strict";r.d(e,{_:function(){return u}});var n=r(28520),i=r.n(n);var o=function(t,e,r,n){var i=function(t){return e=t,(null!=(n=r)&&"undefined"!==typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](e):e instanceof n)?t:new r((function(e){e(t)}));var e,n};return new(r||(r=Promise))((function(r,o){var s=function(t){try{a(n.next(t))}catch(e){o(e)}},u=function(t){try{a(n.throw(t))}catch(e){o(e)}},a=function(t){t.done?r(t.value):i(t.value).then(s,u)};a((n=n.apply(t,e||[])).next())}))};function s(t,e,r){if(r>0){var n=this;setTimeout((function(){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t();case 2:n.sent||s(t,e,r-1);case 4:case"end":return n.stop()}}),n)})))}),e)}}function u(t,e,r){s((function(){var e=t.ready;return e&&(t.emit("ready")||console.warn("".concat(t.constructor.name," is ready but no listener was registered"))),e}),e,r)}},394:function(t,e,r){"use strict";r.d(e,{s:function(){return w},e:function(){return b}});var n=r(28520),i=r.n(n),o=r(96296),s=r(4004);function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}
1function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function l(t,e){return null!=e&&"undefined"!==typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function f(t,e){return!e||"object"!==y(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var y=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function v(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=c(t);if(e){var i=c(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return f(this,r)}}var m=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=function(t){try{a(n.next(t))}catch(e){o(e)}},u=function(t){try{a(n.throw(t))}catch(e){o(e)}},a=function(t){var e;t.done?i(t.value):(e=t.value,l(e,r)?e:new r((function(t){t(e)}))).then(s,u)};a((n=n.apply(t,e||[])).next())}))},g=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r},w=function(t){h(c,t);var e,r,n,o=v(c);function c(){return u(this,c),o.apply(this,arguments)}return e=c,(r=[{key:"sendTransaction",value:function(t,e,r){var n=void 0===r?{}:r;return m(this,void 0,void 0,i().mark((function r(){var o,u,a,c,h;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=!0,r.prev=1,r.prev=2,t.feePayer||(t.feePayer=this.publicKey||void 0),r.t0=t.recentBlockhash,r.t0){r.next=10;break}return r.next=9,e.getRecentBlockhash("finalized");case 9:t.recentBlockhash=r.sent.blockhash;case 10:return a=n.signers,c=g(n,["signers"]),(null===a||void 0===a?void 0:a.length)&&(u=t).partialSign.apply(u,d(a)),r.next=14,this.signTransaction(t);case 14:return t=r.sent,h=t.serialize(),r.next=18,e.sendRawTransaction(h,c);case 18:return r.abrupt("return",r.sent);case 21:if(r.prev=21,r.t1=r.catch(2),!l(r.t1,s.lj)){r.next=26;break}throw o=!1,r.t1;case 26:throw new s.IW(null===r.t1||void 0===r.t1?void 0:r.t1.message,r.t1);case 27:r.next=33;break;case 29:throw r.prev=29,r.t2=r.catch(1),o&&this.emit("error",r.t2),r.t2;case 33:case"end":return r.stop()}}),r,this,[[1,29],[2,21]])})))}}])&&a(e.prototype,r),n&&a(e,n),c}(o.mI),b=function(t){h(r,t);var e=v(r);function r(){return u(this,r),e.apply(this,arguments)}return r}(w)},27758:function(t,e,r){"use strict";r.d(e,{U:function(){return s}});var n=r(59917),i=r(67294),o=(0,i.createContext)({});var s=function(t){var e=t.children,r=t.endpoint,s=t.config,u=void 0===s?{commitment:"confirmed"}:s,a=(0,i.useMemo)((function(){return new n.ew(r,u)}),[r,u]);return i.createElement(o.Provider,{value:{connection:a}},e)}},77354:function(t,e,r){"use strict";r.d(e,{n:function(){return g}});var n=r(28520),i=r.n(n),o=r(4004),s=r(67294);function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return!e||"object"!==l(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}
1function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var l=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=a(t);if(e){var i=a(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return c(this,r)}}var p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(r,t);var e=f(r);function r(){var t;return u(this,r),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).name="WalletNotSelectedError",t}return r}(o.lj);var d=r(77257);function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var s,u=t[Symbol.iterator]();!(n=(s=u.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(a){i=!0,o=a}finally{try{n||null==u.return||u.return()}finally{if(i)throw o}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var v=function(t,e,r,n){var i=function(t){return e=t,(null!=(n=r)&&"undefined"!==typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](e):e instanceof n)?t:new r((function(e){e(t)}));var e,n};return new(r||(r=Promise))((function(r,o){var s=function(t){try{a(n.next(t))}catch(e){o(e)}},u=function(t){try{a(n.throw(t))}catch(e){o(e)}},a=function(t){t.done?r(t.value):i(t.value).then(s,u)};a((n=n.apply(t,e||[])).next())}))},m={wallet:null,adapter:null,ready:!1,publicKey:null,connected:!1},g=function(t){var e=t.children,r=t.wallets,n=t.autoConnect,u=void 0!==n&&n,a=t.onError,c=void 0===a?function(t){return console.error(t)}:a,h=t.localStorageKey,l=y(function(t,e){var r=(0,s.useState)((function(){if("undefined"===typeof localStorage)return e;var r=localStorage.getItem(t);try{return r?JSON.parse(r):e}catch(error){return console.warn(error),e}})),n=r[0],i=r[1],o=(0,s.useCallback)((function(e){if(e!==n)if(i(e),null===e)localStorage.removeItem(t);else try{localStorage.setItem(t,JSON.stringify(e))}catch(error){console.error(error)}}),[n,i,t]);return[n,o]}(void 0===h?"walletName":h,null),2),f=l[0],g=l[1],w=(0,s.useState)(m),b=w[0],M=b.wallet,E=b.adapter,A=b.ready,x=b.publicKey,I=b.connected,_=w[1],S=(0,s.useState)(!1),O=S[0],k=S[1],N=(0,s.useState)(!1),T=N[0],L=N[1],R=(0,s.useRef)(!1),j=(0,s.useRef)(!1),D=(0,s.useRef)(!1),B=(0,s.useMemo)((function(){return r.reduce((function(t,e){return t[e.name]=e,t}),{})}),[r]);(0,s.useEffect)((function(){var t=f&&B[f]||null,e=t&&t.adapter();if(e){var r=e.ready,n=e.publicKey,i=e.connected;_({wallet:t,adapter:e,connected:i,publicKey:n,ready:r})}else _(m)}),[f,B,_]),(0,s.useEffect)((function(){!(R.current||O||I)&&u&&E&&A&&function(){v(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return R.current=!0,k(!0),t.prev=2,t.next=5,E.connect();case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(2),g(null);case 10:return t.prev=10,k(!1),R.current=!1,t.finish(10);case 14:case"end":return t.stop()}}),t,null,[[2,7,10,14]])})))}()}),[R,O,I,u,E,A,k,g]),(0,s.useEffect)((function(){var t=function(){D.current=!0};return window.addEventListener("beforeunload",t),function(){return window.removeEventListener("beforeunload",t)}}),[D]);var U=(0,s.useCallback)((function(t){return v(void 0,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f!==t){e.next=2;break}return e.abrupt("return");case 2:if(!E){e.next=5;break}return e.next=5,E.disconnect();case 5:g(t);case 6:case"end":return e.stop()}}),e)})))}),[f,E,g]),P=(0,s.useCallback)((function(){return _((function(t){return Object.assign(Object.assign({},t),{ready:!0})}))}),[_]),C=(0,s.useCallback)((function(){if(E){var t=E.connected,e=E.publicKey,r=E.ready;_((function(n){return Object.assign(Object.assign({}
1,n),{connected:t,publicKey:e,ready:r})}))}}),[E,_]),z=(0,s.useCallback)((function(){D.current||g(null)}),[D,g]),F=(0,s.useCallback)((function(t){return D.current||c(t),t}),[D,c]),Y=(0,s.useCallback)((function(){return v(void 0,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(R.current||O||T||I)){t.next=2;break}return t.abrupt("return");case 2:if(M&&E){t.next=4;break}throw F(new p);case 4:if(A){t.next=8;break}throw g(null),window.open(M.url,"_blank"),F(new o.OZ);case 8:return R.current=!0,k(!0),t.prev=10,t.next=13,E.connect();case 13:t.next=19;break;case 15:throw t.prev=15,t.t0=t.catch(10),g(null),t.t0;case 19:return t.prev=19,k(!1),R.current=!1,t.finish(19);case 23:case"end":return t.stop()}}),t,null,[[10,15,19,23]])})))}),[R,O,T,I,M,E,F,A,k,g]),$=(0,s.useCallback)((function(){return v(void 0,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!j.current&&!T){t.next=2;break}return t.abrupt("return");case 2:if(E){t.next=4;break}return t.abrupt("return",g(null));case 4:return j.current=!0,L(!0),t.prev=6,t.next=9,E.disconnect();case 9:t.next=15;break;case 11:throw t.prev=11,t.t0=t.catch(6),g(null),t.t0;case 15:return t.prev=15,L(!1),j.current=!1,t.finish(15);case 19:case"end":return t.stop()}}),t,null,[[6,11,15,19]])})))}),[j,T,E,L,g]),G=(0,s.useCallback)((function(t,e,r){return v(void 0,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(E){n.next=2;break}throw F(new p);case 2:if(I){n.next=4;break}throw F(new o.oS);case 4:return n.next=6,E.sendTransaction(t,e,r);case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}}),n)})))}),[E,F,I]),Z=(0,s.useMemo)((function(){return E&&"signTransaction"in E?function(t){return v(void 0,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I){e.next=2;break}throw F(new o.oS);case 2:return e.next=4,E.signTransaction(t);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))}:void 0}),[E,F,I]),K=(0,s.useMemo)((function(){return E&&"signAllTransactions"in E?function(t){return v(void 0,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I){e.next=2;break}throw F(new o.oS);case 2:return e.next=4,E.signAllTransactions(t);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))}:void 0}),[E,F,I]),q=(0,s.useMemo)((function(){return E&&"signMessage"in E?function(t){return v(void 0,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I){e.next=2;break}throw F(new o.oS);case 2:return e.next=4,E.signMessage(t);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))}:void 0}),[E,F,I]);return(0,s.useEffect)((function(){if(E)return E.on("ready",P),E.on("connect",C),E.on("disconnect",z),E.on("error",F),function(){E.off("ready",P),E.off("connect",C),E.off("disconnect",z),E.off("error",F)}}),[E,P,C,z,F]),s.createElement(d.z.Provider,{value:{wallets:r,autoConnect:u,wallet:M,adapter:E,publicKey:x,ready:A,connected:I,connecting:O,disconnecting:T,select:U,connect:Y,disconnect:$,sendTransaction:G,signTransaction:Z,signAllTransactions:K,signMessage:q}},e)}},73788:function(t,e,r){"use strict";r.d(e,{I:function(){return R}});var n=r(28520),i=r.n(n),o=r(26729),s=r.n(o),u=r(59917),a=r(77191),c=r.n(a);function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return null!=e&&"undefined"!==typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function p(t,e){return!e||"object"!==v(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}
1function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var s,u=t[Symbol.iterator]();!(n=(s=u.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(a){i=!0,o=a}finally{try{n||null==u.return||u.return()}finally{if(i)throw o}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var v=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function m(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=l(t);if(e){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}var g=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=function(t){try{a(n.next(t))}catch(e){o(e)}},u=function(t){try{a(n.throw(t))}catch(e){o(e)}},a=function(t){var e;t.done?i(t.value):(e=t.value,f(e,r)?e:new r((function(t){t(e)}))).then(s,u)};a((n=n.apply(t,e||[])).next())}))},w=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(s,t);var e,r,n,o=m(s);function s(t,e){var r,n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(r=o.call(this))._network=e,r._publicKey=null,r._popup=null,r._handlerAdded=!1,r._nextRequestId=1,r._autoApprove=!1,r._responsePromises=new Map,r.handleMessage=function(t){var e;if(r._injectedProvider&&t.source===window||t.origin===(null===(e=r._providerUrl)||void 0===e?void 0:e.origin)&&t.source===r._popup)if("connected"===t.data.method){var n=new u.nh(t.data.params.publicKey);r._publicKey&&r._publicKey.equals(n)||(r._publicKey&&!r._publicKey.equals(n)&&r.handleDisconnect(),r._publicKey=n,r._autoApprove=!!t.data.params.autoApprove,r.emit("connect",r._publicKey))}else if("disconnected"===t.data.method)r.handleDisconnect();else if(t.data.result||t.data.error){var i=r._responsePromises.get(t.data.id);if(i){var o=y(i,2),s=o[0],a=o[1];t.data.result?s(t.data.result):a(new Error(t.data.error))}}},r._beforeUnload=function(){r.disconnect()},function(t){return"object"===typeof t&&null!==t}(n=t)&&"postMessage"in n&&"function"===typeof n.postMessage)r._injectedProvider=t;else{if(!function(t){return"string"===typeof t}(t))throw new Error("provider parameter must be an injected provider or a URL string.");r._providerUrl=new URL(t),r._providerUrl.hash=new URLSearchParams({origin:window.location.origin,network:r._network}).toString()}return r}return e=s,(r=[{key:"handleConnect",value:function(){var t;if(this._handlerAdded||(this._handlerAdded=!0,window.addEventListener("message",this.handleMessage),window.addEventListener("beforeunload",this._beforeUnload)),this._injectedProvider){var e=this;return new Promise((function(t){e.sendRequest("connect",{}),t()}))}var r=this;return window.name="parent",this._popup=window.open(null===(t=this._providerUrl)||void 0===t?void 0:t.toString(),"_blank","location,resizable,width=460,height=675"),new Promise((function(t){r.once("connect",t)}))}},{key:"handleDisconnect",value:function(){var t=this;this._handlerAdded&&(this._handlerAdded=!1,window.removeEventListener("message",this.handleMessage),window.removeEventListener("beforeunload",this._beforeUnload)),this._publicKey&&(this._publicKey=null,this.emit("disconnect")),this._responsePromises.forEach((function(e,r){var n=y(e,2)[1];t._responsePromises.delete(r),n(new Error("Wallet disconnected"))}))}},{key:"sendRequest",value:function(t,e){return g(this,void 0,void 0,i().mark((function r(){var n,o;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=this,"connect"===t||this.connected){r.next=3;break}throw new Error("Wallet not connected");case 3:return o=this._nextRequestId,++this._nextRequestId,r.abrupt("return",new Promise((function(r,i){var s,u,a,c;n._responsePromises.set(o,[r,i]),n._injectedProvider?n._injectedProvider.postMessage({jsonrpc:"2.0",id:o,method:t,params:Object.assign({network:n._network},e)}):(null===(s=n._popup)||void 0===s||s.postMessage({jsonrpc:"2.0",id:o,method:t,params:e},null!==(a=null===(u=n._providerUrl)||void 0===u?void 0:u.origin)&&void 0!==a?a:""),n.autoApprove||null===(c=n._popup)||void 0===c||c.focus())})));case 6:case"end":return r.stop()}}),r,this)})))}},{key:"publicKey",get:function(){return this._publicKey}},{key:"connected",get:function(){return null!==this._publicKey}},{key:"autoApprove",get:function(){return this._autoApprove}},{key:"connect",value:function(){return g(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._popup&&this._popup.close(),t.next=3,this.handleConnect();case 3:case"end":return t.stop()}}),t,this)})))}},{key:"disconnect",value:function(){return g(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._injectedProvider){t.next=3;break}return t.next=3,this.sendRequest("disconnect",{});case 3:this._popup&&this._popup.close(),this.handleDisconnect();case 5:case"end":return t.stop()}}),t,this)})))}},{key:"sign",value:function(t,e){return g(this,void 0,void 0,i().mark((function r(){var n,o,s;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(f(t,Uint8Array)){r.next=2;break}throw new Error("Data must be an instance of Uint8Array");case 2:return r.next=4,this.sendRequest("sign",{data:t,display:e});case 4:return n=r.sent,o=c().decode(n.signature),s=new u.nh(n.publicKey),r.abrupt("return",{signature:o,publicKey:s});case 8:case"end":return r.stop()}}),r,this)})))}},{key:"signTransaction",value:function(t){return g(this,void 0,void 0,i().mark((function e(){var r,n,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest("signTransaction",{message:c().encode(t.serializeMessage())});case 2:return r=e.sent,n=c().decode(r.signature),o=new u.nh(r.publicKey),t.addSignature(o,n),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e,this)})))}},{key:"signAllTransactions",value:function(t){return g(this,void 0,void 0,i().mark((function e(){var r,n,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest("signAllTransactions",{messages:t.map((function(t){return c().encode(t.serializeMessage())}))});case 2:return r=e.sent,n=r.signatures.map((function(t){return c().decode(t)})),o=new u.nh(r.publicKey),t=t.map((function(t,e){return t.addSignature(o,n[e]),t})),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e,this)})))}},{key:"diffieHellman",value:function(t){return g(this,void 0,void 0,i().mark((function e(){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f(t,Uint8Array)){e.next=2;break}throw new Error("Data must be an instance of Uint8Array");case 2:return e.next=4,this.sendRequest("diffieHellman",{publicKey:t});case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})))}}])&&h(e.prototype,r),n&&h(e,n),s}(s());var b=r(4004),M=r(96296),E=r(92983),A=r(394);function x(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function I(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function S(t,e){return null!=e&&"undefined"!==typeof Symbol&&e[Symbol.hasInstance]?e[
1Symbol.hasInstance](t):t instanceof e}function O(t,e){return!e||"object"!==N(e)&&"function"!==typeof e?x(t):e}function k(t,e){return(k=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var N=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function T(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=_(t);if(e){var i=_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return O(this,r)}}var L=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=function(t){try{a(n.next(t))}catch(e){o(e)}},u=function(t){try{a(n.throw(t))}catch(e){o(e)}},a=function(t){var e;t.done?i(t.value):(e=t.value,S(e,r)?e:new r((function(t){t(e)}))).then(s,u)};a((n=n.apply(t,e||[])).next())}))},R=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&k(t,e)}(s,t);var e,r,n,o=T(s);function s(t){var e,r=void 0===t?{}:t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this))._disconnected=function(){var t=e._wallet;t&&(t.off("disconnect",e._disconnected),e._wallet=null,e.emit("error",new b.at),e.emit("disconnect"))},e._provider=r.provider||window.sollet,e._network=r.network||M.QZ.Mainnet,e._connecting=!1,e._wallet=null,e.ready||(0,E._)(x(e),r.pollInterval||1e3,r.pollCount||3),e}return e=s,(r=[{key:"publicKey",get:function(){var t;return(null===(t=this._wallet)||void 0===t?void 0:t.publicKey)||null}},{key:"ready",get:function(){var t;return"string"===typeof this._provider||"function"===typeof(null===(t=window.sollet)||void 0===t?void 0:t.postMessage)}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.connected)}},{key:"connect",value:function(){return L(this,void 0,void 0,i().mark((function t(){var e,r,n,o,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!this.connected&&!this.connecting){t.next=3;break}return t.abrupt("return");case 3:if(this._connecting=!0,e=this._provider||window.sollet){t.next=7;break}throw new b.l5;case 7:return t.prev=8,r=new w(e,this._network),n=r.handleDisconnect,t.prev=13,t.next=16,new Promise((function(t,i){var u=function(){o&&clearTimeout(o),r.off("connect",u),t()};if(r.handleDisconnect=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return r.off("connect",u),i(new b.hd),n.apply(r,e)},r.on("connect",u),r.connect().catch((function(t){r.off("connect",u),i(t)})),"string"===typeof e){var a=0;s=setInterval((function(){var t=r._popup;t?t.closed&&i(new b.hd):a>50&&i(new b.d2),a++}),100)}else o=setTimeout((function(){return i(new b.NK)}),1e4)}));case 16:return t.prev=16,r.handleDisconnect=n,s&&clearInterval(s),t.finish(16);case 20:t.next=27;break;case 22:if(t.prev=22,t.t0=t.catch(8),!S(t.t0,b.lj)){t.next=26;break}throw t.t0;case 26:throw new b.$w(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 27:r.on("disconnect",this._disconnected),this._wallet=r,this.emit("connect"),t.next=36;break;case 32:throw t.prev=32,t.t1=t.catch(0),this.emit("error",t.t1),t.t1;case 36:return t.prev=36,this._connecting=!1,t.finish(36);case 39:case"end":return t.stop()}}),t,this,[[0,32,36,39],[8,22],[13,,16,20]])})))}},{key:"disconnect",value:function(){return L(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=this._wallet)){t.next=16;break}return e.off("disconnect",this._disconnected),this._wallet=null,r=e.handleDisconnect,t.prev=5,t.next=8,new Promise((function(t,n){var i=setTimeout((function(){return t()}),250);e.handleDisconnect=function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return clearTimeout(i),t(),e._responsePromises=new Map,r.apply(e,o)},e.disconnect().then((function(){clearTimeout(i),t()}),(function(e){clearTimeout(i),"Wallet disconnected"===(null===e||void 0===e?void 0:e.message)?t():n(e)}))}));case 8:t.next=13;break;
1case 10:t.prev=10,t.t0=t.catch(5),this.emit("error",new b.UG(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0));case 13:return t.prev=13,e.handleDisconnect=r,t.finish(13);case 16:this.emit("disconnect");case 17:case"end":return t.stop()}}),t,this,[[5,10,13,16]])})))}},{key:"signTransaction",value:function(t){return L(this,void 0,void 0,i().mark((function e(){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new b.oS;case 4:return e.prev=4,e.next=7,r.signTransaction(t);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=t;case 10:return e.abrupt("return",e.t0);case 13:throw e.prev=13,e.t1=e.catch(4),new b.PY(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 16:e.next=22;break;case 18:throw e.prev=18,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 22:case"end":return e.stop()}}),e,this,[[0,18],[4,13]])})))}},{key:"signAllTransactions",value:function(t){return L(this,void 0,void 0,i().mark((function e(){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new b.oS;case 4:return e.prev=4,e.next=7,r.signAllTransactions(t);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=t;case 10:return e.abrupt("return",e.t0);case 13:throw e.prev=13,e.t1=e.catch(4),new b.PY(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 16:e.next=22;break;case 18:throw e.prev=18,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 22:case"end":return e.stop()}}),e,this,[[0,18],[4,13]])})))}},{key:"signMessage",value:function(t){return L(this,void 0,void 0,i().mark((function e(){var r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new b.oS;case 4:return e.prev=4,e.next=7,r.sign(t,"utf8");case 7:return n=e.sent.signature,e.abrupt("return",Uint8Array.from(n));case 11:throw e.prev=11,e.t0=e.catch(4),new b.fk(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 14:e.next=20;break;case 16:throw e.prev=16,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 20:case"end":return e.stop()}}),e,this,[[0,16],[4,11]])})))}}])&&I(e.prototype,r),n&&I(e,n),s}(A.e)},93829:function(t,e,r){"use strict";r.d(e,{D:function(){return ht}});var n,i,o=r(28520),s=r.n(o),u=r(17187),a=r.n(u),c=r(50580),h=r(48764).Buffer,l=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{a(n.next(t))}catch(e){o(e)}}function u(t){try{a(n.throw(t))}catch(e){o(e)}}function a(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,u)}a((n=n.apply(t,e||[])).next())}))},f=function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(u){o=[6,u],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},p=function(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(error){i={error:error}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},d=function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},y=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},v=function(){function t(){var t=this;this.exchangeTimeout=3e4,this.unresponsiveTimeout=15e3,this.deviceModel=null,this._events=new(a()),this.send=function(e,r,n,i,o,s){return void 0===o&&(o=h.alloc(0)),void 0===s&&(s=[c.StatusCodes.OK]),l(t,void 0,void 0,(function(){var t,u;return f(this,(function(a){switch(a.label){case 0:if(o.length>=256)throw new c.TransportError("data.length exceed 256 bytes limit. Got: "+o.length,"DataLengthTooBig");return[4,this.exchange(h.concat([h.from([e,r,n,i]),h.from([o.length]),o]))];case 1:if(t=a.sent(),u=t.readUInt16BE(t.length-2),!s.some((function(t){return t===u})))throw new c.TransportStatusError(u);return[2,t]}}))}))},this.exchangeAtomicImpl=function(e){return l(t,void 0,void 0,(function(){var t,r,n,i,o,s=this;return f(this,(function(u){switch(u.label){case 0:if(this.exchangeBusyPromise)throw new c.TransportRaceCondition("An action was already pending on the Ledger device. Please deny or reconnect.");r=new Promise((function(e){t=e})),this.exchangeBusyPromise=r,n=!1,i=setTimeout((function(){n=!0,s.emit("unresponsive")}),this.unresponsiveTimeout),u.label=1;case 1:return u.trys.push([1,,3,4]),[4,e()];
1case 2:return o=u.sent(),n&&this.emit("responsive"),[2,o];case 3:return clearTimeout(i),t&&t(),this.exchangeBusyPromise=null,[7];case 4:return[2]}}))}))},this._appAPIlock=null}return t.prototype.exchange=function(t){throw new Error("exchange not implemented")},t.prototype.setScrambleKey=function(t){},t.prototype.close=function(){return Promise.resolve()},t.prototype.on=function(t,e){this._events.on(t,e)},t.prototype.off=function(t,e){this._events.removeListener(t,e)},t.prototype.emit=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];(e=this._events).emit.apply(e,d([t],p(r),!1))},t.prototype.setDebugMode=function(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")},t.prototype.setExchangeTimeout=function(t){this.exchangeTimeout=t},t.prototype.setExchangeUnresponsiveTimeout=function(t){this.unresponsiveTimeout=t},t.create=function(t,e){var r=this;return void 0===t&&(t=3e3),new Promise((function(n,i){var o=!1,s=r.listen({next:function(e){o=!0,s&&s.unsubscribe(),u&&clearTimeout(u),r.open(e.descriptor,t).then(n,i)},error:function(t){u&&clearTimeout(u),i(t)},complete:function(){u&&clearTimeout(u),o||i(new c.TransportError(r.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),u=e?setTimeout((function(){s.unsubscribe(),i(new c.TransportError(r.ErrorMessage_ListenTimeout,"ListenTimeout"))}),e):null}))},t.prototype.decorateAppAPIMethods=function(t,e,r){var n,i;try{for(var o=y(e),s=o.next();!s.done;s=o.next()){var u=s.value;t[u]=this.decorateAppAPIMethod(u,t[u],t,r)}}catch(a){n={error:a}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},t.prototype.decorateAppAPIMethod=function(t,e,r,n){var i=this;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return l(i,void 0,void 0,(function(){var i;return f(this,(function(s){switch(s.label){case 0:if(i=this._appAPIlock)return[2,Promise.reject(new c.TransportError("Ledger Device is busy (lock "+i+")","TransportLocked"))];s.label=1;case 1:return s.trys.push([1,,3,4]),this._appAPIlock=t,this.setScrambleKey(n),[4,e.apply(r,o)];case 2:return[2,s.sent()];case 3:return this._appAPIlock=null,[7];case 4:return[2]}}
1))}))}},t.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",t.ErrorMessage_NoDeviceFound="No Ledger device found",t}(),m=r(57204),g=r(28371),w=r.n(g),b=function(){return(b=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};!function(t){t.blue="blue",t.nanoS="nanoS",t.nanoSP="nanoSP",t.nanoX="nanoX"}(i||(i={}));var M=((n={})[i.blue]={id:i.blue,productName:"Ledger\xa0Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:491520,masks:[822083584,822149120],getBlockSize:function(t){return 4096}},n[i.nanoS]={id:i.nanoS,productName:"Ledger\xa0Nano\xa0S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:327680,masks:[823132160],getBlockSize:function(t){var e;return w().lt(null!==(e=w().coerce(t))&&void 0!==e?e:"","2.0.0")?4096:2048}},n[i.nanoSP]={id:i.nanoSP,productName:"Ledger Nano SP",productIdMM:80,legacyUsbProductId:5,usbOnly:!0,memorySize:1569792,masks:[856686592],getBlockSize:function(t){return 32}},n[i.nanoX]={id:i.nanoX,productName:"Ledger\xa0Nano\xa0X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2097152,masks:[855638016],getBlockSize:function(t){return 4096},bluetoothSpec:[{serviceUuid:"d973f2e0-b19e-11e2-9e96-0800200c9a66",notifyUuid:"d973f2e1-b19e-11e2-9e96-0800200c9a66",writeUuid:"d973f2e2-b19e-11e2-9e96-0800200c9a66",writeCmdUuid:"d973f2e3-b19e-11e2-9e96-0800200c9a66"},{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-0004-0003-4c6564676572"}]},n),E=(i.blue,i.nanoS,i.nanoX,Object.values(M)),A=function(t){var e=E.find((function(e){return e.legacyUsbProductId===t}));if(e)return e;var r=t>>8;return E.find((function(t){return t.productIdMM===r}))},x=[],I={};for(var _ in M){var S=M[_],O=S.bluetoothSpec;if(O)for(var k=0;k<O.length;k++){var N=O[k];x.push(N.serviceUuid),I[N.serviceUuid]=I[N.serviceUuid.replace(/-/g,"")]=b({deviceModel:S},N)}}var T=0,L=[],R=function(t,e,r){var n={type:t,id:String(++T),date:new Date};e&&(n.message=e),r&&(n.data=r),function(t){for(var e=0;e<L.length;e++)try{L[e](t)}catch(r){console.error(r)}}(n)};"undefined"!==typeof window&&(window.__ledgerLogsListen=function(t){return L.push(t),function(){var e=L.indexOf(t);-1!==e&&(L[e]=L[L.length-1],L.pop())}});var j=r(48764).Buffer,D=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),B=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{a(n.next(t))}catch(e){o(e)}}function u(t){try{a(n.throw(t))}catch(e){o(e)}}function a(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,u)}a((n=n.apply(t,e||[])).next())}))},U=function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(u){o=[6,u],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},P=function(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(error){i={error:error}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},C=[{vendorId:11415}],z=function(){return Promise.resolve(!(!window.navigator||!window.navigator.hid))},F=function(){var t=navigator.hid;if(!t)throw new c.TransportError("navigator.hid is not supported","HIDNotSupported");return t};function Y(){return B(this,void 0,void 0,(function(){var t;return U(this,(function(e){switch(e.label){case 0:return[4,F().requestDevice({filters:C})];case 1:return t=e.sent(),Array.isArray(t)?[2,t]:[2,[t]]}}))}))}function $(){return B(this,void 0,void 0,(function(){return U(this,(function(t){switch(t.label){case 0:return[4,F().getDevices()];case 1:return[2,t.sent().filter((function(t){return 11415===t.vendorId}))]}}))}))}var G=function(t){function e(e){var r=t.call(this)||this;return r.channel=Math.floor(65535*Math.random()),r.packetSize=64,r.input
1s=[],r.read=function(){return r.inputs.length?Promise.resolve(r.inputs.shift()):new Promise((function(t){r.inputCallback=t}))},r.onInputReport=function(t){var e=j.from(t.data.buffer);r.inputCallback?(r.inputCallback(e),r.inputCallback=null):r.inputs.push(e)},r._disconnectEmitted=!1,r._emitDisconnect=function(t){r._disconnectEmitted||(r._disconnectEmitted=!0,r.emit("disconnect",t))},r.exchange=function(t){return B(r,void 0,void 0,(function(){var e=this;return U(this,(function(r){switch(r.label){case 0:return[4,this.exchangeAtomicImpl((function(){return B(e,void 0,void 0,(function(){var e,r,n,i,o,s,u,a,c;return U(this,(function(h){switch(h.label){case 0:r=(e=this).channel,n=e.packetSize,R("apdu","=> "+t.toString("hex")),i=(0,m.Z)(r,n),o=i.makeBlocks(t),s=0,h.label=1;case 1:return s<o.length?[4,this.device.sendReport(0,o[s])]:[3,4];case 2:h.sent(),h.label=3;case 3:return s++,[3,1];case 4:return(u=i.getReducedResult(a))?[3,6]:[4,this.read()];case 5:return c=h.sent(),a=i.reduceResponse(a,c),[3,4];case 6:return R("apdu","<= "+u.toString("hex")),[2,u]}}))}))})).catch((function(t){if(t&&t.message&&t.message.includes("write"))throw e._emitDisconnect(t),new c.DisconnectedDeviceDuringOperation(t.message);throw t}))];case 1:return[2,r.sent()]}}))}))},r.device=e,r.deviceModel="number"===typeof e.productId?A(e.productId):void 0,e.addEventListener("inputreport",r.onInputReport),r}return D(e,t),e.request=function(){return B(this,void 0,void 0,(function(){var t,r;return U(this,(function(n){switch(n.label){case 0:return[4,Y()];case 1:return t=P.apply(void 0,[n.sent(),1]),r=t[0],[2,e.open(r)]}}))}))},e.openConnected=function(){return B(this,void 0,void 0,(function(){var t;return U(this,(function(r){switch(r.label){case 0:return[4,$()];case 1:return 0===(t=r.sent()).length?[2,null]:[2,e.open(t[0])]}}))}))},e.open=function(t){return B(this,void 0,void 0,(function(){var r,n;return U(this,(function(i){switch(i.label){case 0:return[4,t.open()];case 1:return i.sent(),r=new e(t),n=function(e){t===e.device&&(F().removeEventListener("disconnect",n),r._emitDisconnect(new c.DisconnectedDevice))},F().addEventListener("disconnect",n),[2,r]}}))}))},e.prototype.close=function(){return B(this,void 0,void 0,(function(){return U(this,(function(t){switch(t.label){case 0:return[4,this.exchangeBusyPromise];case 1:return t.sent(),this.device.removeEventListener("inputreport",this.onInputReport),[4,this.device.close()];case 2:return t.sent(),[2]}}))}))},e.prototype.setScrambleKey=function(){},e.isSupported=z,e.list=$,e.listen=function(t){var e=!1;return function(){return B(this,void 0,void 0,(function(){var t;return U(this,(function(e){switch(e.label){case 0:return[4,$()];case 1:return(t=e.sent()).length>0?[2,t[0]]:[4,Y()];case 2:return[2,e.sent()[0]]}}))}))}().then((function(r){if(r){if(!e){var n="number"===typeof r.productId?A(r.productId):void 0;t.next({type:"add",descriptor:r,deviceModel:n}),t.complete()}}else t.error(new c.TransportOpenUserCancelled("Access denied to use Ledger device"))}),(function(e){t.error(new c.TransportOpenUserCancelled(e.message))})),{unsubscribe:function(){e=!0}}},e}(v),Z=r(4004),K=r(394),q=r(59917),Q=r(48764).Buffer;var W=function(t,e,r,n){var i=function(t){return e=t,(null!=(n=r)&&"undefined"!==typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](e):e instanceof n)?t:new r((function(e){e(t)}));var e,n};return new(r||(r=Promise))((function(r,o){var s=function(t){try{a(n.next(t))}catch(e){o(e)}},u=function(t){try{a(n.throw(t))}catch(e){o(e)}},a=function(t){t.done?r(t.value):i(t.value).then(s,u)};a((n=n.apply(t,e||[])).next())}))};function V(t){return(2147483648|t)>>>0}var H=255;function X(t,e){return W(this,void 0,void 0,s().mark((function r(){var n;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,tt(t,5,0,e);case 2:return n=r.sent,r.abrupt("return",new q.nh(n));case 4:case"end":return r.stop()}}),r)})))}function J(t,e,r){return W(this,void 0,void 0,s().mark((function n(){var i,o,u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(i=Q.alloc(1)).writeUInt8(1,0),o=e.serializeMessage(),u=Q.concat([i,r,o]),n.next=6,tt(t,6,1,u);case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}}),n)})))}function tt(t,e,r,n){return W(this,void 0,void 0,s().mark((function i(){var o,u,a,h,l;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=0,u=0,!(n.length>H)){i.next=14;break}case 3:if(!(n.length-u>H)){i.next=14;break}return a=n.slice(u,u+H),i.next=7,t.send(224,e,r,2|o,a);case 7:if(2===i.sent.length){i.next=10;break}throw new c.TransportStatusError(c.StatusCodes.INCORRECT_DATA);case 10:o|=1,u+=H,i.next=3;break;case 14:return h=n.slice(u),i.next=17,t.send(224,e,r,o,h);case 17:return l=i.sent,i.abrupt("return",l.slice(0,l.length-2));case 19:case"end":return i.stop()}}),i)})))}function et(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function rt(t){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function nt(t,e){return!e||"object"!==ot(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function it(t,e){return(it=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ot=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function st(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=rt(t);if(e){var i=rt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return nt(this,r)}}var ut=function(t,e,r,n){var i=function(t){return e=t,(null!=(n=r)&&"undefined"!==typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](e):e instanceof n)?t:new r((function(e){e(t)}));var e,n};return new(r||(r=Promise))((function(r,o){var s=function(t){try{a(n.next(t))}catch(e){o(e)}},u=function(t){try{a(n.throw(t))}catch(e){o(e)}},a=function(t){t.done?r(t.value):i(t.value).then(s,u)};a((n=n.apply(t,e||[])).next())}))},at=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&it(t,e)}(o,t);var e,r,n,i=st(o);function o(t){var e,r=void 0===t?{}:t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this))._disconnected=function(){var t=e._transport;t&&(t.off("disconnect",e._disconnected),e._transport=null,e._publicKey=null,e.emit("error",new Z.at),e.emit("disconnect"))},e._derivationPath=r.derivationPath||function(t,e){var r=void 0!==t?void 0===e?3:4:2,n=Q.alloc(1+4*r),i=n.writeUInt8(r,0);return i=n.writeUInt32BE(V(44),i),i=n.writeUInt32BE(V(501),i),void 0!==t&&(i=n.writeUInt32BE(V(t),i),void 0!==e&&n.writeUInt32BE(V(e),i)),n}(0,0),e._connecting=!1,e._transport=null,e._publicKey=null,e}return e=o,(r=[{key:"publicKey",get:function(){return this._publicKey}},{key:"ready",get:function(){return!!navigator.hid}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){return!!this._transport}},{key:"connect",value:function(){return ut(this,void 0,void 0,s().mark((function t(){var e,r;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!this.connected&&!this.connecting){t.next=3;break}return t.abrupt("return");case 3:return this._connecting=!0,t.prev=5,t.next=8,G.create();case 8:e=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new Z.$w(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 14:return t.prev=15,t.next=18,X(e,this._derivationPath);case 18:r=t.sent,t.next=24;break;
1case 21:throw t.prev=21,t.t1=t.catch(15),new Z.Nx(null===t.t1||void 0===t.t1?void 0:t.t1.message,t.t1);case 24:e.on("disconnect",this._disconnected),this._transport=e,this._publicKey=r,this.emit("connect"),t.next=34;break;case 30:throw t.prev=30,t.t2=t.catch(0),this.emit("error",t.t2),t.t2;case 34:return t.prev=34,this._connecting=!1,t.finish(34);case 37:case"end":return t.stop()}}),t,this,[[0,30,34,37],[5,11],[15,21]])})))}},{key:"disconnect",value:function(){return ut(this,void 0,void 0,s().mark((function t(){var e;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=this._transport)){t.next=13;break}return e.off("disconnect",this._disconnected),this._transport=null,this._publicKey=null,t.prev=5,t.next=8,e.close();case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(5),this.emit("error",new Z.UG(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0));case 13:this.emit("disconnect");case 14:case"end":return t.stop()}}),t,this,[[5,10]])})))}},{key:"signTransaction",value:function(t){return ut(this,void 0,void 0,s().mark((function e(){var r,n,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._transport,n=this._publicKey,r&&n){e.next=5;break}throw new Z.oS;case 5:return e.prev=5,e.next=8,J(r,t,this._derivationPath);case 8:i=e.sent,t.addSignature(n,i),e.next=15;break;case 12:throw e.prev=12,e.t0=e.catch(5),new Z.PY(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 15:return e.abrupt("return",t);case 18:throw e.prev=18,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 22:case"end":return e.stop()}}),e,this,[[0,18],[5,12]])})))}},{key:"signAllTransactions",value:function(t){return ut(this,void 0,void 0,s().mark((function e(){var r,n,i,o,u,a,c,h,l,f;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._transport,n=this._publicKey,r&&n){e.next=5;break}throw new Z.oS;case 5:e.prev=5,i=this._derivationPath,o=!0,u=!1,a=void 0,e.prev=8,c=t[Symbol.iterator]();case 10:if(o=(h=c.next()).done){e.next=19;break}return l=h.value,e.next=14,J(r,l,i);case 14:f=e.sent,l.addSignature(n,f);case 16:o=!0,e.next=10;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(8),u=!0,a=e.t0;case 25:e.prev=25,e.prev=26,o||null==c.return||c.return();case 28:if(e.prev=28,!u){e.next=31;break}throw a;case 31:return e.finish(28);case 32:return e.finish(25);case 33:e.next=38;break;case 35:throw e.prev=35,e.t1=e.catch(5),new Z.PY(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 38:return e.abrupt("return",t);case 41:throw e.prev=41,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 45:case"end":return e.stop()}}),e,this,[[0,41],[5,35],[8,21,25,33],[26,,28,32]])})))}}])&&et(e.prototype,r),n&&et(e,n),o}(K.s),ct=r(49501),ht=function(t){var e=void 0===t?{}:t;return{name:ct.w.Ledger,url:"https://ledger.com",icon:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzUgMzUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZiI+PHBhdGggZD0ibTIzLjU4OCAwaC0xNnYyMS41ODNoMjEuNnYtMTZhNS41ODUgNS41ODUgMCAwIDAgLTUuNi01LjU4M3oiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUuNzM5KSIvPjxwYXRoIGQ9Im04LjM0MiAwaC0yLjc1N2E1LjU4NSA1LjU4NSAwIDAgMCAtNS41ODUgNS41ODV2Mi43NTdoOC4zNDJ6Ii8+PHBhdGggZD0ibTAgNy41OWg4LjM0MnY4LjM0MmgtOC4zNDJ6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDUuNzM5KSIvPjxwYXRoIGQ9Im0xNS4xOCAyMy40NTFoMi43NTdhNS41ODUgNS41ODUgMCAwIDAgNS41ODUtNS42di0yLjY3MWgtOC4zNDJ6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMS40NzggMTEuNDc4KSIvPjxwYXRoIGQ9Im03LjU5IDE1LjE4aDguMzQydjguMzQyaC04LjM0MnoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUuNzM5IDExLjQ3OCkiLz48cGF0aCBkPSJtMCAxNS4xOHYyLjc1N2E1LjU4NSA1LjU4NSAwIDAgMCA1LjU4NSA1LjU4NWgyLjc1N3YtOC4zNDJ6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDExLjQ3OCkiLz48L2c+PC9zdmc+",adapter:function(){return new at(e)}}}},76023:function(t,e,r){"use strict";r.d(e,{y:function(){return b}});var n=r(28520),i=r.n(n),o=r(4004),s=r(92983),u=r(394),a=r(59917);function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return null!=e&&"undefined"!==typeof Symbol&&e[Symbol.hasInstance]?e[
1Symbol.hasInstance](t):t instanceof e}function p(t,e){return!e||"object"!==y(e)&&"function"!==typeof e?c(t):e}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var y=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function v(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=l(t);if(e){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}var m=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=function(t){try{a(n.next(t))}catch(e){o(e)}},u=function(t){try{a(n.throw(t))}catch(e){o(e)}},a=function(t){var e;t.done?i(t.value):(e=t.value,f(e,r)?e:new r((function(t){t(e)}))).then(s,u)};a((n=n.apply(t,e||[])).next())}))},g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(l,t);var e,r,n,u=v(l);function l(t){var e,r=void 0===t?{}:t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=u.call(this))._disconnected=function(){var t=e._wallet;t&&(t.off("disconnect",e._disconnected),e._wallet=null,e._publicKey=null,e.emit("error",new o.at),e.emit("disconnect"))},e._connecting=!1,e._wallet=null,e._publicKey=null,e.ready||(0,s._)(c(e),r.pollInterval||1e3,r.pollCount||3),e}return e=l,(r=[{key:"publicKey",get:function(){return this._publicKey}},{key:"ready",get:function(){var t;return!!(null===(t=window.solana)||void 0===t?void 0:t.isPhantom)}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.isConnected)}},{key:"connect",value:function(){return m(this,void 0,void 0,i().mark((function t(){var e,r,n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!this.connected&&!this.connecting){t.next=3;break}return t.abrupt("return");case 3:if(this._connecting=!0,e=window.solana){t.next=7;break}throw new o.l5;case 7:if(e.isPhantom){t.next=9;break}throw new o.Yf;case 9:if(e.isConnected){t.next=24;break}return r=e._handleDisconnect,t.prev=11,t.next=14,new Promise((function(t,n){var i=function(){e.off("connect",i),t()};e._handleDisconnect=function(){for(var t=arguments.length,s=new Array(t),u=0;u<t;u++)s[u]=arguments[u];return e.off("connect",i),n(new o.hd),r.apply(e,s)},e.on("connect",i),e.connect().catch((function(t){e.off("connect",i),n(t)}))}));case 14:t.next=21;break;case 16:if(t.prev=16,t.t0=t.catch(11),!f(t.t0,o.lj)){t.next=20;break}throw t.t0;case 20:throw new o.$w(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 21:return t.prev=21,e._handleDisconnect=r,t.finish(21);case 24:if(e.publicKey){t.next=26;break}throw new o.$w;case 26:t.prev=27,n=new a.nh(e.publicKey.toBytes()),t.next=34;break;case 31:throw t.prev=31,t.t1=t.catch(27),new o.Nx(null===t.t1||void 0===t.t1?void 0:t.t1.message,t.t1);case 34:e.on("disconnect",this._disconnected),this._wallet=e,this._publicKey=n,this.emit("connect"),t.next=44;break;case 40:throw t.prev=40,t.t2=t.catch(0),this.emit("error",t.t2),t.t2;case 44:return t.prev=44,this._connecting=!1,t.finish(44);case 47:case"end":return t.stop()}}),t,this,[[0,40,44,47],[11,16,21,24],[27,31]])})))}},{key:"disconnect",value:function(){return m(this,void 0,void 0,i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=this._wallet)){t.next=13;break}return e.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,t.prev=5,t.next=8,e.disconnect();case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(5),this.emit("error",new o.UG(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0));
1case 13:this.emit("disconnect");case 14:case"end":return t.stop()}}),t,this,[[5,10]])})))}},{key:"signTransaction",value:function(t){return m(this,void 0,void 0,i().mark((function e(){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new o.oS;case 4:return e.prev=4,e.next=7,r.signTransaction(t);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=t;case 10:return e.abrupt("return",e.t0);case 13:throw e.prev=13,e.t1=e.catch(4),new o.PY(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 16:e.next=22;break;case 18:throw e.prev=18,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 22:case"end":return e.stop()}}),e,this,[[0,18],[4,13]])})))}},{key:"signAllTransactions",value:function(t){return m(this,void 0,void 0,i().mark((function e(){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new o.oS;case 4:return e.prev=4,e.next=7,r.signAllTransactions(t);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=t;case 10:return e.abrupt("return",e.t0);case 13:throw e.prev=13,e.t1=e.catch(4),new o.PY(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 16:e.next=22;break;case 18:throw e.prev=18,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 22:case"end":return e.stop()}}),e,this,[[0,18],[4,13]])})))}},{key:"signMessage",value:function(t){return m(this,void 0,void 0,i().mark((function e(){var r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new o.oS;case 4:return e.prev=4,e.next=7,r.signMessage(t);case 7:return n=e.sent.signature,e.abrupt("return",Uint8Array.from(n));case 11:throw e.prev=11,e.t0=e.catch(4),new o.PY(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 14:e.next=20;break;case 16:throw e.prev=16,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 20:case"end":return e.stop()}}),e,this,[[0,16],[4,11]])})))}}])&&h(e.prototype,r),n&&h(e,n),l}(u.e),w=r(49501),b=function(t){var e=void 0===t?{}:t;return{name:w.w.Phantom,url:"https://phantom.app",icon:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjM0IiB3aWR0aD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iLjUiIHgyPSIuNSIgeTE9IjAiIHkyPSIxIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiM1MzRiYjEiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM1NTFiZjkiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9Ii41IiB4Mj0iLjUiIHkxPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii44MiIvPjwvbGluZWFyR3JhZGllbnQ+PGNpcmNsZSBjeD0iMTciIGN5PSIxNyIgZmlsbD0idXJsKCNhKSIgcj0iMTciLz48cGF0aCBkPSJtMjkuMTcwMiAxNy4yMDcxaC0yLjk5NjljMC02LjEwNzQtNC45NjgzLTExLjA1ODE3LTExLjA5NzUtMTEuMDU4MTctNi4wNTMyNSAwLTEwLjk3NDYzIDQuODI5NTctMTEuMDk1MDggMTAuODMyMzctLjEyNDYxIDYuMjA1IDUuNzE3NTIgMTEuNTkzMiAxMS45NDUzOCAxMS41OTMyaC43ODM0YzUuNDkwNiAwIDEyLjg0OTctNC4yODI5IDEzLjk5OTUtOS41MDEzLjIxMjMtLjk2MTktLjU1MDItMS44NjYxLTEuNTM4OC0xLjg2NjF6bS0xOC41NDc5LjI3MjFjMCAuODE2Ny0uNjcwMzggMS40ODQ3LTEuNDkwMDEgMS40ODQ3LS44MTk2NCAwLTEuNDg5OTgtLjY2ODMtMS40ODk5OC0xLjQ4NDd2LTIuNDAxOWMwLS44MTY3LjY3MDM0LTEuNDg0NyAxLjQ4OTk4LTEuNDg0Ny44MTk2MyAwIDEuNDkwMDEuNjY4IDEuNDkwMDEgMS40ODQ3em01LjE3MzggMGMwIC44MTY3LS42NzAzIDEuNDg0Ny0xLjQ4OTkgMS40ODQ3LS44MTk3IDAtMS40OS0uNjY4My0xLjQ5LTEuNDg0N3YtMi40MDE5YzAtLjgxNjcuNjcwNi0xLjQ4NDcgMS40OS0xLjQ4NDcuODE5NiAwIDEuNDg5OS42NjggMS40ODk5IDEuNDg0N3oiIGZpbGw9InVybCgjYikiLz48L3N2Zz4K",adapter:function(){return new g(e)}}}},54508:function(t,e,r){"use strict";r.d(e,{W:function(){return E}});var n=r(28520),i=r.n(n),o=r(92983),s=r(4004),u=r(394),a=r(59917),c=r(77191),h=r.n(c);function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return null!=e&&"undefined"!==typeof Symbol&&e[Symbol.hasInstance]?e[
1Symbol.hasInstance](t):t instanceof e}function y(t,e){return!e||"object"!==m(e)&&"function"!==typeof e?l(t):e}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function g(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y(this,r)}}var w=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){var s=function(t){try{a(n.next(t))}catch(e){o(e)}},u=function(t){try{a(n.throw(t))}catch(e){o(e)}},a=function(t){var e;t.done?i(t.value):(e=t.value,d(e,r)?e:new r((function(t){t(e)}))).then(s,u)};a((n=n.apply(t,e||[])).next())}))},b=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(c,t);var e,r,n,u=g(c);function c(t){var e,r=void 0===t?{}:t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this))._connecting=!1,e._wallet=null,e._publicKey=null,e.ready||(0,o._)(l(e),r.pollInterval||1e3,r.pollCount||3),e}return e=c,(r=[{key:"publicKey",get:function(){return this._publicKey}},{key:"ready",get:function(){return!!window.Slope}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){return!!this._publicKey}},{key:"connect",value:function(){return w(this,void 0,void 0,i().mark((function t(){var e,r,n,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!this.connected&&!this.connecting){t.next=3;break}return t.abrupt("return");case 3:if(this._connecting=!0,window.Slope){t.next=6;break}throw new s.l5;case 6:return e=new window.Slope,t.prev=8,t.next=11,e.connect();case 11:if((n=t.sent.data).publicKey){t.next=14;break}throw new s.$w;case 14:r=n.publicKey,t.next=22;break;case 17:if(t.prev=17,t.t0=t.catch(8),!d(t.t0,s.lj)){t.next=21;break}throw t.t0;case 21:throw new s.$w(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 22:t.prev=23,o=new a.nh(r),t.next=30;break;case 27:throw t.prev=27,t.t1=t.catch(23),new s.Nx(null===t.t1||void 0===t.t1?void 0:t.t1.message,t.t1);case 30:this._wallet=e,this._publicKey=o,this.emit("connect"),t.next=39;break;case 35:throw t.prev=35,t.t2=t.catch(0),this.emit("error",t.t2),t.t2;case 39:return t.prev=39,this._connecting=!1,t.finish(39);case 42:case"end":return t.stop()}}),t,this,[[0,35,39,42],[8,17],[23,27]])})))}},{key:"disconnect",value:function(){return w(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=this._wallet)){t.next=16;break}return this._wallet=null,this._publicKey=null,t.prev=4,t.next=7,e.disconnect();case 7:if("ok"===(r=t.sent.msg)){t.next=10;break}throw new s.UG(r);case 10:t.next=16;break;case 12:t.prev=12,t.t0=t.catch(4),d(t.t0,s.lj)||(error=new s.UG(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0)),this.emit("error",t.t0);case 16:this.emit("disconnect");case 17:case"end":return t.stop()}}),t,this,[[4,12]])})))}},{key:"signTransaction",value:function(t){return w(this,void 0,void 0,i().mark((function e(){var r,n,o,u,c,l,f;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new s.oS;case 4:return e.prev=4,n=h().encode(t.serializeMessage()),e.next=8,r.signTransaction(n);case 8:if(o=e.sent,u=o.msg,(c=o.data).publicKey&&c.signature){e.next=13;break}throw new s.PY(u);case 13:return l=new a.nh(c.publicKey),f=h().decode(c.signature),t.addSignature(l,f),e.abrupt("return",t);case 19:if(e.prev=19,e.t0=e.catch(4),!d(e.t0,s.lj)){e.next=23;break}throw e.t0;case 23:throw new s.PY(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 24:e.next=30;break;
1case 26:throw e.prev=26,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 30:case"end":return e.stop()}}),e,this,[[0,26],[4,19]])})))}},{key:"signAllTransactions",value:function(t){var e;return w(this,void 0,void 0,i().mark((function r(){var n,o,u,c,l,f,p,y;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,n=this._wallet){r.next=4;break}throw new s.oS;case 4:return r.prev=4,o=t.map((function(t){return h().encode(t.serializeMessage())})),r.next=8,n.signAllTransactions(o);case 8:if(u=r.sent,c=u.msg,l=u.data,f=t.length,l.publicKey&&(null===(e=l.signatures)||void 0===e?void 0:e.length)===f){r.next=14;break}throw new s.PY(c);case 14:for(p=new a.nh(l.publicKey),y=0;y<f;y++)t[y].addSignature(p,h().decode(l.signatures[y]));return r.abrupt("return",t);case 19:if(r.prev=19,r.t0=r.catch(4),!d(r.t0,s.lj)){r.next=23;break}throw r.t0;case 23:throw new s.PY(null===r.t0||void 0===r.t0?void 0:r.t0.message,r.t0);case 24:r.next=30;break;case 26:throw r.prev=26,r.t1=r.catch(0),this.emit("error",r.t1),r.t1;case 30:case"end":return r.stop()}}),r,this,[[0,26],[4,19]])})))}},{key:"signMessage",value:function(t){return w(this,void 0,void 0,i().mark((function e(){var r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new s.oS;case 4:return e.prev=4,e.next=7,r.signMessage(t);case 7:return n=e.sent,e.abrupt("return",h().decode(n.data.signature));case 11:throw e.prev=11,e.t0=e.catch(4),new s.PY(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 14:e.next=20;break;case 16:throw e.prev=16,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 20:case"end":return e.stop()}}),e,this,[[0,16],[4,11]])})))}}])&&f(e.prototype,r),n&&f(e,n),c}(u.e),M=r(49501),E=function(t){var e=void 0===t?{}:t;return{name:M.w.Slope,url:"https://slope.finance",icon:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjEyOCIgdmlld0JveD0iMCAwIDEyOCAxMjgiIHdpZHRoPSIxMjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iNjQiIGN5PSI2NCIgZmlsbD0iIzZlNjZmYSIgcj0iNjQiLz48ZyBmaWxsPSIjZmZmIj48cGF0aCBkPSJtMzUuMTk2MyA1NC4zOTk4aDE5LjJ2MTkuMmgtMTkuMnoiLz48cGF0aCBkPSJtNzMuNTk3IDU0LjM5OTgtMTkuMiAxOS4ydi0xOS4ybDE5LjItMTkuMnoiIGZpbGwtb3BhY2l0eT0iLjQiLz48cGF0aCBkPSJtNzMuNTk3IDczLjU5OTgtMTkuMiAxOS4ydi0xOS4ybDE5LjItMTkuMnoiIGZpbGwtb3BhY2l0eT0iLjc1Ii8+PHBhdGggZD0ibTczLjYwNCA1NC4zOTk4aDE5LjJ2MTkuMmgtMTkuMnoiLz48cGF0aCBkPSJtNTQuMzk2OCAzNS4yIDE5LjItMTkuMnYxOS4ybC0xOS4yIDE5LjJoLTE5LjJ6IiBmaWxsLW9wYWNpdHk9Ii43NSIvPjxwYXRoIGQ9Im03My41OTE1IDkyLjgtMTkuMiAxOS4ydi0xOS4ybDE5LjItMTkuMmgxOS4yeiIgZmlsbC1vcGFjaXR5PSIuNCIvPjwvZz48L3N2Zz4=",adapter:function(){return new b(e)}}}},96269:function(t,e,r){"use strict";r.d(e,{I:function(){return w}});var n=r(28520),i=r.n(n),o=r(4004),s=r(92983),u=r(394),a=r(59917);function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return!e||"object"!==d(e)&&"function"!==typeof e?c(t):e}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function y(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=l(t);if(e){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return f(this,r)}}var v=function(t,e,r,n){var i=function(t){return e=t,(null!=(n=r)&&"undefined"!==typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](e):e instanceof n)?t:new r((function(e){e(t)}));var e,n};return new(r||(r=Promise))((function(r,o){var s=function(t){try{a(n.next(t))}catch(e){o(e)}},u=function(t){try{a(n.throw(t))}catch(e){o(e)}},a=function(t){t.done?r(t.value):i(t.value).then(s,u)};a((n=n.apply(t,e||[])).next())}))},m=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(l,t);var e,r,n,u=y(l);function l(t){var e,r=void 0===t?{}:t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=u.call(this))._disconnected=function(){var t=e._wallet;t&&(t.off("disconnect",e._disconnected),e._wallet=null,e._publicKey=null,e.emit("error",new o.at),e.emit("disconnect"))},e._connecting=!1,e._wallet=null,e._publicKey=null,e.ready||(0,s._)(c(e),r.pollInterval||1e3,r.pollCount||3),e}return e=l,(r=[{key:"publicKey",get:function(){return this._publicKey}},{key:"ready",get:function(){var t;return!!(null===(t=window.solflare)||void 0===t?void 0:t.isSolflare)}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){var t;return!!(null===(t=this._wallet)||void 0===t?void 0:t.isConnected)}},{key:"connect",value:function(){return v(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!this.connected&&!this.connecting){t.next=3;break}return t.abrupt("return");case 3:if(this._connecting=!0,e=window.solflare){t.next=7;break}throw new o.l5;case 7:if(e.isSolflare){t.next=9;break}throw new o.Yf;case 9:if(e.isConnected){t.next=18;break}return t.prev=10,t.next=13,e.connect();case 13:t.next=18;break;case 15:throw t.prev=15,t.t0=t.catch(10),new o.$w(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 18:if(e.publicKey){t.next=20;break}throw new o.$w;case 20:t.prev=21,r=new a.nh(e.publicKey.toBytes()),t.next=28;break;case 25:throw t.prev=25,t.t1=t.catch(21),new o.Nx(null===t.t1||void 0===t.t1?void 0:t.t1.message,t.t1);case 28:e.on("disconnect",this._disconnected),this._wallet=e,this._publicKey=r,this.emit
1("connect"),t.next=38;break;case 34:throw t.prev=34,t.t2=t.catch(0),this.emit("error",t.t2),t.t2;case 38:return t.prev=38,this._connecting=!1,t.finish(38);case 41:case"end":return t.stop()}}),t,this,[[0,34,38,41],[10,15],[21,25]])})))}},{key:"disconnect",value:function(){return v(this,void 0,void 0,i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=this._wallet)){t.next=13;break}return e.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,t.prev=5,t.next=8,e.disconnect();case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(5),this.emit("error",new o.UG(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0));case 13:this.emit("disconnect");case 14:case"end":return t.stop()}}),t,this,[[5,10]])})))}},{key:"signTransaction",value:function(t){return v(this,void 0,void 0,i().mark((function e(){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new o.oS;case 4:return e.prev=4,e.next=7,r.signTransaction(t);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=t;case 10:return e.abrupt("return",e.t0);case 13:throw e.prev=13,e.t1=e.catch(4),new o.PY(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 16:e.next=22;break;case 18:throw e.prev=18,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 22:case"end":return e.stop()}}),e,this,[[0,18],[4,13]])})))}},{key:"signAllTransactions",value:function(t){return v(this,void 0,void 0,i().mark((function e(){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new o.oS;case 4:return e.prev=4,e.next=7,r.signAllTransactions(t);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=t;case 10:return e.abrupt("return",e.t0);case 13:throw e.prev=13,e.t1=e.catch(4),new o.PY(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 16:e.next=22;break;case 18:throw e.prev=18,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 22:case"end":return e.stop()}}),e,this,[[0,18],[4,13]])})))}},{key:"signMessage",value:function(t){return v(this,void 0,void 0,i().mark((function e(){var r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new o.oS;case 4:return e.prev=4,e.next=7,r.signMessage(t,"utf8");case 7:return n=e.sent.signature,e.abrupt("return",Uint8Array.from(n));case 11:throw e.prev=11,e.t0=e.catch(4),new o.PY(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 14:e.next=20;break;case 16:throw e.prev=16,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 20:case"end":return e.stop()}}),e,this,[[0,16],[4,11]])})))}}])&&h(e.prototype,r),n&&h(e,n),l}(u.e),g=r(49501),w=function(t){var e=void 0===t?{}:t;return{name:g.w.Solflare,url:"https://solflare.com",icon:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjUwIiB2aWV3Qm94PSIwIDAgNTAgNTAiIHdpZHRoPSI1MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGxpbmVhckdyYWRpZW50IGlkPSJhIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmZmMxMGIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmYjNmMmUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSI2LjQ3ODM1IiB4Mj0iMzQuOTEwNyIgeGxpbms6aHJlZj0iI2EiIHkxPSI3LjkyIiB5Mj0iMzMuNjU5MyIvPjxyYWRpYWxHcmFkaWVudCBpZD0iYyIgY3g9IjAiIGN5PSIwIiBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDQuOTkyMTg4MzIgMTIuMDYzODc5NjMgLTEyLjE4MTEzNjU1IDUuMDQwNzEwNzQgMjIuNTIwMiAyMC42MTgzKSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHI9IjEiIHhsaW5rOmhyZWY9IiNhIi8+PHBhdGggZD0ibTI1LjE3MDggNDcuOTEwNGMuNTI1IDAgLjk1MDcuNDIxLjk1MDcuOTQwM3MtLjQyNTcuOTQwMi0uOTUwNy45NDAyLS45NTA3LS40MjA5LS45NTA3LS45NDAyLjQyNTctLjk0MDMuOTUwNy0uOTQwM3ptLTEuMDMyOC00NC45MTU2NWMuNDY0Ni4wMzgzNi44Mzk4LjM5MDQuOTAyNy44NDY4MWwxLjEzMDcgOC4yMTU3NGMuMzc5OCAyLjcxNDMgMy42NTM1IDMuODkwNCA1LjY3NDMgMi4wNDU5bDExLjMyOTEtMTAuMzExNThjLjI3MzMtLjI0ODczLjY5ODktLjIzMTQ5Ljk1MDcuMDM4NTEuMjMwOS4yNDc3Mi4yMzc5LjYyNjk3LjAxNjEuODgyNzdsLTkuODc5MSAxMS4zOTU4Yy0xLjgxODcgMi4wOTQyLS40NzY4IDUuMzY0MyAyLjI5NTYgNS41OTc4bDguNzE2OC44NDAzYy40MzQxLjA0MTguNzUxNy40MjM0LjcwOTMuODUyNC0uMDM0OS4zNTM3
1LS4zMDc0LjYzOTUtLjY2MjguNjk0OWwtOS4xNTk0IDEuNDMwMmMtMi42NTkzLjM2MjUtMy44NjM2IDMuNTExNy0yLjEzMzkgNS41NTc2bDMuMjIgMy43OTYxYy4yNTk0LjMwNTguMjE4OC43NjE1LS4wOTA4IDEuMDE3OC0uMjYyMi4yMTcyLS42NDE5LjIyNTYtLjkxMzguMDIwM2wtMy45Njk0LTIuOTk3OGMtMi4xNDIxLTEuNjEwOS01LjIyOTctLjI0MTctNS40NTYxIDIuNDI0M2wtLjg3NDcgMTAuMzk3NmMtLjAzNjIuNDI5NS0uNDE3OC43NDg3LS44NTI1LjcxMy0uMzY5LS4wMzAzLS42NjcxLS4zMDk3LS43MTcxLS42NzIxbC0xLjM4NzEtMTAuMDQzN2MtLjM3MTctMi43MTQ0LTMuNjQ1NC0zLjg5MDQtNS42NzQzLTIuMDQ1OWwtMTIuMDUxOTUgMTAuOTc0Yy0uMjQ5NDcuMjI3MS0uNjM4MDkuMjExNC0uODY4LS4wMzUtLjIxMDk0LS4yMjYyLS4yMTczNS0uNTcyNC0uMDE0OTMtLjgwNmwxMC41MTgxOC0xMi4xMzg1YzEuODE4Ny0yLjA5NDIuNDg0OS01LjM2NDQtMi4yODc2LTUuNTk3OGwtOC43MTg3Mi0uODQwNWMtLjQzNDEzLS4wNDE4LS43NTE3Mi0uNDIzNS0uNzA5MzYtLjg1MjQuMDM0OTMtLjM1MzcuMzA3MzktLjYzOTQuNjYyNy0uNjk1bDkuMTUzMzgtMS40Mjk5YzIuNjU5NC0uMzYyNSAzLjg3MTgtMy41MTE3IDIuMTQyMS01LjU1NzZsLTIuMTkyLTIuNTg0MWMtLjMyMTctLjM3OTItLjI3MTMtLjk0NDMuMTEyNi0xLjI2MjEuMzI1My0uMjY5NC43OTYzLS4yNzk3IDEuMTMzNC0uMDI0OWwyLjY5MTggMi4wMzQ3YzIuMTQyMSAxLjYxMDkgNS4yMjk3LjI0MTcgNS40NTYxLTIuNDI0M2wuNzI0MS04LjU1OTk4Yy4wNDU3LS41NDA4LjUyNjUtLjk0MjU3IDEuMDczOS0uODk3Mzd6bS0yMy4xODczMyAyMC40Mzk2NWMuNTI1MDQgMCAuOTUwNjcuNDIxLjk1MDY3Ljk0MDNzLS40MjU2My45NDAzLS45NTA2Ny45NDAzYy0uNTI1MDQxIDAtLjk1MDY3LS40MjEtLjk1MDY3LS45NDAzcy40MjU2MjktLjk0MDMuOTUwNjctLjk0MDN6bTQ3LjY3OTczLS45NTQ3Yy41MjUgMCAuOTUwNy40MjEuOTUwNy45NDAzcy0uNDI1Ny45NDAyLS45NTA3Ljk0MDItLjk1MDctLjQyMDktLjk1MDctLjk0MDIuNDI1Ny0uOTQwMy45NTA3LS45NDAzem0tMjQuNjI5Ni0yMi40Nzk3Yy41MjUgMCAuOTUwNi40MjA5NzMuOTUwNi45NDAyNyAwIC41MTkzLS40MjU2Ljk0MDI3LS45NTA2Ljk0MDI3LS41MjUxIDAtLjk1MDctLjQyMDk3LS45NTA3LS45NDAyNyAwLS41MTkyOTcuNDI1Ni0uOTQwMjcuOTUwNy0uOTQwMjd6IiBmaWxsPSJ1cmwoI2IpIi8+PHBhdGggZD0ibTI0LjU3MSAzMi43NzkyYzQuOTU5NiAwIDguOTgwMi0zLjk3NjUgOC45ODAyLTguODgxOSAwLTQuOTA1My00LjAyMDYtOC44ODE5LTguOTgwMi04Ljg4MTlzLTguOTgwMiAzLjk3NjYtOC45ODAyIDguODgxOWMwIDQuOTA1NCA0LjAyMDYgOC44ODE5IDguOTgwMiA4Ljg4MTl6IiBmaWxsPSJ1cmwoI2MpIi8+PC9zdmc+",adapter:function(){return new m(e)}}}},1859:function(t,e,r){"use strict";r.d(e,{D:function(){return s}});var n=r(73788),i=r(49501),o=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r},s=function(t){var e=void 0===t?{}:t,r=(e.provider,o(e,["provider"]));return{name:i.w.Sollet,url:"https://www.sollet.io",icon:"data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjUzMCIgd2lkdGg9IjUzMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtLTEtMWg1MzJ2NTMyaC01MzJ6IiBmaWxsPSJub25lIi8+PGcgZmlsbD0iIzAwZmZhMyI+PHBhdGggZD0ibTg4Ljg4OTM1IDM3Mi45ODIwMWMzLjE5My0zLjE5IDcuNTIyLTQuOTgyIDEyLjAzNS00Ljk4Mmg0MTYuNDYxYzcuNTg2IDAgMTEuMzg0IDkuMTc0IDYuMDE3IDE0LjUzNmwtODIuMjkxIDgyLjIyNmMtMy4xOTMgMy4xOTEtNy41MjIgNC45ODMtMTIuMDM2IDQuOTgzaC00MTYuNDYwMWMtNy41ODY2IDAtMTEuMzg0NS05LjE3NC02LjAxNzgtMTQuNTM3bDgyLjI5MTktODIuMjI2eiIvPjxwYXRoIGQ9Im04OC44ODkzNSA2NS45ODI1YzMuMTkzLTMuMTkwNCA3LjUyMi00Ljk4MjUgMTIuMDM1LTQuOTgyNWg0MTYuNDYxYzcuNTg2IDAgMTEuMzg0IDkuMTczOSA2LjAxNyAxNC41MzYzbC04Mi4yOTEgODIuMjI2N2MtMy4xOTMgMy4xOS03LjUyMiA0Ljk4Mi0xMi4wMzYgNC45ODJoLTQxNi40NjAxYy03LjU4NjYgMC0xMS4zODQ1LTkuMTc0LTYuMDE3OC0xNC41MzZsODIuMjkxOS04Mi4yMjY1eiIvPjxwYXRoIGQ9Im00NDEuMTExMzUgMjE5LjEwOTVjLTMuMTkzLTMuMTktNy41MjItNC45ODItMTIuMDM2LTQuOTgyaC00MTYuNDYwMWMtNy41ODY2IDAtMTEuMzg0NSA5LjE3My02LjAxNzggMTQuNTM2bDgyLjI5MTkgODIuMjI2YzMuMTkzIDMuMTkgNy41MjIgNC45ODMgMTIuMDM1IDQuOTgzaDQxNi40NjFjNy41ODYgMCAxMS4zODQtOS4xNzQgNi4wMTctMTQuNTM3eiIvPjwvZz48L3N2Zz4=",adapter:function(){return new n.I(Object.assign({provider:"https://www.sollet.io"},r))}}}},75119:function(t,e,r){"use strict";r.d(e,{K:function(){return s}});var n=r(73788),i=r(49501),o=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r},s=function(t){var e=void 0===t?{}:t,r=(e.provider,o(e,["provider"]));return{name:i.w.SolletExtension,url:"https://chrome.google.com/webstore/detail/sollet/fhmfendgdocmcbmfikdcogofphimnkno",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAP50lEQVR4AeyZRZIcMRBFNbQ3MzSZVqalV2ZmuJXZTWZmOoZXZjiBtwapazOU8/9MThRcoEHZEa8zVCBF6P1iN/8r1f0QcKVGGC43/A
1jAsv9jWLYP1MHnUsP/w/qpcj1IuWH0EnRCN3REV+psHx0CR6d0C1LXYPavjAWAdbgEdOVZdPYJtTCQtnsPo+CG7tThWXU6XCYZ59k0jGhdVKqH93qUTytIFmvvyzcgXZ3N+6NLOqXbgushV1iwHon5pZ1MoE7ZhPY7fkpdCt3Scda5y5zyF2PD76n8IMbgkIYgfKdrdT7ssHAYoBFexyHfQkDXYNY9/5iEC3rNnwRiDDSTdE3nwLm19d9DpYb/wJV2zY8AdUzndM+j/wCwiYkMOqd7BuAG0sCFdvTHwxSd0z3f/H3mQtRpVmPQSV3TPc8Af9mwlzwRoa7pngGwU3+k0L2L98OOQfcu5gkwBjoAhgXAsAAYFgDDAmBYAAwLQEWpkmYKlykWgEGBYmsK2+tueFlz3cvKa15WXPWyTFkOVmDZKqxbi23W171U0v01IBaAnqZUz0unRIpdeMnLosteVkPulnaQnXc7sudJR468SOT060TOvEnk2MtEDjxLZNfDjmy7E2RTK8gqBGLx5bn9l16ZCw5DUMuEoVS3APSAeI+aHuWUtQjSNkIixc6wdw5AsjtdGy/z+17btm3btv3+bdu2bdvXtm3b9+4YSb/zy+ap25WaSTJ3Zie7Vd1VXdnhTuU8fdTnPH3quJJ5cHHVzNpSN5tznslVfFPzfMPwfWb/317jWqr5Zm/ZN+v3eWbG5rp5bFnVnDe5bH73ZNF87LacAIUGERj0GxwAsljx3HiEwJVVjvr+7RMFc/eCaiBEhKupoT/1vGe9zkUjCpB9Zd+MX18z504qm6/em8dkoCHQNL0GggPAWywb/Yor+oVw1MiSWbC9bgmXK6u9f9Y9CTt58j7er896Akh4rdZ9M3ljzRw6rITw0Qr4F70AggOAVj2rnRX4t2eLZulOCT4QloS2HwjmwIeAxBQobK2ybp9nzppQNu+5MQCCrZUa0wFgQFQ+dv79N+XM48uqhiHhMC113u3Bd7b8f/gXp48v8xvRSnIWeewA0M2Vj63/ySOFwMYzpN4ZPtNvZ1VHZ3og6K0yFwLCsl2e+dPTRX4npgkz1SkIHAAkfLz7fz5XxAZL+LErXs9FVbhAE532a8kmRIBrDoR7Flb5zUQO0gQOAJ2u/L8/W7SctHSCl3DtlZte1QsQyUDT8wISA9+EiOH1VwsEDgBtTdvm/+jhAnG6VptufKwgPEut95V9M31TvREiVgKn7bDhJbRJAKr/vlA0x4wqBSHeLXMrZvjqmlm525OmkcloS+MIBBv7PPOBm8lCOg3QttPHqsHb5wau2eMZhr2a41a9gDJhQ80cPKw/kUOqFzOCt04EwXxFeEXD8Lwyf/zvr9yTNyeMKZlJG2oSqKXqTfPfEckf9FV888nbc8okOgC0s/pxoBAQmTxGrQ3hz9xSN798vBDk+hHwG67Zn73TfLs1o8/z/8n4AQj2Db79QME8vKRqKqFWSDQLFgA+4QDQ/up/e6j6yewx5JTFCd8L58VTy+Ty+byEe0A33879AwK0BEAgI2g7l82Gns85ABz4ti0rcOKGmlZcqkQNtv3/L9kXydV3YZMp/D6AALDOnFAOVb5A4ADQ1W3cVzVu8i8fS179tto/aWwgfDaCZEYGxCxp02nxjno/OB0AujsV9hFLy/a38rol/CeWVfmMveoHFKDE98NWSzs5AHR1vqmx0t59Y84o2+c1W/3WTSY8/NLdeex+TzJv2gC6fnbFBqgDQBdXF+neREdLUcFTy6tEC9qE6ZmGOnpUyY4IHAA6trHW6sKeR9O99rBt/8HDSoR6fLanPsovLB/FAaDL6vWGGPVq32Di8i+G6v9tPYxQSO9+5s68KVSVC3AA6MpU8uexpVbyp8lQOnhL3jPvu6n3qVZVAq0OM5SeA0B3phJAw1bJw44HwPJdXia7bfxPfBUlheqeA0BXATByTToArNjtyfPPJFS9Y35FZWLBb9Ksu1RwZwB4bmU6AGwvZLPbJl/ltPFly1dxGqBnSSC7nPsb9+VVqt3zbOVvnigEQt6W98yOwv4JMHeXfLN2r8dOpANAuyvr/MnlRADIQTxxbIltXuUBel6djAZqNd/fmK4iKP1UqTd1dS1jbKWBZWfnbK33eIUhUF3pR2g5MU0SvqsISuldI0zsJl06dp1/bDLoiBEl85KwI6gnqy39qm5b+G43MAyxRmizJWYzSNoBe0tCCO0hEAzB3j0HAISGLSe1y96+ABBXDKKIYM1ez3zhrjw+ROZ1+Q4AnWfaWMlWpi0+GpA/sKvoU+xJJEENYPpqIAeAwVkKTlGmnRJOCgmZDLqGPntnXt28qv0basJxfQF40tM3h5U3KUGg9+UrvrltXoXafJJL7DGoidOBYahUBdOGjQBzFQk4fUOI3luu+ziUmAZIItAsgAFw2SwgDgCD2RQc9EJRWiAWBFEgRLt5t+Y9c/+iqvnbM0Xz4VuCtDNmgqhDvXyDkAXEtYYhJCpxk0EQAwQ5inboOGJNzZw9sUznEU4n0YccSLss3AEge+4fNIEqhVjR6buCo70DUTBobtjn4TzSJgZfECXgAI/iDzmRWRFAuO5ggQCBoL73ltQhnKANEsBgkz4wdC3WfFrC2O2j8ocEE1P7FVkAwfEDcFWS6HN35iFykmMYEWK7DCAR7RDxG/JVP9ie/vPTRRxHNBG/J0sgOIoYagBRzWdMKEPgZAOBa+p28OaNnaYVJQw8RPARYZoAoriKeg0CRxIle4xJ+PQdeXP7/AoFml2jjPGbOJHamVTvP23lJJmIIGxt4ADQY5OAJgAIOG43zamQDrYcvKhaN8yucQPBFvbtB/LUI2g307GEZUEZF5iFEAgfvjXXcN5K1AkgrAgY0rKIJTOBMBlVL+hIJmnFVrYKUxwAsgICjprCt+8/VDBXzahgu639BF2jgNDz7WsEBhXCH7yZrWwLBA4A2QGBq+hdAcW37s8HVG7PrqhB3RIN/aIcg20nmhjUAGrvoZcgcABI6Ovnb1Q0YCCef3fIJXxaCAhSxE3AkAgE+3mBYGfRM99sgO1VNggcALIHgzTD2y02cQGC7iIqfGlJgyDKzhCmSTYJKDIHVAl/7q68tqJdUehgnG+3AME2sTaGeA1yioeWVE2ftQuZlhcIwKhYFdC92WmAoXXABKsV9U3G71N35M0V08tmT8lPtRElEFRDENw8t8L36HsdAIbawROEdVQbf/L2PCwk0cqjliXrSi3z4OePwVYmU+AAMOQiineGyaaXhYWq+YTiFD2UPwDRlTqXnAYY4qHlSy7t47gZ2r+SWUstTfH7J4uirXMAGMqpZ4pGcBR/KOra2MYVOYQGvgPK0BwAUt1sdQnFdA9JKFkAARC8+NI+ziOSqm/pC0gDoDE4kIqE1NscAJLbp7hRMZPQKjMQ2GBYsrOe2LcgEFBP8IokM+A6g5j9BNFs6lC4GZ2spHeqBzDbOkVSy/FkVpYZYE+CzySTWTkA0AtAOTeFmzSJarLVy00lhav4OrMmVopSYBS3NpliySypKnIaICUAWtCw6mbD+y8AZB4dQFMjM9BsCABzt9UxX2m+2wFgkQDg+dG8vLZedRxLpplDEjzj1qWjs2GPAcC2kxp2APD9VjdTmyxDhs9oQ58HBa4DQAcAiBzEkM+Ue0dsJmkBQK0AIaQ
1DQIcAEAjYz8cMZOVU6SAJUr0pAEDI2PhcX6daywFAN/rfzxcpzQYAmXIYrNuXzgmk0eQ1nfktDgBWXA2TWGZx9dvD1c++gH5XQh4A6rtOIxcHADsUvNe6oVklgq6ekUxqLQ1w3OiSA0BnAMhepdrH2VEBvC2f7lALfjOElq/peFvYAUC2Fv6gHtPC9V/fGW4G0YSSxGImsM7cDJdhN36nA4DdtEkxJ1rAPihqwLeDX3SpCCuSj7OTuWLnUP5KF6qCHACkBViFrEhurjj83zYAq152+/8v3QfVTHBQhR2S+jFbwZv6PPP+LhJaOwBYQND5vKeMK1HrT/2eTg/pmPvHbjAh4UNZGC1gCFaTkbT6aVNrozDUAeDNEQAktWYJCDB8XDqtzAlimIWm3D8CRbOp17XaVQdIPd9vnyhS5m3Z/Hjhy/ZP3dSJ7Xe7gVZzZ/qz+ynVomsX7h+yheTfXwUgrIOjyeFT+s3zXHnM87z+svCsYXgGoYtha1rqPo3wpRngLfjyPW03h7iSMG7+pI01ncQRS/jAc8xW7Vz8jYkYs7aGv9BwxsrmP88X6QKiXDs4no7r754sBqePndUADSxi87bVoYmxfQ4LjPHCl9b613PFA1H9riQMZ+lDt+TMI0uqhpG+Pcs2DR3RxmikIpqw1b6Ef+xo2+t3JqDtIgu0ACoZj5sTRJuv8NTcPwIEU909zP2vN3mPHd75KbuD0ViHDEP4HR1j67iCxb0DCIi9qacrVGO4gPy0q9tPmAfEGKJohMMkOxW+A4DtDKqChpuKU3ZHEy6gmk3/wjTdH0nEkw8vqRLr27wAEr4DwEBwAaERNuc8CcACg1S7ZudCj36/HivMY9W/LOAeRviOI6gnXEAkfN57U84cOqwEEbStFaLaQc6ZgJE4oz6BzTMk8mnONaTdi80dEUG8zbGE9RYIRAuK6WHzPHJkCapXEkK20FpmEb3IjDqXfoQ5dFpjtV8wpSwKGKbNE6iOpl5PRxP3dqt7V04jfEBHjiiZm+dUzPCGhli8sx6c5VeoWs5jkytJJNq4yES+sKpmrp5ZMf94tggzKSnm6AEUmTt6jiaOaxP6F1QzgEBgrFQA8/6bcpBKNsBRgB08sN0khH71eMH87NGC+f6DBWhd6EriO8j/K3MIwKLs4YN5xbvuYAmLKWIGTAaCBByvtlLATFLCPMfrat54uz4/lM4PcABIBgaz6YYQr7kTQ/7XnhncNAyDUdhtxQKIIxJmF8QClZiMZAoOjMENOLABd8A5Fhfel/yQigmo8w5ffuPYF38P14pbxzgAxgEwDoBxAIwDYBwAB6CjYZYI7lPuSvViLJDpAqum3Je3qbN4URZDGf/7cc8O8BSXG3uqaZ3ZNe4JwG28qNRFYCoV9wTgWixsAQzOcZ/Ou9dV7svD9KL5A6EJxzjHPQFgF7iZDgXDpxeobXCMa5yLlJSItVAIhjtVBu2aXQCzwzGuxeg+ZT0E9Uy8jAOaC4HJIR/H4Xp0z4OfgI2gfaGBcwgaOBOYUn/k4xbHh85prMRvhzjN3XAfn4j3Qc2q/lh0BCA6nOEOcIlT3P5xveKRLtUQ1LUmA/1bJeVR9Stb/NGBs3CHw61IuJVjMTunAYc7AYfCjdCEjxP9fSV6TX5WfRf1/10gGZzgBkfhqscdDkXCKW7F7Fp8A1/JJyULf6X2AAAAAElFTkSuQmCC",adapter:function(){return new n.I(r)}}}},49501:function(t,e,r){"use strict";var n,i;r.d(e,{w:function(){return n}}),(i=n||(n={})).BitKeep="BitKeep",i.Bitpie="Bitpie",i.Blocto="Blocto",i.Clover="Clover",i.Coin98="Coin98",i.Coinhub="Coinhub",i.Ledger="Ledger",i.MathWallet="MathWallet",i.Phantom="Phantom",i.SafePal="SafePal",i.Slope="Slope",i.Solflare="Solflare",i.SolflareWeb="Solflare (Web)",i.Sollet="Sollet",i.SolletExtension="Sollet (Extension)",i.Solong="Solong",i.TokenPocket="TokenPocket",i.Torus="Torus"},35666:function(t){var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function a(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(T){a=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new O(n||[]);return o._invoke=function(t,e,r){var n=l;return function(i,o){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===i)throw o;return N()}for(r.method=i,r.arg=o;;){var s=r.delegate;if(s){var u=I(s,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var a=h(t,e,r);if("normal"===a.type){if(n=r.done?d:f,a.arg===y)continue;return{value:a.arg,done:r.done}}"throw"===a.type&&(n=d,r.method="throw",r.arg=a.arg)}}}(t,r,s),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(T){return{type:"throw",arg:T}}}t.wrap=c;var l="suspendedStart",f="suspendedYield",p="executing",d="completed",y={};function v(){}function m(){}function g(){}var w={};a(w,o,(function(){return this}));var b=Object.getPrototypeOf,M=b&&b(b(k([])));M&&M!==r&&n.call(M,o)&&(w=M);var E=g.prototype=v.prototype=Object.create(w);function A(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(i,o,s,u){var a=h(t[i],t,o);if("throw"!==a.type){var c=a.arg,l=c.value;return l&&"object"===typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(l).then((function(t){c.value=t,s(c)}),(function(t){return r("throw",t,s,u)}))}u(a.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}
vendor: 4,562 bytes, line 1
1))}return i=i?i.then(o,o):o()}}function I(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,I(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var i=h(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function k(t){if(t){var r=t[o];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,s=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return s.next=s}}return{next:N}}function N(){return{value:e,done:!0}}return m.prototype=g,a(E,"constructor",g),a(g,"constructor",m),m.displayName=a(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,a(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},A(x.prototype),a(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var s=new x(c(e,r,n,i),o);return t.isGeneratorFunction(r)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},A(E),a(E,u,"Generator"),a(E,o,(function(){return this})),a(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=k,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return u.type="throw",u.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],u=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var a=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(a&&c){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(a){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(r){"object"===typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},83937:function(t,e,r){"use strict";var n=r(95318);e.K=void 0;
1var i=n(r(34575)),o=n(r(2205)),s=n(r(78585)),u=n(r(29754)),a=n(r(89062));function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,u.default)(t);if(e){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var h=function(t){(0,o.default)(r,t);var e=c(r);function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ws://localhost:8080",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.autoconnect,s=void 0===o||o,u=n.reconnect,c=void 0===u||u,h=n.reconnect_interval,l=void 0===h?1e3:h,f=n.max_reconnects,p=void 0===f?5:f,d=arguments.length>2?arguments[2]:void 0;return(0,i.default)(this,r),e.call(this,a.default,t,{autoconnect:s,reconnect:c,reconnect_interval:l,max_reconnects:p},d)}return r}(n(r(66855)).default);e.K=h},66855:function(t,e,r){"use strict";var n=r(48764).Buffer,i=r(95318);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(r(87757)),s=i(r(48926)),u=i(r(50008)),a=i(r(34575)),c=i(r(93913)),h=i(r(2205)),l=i(r(78585)),f=i(r(29754)),p=r(26729),d=i(r(37953));function y(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,f.default)(t);if(e){var i=(0,f.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,l.default)(this,r)}}var v=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r},m=function(t){(0,h.default)(r,t);var e=y(r);function r(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ws://localhost:8080",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;(0,a.default)(this,r);var u=o.autoconnect,c=void 0===u||u,h=o.reconnect,l=void 0===h||h,f=o.reconnect_interval,p=void 0===f?1e3:f,d=o.max_reconnects,y=void 0===d?5:d,m=v(o,["autoconnect","reconnect","reconnect_interval","max_reconnects"]);return(n=e.call(this)).webSocketFactory=t,n.queue={},n.rpc_id=0,n.address=i,n.autoconnect=c,n.ready=!1,n.reconnect=l,n.reconnect_interval=p,n.max_reconnects=y,n.rest_options=m,n.current_reconnects=0,n.generate_request_id=s||function(){return++n.rpc_id},n.autoconnect&&n._connect(n.address,Object.assign({autoconnect:n.autoconnect,reconnect:n.reconnect,reconnect_interval:n.reconnect_interval,max_reconnects:n.max_reconnects},n.rest_options)),n}return(0,c.default)(r,[{key:"connect",value:function(){this.socket||this._connect(this.address,Object.assign({autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects},this.rest_options))}},{key:"call",value:function(t,e,r,n){var i=this;return n||"object"!==(0,u.default)(r)||(n=r,r=null),new Promise((function(o,s){if(!i.ready)return s(new Error("socket not ready"));var u=i.generate_request_id(t,e),a={jsonrpc:"2.0",method:t,params:e||null,id:u};i.socket.send(JSON.stringify(a),n,(function(t){if(t)return s(t);i.queue[u]={promise:[o,s]},r&&(i.queue[u].timeout=setTimeout((function(){delete i.queue[u],s(new Error("reply timeout"))}),r))}))}))}},{key:"login",value:function(){var t=(0,s.default)(o.default.mark((function t(e){var r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.call("rpc.login",e);case 2:if(r=t.sent){t.next=5;break}throw new Error("authentication failed");case 5:return t.abrupt("return",r);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"listMethods",value:function(){var t=(0,s.default)(o.default.mark((function t(){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.call("__listMethods");case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"notify",value:function(t,e){var r=this;
1return new Promise((function(n,i){if(!r.ready)return i(new Error("socket not ready"));var o={jsonrpc:"2.0",method:t,params:e||null};r.socket.send(JSON.stringify(o),(function(t){if(t)return i(t);n()}))}))}},{key:"subscribe",value:function(){var t=(0,s.default)(o.default.mark((function t(e){var r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"string"===typeof e&&(e=[e]),t.next=3,this.call("rpc.on",e);case 3:if(r=t.sent,"string"!==typeof e||"ok"===r[e]){t.next=6;break}throw new Error("Failed subscribing to an event '"+e+"' with: "+r[e]);case 6:return t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"unsubscribe",value:function(){var t=(0,s.default)(o.default.mark((function t(e){var r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"string"===typeof e&&(e=[e]),t.next=3,this.call("rpc.off",e);case 3:if(r=t.sent,"string"!==typeof e||"ok"===r[e]){t.next=6;break}throw new Error("Failed unsubscribing from an event with: "+r);case 6:return t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"close",value:function(t,e){this.socket.close(t||1e3,e)}},{key:"_connect",value:function(t,e){var r=this;this.socket=this.webSocketFactory(t,e),this.socket.addEventListener("open",(function(){r.ready=!0,r.emit("open"),r.current_reconnects=0})),this.socket.addEventListener("message",(function(t){var e=t.data;e instanceof ArrayBuffer&&(e=n.from(e).toString());try{e=d.default.parse(e)}catch(error){return}if(e.notification&&r.listeners(e.notification).length){if(!Object.keys(e.params).length)return r.emit(e.notification);var i=[e.notification];if(e.params.constructor===Object)i.push(e.params);else for(var o=0;o<e.params.length;o++)i.push(e.params[o]);return Promise.resolve().then((function(){r.emit.apply(r,i)}))}if(!r.queue[e.id])return e.method&&e.params?Promise.resolve().then((function(){r.emit(e.method,e.params)})):void 0;"error"in e==="result"in e&&r.queue[e.id].promise[1](new Error('Server response malformed. Response must include either "result" or "error", but not both.')),r.queue[e.id].timeout&&clearTimeout(r.queue[e.id].timeout),e.error?r.queue[e.id].promise[1](e.error):r.queue[e.id].promise[0](e.result),delete r.queue[e.id]})),this.socket.addEventListener("error",(function(t){return r.emit("error",t)})),this.socket.addEventListener("close",(function(n){var i=n.code,o=n.reason;r.ready&&setTimeout((function(){return r.emit("close",i,o)}),0),r.ready=!1,r.socket=void 0,1e3!==i&&(r.current_reconnects++,r.reconnect&&(r.max_reconnects>r.current_reconnects||0===r.max_reconnects)&&setTimeout((function(){return r._connect(t,e)}),r.reconnect_interval))}))}}]),r}(p.EventEmitter);e.default=m},89062:function(t,e,r){"use strict";var n=r(95318);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return new h(t,e)};var i=n(r(34575)),o=n(r(93913)),s=n(r(2205)),u=n(r(78585)),a=n(r(29754));function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,a.default)(t);if(e){var i=(0,a.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}var h=function(t){(0,s.default)(r,t);var e=c(r);function r(t,n,o){var s;return(0,i.default)(this,r),(s=e.call(this)).socket=new window.WebSocket(t,o),s.socket.onopen=function(){return s.emit("open")},s.socket.onmessage=function(t){return s.emit("message",t.data)},s.socket.onerror=function(t){return s.emit("error",t)},s.socket.onclose=function(t){s.emit("close",t.code,t.reason)},s}return(0,o.default)(r,[{key:"send",value:function(t,e,r){var n=r||e;try{this.socket.send(t),n()}catch(error){n(error)}}},{key:"close",value:function(t,e){this.socket.close(t,e)}},{key:"addEventListener",value:function(t,e,r){this.socket.addEventListener(t,e,r)}}]),r}(r(26729).EventEmitter)},17221:function(t,e,r){t.exports=r(59119)(r(58573))},58573:function(t,e,r){const n=new(0,r(86266).ec)("secp256k1"),i=n.curve,o=i.n.constructor;function s(t){const e=t[0];switch(e){case 2:case 3:return 33!==t.length?null:function(t,e){let r=new o(e);if(r.cmp(i.p)>=0)return null;r=r.toRed(i.red);let s=r.redSqr().redIMul(r).redIAdd(i.b).redSqrt();return 3===t!==s.isOdd()&&(s=s.redNeg()),n.keyPair({pub:{x:r,y:s}})}(e,t.subarray(1,33));case 4:case 6:case 7:return 65!==t.length?null:function(t,e,r){let s=new o(e),u=new o(r);if(s.cmp(i.p)>=0||u.cmp(i.p)>=0)return null;if(s=s.toRed(i.red),u=u.toRed(i.red),(6===t||7===t)&&u.isOdd()!==(7===t))return null;const a=s.redSqr().redIMul(s);return u.redSqr().redISub(a.redIAdd(i.b)).isZero()?n.keyPair({pub:{x:s,y:u}}):null}(e,t.subarray(1,33),t.subarray(33,65));default:return null}}function u(t,e){const r=e.encode(null,33===t.length);for(let n=0;n<t.length;++n)t[n]=r[n]}t.exports={contextRandomize:()=>0,privateKeyVerify(t){const e=new o(t);return e.cmp(i.n)<0&&!e.isZero()?0:1},privateKeyNegate(t){const e=new o(t),r=i.n.sub(e).umod(i.n).toArrayLike(Uint8Array,"be",32);return t.set(r),0},privateKeyTweakAdd(t,e){const r=new o(e);if(r.cmp(i.n)>=0)return 1;if(r.iadd(new o(t)),r.cmp(i.n)>=0&&r.isub(i.n),r.isZero())return 1;const n=r.toArrayLike(Uint8Array,"be",32);return t.set(n),0},privateKeyTweakMul(t,e){let r=new o(e);if(r.cmp(i.n)>=0||r.isZero())return 1;r.imul(new o(t)),r.cmp(i.n)>=0&&(r=r.umod(i.n));const n=r.toArrayLike(Uint8Array,"be",32);return t.set(n),0},publicKeyVerify:t=>null===s(t)?1:0,publicKeyCreate(t,e){const r=new o(e);if(r.cmp(i.n)>=0||r.isZero())return 1;return u(t,n.keyFromPrivate(e).getPublic()),0},publicKeyConvert(t,e){const r=s(e);if(null===r)return 1;return u(t,r.getPublic()),0},publicKeyNegate(t,e){const r=s(e);if(null===r)return 1;const n=r.getPublic();return n.y=n.y.redNeg(),u(t,n),0},publicKeyCombine(t,e){const r=new Array(e.length);for(let i=0;i<e.length;++i)if(r[i]=s(e[i]),null===r[i])return 1;let n=r[0].getPublic();for(let i=1;i<r.length;++i)n=n.add(r[i].pub);return n.isInfinity()?2:(u(t,n),0)},publicKeyTweakAdd(t,e,r){const n=s(e);if(null===n)return 1;
vendor: 3,861 bytes, line 1
1if((r=new o(r)).cmp(i.n)>=0)return 2;const a=n.getPublic().add(i.g.mul(r));return a.isInfinity()?2:(u(t,a),0)},publicKeyTweakMul(t,e,r){const n=s(e);if(null===n)return 1;if((r=new o(r)).cmp(i.n)>=0||r.isZero())return 2;return u(t,n.getPublic().mul(r)),0},signatureNormalize(t){const e=new o(t.subarray(0,32)),r=new o(t.subarray(32,64));return e.cmp(i.n)>=0||r.cmp(i.n)>=0?1:(1===r.cmp(n.nh)&&t.set(i.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(t,e){const r=e.subarray(0,32),n=e.subarray(32,64);if(new o(r).cmp(i.n)>=0)return 1;if(new o(n).cmp(i.n)>=0)return 1;const{output:s}=t;let u=s.subarray(4,37);u[0]=0,u.set(r,1);let a=33,c=0;for(;a>1&&0===u[c]&&!(128&u[c+1]);--a,++c);if(u=u.subarray(c),128&u[0])return 1;if(a>1&&0===u[0]&&!(128&u[1]))return 1;let h=s.subarray(39,72);h[0]=0,h.set(n,1);let l=33,f=0;for(;l>1&&0===h[f]&&!(128&h[f+1]);--l,++f);return h=h.subarray(f),128&h[0]||l>1&&0===h[0]&&!(128&h[1])?1:(t.outputlen=6+a+l,s[0]=48,s[1]=t.outputlen-2,s[2]=2,s[3]=u.length,s.set(u,4),s[4+a]=2,s[5+a]=h.length,s.set(h,6+a),0)},signatureImport(t,e){if(e.length<8)return 1;if(e.length>72)return 1;if(48!==e[0])return 1;if(e[1]!==e.length-2)return 1;if(2!==e[2])return 1;const r=e[3];if(0===r)return 1;if(5+r>=e.length)return 1;if(2!==e[4+r])return 1;const n=e[5+r];if(0===n)return 1;if(6+r+n!==e.length)return 1;if(128&e[4])return 1;if(r>1&&0===e[4]&&!(128&e[5]))return 1;if(128&e[r+6])return 1;if(n>1&&0===e[r+6]&&!(128&e[r+7]))return 1;let s=e.subarray(4,4+r);if(33===s.length&&0===s[0]&&(s=s.subarray(1)),s.length>32)return 1;let u=e.subarray(6+r);if(33===u.length&&0===u[0]&&(u=u.slice(1)),u.length>32)throw new Error("S length is too long");let a=new o(s);a.cmp(i.n)>=0&&(a=new o(0));let c=new o(e.subarray(6+r));return c.cmp(i.n)>=0&&(c=new o(0)),t.set(a.toArrayLike(Uint8Array,"be",32),0),t.set(c.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(t,e,r,s,u){if(u){const t=u;u=n=>{const i=t(e,r,null,s,n);if(!(i instanceof Uint8Array&&32===i.length))throw new Error("This is the way");return new o(i)}}const a=new o(r);if(a.cmp(i.n)>=0||a.isZero())return 1;let c;try{c=n.sign(e,r,{canonical:!0,k:u,pers:s})}catch(h){return 1}return t.signature.set(c.r.toArrayLike(Uint8Array,"be",32),0),t.signature.set(c.s.toArrayLike(Uint8Array,"be",32),32),t.recid=c.recoveryParam,0},ecdsaVerify(t,e,r){const u={r:t.subarray(0,32),s:t.subarray(32,64)},a=new o(u.r),c=new o(u.s);if(a.cmp(i.n)>=0||c.cmp(i.n)>=0)return 1;if(1===c.cmp(n.nh)||a.isZero()||c.isZero())return 3;const h=s(r);if(null===h)return 2;const l=h.getPublic();return n.verify(e,u,l)?0:3},ecdsaRecover(t,e,r,s){const a={r:e.slice(0,32),s:e.slice(32,64)},c=new o(a.r),h=new o(a.s);if(c.cmp(i.n)>=0||h.cmp(i.n)>=0)return 1;if(c.isZero()||h.isZero())return 2;let l;try{l=n.recoverPubKey(s,a,r)}catch(f){return 2}return u(t,l),0},ecdh(t,e,r,u,a,c,h){const l=s(e);if(null===l)return 1;const f=new o(r);if(f.cmp(i.n)>=0||f.isZero())return 2;const p=l.getPublic().mul(f);if(void 0===a){const e=p.encode(null,!0),r=n.hash().update(e).digest();for(let n=0;n<32;++n)t[n]=r[n]}else{c||(c=new Uint8Array(32));const e=p.getX().toArray("be",32);for(let t=0;t<32;++t)c[t]=e[t];h||(h=new Uint8Array(32));const r=p.getY().toArray("be",32);for(let t=0;t<32;++t)h[t]=r[t];const n=a(c,h,u);if(!(n instanceof Uint8Array&&n.length===t.length))return 2;t.set(n)}return 0}}},59119:function(t){const e="Impossible case. Please create issue.",r="The tweak was out of range or the resulted private key is invalid",n="The tweak was out of range or equal to zero",i="Unknow error on context randomization",o="Private Key is invalid",s="Public Key could not be parsed",u="Public Key serialization error",a="The sum of the public keys is not valid",c="Signature could not be parsed",h="The nonce generation function failed, or the private key was invalid",l="Public key could not be recover",f="Scalar was invali
1d (zero or overflow)";function p(t,e){if(!t)throw new Error(e)}function d(t,e,r){if(p(e instanceof Uint8Array,`Expected ${t} to be an Uint8Array`),void 0!==r)if(Array.isArray(r)){const n=`Expected ${t} to be an Uint8Array with length [${r.join(", ")}]`;p(r.includes(e.length),n)}else{const n=`Expected ${t} to be an Uint8Array with length ${r}`;p(e.length===r,n)}}function y(t){p("Boolean"===m(t),"Expected compressed to be a Boolean")}function v(t=(t=>new Uint8Array(t)),e){return"function"===typeof t&&(t=t(e)),d("output",t,e),t}function m(t){return Object.prototype.toString.call(t).slice(8,-1)}t.exports=t=>({contextRandomize(e){switch(p(null===e||e instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==e&&d("seed",e,32),t.contextRandomize(e)){case 1:throw new Error(i)}},privateKeyVerify:e=>(d("private key",e,32),0===t.privateKeyVerify(e)),privateKeyNegate(r){switch(d("private key",r,32),t.privateKeyNegate(r)){case 0:return r;case 1:throw new Error(e)}},privateKeyTweakAdd(e,n){switch(d("private key",e,32),d("tweak",n,32),t.privateKeyTweakAdd(e,n)){case 0:return e;case 1:throw new Error(r)}},privateKeyTweakMul(e,r){switch(d("private key",e,32),d("tweak",r,32),t.privateKeyTweakMul(e,r)){case 0:return e;case 1:throw new Error(n)}},publicKeyVerify:e=>(d("public key",e,[33,65]),0===t.publicKeyVerify(e)),publicKeyCreate(e,r=!0,n){switch(d("private key",e,32),y(r),n=v(n,r?33:65),t.publicKeyCreate(n,e)){case 0:return n;case 1:throw new Error(o);case 2:throw new Error(u)}},publicKeyConvert(e,r=!0,n){switch(d("public key",e,[33,65]),y(r),n=v(n,r?33:65),t.publicKeyConvert(n,e)){case 0:return n;case 1:throw new Error(s);case 2:throw new Error(u)}},publicKeyNegate(r,n=!0,i){switch(d("public key",r,[33,65]),y(n),i=v(i,n?33:65),t.publicKeyNegate(i,r)){case 0:return i;case 1:throw new Error(s);case 2:throw new Error(e);case 3:throw new Error(u)}},publicKeyCombine(e,r=!0,n){p(Array.isArray(e),"Expected public keys to be an Array"),p(e.length>0,"Expected public keys array will have more than zero items");for(const t of e)d("public key",t,[33,65]);switch(y(r),n=v(n,r?33:65),t.publicKeyCombine(n,e)){case 0:return n;case 1:throw new Error(s);case 2:throw new Error(a);case 3:throw new Error(u)}},publicKeyTweakAdd(e,n,i=!0,o){switch(d("public key",e,[33,65]),d("tweak",n,32),y(i),o=v(o,i?33:65),t.publicKeyTweakAdd(o,e,n)){case 0:return o;case 1:throw new Error(s);case 2:throw new Error(r)}},publicKeyTweakMul(e,r,i=!0,o){switch(d("public key",e,[33,65]),d("tweak",r,32),y(i),o=v(o,i?33:65),t.publicKeyTweakMul(o,e,r)){case 0:return o;case 1:throw new Error(s);case 2:throw new Error(n)}},signatureNormalize(e){switch(d("signature",e,64),t.signatureNormalize(e)){case 0:return e;case 1:throw new Error(c)}},signatureExport(r,n){d("signature",r,64);const i={output:n=v(n,72),outputlen:72};switch(t.signatureExport(i,r)){case 0:return n.slice(0,i.outputlen);case 1:throw new Error(c);case 2:throw new Error(e)}},signatureImport(r,n){switch(d("signature",r),n=v(n,64),t.signatureImport(n,r)){case 0:return n;case 1:throw new Error(c);case 2:throw new Error(e)}},ecdsaSign(r,n,i={},o){d("message",r,32),d("private key",n,32),p("Object"===m(i),"Expected options to be an Object"),void 0!==i.data&&d("options.data",i.data),void 0!==i.noncefn&&p("Function"===m(i.noncefn),"Expected options.noncefn to be a Function");const s={signature:o=v(o,64),recid:null};switch(t.ecdsaSign(s,r,n,i.data,i.noncefn)){case 0:return s;case 1:throw new Error(h);case 2:throw new Error(e)}},ecdsaVerify(e,r,n){switch(d("signature",e,64),d("message",r,32),d("public key",n,[33,65]),t.ecdsaVerify(e,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(c);case 2:throw new Error(s)}},ecdsaRecover(r,n,i,o=!0,s){switch(d("signature",r,64),p("Number"===m(n)&&n>=0&&n<=3,"Expected recovery id to be a Number within interval [0, 3]"),d("message",i,32),y(o),s=v(s,o?33:65),t.ecdsaRecover(s,r,n,i)){case 0:return s;case 1:throw new Error(c);case 2:throw new Error(l);case 3:throw new Error(e)}},ecdh(e,r,n={},i){switch(d("public key",e,[33,65]),d("private key",r,32),p("Object"===m(n),"Expected options to be an Object"),void 0!==n.data&&d("options.data",n.data),void 0!==n.hashfn?(p("Function"===m(n.hashfn),"Expected options.hashfn to be a Function"),void 0!==n.xbuf&&d("options.xbuf",n.xbuf,32),void 0!==n.ybuf&&d("options.ybuf",n.ybuf,32),d("output",i)):i=v(i,32),t.ecdh(i,e,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return i;case 1:throw new Error(s);case 2:throw new Error(f)}}})},50780:function(t,e,r){!function(t){"use strict";var e=function(t){var e,r=new Float64Array(16);if(t)for(e=0;e<t.length;e++)r[e]=t[e];return r},n=function(){throw new Error("no PRNG")},i=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var s=e(),u=e([1]),a=e([56129,1]),c=e([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),h=e([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),l=e([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),f=e([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),p=e([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function d(t,e,r,n){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r,t[e+4]=n>>24&255,t[e+5]=n>>16&255,t[e+6]=n>>8&255,t[e+7]=255&n}function y(t,e,r,n,i){var o,s=0;for(o=0;o<i;o++)s|=t[e+o]^r[n+o];return(1&s-1>>>8)-1}function v(t,e,r,n){return y(t,e,r,n,16)}function m(t,e,r,n){return y(t,e,r,n,32)}function g(t,e,r,n){!function(t,e,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,a=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,h=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,f=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,p=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,d=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,y=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,v=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,g=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,w=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,b=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,M=o,E=s,A=u,x=a,I=c,_=h,S=l,O=f,k=p,N=d,T=y,L=v,R=m,j=g,D=w,B=b,U=0;U<20;U+=2)M^=(i=(R^=(i=(k^=(i=(I^=(i=M+R|0)<<7|i>>>25)+M|0)<<9|i>>>23)+I|0)<<13|i>>>19)+k|0)<<18|i>>>14,_^=(i=(E^=(i=(j^=(i=(N^=(i=_+E|0)<<7|i>>>25)+_|0)<<9|i>>>23)+N|0)<<13|i>>>19)+j|0)<<18|i>>>14,T^=(i=(S^=(i=(A^=(i=(D^=(i=T+S|0)<<7|i>>>25)+T|0)<<9|i>>>23)+D|0)<<13|i>>>19)+A|0)<<18|i>>>14,B^=(i=(L^=(i=(O^=(i=(x^=(i=B+L|0)<<7|i>>>25)+B|0)<<9|i>>>23)+x|0)<<13|i>>>19)+O|0)<<18|i>>>14,M^=(i=(x^=(i=(A^=(i=(E^=(i=M+x|0)<<7|i>>>25)+M|0)<<9|i>>>23)+E|0)<<13|i>>>19)+A|0)<<18|i>>>14,_^=(i=(I^=(i=(O^=(i=(S^=(i=_+I|0)<<7|i>>>25)+_|0)<<9|i>>>23)+S|0)<<13|i>>>19)+O|0)<<18|i>>>14,T^=(i=(N^=(i=(k^=(i=(L^=(i=T+N|0)<<7|i>>>25)+T|0)<<9|i>>>23)+L|0)<<13|i>>>19)+k|0)<<18|i>>>14,B^=(i=(D^=(i=(j^=(i=(R^=(i=B+D|0)<<7|i>>>25)+B|0)<<9|i>>>23)+R|0)<<13|i>>>19)+j|0)<<18|i>>>14;M=M+o|0,E=E+s|0,A=A+u|0,x=x+a|0,I=I+c|0,_=_+h|0,S=S+l|0,O=O+f|0,k=k+p|0,N=N+d|0,T=T+y|0,L=L+v|0,R=R+m|0,j=j+g|0,D=D+w|0,B=B+b|0,t[0]=M>>>0&255,t[1]=M>>>8&255,t[2]=M>>>16&255,t[3]=M>>>24&255,t[4]=E>>>0&255,t[5]=E>>>8&255,t[6]=E>>>16&255,t[7]=E>>>24&255,t[8]=A>>>0&255,t[9]=A>>>8&255,t[10]=A>>>16&255,t[11]=A>>>24&255,t[12]=x>>>0&255,t[13]=x>>>8&255,t[14]=x>>>16&255,t[15]=x>>>24&255,t[16]=I>>>0&255,t[17]=I>>>8&255,t[18]=I>>>16&255,t[19]=I>>>24&255,t[20]=_>>>0&255,t[21]=_>>>8&255,t[22]=_>>>16&255,t[23]=_>>>24&255,t[24]=S>>>0&255,t[25]=S>>>8&255,t[26]=S>>>16&255,t[27]=S>>>24&255,t[28]=O>>>0&255,t[29]=O>>>8&255,t[30]=O>>>16&255,t[31]=O>>>24&255,t[32]=k>>>0&255,t[33]=k>>>8&255,t[34]=k>>>16&255,t[35]=k>>>24&255,t[36]=N>>>0&255,t[37]=N>>>8&255,t[38]=N>>>16&255,t[39]=N>>>24&255,t[40]=T>>>0&255,t[41]=T>>>8&255,t[42]=T>>>16&255,t[43]=T>>>24&255,t[44]=L>>>0&255,t[45]=L>>>8&255,t[46]=L>>>16&255,t[47]=L>>>24&255,t[48]=R>>>0&255,t[49]=R>>>8&255,t[50]=R>>>16&255,t[51]=R>>>24&255,t[52]=j>>>0&255,t[53]=j>>>8&255,t[54]=j>>>16&255,t[55]=j>>>24&255,t[56]=D>>>0&255,t[57]=D>>>8&255,t[58]=D>>>16&255,t[59]=D>>>24&255,t[60]=B>>>0&255,t[61]=B>>>8&255,t[62]=B>>>16&255,t[63]=B>>>24&255}(t,e,r,n)}function w(t,e,r,n){!function(t,e,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,a=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,h=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,f=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,p=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,d=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,y=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,v=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,g=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,w=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,b=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,M=0;M<20;M+=2)o^=(i=(m^=(i=(p^=(i=(c^=(i=o+m|0)<<7|i>>>25)+o|0)<<9|i>>>23)+c|0)<<13|i>>>19)+p|0)<<18|i>>>14,h^=(i=(s^=(i=(g^=(i=(d^=(i=h+s|0)<<7|i>>>25)+h|0)<<9|i>>>23)+d|0)<<13|i>>>19)+g|0)<<18|i>>>14,y^=(i=(l^=(i=(u^=(i=(w^=(i=y+l|0)<<7|i>>>25)+y|0)<<9|i>>>23)+w|0)<<13|i>>>19)+u|0)<<18|i>>>14,b^=(i=(v^=(i=(f^=(i=(a^=(i=b+v|0)<<7|i>>>25)+b|0)<<9|i>>>23)+a|0)<<13|i>>>19)+f|0)<<18|i>>>14,o^=(i=(a^=(i=(u^=(i=(s^=(i=o+a|0)<<7|i>>>25)+o|0)<<9|i>>>23)+s|0)<<13|i>>>19)+u|0)<<18|i>>>14,h^=(i=(c^=(i=(f^=(i=(l^=(i=h+c|0)<<7|i>>>25)+h|0)<<9|i>>>23)+l|0)<<13|i>>>19)+f|0)<<18|i>>>14,y^=(i=(d^=(i=(p^=(i=(v^=(i=y+d|0)<<7|i>>>25)+y|0)<<9|i>>>23)+v|0)<<13|i>>>19)+p|0)<<18|i>>>14,b^=(i=(w^=(i=(g^=(i=(m^=(i=b+w|0)<<7|i>>>25)+b|0)<<9|i>>>23)+m|0)<<13|i>>>19)+g|0)<<18|i>>>14;t[0]=o>>>0&255,t[1]=o>>>8&255,t[2]=o>>>16&255,t[3]=o>>>24&255,t[4]=h>>>0&255,t[5]=h>>>8&255,t[6]=h>>>16&255,t[7]=h>>>24&255,t[8]=y>>>0&255,t[9]=y>>>8&255,t[10]=y>>>16&255,t[11]=y>>>24&255,t[12]=b>>>0&255,t[13]=b>>>8&255,t[14]=b>>>16&255,t[15]=b>>>24&255,t[16]=l>>>0&255,t[17]=l>>>8&255,t[18]=l>>>16&255,t[19]=l>>>24&255,t[20]=f>>>0&255,t[21]=f>>>8&255,t[22]=f>>>16&255,t[23]=f>>>24&255,t[24]=p>>>0&255,t[25]=p>>>8&255,t[26]=p>>>16&255,t[27]=p>>>24&255,t[28]=d>>>0&255,t[29]=d>>>8&255,t[30]=d>>>16&255,t[31]=d>>>24&255}(t,e,r,n)}var b=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function M(t,e,r,n,i,o,s){var u,a,c=new Uint8Array(16),h=new Uint8Array(64);for(a=0;a<16;a++)c[a]=0;for(a=0;a<8;a++)c[a]=o[a];for(;i>=64;){for(g(h,c,s,b),a=0;a<64;a++)t[e+a]=r[n+a]^h[a];for(u=1,a=8;a<16;a++)u=u+(255&c[a])|0,c[a]=255&u,u>>>=8;i-=64,e+=64,n+=64}if(i>0)for(g(h,c,s,b),a=0;a<i;a++)t[e+a]=r[n+a]^h[a];return 0}function E(t,e,r,n,i){var o,s,u=new Uint8Array(16),a=new Uint8Array(64);for(s=0;s<16;s++)u[s]=0;for(s=0;s<8;s++)u[s]=n[s];for(;r>=64;){for(g(a,u,i,b),s=0;s<64;s++)t[e+s]=a[s];for(o=1,s=8;s<16;s++)o=o+(255&u[s])|0,u[s]=255&o,o>>>=8;r-=64,e+=64}if(r>0)for(g(a,u,i,b),s=0;s<r;s++)t[e+s]=a[s];return 0}function A(t,e,r,n,i){var o=new Uint8Array(32);w(o,n,i,b);for(var s=new Uint8Array(8),u=0;u<8;u++)s[u]=n[u+16];return E(t,e,r,s,o)}function x(t,e,r,n,i,o,s){var u=new Uint8Array(32);w(u,o,s,b);for(var a=new Uint8Array(8),c=0;c<8;c++)a[c]=o[c+16];return M(t,e,r,n,i,a,u)}var I=function(t){var e,r,n,i,o,s,u,a;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,e=255&t[0]|(255&t[1])<<8,this.r[0]=8191&e,r=255&t[2]|(255&t[3])<<8,this.r[1]=8191&(e>>>13|r<<3),n=255&t[4]|(255&t[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&t[6]|(255&t[7])<<8,this.r[3]=8191&(n>>>7|i<<9),o=255&t[8]|(255&t[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,s=255&t[10]|(255&t[11])<<8,this.r[6]=8191&(o>>>14|s<<2),u=255&t[12]|(255&t[13])<<8,this.r[7]=8065&(s>>>11|u<<5),a=255&t[14]|(255&t[15])<<8,this.r[8]=8191&(u>>>8|a<<8),this.r[9]=a>>>5&127,this.pad[0]=255&t[16]|(255&t[17])<<8,this.pad[1]=255&t[18]|(255&t[19])<<8,this.pad[2]=255&t[20]|(255&t[21])<<8,this.pad[3]=255&t[22]|(255&t[23])<<8,this.pad[4]=255&t[24]|(255&t[25])<<8,this.pad[5]=255&t[26]|(255&t[27])<<8,this.pad[6]=255&t[28]|(255&t[29])<<8,this.pad[7]=255&t[30]|(255&t[31])<<8};function _(t,e,r,n,i,o){var s=new I(o);return s.update(r,n,i),s.finish(t,e),0}function S(t,e,r,n,i,o){var s=new Uint8Array(16);return _(s,0,r,n,i,o),v(t,e,s,0)}function O(t,e,r,n,i){var o;if(r<32)return-1;for(x(t,0,e,0,r,n,i),_(t,16,t,32,r-32,t),o=0;o<16;o++)t[o]=0;return 0}function k(t,e,r,n,i){var o,s=new Uint8Array(32);if(r<32)return-1;if(A(s,0,32,n,i),0!==S(e,16,e,32,r-32,s))return-1;for(x(t,0,e,0,r,n,i),o=0;o<32;o++)t[o]=0;return 0}function N(t,e){var r;for(r=0;r<16;r++)t[r]=0|e[r]}function T(t){var e,r,n=1;for(e=0;e<16;e++)r=t[e]+n+65535,n=Math.floor(r/65536),t[e]=r-65536*n;t[0]+=n-1+37*(n-1)}function L(t,e,r){for(var n,i=~(r-1),o=0;o<16;o++)n=i&(t[o]^e[o]),t[o]^=n,e[o]^=n}function R(t,r){var n,i,o,s=e(),u=e();for(n=0;n<16;n++)u[n]=r[n];for(T(u),T(u),T(u),i=0;i<2;i++){for(s[0]=u[0]-65517,n=1;n<15;n++)s[n]=u[n]-65535-(s[n-1]>>16&1),s[n-1]&=65535;s[15]=u[15]-32767-(s[14]>>16&1),o=s[15]>>16&1,s[14]&=65535,L(u,s,1-o)}for(n=0;n<16;n++)t[2*n]=255&u[n],t[2*n+1]=u[n]>>8}
vendor: 5,108 bytes, line 1
1function j(t,e){var r=new Uint8Array(32),n=new Uint8Array(32);return R(r,t),R(n,e),m(r,0,n,0)}function D(t){var e=new Uint8Array(32);return R(e,t),1&e[0]}function B(t,e){var r;for(r=0;r<16;r++)t[r]=e[2*r]+(e[2*r+1]<<8);t[15]&=32767}function U(t,e,r){for(var n=0;n<16;n++)t[n]=e[n]+r[n]}function P(t,e,r){for(var n=0;n<16;n++)t[n]=e[n]-r[n]}function C(t,e,r){var n,i,o=0,s=0,u=0,a=0,c=0,h=0,l=0,f=0,p=0,d=0,y=0,v=0,m=0,g=0,w=0,b=0,M=0,E=0,A=0,x=0,I=0,_=0,S=0,O=0,k=0,N=0,T=0,L=0,R=0,j=0,D=0,B=r[0],U=r[1],P=r[2],C=r[3],z=r[4],F=r[5],Y=r[6],$=r[7],G=r[8],Z=r[9],K=r[10],q=r[11],Q=r[12],W=r[13],V=r[14],H=r[15];o+=(n=e[0])*B,s+=n*U,u+=n*P,a+=n*C,c+=n*z,h+=n*F,l+=n*Y,f+=n*$,p+=n*G,d+=n*Z,y+=n*K,v+=n*q,m+=n*Q,g+=n*W,w+=n*V,b+=n*H,s+=(n=e[1])*B,u+=n*U,a+=n*P,c+=n*C,h+=n*z,l+=n*F,f+=n*Y,p+=n*$,d+=n*G,y+=n*Z,v+=n*K,m+=n*q,g+=n*Q,w+=n*W,b+=n*V,M+=n*H,u+=(n=e[2])*B,a+=n*U,c+=n*P,h+=n*C,l+=n*z,f+=n*F,p+=n*Y,d+=n*$,y+=n*G,v+=n*Z,m+=n*K,g+=n*q,w+=n*Q,b+=n*W,M+=n*V,E+=n*H,a+=(n=e[3])*B,c+=n*U,h+=n*P,l+=n*C,f+=n*z,p+=n*F,d+=n*Y,y+=n*$,v+=n*G,m+=n*Z,g+=n*K,w+=n*q,b+=n*Q,M+=n*W,E+=n*V,A+=n*H,c+=(n=e[4])*B,h+=n*U,l+=n*P,f+=n*C,p+=n*z,d+=n*F,y+=n*Y,v+=n*$,m+=n*G,g+=n*Z,w+=n*K,b+=n*q,M+=n*Q,E+=n*W,A+=n*V,x+=n*H,h+=(n=e[5])*B,l+=n*U,f+=n*P,p+=n*C,d+=n*z,y+=n*F,v+=n*Y,m+=n*$,g+=n*G,w+=n*Z,b+=n*K,M+=n*q,E+=n*Q,A+=n*W,x+=n*V,I+=n*H,l+=(n=e[6])*B,f+=n*U,p+=n*P,d+=n*C,y+=n*z,v+=n*F,m+=n*Y,g+=n*$,w+=n*G,b+=n*Z,M+=n*K,E+=n*q,A+=n*Q,x+=n*W,I+=n*V,_+=n*H,f+=(n=e[7])*B,p+=n*U,d+=n*P,y+=n*C,v+=n*z,m+=n*F,g+=n*Y,w+=n*$,b+=n*G,M+=n*Z,E+=n*K,A+=n*q,x+=n*Q,I+=n*W,_+=n*V,S+=n*H,p+=(n=e[8])*B,d+=n*U,y+=n*P,v+=n*C,m+=n*z,g+=n*F,w+=n*Y,b+=n*$,M+=n*G,E+=n*Z,A+=n*K,x+=n*q,I+=n*Q,_+=n*W,S+=n*V,O+=n*H,d+=(n=e[9])*B,y+=n*U,v+=n*P,m+=n*C,g+=n*z,w+=n*F,b+=n*Y,M+=n*$,E+=n*G,A+=n*Z,x+=n*K,I+=n*q,_+=n*Q,S+=n*W,O+=n*V,k+=n*H,y+=(n=e[10])*B,v+=n*U,m+=n*P,g+=n*C,w+=n*z,b+=n*F,M+=n*Y,E+=n*$,A+=n*G,x+=n*Z,I+=n*K,_+=n*q,S+=n*Q,O+=n*W,k+=n*V,N+=n*H,v+=(n=e[11])*B,m+=n*U,g+=n*P,w+=n*C,b+=n*z,M+=n*F,E+=n*Y,A+=n*$,x+=n*G,I+=n*Z,_+=n*K,S+=n*q,O+=n*Q,k+=n*W,N+=n*V,T+=n*H,m+=(n=e[12])*B,g+=n*U,w+=n*P,b+=n*C,M+=n*z,E+=n*F,A+=n*Y,x+=n*$,I+=n*G,_+=n*Z,S+=n*K,O+=n*q,k+=n*Q,N+=n*W,T+=n*V,L+=n*H,g+=(n=e[13])*B,w+=n*U,b+=n*P,M+=n*C,E+=n*z,A+=n*F,x+=n*Y,I+=n*$,_+=n*G,S+=n*Z,O+=n*K,k+=n*q,N+=n*Q,T+=n*W,L+=n*V,R+=n*H,w+=(n=e[14])*B,b+=n*U,M+=n*P,E+=n*C,A+=n*z,x+=n*F,I+=n*Y,_+=n*$,S+=n*G,O+=n*Z,k+=n*K,N+=n*q,T+=n*Q,L+=n*W,R+=n*V,j+=n*H,b+=(n=e[15])*B,s+=38*(E+=n*P),u+=38*(A+=n*C),a+=38*(x+=n*z),c+=38*(I+=n*F),h+=38*(_+=n*Y),l+=38*(S+=n*$),f+=38*(O+=n*G),p+=38*(k+=n*Z),d+=38*(N+=n*K),y+=38*(T+=n*q),v+=38*(L+=n*Q),m+=38*(R+=n*W),g+=38*(j+=n*V),w+=38*(D+=n*H),o=(n=(o+=38*(M+=n*U))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),t[0]=o,t[1]=s,t[2]=u,t[3]=a,t[4]=c,t[5]=h,t[6]=l,t[7]=f,t[8]=p,t[9]=d,t[10]=y,t[11]=v,t[12]=m,t[13]=g,t[14]=w,t[15]=b}function z(t,e){C(t,e,e)}function F(t,r){var n,i=e();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)z(i,i),2!==n&&4!==n&&C(i,i,r);for(n=0;n<16;n++)t[n]=i[n]}function Y(t,r){var n,i=e();for(n=0;n<16;n++)i[n]=r[n];for(n=250;n>=0;n--)z(i,i),1!==n&&C(i,i,r);for(n=0;n<16;n++)t[n]=i[n]}function $(t,r,n){var i,o,s=new Uint8Array(32),u=new Float64Array(80),c=e(),h=e(),l=e(),f=e(),p=e(),d=e();for(o=0;o<31;o++)s[o]=r[o];for(s[31]=127&r[31]|64,s[0]&=248,B(u,n),o=0;o<16;o++)h[o]=u[o],f[o]=c[o]=l[o]=0;for(c[0]=f[0]=1,o=254;o>=0;--o)L(c,h,i=s[o>>>3]>>>(7&o)&1),L(l,f,i),U(p,c,l),P(c,c,l),U(l,h,f),P(h,h,f),z(f,p),z(d,c),C(c,l,c),C(l,h,p),U(p,c,l),P(c,c,l),z(h,c),P(l,f,d),C(c,l,a),U(c,c,f),C(l,l,c),C(c,f,d),C(f,h,u),z(h,p),L(c,h,i),L(l,f,i);for(o=0;o<16;o++)u[o+16]=c[o],u[o+32]=l[o],u[o+48]=h[o],u[o+64]=f[o];var y=u.subarray(32),v=u.subarray(16);
vendor: 14,585 bytes, line 1
1return F(y,y),C(v,v,y),R(t,v),0}function G(t,e){return $(t,e,o)}function Z(t,e){return n(e,32),G(t,e)}function K(t,e,r){var n=new Uint8Array(32);return $(n,r,e),w(t,i,n,b)}I.prototype.blocks=function(t,e,r){for(var n,i,o,s,u,a,c,h,l,f,p,d,y,v,m,g,w,b,M,E=this.fin?0:2048,A=this.h[0],x=this.h[1],I=this.h[2],_=this.h[3],S=this.h[4],O=this.h[5],k=this.h[6],N=this.h[7],T=this.h[8],L=this.h[9],R=this.r[0],j=this.r[1],D=this.r[2],B=this.r[3],U=this.r[4],P=this.r[5],C=this.r[6],z=this.r[7],F=this.r[8],Y=this.r[9];r>=16;)f=l=0,f+=(A+=8191&(n=255&t[e+0]|(255&t[e+1])<<8))*R,f+=(x+=8191&(n>>>13|(i=255&t[e+2]|(255&t[e+3])<<8)<<3))*(5*Y),f+=(I+=8191&(i>>>10|(o=255&t[e+4]|(255&t[e+5])<<8)<<6))*(5*F),f+=(_+=8191&(o>>>7|(s=255&t[e+6]|(255&t[e+7])<<8)<<9))*(5*z),l=(f+=(S+=8191&(s>>>4|(u=255&t[e+8]|(255&t[e+9])<<8)<<12))*(5*C))>>>13,f&=8191,f+=(O+=u>>>1&8191)*(5*P),f+=(k+=8191&(u>>>14|(a=255&t[e+10]|(255&t[e+11])<<8)<<2))*(5*U),f+=(N+=8191&(a>>>11|(c=255&t[e+12]|(255&t[e+13])<<8)<<5))*(5*B),f+=(T+=8191&(c>>>8|(h=255&t[e+14]|(255&t[e+15])<<8)<<8))*(5*D),p=l+=(f+=(L+=h>>>5|E)*(5*j))>>>13,p+=A*j,p+=x*R,p+=I*(5*Y),p+=_*(5*F),l=(p+=S*(5*z))>>>13,p&=8191,p+=O*(5*C),p+=k*(5*P),p+=N*(5*U),p+=T*(5*B),l+=(p+=L*(5*D))>>>13,p&=8191,d=l,d+=A*D,d+=x*j,d+=I*R,d+=_*(5*Y),l=(d+=S*(5*F))>>>13,d&=8191,d+=O*(5*z),d+=k*(5*C),d+=N*(5*P),d+=T*(5*U),y=l+=(d+=L*(5*B))>>>13,y+=A*B,y+=x*D,y+=I*j,y+=_*R,l=(y+=S*(5*Y))>>>13,y&=8191,y+=O*(5*F),y+=k*(5*z),y+=N*(5*C),y+=T*(5*P),v=l+=(y+=L*(5*U))>>>13,v+=A*U,v+=x*B,v+=I*D,v+=_*j,l=(v+=S*R)>>>13,v&=8191,v+=O*(5*Y),v+=k*(5*F),v+=N*(5*z),v+=T*(5*C),m=l+=(v+=L*(5*P))>>>13,m+=A*P,m+=x*U,m+=I*B,m+=_*D,l=(m+=S*j)>>>13,m&=8191,m+=O*R,m+=k*(5*Y),m+=N*(5*F),m+=T*(5*z),g=l+=(m+=L*(5*C))>>>13,g+=A*C,g+=x*P,g+=I*U,g+=_*B,l=(g+=S*D)>>>13,g&=8191,g+=O*j,g+=k*R,g+=N*(5*Y),g+=T*(5*F),w=l+=(g+=L*(5*z))>>>13,w+=A*z,w+=x*C,w+=I*P,w+=_*U,l=(w+=S*B)>>>13,w&=8191,w+=O*D,w+=k*j,w+=N*R,w+=T*(5*Y),b=l+=(w+=L*(5*F))>>>13,b+=A*F,b+=x*z,b+=I*C,b+=_*P,l=(b+=S*U)>>>13,b&=8191,b+=O*B,b+=k*D,b+=N*j,b+=T*R,M=l+=(b+=L*(5*Y))>>>13,M+=A*Y,M+=x*F,M+=I*z,M+=_*C,l=(M+=S*P)>>>13,M&=8191,M+=O*U,M+=k*B,M+=N*D,M+=T*j,A=f=8191&(l=(l=((l+=(M+=L*R)>>>13)<<2)+l|0)+(f&=8191)|0),x=p+=l>>>=13,I=d&=8191,_=y&=8191,S=v&=8191,O=m&=8191,k=g&=8191,N=w&=8191,T=b&=8191,L=M&=8191,e+=16,r-=16;this.h[0]=A,this.h[1]=x,this.h[2]=I,this.h[3]=_,this.h[4]=S,this.h[5]=O,this.h[6]=k,this.h[7]=N,this.h[8]=T,this.h[9]=L},I.prototype.finish=function(t,e){var r,n,i,o,s=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=r,r=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,s[0]=this.h[0]+5,r=s[0]>>>13,s[0]&=8191,o=1;o<10;o++)s[o]=this.h[o]+r,r=s[o]>>>13,s[o]&=8191;for(s[9]-=8192,n=(1^r)-1,o=0;o<10;o++)s[o]&=n;for(n=~n,o=0;o<10;o++)this.h[o]=this.h[o]&n|s[o];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),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;t[e+0]=this.h[0]>>>0&255,t[e+1]=this.h[0]>>>8&255,t[e+2]=this.h[1]>>>0&255,t[e+3]=this.h[1]>>>8&255,t[e+4]=this.h[2]>>>0&255,t[e+5]=this.h[2]>>>8&255,t[e+6]=this.h[3]>>>0&255,t[e+7]=this.h[3]>>>8&255,t[e+8]=this.h[4]>>>0&255,t[e+9]=this.h[4]>>>8&255,t[e+10]=this.h[5]>>>0&255,t[e+11]=this.h[5]>>>8&255,t[e+12]=this.h[6]>>>0&255,t[e+13]=this.h[6]>>>8&255,t[e+14]=this.h[7]>>>0&255,t[e+15]=this.h[7]>>>8&255},I.prototype.update=function(t,e,r){var n,i;if(this.leftover){for((i=16-this.leftover)>r&&(i=r),n=0;n<i;n++)this.buffer[this.leftover+n]=t[e+n];if(r-=i,e+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(i=r-r%16,this.blocks(t,e,i),e+=i,r-=i),r){for(n=0;n<r;n++)this.buffer[this.leftover+n]=t[e+n];this.leftover+=r}};var q=O,Q=k;var W=[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 V(t,e,r,n){for(var i,o,s,u,a,c,h,l,f,p,d,y,v,m,g,w,b,M,E,A,x,I,_,S,O,k,N=new Int32Array(16),T=new Int32Array(16),L=t[0],R=t[1],j=t[2],D=t[3],B=t[4],U=t[5],P=t[6],C=t[7],z=e[0],F=e[1],Y=e[2],$=e[3],G=e[4],Z=e[5],K=e[6],q=e[7],Q=0;n>=128;){for(E=0;E<16;E++)A=8*E+Q,N[E]=r[A+0]<<24|r[A+1]<<16|r[A+2]<<8|r[A+3],T[E]=r[A+4]<<24|r[A+5]<<16|r[A+6]<<8|r[A+7];for(E=0;E<80;E++)if(i=L,o=R,s=j,u=D,a=B,c=U,h=P,C,f=z,p=F,d=Y,y=$,v=G,m=Z,g=K,q,_=65535&(I=q),S=I>>>16,O=65535&(x=C),k=x>>>16,_+=65535&(I=(G>>>14|B<<18)^(G>>>18|B<<14)^(B>>>9|G<<23)),S+=I>>>16,O+=65535&(x=(B>>>14|G<<18)^(B>>>18|G<<14)^(G>>>9|B<<23)),k+=x>>>16,_+=65535&(I=G&Z^~G&K),S+=I>>>16,O+=65535&(x=B&U^~B&P),k+=x>>>16,_+=65535&(I=W[2*E+1]),S+=I>>>16,O+=65535&(x=W[2*E]),k+=x>>>16,x=N[E%16],S+=(I=T[E%16])>>>16,O+=65535&x,k+=x>>>16,O+=(S+=(_+=65535&I)>>>16)>>>16,_=65535&(I=M=65535&_|S<<16),S=I>>>16,O=65535&(x=b=65535&O|(k+=O>>>16)<<16),k=x>>>16,_+=65535&(I=(z>>>28|L<<4)^(L>>>2|z<<30)^(L>>>7|z<<25)),S+=I>>>16,O+=65535&(x=(L>>>28|z<<4)^(z>>>2|L<<30)^(z>>>7|L<<25)),k+=x>>>16,S+=(I=z&F^z&Y^F&Y)>>>16,O+=65535&(x=L&R^L&j^R&j),k+=x>>>16,l=65535&(O+=(S+=(_+=65535&I)>>>16)>>>16)|(k+=O>>>16)<<16,w=65535&_|S<<16,_=65535&(I=y),S=I>>>16,O=65535&(x=u),k=x>>>16,S+=(I=M)>>>16,O+=65535&(x=b),k+=x>>>16,R=i,j=o,D=s,B=u=65535&(O+=(S+=(_+=65535&I)>>>16)>>>16)|(k+=O>>>16)<<16,U=a,P=c,C=h,L=l,F=f,Y=p,$=d,G=y=65535&_|S<<16,Z=v,K=m,q=g,z=w,E%16===15)for(A=0;A<16;A++)x=N[A],_=65535&(I=T[A]),S=I>>>16,O=65535&x,k=x>>>16,x=N[(A+9)%16],_+=65535&(I=T[(A+9)%16]),S+=I>>>16,O+=65535&x,k+=x>>>16,b=N[(A+1)%16],_+=65535&(I=((M=T[(A+1)%16])>>>1|b<<31)^(M>>>8|b<<24)^(M>>>7|b<<25)),S+=I>>>16,O+=65535&(x=(b>>>1|M<<31)^(b>>>8|M<<24)^b>>>7),k+=x>>>16,b=N[(A+14)%16],S+=(I=((M=T[(A+14)%16])>>>19|b<<13)^(b>>>29|M<<3)^(M>>>6|b<<26))>>>16,O+=65535&(x=(b>>>19|M<<13)^(M>>>29|b<<3)^b>>>6),k+=x>>>16,k+=(O+=(S+=(_+=65535&I)>>>16)>>>16)>>>16,N[A]=65535&O|k<<16,T[A]=65535&_|S<<16;_=65535&(I=z),S=I>>>16,O=65535&(x=L),k=x>>>16,x=t[0],S+=(I=e[0])>>>16,O+=65535&x,k+=x>>>16,k+=(O+=(S+=(_+=65535&I)>>>16)>>>16)>>>16,t[0]=L=65535&O|k<<16,e[0]=z=65535&_|S<<16,_=65535&(I=F),S=I>>>16,O=65535&(x=R),k=x>>>16,x=t[1],S+=(I=e[1])>>>16,O+=65535&x,k+=x>>>16,k+=(O+=(S+=(_+=65535&I)>>>16)>>>16)>>>16,t[1]=R=65535&O|k<<16,e[1]=F=65535&_|S<<16,_=65535&(I=Y),S=I>>>16,O=65535&(x=j),k=x>>>16,x=t[2],S+=(I=e[2])>>>16,O+=65535&x,k+=x>>>16,k+=(O+=(S+=(_+=65535&I)>>>16)>>>16)>>>16,t[2]=j=65535&O|k<<16,e[2]=Y=65535&_|S<<16,_=65535&(I=$),S=I>>>16,O=65535&(x=D),k=x>>>16,x=t[3],S+=(I=e[3])>>>16,O+=65535&x,k+=x>>>16,k+=(O+=(S+=(_+=65535&I)>>>16)>>>16)>>>16,t[3]=D=65535&O|k<<16,e[3]=$=65535&_|S<<16,_=65535&(I=G),S=I>>>16,O=65535&(x=B),k=x>>>16,x=t[4],S+=(I=e[4])>>>16,O+=65535&x,k+=x>>>16,k+=(O+=(S+=(_+=65535&I)>>>16)>>>16)>>>16,t[4]=B=65535&O|k<<16,e[4]=G=65535&_|S<<16,_=65535&(I=Z),S=I>>>16,O=65535&(x=U),k=x>>>16,x=t[5],S+=(I=e[5])>>>16,O+=65535&x,k+=x>>>16,k+=(O+=(S+=(_+=65535&I)>>>16)>>>16)>>>16,t[5]=U=65535&O|k<<16,e[5]=Z=65535&_|S<<16,_=65535&(I=K),S=I>>>16,O=65535&(x=P),k=x>>>16,x=t[6],S+=(I=e[6])>>>16,O+=65535&x,k+=x>>>16,k+=(O+=(S+=(_+=65535&I)>>>16)>>>16)>>>16,t[6]=P=65535&O|k<<16,e[6]=K=65535&_|S<<16,_=65535&(I=q),S=I>>>16,O=65535&(x=C),k=x>>>16,x=t[7],S+=(I=e[7])>>>16,O+=65535&x,k+=x>>>16,k+=(O+=(S+=(_+=65535&I)>>>16)>>>16)>>>16,t[7]=C=65535&O|k<<16,e[7]=q=65535&_|S<<16,Q+=128,n-=128}return n}function H(t,e,r){var n,i=new Int32Array(8),o=new Int32Array(8),s=new Uint8Array(256),u=r;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,V(i,o,e,r),r%=128,n=0;n<r;n++)s[n]=e[u-r+n];for(s[r]=128,s[(r=256-128*(r<112?1:0))-9]=0,d(s,r-8,u/536870912|0,u<<3),V(i,o,s,r),n=0;n<8;n++)d(t,8*n,i[n],o[n]);return 0}function X(t,r){var n=e(),i=e(),o=e(),s=e(),u=e(),a=e(),c=e(),l=e(),f=e();P(n,t[1],t[0]),P(f,r[1],r[0]),C(n,n,f),U(i,t[0],t[1]),U(f,r[0],r[1]),C(i,i,f),C(o,t[3],r[3]),C(o,o,h),C(s,t[2],r[2]),U(s,s,s),P(u,i,n),P(a,s,o),U(c,s,o),U(l,i,n),C(t[0],u,a),C(t[1],l,c),C(t[2],c,a),C(t[3],u,l)}function J(t,e,r){var n;for(n=0;n<4;n++)L(t[n],e[n],r)}function tt(t,r){var n=e(),i=e(),o=e();F(o,r[2]),C(n,r[0],o),C(i,r[1],o),R(t,i),t[31]^=D(n)<<7}function et(t,e,r){var n,i;for(N(t[0],s),N(t[1],u),N(t[2],u),N(t[3],s),i=255;i>=0;--i)J(t,e,n=r[i/8|0]>>(7&i)&1),X(e,t),X(t,t),J(t,e,n)}function rt(t,r){var n=[e(),e(),e(),e()];N(n[0],l),N(n[1],f),N(n[2],u),C(n[3],l,f),et(t,n,r)}function nt(t,r,i){var o,s=new Uint8Array(64),u=[e(),e(),e(),e()];for(i||n(r,32),H(s,r,32),s[0]&=248,s[31]&=127,s[31]|=64,rt(u,s),tt(t,u),o=0;o<32;o++)r[o+32]=t[o];return 0}var it=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 ot(t,e){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)e[i]+=r-16*e[n]*it[i-(n-32)],r=Math.floor((e[i]+128)/256),e[i]-=256*r;e[i]+=r,e[n]=0}for(r=0,i=0;i<32;i++)e[i]+=r-(e[31]>>4)*it[i],r=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=r*it[i];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,t[n]=255&e[n]}function st(t){var e,r=new Float64Array(64);for(e=0;e<64;e++)r[e]=t[e];for(e=0;e<64;e++)t[e]=0;ot(t,r)}function ut(t,r,n,i){var o,s,u=new Uint8Array(64),a=new Uint8Array(64),c=new Uint8Array(64),h=new Float64Array(64),l=[e(),e(),e(),e()];H(u,i,32),u[0]&=248,u[31]&=127,u[31]|=64;var f=n+64;for(o=0;o<n;o++)t[64+o]=r[o];for(o=0;o<32;o++)t[32+o]=u[32+o];for(H(c,t.subarray(32),n+32),st(c),rt(l,c),tt(t,l),o=32;o<64;o++)t[o]=i[o];for(H(a,t,n+64),st(a),o=0;o<64;o++)h[o]=0;for(o=0;o<32;o++)h[o]=c[o];for(o=0;o<32;o++)for(s=0;s<32;s++)h[o+s]+=a[o]*u[s];return ot(t.subarray(32),h),f}function at(t,r,n,i){var o,a=new Uint8Array(32),h=new Uint8Array(64),l=[e(),e(),e(),e()],f=[e(),e(),e(),e()];if(n<64)return-1;if(function(t,r){var n=e(),i=e(),o=e(),a=e(),h=e(),l=e(),f=e();return N(t[2],u),B(t[1],r),z(o,t[1]),C(a,o,c),P(o,o,t[2]),U(a,t[2],a),z(h,a),z(l,h),C(f,l,h),C(n,f,o),C(n,n,a),Y(n,n),C(n,n,o),C(n,n,a),C(n,n,a),C(t[0],n,a),z(i,t[0]),C(i,i,a),j(i,o)&&C(t[0],t[0],p),z(i,t[0]),C(i,i,a),j(i,o)?-1:(D(t[0])===r[31]>>7&&P(t[0],s,t[0]),C(t[3],t[0],t[1]),0)}(f,i))return-1;for(o=0;o<n;o++)t[o]=r[o];for(o=0;o<32;o++)t[o+32]=i[o];if(H(h,t,n),st(h),et(l,f,h),rt(f,r.subarray(32)),X(l,f),tt(a,l),n-=64,m(r,0,a,0)){for(o=0;o<n;o++)t[o]=0;return-1}for(o=0;o<n;o++)t[o]=r[o+64];return n}var ct=16,ht=64,lt=32,ft=64;function pt(t,e){if(32!==t.length)throw new Error("bad key size");if(24!==e.length)throw new Error("bad nonce size")}function dt(){for(var t=0;t<arguments.length;t++)if(!(arguments[t]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function yt(t){for(var e=0;e<t.length;e++)t[e]=0}t.lowlevel={crypto_core_hsalsa20:w,crypto_stream_xor:x,crypto_stream:A,crypto_stream_salsa20_xor:M,crypto_stream_salsa20:E,crypto_onetimeauth:_,crypto_onetimeauth_verify:S,crypto_verify_16:v,crypto_verify_32:m,crypto_secretbox:O,crypto_secretbox_open:k,crypto_scalarmult:$,crypto_scalarmult_base:G,crypto_box_beforenm:K,crypto_box_afternm:q,crypto_box:function(t,e,r,n,i,o){var s=new Uint8Array(32);return K(s,i,o),q(t,e,r,n,s)},crypto_box_open:function(t,e,r,n,i,o){var s=new Uint8Array(32);return K(s,i,o),Q(t,e,r,n,s)},crypto_box_keypair:Z,crypto_hash:H,crypto_sign:ut,crypto_sign_keypair:nt,crypto_sign_open:at,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ct,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:ht,crypto_sign_PUBLICKEYBYTES:lt,crypto_sign_SECRETKEYBYTES:ft,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:e,D:c,L:it,pack25519:R,unpack25519:B,M:C,A:U,S:z,Z:P,pow2523:Y,add:X,set25519:N,modL:ot,scalarmult:et,scalarbase:rt},t.randomBytes=function(t){var e=new Uint8Array(t);return n(e,t),e},t.secretbox=function(t,e,r){dt(t,e,r),pt(r,e);for(var n=new Uint8Array(32+t.length),i=new Uint8Array(n.length),o=0;o<t.length;o++)n[o+32]=t[o];return O(i,n,n.length,e,r),i.subarray(ct)},t.secretbox.open=function(t,e,r){dt(t,e,r),pt(r,e);for(var n=new Uint8Array(ct+t.length),i=new Uint8Array(n.length),o=0;o<t.length;o++)n[o+ct]=t[o];return n.length<32||0!==k(i,n,n.length,e,r)?null:i.subarray(32)},t.secretbox.keyLength=32,t.secretbox.nonceLength=24,t.secretbox.overheadLength=ct,t.scalarMult=function(t,e){if(dt(t,e),32!==t.length)throw new Error("bad n size");if(32!==e.length)throw new Error("bad p size");
1var r=new Uint8Array(32);return $(r,t,e),r},t.scalarMult.base=function(t){if(dt(t),32!==t.length)throw new Error("bad n size");var e=new Uint8Array(32);return G(e,t),e},t.scalarMult.scalarLength=32,t.scalarMult.groupElementLength=32,t.box=function(e,r,n,i){var o=t.box.before(n,i);return t.secretbox(e,r,o)},t.box.before=function(t,e){dt(t,e),function(t,e){if(32!==t.length)throw new Error("bad public key size");if(32!==e.length)throw new Error("bad secret key size")}(t,e);var r=new Uint8Array(32);return K(r,t,e),r},t.box.after=t.secretbox,t.box.open=function(e,r,n,i){var o=t.box.before(n,i);return t.secretbox.open(e,r,o)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var t=new Uint8Array(32),e=new Uint8Array(32);return Z(t,e),{publicKey:t,secretKey:e}},t.box.keyPair.fromSecretKey=function(t){if(dt(t),32!==t.length)throw new Error("bad secret key size");var e=new Uint8Array(32);return G(e,t),{publicKey:e,secretKey:new Uint8Array(t)}},t.box.publicKeyLength=32,t.box.secretKeyLength=32,t.box.sharedKeyLength=32,t.box.nonceLength=24,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(t,e){if(dt(t,e),e.length!==ft)throw new Error("bad secret key size");var r=new Uint8Array(ht+t.length);return ut(r,t,t.length,e),r},t.sign.open=function(t,e){if(dt(t,e),e.length!==lt)throw new Error("bad public key size");var r=new Uint8Array(t.length),n=at(r,t,t.length,e);if(n<0)return null;for(var i=new Uint8Array(n),o=0;o<i.length;o++)i[o]=r[o];return i},t.sign.detached=function(e,r){for(var n=t.sign(e,r),i=new Uint8Array(ht),o=0;o<i.length;o++)i[o]=n[o];return i},t.sign.detached.verify=function(t,e,r){if(dt(t,e,r),e.length!==ht)throw new Error("bad signature size");if(r.length!==lt)throw new Error("bad public key size");var n,i=new Uint8Array(ht+t.length),o=new Uint8Array(ht+t.length);for(n=0;n<ht;n++)i[n]=e[n];for(n=0;n<t.length;n++)i[n+ht]=t[n];return at(o,i,i.length,r)>=0},t.sign.keyPair=function(){var t=new Uint8Array(lt),e=new Uint8Array(ft);return nt(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(dt(t),t.length!==ft)throw new Error("bad secret key size");for(var e=new Uint8Array(lt),r=0;r<e.length;r++)e[r]=t[32+r];return{publicKey:e,secretKey:new Uint8Array(t)}},t.sign.keyPair.fromSeed=function(t){if(dt(t),32!==t.length)throw new Error("bad seed size");for(var e=new Uint8Array(lt),r=new Uint8Array(ft),n=0;n<32;n++)r[n]=t[n];return nt(e,r,!0),{publicKey:e,secretKey:r}},t.sign.publicKeyLength=lt,t.sign.secretKeyLength=ft,t.sign.seedLength=32,t.sign.signatureLength=ht,t.hash=function(t){dt(t);var e=new Uint8Array(64);return H(e,t,t.length),e},t.hash.hashLength=64,t.verify=function(t,e){return dt(t,e),0!==t.length&&0!==e.length&&(t.length===e.length&&0===y(t,0,e,0,t.length))},t.setPRNG=function(t){n=t},function(){var e="undefined"!==typeof self?self.crypto||self.msCrypto:null;if(e&&e.getRandomValues){t.setPRNG((function(t,r){var n,i=new Uint8Array(r);for(n=0;n<r;n+=65536)e.getRandomValues(i.subarray(n,n+Math.min(r-n,65536)));for(n=0;n<r;n++)t[n]=i[n];yt(i)}))}else(e=r(55024))&&e.randomBytes&&t.setPRNG((function(t,r){var n,i=e.randomBytes(r);for(n=0;n<r;n++)t[n]=i[n];yt(i)}))}()}(t.exports?t.exports:self.nacl=self.nacl||{})},74880:function(t,e,r){"use strict";var n;r.d(e,{v4:function(){return l}});var i=new Uint8Array(16);function o(){if(!n&&!(n="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}var s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var u=function(t){return"string"===typeof t&&s.test(t)},a=[],c=0;c<256;++c)a.push((c+256).toString(16).substr(1));var h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase();
1if(!u(r))throw TypeError("Stringified UUID is invalid");return r};var l=function(t,e,r){var n=(t=t||{}).random||(t.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(var i=0;i<16;++i)e[r+i]=n[i];return e}return h(n)}},49602:function(t){"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},34411:function(t,e,r){"use strict";function n(t){var e=this;if(e instanceof n||(e=new n),e.tail=null,e.head=null,e.length=0,t&&"function"===typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}function i(t,e,r){var n=e===t.head?new u(r,null,e,t):new u(r,e,e.next,t);return null===n.next&&(t.tail=n),null===n.prev&&(t.head=n),t.length++,n}function o(t,e){t.tail=new u(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function s(t,e){t.head=new u(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function u(t,e,r,n){if(!(this instanceof u))return new u(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}t.exports=n,n.Node=u,n.create=n,n.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e},n.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},n.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},n.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)o(this,arguments[t]);return this.length},n.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)s(this,arguments[t]);return this.length},n.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},n.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},n.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;null!==r;n++)t.call(e,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;null!==r;n--)t.call(e,r.value,n,this),r=r.prev},n.prototype.get=function(t){for(var e=0,r=this.head;null!==r&&e<t;e++)r=r.next;if(e===t&&null!==r)return r.value},n.prototype.getReverse=function(t){for(var e=0,r=this.tail;null!==r&&e<t;e++)r=r.prev;if(e===t&&null!==r)return r.value},n.prototype.map=function(t,e){e=e||this;for(var r=new n,i=this.head;null!==i;)r.push(t.call(e,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(t,e){e=e||this;for(var r=new n,i=this.tail;null!==i;)r.push(t.call(e,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=t(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;
1i--)r=t(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},n.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},n.prototype.slice=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,o=this.head;null!==o&&i<t;i++)o=o.next;for(;null!==o&&i<e;i++,o=o.next)r.push(o.value);return r},n.prototype.sliceReverse=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,o=this.tail;null!==o&&i>e;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,o=this.head;null!==o&&n<t;n++)o=o.next;var s=[];for(n=0;o&&n<e;n++)s.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(n=0;n<r.length;n++)o=i(this,o,r[n]);return s},n.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};try{r(49602)(n)}catch(a){}},53471:function(t,e,r){"use strict";r.d(e,{Yj:function(){return d},IX:function(){return y},O7:function(){return v},oQ:function(){return k},Ue:function(){return h},eE:function(){return m},i0:function(){return g},AG:function(){return b},Rx:function(){return M},jt:function(){return E},IM:function(){return A},Z_:function(){return x},bc:function(){return I},dt:function(){return _},G0:function(){return S},_4:function(){return O}});class n extends TypeError{constructor(t,e){let r;const{message:n,...i}=t,{path:o}=t;super(0===o.length?n:"At path: "+o.join(".")+" -- "+n),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>{var n;return null!=(n=r)?n:r=[t,...e()]}}}function i(t){return"object"===typeof t&&null!=t}function o(t){return"string"===typeof t?JSON.stringify(t):""+t}function s(t,e,r,n){if(!0===t)return;!1===t?t={}:"string"===typeof t&&(t={message:t});const{path:i,branch:s}=e,{type:u}=r,{refinement:a,message:c="Expected a value of type `"+u+"`"+(a?" with refinement `"+a+"`":"")+", but received: `"+o(n)+"`"}=t;return{value:n,type:u,refinement:a,key:i[i.length-1],path:i,branch:s,...t,message:c}}function*u(t,e,r,n){var o;i(o=t)&&"function"===typeof o[Symbol.iterator]||(t=[t]);for(const i of t){const t=s(i,e,r,n);t&&(yield t)}}function*a(t,e,r={}){const{path:n=[],branch:o=[t],coerce:s=!1,mask:u=!1}=r,c={path:n,branch:o};if(s&&(t=e.coercer(t,c),u&&"type"!==e.type&&i(e.schema)&&i(t)&&!Array.isArray(t)))for(const i in t)void 0===e.schema[i]&&delete t[i];let h=!0;for(const i of e.validator(t,c))h=!1,yield[i,void 0];for(let[l,f,p]of e.entries(t,c)){const e=a(f,p,{path:void 0===l?n:[...n,l],branch:void 0===l?o:[...o,f],coerce:s,mask:u});for(const r of e)r[0]?(h=!1,yield[r[0],void 0]):s&&(f=r[1],void 0===l?t=f:t instanceof Map?t.set(l,f):t instanceof Set?t.add(f):i(t)&&(t[l]=f))}if(h)for(const i of e.refiner(t,c))h=!1,yield[i,void 0];h&&(yield[void 0,t])}class c{constructor(t){const{type:e,schema:r,validator:n,refiner:i,coercer:o=(t=>t),entries:s=function*(){}}=t;this.type=e,this.schema=r,this.entries=s,this.coercer=o,this.validator=n?(t,e)=>u(n(t,e),e,this,t):()=>[],this.refiner=i?(t,e)=>u(i(t,e),e,this,t):()=>[]}assert(t){return function(t,e){const r=f(t,e);if(r[0])throw r[0]}(t,this)}create(t){return h(t,this)}is(t){return l(t,this)}mask(t){return function(t,e){const r=f(t,e,{coerce:!0,mask:!0});if(r[0])throw r[0];return r[1]}(t,this)}validate(t,e={}){return f(t,this,e)}}function h(t,e){const r=f(t,e,{coerce:!0});if(r[0])throw r[0];return r[1]}function l(t,e){return!f(t,e)[0]}function f(t,e,r={}){const i=a(t,e,r),o=function(t){const{done:e,value:r}=t.next();return e?void 0:r}(i);if(o[0]){return[new n(o[0],(function*(){for(const t of i)t[0]&&(yield t[0])})),void 0]}return[void 0,o[1]]}function p(t,e){return new c({type:t,schema:null,validator:e})}function d(){return p("any",(()=>!0))}function y(t){return new c({type:"array",schema:t,*entries(e){if(t&&Array.isArray(e))for(const[r,n]of e.entries())yield[r,n,t]},coercer:t=>Array.isArray(t)?t.slice():t,validator:t=>Array.isArray(t)||"Expected an array value, but received: "+o(t)})}function v(){return p("boolean",(t=>"boolean"===typeof t))}function m(t){return p("instance",(e=>
1e instanceof t||"Expected a `"+t.name+"` instance, but received: "+o(e)))}function g(t){const e=o(t),r=typeof t;return new c({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?t:null,validator:r=>r===t||"Expected the literal `"+e+"`, but received: "+o(r)})}function w(){return p("never",(()=>!1))}function b(t){return new c({...t,validator:(e,r)=>null===e||t.validator(e,r),refiner:(e,r)=>null===e||t.refiner(e,r)})}function M(){return p("number",(t=>"number"===typeof t&&!isNaN(t)||"Expected a number, but received: "+o(t)))}function E(t){return new c({...t,validator:(e,r)=>void 0===e||t.validator(e,r),refiner:(e,r)=>void 0===e||t.refiner(e,r)})}function A(t,e){return new c({type:"record",schema:null,*entries(r){if(i(r))for(const n in r){const i=r[n];yield[n,n,t],yield[n,i,e]}},validator:t=>i(t)||"Expected an object, but received: "+o(t)})}function x(){return p("string",(t=>"string"===typeof t||"Expected a string, but received: "+o(t)))}function I(t){const e=w();return new c({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const n=Math.max(t.length,r.length);for(let i=0;i<n;i++)yield[i,r[i],t[i]||e]}},validator:t=>Array.isArray(t)||"Expected an array, but received: "+o(t)})}function _(t){const e=Object.keys(t);return new c({type:"type",schema:t,*entries(r){if(i(r))for(const n of e)yield[n,r[n],t[n]]},validator:t=>i(t)||"Expected an object, but received: "+o(t)})}function S(t){const e=t.map((t=>t.type)).join(" | ");return new c({type:"union",schema:null,validator(r,n){const i=[];for(const e of t){const[...t]=a(r,e,n),[o]=t;if(!o[0])return[];for(const[e]of t)e&&i.push(e)}return["Expected the value to satisfy a union of `"+e+"`, but received: "+o(r),...i]}})}function O(){return p("unknown",(()=>!0))}function k(t,e,r){return new c({...t,coercer:(n,i)=>l(n,e)?t.coercer(r(n,i),i):t.coercer(n,i)})}},21127:function(t,e,r){"use strict";function n(t,e,r){return e<=t&&t<=r}function i(t){if(void 0===t)return{};if(t===Object(t))return t;throw TypeError("Could not convert argument to dictionary")}r.r(e),r.d(e,{TextEncoder:function(){return h},TextDecoder:function(){return c}});function o(t){this.tokens=[].slice.call(t)}o.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.unshift(e.pop());else this.tokens.unshift(t)},push:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.push(e.shift());else this.tokens.push(t)}};var s=-1;function u(t,e){if(t)throw TypeError("Decoder error");return e||65533}var a="utf-8";function c(t,e){if(!(this instanceof c))return new c(t,e);if((t=void 0!==t?String(t).toLowerCase():a)!==a)throw new Error("Encoding not supported. Only utf-8 is supported");e=i(e),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(e.fatal),this._ignoreBOM=Boolean(e.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function h(t,e){if(!(this instanceof h))return new h(t,e);if((t=void 0!==t?String(t).toLowerCase():a)!==a)throw new Error("Encoding not supported. Only utf-8 is supported");e=i(e),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(e.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function l(t){var e=t.fatal,r=0,i=0,o=0,a=128,c=191;this.handler=function(t,h){if(-1===h&&0!==o)return o=0,u(e);if(-1===h)return s;if(0===o){if(n(h,0,127))return h;if(n(h,194,223))o=1,r=h-192;else if(n(h,224,239))224===h&&(a=160),237===h&&(c=159),o=2,r=h-224;else{if(!n(h,240,244))return u(e);240===h&&(a=144),244===h&&(c=143),o=3,r=h-240}return r<<=6*o,null}if(!n(h,a,c))return r=o=i=0,a=128,c=191,t.prepend(h),u(e);if(a=128,c=191,r+=h-128<<6*(o-(i+=1)),i!==o)return null;var l=r;return r=o=i=0,l}}function f(t){t.fatal;this.handler=function(t,e){if(-1===e)return s;if(n(e,0,127))return e;var r,i;n(e,128,2047)?(r=1,i=192):n(e,2048,65535)?(r=2,i=224):n(e,65536,1114111)&&(r=3,i=240);for(var o=[(e>>6*r)+i];r>0;){var u=e>>6*(r-1);o.push(128|63&u),r-=1}return o}}c.prototype={decode:function(t,e){var r;r="object"===typeof t&&t instanceof ArrayBuffer?new Uint8Array(t):"object"===typeof t&&"buffer"in t&&t.buffer instanceof ArrayBuffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(0),e=i(e),this._streaming||(this._decoder=new l({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(e.stream);for(var n,u=new o(r),a=[];!u.endOfStream()&&(n=this._decoder.handler(u,u.read()))!==s;)null!==n&&(Array.isArray(n)?a.push.apply(a,n):a.push(n));if(!this._streaming){do{if((n=this._decoder.handler(u,u.read()))===s)break;null!==n&&(Array.isArray(n)?a.push.apply(a,n):a.push(n))}while(!u.endOfStream());this._decoder=null}return a.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===a[0]?(this._BOMseen=!0,a.shift()):this._BOMseen=!0)),function(t){for(var e="",r=0;r<t.length;++r){var n=t[r];n<=65535?e+=String.fromCharCode(n):(n-=65536,e+=String.fromCharCode(55296+(n>>10),56320+(1023&n)))}return e}(a)}},h.prototype={encode:function(t,e){t=t?String(t):"",e=i(e),this._streaming||(this._encoder=new f(this._options)),this._streaming=Boolean(e.stream);for(var r,n=[],u=new o(function(t){for(var e=String(t),r=e.length,n=0,i=[];n<r;){var o=e.charCodeAt(n);if(o<55296||o>57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(n===r-1)i.push(65533);else{var s=t.charCodeAt(n+1);if(56320<=s&&s<=57343){var u=1023&o,a=1023&s;i.push(65536+(u<<10)+a),n+=1}else i.push(65533)}n+=1}return i}(t));!u.endOfStream()&&(r=this._encoder.handler(u,u.read()))!==s;)Array.isArray(r)?n.push.apply(n,r):n.push(r);if(!this._streaming){for(;(r=this._encoder.handler(u,u.read()))!==s;)Array.isArray(r)?n.push.apply(n,r):n.push(r);this._encoder=null}return new Uint8Array(n)}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.