@reown/appkit-cdn 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,217 @@
1
+ "use strict";const Ho=require("./W3MFrameProviderSingleton-BpWUndnw.cjs");var Hw={exports:{}};(function(yW,PL){(function(Ie,Pu){Pu(PL)})(Ho.commonjsGlobal,function(Ie){var Pu=typeof Ho.commonjsGlobal<"u"?Ho.commonjsGlobal:typeof self<"u"?self:typeof window<"u"?window:{},En=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Ho.commonjsGlobal<"u"?Ho.commonjsGlobal:typeof self<"u"?self:{};function td(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function um(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var q6={exports:{}};(function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||En!==void 0&&En,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(c){var g=i!==void 0&&i||typeof self<"u"&&self||g!==void 0&&g,_="URLSearchParams"in g,w="Symbol"in g&&"iterator"in Symbol,S="FileReader"in g&&"Blob"in g&&function(){try{return new Blob,!0}catch{return!1}}(),E="FormData"in g,T="ArrayBuffer"in g;if(T)var I=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],j=ArrayBuffer.isView||function(f){return f&&I.indexOf(Object.prototype.toString.call(f))>-1};function H(f){if(typeof f!="string"&&(f=String(f)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(f)||f==="")throw new TypeError('Invalid character in header field name: "'+f+'"');return f.toLowerCase()}function V(f){return typeof f!="string"&&(f=String(f)),f}function ee(f){var l={next:function(){var b=f.shift();return{done:b===void 0,value:b}}};return w&&(l[Symbol.iterator]=function(){return l}),l}function X(f){this.map={},f instanceof X?f.forEach(function(l,b){this.append(b,l)},this):Array.isArray(f)?f.forEach(function(l){this.append(l[0],l[1])},this):f&&Object.getOwnPropertyNames(f).forEach(function(l){this.append(l,f[l])},this)}function ue(f){if(f.bodyUsed)return Promise.reject(new TypeError("Already read"));f.bodyUsed=!0}function le(f){return new Promise(function(l,b){f.onload=function(){l(f.result)},f.onerror=function(){b(f.error)}})}function pe(f){var l=new FileReader,b=le(l);return l.readAsArrayBuffer(f),b}function Me(f){if(f.slice)return f.slice(0);var l=new Uint8Array(f.byteLength);return l.set(new Uint8Array(f)),l.buffer}function ye(){return this.bodyUsed=!1,this._initBody=function(f){var l;this.bodyUsed=this.bodyUsed,this._bodyInit=f,f?typeof f=="string"?this._bodyText=f:S&&Blob.prototype.isPrototypeOf(f)?this._bodyBlob=f:E&&FormData.prototype.isPrototypeOf(f)?this._bodyFormData=f:_&&URLSearchParams.prototype.isPrototypeOf(f)?this._bodyText=f.toString():T&&S&&(l=f)&&DataView.prototype.isPrototypeOf(l)?(this._bodyArrayBuffer=Me(f.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):T&&(ArrayBuffer.prototype.isPrototypeOf(f)||j(f))?this._bodyArrayBuffer=Me(f):this._bodyText=f=Object.prototype.toString.call(f):this._bodyText="",this.headers.get("content-type")||(typeof f=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):_&&URLSearchParams.prototype.isPrototypeOf(f)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},S&&(this.blob=function(){var f=ue(this);if(f)return f;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var f=ue(this);return f||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(pe)}),this.text=function(){var f,l,b,C=ue(this);if(C)return C;if(this._bodyBlob)return f=this._bodyBlob,l=new FileReader,b=le(l),l.readAsText(f),b;if(this._bodyArrayBuffer)return Promise.resolve(function(R){for(var L=new Uint8Array(R),B=new Array(L.length),K=0;K<L.length;K++)B[K]=String.fromCharCode(L[K]);return B.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},E&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}X.prototype.append=function(f,l){f=H(f),l=V(l);var b=this.map[f];this.map[f]=b?b+", "+l:l},X.prototype.delete=function(f){delete this.map[H(f)]},X.prototype.get=function(f){return f=H(f),this.has(f)?this.map[f]:null},X.prototype.has=function(f){return this.map.hasOwnProperty(H(f))},X.prototype.set=function(f,l){this.map[H(f)]=V(l)},X.prototype.forEach=function(f,l){for(var b in this.map)this.map.hasOwnProperty(b)&&f.call(l,this.map[b],b,this)},X.prototype.keys=function(){var f=[];return this.forEach(function(l,b){f.push(b)}),ee(f)},X.prototype.values=function(){var f=[];return this.forEach(function(l){f.push(l)}),ee(f)},X.prototype.entries=function(){var f=[];return this.forEach(function(l,b){f.push([b,l])}),ee(f)},w&&(X.prototype[Symbol.iterator]=X.prototype.entries);var Te=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(f,l){if(!(this instanceof y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var b=(l=l||{}).body;if(f instanceof y){if(f.bodyUsed)throw new TypeError("Already read");this.url=f.url,this.credentials=f.credentials,l.headers||(this.headers=new X(f.headers)),this.method=f.method,this.mode=f.mode,this.signal=f.signal,b||f._bodyInit==null||(b=f._bodyInit,f.bodyUsed=!0)}else this.url=String(f);if(this.credentials=l.credentials||this.credentials||"same-origin",!l.headers&&this.headers||(this.headers=new X(l.headers)),this.method=function(R){var L=R.toUpperCase();return Te.indexOf(L)>-1?L:R}(l.method||this.method||"GET"),this.mode=l.mode||this.mode||null,this.signal=l.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&b)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(b),!(this.method!=="GET"&&this.method!=="HEAD"||l.cache!=="no-store"&&l.cache!=="no-cache")){var C=/([?&])_=[^&]*/;C.test(this.url)?this.url=this.url.replace(C,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function x(f){var l=new FormData;return f.trim().split("&").forEach(function(b){if(b){var C=b.split("="),R=C.shift().replace(/\+/g," "),L=C.join("=").replace(/\+/g," ");l.append(decodeURIComponent(R),decodeURIComponent(L))}}),l}function d(f,l){if(!(this instanceof d))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');l||(l={}),this.type="default",this.status=l.status===void 0?200:l.status,this.ok=this.status>=200&&this.status<300,this.statusText=l.statusText===void 0?"":""+l.statusText,this.headers=new X(l.headers),this.url=l.url||"",this._initBody(f)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},ye.call(y.prototype),ye.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new X(this.headers),url:this.url})},d.error=function(){var f=new d(null,{status:0,statusText:""});return f.type="error",f};var p=[301,302,303,307,308];d.redirect=function(f,l){if(p.indexOf(l)===-1)throw new RangeError("Invalid status code");return new d(null,{status:l,headers:{location:f}})},c.DOMException=g.DOMException;try{new c.DOMException}catch{c.DOMException=function(l,b){this.message=l,this.name=b;var C=Error(l);this.stack=C.stack},c.DOMException.prototype=Object.create(Error.prototype),c.DOMException.prototype.constructor=c.DOMException}function h(f,l){return new Promise(function(b,C){var R=new y(f,l);if(R.signal&&R.signal.aborted)return C(new c.DOMException("Aborted","AbortError"));var L=new XMLHttpRequest;function B(){L.abort()}L.onload=function(){var K,z,O={status:L.status,statusText:L.statusText,headers:(K=L.getAllResponseHeaders()||"",z=new X,K.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(q){return q.indexOf(`
2
+ `)===0?q.substr(1,q.length):q}).forEach(function(q){var Y=q.split(":"),Q=Y.shift().trim();if(Q){var ae=Y.join(":").trim();z.append(Q,ae)}}),z)};O.url="responseURL"in L?L.responseURL:O.headers.get("X-Request-URL");var D="response"in L?L.response:L.responseText;setTimeout(function(){b(new d(D,O))},0)},L.onerror=function(){setTimeout(function(){C(new TypeError("Network request failed"))},0)},L.ontimeout=function(){setTimeout(function(){C(new TypeError("Network request failed"))},0)},L.onabort=function(){setTimeout(function(){C(new c.DOMException("Aborted","AbortError"))},0)},L.open(R.method,function(K){try{return K===""&&g.location.href?g.location.href:K}catch{return K}}(R.url),!0),R.credentials==="include"?L.withCredentials=!0:R.credentials==="omit"&&(L.withCredentials=!1),"responseType"in L&&(S?L.responseType="blob":T&&R.headers.get("Content-Type")&&R.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(L.responseType="arraybuffer")),!l||typeof l.headers!="object"||l.headers instanceof X?R.headers.forEach(function(K,z){L.setRequestHeader(z,K)}):Object.getOwnPropertyNames(l.headers).forEach(function(K){L.setRequestHeader(K,V(l.headers[K]))}),R.signal&&(R.signal.addEventListener("abort",B),L.onreadystatechange=function(){L.readyState===4&&R.signal.removeEventListener("abort",B)}),L.send(R._bodyInit===void 0?null:R._bodyInit)})}h.polyfill=!0,g.fetch||(g.fetch=h,g.Headers=X,g.Request=y,g.Response=d),c.Headers=X,c.Request=y,c.Response=d,c.fetch=h})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=n.fetch?n:r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t})(q6,q6.exports);var LL=td(q6.exports),Lu=[],ja=[],IL=typeof Uint8Array<"u"?Uint8Array:Array,H6=!1;function Ww(){H6=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)Lu[t]=e[t],ja[e.charCodeAt(t)]=t;ja[45]=62,ja[95]=63}function OL(e,t,n){for(var r,o,i=[],c=t;c<n;c+=3)r=(e[c]<<16)+(e[c+1]<<8)+e[c+2],i.push(Lu[(o=r)>>18&63]+Lu[o>>12&63]+Lu[o>>6&63]+Lu[63&o]);return i.join("")}function $w(e){var t;H6||Ww();for(var n=e.length,r=n%3,o="",i=[],c=16383,g=0,_=n-r;g<_;g+=c)i.push(OL(e,g,g+c>_?_:g+c));return r===1?(t=e[n-1],o+=Lu[t>>2],o+=Lu[t<<4&63],o+="=="):r===2&&(t=(e[n-2]<<8)+e[n-1],o+=Lu[t>>10],o+=Lu[t>>4&63],o+=Lu[t<<2&63],o+="="),i.push(o),i.join("")}function lv(e,t,n,r,o){var i,c,g=8*o-r-1,_=(1<<g)-1,w=_>>1,S=-7,E=n?o-1:0,T=n?-1:1,I=e[t+E];for(E+=T,i=I&(1<<-S)-1,I>>=-S,S+=g;S>0;i=256*i+e[t+E],E+=T,S-=8);for(c=i&(1<<-S)-1,i>>=-S,S+=r;S>0;c=256*c+e[t+E],E+=T,S-=8);if(i===0)i=1-w;else{if(i===_)return c?NaN:1/0*(I?-1:1);c+=Math.pow(2,r),i-=w}return(I?-1:1)*c*Math.pow(2,i-r)}function Vw(e,t,n,r,o,i){var c,g,_,w=8*i-o-1,S=(1<<w)-1,E=S>>1,T=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=r?0:i-1,j=r?1:-1,H=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(g=isNaN(t)?1:0,c=S):(c=Math.floor(Math.log(t)/Math.LN2),t*(_=Math.pow(2,-c))<1&&(c--,_*=2),(t+=c+E>=1?T/_:T*Math.pow(2,1-E))*_>=2&&(c++,_/=2),c+E>=S?(g=0,c=S):c+E>=1?(g=(t*_-1)*Math.pow(2,o),c+=E):(g=t*Math.pow(2,E-1)*Math.pow(2,o),c=0));o>=8;e[n+I]=255&g,I+=j,g/=256,o-=8);for(c=c<<o|g,w+=o;w>0;e[n+I]=255&c,I+=j,c/=256,w-=8);e[n+I-j]|=128*H}var NL={}.toString,Yw=Array.isArray||function(e){return NL.call(e)=="[object Array]"};ze.TYPED_ARRAY_SUPPORT=Pu.TYPED_ARRAY_SUPPORT===void 0||Pu.TYPED_ARRAY_SUPPORT;var DL=cv();function cv(){return ze.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ql(e,t){if(cv()<t)throw new RangeError("Invalid typed array length");return ze.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=ze.prototype:(e===null&&(e=new ze(t)),e.length=t),e}function ze(e,t,n){if(!(ze.TYPED_ARRAY_SUPPORT||this instanceof ze))return new ze(e,t,n);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return W6(this,e)}return Gw(this,e,t,n)}function Gw(e,t,n,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?function(o,i,c,g){if(i.byteLength,c<0||i.byteLength<c)throw new RangeError("'offset' is out of bounds");if(i.byteLength<c+(g||0))throw new RangeError("'length' is out of bounds");return i=c===void 0&&g===void 0?new Uint8Array(i):g===void 0?new Uint8Array(i,c):new Uint8Array(i,c,g),ze.TYPED_ARRAY_SUPPORT?(o=i).__proto__=ze.prototype:o=$6(o,i),o}(e,t,n,r):typeof t=="string"?function(o,i,c){if(typeof c=="string"&&c!==""||(c="utf8"),!ze.isEncoding(c))throw new TypeError('"encoding" must be a valid string encoding');var g=0|Qw(i,c);o=ql(o,g);var _=o.write(i,c);return _!==g&&(o=o.slice(0,_)),o}(e,t,n):function(o,i){if(Iu(i)){var c=0|V6(i.length);return(o=ql(o,c)).length===0||i.copy(o,0,0,c),o}if(i){if(typeof ArrayBuffer<"u"&&i.buffer instanceof ArrayBuffer||"length"in i)return typeof i.length!="number"||(g=i.length)!=g?ql(o,0):$6(o,i);if(i.type==="Buffer"&&Yw(i.data))return $6(o,i.data)}var g;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Zw(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function W6(e,t){if(Zw(t),e=ql(e,t<0?0:0|V6(t)),!ze.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function $6(e,t){var n=t.length<0?0:0|V6(t.length);e=ql(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function V6(e){if(e>=cv())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+cv().toString(16)+" bytes");return 0|e}function Iu(e){return!(e==null||!e._isBuffer)}function Qw(e,t){if(Iu(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var n=e.length;if(n===0)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return hv(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return a_(e).length;default:if(r)return hv(e).length;t=(""+t).toLowerCase(),r=!0}}function BL(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return $L(this,t,n);case"utf8":case"utf-8":return t_(this,t,n);case"ascii":return HL(this,t,n);case"latin1":case"binary":return WL(this,t,n);case"base64":return qL(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return VL(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Df(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Xw(e,t,n,r,o){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if(typeof t=="string"&&(t=ze.from(t,r)),Iu(t))return t.length===0?-1:Jw(e,t,n,r,o);if(typeof t=="number")return t&=255,ze.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Jw(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Jw(e,t,n,r,o){var i,c=1,g=e.length,_=t.length;if(r!==void 0&&((r=String(r).toLowerCase())==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;c=2,g/=2,_/=2,n/=2}function w(I,j){return c===1?I[j]:I.readUInt16BE(j*c)}if(o){var S=-1;for(i=n;i<g;i++)if(w(e,i)===w(t,S===-1?0:i-S)){if(S===-1&&(S=i),i-S+1===_)return S*c}else S!==-1&&(i-=i-S),S=-1}else for(n+_>g&&(n=g-_),i=n;i>=0;i--){for(var E=!0,T=0;T<_;T++)if(w(e,i+T)!==w(t,T)){E=!1;break}if(E)return i}return-1}function jL(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var c=0;c<r;++c){var g=parseInt(t.substr(2*c,2),16);if(isNaN(g))return c;e[n+c]=g}return c}function zL(e,t,n,r){return pv(hv(t,e.length-n),e,n,r)}function e_(e,t,n,r){return pv(function(o){for(var i=[],c=0;c<o.length;++c)i.push(255&o.charCodeAt(c));return i}(t),e,n,r)}function UL(e,t,n,r){return e_(e,t,n,r)}function FL(e,t,n,r){return pv(a_(t),e,n,r)}function KL(e,t,n,r){return pv(function(o,i){for(var c,g,_,w=[],S=0;S<o.length&&!((i-=2)<0);++S)g=(c=o.charCodeAt(S))>>8,_=c%256,w.push(_),w.push(g);return w}(t,e.length-n),e,n,r)}function qL(e,t,n){return t===0&&n===e.length?$w(e):$w(e.slice(t,n))}function t_(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,c,g,_,w=e[o],S=null,E=w>239?4:w>223?3:w>191?2:1;if(o+E<=n)switch(E){case 1:w<128&&(S=w);break;case 2:(192&(i=e[o+1]))==128&&(_=(31&w)<<6|63&i)>127&&(S=_);break;case 3:i=e[o+1],c=e[o+2],(192&i)==128&&(192&c)==128&&(_=(15&w)<<12|(63&i)<<6|63&c)>2047&&(_<55296||_>57343)&&(S=_);break;case 4:i=e[o+1],c=e[o+2],g=e[o+3],(192&i)==128&&(192&c)==128&&(192&g)==128&&(_=(15&w)<<18|(63&i)<<12|(63&c)<<6|63&g)>65535&&_<1114112&&(S=_)}S===null?(S=65533,E=1):S>65535&&(S-=65536,r.push(S>>>10&1023|55296),S=56320|1023&S),r.push(S),o+=E}return function(T){var I=T.length;if(I<=n_)return String.fromCharCode.apply(String,T);for(var j="",H=0;H<I;)j+=String.fromCharCode.apply(String,T.slice(H,H+=n_));return j}(r)}ze.poolSize=8192,ze._augment=function(e){return e.__proto__=ze.prototype,e},ze.from=function(e,t,n){return Gw(null,e,t,n)},ze.TYPED_ARRAY_SUPPORT&&(ze.prototype.__proto__=Uint8Array.prototype,ze.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&ze[Symbol.species]),ze.alloc=function(e,t,n){return function(r,o,i,c){return Zw(o),o<=0?ql(r,o):i!==void 0?typeof c=="string"?ql(r,o).fill(i,c):ql(r,o).fill(i):ql(r,o)}(null,e,t,n)},ze.allocUnsafe=function(e){return W6(null,e)},ze.allocUnsafeSlow=function(e){return W6(null,e)},ze.isBuffer=va,ze.compare=function(e,t){if(!Iu(e)||!Iu(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},ze.isEncoding=function(e){switch(String(e).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}},ze.concat=function(e,t){if(!Yw(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return ze.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=ze.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(!Iu(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},ze.byteLength=Qw,ze.prototype._isBuffer=!0,ze.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Df(this,t,t+1);return this},ze.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Df(this,t,t+3),Df(this,t+1,t+2);return this},ze.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Df(this,t,t+7),Df(this,t+1,t+6),Df(this,t+2,t+5),Df(this,t+3,t+4);return this},ze.prototype.toString=function(){var e=0|this.length;return e===0?"":arguments.length===0?t_(this,0,e):BL.apply(this,arguments)},ze.prototype.equals=function(e){if(!Iu(e))throw new TypeError("Argument must be a Buffer");return this===e||ze.compare(this,e)===0},ze.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},ze.prototype.compare=function(e,t,n,r,o){if(!Iu(e))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),o===void 0&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),c=(n>>>=0)-(t>>>=0),g=Math.min(i,c),_=this.slice(r,o),w=e.slice(t,n),S=0;S<g;++S)if(_[S]!==w[S]){i=_[S],c=w[S];break}return i<c?-1:c<i?1:0},ze.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},ze.prototype.indexOf=function(e,t,n){return Xw(this,e,t,n,!0)},ze.prototype.lastIndexOf=function(e,t,n){return Xw(this,e,t,n,!1)},ze.prototype.write=function(e,t,n,r){if(t===void 0)r="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,r===void 0&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return jL(this,e,t,n);case"utf8":case"utf-8":return zL(this,e,t,n);case"ascii":return e_(this,e,t,n);case"latin1":case"binary":return UL(this,e,t,n);case"base64":return FL(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return KL(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},ze.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var n_=4096;function HL(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function WL(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function $L(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=GL(e[i]);return o}function VL(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function _i(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Wo(e,t,n,r,o,i){if(!Iu(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function dv(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function fv(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function r_(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function i_(e,t,n,r,o){return o||r_(e,0,n,4),Vw(e,t,n,r,23,4),n+4}function o_(e,t,n,r,o){return o||r_(e,0,n,8),Vw(e,t,n,r,52,8),n+8}ze.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=t===void 0?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),ze.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=ze.prototype;else{var o=t-e;n=new ze(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},ze.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||_i(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},ze.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||_i(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},ze.prototype.readUInt8=function(e,t){return t||_i(e,1,this.length),this[e]},ze.prototype.readUInt16LE=function(e,t){return t||_i(e,2,this.length),this[e]|this[e+1]<<8},ze.prototype.readUInt16BE=function(e,t){return t||_i(e,2,this.length),this[e]<<8|this[e+1]},ze.prototype.readUInt32LE=function(e,t){return t||_i(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ze.prototype.readUInt32BE=function(e,t){return t||_i(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ze.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||_i(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},ze.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||_i(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},ze.prototype.readInt8=function(e,t){return t||_i(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ze.prototype.readInt16LE=function(e,t){t||_i(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},ze.prototype.readInt16BE=function(e,t){t||_i(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},ze.prototype.readInt32LE=function(e,t){return t||_i(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ze.prototype.readInt32BE=function(e,t){return t||_i(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ze.prototype.readFloatLE=function(e,t){return t||_i(e,4,this.length),lv(this,e,!0,23,4)},ze.prototype.readFloatBE=function(e,t){return t||_i(e,4,this.length),lv(this,e,!1,23,4)},ze.prototype.readDoubleLE=function(e,t){return t||_i(e,8,this.length),lv(this,e,!0,52,8)},ze.prototype.readDoubleBE=function(e,t){return t||_i(e,8,this.length),lv(this,e,!1,52,8)},ze.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Wo(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},ze.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Wo(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},ze.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Wo(this,e,t,1,255,0),ze.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ze.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Wo(this,e,t,2,65535,0),ze.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):dv(this,e,t,!0),t+2},ze.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Wo(this,e,t,2,65535,0),ze.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):dv(this,e,t,!1),t+2},ze.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Wo(this,e,t,4,4294967295,0),ze.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):fv(this,e,t,!0),t+4},ze.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Wo(this,e,t,4,4294967295,0),ze.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):fv(this,e,t,!1),t+4},ze.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Wo(this,e,t,n,o-1,-o)}var i=0,c=1,g=0;for(this[t]=255&e;++i<n&&(c*=256);)e<0&&g===0&&this[t+i-1]!==0&&(g=1),this[t+i]=(e/c>>0)-g&255;return t+n},ze.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Wo(this,e,t,n,o-1,-o)}var i=n-1,c=1,g=0;for(this[t+i]=255&e;--i>=0&&(c*=256);)e<0&&g===0&&this[t+i+1]!==0&&(g=1),this[t+i]=(e/c>>0)-g&255;return t+n},ze.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Wo(this,e,t,1,127,-128),ze.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ze.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Wo(this,e,t,2,32767,-32768),ze.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):dv(this,e,t,!0),t+2},ze.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Wo(this,e,t,2,32767,-32768),ze.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):dv(this,e,t,!1),t+2},ze.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Wo(this,e,t,4,2147483647,-2147483648),ze.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):fv(this,e,t,!0),t+4},ze.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Wo(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ze.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):fv(this,e,t,!1),t+4},ze.prototype.writeFloatLE=function(e,t,n){return i_(this,e,t,!0,n)},ze.prototype.writeFloatBE=function(e,t,n){return i_(this,e,t,!1,n)},ze.prototype.writeDoubleLE=function(e,t,n){return o_(this,e,t,!0,n)},ze.prototype.writeDoubleBE=function(e,t,n){return o_(this,e,t,!1,n)},ze.prototype.copy=function(e,t,n,r){if(n||(n=0),r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!ze.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},ze.prototype.fill=function(e,t,n,r){if(typeof e=="string"){if(typeof t=="string"?(r=t,t=0,n=this.length):typeof n=="string"&&(r=n,n=this.length),e.length===1){var o=e.charCodeAt(0);o<256&&(e=o)}if(r!==void 0&&typeof r!="string")throw new TypeError("encoding must be a string");if(typeof r=="string"&&!ze.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else typeof e=="number"&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=n===void 0?this.length:n>>>0,e||(e=0),typeof e=="number")for(i=t;i<n;++i)this[i]=e;else{var c=Iu(e)?e:hv(new ze(e,r).toString()),g=c.length;for(i=0;i<n-t;++i)this[i+t]=c[i%g]}return this};var YL=/[^+\/0-9A-Za-z-_]/g;function GL(e){return e<16?"0"+e.toString(16):e.toString(16)}function hv(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],c=0;c<r;++c){if((n=e.charCodeAt(c))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(c+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function a_(e){return function(t){var n,r,o,i,c,g;H6||Ww();var _=t.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");c=t[_-2]==="="?2:t[_-1]==="="?1:0,g=new IL(3*_/4-c),o=c>0?_-4:_;var w=0;for(n=0,r=0;n<o;n+=4,r+=3)i=ja[t.charCodeAt(n)]<<18|ja[t.charCodeAt(n+1)]<<12|ja[t.charCodeAt(n+2)]<<6|ja[t.charCodeAt(n+3)],g[w++]=i>>16&255,g[w++]=i>>8&255,g[w++]=255&i;return c===2?(i=ja[t.charCodeAt(n)]<<2|ja[t.charCodeAt(n+1)]>>4,g[w++]=255&i):c===1&&(i=ja[t.charCodeAt(n)]<<10|ja[t.charCodeAt(n+1)]<<4|ja[t.charCodeAt(n+2)]>>2,g[w++]=i>>8&255,g[w++]=255&i),g}(function(t){if((t=function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}(t).replace(YL,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function pv(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function va(e){return e!=null&&(!!e._isBuffer||s_(e)||function(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&s_(t.slice(0,0))}(e))}function s_(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var ZL=Object.freeze({__proto__:null,Buffer:ze,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),ze.alloc(+e)},isBuffer:va,kMaxLength:DL}),O0={},Y6={},G6={},xs=um(ZL),Pn={};function u_(){throw new Error("setTimeout has not been defined")}function l_(){throw new Error("clearTimeout has not been defined")}var nd=u_,rd=l_;function c_(e){if(nd===setTimeout)return setTimeout(e,0);if((nd===u_||!nd)&&setTimeout)return nd=setTimeout,setTimeout(e,0);try{return nd(e,0)}catch{try{return nd.call(null,e,0)}catch{return nd.call(this,e,0)}}}typeof Pu.setTimeout=="function"&&(nd=setTimeout),typeof Pu.clearTimeout=="function"&&(rd=clearTimeout);var Bf,Hl=[],N0=!1,mv=-1;function QL(){N0&&Bf&&(N0=!1,Bf.length?Hl=Bf.concat(Hl):mv=-1,Hl.length&&d_())}function d_(){if(!N0){var e=c_(QL);N0=!0;for(var t=Hl.length;t;){for(Bf=Hl,Hl=[];++mv<t;)Bf&&Bf[mv].run();mv=-1,t=Hl.length}Bf=null,N0=!1,function(n){if(rd===clearTimeout)return clearTimeout(n);if((rd===l_||!rd)&&clearTimeout)return rd=clearTimeout,clearTimeout(n);try{return rd(n)}catch{try{return rd.call(null,n)}catch{return rd.call(this,n)}}}(e)}}function xn(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Hl.push(new f_(e,t)),Hl.length!==1||N0||c_(d_)}function f_(e,t){this.fun=e,this.array=t}f_.prototype.run=function(){this.fun.apply(null,this.array)};function jf(){}var XL=jf,JL=jf,eI=jf,tI=jf,nI=jf,rI=jf,iI=jf,D0=Pu.performance||{},oI=D0.now||D0.mozNow||D0.msNow||D0.oNow||D0.webkitNow||function(){return new Date().getTime()},aI=new Date,h_,vr={nextTick:xn,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:XL,addListener:JL,once:eI,off:tI,removeListener:nI,removeAllListeners:rI,emit:iI,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*oI.call(D0),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-aI)/1e3}},Z6={exports:{}},Q6={exports:{}};function In(){return h_||(h_=1,function(e,t){var n=xs,r=n.Buffer;function o(c,g){for(var _ in c)g[_]=c[_]}function i(c,g,_){return r(c,g,_)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=i),i.prototype=Object.create(r.prototype),o(r,i),i.from=function(c,g,_){if(typeof c=="number")throw new TypeError("Argument must not be a number");return r(c,g,_)},i.alloc=function(c,g,_){if(typeof c!="number")throw new TypeError("Argument must be a number");var w=r(c);return g!==void 0?typeof _=="string"?w.fill(g,_):w.fill(g):w.fill(0),w},i.allocUnsafe=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return r(c)},i.allocUnsafeSlow=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(c)}}(Q6,Q6.exports)),Q6.exports}var X6=65536,sI=4294967295,uI=In().Buffer,gv=En.crypto||En.msCrypto;gv&&gv.getRandomValues?Z6.exports=function(e,t){if(e>sI)throw new RangeError("requested too many random bytes");var n=uI.allocUnsafe(e);if(e>0)if(e>X6)for(var r=0;r<e;r+=X6)gv.getRandomValues(n.slice(r,r+X6));else gv.getRandomValues(n);return typeof t=="function"?xn(function(){t(null,n)}):n}:Z6.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
3
+ Use Chrome, Firefox or Internet Explorer 11`)};var lm=Z6.exports,J6={exports:{}};typeof Object.create=="function"?J6.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:J6.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}};var On=J6.exports,e4={exports:{}};function id(){}function Nn(){Nn.init.call(this)}function p_(e){return e._maxListeners===void 0?Nn.defaultMaxListeners:e._maxListeners}function m_(e,t,n,r){var o,i,c;if(typeof n!="function")throw new TypeError('"listener" argument must be a function');if((i=e._events)?(i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),c=i[t]):(i=e._events=new id,e._eventsCount=0),c){if(typeof c=="function"?c=i[t]=r?[n,c]:[c,n]:r?c.unshift(n):c.push(n),!c.warned&&(o=p_(e))&&o>0&&c.length>o){c.warned=!0;var g=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");g.name="MaxListenersExceededWarning",g.emitter=e,g.type=t,g.count=c.length,function(_){typeof console.warn=="function"?console.warn(_):console.log(_)}(g)}}else c=i[t]=n,++e._eventsCount;return e}function g_(e,t,n){var r=!1;function o(){e.removeListener(t,o),r||(r=!0,n.apply(e,arguments))}return o.listener=n,o}function v_(e){var t=this._events;if(t){var n=t[e];if(typeof n=="function")return 1;if(n)return n.length}return 0}function cm(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}id.prototype=Object.create(null),Nn.EventEmitter=Nn,Nn.usingDomains=!1,Nn.prototype.domain=void 0,Nn.prototype._events=void 0,Nn.prototype._maxListeners=void 0,Nn.defaultMaxListeners=10,Nn.init=function(){this.domain=null,Nn.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new id,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Nn.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},Nn.prototype.getMaxListeners=function(){return p_(this)},Nn.prototype.emit=function(e){var t,n,r,o,i,c,g,_=e==="error";if(c=this._events)_=_&&c.error==null;else if(!_)return!1;if(g=this.domain,_){if(t=arguments[1],!g){if(t instanceof Error)throw t;var w=new Error('Uncaught, unspecified "error" event. ('+t+")");throw w.context=t,w}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=g,t.domainThrown=!1,g.emit("error",t),!1}if(!(n=c[e]))return!1;var S=typeof n=="function";switch(r=arguments.length){case 1:(function(E,T,I){if(T)E.call(I);else for(var j=E.length,H=cm(E,j),V=0;V<j;++V)H[V].call(I)})(n,S,this);break;case 2:(function(E,T,I,j){if(T)E.call(I,j);else for(var H=E.length,V=cm(E,H),ee=0;ee<H;++ee)V[ee].call(I,j)})(n,S,this,arguments[1]);break;case 3:(function(E,T,I,j,H){if(T)E.call(I,j,H);else for(var V=E.length,ee=cm(E,V),X=0;X<V;++X)ee[X].call(I,j,H)})(n,S,this,arguments[1],arguments[2]);break;case 4:(function(E,T,I,j,H,V){if(T)E.call(I,j,H,V);else for(var ee=E.length,X=cm(E,ee),ue=0;ue<ee;++ue)X[ue].call(I,j,H,V)})(n,S,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];(function(E,T,I,j){if(T)E.apply(I,j);else for(var H=E.length,V=cm(E,H),ee=0;ee<H;++ee)V[ee].apply(I,j)})(n,S,this,o)}return!0},Nn.prototype.addListener=function(e,t){return m_(this,e,t,!1)},Nn.prototype.on=Nn.prototype.addListener,Nn.prototype.prependListener=function(e,t){return m_(this,e,t,!0)},Nn.prototype.once=function(e,t){if(typeof t!="function")throw new TypeError('"listener" argument must be a function');return this.on(e,g_(this,e,t)),this},Nn.prototype.prependOnceListener=function(e,t){if(typeof t!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(e,g_(this,e,t)),this},Nn.prototype.removeListener=function(e,t){var n,r,o,i,c;if(typeof t!="function")throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)--this._eventsCount==0?this._events=new id:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(o=-1,i=n.length;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){c=n[i].listener,o=i;break}if(o<0)return this;if(n.length===1){if(n[0]=void 0,--this._eventsCount==0)return this._events=new id,this;delete r[e]}else(function(g,_){for(var w=_,S=w+1,E=g.length;S<E;w+=1,S+=1)g[w]=g[S];g.pop()})(n,o);r.removeListener&&this.emit("removeListener",e,c||t)}return this},Nn.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return arguments.length===0?(this._events=new id,this._eventsCount=0):n[e]&&(--this._eventsCount==0?this._events=new id:delete n[e]),this;if(arguments.length===0){for(var r,o=Object.keys(n),i=0;i<o.length;++i)(r=o[i])!=="removeListener"&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new id,this._eventsCount=0,this}if(typeof(t=n[e])=="function")this.removeListener(e,t);else if(t)do this.removeListener(e,t[t.length-1]);while(t[0]);return this},Nn.prototype.listeners=function(e){var t,n,r=this._events;return n=r&&(t=r[e])?typeof t=="function"?[t.listener||t]:function(o){for(var i=new Array(o.length),c=0;c<i.length;++c)i[c]=o[c].listener||o[c];return i}(t):[],n},Nn.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):v_.call(e,t)},Nn.prototype.listenerCount=v_,Nn.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var t4=um(Object.freeze({__proto__:null,EventEmitter:Nn,default:Nn})),b_=t4.EventEmitter,od=typeof Object.create=="function"?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},lI=/%[sdj%]/g;function vv(e){if(!fm(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(Ou(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,i=String(e).replace(lI,function(g){if(g==="%%")return"%";if(n>=o)return g;switch(g){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}default:return g}}),c=r[n];n<o;c=r[++n])dm(c)||!zf(c)?i+=" "+c:i+=" "+Ou(c);return i}function bv(e,t){if(Nu(Pu.process))return function(){return bv(e,t).apply(this,arguments)};if(vr.noDeprecation===!0)return e;var n=!1;return function(){if(!n){if(vr.throwDeprecation)throw new Error(t);vr.traceDeprecation?console.trace(t):console.error(t),n=!0}return e.apply(this,arguments)}}var n4,yv={};function r4(e){return Nu(n4)&&(n4=vr.env.NODE_DEBUG||""),e=e.toUpperCase(),!yv[e]&&(new RegExp("\\b"+e+"\\b","i").test(n4)?yv[e]=function(){var t=vv.apply(null,arguments);console.error("%s %d: %s",e,0,t)}:yv[e]=function(){}),yv[e]}function Ou(e,t){var n={seen:[],stylize:dI};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),_v(t)?n.showHidden=t:t&&c4(n,t),Nu(n.showHidden)&&(n.showHidden=!1),Nu(n.depth)&&(n.depth=2),Nu(n.colors)&&(n.colors=!1),Nu(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=cI),wv(n,e,n.depth)}function cI(e,t){var n=Ou.styles[t];return n?"\x1B["+Ou.colors[n][0]+"m"+e+"\x1B["+Ou.colors[n][1]+"m":e}function dI(e,t){return e}function wv(e,t,n){if(e.customInspect&&t&&mm(t.inspect)&&t.inspect!==Ou&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return fm(r)||(r=wv(e,r,n)),r}var o=function(T,I){if(Nu(I))return T.stylize("undefined","undefined");if(fm(I)){var j="'"+JSON.stringify(I).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return T.stylize(j,"string")}if(s4(I))return T.stylize(""+I,"number");if(_v(I))return T.stylize(""+I,"boolean");if(dm(I))return T.stylize("null","null")}(e,t);if(o)return o;var i=Object.keys(t),c=function(T){var I={};return T.forEach(function(j,H){I[j]=!0}),I}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),pm(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return i4(t);if(i.length===0){if(mm(t)){var g=t.name?": "+t.name:"";return e.stylize("[Function"+g+"]","special")}if(hm(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Sv(t))return e.stylize(Date.prototype.toString.call(t),"date");if(pm(t))return i4(t)}var _,w="",S=!1,E=["{","}"];return a4(t)&&(S=!0,E=["[","]"]),mm(t)&&(w=" [Function"+(t.name?": "+t.name:"")+"]"),hm(t)&&(w=" "+RegExp.prototype.toString.call(t)),Sv(t)&&(w=" "+Date.prototype.toUTCString.call(t)),pm(t)&&(w=" "+i4(t)),i.length!==0||S&&t.length!=0?n<0?hm(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),_=S?function(T,I,j,H,V){for(var ee=[],X=0,ue=I.length;X<ue;++X)k_(I,String(X))?ee.push(o4(T,I,j,H,String(X),!0)):ee.push("");return V.forEach(function(le){le.match(/^\d+$/)||ee.push(o4(T,I,j,H,le,!0))}),ee}(e,t,n,c,i):i.map(function(T){return o4(e,t,n,c,T,S)}),e.seen.pop(),function(T,I,j){var H=T.reduce(function(V,ee){return ee.indexOf(`
4
+ `),V+ee.replace(/\u001b\[\d\d?m/g,"").length+1},0);return H>60?j[0]+(I===""?"":I+`
5
+ `)+" "+T.join(`,
6
+ `)+" "+j[1]:j[0]+I+" "+T.join(", ")+" "+j[1]}(_,w,E)):E[0]+w+E[1]}function i4(e){return"["+Error.prototype.toString.call(e)+"]"}function o4(e,t,n,r,o,i){var c,g,_;if((_=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?g=_.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):_.set&&(g=e.stylize("[Setter]","special")),k_(r,o)||(c="["+o+"]"),g||(e.seen.indexOf(_.value)<0?(g=dm(n)?wv(e,_.value,null):wv(e,_.value,n-1)).indexOf(`
7
+ `)>-1&&(g=i?g.split(`
8
+ `).map(function(w){return" "+w}).join(`
9
+ `).substr(2):`
10
+ `+g.split(`
11
+ `).map(function(w){return" "+w}).join(`
12
+ `)):g=e.stylize("[Circular]","special")),Nu(c)){if(i&&o.match(/^\d+$/))return g;(c=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(c=c.substr(1,c.length-2),c=e.stylize(c,"name")):(c=c.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),c=e.stylize(c,"string"))}return c+": "+g}function a4(e){return Array.isArray(e)}function _v(e){return typeof e=="boolean"}function dm(e){return e===null}function y_(e){return e==null}function s4(e){return typeof e=="number"}function fm(e){return typeof e=="string"}function w_(e){return typeof e=="symbol"}function Nu(e){return e===void 0}function hm(e){return zf(e)&&u4(e)==="[object RegExp]"}function zf(e){return typeof e=="object"&&e!==null}function Sv(e){return zf(e)&&u4(e)==="[object Date]"}function pm(e){return zf(e)&&(u4(e)==="[object Error]"||e instanceof Error)}function mm(e){return typeof e=="function"}function __(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||e===void 0}function S_(e){return va(e)}function u4(e){return Object.prototype.toString.call(e)}function l4(e){return e<10?"0"+e.toString(10):e.toString(10)}Ou.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Ou.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var fI=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E_(){console.log("%s - %s",function(){var e=new Date,t=[l4(e.getHours()),l4(e.getMinutes()),l4(e.getSeconds())].join(":");return[e.getDate(),fI[e.getMonth()],t].join(" ")}(),vv.apply(null,arguments))}function c4(e,t){if(!t||!zf(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function k_(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var d4,M_,hI={inherits:od,_extend:c4,log:E_,isBuffer:S_,isPrimitive:__,isFunction:mm,isError:pm,isDate:Sv,isObject:zf,isRegExp:hm,isUndefined:Nu,isSymbol:w_,isString:fm,isNumber:s4,isNullOrUndefined:y_,isNull:dm,isBoolean:_v,isArray:a4,inspect:Ou,deprecate:bv,format:vv,debuglog:r4},C_=um(Object.freeze({__proto__:null,_extend:c4,debuglog:r4,default:hI,deprecate:bv,format:vv,inherits:od,inspect:Ou,isArray:a4,isBoolean:_v,isBuffer:S_,isDate:Sv,isError:pm,isFunction:mm,isNull:dm,isNullOrUndefined:y_,isNumber:s4,isObject:zf,isPrimitive:__,isRegExp:hm,isString:fm,isSymbol:w_,isUndefined:Nu,log:E_}));function pI(){if(M_)return d4;function e(_,w){var S=Object.keys(_);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(_);w&&(E=E.filter(function(T){return Object.getOwnPropertyDescriptor(_,T).enumerable})),S.push.apply(S,E)}return S}function t(_){for(var w=1;w<arguments.length;w++){var S=arguments[w]!=null?arguments[w]:{};w%2?e(Object(S),!0).forEach(function(E){n(_,E,S[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(S)):e(Object(S)).forEach(function(E){Object.defineProperty(_,E,Object.getOwnPropertyDescriptor(S,E))})}return _}function n(_,w,S){return(w=o(w))in _?Object.defineProperty(_,w,{value:S,enumerable:!0,configurable:!0,writable:!0}):_[w]=S,_}function r(_,w){for(var S=0;S<w.length;S++){var E=w[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(_,o(E.key),E)}}function o(_){var w=function(S,E){if(typeof S!="object"||S===null)return S;var T=S[Symbol.toPrimitive];if(T!==void 0){var I=T.call(S,E);if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(S)}(_,"string");return typeof w=="symbol"?w:String(w)}M_=1;var i=xs.Buffer,c=C_.inspect,g=c&&c.custom||"inspect";return d4=function(){function _(){(function(E,T){if(!(E instanceof T))throw new TypeError("Cannot call a class as a function")})(this,_),this.head=null,this.tail=null,this.length=0}var w,S;return w=_,S=[{key:"push",value:function(E){var T={data:E,next:null};this.length>0?this.tail.next=T:this.head=T,this.tail=T,++this.length}},{key:"unshift",value:function(E){var T={data:E,next:this.head};this.length===0&&(this.tail=T),this.head=T,++this.length}},{key:"shift",value:function(){if(this.length!==0){var E=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,E}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(E){if(this.length===0)return"";for(var T=this.head,I=""+T.data;T=T.next;)I+=E+T.data;return I}},{key:"concat",value:function(E){if(this.length===0)return i.alloc(0);for(var T,I,j,H=i.allocUnsafe(E>>>0),V=this.head,ee=0;V;)T=V.data,I=H,j=ee,i.prototype.copy.call(T,I,j),ee+=V.data.length,V=V.next;return H}},{key:"consume",value:function(E,T){var I;return E<this.head.data.length?(I=this.head.data.slice(0,E),this.head.data=this.head.data.slice(E)):I=E===this.head.data.length?this.shift():T?this._getString(E):this._getBuffer(E),I}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(E){var T=this.head,I=1,j=T.data;for(E-=j.length;T=T.next;){var H=T.data,V=E>H.length?H.length:E;if(V===H.length?j+=H:j+=H.slice(0,E),(E-=V)==0){V===H.length?(++I,T.next?this.head=T.next:this.head=this.tail=null):(this.head=T,T.data=H.slice(V));break}++I}return this.length-=I,j}},{key:"_getBuffer",value:function(E){var T=i.allocUnsafe(E),I=this.head,j=1;for(I.data.copy(T),E-=I.data.length;I=I.next;){var H=I.data,V=E>H.length?H.length:E;if(H.copy(T,T.length-E,0,V),(E-=V)==0){V===H.length?(++j,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=H.slice(V));break}++j}return this.length-=j,T}},{key:g,value:function(E,T){return c(this,t(t({},T),{},{depth:0,customInspect:!1}))}}],S&&r(w.prototype,S),Object.defineProperty(w,"prototype",{writable:!1}),_}(),d4}function x_(e,t){f4(e,t),Ev(e)}function Ev(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function f4(e,t){e.emit("error",t)}var A_={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return r||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,xn(f4,this,e)):xn(f4,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!t&&i?n._writableState?n._writableState.errorEmitted?xn(Ev,n):(n._writableState.errorEmitted=!0,xn(x_,n,i)):xn(x_,n,i):t?(xn(Ev,n),t(i)):xn(Ev,n)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}},Uf={},R_={};function za(e,t,n){n||(n=Error);var r=function(o){var i,c;function g(_,w,S){return o.call(this,function(E,T,I){return typeof t=="string"?t:t(E,T,I)}(_,w,S))||this}return c=o,(i=g).prototype=Object.create(c.prototype),i.prototype.constructor=i,i.__proto__=c,g}(n);r.prototype.name=n.name,r.prototype.code=e,R_[e]=r}function T_(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(r){return String(r)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:n===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}za("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),za("ERR_INVALID_ARG_TYPE",function(e,t,n){var r,o,i;if(typeof t=="string"&&(o="not ",t.substr(0,o.length)===o)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(g,_,w){return(w===void 0||w>g.length)&&(w=g.length),g.substring(w-_.length,w)===_}(e," argument"))i="The ".concat(e," ").concat(r," ").concat(T_(t,"type"));else{var c=function(g,_,w){return typeof w!="number"&&(w=0),!(w+_.length>g.length)&&g.indexOf(_,w)!==-1}(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(T_(t,"type"))}return i+=". Received type ".concat(typeof n)},TypeError),za("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),za("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),za("ERR_STREAM_PREMATURE_CLOSE","Premature close"),za("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),za("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),za("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),za("ERR_STREAM_WRITE_AFTER_END","write after end"),za("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),za("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),za("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Uf.codes=R_;var mI=Uf.codes.ERR_INVALID_OPT_VALUE,h4,P_,p4,L_,I_={getHighWaterMark:function(e,t,n,r){var o=function(i,c,g){return i.highWaterMark!=null?i.highWaterMark:c?i[g]:null}(t,r,n);if(o!=null){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new mI(r?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}},gI=function(e,t){if(m4("noDeprecation"))return e;var n=!1;return function(){if(!n){if(m4("throwDeprecation"))throw new Error(t);m4("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function m4(e){try{if(!En.localStorage)return!1}catch{return!1}var t=En.localStorage[e];return t!=null&&String(t).toLowerCase()==="true"}function O_(){if(P_)return h4;function e(p){var h=this;this.next=null,this.entry=null,this.finish=function(){(function(f,l,b){var C=f.entry;for(f.entry=null;C;){var R=C.callback;l.pendingcb--,R(b),C=C.next}l.corkedRequestsFree.next=f})(h,p)}}var t;P_=1,h4=pe,pe.WritableState=le;var n={deprecate:gI},r=b_,o=xs.Buffer,i=(En!==void 0?En:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},c,g=A_,_=I_.getHighWaterMark,w=Uf.codes,S=w.ERR_INVALID_ARG_TYPE,E=w.ERR_METHOD_NOT_IMPLEMENTED,T=w.ERR_MULTIPLE_CALLBACK,I=w.ERR_STREAM_CANNOT_PIPE,j=w.ERR_STREAM_DESTROYED,H=w.ERR_STREAM_NULL_VALUES,V=w.ERR_STREAM_WRITE_AFTER_END,ee=w.ERR_UNKNOWN_ENCODING,X=g.errorOrDestroy;function ue(){}function le(p,h,f){t=t||B0(),p=p||{},typeof f!="boolean"&&(f=h instanceof t),this.objectMode=!!p.objectMode,f&&(this.objectMode=this.objectMode||!!p.writableObjectMode),this.highWaterMark=_(this,p,"writableHighWaterMark",f),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=p.decodeStrings===!1;this.decodeStrings=!l,this.defaultEncoding=p.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(b){(function(C,R){var L=C._writableState,B=L.sync,K=L.writecb;if(typeof K!="function")throw new T;if(function(O){O.writing=!1,O.writecb=null,O.length-=O.writelen,O.writelen=0}(L),R)(function(O,D,q,Y,Q){--D.pendingcb,q?(xn(Q,Y),xn(d,O,D),O._writableState.errorEmitted=!0,X(O,Y)):(Q(Y),O._writableState.errorEmitted=!0,X(O,Y),d(O,D))})(C,L,B,R,K);else{var z=y(L)||C.destroyed;z||L.corked||L.bufferProcessing||!L.bufferedRequest||Te(C,L),B?xn(ye,C,L,z,K):ye(C,L,z,K)}})(h,b)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=p.emitClose!==!1,this.autoDestroy=!!p.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function pe(p){var h=this instanceof(t=t||B0());if(!h&&!c.call(pe,this))return new pe(p);this._writableState=new le(p,this,h),this.writable=!0,p&&(typeof p.write=="function"&&(this._write=p.write),typeof p.writev=="function"&&(this._writev=p.writev),typeof p.destroy=="function"&&(this._destroy=p.destroy),typeof p.final=="function"&&(this._final=p.final)),r.call(this)}function Me(p,h,f,l,b,C,R){h.writelen=l,h.writecb=R,h.writing=!0,h.sync=!0,h.destroyed?h.onwrite(new j("write")):f?p._writev(b,h.onwrite):p._write(b,C,h.onwrite),h.sync=!1}function ye(p,h,f,l){f||function(b,C){C.length===0&&C.needDrain&&(C.needDrain=!1,b.emit("drain"))}(p,h),h.pendingcb--,l(),d(p,h)}function Te(p,h){h.bufferProcessing=!0;var f=h.bufferedRequest;if(p._writev&&f&&f.next){var l=h.bufferedRequestCount,b=new Array(l),C=h.corkedRequestsFree;C.entry=f;for(var R=0,L=!0;f;)b[R]=f,f.isBuf||(L=!1),f=f.next,R+=1;b.allBuffers=L,Me(p,h,!0,h.length,b,"",C.finish),h.pendingcb++,h.lastBufferedRequest=null,C.next?(h.corkedRequestsFree=C.next,C.next=null):h.corkedRequestsFree=new e(h),h.bufferedRequestCount=0}else{for(;f;){var B=f.chunk,K=f.encoding,z=f.callback;if(Me(p,h,!1,h.objectMode?1:B.length,B,K,z),f=f.next,h.bufferedRequestCount--,h.writing)break}f===null&&(h.lastBufferedRequest=null)}h.bufferedRequest=f,h.bufferProcessing=!1}function y(p){return p.ending&&p.length===0&&p.bufferedRequest===null&&!p.finished&&!p.writing}function x(p,h){p._final(function(f){h.pendingcb--,f&&X(p,f),h.prefinished=!0,p.emit("prefinish"),d(p,h)})}function d(p,h){var f=y(h);if(f&&(function(b,C){C.prefinished||C.finalCalled||(typeof b._final!="function"||C.destroyed?(C.prefinished=!0,b.emit("prefinish")):(C.pendingcb++,C.finalCalled=!0,xn(x,b,C)))}(p,h),h.pendingcb===0&&(h.finished=!0,p.emit("finish"),h.autoDestroy))){var l=p._readableState;(!l||l.autoDestroy&&l.endEmitted)&&p.destroy()}return f}return On(pe,r),le.prototype.getBuffer=function(){for(var p=this.bufferedRequest,h=[];p;)h.push(p),p=p.next;return h},function(){try{Object.defineProperty(le.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(pe,Symbol.hasInstance,{value:function(p){return!!c.call(this,p)||this===pe&&p&&p._writableState instanceof le}})):c=function(p){return p instanceof this},pe.prototype.pipe=function(){X(this,new I)},pe.prototype.write=function(p,h,f){var l,b=this._writableState,C=!1,R=!b.objectMode&&(l=p,o.isBuffer(l)||l instanceof i);return R&&!o.isBuffer(p)&&(p=function(L){return o.from(L)}(p)),typeof h=="function"&&(f=h,h=null),R?h="buffer":h||(h=b.defaultEncoding),typeof f!="function"&&(f=ue),b.ending?function(L,B){var K=new V;X(L,K),xn(B,K)}(this,f):(R||function(L,B,K,z){var O;return K===null?O=new H:typeof K=="string"||B.objectMode||(O=new S("chunk",["string","Buffer"],K)),!O||(X(L,O),xn(z,O),!1)}(this,b,p,f))&&(b.pendingcb++,C=function(L,B,K,z,O,D){if(!K){var q=function(re,we,de){return re.objectMode||re.decodeStrings===!1||typeof we!="string"||(we=o.from(we,de)),we}(B,z,O);z!==q&&(K=!0,O="buffer",z=q)}var Y=B.objectMode?1:z.length;B.length+=Y;var Q=B.length<B.highWaterMark;if(Q||(B.needDrain=!0),B.writing||B.corked){var ae=B.lastBufferedRequest;B.lastBufferedRequest={chunk:z,encoding:O,isBuf:K,callback:D,next:null},ae?ae.next=B.lastBufferedRequest:B.bufferedRequest=B.lastBufferedRequest,B.bufferedRequestCount+=1}else Me(L,B,!1,Y,z,O,D);return Q}(this,b,R,p,h,f)),C},pe.prototype.cork=function(){this._writableState.corked++},pe.prototype.uncork=function(){var p=this._writableState;p.corked&&(p.corked--,p.writing||p.corked||p.bufferProcessing||!p.bufferedRequest||Te(this,p))},pe.prototype.setDefaultEncoding=function(p){if(typeof p=="string"&&(p=p.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((p+"").toLowerCase())>-1))throw new ee(p);return this._writableState.defaultEncoding=p,this},Object.defineProperty(pe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(pe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),pe.prototype._write=function(p,h,f){f(new E("_write()"))},pe.prototype._writev=null,pe.prototype.end=function(p,h,f){var l=this._writableState;return typeof p=="function"?(f=p,p=null,h=null):typeof h=="function"&&(f=h,h=null),p!=null&&this.write(p,h),l.corked&&(l.corked=1,this.uncork()),l.ending||function(b,C,R){C.ending=!0,d(b,C),R&&(C.finished?xn(R):b.once("finish",R)),C.ended=!0,b.writable=!1}(this,l,f),this},Object.defineProperty(pe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(pe.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(p){this._writableState&&(this._writableState.destroyed=p)}}),pe.prototype.destroy=g.destroy,pe.prototype._undestroy=g.undestroy,pe.prototype._destroy=function(p,h){h(p)},h4}function B0(){if(L_)return p4;L_=1;var e=Object.keys||function(w){var S=[];for(var E in w)S.push(E);return S};p4=c;var t=K_(),n=O_();On(c,t);for(var r=e(n.prototype),o=0;o<r.length;o++){var i=r[o];c.prototype[i]||(c.prototype[i]=n.prototype[i])}function c(w){if(!(this instanceof c))return new c(w);t.call(this,w),n.call(this,w),this.allowHalfOpen=!0,w&&(w.readable===!1&&(this.readable=!1),w.writable===!1&&(this.writable=!1),w.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",g)))}function g(){this._writableState.ended||xn(_,this)}function _(w){w.end()}return Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(w){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=w,this._writableState.destroyed=w)}}),p4}var N_,g4={};function D_(){if(N_)return g4;N_=1;var e=In().Buffer,t=e.isEncoding||function(E){switch((E=""+E)&&E.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(E){var T;switch(this.encoding=function(I){var j=function(H){if(!H)return"utf8";for(var V;;)switch(H){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return H;default:if(V)return;H=(""+H).toLowerCase(),V=!0}}(I);if(typeof j!="string"&&(e.isEncoding===t||!t(I)))throw new Error("Unknown encoding: "+I);return j||I}(E),this.encoding){case"utf16le":this.text=i,this.end=c,T=4;break;case"utf8":this.fillLast=o,T=4;break;case"base64":this.text=g,this.end=_,T=3;break;default:return this.write=w,void(this.end=S)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(T)}function r(E){return E<=127?0:E>>5==6?2:E>>4==14?3:E>>3==30?4:E>>6==2?-1:-2}function o(E){var T=this.lastTotal-this.lastNeed,I=function(j,H,V){if((192&H[0])!=128)return j.lastNeed=0,"�";if(j.lastNeed>1&&H.length>1){if((192&H[1])!=128)return j.lastNeed=1,"�";if(j.lastNeed>2&&H.length>2&&(192&H[2])!=128)return j.lastNeed=2,"�"}}(this,E);return I!==void 0?I:this.lastNeed<=E.length?(E.copy(this.lastChar,T,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(E.copy(this.lastChar,T,0,E.length),void(this.lastNeed-=E.length))}function i(E,T){if((E.length-T)%2==0){var I=E.toString("utf16le",T);if(I){var j=I.charCodeAt(I.length-1);if(j>=55296&&j<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=E[E.length-2],this.lastChar[1]=E[E.length-1],I.slice(0,-1)}return I}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=E[E.length-1],E.toString("utf16le",T,E.length-1)}function c(E){var T=E&&E.length?this.write(E):"";if(this.lastNeed){var I=this.lastTotal-this.lastNeed;return T+this.lastChar.toString("utf16le",0,I)}return T}function g(E,T){var I=(E.length-T)%3;return I===0?E.toString("base64",T):(this.lastNeed=3-I,this.lastTotal=3,I===1?this.lastChar[0]=E[E.length-1]:(this.lastChar[0]=E[E.length-2],this.lastChar[1]=E[E.length-1]),E.toString("base64",T,E.length-I))}function _(E){var T=E&&E.length?this.write(E):"";return this.lastNeed?T+this.lastChar.toString("base64",0,3-this.lastNeed):T}function w(E){return E.toString(this.encoding)}function S(E){return E&&E.length?this.write(E):""}return g4.StringDecoder=n,n.prototype.write=function(E){if(E.length===0)return"";var T,I;if(this.lastNeed){if((T=this.fillLast(E))===void 0)return"";I=this.lastNeed,this.lastNeed=0}else I=0;return I<E.length?T?T+this.text(E,I):this.text(E,I):T||""},n.prototype.end=function(E){var T=E&&E.length?this.write(E):"";return this.lastNeed?T+"�":T},n.prototype.text=function(E,T){var I=function(H,V,ee){var X=V.length-1;if(X<ee)return 0;var ue=r(V[X]);return ue>=0?(ue>0&&(H.lastNeed=ue-1),ue):--X<ee||ue===-2?0:(ue=r(V[X]),ue>=0?(ue>0&&(H.lastNeed=ue-2),ue):--X<ee||ue===-2?0:(ue=r(V[X]),ue>=0?(ue>0&&(ue===2?ue=0:H.lastNeed=ue-3),ue):0))}(this,E,T);if(!this.lastNeed)return E.toString("utf8",T);this.lastTotal=I;var j=E.length-(I-this.lastNeed);return E.copy(this.lastChar,0,j),E.toString("utf8",T,j)},n.prototype.fillLast=function(E){if(this.lastNeed<=E.length)return E.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);E.copy(this.lastChar,this.lastTotal-this.lastNeed,0,E.length),this.lastNeed-=E.length},g4}var B_=Uf.codes.ERR_STREAM_PREMATURE_CLOSE;function vI(){}var v4,j_,z_,U_,b4,F_,y4=function e(t,n,r){if(typeof n=="function")return e(t,null,n);n||(n={}),r=function(j){var H=!1;return function(){if(!H){H=!0;for(var V=arguments.length,ee=new Array(V),X=0;X<V;X++)ee[X]=arguments[X];j.apply(this,ee)}}}(r||vI);var o=n.readable||n.readable!==!1&&t.readable,i=n.writable||n.writable!==!1&&t.writable,c=function(){t.writable||_()},g=t._writableState&&t._writableState.finished,_=function(){i=!1,g=!0,o||r.call(t)},w=t._readableState&&t._readableState.endEmitted,S=function(){o=!1,w=!0,i||r.call(t)},E=function(j){r.call(t,j)},T=function(){var j;return o&&!w?(t._readableState&&t._readableState.ended||(j=new B_),r.call(t,j)):i&&!g?(t._writableState&&t._writableState.ended||(j=new B_),r.call(t,j)):void 0},I=function(){t.req.on("finish",_)};return function(j){return j.setHeader&&typeof j.abort=="function"}(t)?(t.on("complete",_),t.on("abort",T),t.req?I():t.on("request",I)):i&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",S),t.on("finish",_),n.error!==!1&&t.on("error",E),t.on("close",T),function(){t.removeListener("complete",_),t.removeListener("abort",T),t.removeListener("request",I),t.req&&t.req.removeListener("finish",_),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",_),t.removeListener("end",S),t.removeListener("error",E),t.removeListener("close",T)}};function bI(){if(j_)return v4;var e;function t(H,V,ee){return(V=function(X){var ue=function(le,pe){if(typeof le!="object"||le===null)return le;var Me=le[Symbol.toPrimitive];if(Me!==void 0){var ye=Me.call(le,pe||"default");if(typeof ye!="object")return ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(pe==="string"?String:Number)(le)}(X,"string");return typeof ue=="symbol"?ue:String(ue)}(V))in H?Object.defineProperty(H,V,{value:ee,enumerable:!0,configurable:!0,writable:!0}):H[V]=ee,H}j_=1;var n=y4,r=Symbol("lastResolve"),o=Symbol("lastReject"),i=Symbol("error"),c=Symbol("ended"),g=Symbol("lastPromise"),_=Symbol("handlePromise"),w=Symbol("stream");function S(H,V){return{value:H,done:V}}function E(H){var V=H[r];if(V!==null){var ee=H[w].read();ee!==null&&(H[g]=null,H[r]=null,H[o]=null,V(S(ee,!1)))}}function T(H){xn(E,H)}var I=Object.getPrototypeOf(function(){}),j=Object.setPrototypeOf((t(e={get stream(){return this[w]},next:function(){var H=this,V=this[i];if(V!==null)return Promise.reject(V);if(this[c])return Promise.resolve(S(void 0,!0));if(this[w].destroyed)return new Promise(function(le,pe){xn(function(){H[i]?pe(H[i]):le(S(void 0,!0))})});var ee,X=this[g];if(X)ee=new Promise(function(le,pe){return function(Me,ye){le.then(function(){pe[c]?Me(S(void 0,!0)):pe[_](Me,ye)},ye)}}(X,this));else{var ue=this[w].read();if(ue!==null)return Promise.resolve(S(ue,!1));ee=new Promise(this[_])}return this[g]=ee,ee}},Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var H=this;return new Promise(function(V,ee){H[w].destroy(null,function(X){X?ee(X):V(S(void 0,!0))})})}),e),I);return v4=function(H){var V,ee=Object.create(j,(t(V={},w,{value:H,writable:!0}),t(V,r,{value:null,writable:!0}),t(V,o,{value:null,writable:!0}),t(V,i,{value:null,writable:!0}),t(V,c,{value:H._readableState.endEmitted,writable:!0}),t(V,_,{value:function(X,ue){var le=ee[w].read();le?(ee[g]=null,ee[r]=null,ee[o]=null,X(S(le,!1))):(ee[r]=X,ee[o]=ue)},writable:!0}),V));return ee[g]=null,n(H,function(X){if(X&&X.code!=="ERR_STREAM_PREMATURE_CLOSE"){var ue=ee[o];return ue!==null&&(ee[g]=null,ee[r]=null,ee[o]=null,ue(X)),void(ee[i]=X)}var le=ee[r];le!==null&&(ee[g]=null,ee[r]=null,ee[o]=null,le(S(void 0,!0))),ee[c]=!0}),H.on("readable",T.bind(null,ee)),ee},v4}function K_(){if(F_)return b4;var e;F_=1,b4=pe,pe.ReadableState=le,t4.EventEmitter;var t=function(z,O){return z.listeners(O).length},n=b_,r=xs.Buffer,o=(En!==void 0?En:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},i,c=C_;i=c&&c.debuglog?c.debuglog("stream"):function(){};var g,_,w,S=pI(),E=A_,T=I_.getHighWaterMark,I=Uf.codes,j=I.ERR_INVALID_ARG_TYPE,H=I.ERR_STREAM_PUSH_AFTER_EOF,V=I.ERR_METHOD_NOT_IMPLEMENTED,ee=I.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;On(pe,n);var X=E.errorOrDestroy,ue=["error","close","destroy","pause","resume"];function le(z,O,D){e=e||B0(),z=z||{},typeof D!="boolean"&&(D=O instanceof e),this.objectMode=!!z.objectMode,D&&(this.objectMode=this.objectMode||!!z.readableObjectMode),this.highWaterMark=T(this,z,"readableHighWaterMark",D),this.buffer=new S,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=z.emitClose!==!1,this.autoDestroy=!!z.autoDestroy,this.destroyed=!1,this.defaultEncoding=z.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,z.encoding&&(g||(g=D_().StringDecoder),this.decoder=new g(z.encoding),this.encoding=z.encoding)}function pe(z){if(e=e||B0(),!(this instanceof pe))return new pe(z);var O=this instanceof e;this._readableState=new le(z,this,O),this.readable=!0,z&&(typeof z.read=="function"&&(this._read=z.read),typeof z.destroy=="function"&&(this._destroy=z.destroy)),n.call(this)}function Me(z,O,D,q,Y){i("readableAddChunk",O);var Q,ae=z._readableState;if(O===null)ae.reading=!1,function(re,we){if(i("onEofChunk"),!we.ended){if(we.decoder){var de=we.decoder.end();de&&de.length&&(we.buffer.push(de),we.length+=we.objectMode?1:de.length)}we.ended=!0,we.sync?x(re):(we.needReadable=!1,we.emittedReadable||(we.emittedReadable=!0,d(re)))}}(z,ae);else if(Y||(Q=function(re,we){var de;ie=we,r.isBuffer(ie)||ie instanceof o||typeof we=="string"||we===void 0||re.objectMode||(de=new j("chunk",["string","Buffer","Uint8Array"],we));var ie;return de}(ae,O)),Q)X(z,Q);else if(ae.objectMode||O&&O.length>0)if(typeof O=="string"||ae.objectMode||Object.getPrototypeOf(O)===r.prototype||(O=function(re){return r.from(re)}(O)),q)ae.endEmitted?X(z,new ee):ye(z,ae,O,!0);else if(ae.ended)X(z,new H);else{if(ae.destroyed)return!1;ae.reading=!1,ae.decoder&&!D?(O=ae.decoder.write(O),ae.objectMode||O.length!==0?ye(z,ae,O,!1):p(z,ae)):ye(z,ae,O,!1)}else q||(ae.reading=!1,p(z,ae));return!ae.ended&&(ae.length<ae.highWaterMark||ae.length===0)}function ye(z,O,D,q){O.flowing&&O.length===0&&!O.sync?(O.awaitDrain=0,z.emit("data",D)):(O.length+=O.objectMode?1:D.length,q?O.buffer.unshift(D):O.buffer.push(D),O.needReadable&&x(z)),p(z,O)}Object.defineProperty(pe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(z){this._readableState&&(this._readableState.destroyed=z)}}),pe.prototype.destroy=E.destroy,pe.prototype._undestroy=E.undestroy,pe.prototype._destroy=function(z,O){O(z)},pe.prototype.push=function(z,O){var D,q=this._readableState;return q.objectMode?D=!0:typeof z=="string"&&((O=O||q.defaultEncoding)!==q.encoding&&(z=r.from(z,O),O=""),D=!0),Me(this,z,O,!1,D)},pe.prototype.unshift=function(z){return Me(this,z,null,!0,!1)},pe.prototype.isPaused=function(){return this._readableState.flowing===!1},pe.prototype.setEncoding=function(z){g||(g=D_().StringDecoder);var O=new g(z);this._readableState.decoder=O,this._readableState.encoding=this._readableState.decoder.encoding;for(var D=this._readableState.buffer.head,q="";D!==null;)q+=O.write(D.data),D=D.next;return this._readableState.buffer.clear(),q!==""&&this._readableState.buffer.push(q),this._readableState.length=q.length,this};var Te=1073741824;function y(z,O){return z<=0||O.length===0&&O.ended?0:O.objectMode?1:z!=z?O.flowing&&O.length?O.buffer.head.data.length:O.length:(z>O.highWaterMark&&(O.highWaterMark=function(D){return D>=Te?D=Te:(D--,D|=D>>>1,D|=D>>>2,D|=D>>>4,D|=D>>>8,D|=D>>>16,D++),D}(z)),z<=O.length?z:O.ended?O.length:(O.needReadable=!0,0))}function x(z){var O=z._readableState;i("emitReadable",O.needReadable,O.emittedReadable),O.needReadable=!1,O.emittedReadable||(i("emitReadable",O.flowing),O.emittedReadable=!0,xn(d,z))}function d(z){var O=z._readableState;i("emitReadable_",O.destroyed,O.length,O.ended),O.destroyed||!O.length&&!O.ended||(z.emit("readable"),O.emittedReadable=!1),O.needReadable=!O.flowing&&!O.ended&&O.length<=O.highWaterMark,C(z)}function p(z,O){O.readingMore||(O.readingMore=!0,xn(h,z,O))}function h(z,O){for(;!O.reading&&!O.ended&&(O.length<O.highWaterMark||O.flowing&&O.length===0);){var D=O.length;if(i("maybeReadMore read 0"),z.read(0),D===O.length)break}O.readingMore=!1}function f(z){var O=z._readableState;O.readableListening=z.listenerCount("readable")>0,O.resumeScheduled&&!O.paused?O.flowing=!0:z.listenerCount("data")>0&&z.resume()}function l(z){i("readable nexttick read 0"),z.read(0)}function b(z,O){i("resume",O.reading),O.reading||z.read(0),O.resumeScheduled=!1,z.emit("resume"),C(z),O.flowing&&!O.reading&&z.read(0)}function C(z){var O=z._readableState;for(i("flow",O.flowing);O.flowing&&z.read()!==null;);}function R(z,O){return O.length===0?null:(O.objectMode?D=O.buffer.shift():!z||z>=O.length?(D=O.decoder?O.buffer.join(""):O.buffer.length===1?O.buffer.first():O.buffer.concat(O.length),O.buffer.clear()):D=O.buffer.consume(z,O.decoder),D);var D}function L(z){var O=z._readableState;i("endReadable",O.endEmitted),O.endEmitted||(O.ended=!0,xn(B,O,z))}function B(z,O){if(i("endReadableNT",z.endEmitted,z.length),!z.endEmitted&&z.length===0&&(z.endEmitted=!0,O.readable=!1,O.emit("end"),z.autoDestroy)){var D=O._writableState;(!D||D.autoDestroy&&D.finished)&&O.destroy()}}function K(z,O){for(var D=0,q=z.length;D<q;D++)if(z[D]===O)return D;return-1}return pe.prototype.read=function(z){i("read",z),z=parseInt(z,10);var O=this._readableState,D=z;if(z!==0&&(O.emittedReadable=!1),z===0&&O.needReadable&&((O.highWaterMark!==0?O.length>=O.highWaterMark:O.length>0)||O.ended))return i("read: emitReadable",O.length,O.ended),O.length===0&&O.ended?L(this):x(this),null;if((z=y(z,O))===0&&O.ended)return O.length===0&&L(this),null;var q,Y=O.needReadable;return i("need readable",Y),(O.length===0||O.length-z<O.highWaterMark)&&i("length less than watermark",Y=!0),O.ended||O.reading?i("reading or ended",Y=!1):Y&&(i("do read"),O.reading=!0,O.sync=!0,O.length===0&&(O.needReadable=!0),this._read(O.highWaterMark),O.sync=!1,O.reading||(z=y(D,O))),(q=z>0?R(z,O):null)===null?(O.needReadable=O.length<=O.highWaterMark,z=0):(O.length-=z,O.awaitDrain=0),O.length===0&&(O.ended||(O.needReadable=!0),D!==z&&O.ended&&L(this)),q!==null&&this.emit("data",q),q},pe.prototype._read=function(z){X(this,new V("_read()"))},pe.prototype.pipe=function(z,O){var D=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=z;break;case 1:q.pipes=[q.pipes,z];break;default:q.pipes.push(z)}q.pipesCount+=1,i("pipe count=%d opts=%j",q.pipesCount,O);var Y=(!O||O.end!==!1)&&z!==vr.stdout&&z!==vr.stderr?ae:me;function Q(Le,De){i("onunpipe"),Le===D&&De&&De.hasUnpiped===!1&&(De.hasUnpiped=!0,i("cleanup"),z.removeListener("close",oe),z.removeListener("finish",fe),z.removeListener("drain",re),z.removeListener("error",ie),z.removeListener("unpipe",Q),D.removeListener("end",ae),D.removeListener("end",me),D.removeListener("data",de),we=!0,!q.awaitDrain||z._writableState&&!z._writableState.needDrain||re())}function ae(){i("onend"),z.end()}q.endEmitted?xn(Y):D.once("end",Y),z.on("unpipe",Q);var re=function(Le){return function(){var De=Le._readableState;i("pipeOnDrain",De.awaitDrain),De.awaitDrain&&De.awaitDrain--,De.awaitDrain===0&&t(Le,"data")&&(De.flowing=!0,C(Le))}}(D);z.on("drain",re);var we=!1;function de(Le){i("ondata");var De=z.write(Le);i("dest.write",De),De===!1&&((q.pipesCount===1&&q.pipes===z||q.pipesCount>1&&K(q.pipes,z)!==-1)&&!we&&(i("false write response, pause",q.awaitDrain),q.awaitDrain++),D.pause())}function ie(Le){i("onerror",Le),me(),z.removeListener("error",ie),t(z,"error")===0&&X(z,Le)}function oe(){z.removeListener("finish",fe),me()}function fe(){i("onfinish"),z.removeListener("close",oe),me()}function me(){i("unpipe"),D.unpipe(z)}return D.on("data",de),function(Le,De,Ce){if(typeof Le.prependListener=="function")return Le.prependListener(De,Ce);Le._events&&Le._events[De]?Array.isArray(Le._events[De])?Le._events[De].unshift(Ce):Le._events[De]=[Ce,Le._events[De]]:Le.on(De,Ce)}(z,"error",ie),z.once("close",oe),z.once("finish",fe),z.emit("pipe",D),q.flowing||(i("pipe resume"),D.resume()),z},pe.prototype.unpipe=function(z){var O=this._readableState,D={hasUnpiped:!1};if(O.pipesCount===0)return this;if(O.pipesCount===1)return z&&z!==O.pipes||(z||(z=O.pipes),O.pipes=null,O.pipesCount=0,O.flowing=!1,z&&z.emit("unpipe",this,D)),this;if(!z){var q=O.pipes,Y=O.pipesCount;O.pipes=null,O.pipesCount=0,O.flowing=!1;for(var Q=0;Q<Y;Q++)q[Q].emit("unpipe",this,{hasUnpiped:!1});return this}var ae=K(O.pipes,z);return ae===-1||(O.pipes.splice(ae,1),O.pipesCount-=1,O.pipesCount===1&&(O.pipes=O.pipes[0]),z.emit("unpipe",this,D)),this},pe.prototype.on=function(z,O){var D=n.prototype.on.call(this,z,O),q=this._readableState;return z==="data"?(q.readableListening=this.listenerCount("readable")>0,q.flowing!==!1&&this.resume()):z==="readable"&&(q.endEmitted||q.readableListening||(q.readableListening=q.needReadable=!0,q.flowing=!1,q.emittedReadable=!1,i("on readable",q.length,q.reading),q.length?x(this):q.reading||xn(l,this))),D},pe.prototype.addListener=pe.prototype.on,pe.prototype.removeListener=function(z,O){var D=n.prototype.removeListener.call(this,z,O);return z==="readable"&&xn(f,this),D},pe.prototype.removeAllListeners=function(z){var O=n.prototype.removeAllListeners.apply(this,arguments);return z!=="readable"&&z!==void 0||xn(f,this),O},pe.prototype.resume=function(){var z=this._readableState;return z.flowing||(i("resume"),z.flowing=!z.readableListening,function(O,D){D.resumeScheduled||(D.resumeScheduled=!0,xn(b,O,D))}(this,z)),z.paused=!1,this},pe.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},pe.prototype.wrap=function(z){var O=this,D=this._readableState,q=!1;for(var Y in z.on("end",function(){if(i("wrapped end"),D.decoder&&!D.ended){var ae=D.decoder.end();ae&&ae.length&&O.push(ae)}O.push(null)}),z.on("data",function(ae){i("wrapped data"),D.decoder&&(ae=D.decoder.write(ae)),D.objectMode&&ae==null||(D.objectMode||ae&&ae.length)&&(O.push(ae)||(q=!0,z.pause()))}),z)this[Y]===void 0&&typeof z[Y]=="function"&&(this[Y]=function(ae){return function(){return z[ae].apply(z,arguments)}}(Y));for(var Q=0;Q<ue.length;Q++)z.on(ue[Q],this.emit.bind(this,ue[Q]));return this._read=function(ae){i("wrapped _read",ae),q&&(q=!1,z.resume())},this},typeof Symbol=="function"&&(pe.prototype[Symbol.asyncIterator]=function(){return _===void 0&&(_=bI()),_(this)}),Object.defineProperty(pe.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(pe.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(pe.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(z){this._readableState&&(this._readableState.flowing=z)}}),pe._fromList=R,Object.defineProperty(pe.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(pe.from=function(z,O){return w===void 0&&(w=U_?z_:(U_=1,z_=function(){throw new Error("Readable.from is not available in the browser")})),w(pe,z,O)}),b4}var q_=Wl,kv=Uf.codes,yI=kv.ERR_METHOD_NOT_IMPLEMENTED,wI=kv.ERR_MULTIPLE_CALLBACK,_I=kv.ERR_TRANSFORM_ALREADY_TRANSFORMING,SI=kv.ERR_TRANSFORM_WITH_LENGTH_0,Mv=B0();function EI(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit("error",new wI);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function Wl(e){if(!(this instanceof Wl))return new Wl(e);Mv.call(this,e),this._transformState={afterTransform:EI.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",kI)}function kI(){var e=this;typeof this._flush!="function"||this._readableState.destroyed?H_(this,null,null):this._flush(function(t,n){H_(e,t,n)})}function H_(e,t,n){if(t)return e.emit("error",t);if(n!=null&&e.push(n),e._writableState.length)throw new SI;if(e._transformState.transforming)throw new _I;return e.push(null)}On(Wl,Mv),Wl.prototype.push=function(e,t){return this._transformState.needTransform=!1,Mv.prototype.push.call(this,e,t)},Wl.prototype._transform=function(e,t,n){n(new yI("_transform()"))},Wl.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},Wl.prototype._read=function(e){var t=this._transformState;t.writechunk===null||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},Wl.prototype._destroy=function(e,t){Mv.prototype._destroy.call(this,e,function(n){t(n)})};var w4,MI=gm,W_=q_;function gm(e){if(!(this instanceof gm))return new gm(e);W_.call(this,e)}On(gm,W_),gm.prototype._transform=function(e,t,n){n(null,e)};var $_=Uf.codes,CI=$_.ERR_MISSING_ARGS,xI=$_.ERR_STREAM_DESTROYED;function V_(e){if(e)throw e}function Y_(e){e()}function AI(e,t){return e.pipe(t)}var RI=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=function(c){return c.length?typeof c[c.length-1]!="function"?V_:c.pop():V_}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new CI("streams");var i=t.map(function(c,g){var _=g<t.length-1;return function(w,S,E,T){T=function(H){var V=!1;return function(){V||(V=!0,H.apply(void 0,arguments))}}(T);var I=!1;w.on("close",function(){I=!0}),w4===void 0&&(w4=y4),w4(w,{readable:S,writable:E},function(H){if(H)return T(H);I=!0,T()});var j=!1;return function(H){if(!I&&!j)return j=!0,function(V){return V.setHeader&&typeof V.abort=="function"}(w)?w.abort():typeof w.destroy=="function"?w.destroy():void T(H||new xI("pipe"))}}(c,_,g>0,function(w){r||(r=w),w&&i.forEach(Y_),_||(i.forEach(Y_),o(r))})});return t.reduce(AI)};(function(e,t){(t=e.exports=K_()).Stream=t,t.Readable=t,t.Writable=O_(),t.Duplex=B0(),t.Transform=q_,t.PassThrough=MI,t.finished=y4,t.pipeline=RI})(e4,e4.exports);var ad=e4.exports,Cv=In().Buffer,G_=ad.Transform;function sd(e){G_.call(this),this._block=Cv.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}On(sd,G_),sd.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(o){r=o}n(r)},sd.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(n){t=n}e(t)},sd.prototype.update=function(e,t){if(function(g,_){if(!Cv.isBuffer(g)&&typeof g!="string")throw new TypeError(_+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");Cv.isBuffer(e)||(e=Cv.from(e,t));for(var n=this._block,r=0;this._blockOffset+e.length-r>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)n[o++]=e[r++];this._update(),this._blockOffset=0}for(;r<e.length;)n[this._blockOffset++]=e[r++];for(var i=0,c=8*e.length;c>0;++i)this._length[i]+=c,(c=this._length[i]/4294967296|0)>0&&(this._length[i]-=4294967296*c);return this},sd.prototype._update=function(){throw new Error("_update is not implemented")},sd.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},sd.prototype._digest=function(){throw new Error("_digest is not implemented")};var Z_=sd,TI=On,Q_=Z_,PI=In().Buffer,LI=new Array(16);function xv(){Q_.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function Av(e,t){return e<<t|e>>>32-t}function oo(e,t,n,r,o,i,c){return Av(e+(t&n|~t&r)+o+i|0,c)+t|0}function ao(e,t,n,r,o,i,c){return Av(e+(t&r|n&~r)+o+i|0,c)+t|0}function so(e,t,n,r,o,i,c){return Av(e+(t^n^r)+o+i|0,c)+t|0}function uo(e,t,n,r,o,i,c){return Av(e+(n^(t|~r))+o+i|0,c)+t|0}TI(xv,Q_),xv.prototype._update=function(){for(var e=LI,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,o=this._c,i=this._d;n=oo(n,r,o,i,e[0],3614090360,7),i=oo(i,n,r,o,e[1],3905402710,12),o=oo(o,i,n,r,e[2],606105819,17),r=oo(r,o,i,n,e[3],3250441966,22),n=oo(n,r,o,i,e[4],4118548399,7),i=oo(i,n,r,o,e[5],1200080426,12),o=oo(o,i,n,r,e[6],2821735955,17),r=oo(r,o,i,n,e[7],4249261313,22),n=oo(n,r,o,i,e[8],1770035416,7),i=oo(i,n,r,o,e[9],2336552879,12),o=oo(o,i,n,r,e[10],4294925233,17),r=oo(r,o,i,n,e[11],2304563134,22),n=oo(n,r,o,i,e[12],1804603682,7),i=oo(i,n,r,o,e[13],4254626195,12),o=oo(o,i,n,r,e[14],2792965006,17),n=ao(n,r=oo(r,o,i,n,e[15],1236535329,22),o,i,e[1],4129170786,5),i=ao(i,n,r,o,e[6],3225465664,9),o=ao(o,i,n,r,e[11],643717713,14),r=ao(r,o,i,n,e[0],3921069994,20),n=ao(n,r,o,i,e[5],3593408605,5),i=ao(i,n,r,o,e[10],38016083,9),o=ao(o,i,n,r,e[15],3634488961,14),r=ao(r,o,i,n,e[4],3889429448,20),n=ao(n,r,o,i,e[9],568446438,5),i=ao(i,n,r,o,e[14],3275163606,9),o=ao(o,i,n,r,e[3],4107603335,14),r=ao(r,o,i,n,e[8],1163531501,20),n=ao(n,r,o,i,e[13],2850285829,5),i=ao(i,n,r,o,e[2],4243563512,9),o=ao(o,i,n,r,e[7],1735328473,14),n=so(n,r=ao(r,o,i,n,e[12],2368359562,20),o,i,e[5],4294588738,4),i=so(i,n,r,o,e[8],2272392833,11),o=so(o,i,n,r,e[11],1839030562,16),r=so(r,o,i,n,e[14],4259657740,23),n=so(n,r,o,i,e[1],2763975236,4),i=so(i,n,r,o,e[4],1272893353,11),o=so(o,i,n,r,e[7],4139469664,16),r=so(r,o,i,n,e[10],3200236656,23),n=so(n,r,o,i,e[13],681279174,4),i=so(i,n,r,o,e[0],3936430074,11),o=so(o,i,n,r,e[3],3572445317,16),r=so(r,o,i,n,e[6],76029189,23),n=so(n,r,o,i,e[9],3654602809,4),i=so(i,n,r,o,e[12],3873151461,11),o=so(o,i,n,r,e[15],530742520,16),n=uo(n,r=so(r,o,i,n,e[2],3299628645,23),o,i,e[0],4096336452,6),i=uo(i,n,r,o,e[7],1126891415,10),o=uo(o,i,n,r,e[14],2878612391,15),r=uo(r,o,i,n,e[5],4237533241,21),n=uo(n,r,o,i,e[12],1700485571,6),i=uo(i,n,r,o,e[3],2399980690,10),o=uo(o,i,n,r,e[10],4293915773,15),r=uo(r,o,i,n,e[1],2240044497,21),n=uo(n,r,o,i,e[8],1873313359,6),i=uo(i,n,r,o,e[15],4264355552,10),o=uo(o,i,n,r,e[6],2734768916,15),r=uo(r,o,i,n,e[13],1309151649,21),n=uo(n,r,o,i,e[4],4149444226,6),i=uo(i,n,r,o,e[11],3174756917,10),o=uo(o,i,n,r,e[2],718787259,15),r=uo(r,o,i,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+o|0,this._d=this._d+i|0},xv.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=PI.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};var _4=xv,S4=xs.Buffer,II=On,X_=Z_,OI=new Array(16),vm=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],bm=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],ym=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],wm=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],_m=[0,1518500249,1859775393,2400959708,2840853838],Sm=[1352829926,1548603684,1836072691,2053994217,0];function Rv(){X_.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function Ff(e,t){return e<<t|e>>>32-t}function J_(e,t,n,r,o,i,c,g){return Ff(e+(t^n^r)+i+c|0,g)+o|0}function eS(e,t,n,r,o,i,c,g){return Ff(e+(t&n|~t&r)+i+c|0,g)+o|0}function tS(e,t,n,r,o,i,c,g){return Ff(e+((t|~n)^r)+i+c|0,g)+o|0}function nS(e,t,n,r,o,i,c,g){return Ff(e+(t&r|n&~r)+i+c|0,g)+o|0}function rS(e,t,n,r,o,i,c,g){return Ff(e+(t^(n|~r))+i+c|0,g)+o|0}II(Rv,X_),Rv.prototype._update=function(){for(var e=OI,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,o=0|this._c,i=0|this._d,c=0|this._e,g=0|this._a,_=0|this._b,w=0|this._c,S=0|this._d,E=0|this._e,T=0;T<80;T+=1){var I,j;T<16?(I=J_(n,r,o,i,c,e[vm[T]],_m[0],ym[T]),j=rS(g,_,w,S,E,e[bm[T]],Sm[0],wm[T])):T<32?(I=eS(n,r,o,i,c,e[vm[T]],_m[1],ym[T]),j=nS(g,_,w,S,E,e[bm[T]],Sm[1],wm[T])):T<48?(I=tS(n,r,o,i,c,e[vm[T]],_m[2],ym[T]),j=tS(g,_,w,S,E,e[bm[T]],Sm[2],wm[T])):T<64?(I=nS(n,r,o,i,c,e[vm[T]],_m[3],ym[T]),j=eS(g,_,w,S,E,e[bm[T]],Sm[3],wm[T])):(I=rS(n,r,o,i,c,e[vm[T]],_m[4],ym[T]),j=J_(g,_,w,S,E,e[bm[T]],Sm[4],wm[T])),n=c,c=i,i=Ff(o,10),o=r,r=I,g=E,E=S,S=Ff(w,10),w=_,_=j}var H=this._b+o+S|0;this._b=this._c+i+E|0,this._c=this._d+c+g|0,this._d=this._e+n+_|0,this._e=this._a+r+w|0,this._a=H},Rv.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=S4.alloc?S4.alloc(20):new S4(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};var E4=Rv,iS={exports:{}},oS=In().Buffer;function Tv(e,t){this._block=oS.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Tv.prototype.update=function(e,t){typeof e=="string"&&(t=t||"utf8",e=oS.from(e,t));for(var n=this._block,r=this._blockSize,o=e.length,i=this._len,c=0;c<o;){for(var g=i%r,_=Math.min(o-c,r-g),w=0;w<_;w++)n[g+w]=e[c+w];c+=_,(i+=_)%r==0&&this._update(n)}return this._len+=o,this},Tv.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,o=(n-r)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},Tv.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var j0=Tv,NI=On,aS=j0,DI=In().Buffer,BI=[1518500249,1859775393,-1894007588,-899497514],jI=new Array(80);function Em(){this.init(),this._w=jI,aS.call(this,64,56)}function zI(e){return e<<30|e>>>2}function UI(e,t,n,r){return e===0?t&n|~t&r:e===2?t&n|t&r|n&r:t^n^r}NI(Em,aS),Em.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Em.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,c=0|this._d,g=0|this._e,_=0;_<16;++_)n[_]=e.readInt32BE(4*_);for(;_<80;++_)n[_]=n[_-3]^n[_-8]^n[_-14]^n[_-16];for(var w=0;w<80;++w){var S=~~(w/20),E=0|((t=r)<<5|t>>>27)+UI(S,o,i,c)+g+n[w]+BI[S];g=c,c=i,i=zI(o),o=r,r=E}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=c+this._d|0,this._e=g+this._e|0},Em.prototype._hash=function(){var e=DI.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var FI=Em,KI=On,sS=j0,qI=In().Buffer,HI=[1518500249,1859775393,-1894007588,-899497514],WI=new Array(80);function km(){this.init(),this._w=WI,sS.call(this,64,56)}function $I(e){return e<<5|e>>>27}function VI(e){return e<<30|e>>>2}function YI(e,t,n,r){return e===0?t&n|~t&r:e===2?t&n|t&r|n&r:t^n^r}KI(km,sS),km.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},km.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,c=0|this._d,g=0|this._e,_=0;_<16;++_)n[_]=e.readInt32BE(4*_);for(;_<80;++_)n[_]=(t=n[_-3]^n[_-8]^n[_-14]^n[_-16])<<1|t>>>31;for(var w=0;w<80;++w){var S=~~(w/20),E=$I(r)+YI(S,o,i,c)+g+n[w]+HI[S]|0;g=c,c=i,i=VI(o),o=r,r=E}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=c+this._d|0,this._e=g+this._e|0},km.prototype._hash=function(){var e=qI.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var GI=km,ZI=On,uS=j0,QI=In().Buffer,XI=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],JI=new Array(64);function Mm(){this.init(),this._w=JI,uS.call(this,64,56)}function eO(e,t,n){return n^e&(t^n)}function tO(e,t,n){return e&t|n&(e|t)}function nO(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function rO(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function iO(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function oO(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}ZI(Mm,uS),Mm.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},Mm.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,o=0|this._c,i=0|this._d,c=0|this._e,g=0|this._f,_=0|this._g,w=0|this._h,S=0;S<16;++S)t[S]=e.readInt32BE(4*S);for(;S<64;++S)t[S]=oO(t[S-2])+t[S-7]+iO(t[S-15])+t[S-16]|0;for(var E=0;E<64;++E){var T=w+rO(c)+eO(c,g,_)+XI[E]+t[E]|0,I=nO(n)+tO(n,r,o)|0;w=_,_=g,g=c,c=i+T|0,i=o,o=r,r=n,n=T+I|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=i+this._d|0,this._e=c+this._e|0,this._f=g+this._f|0,this._g=_+this._g|0,this._h=w+this._h|0},Mm.prototype._hash=function(){var e=QI.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var lS=Mm,aO=On,sO=lS,uO=j0,lO=In().Buffer,cO=new Array(64);function Pv(){this.init(),this._w=cO,uO.call(this,64,56)}aO(Pv,sO),Pv.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},Pv.prototype._hash=function(){var e=lO.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var dO=Pv,fO=On,cS=j0,hO=In().Buffer,dS=[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],pO=new Array(160);function Cm(){this.init(),this._w=pO,cS.call(this,128,112)}function fS(e,t,n){return n^e&(t^n)}function hS(e,t,n){return e&t|n&(e|t)}function pS(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function mS(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function mO(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function gO(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function vO(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function bO(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function Si(e,t){return e>>>0<t>>>0?1:0}fO(Cm,cS),Cm.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},Cm.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,o=0|this._ch,i=0|this._dh,c=0|this._eh,g=0|this._fh,_=0|this._gh,w=0|this._hh,S=0|this._al,E=0|this._bl,T=0|this._cl,I=0|this._dl,j=0|this._el,H=0|this._fl,V=0|this._gl,ee=0|this._hl,X=0;X<32;X+=2)t[X]=e.readInt32BE(4*X),t[X+1]=e.readInt32BE(4*X+4);for(;X<160;X+=2){var ue=t[X-30],le=t[X-30+1],pe=mO(ue,le),Me=gO(le,ue),ye=vO(ue=t[X-4],le=t[X-4+1]),Te=bO(le,ue),y=t[X-14],x=t[X-14+1],d=t[X-32],p=t[X-32+1],h=Me+x|0,f=pe+y+Si(h,Me)|0;f=(f=f+ye+Si(h=h+Te|0,Te)|0)+d+Si(h=h+p|0,p)|0,t[X]=f,t[X+1]=h}for(var l=0;l<160;l+=2){f=t[l],h=t[l+1];var b=hS(n,r,o),C=hS(S,E,T),R=pS(n,S),L=pS(S,n),B=mS(c,j),K=mS(j,c),z=dS[l],O=dS[l+1],D=fS(c,g,_),q=fS(j,H,V),Y=ee+K|0,Q=w+B+Si(Y,ee)|0;Q=(Q=(Q=Q+D+Si(Y=Y+q|0,q)|0)+z+Si(Y=Y+O|0,O)|0)+f+Si(Y=Y+h|0,h)|0;var ae=L+C|0,re=R+b+Si(ae,L)|0;w=_,ee=V,_=g,V=H,g=c,H=j,c=i+Q+Si(j=I+Y|0,I)|0,i=o,I=T,o=r,T=E,r=n,E=S,n=Q+re+Si(S=Y+ae|0,Y)|0}this._al=this._al+S|0,this._bl=this._bl+E|0,this._cl=this._cl+T|0,this._dl=this._dl+I|0,this._el=this._el+j|0,this._fl=this._fl+H|0,this._gl=this._gl+V|0,this._hl=this._hl+ee|0,this._ah=this._ah+n+Si(this._al,S)|0,this._bh=this._bh+r+Si(this._bl,E)|0,this._ch=this._ch+o+Si(this._cl,T)|0,this._dh=this._dh+i+Si(this._dl,I)|0,this._eh=this._eh+c+Si(this._el,j)|0,this._fh=this._fh+g+Si(this._fl,H)|0,this._gh=this._gh+_+Si(this._gl,V)|0,this._hh=this._hh+w+Si(this._hl,ee)|0},Cm.prototype._hash=function(){var e=hO.allocUnsafe(64);function t(n,r,o){e.writeInt32BE(n,o),e.writeInt32BE(r,o+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var gS=Cm,yO=On,wO=gS,_O=j0,SO=In().Buffer,EO=new Array(160);function Lv(){this.init(),this._w=EO,_O.call(this,128,112)}yO(Lv,wO),Lv.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},Lv.prototype._hash=function(){var e=SO.allocUnsafe(48);function t(n,r,o){e.writeInt32BE(n,o),e.writeInt32BE(r,o+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var kO=Lv,Kf=iS.exports=function(e){e=e.toLowerCase();var t=Kf[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};Kf.sha=FI,Kf.sha1=GI,Kf.sha224=dO,Kf.sha256=lS,Kf.sha384=kO,Kf.sha512=gS;var k4=iS.exports;function qf(){this.head=null,this.tail=null,this.length=0}qf.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},qf.prototype.unshift=function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},qf.prototype.shift=function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},qf.prototype.clear=function(){this.head=this.tail=null,this.length=0},qf.prototype.join=function(e){if(this.length===0)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},qf.prototype.concat=function(e){if(this.length===0)return ze.alloc(0);if(this.length===1)return this.head.data;for(var t=ze.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var MO=ze.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function z0(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!MO(t))throw new Error("Unknown encoding: "+t)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=xO;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=AO;break;default:return void(this.write=CO)}this.charBuffer=new ze(6),this.charReceived=0,this.charLength=0}function CO(e){return e.toString(this.encoding)}function xO(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function AO(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}z0.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((o=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&o<=56319)){if(this.charReceived=this.charLength=0,e.length===0)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,r),r-=this.charReceived);var o;if(r=(t+=e.toString(this.encoding,0,r)).length-1,(o=t.charCodeAt(r))>=55296&&o<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),e.copy(this.charBuffer,0,0,i),t.substring(0,r)}return t},z0.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(t==1&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},z0.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,o=this.encoding;t+=r.slice(0,n).toString(o)}return t};var RO=Object.freeze({__proto__:null,StringDecoder:z0});Fr.ReadableState=vS;var fr=r4("stream");function vS(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof ba&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||n===0?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new qf,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new z0(e.encoding),this.encoding=e.encoding)}function Fr(e){if(!(this instanceof Fr))return new Fr(e);this._readableState=new vS(e,this),this.readable=!0,e&&typeof e.read=="function"&&(this._read=e.read),Nn.call(this)}function bS(e,t,n,r,o){var i=function(w,S){var E=null;return va(S)||typeof S=="string"||S==null||w.objectMode||(E=new TypeError("Invalid non-string/buffer chunk")),E}(t,n);if(i)e.emit("error",i);else if(n===null)t.reading=!1,function(w,S){if(!S.ended){if(S.decoder){var E=S.decoder.end();E&&E.length&&(S.buffer.push(E),S.length+=S.objectMode?1:E.length)}S.ended=!0,Iv(w)}}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!o){var c=new Error("stream.push() after EOF");e.emit("error",c)}else if(t.endEmitted&&o){var g=new Error("stream.unshift() after end event");e.emit("error",g)}else{var _;!t.decoder||o||r||(n=t.decoder.write(n),_=!t.objectMode&&n.length===0),o||(t.reading=!1),_||(t.flowing&&t.length===0&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,o?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&Iv(e))),function(w,S){S.readingMore||(S.readingMore=!0,xn(TO,w,S))}(e,t)}else o||(t.reading=!1);return function(w){return!w.ended&&(w.needReadable||w.length<w.highWaterMark||w.length===0)}(t)}od(Fr,Nn),Fr.prototype.push=function(e,t){var n=this._readableState;return n.objectMode||typeof e!="string"||(t=t||n.defaultEncoding)!==n.encoding&&(e=ze.from(e,t),t=""),bS(this,n,e,t,!1)},Fr.prototype.unshift=function(e){return bS(this,this._readableState,e,"",!0)},Fr.prototype.isPaused=function(){return this._readableState.flowing===!1},Fr.prototype.setEncoding=function(e){return this._readableState.decoder=new z0(e),this._readableState.encoding=e,this};var yS=8388608;function wS(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(n){return n>=yS?n=yS:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function Iv(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(fr("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?xn(_S,e):_S(e))}function _S(e){fr("emit readable"),e.emit("readable"),M4(e)}function TO(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(fr("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function PO(e){fr("readable nexttick read 0"),e.read(0)}function LO(e,t){t.reading||(fr("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),M4(e),t.flowing&&!t.reading&&e.read(0)}function M4(e){var t=e._readableState;for(fr("flow",t.flowing);t.flowing&&e.read()!==null;);}function SS(e,t){return t.length===0?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):t.buffer.length===1?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(r,o,i){var c;return r<o.head.data.length?(c=o.head.data.slice(0,r),o.head.data=o.head.data.slice(r)):c=r===o.head.data.length?o.shift():i?function(g,_){var w=_.head,S=1,E=w.data;for(g-=E.length;w=w.next;){var T=w.data,I=g>T.length?T.length:g;if(I===T.length?E+=T:E+=T.slice(0,g),(g-=I)===0){I===T.length?(++S,w.next?_.head=w.next:_.head=_.tail=null):(_.head=w,w.data=T.slice(I));break}++S}return _.length-=S,E}(r,o):function(g,_){var w=ze.allocUnsafe(g),S=_.head,E=1;for(S.data.copy(w),g-=S.data.length;S=S.next;){var T=S.data,I=g>T.length?T.length:g;if(T.copy(w,w.length-g,0,I),(g-=I)===0){I===T.length?(++E,S.next?_.head=S.next:_.head=_.tail=null):(_.head=S,S.data=T.slice(I));break}++E}return _.length-=E,w}(r,o),c}(e,t.buffer,t.decoder),n);var n}function C4(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,xn(IO,t,e))}function IO(e,t){e.endEmitted||e.length!==0||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function ES(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function OO(){}function NO(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function x4(e,t){Object.defineProperty(this,"buffer",{get:bv(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof ba&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||n===0?n:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var o=e.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){(function(c,g){var _=c._writableState,w=_.sync,S=_.writecb;if(function(T){T.writing=!1,T.writecb=null,T.length-=T.writelen,T.writelen=0}(_),g)(function(T,I,j,H,V){--I.pendingcb,j?xn(V,H):V(H),T._writableState.errorEmitted=!0,T.emit("error",H)})(c,_,w,g,S);else{var E=CS(_);E||_.corked||_.bufferProcessing||!_.bufferedRequest||MS(c,_),w?xn(kS,c,_,E,S):kS(c,_,E,S)}})(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new RS(this)}function zi(e){if(!(this instanceof zi||this instanceof ba))return new zi(e);this._writableState=new x4(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev)),Nn.call(this)}function A4(e,t,n,r,o,i,c){t.writelen=r,t.writecb=c,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function kS(e,t,n,r){n||function(o,i){i.length===0&&i.needDrain&&(i.needDrain=!1,o.emit("drain"))}(e,t),t.pendingcb--,r(),AS(e,t)}function MS(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var c=0;n;)o[c]=n,n=n.next,c+=1;A4(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new RS(t)}else{for(;n;){var g=n.chunk,_=n.encoding,w=n.callback;if(A4(e,t,!1,t.objectMode?1:g.length,g,_,w),n=n.next,t.writing)break}n===null&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function CS(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function xS(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function AS(e,t){var n=CS(t);return n&&(t.pendingcb===0?(xS(e,t),t.finished=!0,e.emit("finish")):xS(e,t)),n}function RS(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var r=t.entry;for(t.entry=null;r;){var o=r.callback;e.pendingcb--,o(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}Fr.prototype.read=function(e){fr("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return fr("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?C4(this):Iv(this),null;if((e=wS(e,t))===0&&t.ended)return t.length===0&&C4(this),null;var r,o=t.needReadable;return fr("need readable",o),(t.length===0||t.length-e<t.highWaterMark)&&fr("length less than watermark",o=!0),t.ended||t.reading?fr("reading or ended",o=!1):o&&(fr("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=wS(n,t))),(r=e>0?SS(e,t):null)===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&C4(this)),r!==null&&this.emit("data",r),r},Fr.prototype._read=function(e){this.emit("error",new Error("not implemented"))},Fr.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,fr("pipe count=%d opts=%j",r.pipesCount,t);var o=!t||t.end!==!1?c:w;function i(V){fr("onunpipe"),V===n&&w()}function c(){fr("onend"),e.end()}r.endEmitted?xn(o):n.once("end",o),e.on("unpipe",i);var g=function(V){return function(){var ee=V._readableState;fr("pipeOnDrain",ee.awaitDrain),ee.awaitDrain&&ee.awaitDrain--,ee.awaitDrain===0&&V.listeners("data").length&&(ee.flowing=!0,M4(V))}}(n);e.on("drain",g);var _=!1;function w(){fr("cleanup"),e.removeListener("close",I),e.removeListener("finish",j),e.removeListener("drain",g),e.removeListener("error",T),e.removeListener("unpipe",i),n.removeListener("end",c),n.removeListener("end",w),n.removeListener("data",E),_=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||g()}var S=!1;function E(V){fr("ondata"),S=!1,e.write(V)!==!1||S||((r.pipesCount===1&&r.pipes===e||r.pipesCount>1&&ES(r.pipes,e)!==-1)&&!_&&(fr("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,S=!0),n.pause())}function T(V){var ee;fr("onerror",V),H(),e.removeListener("error",T),ee="error",e.listeners(ee).length===0&&e.emit("error",V)}function I(){e.removeListener("finish",j),H()}function j(){fr("onfinish"),e.removeListener("close",I),H()}function H(){fr("unpipe"),n.unpipe(e)}return n.on("data",E),function(V,ee,X){if(typeof V.prependListener=="function")return V.prependListener(ee,X);V._events&&V._events[ee]?Array.isArray(V._events[ee])?V._events[ee].unshift(X):V._events[ee]=[X,V._events[ee]]:V.on(ee,X)}(e,"error",T),e.once("close",I),e.once("finish",j),e.emit("pipe",n),r.flowing||(fr("pipe resume"),n.resume()),e},Fr.prototype.unpipe=function(e){var t=this._readableState;if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<r;o++)n[o].emit("unpipe",this);return this}var i=ES(t.pipes,e);return i===-1||(t.pipes.splice(i,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},Fr.prototype.on=function(e,t){var n=Nn.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&Iv(this):xn(PO,this))}return n},Fr.prototype.addListener=Fr.prototype.on,Fr.prototype.resume=function(){var e=this._readableState;return e.flowing||(fr("resume"),e.flowing=!0,function(t,n){n.resumeScheduled||(n.resumeScheduled=!0,xn(LO,t,n))}(this,e)),this},Fr.prototype.pause=function(){return fr("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(fr("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Fr.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var o in e.on("end",function(){if(fr("wrapped end"),t.decoder&&!t.ended){var i=t.decoder.end();i&&i.length&&r.push(i)}r.push(null)}),e.on("data",function(i){fr("wrapped data"),t.decoder&&(i=t.decoder.write(i)),t.objectMode&&i==null||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)this[o]===void 0&&typeof e[o]=="function"&&(this[o]=function(i){return function(){return e[i].apply(e,arguments)}}(o));return function(i,c){for(var g=0,_=i.length;g<_;g++)c(i[g],g)}(["error","close","destroy","pause","resume"],function(i){e.on(i,r.emit.bind(r,i))}),r._read=function(i){fr("wrapped _read",i),n&&(n=!1,e.resume())},r},Fr._fromList=SS,zi.WritableState=x4,od(zi,Nn),x4.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},zi.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},zi.prototype.write=function(e,t,n){var r=this._writableState,o=!1;return typeof t=="function"&&(n=t,t=null),ze.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),typeof n!="function"&&(n=OO),r.ended?function(i,c){var g=new Error("write after end");i.emit("error",g),xn(c,g)}(this,n):function(i,c,g,_){var w=!0,S=!1;return g===null?S=new TypeError("May not write null values to stream"):ze.isBuffer(g)||typeof g=="string"||g===void 0||c.objectMode||(S=new TypeError("Invalid non-string/buffer chunk")),S&&(i.emit("error",S),xn(_,S),w=!1),w}(this,r,e,n)&&(r.pendingcb++,o=function(i,c,g,_,w){g=function(I,j,H){return I.objectMode||I.decodeStrings===!1||typeof j!="string"||(j=ze.from(j,H)),j}(c,g,_),ze.isBuffer(g)&&(_="buffer");var S=c.objectMode?1:g.length;c.length+=S;var E=c.length<c.highWaterMark;if(E||(c.needDrain=!0),c.writing||c.corked){var T=c.lastBufferedRequest;c.lastBufferedRequest=new NO(g,_,w),T?T.next=c.lastBufferedRequest:c.bufferedRequest=c.lastBufferedRequest,c.bufferedRequestCount+=1}else A4(i,c,!1,S,g,_,w);return E}(this,r,e,t,n)),o},zi.prototype.cork=function(){this._writableState.corked++},zi.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||MS(this,e))},zi.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},zi.prototype._write=function(e,t,n){n(new Error("not implemented"))},zi.prototype._writev=null,zi.prototype.end=function(e,t,n){var r=this._writableState;typeof e=="function"?(n=e,e=null,t=null):typeof t=="function"&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(o,i,c){i.ending=!0,AS(o,i),c&&(i.finished?xn(c):o.once("finish",c)),i.ended=!0,o.writable=!1}(this,r,n)},od(ba,Fr);for(var TS=Object.keys(zi.prototype),R4=0;R4<TS.length;R4++){var T4=TS[R4];ba.prototype[T4]||(ba.prototype[T4]=zi.prototype[T4])}function ba(e){if(!(this instanceof ba))return new ba(e);Fr.call(this,e),zi.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",DO)}function DO(){this.allowHalfOpen||this._writableState.ended||xn(BO,this)}function BO(e){e.end()}function jO(e){this.afterTransform=function(t,n){return function(r,o,i){var c=r._transformState;c.transforming=!1;var g=c.writecb;if(!g)return r.emit("error",new Error("no writecb in Transform class"));c.writechunk=null,c.writecb=null,i!=null&&r.push(i),g(o);var _=r._readableState;_.reading=!1,(_.needReadable||_.length<_.highWaterMark)&&r._read(_.highWaterMark)}(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function As(e){if(!(this instanceof As))return new As(e);ba.call(this,e),this._transformState=new jO(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.once("prefinish",function(){typeof this._flush=="function"?this._flush(function(n){PS(t,n)}):PS(t)})}function PS(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=e._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function U0(e){if(!(this instanceof U0))return new U0(e);As.call(this,e)}function Rs(){Nn.call(this)}od(As,ba),As.prototype.push=function(e,t){return this._transformState.needTransform=!1,ba.prototype.push.call(this,e,t)},As.prototype._transform=function(e,t,n){throw new Error("Not implemented")},As.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},As.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},od(U0,As),U0.prototype._transform=function(e,t,n){n(null,e)},od(Rs,Nn),Rs.Readable=Fr,Rs.Writable=zi,Rs.Duplex=ba,Rs.Transform=As,Rs.PassThrough=U0,Rs.Stream=Rs,Rs.prototype.pipe=function(e,t){var n=this;function r(S){e.writable&&e.write(S)===!1&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",o),e._isStdio||t&&t.end===!1||(n.on("end",c),n.on("close",g));var i=!1;function c(){i||(i=!0,e.end())}function g(){i||(i=!0,typeof e.destroy=="function"&&e.destroy())}function _(S){if(w(),Nn.listenerCount(this,"error")===0)throw S}function w(){n.removeListener("data",r),e.removeListener("drain",o),n.removeListener("end",c),n.removeListener("close",g),n.removeListener("error",_),e.removeListener("error",_),n.removeListener("end",w),n.removeListener("close",w),e.removeListener("close",w)}return n.on("error",_),e.on("error",_),n.on("end",w),n.on("close",w),e.on("close",w),e.emit("pipe",n),e};var zO=um(Object.freeze({__proto__:null,Duplex:ba,PassThrough:U0,Readable:Fr,Stream:Rs,Transform:As,Writable:zi,default:Rs})),UO=um(RO),LS=In().Buffer,IS=zO.Transform,FO=UO.StringDecoder;function Ts(e){IS.call(this),this.hashMode=typeof e=="string",this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}On(Ts,IS),Ts.prototype.update=function(e,t,n){typeof e=="string"&&(e=LS.from(e,t));var r=this._update(e);return this.hashMode?this:(n&&(r=this._toString(r,n)),r)},Ts.prototype.setAutoPadding=function(){},Ts.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},Ts.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},Ts.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},Ts.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(o){r=o}finally{n(r)}},Ts.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(n){t=n}e(t)},Ts.prototype._finalOrDigest=function(e){var t=this.__final()||LS.alloc(0);return e&&(t=this._toString(t,e,!0)),t},Ts.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new FO(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r};var ud=Ts,KO=_4,qO=E4,HO=k4,OS=ud;function Ov(e){OS.call(this,"digest"),this._hash=e}On(Ov,OS),Ov.prototype._update=function(e){this._hash.update(e)},Ov.prototype._final=function(){return this._hash.digest()};var xm=function(e){return(e=e.toLowerCase())==="md5"?new KO:e==="rmd160"||e==="ripemd160"?new qO:new Ov(HO(e))},WO=On,Hf=In().Buffer,NS=ud,$O=Hf.alloc(128),F0=64;function Nv(e,t){NS.call(this,"digest"),typeof t=="string"&&(t=Hf.from(t)),this._alg=e,this._key=t,t.length>F0?t=e(t):t.length<F0&&(t=Hf.concat([t,$O],F0));for(var n=this._ipad=Hf.allocUnsafe(F0),r=this._opad=Hf.allocUnsafe(F0),o=0;o<F0;o++)n[o]=54^t[o],r[o]=92^t[o];this._hash=[n]}WO(Nv,NS),Nv.prototype._update=function(e){this._hash.push(e)},Nv.prototype._final=function(){var e=this._alg(Hf.concat(this._hash));return this._alg(Hf.concat([this._opad,e]))};var VO=_4,DS=function(e){return new VO().update(e).digest()},YO=On,GO=Nv,BS=ud,Am=In().Buffer,ZO=DS,P4=E4,L4=k4,QO=Am.alloc(128);function Rm(e,t){BS.call(this,"digest"),typeof t=="string"&&(t=Am.from(t));var n=e==="sha512"||e==="sha384"?128:64;this._alg=e,this._key=t,t.length>n?t=(e==="rmd160"?new P4:L4(e)).update(t).digest():t.length<n&&(t=Am.concat([t,QO],n));for(var r=this._ipad=Am.allocUnsafe(n),o=this._opad=Am.allocUnsafe(n),i=0;i<n;i++)r[i]=54^t[i],o[i]=92^t[i];this._hash=e==="rmd160"?new P4:L4(e),this._hash.update(r)}YO(Rm,BS),Rm.prototype._update=function(e){this._hash.update(e)},Rm.prototype._final=function(){var e=this._hash.digest();return(this._alg==="rmd160"?new P4:L4(this._alg)).update(this._opad).update(e).digest()};var Dv,jS=function(e,t){return(e=e.toLowerCase())==="rmd160"||e==="ripemd160"?new Rm("rmd160",t):e==="md5"?new GO(ZO,t):new Rm(e,t)},zS={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}},XO=zS,Bv={},JO=Math.pow(2,30)-1,US=function(e,t){if(typeof e!="number")throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if(typeof t!="number")throw new TypeError("Key length not a number");if(t<0||t>JO||t!=t)throw new TypeError("Bad key length")};En.process&&En.process.browser?Dv="utf-8":En.process&&En.process.version?Dv=parseInt(vr.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":Dv="utf-8";var FS=Dv,I4=In().Buffer,KS=function(e,t,n){if(I4.isBuffer(e))return e;if(typeof e=="string")return I4.from(e,t);if(ArrayBuffer.isView(e))return I4.from(e.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")},eN=DS,tN=E4,nN=k4,Wf=In().Buffer,rN=US,qS=FS,HS=KS,iN=Wf.alloc(128),jv={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function WS(e,t,n){var r=function(w){function S(T){return nN(w).update(T).digest()}function E(T){return new tN().update(T).digest()}return w==="rmd160"||w==="ripemd160"?E:w==="md5"?eN:S}(e),o=e==="sha512"||e==="sha384"?128:64;t.length>o?t=r(t):t.length<o&&(t=Wf.concat([t,iN],o));for(var i=Wf.allocUnsafe(o+jv[e]),c=Wf.allocUnsafe(o+jv[e]),g=0;g<o;g++)i[g]=54^t[g],c[g]=92^t[g];var _=Wf.allocUnsafe(o+n+4);i.copy(_,0,0,o),this.ipad1=_,this.ipad2=i,this.opad=c,this.alg=e,this.blocksize=o,this.hash=r,this.size=jv[e]}WS.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)};var O4,$S,VS=function(e,t,n,r,o){rN(n,r);var i=new WS(o=o||"sha1",e=HS(e,qS,"Password"),(t=HS(t,qS,"Salt")).length),c=Wf.allocUnsafe(r),g=Wf.allocUnsafe(t.length+4);t.copy(g,0,0,t.length);for(var _=0,w=jv[o],S=Math.ceil(r/w),E=1;E<=S;E++){g.writeUInt32BE(E,t.length);for(var T=i.run(g,i.ipad1),I=T,j=1;j<n;j++){I=i.run(I,i.ipad2);for(var H=0;H<w;H++)T[H]^=I[H]}T.copy(c,_),_+=w}return c},YS=In().Buffer,oN=US,GS=FS,ZS=VS,QS=KS,Tm=En.crypto&&En.crypto.subtle,aN={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},N4=[];function D4(){return $S||($S=En.process&&En.process.nextTick?En.process.nextTick:En.queueMicrotask?En.queueMicrotask:En.setImmediate?En.setImmediate:En.setTimeout)}function XS(e,t,n,r,o){return Tm.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(i){return Tm.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:o}},i,r<<3)}).then(function(i){return YS.from(i)})}Bv.pbkdf2=function(e,t,n,r,o,i){typeof o=="function"&&(i=o,o=void 0);var c=aN[(o=o||"sha1").toLowerCase()];if(c&&typeof En.Promise=="function"){if(oN(n,r),e=QS(e,GS,"Password"),t=QS(t,GS,"Salt"),typeof i!="function")throw new Error("No callback provided to pbkdf2");(function(g,_){g.then(function(w){D4()(function(){_(null,w)})},function(w){D4()(function(){_(w)})})})(function(g){if(En.process&&!En.process.browser||!Tm||!Tm.importKey||!Tm.deriveBits)return Promise.resolve(!1);if(N4[g]!==void 0)return N4[g];var _=XS(O4=O4||YS.alloc(8),O4,10,128,g).then(function(){return!0}).catch(function(){return!1});return N4[g]=_,_}(c).then(function(g){return g?XS(e,t,n,r,c):ZS(e,t,n,r,o)}),i)}else D4()(function(){var g;try{g=ZS(e,t,n,r,o)}catch(_){return i(_)}i(null,g)})},Bv.pbkdf2Sync=VS;var Ps={},K0={},$f={readUInt32BE:function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},writeUInt32BE:function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},ip:function(e,t,n,r){for(var o=0,i=0,c=6;c>=0;c-=2){for(var g=0;g<=24;g+=8)o<<=1,o|=t>>>g+c&1;for(g=0;g<=24;g+=8)o<<=1,o|=e>>>g+c&1}for(c=6;c>=0;c-=2){for(g=1;g<=25;g+=8)i<<=1,i|=t>>>g+c&1;for(g=1;g<=25;g+=8)i<<=1,i|=e>>>g+c&1}n[r+0]=o>>>0,n[r+1]=i>>>0},rip:function(e,t,n,r){for(var o=0,i=0,c=0;c<4;c++)for(var g=24;g>=0;g-=8)o<<=1,o|=t>>>g+c&1,o<<=1,o|=e>>>g+c&1;for(c=4;c<8;c++)for(g=24;g>=0;g-=8)i<<=1,i|=t>>>g+c&1,i<<=1,i|=e>>>g+c&1;n[r+0]=o>>>0,n[r+1]=i>>>0},pc1:function(e,t,n,r){for(var o=0,i=0,c=7;c>=5;c--){for(var g=0;g<=24;g+=8)o<<=1,o|=t>>g+c&1;for(g=0;g<=24;g+=8)o<<=1,o|=e>>g+c&1}for(g=0;g<=24;g+=8)o<<=1,o|=t>>g+c&1;for(c=1;c<=3;c++){for(g=0;g<=24;g+=8)i<<=1,i|=t>>g+c&1;for(g=0;g<=24;g+=8)i<<=1,i|=e>>g+c&1}for(g=0;g<=24;g+=8)i<<=1,i|=e>>g+c&1;n[r+0]=o>>>0,n[r+1]=i>>>0},r28shl:function(e,t){return e<<t&268435455|e>>>28-t}},zv=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];$f.pc2=function(e,t,n,r){for(var o=0,i=0,c=zv.length>>>1,g=0;g<c;g++)o<<=1,o|=e>>>zv[g]&1;for(g=c;g<zv.length;g++)i<<=1,i|=t>>>zv[g]&1;n[r+0]=o>>>0,n[r+1]=i>>>0},$f.expand=function(e,t,n){var r=0,o=0;r=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)r<<=6,r|=e>>>i&63;for(i=11;i>=3;i-=4)o|=e>>>i&63,o<<=6;o|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=o>>>0};var JS=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];$f.substitute=function(e,t){for(var n=0,r=0;r<4;r++)n<<=4,n|=JS[64*r+(e>>>18-6*r&63)];for(r=0;r<4;r++)n<<=4,n|=JS[256+64*r+(t>>>18-6*r&63)];return n>>>0};var eE=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];$f.permute=function(e){for(var t=0,n=0;n<eE.length;n++)t<<=1,t|=e>>>eE[n]&1;return t>>>0},$f.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var o=[],i=0;i<t;i+=n)o.push(r.slice(i,i+n));return o.join(" ")};var Ua=tE;function tE(e,t){if(!e)throw new Error(t||"Assertion failed")}tE.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var sN=Ua;function Fa(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=e.padding!==!1}var B4=Fa;Fa.prototype._init=function(){},Fa.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)},Fa.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},Fa.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},Fa.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,o=new Array(r*this.blockSize);this.bufferOff!==0&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(o,n)));for(var i=e.length-(e.length-t)%this.blockSize;t<i;t+=this.blockSize)this._update(e,t,o,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return o},Fa.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,o=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(o,n);return t+=this._buffer(e,t),o},Fa.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},Fa.prototype._pad=function(e,t){if(t===0)return!1;for(;t<e.length;)e[t++]=0;return!0},Fa.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},Fa.prototype._unpad=function(e){return e},Fa.prototype._finalDecrypt=function(){sN.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)};var nE=Ua,li=$f,rE=B4;function uN(){this.tmp=new Array(2),this.keys=null}function Du(e){rE.call(this,e);var t=new uN;this._desState=t,this.deriveKeys(t,e.key)}On(Du,rE);var iE=Du;Du.create=function(e){return new Du(e)};var lN=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];Du.prototype.deriveKeys=function(e,t){e.keys=new Array(32),nE.equal(t.length,this.blockSize,"Invalid key length");var n=li.readUInt32BE(t,0),r=li.readUInt32BE(t,4);li.pc1(n,r,e.tmp,0),n=e.tmp[0],r=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var i=lN[o>>>1];n=li.r28shl(n,i),r=li.r28shl(r,i),li.pc2(n,r,e.keys,o)}},Du.prototype._update=function(e,t,n,r){var o=this._desState,i=li.readUInt32BE(e,t),c=li.readUInt32BE(e,t+4);li.ip(i,c,o.tmp,0),i=o.tmp[0],c=o.tmp[1],this.type==="encrypt"?this._encrypt(o,i,c,o.tmp,0):this._decrypt(o,i,c,o.tmp,0),i=o.tmp[0],c=o.tmp[1],li.writeUInt32BE(n,i,r),li.writeUInt32BE(n,c,r+4)},Du.prototype._pad=function(e,t){if(this.padding===!1)return!1;for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},Du.prototype._unpad=function(e){if(this.padding===!1)return e;for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)nE.equal(e[n],t);return e.slice(0,e.length-t)},Du.prototype._encrypt=function(e,t,n,r,o){for(var i=t,c=n,g=0;g<e.keys.length;g+=2){var _=e.keys[g],w=e.keys[g+1];li.expand(c,e.tmp,0),_^=e.tmp[0],w^=e.tmp[1];var S=li.substitute(_,w),E=c;c=(i^li.permute(S))>>>0,i=E}li.rip(c,i,r,o)},Du.prototype._decrypt=function(e,t,n,r,o){for(var i=n,c=t,g=e.keys.length-2;g>=0;g-=2){var _=e.keys[g],w=e.keys[g+1];li.expand(i,e.tmp,0),_^=e.tmp[0],w^=e.tmp[1];var S=li.substitute(_,w),E=i;i=(c^li.permute(S))>>>0,c=E}li.rip(i,c,r,o)};var oE={},cN=Ua,dN=On,Uv={};function fN(e){cN.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}oE.instantiate=function(e){function t(i){e.call(this,i),this._cbcInit()}dN(t,e);for(var n=Object.keys(Uv),r=0;r<n.length;r++){var o=n[r];t.prototype[o]=Uv[o]}return t.create=function(i){return new t(i)},t},Uv._cbcInit=function(){var e=new fN(this.options.iv);this._cbcState=e},Uv._update=function(e,t,n,r){var o=this._cbcState,i=this.constructor.super_.prototype,c=o.iv;if(this.type==="encrypt"){for(var g=0;g<this.blockSize;g++)c[g]^=e[t+g];for(i._update.call(this,c,0,n,r),g=0;g<this.blockSize;g++)c[g]=n[r+g]}else{for(i._update.call(this,e,t,n,r),g=0;g<this.blockSize;g++)n[r+g]^=c[g];for(g=0;g<this.blockSize;g++)c[g]=e[t+g]}};var hN=Ua,aE=B4,ld=iE;function pN(e,t){hN.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),r=t.slice(8,16),o=t.slice(16,24);this.ciphers=e==="encrypt"?[ld.create({type:"encrypt",key:n}),ld.create({type:"decrypt",key:r}),ld.create({type:"encrypt",key:o})]:[ld.create({type:"decrypt",key:o}),ld.create({type:"encrypt",key:r}),ld.create({type:"decrypt",key:n})]}function Vf(e){aE.call(this,e);var t=new pN(this.type,this.options.key);this._edeState=t}On(Vf,aE);var mN=Vf;Vf.create=function(e){return new Vf(e)},Vf.prototype._update=function(e,t,n,r){var o=this._edeState;o.ciphers[0]._update(e,t,n,r),o.ciphers[1]._update(n,r,n,r),o.ciphers[2]._update(n,r,n,r)},Vf.prototype._pad=ld.prototype._pad,Vf.prototype._unpad=ld.prototype._unpad,K0.utils=$f,K0.Cipher=B4,K0.DES=iE,K0.CBC=oE,K0.EDE=mN;var sE=ud,$l=K0,gN=On,Yf=In().Buffer,Pm={"des-ede3-cbc":$l.CBC.instantiate($l.EDE),"des-ede3":$l.EDE,"des-ede-cbc":$l.CBC.instantiate($l.EDE),"des-ede":$l.EDE,"des-cbc":$l.CBC.instantiate($l.DES),"des-ecb":$l.DES};Pm.des=Pm["des-cbc"],Pm.des3=Pm["des-ede3-cbc"];var vN=Fv;function Fv(e){sE.call(this);var t,n=e.mode.toLowerCase(),r=Pm[n];t=e.decrypt?"decrypt":"encrypt";var o=e.key;Yf.isBuffer(o)||(o=Yf.from(o)),n!=="des-ede"&&n!=="des-ede-cbc"||(o=Yf.concat([o,o.slice(0,8)]));var i=e.iv;Yf.isBuffer(i)||(i=Yf.from(i)),this._des=r.create({key:o,iv:i,type:t})}gN(Fv,sE),Fv.prototype._update=function(e){return Yf.from(this._des.update(e))},Fv.prototype._final=function(){return Yf.from(this._des.final())};var ya={},j4={},bN={encrypt:function(e,t){return e._cipher.encryptBlock(t)},decrypt:function(e,t){return e._cipher.decryptBlock(t)}},z4={},Lm=function(e,t){for(var n=Math.min(e.length,t.length),r=new ze(n),o=0;o<n;++o)r[o]=e[o]^t[o];return r},uE=Lm;z4.encrypt=function(e,t){var n=uE(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},z4.decrypt=function(e,t){var n=e._prev;e._prev=t;var r=e._cipher.decryptBlock(t);return uE(r,n)};var lE={},Im=In().Buffer,yN=Lm;function cE(e,t,n){var r=t.length,o=yN(t,e._cache);return e._cache=e._cache.slice(r),e._prev=Im.concat([e._prev,n?t:o]),o}lE.encrypt=function(e,t,n){for(var r,o=Im.allocUnsafe(0);t.length;){if(e._cache.length===0&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=Im.allocUnsafe(0)),!(e._cache.length<=t.length)){o=Im.concat([o,cE(e,t,n)]);break}r=e._cache.length,o=Im.concat([o,cE(e,t.slice(0,r),n)]),t=t.slice(r)}return o};var dE={},U4=In().Buffer;function wN(e,t,n){var r=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=U4.concat([e._prev.slice(1),U4.from([n?t:r])]),r}dE.encrypt=function(e,t,n){for(var r=t.length,o=U4.allocUnsafe(r),i=-1;++i<r;)o[i]=wN(e,t[i],n);return o};var fE={},Kv=In().Buffer;function _N(e,t,n){for(var r,o,i=-1,c=0;++i<8;)r=t&1<<7-i?128:0,c+=(128&(o=e._cipher.encryptBlock(e._prev)[0]^r))>>i%8,e._prev=SN(e._prev,n?r:o);return c}function SN(e,t){var n=e.length,r=-1,o=Kv.allocUnsafe(e.length);for(e=Kv.concat([e,Kv.from([t])]);++r<n;)o[r]=e[r]<<1|e[r+1]>>7;return o}fE.encrypt=function(e,t,n){for(var r=t.length,o=Kv.allocUnsafe(r),i=-1;++i<r;)o[i]=_N(e,t[i],n);return o};var hE={},EN=Lm;function kN(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}hE.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=ze.concat([e._cache,kN(e)]);var n=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),EN(t,n)};var F4={},pE=function(e){for(var t,n=e.length;n--;){if((t=e.readUInt8(n))!==255){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}},MN=Lm,mE=In().Buffer,CN=pE;function xN(e){var t=e._cipher.encryptBlockRaw(e._prev);return CN(e._prev),t}F4.encrypt=function(e,t){var n=Math.ceil(t.length/16),r=e._cache.length;e._cache=mE.concat([e._cache,mE.allocUnsafe(16*n)]);for(var o=0;o<n;o++){var i=xN(e),c=r+16*o;e._cache.writeUInt32BE(i[0],c+0),e._cache.writeUInt32BE(i[1],c+4),e._cache.writeUInt32BE(i[2],c+8),e._cache.writeUInt32BE(i[3],c+12)}var g=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),MN(t,g)};var gE={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},AN={ECB:bN,CBC:z4,CFB:lE,CFB8:dE,CFB1:fE,OFB:hE,CTR:F4,GCM:F4},qv=gE;for(var vE in qv)qv[vE].module=AN[qv[vE].mode];var K4=qv,Om={},Hv=In().Buffer;function q4(e){Hv.isBuffer(e)||(e=Hv.from(e));for(var t=e.length/4|0,n=new Array(t),r=0;r<t;r++)n[r]=e.readUInt32BE(4*r);return n}function H4(e){for(;0<e.length;e++)e[0]=0}function bE(e,t,n,r,o){for(var i,c,g,_,w=n[0],S=n[1],E=n[2],T=n[3],I=e[0]^t[0],j=e[1]^t[1],H=e[2]^t[2],V=e[3]^t[3],ee=4,X=1;X<o;X++)i=w[I>>>24]^S[j>>>16&255]^E[H>>>8&255]^T[255&V]^t[ee++],c=w[j>>>24]^S[H>>>16&255]^E[V>>>8&255]^T[255&I]^t[ee++],g=w[H>>>24]^S[V>>>16&255]^E[I>>>8&255]^T[255&j]^t[ee++],_=w[V>>>24]^S[I>>>16&255]^E[j>>>8&255]^T[255&H]^t[ee++],I=i,j=c,H=g,V=_;return i=(r[I>>>24]<<24|r[j>>>16&255]<<16|r[H>>>8&255]<<8|r[255&V])^t[ee++],c=(r[j>>>24]<<24|r[H>>>16&255]<<16|r[V>>>8&255]<<8|r[255&I])^t[ee++],g=(r[H>>>24]<<24|r[V>>>16&255]<<16|r[I>>>8&255]<<8|r[255&j])^t[ee++],_=(r[V>>>24]<<24|r[I>>>16&255]<<16|r[j>>>8&255]<<8|r[255&H])^t[ee++],[i>>>=0,c>>>=0,g>>>=0,_>>>=0]}var RN=[0,1,2,4,8,16,32,64,128,27,54],ni=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],o=[[],[],[],[]],i=[[],[],[],[]],c=0,g=0,_=0;_<256;++_){var w=g^g<<1^g<<2^g<<3^g<<4;w=w>>>8^255&w^99,n[c]=w,r[w]=c;var S=e[c],E=e[S],T=e[E],I=257*e[w]^16843008*w;o[0][c]=I<<24|I>>>8,o[1][c]=I<<16|I>>>16,o[2][c]=I<<8|I>>>24,o[3][c]=I,I=16843009*T^65537*E^257*S^16843008*c,i[0][w]=I<<24|I>>>8,i[1][w]=I<<16|I>>>16,i[2][w]=I<<8|I>>>24,i[3][w]=I,c===0?c=g=1:(c=S^e[e[e[T^S]]],g^=e[e[g]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:o,INV_SUB_MIX:i}}();function Ka(e){this._key=q4(e),this._reset()}Ka.blockSize=16,Ka.keySize=32,Ka.prototype.blockSize=Ka.blockSize,Ka.prototype.keySize=Ka.keySize,Ka.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),o=[],i=0;i<t;i++)o[i]=e[i];for(i=t;i<r;i++){var c=o[i-1];i%t==0?(c=c<<8|c>>>24,c=ni.SBOX[c>>>24]<<24|ni.SBOX[c>>>16&255]<<16|ni.SBOX[c>>>8&255]<<8|ni.SBOX[255&c],c^=RN[i/t|0]<<24):t>6&&i%t==4&&(c=ni.SBOX[c>>>24]<<24|ni.SBOX[c>>>16&255]<<16|ni.SBOX[c>>>8&255]<<8|ni.SBOX[255&c]),o[i]=o[i-t]^c}for(var g=[],_=0;_<r;_++){var w=r-_,S=o[w-(_%4?0:4)];g[_]=_<4||w<=4?S:ni.INV_SUB_MIX[0][ni.SBOX[S>>>24]]^ni.INV_SUB_MIX[1][ni.SBOX[S>>>16&255]]^ni.INV_SUB_MIX[2][ni.SBOX[S>>>8&255]]^ni.INV_SUB_MIX[3][ni.SBOX[255&S]]}this._nRounds=n,this._keySchedule=o,this._invKeySchedule=g},Ka.prototype.encryptBlockRaw=function(e){return bE(e=q4(e),this._keySchedule,ni.SUB_MIX,ni.SBOX,this._nRounds)},Ka.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=Hv.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},Ka.prototype.decryptBlock=function(e){var t=(e=q4(e))[1];e[1]=e[3],e[3]=t;var n=bE(e,this._invKeySchedule,ni.INV_SUB_MIX,ni.INV_SBOX,this._nRounds),r=Hv.allocUnsafe(16);return r.writeUInt32BE(n[0],0),r.writeUInt32BE(n[3],4),r.writeUInt32BE(n[2],8),r.writeUInt32BE(n[1],12),r},Ka.prototype.scrub=function(){H4(this._keySchedule),H4(this._invKeySchedule),H4(this._key)},Om.AES=Ka;var q0=In().Buffer,TN=q0.alloc(16,0);function yE(e){var t=q0.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function Nm(e){this.h=e,this.state=q0.alloc(16,0),this.cache=q0.allocUnsafe(0)}Nm.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},Nm.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],o=[0,0,0,0],i=-1;++i<128;){for(this.state[~~(i/8)]&1<<7-i%8&&(o[0]^=r[0],o[1]^=r[1],o[2]^=r[2],o[3]^=r[3]),n=(1&r[3])!=0,t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=yE(o)},Nm.prototype.update=function(e){var t;for(this.cache=q0.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},Nm.prototype.final=function(e,t){return this.cache.length&&this.ghash(q0.concat([this.cache,TN],16)),this.ghash(yE([0,e,0,t])),this.state};var PN=Nm,LN=Om,$o=In().Buffer,wE=ud,_E=PN,IN=Lm,ON=pE;function Gf(e,t,n,r){wE.call(this);var o=$o.alloc(4,0);this._cipher=new LN.AES(t);var i=this._cipher.encryptBlock(o);this._ghash=new _E(i),n=function(c,g,_){if(g.length===12)return c._finID=$o.concat([g,$o.from([0,0,0,1])]),$o.concat([g,$o.from([0,0,0,2])]);var w=new _E(_),S=g.length,E=S%16;w.update(g),E&&(E=16-E,w.update($o.alloc(E,0))),w.update($o.alloc(8,0));var T=8*S,I=$o.alloc(8);I.writeUIntBE(T,0,8),w.update(I),c._finID=w.state;var j=$o.from(c._finID);return ON(j),j}(this,n,i),this._prev=$o.from(n),this._cache=$o.allocUnsafe(0),this._secCache=$o.allocUnsafe(0),this._decrypt=r,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}On(Gf,wE),Gf.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=$o.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},Gf.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=IN(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,n){var r=0;t.length!==n.length&&r++;for(var o=Math.min(t.length,n.length),i=0;i<o;++i)r+=t[i]^n[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},Gf.prototype.getAuthTag=function(){if(this._decrypt||!$o.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},Gf.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},Gf.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length};var SE=Gf,NN=Om,W4=In().Buffer,EE=ud;function Wv(e,t,n,r){EE.call(this),this._cipher=new NN.AES(t),this._prev=W4.from(n),this._cache=W4.allocUnsafe(0),this._secCache=W4.allocUnsafe(0),this._decrypt=r,this._mode=e}On(Wv,EE),Wv.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},Wv.prototype._final=function(){this._cipher.scrub()};var kE=Wv,Zf=In().Buffer,DN=_4,$v=function(e,t,n,r){if(Zf.isBuffer(e)||(e=Zf.from(e,"binary")),t&&(Zf.isBuffer(t)||(t=Zf.from(t,"binary")),t.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=n/8,i=Zf.alloc(o),c=Zf.alloc(r||0),g=Zf.alloc(0);o>0||r>0;){var _=new DN;_.update(g),_.update(e),t&&_.update(t),g=_.digest();var w=0;if(o>0){var S=i.length-o;w=Math.min(o,g.length),g.copy(i,S,0,w),o-=w}if(w<g.length&&r>0){var E=c.length-r,T=Math.min(r,g.length-w);g.copy(c,E,w,w+T),r-=T}}return g.fill(0),{key:i,iv:c}},ME=K4,BN=SE,Vl=In().Buffer,jN=kE,CE=ud,zN=Om,UN=$v;function Dm(e,t,n){CE.call(this),this._cache=new Vv,this._cipher=new zN.AES(t),this._prev=Vl.from(n),this._mode=e,this._autopadding=!0}On(Dm,CE),Dm.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return Vl.concat(r)};var FN=Vl.alloc(16,16);function Vv(){this.cache=Vl.allocUnsafe(0)}function xE(e,t,n){var r=ME[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");if(typeof t=="string"&&(t=Vl.from(t)),t.length!==r.key/8)throw new TypeError("invalid key length "+t.length);if(typeof n=="string"&&(n=Vl.from(n)),r.mode!=="GCM"&&n.length!==r.iv)throw new TypeError("invalid iv length "+n.length);return r.type==="stream"?new jN(r.module,t,n):r.type==="auth"?new BN(r.module,t,n):new Dm(r.module,t,n)}Dm.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(FN))throw this._cipher.scrub(),new Error("data not multiple of block length")},Dm.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},Vv.prototype.add=function(e){this.cache=Vl.concat([this.cache,e])},Vv.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},Vv.prototype.flush=function(){for(var e=16-this.cache.length,t=Vl.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return Vl.concat([this.cache,t])},j4.createCipheriv=xE,j4.createCipher=function(e,t){var n=ME[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=UN(t,!1,n.key,n.iv);return xE(e,r.key,r.iv)};var $4={},KN=SE,H0=In().Buffer,AE=K4,qN=kE,RE=ud,HN=Om,WN=$v;function Bm(e,t,n){RE.call(this),this._cache=new Yv,this._last=void 0,this._cipher=new HN.AES(t),this._prev=H0.from(n),this._mode=e,this._autopadding=!0}function Yv(){this.cache=H0.allocUnsafe(0)}function TE(e,t,n){var r=AE[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");if(typeof n=="string"&&(n=H0.from(n)),r.mode!=="GCM"&&n.length!==r.iv)throw new TypeError("invalid iv length "+n.length);if(typeof t=="string"&&(t=H0.from(t)),t.length!==r.key/8)throw new TypeError("invalid key length "+t.length);return r.type==="stream"?new qN(r.module,t,n,!0):r.type==="auth"?new KN(r.module,t,n,!0):new Bm(r.module,t,n)}On(Bm,RE),Bm.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return H0.concat(r)},Bm.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(t){var n=t[15];if(n<1||n>16)throw new Error("unable to decrypt data");for(var r=-1;++r<n;)if(t[r+(16-n)]!==n)throw new Error("unable to decrypt data");if(n!==16)return t.slice(0,16-n)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},Bm.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},Yv.prototype.add=function(e){this.cache=H0.concat([this.cache,e])},Yv.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},Yv.prototype.flush=function(){if(this.cache.length)return this.cache},$4.createDecipher=function(e,t){var n=AE[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=WN(t,!1,n.key,n.iv);return TE(e,r.key,r.iv)},$4.createDecipheriv=TE;var PE=j4,LE=$4,$N=gE;ya.createCipher=ya.Cipher=PE.createCipher,ya.createCipheriv=ya.Cipheriv=PE.createCipheriv,ya.createDecipher=ya.Decipher=LE.createDecipher,ya.createDecipheriv=ya.Decipheriv=LE.createDecipheriv,ya.listCiphers=ya.getCiphers=function(){return Object.keys($N)};var IE={};(function(e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}})(IE);var OE=vN,V4=ya,cd=K4,Yl=IE,NE=$v;function DE(e,t,n){if(e=e.toLowerCase(),cd[e])return V4.createCipheriv(e,t,n);if(Yl[e])return new OE({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function BE(e,t,n){if(e=e.toLowerCase(),cd[e])return V4.createDecipheriv(e,t,n);if(Yl[e])return new OE({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}Ps.createCipher=Ps.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),cd[e])n=cd[e].key,r=cd[e].iv;else{if(!Yl[e])throw new TypeError("invalid suite type");n=8*Yl[e].key,r=Yl[e].iv}var o=NE(t,!1,n,r);return DE(e,o.key,o.iv)},Ps.createCipheriv=Ps.Cipheriv=DE,Ps.createDecipher=Ps.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),cd[e])n=cd[e].key,r=cd[e].iv;else{if(!Yl[e])throw new TypeError("invalid suite type");n=8*Yl[e].key,r=Yl[e].iv}var o=NE(t,!1,n,r);return BE(e,o.key,o.iv)},Ps.createDecipheriv=Ps.Decipheriv=BE,Ps.listCiphers=Ps.getCiphers=function(){return Object.keys(Yl).concat(V4.getCiphers())};var Qf={},jE={exports:{}};(function(e){(function(t,n){function r(y,x){if(!y)throw new Error(x||"Assertion failed")}function o(y,x){y.super_=x;var d=function(){};d.prototype=x.prototype,y.prototype=new d,y.prototype.constructor=y}function i(y,x,d){if(i.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,y!==null&&(x!=="le"&&x!=="be"||(d=x,x=10),this._init(y||0,x||10,d||"be"))}var c;typeof t=="object"?t.exports=i:n.BN=i,i.BN=i,i.wordSize=26;try{c=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:xs.Buffer}catch{}function g(y,x){var d=y.charCodeAt(x);return d>=65&&d<=70?d-55:d>=97&&d<=102?d-87:d-48&15}function _(y,x,d){var p=g(y,d);return d-1>=x&&(p|=g(y,d-1)<<4),p}function w(y,x,d,p){for(var h=0,f=Math.min(y.length,d),l=x;l<f;l++){var b=y.charCodeAt(l)-48;h*=p,h+=b>=49?b-49+10:b>=17?b-17+10:b}return h}i.isBN=function(y){return y instanceof i||y!==null&&typeof y=="object"&&y.constructor.wordSize===i.wordSize&&Array.isArray(y.words)},i.max=function(y,x){return y.cmp(x)>0?y:x},i.min=function(y,x){return y.cmp(x)<0?y:x},i.prototype._init=function(y,x,d){if(typeof y=="number")return this._initNumber(y,x,d);if(typeof y=="object")return this._initArray(y,x,d);x==="hex"&&(x=16),r(x===(0|x)&&x>=2&&x<=36);var p=0;(y=y.toString().replace(/\s+/g,""))[0]==="-"&&(p++,this.negative=1),p<y.length&&(x===16?this._parseHex(y,p,d):(this._parseBase(y,x,p),d==="le"&&this._initArray(this.toArray(),x,d)))},i.prototype._initNumber=function(y,x,d){y<0&&(this.negative=1,y=-y),y<67108864?(this.words=[67108863&y],this.length=1):y<4503599627370496?(this.words=[67108863&y,y/67108864&67108863],this.length=2):(r(y<9007199254740992),this.words=[67108863&y,y/67108864&67108863,1],this.length=3),d==="le"&&this._initArray(this.toArray(),x,d)},i.prototype._initArray=function(y,x,d){if(r(typeof y.length=="number"),y.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(y.length/3),this.words=new Array(this.length);for(var p=0;p<this.length;p++)this.words[p]=0;var h,f,l=0;if(d==="be")for(p=y.length-1,h=0;p>=0;p-=3)f=y[p]|y[p-1]<<8|y[p-2]<<16,this.words[h]|=f<<l&67108863,this.words[h+1]=f>>>26-l&67108863,(l+=24)>=26&&(l-=26,h++);else if(d==="le")for(p=0,h=0;p<y.length;p+=3)f=y[p]|y[p+1]<<8|y[p+2]<<16,this.words[h]|=f<<l&67108863,this.words[h+1]=f>>>26-l&67108863,(l+=24)>=26&&(l-=26,h++);return this.strip()},i.prototype._parseHex=function(y,x,d){this.length=Math.ceil((y.length-x)/6),this.words=new Array(this.length);for(var p=0;p<this.length;p++)this.words[p]=0;var h,f=0,l=0;if(d==="be")for(p=y.length-1;p>=x;p-=2)h=_(y,x,p)<<f,this.words[l]|=67108863&h,f>=18?(f-=18,l+=1,this.words[l]|=h>>>26):f+=8;else for(p=(y.length-x)%2==0?x+1:x;p<y.length;p+=2)h=_(y,x,p)<<f,this.words[l]|=67108863&h,f>=18?(f-=18,l+=1,this.words[l]|=h>>>26):f+=8;this.strip()},i.prototype._parseBase=function(y,x,d){this.words=[0],this.length=1;for(var p=0,h=1;h<=67108863;h*=x)p++;p--,h=h/x|0;for(var f=y.length-d,l=f%p,b=Math.min(f,f-l)+d,C=0,R=d;R<b;R+=p)C=w(y,R,R+p,x),this.imuln(h),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(l!==0){var L=1;for(C=w(y,R,y.length,x),R=0;R<l;R++)L*=x;this.imuln(L),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},i.prototype.copy=function(y){y.words=new Array(this.length);for(var x=0;x<this.length;x++)y.words[x]=this.words[x];y.length=this.length,y.negative=this.negative,y.red=this.red},i.prototype.clone=function(){var y=new i(null);return this.copy(y),y},i.prototype._expand=function(y){for(;this.length<y;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var S=["","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"],E=[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],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function I(y,x,d){d.negative=x.negative^y.negative;var p=y.length+x.length|0;d.length=p,p=p-1|0;var h=0|y.words[0],f=0|x.words[0],l=h*f,b=67108863&l,C=l/67108864|0;d.words[0]=b;for(var R=1;R<p;R++){for(var L=C>>>26,B=67108863&C,K=Math.min(R,x.length-1),z=Math.max(0,R-y.length+1);z<=K;z++){var O=R-z|0;L+=(l=(h=0|y.words[O])*(f=0|x.words[z])+B)/67108864|0,B=67108863&l}d.words[R]=0|B,C=0|L}return C!==0?d.words[R]=0|C:d.length--,d.strip()}i.prototype.toString=function(y,x){var d;if(x=0|x||1,(y=y||10)===16||y==="hex"){d="";for(var p=0,h=0,f=0;f<this.length;f++){var l=this.words[f],b=(16777215&(l<<p|h)).toString(16);d=(h=l>>>24-p&16777215)!==0||f!==this.length-1?S[6-b.length]+b+d:b+d,(p+=2)>=26&&(p-=26,f--)}for(h!==0&&(d=h.toString(16)+d);d.length%x!=0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}if(y===(0|y)&&y>=2&&y<=36){var C=E[y],R=T[y];d="";var L=this.clone();for(L.negative=0;!L.isZero();){var B=L.modn(R).toString(y);d=(L=L.idivn(R)).isZero()?B+d:S[C-B.length]+B+d}for(this.isZero()&&(d="0"+d);d.length%x!=0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var y=this.words[0];return this.length===2?y+=67108864*this.words[1]:this.length===3&&this.words[2]===1?y+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-y:y},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(y,x){return r(c!==void 0),this.toArrayLike(c,y,x)},i.prototype.toArray=function(y,x){return this.toArrayLike(Array,y,x)},i.prototype.toArrayLike=function(y,x,d){var p=this.byteLength(),h=d||Math.max(1,p);r(p<=h,"byte array longer than desired length"),r(h>0,"Requested array length <= 0"),this.strip();var f,l,b=x==="le",C=new y(h),R=this.clone();if(b){for(l=0;!R.isZero();l++)f=R.andln(255),R.iushrn(8),C[l]=f;for(;l<h;l++)C[l]=0}else{for(l=0;l<h-p;l++)C[l]=0;for(l=0;!R.isZero();l++)f=R.andln(255),R.iushrn(8),C[h-l-1]=f}return C},Math.clz32?i.prototype._countBits=function(y){return 32-Math.clz32(y)}:i.prototype._countBits=function(y){var x=y,d=0;return x>=4096&&(d+=13,x>>>=13),x>=64&&(d+=7,x>>>=7),x>=8&&(d+=4,x>>>=4),x>=2&&(d+=2,x>>>=2),d+x},i.prototype._zeroBits=function(y){if(y===0)return 26;var x=y,d=0;return!(8191&x)&&(d+=13,x>>>=13),!(127&x)&&(d+=7,x>>>=7),!(15&x)&&(d+=4,x>>>=4),!(3&x)&&(d+=2,x>>>=2),!(1&x)&&d++,d},i.prototype.bitLength=function(){var y=this.words[this.length-1],x=this._countBits(y);return 26*(this.length-1)+x},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var y=0,x=0;x<this.length;x++){var d=this._zeroBits(this.words[x]);if(y+=d,d!==26)break}return y},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(y){return this.negative!==0?this.abs().inotn(y).iaddn(1):this.clone()},i.prototype.fromTwos=function(y){return this.testn(y-1)?this.notn(y).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(y){for(;this.length<y.length;)this.words[this.length++]=0;for(var x=0;x<y.length;x++)this.words[x]=this.words[x]|y.words[x];return this.strip()},i.prototype.ior=function(y){return r((this.negative|y.negative)==0),this.iuor(y)},i.prototype.or=function(y){return this.length>y.length?this.clone().ior(y):y.clone().ior(this)},i.prototype.uor=function(y){return this.length>y.length?this.clone().iuor(y):y.clone().iuor(this)},i.prototype.iuand=function(y){var x;x=this.length>y.length?y:this;for(var d=0;d<x.length;d++)this.words[d]=this.words[d]&y.words[d];return this.length=x.length,this.strip()},i.prototype.iand=function(y){return r((this.negative|y.negative)==0),this.iuand(y)},i.prototype.and=function(y){return this.length>y.length?this.clone().iand(y):y.clone().iand(this)},i.prototype.uand=function(y){return this.length>y.length?this.clone().iuand(y):y.clone().iuand(this)},i.prototype.iuxor=function(y){var x,d;this.length>y.length?(x=this,d=y):(x=y,d=this);for(var p=0;p<d.length;p++)this.words[p]=x.words[p]^d.words[p];if(this!==x)for(;p<x.length;p++)this.words[p]=x.words[p];return this.length=x.length,this.strip()},i.prototype.ixor=function(y){return r((this.negative|y.negative)==0),this.iuxor(y)},i.prototype.xor=function(y){return this.length>y.length?this.clone().ixor(y):y.clone().ixor(this)},i.prototype.uxor=function(y){return this.length>y.length?this.clone().iuxor(y):y.clone().iuxor(this)},i.prototype.inotn=function(y){r(typeof y=="number"&&y>=0);var x=0|Math.ceil(y/26),d=y%26;this._expand(x),d>0&&x--;for(var p=0;p<x;p++)this.words[p]=67108863&~this.words[p];return d>0&&(this.words[p]=~this.words[p]&67108863>>26-d),this.strip()},i.prototype.notn=function(y){return this.clone().inotn(y)},i.prototype.setn=function(y,x){r(typeof y=="number"&&y>=0);var d=y/26|0,p=y%26;return this._expand(d+1),this.words[d]=x?this.words[d]|1<<p:this.words[d]&~(1<<p),this.strip()},i.prototype.iadd=function(y){var x,d,p;if(this.negative!==0&&y.negative===0)return this.negative=0,x=this.isub(y),this.negative^=1,this._normSign();if(this.negative===0&&y.negative!==0)return y.negative=0,x=this.isub(y),y.negative=1,x._normSign();this.length>y.length?(d=this,p=y):(d=y,p=this);for(var h=0,f=0;f<p.length;f++)x=(0|d.words[f])+(0|p.words[f])+h,this.words[f]=67108863&x,h=x>>>26;for(;h!==0&&f<d.length;f++)x=(0|d.words[f])+h,this.words[f]=67108863&x,h=x>>>26;if(this.length=d.length,h!==0)this.words[this.length]=h,this.length++;else if(d!==this)for(;f<d.length;f++)this.words[f]=d.words[f];return this},i.prototype.add=function(y){var x;return y.negative!==0&&this.negative===0?(y.negative=0,x=this.sub(y),y.negative^=1,x):y.negative===0&&this.negative!==0?(this.negative=0,x=y.sub(this),this.negative=1,x):this.length>y.length?this.clone().iadd(y):y.clone().iadd(this)},i.prototype.isub=function(y){if(y.negative!==0){y.negative=0;var x=this.iadd(y);return y.negative=1,x._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(y),this.negative=1,this._normSign();var d,p,h=this.cmp(y);if(h===0)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(d=this,p=y):(d=y,p=this);for(var f=0,l=0;l<p.length;l++)f=(x=(0|d.words[l])-(0|p.words[l])+f)>>26,this.words[l]=67108863&x;for(;f!==0&&l<d.length;l++)f=(x=(0|d.words[l])+f)>>26,this.words[l]=67108863&x;if(f===0&&l<d.length&&d!==this)for(;l<d.length;l++)this.words[l]=d.words[l];return this.length=Math.max(this.length,l),d!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(y){return this.clone().isub(y)};var j=function(y,x,d){var p,h,f,l=y.words,b=x.words,C=d.words,R=0,L=0|l[0],B=8191&L,K=L>>>13,z=0|l[1],O=8191&z,D=z>>>13,q=0|l[2],Y=8191&q,Q=q>>>13,ae=0|l[3],re=8191&ae,we=ae>>>13,de=0|l[4],ie=8191&de,oe=de>>>13,fe=0|l[5],me=8191&fe,Le=fe>>>13,De=0|l[6],Ce=8191&De,Qe=De>>>13,tt=0|l[7],Fe=8191&tt,Mt=tt>>>13,rt=0|l[8],He=8191&rt,lt=rt>>>13,mt=0|l[9],ct=8191&mt,Rt=mt>>>13,_t=0|b[0],ut=8191&_t,xt=_t>>>13,Tt=0|b[1],at=8191&Tt,Ct=Tt>>>13,At=0|b[2],ht=8191&At,Qt=At>>>13,Kt=0|b[3],vt=8191&Kt,sn=Kt>>>13,$t=0|b[4],ft=8191&$t,Vt=$t>>>13,Ut=0|b[5],gt=8191&Ut,Gt=Ut>>>13,Ft=0|b[6],kt=8191&Ft,en=Ft>>>13,rn=0|b[7],bt=8191&rn,Xt=rn>>>13,Jt=0|b[8],wt=8191&Jt,jt=Jt>>>13,cn=0|b[9],St=8191&cn,fn=cn>>>13;d.negative=y.negative^x.negative,d.length=19;var Yt=(R+(p=Math.imul(B,ut))|0)+((8191&(h=(h=Math.imul(B,xt))+Math.imul(K,ut)|0))<<13)|0;R=((f=Math.imul(K,xt))+(h>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,p=Math.imul(O,ut),h=(h=Math.imul(O,xt))+Math.imul(D,ut)|0,f=Math.imul(D,xt);var tn=(R+(p=p+Math.imul(B,at)|0)|0)+((8191&(h=(h=h+Math.imul(B,Ct)|0)+Math.imul(K,at)|0))<<13)|0;R=((f=f+Math.imul(K,Ct)|0)+(h>>>13)|0)+(tn>>>26)|0,tn&=67108863,p=Math.imul(Y,ut),h=(h=Math.imul(Y,xt))+Math.imul(Q,ut)|0,f=Math.imul(Q,xt),p=p+Math.imul(O,at)|0,h=(h=h+Math.imul(O,Ct)|0)+Math.imul(D,at)|0,f=f+Math.imul(D,Ct)|0;var Nr=(R+(p=p+Math.imul(B,ht)|0)|0)+((8191&(h=(h=h+Math.imul(B,Qt)|0)+Math.imul(K,ht)|0))<<13)|0;R=((f=f+Math.imul(K,Qt)|0)+(h>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,p=Math.imul(re,ut),h=(h=Math.imul(re,xt))+Math.imul(we,ut)|0,f=Math.imul(we,xt),p=p+Math.imul(Y,at)|0,h=(h=h+Math.imul(Y,Ct)|0)+Math.imul(Q,at)|0,f=f+Math.imul(Q,Ct)|0,p=p+Math.imul(O,ht)|0,h=(h=h+Math.imul(O,Qt)|0)+Math.imul(D,ht)|0,f=f+Math.imul(D,Qt)|0;var Dr=(R+(p=p+Math.imul(B,vt)|0)|0)+((8191&(h=(h=h+Math.imul(B,sn)|0)+Math.imul(K,vt)|0))<<13)|0;R=((f=f+Math.imul(K,sn)|0)+(h>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,p=Math.imul(ie,ut),h=(h=Math.imul(ie,xt))+Math.imul(oe,ut)|0,f=Math.imul(oe,xt),p=p+Math.imul(re,at)|0,h=(h=h+Math.imul(re,Ct)|0)+Math.imul(we,at)|0,f=f+Math.imul(we,Ct)|0,p=p+Math.imul(Y,ht)|0,h=(h=h+Math.imul(Y,Qt)|0)+Math.imul(Q,ht)|0,f=f+Math.imul(Q,Qt)|0,p=p+Math.imul(O,vt)|0,h=(h=h+Math.imul(O,sn)|0)+Math.imul(D,vt)|0,f=f+Math.imul(D,sn)|0;var xr=(R+(p=p+Math.imul(B,ft)|0)|0)+((8191&(h=(h=h+Math.imul(B,Vt)|0)+Math.imul(K,ft)|0))<<13)|0;R=((f=f+Math.imul(K,Vt)|0)+(h>>>13)|0)+(xr>>>26)|0,xr&=67108863,p=Math.imul(me,ut),h=(h=Math.imul(me,xt))+Math.imul(Le,ut)|0,f=Math.imul(Le,xt),p=p+Math.imul(ie,at)|0,h=(h=h+Math.imul(ie,Ct)|0)+Math.imul(oe,at)|0,f=f+Math.imul(oe,Ct)|0,p=p+Math.imul(re,ht)|0,h=(h=h+Math.imul(re,Qt)|0)+Math.imul(we,ht)|0,f=f+Math.imul(we,Qt)|0,p=p+Math.imul(Y,vt)|0,h=(h=h+Math.imul(Y,sn)|0)+Math.imul(Q,vt)|0,f=f+Math.imul(Q,sn)|0,p=p+Math.imul(O,ft)|0,h=(h=h+Math.imul(O,Vt)|0)+Math.imul(D,ft)|0,f=f+Math.imul(D,Vt)|0;var yr=(R+(p=p+Math.imul(B,gt)|0)|0)+((8191&(h=(h=h+Math.imul(B,Gt)|0)+Math.imul(K,gt)|0))<<13)|0;R=((f=f+Math.imul(K,Gt)|0)+(h>>>13)|0)+(yr>>>26)|0,yr&=67108863,p=Math.imul(Ce,ut),h=(h=Math.imul(Ce,xt))+Math.imul(Qe,ut)|0,f=Math.imul(Qe,xt),p=p+Math.imul(me,at)|0,h=(h=h+Math.imul(me,Ct)|0)+Math.imul(Le,at)|0,f=f+Math.imul(Le,Ct)|0,p=p+Math.imul(ie,ht)|0,h=(h=h+Math.imul(ie,Qt)|0)+Math.imul(oe,ht)|0,f=f+Math.imul(oe,Qt)|0,p=p+Math.imul(re,vt)|0,h=(h=h+Math.imul(re,sn)|0)+Math.imul(we,vt)|0,f=f+Math.imul(we,sn)|0,p=p+Math.imul(Y,ft)|0,h=(h=h+Math.imul(Y,Vt)|0)+Math.imul(Q,ft)|0,f=f+Math.imul(Q,Vt)|0,p=p+Math.imul(O,gt)|0,h=(h=h+Math.imul(O,Gt)|0)+Math.imul(D,gt)|0,f=f+Math.imul(D,Gt)|0;var Kr=(R+(p=p+Math.imul(B,kt)|0)|0)+((8191&(h=(h=h+Math.imul(B,en)|0)+Math.imul(K,kt)|0))<<13)|0;R=((f=f+Math.imul(K,en)|0)+(h>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,p=Math.imul(Fe,ut),h=(h=Math.imul(Fe,xt))+Math.imul(Mt,ut)|0,f=Math.imul(Mt,xt),p=p+Math.imul(Ce,at)|0,h=(h=h+Math.imul(Ce,Ct)|0)+Math.imul(Qe,at)|0,f=f+Math.imul(Qe,Ct)|0,p=p+Math.imul(me,ht)|0,h=(h=h+Math.imul(me,Qt)|0)+Math.imul(Le,ht)|0,f=f+Math.imul(Le,Qt)|0,p=p+Math.imul(ie,vt)|0,h=(h=h+Math.imul(ie,sn)|0)+Math.imul(oe,vt)|0,f=f+Math.imul(oe,sn)|0,p=p+Math.imul(re,ft)|0,h=(h=h+Math.imul(re,Vt)|0)+Math.imul(we,ft)|0,f=f+Math.imul(we,Vt)|0,p=p+Math.imul(Y,gt)|0,h=(h=h+Math.imul(Y,Gt)|0)+Math.imul(Q,gt)|0,f=f+Math.imul(Q,Gt)|0,p=p+Math.imul(O,kt)|0,h=(h=h+Math.imul(O,en)|0)+Math.imul(D,kt)|0,f=f+Math.imul(D,en)|0;var Cn=(R+(p=p+Math.imul(B,bt)|0)|0)+((8191&(h=(h=h+Math.imul(B,Xt)|0)+Math.imul(K,bt)|0))<<13)|0;R=((f=f+Math.imul(K,Xt)|0)+(h>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,p=Math.imul(He,ut),h=(h=Math.imul(He,xt))+Math.imul(lt,ut)|0,f=Math.imul(lt,xt),p=p+Math.imul(Fe,at)|0,h=(h=h+Math.imul(Fe,Ct)|0)+Math.imul(Mt,at)|0,f=f+Math.imul(Mt,Ct)|0,p=p+Math.imul(Ce,ht)|0,h=(h=h+Math.imul(Ce,Qt)|0)+Math.imul(Qe,ht)|0,f=f+Math.imul(Qe,Qt)|0,p=p+Math.imul(me,vt)|0,h=(h=h+Math.imul(me,sn)|0)+Math.imul(Le,vt)|0,f=f+Math.imul(Le,sn)|0,p=p+Math.imul(ie,ft)|0,h=(h=h+Math.imul(ie,Vt)|0)+Math.imul(oe,ft)|0,f=f+Math.imul(oe,Vt)|0,p=p+Math.imul(re,gt)|0,h=(h=h+Math.imul(re,Gt)|0)+Math.imul(we,gt)|0,f=f+Math.imul(we,Gt)|0,p=p+Math.imul(Y,kt)|0,h=(h=h+Math.imul(Y,en)|0)+Math.imul(Q,kt)|0,f=f+Math.imul(Q,en)|0,p=p+Math.imul(O,bt)|0,h=(h=h+Math.imul(O,Xt)|0)+Math.imul(D,bt)|0,f=f+Math.imul(D,Xt)|0;var un=(R+(p=p+Math.imul(B,wt)|0)|0)+((8191&(h=(h=h+Math.imul(B,jt)|0)+Math.imul(K,wt)|0))<<13)|0;R=((f=f+Math.imul(K,jt)|0)+(h>>>13)|0)+(un>>>26)|0,un&=67108863,p=Math.imul(ct,ut),h=(h=Math.imul(ct,xt))+Math.imul(Rt,ut)|0,f=Math.imul(Rt,xt),p=p+Math.imul(He,at)|0,h=(h=h+Math.imul(He,Ct)|0)+Math.imul(lt,at)|0,f=f+Math.imul(lt,Ct)|0,p=p+Math.imul(Fe,ht)|0,h=(h=h+Math.imul(Fe,Qt)|0)+Math.imul(Mt,ht)|0,f=f+Math.imul(Mt,Qt)|0,p=p+Math.imul(Ce,vt)|0,h=(h=h+Math.imul(Ce,sn)|0)+Math.imul(Qe,vt)|0,f=f+Math.imul(Qe,sn)|0,p=p+Math.imul(me,ft)|0,h=(h=h+Math.imul(me,Vt)|0)+Math.imul(Le,ft)|0,f=f+Math.imul(Le,Vt)|0,p=p+Math.imul(ie,gt)|0,h=(h=h+Math.imul(ie,Gt)|0)+Math.imul(oe,gt)|0,f=f+Math.imul(oe,Gt)|0,p=p+Math.imul(re,kt)|0,h=(h=h+Math.imul(re,en)|0)+Math.imul(we,kt)|0,f=f+Math.imul(we,en)|0,p=p+Math.imul(Y,bt)|0,h=(h=h+Math.imul(Y,Xt)|0)+Math.imul(Q,bt)|0,f=f+Math.imul(Q,Xt)|0,p=p+Math.imul(O,wt)|0,h=(h=h+Math.imul(O,jt)|0)+Math.imul(D,wt)|0,f=f+Math.imul(D,jt)|0;var wr=(R+(p=p+Math.imul(B,St)|0)|0)+((8191&(h=(h=h+Math.imul(B,fn)|0)+Math.imul(K,St)|0))<<13)|0;R=((f=f+Math.imul(K,fn)|0)+(h>>>13)|0)+(wr>>>26)|0,wr&=67108863,p=Math.imul(ct,at),h=(h=Math.imul(ct,Ct))+Math.imul(Rt,at)|0,f=Math.imul(Rt,Ct),p=p+Math.imul(He,ht)|0,h=(h=h+Math.imul(He,Qt)|0)+Math.imul(lt,ht)|0,f=f+Math.imul(lt,Qt)|0,p=p+Math.imul(Fe,vt)|0,h=(h=h+Math.imul(Fe,sn)|0)+Math.imul(Mt,vt)|0,f=f+Math.imul(Mt,sn)|0,p=p+Math.imul(Ce,ft)|0,h=(h=h+Math.imul(Ce,Vt)|0)+Math.imul(Qe,ft)|0,f=f+Math.imul(Qe,Vt)|0,p=p+Math.imul(me,gt)|0,h=(h=h+Math.imul(me,Gt)|0)+Math.imul(Le,gt)|0,f=f+Math.imul(Le,Gt)|0,p=p+Math.imul(ie,kt)|0,h=(h=h+Math.imul(ie,en)|0)+Math.imul(oe,kt)|0,f=f+Math.imul(oe,en)|0,p=p+Math.imul(re,bt)|0,h=(h=h+Math.imul(re,Xt)|0)+Math.imul(we,bt)|0,f=f+Math.imul(we,Xt)|0,p=p+Math.imul(Y,wt)|0,h=(h=h+Math.imul(Y,jt)|0)+Math.imul(Q,wt)|0,f=f+Math.imul(Q,jt)|0;var Br=(R+(p=p+Math.imul(O,St)|0)|0)+((8191&(h=(h=h+Math.imul(O,fn)|0)+Math.imul(D,St)|0))<<13)|0;R=((f=f+Math.imul(D,fn)|0)+(h>>>13)|0)+(Br>>>26)|0,Br&=67108863,p=Math.imul(ct,ht),h=(h=Math.imul(ct,Qt))+Math.imul(Rt,ht)|0,f=Math.imul(Rt,Qt),p=p+Math.imul(He,vt)|0,h=(h=h+Math.imul(He,sn)|0)+Math.imul(lt,vt)|0,f=f+Math.imul(lt,sn)|0,p=p+Math.imul(Fe,ft)|0,h=(h=h+Math.imul(Fe,Vt)|0)+Math.imul(Mt,ft)|0,f=f+Math.imul(Mt,Vt)|0,p=p+Math.imul(Ce,gt)|0,h=(h=h+Math.imul(Ce,Gt)|0)+Math.imul(Qe,gt)|0,f=f+Math.imul(Qe,Gt)|0,p=p+Math.imul(me,kt)|0,h=(h=h+Math.imul(me,en)|0)+Math.imul(Le,kt)|0,f=f+Math.imul(Le,en)|0,p=p+Math.imul(ie,bt)|0,h=(h=h+Math.imul(ie,Xt)|0)+Math.imul(oe,bt)|0,f=f+Math.imul(oe,Xt)|0,p=p+Math.imul(re,wt)|0,h=(h=h+Math.imul(re,jt)|0)+Math.imul(we,wt)|0,f=f+Math.imul(we,jt)|0;var Ar=(R+(p=p+Math.imul(Y,St)|0)|0)+((8191&(h=(h=h+Math.imul(Y,fn)|0)+Math.imul(Q,St)|0))<<13)|0;R=((f=f+Math.imul(Q,fn)|0)+(h>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,p=Math.imul(ct,vt),h=(h=Math.imul(ct,sn))+Math.imul(Rt,vt)|0,f=Math.imul(Rt,sn),p=p+Math.imul(He,ft)|0,h=(h=h+Math.imul(He,Vt)|0)+Math.imul(lt,ft)|0,f=f+Math.imul(lt,Vt)|0,p=p+Math.imul(Fe,gt)|0,h=(h=h+Math.imul(Fe,Gt)|0)+Math.imul(Mt,gt)|0,f=f+Math.imul(Mt,Gt)|0,p=p+Math.imul(Ce,kt)|0,h=(h=h+Math.imul(Ce,en)|0)+Math.imul(Qe,kt)|0,f=f+Math.imul(Qe,en)|0,p=p+Math.imul(me,bt)|0,h=(h=h+Math.imul(me,Xt)|0)+Math.imul(Le,bt)|0,f=f+Math.imul(Le,Xt)|0,p=p+Math.imul(ie,wt)|0,h=(h=h+Math.imul(ie,jt)|0)+Math.imul(oe,wt)|0,f=f+Math.imul(oe,jt)|0;var jr=(R+(p=p+Math.imul(re,St)|0)|0)+((8191&(h=(h=h+Math.imul(re,fn)|0)+Math.imul(we,St)|0))<<13)|0;R=((f=f+Math.imul(we,fn)|0)+(h>>>13)|0)+(jr>>>26)|0,jr&=67108863,p=Math.imul(ct,ft),h=(h=Math.imul(ct,Vt))+Math.imul(Rt,ft)|0,f=Math.imul(Rt,Vt),p=p+Math.imul(He,gt)|0,h=(h=h+Math.imul(He,Gt)|0)+Math.imul(lt,gt)|0,f=f+Math.imul(lt,Gt)|0,p=p+Math.imul(Fe,kt)|0,h=(h=h+Math.imul(Fe,en)|0)+Math.imul(Mt,kt)|0,f=f+Math.imul(Mt,en)|0,p=p+Math.imul(Ce,bt)|0,h=(h=h+Math.imul(Ce,Xt)|0)+Math.imul(Qe,bt)|0,f=f+Math.imul(Qe,Xt)|0,p=p+Math.imul(me,wt)|0,h=(h=h+Math.imul(me,jt)|0)+Math.imul(Le,wt)|0,f=f+Math.imul(Le,jt)|0;var ur=(R+(p=p+Math.imul(ie,St)|0)|0)+((8191&(h=(h=h+Math.imul(ie,fn)|0)+Math.imul(oe,St)|0))<<13)|0;R=((f=f+Math.imul(oe,fn)|0)+(h>>>13)|0)+(ur>>>26)|0,ur&=67108863,p=Math.imul(ct,gt),h=(h=Math.imul(ct,Gt))+Math.imul(Rt,gt)|0,f=Math.imul(Rt,Gt),p=p+Math.imul(He,kt)|0,h=(h=h+Math.imul(He,en)|0)+Math.imul(lt,kt)|0,f=f+Math.imul(lt,en)|0,p=p+Math.imul(Fe,bt)|0,h=(h=h+Math.imul(Fe,Xt)|0)+Math.imul(Mt,bt)|0,f=f+Math.imul(Mt,Xt)|0,p=p+Math.imul(Ce,wt)|0,h=(h=h+Math.imul(Ce,jt)|0)+Math.imul(Qe,wt)|0,f=f+Math.imul(Qe,jt)|0;var lr=(R+(p=p+Math.imul(me,St)|0)|0)+((8191&(h=(h=h+Math.imul(me,fn)|0)+Math.imul(Le,St)|0))<<13)|0;R=((f=f+Math.imul(Le,fn)|0)+(h>>>13)|0)+(lr>>>26)|0,lr&=67108863,p=Math.imul(ct,kt),h=(h=Math.imul(ct,en))+Math.imul(Rt,kt)|0,f=Math.imul(Rt,en),p=p+Math.imul(He,bt)|0,h=(h=h+Math.imul(He,Xt)|0)+Math.imul(lt,bt)|0,f=f+Math.imul(lt,Xt)|0,p=p+Math.imul(Fe,wt)|0,h=(h=h+Math.imul(Fe,jt)|0)+Math.imul(Mt,wt)|0,f=f+Math.imul(Mt,jt)|0;var Bn=(R+(p=p+Math.imul(Ce,St)|0)|0)+((8191&(h=(h=h+Math.imul(Ce,fn)|0)+Math.imul(Qe,St)|0))<<13)|0;R=((f=f+Math.imul(Qe,fn)|0)+(h>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,p=Math.imul(ct,bt),h=(h=Math.imul(ct,Xt))+Math.imul(Rt,bt)|0,f=Math.imul(Rt,Xt),p=p+Math.imul(He,wt)|0,h=(h=h+Math.imul(He,jt)|0)+Math.imul(lt,wt)|0,f=f+Math.imul(lt,jt)|0;var Zn=(R+(p=p+Math.imul(Fe,St)|0)|0)+((8191&(h=(h=h+Math.imul(Fe,fn)|0)+Math.imul(Mt,St)|0))<<13)|0;R=((f=f+Math.imul(Mt,fn)|0)+(h>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,p=Math.imul(ct,wt),h=(h=Math.imul(ct,jt))+Math.imul(Rt,wt)|0,f=Math.imul(Rt,jt);var Rr=(R+(p=p+Math.imul(He,St)|0)|0)+((8191&(h=(h=h+Math.imul(He,fn)|0)+Math.imul(lt,St)|0))<<13)|0;R=((f=f+Math.imul(lt,fn)|0)+(h>>>13)|0)+(Rr>>>26)|0,Rr&=67108863;var Ir=(R+(p=Math.imul(ct,St))|0)+((8191&(h=(h=Math.imul(ct,fn))+Math.imul(Rt,St)|0))<<13)|0;return R=((f=Math.imul(Rt,fn))+(h>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,C[0]=Yt,C[1]=tn,C[2]=Nr,C[3]=Dr,C[4]=xr,C[5]=yr,C[6]=Kr,C[7]=Cn,C[8]=un,C[9]=wr,C[10]=Br,C[11]=Ar,C[12]=jr,C[13]=ur,C[14]=lr,C[15]=Bn,C[16]=Zn,C[17]=Rr,C[18]=Ir,R!==0&&(C[19]=R,d.length++),d};function H(y,x,d){return new V().mulp(y,x,d)}function V(y,x){this.x=y,this.y=x}Math.imul||(j=I),i.prototype.mulTo=function(y,x){var d,p=this.length+y.length;return d=this.length===10&&y.length===10?j(this,y,x):p<63?I(this,y,x):p<1024?function(h,f,l){l.negative=f.negative^h.negative,l.length=h.length+f.length;for(var b=0,C=0,R=0;R<l.length-1;R++){var L=C;C=0;for(var B=67108863&b,K=Math.min(R,f.length-1),z=Math.max(0,R-h.length+1);z<=K;z++){var O=R-z,D=(0|h.words[O])*(0|f.words[z]),q=67108863&D;B=67108863&(q=q+B|0),C+=(L=(L=L+(D/67108864|0)|0)+(q>>>26)|0)>>>26,L&=67108863}l.words[R]=B,b=L,L=C}return b!==0?l.words[R]=b:l.length--,l.strip()}(this,y,x):H(this,y,x),d},V.prototype.makeRBT=function(y){for(var x=new Array(y),d=i.prototype._countBits(y)-1,p=0;p<y;p++)x[p]=this.revBin(p,d,y);return x},V.prototype.revBin=function(y,x,d){if(y===0||y===d-1)return y;for(var p=0,h=0;h<x;h++)p|=(1&y)<<x-h-1,y>>=1;return p},V.prototype.permute=function(y,x,d,p,h,f){for(var l=0;l<f;l++)p[l]=x[y[l]],h[l]=d[y[l]]},V.prototype.transform=function(y,x,d,p,h,f){this.permute(f,y,x,d,p,h);for(var l=1;l<h;l<<=1)for(var b=l<<1,C=Math.cos(2*Math.PI/b),R=Math.sin(2*Math.PI/b),L=0;L<h;L+=b)for(var B=C,K=R,z=0;z<l;z++){var O=d[L+z],D=p[L+z],q=d[L+z+l],Y=p[L+z+l],Q=B*q-K*Y;Y=B*Y+K*q,q=Q,d[L+z]=O+q,p[L+z]=D+Y,d[L+z+l]=O-q,p[L+z+l]=D-Y,z!==b&&(Q=C*B-R*K,K=C*K+R*B,B=Q)}},V.prototype.guessLen13b=function(y,x){var d=1|Math.max(x,y),p=1&d,h=0;for(d=d/2|0;d;d>>>=1)h++;return 1<<h+1+p},V.prototype.conjugate=function(y,x,d){if(!(d<=1))for(var p=0;p<d/2;p++){var h=y[p];y[p]=y[d-p-1],y[d-p-1]=h,h=x[p],x[p]=-x[d-p-1],x[d-p-1]=-h}},V.prototype.normalize13b=function(y,x){for(var d=0,p=0;p<x/2;p++){var h=8192*Math.round(y[2*p+1]/x)+Math.round(y[2*p]/x)+d;y[p]=67108863&h,d=h<67108864?0:h/67108864|0}return y},V.prototype.convert13b=function(y,x,d,p){for(var h=0,f=0;f<x;f++)h+=0|y[f],d[2*f]=8191&h,h>>>=13,d[2*f+1]=8191&h,h>>>=13;for(f=2*x;f<p;++f)d[f]=0;r(h===0),r((-8192&h)==0)},V.prototype.stub=function(y){for(var x=new Array(y),d=0;d<y;d++)x[d]=0;return x},V.prototype.mulp=function(y,x,d){var p=2*this.guessLen13b(y.length,x.length),h=this.makeRBT(p),f=this.stub(p),l=new Array(p),b=new Array(p),C=new Array(p),R=new Array(p),L=new Array(p),B=new Array(p),K=d.words;K.length=p,this.convert13b(y.words,y.length,l,p),this.convert13b(x.words,x.length,R,p),this.transform(l,f,b,C,p,h),this.transform(R,f,L,B,p,h);for(var z=0;z<p;z++){var O=b[z]*L[z]-C[z]*B[z];C[z]=b[z]*B[z]+C[z]*L[z],b[z]=O}return this.conjugate(b,C,p),this.transform(b,C,K,f,p,h),this.conjugate(K,f,p),this.normalize13b(K,p),d.negative=y.negative^x.negative,d.length=y.length+x.length,d.strip()},i.prototype.mul=function(y){var x=new i(null);return x.words=new Array(this.length+y.length),this.mulTo(y,x)},i.prototype.mulf=function(y){var x=new i(null);return x.words=new Array(this.length+y.length),H(this,y,x)},i.prototype.imul=function(y){return this.clone().mulTo(y,this)},i.prototype.imuln=function(y){r(typeof y=="number"),r(y<67108864);for(var x=0,d=0;d<this.length;d++){var p=(0|this.words[d])*y,h=(67108863&p)+(67108863&x);x>>=26,x+=p/67108864|0,x+=h>>>26,this.words[d]=67108863&h}return x!==0&&(this.words[d]=x,this.length++),this},i.prototype.muln=function(y){return this.clone().imuln(y)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(y){var x=function(f){for(var l=new Array(f.bitLength()),b=0;b<l.length;b++){var C=b/26|0,R=b%26;l[b]=(f.words[C]&1<<R)>>>R}return l}(y);if(x.length===0)return new i(1);for(var d=this,p=0;p<x.length&&x[p]===0;p++,d=d.sqr());if(++p<x.length)for(var h=d.sqr();p<x.length;p++,h=h.sqr())x[p]!==0&&(d=d.mul(h));return d},i.prototype.iushln=function(y){r(typeof y=="number"&&y>=0);var x,d=y%26,p=(y-d)/26,h=67108863>>>26-d<<26-d;if(d!==0){var f=0;for(x=0;x<this.length;x++){var l=this.words[x]&h,b=(0|this.words[x])-l<<d;this.words[x]=b|f,f=l>>>26-d}f&&(this.words[x]=f,this.length++)}if(p!==0){for(x=this.length-1;x>=0;x--)this.words[x+p]=this.words[x];for(x=0;x<p;x++)this.words[x]=0;this.length+=p}return this.strip()},i.prototype.ishln=function(y){return r(this.negative===0),this.iushln(y)},i.prototype.iushrn=function(y,x,d){var p;r(typeof y=="number"&&y>=0),p=x?(x-x%26)/26:0;var h=y%26,f=Math.min((y-h)/26,this.length),l=67108863^67108863>>>h<<h,b=d;if(p-=f,p=Math.max(0,p),b){for(var C=0;C<f;C++)b.words[C]=this.words[C];b.length=f}if(f!==0)if(this.length>f)for(this.length-=f,C=0;C<this.length;C++)this.words[C]=this.words[C+f];else this.words[0]=0,this.length=1;var R=0;for(C=this.length-1;C>=0&&(R!==0||C>=p);C--){var L=0|this.words[C];this.words[C]=R<<26-h|L>>>h,R=L&l}return b&&R!==0&&(b.words[b.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(y,x,d){return r(this.negative===0),this.iushrn(y,x,d)},i.prototype.shln=function(y){return this.clone().ishln(y)},i.prototype.ushln=function(y){return this.clone().iushln(y)},i.prototype.shrn=function(y){return this.clone().ishrn(y)},i.prototype.ushrn=function(y){return this.clone().iushrn(y)},i.prototype.testn=function(y){r(typeof y=="number"&&y>=0);var x=y%26,d=(y-x)/26,p=1<<x;return!(this.length<=d)&&!!(this.words[d]&p)},i.prototype.imaskn=function(y){r(typeof y=="number"&&y>=0);var x=y%26,d=(y-x)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=d)return this;if(x!==0&&d++,this.length=Math.min(d,this.length),x!==0){var p=67108863^67108863>>>x<<x;this.words[this.length-1]&=p}return this.strip()},i.prototype.maskn=function(y){return this.clone().imaskn(y)},i.prototype.iaddn=function(y){return r(typeof y=="number"),r(y<67108864),y<0?this.isubn(-y):this.negative!==0?this.length===1&&(0|this.words[0])<y?(this.words[0]=y-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(y),this.negative=1,this):this._iaddn(y)},i.prototype._iaddn=function(y){this.words[0]+=y;for(var x=0;x<this.length&&this.words[x]>=67108864;x++)this.words[x]-=67108864,x===this.length-1?this.words[x+1]=1:this.words[x+1]++;return this.length=Math.max(this.length,x+1),this},i.prototype.isubn=function(y){if(r(typeof y=="number"),r(y<67108864),y<0)return this.iaddn(-y);if(this.negative!==0)return this.negative=0,this.iaddn(y),this.negative=1,this;if(this.words[0]-=y,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var x=0;x<this.length&&this.words[x]<0;x++)this.words[x]+=67108864,this.words[x+1]-=1;return this.strip()},i.prototype.addn=function(y){return this.clone().iaddn(y)},i.prototype.subn=function(y){return this.clone().isubn(y)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(y,x,d){var p,h,f=y.length+d;this._expand(f);var l=0;for(p=0;p<y.length;p++){h=(0|this.words[p+d])+l;var b=(0|y.words[p])*x;l=((h-=67108863&b)>>26)-(b/67108864|0),this.words[p+d]=67108863&h}for(;p<this.length-d;p++)l=(h=(0|this.words[p+d])+l)>>26,this.words[p+d]=67108863&h;if(l===0)return this.strip();for(r(l===-1),l=0,p=0;p<this.length;p++)l=(h=-(0|this.words[p])+l)>>26,this.words[p]=67108863&h;return this.negative=1,this.strip()},i.prototype._wordDiv=function(y,x){var d=(this.length,y.length),p=this.clone(),h=y,f=0|h.words[h.length-1];(d=26-this._countBits(f))!==0&&(h=h.ushln(d),p.iushln(d),f=0|h.words[h.length-1]);var l,b=p.length-h.length;if(x!=="mod"){(l=new i(null)).length=b+1,l.words=new Array(l.length);for(var C=0;C<l.length;C++)l.words[C]=0}var R=p.clone()._ishlnsubmul(h,1,b);R.negative===0&&(p=R,l&&(l.words[b]=1));for(var L=b-1;L>=0;L--){var B=67108864*(0|p.words[h.length+L])+(0|p.words[h.length+L-1]);for(B=Math.min(B/f|0,67108863),p._ishlnsubmul(h,B,L);p.negative!==0;)B--,p.negative=0,p._ishlnsubmul(h,1,L),p.isZero()||(p.negative^=1);l&&(l.words[L]=B)}return l&&l.strip(),p.strip(),x!=="div"&&d!==0&&p.iushrn(d),{div:l||null,mod:p}},i.prototype.divmod=function(y,x,d){return r(!y.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:this.negative!==0&&y.negative===0?(f=this.neg().divmod(y,x),x!=="mod"&&(p=f.div.neg()),x!=="div"&&(h=f.mod.neg(),d&&h.negative!==0&&h.iadd(y)),{div:p,mod:h}):this.negative===0&&y.negative!==0?(f=this.divmod(y.neg(),x),x!=="mod"&&(p=f.div.neg()),{div:p,mod:f.mod}):this.negative&y.negative?(f=this.neg().divmod(y.neg(),x),x!=="div"&&(h=f.mod.neg(),d&&h.negative!==0&&h.isub(y)),{div:f.div,mod:h}):y.length>this.length||this.cmp(y)<0?{div:new i(0),mod:this}:y.length===1?x==="div"?{div:this.divn(y.words[0]),mod:null}:x==="mod"?{div:null,mod:new i(this.modn(y.words[0]))}:{div:this.divn(y.words[0]),mod:new i(this.modn(y.words[0]))}:this._wordDiv(y,x);var p,h,f},i.prototype.div=function(y){return this.divmod(y,"div",!1).div},i.prototype.mod=function(y){return this.divmod(y,"mod",!1).mod},i.prototype.umod=function(y){return this.divmod(y,"mod",!0).mod},i.prototype.divRound=function(y){var x=this.divmod(y);if(x.mod.isZero())return x.div;var d=x.div.negative!==0?x.mod.isub(y):x.mod,p=y.ushrn(1),h=y.andln(1),f=d.cmp(p);return f<0||h===1&&f===0?x.div:x.div.negative!==0?x.div.isubn(1):x.div.iaddn(1)},i.prototype.modn=function(y){r(y<=67108863);for(var x=(1<<26)%y,d=0,p=this.length-1;p>=0;p--)d=(x*d+(0|this.words[p]))%y;return d},i.prototype.idivn=function(y){r(y<=67108863);for(var x=0,d=this.length-1;d>=0;d--){var p=(0|this.words[d])+67108864*x;this.words[d]=p/y|0,x=p%y}return this.strip()},i.prototype.divn=function(y){return this.clone().idivn(y)},i.prototype.egcd=function(y){r(y.negative===0),r(!y.isZero());var x=this,d=y.clone();x=x.negative!==0?x.umod(y):x.clone();for(var p=new i(1),h=new i(0),f=new i(0),l=new i(1),b=0;x.isEven()&&d.isEven();)x.iushrn(1),d.iushrn(1),++b;for(var C=d.clone(),R=x.clone();!x.isZero();){for(var L=0,B=1;!(x.words[0]&B)&&L<26;++L,B<<=1);if(L>0)for(x.iushrn(L);L-- >0;)(p.isOdd()||h.isOdd())&&(p.iadd(C),h.isub(R)),p.iushrn(1),h.iushrn(1);for(var K=0,z=1;!(d.words[0]&z)&&K<26;++K,z<<=1);if(K>0)for(d.iushrn(K);K-- >0;)(f.isOdd()||l.isOdd())&&(f.iadd(C),l.isub(R)),f.iushrn(1),l.iushrn(1);x.cmp(d)>=0?(x.isub(d),p.isub(f),h.isub(l)):(d.isub(x),f.isub(p),l.isub(h))}return{a:f,b:l,gcd:d.iushln(b)}},i.prototype._invmp=function(y){r(y.negative===0),r(!y.isZero());var x=this,d=y.clone();x=x.negative!==0?x.umod(y):x.clone();for(var p,h=new i(1),f=new i(0),l=d.clone();x.cmpn(1)>0&&d.cmpn(1)>0;){for(var b=0,C=1;!(x.words[0]&C)&&b<26;++b,C<<=1);if(b>0)for(x.iushrn(b);b-- >0;)h.isOdd()&&h.iadd(l),h.iushrn(1);for(var R=0,L=1;!(d.words[0]&L)&&R<26;++R,L<<=1);if(R>0)for(d.iushrn(R);R-- >0;)f.isOdd()&&f.iadd(l),f.iushrn(1);x.cmp(d)>=0?(x.isub(d),h.isub(f)):(d.isub(x),f.isub(h))}return(p=x.cmpn(1)===0?h:f).cmpn(0)<0&&p.iadd(y),p},i.prototype.gcd=function(y){if(this.isZero())return y.abs();if(y.isZero())return this.abs();var x=this.clone(),d=y.clone();x.negative=0,d.negative=0;for(var p=0;x.isEven()&&d.isEven();p++)x.iushrn(1),d.iushrn(1);for(;;){for(;x.isEven();)x.iushrn(1);for(;d.isEven();)d.iushrn(1);var h=x.cmp(d);if(h<0){var f=x;x=d,d=f}else if(h===0||d.cmpn(1)===0)break;x.isub(d)}return d.iushln(p)},i.prototype.invm=function(y){return this.egcd(y).a.umod(y)},i.prototype.isEven=function(){return(1&this.words[0])==0},i.prototype.isOdd=function(){return(1&this.words[0])==1},i.prototype.andln=function(y){return this.words[0]&y},i.prototype.bincn=function(y){r(typeof y=="number");var x=y%26,d=(y-x)/26,p=1<<x;if(this.length<=d)return this._expand(d+1),this.words[d]|=p,this;for(var h=p,f=d;h!==0&&f<this.length;f++){var l=0|this.words[f];h=(l+=h)>>>26,l&=67108863,this.words[f]=l}return h!==0&&(this.words[f]=h,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(y){var x,d=y<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;if(this.strip(),this.length>1)x=1;else{d&&(y=-y),r(y<=67108863,"Number is too big");var p=0|this.words[0];x=p===y?0:p<y?-1:1}return this.negative!==0?0|-x:x},i.prototype.cmp=function(y){if(this.negative!==0&&y.negative===0)return-1;if(this.negative===0&&y.negative!==0)return 1;var x=this.ucmp(y);return this.negative!==0?0|-x:x},i.prototype.ucmp=function(y){if(this.length>y.length)return 1;if(this.length<y.length)return-1;for(var x=0,d=this.length-1;d>=0;d--){var p=0|this.words[d],h=0|y.words[d];if(p!==h){p<h?x=-1:p>h&&(x=1);break}}return x},i.prototype.gtn=function(y){return this.cmpn(y)===1},i.prototype.gt=function(y){return this.cmp(y)===1},i.prototype.gten=function(y){return this.cmpn(y)>=0},i.prototype.gte=function(y){return this.cmp(y)>=0},i.prototype.ltn=function(y){return this.cmpn(y)===-1},i.prototype.lt=function(y){return this.cmp(y)===-1},i.prototype.lten=function(y){return this.cmpn(y)<=0},i.prototype.lte=function(y){return this.cmp(y)<=0},i.prototype.eqn=function(y){return this.cmpn(y)===0},i.prototype.eq=function(y){return this.cmp(y)===0},i.red=function(y){return new ye(y)},i.prototype.toRed=function(y){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),y.convertTo(this)._forceRed(y)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(y){return this.red=y,this},i.prototype.forceRed=function(y){return r(!this.red,"Already a number in reduction context"),this._forceRed(y)},i.prototype.redAdd=function(y){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,y)},i.prototype.redIAdd=function(y){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,y)},i.prototype.redSub=function(y){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,y)},i.prototype.redISub=function(y){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,y)},i.prototype.redShl=function(y){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,y)},i.prototype.redMul=function(y){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,y),this.red.mul(this,y)},i.prototype.redIMul=function(y){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,y),this.red.imul(this,y)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(y){return r(this.red&&!y.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,y)};var ee={k256:null,p224:null,p192:null,p25519:null};function X(y,x){this.name=y,this.p=new i(x,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ue(){X.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function pe(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function Me(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ye(y){if(typeof y=="string"){var x=i._prime(y);this.m=x.p,this.prime=x}else r(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function Te(y){ye.call(this,y),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}X.prototype._tmp=function(){var y=new i(null);return y.words=new Array(Math.ceil(this.n/13)),y},X.prototype.ireduce=function(y){var x,d=y;do this.split(d,this.tmp),x=(d=(d=this.imulK(d)).iadd(this.tmp)).bitLength();while(x>this.n);var p=x<this.n?-1:d.ucmp(this.p);return p===0?(d.words[0]=0,d.length=1):p>0?d.isub(this.p):d.strip!==void 0?d.strip():d._strip(),d},X.prototype.split=function(y,x){y.iushrn(this.n,0,x)},X.prototype.imulK=function(y){return y.imul(this.k)},o(ue,X),ue.prototype.split=function(y,x){for(var d=4194303,p=Math.min(y.length,9),h=0;h<p;h++)x.words[h]=y.words[h];if(x.length=p,y.length<=9)return y.words[0]=0,void(y.length=1);var f=y.words[9];for(x.words[x.length++]=f&d,h=10;h<y.length;h++){var l=0|y.words[h];y.words[h-10]=(l&d)<<4|f>>>22,f=l}f>>>=22,y.words[h-10]=f,f===0&&y.length>10?y.length-=10:y.length-=9},ue.prototype.imulK=function(y){y.words[y.length]=0,y.words[y.length+1]=0,y.length+=2;for(var x=0,d=0;d<y.length;d++){var p=0|y.words[d];x+=977*p,y.words[d]=67108863&x,x=64*p+(x/67108864|0)}return y.words[y.length-1]===0&&(y.length--,y.words[y.length-1]===0&&y.length--),y},o(le,X),o(pe,X),o(Me,X),Me.prototype.imulK=function(y){for(var x=0,d=0;d<y.length;d++){var p=19*(0|y.words[d])+x,h=67108863&p;p>>>=26,y.words[d]=h,x=p}return x!==0&&(y.words[y.length++]=x),y},i._prime=function(y){if(ee[y])return ee[y];var x;if(y==="k256")x=new ue;else if(y==="p224")x=new le;else if(y==="p192")x=new pe;else{if(y!=="p25519")throw new Error("Unknown prime "+y);x=new Me}return ee[y]=x,x},ye.prototype._verify1=function(y){r(y.negative===0,"red works only with positives"),r(y.red,"red works only with red numbers")},ye.prototype._verify2=function(y,x){r((y.negative|x.negative)==0,"red works only with positives"),r(y.red&&y.red===x.red,"red works only with red numbers")},ye.prototype.imod=function(y){return this.prime?this.prime.ireduce(y)._forceRed(this):y.umod(this.m)._forceRed(this)},ye.prototype.neg=function(y){return y.isZero()?y.clone():this.m.sub(y)._forceRed(this)},ye.prototype.add=function(y,x){this._verify2(y,x);var d=y.add(x);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},ye.prototype.iadd=function(y,x){this._verify2(y,x);var d=y.iadd(x);return d.cmp(this.m)>=0&&d.isub(this.m),d},ye.prototype.sub=function(y,x){this._verify2(y,x);var d=y.sub(x);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},ye.prototype.isub=function(y,x){this._verify2(y,x);var d=y.isub(x);return d.cmpn(0)<0&&d.iadd(this.m),d},ye.prototype.shl=function(y,x){return this._verify1(y),this.imod(y.ushln(x))},ye.prototype.imul=function(y,x){return this._verify2(y,x),this.imod(y.imul(x))},ye.prototype.mul=function(y,x){return this._verify2(y,x),this.imod(y.mul(x))},ye.prototype.isqr=function(y){return this.imul(y,y.clone())},ye.prototype.sqr=function(y){return this.mul(y,y)},ye.prototype.sqrt=function(y){if(y.isZero())return y.clone();var x=this.m.andln(3);if(r(x%2==1),x===3){var d=this.m.add(new i(1)).iushrn(2);return this.pow(y,d)}for(var p=this.m.subn(1),h=0;!p.isZero()&&p.andln(1)===0;)h++,p.iushrn(1);r(!p.isZero());var f=new i(1).toRed(this),l=f.redNeg(),b=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new i(2*C*C).toRed(this);this.pow(C,b).cmp(l)!==0;)C.redIAdd(l);for(var R=this.pow(C,p),L=this.pow(y,p.addn(1).iushrn(1)),B=this.pow(y,p),K=h;B.cmp(f)!==0;){for(var z=B,O=0;z.cmp(f)!==0;O++)z=z.redSqr();r(O<K);var D=this.pow(R,new i(1).iushln(K-O-1));L=L.redMul(D),R=D.redSqr(),B=B.redMul(R),K=O}return L},ye.prototype.invm=function(y){var x=y._invmp(this.m);return x.negative!==0?(x.negative=0,this.imod(x).redNeg()):this.imod(x)},ye.prototype.pow=function(y,x){if(x.isZero())return new i(1).toRed(this);if(x.cmpn(1)===0)return y.clone();var d=new Array(16);d[0]=new i(1).toRed(this),d[1]=y;for(var p=2;p<d.length;p++)d[p]=this.mul(d[p-1],y);var h=d[0],f=0,l=0,b=x.bitLength()%26;for(b===0&&(b=26),p=x.length-1;p>=0;p--){for(var C=x.words[p],R=b-1;R>=0;R--){var L=C>>R&1;h!==d[0]&&(h=this.sqr(h)),L!==0||f!==0?(f<<=1,f|=L,(++l===4||p===0&&R===0)&&(h=this.mul(h,d[f]),l=0,f=0)):l=0}b=26}return h},ye.prototype.convertTo=function(y){var x=y.umod(this.m);return x===y?x.clone():x},ye.prototype.convertFrom=function(y){var x=y.clone();return x.red=null,x},i.mont=function(y){return new Te(y)},o(Te,ye),Te.prototype.convertTo=function(y){return this.imod(y.ushln(this.shift))},Te.prototype.convertFrom=function(y){var x=this.imod(y.mul(this.rinv));return x.red=null,x},Te.prototype.imul=function(y,x){if(y.isZero()||x.isZero())return y.words[0]=0,y.length=1,y;var d=y.imul(x),p=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=d.isub(p).iushrn(this.shift),f=h;return h.cmp(this.m)>=0?f=h.isub(this.m):h.cmpn(0)<0&&(f=h.iadd(this.m)),f._forceRed(this)},Te.prototype.mul=function(y,x){if(y.isZero()||x.isZero())return new i(0)._forceRed(this);var d=y.mul(x),p=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=d.isub(p).iushrn(this.shift),f=h;return h.cmp(this.m)>=0?f=h.isub(this.m):h.cmpn(0)<0&&(f=h.iadd(this.m)),f._forceRed(this)},Te.prototype.invm=function(y){return this.imod(y._invmp(this.m).mul(this.r2))._forceRed(this)}})(e,En)})(jE);var zE,Y4,UE,G4,FE,Ei=jE.exports,Gv={exports:{}};function Z4(){if(zE)return Gv.exports;var e;function t(r){this.rand=r}if(zE=1,Gv.exports=function(r){return e||(e=new t(null)),e.generate(r)},Gv.exports.Rand=t,t.prototype.generate=function(r){return this._rand(r)},t.prototype._rand=function(r){if(this.rand.getBytes)return this.rand.getBytes(r);for(var o=new Uint8Array(r),i=0;i<o.length;i++)o[i]=this.rand.getByte();return o},typeof self=="object")self.crypto&&self.crypto.getRandomValues?t.prototype._rand=function(r){var o=new Uint8Array(r);return self.crypto.getRandomValues(o),o}:self.msCrypto&&self.msCrypto.getRandomValues?t.prototype._rand=function(r){var o=new Uint8Array(r);return self.msCrypto.getRandomValues(o),o}:typeof window=="object"&&(t.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var n=mb();if(typeof n.randomBytes!="function")throw new Error("Not supported");t.prototype._rand=function(r){return n.randomBytes(r)}}catch{}return Gv.exports}function KE(){if(UE)return Y4;UE=1;var e=Ei,t=Z4();function n(r){this.rand=r||new t.Rand}return Y4=n,n.create=function(r){return new n(r)},n.prototype._randbelow=function(r){var o=r.bitLength(),i=Math.ceil(o/8);do var c=new e(this.rand.generate(i));while(c.cmp(r)>=0);return c},n.prototype._randrange=function(r,o){var i=o.sub(r);return r.add(this._randbelow(i))},n.prototype.test=function(r,o,i){var c=r.bitLength(),g=e.mont(r),_=new e(1).toRed(g);o||(o=Math.max(1,c/48|0));for(var w=r.subn(1),S=0;!w.testn(S);S++);for(var E=r.shrn(S),T=w.toRed(g);o>0;o--){var I=this._randrange(new e(2),w);i&&i(I);var j=I.toRed(g).redPow(E);if(j.cmp(_)!==0&&j.cmp(T)!==0){for(var H=1;H<S;H++){if((j=j.redSqr()).cmp(_)===0)return!1;if(j.cmp(T)===0)break}if(H===S)return!1}}return!0},n.prototype.getDivisor=function(r,o){var i=r.bitLength(),c=e.mont(r),g=new e(1).toRed(c);o||(o=Math.max(1,i/48|0));for(var _=r.subn(1),w=0;!_.testn(w);w++);for(var S=r.shrn(w),E=_.toRed(c);o>0;o--){var T=this._randrange(new e(2),_),I=r.gcd(T);if(I.cmpn(1)!==0)return I;var j=T.toRed(c).redPow(S);if(j.cmp(g)!==0&&j.cmp(E)!==0){for(var H=1;H<w;H++){if((j=j.redSqr()).cmp(g)===0)return j.fromRed().subn(1).gcd(r);if(j.cmp(E)===0)break}if(H===w)return(j=j.redSqr()).fromRed().subn(1).gcd(r)}}return!1},Y4}function qE(){if(FE)return G4;FE=1;var e=lm;G4=H,H.simpleSieve=I,H.fermatTest=j;var t=Ei,n=new t(24),r=new(KE()),o=new t(1),i=new t(2),c=new t(5);new t(16),new t(8);var g=new t(10),_=new t(3);new t(7);var w=new t(11),S=new t(4);new t(12);var E=null;function T(){if(E!==null)return E;var V=[];V[0]=2;for(var ee=1,X=3;X<1048576;X+=2){for(var ue=Math.ceil(Math.sqrt(X)),le=0;le<ee&&V[le]<=ue&&X%V[le]!=0;le++);ee!==le&&V[le]<=ue||(V[ee++]=X)}return E=V,V}function I(V){for(var ee=T(),X=0;X<ee.length;X++)if(V.modn(ee[X])===0)return V.cmpn(ee[X])===0;return!0}function j(V){var ee=t.mont(V);return i.toRed(ee).redPow(V.subn(1)).fromRed().cmpn(1)===0}function H(V,ee){if(V<16)return new t(ee===2||ee===5?[140,123]:[140,39]);var X,ue;for(ee=new t(ee);;){for(X=new t(e(Math.ceil(V/8)));X.bitLength()>V;)X.ishrn(1);if(X.isEven()&&X.iadd(o),X.testn(1)||X.iadd(i),ee.cmp(i)){if(!ee.cmp(c))for(;X.mod(g).cmp(_);)X.iadd(S)}else for(;X.mod(n).cmp(w);)X.iadd(S);if(I(ue=X.shrn(1))&&I(X)&&j(ue)&&j(X)&&r.test(ue)&&r.test(X))return X}}return G4}var Q4,HE,WE,VN={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}};function YN(){if(HE)return Q4;HE=1;var e=Ei,t=new(KE()),n=new e(24),r=new e(11),o=new e(10),i=new e(3),c=new e(7),g=qE(),_=lm;function w(j,H){return H=H||"utf8",va(j)||(j=new ze(j,H)),this._pub=new e(j),this}function S(j,H){return H=H||"utf8",va(j)||(j=new ze(j,H)),this._priv=new e(j),this}Q4=T;var E={};function T(j,H,V){this.setGenerator(H),this.__prime=new e(j),this._prime=e.mont(this.__prime),this._primeLen=j.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,V?(this.setPublicKey=w,this.setPrivateKey=S):this._primeCode=8}function I(j,H){var V=new ze(j.toArray());return H?V.toString(H):V}return Object.defineProperty(T.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=function(j,H){var V=H.toString("hex"),ee=[V,j.toString(16)].join("_");if(ee in E)return E[ee];var X,ue=0;if(j.isEven()||!g.simpleSieve||!g.fermatTest(j)||!t.test(j))return ue+=1,ue+=V==="02"||V==="05"?8:4,E[ee]=ue,ue;switch(t.test(j.shrn(1))||(ue+=2),V){case"02":j.mod(n).cmp(r)&&(ue+=8);break;case"05":(X=j.mod(o)).cmp(i)&&X.cmp(c)&&(ue+=8);break;default:ue+=4}return E[ee]=ue,ue}(this.__prime,this.__gen)),this._primeCode}}),T.prototype.generateKeys=function(){return this._priv||(this._priv=new e(_(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},T.prototype.computeSecret=function(j){var H=new ze((j=(j=new e(j)).toRed(this._prime)).redPow(this._priv).fromRed().toArray()),V=this.getPrime();if(H.length<V.length){var ee=new ze(V.length-H.length);ee.fill(0),H=ze.concat([ee,H])}return H},T.prototype.getPublicKey=function(j){return I(this._pub,j)},T.prototype.getPrivateKey=function(j){return I(this._priv,j)},T.prototype.getPrime=function(j){return I(this.__prime,j)},T.prototype.getGenerator=function(j){return I(this._gen,j)},T.prototype.setGenerator=function(j,H){return H=H||"utf8",va(j)||(j=new ze(j,H)),this.__gen=j,this._gen=new e(j),this},Q4}var jm={exports:{}},$E={exports:{}};(function(e){(function(t,n){function r(d,p){if(!d)throw new Error(p||"Assertion failed")}function o(d,p){d.super_=p;var h=function(){};h.prototype=p.prototype,d.prototype=new h,d.prototype.constructor=d}function i(d,p,h){if(i.isBN(d))return d;this.negative=0,this.words=null,this.length=0,this.red=null,d!==null&&(p!=="le"&&p!=="be"||(h=p,p=10),this._init(d||0,p||10,h||"be"))}var c;typeof t=="object"?t.exports=i:n.BN=i,i.BN=i,i.wordSize=26;try{c=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:xs.Buffer}catch{}function g(d,p){var h=d.charCodeAt(p);return h>=48&&h<=57?h-48:h>=65&&h<=70?h-55:h>=97&&h<=102?h-87:void r(!1,"Invalid character in "+d)}function _(d,p,h){var f=g(d,h);return h-1>=p&&(f|=g(d,h-1)<<4),f}function w(d,p,h,f){for(var l=0,b=0,C=Math.min(d.length,h),R=p;R<C;R++){var L=d.charCodeAt(R)-48;l*=f,b=L>=49?L-49+10:L>=17?L-17+10:L,r(L>=0&&b<f,"Invalid character"),l+=b}return l}function S(d,p){d.words=p.words,d.length=p.length,d.negative=p.negative,d.red=p.red}if(i.isBN=function(d){return d instanceof i||d!==null&&typeof d=="object"&&d.constructor.wordSize===i.wordSize&&Array.isArray(d.words)},i.max=function(d,p){return d.cmp(p)>0?d:p},i.min=function(d,p){return d.cmp(p)<0?d:p},i.prototype._init=function(d,p,h){if(typeof d=="number")return this._initNumber(d,p,h);if(typeof d=="object")return this._initArray(d,p,h);p==="hex"&&(p=16),r(p===(0|p)&&p>=2&&p<=36);var f=0;(d=d.toString().replace(/\s+/g,""))[0]==="-"&&(f++,this.negative=1),f<d.length&&(p===16?this._parseHex(d,f,h):(this._parseBase(d,p,f),h==="le"&&this._initArray(this.toArray(),p,h)))},i.prototype._initNumber=function(d,p,h){d<0&&(this.negative=1,d=-d),d<67108864?(this.words=[67108863&d],this.length=1):d<4503599627370496?(this.words=[67108863&d,d/67108864&67108863],this.length=2):(r(d<9007199254740992),this.words=[67108863&d,d/67108864&67108863,1],this.length=3),h==="le"&&this._initArray(this.toArray(),p,h)},i.prototype._initArray=function(d,p,h){if(r(typeof d.length=="number"),d.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(d.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var l,b,C=0;if(h==="be")for(f=d.length-1,l=0;f>=0;f-=3)b=d[f]|d[f-1]<<8|d[f-2]<<16,this.words[l]|=b<<C&67108863,this.words[l+1]=b>>>26-C&67108863,(C+=24)>=26&&(C-=26,l++);else if(h==="le")for(f=0,l=0;f<d.length;f+=3)b=d[f]|d[f+1]<<8|d[f+2]<<16,this.words[l]|=b<<C&67108863,this.words[l+1]=b>>>26-C&67108863,(C+=24)>=26&&(C-=26,l++);return this._strip()},i.prototype._parseHex=function(d,p,h){this.length=Math.ceil((d.length-p)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var l,b=0,C=0;if(h==="be")for(f=d.length-1;f>=p;f-=2)l=_(d,p,f)<<b,this.words[C]|=67108863&l,b>=18?(b-=18,C+=1,this.words[C]|=l>>>26):b+=8;else for(f=(d.length-p)%2==0?p+1:p;f<d.length;f+=2)l=_(d,p,f)<<b,this.words[C]|=67108863&l,b>=18?(b-=18,C+=1,this.words[C]|=l>>>26):b+=8;this._strip()},i.prototype._parseBase=function(d,p,h){this.words=[0],this.length=1;for(var f=0,l=1;l<=67108863;l*=p)f++;f--,l=l/p|0;for(var b=d.length-h,C=b%f,R=Math.min(b,b-C)+h,L=0,B=h;B<R;B+=f)L=w(d,B,B+f,p),this.imuln(l),this.words[0]+L<67108864?this.words[0]+=L:this._iaddn(L);if(C!==0){var K=1;for(L=w(d,B,d.length,p),B=0;B<C;B++)K*=p;this.imuln(K),this.words[0]+L<67108864?this.words[0]+=L:this._iaddn(L)}this._strip()},i.prototype.copy=function(d){d.words=new Array(this.length);for(var p=0;p<this.length;p++)d.words[p]=this.words[p];d.length=this.length,d.negative=this.negative,d.red=this.red},i.prototype._move=function(d){S(d,this)},i.prototype.clone=function(){var d=new i(null);return this.copy(d),d},i.prototype._expand=function(d){for(;this.length<d;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=E}catch{i.prototype.inspect=E}else i.prototype.inspect=E;function E(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var T=["","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"],I=[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],j=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(d,p){var h;if(p=0|p||1,(d=d||10)===16||d==="hex"){h="";for(var f=0,l=0,b=0;b<this.length;b++){var C=this.words[b],R=(16777215&(C<<f|l)).toString(16);l=C>>>24-f&16777215,(f+=2)>=26&&(f-=26,b--),h=l!==0||b!==this.length-1?T[6-R.length]+R+h:R+h}for(l!==0&&(h=l.toString(16)+h);h.length%p!=0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}if(d===(0|d)&&d>=2&&d<=36){var L=I[d],B=j[d];h="";var K=this.clone();for(K.negative=0;!K.isZero();){var z=K.modrn(B).toString(d);h=(K=K.idivn(B)).isZero()?z+h:T[L-z.length]+z+h}for(this.isZero()&&(h="0"+h);h.length%p!=0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var d=this.words[0];return this.length===2?d+=67108864*this.words[1]:this.length===3&&this.words[2]===1?d+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-d:d},i.prototype.toJSON=function(){return this.toString(16,2)},c&&(i.prototype.toBuffer=function(d,p){return this.toArrayLike(c,d,p)}),i.prototype.toArray=function(d,p){return this.toArrayLike(Array,d,p)};function H(d,p,h){h.negative=p.negative^d.negative;var f=d.length+p.length|0;h.length=f,f=f-1|0;var l=0|d.words[0],b=0|p.words[0],C=l*b,R=67108863&C,L=C/67108864|0;h.words[0]=R;for(var B=1;B<f;B++){for(var K=L>>>26,z=67108863&L,O=Math.min(B,p.length-1),D=Math.max(0,B-d.length+1);D<=O;D++){var q=B-D|0;K+=(C=(l=0|d.words[q])*(b=0|p.words[D])+z)/67108864|0,z=67108863&C}h.words[B]=0|z,L=0|K}return L!==0?h.words[B]=0|L:h.length--,h._strip()}i.prototype.toArrayLike=function(d,p,h){this._strip();var f=this.byteLength(),l=h||Math.max(1,f);r(f<=l,"byte array longer than desired length"),r(l>0,"Requested array length <= 0");var b=function(C,R){return C.allocUnsafe?C.allocUnsafe(R):new C(R)}(d,l);return this["_toArrayLike"+(p==="le"?"LE":"BE")](b,f),b},i.prototype._toArrayLikeLE=function(d,p){for(var h=0,f=0,l=0,b=0;l<this.length;l++){var C=this.words[l]<<b|f;d[h++]=255&C,h<d.length&&(d[h++]=C>>8&255),h<d.length&&(d[h++]=C>>16&255),b===6?(h<d.length&&(d[h++]=C>>24&255),f=0,b=0):(f=C>>>24,b+=2)}if(h<d.length)for(d[h++]=f;h<d.length;)d[h++]=0},i.prototype._toArrayLikeBE=function(d,p){for(var h=d.length-1,f=0,l=0,b=0;l<this.length;l++){var C=this.words[l]<<b|f;d[h--]=255&C,h>=0&&(d[h--]=C>>8&255),h>=0&&(d[h--]=C>>16&255),b===6?(h>=0&&(d[h--]=C>>24&255),f=0,b=0):(f=C>>>24,b+=2)}if(h>=0)for(d[h--]=f;h>=0;)d[h--]=0},Math.clz32?i.prototype._countBits=function(d){return 32-Math.clz32(d)}:i.prototype._countBits=function(d){var p=d,h=0;return p>=4096&&(h+=13,p>>>=13),p>=64&&(h+=7,p>>>=7),p>=8&&(h+=4,p>>>=4),p>=2&&(h+=2,p>>>=2),h+p},i.prototype._zeroBits=function(d){if(d===0)return 26;var p=d,h=0;return!(8191&p)&&(h+=13,p>>>=13),!(127&p)&&(h+=7,p>>>=7),!(15&p)&&(h+=4,p>>>=4),!(3&p)&&(h+=2,p>>>=2),!(1&p)&&h++,h},i.prototype.bitLength=function(){var d=this.words[this.length-1],p=this._countBits(d);return 26*(this.length-1)+p},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var d=0,p=0;p<this.length;p++){var h=this._zeroBits(this.words[p]);if(d+=h,h!==26)break}return d},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(d){return this.negative!==0?this.abs().inotn(d).iaddn(1):this.clone()},i.prototype.fromTwos=function(d){return this.testn(d-1)?this.notn(d).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(d){for(;this.length<d.length;)this.words[this.length++]=0;for(var p=0;p<d.length;p++)this.words[p]=this.words[p]|d.words[p];return this._strip()},i.prototype.ior=function(d){return r((this.negative|d.negative)==0),this.iuor(d)},i.prototype.or=function(d){return this.length>d.length?this.clone().ior(d):d.clone().ior(this)},i.prototype.uor=function(d){return this.length>d.length?this.clone().iuor(d):d.clone().iuor(this)},i.prototype.iuand=function(d){var p;p=this.length>d.length?d:this;for(var h=0;h<p.length;h++)this.words[h]=this.words[h]&d.words[h];return this.length=p.length,this._strip()},i.prototype.iand=function(d){return r((this.negative|d.negative)==0),this.iuand(d)},i.prototype.and=function(d){return this.length>d.length?this.clone().iand(d):d.clone().iand(this)},i.prototype.uand=function(d){return this.length>d.length?this.clone().iuand(d):d.clone().iuand(this)},i.prototype.iuxor=function(d){var p,h;this.length>d.length?(p=this,h=d):(p=d,h=this);for(var f=0;f<h.length;f++)this.words[f]=p.words[f]^h.words[f];if(this!==p)for(;f<p.length;f++)this.words[f]=p.words[f];return this.length=p.length,this._strip()},i.prototype.ixor=function(d){return r((this.negative|d.negative)==0),this.iuxor(d)},i.prototype.xor=function(d){return this.length>d.length?this.clone().ixor(d):d.clone().ixor(this)},i.prototype.uxor=function(d){return this.length>d.length?this.clone().iuxor(d):d.clone().iuxor(this)},i.prototype.inotn=function(d){r(typeof d=="number"&&d>=0);var p=0|Math.ceil(d/26),h=d%26;this._expand(p),h>0&&p--;for(var f=0;f<p;f++)this.words[f]=67108863&~this.words[f];return h>0&&(this.words[f]=~this.words[f]&67108863>>26-h),this._strip()},i.prototype.notn=function(d){return this.clone().inotn(d)},i.prototype.setn=function(d,p){r(typeof d=="number"&&d>=0);var h=d/26|0,f=d%26;return this._expand(h+1),this.words[h]=p?this.words[h]|1<<f:this.words[h]&~(1<<f),this._strip()},i.prototype.iadd=function(d){var p,h,f;if(this.negative!==0&&d.negative===0)return this.negative=0,p=this.isub(d),this.negative^=1,this._normSign();if(this.negative===0&&d.negative!==0)return d.negative=0,p=this.isub(d),d.negative=1,p._normSign();this.length>d.length?(h=this,f=d):(h=d,f=this);for(var l=0,b=0;b<f.length;b++)p=(0|h.words[b])+(0|f.words[b])+l,this.words[b]=67108863&p,l=p>>>26;for(;l!==0&&b<h.length;b++)p=(0|h.words[b])+l,this.words[b]=67108863&p,l=p>>>26;if(this.length=h.length,l!==0)this.words[this.length]=l,this.length++;else if(h!==this)for(;b<h.length;b++)this.words[b]=h.words[b];return this},i.prototype.add=function(d){var p;return d.negative!==0&&this.negative===0?(d.negative=0,p=this.sub(d),d.negative^=1,p):d.negative===0&&this.negative!==0?(this.negative=0,p=d.sub(this),this.negative=1,p):this.length>d.length?this.clone().iadd(d):d.clone().iadd(this)},i.prototype.isub=function(d){if(d.negative!==0){d.negative=0;var p=this.iadd(d);return d.negative=1,p._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(d),this.negative=1,this._normSign();var h,f,l=this.cmp(d);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;l>0?(h=this,f=d):(h=d,f=this);for(var b=0,C=0;C<f.length;C++)b=(p=(0|h.words[C])-(0|f.words[C])+b)>>26,this.words[C]=67108863&p;for(;b!==0&&C<h.length;C++)b=(p=(0|h.words[C])+b)>>26,this.words[C]=67108863&p;if(b===0&&C<h.length&&h!==this)for(;C<h.length;C++)this.words[C]=h.words[C];return this.length=Math.max(this.length,C),h!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(d){return this.clone().isub(d)};var V=function(d,p,h){var f,l,b,C=d.words,R=p.words,L=h.words,B=0,K=0|C[0],z=8191&K,O=K>>>13,D=0|C[1],q=8191&D,Y=D>>>13,Q=0|C[2],ae=8191&Q,re=Q>>>13,we=0|C[3],de=8191&we,ie=we>>>13,oe=0|C[4],fe=8191&oe,me=oe>>>13,Le=0|C[5],De=8191&Le,Ce=Le>>>13,Qe=0|C[6],tt=8191&Qe,Fe=Qe>>>13,Mt=0|C[7],rt=8191&Mt,He=Mt>>>13,lt=0|C[8],mt=8191&lt,ct=lt>>>13,Rt=0|C[9],_t=8191&Rt,ut=Rt>>>13,xt=0|R[0],Tt=8191&xt,at=xt>>>13,Ct=0|R[1],At=8191&Ct,ht=Ct>>>13,Qt=0|R[2],Kt=8191&Qt,vt=Qt>>>13,sn=0|R[3],$t=8191&sn,ft=sn>>>13,Vt=0|R[4],Ut=8191&Vt,gt=Vt>>>13,Gt=0|R[5],Ft=8191&Gt,kt=Gt>>>13,en=0|R[6],rn=8191&en,bt=en>>>13,Xt=0|R[7],Jt=8191&Xt,wt=Xt>>>13,jt=0|R[8],cn=8191&jt,St=jt>>>13,fn=0|R[9],Yt=8191&fn,tn=fn>>>13;h.negative=d.negative^p.negative,h.length=19;var Nr=(B+(f=Math.imul(z,Tt))|0)+((8191&(l=(l=Math.imul(z,at))+Math.imul(O,Tt)|0))<<13)|0;B=((b=Math.imul(O,at))+(l>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,f=Math.imul(q,Tt),l=(l=Math.imul(q,at))+Math.imul(Y,Tt)|0,b=Math.imul(Y,at);var Dr=(B+(f=f+Math.imul(z,At)|0)|0)+((8191&(l=(l=l+Math.imul(z,ht)|0)+Math.imul(O,At)|0))<<13)|0;B=((b=b+Math.imul(O,ht)|0)+(l>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,f=Math.imul(ae,Tt),l=(l=Math.imul(ae,at))+Math.imul(re,Tt)|0,b=Math.imul(re,at),f=f+Math.imul(q,At)|0,l=(l=l+Math.imul(q,ht)|0)+Math.imul(Y,At)|0,b=b+Math.imul(Y,ht)|0;var xr=(B+(f=f+Math.imul(z,Kt)|0)|0)+((8191&(l=(l=l+Math.imul(z,vt)|0)+Math.imul(O,Kt)|0))<<13)|0;B=((b=b+Math.imul(O,vt)|0)+(l>>>13)|0)+(xr>>>26)|0,xr&=67108863,f=Math.imul(de,Tt),l=(l=Math.imul(de,at))+Math.imul(ie,Tt)|0,b=Math.imul(ie,at),f=f+Math.imul(ae,At)|0,l=(l=l+Math.imul(ae,ht)|0)+Math.imul(re,At)|0,b=b+Math.imul(re,ht)|0,f=f+Math.imul(q,Kt)|0,l=(l=l+Math.imul(q,vt)|0)+Math.imul(Y,Kt)|0,b=b+Math.imul(Y,vt)|0;var yr=(B+(f=f+Math.imul(z,$t)|0)|0)+((8191&(l=(l=l+Math.imul(z,ft)|0)+Math.imul(O,$t)|0))<<13)|0;B=((b=b+Math.imul(O,ft)|0)+(l>>>13)|0)+(yr>>>26)|0,yr&=67108863,f=Math.imul(fe,Tt),l=(l=Math.imul(fe,at))+Math.imul(me,Tt)|0,b=Math.imul(me,at),f=f+Math.imul(de,At)|0,l=(l=l+Math.imul(de,ht)|0)+Math.imul(ie,At)|0,b=b+Math.imul(ie,ht)|0,f=f+Math.imul(ae,Kt)|0,l=(l=l+Math.imul(ae,vt)|0)+Math.imul(re,Kt)|0,b=b+Math.imul(re,vt)|0,f=f+Math.imul(q,$t)|0,l=(l=l+Math.imul(q,ft)|0)+Math.imul(Y,$t)|0,b=b+Math.imul(Y,ft)|0;var Kr=(B+(f=f+Math.imul(z,Ut)|0)|0)+((8191&(l=(l=l+Math.imul(z,gt)|0)+Math.imul(O,Ut)|0))<<13)|0;B=((b=b+Math.imul(O,gt)|0)+(l>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,f=Math.imul(De,Tt),l=(l=Math.imul(De,at))+Math.imul(Ce,Tt)|0,b=Math.imul(Ce,at),f=f+Math.imul(fe,At)|0,l=(l=l+Math.imul(fe,ht)|0)+Math.imul(me,At)|0,b=b+Math.imul(me,ht)|0,f=f+Math.imul(de,Kt)|0,l=(l=l+Math.imul(de,vt)|0)+Math.imul(ie,Kt)|0,b=b+Math.imul(ie,vt)|0,f=f+Math.imul(ae,$t)|0,l=(l=l+Math.imul(ae,ft)|0)+Math.imul(re,$t)|0,b=b+Math.imul(re,ft)|0,f=f+Math.imul(q,Ut)|0,l=(l=l+Math.imul(q,gt)|0)+Math.imul(Y,Ut)|0,b=b+Math.imul(Y,gt)|0;var Cn=(B+(f=f+Math.imul(z,Ft)|0)|0)+((8191&(l=(l=l+Math.imul(z,kt)|0)+Math.imul(O,Ft)|0))<<13)|0;B=((b=b+Math.imul(O,kt)|0)+(l>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,f=Math.imul(tt,Tt),l=(l=Math.imul(tt,at))+Math.imul(Fe,Tt)|0,b=Math.imul(Fe,at),f=f+Math.imul(De,At)|0,l=(l=l+Math.imul(De,ht)|0)+Math.imul(Ce,At)|0,b=b+Math.imul(Ce,ht)|0,f=f+Math.imul(fe,Kt)|0,l=(l=l+Math.imul(fe,vt)|0)+Math.imul(me,Kt)|0,b=b+Math.imul(me,vt)|0,f=f+Math.imul(de,$t)|0,l=(l=l+Math.imul(de,ft)|0)+Math.imul(ie,$t)|0,b=b+Math.imul(ie,ft)|0,f=f+Math.imul(ae,Ut)|0,l=(l=l+Math.imul(ae,gt)|0)+Math.imul(re,Ut)|0,b=b+Math.imul(re,gt)|0,f=f+Math.imul(q,Ft)|0,l=(l=l+Math.imul(q,kt)|0)+Math.imul(Y,Ft)|0,b=b+Math.imul(Y,kt)|0;var un=(B+(f=f+Math.imul(z,rn)|0)|0)+((8191&(l=(l=l+Math.imul(z,bt)|0)+Math.imul(O,rn)|0))<<13)|0;B=((b=b+Math.imul(O,bt)|0)+(l>>>13)|0)+(un>>>26)|0,un&=67108863,f=Math.imul(rt,Tt),l=(l=Math.imul(rt,at))+Math.imul(He,Tt)|0,b=Math.imul(He,at),f=f+Math.imul(tt,At)|0,l=(l=l+Math.imul(tt,ht)|0)+Math.imul(Fe,At)|0,b=b+Math.imul(Fe,ht)|0,f=f+Math.imul(De,Kt)|0,l=(l=l+Math.imul(De,vt)|0)+Math.imul(Ce,Kt)|0,b=b+Math.imul(Ce,vt)|0,f=f+Math.imul(fe,$t)|0,l=(l=l+Math.imul(fe,ft)|0)+Math.imul(me,$t)|0,b=b+Math.imul(me,ft)|0,f=f+Math.imul(de,Ut)|0,l=(l=l+Math.imul(de,gt)|0)+Math.imul(ie,Ut)|0,b=b+Math.imul(ie,gt)|0,f=f+Math.imul(ae,Ft)|0,l=(l=l+Math.imul(ae,kt)|0)+Math.imul(re,Ft)|0,b=b+Math.imul(re,kt)|0,f=f+Math.imul(q,rn)|0,l=(l=l+Math.imul(q,bt)|0)+Math.imul(Y,rn)|0,b=b+Math.imul(Y,bt)|0;var wr=(B+(f=f+Math.imul(z,Jt)|0)|0)+((8191&(l=(l=l+Math.imul(z,wt)|0)+Math.imul(O,Jt)|0))<<13)|0;B=((b=b+Math.imul(O,wt)|0)+(l>>>13)|0)+(wr>>>26)|0,wr&=67108863,f=Math.imul(mt,Tt),l=(l=Math.imul(mt,at))+Math.imul(ct,Tt)|0,b=Math.imul(ct,at),f=f+Math.imul(rt,At)|0,l=(l=l+Math.imul(rt,ht)|0)+Math.imul(He,At)|0,b=b+Math.imul(He,ht)|0,f=f+Math.imul(tt,Kt)|0,l=(l=l+Math.imul(tt,vt)|0)+Math.imul(Fe,Kt)|0,b=b+Math.imul(Fe,vt)|0,f=f+Math.imul(De,$t)|0,l=(l=l+Math.imul(De,ft)|0)+Math.imul(Ce,$t)|0,b=b+Math.imul(Ce,ft)|0,f=f+Math.imul(fe,Ut)|0,l=(l=l+Math.imul(fe,gt)|0)+Math.imul(me,Ut)|0,b=b+Math.imul(me,gt)|0,f=f+Math.imul(de,Ft)|0,l=(l=l+Math.imul(de,kt)|0)+Math.imul(ie,Ft)|0,b=b+Math.imul(ie,kt)|0,f=f+Math.imul(ae,rn)|0,l=(l=l+Math.imul(ae,bt)|0)+Math.imul(re,rn)|0,b=b+Math.imul(re,bt)|0,f=f+Math.imul(q,Jt)|0,l=(l=l+Math.imul(q,wt)|0)+Math.imul(Y,Jt)|0,b=b+Math.imul(Y,wt)|0;var Br=(B+(f=f+Math.imul(z,cn)|0)|0)+((8191&(l=(l=l+Math.imul(z,St)|0)+Math.imul(O,cn)|0))<<13)|0;B=((b=b+Math.imul(O,St)|0)+(l>>>13)|0)+(Br>>>26)|0,Br&=67108863,f=Math.imul(_t,Tt),l=(l=Math.imul(_t,at))+Math.imul(ut,Tt)|0,b=Math.imul(ut,at),f=f+Math.imul(mt,At)|0,l=(l=l+Math.imul(mt,ht)|0)+Math.imul(ct,At)|0,b=b+Math.imul(ct,ht)|0,f=f+Math.imul(rt,Kt)|0,l=(l=l+Math.imul(rt,vt)|0)+Math.imul(He,Kt)|0,b=b+Math.imul(He,vt)|0,f=f+Math.imul(tt,$t)|0,l=(l=l+Math.imul(tt,ft)|0)+Math.imul(Fe,$t)|0,b=b+Math.imul(Fe,ft)|0,f=f+Math.imul(De,Ut)|0,l=(l=l+Math.imul(De,gt)|0)+Math.imul(Ce,Ut)|0,b=b+Math.imul(Ce,gt)|0,f=f+Math.imul(fe,Ft)|0,l=(l=l+Math.imul(fe,kt)|0)+Math.imul(me,Ft)|0,b=b+Math.imul(me,kt)|0,f=f+Math.imul(de,rn)|0,l=(l=l+Math.imul(de,bt)|0)+Math.imul(ie,rn)|0,b=b+Math.imul(ie,bt)|0,f=f+Math.imul(ae,Jt)|0,l=(l=l+Math.imul(ae,wt)|0)+Math.imul(re,Jt)|0,b=b+Math.imul(re,wt)|0,f=f+Math.imul(q,cn)|0,l=(l=l+Math.imul(q,St)|0)+Math.imul(Y,cn)|0,b=b+Math.imul(Y,St)|0;var Ar=(B+(f=f+Math.imul(z,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(z,tn)|0)+Math.imul(O,Yt)|0))<<13)|0;B=((b=b+Math.imul(O,tn)|0)+(l>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,f=Math.imul(_t,At),l=(l=Math.imul(_t,ht))+Math.imul(ut,At)|0,b=Math.imul(ut,ht),f=f+Math.imul(mt,Kt)|0,l=(l=l+Math.imul(mt,vt)|0)+Math.imul(ct,Kt)|0,b=b+Math.imul(ct,vt)|0,f=f+Math.imul(rt,$t)|0,l=(l=l+Math.imul(rt,ft)|0)+Math.imul(He,$t)|0,b=b+Math.imul(He,ft)|0,f=f+Math.imul(tt,Ut)|0,l=(l=l+Math.imul(tt,gt)|0)+Math.imul(Fe,Ut)|0,b=b+Math.imul(Fe,gt)|0,f=f+Math.imul(De,Ft)|0,l=(l=l+Math.imul(De,kt)|0)+Math.imul(Ce,Ft)|0,b=b+Math.imul(Ce,kt)|0,f=f+Math.imul(fe,rn)|0,l=(l=l+Math.imul(fe,bt)|0)+Math.imul(me,rn)|0,b=b+Math.imul(me,bt)|0,f=f+Math.imul(de,Jt)|0,l=(l=l+Math.imul(de,wt)|0)+Math.imul(ie,Jt)|0,b=b+Math.imul(ie,wt)|0,f=f+Math.imul(ae,cn)|0,l=(l=l+Math.imul(ae,St)|0)+Math.imul(re,cn)|0,b=b+Math.imul(re,St)|0;var jr=(B+(f=f+Math.imul(q,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(q,tn)|0)+Math.imul(Y,Yt)|0))<<13)|0;B=((b=b+Math.imul(Y,tn)|0)+(l>>>13)|0)+(jr>>>26)|0,jr&=67108863,f=Math.imul(_t,Kt),l=(l=Math.imul(_t,vt))+Math.imul(ut,Kt)|0,b=Math.imul(ut,vt),f=f+Math.imul(mt,$t)|0,l=(l=l+Math.imul(mt,ft)|0)+Math.imul(ct,$t)|0,b=b+Math.imul(ct,ft)|0,f=f+Math.imul(rt,Ut)|0,l=(l=l+Math.imul(rt,gt)|0)+Math.imul(He,Ut)|0,b=b+Math.imul(He,gt)|0,f=f+Math.imul(tt,Ft)|0,l=(l=l+Math.imul(tt,kt)|0)+Math.imul(Fe,Ft)|0,b=b+Math.imul(Fe,kt)|0,f=f+Math.imul(De,rn)|0,l=(l=l+Math.imul(De,bt)|0)+Math.imul(Ce,rn)|0,b=b+Math.imul(Ce,bt)|0,f=f+Math.imul(fe,Jt)|0,l=(l=l+Math.imul(fe,wt)|0)+Math.imul(me,Jt)|0,b=b+Math.imul(me,wt)|0,f=f+Math.imul(de,cn)|0,l=(l=l+Math.imul(de,St)|0)+Math.imul(ie,cn)|0,b=b+Math.imul(ie,St)|0;var ur=(B+(f=f+Math.imul(ae,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(ae,tn)|0)+Math.imul(re,Yt)|0))<<13)|0;B=((b=b+Math.imul(re,tn)|0)+(l>>>13)|0)+(ur>>>26)|0,ur&=67108863,f=Math.imul(_t,$t),l=(l=Math.imul(_t,ft))+Math.imul(ut,$t)|0,b=Math.imul(ut,ft),f=f+Math.imul(mt,Ut)|0,l=(l=l+Math.imul(mt,gt)|0)+Math.imul(ct,Ut)|0,b=b+Math.imul(ct,gt)|0,f=f+Math.imul(rt,Ft)|0,l=(l=l+Math.imul(rt,kt)|0)+Math.imul(He,Ft)|0,b=b+Math.imul(He,kt)|0,f=f+Math.imul(tt,rn)|0,l=(l=l+Math.imul(tt,bt)|0)+Math.imul(Fe,rn)|0,b=b+Math.imul(Fe,bt)|0,f=f+Math.imul(De,Jt)|0,l=(l=l+Math.imul(De,wt)|0)+Math.imul(Ce,Jt)|0,b=b+Math.imul(Ce,wt)|0,f=f+Math.imul(fe,cn)|0,l=(l=l+Math.imul(fe,St)|0)+Math.imul(me,cn)|0,b=b+Math.imul(me,St)|0;var lr=(B+(f=f+Math.imul(de,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(de,tn)|0)+Math.imul(ie,Yt)|0))<<13)|0;B=((b=b+Math.imul(ie,tn)|0)+(l>>>13)|0)+(lr>>>26)|0,lr&=67108863,f=Math.imul(_t,Ut),l=(l=Math.imul(_t,gt))+Math.imul(ut,Ut)|0,b=Math.imul(ut,gt),f=f+Math.imul(mt,Ft)|0,l=(l=l+Math.imul(mt,kt)|0)+Math.imul(ct,Ft)|0,b=b+Math.imul(ct,kt)|0,f=f+Math.imul(rt,rn)|0,l=(l=l+Math.imul(rt,bt)|0)+Math.imul(He,rn)|0,b=b+Math.imul(He,bt)|0,f=f+Math.imul(tt,Jt)|0,l=(l=l+Math.imul(tt,wt)|0)+Math.imul(Fe,Jt)|0,b=b+Math.imul(Fe,wt)|0,f=f+Math.imul(De,cn)|0,l=(l=l+Math.imul(De,St)|0)+Math.imul(Ce,cn)|0,b=b+Math.imul(Ce,St)|0;var Bn=(B+(f=f+Math.imul(fe,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(fe,tn)|0)+Math.imul(me,Yt)|0))<<13)|0;B=((b=b+Math.imul(me,tn)|0)+(l>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,f=Math.imul(_t,Ft),l=(l=Math.imul(_t,kt))+Math.imul(ut,Ft)|0,b=Math.imul(ut,kt),f=f+Math.imul(mt,rn)|0,l=(l=l+Math.imul(mt,bt)|0)+Math.imul(ct,rn)|0,b=b+Math.imul(ct,bt)|0,f=f+Math.imul(rt,Jt)|0,l=(l=l+Math.imul(rt,wt)|0)+Math.imul(He,Jt)|0,b=b+Math.imul(He,wt)|0,f=f+Math.imul(tt,cn)|0,l=(l=l+Math.imul(tt,St)|0)+Math.imul(Fe,cn)|0,b=b+Math.imul(Fe,St)|0;var Zn=(B+(f=f+Math.imul(De,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(De,tn)|0)+Math.imul(Ce,Yt)|0))<<13)|0;B=((b=b+Math.imul(Ce,tn)|0)+(l>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,f=Math.imul(_t,rn),l=(l=Math.imul(_t,bt))+Math.imul(ut,rn)|0,b=Math.imul(ut,bt),f=f+Math.imul(mt,Jt)|0,l=(l=l+Math.imul(mt,wt)|0)+Math.imul(ct,Jt)|0,b=b+Math.imul(ct,wt)|0,f=f+Math.imul(rt,cn)|0,l=(l=l+Math.imul(rt,St)|0)+Math.imul(He,cn)|0,b=b+Math.imul(He,St)|0;var Rr=(B+(f=f+Math.imul(tt,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(tt,tn)|0)+Math.imul(Fe,Yt)|0))<<13)|0;B=((b=b+Math.imul(Fe,tn)|0)+(l>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,f=Math.imul(_t,Jt),l=(l=Math.imul(_t,wt))+Math.imul(ut,Jt)|0,b=Math.imul(ut,wt),f=f+Math.imul(mt,cn)|0,l=(l=l+Math.imul(mt,St)|0)+Math.imul(ct,cn)|0,b=b+Math.imul(ct,St)|0;var Ir=(B+(f=f+Math.imul(rt,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(rt,tn)|0)+Math.imul(He,Yt)|0))<<13)|0;B=((b=b+Math.imul(He,tn)|0)+(l>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,f=Math.imul(_t,cn),l=(l=Math.imul(_t,St))+Math.imul(ut,cn)|0,b=Math.imul(ut,St);var di=(B+(f=f+Math.imul(mt,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(mt,tn)|0)+Math.imul(ct,Yt)|0))<<13)|0;B=((b=b+Math.imul(ct,tn)|0)+(l>>>13)|0)+(di>>>26)|0,di&=67108863;var Hi=(B+(f=Math.imul(_t,Yt))|0)+((8191&(l=(l=Math.imul(_t,tn))+Math.imul(ut,Yt)|0))<<13)|0;return B=((b=Math.imul(ut,tn))+(l>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,L[0]=Nr,L[1]=Dr,L[2]=xr,L[3]=yr,L[4]=Kr,L[5]=Cn,L[6]=un,L[7]=wr,L[8]=Br,L[9]=Ar,L[10]=jr,L[11]=ur,L[12]=lr,L[13]=Bn,L[14]=Zn,L[15]=Rr,L[16]=Ir,L[17]=di,L[18]=Hi,B!==0&&(L[19]=B,h.length++),h};function ee(d,p,h){h.negative=p.negative^d.negative,h.length=d.length+p.length;for(var f=0,l=0,b=0;b<h.length-1;b++){var C=l;l=0;for(var R=67108863&f,L=Math.min(b,p.length-1),B=Math.max(0,b-d.length+1);B<=L;B++){var K=b-B,z=(0|d.words[K])*(0|p.words[B]),O=67108863&z;R=67108863&(O=O+R|0),l+=(C=(C=C+(z/67108864|0)|0)+(O>>>26)|0)>>>26,C&=67108863}h.words[b]=R,f=C,C=l}return f!==0?h.words[b]=f:h.length--,h._strip()}function X(d,p,h){return ee(d,p,h)}Math.imul||(V=H),i.prototype.mulTo=function(d,p){var h=this.length+d.length;return this.length===10&&d.length===10?V(this,d,p):h<63?H(this,d,p):h<1024?ee(this,d,p):X(this,d,p)},i.prototype.mul=function(d){var p=new i(null);return p.words=new Array(this.length+d.length),this.mulTo(d,p)},i.prototype.mulf=function(d){var p=new i(null);return p.words=new Array(this.length+d.length),X(this,d,p)},i.prototype.imul=function(d){return this.clone().mulTo(d,this)},i.prototype.imuln=function(d){var p=d<0;p&&(d=-d),r(typeof d=="number"),r(d<67108864);for(var h=0,f=0;f<this.length;f++){var l=(0|this.words[f])*d,b=(67108863&l)+(67108863&h);h>>=26,h+=l/67108864|0,h+=b>>>26,this.words[f]=67108863&b}return h!==0&&(this.words[f]=h,this.length++),p?this.ineg():this},i.prototype.muln=function(d){return this.clone().imuln(d)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(d){var p=function(b){for(var C=new Array(b.bitLength()),R=0;R<C.length;R++){var L=R/26|0,B=R%26;C[R]=b.words[L]>>>B&1}return C}(d);if(p.length===0)return new i(1);for(var h=this,f=0;f<p.length&&p[f]===0;f++,h=h.sqr());if(++f<p.length)for(var l=h.sqr();f<p.length;f++,l=l.sqr())p[f]!==0&&(h=h.mul(l));return h},i.prototype.iushln=function(d){r(typeof d=="number"&&d>=0);var p,h=d%26,f=(d-h)/26,l=67108863>>>26-h<<26-h;if(h!==0){var b=0;for(p=0;p<this.length;p++){var C=this.words[p]&l,R=(0|this.words[p])-C<<h;this.words[p]=R|b,b=C>>>26-h}b&&(this.words[p]=b,this.length++)}if(f!==0){for(p=this.length-1;p>=0;p--)this.words[p+f]=this.words[p];for(p=0;p<f;p++)this.words[p]=0;this.length+=f}return this._strip()},i.prototype.ishln=function(d){return r(this.negative===0),this.iushln(d)},i.prototype.iushrn=function(d,p,h){var f;r(typeof d=="number"&&d>=0),f=p?(p-p%26)/26:0;var l=d%26,b=Math.min((d-l)/26,this.length),C=67108863^67108863>>>l<<l,R=h;if(f-=b,f=Math.max(0,f),R){for(var L=0;L<b;L++)R.words[L]=this.words[L];R.length=b}if(b!==0)if(this.length>b)for(this.length-=b,L=0;L<this.length;L++)this.words[L]=this.words[L+b];else this.words[0]=0,this.length=1;var B=0;for(L=this.length-1;L>=0&&(B!==0||L>=f);L--){var K=0|this.words[L];this.words[L]=B<<26-l|K>>>l,B=K&C}return R&&B!==0&&(R.words[R.length++]=B),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(d,p,h){return r(this.negative===0),this.iushrn(d,p,h)},i.prototype.shln=function(d){return this.clone().ishln(d)},i.prototype.ushln=function(d){return this.clone().iushln(d)},i.prototype.shrn=function(d){return this.clone().ishrn(d)},i.prototype.ushrn=function(d){return this.clone().iushrn(d)},i.prototype.testn=function(d){r(typeof d=="number"&&d>=0);var p=d%26,h=(d-p)/26,f=1<<p;return!(this.length<=h)&&!!(this.words[h]&f)},i.prototype.imaskn=function(d){r(typeof d=="number"&&d>=0);var p=d%26,h=(d-p)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=h)return this;if(p!==0&&h++,this.length=Math.min(h,this.length),p!==0){var f=67108863^67108863>>>p<<p;this.words[this.length-1]&=f}return this._strip()},i.prototype.maskn=function(d){return this.clone().imaskn(d)},i.prototype.iaddn=function(d){return r(typeof d=="number"),r(d<67108864),d<0?this.isubn(-d):this.negative!==0?this.length===1&&(0|this.words[0])<=d?(this.words[0]=d-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(d),this.negative=1,this):this._iaddn(d)},i.prototype._iaddn=function(d){this.words[0]+=d;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},i.prototype.isubn=function(d){if(r(typeof d=="number"),r(d<67108864),d<0)return this.iaddn(-d);if(this.negative!==0)return this.negative=0,this.iaddn(d),this.negative=1,this;if(this.words[0]-=d,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this._strip()},i.prototype.addn=function(d){return this.clone().iaddn(d)},i.prototype.subn=function(d){return this.clone().isubn(d)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(d,p,h){var f,l,b=d.length+h;this._expand(b);var C=0;for(f=0;f<d.length;f++){l=(0|this.words[f+h])+C;var R=(0|d.words[f])*p;C=((l-=67108863&R)>>26)-(R/67108864|0),this.words[f+h]=67108863&l}for(;f<this.length-h;f++)C=(l=(0|this.words[f+h])+C)>>26,this.words[f+h]=67108863&l;if(C===0)return this._strip();for(r(C===-1),C=0,f=0;f<this.length;f++)C=(l=-(0|this.words[f])+C)>>26,this.words[f]=67108863&l;return this.negative=1,this._strip()},i.prototype._wordDiv=function(d,p){var h=(this.length,d.length),f=this.clone(),l=d,b=0|l.words[l.length-1];(h=26-this._countBits(b))!==0&&(l=l.ushln(h),f.iushln(h),b=0|l.words[l.length-1]);var C,R=f.length-l.length;if(p!=="mod"){(C=new i(null)).length=R+1,C.words=new Array(C.length);for(var L=0;L<C.length;L++)C.words[L]=0}var B=f.clone()._ishlnsubmul(l,1,R);B.negative===0&&(f=B,C&&(C.words[R]=1));for(var K=R-1;K>=0;K--){var z=67108864*(0|f.words[l.length+K])+(0|f.words[l.length+K-1]);for(z=Math.min(z/b|0,67108863),f._ishlnsubmul(l,z,K);f.negative!==0;)z--,f.negative=0,f._ishlnsubmul(l,1,K),f.isZero()||(f.negative^=1);C&&(C.words[K]=z)}return C&&C._strip(),f._strip(),p!=="div"&&h!==0&&f.iushrn(h),{div:C||null,mod:f}},i.prototype.divmod=function(d,p,h){return r(!d.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:this.negative!==0&&d.negative===0?(b=this.neg().divmod(d,p),p!=="mod"&&(f=b.div.neg()),p!=="div"&&(l=b.mod.neg(),h&&l.negative!==0&&l.iadd(d)),{div:f,mod:l}):this.negative===0&&d.negative!==0?(b=this.divmod(d.neg(),p),p!=="mod"&&(f=b.div.neg()),{div:f,mod:b.mod}):this.negative&d.negative?(b=this.neg().divmod(d.neg(),p),p!=="div"&&(l=b.mod.neg(),h&&l.negative!==0&&l.isub(d)),{div:b.div,mod:l}):d.length>this.length||this.cmp(d)<0?{div:new i(0),mod:this}:d.length===1?p==="div"?{div:this.divn(d.words[0]),mod:null}:p==="mod"?{div:null,mod:new i(this.modrn(d.words[0]))}:{div:this.divn(d.words[0]),mod:new i(this.modrn(d.words[0]))}:this._wordDiv(d,p);var f,l,b},i.prototype.div=function(d){return this.divmod(d,"div",!1).div},i.prototype.mod=function(d){return this.divmod(d,"mod",!1).mod},i.prototype.umod=function(d){return this.divmod(d,"mod",!0).mod},i.prototype.divRound=function(d){var p=this.divmod(d);if(p.mod.isZero())return p.div;var h=p.div.negative!==0?p.mod.isub(d):p.mod,f=d.ushrn(1),l=d.andln(1),b=h.cmp(f);return b<0||l===1&&b===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},i.prototype.modrn=function(d){var p=d<0;p&&(d=-d),r(d<=67108863);for(var h=(1<<26)%d,f=0,l=this.length-1;l>=0;l--)f=(h*f+(0|this.words[l]))%d;return p?-f:f},i.prototype.modn=function(d){return this.modrn(d)},i.prototype.idivn=function(d){var p=d<0;p&&(d=-d),r(d<=67108863);for(var h=0,f=this.length-1;f>=0;f--){var l=(0|this.words[f])+67108864*h;this.words[f]=l/d|0,h=l%d}return this._strip(),p?this.ineg():this},i.prototype.divn=function(d){return this.clone().idivn(d)},i.prototype.egcd=function(d){r(d.negative===0),r(!d.isZero());var p=this,h=d.clone();p=p.negative!==0?p.umod(d):p.clone();for(var f=new i(1),l=new i(0),b=new i(0),C=new i(1),R=0;p.isEven()&&h.isEven();)p.iushrn(1),h.iushrn(1),++R;for(var L=h.clone(),B=p.clone();!p.isZero();){for(var K=0,z=1;!(p.words[0]&z)&&K<26;++K,z<<=1);if(K>0)for(p.iushrn(K);K-- >0;)(f.isOdd()||l.isOdd())&&(f.iadd(L),l.isub(B)),f.iushrn(1),l.iushrn(1);for(var O=0,D=1;!(h.words[0]&D)&&O<26;++O,D<<=1);if(O>0)for(h.iushrn(O);O-- >0;)(b.isOdd()||C.isOdd())&&(b.iadd(L),C.isub(B)),b.iushrn(1),C.iushrn(1);p.cmp(h)>=0?(p.isub(h),f.isub(b),l.isub(C)):(h.isub(p),b.isub(f),C.isub(l))}return{a:b,b:C,gcd:h.iushln(R)}},i.prototype._invmp=function(d){r(d.negative===0),r(!d.isZero());var p=this,h=d.clone();p=p.negative!==0?p.umod(d):p.clone();for(var f,l=new i(1),b=new i(0),C=h.clone();p.cmpn(1)>0&&h.cmpn(1)>0;){for(var R=0,L=1;!(p.words[0]&L)&&R<26;++R,L<<=1);if(R>0)for(p.iushrn(R);R-- >0;)l.isOdd()&&l.iadd(C),l.iushrn(1);for(var B=0,K=1;!(h.words[0]&K)&&B<26;++B,K<<=1);if(B>0)for(h.iushrn(B);B-- >0;)b.isOdd()&&b.iadd(C),b.iushrn(1);p.cmp(h)>=0?(p.isub(h),l.isub(b)):(h.isub(p),b.isub(l))}return(f=p.cmpn(1)===0?l:b).cmpn(0)<0&&f.iadd(d),f},i.prototype.gcd=function(d){if(this.isZero())return d.abs();if(d.isZero())return this.abs();var p=this.clone(),h=d.clone();p.negative=0,h.negative=0;for(var f=0;p.isEven()&&h.isEven();f++)p.iushrn(1),h.iushrn(1);for(;;){for(;p.isEven();)p.iushrn(1);for(;h.isEven();)h.iushrn(1);var l=p.cmp(h);if(l<0){var b=p;p=h,h=b}else if(l===0||h.cmpn(1)===0)break;p.isub(h)}return h.iushln(f)},i.prototype.invm=function(d){return this.egcd(d).a.umod(d)},i.prototype.isEven=function(){return(1&this.words[0])==0},i.prototype.isOdd=function(){return(1&this.words[0])==1},i.prototype.andln=function(d){return this.words[0]&d},i.prototype.bincn=function(d){r(typeof d=="number");var p=d%26,h=(d-p)/26,f=1<<p;if(this.length<=h)return this._expand(h+1),this.words[h]|=f,this;for(var l=f,b=h;l!==0&&b<this.length;b++){var C=0|this.words[b];l=(C+=l)>>>26,C&=67108863,this.words[b]=C}return l!==0&&(this.words[b]=l,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(d){var p,h=d<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;if(this._strip(),this.length>1)p=1;else{h&&(d=-d),r(d<=67108863,"Number is too big");var f=0|this.words[0];p=f===d?0:f<d?-1:1}return this.negative!==0?0|-p:p},i.prototype.cmp=function(d){if(this.negative!==0&&d.negative===0)return-1;if(this.negative===0&&d.negative!==0)return 1;var p=this.ucmp(d);return this.negative!==0?0|-p:p},i.prototype.ucmp=function(d){if(this.length>d.length)return 1;if(this.length<d.length)return-1;for(var p=0,h=this.length-1;h>=0;h--){var f=0|this.words[h],l=0|d.words[h];if(f!==l){f<l?p=-1:f>l&&(p=1);break}}return p},i.prototype.gtn=function(d){return this.cmpn(d)===1},i.prototype.gt=function(d){return this.cmp(d)===1},i.prototype.gten=function(d){return this.cmpn(d)>=0},i.prototype.gte=function(d){return this.cmp(d)>=0},i.prototype.ltn=function(d){return this.cmpn(d)===-1},i.prototype.lt=function(d){return this.cmp(d)===-1},i.prototype.lten=function(d){return this.cmpn(d)<=0},i.prototype.lte=function(d){return this.cmp(d)<=0},i.prototype.eqn=function(d){return this.cmpn(d)===0},i.prototype.eq=function(d){return this.cmp(d)===0},i.red=function(d){return new y(d)},i.prototype.toRed=function(d){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),d.convertTo(this)._forceRed(d)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(d){return this.red=d,this},i.prototype.forceRed=function(d){return r(!this.red,"Already a number in reduction context"),this._forceRed(d)},i.prototype.redAdd=function(d){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,d)},i.prototype.redIAdd=function(d){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,d)},i.prototype.redSub=function(d){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,d)},i.prototype.redISub=function(d){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,d)},i.prototype.redShl=function(d){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,d)},i.prototype.redMul=function(d){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,d),this.red.mul(this,d)},i.prototype.redIMul=function(d){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,d),this.red.imul(this,d)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(d){return r(this.red&&!d.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,d)};var ue={k256:null,p224:null,p192:null,p25519:null};function le(d,p){this.name=d,this.p=new i(p,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function pe(){le.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function Me(){le.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){le.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function Te(){le.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function y(d){if(typeof d=="string"){var p=i._prime(d);this.m=p.p,this.prime=p}else r(d.gtn(1),"modulus must be greater than 1"),this.m=d,this.prime=null}function x(d){y.call(this,d),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}le.prototype._tmp=function(){var d=new i(null);return d.words=new Array(Math.ceil(this.n/13)),d},le.prototype.ireduce=function(d){var p,h=d;do this.split(h,this.tmp),p=(h=(h=this.imulK(h)).iadd(this.tmp)).bitLength();while(p>this.n);var f=p<this.n?-1:h.ucmp(this.p);return f===0?(h.words[0]=0,h.length=1):f>0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},le.prototype.split=function(d,p){d.iushrn(this.n,0,p)},le.prototype.imulK=function(d){return d.imul(this.k)},o(pe,le),pe.prototype.split=function(d,p){for(var h=4194303,f=Math.min(d.length,9),l=0;l<f;l++)p.words[l]=d.words[l];if(p.length=f,d.length<=9)return d.words[0]=0,void(d.length=1);var b=d.words[9];for(p.words[p.length++]=b&h,l=10;l<d.length;l++){var C=0|d.words[l];d.words[l-10]=(C&h)<<4|b>>>22,b=C}b>>>=22,d.words[l-10]=b,b===0&&d.length>10?d.length-=10:d.length-=9},pe.prototype.imulK=function(d){d.words[d.length]=0,d.words[d.length+1]=0,d.length+=2;for(var p=0,h=0;h<d.length;h++){var f=0|d.words[h];p+=977*f,d.words[h]=67108863&p,p=64*f+(p/67108864|0)}return d.words[d.length-1]===0&&(d.length--,d.words[d.length-1]===0&&d.length--),d},o(Me,le),o(ye,le),o(Te,le),Te.prototype.imulK=function(d){for(var p=0,h=0;h<d.length;h++){var f=19*(0|d.words[h])+p,l=67108863&f;f>>>=26,d.words[h]=l,p=f}return p!==0&&(d.words[d.length++]=p),d},i._prime=function(d){if(ue[d])return ue[d];var p;if(d==="k256")p=new pe;else if(d==="p224")p=new Me;else if(d==="p192")p=new ye;else{if(d!=="p25519")throw new Error("Unknown prime "+d);p=new Te}return ue[d]=p,p},y.prototype._verify1=function(d){r(d.negative===0,"red works only with positives"),r(d.red,"red works only with red numbers")},y.prototype._verify2=function(d,p){r((d.negative|p.negative)==0,"red works only with positives"),r(d.red&&d.red===p.red,"red works only with red numbers")},y.prototype.imod=function(d){return this.prime?this.prime.ireduce(d)._forceRed(this):(S(d,d.umod(this.m)._forceRed(this)),d)},y.prototype.neg=function(d){return d.isZero()?d.clone():this.m.sub(d)._forceRed(this)},y.prototype.add=function(d,p){this._verify2(d,p);var h=d.add(p);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},y.prototype.iadd=function(d,p){this._verify2(d,p);var h=d.iadd(p);return h.cmp(this.m)>=0&&h.isub(this.m),h},y.prototype.sub=function(d,p){this._verify2(d,p);var h=d.sub(p);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},y.prototype.isub=function(d,p){this._verify2(d,p);var h=d.isub(p);return h.cmpn(0)<0&&h.iadd(this.m),h},y.prototype.shl=function(d,p){return this._verify1(d),this.imod(d.ushln(p))},y.prototype.imul=function(d,p){return this._verify2(d,p),this.imod(d.imul(p))},y.prototype.mul=function(d,p){return this._verify2(d,p),this.imod(d.mul(p))},y.prototype.isqr=function(d){return this.imul(d,d.clone())},y.prototype.sqr=function(d){return this.mul(d,d)},y.prototype.sqrt=function(d){if(d.isZero())return d.clone();var p=this.m.andln(3);if(r(p%2==1),p===3){var h=this.m.add(new i(1)).iushrn(2);return this.pow(d,h)}for(var f=this.m.subn(1),l=0;!f.isZero()&&f.andln(1)===0;)l++,f.iushrn(1);r(!f.isZero());var b=new i(1).toRed(this),C=b.redNeg(),R=this.m.subn(1).iushrn(1),L=this.m.bitLength();for(L=new i(2*L*L).toRed(this);this.pow(L,R).cmp(C)!==0;)L.redIAdd(C);for(var B=this.pow(L,f),K=this.pow(d,f.addn(1).iushrn(1)),z=this.pow(d,f),O=l;z.cmp(b)!==0;){for(var D=z,q=0;D.cmp(b)!==0;q++)D=D.redSqr();r(q<O);var Y=this.pow(B,new i(1).iushln(O-q-1));K=K.redMul(Y),B=Y.redSqr(),z=z.redMul(B),O=q}return K},y.prototype.invm=function(d){var p=d._invmp(this.m);return p.negative!==0?(p.negative=0,this.imod(p).redNeg()):this.imod(p)},y.prototype.pow=function(d,p){if(p.isZero())return new i(1).toRed(this);if(p.cmpn(1)===0)return d.clone();var h=new Array(16);h[0]=new i(1).toRed(this),h[1]=d;for(var f=2;f<h.length;f++)h[f]=this.mul(h[f-1],d);var l=h[0],b=0,C=0,R=p.bitLength()%26;for(R===0&&(R=26),f=p.length-1;f>=0;f--){for(var L=p.words[f],B=R-1;B>=0;B--){var K=L>>B&1;l!==h[0]&&(l=this.sqr(l)),K!==0||b!==0?(b<<=1,b|=K,(++C===4||f===0&&B===0)&&(l=this.mul(l,h[b]),C=0,b=0)):C=0}R=26}return l},y.prototype.convertTo=function(d){var p=d.umod(this.m);return p===d?p.clone():p},y.prototype.convertFrom=function(d){var p=d.clone();return p.red=null,p},i.mont=function(d){return new x(d)},o(x,y),x.prototype.convertTo=function(d){return this.imod(d.ushln(this.shift))},x.prototype.convertFrom=function(d){var p=this.imod(d.mul(this.rinv));return p.red=null,p},x.prototype.imul=function(d,p){if(d.isZero()||p.isZero())return d.words[0]=0,d.length=1,d;var h=d.imul(p),f=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=h.isub(f).iushrn(this.shift),b=l;return l.cmp(this.m)>=0?b=l.isub(this.m):l.cmpn(0)<0&&(b=l.iadd(this.m)),b._forceRed(this)},x.prototype.mul=function(d,p){if(d.isZero()||p.isZero())return new i(0)._forceRed(this);var h=d.mul(p),f=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=h.isub(f).iushrn(this.shift),b=l;return l.cmp(this.m)>=0?b=l.isub(this.m):l.cmpn(0)<0&&(b=l.iadd(this.m)),b._forceRed(this)},x.prototype.invm=function(d){return this.imod(d._invmp(this.m).mul(this.r2))._forceRed(this)}})(e,En)})($E);var W0=$E.exports,GN=lm;function VE(e){var t,n=e.modulus.byteLength();do t=new W0(GN(n));while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function YE(e,t){var n=function(I){var j=VE(I);return{blinder:j.toRed(W0.mont(I.modulus)).redPow(new W0(I.publicExponent)).fromRed(),unblinder:j.invm(I.modulus)}}(t),r=t.modulus.byteLength(),o=new W0(e).mul(n.blinder).umod(t.modulus),i=o.toRed(W0.mont(t.prime1)),c=o.toRed(W0.mont(t.prime2)),g=t.coefficient,_=t.prime1,w=t.prime2,S=i.redPow(t.exponent1).fromRed(),E=c.redPow(t.exponent2).fromRed(),T=S.isub(E).imul(g).umod(_).imul(w);return E.iadd(T).imul(n.unblinder).umod(t.modulus).toArrayLike(ze,"be",r)}YE.getr=VE;var X4=YE,GE={},ZN={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}},wa={},J4={};(function(e){var t=e;function n(o){return o.length===1?"0"+o:o}function r(o){for(var i="",c=0;c<o.length;c++)i+=n(o[c].toString(16));return i}t.toArray=function(o,i){if(Array.isArray(o))return o.slice();if(!o)return[];var c=[];if(typeof o!="string"){for(var g=0;g<o.length;g++)c[g]=0|o[g];return c}if(i==="hex")for((o=o.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(o="0"+o),g=0;g<o.length;g+=2)c.push(parseInt(o[g]+o[g+1],16));else for(g=0;g<o.length;g++){var _=o.charCodeAt(g),w=_>>8,S=255&_;w?c.push(w,S):c.push(S)}return c},t.zero2=n,t.toHex=r,t.encode=function(o,i){return i==="hex"?r(o):o}})(J4),function(e){var t=e,n=Ei,r=Ua,o=J4;t.assert=r,t.toArray=o.toArray,t.zero2=o.zero2,t.toHex=o.toHex,t.encode=o.encode,t.getNAF=function(i,c,g){var _=new Array(Math.max(i.bitLength(),g)+1);_.fill(0);for(var w=1<<c+1,S=i.clone(),E=0;E<_.length;E++){var T,I=S.andln(w-1);S.isOdd()?(T=I>(w>>1)-1?(w>>1)-I:I,S.isubn(T)):T=0,_[E]=T,S.iushrn(1)}return _},t.getJSF=function(i,c){var g=[[],[]];i=i.clone(),c=c.clone();for(var _,w=0,S=0;i.cmpn(-w)>0||c.cmpn(-S)>0;){var E,T,I=i.andln(3)+w&3,j=c.andln(3)+S&3;I===3&&(I=-1),j===3&&(j=-1),E=1&I?(_=i.andln(7)+w&7)!==3&&_!==5||j!==2?I:-I:0,g[0].push(E),T=1&j?(_=c.andln(7)+S&7)!==3&&_!==5||I!==2?j:-j:0,g[1].push(T),2*w===E+1&&(w=1-w),2*S===T+1&&(S=1-S),i.iushrn(1),c.iushrn(1)}return g},t.cachedProperty=function(i,c,g){var _="_"+c;i.prototype[c]=function(){return this[_]!==void 0?this[_]:this[_]=g.call(this)}},t.parseBytes=function(i){return typeof i=="string"?t.toArray(i,"hex"):i},t.intFromLE=function(i){return new n(i,"hex","le")}}(wa);var e8={},Xf=Ei,zm=wa,Zv=zm.getNAF,QN=zm.getJSF,Qv=zm.assert;function dd(e,t){this.type=e,this.p=new Xf(t.p,16),this.red=t.prime?Xf.red(t.prime):Xf.mont(this.p),this.zero=new Xf(0).toRed(this.red),this.one=new Xf(1).toRed(this.red),this.two=new Xf(2).toRed(this.red),this.n=t.n&&new Xf(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Xv=dd;function qa(e,t){this.curve=e,this.type=t,this.precomputed=null}dd.prototype.point=function(){throw new Error("Not implemented")},dd.prototype.validate=function(){throw new Error("Not implemented")},dd.prototype._fixedNafMul=function(e,t){Qv(e.precomputed);var n=e._getDoubles(),r=Zv(t,1,this._bitLength),o=(1<<n.step+1)-(n.step%2==0?2:1);o/=3;var i,c,g=[];for(i=0;i<r.length;i+=n.step){c=0;for(var _=i+n.step-1;_>=i;_--)c=(c<<1)+r[_];g.push(c)}for(var w=this.jpoint(null,null,null),S=this.jpoint(null,null,null),E=o;E>0;E--){for(i=0;i<g.length;i++)(c=g[i])===E?S=S.mixedAdd(n.points[i]):c===-E&&(S=S.mixedAdd(n.points[i].neg()));w=w.add(S)}return w.toP()},dd.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var o=r.points,i=Zv(t,n,this._bitLength),c=this.jpoint(null,null,null),g=i.length-1;g>=0;g--){for(var _=0;g>=0&&i[g]===0;g--)_++;if(g>=0&&_++,c=c.dblp(_),g<0)break;var w=i[g];Qv(w!==0),c=e.type==="affine"?w>0?c.mixedAdd(o[w-1>>1]):c.mixedAdd(o[-w-1>>1].neg()):w>0?c.add(o[w-1>>1]):c.add(o[-w-1>>1].neg())}return e.type==="affine"?c.toP():c},dd.prototype._wnafMulAdd=function(e,t,n,r,o){var i,c,g,_=this._wnafT1,w=this._wnafT2,S=this._wnafT3,E=0;for(i=0;i<r;i++){var T=(g=t[i])._getNAFPoints(e);_[i]=T.wnd,w[i]=T.points}for(i=r-1;i>=1;i-=2){var I=i-1,j=i;if(_[I]===1&&_[j]===1){var H=[t[I],null,null,t[j]];t[I].y.cmp(t[j].y)===0?(H[1]=t[I].add(t[j]),H[2]=t[I].toJ().mixedAdd(t[j].neg())):t[I].y.cmp(t[j].y.redNeg())===0?(H[1]=t[I].toJ().mixedAdd(t[j]),H[2]=t[I].add(t[j].neg())):(H[1]=t[I].toJ().mixedAdd(t[j]),H[2]=t[I].toJ().mixedAdd(t[j].neg()));var V=[-3,-1,-5,-7,0,7,5,1,3],ee=QN(n[I],n[j]);for(E=Math.max(ee[0].length,E),S[I]=new Array(E),S[j]=new Array(E),c=0;c<E;c++){var X=0|ee[0][c],ue=0|ee[1][c];S[I][c]=V[3*(X+1)+(ue+1)],S[j][c]=0,w[I]=H}}else S[I]=Zv(n[I],_[I],this._bitLength),S[j]=Zv(n[j],_[j],this._bitLength),E=Math.max(S[I].length,E),E=Math.max(S[j].length,E)}var le=this.jpoint(null,null,null),pe=this._wnafT4;for(i=E;i>=0;i--){for(var Me=0;i>=0;){var ye=!0;for(c=0;c<r;c++)pe[c]=0|S[c][i],pe[c]!==0&&(ye=!1);if(!ye)break;Me++,i--}if(i>=0&&Me++,le=le.dblp(Me),i<0)break;for(c=0;c<r;c++){var Te=pe[c];Te!==0&&(Te>0?g=w[c][Te-1>>1]:Te<0&&(g=w[c][-Te-1>>1].neg()),le=g.type==="affine"?le.mixedAdd(g):le.add(g))}}for(i=0;i<r;i++)w[i]=null;return o?le:le.toP()},dd.BasePoint=qa,qa.prototype.eq=function(){throw new Error("Not implemented")},qa.prototype.validate=function(){return this.curve.validate(this)},dd.prototype.decodePoint=function(e,t){e=zm.toArray(e,t);var n=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1==2*n)return e[0]===6?Qv(e[e.length-1]%2==0):e[0]===7&&Qv(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((e[0]===2||e[0]===3)&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),e[0]===3);throw new Error("Unknown point format")},qa.prototype.encodeCompressed=function(e){return this.encode(e,!0)},qa.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},qa.prototype.encode=function(e,t){return zm.encode(this._encode(t),e)},qa.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},qa.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},qa.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,o=0;o<t;o+=e){for(var i=0;i<e;i++)r=r.dbl();n.push(r)}return{step:e,points:n}},qa.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=n===1?null:this.dbl(),o=1;o<n;o++)t[o]=t[o-1].add(r);return{wnd:e,points:t}},qa.prototype._getBeta=function(){return null},qa.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t};var Yr=Ei,t8=On,$0=Xv,XN=wa.assert;function Ha(e){$0.call(this,"short",e),this.a=new Yr(e.a,16).toRed(this.red),this.b=new Yr(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}t8(Ha,$0);var JN=Ha;function ki(e,t,n,r){$0.BasePoint.call(this,e,"affine"),t===null&&n===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Yr(t,16),this.y=new Yr(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function Ui(e,t,n,r){$0.BasePoint.call(this,e,"jacobian"),t===null&&n===null&&r===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Yr(0)):(this.x=new Yr(t,16),this.y=new Yr(n,16),this.z=new Yr(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Ha.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var t,n;if(e.beta)t=new Yr(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new Yr(e.lambda,16);else{var o=this._getEndoRoots(this.n);this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))===0?n=o[0]:(n=o[1],XN(this.g.mul(n).x.cmp(this.g.x.redMul(t))===0))}return{beta:t,lambda:n,basis:e.basis?e.basis.map(function(i){return{a:new Yr(i.a,16),b:new Yr(i.b,16)}}):this._getEndoBasis(n)}}},Ha.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:Yr.mont(e),n=new Yr(2).toRed(t).redInvm(),r=n.redNeg(),o=new Yr(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(o).fromRed(),r.redSub(o).fromRed()]},Ha.prototype._getEndoBasis=function(e){for(var t,n,r,o,i,c,g,_,w,S=this.n.ushrn(Math.floor(this.n.bitLength()/2)),E=e,T=this.n.clone(),I=new Yr(1),j=new Yr(0),H=new Yr(0),V=new Yr(1),ee=0;E.cmpn(0)!==0;){var X=T.div(E);_=T.sub(X.mul(E)),w=H.sub(X.mul(I));var ue=V.sub(X.mul(j));if(!r&&_.cmp(S)<0)t=g.neg(),n=I,r=_.neg(),o=w;else if(r&&++ee==2)break;g=_,T=E,E=_,H=I,I=w,V=j,j=ue}i=_.neg(),c=w;var le=r.sqr().add(o.sqr());return i.sqr().add(c.sqr()).cmp(le)>=0&&(i=t,c=n),r.negative&&(r=r.neg(),o=o.neg()),i.negative&&(i=i.neg(),c=c.neg()),[{a:r,b:o},{a:i,b:c}]},Ha.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],o=r.b.mul(e).divRound(this.n),i=n.b.neg().mul(e).divRound(this.n),c=o.mul(n.a),g=i.mul(r.a),_=o.mul(n.b),w=i.mul(r.b);return{k1:e.sub(c).sub(g),k2:_.add(w).neg()}},Ha.prototype.pointFromX=function(e,t){(e=new Yr(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(r.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var o=r.fromRed().isOdd();return(t&&!o||!t&&o)&&(r=r.redNeg()),this.point(e,r)},Ha.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return n.redSqr().redISub(o).cmpn(0)===0},Ha.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,o=this._endoWnafT2,i=0;i<e.length;i++){var c=this._endoSplit(t[i]),g=e[i],_=g._getBeta();c.k1.negative&&(c.k1.ineg(),g=g.neg(!0)),c.k2.negative&&(c.k2.ineg(),_=_.neg(!0)),r[2*i]=g,r[2*i+1]=_,o[2*i]=c.k1,o[2*i+1]=c.k2}for(var w=this._wnafMulAdd(1,r,o,2*i,n),S=0;S<2*i;S++)r[S]=null,o[S]=null;return w},t8(ki,$0.BasePoint),Ha.prototype.point=function(e,t,n){return new ki(this,e,t,n)},Ha.prototype.pointFromJSON=function(e,t){return ki.fromJSON(this,e,t)},ki.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(o){return n.point(o.x.redMul(n.endo.beta),o.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},ki.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},ki.fromJSON=function(e,t,n){typeof t=="string"&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function o(c){return e.point(c[0],c[1],n)}var i=t[2];return r.precomputed={beta:null,doubles:i.doubles&&{step:i.doubles.step,points:[r].concat(i.doubles.points.map(o))},naf:i.naf&&{wnd:i.naf.wnd,points:[r].concat(i.naf.points.map(o))}},r},ki.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},ki.prototype.isInfinity=function(){return this.inf},ki.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);t.cmpn(0)!==0&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},ki.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),o=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),i=o.redSqr().redISub(this.x.redAdd(this.x)),c=o.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,c)},ki.prototype.getX=function(){return this.x.fromRed()},ki.prototype.getY=function(){return this.y.fromRed()},ki.prototype.mul=function(e){return e=new Yr(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},ki.prototype.mulAdd=function(e,t,n){var r=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o):this.curve._wnafMulAdd(1,r,o,2)},ki.prototype.jmulAdd=function(e,t,n){var r=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o,!0):this.curve._wnafMulAdd(1,r,o,2,!0)},ki.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)},ki.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(o){return o.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},ki.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},t8(Ui,$0.BasePoint),Ha.prototype.jpoint=function(e,t,n){return new Ui(this,e,t,n)},Ui.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},Ui.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Ui.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),o=e.x.redMul(n),i=this.y.redMul(t.redMul(e.z)),c=e.y.redMul(n.redMul(this.z)),g=r.redSub(o),_=i.redSub(c);if(g.cmpn(0)===0)return _.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var w=g.redSqr(),S=w.redMul(g),E=r.redMul(w),T=_.redSqr().redIAdd(S).redISub(E).redISub(E),I=_.redMul(E.redISub(T)).redISub(i.redMul(S)),j=this.z.redMul(e.z).redMul(g);return this.curve.jpoint(T,I,j)},Ui.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),o=this.y,i=e.y.redMul(t).redMul(this.z),c=n.redSub(r),g=o.redSub(i);if(c.cmpn(0)===0)return g.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var _=c.redSqr(),w=_.redMul(c),S=n.redMul(_),E=g.redSqr().redIAdd(w).redISub(S).redISub(S),T=g.redMul(S.redISub(E)).redISub(o.redMul(w)),I=this.z.redMul(c);return this.curve.jpoint(E,T,I)},Ui.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t<e;t++)n=n.dbl();return n}var r=this.curve.a,o=this.curve.tinv,i=this.x,c=this.y,g=this.z,_=g.redSqr().redSqr(),w=c.redAdd(c);for(t=0;t<e;t++){var S=i.redSqr(),E=w.redSqr(),T=E.redSqr(),I=S.redAdd(S).redIAdd(S).redIAdd(r.redMul(_)),j=i.redMul(E),H=I.redSqr().redISub(j.redAdd(j)),V=j.redISub(H),ee=I.redMul(V);ee=ee.redIAdd(ee).redISub(T);var X=w.redMul(g);t+1<e&&(_=_.redMul(T)),i=H,g=X,w=ee}return this.curve.jpoint(i,w.redMul(o),g)},Ui.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},Ui.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),o=this.y.redSqr(),i=o.redSqr(),c=this.x.redAdd(o).redSqr().redISub(r).redISub(i);c=c.redIAdd(c);var g=r.redAdd(r).redIAdd(r),_=g.redSqr().redISub(c).redISub(c),w=i.redIAdd(i);w=(w=w.redIAdd(w)).redIAdd(w),e=_,t=g.redMul(c.redISub(_)).redISub(w),n=this.y.redAdd(this.y)}else{var S=this.x.redSqr(),E=this.y.redSqr(),T=E.redSqr(),I=this.x.redAdd(E).redSqr().redISub(S).redISub(T);I=I.redIAdd(I);var j=S.redAdd(S).redIAdd(S),H=j.redSqr(),V=T.redIAdd(T);V=(V=V.redIAdd(V)).redIAdd(V),e=H.redISub(I).redISub(I),t=j.redMul(I.redISub(e)).redISub(V),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},Ui.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),o=this.y.redSqr(),i=o.redSqr(),c=this.x.redAdd(o).redSqr().redISub(r).redISub(i);c=c.redIAdd(c);var g=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),_=g.redSqr().redISub(c).redISub(c);e=_;var w=i.redIAdd(i);w=(w=w.redIAdd(w)).redIAdd(w),t=g.redMul(c.redISub(_)).redISub(w),n=this.y.redAdd(this.y)}else{var S=this.z.redSqr(),E=this.y.redSqr(),T=this.x.redMul(E),I=this.x.redSub(S).redMul(this.x.redAdd(S));I=I.redAdd(I).redIAdd(I);var j=T.redIAdd(T),H=(j=j.redIAdd(j)).redAdd(j);e=I.redSqr().redISub(H),n=this.y.redAdd(this.z).redSqr().redISub(E).redISub(S);var V=E.redSqr();V=(V=(V=V.redIAdd(V)).redIAdd(V)).redIAdd(V),t=I.redMul(j.redISub(e)).redISub(V)}return this.curve.jpoint(e,t,n)},Ui.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,o=r.redSqr().redSqr(),i=t.redSqr(),c=n.redSqr(),g=i.redAdd(i).redIAdd(i).redIAdd(e.redMul(o)),_=t.redAdd(t),w=(_=_.redIAdd(_)).redMul(c),S=g.redSqr().redISub(w.redAdd(w)),E=w.redISub(S),T=c.redSqr();T=(T=(T=T.redIAdd(T)).redIAdd(T)).redIAdd(T);var I=g.redMul(E).redISub(T),j=n.redAdd(n).redMul(r);return this.curve.jpoint(S,I,j)},Ui.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),o=e.redAdd(e).redIAdd(e),i=o.redSqr(),c=this.x.redAdd(t).redSqr().redISub(e).redISub(r),g=(c=(c=(c=c.redIAdd(c)).redAdd(c).redIAdd(c)).redISub(i)).redSqr(),_=r.redIAdd(r);_=(_=(_=_.redIAdd(_)).redIAdd(_)).redIAdd(_);var w=o.redIAdd(c).redSqr().redISub(i).redISub(g).redISub(_),S=t.redMul(w);S=(S=S.redIAdd(S)).redIAdd(S);var E=this.x.redMul(g).redISub(S);E=(E=E.redIAdd(E)).redIAdd(E);var T=this.y.redMul(w.redMul(_.redISub(w)).redISub(c.redMul(g)));T=(T=(T=T.redIAdd(T)).redIAdd(T)).redIAdd(T);var I=this.z.redAdd(c).redSqr().redISub(n).redISub(g);return this.curve.jpoint(E,T,I)},Ui.prototype.mul=function(e,t){return e=new Yr(e,t),this.curve._wnafMul(this,e)},Ui.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0)!==0)return!1;var r=t.redMul(this.z),o=n.redMul(e.z);return this.y.redMul(o).redISub(e.y.redMul(r)).cmpn(0)===0},Ui.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(this.x.cmp(n)===0)return!0;for(var r=e.clone(),o=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(o),this.x.cmp(n)===0)return!0}},Ui.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},Ui.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var V0=Ei,ZE=On,Jv=Xv,eD=wa;function Y0(e){Jv.call(this,"mont",e),this.a=new V0(e.a,16).toRed(this.red),this.b=new V0(e.b,16).toRed(this.red),this.i4=new V0(4).toRed(this.red).redInvm(),this.two=new V0(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}ZE(Y0,Jv);var tD=Y0;function Mi(e,t,n){Jv.BasePoint.call(this,e,"projective"),t===null&&n===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new V0(t,16),this.z=new V0(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}Y0.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return r.redSqrt().redSqr().cmp(r)===0},ZE(Mi,Jv.BasePoint),Y0.prototype.decodePoint=function(e,t){return this.point(eD.toArray(e,t),1)},Y0.prototype.point=function(e,t){return new Mi(this,e,t)},Y0.prototype.pointFromJSON=function(e){return Mi.fromJSON(this,e)},Mi.prototype.precompute=function(){},Mi.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Mi.fromJSON=function(e,t){return new Mi(e,t[0],t[1]||e.one)},Mi.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Mi.prototype.isInfinity=function(){return this.z.cmpn(0)===0},Mi.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),o=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,o)},Mi.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},Mi.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),o=e.x.redAdd(e.z),i=e.x.redSub(e.z).redMul(n),c=o.redMul(r),g=t.z.redMul(i.redAdd(c).redSqr()),_=t.x.redMul(i.redISub(c).redSqr());return this.curve.point(g,_)},Mi.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),o=[];t.cmpn(0)!==0;t.iushrn(1))o.push(t.andln(1));for(var i=o.length-1;i>=0;i--)o[i]===0?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},Mi.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},Mi.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},Mi.prototype.eq=function(e){return this.getX().cmp(e.getX())===0},Mi.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Mi.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var Gl=Ei,QE=On,eb=Xv,nD=wa.assert;function Bu(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,eb.call(this,"edwards",e),this.a=new Gl(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Gl(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Gl(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),nD(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|e.c)==1}QE(Bu,eb);var rD=Bu;function Mr(e,t,n,r,o){eb.BasePoint.call(this,e,"projective"),t===null&&n===null&&r===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new Gl(t,16),this.y=new Gl(n,16),this.z=r?new Gl(r,16):this.curve.one,this.t=o&&new Gl(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}Bu.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},Bu.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},Bu.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},Bu.prototype.pointFromX=function(e,t){(e=new Gl(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),o=this.one.redSub(this.c2.redMul(this.d).redMul(n)),i=r.redMul(o.redInvm()),c=i.redSqrt();if(c.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");var g=c.fromRed().isOdd();return(t&&!g||!t&&g)&&(c=c.redNeg()),this.point(e,c)},Bu.prototype.pointFromY=function(e,t){(e=new Gl(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),o=n.redMul(this.d).redMul(this.c2).redSub(this.a),i=r.redMul(o.redInvm());if(i.cmp(this.zero)===0){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var c=i.redSqrt();if(c.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");return c.fromRed().isOdd()!==t&&(c=c.redNeg()),this.point(c,e)},Bu.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),o=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return r.cmp(o)===0},QE(Mr,eb.BasePoint),Bu.prototype.pointFromJSON=function(e){return Mr.fromJSON(this,e)},Bu.prototype.point=function(e,t,n,r){return new Mr(this,e,t,n,r)},Mr.fromJSON=function(e,t){return new Mr(e,t[0],t[1],t[2])},Mr.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Mr.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},Mr.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),o=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=r.redAdd(t),c=i.redSub(n),g=r.redSub(t),_=o.redMul(c),w=i.redMul(g),S=o.redMul(g),E=c.redMul(i);return this.curve.point(_,w,E,S)},Mr.prototype._projDbl=function(){var e,t,n,r,o,i,c=this.x.redAdd(this.y).redSqr(),g=this.x.redSqr(),_=this.y.redSqr();if(this.curve.twisted){var w=(r=this.curve._mulA(g)).redAdd(_);this.zOne?(e=c.redSub(g).redSub(_).redMul(w.redSub(this.curve.two)),t=w.redMul(r.redSub(_)),n=w.redSqr().redSub(w).redSub(w)):(o=this.z.redSqr(),i=w.redSub(o).redISub(o),e=c.redSub(g).redISub(_).redMul(i),t=w.redMul(r.redSub(_)),n=w.redMul(i))}else r=g.redAdd(_),o=this.curve._mulC(this.z).redSqr(),i=r.redSub(o).redSub(o),e=this.curve._mulC(c.redISub(r)).redMul(i),t=this.curve._mulC(r).redMul(g.redISub(_)),n=r.redMul(i);return this.curve.point(e,t,n)},Mr.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Mr.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),o=this.z.redMul(e.z.redAdd(e.z)),i=n.redSub(t),c=o.redSub(r),g=o.redAdd(r),_=n.redAdd(t),w=i.redMul(c),S=g.redMul(_),E=i.redMul(_),T=c.redMul(g);return this.curve.point(w,S,T,E)},Mr.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),o=r.redSqr(),i=this.x.redMul(e.x),c=this.y.redMul(e.y),g=this.curve.d.redMul(i).redMul(c),_=o.redSub(g),w=o.redAdd(g),S=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(c),E=r.redMul(_).redMul(S);return this.curve.twisted?(t=r.redMul(w).redMul(c.redSub(this.curve._mulA(i))),n=_.redMul(w)):(t=r.redMul(w).redMul(c.redSub(i)),n=this.curve._mulC(_).redMul(w)),this.curve.point(E,t,n)},Mr.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},Mr.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},Mr.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},Mr.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},Mr.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},Mr.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Mr.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Mr.prototype.getY=function(){return this.normalize(),this.y.fromRed()},Mr.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0},Mr.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),this.x.cmp(t)===0)return!0}},Mr.prototype.toP=Mr.prototype.normalize,Mr.prototype.mixedAdd=Mr.prototype.add,function(e){var t=e;t.base=Xv,t.short=JN,t.mont=tD,t.edwards=rD}(e8);var tb={},nb={},zn={},iD=Ua,oD=On;function aD(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0||t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function XE(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function JE(e){return e.length===1?"0"+e:e}function ek(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}zn.inherits=oD,zn.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e=="string")if(t){if(t==="hex")for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var r=0,o=0;o<e.length;o++){var i=e.charCodeAt(o);i<128?n[r++]=i:i<2048?(n[r++]=i>>6|192,n[r++]=63&i|128):aD(e,o)?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++o)),n[r++]=i>>18|240,n[r++]=i>>12&63|128,n[r++]=i>>6&63|128,n[r++]=63&i|128):(n[r++]=i>>12|224,n[r++]=i>>6&63|128,n[r++]=63&i|128)}else for(o=0;o<e.length;o++)n[o]=0|e[o];return n},zn.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=JE(e[n].toString(16));return t},zn.htonl=XE,zn.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e[r];t==="little"&&(o=XE(o)),n+=ek(o.toString(16))}return n},zn.zero2=JE,zn.zero8=ek,zn.join32=function(e,t,n,r){var o=n-t;iD(o%4==0);for(var i=new Array(o/4),c=0,g=t;c<i.length;c++,g+=4){var _;_=r==="big"?e[g]<<24|e[g+1]<<16|e[g+2]<<8|e[g+3]:e[g+3]<<24|e[g+2]<<16|e[g+1]<<8|e[g],i[c]=_>>>0}return i},zn.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r<e.length;r++,o+=4){var i=e[r];t==="big"?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},zn.rotr32=function(e,t){return e>>>t|e<<32-t},zn.rotl32=function(e,t){return e<<t|e>>>32-t},zn.sum32=function(e,t){return e+t>>>0},zn.sum32_3=function(e,t,n){return e+t+n>>>0},zn.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},zn.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},zn.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,c=(i<r?1:0)+n+o;e[t]=c>>>0,e[t+1]=i},zn.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},zn.sum64_lo=function(e,t,n,r){return t+r>>>0},zn.sum64_4_hi=function(e,t,n,r,o,i,c,g){var _=0,w=t;return _+=(w=w+r>>>0)<t?1:0,_+=(w=w+i>>>0)<i?1:0,e+n+o+c+(_+=(w=w+g>>>0)<g?1:0)>>>0},zn.sum64_4_lo=function(e,t,n,r,o,i,c,g){return t+r+i+g>>>0},zn.sum64_5_hi=function(e,t,n,r,o,i,c,g,_,w){var S=0,E=t;return S+=(E=E+r>>>0)<t?1:0,S+=(E=E+i>>>0)<i?1:0,S+=(E=E+g>>>0)<g?1:0,e+n+o+c+_+(S+=(E=E+w>>>0)<w?1:0)>>>0},zn.sum64_5_lo=function(e,t,n,r,o,i,c,g,_,w){return t+r+i+g+w>>>0},zn.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},zn.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},zn.shr64_hi=function(e,t,n){return e>>>n},zn.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0};var G0={},tk=zn,sD=Ua;function rb(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}G0.BlockHash=rb,rb.prototype.update=function(e,t){if(e=tk.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=tk.join32(e,0,e.length-n,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},rb.prototype.digest=function(e){return this.update(this._pad()),sD(this.pending===null),this._digest(e)},rb.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(e<<=3,this.endian==="big"){for(var i=8;i<this.padLength;i++)r[o++]=0;r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=e>>>24&255,r[o++]=e>>>16&255,r[o++]=e>>>8&255,r[o++]=255&e}else for(r[o++]=255&e,r[o++]=e>>>8&255,r[o++]=e>>>16&255,r[o++]=e>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;i<this.padLength;i++)r[o++]=0;return r};var Z0={},ju={},zu=zn.rotr32;function nk(e,t,n){return e&t^~e&n}function rk(e,t,n){return e&t^e&n^t&n}function ik(e,t,n){return e^t^n}ju.ft_1=function(e,t,n,r){return e===0?nk(t,n,r):e===1||e===3?ik(t,n,r):e===2?rk(t,n,r):void 0},ju.ch32=nk,ju.maj32=rk,ju.p32=ik,ju.s0_256=function(e){return zu(e,2)^zu(e,13)^zu(e,22)},ju.s1_256=function(e){return zu(e,6)^zu(e,11)^zu(e,25)},ju.g0_256=function(e){return zu(e,7)^zu(e,18)^e>>>3},ju.g1_256=function(e){return zu(e,17)^zu(e,19)^e>>>10};var Q0=zn,uD=G0,lD=ju,n8=Q0.rotl32,Um=Q0.sum32,cD=Q0.sum32_5,dD=lD.ft_1,ok=uD.BlockHash,fD=[1518500249,1859775393,2400959708,3395469782];function Uu(){if(!(this instanceof Uu))return new Uu;ok.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Q0.inherits(Uu,ok);var hD=Uu;Uu.blockSize=512,Uu.outSize=160,Uu.hmacStrength=80,Uu.padLength=64,Uu.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=n8(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var o=this.h[0],i=this.h[1],c=this.h[2],g=this.h[3],_=this.h[4];for(r=0;r<n.length;r++){var w=~~(r/20),S=cD(n8(o,5),dD(w,i,c,g),_,n[r],fD[w]);_=g,g=c,c=n8(i,30),i=o,o=S}this.h[0]=Um(this.h[0],o),this.h[1]=Um(this.h[1],i),this.h[2]=Um(this.h[2],c),this.h[3]=Um(this.h[3],g),this.h[4]=Um(this.h[4],_)},Uu.prototype._digest=function(e){return e==="hex"?Q0.toHex32(this.h,"big"):Q0.split32(this.h,"big")};var X0=zn,pD=G0,J0=ju,mD=Ua,Ls=X0.sum32,gD=X0.sum32_4,vD=X0.sum32_5,bD=J0.ch32,yD=J0.maj32,wD=J0.s0_256,_D=J0.s1_256,SD=J0.g0_256,ED=J0.g1_256,ak=pD.BlockHash,kD=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function Fu(){if(!(this instanceof Fu))return new Fu;ak.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=kD,this.W=new Array(64)}X0.inherits(Fu,ak);var sk=Fu;Fu.blockSize=512,Fu.outSize=256,Fu.hmacStrength=192,Fu.padLength=64,Fu.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=gD(ED(n[r-2]),n[r-7],SD(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],c=this.h[2],g=this.h[3],_=this.h[4],w=this.h[5],S=this.h[6],E=this.h[7];for(mD(this.k.length===n.length),r=0;r<n.length;r++){var T=vD(E,_D(_),bD(_,w,S),this.k[r],n[r]),I=Ls(wD(o),yD(o,i,c));E=S,S=w,w=_,_=Ls(g,T),g=c,c=i,i=o,o=Ls(T,I)}this.h[0]=Ls(this.h[0],o),this.h[1]=Ls(this.h[1],i),this.h[2]=Ls(this.h[2],c),this.h[3]=Ls(this.h[3],g),this.h[4]=Ls(this.h[4],_),this.h[5]=Ls(this.h[5],w),this.h[6]=Ls(this.h[6],S),this.h[7]=Ls(this.h[7],E)},Fu.prototype._digest=function(e){return e==="hex"?X0.toHex32(this.h,"big"):X0.split32(this.h,"big")};var r8=zn,uk=sk;function Zl(){if(!(this instanceof Zl))return new Zl;uk.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r8.inherits(Zl,uk);var MD=Zl;Zl.blockSize=512,Zl.outSize=224,Zl.hmacStrength=192,Zl.padLength=64,Zl.prototype._digest=function(e){return e==="hex"?r8.toHex32(this.h.slice(0,7),"big"):r8.split32(this.h.slice(0,7),"big")};var Vo=zn,CD=G0,xD=Ua,Ku=Vo.rotr64_hi,qu=Vo.rotr64_lo,lk=Vo.shr64_hi,ck=Vo.shr64_lo,fd=Vo.sum64,i8=Vo.sum64_hi,o8=Vo.sum64_lo,AD=Vo.sum64_4_hi,RD=Vo.sum64_4_lo,TD=Vo.sum64_5_hi,PD=Vo.sum64_5_lo,dk=CD.BlockHash,LD=[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 Is(){if(!(this instanceof Is))return new Is;dk.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=LD,this.W=new Array(160)}Vo.inherits(Is,dk);var fk=Is;function ID(e,t,n,r,o){var i=e&n^~e&o;return i<0&&(i+=4294967296),i}function OD(e,t,n,r,o,i){var c=t&r^~t&i;return c<0&&(c+=4294967296),c}function ND(e,t,n,r,o){var i=e&n^e&o^n&o;return i<0&&(i+=4294967296),i}function DD(e,t,n,r,o,i){var c=t&r^t&i^r&i;return c<0&&(c+=4294967296),c}function BD(e,t){var n=Ku(e,t,28)^Ku(t,e,2)^Ku(t,e,7);return n<0&&(n+=4294967296),n}function jD(e,t){var n=qu(e,t,28)^qu(t,e,2)^qu(t,e,7);return n<0&&(n+=4294967296),n}function zD(e,t){var n=Ku(e,t,14)^Ku(e,t,18)^Ku(t,e,9);return n<0&&(n+=4294967296),n}function UD(e,t){var n=qu(e,t,14)^qu(e,t,18)^qu(t,e,9);return n<0&&(n+=4294967296),n}function FD(e,t){var n=Ku(e,t,1)^Ku(e,t,8)^lk(e,t,7);return n<0&&(n+=4294967296),n}function KD(e,t){var n=qu(e,t,1)^qu(e,t,8)^ck(e,t,7);return n<0&&(n+=4294967296),n}function qD(e,t){var n=Ku(e,t,19)^Ku(t,e,29)^lk(e,t,6);return n<0&&(n+=4294967296),n}function HD(e,t){var n=qu(e,t,19)^qu(t,e,29)^ck(e,t,6);return n<0&&(n+=4294967296),n}Is.blockSize=1024,Is.outSize=512,Is.hmacStrength=192,Is.padLength=128,Is.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var o=qD(n[r-4],n[r-3]),i=HD(n[r-4],n[r-3]),c=n[r-14],g=n[r-13],_=FD(n[r-30],n[r-29]),w=KD(n[r-30],n[r-29]),S=n[r-32],E=n[r-31];n[r]=AD(o,i,c,g,_,w,S,E),n[r+1]=RD(o,i,c,g,_,w,S,E)}},Is.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],o=this.h[1],i=this.h[2],c=this.h[3],g=this.h[4],_=this.h[5],w=this.h[6],S=this.h[7],E=this.h[8],T=this.h[9],I=this.h[10],j=this.h[11],H=this.h[12],V=this.h[13],ee=this.h[14],X=this.h[15];xD(this.k.length===n.length);for(var ue=0;ue<n.length;ue+=2){var le=ee,pe=X,Me=zD(E,T),ye=UD(E,T),Te=ID(E,T,I,j,H),y=OD(E,T,I,j,H,V),x=this.k[ue],d=this.k[ue+1],p=n[ue],h=n[ue+1],f=TD(le,pe,Me,ye,Te,y,x,d,p,h),l=PD(le,pe,Me,ye,Te,y,x,d,p,h);le=BD(r,o),pe=jD(r,o),Me=ND(r,o,i,c,g),ye=DD(r,o,i,c,g,_);var b=i8(le,pe,Me,ye),C=o8(le,pe,Me,ye);ee=H,X=V,H=I,V=j,I=E,j=T,E=i8(w,S,f,l),T=o8(S,S,f,l),w=g,S=_,g=i,_=c,i=r,c=o,r=i8(f,l,b,C),o=o8(f,l,b,C)}fd(this.h,0,r,o),fd(this.h,2,i,c),fd(this.h,4,g,_),fd(this.h,6,w,S),fd(this.h,8,E,T),fd(this.h,10,I,j),fd(this.h,12,H,V),fd(this.h,14,ee,X)},Is.prototype._digest=function(e){return e==="hex"?Vo.toHex32(this.h,"big"):Vo.split32(this.h,"big")};var a8=zn,hk=fk;function Ql(){if(!(this instanceof Ql))return new Ql;hk.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}a8.inherits(Ql,hk);var WD=Ql;Ql.blockSize=1024,Ql.outSize=384,Ql.hmacStrength=192,Ql.padLength=128,Ql.prototype._digest=function(e){return e==="hex"?a8.toHex32(this.h.slice(0,12),"big"):a8.split32(this.h.slice(0,12),"big")},Z0.sha1=hD,Z0.sha224=MD,Z0.sha256=sk,Z0.sha384=WD,Z0.sha512=fk;var pk={},Jf=zn,$D=G0,ib=Jf.rotl32,mk=Jf.sum32,Fm=Jf.sum32_3,gk=Jf.sum32_4,vk=$D.BlockHash;function Hu(){if(!(this instanceof Hu))return new Hu;vk.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function bk(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function VD(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function YD(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}Jf.inherits(Hu,vk),pk.ripemd160=Hu,Hu.blockSize=512,Hu.outSize=160,Hu.hmacStrength=192,Hu.padLength=64,Hu.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],o=this.h[2],i=this.h[3],c=this.h[4],g=n,_=r,w=o,S=i,E=c,T=0;T<80;T++){var I=mk(ib(gk(n,bk(T,r,o,i),e[GD[T]+t],VD(T)),QD[T]),c);n=c,c=i,i=ib(o,10),o=r,r=I,I=mk(ib(gk(g,bk(79-T,_,w,S),e[ZD[T]+t],YD(T)),XD[T]),E),g=E,E=S,S=ib(w,10),w=_,_=I}I=Fm(this.h[1],o,S),this.h[1]=Fm(this.h[2],i,E),this.h[2]=Fm(this.h[3],c,g),this.h[3]=Fm(this.h[4],n,_),this.h[4]=Fm(this.h[0],r,w),this.h[0]=I},Hu.prototype._digest=function(e){return e==="hex"?Jf.toHex32(this.h,"little"):Jf.split32(this.h,"little")};var GD=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],ZD=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],QD=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],XD=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],JD=zn,eB=Ua;function ep(e,t,n){if(!(this instanceof ep))return new ep(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(JD.toArray(t,n))}var yk,wk,tB=ep;ep.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),eB(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=new this.Hash().update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},ep.prototype.update=function(e,t){return this.inner.update(e,t),this},ep.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)},function(e){var t=e;t.utils=zn,t.common=G0,t.sha=Z0,t.ripemd=pk,t.hmac=tB,t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160}(nb),function(e){var t,n=e,r=nb,o=e8,i=wa.assert;function c(_){_.type==="short"?this.curve=new o.short(_):_.type==="edwards"?this.curve=new o.edwards(_):this.curve=new o.mont(_),this.g=this.curve.g,this.n=this.curve.n,this.hash=_.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function g(_,w){Object.defineProperty(n,_,{configurable:!0,enumerable:!0,get:function(){var S=new c(w);return Object.defineProperty(n,_,{configurable:!0,enumerable:!0,value:S}),S}})}n.PresetCurve=c,g("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),g("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),g("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),g("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:r.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),g("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:r.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),g("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),g("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{t=wk?yk:(wk=1,yk={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}})}catch{t=void 0}g("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",t]})}(tb);var nB=nb,eh=J4,_k=Ua;function hd(e){if(!(this instanceof hd))return new hd(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=eh.toArray(e.entropy,e.entropyEnc||"hex"),n=eh.toArray(e.nonce,e.nonceEnc||"hex"),r=eh.toArray(e.pers,e.persEnc||"hex");_k(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var rB=hd;hd.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},hd.prototype._hmac=function(){return new nB.hmac(this.hash,this.K)},hd.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},hd.prototype.reseed=function(e,t,n,r){typeof t!="string"&&(r=n,n=t,t=null),e=eh.toArray(e,t),n=eh.toArray(n,r),_k(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},hd.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof t!="string"&&(r=n,n=t,t=null),n&&(n=eh.toArray(n,r||"hex"),this._update(n));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var i=o.slice(0,e);return this._update(n),this._reseed++,eh.encode(i,t)};var iB=Ei,s8=wa.assert;function lo(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var oB=lo;lo.fromPublic=function(e,t,n){return t instanceof lo?t:new lo(e,{pub:t,pubEnc:n})},lo.fromPrivate=function(e,t,n){return t instanceof lo?t:new lo(e,{priv:t,privEnc:n})},lo.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},lo.prototype.getPublic=function(e,t){return typeof e=="string"&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},lo.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv},lo.prototype._importPrivate=function(e,t){this.priv=new iB(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},lo.prototype._importPublic=function(e,t){if(e.x||e.y)return this.ec.curve.type==="mont"?s8(e.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||s8(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},lo.prototype.derive=function(e){return e.validate()||s8(e.validate(),"public point not validated"),e.mul(this.priv).getX()},lo.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},lo.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},lo.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var ob=Ei,u8=wa,aB=u8.assert;function ab(e,t){if(e instanceof ab)return e;this._importDER(e,t)||(aB(e.r&&e.s,"Signature without r or s"),this.r=new ob(e.r,16),this.s=new ob(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var l8,Sk,sB=ab;function uB(){this.place=0}function c8(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(r===0||r>4)return!1;for(var o=0,i=0,c=t.place;i<r;i++,c++)o<<=8,o|=e[c],o>>>=0;return!(o<=127)&&(t.place=c,o)}function Ek(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return t===0?e:e.slice(t)}function d8(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}ab.prototype._importDER=function(e,t){e=u8.toArray(e,t);var n=new uB;if(e[n.place++]!==48)return!1;var r=c8(e,n);if(r===!1||r+n.place!==e.length||e[n.place++]!==2)return!1;var o=c8(e,n);if(o===!1)return!1;var i=e.slice(n.place,o+n.place);if(n.place+=o,e[n.place++]!==2)return!1;var c=c8(e,n);if(c===!1||e.length!==c+n.place)return!1;var g=e.slice(n.place,c+n.place);if(i[0]===0){if(!(128&i[1]))return!1;i=i.slice(1)}if(g[0]===0){if(!(128&g[1]))return!1;g=g.slice(1)}return this.r=new ob(i),this.s=new ob(g),this.recoveryParam=null,!0},ab.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=Ek(t),n=Ek(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];d8(r,t.length),(r=r.concat(t)).push(2),d8(r,n.length);var o=r.concat(n),i=[48];return d8(i,o.length),i=i.concat(o),u8.encode(i,e)};var Km=wa,kk=Km.assert,Mk=Km.parseBytes,tp=Km.cachedProperty;function Ci(e,t){this.eddsa=e,this._secret=Mk(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=Mk(t.pub)}Ci.fromPublic=function(e,t){return t instanceof Ci?t:new Ci(e,{pub:t})},Ci.fromSecret=function(e,t){return t instanceof Ci?t:new Ci(e,{secret:t})},Ci.prototype.secret=function(){return this._secret},tp(Ci,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),tp(Ci,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),tp(Ci,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r}),tp(Ci,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),tp(Ci,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),tp(Ci,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),Ci.prototype.sign=function(e){return kk(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},Ci.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},Ci.prototype.getSecret=function(e){return kk(this._secret,"KeyPair is public only"),Km.encode(this.secret(),e)},Ci.prototype.getPublic=function(e){return Km.encode(this.pubBytes(),e)};var lB=Ci,cB=Ei,sb=wa,dB=sb.assert,ub=sb.cachedProperty,fB=sb.parseBytes;function th(e,t){this.eddsa=e,typeof t!="object"&&(t=fB(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),dB(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof cB&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}ub(th,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),ub(th,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),ub(th,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),ub(th,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),th.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},th.prototype.toHex=function(){return sb.encode(this.toBytes(),"hex").toUpperCase()};var hB=th,pB=nb,mB=tb,np=wa,gB=np.assert,Ck=np.parseBytes,xk=lB,Ak=hB;function Yo(e){if(gB(e==="ed25519","only tested with ed25519 so far"),!(this instanceof Yo))return new Yo(e);e=mB[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=pB.sha512}var Rk,vB=Yo;function f8(){return Rk||(Rk=1,function(e){var t=e;t.version=ZN.version,t.utils=wa,t.rand=Z4(),t.curve=e8,t.curves=tb,t.ec=function(){if(Sk)return l8;Sk=1;var n=Ei,r=rB,o=wa,i=tb,c=Z4(),g=o.assert,_=oB,w=sB;function S(E){if(!(this instanceof S))return new S(E);typeof E=="string"&&(g(Object.prototype.hasOwnProperty.call(i,E),"Unknown curve "+E),E=i[E]),E instanceof i.PresetCurve&&(E={curve:E}),this.curve=E.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=E.curve.g,this.g.precompute(E.curve.n.bitLength()+1),this.hash=E.hash||E.curve.hash}return l8=S,S.prototype.keyPair=function(E){return new _(this,E)},S.prototype.keyFromPrivate=function(E,T){return _.fromPrivate(this,E,T)},S.prototype.keyFromPublic=function(E,T){return _.fromPublic(this,E,T)},S.prototype.genKeyPair=function(E){E||(E={});for(var T=new r({hash:this.hash,pers:E.pers,persEnc:E.persEnc||"utf8",entropy:E.entropy||c(this.hash.hmacStrength),entropyEnc:E.entropy&&E.entropyEnc||"utf8",nonce:this.n.toArray()}),I=this.n.byteLength(),j=this.n.sub(new n(2));;){var H=new n(T.generate(I));if(!(H.cmp(j)>0))return H.iaddn(1),this.keyFromPrivate(H)}},S.prototype._truncateToN=function(E,T){var I=8*E.byteLength()-this.n.bitLength();return I>0&&(E=E.ushrn(I)),!T&&E.cmp(this.n)>=0?E.sub(this.n):E},S.prototype.sign=function(E,T,I,j){typeof I=="object"&&(j=I,I=null),j||(j={}),T=this.keyFromPrivate(T,I),E=this._truncateToN(new n(E,16));for(var H=this.n.byteLength(),V=T.getPrivate().toArray("be",H),ee=E.toArray("be",H),X=new r({hash:this.hash,entropy:V,nonce:ee,pers:j.pers,persEnc:j.persEnc||"utf8"}),ue=this.n.sub(new n(1)),le=0;;le++){var pe=j.k?j.k(le):new n(X.generate(this.n.byteLength()));if(!((pe=this._truncateToN(pe,!0)).cmpn(1)<=0||pe.cmp(ue)>=0)){var Me=this.g.mul(pe);if(!Me.isInfinity()){var ye=Me.getX(),Te=ye.umod(this.n);if(Te.cmpn(0)!==0){var y=pe.invm(this.n).mul(Te.mul(T.getPrivate()).iadd(E));if((y=y.umod(this.n)).cmpn(0)!==0){var x=(Me.getY().isOdd()?1:0)|(ye.cmp(Te)!==0?2:0);return j.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),x^=1),new w({r:Te,s:y,recoveryParam:x})}}}}}},S.prototype.verify=function(E,T,I,j){E=this._truncateToN(new n(E,16)),I=this.keyFromPublic(I,j);var H=(T=new w(T,"hex")).r,V=T.s;if(H.cmpn(1)<0||H.cmp(this.n)>=0||V.cmpn(1)<0||V.cmp(this.n)>=0)return!1;var ee,X=V.invm(this.n),ue=X.mul(E).umod(this.n),le=X.mul(H).umod(this.n);return this.curve._maxwellTrick?!(ee=this.g.jmulAdd(ue,I.getPublic(),le)).isInfinity()&&ee.eqXToP(H):!(ee=this.g.mulAdd(ue,I.getPublic(),le)).isInfinity()&&ee.getX().umod(this.n).cmp(H)===0},S.prototype.recoverPubKey=function(E,T,I,j){g((3&I)===I,"The recovery param is more than two bits"),T=new w(T,j);var H=this.n,V=new n(E),ee=T.r,X=T.s,ue=1&I,le=I>>1;if(ee.cmp(this.curve.p.umod(this.curve.n))>=0&&le)throw new Error("Unable to find sencond key candinate");ee=le?this.curve.pointFromX(ee.add(this.curve.n),ue):this.curve.pointFromX(ee,ue);var pe=T.r.invm(H),Me=H.sub(V).mul(pe).umod(H),ye=X.mul(pe).umod(H);return this.g.mulAdd(Me,ee,ye)},S.prototype.getKeyRecoveryParam=function(E,T,I,j){if((T=new w(T,j)).recoveryParam!==null)return T.recoveryParam;for(var H=0;H<4;H++){var V;try{V=this.recoverPubKey(E,T,H)}catch{continue}if(V.eq(I))return H}throw new Error("Unable to find valid recovery factor")},l8}(),t.eddsa=vB}(GE)),GE}Yo.prototype.sign=function(e,t){e=Ck(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),o=this.g.mul(r),i=this.encodePoint(o),c=this.hashInt(i,n.pubBytes(),e).mul(n.priv()),g=r.add(c).umod(this.curve.n);return this.makeSignature({R:o,S:g,Rencoded:i})},Yo.prototype.verify=function(e,t,n){e=Ck(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),o=this.hashInt(t.Rencoded(),r.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(r.pub().mul(o)).eq(i)},Yo.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return np.intFromLE(e.digest()).umod(this.curve.n)},Yo.prototype.keyFromPublic=function(e){return xk.fromPublic(this,e)},Yo.prototype.keyFromSecret=function(e){return xk.fromSecret(this,e)},Yo.prototype.makeSignature=function(e){return e instanceof Ak?e:new Ak(this,e)},Yo.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},Yo.prototype.decodePoint=function(e){var t=(e=np.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=(128&e[t])!=0,o=np.intFromLE(n);return this.curve.pointFromY(o,r)},Yo.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},Yo.prototype.decodeInt=function(e){return np.intFromLE(e)},Yo.prototype.isPoint=function(e){return e instanceof this.pointClass};var Tk={exports:{}};(function(e){(function(t,n){function r(d,p){if(!d)throw new Error(p||"Assertion failed")}function o(d,p){d.super_=p;var h=function(){};h.prototype=p.prototype,d.prototype=new h,d.prototype.constructor=d}function i(d,p,h){if(i.isBN(d))return d;this.negative=0,this.words=null,this.length=0,this.red=null,d!==null&&(p!=="le"&&p!=="be"||(h=p,p=10),this._init(d||0,p||10,h||"be"))}var c;typeof t=="object"?t.exports=i:n.BN=i,i.BN=i,i.wordSize=26;try{c=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:xs.Buffer}catch{}function g(d,p){var h=d.charCodeAt(p);return h>=48&&h<=57?h-48:h>=65&&h<=70?h-55:h>=97&&h<=102?h-87:void r(!1,"Invalid character in "+d)}function _(d,p,h){var f=g(d,h);return h-1>=p&&(f|=g(d,h-1)<<4),f}function w(d,p,h,f){for(var l=0,b=0,C=Math.min(d.length,h),R=p;R<C;R++){var L=d.charCodeAt(R)-48;l*=f,b=L>=49?L-49+10:L>=17?L-17+10:L,r(L>=0&&b<f,"Invalid character"),l+=b}return l}function S(d,p){d.words=p.words,d.length=p.length,d.negative=p.negative,d.red=p.red}if(i.isBN=function(d){return d instanceof i||d!==null&&typeof d=="object"&&d.constructor.wordSize===i.wordSize&&Array.isArray(d.words)},i.max=function(d,p){return d.cmp(p)>0?d:p},i.min=function(d,p){return d.cmp(p)<0?d:p},i.prototype._init=function(d,p,h){if(typeof d=="number")return this._initNumber(d,p,h);if(typeof d=="object")return this._initArray(d,p,h);p==="hex"&&(p=16),r(p===(0|p)&&p>=2&&p<=36);var f=0;(d=d.toString().replace(/\s+/g,""))[0]==="-"&&(f++,this.negative=1),f<d.length&&(p===16?this._parseHex(d,f,h):(this._parseBase(d,p,f),h==="le"&&this._initArray(this.toArray(),p,h)))},i.prototype._initNumber=function(d,p,h){d<0&&(this.negative=1,d=-d),d<67108864?(this.words=[67108863&d],this.length=1):d<4503599627370496?(this.words=[67108863&d,d/67108864&67108863],this.length=2):(r(d<9007199254740992),this.words=[67108863&d,d/67108864&67108863,1],this.length=3),h==="le"&&this._initArray(this.toArray(),p,h)},i.prototype._initArray=function(d,p,h){if(r(typeof d.length=="number"),d.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(d.length/3),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var l,b,C=0;if(h==="be")for(f=d.length-1,l=0;f>=0;f-=3)b=d[f]|d[f-1]<<8|d[f-2]<<16,this.words[l]|=b<<C&67108863,this.words[l+1]=b>>>26-C&67108863,(C+=24)>=26&&(C-=26,l++);else if(h==="le")for(f=0,l=0;f<d.length;f+=3)b=d[f]|d[f+1]<<8|d[f+2]<<16,this.words[l]|=b<<C&67108863,this.words[l+1]=b>>>26-C&67108863,(C+=24)>=26&&(C-=26,l++);return this._strip()},i.prototype._parseHex=function(d,p,h){this.length=Math.ceil((d.length-p)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var l,b=0,C=0;if(h==="be")for(f=d.length-1;f>=p;f-=2)l=_(d,p,f)<<b,this.words[C]|=67108863&l,b>=18?(b-=18,C+=1,this.words[C]|=l>>>26):b+=8;else for(f=(d.length-p)%2==0?p+1:p;f<d.length;f+=2)l=_(d,p,f)<<b,this.words[C]|=67108863&l,b>=18?(b-=18,C+=1,this.words[C]|=l>>>26):b+=8;this._strip()},i.prototype._parseBase=function(d,p,h){this.words=[0],this.length=1;for(var f=0,l=1;l<=67108863;l*=p)f++;f--,l=l/p|0;for(var b=d.length-h,C=b%f,R=Math.min(b,b-C)+h,L=0,B=h;B<R;B+=f)L=w(d,B,B+f,p),this.imuln(l),this.words[0]+L<67108864?this.words[0]+=L:this._iaddn(L);if(C!==0){var K=1;for(L=w(d,B,d.length,p),B=0;B<C;B++)K*=p;this.imuln(K),this.words[0]+L<67108864?this.words[0]+=L:this._iaddn(L)}this._strip()},i.prototype.copy=function(d){d.words=new Array(this.length);for(var p=0;p<this.length;p++)d.words[p]=this.words[p];d.length=this.length,d.negative=this.negative,d.red=this.red},i.prototype._move=function(d){S(d,this)},i.prototype.clone=function(){var d=new i(null);return this.copy(d),d},i.prototype._expand=function(d){for(;this.length<d;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=E}catch{i.prototype.inspect=E}else i.prototype.inspect=E;function E(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var T=["","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"],I=[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],j=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(d,p){var h;if(p=0|p||1,(d=d||10)===16||d==="hex"){h="";for(var f=0,l=0,b=0;b<this.length;b++){var C=this.words[b],R=(16777215&(C<<f|l)).toString(16);l=C>>>24-f&16777215,(f+=2)>=26&&(f-=26,b--),h=l!==0||b!==this.length-1?T[6-R.length]+R+h:R+h}for(l!==0&&(h=l.toString(16)+h);h.length%p!=0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}if(d===(0|d)&&d>=2&&d<=36){var L=I[d],B=j[d];h="";var K=this.clone();for(K.negative=0;!K.isZero();){var z=K.modrn(B).toString(d);h=(K=K.idivn(B)).isZero()?z+h:T[L-z.length]+z+h}for(this.isZero()&&(h="0"+h);h.length%p!=0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var d=this.words[0];return this.length===2?d+=67108864*this.words[1]:this.length===3&&this.words[2]===1?d+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-d:d},i.prototype.toJSON=function(){return this.toString(16,2)},c&&(i.prototype.toBuffer=function(d,p){return this.toArrayLike(c,d,p)}),i.prototype.toArray=function(d,p){return this.toArrayLike(Array,d,p)};function H(d,p,h){h.negative=p.negative^d.negative;var f=d.length+p.length|0;h.length=f,f=f-1|0;var l=0|d.words[0],b=0|p.words[0],C=l*b,R=67108863&C,L=C/67108864|0;h.words[0]=R;for(var B=1;B<f;B++){for(var K=L>>>26,z=67108863&L,O=Math.min(B,p.length-1),D=Math.max(0,B-d.length+1);D<=O;D++){var q=B-D|0;K+=(C=(l=0|d.words[q])*(b=0|p.words[D])+z)/67108864|0,z=67108863&C}h.words[B]=0|z,L=0|K}return L!==0?h.words[B]=0|L:h.length--,h._strip()}i.prototype.toArrayLike=function(d,p,h){this._strip();var f=this.byteLength(),l=h||Math.max(1,f);r(f<=l,"byte array longer than desired length"),r(l>0,"Requested array length <= 0");var b=function(C,R){return C.allocUnsafe?C.allocUnsafe(R):new C(R)}(d,l);return this["_toArrayLike"+(p==="le"?"LE":"BE")](b,f),b},i.prototype._toArrayLikeLE=function(d,p){for(var h=0,f=0,l=0,b=0;l<this.length;l++){var C=this.words[l]<<b|f;d[h++]=255&C,h<d.length&&(d[h++]=C>>8&255),h<d.length&&(d[h++]=C>>16&255),b===6?(h<d.length&&(d[h++]=C>>24&255),f=0,b=0):(f=C>>>24,b+=2)}if(h<d.length)for(d[h++]=f;h<d.length;)d[h++]=0},i.prototype._toArrayLikeBE=function(d,p){for(var h=d.length-1,f=0,l=0,b=0;l<this.length;l++){var C=this.words[l]<<b|f;d[h--]=255&C,h>=0&&(d[h--]=C>>8&255),h>=0&&(d[h--]=C>>16&255),b===6?(h>=0&&(d[h--]=C>>24&255),f=0,b=0):(f=C>>>24,b+=2)}if(h>=0)for(d[h--]=f;h>=0;)d[h--]=0},Math.clz32?i.prototype._countBits=function(d){return 32-Math.clz32(d)}:i.prototype._countBits=function(d){var p=d,h=0;return p>=4096&&(h+=13,p>>>=13),p>=64&&(h+=7,p>>>=7),p>=8&&(h+=4,p>>>=4),p>=2&&(h+=2,p>>>=2),h+p},i.prototype._zeroBits=function(d){if(d===0)return 26;var p=d,h=0;return!(8191&p)&&(h+=13,p>>>=13),!(127&p)&&(h+=7,p>>>=7),!(15&p)&&(h+=4,p>>>=4),!(3&p)&&(h+=2,p>>>=2),!(1&p)&&h++,h},i.prototype.bitLength=function(){var d=this.words[this.length-1],p=this._countBits(d);return 26*(this.length-1)+p},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var d=0,p=0;p<this.length;p++){var h=this._zeroBits(this.words[p]);if(d+=h,h!==26)break}return d},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(d){return this.negative!==0?this.abs().inotn(d).iaddn(1):this.clone()},i.prototype.fromTwos=function(d){return this.testn(d-1)?this.notn(d).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(d){for(;this.length<d.length;)this.words[this.length++]=0;for(var p=0;p<d.length;p++)this.words[p]=this.words[p]|d.words[p];return this._strip()},i.prototype.ior=function(d){return r((this.negative|d.negative)==0),this.iuor(d)},i.prototype.or=function(d){return this.length>d.length?this.clone().ior(d):d.clone().ior(this)},i.prototype.uor=function(d){return this.length>d.length?this.clone().iuor(d):d.clone().iuor(this)},i.prototype.iuand=function(d){var p;p=this.length>d.length?d:this;for(var h=0;h<p.length;h++)this.words[h]=this.words[h]&d.words[h];return this.length=p.length,this._strip()},i.prototype.iand=function(d){return r((this.negative|d.negative)==0),this.iuand(d)},i.prototype.and=function(d){return this.length>d.length?this.clone().iand(d):d.clone().iand(this)},i.prototype.uand=function(d){return this.length>d.length?this.clone().iuand(d):d.clone().iuand(this)},i.prototype.iuxor=function(d){var p,h;this.length>d.length?(p=this,h=d):(p=d,h=this);for(var f=0;f<h.length;f++)this.words[f]=p.words[f]^h.words[f];if(this!==p)for(;f<p.length;f++)this.words[f]=p.words[f];return this.length=p.length,this._strip()},i.prototype.ixor=function(d){return r((this.negative|d.negative)==0),this.iuxor(d)},i.prototype.xor=function(d){return this.length>d.length?this.clone().ixor(d):d.clone().ixor(this)},i.prototype.uxor=function(d){return this.length>d.length?this.clone().iuxor(d):d.clone().iuxor(this)},i.prototype.inotn=function(d){r(typeof d=="number"&&d>=0);var p=0|Math.ceil(d/26),h=d%26;this._expand(p),h>0&&p--;for(var f=0;f<p;f++)this.words[f]=67108863&~this.words[f];return h>0&&(this.words[f]=~this.words[f]&67108863>>26-h),this._strip()},i.prototype.notn=function(d){return this.clone().inotn(d)},i.prototype.setn=function(d,p){r(typeof d=="number"&&d>=0);var h=d/26|0,f=d%26;return this._expand(h+1),this.words[h]=p?this.words[h]|1<<f:this.words[h]&~(1<<f),this._strip()},i.prototype.iadd=function(d){var p,h,f;if(this.negative!==0&&d.negative===0)return this.negative=0,p=this.isub(d),this.negative^=1,this._normSign();if(this.negative===0&&d.negative!==0)return d.negative=0,p=this.isub(d),d.negative=1,p._normSign();this.length>d.length?(h=this,f=d):(h=d,f=this);for(var l=0,b=0;b<f.length;b++)p=(0|h.words[b])+(0|f.words[b])+l,this.words[b]=67108863&p,l=p>>>26;for(;l!==0&&b<h.length;b++)p=(0|h.words[b])+l,this.words[b]=67108863&p,l=p>>>26;if(this.length=h.length,l!==0)this.words[this.length]=l,this.length++;else if(h!==this)for(;b<h.length;b++)this.words[b]=h.words[b];return this},i.prototype.add=function(d){var p;return d.negative!==0&&this.negative===0?(d.negative=0,p=this.sub(d),d.negative^=1,p):d.negative===0&&this.negative!==0?(this.negative=0,p=d.sub(this),this.negative=1,p):this.length>d.length?this.clone().iadd(d):d.clone().iadd(this)},i.prototype.isub=function(d){if(d.negative!==0){d.negative=0;var p=this.iadd(d);return d.negative=1,p._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(d),this.negative=1,this._normSign();var h,f,l=this.cmp(d);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;l>0?(h=this,f=d):(h=d,f=this);for(var b=0,C=0;C<f.length;C++)b=(p=(0|h.words[C])-(0|f.words[C])+b)>>26,this.words[C]=67108863&p;for(;b!==0&&C<h.length;C++)b=(p=(0|h.words[C])+b)>>26,this.words[C]=67108863&p;if(b===0&&C<h.length&&h!==this)for(;C<h.length;C++)this.words[C]=h.words[C];return this.length=Math.max(this.length,C),h!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(d){return this.clone().isub(d)};var V=function(d,p,h){var f,l,b,C=d.words,R=p.words,L=h.words,B=0,K=0|C[0],z=8191&K,O=K>>>13,D=0|C[1],q=8191&D,Y=D>>>13,Q=0|C[2],ae=8191&Q,re=Q>>>13,we=0|C[3],de=8191&we,ie=we>>>13,oe=0|C[4],fe=8191&oe,me=oe>>>13,Le=0|C[5],De=8191&Le,Ce=Le>>>13,Qe=0|C[6],tt=8191&Qe,Fe=Qe>>>13,Mt=0|C[7],rt=8191&Mt,He=Mt>>>13,lt=0|C[8],mt=8191&lt,ct=lt>>>13,Rt=0|C[9],_t=8191&Rt,ut=Rt>>>13,xt=0|R[0],Tt=8191&xt,at=xt>>>13,Ct=0|R[1],At=8191&Ct,ht=Ct>>>13,Qt=0|R[2],Kt=8191&Qt,vt=Qt>>>13,sn=0|R[3],$t=8191&sn,ft=sn>>>13,Vt=0|R[4],Ut=8191&Vt,gt=Vt>>>13,Gt=0|R[5],Ft=8191&Gt,kt=Gt>>>13,en=0|R[6],rn=8191&en,bt=en>>>13,Xt=0|R[7],Jt=8191&Xt,wt=Xt>>>13,jt=0|R[8],cn=8191&jt,St=jt>>>13,fn=0|R[9],Yt=8191&fn,tn=fn>>>13;h.negative=d.negative^p.negative,h.length=19;var Nr=(B+(f=Math.imul(z,Tt))|0)+((8191&(l=(l=Math.imul(z,at))+Math.imul(O,Tt)|0))<<13)|0;B=((b=Math.imul(O,at))+(l>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,f=Math.imul(q,Tt),l=(l=Math.imul(q,at))+Math.imul(Y,Tt)|0,b=Math.imul(Y,at);var Dr=(B+(f=f+Math.imul(z,At)|0)|0)+((8191&(l=(l=l+Math.imul(z,ht)|0)+Math.imul(O,At)|0))<<13)|0;B=((b=b+Math.imul(O,ht)|0)+(l>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,f=Math.imul(ae,Tt),l=(l=Math.imul(ae,at))+Math.imul(re,Tt)|0,b=Math.imul(re,at),f=f+Math.imul(q,At)|0,l=(l=l+Math.imul(q,ht)|0)+Math.imul(Y,At)|0,b=b+Math.imul(Y,ht)|0;var xr=(B+(f=f+Math.imul(z,Kt)|0)|0)+((8191&(l=(l=l+Math.imul(z,vt)|0)+Math.imul(O,Kt)|0))<<13)|0;B=((b=b+Math.imul(O,vt)|0)+(l>>>13)|0)+(xr>>>26)|0,xr&=67108863,f=Math.imul(de,Tt),l=(l=Math.imul(de,at))+Math.imul(ie,Tt)|0,b=Math.imul(ie,at),f=f+Math.imul(ae,At)|0,l=(l=l+Math.imul(ae,ht)|0)+Math.imul(re,At)|0,b=b+Math.imul(re,ht)|0,f=f+Math.imul(q,Kt)|0,l=(l=l+Math.imul(q,vt)|0)+Math.imul(Y,Kt)|0,b=b+Math.imul(Y,vt)|0;var yr=(B+(f=f+Math.imul(z,$t)|0)|0)+((8191&(l=(l=l+Math.imul(z,ft)|0)+Math.imul(O,$t)|0))<<13)|0;B=((b=b+Math.imul(O,ft)|0)+(l>>>13)|0)+(yr>>>26)|0,yr&=67108863,f=Math.imul(fe,Tt),l=(l=Math.imul(fe,at))+Math.imul(me,Tt)|0,b=Math.imul(me,at),f=f+Math.imul(de,At)|0,l=(l=l+Math.imul(de,ht)|0)+Math.imul(ie,At)|0,b=b+Math.imul(ie,ht)|0,f=f+Math.imul(ae,Kt)|0,l=(l=l+Math.imul(ae,vt)|0)+Math.imul(re,Kt)|0,b=b+Math.imul(re,vt)|0,f=f+Math.imul(q,$t)|0,l=(l=l+Math.imul(q,ft)|0)+Math.imul(Y,$t)|0,b=b+Math.imul(Y,ft)|0;var Kr=(B+(f=f+Math.imul(z,Ut)|0)|0)+((8191&(l=(l=l+Math.imul(z,gt)|0)+Math.imul(O,Ut)|0))<<13)|0;B=((b=b+Math.imul(O,gt)|0)+(l>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,f=Math.imul(De,Tt),l=(l=Math.imul(De,at))+Math.imul(Ce,Tt)|0,b=Math.imul(Ce,at),f=f+Math.imul(fe,At)|0,l=(l=l+Math.imul(fe,ht)|0)+Math.imul(me,At)|0,b=b+Math.imul(me,ht)|0,f=f+Math.imul(de,Kt)|0,l=(l=l+Math.imul(de,vt)|0)+Math.imul(ie,Kt)|0,b=b+Math.imul(ie,vt)|0,f=f+Math.imul(ae,$t)|0,l=(l=l+Math.imul(ae,ft)|0)+Math.imul(re,$t)|0,b=b+Math.imul(re,ft)|0,f=f+Math.imul(q,Ut)|0,l=(l=l+Math.imul(q,gt)|0)+Math.imul(Y,Ut)|0,b=b+Math.imul(Y,gt)|0;var Cn=(B+(f=f+Math.imul(z,Ft)|0)|0)+((8191&(l=(l=l+Math.imul(z,kt)|0)+Math.imul(O,Ft)|0))<<13)|0;B=((b=b+Math.imul(O,kt)|0)+(l>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,f=Math.imul(tt,Tt),l=(l=Math.imul(tt,at))+Math.imul(Fe,Tt)|0,b=Math.imul(Fe,at),f=f+Math.imul(De,At)|0,l=(l=l+Math.imul(De,ht)|0)+Math.imul(Ce,At)|0,b=b+Math.imul(Ce,ht)|0,f=f+Math.imul(fe,Kt)|0,l=(l=l+Math.imul(fe,vt)|0)+Math.imul(me,Kt)|0,b=b+Math.imul(me,vt)|0,f=f+Math.imul(de,$t)|0,l=(l=l+Math.imul(de,ft)|0)+Math.imul(ie,$t)|0,b=b+Math.imul(ie,ft)|0,f=f+Math.imul(ae,Ut)|0,l=(l=l+Math.imul(ae,gt)|0)+Math.imul(re,Ut)|0,b=b+Math.imul(re,gt)|0,f=f+Math.imul(q,Ft)|0,l=(l=l+Math.imul(q,kt)|0)+Math.imul(Y,Ft)|0,b=b+Math.imul(Y,kt)|0;var un=(B+(f=f+Math.imul(z,rn)|0)|0)+((8191&(l=(l=l+Math.imul(z,bt)|0)+Math.imul(O,rn)|0))<<13)|0;B=((b=b+Math.imul(O,bt)|0)+(l>>>13)|0)+(un>>>26)|0,un&=67108863,f=Math.imul(rt,Tt),l=(l=Math.imul(rt,at))+Math.imul(He,Tt)|0,b=Math.imul(He,at),f=f+Math.imul(tt,At)|0,l=(l=l+Math.imul(tt,ht)|0)+Math.imul(Fe,At)|0,b=b+Math.imul(Fe,ht)|0,f=f+Math.imul(De,Kt)|0,l=(l=l+Math.imul(De,vt)|0)+Math.imul(Ce,Kt)|0,b=b+Math.imul(Ce,vt)|0,f=f+Math.imul(fe,$t)|0,l=(l=l+Math.imul(fe,ft)|0)+Math.imul(me,$t)|0,b=b+Math.imul(me,ft)|0,f=f+Math.imul(de,Ut)|0,l=(l=l+Math.imul(de,gt)|0)+Math.imul(ie,Ut)|0,b=b+Math.imul(ie,gt)|0,f=f+Math.imul(ae,Ft)|0,l=(l=l+Math.imul(ae,kt)|0)+Math.imul(re,Ft)|0,b=b+Math.imul(re,kt)|0,f=f+Math.imul(q,rn)|0,l=(l=l+Math.imul(q,bt)|0)+Math.imul(Y,rn)|0,b=b+Math.imul(Y,bt)|0;var wr=(B+(f=f+Math.imul(z,Jt)|0)|0)+((8191&(l=(l=l+Math.imul(z,wt)|0)+Math.imul(O,Jt)|0))<<13)|0;B=((b=b+Math.imul(O,wt)|0)+(l>>>13)|0)+(wr>>>26)|0,wr&=67108863,f=Math.imul(mt,Tt),l=(l=Math.imul(mt,at))+Math.imul(ct,Tt)|0,b=Math.imul(ct,at),f=f+Math.imul(rt,At)|0,l=(l=l+Math.imul(rt,ht)|0)+Math.imul(He,At)|0,b=b+Math.imul(He,ht)|0,f=f+Math.imul(tt,Kt)|0,l=(l=l+Math.imul(tt,vt)|0)+Math.imul(Fe,Kt)|0,b=b+Math.imul(Fe,vt)|0,f=f+Math.imul(De,$t)|0,l=(l=l+Math.imul(De,ft)|0)+Math.imul(Ce,$t)|0,b=b+Math.imul(Ce,ft)|0,f=f+Math.imul(fe,Ut)|0,l=(l=l+Math.imul(fe,gt)|0)+Math.imul(me,Ut)|0,b=b+Math.imul(me,gt)|0,f=f+Math.imul(de,Ft)|0,l=(l=l+Math.imul(de,kt)|0)+Math.imul(ie,Ft)|0,b=b+Math.imul(ie,kt)|0,f=f+Math.imul(ae,rn)|0,l=(l=l+Math.imul(ae,bt)|0)+Math.imul(re,rn)|0,b=b+Math.imul(re,bt)|0,f=f+Math.imul(q,Jt)|0,l=(l=l+Math.imul(q,wt)|0)+Math.imul(Y,Jt)|0,b=b+Math.imul(Y,wt)|0;var Br=(B+(f=f+Math.imul(z,cn)|0)|0)+((8191&(l=(l=l+Math.imul(z,St)|0)+Math.imul(O,cn)|0))<<13)|0;B=((b=b+Math.imul(O,St)|0)+(l>>>13)|0)+(Br>>>26)|0,Br&=67108863,f=Math.imul(_t,Tt),l=(l=Math.imul(_t,at))+Math.imul(ut,Tt)|0,b=Math.imul(ut,at),f=f+Math.imul(mt,At)|0,l=(l=l+Math.imul(mt,ht)|0)+Math.imul(ct,At)|0,b=b+Math.imul(ct,ht)|0,f=f+Math.imul(rt,Kt)|0,l=(l=l+Math.imul(rt,vt)|0)+Math.imul(He,Kt)|0,b=b+Math.imul(He,vt)|0,f=f+Math.imul(tt,$t)|0,l=(l=l+Math.imul(tt,ft)|0)+Math.imul(Fe,$t)|0,b=b+Math.imul(Fe,ft)|0,f=f+Math.imul(De,Ut)|0,l=(l=l+Math.imul(De,gt)|0)+Math.imul(Ce,Ut)|0,b=b+Math.imul(Ce,gt)|0,f=f+Math.imul(fe,Ft)|0,l=(l=l+Math.imul(fe,kt)|0)+Math.imul(me,Ft)|0,b=b+Math.imul(me,kt)|0,f=f+Math.imul(de,rn)|0,l=(l=l+Math.imul(de,bt)|0)+Math.imul(ie,rn)|0,b=b+Math.imul(ie,bt)|0,f=f+Math.imul(ae,Jt)|0,l=(l=l+Math.imul(ae,wt)|0)+Math.imul(re,Jt)|0,b=b+Math.imul(re,wt)|0,f=f+Math.imul(q,cn)|0,l=(l=l+Math.imul(q,St)|0)+Math.imul(Y,cn)|0,b=b+Math.imul(Y,St)|0;var Ar=(B+(f=f+Math.imul(z,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(z,tn)|0)+Math.imul(O,Yt)|0))<<13)|0;B=((b=b+Math.imul(O,tn)|0)+(l>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,f=Math.imul(_t,At),l=(l=Math.imul(_t,ht))+Math.imul(ut,At)|0,b=Math.imul(ut,ht),f=f+Math.imul(mt,Kt)|0,l=(l=l+Math.imul(mt,vt)|0)+Math.imul(ct,Kt)|0,b=b+Math.imul(ct,vt)|0,f=f+Math.imul(rt,$t)|0,l=(l=l+Math.imul(rt,ft)|0)+Math.imul(He,$t)|0,b=b+Math.imul(He,ft)|0,f=f+Math.imul(tt,Ut)|0,l=(l=l+Math.imul(tt,gt)|0)+Math.imul(Fe,Ut)|0,b=b+Math.imul(Fe,gt)|0,f=f+Math.imul(De,Ft)|0,l=(l=l+Math.imul(De,kt)|0)+Math.imul(Ce,Ft)|0,b=b+Math.imul(Ce,kt)|0,f=f+Math.imul(fe,rn)|0,l=(l=l+Math.imul(fe,bt)|0)+Math.imul(me,rn)|0,b=b+Math.imul(me,bt)|0,f=f+Math.imul(de,Jt)|0,l=(l=l+Math.imul(de,wt)|0)+Math.imul(ie,Jt)|0,b=b+Math.imul(ie,wt)|0,f=f+Math.imul(ae,cn)|0,l=(l=l+Math.imul(ae,St)|0)+Math.imul(re,cn)|0,b=b+Math.imul(re,St)|0;var jr=(B+(f=f+Math.imul(q,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(q,tn)|0)+Math.imul(Y,Yt)|0))<<13)|0;B=((b=b+Math.imul(Y,tn)|0)+(l>>>13)|0)+(jr>>>26)|0,jr&=67108863,f=Math.imul(_t,Kt),l=(l=Math.imul(_t,vt))+Math.imul(ut,Kt)|0,b=Math.imul(ut,vt),f=f+Math.imul(mt,$t)|0,l=(l=l+Math.imul(mt,ft)|0)+Math.imul(ct,$t)|0,b=b+Math.imul(ct,ft)|0,f=f+Math.imul(rt,Ut)|0,l=(l=l+Math.imul(rt,gt)|0)+Math.imul(He,Ut)|0,b=b+Math.imul(He,gt)|0,f=f+Math.imul(tt,Ft)|0,l=(l=l+Math.imul(tt,kt)|0)+Math.imul(Fe,Ft)|0,b=b+Math.imul(Fe,kt)|0,f=f+Math.imul(De,rn)|0,l=(l=l+Math.imul(De,bt)|0)+Math.imul(Ce,rn)|0,b=b+Math.imul(Ce,bt)|0,f=f+Math.imul(fe,Jt)|0,l=(l=l+Math.imul(fe,wt)|0)+Math.imul(me,Jt)|0,b=b+Math.imul(me,wt)|0,f=f+Math.imul(de,cn)|0,l=(l=l+Math.imul(de,St)|0)+Math.imul(ie,cn)|0,b=b+Math.imul(ie,St)|0;var ur=(B+(f=f+Math.imul(ae,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(ae,tn)|0)+Math.imul(re,Yt)|0))<<13)|0;B=((b=b+Math.imul(re,tn)|0)+(l>>>13)|0)+(ur>>>26)|0,ur&=67108863,f=Math.imul(_t,$t),l=(l=Math.imul(_t,ft))+Math.imul(ut,$t)|0,b=Math.imul(ut,ft),f=f+Math.imul(mt,Ut)|0,l=(l=l+Math.imul(mt,gt)|0)+Math.imul(ct,Ut)|0,b=b+Math.imul(ct,gt)|0,f=f+Math.imul(rt,Ft)|0,l=(l=l+Math.imul(rt,kt)|0)+Math.imul(He,Ft)|0,b=b+Math.imul(He,kt)|0,f=f+Math.imul(tt,rn)|0,l=(l=l+Math.imul(tt,bt)|0)+Math.imul(Fe,rn)|0,b=b+Math.imul(Fe,bt)|0,f=f+Math.imul(De,Jt)|0,l=(l=l+Math.imul(De,wt)|0)+Math.imul(Ce,Jt)|0,b=b+Math.imul(Ce,wt)|0,f=f+Math.imul(fe,cn)|0,l=(l=l+Math.imul(fe,St)|0)+Math.imul(me,cn)|0,b=b+Math.imul(me,St)|0;var lr=(B+(f=f+Math.imul(de,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(de,tn)|0)+Math.imul(ie,Yt)|0))<<13)|0;B=((b=b+Math.imul(ie,tn)|0)+(l>>>13)|0)+(lr>>>26)|0,lr&=67108863,f=Math.imul(_t,Ut),l=(l=Math.imul(_t,gt))+Math.imul(ut,Ut)|0,b=Math.imul(ut,gt),f=f+Math.imul(mt,Ft)|0,l=(l=l+Math.imul(mt,kt)|0)+Math.imul(ct,Ft)|0,b=b+Math.imul(ct,kt)|0,f=f+Math.imul(rt,rn)|0,l=(l=l+Math.imul(rt,bt)|0)+Math.imul(He,rn)|0,b=b+Math.imul(He,bt)|0,f=f+Math.imul(tt,Jt)|0,l=(l=l+Math.imul(tt,wt)|0)+Math.imul(Fe,Jt)|0,b=b+Math.imul(Fe,wt)|0,f=f+Math.imul(De,cn)|0,l=(l=l+Math.imul(De,St)|0)+Math.imul(Ce,cn)|0,b=b+Math.imul(Ce,St)|0;var Bn=(B+(f=f+Math.imul(fe,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(fe,tn)|0)+Math.imul(me,Yt)|0))<<13)|0;B=((b=b+Math.imul(me,tn)|0)+(l>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,f=Math.imul(_t,Ft),l=(l=Math.imul(_t,kt))+Math.imul(ut,Ft)|0,b=Math.imul(ut,kt),f=f+Math.imul(mt,rn)|0,l=(l=l+Math.imul(mt,bt)|0)+Math.imul(ct,rn)|0,b=b+Math.imul(ct,bt)|0,f=f+Math.imul(rt,Jt)|0,l=(l=l+Math.imul(rt,wt)|0)+Math.imul(He,Jt)|0,b=b+Math.imul(He,wt)|0,f=f+Math.imul(tt,cn)|0,l=(l=l+Math.imul(tt,St)|0)+Math.imul(Fe,cn)|0,b=b+Math.imul(Fe,St)|0;var Zn=(B+(f=f+Math.imul(De,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(De,tn)|0)+Math.imul(Ce,Yt)|0))<<13)|0;B=((b=b+Math.imul(Ce,tn)|0)+(l>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,f=Math.imul(_t,rn),l=(l=Math.imul(_t,bt))+Math.imul(ut,rn)|0,b=Math.imul(ut,bt),f=f+Math.imul(mt,Jt)|0,l=(l=l+Math.imul(mt,wt)|0)+Math.imul(ct,Jt)|0,b=b+Math.imul(ct,wt)|0,f=f+Math.imul(rt,cn)|0,l=(l=l+Math.imul(rt,St)|0)+Math.imul(He,cn)|0,b=b+Math.imul(He,St)|0;var Rr=(B+(f=f+Math.imul(tt,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(tt,tn)|0)+Math.imul(Fe,Yt)|0))<<13)|0;B=((b=b+Math.imul(Fe,tn)|0)+(l>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,f=Math.imul(_t,Jt),l=(l=Math.imul(_t,wt))+Math.imul(ut,Jt)|0,b=Math.imul(ut,wt),f=f+Math.imul(mt,cn)|0,l=(l=l+Math.imul(mt,St)|0)+Math.imul(ct,cn)|0,b=b+Math.imul(ct,St)|0;var Ir=(B+(f=f+Math.imul(rt,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(rt,tn)|0)+Math.imul(He,Yt)|0))<<13)|0;B=((b=b+Math.imul(He,tn)|0)+(l>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,f=Math.imul(_t,cn),l=(l=Math.imul(_t,St))+Math.imul(ut,cn)|0,b=Math.imul(ut,St);var di=(B+(f=f+Math.imul(mt,Yt)|0)|0)+((8191&(l=(l=l+Math.imul(mt,tn)|0)+Math.imul(ct,Yt)|0))<<13)|0;B=((b=b+Math.imul(ct,tn)|0)+(l>>>13)|0)+(di>>>26)|0,di&=67108863;var Hi=(B+(f=Math.imul(_t,Yt))|0)+((8191&(l=(l=Math.imul(_t,tn))+Math.imul(ut,Yt)|0))<<13)|0;return B=((b=Math.imul(ut,tn))+(l>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,L[0]=Nr,L[1]=Dr,L[2]=xr,L[3]=yr,L[4]=Kr,L[5]=Cn,L[6]=un,L[7]=wr,L[8]=Br,L[9]=Ar,L[10]=jr,L[11]=ur,L[12]=lr,L[13]=Bn,L[14]=Zn,L[15]=Rr,L[16]=Ir,L[17]=di,L[18]=Hi,B!==0&&(L[19]=B,h.length++),h};function ee(d,p,h){h.negative=p.negative^d.negative,h.length=d.length+p.length;for(var f=0,l=0,b=0;b<h.length-1;b++){var C=l;l=0;for(var R=67108863&f,L=Math.min(b,p.length-1),B=Math.max(0,b-d.length+1);B<=L;B++){var K=b-B,z=(0|d.words[K])*(0|p.words[B]),O=67108863&z;R=67108863&(O=O+R|0),l+=(C=(C=C+(z/67108864|0)|0)+(O>>>26)|0)>>>26,C&=67108863}h.words[b]=R,f=C,C=l}return f!==0?h.words[b]=f:h.length--,h._strip()}function X(d,p,h){return ee(d,p,h)}Math.imul||(V=H),i.prototype.mulTo=function(d,p){var h=this.length+d.length;return this.length===10&&d.length===10?V(this,d,p):h<63?H(this,d,p):h<1024?ee(this,d,p):X(this,d,p)},i.prototype.mul=function(d){var p=new i(null);return p.words=new Array(this.length+d.length),this.mulTo(d,p)},i.prototype.mulf=function(d){var p=new i(null);return p.words=new Array(this.length+d.length),X(this,d,p)},i.prototype.imul=function(d){return this.clone().mulTo(d,this)},i.prototype.imuln=function(d){var p=d<0;p&&(d=-d),r(typeof d=="number"),r(d<67108864);for(var h=0,f=0;f<this.length;f++){var l=(0|this.words[f])*d,b=(67108863&l)+(67108863&h);h>>=26,h+=l/67108864|0,h+=b>>>26,this.words[f]=67108863&b}return h!==0&&(this.words[f]=h,this.length++),p?this.ineg():this},i.prototype.muln=function(d){return this.clone().imuln(d)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(d){var p=function(b){for(var C=new Array(b.bitLength()),R=0;R<C.length;R++){var L=R/26|0,B=R%26;C[R]=b.words[L]>>>B&1}return C}(d);if(p.length===0)return new i(1);for(var h=this,f=0;f<p.length&&p[f]===0;f++,h=h.sqr());if(++f<p.length)for(var l=h.sqr();f<p.length;f++,l=l.sqr())p[f]!==0&&(h=h.mul(l));return h},i.prototype.iushln=function(d){r(typeof d=="number"&&d>=0);var p,h=d%26,f=(d-h)/26,l=67108863>>>26-h<<26-h;if(h!==0){var b=0;for(p=0;p<this.length;p++){var C=this.words[p]&l,R=(0|this.words[p])-C<<h;this.words[p]=R|b,b=C>>>26-h}b&&(this.words[p]=b,this.length++)}if(f!==0){for(p=this.length-1;p>=0;p--)this.words[p+f]=this.words[p];for(p=0;p<f;p++)this.words[p]=0;this.length+=f}return this._strip()},i.prototype.ishln=function(d){return r(this.negative===0),this.iushln(d)},i.prototype.iushrn=function(d,p,h){var f;r(typeof d=="number"&&d>=0),f=p?(p-p%26)/26:0;var l=d%26,b=Math.min((d-l)/26,this.length),C=67108863^67108863>>>l<<l,R=h;if(f-=b,f=Math.max(0,f),R){for(var L=0;L<b;L++)R.words[L]=this.words[L];R.length=b}if(b!==0)if(this.length>b)for(this.length-=b,L=0;L<this.length;L++)this.words[L]=this.words[L+b];else this.words[0]=0,this.length=1;var B=0;for(L=this.length-1;L>=0&&(B!==0||L>=f);L--){var K=0|this.words[L];this.words[L]=B<<26-l|K>>>l,B=K&C}return R&&B!==0&&(R.words[R.length++]=B),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(d,p,h){return r(this.negative===0),this.iushrn(d,p,h)},i.prototype.shln=function(d){return this.clone().ishln(d)},i.prototype.ushln=function(d){return this.clone().iushln(d)},i.prototype.shrn=function(d){return this.clone().ishrn(d)},i.prototype.ushrn=function(d){return this.clone().iushrn(d)},i.prototype.testn=function(d){r(typeof d=="number"&&d>=0);var p=d%26,h=(d-p)/26,f=1<<p;return!(this.length<=h)&&!!(this.words[h]&f)},i.prototype.imaskn=function(d){r(typeof d=="number"&&d>=0);var p=d%26,h=(d-p)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=h)return this;if(p!==0&&h++,this.length=Math.min(h,this.length),p!==0){var f=67108863^67108863>>>p<<p;this.words[this.length-1]&=f}return this._strip()},i.prototype.maskn=function(d){return this.clone().imaskn(d)},i.prototype.iaddn=function(d){return r(typeof d=="number"),r(d<67108864),d<0?this.isubn(-d):this.negative!==0?this.length===1&&(0|this.words[0])<=d?(this.words[0]=d-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(d),this.negative=1,this):this._iaddn(d)},i.prototype._iaddn=function(d){this.words[0]+=d;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},i.prototype.isubn=function(d){if(r(typeof d=="number"),r(d<67108864),d<0)return this.iaddn(-d);if(this.negative!==0)return this.negative=0,this.iaddn(d),this.negative=1,this;if(this.words[0]-=d,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this._strip()},i.prototype.addn=function(d){return this.clone().iaddn(d)},i.prototype.subn=function(d){return this.clone().isubn(d)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(d,p,h){var f,l,b=d.length+h;this._expand(b);var C=0;for(f=0;f<d.length;f++){l=(0|this.words[f+h])+C;var R=(0|d.words[f])*p;C=((l-=67108863&R)>>26)-(R/67108864|0),this.words[f+h]=67108863&l}for(;f<this.length-h;f++)C=(l=(0|this.words[f+h])+C)>>26,this.words[f+h]=67108863&l;if(C===0)return this._strip();for(r(C===-1),C=0,f=0;f<this.length;f++)C=(l=-(0|this.words[f])+C)>>26,this.words[f]=67108863&l;return this.negative=1,this._strip()},i.prototype._wordDiv=function(d,p){var h=(this.length,d.length),f=this.clone(),l=d,b=0|l.words[l.length-1];(h=26-this._countBits(b))!==0&&(l=l.ushln(h),f.iushln(h),b=0|l.words[l.length-1]);var C,R=f.length-l.length;if(p!=="mod"){(C=new i(null)).length=R+1,C.words=new Array(C.length);for(var L=0;L<C.length;L++)C.words[L]=0}var B=f.clone()._ishlnsubmul(l,1,R);B.negative===0&&(f=B,C&&(C.words[R]=1));for(var K=R-1;K>=0;K--){var z=67108864*(0|f.words[l.length+K])+(0|f.words[l.length+K-1]);for(z=Math.min(z/b|0,67108863),f._ishlnsubmul(l,z,K);f.negative!==0;)z--,f.negative=0,f._ishlnsubmul(l,1,K),f.isZero()||(f.negative^=1);C&&(C.words[K]=z)}return C&&C._strip(),f._strip(),p!=="div"&&h!==0&&f.iushrn(h),{div:C||null,mod:f}},i.prototype.divmod=function(d,p,h){return r(!d.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:this.negative!==0&&d.negative===0?(b=this.neg().divmod(d,p),p!=="mod"&&(f=b.div.neg()),p!=="div"&&(l=b.mod.neg(),h&&l.negative!==0&&l.iadd(d)),{div:f,mod:l}):this.negative===0&&d.negative!==0?(b=this.divmod(d.neg(),p),p!=="mod"&&(f=b.div.neg()),{div:f,mod:b.mod}):this.negative&d.negative?(b=this.neg().divmod(d.neg(),p),p!=="div"&&(l=b.mod.neg(),h&&l.negative!==0&&l.isub(d)),{div:b.div,mod:l}):d.length>this.length||this.cmp(d)<0?{div:new i(0),mod:this}:d.length===1?p==="div"?{div:this.divn(d.words[0]),mod:null}:p==="mod"?{div:null,mod:new i(this.modrn(d.words[0]))}:{div:this.divn(d.words[0]),mod:new i(this.modrn(d.words[0]))}:this._wordDiv(d,p);var f,l,b},i.prototype.div=function(d){return this.divmod(d,"div",!1).div},i.prototype.mod=function(d){return this.divmod(d,"mod",!1).mod},i.prototype.umod=function(d){return this.divmod(d,"mod",!0).mod},i.prototype.divRound=function(d){var p=this.divmod(d);if(p.mod.isZero())return p.div;var h=p.div.negative!==0?p.mod.isub(d):p.mod,f=d.ushrn(1),l=d.andln(1),b=h.cmp(f);return b<0||l===1&&b===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},i.prototype.modrn=function(d){var p=d<0;p&&(d=-d),r(d<=67108863);for(var h=(1<<26)%d,f=0,l=this.length-1;l>=0;l--)f=(h*f+(0|this.words[l]))%d;return p?-f:f},i.prototype.modn=function(d){return this.modrn(d)},i.prototype.idivn=function(d){var p=d<0;p&&(d=-d),r(d<=67108863);for(var h=0,f=this.length-1;f>=0;f--){var l=(0|this.words[f])+67108864*h;this.words[f]=l/d|0,h=l%d}return this._strip(),p?this.ineg():this},i.prototype.divn=function(d){return this.clone().idivn(d)},i.prototype.egcd=function(d){r(d.negative===0),r(!d.isZero());var p=this,h=d.clone();p=p.negative!==0?p.umod(d):p.clone();for(var f=new i(1),l=new i(0),b=new i(0),C=new i(1),R=0;p.isEven()&&h.isEven();)p.iushrn(1),h.iushrn(1),++R;for(var L=h.clone(),B=p.clone();!p.isZero();){for(var K=0,z=1;!(p.words[0]&z)&&K<26;++K,z<<=1);if(K>0)for(p.iushrn(K);K-- >0;)(f.isOdd()||l.isOdd())&&(f.iadd(L),l.isub(B)),f.iushrn(1),l.iushrn(1);for(var O=0,D=1;!(h.words[0]&D)&&O<26;++O,D<<=1);if(O>0)for(h.iushrn(O);O-- >0;)(b.isOdd()||C.isOdd())&&(b.iadd(L),C.isub(B)),b.iushrn(1),C.iushrn(1);p.cmp(h)>=0?(p.isub(h),f.isub(b),l.isub(C)):(h.isub(p),b.isub(f),C.isub(l))}return{a:b,b:C,gcd:h.iushln(R)}},i.prototype._invmp=function(d){r(d.negative===0),r(!d.isZero());var p=this,h=d.clone();p=p.negative!==0?p.umod(d):p.clone();for(var f,l=new i(1),b=new i(0),C=h.clone();p.cmpn(1)>0&&h.cmpn(1)>0;){for(var R=0,L=1;!(p.words[0]&L)&&R<26;++R,L<<=1);if(R>0)for(p.iushrn(R);R-- >0;)l.isOdd()&&l.iadd(C),l.iushrn(1);for(var B=0,K=1;!(h.words[0]&K)&&B<26;++B,K<<=1);if(B>0)for(h.iushrn(B);B-- >0;)b.isOdd()&&b.iadd(C),b.iushrn(1);p.cmp(h)>=0?(p.isub(h),l.isub(b)):(h.isub(p),b.isub(l))}return(f=p.cmpn(1)===0?l:b).cmpn(0)<0&&f.iadd(d),f},i.prototype.gcd=function(d){if(this.isZero())return d.abs();if(d.isZero())return this.abs();var p=this.clone(),h=d.clone();p.negative=0,h.negative=0;for(var f=0;p.isEven()&&h.isEven();f++)p.iushrn(1),h.iushrn(1);for(;;){for(;p.isEven();)p.iushrn(1);for(;h.isEven();)h.iushrn(1);var l=p.cmp(h);if(l<0){var b=p;p=h,h=b}else if(l===0||h.cmpn(1)===0)break;p.isub(h)}return h.iushln(f)},i.prototype.invm=function(d){return this.egcd(d).a.umod(d)},i.prototype.isEven=function(){return(1&this.words[0])==0},i.prototype.isOdd=function(){return(1&this.words[0])==1},i.prototype.andln=function(d){return this.words[0]&d},i.prototype.bincn=function(d){r(typeof d=="number");var p=d%26,h=(d-p)/26,f=1<<p;if(this.length<=h)return this._expand(h+1),this.words[h]|=f,this;for(var l=f,b=h;l!==0&&b<this.length;b++){var C=0|this.words[b];l=(C+=l)>>>26,C&=67108863,this.words[b]=C}return l!==0&&(this.words[b]=l,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(d){var p,h=d<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;if(this._strip(),this.length>1)p=1;else{h&&(d=-d),r(d<=67108863,"Number is too big");var f=0|this.words[0];p=f===d?0:f<d?-1:1}return this.negative!==0?0|-p:p},i.prototype.cmp=function(d){if(this.negative!==0&&d.negative===0)return-1;if(this.negative===0&&d.negative!==0)return 1;var p=this.ucmp(d);return this.negative!==0?0|-p:p},i.prototype.ucmp=function(d){if(this.length>d.length)return 1;if(this.length<d.length)return-1;for(var p=0,h=this.length-1;h>=0;h--){var f=0|this.words[h],l=0|d.words[h];if(f!==l){f<l?p=-1:f>l&&(p=1);break}}return p},i.prototype.gtn=function(d){return this.cmpn(d)===1},i.prototype.gt=function(d){return this.cmp(d)===1},i.prototype.gten=function(d){return this.cmpn(d)>=0},i.prototype.gte=function(d){return this.cmp(d)>=0},i.prototype.ltn=function(d){return this.cmpn(d)===-1},i.prototype.lt=function(d){return this.cmp(d)===-1},i.prototype.lten=function(d){return this.cmpn(d)<=0},i.prototype.lte=function(d){return this.cmp(d)<=0},i.prototype.eqn=function(d){return this.cmpn(d)===0},i.prototype.eq=function(d){return this.cmp(d)===0},i.red=function(d){return new y(d)},i.prototype.toRed=function(d){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),d.convertTo(this)._forceRed(d)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(d){return this.red=d,this},i.prototype.forceRed=function(d){return r(!this.red,"Already a number in reduction context"),this._forceRed(d)},i.prototype.redAdd=function(d){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,d)},i.prototype.redIAdd=function(d){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,d)},i.prototype.redSub=function(d){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,d)},i.prototype.redISub=function(d){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,d)},i.prototype.redShl=function(d){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,d)},i.prototype.redMul=function(d){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,d),this.red.mul(this,d)},i.prototype.redIMul=function(d){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,d),this.red.imul(this,d)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(d){return r(this.red&&!d.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,d)};var ue={k256:null,p224:null,p192:null,p25519:null};function le(d,p){this.name=d,this.p=new i(p,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function pe(){le.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function Me(){le.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){le.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function Te(){le.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function y(d){if(typeof d=="string"){var p=i._prime(d);this.m=p.p,this.prime=p}else r(d.gtn(1),"modulus must be greater than 1"),this.m=d,this.prime=null}function x(d){y.call(this,d),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}le.prototype._tmp=function(){var d=new i(null);return d.words=new Array(Math.ceil(this.n/13)),d},le.prototype.ireduce=function(d){var p,h=d;do this.split(h,this.tmp),p=(h=(h=this.imulK(h)).iadd(this.tmp)).bitLength();while(p>this.n);var f=p<this.n?-1:h.ucmp(this.p);return f===0?(h.words[0]=0,h.length=1):f>0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},le.prototype.split=function(d,p){d.iushrn(this.n,0,p)},le.prototype.imulK=function(d){return d.imul(this.k)},o(pe,le),pe.prototype.split=function(d,p){for(var h=4194303,f=Math.min(d.length,9),l=0;l<f;l++)p.words[l]=d.words[l];if(p.length=f,d.length<=9)return d.words[0]=0,void(d.length=1);var b=d.words[9];for(p.words[p.length++]=b&h,l=10;l<d.length;l++){var C=0|d.words[l];d.words[l-10]=(C&h)<<4|b>>>22,b=C}b>>>=22,d.words[l-10]=b,b===0&&d.length>10?d.length-=10:d.length-=9},pe.prototype.imulK=function(d){d.words[d.length]=0,d.words[d.length+1]=0,d.length+=2;for(var p=0,h=0;h<d.length;h++){var f=0|d.words[h];p+=977*f,d.words[h]=67108863&p,p=64*f+(p/67108864|0)}return d.words[d.length-1]===0&&(d.length--,d.words[d.length-1]===0&&d.length--),d},o(Me,le),o(ye,le),o(Te,le),Te.prototype.imulK=function(d){for(var p=0,h=0;h<d.length;h++){var f=19*(0|d.words[h])+p,l=67108863&f;f>>>=26,d.words[h]=l,p=f}return p!==0&&(d.words[d.length++]=p),d},i._prime=function(d){if(ue[d])return ue[d];var p;if(d==="k256")p=new pe;else if(d==="p224")p=new Me;else if(d==="p192")p=new ye;else{if(d!=="p25519")throw new Error("Unknown prime "+d);p=new Te}return ue[d]=p,p},y.prototype._verify1=function(d){r(d.negative===0,"red works only with positives"),r(d.red,"red works only with red numbers")},y.prototype._verify2=function(d,p){r((d.negative|p.negative)==0,"red works only with positives"),r(d.red&&d.red===p.red,"red works only with red numbers")},y.prototype.imod=function(d){return this.prime?this.prime.ireduce(d)._forceRed(this):(S(d,d.umod(this.m)._forceRed(this)),d)},y.prototype.neg=function(d){return d.isZero()?d.clone():this.m.sub(d)._forceRed(this)},y.prototype.add=function(d,p){this._verify2(d,p);var h=d.add(p);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},y.prototype.iadd=function(d,p){this._verify2(d,p);var h=d.iadd(p);return h.cmp(this.m)>=0&&h.isub(this.m),h},y.prototype.sub=function(d,p){this._verify2(d,p);var h=d.sub(p);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},y.prototype.isub=function(d,p){this._verify2(d,p);var h=d.isub(p);return h.cmpn(0)<0&&h.iadd(this.m),h},y.prototype.shl=function(d,p){return this._verify1(d),this.imod(d.ushln(p))},y.prototype.imul=function(d,p){return this._verify2(d,p),this.imod(d.imul(p))},y.prototype.mul=function(d,p){return this._verify2(d,p),this.imod(d.mul(p))},y.prototype.isqr=function(d){return this.imul(d,d.clone())},y.prototype.sqr=function(d){return this.mul(d,d)},y.prototype.sqrt=function(d){if(d.isZero())return d.clone();var p=this.m.andln(3);if(r(p%2==1),p===3){var h=this.m.add(new i(1)).iushrn(2);return this.pow(d,h)}for(var f=this.m.subn(1),l=0;!f.isZero()&&f.andln(1)===0;)l++,f.iushrn(1);r(!f.isZero());var b=new i(1).toRed(this),C=b.redNeg(),R=this.m.subn(1).iushrn(1),L=this.m.bitLength();for(L=new i(2*L*L).toRed(this);this.pow(L,R).cmp(C)!==0;)L.redIAdd(C);for(var B=this.pow(L,f),K=this.pow(d,f.addn(1).iushrn(1)),z=this.pow(d,f),O=l;z.cmp(b)!==0;){for(var D=z,q=0;D.cmp(b)!==0;q++)D=D.redSqr();r(q<O);var Y=this.pow(B,new i(1).iushln(O-q-1));K=K.redMul(Y),B=Y.redSqr(),z=z.redMul(B),O=q}return K},y.prototype.invm=function(d){var p=d._invmp(this.m);return p.negative!==0?(p.negative=0,this.imod(p).redNeg()):this.imod(p)},y.prototype.pow=function(d,p){if(p.isZero())return new i(1).toRed(this);if(p.cmpn(1)===0)return d.clone();var h=new Array(16);h[0]=new i(1).toRed(this),h[1]=d;for(var f=2;f<h.length;f++)h[f]=this.mul(h[f-1],d);var l=h[0],b=0,C=0,R=p.bitLength()%26;for(R===0&&(R=26),f=p.length-1;f>=0;f--){for(var L=p.words[f],B=R-1;B>=0;B--){var K=L>>B&1;l!==h[0]&&(l=this.sqr(l)),K!==0||b!==0?(b<<=1,b|=K,(++C===4||f===0&&B===0)&&(l=this.mul(l,h[b]),C=0,b=0)):C=0}R=26}return l},y.prototype.convertTo=function(d){var p=d.umod(this.m);return p===d?p.clone():p},y.prototype.convertFrom=function(d){var p=d.clone();return p.red=null,p},i.mont=function(d){return new x(d)},o(x,y),x.prototype.convertTo=function(d){return this.imod(d.ushln(this.shift))},x.prototype.convertFrom=function(d){var p=this.imod(d.mul(this.rinv));return p.red=null,p},x.prototype.imul=function(d,p){if(d.isZero()||p.isZero())return d.words[0]=0,d.length=1,d;var h=d.imul(p),f=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=h.isub(f).iushrn(this.shift),b=l;return l.cmp(this.m)>=0?b=l.isub(this.m):l.cmpn(0)<0&&(b=l.iadd(this.m)),b._forceRed(this)},x.prototype.mul=function(d,p){if(d.isZero()||p.isZero())return new i(0)._forceRed(this);var h=d.mul(p),f=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=h.isub(f).iushrn(this.shift),b=l;return l.cmp(this.m)>=0?b=l.isub(this.m):l.cmpn(0)<0&&(b=l.iadd(this.m)),b._forceRed(this)},x.prototype.invm=function(d){return this.imod(d._invmp(this.m).mul(this.r2))._forceRed(this)}})(e,En)})(Tk);var Wa,Pk=Tk.exports,Os={},h8={},Lk={},p8={},lb=xs,rp=lb.Buffer,$a={};for(Wa in lb)lb.hasOwnProperty(Wa)&&Wa!=="SlowBuffer"&&Wa!=="Buffer"&&($a[Wa]=lb[Wa]);var ip=$a.Buffer={};for(Wa in rp)rp.hasOwnProperty(Wa)&&Wa!=="allocUnsafe"&&Wa!=="allocUnsafeSlow"&&(ip[Wa]=rp[Wa]);if($a.Buffer.prototype=rp.prototype,ip.from&&ip.from!==Uint8Array.from||(ip.from=function(e,t,n){if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&e.length===void 0)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return rp(e,t,n)}),ip.alloc||(ip.alloc=function(e,t,n){if(typeof e!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=rp(e);return t&&t.length!==0?typeof n=="string"?r.fill(t,n):r.fill(t):r.fill(0),r}),!$a.kStringMaxLength)try{$a.kStringMaxLength=vr.binding("buffer").kStringMaxLength}catch{}$a.constants||($a.constants={MAX_LENGTH:$a.kMaxLength},$a.kStringMaxLength&&($a.constants.MAX_STRING_LENGTH=$a.kStringMaxLength));var m8=$a,cb={};const bB=On;function Va(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function op(e,t){this.path=e,this.rethrow(t)}cb.Reporter=Va,Va.prototype.isError=function(e){return e instanceof op},Va.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},Va.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},Va.prototype.enterKey=function(e){return this._reporterState.path.push(e)},Va.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},Va.prototype.leaveKey=function(e,t,n){const r=this._reporterState;this.exitKey(e),r.obj!==null&&(r.obj[t]=n)},Va.prototype.path=function(){return this._reporterState.path.join("/")},Va.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},Va.prototype.leaveObject=function(e){const t=this._reporterState,n=t.obj;return t.obj=e,n},Va.prototype.error=function(e){let t;const n=this._reporterState,r=e instanceof op;if(t=r?e:new op(n.path.map(function(o){return"["+JSON.stringify(o)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},Va.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},bB(op,Error),op.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,op),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this};var nh={};const yB=On,db=cb.Reporter,ap=m8.Buffer;function Ya(e,t){db.call(this,t),ap.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function sp(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(n){return sp.isEncoderBuffer(n)||(n=new sp(n,t)),this.length+=n.length,n},this);else if(typeof e=="number"){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if(typeof e=="string")this.value=e,this.length=ap.byteLength(e);else{if(!ap.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}yB(Ya,db),nh.DecoderBuffer=Ya,Ya.isDecoderBuffer=function(e){return e instanceof Ya?!0:typeof e=="object"&&ap.isBuffer(e.base)&&e.constructor.name==="DecoderBuffer"&&typeof e.offset=="number"&&typeof e.length=="number"&&typeof e.save=="function"&&typeof e.restore=="function"&&typeof e.isEmpty=="function"&&typeof e.readUInt8=="function"&&typeof e.skip=="function"&&typeof e.raw=="function"},Ya.prototype.save=function(){return{offset:this.offset,reporter:db.prototype.save.call(this)}},Ya.prototype.restore=function(e){const t=new Ya(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,db.prototype.restore.call(this,e.reporter),t},Ya.prototype.isEmpty=function(){return this.offset===this.length},Ya.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},Ya.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const n=new Ya(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},Ya.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},nh.EncoderBuffer=sp,sp.isEncoderBuffer=function(e){return e instanceof sp?!0:typeof e=="object"&&e.constructor.name==="EncoderBuffer"&&typeof e.length=="number"&&typeof e.join=="function"},sp.prototype.join=function(e,t){return e||(e=ap.alloc(this.length)),t||(t=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,t),t+=n.length}):(typeof this.value=="number"?e[t]=this.value:typeof this.value=="string"?e.write(this.value,t):ap.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e};const wB=cb.Reporter,_B=nh.EncoderBuffer,SB=nh.DecoderBuffer,ko=Ua,Ik=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],EB=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(Ik);function mr(e,t,n){const r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}var g8=mr;const kB=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];mr.prototype.clone=function(){const e=this._baseState,t={};kB.forEach(function(r){t[r]=e[r]});const n=new this.constructor(t.parent);return n._baseState=t,n},mr.prototype._wrap=function(){const e=this._baseState;EB.forEach(function(t){this[t]=function(){const n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}},this)},mr.prototype._init=function(e){const t=this._baseState;ko(t.parent===null),e.call(this),t.children=t.children.filter(function(n){return n._baseState.parent===this},this),ko.equal(t.children.length,1,"Root node can have only one child")},mr.prototype._useArgs=function(e){const t=this._baseState,n=e.filter(function(r){return r instanceof this.constructor},this);e=e.filter(function(r){return!(r instanceof this.constructor)},this),n.length!==0&&(ko(t.children===null),t.children=n,n.forEach(function(r){r._baseState.parent=this},this)),e.length!==0&&(ko(t.args===null),t.args=e,t.reverseArgs=e.map(function(r){if(typeof r!="object"||r.constructor!==Object)return r;const o={};return Object.keys(r).forEach(function(i){i==(0|i)&&(i|=0);const c=r[i];o[c]=i}),o}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){mr.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),Ik.forEach(function(e){mr.prototype[e]=function(){const t=this._baseState,n=Array.prototype.slice.call(arguments);return ko(t.tag===null),t.tag=e,this._useArgs(n),this}}),mr.prototype.use=function(e){ko(e);const t=this._baseState;return ko(t.use===null),t.use=e,this},mr.prototype.optional=function(){return this._baseState.optional=!0,this},mr.prototype.def=function(e){const t=this._baseState;return ko(t.default===null),t.default=e,t.optional=!0,this},mr.prototype.explicit=function(e){const t=this._baseState;return ko(t.explicit===null&&t.implicit===null),t.explicit=e,this},mr.prototype.implicit=function(e){const t=this._baseState;return ko(t.explicit===null&&t.implicit===null),t.implicit=e,this},mr.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,t.length!==0&&this._useArgs(t),this},mr.prototype.key=function(e){const t=this._baseState;return ko(t.key===null),t.key=e,this},mr.prototype.any=function(){return this._baseState.any=!0,this},mr.prototype.choice=function(e){const t=this._baseState;return ko(t.choice===null),t.choice=e,this._useArgs(Object.keys(e).map(function(n){return e[n]})),this},mr.prototype.contains=function(e){const t=this._baseState;return ko(t.use===null),t.contains=e,this},mr.prototype._decode=function(e,t){const n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,t));let r,o=n.default,i=!0,c=null;if(n.key!==null&&(c=e.enterKey(n.key)),n.optional){let g=null;if(n.explicit!==null?g=n.explicit:n.implicit!==null?g=n.implicit:n.tag!==null&&(g=n.tag),g!==null||n.any){if(i=this._peekTag(e,g,n.any),e.isError(i))return i}else{const _=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),i=!0}catch{i=!1}e.restore(_)}}if(n.obj&&i&&(r=e.enterObject()),i){if(n.explicit!==null){const _=this._decodeTag(e,n.explicit);if(e.isError(_))return _;e=_}const g=e.offset;if(n.use===null&&n.choice===null){let _;n.any&&(_=e.save());const w=this._decodeTag(e,n.implicit!==null?n.implicit:n.tag,n.any);if(e.isError(w))return w;n.any?o=e.raw(_):e=w}if(t&&t.track&&n.tag!==null&&t.track(e.path(),g,e.length,"tagged"),t&&t.track&&n.tag!==null&&t.track(e.path(),e.offset,e.length,"content"),n.any||(o=n.choice===null?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(o))return o;if(n.any||n.choice!==null||n.children===null||n.children.forEach(function(_){_._decode(e,t)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){const _=new SB(o);o=this._getUse(n.contains,e._reporterState.obj)._decode(_,t)}}return n.obj&&i&&(o=e.leaveObject(r)),n.key===null||o===null&&i!==!0?c!==null&&e.exitKey(c):e.leaveKey(c,n.key,o),o},mr.prototype._decodeGeneric=function(e,t,n){const r=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):e==="objid"&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):e==="objid"?this._decodeObjid(t,null,null,n):e==="gentime"||e==="utctime"?this._decodeTime(t,e,n):e==="null_"?this._decodeNull(t,n):e==="bool"?this._decodeBool(t,n):e==="objDesc"?this._decodeStr(t,e,n):e==="int"||e==="enum"?this._decodeInt(t,r.args&&r.args[0],n):r.use!==null?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},mr.prototype._getUse=function(e,t){const n=this._baseState;return n.useDecoder=this._use(e,t),ko(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},mr.prototype._decodeChoice=function(e,t){const n=this._baseState;let r=null,o=!1;return Object.keys(n.choice).some(function(i){const c=e.save(),g=n.choice[i];try{const _=g._decode(e,t);if(e.isError(_))return!1;r={type:i,value:_},o=!0}catch{return e.restore(c),!1}return!0},this),o?r:e.error("Choice not matched")},mr.prototype._createEncoderBuffer=function(e){return new _B(e,this.reporter)},mr.prototype._encode=function(e,t,n){const r=this._baseState;if(r.default!==null&&r.default===e)return;const o=this._encodeValue(e,t,n);return o===void 0||this._skipDefault(o,t,n)?void 0:o},mr.prototype._encodeValue=function(e,t,n){const r=this._baseState;if(r.parent===null)return r.children[0]._encode(e,t||new wB);let o=null;if(this.reporter=t,r.optional&&e===void 0){if(r.default===null)return;e=r.default}let i=null,c=!1;if(r.any)o=this._createEncoderBuffer(e);else if(r.choice)o=this._encodeChoice(e,t);else if(r.contains)i=this._getUse(r.contains,n)._encode(e,t),c=!0;else if(r.children)i=r.children.map(function(g){if(g._baseState.tag==="null_")return g._encode(null,t,e);if(g._baseState.key===null)return t.error("Child should have a key");const _=t.enterKey(g._baseState.key);if(typeof e!="object")return t.error("Child expected, but input is not object");const w=g._encode(e[g._baseState.key],t,e);return t.leaveKey(_),w},this).filter(function(g){return g}),i=this._createEncoderBuffer(i);else if(r.tag==="seqof"||r.tag==="setof"){if(!r.args||r.args.length!==1)return t.error("Too many args for : "+r.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const g=this.clone();g._baseState.implicit=null,i=this._createEncoderBuffer(e.map(function(_){const w=this._baseState;return this._getUse(w.args[0],e)._encode(_,t)},g))}else r.use!==null?o=this._getUse(r.use,n)._encode(e,t):(i=this._encodePrimitive(r.tag,e),c=!0);if(!r.any&&r.choice===null){const g=r.implicit!==null?r.implicit:r.tag,_=r.implicit===null?"universal":"context";g===null?r.use===null&&t.error("Tag could be omitted only for .use()"):r.use===null&&(o=this._encodeComposite(g,c,_,i))}return r.explicit!==null&&(o=this._encodeComposite(r.explicit,!1,"context",o)),o},mr.prototype._encodeChoice=function(e,t){const n=this._baseState,r=n.choice[e.type];return r||ko(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},mr.prototype._encodePrimitive=function(e,t){const n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if(e==="objid"&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if(e==="objid")return this._encodeObjid(t,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(t,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(t,n.args&&n.reverseArgs[0]);if(e==="bool")return this._encodeBool(t);if(e==="objDesc")return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},mr.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},mr.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)};var fb={};(function(e){function t(n){const r={};return Object.keys(n).forEach(function(o){(0|o)==o&&(o|=0);const i=n[o];r[i]=o}),r}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=t(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=t(e.tag)})(fb);const MB=On,Xl=m8.Buffer,Ok=g8,v8=fb;function Nk(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new Ns,this.tree._init(e.body)}var Dk=Nk;function Ns(e){Ok.call(this,"der",e)}function Ga(e){return e<10?"0"+e:e}Nk.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},MB(Ns,Ok),Ns.prototype._encodeComposite=function(e,t,n,r){const o=function(g,_,w,S){let E;if(g==="seqof"?g="seq":g==="setof"&&(g="set"),v8.tagByName.hasOwnProperty(g))E=v8.tagByName[g];else{if(typeof g!="number"||(0|g)!==g)return S.error("Unknown tag: "+g);E=g}return E>=31?S.error("Multi-octet tag encoding unsupported"):(_||(E|=32),E|=v8.tagClassByName[w||"universal"]<<6,E)}(e,t,n,this.reporter);if(r.length<128){const g=Xl.alloc(2);return g[0]=o,g[1]=r.length,this._createEncoderBuffer([g,r])}let i=1;for(let g=r.length;g>=256;g>>=8)i++;const c=Xl.alloc(2+i);c[0]=o,c[1]=128|i;for(let g=1+i,_=r.length;_>0;g--,_>>=8)c[g]=255&_;return this._createEncoderBuffer([c,r])},Ns.prototype._encodeStr=function(e,t){if(t==="bitstr")return this._createEncoderBuffer([0|e.unused,e.data]);if(t==="bmpstr"){const n=Xl.alloc(2*e.length);for(let r=0;r<e.length;r++)n.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(n)}return t==="numstr"?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):t==="printstr"?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||t==="objDesc"?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},Ns.prototype._encodeObjid=function(e,t,n){if(typeof e=="string"){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(let c=0;c<e.length;c++)e[c]|=0}else if(Array.isArray(e)){e=e.slice();for(let c=0;c<e.length;c++)e[c]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let r=0;for(let c=0;c<e.length;c++){let g=e[c];for(r++;g>=128;g>>=7)r++}const o=Xl.alloc(r);let i=o.length-1;for(let c=e.length-1;c>=0;c--){let g=e[c];for(o[i--]=127&g;(g>>=7)>0;)o[i--]=128|127&g}return this._createEncoderBuffer(o)},Ns.prototype._encodeTime=function(e,t){let n;const r=new Date(e);return t==="gentime"?n=[Ga(r.getUTCFullYear()),Ga(r.getUTCMonth()+1),Ga(r.getUTCDate()),Ga(r.getUTCHours()),Ga(r.getUTCMinutes()),Ga(r.getUTCSeconds()),"Z"].join(""):t==="utctime"?n=[Ga(r.getUTCFullYear()%100),Ga(r.getUTCMonth()+1),Ga(r.getUTCDate()),Ga(r.getUTCHours()),Ga(r.getUTCMinutes()),Ga(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},Ns.prototype._encodeNull=function(){return this._createEncoderBuffer("")},Ns.prototype._encodeInt=function(e,t){if(typeof e=="string"){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if(typeof e!="number"&&!Xl.isBuffer(e)){const o=e.toArray();!e.sign&&128&o[0]&&o.unshift(0),e=Xl.from(o)}if(Xl.isBuffer(e)){let o=e.length;e.length===0&&o++;const i=Xl.alloc(o);return e.copy(i),e.length===0&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let o=e;o>=256;o>>=8)n++;const r=new Array(n);for(let o=r.length-1;o>=0;o--)r[o]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(Xl.from(r))},Ns.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},Ns.prototype._use=function(e,t){return typeof e=="function"&&(e=e(t)),e._getEncoder("der").tree},Ns.prototype._skipDefault=function(e,t,n){const r=this._baseState;let o;if(r.default===null)return!1;const i=e.join();if(r.defaultBuffer===void 0&&(r.defaultBuffer=this._encodeValue(r.default,t,n).join()),i.length!==r.defaultBuffer.length)return!1;for(o=0;o<i.length;o++)if(i[o]!==r.defaultBuffer[o])return!1;return!0};const b8=Dk;function y8(e){b8.call(this,e),this.enc="pem"}On(y8,b8);var CB=y8;y8.prototype.encode=function(e,t){const n=b8.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"];for(let o=0;o<n.length;o+=64)r.push(n.slice(o,o+64));return r.push("-----END "+t.label+"-----"),r.join(`
13
+ `)},function(e){const t=e;t.der=Dk,t.pem=CB}(p8);var w8={};const xB=On,AB=Ei,Bk=nh.DecoderBuffer,jk=g8,zk=fb;function Uk(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new _a,this.tree._init(e.body)}var Fk=Uk;function _a(e){jk.call(this,"der",e)}function _8(e,t){let n=e.readUInt8(t);if(e.isError(n))return n;const r=zk.tagClass[n>>6],o=(32&n)==0;if((31&n)==31){let i=n;for(n=0;(128&i)==128;){if(i=e.readUInt8(t),e.isError(i))return i;n<<=7,n|=127&i}}else n&=31;return{cls:r,primitive:o,tag:n,tagStr:zk.tag[n]}}function Kk(e,t,n){let r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&r===128)return null;if(!(128&r))return r;const o=127&r;if(o>4)return e.error("length octect is too long");r=0;for(let i=0;i<o;i++){r<<=8;const c=e.readUInt8(n);if(e.isError(c))return c;r|=c}return r}Uk.prototype.decode=function(e,t){return Bk.isDecoderBuffer(e)||(e=new Bk(e,t)),this.tree._decode(e,t)},xB(_a,jk),_a.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;const r=e.save(),o=_8(e,'Failed to peek tag: "'+t+'"');return e.isError(o)?o:(e.restore(r),o.tag===t||o.tagStr===t||o.tagStr+"of"===t||n)},_a.prototype._decodeTag=function(e,t,n){const r=_8(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;let o=Kk(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(o))return o;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||o!==null)return e.skip(o,'Failed to match body of: "'+t+'"');const i=e.save(),c=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(c)?c:(o=e.offset-i.offset,e.restore(i),e.skip(o,'Failed to match body of: "'+t+'"'))},_a.prototype._skipUntilEnd=function(e,t){for(;;){const n=_8(e,t);if(e.isError(n))return n;const r=Kk(e,n.primitive,t);if(e.isError(r))return r;let o;if(o=n.primitive||r!==null?e.skip(r):this._skipUntilEnd(e,t),e.isError(o))return o;if(n.tagStr==="end")break}},_a.prototype._decodeList=function(e,t,n,r){const o=[];for(;!e.isEmpty();){const i=this._peekTag(e,"end");if(e.isError(i))return i;const c=n.decode(e,"der",r);if(e.isError(c)&&i)break;o.push(c)}return o},_a.prototype._decodeStr=function(e,t){if(t==="bitstr"){const n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}if(t==="bmpstr"){const n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");let r="";for(let o=0;o<n.length/2;o++)r+=String.fromCharCode(n.readUInt16BE(2*o));return r}if(t==="numstr"){const n=e.raw().toString("ascii");return this._isNumstr(n)?n:e.error("Decoding of string type: numstr unsupported characters")}if(t==="octstr"||t==="objDesc")return e.raw();if(t==="printstr"){const n=e.raw().toString("ascii");return this._isPrintstr(n)?n:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},_a.prototype._decodeObjid=function(e,t,n){let r;const o=[];let i=0,c=0;for(;!e.isEmpty();)c=e.readUInt8(),i<<=7,i|=127&c,!(128&c)&&(o.push(i),i=0);128&c&&o.push(i);const g=o[0]/40|0,_=o[0]%40;if(r=n?o:[g,_].concat(o.slice(1)),t){let w=t[r.join(" ")];w===void 0&&(w=t[r.join(".")]),w!==void 0&&(r=w)}return r},_a.prototype._decodeTime=function(e,t){const n=e.raw().toString();let r,o,i,c,g,_;if(t==="gentime")r=0|n.slice(0,4),o=0|n.slice(4,6),i=0|n.slice(6,8),c=0|n.slice(8,10),g=0|n.slice(10,12),_=0|n.slice(12,14);else{if(t!=="utctime")return e.error("Decoding "+t+" time is not supported yet");r=0|n.slice(0,2),o=0|n.slice(2,4),i=0|n.slice(4,6),c=0|n.slice(6,8),g=0|n.slice(8,10),_=0|n.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,o-1,i,c,g,_,0)},_a.prototype._decodeNull=function(){return null},_a.prototype._decodeBool=function(e){const t=e.readUInt8();return e.isError(t)?t:t!==0},_a.prototype._decodeInt=function(e,t){const n=e.raw();let r=new AB(n);return t&&(r=t[r.toString(10)]||r),r},_a.prototype._use=function(e,t){return typeof e=="function"&&(e=e(t)),e._getDecoder("der").tree};const RB=On,TB=m8.Buffer,S8=Fk;function E8(e){S8.call(this,e),this.enc="pem"}RB(E8,S8);var PB=E8;E8.prototype.decode=function(e,t){const n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/;let i=-1,c=-1;for(let w=0;w<n.length;w++){const S=n[w].match(o);if(S!==null&&S[2]===r){if(i!==-1){if(S[1]!=="END")break;c=w;break}if(S[1]!=="BEGIN")break;i=w}}if(i===-1||c===-1)throw new Error("PEM section not found for: "+r);const g=n.slice(i+1,c).join("");g.replace(/[^a-z0-9+/=]+/gi,"");const _=TB.from(g,"base64");return S8.prototype.decode.call(this,_,t)},function(e){const t=e;t.der=Fk,t.pem=PB}(w8),function(e){const t=p8,n=w8,r=On;function o(i,c){this.name=i,this.body=c,this.decoders={},this.encoders={}}e.define=function(i,c){return new o(i,c)},o.prototype._createNamed=function(i){const c=this.name;function g(_){this._initNamed(_,c)}return r(g,i),g.prototype._initNamed=function(_,w){i.call(this,_,w)},new g(this)},o.prototype._getDecoder=function(i){return i=i||"der",this.decoders.hasOwnProperty(i)||(this.decoders[i]=this._createNamed(n[i])),this.decoders[i]},o.prototype.decode=function(i,c,g){return this._getDecoder(c).decode(i,g)},o.prototype._getEncoder=function(i){return i=i||"der",this.encoders.hasOwnProperty(i)||(this.encoders[i]=this._createNamed(t[i])),this.encoders[i]},o.prototype.encode=function(i,c,g){return this._getEncoder(c).encode(i,g)}}(Lk);var qk={};(function(e){const t=e;t.Reporter=cb.Reporter,t.DecoderBuffer=nh.DecoderBuffer,t.EncoderBuffer=nh.EncoderBuffer,t.Node=g8})(qk);var Hk={};(function(e){const t=e;t._reverse=function(n){const r={};return Object.keys(n).forEach(function(o){(0|o)==o&&(o|=0);const i=n[o];r[i]=o}),r},t.der=fb})(Hk),function(e){const t=e;t.bignum=Ei,t.define=Lk.define,t.base=qk,t.constants=Hk,t.decoders=w8,t.encoders=p8}(h8);var Ds=h8,Wk=Ds.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),LB=Ds.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),k8=Ds.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),IB=Ds.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(k8),this.key("subjectPublicKey").bitstr())}),OB=Ds.define("RelativeDistinguishedName",function(){this.setof(LB)}),NB=Ds.define("RDNSequence",function(){this.seqof(OB)}),$k=Ds.define("Name",function(){this.choice({rdnSequence:this.use(NB)})}),DB=Ds.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Wk),this.key("notAfter").use(Wk))}),BB=Ds.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),jB=Ds.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(k8),this.key("issuer").use($k),this.key("validity").use(DB),this.key("subject").use($k),this.key("subjectPublicKeyInfo").use(IB),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(BB).optional())}),zB=Ds.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(jB),this.key("signatureAlgorithm").use(k8),this.key("signatureValue").bitstr())}),Bs=h8;Os.certificate=zB;var UB=Bs.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});Os.RSAPrivateKey=UB;var FB=Bs.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Os.RSAPublicKey=FB;var KB=Bs.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Vk),this.key("subjectPublicKey").bitstr())});Os.PublicKey=KB;var Vk=Bs.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),qB=Bs.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(Vk),this.key("subjectPrivateKey").octstr())});Os.PrivateKey=qB;var HB=Bs.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});Os.EncryptedPrivateKey=HB;var WB=Bs.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});Os.DSAPrivateKey=WB,Os.DSAparam=Bs.define("DSAparam",function(){this.int()});var $B=Bs.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(VB),this.key("publicKey").optional().explicit(1).bitstr())});Os.ECPrivateKey=$B;var VB=Bs.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});Os.signature=Bs.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())});var YB=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,GB=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,ZB=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,QB=$v,XB=ya,hb=In().Buffer,Go=Os,JB={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"},ej=function(e,t){var n,r=e.toString(),o=r.match(YB);if(o){var i="aes"+o[1],c=hb.from(o[2],"hex"),g=hb.from(o[3].replace(/[\r\n]/g,""),"base64"),_=QB(t,c.slice(0,8),parseInt(o[1],10)).key,w=[],S=XB.createDecipheriv(i,_,c);w.push(S.update(g)),w.push(S.final()),n=hb.concat(w)}else{var E=r.match(ZB);n=hb.from(E[2].replace(/[\r\n]/g,""),"base64")}return{tag:r.match(GB)[1],data:n}},tj=ya,nj=Bv,M8=In().Buffer,pb=Yk;function Yk(e){var t;typeof e!="object"||M8.isBuffer(e)||(t=e.passphrase,e=e.key),typeof e=="string"&&(e=M8.from(e));var n,r,o=ej(e,t),i=o.tag,c=o.data;switch(i){case"CERTIFICATE":r=Go.certificate.decode(c,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(r||(r=Go.PublicKey.decode(c,"der")),n=r.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return Go.RSAPublicKey.decode(r.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return r.subjectPrivateKey=r.subjectPublicKey,{type:"ec",data:r};case"1.2.840.10040.4.1":return r.algorithm.params.pub_key=Go.DSAparam.decode(r.subjectPublicKey.data,"der"),{type:"dsa",data:r.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":c=function(g,_){var w=g.algorithm.decrypt.kde.kdeparams.salt,S=parseInt(g.algorithm.decrypt.kde.kdeparams.iters.toString(),10),E=JB[g.algorithm.decrypt.cipher.algo.join(".")],T=g.algorithm.decrypt.cipher.iv,I=g.subjectPrivateKey,j=parseInt(E.split("-")[1],10)/8,H=nj.pbkdf2Sync(_,w,S,j,"sha1"),V=tj.createDecipheriv(E,H,T),ee=[];return ee.push(V.update(I)),ee.push(V.final()),M8.concat(ee)}(c=Go.EncryptedPrivateKey.decode(c,"der"),t);case"PRIVATE KEY":switch(n=(r=Go.PrivateKey.decode(c,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return Go.RSAPrivateKey.decode(r.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:r.algorithm.curve,privateKey:Go.ECPrivateKey.decode(r.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return r.algorithm.params.priv_key=Go.DSAparam.decode(r.subjectPrivateKey,"der"),{type:"dsa",params:r.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return Go.RSAPublicKey.decode(c,"der");case"RSA PRIVATE KEY":return Go.RSAPrivateKey.decode(c,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:Go.DSAPrivateKey.decode(c,"der")};case"EC PRIVATE KEY":return{curve:(c=Go.ECPrivateKey.decode(c,"der")).parameters.value,privateKey:c.privateKey};default:throw new Error("unknown key type "+i)}}Yk.signature=Go.signature;var Gk,C8,Zk,Qk,Xk,x8,Jk,eM={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"};function rj(){if(Gk)return jm.exports;Gk=1;var e=In().Buffer,t=jS,n=X4,r=f8().ec,o=Pk,i=pb,c=eM;function g(E,T,I,j){if((E=e.from(E.toArray())).length<T.byteLength()){var H=e.alloc(T.byteLength()-E.length);E=e.concat([H,E])}var V=I.length,ee=function(le,pe){le=_(le,pe),le=le.mod(pe);var Me=e.from(le.toArray());if(Me.length<pe.byteLength()){var ye=e.alloc(pe.byteLength()-Me.length);Me=e.concat([ye,Me])}return Me}(I,T),X=e.alloc(V);X.fill(1);var ue=e.alloc(V);return ue=t(j,ue).update(X).update(e.from([0])).update(E).update(ee).digest(),X=t(j,ue).update(X).digest(),{k:ue=t(j,ue).update(X).update(e.from([1])).update(E).update(ee).digest(),v:X=t(j,ue).update(X).digest()}}function _(E,T){var I=new o(E),j=(E.length<<3)-T.bitLength();return j>0&&I.ishrn(j),I}function w(E,T,I){var j,H;do{for(j=e.alloc(0);8*j.length<E.bitLength();)T.v=t(I,T.k).update(T.v).digest(),j=e.concat([j,T.v]);H=_(j,E),T.k=t(I,T.k).update(T.v).update(e.from([0])).digest(),T.v=t(I,T.k).update(T.v).digest()}while(H.cmp(E)!==-1);return H}function S(E,T,I,j){return E.toRed(o.mont(I)).redPow(T).fromRed().mod(j)}return jm.exports=function(E,T,I,j,H){var V=i(T);if(V.curve){if(j!=="ecdsa"&&j!=="ecdsa/rsa")throw new Error("wrong private key type");return function(le,pe){var Me=c[pe.curve.join(".")];if(!Me)throw new Error("unknown curve "+pe.curve.join("."));var ye=new r(Me),Te=ye.keyFromPrivate(pe.privateKey),y=Te.sign(le);return e.from(y.toDER())}(E,V)}if(V.type==="dsa"){if(j!=="dsa")throw new Error("wrong private key type");return function(le,pe,Me){for(var ye,Te=pe.params.priv_key,y=pe.params.p,x=pe.params.q,d=pe.params.g,p=new o(0),h=_(le,x).mod(x),f=!1,l=g(Te,x,le,Me);f===!1;)p=S(d,ye=w(x,l,Me),y,x),(f=ye.invm(x).imul(h.add(Te.mul(p))).mod(x)).cmpn(0)===0&&(f=!1,p=new o(0));return function(b,C){b=b.toArray(),C=C.toArray(),128&b[0]&&(b=[0].concat(b)),128&C[0]&&(C=[0].concat(C));var R=b.length+C.length+4,L=[48,R,2,b.length];return L=L.concat(b,[2,C.length],C),e.from(L)}(p,f)}(E,V,I)}if(j!=="rsa"&&j!=="ecdsa/rsa")throw new Error("wrong private key type");E=e.concat([H,E]);for(var ee=V.modulus.byteLength(),X=[0,1];E.length+X.length+1<ee;)X.push(255);X.push(0);for(var ue=-1;++ue<E.length;)X.push(E[ue]);return n(X,V)},jm.exports.getKey=g,jm.exports.makeKey=w,jm.exports}function ij(){if(Zk)return C8;Zk=1;var e=In().Buffer,t=Pk,n=f8().ec,r=pb,o=eM;function i(c,g){if(c.cmpn(0)<=0)throw new Error("invalid sig");if(c.cmp(g)>=g)throw new Error("invalid sig")}return C8=function(c,g,_,w,S){var E=r(_);if(E.type==="ec"){if(w!=="ecdsa"&&w!=="ecdsa/rsa")throw new Error("wrong public key type");return function(X,ue,le){var pe=o[le.data.algorithm.curve.join(".")];if(!pe)throw new Error("unknown curve "+le.data.algorithm.curve.join("."));var Me=new n(pe),ye=le.data.subjectPrivateKey.data;return Me.verify(ue,X,ye)}(c,g,E)}if(E.type==="dsa"){if(w!=="dsa")throw new Error("wrong public key type");return function(X,ue,le){var pe=le.data.p,Me=le.data.q,ye=le.data.g,Te=le.data.pub_key,y=r.signature.decode(X,"der"),x=y.s,d=y.r;i(x,Me),i(d,Me);var p=t.mont(pe),h=x.invm(Me),f=ye.toRed(p).redPow(new t(ue).mul(h).mod(Me)).fromRed().mul(Te.toRed(p).redPow(d.mul(h).mod(Me)).fromRed()).mod(pe).mod(Me);return f.cmp(d)===0}(c,g,E)}if(w!=="rsa"&&w!=="ecdsa/rsa")throw new Error("wrong public key type");g=e.concat([S,g]);for(var T=E.modulus.byteLength(),I=[1],j=0;g.length+I.length+2<T;)I.push(255),j++;I.push(0);for(var H=-1;++H<g.length;)I.push(g[H]);I=e.from(I);var V=t.mont(E.modulus);c=(c=new t(c).toRed(V)).redPow(new t(E.publicExponent)),c=e.from(c.fromRed().toArray());var ee=j<8?1:0;for(T=Math.min(c.length,I.length),c.length!==I.length&&(ee=1),H=-1;++H<T;)ee|=c[H]^I[H];return ee===0},C8}var tM={},oj=xm,A8=In().Buffer,nM=function(e,t){for(var n,r=A8.alloc(0),o=0;r.length<t;)n=aj(o++),r=A8.concat([r,oj("sha1").update(e).update(n).digest()]);return r.slice(0,t)};function aj(e){var t=A8.allocUnsafe(4);return t.writeUInt32BE(e,0),t}var rM=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e},iM=Ei,sj=In().Buffer,oM=function(e,t){return sj.from(e.toRed(iM.mont(t.modulus)).redPow(new iM(t.publicExponent)).fromRed().toArray())},uj=pb,R8=lm,lj=xm,aM=nM,sM=rM,T8=Ei,cj=oM,dj=X4,js=In().Buffer,fj=function(e,t,n){var r;r=e.padding?e.padding:n?1:4;var o,i=uj(e);if(r===4)o=function(c,g){var _=c.modulus.byteLength(),w=g.length,S=lj("sha1").update(js.alloc(0)).digest(),E=S.length,T=2*E;if(w>_-T-2)throw new Error("message too long");var I=js.alloc(_-w-T-2),j=_-E-1,H=R8(E),V=sM(js.concat([S,I,js.alloc(1,1),g],j),aM(H,j)),ee=sM(H,aM(V,E));return new T8(js.concat([js.alloc(1),ee,V],_))}(i,t);else if(r===1)o=function(c,g,_){var w,S=g.length,E=c.modulus.byteLength();if(S>E-11)throw new Error("message too long");return w=_?js.alloc(E-S-3,255):function(T){for(var I,j=js.allocUnsafe(T),H=0,V=R8(2*T),ee=0;H<T;)ee===V.length&&(V=R8(2*T),ee=0),(I=V[ee++])&&(j[H++]=I);return j}(E-S-3),new T8(js.concat([js.from([0,_?1:2]),w,js.alloc(1),g],E))}(i,t,n);else{if(r!==3)throw new Error("unknown padding");if((o=new T8(t)).cmp(i.modulus)>=0)throw new Error("data too long for modulus")}return n?dj(o,i):cj(o,i)},hj=pb,uM=nM,lM=rM,cM=Ei,pj=X4,mj=xm,gj=oM,qm=In().Buffer,vj=function(e,t,n){var r;r=e.padding?e.padding:n?1:4;var o,i=hj(e),c=i.modulus.byteLength();if(t.length>c||new cM(t).cmp(i.modulus)>=0)throw new Error("decryption error");o=n?gj(new cM(t),i):pj(t,i);var g=qm.alloc(c-o.length);if(o=qm.concat([g,o],c),r===4)return function(_,w){var S=_.modulus.byteLength(),E=mj("sha1").update(qm.alloc(0)).digest(),T=E.length;if(w[0]!==0)throw new Error("decryption error");var I=w.slice(1,T+1),j=w.slice(T+1),H=lM(I,uM(j,T)),V=lM(j,uM(H,S-T-1));if(function(X,ue){X=qm.from(X),ue=qm.from(ue);var le=0,pe=X.length;X.length!==ue.length&&(le++,pe=Math.min(X.length,ue.length));for(var Me=-1;++Me<pe;)le+=X[Me]^ue[Me];return le}(E,V.slice(0,T)))throw new Error("decryption error");for(var ee=T;V[ee]===0;)ee++;if(V[ee++]!==1)throw new Error("decryption error");return V.slice(ee)}(i,o);if(r===1)return function(_,w,S){for(var E=w.slice(0,2),T=2,I=0;w[T++]!==0;)if(T>=w.length){I++;break}var j=w.slice(2,T-1);if((E.toString("hex")!=="0002"&&!S||E.toString("hex")!=="0001"&&S)&&I++,j.length<8&&I++,I)throw new Error("decryption error");return w.slice(T)}(0,o,n);if(r===3)return o;throw new Error("unknown padding")};(function(e){e.publicEncrypt=fj,e.privateDecrypt=vj,e.privateEncrypt=function(t,n){return e.publicEncrypt(t,n,!0)},e.publicDecrypt=function(t,n){return e.privateDecrypt(t,n,!0)}})(tM);var Hm={};function dM(){throw new Error(`secure random number generation not supported by this browser
14
+ use chrome, FireFox or Internet Explorer 11`)}var fM,hM=In(),pM=hM.Buffer,mM=hM.kMaxLength,P8=En.crypto||En.msCrypto,gM=Math.pow(2,32)-1;function vM(e,t){if(typeof e!="number"||e!=e)throw new TypeError("offset must be a number");if(e>gM||e<0)throw new TypeError("offset must be a uint32");if(e>mM||e>t)throw new RangeError("offset out of range")}function bM(e,t,n){if(typeof e!="number"||e!=e)throw new TypeError("size must be a number");if(e>gM||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>mM)throw new RangeError("buffer too small")}function yM(e,t,n,r){var o=e.buffer,i=new Uint8Array(o,t,n);return P8.getRandomValues(i),r?void xn(function(){r(null,e)}):e}function mb(){if(fM)return Pn;fM=1,Pn.randomBytes=Pn.rng=Pn.pseudoRandomBytes=Pn.prng=lm,Pn.createHash=Pn.Hash=xm,Pn.createHmac=Pn.Hmac=jS;var e=XO,t=Object.keys(e),n=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);Pn.getHashes=function(){return n};var r=Bv;Pn.pbkdf2=r.pbkdf2,Pn.pbkdf2Sync=r.pbkdf2Sync;var o=Ps;Pn.Cipher=o.Cipher,Pn.createCipher=o.createCipher,Pn.Cipheriv=o.Cipheriv,Pn.createCipheriv=o.createCipheriv,Pn.Decipher=o.Decipher,Pn.createDecipher=o.createDecipher,Pn.Decipheriv=o.Decipheriv,Pn.createDecipheriv=o.createDecipheriv,Pn.getCiphers=o.getCiphers,Pn.listCiphers=o.listCiphers;var i=function(){if(WE)return Qf;WE=1;var w=qE(),S=VN,E=YN(),T={binary:!0,hex:!0,base64:!0};return Qf.DiffieHellmanGroup=Qf.createDiffieHellmanGroup=Qf.getDiffieHellman=function(I){var j=new ze(S[I].prime,"hex"),H=new ze(S[I].gen,"hex");return new E(j,H)},Qf.createDiffieHellman=Qf.DiffieHellman=function I(j,H,V,ee){return va(H)||T[H]===void 0?I(j,"binary",H,V):(H=H||"binary",ee=ee||"binary",va(V=V||new ze([2]))||(V=new ze(V,ee)),typeof j=="number"?new E(w(j,V),V,!0):(va(j)||(j=new ze(j,H)),new E(j,V,!0)))},Qf}();Pn.DiffieHellmanGroup=i.DiffieHellmanGroup,Pn.createDiffieHellmanGroup=i.createDiffieHellmanGroup,Pn.getDiffieHellman=i.getDiffieHellman,Pn.createDiffieHellman=i.createDiffieHellman,Pn.DiffieHellman=i.DiffieHellman;var c=function(){if(Xk)return Qk;Xk=1;var w=In().Buffer,S=xm,E=ad,T=On,I=rj(),j=ij(),H=zS;function V(le){E.Writable.call(this);var pe=H[le];if(!pe)throw new Error("Unknown message digest");this._hashType=pe.hash,this._hash=S(pe.hash),this._tag=pe.id,this._signType=pe.sign}function ee(le){E.Writable.call(this);var pe=H[le];if(!pe)throw new Error("Unknown message digest");this._hash=S(pe.hash),this._tag=pe.id,this._signType=pe.sign}function X(le){return new V(le)}function ue(le){return new ee(le)}return Object.keys(H).forEach(function(le){H[le].id=w.from(H[le].id,"hex"),H[le.toLowerCase()]=H[le]}),T(V,E.Writable),V.prototype._write=function(le,pe,Me){this._hash.update(le),Me()},V.prototype.update=function(le,pe){return typeof le=="string"&&(le=w.from(le,pe)),this._hash.update(le),this},V.prototype.sign=function(le,pe){this.end();var Me=this._hash.digest(),ye=I(Me,le,this._hashType,this._signType,this._tag);return pe?ye.toString(pe):ye},T(ee,E.Writable),ee.prototype._write=function(le,pe,Me){this._hash.update(le),Me()},ee.prototype.update=function(le,pe){return typeof le=="string"&&(le=w.from(le,pe)),this._hash.update(le),this},ee.prototype.verify=function(le,pe,Me){typeof pe=="string"&&(pe=w.from(pe,Me)),this.end();var ye=this._hash.digest();return j(pe,ye,le,this._signType,this._tag)},Qk={Sign:X,Verify:ue,createSign:X,createVerify:ue}}();Pn.createSign=c.createSign,Pn.Sign=c.Sign,Pn.createVerify=c.createVerify,Pn.Verify=c.Verify,Pn.createECDH=function(){if(Jk)return x8;Jk=1;var w=f8(),S=Ei;x8=function(j){return new T(j)};var E={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function T(j){this.curveType=E[j],this.curveType||(this.curveType={name:j}),this.curve=new w.ec(this.curveType.name),this.keys=void 0}function I(j,H,V){Array.isArray(j)||(j=j.toArray());var ee=new ze(j);if(V&&ee.length<V){var X=new ze(V-ee.length);X.fill(0),ee=ze.concat([X,ee])}return H?ee.toString(H):ee}return E.p224=E.secp224r1,E.p256=E.secp256r1=E.prime256v1,E.p192=E.secp192r1=E.prime192v1,E.p384=E.secp384r1,E.p521=E.secp521r1,T.prototype.generateKeys=function(j,H){return this.keys=this.curve.genKeyPair(),this.getPublicKey(j,H)},T.prototype.computeSecret=function(j,H,V){return H=H||"utf8",va(j)||(j=new ze(j,H)),I(this.curve.keyFromPublic(j).getPublic().mul(this.keys.getPrivate()).getX(),V,this.curveType.byteLength)},T.prototype.getPublicKey=function(j,H){var V=this.keys.getPublic(H==="compressed",!0);return H==="hybrid"&&(V[V.length-1]%2?V[0]=7:V[0]=6),I(V,j)},T.prototype.getPrivateKey=function(j){return I(this.keys.getPrivate(),j)},T.prototype.setPublicKey=function(j,H){return H=H||"utf8",va(j)||(j=new ze(j,H)),this.keys._importPublic(j),this},T.prototype.setPrivateKey=function(j,H){H=H||"utf8",va(j)||(j=new ze(j,H));var V=new S(j);return V=V.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(V),this},x8}();var g=tM;Pn.publicEncrypt=g.publicEncrypt,Pn.privateEncrypt=g.privateEncrypt,Pn.publicDecrypt=g.publicDecrypt,Pn.privateDecrypt=g.privateDecrypt;var _=Hm;return Pn.randomFill=_.randomFill,Pn.randomFillSync=_.randomFillSync,Pn.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
15
+ `))},Pn.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},Pn}P8&&P8.getRandomValues?(Hm.randomFill=function(e,t,n,r){if(!(pM.isBuffer(e)||e instanceof En.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof t=="function")r=t,t=0,n=e.length;else if(typeof n=="function")r=n,n=e.length-t;else if(typeof r!="function")throw new TypeError('"cb" argument must be a function');return vM(t,e.length),bM(n,t,e.length),yM(e,t,n,r)},Hm.randomFillSync=function(e,t,n){if(t===void 0&&(t=0),!(pM.isBuffer(e)||e instanceof En.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return vM(t,e.length),n===void 0&&(n=e.length-t),bM(n,t,e.length),yM(e,t,n)}):(Hm.randomFill=dM,Hm.randomFillSync=dM);const{Buffer:rh}=xs,{createHash:bj,createHmac:wM}=mb(),_M={},SM=e=>{switch(e){case"sha256":case"sha3-256":case"blake2s256":return 32;case"sha512":case"sha3-512":case"blake2b512":return 64;case"sha224":case"sha3-224":return 28;case"sha384":case"sha3-384":return 48;case"sha1":return 20;case"md5":return 16;default:{let t=_M[e];return t===void 0&&(t=bj(e).digest().length,_M[e]=t),t}}},EM=(e,t,n,r)=>{const o=rh.isBuffer(n)?n:rh.from(n),i=r&&r.length?rh.from(r):rh.alloc(t,0);return wM(e,i).update(o).digest()},kM=(e,t,n,r,o)=>{const i=rh.isBuffer(o)?o:rh.from(o||""),c=i.length,g=Math.ceil(r/t);if(g>255)throw new Error(`OKM length ${r} is too long for ${e} hash`);const _=rh.alloc(t*g+c+1);for(let w=1,S=0,E=0;w<=g;++w)i.copy(_,E),_[E+c]=w,wM(e,n).update(_.slice(S,E+c+1)).digest().copy(_,E),S=E,E+=t;return _.slice(0,r)};function MM(e,t,{salt:n="",info:r="",hash:o="SHA-256"}={}){o=o.toLowerCase().replace("-","");const i=SM(o),c=EM(o,i,e,n);return kM(o,i,c,t,r)}Object.defineProperties(MM,{hash_length:{configurable:!1,enumerable:!1,writable:!1,value:SM},extract:{configurable:!1,enumerable:!1,writable:!1,value:EM},expand:{configurable:!1,enumerable:!1,writable:!1,value:kM}});var CM=MM;const up="Impossible case. Please create issue.",xM="The tweak was out of range or the resulted private key is invalid",AM="The tweak was out of range or equal to zero",yj="Unknow error on context randomization",wj="Private Key is invalid",ih="Public Key could not be parsed",gb="Public Key serialization error",_j="The sum of the public keys is not valid",Wm="Signature could not be parsed",Sj="The nonce generation function failed, or the private key was invalid",Ej="Public key could not be recover",kj="Scalar was invalid (zero or overflow)";function Za(e,t){if(!e)throw new Error(t)}function Hn(e,t,n){if(Za(t instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),n!==void 0)if(Array.isArray(n)){const r=`Expected ${e} to be an Uint8Array with length [${n.join(", ")}]`;Za(n.includes(t.length),r)}else{const r=`Expected ${e} to be an Uint8Array with length ${n}`;Za(t.length===n,r)}}function oh(e){Za(lp(e)==="Boolean","Expected compressed to be a Boolean")}function zs(e=n=>new Uint8Array(n),t){return typeof e=="function"&&(e=e(t)),Hn("output",e,t),e}function lp(e){return Object.prototype.toString.call(e).slice(8,-1)}var RM={},Mj="6.5.4",Sa={},TM={exports:{}};(function(e){(function(t,n){function r(y,x){if(!y)throw new Error(x||"Assertion failed")}function o(y,x){y.super_=x;var d=function(){};d.prototype=x.prototype,y.prototype=new d,y.prototype.constructor=y}function i(y,x,d){if(i.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,y!==null&&(x!=="le"&&x!=="be"||(d=x,x=10),this._init(y||0,x||10,d||"be"))}var c;typeof t=="object"?t.exports=i:n.BN=i,i.BN=i,i.wordSize=26;try{c=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:xs.Buffer}catch{}function g(y,x){var d=y.charCodeAt(x);return d>=65&&d<=70?d-55:d>=97&&d<=102?d-87:d-48&15}function _(y,x,d){var p=g(y,d);return d-1>=x&&(p|=g(y,d-1)<<4),p}function w(y,x,d,p){for(var h=0,f=Math.min(y.length,d),l=x;l<f;l++){var b=y.charCodeAt(l)-48;h*=p,h+=b>=49?b-49+10:b>=17?b-17+10:b}return h}i.isBN=function(y){return y instanceof i||y!==null&&typeof y=="object"&&y.constructor.wordSize===i.wordSize&&Array.isArray(y.words)},i.max=function(y,x){return y.cmp(x)>0?y:x},i.min=function(y,x){return y.cmp(x)<0?y:x},i.prototype._init=function(y,x,d){if(typeof y=="number")return this._initNumber(y,x,d);if(typeof y=="object")return this._initArray(y,x,d);x==="hex"&&(x=16),r(x===(0|x)&&x>=2&&x<=36);var p=0;(y=y.toString().replace(/\s+/g,""))[0]==="-"&&(p++,this.negative=1),p<y.length&&(x===16?this._parseHex(y,p,d):(this._parseBase(y,x,p),d==="le"&&this._initArray(this.toArray(),x,d)))},i.prototype._initNumber=function(y,x,d){y<0&&(this.negative=1,y=-y),y<67108864?(this.words=[67108863&y],this.length=1):y<4503599627370496?(this.words=[67108863&y,y/67108864&67108863],this.length=2):(r(y<9007199254740992),this.words=[67108863&y,y/67108864&67108863,1],this.length=3),d==="le"&&this._initArray(this.toArray(),x,d)},i.prototype._initArray=function(y,x,d){if(r(typeof y.length=="number"),y.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(y.length/3),this.words=new Array(this.length);for(var p=0;p<this.length;p++)this.words[p]=0;var h,f,l=0;if(d==="be")for(p=y.length-1,h=0;p>=0;p-=3)f=y[p]|y[p-1]<<8|y[p-2]<<16,this.words[h]|=f<<l&67108863,this.words[h+1]=f>>>26-l&67108863,(l+=24)>=26&&(l-=26,h++);else if(d==="le")for(p=0,h=0;p<y.length;p+=3)f=y[p]|y[p+1]<<8|y[p+2]<<16,this.words[h]|=f<<l&67108863,this.words[h+1]=f>>>26-l&67108863,(l+=24)>=26&&(l-=26,h++);return this.strip()},i.prototype._parseHex=function(y,x,d){this.length=Math.ceil((y.length-x)/6),this.words=new Array(this.length);for(var p=0;p<this.length;p++)this.words[p]=0;var h,f=0,l=0;if(d==="be")for(p=y.length-1;p>=x;p-=2)h=_(y,x,p)<<f,this.words[l]|=67108863&h,f>=18?(f-=18,l+=1,this.words[l]|=h>>>26):f+=8;else for(p=(y.length-x)%2==0?x+1:x;p<y.length;p+=2)h=_(y,x,p)<<f,this.words[l]|=67108863&h,f>=18?(f-=18,l+=1,this.words[l]|=h>>>26):f+=8;this.strip()},i.prototype._parseBase=function(y,x,d){this.words=[0],this.length=1;for(var p=0,h=1;h<=67108863;h*=x)p++;p--,h=h/x|0;for(var f=y.length-d,l=f%p,b=Math.min(f,f-l)+d,C=0,R=d;R<b;R+=p)C=w(y,R,R+p,x),this.imuln(h),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(l!==0){var L=1;for(C=w(y,R,y.length,x),R=0;R<l;R++)L*=x;this.imuln(L),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},i.prototype.copy=function(y){y.words=new Array(this.length);for(var x=0;x<this.length;x++)y.words[x]=this.words[x];y.length=this.length,y.negative=this.negative,y.red=this.red},i.prototype.clone=function(){var y=new i(null);return this.copy(y),y},i.prototype._expand=function(y){for(;this.length<y;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var S=["","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"],E=[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],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function I(y,x,d){d.negative=x.negative^y.negative;var p=y.length+x.length|0;d.length=p,p=p-1|0;var h=0|y.words[0],f=0|x.words[0],l=h*f,b=67108863&l,C=l/67108864|0;d.words[0]=b;for(var R=1;R<p;R++){for(var L=C>>>26,B=67108863&C,K=Math.min(R,x.length-1),z=Math.max(0,R-y.length+1);z<=K;z++){var O=R-z|0;L+=(l=(h=0|y.words[O])*(f=0|x.words[z])+B)/67108864|0,B=67108863&l}d.words[R]=0|B,C=0|L}return C!==0?d.words[R]=0|C:d.length--,d.strip()}i.prototype.toString=function(y,x){var d;if(x=0|x||1,(y=y||10)===16||y==="hex"){d="";for(var p=0,h=0,f=0;f<this.length;f++){var l=this.words[f],b=(16777215&(l<<p|h)).toString(16);d=(h=l>>>24-p&16777215)!==0||f!==this.length-1?S[6-b.length]+b+d:b+d,(p+=2)>=26&&(p-=26,f--)}for(h!==0&&(d=h.toString(16)+d);d.length%x!=0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}if(y===(0|y)&&y>=2&&y<=36){var C=E[y],R=T[y];d="";var L=this.clone();for(L.negative=0;!L.isZero();){var B=L.modn(R).toString(y);d=(L=L.idivn(R)).isZero()?B+d:S[C-B.length]+B+d}for(this.isZero()&&(d="0"+d);d.length%x!=0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var y=this.words[0];return this.length===2?y+=67108864*this.words[1]:this.length===3&&this.words[2]===1?y+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-y:y},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(y,x){return r(c!==void 0),this.toArrayLike(c,y,x)},i.prototype.toArray=function(y,x){return this.toArrayLike(Array,y,x)},i.prototype.toArrayLike=function(y,x,d){var p=this.byteLength(),h=d||Math.max(1,p);r(p<=h,"byte array longer than desired length"),r(h>0,"Requested array length <= 0"),this.strip();var f,l,b=x==="le",C=new y(h),R=this.clone();if(b){for(l=0;!R.isZero();l++)f=R.andln(255),R.iushrn(8),C[l]=f;for(;l<h;l++)C[l]=0}else{for(l=0;l<h-p;l++)C[l]=0;for(l=0;!R.isZero();l++)f=R.andln(255),R.iushrn(8),C[h-l-1]=f}return C},Math.clz32?i.prototype._countBits=function(y){return 32-Math.clz32(y)}:i.prototype._countBits=function(y){var x=y,d=0;return x>=4096&&(d+=13,x>>>=13),x>=64&&(d+=7,x>>>=7),x>=8&&(d+=4,x>>>=4),x>=2&&(d+=2,x>>>=2),d+x},i.prototype._zeroBits=function(y){if(y===0)return 26;var x=y,d=0;return!(8191&x)&&(d+=13,x>>>=13),!(127&x)&&(d+=7,x>>>=7),!(15&x)&&(d+=4,x>>>=4),!(3&x)&&(d+=2,x>>>=2),!(1&x)&&d++,d},i.prototype.bitLength=function(){var y=this.words[this.length-1],x=this._countBits(y);return 26*(this.length-1)+x},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var y=0,x=0;x<this.length;x++){var d=this._zeroBits(this.words[x]);if(y+=d,d!==26)break}return y},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(y){return this.negative!==0?this.abs().inotn(y).iaddn(1):this.clone()},i.prototype.fromTwos=function(y){return this.testn(y-1)?this.notn(y).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(y){for(;this.length<y.length;)this.words[this.length++]=0;for(var x=0;x<y.length;x++)this.words[x]=this.words[x]|y.words[x];return this.strip()},i.prototype.ior=function(y){return r((this.negative|y.negative)==0),this.iuor(y)},i.prototype.or=function(y){return this.length>y.length?this.clone().ior(y):y.clone().ior(this)},i.prototype.uor=function(y){return this.length>y.length?this.clone().iuor(y):y.clone().iuor(this)},i.prototype.iuand=function(y){var x;x=this.length>y.length?y:this;for(var d=0;d<x.length;d++)this.words[d]=this.words[d]&y.words[d];return this.length=x.length,this.strip()},i.prototype.iand=function(y){return r((this.negative|y.negative)==0),this.iuand(y)},i.prototype.and=function(y){return this.length>y.length?this.clone().iand(y):y.clone().iand(this)},i.prototype.uand=function(y){return this.length>y.length?this.clone().iuand(y):y.clone().iuand(this)},i.prototype.iuxor=function(y){var x,d;this.length>y.length?(x=this,d=y):(x=y,d=this);for(var p=0;p<d.length;p++)this.words[p]=x.words[p]^d.words[p];if(this!==x)for(;p<x.length;p++)this.words[p]=x.words[p];return this.length=x.length,this.strip()},i.prototype.ixor=function(y){return r((this.negative|y.negative)==0),this.iuxor(y)},i.prototype.xor=function(y){return this.length>y.length?this.clone().ixor(y):y.clone().ixor(this)},i.prototype.uxor=function(y){return this.length>y.length?this.clone().iuxor(y):y.clone().iuxor(this)},i.prototype.inotn=function(y){r(typeof y=="number"&&y>=0);var x=0|Math.ceil(y/26),d=y%26;this._expand(x),d>0&&x--;for(var p=0;p<x;p++)this.words[p]=67108863&~this.words[p];return d>0&&(this.words[p]=~this.words[p]&67108863>>26-d),this.strip()},i.prototype.notn=function(y){return this.clone().inotn(y)},i.prototype.setn=function(y,x){r(typeof y=="number"&&y>=0);var d=y/26|0,p=y%26;return this._expand(d+1),this.words[d]=x?this.words[d]|1<<p:this.words[d]&~(1<<p),this.strip()},i.prototype.iadd=function(y){var x,d,p;if(this.negative!==0&&y.negative===0)return this.negative=0,x=this.isub(y),this.negative^=1,this._normSign();if(this.negative===0&&y.negative!==0)return y.negative=0,x=this.isub(y),y.negative=1,x._normSign();this.length>y.length?(d=this,p=y):(d=y,p=this);for(var h=0,f=0;f<p.length;f++)x=(0|d.words[f])+(0|p.words[f])+h,this.words[f]=67108863&x,h=x>>>26;for(;h!==0&&f<d.length;f++)x=(0|d.words[f])+h,this.words[f]=67108863&x,h=x>>>26;if(this.length=d.length,h!==0)this.words[this.length]=h,this.length++;else if(d!==this)for(;f<d.length;f++)this.words[f]=d.words[f];return this},i.prototype.add=function(y){var x;return y.negative!==0&&this.negative===0?(y.negative=0,x=this.sub(y),y.negative^=1,x):y.negative===0&&this.negative!==0?(this.negative=0,x=y.sub(this),this.negative=1,x):this.length>y.length?this.clone().iadd(y):y.clone().iadd(this)},i.prototype.isub=function(y){if(y.negative!==0){y.negative=0;var x=this.iadd(y);return y.negative=1,x._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(y),this.negative=1,this._normSign();var d,p,h=this.cmp(y);if(h===0)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(d=this,p=y):(d=y,p=this);for(var f=0,l=0;l<p.length;l++)f=(x=(0|d.words[l])-(0|p.words[l])+f)>>26,this.words[l]=67108863&x;for(;f!==0&&l<d.length;l++)f=(x=(0|d.words[l])+f)>>26,this.words[l]=67108863&x;if(f===0&&l<d.length&&d!==this)for(;l<d.length;l++)this.words[l]=d.words[l];return this.length=Math.max(this.length,l),d!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(y){return this.clone().isub(y)};var j=function(y,x,d){var p,h,f,l=y.words,b=x.words,C=d.words,R=0,L=0|l[0],B=8191&L,K=L>>>13,z=0|l[1],O=8191&z,D=z>>>13,q=0|l[2],Y=8191&q,Q=q>>>13,ae=0|l[3],re=8191&ae,we=ae>>>13,de=0|l[4],ie=8191&de,oe=de>>>13,fe=0|l[5],me=8191&fe,Le=fe>>>13,De=0|l[6],Ce=8191&De,Qe=De>>>13,tt=0|l[7],Fe=8191&tt,Mt=tt>>>13,rt=0|l[8],He=8191&rt,lt=rt>>>13,mt=0|l[9],ct=8191&mt,Rt=mt>>>13,_t=0|b[0],ut=8191&_t,xt=_t>>>13,Tt=0|b[1],at=8191&Tt,Ct=Tt>>>13,At=0|b[2],ht=8191&At,Qt=At>>>13,Kt=0|b[3],vt=8191&Kt,sn=Kt>>>13,$t=0|b[4],ft=8191&$t,Vt=$t>>>13,Ut=0|b[5],gt=8191&Ut,Gt=Ut>>>13,Ft=0|b[6],kt=8191&Ft,en=Ft>>>13,rn=0|b[7],bt=8191&rn,Xt=rn>>>13,Jt=0|b[8],wt=8191&Jt,jt=Jt>>>13,cn=0|b[9],St=8191&cn,fn=cn>>>13;d.negative=y.negative^x.negative,d.length=19;var Yt=(R+(p=Math.imul(B,ut))|0)+((8191&(h=(h=Math.imul(B,xt))+Math.imul(K,ut)|0))<<13)|0;R=((f=Math.imul(K,xt))+(h>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,p=Math.imul(O,ut),h=(h=Math.imul(O,xt))+Math.imul(D,ut)|0,f=Math.imul(D,xt);var tn=(R+(p=p+Math.imul(B,at)|0)|0)+((8191&(h=(h=h+Math.imul(B,Ct)|0)+Math.imul(K,at)|0))<<13)|0;R=((f=f+Math.imul(K,Ct)|0)+(h>>>13)|0)+(tn>>>26)|0,tn&=67108863,p=Math.imul(Y,ut),h=(h=Math.imul(Y,xt))+Math.imul(Q,ut)|0,f=Math.imul(Q,xt),p=p+Math.imul(O,at)|0,h=(h=h+Math.imul(O,Ct)|0)+Math.imul(D,at)|0,f=f+Math.imul(D,Ct)|0;var Nr=(R+(p=p+Math.imul(B,ht)|0)|0)+((8191&(h=(h=h+Math.imul(B,Qt)|0)+Math.imul(K,ht)|0))<<13)|0;R=((f=f+Math.imul(K,Qt)|0)+(h>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,p=Math.imul(re,ut),h=(h=Math.imul(re,xt))+Math.imul(we,ut)|0,f=Math.imul(we,xt),p=p+Math.imul(Y,at)|0,h=(h=h+Math.imul(Y,Ct)|0)+Math.imul(Q,at)|0,f=f+Math.imul(Q,Ct)|0,p=p+Math.imul(O,ht)|0,h=(h=h+Math.imul(O,Qt)|0)+Math.imul(D,ht)|0,f=f+Math.imul(D,Qt)|0;var Dr=(R+(p=p+Math.imul(B,vt)|0)|0)+((8191&(h=(h=h+Math.imul(B,sn)|0)+Math.imul(K,vt)|0))<<13)|0;R=((f=f+Math.imul(K,sn)|0)+(h>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,p=Math.imul(ie,ut),h=(h=Math.imul(ie,xt))+Math.imul(oe,ut)|0,f=Math.imul(oe,xt),p=p+Math.imul(re,at)|0,h=(h=h+Math.imul(re,Ct)|0)+Math.imul(we,at)|0,f=f+Math.imul(we,Ct)|0,p=p+Math.imul(Y,ht)|0,h=(h=h+Math.imul(Y,Qt)|0)+Math.imul(Q,ht)|0,f=f+Math.imul(Q,Qt)|0,p=p+Math.imul(O,vt)|0,h=(h=h+Math.imul(O,sn)|0)+Math.imul(D,vt)|0,f=f+Math.imul(D,sn)|0;var xr=(R+(p=p+Math.imul(B,ft)|0)|0)+((8191&(h=(h=h+Math.imul(B,Vt)|0)+Math.imul(K,ft)|0))<<13)|0;R=((f=f+Math.imul(K,Vt)|0)+(h>>>13)|0)+(xr>>>26)|0,xr&=67108863,p=Math.imul(me,ut),h=(h=Math.imul(me,xt))+Math.imul(Le,ut)|0,f=Math.imul(Le,xt),p=p+Math.imul(ie,at)|0,h=(h=h+Math.imul(ie,Ct)|0)+Math.imul(oe,at)|0,f=f+Math.imul(oe,Ct)|0,p=p+Math.imul(re,ht)|0,h=(h=h+Math.imul(re,Qt)|0)+Math.imul(we,ht)|0,f=f+Math.imul(we,Qt)|0,p=p+Math.imul(Y,vt)|0,h=(h=h+Math.imul(Y,sn)|0)+Math.imul(Q,vt)|0,f=f+Math.imul(Q,sn)|0,p=p+Math.imul(O,ft)|0,h=(h=h+Math.imul(O,Vt)|0)+Math.imul(D,ft)|0,f=f+Math.imul(D,Vt)|0;var yr=(R+(p=p+Math.imul(B,gt)|0)|0)+((8191&(h=(h=h+Math.imul(B,Gt)|0)+Math.imul(K,gt)|0))<<13)|0;R=((f=f+Math.imul(K,Gt)|0)+(h>>>13)|0)+(yr>>>26)|0,yr&=67108863,p=Math.imul(Ce,ut),h=(h=Math.imul(Ce,xt))+Math.imul(Qe,ut)|0,f=Math.imul(Qe,xt),p=p+Math.imul(me,at)|0,h=(h=h+Math.imul(me,Ct)|0)+Math.imul(Le,at)|0,f=f+Math.imul(Le,Ct)|0,p=p+Math.imul(ie,ht)|0,h=(h=h+Math.imul(ie,Qt)|0)+Math.imul(oe,ht)|0,f=f+Math.imul(oe,Qt)|0,p=p+Math.imul(re,vt)|0,h=(h=h+Math.imul(re,sn)|0)+Math.imul(we,vt)|0,f=f+Math.imul(we,sn)|0,p=p+Math.imul(Y,ft)|0,h=(h=h+Math.imul(Y,Vt)|0)+Math.imul(Q,ft)|0,f=f+Math.imul(Q,Vt)|0,p=p+Math.imul(O,gt)|0,h=(h=h+Math.imul(O,Gt)|0)+Math.imul(D,gt)|0,f=f+Math.imul(D,Gt)|0;var Kr=(R+(p=p+Math.imul(B,kt)|0)|0)+((8191&(h=(h=h+Math.imul(B,en)|0)+Math.imul(K,kt)|0))<<13)|0;R=((f=f+Math.imul(K,en)|0)+(h>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,p=Math.imul(Fe,ut),h=(h=Math.imul(Fe,xt))+Math.imul(Mt,ut)|0,f=Math.imul(Mt,xt),p=p+Math.imul(Ce,at)|0,h=(h=h+Math.imul(Ce,Ct)|0)+Math.imul(Qe,at)|0,f=f+Math.imul(Qe,Ct)|0,p=p+Math.imul(me,ht)|0,h=(h=h+Math.imul(me,Qt)|0)+Math.imul(Le,ht)|0,f=f+Math.imul(Le,Qt)|0,p=p+Math.imul(ie,vt)|0,h=(h=h+Math.imul(ie,sn)|0)+Math.imul(oe,vt)|0,f=f+Math.imul(oe,sn)|0,p=p+Math.imul(re,ft)|0,h=(h=h+Math.imul(re,Vt)|0)+Math.imul(we,ft)|0,f=f+Math.imul(we,Vt)|0,p=p+Math.imul(Y,gt)|0,h=(h=h+Math.imul(Y,Gt)|0)+Math.imul(Q,gt)|0,f=f+Math.imul(Q,Gt)|0,p=p+Math.imul(O,kt)|0,h=(h=h+Math.imul(O,en)|0)+Math.imul(D,kt)|0,f=f+Math.imul(D,en)|0;var Cn=(R+(p=p+Math.imul(B,bt)|0)|0)+((8191&(h=(h=h+Math.imul(B,Xt)|0)+Math.imul(K,bt)|0))<<13)|0;R=((f=f+Math.imul(K,Xt)|0)+(h>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,p=Math.imul(He,ut),h=(h=Math.imul(He,xt))+Math.imul(lt,ut)|0,f=Math.imul(lt,xt),p=p+Math.imul(Fe,at)|0,h=(h=h+Math.imul(Fe,Ct)|0)+Math.imul(Mt,at)|0,f=f+Math.imul(Mt,Ct)|0,p=p+Math.imul(Ce,ht)|0,h=(h=h+Math.imul(Ce,Qt)|0)+Math.imul(Qe,ht)|0,f=f+Math.imul(Qe,Qt)|0,p=p+Math.imul(me,vt)|0,h=(h=h+Math.imul(me,sn)|0)+Math.imul(Le,vt)|0,f=f+Math.imul(Le,sn)|0,p=p+Math.imul(ie,ft)|0,h=(h=h+Math.imul(ie,Vt)|0)+Math.imul(oe,ft)|0,f=f+Math.imul(oe,Vt)|0,p=p+Math.imul(re,gt)|0,h=(h=h+Math.imul(re,Gt)|0)+Math.imul(we,gt)|0,f=f+Math.imul(we,Gt)|0,p=p+Math.imul(Y,kt)|0,h=(h=h+Math.imul(Y,en)|0)+Math.imul(Q,kt)|0,f=f+Math.imul(Q,en)|0,p=p+Math.imul(O,bt)|0,h=(h=h+Math.imul(O,Xt)|0)+Math.imul(D,bt)|0,f=f+Math.imul(D,Xt)|0;var un=(R+(p=p+Math.imul(B,wt)|0)|0)+((8191&(h=(h=h+Math.imul(B,jt)|0)+Math.imul(K,wt)|0))<<13)|0;R=((f=f+Math.imul(K,jt)|0)+(h>>>13)|0)+(un>>>26)|0,un&=67108863,p=Math.imul(ct,ut),h=(h=Math.imul(ct,xt))+Math.imul(Rt,ut)|0,f=Math.imul(Rt,xt),p=p+Math.imul(He,at)|0,h=(h=h+Math.imul(He,Ct)|0)+Math.imul(lt,at)|0,f=f+Math.imul(lt,Ct)|0,p=p+Math.imul(Fe,ht)|0,h=(h=h+Math.imul(Fe,Qt)|0)+Math.imul(Mt,ht)|0,f=f+Math.imul(Mt,Qt)|0,p=p+Math.imul(Ce,vt)|0,h=(h=h+Math.imul(Ce,sn)|0)+Math.imul(Qe,vt)|0,f=f+Math.imul(Qe,sn)|0,p=p+Math.imul(me,ft)|0,h=(h=h+Math.imul(me,Vt)|0)+Math.imul(Le,ft)|0,f=f+Math.imul(Le,Vt)|0,p=p+Math.imul(ie,gt)|0,h=(h=h+Math.imul(ie,Gt)|0)+Math.imul(oe,gt)|0,f=f+Math.imul(oe,Gt)|0,p=p+Math.imul(re,kt)|0,h=(h=h+Math.imul(re,en)|0)+Math.imul(we,kt)|0,f=f+Math.imul(we,en)|0,p=p+Math.imul(Y,bt)|0,h=(h=h+Math.imul(Y,Xt)|0)+Math.imul(Q,bt)|0,f=f+Math.imul(Q,Xt)|0,p=p+Math.imul(O,wt)|0,h=(h=h+Math.imul(O,jt)|0)+Math.imul(D,wt)|0,f=f+Math.imul(D,jt)|0;var wr=(R+(p=p+Math.imul(B,St)|0)|0)+((8191&(h=(h=h+Math.imul(B,fn)|0)+Math.imul(K,St)|0))<<13)|0;R=((f=f+Math.imul(K,fn)|0)+(h>>>13)|0)+(wr>>>26)|0,wr&=67108863,p=Math.imul(ct,at),h=(h=Math.imul(ct,Ct))+Math.imul(Rt,at)|0,f=Math.imul(Rt,Ct),p=p+Math.imul(He,ht)|0,h=(h=h+Math.imul(He,Qt)|0)+Math.imul(lt,ht)|0,f=f+Math.imul(lt,Qt)|0,p=p+Math.imul(Fe,vt)|0,h=(h=h+Math.imul(Fe,sn)|0)+Math.imul(Mt,vt)|0,f=f+Math.imul(Mt,sn)|0,p=p+Math.imul(Ce,ft)|0,h=(h=h+Math.imul(Ce,Vt)|0)+Math.imul(Qe,ft)|0,f=f+Math.imul(Qe,Vt)|0,p=p+Math.imul(me,gt)|0,h=(h=h+Math.imul(me,Gt)|0)+Math.imul(Le,gt)|0,f=f+Math.imul(Le,Gt)|0,p=p+Math.imul(ie,kt)|0,h=(h=h+Math.imul(ie,en)|0)+Math.imul(oe,kt)|0,f=f+Math.imul(oe,en)|0,p=p+Math.imul(re,bt)|0,h=(h=h+Math.imul(re,Xt)|0)+Math.imul(we,bt)|0,f=f+Math.imul(we,Xt)|0,p=p+Math.imul(Y,wt)|0,h=(h=h+Math.imul(Y,jt)|0)+Math.imul(Q,wt)|0,f=f+Math.imul(Q,jt)|0;var Br=(R+(p=p+Math.imul(O,St)|0)|0)+((8191&(h=(h=h+Math.imul(O,fn)|0)+Math.imul(D,St)|0))<<13)|0;R=((f=f+Math.imul(D,fn)|0)+(h>>>13)|0)+(Br>>>26)|0,Br&=67108863,p=Math.imul(ct,ht),h=(h=Math.imul(ct,Qt))+Math.imul(Rt,ht)|0,f=Math.imul(Rt,Qt),p=p+Math.imul(He,vt)|0,h=(h=h+Math.imul(He,sn)|0)+Math.imul(lt,vt)|0,f=f+Math.imul(lt,sn)|0,p=p+Math.imul(Fe,ft)|0,h=(h=h+Math.imul(Fe,Vt)|0)+Math.imul(Mt,ft)|0,f=f+Math.imul(Mt,Vt)|0,p=p+Math.imul(Ce,gt)|0,h=(h=h+Math.imul(Ce,Gt)|0)+Math.imul(Qe,gt)|0,f=f+Math.imul(Qe,Gt)|0,p=p+Math.imul(me,kt)|0,h=(h=h+Math.imul(me,en)|0)+Math.imul(Le,kt)|0,f=f+Math.imul(Le,en)|0,p=p+Math.imul(ie,bt)|0,h=(h=h+Math.imul(ie,Xt)|0)+Math.imul(oe,bt)|0,f=f+Math.imul(oe,Xt)|0,p=p+Math.imul(re,wt)|0,h=(h=h+Math.imul(re,jt)|0)+Math.imul(we,wt)|0,f=f+Math.imul(we,jt)|0;var Ar=(R+(p=p+Math.imul(Y,St)|0)|0)+((8191&(h=(h=h+Math.imul(Y,fn)|0)+Math.imul(Q,St)|0))<<13)|0;R=((f=f+Math.imul(Q,fn)|0)+(h>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,p=Math.imul(ct,vt),h=(h=Math.imul(ct,sn))+Math.imul(Rt,vt)|0,f=Math.imul(Rt,sn),p=p+Math.imul(He,ft)|0,h=(h=h+Math.imul(He,Vt)|0)+Math.imul(lt,ft)|0,f=f+Math.imul(lt,Vt)|0,p=p+Math.imul(Fe,gt)|0,h=(h=h+Math.imul(Fe,Gt)|0)+Math.imul(Mt,gt)|0,f=f+Math.imul(Mt,Gt)|0,p=p+Math.imul(Ce,kt)|0,h=(h=h+Math.imul(Ce,en)|0)+Math.imul(Qe,kt)|0,f=f+Math.imul(Qe,en)|0,p=p+Math.imul(me,bt)|0,h=(h=h+Math.imul(me,Xt)|0)+Math.imul(Le,bt)|0,f=f+Math.imul(Le,Xt)|0,p=p+Math.imul(ie,wt)|0,h=(h=h+Math.imul(ie,jt)|0)+Math.imul(oe,wt)|0,f=f+Math.imul(oe,jt)|0;var jr=(R+(p=p+Math.imul(re,St)|0)|0)+((8191&(h=(h=h+Math.imul(re,fn)|0)+Math.imul(we,St)|0))<<13)|0;R=((f=f+Math.imul(we,fn)|0)+(h>>>13)|0)+(jr>>>26)|0,jr&=67108863,p=Math.imul(ct,ft),h=(h=Math.imul(ct,Vt))+Math.imul(Rt,ft)|0,f=Math.imul(Rt,Vt),p=p+Math.imul(He,gt)|0,h=(h=h+Math.imul(He,Gt)|0)+Math.imul(lt,gt)|0,f=f+Math.imul(lt,Gt)|0,p=p+Math.imul(Fe,kt)|0,h=(h=h+Math.imul(Fe,en)|0)+Math.imul(Mt,kt)|0,f=f+Math.imul(Mt,en)|0,p=p+Math.imul(Ce,bt)|0,h=(h=h+Math.imul(Ce,Xt)|0)+Math.imul(Qe,bt)|0,f=f+Math.imul(Qe,Xt)|0,p=p+Math.imul(me,wt)|0,h=(h=h+Math.imul(me,jt)|0)+Math.imul(Le,wt)|0,f=f+Math.imul(Le,jt)|0;var ur=(R+(p=p+Math.imul(ie,St)|0)|0)+((8191&(h=(h=h+Math.imul(ie,fn)|0)+Math.imul(oe,St)|0))<<13)|0;R=((f=f+Math.imul(oe,fn)|0)+(h>>>13)|0)+(ur>>>26)|0,ur&=67108863,p=Math.imul(ct,gt),h=(h=Math.imul(ct,Gt))+Math.imul(Rt,gt)|0,f=Math.imul(Rt,Gt),p=p+Math.imul(He,kt)|0,h=(h=h+Math.imul(He,en)|0)+Math.imul(lt,kt)|0,f=f+Math.imul(lt,en)|0,p=p+Math.imul(Fe,bt)|0,h=(h=h+Math.imul(Fe,Xt)|0)+Math.imul(Mt,bt)|0,f=f+Math.imul(Mt,Xt)|0,p=p+Math.imul(Ce,wt)|0,h=(h=h+Math.imul(Ce,jt)|0)+Math.imul(Qe,wt)|0,f=f+Math.imul(Qe,jt)|0;var lr=(R+(p=p+Math.imul(me,St)|0)|0)+((8191&(h=(h=h+Math.imul(me,fn)|0)+Math.imul(Le,St)|0))<<13)|0;R=((f=f+Math.imul(Le,fn)|0)+(h>>>13)|0)+(lr>>>26)|0,lr&=67108863,p=Math.imul(ct,kt),h=(h=Math.imul(ct,en))+Math.imul(Rt,kt)|0,f=Math.imul(Rt,en),p=p+Math.imul(He,bt)|0,h=(h=h+Math.imul(He,Xt)|0)+Math.imul(lt,bt)|0,f=f+Math.imul(lt,Xt)|0,p=p+Math.imul(Fe,wt)|0,h=(h=h+Math.imul(Fe,jt)|0)+Math.imul(Mt,wt)|0,f=f+Math.imul(Mt,jt)|0;var Bn=(R+(p=p+Math.imul(Ce,St)|0)|0)+((8191&(h=(h=h+Math.imul(Ce,fn)|0)+Math.imul(Qe,St)|0))<<13)|0;R=((f=f+Math.imul(Qe,fn)|0)+(h>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,p=Math.imul(ct,bt),h=(h=Math.imul(ct,Xt))+Math.imul(Rt,bt)|0,f=Math.imul(Rt,Xt),p=p+Math.imul(He,wt)|0,h=(h=h+Math.imul(He,jt)|0)+Math.imul(lt,wt)|0,f=f+Math.imul(lt,jt)|0;var Zn=(R+(p=p+Math.imul(Fe,St)|0)|0)+((8191&(h=(h=h+Math.imul(Fe,fn)|0)+Math.imul(Mt,St)|0))<<13)|0;R=((f=f+Math.imul(Mt,fn)|0)+(h>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,p=Math.imul(ct,wt),h=(h=Math.imul(ct,jt))+Math.imul(Rt,wt)|0,f=Math.imul(Rt,jt);var Rr=(R+(p=p+Math.imul(He,St)|0)|0)+((8191&(h=(h=h+Math.imul(He,fn)|0)+Math.imul(lt,St)|0))<<13)|0;R=((f=f+Math.imul(lt,fn)|0)+(h>>>13)|0)+(Rr>>>26)|0,Rr&=67108863;var Ir=(R+(p=Math.imul(ct,St))|0)+((8191&(h=(h=Math.imul(ct,fn))+Math.imul(Rt,St)|0))<<13)|0;return R=((f=Math.imul(Rt,fn))+(h>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,C[0]=Yt,C[1]=tn,C[2]=Nr,C[3]=Dr,C[4]=xr,C[5]=yr,C[6]=Kr,C[7]=Cn,C[8]=un,C[9]=wr,C[10]=Br,C[11]=Ar,C[12]=jr,C[13]=ur,C[14]=lr,C[15]=Bn,C[16]=Zn,C[17]=Rr,C[18]=Ir,R!==0&&(C[19]=R,d.length++),d};function H(y,x,d){return new V().mulp(y,x,d)}function V(y,x){this.x=y,this.y=x}Math.imul||(j=I),i.prototype.mulTo=function(y,x){var d,p=this.length+y.length;return d=this.length===10&&y.length===10?j(this,y,x):p<63?I(this,y,x):p<1024?function(h,f,l){l.negative=f.negative^h.negative,l.length=h.length+f.length;for(var b=0,C=0,R=0;R<l.length-1;R++){var L=C;C=0;for(var B=67108863&b,K=Math.min(R,f.length-1),z=Math.max(0,R-h.length+1);z<=K;z++){var O=R-z,D=(0|h.words[O])*(0|f.words[z]),q=67108863&D;B=67108863&(q=q+B|0),C+=(L=(L=L+(D/67108864|0)|0)+(q>>>26)|0)>>>26,L&=67108863}l.words[R]=B,b=L,L=C}return b!==0?l.words[R]=b:l.length--,l.strip()}(this,y,x):H(this,y,x),d},V.prototype.makeRBT=function(y){for(var x=new Array(y),d=i.prototype._countBits(y)-1,p=0;p<y;p++)x[p]=this.revBin(p,d,y);return x},V.prototype.revBin=function(y,x,d){if(y===0||y===d-1)return y;for(var p=0,h=0;h<x;h++)p|=(1&y)<<x-h-1,y>>=1;return p},V.prototype.permute=function(y,x,d,p,h,f){for(var l=0;l<f;l++)p[l]=x[y[l]],h[l]=d[y[l]]},V.prototype.transform=function(y,x,d,p,h,f){this.permute(f,y,x,d,p,h);for(var l=1;l<h;l<<=1)for(var b=l<<1,C=Math.cos(2*Math.PI/b),R=Math.sin(2*Math.PI/b),L=0;L<h;L+=b)for(var B=C,K=R,z=0;z<l;z++){var O=d[L+z],D=p[L+z],q=d[L+z+l],Y=p[L+z+l],Q=B*q-K*Y;Y=B*Y+K*q,q=Q,d[L+z]=O+q,p[L+z]=D+Y,d[L+z+l]=O-q,p[L+z+l]=D-Y,z!==b&&(Q=C*B-R*K,K=C*K+R*B,B=Q)}},V.prototype.guessLen13b=function(y,x){var d=1|Math.max(x,y),p=1&d,h=0;for(d=d/2|0;d;d>>>=1)h++;return 1<<h+1+p},V.prototype.conjugate=function(y,x,d){if(!(d<=1))for(var p=0;p<d/2;p++){var h=y[p];y[p]=y[d-p-1],y[d-p-1]=h,h=x[p],x[p]=-x[d-p-1],x[d-p-1]=-h}},V.prototype.normalize13b=function(y,x){for(var d=0,p=0;p<x/2;p++){var h=8192*Math.round(y[2*p+1]/x)+Math.round(y[2*p]/x)+d;y[p]=67108863&h,d=h<67108864?0:h/67108864|0}return y},V.prototype.convert13b=function(y,x,d,p){for(var h=0,f=0;f<x;f++)h+=0|y[f],d[2*f]=8191&h,h>>>=13,d[2*f+1]=8191&h,h>>>=13;for(f=2*x;f<p;++f)d[f]=0;r(h===0),r((-8192&h)==0)},V.prototype.stub=function(y){for(var x=new Array(y),d=0;d<y;d++)x[d]=0;return x},V.prototype.mulp=function(y,x,d){var p=2*this.guessLen13b(y.length,x.length),h=this.makeRBT(p),f=this.stub(p),l=new Array(p),b=new Array(p),C=new Array(p),R=new Array(p),L=new Array(p),B=new Array(p),K=d.words;K.length=p,this.convert13b(y.words,y.length,l,p),this.convert13b(x.words,x.length,R,p),this.transform(l,f,b,C,p,h),this.transform(R,f,L,B,p,h);for(var z=0;z<p;z++){var O=b[z]*L[z]-C[z]*B[z];C[z]=b[z]*B[z]+C[z]*L[z],b[z]=O}return this.conjugate(b,C,p),this.transform(b,C,K,f,p,h),this.conjugate(K,f,p),this.normalize13b(K,p),d.negative=y.negative^x.negative,d.length=y.length+x.length,d.strip()},i.prototype.mul=function(y){var x=new i(null);return x.words=new Array(this.length+y.length),this.mulTo(y,x)},i.prototype.mulf=function(y){var x=new i(null);return x.words=new Array(this.length+y.length),H(this,y,x)},i.prototype.imul=function(y){return this.clone().mulTo(y,this)},i.prototype.imuln=function(y){r(typeof y=="number"),r(y<67108864);for(var x=0,d=0;d<this.length;d++){var p=(0|this.words[d])*y,h=(67108863&p)+(67108863&x);x>>=26,x+=p/67108864|0,x+=h>>>26,this.words[d]=67108863&h}return x!==0&&(this.words[d]=x,this.length++),this},i.prototype.muln=function(y){return this.clone().imuln(y)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(y){var x=function(f){for(var l=new Array(f.bitLength()),b=0;b<l.length;b++){var C=b/26|0,R=b%26;l[b]=(f.words[C]&1<<R)>>>R}return l}(y);if(x.length===0)return new i(1);for(var d=this,p=0;p<x.length&&x[p]===0;p++,d=d.sqr());if(++p<x.length)for(var h=d.sqr();p<x.length;p++,h=h.sqr())x[p]!==0&&(d=d.mul(h));return d},i.prototype.iushln=function(y){r(typeof y=="number"&&y>=0);var x,d=y%26,p=(y-d)/26,h=67108863>>>26-d<<26-d;if(d!==0){var f=0;for(x=0;x<this.length;x++){var l=this.words[x]&h,b=(0|this.words[x])-l<<d;this.words[x]=b|f,f=l>>>26-d}f&&(this.words[x]=f,this.length++)}if(p!==0){for(x=this.length-1;x>=0;x--)this.words[x+p]=this.words[x];for(x=0;x<p;x++)this.words[x]=0;this.length+=p}return this.strip()},i.prototype.ishln=function(y){return r(this.negative===0),this.iushln(y)},i.prototype.iushrn=function(y,x,d){var p;r(typeof y=="number"&&y>=0),p=x?(x-x%26)/26:0;var h=y%26,f=Math.min((y-h)/26,this.length),l=67108863^67108863>>>h<<h,b=d;if(p-=f,p=Math.max(0,p),b){for(var C=0;C<f;C++)b.words[C]=this.words[C];b.length=f}if(f!==0)if(this.length>f)for(this.length-=f,C=0;C<this.length;C++)this.words[C]=this.words[C+f];else this.words[0]=0,this.length=1;var R=0;for(C=this.length-1;C>=0&&(R!==0||C>=p);C--){var L=0|this.words[C];this.words[C]=R<<26-h|L>>>h,R=L&l}return b&&R!==0&&(b.words[b.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(y,x,d){return r(this.negative===0),this.iushrn(y,x,d)},i.prototype.shln=function(y){return this.clone().ishln(y)},i.prototype.ushln=function(y){return this.clone().iushln(y)},i.prototype.shrn=function(y){return this.clone().ishrn(y)},i.prototype.ushrn=function(y){return this.clone().iushrn(y)},i.prototype.testn=function(y){r(typeof y=="number"&&y>=0);var x=y%26,d=(y-x)/26,p=1<<x;return!(this.length<=d)&&!!(this.words[d]&p)},i.prototype.imaskn=function(y){r(typeof y=="number"&&y>=0);var x=y%26,d=(y-x)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=d)return this;if(x!==0&&d++,this.length=Math.min(d,this.length),x!==0){var p=67108863^67108863>>>x<<x;this.words[this.length-1]&=p}return this.strip()},i.prototype.maskn=function(y){return this.clone().imaskn(y)},i.prototype.iaddn=function(y){return r(typeof y=="number"),r(y<67108864),y<0?this.isubn(-y):this.negative!==0?this.length===1&&(0|this.words[0])<y?(this.words[0]=y-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(y),this.negative=1,this):this._iaddn(y)},i.prototype._iaddn=function(y){this.words[0]+=y;for(var x=0;x<this.length&&this.words[x]>=67108864;x++)this.words[x]-=67108864,x===this.length-1?this.words[x+1]=1:this.words[x+1]++;return this.length=Math.max(this.length,x+1),this},i.prototype.isubn=function(y){if(r(typeof y=="number"),r(y<67108864),y<0)return this.iaddn(-y);if(this.negative!==0)return this.negative=0,this.iaddn(y),this.negative=1,this;if(this.words[0]-=y,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var x=0;x<this.length&&this.words[x]<0;x++)this.words[x]+=67108864,this.words[x+1]-=1;return this.strip()},i.prototype.addn=function(y){return this.clone().iaddn(y)},i.prototype.subn=function(y){return this.clone().isubn(y)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(y,x,d){var p,h,f=y.length+d;this._expand(f);var l=0;for(p=0;p<y.length;p++){h=(0|this.words[p+d])+l;var b=(0|y.words[p])*x;l=((h-=67108863&b)>>26)-(b/67108864|0),this.words[p+d]=67108863&h}for(;p<this.length-d;p++)l=(h=(0|this.words[p+d])+l)>>26,this.words[p+d]=67108863&h;if(l===0)return this.strip();for(r(l===-1),l=0,p=0;p<this.length;p++)l=(h=-(0|this.words[p])+l)>>26,this.words[p]=67108863&h;return this.negative=1,this.strip()},i.prototype._wordDiv=function(y,x){var d=(this.length,y.length),p=this.clone(),h=y,f=0|h.words[h.length-1];(d=26-this._countBits(f))!==0&&(h=h.ushln(d),p.iushln(d),f=0|h.words[h.length-1]);var l,b=p.length-h.length;if(x!=="mod"){(l=new i(null)).length=b+1,l.words=new Array(l.length);for(var C=0;C<l.length;C++)l.words[C]=0}var R=p.clone()._ishlnsubmul(h,1,b);R.negative===0&&(p=R,l&&(l.words[b]=1));for(var L=b-1;L>=0;L--){var B=67108864*(0|p.words[h.length+L])+(0|p.words[h.length+L-1]);for(B=Math.min(B/f|0,67108863),p._ishlnsubmul(h,B,L);p.negative!==0;)B--,p.negative=0,p._ishlnsubmul(h,1,L),p.isZero()||(p.negative^=1);l&&(l.words[L]=B)}return l&&l.strip(),p.strip(),x!=="div"&&d!==0&&p.iushrn(d),{div:l||null,mod:p}},i.prototype.divmod=function(y,x,d){return r(!y.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:this.negative!==0&&y.negative===0?(f=this.neg().divmod(y,x),x!=="mod"&&(p=f.div.neg()),x!=="div"&&(h=f.mod.neg(),d&&h.negative!==0&&h.iadd(y)),{div:p,mod:h}):this.negative===0&&y.negative!==0?(f=this.divmod(y.neg(),x),x!=="mod"&&(p=f.div.neg()),{div:p,mod:f.mod}):this.negative&y.negative?(f=this.neg().divmod(y.neg(),x),x!=="div"&&(h=f.mod.neg(),d&&h.negative!==0&&h.isub(y)),{div:f.div,mod:h}):y.length>this.length||this.cmp(y)<0?{div:new i(0),mod:this}:y.length===1?x==="div"?{div:this.divn(y.words[0]),mod:null}:x==="mod"?{div:null,mod:new i(this.modn(y.words[0]))}:{div:this.divn(y.words[0]),mod:new i(this.modn(y.words[0]))}:this._wordDiv(y,x);var p,h,f},i.prototype.div=function(y){return this.divmod(y,"div",!1).div},i.prototype.mod=function(y){return this.divmod(y,"mod",!1).mod},i.prototype.umod=function(y){return this.divmod(y,"mod",!0).mod},i.prototype.divRound=function(y){var x=this.divmod(y);if(x.mod.isZero())return x.div;var d=x.div.negative!==0?x.mod.isub(y):x.mod,p=y.ushrn(1),h=y.andln(1),f=d.cmp(p);return f<0||h===1&&f===0?x.div:x.div.negative!==0?x.div.isubn(1):x.div.iaddn(1)},i.prototype.modn=function(y){r(y<=67108863);for(var x=(1<<26)%y,d=0,p=this.length-1;p>=0;p--)d=(x*d+(0|this.words[p]))%y;return d},i.prototype.idivn=function(y){r(y<=67108863);for(var x=0,d=this.length-1;d>=0;d--){var p=(0|this.words[d])+67108864*x;this.words[d]=p/y|0,x=p%y}return this.strip()},i.prototype.divn=function(y){return this.clone().idivn(y)},i.prototype.egcd=function(y){r(y.negative===0),r(!y.isZero());var x=this,d=y.clone();x=x.negative!==0?x.umod(y):x.clone();for(var p=new i(1),h=new i(0),f=new i(0),l=new i(1),b=0;x.isEven()&&d.isEven();)x.iushrn(1),d.iushrn(1),++b;for(var C=d.clone(),R=x.clone();!x.isZero();){for(var L=0,B=1;!(x.words[0]&B)&&L<26;++L,B<<=1);if(L>0)for(x.iushrn(L);L-- >0;)(p.isOdd()||h.isOdd())&&(p.iadd(C),h.isub(R)),p.iushrn(1),h.iushrn(1);for(var K=0,z=1;!(d.words[0]&z)&&K<26;++K,z<<=1);if(K>0)for(d.iushrn(K);K-- >0;)(f.isOdd()||l.isOdd())&&(f.iadd(C),l.isub(R)),f.iushrn(1),l.iushrn(1);x.cmp(d)>=0?(x.isub(d),p.isub(f),h.isub(l)):(d.isub(x),f.isub(p),l.isub(h))}return{a:f,b:l,gcd:d.iushln(b)}},i.prototype._invmp=function(y){r(y.negative===0),r(!y.isZero());var x=this,d=y.clone();x=x.negative!==0?x.umod(y):x.clone();for(var p,h=new i(1),f=new i(0),l=d.clone();x.cmpn(1)>0&&d.cmpn(1)>0;){for(var b=0,C=1;!(x.words[0]&C)&&b<26;++b,C<<=1);if(b>0)for(x.iushrn(b);b-- >0;)h.isOdd()&&h.iadd(l),h.iushrn(1);for(var R=0,L=1;!(d.words[0]&L)&&R<26;++R,L<<=1);if(R>0)for(d.iushrn(R);R-- >0;)f.isOdd()&&f.iadd(l),f.iushrn(1);x.cmp(d)>=0?(x.isub(d),h.isub(f)):(d.isub(x),f.isub(h))}return(p=x.cmpn(1)===0?h:f).cmpn(0)<0&&p.iadd(y),p},i.prototype.gcd=function(y){if(this.isZero())return y.abs();if(y.isZero())return this.abs();var x=this.clone(),d=y.clone();x.negative=0,d.negative=0;for(var p=0;x.isEven()&&d.isEven();p++)x.iushrn(1),d.iushrn(1);for(;;){for(;x.isEven();)x.iushrn(1);for(;d.isEven();)d.iushrn(1);var h=x.cmp(d);if(h<0){var f=x;x=d,d=f}else if(h===0||d.cmpn(1)===0)break;x.isub(d)}return d.iushln(p)},i.prototype.invm=function(y){return this.egcd(y).a.umod(y)},i.prototype.isEven=function(){return(1&this.words[0])==0},i.prototype.isOdd=function(){return(1&this.words[0])==1},i.prototype.andln=function(y){return this.words[0]&y},i.prototype.bincn=function(y){r(typeof y=="number");var x=y%26,d=(y-x)/26,p=1<<x;if(this.length<=d)return this._expand(d+1),this.words[d]|=p,this;for(var h=p,f=d;h!==0&&f<this.length;f++){var l=0|this.words[f];h=(l+=h)>>>26,l&=67108863,this.words[f]=l}return h!==0&&(this.words[f]=h,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(y){var x,d=y<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;if(this.strip(),this.length>1)x=1;else{d&&(y=-y),r(y<=67108863,"Number is too big");var p=0|this.words[0];x=p===y?0:p<y?-1:1}return this.negative!==0?0|-x:x},i.prototype.cmp=function(y){if(this.negative!==0&&y.negative===0)return-1;if(this.negative===0&&y.negative!==0)return 1;var x=this.ucmp(y);return this.negative!==0?0|-x:x},i.prototype.ucmp=function(y){if(this.length>y.length)return 1;if(this.length<y.length)return-1;for(var x=0,d=this.length-1;d>=0;d--){var p=0|this.words[d],h=0|y.words[d];if(p!==h){p<h?x=-1:p>h&&(x=1);break}}return x},i.prototype.gtn=function(y){return this.cmpn(y)===1},i.prototype.gt=function(y){return this.cmp(y)===1},i.prototype.gten=function(y){return this.cmpn(y)>=0},i.prototype.gte=function(y){return this.cmp(y)>=0},i.prototype.ltn=function(y){return this.cmpn(y)===-1},i.prototype.lt=function(y){return this.cmp(y)===-1},i.prototype.lten=function(y){return this.cmpn(y)<=0},i.prototype.lte=function(y){return this.cmp(y)<=0},i.prototype.eqn=function(y){return this.cmpn(y)===0},i.prototype.eq=function(y){return this.cmp(y)===0},i.red=function(y){return new ye(y)},i.prototype.toRed=function(y){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),y.convertTo(this)._forceRed(y)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(y){return this.red=y,this},i.prototype.forceRed=function(y){return r(!this.red,"Already a number in reduction context"),this._forceRed(y)},i.prototype.redAdd=function(y){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,y)},i.prototype.redIAdd=function(y){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,y)},i.prototype.redSub=function(y){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,y)},i.prototype.redISub=function(y){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,y)},i.prototype.redShl=function(y){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,y)},i.prototype.redMul=function(y){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,y),this.red.mul(this,y)},i.prototype.redIMul=function(y){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,y),this.red.imul(this,y)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(y){return r(this.red&&!y.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,y)};var ee={k256:null,p224:null,p192:null,p25519:null};function X(y,x){this.name=y,this.p=new i(x,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ue(){X.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function pe(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function Me(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ye(y){if(typeof y=="string"){var x=i._prime(y);this.m=x.p,this.prime=x}else r(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function Te(y){ye.call(this,y),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}X.prototype._tmp=function(){var y=new i(null);return y.words=new Array(Math.ceil(this.n/13)),y},X.prototype.ireduce=function(y){var x,d=y;do this.split(d,this.tmp),x=(d=(d=this.imulK(d)).iadd(this.tmp)).bitLength();while(x>this.n);var p=x<this.n?-1:d.ucmp(this.p);return p===0?(d.words[0]=0,d.length=1):p>0?d.isub(this.p):d.strip!==void 0?d.strip():d._strip(),d},X.prototype.split=function(y,x){y.iushrn(this.n,0,x)},X.prototype.imulK=function(y){return y.imul(this.k)},o(ue,X),ue.prototype.split=function(y,x){for(var d=4194303,p=Math.min(y.length,9),h=0;h<p;h++)x.words[h]=y.words[h];if(x.length=p,y.length<=9)return y.words[0]=0,void(y.length=1);var f=y.words[9];for(x.words[x.length++]=f&d,h=10;h<y.length;h++){var l=0|y.words[h];y.words[h-10]=(l&d)<<4|f>>>22,f=l}f>>>=22,y.words[h-10]=f,f===0&&y.length>10?y.length-=10:y.length-=9},ue.prototype.imulK=function(y){y.words[y.length]=0,y.words[y.length+1]=0,y.length+=2;for(var x=0,d=0;d<y.length;d++){var p=0|y.words[d];x+=977*p,y.words[d]=67108863&x,x=64*p+(x/67108864|0)}return y.words[y.length-1]===0&&(y.length--,y.words[y.length-1]===0&&y.length--),y},o(le,X),o(pe,X),o(Me,X),Me.prototype.imulK=function(y){for(var x=0,d=0;d<y.length;d++){var p=19*(0|y.words[d])+x,h=67108863&p;p>>>=26,y.words[d]=h,x=p}return x!==0&&(y.words[y.length++]=x),y},i._prime=function(y){if(ee[y])return ee[y];var x;if(y==="k256")x=new ue;else if(y==="p224")x=new le;else if(y==="p192")x=new pe;else{if(y!=="p25519")throw new Error("Unknown prime "+y);x=new Me}return ee[y]=x,x},ye.prototype._verify1=function(y){r(y.negative===0,"red works only with positives"),r(y.red,"red works only with red numbers")},ye.prototype._verify2=function(y,x){r((y.negative|x.negative)==0,"red works only with positives"),r(y.red&&y.red===x.red,"red works only with red numbers")},ye.prototype.imod=function(y){return this.prime?this.prime.ireduce(y)._forceRed(this):y.umod(this.m)._forceRed(this)},ye.prototype.neg=function(y){return y.isZero()?y.clone():this.m.sub(y)._forceRed(this)},ye.prototype.add=function(y,x){this._verify2(y,x);var d=y.add(x);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},ye.prototype.iadd=function(y,x){this._verify2(y,x);var d=y.iadd(x);return d.cmp(this.m)>=0&&d.isub(this.m),d},ye.prototype.sub=function(y,x){this._verify2(y,x);var d=y.sub(x);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},ye.prototype.isub=function(y,x){this._verify2(y,x);var d=y.isub(x);return d.cmpn(0)<0&&d.iadd(this.m),d},ye.prototype.shl=function(y,x){return this._verify1(y),this.imod(y.ushln(x))},ye.prototype.imul=function(y,x){return this._verify2(y,x),this.imod(y.imul(x))},ye.prototype.mul=function(y,x){return this._verify2(y,x),this.imod(y.mul(x))},ye.prototype.isqr=function(y){return this.imul(y,y.clone())},ye.prototype.sqr=function(y){return this.mul(y,y)},ye.prototype.sqrt=function(y){if(y.isZero())return y.clone();var x=this.m.andln(3);if(r(x%2==1),x===3){var d=this.m.add(new i(1)).iushrn(2);return this.pow(y,d)}for(var p=this.m.subn(1),h=0;!p.isZero()&&p.andln(1)===0;)h++,p.iushrn(1);r(!p.isZero());var f=new i(1).toRed(this),l=f.redNeg(),b=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new i(2*C*C).toRed(this);this.pow(C,b).cmp(l)!==0;)C.redIAdd(l);for(var R=this.pow(C,p),L=this.pow(y,p.addn(1).iushrn(1)),B=this.pow(y,p),K=h;B.cmp(f)!==0;){for(var z=B,O=0;z.cmp(f)!==0;O++)z=z.redSqr();r(O<K);var D=this.pow(R,new i(1).iushln(K-O-1));L=L.redMul(D),R=D.redSqr(),B=B.redMul(R),K=O}return L},ye.prototype.invm=function(y){var x=y._invmp(this.m);return x.negative!==0?(x.negative=0,this.imod(x).redNeg()):this.imod(x)},ye.prototype.pow=function(y,x){if(x.isZero())return new i(1).toRed(this);if(x.cmpn(1)===0)return y.clone();var d=new Array(16);d[0]=new i(1).toRed(this),d[1]=y;for(var p=2;p<d.length;p++)d[p]=this.mul(d[p-1],y);var h=d[0],f=0,l=0,b=x.bitLength()%26;for(b===0&&(b=26),p=x.length-1;p>=0;p--){for(var C=x.words[p],R=b-1;R>=0;R--){var L=C>>R&1;h!==d[0]&&(h=this.sqr(h)),L!==0||f!==0?(f<<=1,f|=L,(++l===4||p===0&&R===0)&&(h=this.mul(h,d[f]),l=0,f=0)):l=0}b=26}return h},ye.prototype.convertTo=function(y){var x=y.umod(this.m);return x===y?x.clone():x},ye.prototype.convertFrom=function(y){var x=y.clone();return x.red=null,x},i.mont=function(y){return new Te(y)},o(Te,ye),Te.prototype.convertTo=function(y){return this.imod(y.ushln(this.shift))},Te.prototype.convertFrom=function(y){var x=this.imod(y.mul(this.rinv));return x.red=null,x},Te.prototype.imul=function(y,x){if(y.isZero()||x.isZero())return y.words[0]=0,y.length=1,y;var d=y.imul(x),p=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=d.isub(p).iushrn(this.shift),f=h;return h.cmp(this.m)>=0?f=h.isub(this.m):h.cmpn(0)<0&&(f=h.iadd(this.m)),f._forceRed(this)},Te.prototype.mul=function(y,x){if(y.isZero()||x.isZero())return new i(0)._forceRed(this);var d=y.mul(x),p=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=d.isub(p).iushrn(this.shift),f=h;return h.cmp(this.m)>=0?f=h.isub(this.m):h.cmpn(0)<0&&(f=h.iadd(this.m)),f._forceRed(this)},Te.prototype.invm=function(y){return this.imod(y._invmp(this.m).mul(this.r2))._forceRed(this)}})(e,En)})(TM);var Jl=TM.exports,ah=PM;function PM(e,t){if(!e)throw new Error(t||"Assertion failed")}PM.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var L8={};(function(e){var t=e;function n(o){return o.length===1?"0"+o:o}function r(o){for(var i="",c=0;c<o.length;c++)i+=n(o[c].toString(16));return i}t.toArray=function(o,i){if(Array.isArray(o))return o.slice();if(!o)return[];var c=[];if(typeof o!="string"){for(var g=0;g<o.length;g++)c[g]=0|o[g];return c}if(i==="hex")for((o=o.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(o="0"+o),g=0;g<o.length;g+=2)c.push(parseInt(o[g]+o[g+1],16));else for(g=0;g<o.length;g++){var _=o.charCodeAt(g),w=_>>8,S=255&_;w?c.push(w,S):c.push(S)}return c},t.zero2=n,t.toHex=r,t.encode=function(o,i){return i==="hex"?r(o):o}})(L8),function(e){var t=e,n=Jl,r=ah,o=L8;t.assert=r,t.toArray=o.toArray,t.zero2=o.zero2,t.toHex=o.toHex,t.encode=o.encode,t.getNAF=function(i,c,g){var _=new Array(Math.max(i.bitLength(),g)+1);_.fill(0);for(var w=1<<c+1,S=i.clone(),E=0;E<_.length;E++){var T,I=S.andln(w-1);S.isOdd()?(T=I>(w>>1)-1?(w>>1)-I:I,S.isubn(T)):T=0,_[E]=T,S.iushrn(1)}return _},t.getJSF=function(i,c){var g=[[],[]];i=i.clone(),c=c.clone();for(var _,w=0,S=0;i.cmpn(-w)>0||c.cmpn(-S)>0;){var E,T,I=i.andln(3)+w&3,j=c.andln(3)+S&3;I===3&&(I=-1),j===3&&(j=-1),E=1&I?(_=i.andln(7)+w&7)!==3&&_!==5||j!==2?I:-I:0,g[0].push(E),T=1&j?(_=c.andln(7)+S&7)!==3&&_!==5||I!==2?j:-j:0,g[1].push(T),2*w===E+1&&(w=1-w),2*S===T+1&&(S=1-S),i.iushrn(1),c.iushrn(1)}return g},t.cachedProperty=function(i,c,g){var _="_"+c;i.prototype[c]=function(){return this[_]!==void 0?this[_]:this[_]=g.call(this)}},t.parseBytes=function(i){return typeof i=="string"?t.toArray(i,"hex"):i},t.intFromLE=function(i){return new n(i,"hex","le")}}(Sa);var I8,O8={exports:{}};function pd(e){this.rand=e}if(O8.exports=function(e){return I8||(I8=new pd(null)),I8.generate(e)},O8.exports.Rand=pd,pd.prototype.generate=function(e){return this._rand(e)},pd.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},typeof self=="object")self.crypto&&self.crypto.getRandomValues?pd.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?pd.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:typeof window=="object"&&(pd.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var LM=mb();if(typeof LM.randomBytes!="function")throw new Error("Not supported");pd.prototype._rand=function(e){return LM.randomBytes(e)}}catch{}var IM=O8.exports,N8={},sh=Jl,$m=Sa,vb=$m.getNAF,Cj=$m.getJSF,bb=$m.assert;function md(e,t){this.type=e,this.p=new sh(t.p,16),this.red=t.prime?sh.red(t.prime):sh.mont(this.p),this.zero=new sh(0).toRed(this.red),this.one=new sh(1).toRed(this.red),this.two=new sh(2).toRed(this.red),this.n=t.n&&new sh(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var yb=md;function Qa(e,t){this.curve=e,this.type=t,this.precomputed=null}md.prototype.point=function(){throw new Error("Not implemented")},md.prototype.validate=function(){throw new Error("Not implemented")},md.prototype._fixedNafMul=function(e,t){bb(e.precomputed);var n=e._getDoubles(),r=vb(t,1,this._bitLength),o=(1<<n.step+1)-(n.step%2==0?2:1);o/=3;var i,c,g=[];for(i=0;i<r.length;i+=n.step){c=0;for(var _=i+n.step-1;_>=i;_--)c=(c<<1)+r[_];g.push(c)}for(var w=this.jpoint(null,null,null),S=this.jpoint(null,null,null),E=o;E>0;E--){for(i=0;i<g.length;i++)(c=g[i])===E?S=S.mixedAdd(n.points[i]):c===-E&&(S=S.mixedAdd(n.points[i].neg()));w=w.add(S)}return w.toP()},md.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var o=r.points,i=vb(t,n,this._bitLength),c=this.jpoint(null,null,null),g=i.length-1;g>=0;g--){for(var _=0;g>=0&&i[g]===0;g--)_++;if(g>=0&&_++,c=c.dblp(_),g<0)break;var w=i[g];bb(w!==0),c=e.type==="affine"?w>0?c.mixedAdd(o[w-1>>1]):c.mixedAdd(o[-w-1>>1].neg()):w>0?c.add(o[w-1>>1]):c.add(o[-w-1>>1].neg())}return e.type==="affine"?c.toP():c},md.prototype._wnafMulAdd=function(e,t,n,r,o){var i,c,g,_=this._wnafT1,w=this._wnafT2,S=this._wnafT3,E=0;for(i=0;i<r;i++){var T=(g=t[i])._getNAFPoints(e);_[i]=T.wnd,w[i]=T.points}for(i=r-1;i>=1;i-=2){var I=i-1,j=i;if(_[I]===1&&_[j]===1){var H=[t[I],null,null,t[j]];t[I].y.cmp(t[j].y)===0?(H[1]=t[I].add(t[j]),H[2]=t[I].toJ().mixedAdd(t[j].neg())):t[I].y.cmp(t[j].y.redNeg())===0?(H[1]=t[I].toJ().mixedAdd(t[j]),H[2]=t[I].add(t[j].neg())):(H[1]=t[I].toJ().mixedAdd(t[j]),H[2]=t[I].toJ().mixedAdd(t[j].neg()));var V=[-3,-1,-5,-7,0,7,5,1,3],ee=Cj(n[I],n[j]);for(E=Math.max(ee[0].length,E),S[I]=new Array(E),S[j]=new Array(E),c=0;c<E;c++){var X=0|ee[0][c],ue=0|ee[1][c];S[I][c]=V[3*(X+1)+(ue+1)],S[j][c]=0,w[I]=H}}else S[I]=vb(n[I],_[I],this._bitLength),S[j]=vb(n[j],_[j],this._bitLength),E=Math.max(S[I].length,E),E=Math.max(S[j].length,E)}var le=this.jpoint(null,null,null),pe=this._wnafT4;for(i=E;i>=0;i--){for(var Me=0;i>=0;){var ye=!0;for(c=0;c<r;c++)pe[c]=0|S[c][i],pe[c]!==0&&(ye=!1);if(!ye)break;Me++,i--}if(i>=0&&Me++,le=le.dblp(Me),i<0)break;for(c=0;c<r;c++){var Te=pe[c];Te!==0&&(Te>0?g=w[c][Te-1>>1]:Te<0&&(g=w[c][-Te-1>>1].neg()),le=g.type==="affine"?le.mixedAdd(g):le.add(g))}}for(i=0;i<r;i++)w[i]=null;return o?le:le.toP()},md.BasePoint=Qa,Qa.prototype.eq=function(){throw new Error("Not implemented")},Qa.prototype.validate=function(){return this.curve.validate(this)},md.prototype.decodePoint=function(e,t){e=$m.toArray(e,t);var n=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1==2*n)return e[0]===6?bb(e[e.length-1]%2==0):e[0]===7&&bb(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((e[0]===2||e[0]===3)&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),e[0]===3);throw new Error("Unknown point format")},Qa.prototype.encodeCompressed=function(e){return this.encode(e,!0)},Qa.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},Qa.prototype.encode=function(e,t){return $m.encode(this._encode(t),e)},Qa.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},Qa.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},Qa.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,o=0;o<t;o+=e){for(var i=0;i<e;i++)r=r.dbl();n.push(r)}return{step:e,points:n}},Qa.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=n===1?null:this.dbl(),o=1;o<n;o++)t[o]=t[o-1].add(r);return{wnd:e,points:t}},Qa.prototype._getBeta=function(){return null},Qa.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t};var D8={exports:{}};typeof Object.create=="function"?D8.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:D8.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}};var wb=D8.exports,Gr=Jl,B8=wb,cp=yb,xj=Sa.assert;function Xa(e){cp.call(this,"short",e),this.a=new Gr(e.a,16).toRed(this.red),this.b=new Gr(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}B8(Xa,cp);var Aj=Xa;function xi(e,t,n,r){cp.BasePoint.call(this,e,"affine"),t===null&&n===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Gr(t,16),this.y=new Gr(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function Fi(e,t,n,r){cp.BasePoint.call(this,e,"jacobian"),t===null&&n===null&&r===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Gr(0)):(this.x=new Gr(t,16),this.y=new Gr(n,16),this.z=new Gr(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Xa.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var t,n;if(e.beta)t=new Gr(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new Gr(e.lambda,16);else{var o=this._getEndoRoots(this.n);this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))===0?n=o[0]:(n=o[1],xj(this.g.mul(n).x.cmp(this.g.x.redMul(t))===0))}return{beta:t,lambda:n,basis:e.basis?e.basis.map(function(i){return{a:new Gr(i.a,16),b:new Gr(i.b,16)}}):this._getEndoBasis(n)}}},Xa.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:Gr.mont(e),n=new Gr(2).toRed(t).redInvm(),r=n.redNeg(),o=new Gr(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(o).fromRed(),r.redSub(o).fromRed()]},Xa.prototype._getEndoBasis=function(e){for(var t,n,r,o,i,c,g,_,w,S=this.n.ushrn(Math.floor(this.n.bitLength()/2)),E=e,T=this.n.clone(),I=new Gr(1),j=new Gr(0),H=new Gr(0),V=new Gr(1),ee=0;E.cmpn(0)!==0;){var X=T.div(E);_=T.sub(X.mul(E)),w=H.sub(X.mul(I));var ue=V.sub(X.mul(j));if(!r&&_.cmp(S)<0)t=g.neg(),n=I,r=_.neg(),o=w;else if(r&&++ee==2)break;g=_,T=E,E=_,H=I,I=w,V=j,j=ue}i=_.neg(),c=w;var le=r.sqr().add(o.sqr());return i.sqr().add(c.sqr()).cmp(le)>=0&&(i=t,c=n),r.negative&&(r=r.neg(),o=o.neg()),i.negative&&(i=i.neg(),c=c.neg()),[{a:r,b:o},{a:i,b:c}]},Xa.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],o=r.b.mul(e).divRound(this.n),i=n.b.neg().mul(e).divRound(this.n),c=o.mul(n.a),g=i.mul(r.a),_=o.mul(n.b),w=i.mul(r.b);return{k1:e.sub(c).sub(g),k2:_.add(w).neg()}},Xa.prototype.pointFromX=function(e,t){(e=new Gr(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(r.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var o=r.fromRed().isOdd();return(t&&!o||!t&&o)&&(r=r.redNeg()),this.point(e,r)},Xa.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return n.redSqr().redISub(o).cmpn(0)===0},Xa.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,o=this._endoWnafT2,i=0;i<e.length;i++){var c=this._endoSplit(t[i]),g=e[i],_=g._getBeta();c.k1.negative&&(c.k1.ineg(),g=g.neg(!0)),c.k2.negative&&(c.k2.ineg(),_=_.neg(!0)),r[2*i]=g,r[2*i+1]=_,o[2*i]=c.k1,o[2*i+1]=c.k2}for(var w=this._wnafMulAdd(1,r,o,2*i,n),S=0;S<2*i;S++)r[S]=null,o[S]=null;return w},B8(xi,cp.BasePoint),Xa.prototype.point=function(e,t,n){return new xi(this,e,t,n)},Xa.prototype.pointFromJSON=function(e,t){return xi.fromJSON(this,e,t)},xi.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(o){return n.point(o.x.redMul(n.endo.beta),o.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},xi.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},xi.fromJSON=function(e,t,n){typeof t=="string"&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function o(c){return e.point(c[0],c[1],n)}var i=t[2];return r.precomputed={beta:null,doubles:i.doubles&&{step:i.doubles.step,points:[r].concat(i.doubles.points.map(o))},naf:i.naf&&{wnd:i.naf.wnd,points:[r].concat(i.naf.points.map(o))}},r},xi.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},xi.prototype.isInfinity=function(){return this.inf},xi.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);t.cmpn(0)!==0&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},xi.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),o=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),i=o.redSqr().redISub(this.x.redAdd(this.x)),c=o.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,c)},xi.prototype.getX=function(){return this.x.fromRed()},xi.prototype.getY=function(){return this.y.fromRed()},xi.prototype.mul=function(e){return e=new Gr(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},xi.prototype.mulAdd=function(e,t,n){var r=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o):this.curve._wnafMulAdd(1,r,o,2)},xi.prototype.jmulAdd=function(e,t,n){var r=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o,!0):this.curve._wnafMulAdd(1,r,o,2,!0)},xi.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)},xi.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(o){return o.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},xi.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},B8(Fi,cp.BasePoint),Xa.prototype.jpoint=function(e,t,n){return new Fi(this,e,t,n)},Fi.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},Fi.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Fi.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),o=e.x.redMul(n),i=this.y.redMul(t.redMul(e.z)),c=e.y.redMul(n.redMul(this.z)),g=r.redSub(o),_=i.redSub(c);if(g.cmpn(0)===0)return _.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var w=g.redSqr(),S=w.redMul(g),E=r.redMul(w),T=_.redSqr().redIAdd(S).redISub(E).redISub(E),I=_.redMul(E.redISub(T)).redISub(i.redMul(S)),j=this.z.redMul(e.z).redMul(g);return this.curve.jpoint(T,I,j)},Fi.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),o=this.y,i=e.y.redMul(t).redMul(this.z),c=n.redSub(r),g=o.redSub(i);if(c.cmpn(0)===0)return g.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var _=c.redSqr(),w=_.redMul(c),S=n.redMul(_),E=g.redSqr().redIAdd(w).redISub(S).redISub(S),T=g.redMul(S.redISub(E)).redISub(o.redMul(w)),I=this.z.redMul(c);return this.curve.jpoint(E,T,I)},Fi.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t<e;t++)n=n.dbl();return n}var r=this.curve.a,o=this.curve.tinv,i=this.x,c=this.y,g=this.z,_=g.redSqr().redSqr(),w=c.redAdd(c);for(t=0;t<e;t++){var S=i.redSqr(),E=w.redSqr(),T=E.redSqr(),I=S.redAdd(S).redIAdd(S).redIAdd(r.redMul(_)),j=i.redMul(E),H=I.redSqr().redISub(j.redAdd(j)),V=j.redISub(H),ee=I.redMul(V);ee=ee.redIAdd(ee).redISub(T);var X=w.redMul(g);t+1<e&&(_=_.redMul(T)),i=H,g=X,w=ee}return this.curve.jpoint(i,w.redMul(o),g)},Fi.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},Fi.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),o=this.y.redSqr(),i=o.redSqr(),c=this.x.redAdd(o).redSqr().redISub(r).redISub(i);c=c.redIAdd(c);var g=r.redAdd(r).redIAdd(r),_=g.redSqr().redISub(c).redISub(c),w=i.redIAdd(i);w=(w=w.redIAdd(w)).redIAdd(w),e=_,t=g.redMul(c.redISub(_)).redISub(w),n=this.y.redAdd(this.y)}else{var S=this.x.redSqr(),E=this.y.redSqr(),T=E.redSqr(),I=this.x.redAdd(E).redSqr().redISub(S).redISub(T);I=I.redIAdd(I);var j=S.redAdd(S).redIAdd(S),H=j.redSqr(),V=T.redIAdd(T);V=(V=V.redIAdd(V)).redIAdd(V),e=H.redISub(I).redISub(I),t=j.redMul(I.redISub(e)).redISub(V),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},Fi.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),o=this.y.redSqr(),i=o.redSqr(),c=this.x.redAdd(o).redSqr().redISub(r).redISub(i);c=c.redIAdd(c);var g=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),_=g.redSqr().redISub(c).redISub(c);e=_;var w=i.redIAdd(i);w=(w=w.redIAdd(w)).redIAdd(w),t=g.redMul(c.redISub(_)).redISub(w),n=this.y.redAdd(this.y)}else{var S=this.z.redSqr(),E=this.y.redSqr(),T=this.x.redMul(E),I=this.x.redSub(S).redMul(this.x.redAdd(S));I=I.redAdd(I).redIAdd(I);var j=T.redIAdd(T),H=(j=j.redIAdd(j)).redAdd(j);e=I.redSqr().redISub(H),n=this.y.redAdd(this.z).redSqr().redISub(E).redISub(S);var V=E.redSqr();V=(V=(V=V.redIAdd(V)).redIAdd(V)).redIAdd(V),t=I.redMul(j.redISub(e)).redISub(V)}return this.curve.jpoint(e,t,n)},Fi.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,o=r.redSqr().redSqr(),i=t.redSqr(),c=n.redSqr(),g=i.redAdd(i).redIAdd(i).redIAdd(e.redMul(o)),_=t.redAdd(t),w=(_=_.redIAdd(_)).redMul(c),S=g.redSqr().redISub(w.redAdd(w)),E=w.redISub(S),T=c.redSqr();T=(T=(T=T.redIAdd(T)).redIAdd(T)).redIAdd(T);var I=g.redMul(E).redISub(T),j=n.redAdd(n).redMul(r);return this.curve.jpoint(S,I,j)},Fi.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),o=e.redAdd(e).redIAdd(e),i=o.redSqr(),c=this.x.redAdd(t).redSqr().redISub(e).redISub(r),g=(c=(c=(c=c.redIAdd(c)).redAdd(c).redIAdd(c)).redISub(i)).redSqr(),_=r.redIAdd(r);_=(_=(_=_.redIAdd(_)).redIAdd(_)).redIAdd(_);var w=o.redIAdd(c).redSqr().redISub(i).redISub(g).redISub(_),S=t.redMul(w);S=(S=S.redIAdd(S)).redIAdd(S);var E=this.x.redMul(g).redISub(S);E=(E=E.redIAdd(E)).redIAdd(E);var T=this.y.redMul(w.redMul(_.redISub(w)).redISub(c.redMul(g)));T=(T=(T=T.redIAdd(T)).redIAdd(T)).redIAdd(T);var I=this.z.redAdd(c).redSqr().redISub(n).redISub(g);return this.curve.jpoint(E,T,I)},Fi.prototype.mul=function(e,t){return e=new Gr(e,t),this.curve._wnafMul(this,e)},Fi.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0)!==0)return!1;var r=t.redMul(this.z),o=n.redMul(e.z);return this.y.redMul(o).redISub(e.y.redMul(r)).cmpn(0)===0},Fi.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(this.x.cmp(n)===0)return!0;for(var r=e.clone(),o=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(o),this.x.cmp(n)===0)return!0}},Fi.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},Fi.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var dp=Jl,OM=wb,_b=yb,Rj=Sa;function fp(e){_b.call(this,"mont",e),this.a=new dp(e.a,16).toRed(this.red),this.b=new dp(e.b,16).toRed(this.red),this.i4=new dp(4).toRed(this.red).redInvm(),this.two=new dp(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}OM(fp,_b);var Tj=fp;function Ai(e,t,n){_b.BasePoint.call(this,e,"projective"),t===null&&n===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new dp(t,16),this.z=new dp(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}fp.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return r.redSqrt().redSqr().cmp(r)===0},OM(Ai,_b.BasePoint),fp.prototype.decodePoint=function(e,t){return this.point(Rj.toArray(e,t),1)},fp.prototype.point=function(e,t){return new Ai(this,e,t)},fp.prototype.pointFromJSON=function(e){return Ai.fromJSON(this,e)},Ai.prototype.precompute=function(){},Ai.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Ai.fromJSON=function(e,t){return new Ai(e,t[0],t[1]||e.one)},Ai.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Ai.prototype.isInfinity=function(){return this.z.cmpn(0)===0},Ai.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),o=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,o)},Ai.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},Ai.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),o=e.x.redAdd(e.z),i=e.x.redSub(e.z).redMul(n),c=o.redMul(r),g=t.z.redMul(i.redAdd(c).redSqr()),_=t.x.redMul(i.redISub(c).redSqr());return this.curve.point(g,_)},Ai.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),o=[];t.cmpn(0)!==0;t.iushrn(1))o.push(t.andln(1));for(var i=o.length-1;i>=0;i--)o[i]===0?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},Ai.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},Ai.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},Ai.prototype.eq=function(e){return this.getX().cmp(e.getX())===0},Ai.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Ai.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var ec=Jl,NM=wb,Sb=yb,Pj=Sa.assert;function Wu(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,Sb.call(this,"edwards",e),this.a=new ec(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new ec(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new ec(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Pj(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|e.c)==1}NM(Wu,Sb);var Lj=Wu;function Cr(e,t,n,r,o){Sb.BasePoint.call(this,e,"projective"),t===null&&n===null&&r===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new ec(t,16),this.y=new ec(n,16),this.z=r?new ec(r,16):this.curve.one,this.t=o&&new ec(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}Wu.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},Wu.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},Wu.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},Wu.prototype.pointFromX=function(e,t){(e=new ec(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),o=this.one.redSub(this.c2.redMul(this.d).redMul(n)),i=r.redMul(o.redInvm()),c=i.redSqrt();if(c.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");var g=c.fromRed().isOdd();return(t&&!g||!t&&g)&&(c=c.redNeg()),this.point(e,c)},Wu.prototype.pointFromY=function(e,t){(e=new ec(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),o=n.redMul(this.d).redMul(this.c2).redSub(this.a),i=r.redMul(o.redInvm());if(i.cmp(this.zero)===0){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var c=i.redSqrt();if(c.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");return c.fromRed().isOdd()!==t&&(c=c.redNeg()),this.point(c,e)},Wu.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),o=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return r.cmp(o)===0},NM(Cr,Sb.BasePoint),Wu.prototype.pointFromJSON=function(e){return Cr.fromJSON(this,e)},Wu.prototype.point=function(e,t,n,r){return new Cr(this,e,t,n,r)},Cr.fromJSON=function(e,t){return new Cr(e,t[0],t[1],t[2])},Cr.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Cr.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},Cr.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),o=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=r.redAdd(t),c=i.redSub(n),g=r.redSub(t),_=o.redMul(c),w=i.redMul(g),S=o.redMul(g),E=c.redMul(i);return this.curve.point(_,w,E,S)},Cr.prototype._projDbl=function(){var e,t,n,r,o,i,c=this.x.redAdd(this.y).redSqr(),g=this.x.redSqr(),_=this.y.redSqr();if(this.curve.twisted){var w=(r=this.curve._mulA(g)).redAdd(_);this.zOne?(e=c.redSub(g).redSub(_).redMul(w.redSub(this.curve.two)),t=w.redMul(r.redSub(_)),n=w.redSqr().redSub(w).redSub(w)):(o=this.z.redSqr(),i=w.redSub(o).redISub(o),e=c.redSub(g).redISub(_).redMul(i),t=w.redMul(r.redSub(_)),n=w.redMul(i))}else r=g.redAdd(_),o=this.curve._mulC(this.z).redSqr(),i=r.redSub(o).redSub(o),e=this.curve._mulC(c.redISub(r)).redMul(i),t=this.curve._mulC(r).redMul(g.redISub(_)),n=r.redMul(i);return this.curve.point(e,t,n)},Cr.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Cr.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),o=this.z.redMul(e.z.redAdd(e.z)),i=n.redSub(t),c=o.redSub(r),g=o.redAdd(r),_=n.redAdd(t),w=i.redMul(c),S=g.redMul(_),E=i.redMul(_),T=c.redMul(g);return this.curve.point(w,S,T,E)},Cr.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),o=r.redSqr(),i=this.x.redMul(e.x),c=this.y.redMul(e.y),g=this.curve.d.redMul(i).redMul(c),_=o.redSub(g),w=o.redAdd(g),S=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(c),E=r.redMul(_).redMul(S);return this.curve.twisted?(t=r.redMul(w).redMul(c.redSub(this.curve._mulA(i))),n=_.redMul(w)):(t=r.redMul(w).redMul(c.redSub(i)),n=this.curve._mulC(_).redMul(w)),this.curve.point(E,t,n)},Cr.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},Cr.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},Cr.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},Cr.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},Cr.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},Cr.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Cr.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Cr.prototype.getY=function(){return this.normalize(),this.y.fromRed()},Cr.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0},Cr.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),this.x.cmp(t)===0)return!0}},Cr.prototype.toP=Cr.prototype.normalize,Cr.prototype.mixedAdd=Cr.prototype.add,function(e){var t=e;t.base=yb,t.short=Aj,t.mont=Tj,t.edwards=Lj}(N8);var Eb={},kb={},Un={},Ij=ah,Oj=wb;function Nj(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0||t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function DM(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function BM(e){return e.length===1?"0"+e:e}function jM(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}Un.inherits=Oj,Un.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e=="string")if(t){if(t==="hex")for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var r=0,o=0;o<e.length;o++){var i=e.charCodeAt(o);i<128?n[r++]=i:i<2048?(n[r++]=i>>6|192,n[r++]=63&i|128):Nj(e,o)?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++o)),n[r++]=i>>18|240,n[r++]=i>>12&63|128,n[r++]=i>>6&63|128,n[r++]=63&i|128):(n[r++]=i>>12|224,n[r++]=i>>6&63|128,n[r++]=63&i|128)}else for(o=0;o<e.length;o++)n[o]=0|e[o];return n},Un.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=BM(e[n].toString(16));return t},Un.htonl=DM,Un.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e[r];t==="little"&&(o=DM(o)),n+=jM(o.toString(16))}return n},Un.zero2=BM,Un.zero8=jM,Un.join32=function(e,t,n,r){var o=n-t;Ij(o%4==0);for(var i=new Array(o/4),c=0,g=t;c<i.length;c++,g+=4){var _;_=r==="big"?e[g]<<24|e[g+1]<<16|e[g+2]<<8|e[g+3]:e[g+3]<<24|e[g+2]<<16|e[g+1]<<8|e[g],i[c]=_>>>0}return i},Un.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r<e.length;r++,o+=4){var i=e[r];t==="big"?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},Un.rotr32=function(e,t){return e>>>t|e<<32-t},Un.rotl32=function(e,t){return e<<t|e>>>32-t},Un.sum32=function(e,t){return e+t>>>0},Un.sum32_3=function(e,t,n){return e+t+n>>>0},Un.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},Un.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},Un.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,c=(i<r?1:0)+n+o;e[t]=c>>>0,e[t+1]=i},Un.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},Un.sum64_lo=function(e,t,n,r){return t+r>>>0},Un.sum64_4_hi=function(e,t,n,r,o,i,c,g){var _=0,w=t;return _+=(w=w+r>>>0)<t?1:0,_+=(w=w+i>>>0)<i?1:0,e+n+o+c+(_+=(w=w+g>>>0)<g?1:0)>>>0},Un.sum64_4_lo=function(e,t,n,r,o,i,c,g){return t+r+i+g>>>0},Un.sum64_5_hi=function(e,t,n,r,o,i,c,g,_,w){var S=0,E=t;return S+=(E=E+r>>>0)<t?1:0,S+=(E=E+i>>>0)<i?1:0,S+=(E=E+g>>>0)<g?1:0,e+n+o+c+_+(S+=(E=E+w>>>0)<w?1:0)>>>0},Un.sum64_5_lo=function(e,t,n,r,o,i,c,g,_,w){return t+r+i+g+w>>>0},Un.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},Un.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},Un.shr64_hi=function(e,t,n){return e>>>n},Un.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0};var hp={},zM=Un,Dj=ah;function Mb(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}hp.BlockHash=Mb,Mb.prototype.update=function(e,t){if(e=zM.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=zM.join32(e,0,e.length-n,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},Mb.prototype.digest=function(e){return this.update(this._pad()),Dj(this.pending===null),this._digest(e)},Mb.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(e<<=3,this.endian==="big"){for(var i=8;i<this.padLength;i++)r[o++]=0;r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=e>>>24&255,r[o++]=e>>>16&255,r[o++]=e>>>8&255,r[o++]=255&e}else for(r[o++]=255&e,r[o++]=e>>>8&255,r[o++]=e>>>16&255,r[o++]=e>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;i<this.padLength;i++)r[o++]=0;return r};var pp={},$u={},Vu=Un.rotr32;function UM(e,t,n){return e&t^~e&n}function FM(e,t,n){return e&t^e&n^t&n}function KM(e,t,n){return e^t^n}$u.ft_1=function(e,t,n,r){return e===0?UM(t,n,r):e===1||e===3?KM(t,n,r):e===2?FM(t,n,r):void 0},$u.ch32=UM,$u.maj32=FM,$u.p32=KM,$u.s0_256=function(e){return Vu(e,2)^Vu(e,13)^Vu(e,22)},$u.s1_256=function(e){return Vu(e,6)^Vu(e,11)^Vu(e,25)},$u.g0_256=function(e){return Vu(e,7)^Vu(e,18)^e>>>3},$u.g1_256=function(e){return Vu(e,17)^Vu(e,19)^e>>>10};var mp=Un,Bj=hp,jj=$u,j8=mp.rotl32,Vm=mp.sum32,zj=mp.sum32_5,Uj=jj.ft_1,qM=Bj.BlockHash,Fj=[1518500249,1859775393,2400959708,3395469782];function Yu(){if(!(this instanceof Yu))return new Yu;qM.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}mp.inherits(Yu,qM);var Kj=Yu;Yu.blockSize=512,Yu.outSize=160,Yu.hmacStrength=80,Yu.padLength=64,Yu.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=j8(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var o=this.h[0],i=this.h[1],c=this.h[2],g=this.h[3],_=this.h[4];for(r=0;r<n.length;r++){var w=~~(r/20),S=zj(j8(o,5),Uj(w,i,c,g),_,n[r],Fj[w]);_=g,g=c,c=j8(i,30),i=o,o=S}this.h[0]=Vm(this.h[0],o),this.h[1]=Vm(this.h[1],i),this.h[2]=Vm(this.h[2],c),this.h[3]=Vm(this.h[3],g),this.h[4]=Vm(this.h[4],_)},Yu.prototype._digest=function(e){return e==="hex"?mp.toHex32(this.h,"big"):mp.split32(this.h,"big")};var gp=Un,qj=hp,vp=$u,Hj=ah,Us=gp.sum32,Wj=gp.sum32_4,$j=gp.sum32_5,Vj=vp.ch32,Yj=vp.maj32,Gj=vp.s0_256,Zj=vp.s1_256,Qj=vp.g0_256,Xj=vp.g1_256,HM=qj.BlockHash,Jj=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function Gu(){if(!(this instanceof Gu))return new Gu;HM.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Jj,this.W=new Array(64)}gp.inherits(Gu,HM);var WM=Gu;Gu.blockSize=512,Gu.outSize=256,Gu.hmacStrength=192,Gu.padLength=64,Gu.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=Wj(Xj(n[r-2]),n[r-7],Qj(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],c=this.h[2],g=this.h[3],_=this.h[4],w=this.h[5],S=this.h[6],E=this.h[7];for(Hj(this.k.length===n.length),r=0;r<n.length;r++){var T=$j(E,Zj(_),Vj(_,w,S),this.k[r],n[r]),I=Us(Gj(o),Yj(o,i,c));E=S,S=w,w=_,_=Us(g,T),g=c,c=i,i=o,o=Us(T,I)}this.h[0]=Us(this.h[0],o),this.h[1]=Us(this.h[1],i),this.h[2]=Us(this.h[2],c),this.h[3]=Us(this.h[3],g),this.h[4]=Us(this.h[4],_),this.h[5]=Us(this.h[5],w),this.h[6]=Us(this.h[6],S),this.h[7]=Us(this.h[7],E)},Gu.prototype._digest=function(e){return e==="hex"?gp.toHex32(this.h,"big"):gp.split32(this.h,"big")};var z8=Un,$M=WM;function tc(){if(!(this instanceof tc))return new tc;$M.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}z8.inherits(tc,$M);var ez=tc;tc.blockSize=512,tc.outSize=224,tc.hmacStrength=192,tc.padLength=64,tc.prototype._digest=function(e){return e==="hex"?z8.toHex32(this.h.slice(0,7),"big"):z8.split32(this.h.slice(0,7),"big")};var Zo=Un,tz=hp,nz=ah,Zu=Zo.rotr64_hi,Qu=Zo.rotr64_lo,VM=Zo.shr64_hi,YM=Zo.shr64_lo,gd=Zo.sum64,U8=Zo.sum64_hi,F8=Zo.sum64_lo,rz=Zo.sum64_4_hi,iz=Zo.sum64_4_lo,oz=Zo.sum64_5_hi,az=Zo.sum64_5_lo,GM=tz.BlockHash,sz=[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 Fs(){if(!(this instanceof Fs))return new Fs;GM.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=sz,this.W=new Array(160)}Zo.inherits(Fs,GM);var ZM=Fs;function uz(e,t,n,r,o){var i=e&n^~e&o;return i<0&&(i+=4294967296),i}function lz(e,t,n,r,o,i){var c=t&r^~t&i;return c<0&&(c+=4294967296),c}function cz(e,t,n,r,o){var i=e&n^e&o^n&o;return i<0&&(i+=4294967296),i}function dz(e,t,n,r,o,i){var c=t&r^t&i^r&i;return c<0&&(c+=4294967296),c}function fz(e,t){var n=Zu(e,t,28)^Zu(t,e,2)^Zu(t,e,7);return n<0&&(n+=4294967296),n}function hz(e,t){var n=Qu(e,t,28)^Qu(t,e,2)^Qu(t,e,7);return n<0&&(n+=4294967296),n}function pz(e,t){var n=Zu(e,t,14)^Zu(e,t,18)^Zu(t,e,9);return n<0&&(n+=4294967296),n}function mz(e,t){var n=Qu(e,t,14)^Qu(e,t,18)^Qu(t,e,9);return n<0&&(n+=4294967296),n}function gz(e,t){var n=Zu(e,t,1)^Zu(e,t,8)^VM(e,t,7);return n<0&&(n+=4294967296),n}function vz(e,t){var n=Qu(e,t,1)^Qu(e,t,8)^YM(e,t,7);return n<0&&(n+=4294967296),n}function bz(e,t){var n=Zu(e,t,19)^Zu(t,e,29)^VM(e,t,6);return n<0&&(n+=4294967296),n}function yz(e,t){var n=Qu(e,t,19)^Qu(t,e,29)^YM(e,t,6);return n<0&&(n+=4294967296),n}Fs.blockSize=1024,Fs.outSize=512,Fs.hmacStrength=192,Fs.padLength=128,Fs.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var o=bz(n[r-4],n[r-3]),i=yz(n[r-4],n[r-3]),c=n[r-14],g=n[r-13],_=gz(n[r-30],n[r-29]),w=vz(n[r-30],n[r-29]),S=n[r-32],E=n[r-31];n[r]=rz(o,i,c,g,_,w,S,E),n[r+1]=iz(o,i,c,g,_,w,S,E)}},Fs.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],o=this.h[1],i=this.h[2],c=this.h[3],g=this.h[4],_=this.h[5],w=this.h[6],S=this.h[7],E=this.h[8],T=this.h[9],I=this.h[10],j=this.h[11],H=this.h[12],V=this.h[13],ee=this.h[14],X=this.h[15];nz(this.k.length===n.length);for(var ue=0;ue<n.length;ue+=2){var le=ee,pe=X,Me=pz(E,T),ye=mz(E,T),Te=uz(E,T,I,j,H),y=lz(E,T,I,j,H,V),x=this.k[ue],d=this.k[ue+1],p=n[ue],h=n[ue+1],f=oz(le,pe,Me,ye,Te,y,x,d,p,h),l=az(le,pe,Me,ye,Te,y,x,d,p,h);le=fz(r,o),pe=hz(r,o),Me=cz(r,o,i,c,g),ye=dz(r,o,i,c,g,_);var b=U8(le,pe,Me,ye),C=F8(le,pe,Me,ye);ee=H,X=V,H=I,V=j,I=E,j=T,E=U8(w,S,f,l),T=F8(S,S,f,l),w=g,S=_,g=i,_=c,i=r,c=o,r=U8(f,l,b,C),o=F8(f,l,b,C)}gd(this.h,0,r,o),gd(this.h,2,i,c),gd(this.h,4,g,_),gd(this.h,6,w,S),gd(this.h,8,E,T),gd(this.h,10,I,j),gd(this.h,12,H,V),gd(this.h,14,ee,X)},Fs.prototype._digest=function(e){return e==="hex"?Zo.toHex32(this.h,"big"):Zo.split32(this.h,"big")};var K8=Un,QM=ZM;function nc(){if(!(this instanceof nc))return new nc;QM.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}K8.inherits(nc,QM);var wz=nc;nc.blockSize=1024,nc.outSize=384,nc.hmacStrength=192,nc.padLength=128,nc.prototype._digest=function(e){return e==="hex"?K8.toHex32(this.h.slice(0,12),"big"):K8.split32(this.h.slice(0,12),"big")},pp.sha1=Kj,pp.sha224=ez,pp.sha256=WM,pp.sha384=wz,pp.sha512=ZM;var XM={},uh=Un,_z=hp,Cb=uh.rotl32,JM=uh.sum32,Ym=uh.sum32_3,eC=uh.sum32_4,tC=_z.BlockHash;function Xu(){if(!(this instanceof Xu))return new Xu;tC.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function nC(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function Sz(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function Ez(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}uh.inherits(Xu,tC),XM.ripemd160=Xu,Xu.blockSize=512,Xu.outSize=160,Xu.hmacStrength=192,Xu.padLength=64,Xu.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],o=this.h[2],i=this.h[3],c=this.h[4],g=n,_=r,w=o,S=i,E=c,T=0;T<80;T++){var I=JM(Cb(eC(n,nC(T,r,o,i),e[kz[T]+t],Sz(T)),Cz[T]),c);n=c,c=i,i=Cb(o,10),o=r,r=I,I=JM(Cb(eC(g,nC(79-T,_,w,S),e[Mz[T]+t],Ez(T)),xz[T]),E),g=E,E=S,S=Cb(w,10),w=_,_=I}I=Ym(this.h[1],o,S),this.h[1]=Ym(this.h[2],i,E),this.h[2]=Ym(this.h[3],c,g),this.h[3]=Ym(this.h[4],n,_),this.h[4]=Ym(this.h[0],r,w),this.h[0]=I},Xu.prototype._digest=function(e){return e==="hex"?uh.toHex32(this.h,"little"):uh.split32(this.h,"little")};var kz=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],Mz=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],Cz=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],xz=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],Az=Un,Rz=ah;function bp(e,t,n){if(!(this instanceof bp))return new bp(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(Az.toArray(t,n))}var rC,iC,Tz=bp;bp.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),Rz(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=new this.Hash().update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},bp.prototype.update=function(e,t){return this.inner.update(e,t),this},bp.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)},function(e){var t=e;t.utils=Un,t.common=hp,t.sha=pp,t.ripemd=XM,t.hmac=Tz,t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160}(kb),function(e){var t,n=e,r=kb,o=N8,i=Sa.assert;function c(_){_.type==="short"?this.curve=new o.short(_):_.type==="edwards"?this.curve=new o.edwards(_):this.curve=new o.mont(_),this.g=this.curve.g,this.n=this.curve.n,this.hash=_.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function g(_,w){Object.defineProperty(n,_,{configurable:!0,enumerable:!0,get:function(){var S=new c(w);return Object.defineProperty(n,_,{configurable:!0,enumerable:!0,value:S}),S}})}n.PresetCurve=c,g("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),g("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),g("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),g("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:r.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),g("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:r.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),g("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),g("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{t=iC?rC:(iC=1,rC={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}})}catch{t=void 0}g("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",t]})}(Eb);var Pz=kb,lh=L8,oC=ah;function vd(e){if(!(this instanceof vd))return new vd(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=lh.toArray(e.entropy,e.entropyEnc||"hex"),n=lh.toArray(e.nonce,e.nonceEnc||"hex"),r=lh.toArray(e.pers,e.persEnc||"hex");oC(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var Lz=vd;vd.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},vd.prototype._hmac=function(){return new Pz.hmac(this.hash,this.K)},vd.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},vd.prototype.reseed=function(e,t,n,r){typeof t!="string"&&(r=n,n=t,t=null),e=lh.toArray(e,t),n=lh.toArray(n,r),oC(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},vd.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof t!="string"&&(r=n,n=t,t=null),n&&(n=lh.toArray(n,r||"hex"),this._update(n));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var i=o.slice(0,e);return this._update(n),this._reseed++,lh.encode(i,t)};var Iz=Jl,q8=Sa.assert;function co(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var Oz=co;co.fromPublic=function(e,t,n){return t instanceof co?t:new co(e,{pub:t,pubEnc:n})},co.fromPrivate=function(e,t,n){return t instanceof co?t:new co(e,{priv:t,privEnc:n})},co.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},co.prototype.getPublic=function(e,t){return typeof e=="string"&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},co.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv},co.prototype._importPrivate=function(e,t){this.priv=new Iz(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},co.prototype._importPublic=function(e,t){if(e.x||e.y)return this.ec.curve.type==="mont"?q8(e.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||q8(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},co.prototype.derive=function(e){return e.validate()||q8(e.validate(),"public point not validated"),e.mul(this.priv).getX()},co.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},co.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},co.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var xb=Jl,H8=Sa,Nz=H8.assert;function Ab(e,t){if(e instanceof Ab)return e;this._importDER(e,t)||(Nz(e.r&&e.s,"Signature without r or s"),this.r=new xb(e.r,16),this.s=new xb(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var Dz=Ab;function Bz(){this.place=0}function W8(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(r===0||r>4)return!1;for(var o=0,i=0,c=t.place;i<r;i++,c++)o<<=8,o|=e[c],o>>>=0;return!(o<=127)&&(t.place=c,o)}function aC(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return t===0?e:e.slice(t)}function $8(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}Ab.prototype._importDER=function(e,t){e=H8.toArray(e,t);var n=new Bz;if(e[n.place++]!==48)return!1;var r=W8(e,n);if(r===!1||r+n.place!==e.length||e[n.place++]!==2)return!1;var o=W8(e,n);if(o===!1)return!1;var i=e.slice(n.place,o+n.place);if(n.place+=o,e[n.place++]!==2)return!1;var c=W8(e,n);if(c===!1||e.length!==c+n.place)return!1;var g=e.slice(n.place,c+n.place);if(i[0]===0){if(!(128&i[1]))return!1;i=i.slice(1)}if(g[0]===0){if(!(128&g[1]))return!1;g=g.slice(1)}return this.r=new xb(i),this.s=new xb(g),this.recoveryParam=null,!0},Ab.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=aC(t),n=aC(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];$8(r,t.length),(r=r.concat(t)).push(2),$8(r,n.length);var o=r.concat(n),i=[48];return $8(i,o.length),i=i.concat(o),H8.encode(i,e)};var ch=Jl,sC=Lz,V8=Eb,jz=IM,uC=Sa.assert,Y8=Oz,Rb=Dz;function Ja(e){if(!(this instanceof Ja))return new Ja(e);typeof e=="string"&&(uC(Object.prototype.hasOwnProperty.call(V8,e),"Unknown curve "+e),e=V8[e]),e instanceof V8.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var zz=Ja;Ja.prototype.keyPair=function(e){return new Y8(this,e)},Ja.prototype.keyFromPrivate=function(e,t){return Y8.fromPrivate(this,e,t)},Ja.prototype.keyFromPublic=function(e,t){return Y8.fromPublic(this,e,t)},Ja.prototype.genKeyPair=function(e){e||(e={});for(var t=new sC({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||jz(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new ch(2));;){var o=new ch(t.generate(n));if(!(o.cmp(r)>0))return o.iaddn(1),this.keyFromPrivate(o)}},Ja.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},Ja.prototype.sign=function(e,t,n,r){typeof n=="object"&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new ch(e,16));for(var o=this.n.byteLength(),i=t.getPrivate().toArray("be",o),c=e.toArray("be",o),g=new sC({hash:this.hash,entropy:i,nonce:c,pers:r.pers,persEnc:r.persEnc||"utf8"}),_=this.n.sub(new ch(1)),w=0;;w++){var S=r.k?r.k(w):new ch(g.generate(this.n.byteLength()));if(!((S=this._truncateToN(S,!0)).cmpn(1)<=0||S.cmp(_)>=0)){var E=this.g.mul(S);if(!E.isInfinity()){var T=E.getX(),I=T.umod(this.n);if(I.cmpn(0)!==0){var j=S.invm(this.n).mul(I.mul(t.getPrivate()).iadd(e));if((j=j.umod(this.n)).cmpn(0)!==0){var H=(E.getY().isOdd()?1:0)|(T.cmp(I)!==0?2:0);return r.canonical&&j.cmp(this.nh)>0&&(j=this.n.sub(j),H^=1),new Rb({r:I,s:j,recoveryParam:H})}}}}}},Ja.prototype.verify=function(e,t,n,r){e=this._truncateToN(new ch(e,16)),n=this.keyFromPublic(n,r);var o=(t=new Rb(t,"hex")).r,i=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0||i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;var c,g=i.invm(this.n),_=g.mul(e).umod(this.n),w=g.mul(o).umod(this.n);return this.curve._maxwellTrick?!(c=this.g.jmulAdd(_,n.getPublic(),w)).isInfinity()&&c.eqXToP(o):!(c=this.g.mulAdd(_,n.getPublic(),w)).isInfinity()&&c.getX().umod(this.n).cmp(o)===0},Ja.prototype.recoverPubKey=function(e,t,n,r){uC((3&n)===n,"The recovery param is more than two bits"),t=new Rb(t,r);var o=this.n,i=new ch(e),c=t.r,g=t.s,_=1&n,w=n>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&w)throw new Error("Unable to find sencond key candinate");c=w?this.curve.pointFromX(c.add(this.curve.n),_):this.curve.pointFromX(c,_);var S=t.r.invm(o),E=o.sub(i).mul(S).umod(o),T=g.mul(S).umod(o);return this.g.mulAdd(E,c,T)},Ja.prototype.getKeyRecoveryParam=function(e,t,n,r){if((t=new Rb(t,r)).recoveryParam!==null)return t.recoveryParam;for(var o=0;o<4;o++){var i;try{i=this.recoverPubKey(e,t,o)}catch{continue}if(i.eq(n))return o}throw new Error("Unable to find valid recovery factor")};var Gm=Sa,lC=Gm.assert,cC=Gm.parseBytes,yp=Gm.cachedProperty;function Ri(e,t){this.eddsa=e,this._secret=cC(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=cC(t.pub)}Ri.fromPublic=function(e,t){return t instanceof Ri?t:new Ri(e,{pub:t})},Ri.fromSecret=function(e,t){return t instanceof Ri?t:new Ri(e,{secret:t})},Ri.prototype.secret=function(){return this._secret},yp(Ri,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),yp(Ri,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),yp(Ri,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r}),yp(Ri,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),yp(Ri,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),yp(Ri,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),Ri.prototype.sign=function(e){return lC(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},Ri.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},Ri.prototype.getSecret=function(e){return lC(this._secret,"KeyPair is public only"),Gm.encode(this.secret(),e)},Ri.prototype.getPublic=function(e){return Gm.encode(this.pubBytes(),e)};var Uz=Ri,Fz=Jl,Tb=Sa,Kz=Tb.assert,Pb=Tb.cachedProperty,qz=Tb.parseBytes;function dh(e,t){this.eddsa=e,typeof t!="object"&&(t=qz(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),Kz(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof Fz&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}Pb(dh,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),Pb(dh,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),Pb(dh,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),Pb(dh,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),dh.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},dh.prototype.toHex=function(){return Tb.encode(this.toBytes(),"hex").toUpperCase()};var Hz=dh,Wz=kb,$z=Eb,wp=Sa,Vz=wp.assert,dC=wp.parseBytes,fC=Uz,hC=Hz;function Qo(e){if(Vz(e==="ed25519","only tested with ed25519 so far"),!(this instanceof Qo))return new Qo(e);e=$z[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=Wz.sha512}var Yz=Qo;Qo.prototype.sign=function(e,t){e=dC(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),o=this.g.mul(r),i=this.encodePoint(o),c=this.hashInt(i,n.pubBytes(),e).mul(n.priv()),g=r.add(c).umod(this.curve.n);return this.makeSignature({R:o,S:g,Rencoded:i})},Qo.prototype.verify=function(e,t,n){e=dC(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),o=this.hashInt(t.Rencoded(),r.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(r.pub().mul(o)).eq(i)},Qo.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return wp.intFromLE(e.digest()).umod(this.curve.n)},Qo.prototype.keyFromPublic=function(e){return fC.fromPublic(this,e)},Qo.prototype.keyFromSecret=function(e){return fC.fromSecret(this,e)},Qo.prototype.makeSignature=function(e){return e instanceof hC?e:new hC(this,e)},Qo.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},Qo.prototype.decodePoint=function(e){var t=(e=wp.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=(128&e[t])!=0,o=wp.intFromLE(n);return this.curve.pointFromY(o,r)},Qo.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},Qo.prototype.decodeInt=function(e){return wp.intFromLE(e)},Qo.prototype.isPoint=function(e){return e instanceof this.pointClass},function(e){var t=e;t.version=Mj,t.utils=Sa,t.rand=IM,t.curve=N8,t.curves=Eb,t.ec=zz,t.eddsa=Yz}(RM);const Ju=new RM.ec("secp256k1"),Fn=Ju.curve,br=Fn.n.constructor;function bd(e){const t=e[0];switch(t){case 2:case 3:return e.length!==33?null:function(n,r){let o=new br(r);if(o.cmp(Fn.p)>=0)return null;o=o.toRed(Fn.red);let i=o.redSqr().redIMul(o).redIAdd(Fn.b).redSqrt();return n===3!==i.isOdd()&&(i=i.redNeg()),Ju.keyPair({pub:{x:o,y:i}})}(t,e.subarray(1,33));case 4:case 6:case 7:return e.length!==65?null:function(n,r,o){let i=new br(r),c=new br(o);if(i.cmp(Fn.p)>=0||c.cmp(Fn.p)>=0||(i=i.toRed(Fn.red),c=c.toRed(Fn.red),(n===6||n===7)&&c.isOdd()!==(n===7)))return null;const g=i.redSqr().redIMul(i);return c.redSqr().redISub(g.redIAdd(Fn.b)).isZero()?Ju.keyPair({pub:{x:i,y:c}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function fh(e,t){const n=t.encode(null,e.length===33);for(let r=0;r<e.length;++r)e[r]=n[r]}var Gz={contextRandomize:()=>0,privateKeyVerify(e){const t=new br(e);return t.cmp(Fn.n)<0&&!t.isZero()?0:1},privateKeyNegate(e){const t=new br(e),n=Fn.n.sub(t).umod(Fn.n).toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakAdd(e,t){const n=new br(t);if(n.cmp(Fn.n)>=0||(n.iadd(new br(e)),n.cmp(Fn.n)>=0&&n.isub(Fn.n),n.isZero()))return 1;const r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakMul(e,t){let n=new br(t);if(n.cmp(Fn.n)>=0||n.isZero())return 1;n.imul(new br(e)),n.cmp(Fn.n)>=0&&(n=n.umod(Fn.n));const r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},publicKeyVerify:e=>bd(e)===null?1:0,publicKeyCreate(e,t){const n=new br(t);return n.cmp(Fn.n)>=0||n.isZero()?1:(fh(e,Ju.keyFromPrivate(t).getPublic()),0)},publicKeyConvert(e,t){const n=bd(t);return n===null?1:(fh(e,n.getPublic()),0)},publicKeyNegate(e,t){const n=bd(t);if(n===null)return 1;const r=n.getPublic();return r.y=r.y.redNeg(),fh(e,r),0},publicKeyCombine(e,t){const n=new Array(t.length);for(let o=0;o<t.length;++o)if(n[o]=bd(t[o]),n[o]===null)return 1;let r=n[0].getPublic();for(let o=1;o<n.length;++o)r=r.add(n[o].pub);return r.isInfinity()?2:(fh(e,r),0)},publicKeyTweakAdd(e,t,n){const r=bd(t);if(r===null)return 1;if((n=new br(n)).cmp(Fn.n)>=0)return 2;const o=r.getPublic().add(Fn.g.mul(n));return o.isInfinity()?2:(fh(e,o),0)},publicKeyTweakMul(e,t,n){const r=bd(t);return r===null?1:(n=new br(n)).cmp(Fn.n)>=0||n.isZero()?2:(fh(e,r.getPublic().mul(n)),0)},signatureNormalize(e){const t=new br(e.subarray(0,32)),n=new br(e.subarray(32,64));return t.cmp(Fn.n)>=0||n.cmp(Fn.n)>=0?1:(n.cmp(Ju.nh)===1&&e.set(Fn.n.sub(n).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){const n=t.subarray(0,32),r=t.subarray(32,64);if(new br(n).cmp(Fn.n)>=0||new br(r).cmp(Fn.n)>=0)return 1;const{output:o}=e;let i=o.subarray(4,37);i[0]=0,i.set(n,1);let c=33,g=0;for(;c>1&&i[g]===0&&!(128&i[g+1]);--c,++g);if(i=i.subarray(g),128&i[0]||c>1&&i[0]===0&&!(128&i[1]))return 1;let _=o.subarray(39,72);_[0]=0,_.set(r,1);let w=33,S=0;for(;w>1&&_[S]===0&&!(128&_[S+1]);--w,++S);return _=_.subarray(S),128&_[0]||w>1&&_[0]===0&&!(128&_[1])?1:(e.outputlen=6+c+w,o[0]=48,o[1]=e.outputlen-2,o[2]=2,o[3]=i.length,o.set(i,4),o[4+c]=2,o[5+c]=_.length,o.set(_,6+c),0)},signatureImport(e,t){if(t.length<8||t.length>72||t[0]!==48||t[1]!==t.length-2||t[2]!==2)return 1;const n=t[3];if(n===0||5+n>=t.length||t[4+n]!==2)return 1;const r=t[5+n];if(r===0||6+n+r!==t.length||128&t[4]||n>1&&t[4]===0&&!(128&t[5])||128&t[n+6]||r>1&&t[n+6]===0&&!(128&t[n+7]))return 1;let o=t.subarray(4,4+n);if(o.length===33&&o[0]===0&&(o=o.subarray(1)),o.length>32)return 1;let i=t.subarray(6+n);if(i.length===33&&i[0]===0&&(i=i.slice(1)),i.length>32)throw new Error("S length is too long");let c=new br(o);c.cmp(Fn.n)>=0&&(c=new br(0));let g=new br(t.subarray(6+n));return g.cmp(Fn.n)>=0&&(g=new br(0)),e.set(c.toArrayLike(Uint8Array,"be",32),0),e.set(g.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,n,r,o){if(o){const g=o;o=_=>{const w=g(t,n,null,r,_);if(!(w instanceof Uint8Array&&w.length===32))throw new Error("This is the way");return new br(w)}}const i=new br(n);if(i.cmp(Fn.n)>=0||i.isZero())return 1;let c;try{c=Ju.sign(t,n,{canonical:!0,k:o,pers:r})}catch{return 1}return e.signature.set(c.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(c.s.toArrayLike(Uint8Array,"be",32),32),e.recid=c.recoveryParam,0},ecdsaVerify(e,t,n){const r={r:e.subarray(0,32),s:e.subarray(32,64)},o=new br(r.r),i=new br(r.s);if(o.cmp(Fn.n)>=0||i.cmp(Fn.n)>=0)return 1;if(i.cmp(Ju.nh)===1||o.isZero()||i.isZero())return 3;const c=bd(n);if(c===null)return 2;const g=c.getPublic();return Ju.verify(t,r,g)?0:3},ecdsaRecover(e,t,n,r){const o={r:t.slice(0,32),s:t.slice(32,64)},i=new br(o.r),c=new br(o.s);if(i.cmp(Fn.n)>=0||c.cmp(Fn.n)>=0)return 1;if(i.isZero()||c.isZero())return 2;let g;try{g=Ju.recoverPubKey(r,o,n)}catch{return 2}return fh(e,g),0},ecdh(e,t,n,r,o,i,c){const g=bd(t);if(g===null)return 1;const _=new br(n);if(_.cmp(Fn.n)>=0||_.isZero())return 2;const w=g.getPublic().mul(_);if(o===void 0){const S=w.encode(null,!0),E=Ju.hash().update(S).digest();for(let T=0;T<32;++T)e[T]=E[T]}else{i||(i=new Uint8Array(32));const S=w.getX().toArray("be",32);for(let I=0;I<32;++I)i[I]=S[I];c||(c=new Uint8Array(32));const E=w.getY().toArray("be",32);for(let I=0;I<32;++I)c[I]=E[I];const T=o(i,c,r);if(!(T instanceof Uint8Array&&T.length===e.length))return 2;e.set(T)}return 0}},G8=(e=>({contextRandomize(t){if(Za(t===null||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),t!==null&&Hn("seed",t,32),e.contextRandomize(t)===1)throw new Error(yj)},privateKeyVerify:t=>(Hn("private key",t,32),e.privateKeyVerify(t)===0),privateKeyNegate(t){switch(Hn("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(up)}},privateKeyTweakAdd(t,n){switch(Hn("private key",t,32),Hn("tweak",n,32),e.privateKeyTweakAdd(t,n)){case 0:return t;case 1:throw new Error(xM)}},privateKeyTweakMul(t,n){switch(Hn("private key",t,32),Hn("tweak",n,32),e.privateKeyTweakMul(t,n)){case 0:return t;case 1:throw new Error(AM)}},publicKeyVerify:t=>(Hn("public key",t,[33,65]),e.publicKeyVerify(t)===0),publicKeyCreate(t,n=!0,r){switch(Hn("private key",t,32),oh(n),r=zs(r,n?33:65),e.publicKeyCreate(r,t)){case 0:return r;case 1:throw new Error(wj);case 2:throw new Error(gb)}},publicKeyConvert(t,n=!0,r){switch(Hn("public key",t,[33,65]),oh(n),r=zs(r,n?33:65),e.publicKeyConvert(r,t)){case 0:return r;case 1:throw new Error(ih);case 2:throw new Error(gb)}},publicKeyNegate(t,n=!0,r){switch(Hn("public key",t,[33,65]),oh(n),r=zs(r,n?33:65),e.publicKeyNegate(r,t)){case 0:return r;case 1:throw new Error(ih);case 2:throw new Error(up);case 3:throw new Error(gb)}},publicKeyCombine(t,n=!0,r){Za(Array.isArray(t),"Expected public keys to be an Array"),Za(t.length>0,"Expected public keys array will have more than zero items");for(const o of t)Hn("public key",o,[33,65]);switch(oh(n),r=zs(r,n?33:65),e.publicKeyCombine(r,t)){case 0:return r;case 1:throw new Error(ih);case 2:throw new Error(_j);case 3:throw new Error(gb)}},publicKeyTweakAdd(t,n,r=!0,o){switch(Hn("public key",t,[33,65]),Hn("tweak",n,32),oh(r),o=zs(o,r?33:65),e.publicKeyTweakAdd(o,t,n)){case 0:return o;case 1:throw new Error(ih);case 2:throw new Error(xM)}},publicKeyTweakMul(t,n,r=!0,o){switch(Hn("public key",t,[33,65]),Hn("tweak",n,32),oh(r),o=zs(o,r?33:65),e.publicKeyTweakMul(o,t,n)){case 0:return o;case 1:throw new Error(ih);case 2:throw new Error(AM)}},signatureNormalize(t){switch(Hn("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(Wm)}},signatureExport(t,n){Hn("signature",t,64);const r={output:n=zs(n,72),outputlen:72};switch(e.signatureExport(r,t)){case 0:return n.slice(0,r.outputlen);case 1:throw new Error(Wm);case 2:throw new Error(up)}},signatureImport(t,n){switch(Hn("signature",t),n=zs(n,64),e.signatureImport(n,t)){case 0:return n;case 1:throw new Error(Wm);case 2:throw new Error(up)}},ecdsaSign(t,n,r={},o){Hn("message",t,32),Hn("private key",n,32),Za(lp(r)==="Object","Expected options to be an Object"),r.data!==void 0&&Hn("options.data",r.data),r.noncefn!==void 0&&Za(lp(r.noncefn)==="Function","Expected options.noncefn to be a Function");const i={signature:o=zs(o,64),recid:null};switch(e.ecdsaSign(i,t,n,r.data,r.noncefn)){case 0:return i;case 1:throw new Error(Sj);case 2:throw new Error(up)}},ecdsaVerify(t,n,r){switch(Hn("signature",t,64),Hn("message",n,32),Hn("public key",r,[33,65]),e.ecdsaVerify(t,n,r)){case 0:return!0;case 3:return!1;case 1:throw new Error(Wm);case 2:throw new Error(ih)}},ecdsaRecover(t,n,r,o=!0,i){switch(Hn("signature",t,64),Za(lp(n)==="Number"&&n>=0&&n<=3,"Expected recovery id to be a Number within interval [0, 3]"),Hn("message",r,32),oh(o),i=zs(i,o?33:65),e.ecdsaRecover(i,t,n,r)){case 0:return i;case 1:throw new Error(Wm);case 2:throw new Error(Ej);case 3:throw new Error(up)}},ecdh(t,n,r={},o){switch(Hn("public key",t,[33,65]),Hn("private key",n,32),Za(lp(r)==="Object","Expected options to be an Object"),r.data!==void 0&&Hn("options.data",r.data),r.hashfn!==void 0?(Za(lp(r.hashfn)==="Function","Expected options.hashfn to be a Function"),r.xbuf!==void 0&&Hn("options.xbuf",r.xbuf,32),r.ybuf!==void 0&&Hn("options.ybuf",r.ybuf,32),Hn("output",o)):o=zs(o,32),e.ecdh(o,t,n,r.data,r.hashfn,r.xbuf,r.ybuf)){case 0:return o;case 1:throw new Error(ih);case 2:throw new Error(kj)}}}))(Gz),Xo={},Lb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SECRET_KEY_LENGTH=e.AES_IV_PLUS_TAG_LENGTH=e.AES_TAG_LENGTH=e.AES_IV_LENGTH=e.UNCOMPRESSED_PUBLIC_KEY_SIZE=void 0,e.UNCOMPRESSED_PUBLIC_KEY_SIZE=65,e.AES_IV_LENGTH=16,e.AES_TAG_LENGTH=16,e.AES_IV_PLUS_TAG_LENGTH=e.AES_IV_LENGTH+e.AES_TAG_LENGTH,e.SECRET_KEY_LENGTH=32})(Lb);var Zz=En&&En.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.aesDecrypt=Xo.aesEncrypt=Xo.getValidSecret=Xo.decodeHex=Xo.remove0x=void 0;var Ib=mb(),Qz=Zz(G8),_p=Lb;function pC(e){return e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e}Xo.remove0x=pC,Xo.decodeHex=function(e){return ze.from(pC(e),"hex")},Xo.getValidSecret=function(){var e;do e=(0,Ib.randomBytes)(_p.SECRET_KEY_LENGTH);while(!Qz.default.privateKeyVerify(e));return e},Xo.aesEncrypt=function(e,t){var n=(0,Ib.randomBytes)(_p.AES_IV_LENGTH),r=(0,Ib.createCipheriv)("aes-256-gcm",e,n),o=ze.concat([r.update(t),r.final()]),i=r.getAuthTag();return ze.concat([n,i,o])},Xo.aesDecrypt=function(e,t){var n=t.slice(0,_p.AES_IV_LENGTH),r=t.slice(_p.AES_IV_LENGTH,_p.AES_IV_PLUS_TAG_LENGTH),o=t.slice(_p.AES_IV_PLUS_TAG_LENGTH),i=(0,Ib.createDecipheriv)("aes-256-gcm",e,n);return i.setAuthTag(r),ze.concat([i.update(o),i.final()])};var Ob={},mC=En&&En.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ob,"__esModule",{value:!0});var Xz=mC(CM),gC=mC(G8),Jz=Xo,eU=Lb,tU=function(){function e(t){this.uncompressed=ze.from(gC.default.publicKeyConvert(t,!1)),this.compressed=ze.from(gC.default.publicKeyConvert(t,!0))}return e.fromHex=function(t){var n=(0,Jz.decodeHex)(t);if(n.length===eU.UNCOMPRESSED_PUBLIC_KEY_SIZE-1){var r=ze.from([4]);return new e(ze.concat([r,n]))}return new e(n)},e.prototype.toHex=function(t){return t===void 0&&(t=!0),t?this.compressed.toString("hex"):this.uncompressed.toString("hex")},e.prototype.decapsulate=function(t){var n=ze.concat([this.uncompressed,t.multiply(this)]);return(0,Xz.default)(n,32,{hash:"SHA-256"})},e.prototype.equals=function(t){return this.uncompressed.equals(t.uncompressed)},e}();Ob.default=tU;var Z8=En&&En.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(G6,"__esModule",{value:!0});var nU=Z8(CM),Q8=Z8(G8),vC=Xo,rU=Z8(Ob),iU=function(){function e(t){if(this.secret=t||(0,vC.getValidSecret)(),!Q8.default.privateKeyVerify(this.secret))throw new Error("Invalid private key");this.publicKey=new rU.default(ze.from(Q8.default.publicKeyCreate(this.secret)))}return e.fromHex=function(t){return new e((0,vC.decodeHex)(t))},e.prototype.toHex=function(){return"0x".concat(this.secret.toString("hex"))},e.prototype.encapsulate=function(t){var n=ze.concat([this.publicKey.uncompressed,this.multiply(t)]);return(0,nU.default)(n,32,{hash:"SHA-256"})},e.prototype.multiply=function(t){return ze.from(Q8.default.publicKeyTweakMul(t.compressed,this.secret,!1))},e.prototype.equals=function(t){return this.secret.equals(t.secret)},e}();G6.default=iU,function(e){var t=En&&En.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=e.PrivateKey=void 0;var n=G6;Object.defineProperty(e,"PrivateKey",{enumerable:!0,get:function(){return t(n).default}});var r=Ob;Object.defineProperty(e,"PublicKey",{enumerable:!0,get:function(){return t(r).default}})}(Y6),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.utils=e.PublicKey=e.PrivateKey=e.decrypt=e.encrypt=void 0;var t=Y6,n=Xo,r=Lb;e.encrypt=function(i,c){var g=new t.PrivateKey,_=i instanceof ze?new t.PublicKey(i):t.PublicKey.fromHex(i),w=g.encapsulate(_),S=(0,n.aesEncrypt)(w,c);return ze.concat([g.publicKey.uncompressed,S])},e.decrypt=function(i,c){var g=i instanceof ze?new t.PrivateKey(i):t.PrivateKey.fromHex(i),_=new t.PublicKey(c.slice(0,r.UNCOMPRESSED_PUBLIC_KEY_SIZE)),w=c.slice(r.UNCOMPRESSED_PUBLIC_KEY_SIZE),S=_.decapsulate(g);return(0,n.aesDecrypt)(S,w)};var o=Y6;Object.defineProperty(e,"PrivateKey",{enumerable:!0,get:function(){return o.PrivateKey}}),Object.defineProperty(e,"PublicKey",{enumerable:!0,get:function(){return o.PublicKey}}),e.utils={aesDecrypt:n.aesDecrypt,aesEncrypt:n.aesEncrypt,decodeHex:n.decodeHex,getValidSecret:n.getValidSecret,remove0x:n.remove0x}}(O0);var bC={exports:{}};(function(e,t){(function(n){var r=Object.hasOwnProperty,o=Array.isArray?Array.isArray:function(l){return Object.prototype.toString.call(l)==="[object Array]"},i=typeof vr=="object"&&!0,c=typeof Symbol=="function",g=typeof Reflect=="object",_=typeof setImmediate=="function"?setImmediate:setTimeout,w=c?g&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(l){var b=Object.getOwnPropertyNames(l);return b.push.apply(b,Object.getOwnPropertySymbols(l)),b}:Object.keys;function S(){this._events={},this._conf&&E.call(this,this._conf)}function E(l){l&&(this._conf=l,l.delimiter&&(this.delimiter=l.delimiter),l.maxListeners!==n&&(this._maxListeners=l.maxListeners),l.wildcard&&(this.wildcard=l.wildcard),l.newListener&&(this._newListener=l.newListener),l.removeListener&&(this._removeListener=l.removeListener),l.verboseMemoryLeak&&(this.verboseMemoryLeak=l.verboseMemoryLeak),l.ignoreErrors&&(this.ignoreErrors=l.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function T(l,b){var C="(node) warning: possible EventEmitter memory leak detected. "+l+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(C+=" Event name: "+b+"."),vr!==void 0&&vr.emitWarning){var R=new Error(C);R.name="MaxListenersExceededWarning",R.emitter=this,R.count=l,vr.emitWarning(R)}else console.error(C),console.trace&&console.trace()}var I=function(l,b,C){var R=arguments.length;switch(R){case 0:return[];case 1:return[l];case 2:return[l,b];case 3:return[l,b,C];default:for(var L=new Array(R);R--;)L[R]=arguments[R];return L}};function j(l,b){for(var C={},R=l.length,L=0,B=0;B<R;B++)C[l[B]]=B<L?b[B]:n;return C}function H(l,b,C){var R,L;if(this._emitter=l,this._target=b,this._listeners={},this._listenersCount=0,(C.on||C.off)&&(R=C.on,L=C.off),b.addEventListener?(R=b.addEventListener,L=b.removeEventListener):b.addListener?(R=b.addListener,L=b.removeListener):b.on&&(R=b.on,L=b.off),!R&&!L)throw Error("target does not implement any known event API");if(typeof R!="function")throw TypeError("on method must be a function");if(typeof L!="function")throw TypeError("off method must be a function");this._on=R,this._off=L;var B=l._observers;B?B.push(this):l._observers=[this]}function V(l,b,C,R){var L=Object.assign({},b);if(!l)return L;if(typeof l!="object")throw TypeError("options must be an object");var B,K,z,O=Object.keys(l),D=O.length;function q(Q){throw Error('Invalid "'+B+'" option value'+(Q?". Reason: "+Q:""))}for(var Y=0;Y<D;Y++){if(B=O[Y],!r.call(b,B))throw Error('Unknown "'+B+'" option');(K=l[B])!==n&&(z=C[B],L[B]=z?z(K,q):K)}return L}function ee(l,b){return typeof l=="function"&&l.hasOwnProperty("prototype")||b("value must be a constructor"),l}function X(l){var b="value must be type of "+l.join("|"),C=l.length,R=l[0],L=l[1];return C===1?function(B,K){if(typeof B===R)return B;K(b)}:C===2?function(B,K){var z=typeof B;if(z===R||z===L)return B;K(b)}:function(B,K){for(var z=typeof B,O=C;O-- >0;)if(z===l[O])return B;K(b)}}Object.assign(H.prototype,{subscribe:function(l,b,C){var R=this,L=this._target,B=this._emitter,K=this._listeners,z=function(){var O=I.apply(null,arguments),D={data:O,name:b,original:l};C?C.call(L,D)!==!1&&B.emit.apply(B,[D.name].concat(O)):B.emit.apply(B,[b].concat(O))};if(K[l])throw Error("Event '"+l+"' is already listening");this._listenersCount++,B._newListener&&B._removeListener&&!R._onNewListener?(this._onNewListener=function(O){O===b&&K[l]===null&&(K[l]=z,R._on.call(L,l,z))},B.on("newListener",this._onNewListener),this._onRemoveListener=function(O){O===b&&!B.hasListeners(O)&&K[l]&&(K[l]=null,R._off.call(L,l,z))},K[l]=null,B.on("removeListener",this._onRemoveListener)):(K[l]=z,R._on.call(L,l,z))},unsubscribe:function(l){var b,C,R,L=this,B=this._listeners,K=this._emitter,z=this._off,O=this._target;if(l&&typeof l!="string")throw TypeError("event must be a string");function D(){L._onNewListener&&(K.off("newListener",L._onNewListener),K.off("removeListener",L._onRemoveListener),L._onNewListener=null,L._onRemoveListener=null);var q=Me.call(K,L);K._observers.splice(q,1)}if(l){if(!(b=B[l]))return;z.call(O,l,b),delete B[l],--this._listenersCount||D()}else{for(R=(C=w(B)).length;R-- >0;)l=C[R],z.call(O,l,B[l]);this._listeners={},this._listenersCount=0,D()}}});var ue=X(["function"]),le=X(["object","function"]);function pe(l,b,C){var R,L,B,K=0,z=new l(function(O,D,q){function Y(){L&&(L=null),K&&(clearTimeout(K),K=0)}C=V(C,{timeout:0,overload:!1},{timeout:function(re,we){return(typeof(re*=1)!="number"||re<0||!Number.isFinite(re))&&we("timeout must be a positive number"),re}}),R=!C.overload&&typeof l.prototype.cancel=="function"&&typeof q=="function";var Q=function(re){Y(),O(re)},ae=function(re){Y(),D(re)};R?b(Q,ae,q):(L=[function(re){ae(re||Error("canceled"))}],b(Q,ae,function(re){if(B)throw Error("Unable to subscribe on cancel event asynchronously");if(typeof re!="function")throw TypeError("onCancel callback must be a function");L.push(re)}),B=!0),C.timeout>0&&(K=setTimeout(function(){var re=Error("timeout");re.code="ETIMEDOUT",K=0,z.cancel(re),D(re)},C.timeout))});return R||(z.cancel=function(O){if(L){for(var D=L.length,q=1;q<D;q++)L[q](O);L[0](O),L=null}}),z}function Me(l){var b=this._observers;if(!b)return-1;for(var C=b.length,R=0;R<C;R++)if(b[R]._target===l)return R;return-1}function ye(l,b,C,R,L){if(!C)return null;if(R===0){var B=typeof b;if(B==="string"){var K,z,O=0,D=0,q=this.delimiter,Y=q.length;if((z=b.indexOf(q))!==-1){K=new Array(5);do K[O++]=b.slice(D,z),D=z+Y;while((z=b.indexOf(q,D))!==-1);K[O++]=b.slice(D),b=K,L=O}else b=[b],L=1}else B==="object"?L=b.length:(b=[b],L=1)}var Q,ae,re,we,de,ie,oe,fe=null,me=b[R],Le=b[R+1];if(R===L)C._listeners&&(typeof C._listeners=="function"?(l&&l.push(C._listeners),fe=[C]):(l&&l.push.apply(l,C._listeners),fe=[C]));else{if(me==="*"){for(z=(ie=w(C)).length;z-- >0;)(Q=ie[z])!=="_listeners"&&(oe=ye(l,b,C[Q],R+1,L))&&(fe?fe.push.apply(fe,oe):fe=oe);return fe}if(me==="**"){for((de=R+1===L||R+2===L&&Le==="*")&&C._listeners&&(fe=ye(l,b,C,L,L)),z=(ie=w(C)).length;z-- >0;)(Q=ie[z])!=="_listeners"&&(Q==="*"||Q==="**"?(C[Q]._listeners&&!de&&(oe=ye(l,b,C[Q],L,L))&&(fe?fe.push.apply(fe,oe):fe=oe),oe=ye(l,b,C[Q],R,L)):oe=ye(l,b,C[Q],Q===Le?R+2:R,L),oe&&(fe?fe.push.apply(fe,oe):fe=oe));return fe}C[me]&&(fe=ye(l,b,C[me],R+1,L))}if((ae=C["*"])&&ye(l,b,ae,R+1,L),re=C["**"])if(R<L)for(re._listeners&&ye(l,b,re,L,L),z=(ie=w(re)).length;z-- >0;)(Q=ie[z])!=="_listeners"&&(Q===Le?ye(l,b,re[Q],R+2,L):Q===me?ye(l,b,re[Q],R+1,L):((we={})[Q]=re[Q],ye(l,b,{"**":we},R+1,L)));else re._listeners?ye(l,b,re,L,L):re["*"]&&re["*"]._listeners&&ye(l,b,re["*"],L,L);return fe}function Te(l,b,C){var R,L,B=0,K=0,z=this.delimiter,O=z.length;if(typeof l=="string")if((R=l.indexOf(z))!==-1){L=new Array(5);do L[B++]=l.slice(K,R),K=R+O;while((R=l.indexOf(z,K))!==-1);L[B++]=l.slice(K)}else L=[l],B=1;else L=l,B=l.length;if(B>1){for(R=0;R+1<B;R++)if(L[R]==="**"&&L[R+1]==="**")return}var D,q=this.listenerTree;for(R=0;R<B;R++)if(q=q[D=L[R]]||(q[D]={}),R===B-1)return q._listeners?(typeof q._listeners=="function"&&(q._listeners=[q._listeners]),C?q._listeners.unshift(b):q._listeners.push(b),!q._listeners.warned&&this._maxListeners>0&&q._listeners.length>this._maxListeners&&(q._listeners.warned=!0,T.call(this,q._listeners.length,D))):q._listeners=b,!0;return!0}function y(l,b,C,R){for(var L,B,K,z,O=w(l),D=O.length,q=l._listeners;D-- >0;)L=l[B=O[D]],K=B==="_listeners"?C:C?C.concat(B):[B],z=R||typeof B=="symbol",q&&b.push(z?K:K.join(this.delimiter)),typeof L=="object"&&y.call(this,L,b,K,z);return b}function x(l){for(var b,C,R,L=w(l),B=L.length;B-- >0;)(b=l[C=L[B]])&&(R=!0,C==="_listeners"||x(b)||delete l[C]);return R}function d(l,b,C){this.emitter=l,this.event=b,this.listener=C}function p(l,b,C){if(C===!0)L=!0;else if(C===!1)R=!0;else{if(!C||typeof C!="object")throw TypeError("options should be an object or true");var R=C.async,L=C.promisify,B=C.nextTick,K=C.objectify}if(R||B||L){var z=b,O=b._origin||b;if(B&&!i)throw Error("process.nextTick is not supported");L===n&&(L=b.constructor.name==="AsyncFunction"),b=function(){var D=arguments,q=this,Y=this.event;return L?B?Promise.resolve():new Promise(function(Q){_(Q)}).then(function(){return q.event=Y,z.apply(q,D)}):(B?xn:_)(function(){q.event=Y,z.apply(q,D)})},b._async=!0,b._origin=O}return[b,K?new d(this,l,b):this]}function h(l){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,E.call(this,l)}d.prototype.off=function(){return this.emitter.off(this.event,this.listener),this},h.EventEmitter2=h,h.prototype.listenTo=function(l,b,C){if(typeof l!="object")throw TypeError("target musts be an object");var R=this;function L(B){if(typeof B!="object")throw TypeError("events must be an object");var K,z=C.reducers,O=Me.call(R,l);K=O===-1?new H(R,l,C):R._observers[O];for(var D,q=w(B),Y=q.length,Q=typeof z=="function",ae=0;ae<Y;ae++)D=q[ae],K.subscribe(D,B[D]||D,Q?z:z&&z[D])}return C=V(C,{on:n,off:n,reducers:n},{on:ue,off:ue,reducers:le}),o(b)?L(j(b)):L(typeof b=="string"?j(b.split(/\s+/)):b),this},h.prototype.stopListeningTo=function(l,b){var C=this._observers;if(!C)return!1;var R,L=C.length,B=!1;if(l&&typeof l!="object")throw TypeError("target should be an object");for(;L-- >0;)R=C[L],l&&R._target!==l||(R.unsubscribe(b),B=!0);return B},h.prototype.delimiter=".",h.prototype.setMaxListeners=function(l){l!==n&&(this._maxListeners=l,this._conf||(this._conf={}),this._conf.maxListeners=l)},h.prototype.getMaxListeners=function(){return this._maxListeners},h.prototype.event="",h.prototype.once=function(l,b,C){return this._once(l,b,!1,C)},h.prototype.prependOnceListener=function(l,b,C){return this._once(l,b,!0,C)},h.prototype._once=function(l,b,C,R){return this._many(l,1,b,C,R)},h.prototype.many=function(l,b,C,R){return this._many(l,b,C,!1,R)},h.prototype.prependMany=function(l,b,C,R){return this._many(l,b,C,!0,R)},h.prototype._many=function(l,b,C,R,L){var B=this;if(typeof C!="function")throw new Error("many only accepts instances of Function");function K(){return--b==0&&B.off(l,K),C.apply(this,arguments)}return K._origin=C,this._on(l,K,R,L)},h.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||S.call(this);var l,b,C,R,L,B,K=arguments[0],z=this.wildcard;if(K==="newListener"&&!this._newListener&&!this._events.newListener)return!1;if(z&&(l=K,K!=="newListener"&&K!=="removeListener"&&typeof K=="object")){if(C=K.length,c){for(R=0;R<C;R++)if(typeof K[R]=="symbol"){B=!0;break}}B||(K=K.join(this.delimiter))}var O,D=arguments.length;if(this._all&&this._all.length)for(R=0,C=(O=this._all.slice()).length;R<C;R++)switch(this.event=K,D){case 1:O[R].call(this,K);break;case 2:O[R].call(this,K,arguments[1]);break;case 3:O[R].call(this,K,arguments[1],arguments[2]);break;default:O[R].apply(this,arguments)}if(z)O=[],ye.call(this,O,l,this.listenerTree,0,C);else{if(typeof(O=this._events[K])=="function"){switch(this.event=K,D){case 1:O.call(this);break;case 2:O.call(this,arguments[1]);break;case 3:O.call(this,arguments[1],arguments[2]);break;default:for(b=new Array(D-1),L=1;L<D;L++)b[L-1]=arguments[L];O.apply(this,b)}return!0}O&&(O=O.slice())}if(O&&O.length){if(D>3)for(b=new Array(D-1),L=1;L<D;L++)b[L-1]=arguments[L];for(R=0,C=O.length;R<C;R++)switch(this.event=K,D){case 1:O[R].call(this);break;case 2:O[R].call(this,arguments[1]);break;case 3:O[R].call(this,arguments[1],arguments[2]);break;default:O[R].apply(this,b)}return!0}if(!this.ignoreErrors&&!this._all&&K==="error")throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},h.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||S.call(this);var l,b,C,R,L,B,K=arguments[0],z=this.wildcard;if(K==="newListener"&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(z&&(l=K,K!=="newListener"&&K!=="removeListener"&&typeof K=="object")){if(R=K.length,c){for(L=0;L<R;L++)if(typeof K[L]=="symbol"){b=!0;break}}b||(K=K.join(this.delimiter))}var O,D=[],q=arguments.length;if(this._all)for(L=0,R=this._all.length;L<R;L++)switch(this.event=K,q){case 1:D.push(this._all[L].call(this,K));break;case 2:D.push(this._all[L].call(this,K,arguments[1]));break;case 3:D.push(this._all[L].call(this,K,arguments[1],arguments[2]));break;default:D.push(this._all[L].apply(this,arguments))}if(z?(O=[],ye.call(this,O,l,this.listenerTree,0)):O=this._events[K],typeof O=="function")switch(this.event=K,q){case 1:D.push(O.call(this));break;case 2:D.push(O.call(this,arguments[1]));break;case 3:D.push(O.call(this,arguments[1],arguments[2]));break;default:for(C=new Array(q-1),B=1;B<q;B++)C[B-1]=arguments[B];D.push(O.apply(this,C))}else if(O&&O.length){if(O=O.slice(),q>3)for(C=new Array(q-1),B=1;B<q;B++)C[B-1]=arguments[B];for(L=0,R=O.length;L<R;L++)switch(this.event=K,q){case 1:D.push(O[L].call(this));break;case 2:D.push(O[L].call(this,arguments[1]));break;case 3:D.push(O[L].call(this,arguments[1],arguments[2]));break;default:D.push(O[L].apply(this,C))}}else if(!this.ignoreErrors&&!this._all&&K==="error")return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(D)},h.prototype.on=function(l,b,C){return this._on(l,b,!1,C)},h.prototype.prependListener=function(l,b,C){return this._on(l,b,!0,C)},h.prototype.onAny=function(l){return this._onAny(l,!1)},h.prototype.prependAny=function(l){return this._onAny(l,!0)},h.prototype.addListener=h.prototype.on,h.prototype._onAny=function(l,b){if(typeof l!="function")throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),b?this._all.unshift(l):this._all.push(l),this},h.prototype._on=function(l,b,C,R){if(typeof l=="function")return this._onAny(l,b),this;if(typeof b!="function")throw new Error("on only accepts instances of Function");this._events||S.call(this);var L,B=this;return R!==n&&(b=(L=p.call(this,l,b,R))[0],B=L[1]),this._newListener&&this.emit("newListener",l,b),this.wildcard?(Te.call(this,l,b,C),B):(this._events[l]?(typeof this._events[l]=="function"&&(this._events[l]=[this._events[l]]),C?this._events[l].unshift(b):this._events[l].push(b),!this._events[l].warned&&this._maxListeners>0&&this._events[l].length>this._maxListeners&&(this._events[l].warned=!0,T.call(this,this._events[l].length,l))):this._events[l]=b,B)},h.prototype.off=function(l,b){if(typeof b!="function")throw new Error("removeListener only takes instances of Function");var C,R=[];if(this.wildcard){var L=typeof l=="string"?l.split(this.delimiter):l.slice();if(!(R=ye.call(this,null,L,this.listenerTree,0)))return this}else{if(!this._events[l])return this;C=this._events[l],R.push({_listeners:C})}for(var B=0;B<R.length;B++){var K=R[B];if(C=K._listeners,o(C)){for(var z=-1,O=0,D=C.length;O<D;O++)if(C[O]===b||C[O].listener&&C[O].listener===b||C[O]._origin&&C[O]._origin===b){z=O;break}if(z<0)continue;return this.wildcard?K._listeners.splice(z,1):this._events[l].splice(z,1),C.length===0&&(this.wildcard?delete K._listeners:delete this._events[l]),this._removeListener&&this.emit("removeListener",l,b),this}(C===b||C.listener&&C.listener===b||C._origin&&C._origin===b)&&(this.wildcard?delete K._listeners:delete this._events[l],this._removeListener&&this.emit("removeListener",l,b))}return this.listenerTree&&x(this.listenerTree),this},h.prototype.offAny=function(l){var b,C=0,R=0;if(l&&this._all&&this._all.length>0){for(C=0,R=(b=this._all).length;C<R;C++)if(l===b[C])return b.splice(C,1),this._removeListener&&this.emit("removeListenerAny",l),this}else{if(b=this._all,this._removeListener)for(C=0,R=b.length;C<R;C++)this.emit("removeListenerAny",b[C]);this._all=[]}return this},h.prototype.removeListener=h.prototype.off,h.prototype.removeAllListeners=function(l){if(l===n)return!this._events||S.call(this),this;if(this.wildcard){var b,C=ye.call(this,null,l,this.listenerTree,0);if(!C)return this;for(b=0;b<C.length;b++)C[b]._listeners=null;this.listenerTree&&x(this.listenerTree)}else this._events&&(this._events[l]=null);return this},h.prototype.listeners=function(l){var b,C,R,L,B,K=this._events;if(l===n){if(this.wildcard)throw Error("event name required for wildcard emitter");if(!K)return[];for(L=(b=w(K)).length,R=[];L-- >0;)typeof(C=K[b[L]])=="function"?R.push(C):R.push.apply(R,C);return R}if(this.wildcard){if(!(B=this.listenerTree))return[];var z=[],O=typeof l=="string"?l.split(this.delimiter):l.slice();return ye.call(this,z,O,B,0),z}return K&&(C=K[l])?typeof C=="function"?[C]:C:[]},h.prototype.eventNames=function(l){var b=this._events;return this.wildcard?y.call(this,this.listenerTree,[],null,l):b?w(b):[]},h.prototype.listenerCount=function(l){return this.listeners(l).length},h.prototype.hasListeners=function(l){if(this.wildcard){var b=[],C=typeof l=="string"?l.split(this.delimiter):l.slice();return ye.call(this,b,C,this.listenerTree,0),b.length>0}var R=this._events,L=this._all;return!!(L&&L.length||R&&(l===n?w(R).length:R[l]))},h.prototype.listenersAny=function(){return this._all?this._all:[]},h.prototype.waitFor=function(l,b){var C=this,R=typeof b;return R==="number"?b={timeout:b}:R==="function"&&(b={filter:b}),pe((b=V(b,{timeout:0,filter:n,handleError:!1,Promise,overload:!1},{filter:ue,Promise:ee})).Promise,function(L,B,K){function z(){var O=b.filter;if(!O||O.apply(C,arguments))if(C.off(l,z),b.handleError){var D=arguments[0];D?B(D):L(I.apply(null,arguments).slice(1))}else L(I.apply(null,arguments))}K(function(){C.off(l,z)}),C._on(l,z,!1)},{timeout:b.timeout,overload:b.overload})};var f=h.prototype;Object.defineProperties(h,{defaultMaxListeners:{get:function(){return f._maxListeners},set:function(l){if(typeof l!="number"||l<0||Number.isNaN(l))throw TypeError("n must be a non-negative number");f._maxListeners=l},enumerable:!0},once:{value:function(l,b,C){return pe((C=V(C,{Promise,timeout:0,overload:!1},{Promise:ee})).Promise,function(R,L,B){var K;if(typeof l.addEventListener=="function")return K=function(){R(I.apply(null,arguments))},B(function(){l.removeEventListener(b,K)}),void l.addEventListener(b,K,{once:!0});var z,O=function(){z&&l.removeListener("error",z),R(I.apply(null,arguments))};b!=="error"&&(z=function(D){l.removeListener(b,O),L(D)},l.once("error",z)),B(function(){z&&l.removeListener("error",z),l.removeListener(b,O)}),l.once(b,O)},{timeout:C.timeout,overload:C.overload})},writable:!0,configurable:!0}}),Object.defineProperties(f,{_maxListeners:{value:10,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),e.exports=h})()})(bC);var X8,J8=bC.exports,oU=new Uint8Array(16);function aU(){if(!X8&&!(X8=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return X8(oU)}var sU=/^(?:[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;function yC(e){return typeof e=="string"&&sU.test(e)}for(var Ki=[],e5=0;e5<256;++e5)Ki.push((e5+256).toString(16).substr(1));function wC(e,t,n){var r=(e=e||{}).random||(e.rng||aU)();return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=(Ki[o[i+0]]+Ki[o[i+1]]+Ki[o[i+2]]+Ki[o[i+3]]+"-"+Ki[o[i+4]]+Ki[o[i+5]]+"-"+Ki[o[i+6]]+Ki[o[i+7]]+"-"+Ki[o[i+8]]+Ki[o[i+9]]+"-"+Ki[o[i+10]]+Ki[o[i+11]]+Ki[o[i+12]]+Ki[o[i+13]]+Ki[o[i+14]]+Ki[o[i+15]]).toLowerCase();if(!yC(c))throw TypeError("Stringified UUID is invalid");return c}(r)}const el=Object.create(null);el.open="0",el.close="1",el.ping="2",el.pong="3",el.message="4",el.upgrade="5",el.noop="6";const Nb=Object.create(null);Object.keys(el).forEach(e=>{Nb[el[e]]=e});const uU={type:"error",data:"parser error"},_C=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",SC=typeof ArrayBuffer=="function",EC=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,t5=({type:e,data:t},n,r)=>_C&&t instanceof Blob?n?r(t):kC(t,r):SC&&(t instanceof ArrayBuffer||EC(t))?n?r(t):kC(new Blob([t]),r):r(el[e]+(t||"")),kC=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function MC(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let n5;function lU(e,t){return _C&&e.data instanceof Blob?e.data.arrayBuffer().then(MC).then(t):SC&&(e.data instanceof ArrayBuffer||EC(e.data))?t(MC(e.data)):void t5(e,!1,n=>{n5||(n5=new TextEncoder),t(n5.encode(n))})}const cU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<64;e++)Zm[cU.charCodeAt(e)]=e;const dU=typeof ArrayBuffer=="function",r5=(e,t)=>{if(typeof e!="string")return{type:"message",data:CC(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:fU(e.substring(1),t)}:Nb[n]?e.length>1?{type:Nb[n],data:e.substring(1)}:{type:Nb[n]}:uU},fU=(e,t)=>{if(dU){const n=(r=>{let o,i,c,g,_,w=.75*r.length,S=r.length,E=0;r[r.length-1]==="="&&(w--,r[r.length-2]==="="&&w--);const T=new ArrayBuffer(w),I=new Uint8Array(T);for(o=0;o<S;o+=4)i=Zm[r.charCodeAt(o)],c=Zm[r.charCodeAt(o+1)],g=Zm[r.charCodeAt(o+2)],_=Zm[r.charCodeAt(o+3)],I[E++]=i<<2|c>>4,I[E++]=(15&c)<<4|g>>2,I[E++]=(3&g)<<6|63&_;return T})(e);return CC(n,t)}return{base64:!0,data:e}},CC=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,xC="";let i5;function ri(e){if(e)return function(t){for(var n in ri.prototype)t[n]=ri.prototype[n];return t}(e)}ri.prototype.on=ri.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},ri.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},ri.prototype.off=ri.prototype.removeListener=ri.prototype.removeAllListeners=ri.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this},ri.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},ri.prototype.emitReserved=ri.prototype.emit,ri.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},ri.prototype.hasListeners=function(e){return!!this.listeners(e).length};const es=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function AC(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const hU=es.setTimeout,pU=es.clearTimeout;function Db(e,t){t.useNativeTimers?(e.setTimeoutFn=hU.bind(es),e.clearTimeoutFn=pU.bind(es)):(e.setTimeoutFn=es.setTimeout.bind(es),e.clearTimeoutFn=es.clearTimeout.bind(es))}class mU extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class o5 extends ri{constructor(t){super(),this.writable=!1,Db(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new mU(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return this.readyState!=="opening"&&this.readyState!=="open"||(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=r5(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=function(r){let o="";for(let i in r)r.hasOwnProperty(i)&&(o.length&&(o+="&"),o+=encodeURIComponent(i)+"="+encodeURIComponent(r[i]));return o}(t);return n.length?"?"+n:""}}const RC="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),a5=64,gU={};let TC,PC=0,Bb=0;function LC(e){let t="";do t=RC[e%a5]+t,e=Math.floor(e/a5);while(e>0);return t}function IC(){const e=LC(+new Date);return e!==TC?(PC=0,TC=e):e+"."+LC(PC++)}for(;Bb<a5;Bb++)gU[RC[Bb]]=Bb;let OC=!1;try{OC=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const vU=OC;function NC(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||vU))return new XMLHttpRequest}catch{}if(!t)try{return new es[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function bU(){}const yU=new NC({xdomain:!1}).responseType!=null;class tl extends ri{constructor(t,n){super(),Db(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=AC(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new NC(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){return void this.setTimeoutFn(()=>{this.onError(o)},0)}typeof document<"u"&&(this.index=tl.requestsCount++,tl.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(this.xhr!==void 0&&this.xhr!==null){if(this.xhr.onreadystatechange=bU,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete tl.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}tl.requestsCount=0,tl.requests={},typeof document<"u"&&(typeof attachEvent=="function"?attachEvent("onunload",DC):typeof addEventListener=="function"&&addEventListener("onpagehide"in es?"pagehide":"unload",DC,!1));function DC(){for(let e in tl.requests)tl.requests.hasOwnProperty(e)&&tl.requests[e].abort()}const s5=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),jb=es.WebSocket||es.MozWebSocket,BC=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";function wU(e,t){return e.type==="message"&&typeof e.data!="string"&&t[0]>=48&&t[0]<=54}const _U={websocket:class extends o5{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=BC?{}:AC(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=BC?new jb(e,t,n):t?new jb(e,t):new jb(e)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;t5(n,this.supportsBinary,o=>{try{this.ws.send(o)}catch{}r&&s5(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){this.ws!==void 0&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=IC()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!jb}},webtransport:class extends o5{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=e.readable.getReader();let n;this.writer=e.writable.getWriter();const r=()=>{t.read().then(({done:i,value:c})=>{i||(n||c.byteLength!==1||c[0]!==54?(this.onPacket(function(g,_,w){i5||(i5=new TextDecoder);const S=_||g[0]<48||g[0]>54;return r5(S?g:i5.decode(g),w)}(c,n,"arraybuffer")),n=!1):n=!0,r())}).catch(i=>{})};r();const o=this.query.sid?`0{"sid":"${this.query.sid}"}`:"0";this.writer.write(new TextEncoder().encode(o)).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;lU(n,o=>{wU(n,o)&&this.writer.write(Uint8Array.of(54)),this.writer.write(o).then(()=>{r&&s5(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}},polling:class extends o5{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}const t=e&&e.forceBase64;this.supportsBinary=yU&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let n=0;this.polling&&(n++,this.once("pollComplete",function(){--n||t()})),this.writable||(n++,this.once("drain",function(){--n||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((t,n)=>{const r=t.split(xC),o=[];for(let i=0;i<r.length;i++){const c=r5(r[i],n);if(o.push(c),c.type==="error")break}return o})(e,this.socket.binaryType).forEach(t=>{if(this.readyState==="opening"&&t.type==="open"&&this.onOpen(),t.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)}),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,((t,n)=>{const r=t.length,o=new Array(r);let i=0;t.forEach((c,g)=>{t5(c,!1,_=>{o[g]=_,++i===r&&n(o.join(xC))})})})(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=IC()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new tl(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",(r,o)=>{this.onError("xhr post error",r,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,n)=>{this.onError("xhr poll error",t,n)}),this.pollXhr=e}}},SU=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,EU=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function u5(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=SU.exec(e||""),i={},c=14;for(;c--;)i[EU[c]]=o[c]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(g,_){const w=/\/{2,9}/g,S=_.replace(w,"/").split("/");return _.slice(0,1)!="/"&&_.length!==0||S.splice(0,1),_.slice(-1)=="/"&&S.splice(S.length-1,1),S}(0,i.path),i.queryKey=function(g,_){const w={};return _.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(S,E,T){E&&(w[E]=T)}),w}(0,i.query),i}let jC=class sm extends ri{constructor(t,n={}){super(),this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=u5(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=u5(n.host).host),Db(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=function(r){let o={},i=r.split("&");for(let c=0,g=i.length;c<g;c++){let _=i[c].split("=");o[decodeURIComponent(_[0])]=decodeURIComponent(_[1])}return o}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=4,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new _U[t](r)}open(){let t;if(this.opts.rememberUpgrade&&sm.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else{if(this.transports.length===0)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch{return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;sm.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",E=>{if(!r)if(E.type==="pong"&&E.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;sm.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(S(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const T=new Error("probe error");T.transport=n.name,this.emitReserved("upgradeError",T)}}))};function i(){r||(r=!0,S(),n.close(),n=null)}const c=E=>{const T=new Error("probe error: "+E);T.transport=n.name,i(),this.emitReserved("upgradeError",T)};function g(){c("transport closed")}function _(){c("socket closed")}function w(E){n&&E.name!==n.name&&i()}const S=()=>{n.removeListener("open",o),n.removeListener("error",c),n.removeListener("close",g),this.off("close",_),this.off("upgrading",w)};n.once("open",o),n.once("error",c),n.once("close",g),this.once("close",_),this.once("upgrading",w),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",sm.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t<n;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data)}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(t+=typeof(n=o)=="string"?function(i){let c=0,g=0;for(let _=0,w=i.length;_<w;_++)c=i.charCodeAt(_),c<128?g+=1:c<2048?g+=2:c<55296||c>=57344?g+=3:(_++,g+=4);return g}(n):Math.ceil(1.33*(n.byteLength||n.size))),r>0&&t>this.maxPayload)return this.writeBuffer.slice(0,r);t+=2}var n;return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;(r=r||{}).compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return this.readyState!=="opening"&&this.readyState!=="open"||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){sm.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){this.readyState!=="opening"&&this.readyState!=="open"&&this.readyState!=="closing"||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;r<o;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}};jC.protocol=4;const kU=typeof ArrayBuffer=="function",MU=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,zC=Object.prototype.toString,CU=typeof Blob=="function"||typeof Blob<"u"&&zC.call(Blob)==="[object BlobConstructor]",xU=typeof File=="function"||typeof File<"u"&&zC.call(File)==="[object FileConstructor]";function l5(e){return kU&&(e instanceof ArrayBuffer||MU(e))||CU&&e instanceof Blob||xU&&e instanceof File}function zb(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(zb(e[n]))return!0;return!1}if(l5(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return zb(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&zb(e[n]))return!0;return!1}function AU(e){const t=[],n=e.data,r=e;return r.data=c5(n,t),r.attachments=t.length,{packet:r,buffers:t}}function c5(e,t){if(!e)return e;if(l5(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=c5(e[r],t);return n}if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=c5(e[r],t));return n}return e}function RU(e,t){return e.data=d5(e.data,t),delete e.attachments,e}function d5(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=d5(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=d5(e[n],t));return e}const TU=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Kn;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Kn||(Kn={}));function UC(e){return Object.prototype.toString.call(e)==="[object Object]"}class f5 extends ri{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===Kn.BINARY_EVENT;r||n.type===Kn.BINARY_ACK?(n.type=r?Kn.EVENT:Kn.ACK,this.reconstructor=new PU(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else{if(!l5(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n))}}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(Kn[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Kn.BINARY_EVENT||r.type===Kn.BINARY_ACK){const i=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const c=t.substring(i,n);if(c!=Number(c)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(c)}if(t.charAt(n+1)==="/"){const i=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(i,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const i=n+1;for(;++n;){const c=t.charAt(n);if(c==null||Number(c)!=c){--n;break}if(n===t.length)break}r.id=Number(t.substring(i,n+1))}if(t.charAt(++n)){const i=this.tryParse(t.substr(n));if(!f5.isPayloadValid(r.type,i))throw new Error("invalid payload");r.data=i}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Kn.CONNECT:return UC(n);case Kn.DISCONNECT:return n===void 0;case Kn.CONNECT_ERROR:return typeof n=="string"||UC(n);case Kn.EVENT:case Kn.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&TU.indexOf(n[0])===-1);case Kn.ACK:case Kn.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class PU{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=RU(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}var LU=Object.freeze({__proto__:null,Decoder:f5,Encoder:class{constructor(e){this.replacer=e}encode(e){return e.type!==Kn.EVENT&&e.type!==Kn.ACK||!zb(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===Kn.EVENT?Kn.BINARY_EVENT:Kn.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==Kn.BINARY_EVENT&&e.type!==Kn.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=AU(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}},get PacketType(){return Kn},protocol:5});function Ks(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const IU=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class FC extends ri{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Ks(t,"open",this.onopen.bind(this)),Ks(t,"packet",this.onpacket.bind(this)),Ks(t,"error",this.onerror.bind(this)),Ks(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen()),this}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(IU.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:Kn.EVENT,data:n,options:{}};if(r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const i=this.ids++,c=n.pop();this._registerAckCallback(i,c),r.id=i}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0)return void(this.acks[t]=n);const i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===t&&this.sendBuffer.splice(c,1);n.call(this,new Error("operation has timed out"))},o);this.acks[t]=(...c)=>{this.io.clearTimeoutFn(i),n.apply(this,[null,...c])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((o,i)=>{n.push((c,g)=>r?c?i(c):o(g):o(c)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>{if(r===this._queue[0])return o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Kn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Kn.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Kn.EVENT:case Kn.BINARY_EVENT:this.onevent(t);break;case Kn.ACK:case Kn.BINARY_ACK:this.onack(t);break;case Kn.DISCONNECT:this.ondisconnect();break;case Kn.CONNECT_ERROR:this.destroy();const n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n)}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:Kn.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Kn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Sp(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Sp.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+n:e-n}return 0|Math.min(e,this.max)},Sp.prototype.reset=function(){this.attempts=0},Sp.prototype.setMin=function(e){this.ms=e},Sp.prototype.setMax=function(e){this.max=e},Sp.prototype.setJitter=function(e){this.jitter=e};class h5 extends ri{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),(n=n||{}).path=n.path||"/socket.io",this.opts=n,Db(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Sp({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||LU;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new jC(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Ks(n,"open",function(){r.onopen(),t&&t()}),i=g=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",g),t?t(g):this.maybeReconnectOnOpen()},c=Ks(n,"error",i);if(this._timeout!==!1){const g=this._timeout,_=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},g);this.opts.autoUnref&&_.unref(),this.subs.push(()=>{this.clearTimeoutFn(_)})}return this.subs.push(o),this.subs.push(c),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Ks(t,"ping",this.onping.bind(this)),Ks(t,"data",this.ondata.bind(this)),Ks(t,"error",this.onerror.bind(this)),Ks(t,"close",this.onclose.bind(this)),Ks(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){s5(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new FC(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Qm={};function Ub(e,t){typeof e=="object"&&(t=e,e=void 0);const n=function(_,w="",S){let E=_;S=S||typeof location<"u"&&location,_==null&&(_=S.protocol+"//"+S.host),typeof _=="string"&&(_.charAt(0)==="/"&&(_=_.charAt(1)==="/"?S.protocol+_:S.host+_),/^(https?|wss?):\/\//.test(_)||(_=S!==void 0?S.protocol+"//"+_:"https://"+_),E=u5(_)),E.port||(/^(http|ws)$/.test(E.protocol)?E.port="80":/^(http|ws)s$/.test(E.protocol)&&(E.port="443")),E.path=E.path||"/";const T=E.host.indexOf(":")!==-1?"["+E.host+"]":E.host;return E.id=E.protocol+"://"+T+":"+E.port+w,E.href=E.protocol+"://"+T+(S&&S.port===E.port?"":":"+E.port),E}(e,(t=t||{}).path||"/socket.io"),r=n.source,o=n.id,i=n.path,c=Qm[o]&&i in Qm[o].nsps;let g;return t.forceNew||t["force new connection"]||t.multiplex===!1||c?g=new h5(r,t):(Qm[o]||(Qm[o]=new h5(r,t)),g=Qm[o]),n.query&&!t.query&&(t.query=n.queryKey),g.socket(n.path,t)}function tr(e,t,n,r){return new(n||(n=Promise))(function(o,i){function c(w){try{_(r.next(w))}catch(S){i(S)}}function g(w){try{_(r.throw(w))}catch(S){i(S)}}function _(w){var S;w.done?o(w.value):(S=w.value,S instanceof n?S:new n(function(E){E(S)})).then(c,g)}_((r=r.apply(e,[])).next())})}Object.assign(Ub,{Manager:h5,Socket:FC,io:Ub,connect:Ub}),typeof SuppressedError=="function"&&SuppressedError;var Xm=Pu!==void 0?Pu:typeof self<"u"?self:typeof window<"u"?window:{};function KC(){throw new Error("setTimeout has not been defined")}function qC(){throw new Error("clearTimeout has not been defined")}var yd=KC,wd=qC;function HC(e){if(yd===setTimeout)return setTimeout(e,0);if((yd===KC||!yd)&&setTimeout)return yd=setTimeout,setTimeout(e,0);try{return yd(e,0)}catch{try{return yd.call(null,e,0)}catch{return yd.call(this,e,0)}}}typeof Xm.setTimeout=="function"&&(yd=setTimeout),typeof Xm.clearTimeout=="function"&&(wd=clearTimeout);var hh,rc=[],Ep=!1,Fb=-1;function OU(){Ep&&hh&&(Ep=!1,hh.length?rc=hh.concat(rc):Fb=-1,rc.length&&WC())}function WC(){if(!Ep){var e=HC(OU);Ep=!0;for(var t=rc.length;t;){for(hh=rc,rc=[];++Fb<t;)hh&&hh[Fb].run();Fb=-1,t=rc.length}hh=null,Ep=!1,function(n){if(wd===clearTimeout)return clearTimeout(n);if((wd===qC||!wd)&&clearTimeout)return wd=clearTimeout,clearTimeout(n);try{return wd(n)}catch{try{return wd.call(null,n)}catch{return wd.call(this,n)}}}(e)}}function $C(e,t){this.fun=e,this.array=t}function ph(){}$C.prototype.run=function(){this.fun.apply(null,this.array)};var NU=ph,DU=ph,BU=ph,jU=ph,zU=ph,UU=ph,FU=ph,kp=Xm.performance||{},KU=kp.now||kp.mozNow||kp.msNow||kp.oNow||kp.webkitNow||function(){return new Date().getTime()},qU=new Date,p5={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];rc.push(new $C(e,t)),rc.length!==1||Ep||HC(WC)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:NU,addListener:DU,once:BU,off:jU,removeListener:zU,removeAllListeners:UU,emit:FU,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*KU.call(kp),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-qU)/1e3}},VC,YC,m5={exports:{}},HU=function(e){function t(o){let i,c,g,_=null;function w(...S){if(!w.enabled)return;const E=w,T=Number(new Date),I=T-(i||T);E.diff=I,E.prev=i,E.curr=T,i=T,S[0]=t.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let j=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(H,V)=>{if(H==="%%")return"%";j++;const ee=t.formatters[V];if(typeof ee=="function"){const X=S[j];H=ee.call(E,X),S.splice(j,1),j--}return H}),t.formatArgs.call(E,S),(E.log||t.log).apply(E,S)}return w.namespace=o,w.useColors=t.useColors(),w.color=t.selectColor(o),w.extend=n,w.destroy=t.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>_!==null?_:(c!==t.namespaces&&(c=t.namespaces,g=t.enabled(o)),g),set:S=>{_=S}}),typeof t.init=="function"&&t.init(w),w}function n(o,i){const c=t(this.namespace+(i===void 0?":":i)+o);return c.log=this.log,c}function r(o){return o.toString().substring(2,o.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(o){return o instanceof Error?o.stack||o.message:o},t.disable=function(){const o=[...t.names.map(r),...t.skips.map(r).map(i=>"-"+i)].join(",");return t.enable(""),o},t.enable=function(o){let i;t.save(o),t.namespaces=o,t.names=[],t.skips=[];const c=(typeof o=="string"?o:"").split(/[\s,]+/),g=c.length;for(i=0;i<g;i++)c[i]&&((o=c[i].replace(/\*/g,".*?"))[0]==="-"?t.skips.push(new RegExp("^"+o.slice(1)+"$")):t.names.push(new RegExp("^"+o+"$")))},t.enabled=function(o){if(o[o.length-1]==="*")return!0;let i,c;for(i=0,c=t.skips.length;i<c;i++)if(t.skips[i].test(o))return!1;for(i=0,c=t.names.length;i<c;i++)if(t.names[i].test(o))return!0;return!1},t.humanize=function(){if(YC)return VC;YC=1;var o=1e3,i=60*o,c=60*i,g=24*c;function _(w,S,E,T){var I=S>=1.5*E;return Math.round(w/E)+" "+T+(I?"s":"")}return VC=function(w,S){S=S||{};var E=typeof w;if(E==="string"&&w.length>0)return function(T){if(!((T=String(T)).length>100)){var I=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(T);if(I){var j=parseFloat(I[1]);switch((I[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*j;case"weeks":case"week":case"w":return 6048e5*j;case"days":case"day":case"d":return j*g;case"hours":case"hour":case"hrs":case"hr":case"h":return j*c;case"minutes":case"minute":case"mins":case"min":case"m":return j*i;case"seconds":case"second":case"secs":case"sec":case"s":return j*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return j;default:return}}}}(w);if(E==="number"&&isFinite(w))return S.long?function(T){var I=Math.abs(T);return I>=g?_(T,I,g,"day"):I>=c?_(T,I,c,"hour"):I>=i?_(T,I,i,"minute"):I>=o?_(T,I,o,"second"):T+" ms"}(w):function(T){var I=Math.abs(T);return I>=g?Math.round(T/g)+"d":I>=c?Math.round(T/c)+"h":I>=i?Math.round(T/i)+"m":I>=o?Math.round(T/o)+"s":T+"ms"}(w);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(w))}}(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(o=>{t[o]=e[o]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(o){let i=0;for(let c=0;c<o.length;c++)i=(i<<5)-i+o.charCodeAt(c),i|=0;return t.colors[Math.abs(i)%t.colors.length]},t.enable(t.load()),t};(function(e,t){t.formatArgs=function(r){if(r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const o="color: "+this.color;r.splice(1,0,o,"color: inherit");let i=0,c=0;r[0].replace(/%[a-zA-Z%]/g,g=>{g!=="%%"&&(i++,g==="%c"&&(c=i))}),r.splice(c,0,o)},t.save=function(r){try{r?t.storage.setItem("debug",r):t.storage.removeItem("debug")}catch{}},t.load=function(){let r;try{r=t.storage.getItem("debug")}catch{}return!r&&p5!==void 0&&"env"in p5&&(r=p5.env.DEBUG),r},t.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer"&&!window.process.__nwjs)||(typeof navigator>"u"||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch{}}(),t.destroy=(()=>{let r=!1;return()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=HU(t);const{formatters:n}=e.exports;n.j=function(r){try{return JSON.stringify(r)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}}})(m5,m5.exports);var nl=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(m5.exports);const GC=nl("KeyExchange:Layer"),ZC=nl("SocketService:Layer"),QC=nl("Ecies:Layer"),XC=nl("RemoteCommunication:Layer");GC.color="##95c44e",ZC.color="#f638d7",QC.color="#465b9c",XC.color="#47a2be";const Ve={KeyExchange:GC,SocketService:ZC,Ecies:QC,RemoteCommunication:XC};let Jm,Kb=[],g5=[];function WU(e){return tr(this,void 0,void 0,function*(){if(!Jm||!e)return;(function(){const o=g5;g5=Kb,Kb=o})();const t=Jm.endsWith("/")?`${Jm}debug`:`${Jm}/debug`,n=Object.assign({},e);if(delete n.params,e.params)for(const[o,i]of Object.entries(e.params))n[o]=i;const r=JSON.stringify(n);Ve.RemoteCommunication(`[sendBufferedEvents] Sending ${Kb.length} analytics events to ${t}`);try{const o=yield LL(t,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:r}),i=yield o.text();Ve.RemoteCommunication(`[sendBufferedEvents] Response: ${i}`),Kb.length=0}catch(o){console.warn("Error sending analytics",o)}})}const Mp=(e,t)=>tr(void 0,void 0,void 0,function*(){var n;Jm=t,n=e,g5.push(n),WU(e).catch(()=>{})});var rl=[],ts=[],$U=typeof Uint8Array<"u"?Uint8Array:Array,v5=!1;function JC(){v5=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)rl[t]=e[t],ts[e.charCodeAt(t)]=t;ts[45]=62,ts[95]=63}function VU(e,t,n){for(var r,o,i=[],c=t;c<n;c+=3)r=(e[c]<<16)+(e[c+1]<<8)+e[c+2],i.push(rl[(o=r)>>18&63]+rl[o>>12&63]+rl[o>>6&63]+rl[63&o]);return i.join("")}function ex(e){var t;v5||JC();for(var n=e.length,r=n%3,o="",i=[],c=16383,g=0,_=n-r;g<_;g+=c)i.push(VU(e,g,g+c>_?_:g+c));return r===1?(t=e[n-1],o+=rl[t>>2],o+=rl[t<<4&63],o+="=="):r===2&&(t=(e[n-2]<<8)+e[n-1],o+=rl[t>>10],o+=rl[t>>4&63],o+=rl[t<<2&63],o+="="),i.push(o),i.join("")}function qb(e,t,n,r,o){var i,c,g=8*o-r-1,_=(1<<g)-1,w=_>>1,S=-7,E=n?o-1:0,T=n?-1:1,I=e[t+E];for(E+=T,i=I&(1<<-S)-1,I>>=-S,S+=g;S>0;i=256*i+e[t+E],E+=T,S-=8);for(c=i&(1<<-S)-1,i>>=-S,S+=r;S>0;c=256*c+e[t+E],E+=T,S-=8);if(i===0)i=1-w;else{if(i===_)return c?NaN:1/0*(I?-1:1);c+=Math.pow(2,r),i-=w}return(I?-1:1)*c*Math.pow(2,i-r)}function tx(e,t,n,r,o,i){var c,g,_,w=8*i-o-1,S=(1<<w)-1,E=S>>1,T=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=r?0:i-1,j=r?1:-1,H=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(g=isNaN(t)?1:0,c=S):(c=Math.floor(Math.log(t)/Math.LN2),t*(_=Math.pow(2,-c))<1&&(c--,_*=2),(t+=c+E>=1?T/_:T*Math.pow(2,1-E))*_>=2&&(c++,_/=2),c+E>=S?(g=0,c=S):c+E>=1?(g=(t*_-1)*Math.pow(2,o),c+=E):(g=t*Math.pow(2,E-1)*Math.pow(2,o),c=0));o>=8;e[n+I]=255&g,I+=j,g/=256,o-=8);for(c=c<<o|g,w+=o;w>0;e[n+I]=255&c,I+=j,c/=256,w-=8);e[n+I-j]|=128*H}var YU={}.toString,nx=Array.isArray||function(e){return YU.call(e)=="[object Array]"};function Hb(){return pt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ic(e,t){if(Hb()<t)throw new RangeError("Invalid typed array length");return pt.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=pt.prototype:(e===null&&(e=new pt(t)),e.length=t),e}function pt(e,t,n){if(!(pt.TYPED_ARRAY_SUPPORT||this instanceof pt))return new pt(e,t,n);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return b5(this,e)}return rx(this,e,t,n)}function rx(e,t,n,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?function(o,i,c,g){if(i.byteLength,c<0||i.byteLength<c)throw new RangeError("'offset' is out of bounds");if(i.byteLength<c+(g||0))throw new RangeError("'length' is out of bounds");return i=c===void 0&&g===void 0?new Uint8Array(i):g===void 0?new Uint8Array(i,c):new Uint8Array(i,c,g),pt.TYPED_ARRAY_SUPPORT?(o=i).__proto__=pt.prototype:o=y5(o,i),o}(e,t,n,r):typeof t=="string"?function(o,i,c){if(typeof c=="string"&&c!==""||(c="utf8"),!pt.isEncoding(c))throw new TypeError('"encoding" must be a valid string encoding');var g=0|ox(i,c),_=(o=ic(o,g)).write(i,c);return _!==g&&(o=o.slice(0,_)),o}(e,t,n):function(o,i){if(il(i)){var c=0|w5(i.length);return(o=ic(o,c)).length===0||i.copy(o,0,0,c),o}if(i){if(typeof ArrayBuffer<"u"&&i.buffer instanceof ArrayBuffer||"length"in i)return typeof i.length!="number"||(g=i.length)!=g?ic(o,0):y5(o,i);if(i.type==="Buffer"&&nx(i.data))return y5(o,i.data)}var g;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function ix(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function b5(e,t){if(ix(t),e=ic(e,t<0?0:0|w5(t)),!pt.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function y5(e,t){var n=t.length<0?0:0|w5(t.length);e=ic(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function w5(e){if(e>=Hb())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Hb().toString(16)+" bytes");return 0|e}function il(e){return!(e==null||!e._isBuffer)}function ox(e,t){if(il(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var n=e.length;if(n===0)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Vb(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return px(e).length;default:if(r)return Vb(e).length;t=(""+t).toLowerCase(),r=!0}}function GU(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return iF(this,t,n);case"utf8":case"utf-8":return lx(this,t,n);case"ascii":return nF(this,t,n);case"latin1":case"binary":return rF(this,t,n);case"base64":return tF(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oF(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function mh(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function ax(e,t,n,r,o){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if(typeof t=="string"&&(t=pt.from(t,r)),il(t))return t.length===0?-1:sx(e,t,n,r,o);if(typeof t=="number")return t&=255,pt.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):sx(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function sx(e,t,n,r,o){var i,c=1,g=e.length,_=t.length;if(r!==void 0&&((r=String(r).toLowerCase())==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;c=2,g/=2,_/=2,n/=2}function w(I,j){return c===1?I[j]:I.readUInt16BE(j*c)}if(o){var S=-1;for(i=n;i<g;i++)if(w(e,i)===w(t,S===-1?0:i-S)){if(S===-1&&(S=i),i-S+1===_)return S*c}else S!==-1&&(i-=i-S),S=-1}else for(n+_>g&&(n=g-_),i=n;i>=0;i--){for(var E=!0,T=0;T<_;T++)if(w(e,i+T)!==w(t,T)){E=!1;break}if(E)return i}return-1}function ZU(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var c=0;c<r;++c){var g=parseInt(t.substr(2*c,2),16);if(isNaN(g))return c;e[n+c]=g}return c}function QU(e,t,n,r){return Yb(Vb(t,e.length-n),e,n,r)}function ux(e,t,n,r){return Yb(function(o){for(var i=[],c=0;c<o.length;++c)i.push(255&o.charCodeAt(c));return i}(t),e,n,r)}function XU(e,t,n,r){return ux(e,t,n,r)}function JU(e,t,n,r){return Yb(px(t),e,n,r)}function eF(e,t,n,r){return Yb(function(o,i){for(var c,g,_,w=[],S=0;S<o.length&&!((i-=2)<0);++S)g=(c=o.charCodeAt(S))>>8,_=c%256,w.push(_),w.push(g);return w}(t,e.length-n),e,n,r)}function tF(e,t,n){return t===0&&n===e.length?ex(e):ex(e.slice(t,n))}function lx(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,c,g,_,w=e[o],S=null,E=w>239?4:w>223?3:w>191?2:1;if(o+E<=n)switch(E){case 1:w<128&&(S=w);break;case 2:(192&(i=e[o+1]))==128&&(_=(31&w)<<6|63&i)>127&&(S=_);break;case 3:i=e[o+1],c=e[o+2],(192&i)==128&&(192&c)==128&&(_=(15&w)<<12|(63&i)<<6|63&c)>2047&&(_<55296||_>57343)&&(S=_);break;case 4:i=e[o+1],c=e[o+2],g=e[o+3],(192&i)==128&&(192&c)==128&&(192&g)==128&&(_=(15&w)<<18|(63&i)<<12|(63&c)<<6|63&g)>65535&&_<1114112&&(S=_)}S===null?(S=65533,E=1):S>65535&&(S-=65536,r.push(S>>>10&1023|55296),S=56320|1023&S),r.push(S),o+=E}return function(T){var I=T.length;if(I<=cx)return String.fromCharCode.apply(String,T);for(var j="",H=0;H<I;)j+=String.fromCharCode.apply(String,T.slice(H,H+=cx));return j}(r)}pt.TYPED_ARRAY_SUPPORT=Xm.TYPED_ARRAY_SUPPORT===void 0||Xm.TYPED_ARRAY_SUPPORT,Hb(),pt.poolSize=8192,pt._augment=function(e){return e.__proto__=pt.prototype,e},pt.from=function(e,t,n){return rx(null,e,t,n)},pt.TYPED_ARRAY_SUPPORT&&(pt.prototype.__proto__=Uint8Array.prototype,pt.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&pt[Symbol.species]),pt.alloc=function(e,t,n){return function(r,o,i,c){return ix(o),o<=0?ic(r,o):i!==void 0?typeof c=="string"?ic(r,o).fill(i,c):ic(r,o).fill(i):ic(r,o)}(null,e,t,n)},pt.allocUnsafe=function(e){return b5(null,e)},pt.allocUnsafeSlow=function(e){return b5(null,e)},pt.isBuffer=function(e){return e!=null&&(!!e._isBuffer||mx(e)||function(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&mx(t.slice(0,0))}(e))},pt.compare=function(e,t){if(!il(e)||!il(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},pt.isEncoding=function(e){switch(String(e).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}},pt.concat=function(e,t){if(!nx(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return pt.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=pt.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(!il(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},pt.byteLength=ox,pt.prototype._isBuffer=!0,pt.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)mh(this,t,t+1);return this},pt.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)mh(this,t,t+3),mh(this,t+1,t+2);return this},pt.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)mh(this,t,t+7),mh(this,t+1,t+6),mh(this,t+2,t+5),mh(this,t+3,t+4);return this},pt.prototype.toString=function(){var e=0|this.length;return e===0?"":arguments.length===0?lx(this,0,e):GU.apply(this,arguments)},pt.prototype.equals=function(e){if(!il(e))throw new TypeError("Argument must be a Buffer");return this===e||pt.compare(this,e)===0},pt.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},pt.prototype.compare=function(e,t,n,r,o){if(!il(e))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),o===void 0&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),c=(n>>>=0)-(t>>>=0),g=Math.min(i,c),_=this.slice(r,o),w=e.slice(t,n),S=0;S<g;++S)if(_[S]!==w[S]){i=_[S],c=w[S];break}return i<c?-1:c<i?1:0},pt.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},pt.prototype.indexOf=function(e,t,n){return ax(this,e,t,n,!0)},pt.prototype.lastIndexOf=function(e,t,n){return ax(this,e,t,n,!1)},pt.prototype.write=function(e,t,n,r){if(t===void 0)r="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,r===void 0&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return ZU(this,e,t,n);case"utf8":case"utf-8":return QU(this,e,t,n);case"ascii":return ux(this,e,t,n);case"latin1":case"binary":return XU(this,e,t,n);case"base64":return JU(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return eF(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},pt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var cx=4096;function nF(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function rF(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function iF(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=sF(e[i]);return o}function oF(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function Ti(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Jo(e,t,n,r,o,i){if(!il(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function Wb(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function $b(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function dx(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function fx(e,t,n,r,o){return o||dx(e,0,n,4),tx(e,t,n,r,23,4),n+4}function hx(e,t,n,r,o){return o||dx(e,0,n,8),tx(e,t,n,r,52,8),n+8}pt.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=t===void 0?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),pt.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=pt.prototype;else{var o=t-e;n=new pt(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},pt.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||Ti(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},pt.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||Ti(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},pt.prototype.readUInt8=function(e,t){return t||Ti(e,1,this.length),this[e]},pt.prototype.readUInt16LE=function(e,t){return t||Ti(e,2,this.length),this[e]|this[e+1]<<8},pt.prototype.readUInt16BE=function(e,t){return t||Ti(e,2,this.length),this[e]<<8|this[e+1]},pt.prototype.readUInt32LE=function(e,t){return t||Ti(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},pt.prototype.readUInt32BE=function(e,t){return t||Ti(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},pt.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Ti(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},pt.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Ti(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},pt.prototype.readInt8=function(e,t){return t||Ti(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},pt.prototype.readInt16LE=function(e,t){t||Ti(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},pt.prototype.readInt16BE=function(e,t){t||Ti(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},pt.prototype.readInt32LE=function(e,t){return t||Ti(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},pt.prototype.readInt32BE=function(e,t){return t||Ti(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},pt.prototype.readFloatLE=function(e,t){return t||Ti(e,4,this.length),qb(this,e,!0,23,4)},pt.prototype.readFloatBE=function(e,t){return t||Ti(e,4,this.length),qb(this,e,!1,23,4)},pt.prototype.readDoubleLE=function(e,t){return t||Ti(e,8,this.length),qb(this,e,!0,52,8)},pt.prototype.readDoubleBE=function(e,t){return t||Ti(e,8,this.length),qb(this,e,!1,52,8)},pt.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Jo(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},pt.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Jo(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},pt.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Jo(this,e,t,1,255,0),pt.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},pt.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Jo(this,e,t,2,65535,0),pt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Wb(this,e,t,!0),t+2},pt.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Jo(this,e,t,2,65535,0),pt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Wb(this,e,t,!1),t+2},pt.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Jo(this,e,t,4,4294967295,0),pt.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):$b(this,e,t,!0),t+4},pt.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Jo(this,e,t,4,4294967295,0),pt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$b(this,e,t,!1),t+4},pt.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Jo(this,e,t,n,o-1,-o)}var i=0,c=1,g=0;for(this[t]=255&e;++i<n&&(c*=256);)e<0&&g===0&&this[t+i-1]!==0&&(g=1),this[t+i]=(e/c>>0)-g&255;return t+n},pt.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Jo(this,e,t,n,o-1,-o)}var i=n-1,c=1,g=0;for(this[t+i]=255&e;--i>=0&&(c*=256);)e<0&&g===0&&this[t+i+1]!==0&&(g=1),this[t+i]=(e/c>>0)-g&255;return t+n},pt.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Jo(this,e,t,1,127,-128),pt.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},pt.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Jo(this,e,t,2,32767,-32768),pt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Wb(this,e,t,!0),t+2},pt.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Jo(this,e,t,2,32767,-32768),pt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Wb(this,e,t,!1),t+2},pt.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Jo(this,e,t,4,2147483647,-2147483648),pt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):$b(this,e,t,!0),t+4},pt.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Jo(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),pt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$b(this,e,t,!1),t+4},pt.prototype.writeFloatLE=function(e,t,n){return fx(this,e,t,!0,n)},pt.prototype.writeFloatBE=function(e,t,n){return fx(this,e,t,!1,n)},pt.prototype.writeDoubleLE=function(e,t,n){return hx(this,e,t,!0,n)},pt.prototype.writeDoubleBE=function(e,t,n){return hx(this,e,t,!1,n)},pt.prototype.copy=function(e,t,n,r){if(n||(n=0),r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!pt.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},pt.prototype.fill=function(e,t,n,r){if(typeof e=="string"){if(typeof t=="string"?(r=t,t=0,n=this.length):typeof n=="string"&&(r=n,n=this.length),e.length===1){var o=e.charCodeAt(0);o<256&&(e=o)}if(r!==void 0&&typeof r!="string")throw new TypeError("encoding must be a string");if(typeof r=="string"&&!pt.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else typeof e=="number"&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=n===void 0?this.length:n>>>0,e||(e=0),typeof e=="number")for(i=t;i<n;++i)this[i]=e;else{var c=il(e)?e:Vb(new pt(e,r).toString()),g=c.length;for(i=0;i<n-t;++i)this[i+t]=c[i%g]}return this};var aF=/[^+\/0-9A-Za-z-_]/g;function sF(e){return e<16?"0"+e.toString(16):e.toString(16)}function Vb(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],c=0;c<r;++c){if((n=e.charCodeAt(c))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(c+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function px(e){return function(t){var n,r,o,i,c,g;v5||JC();var _=t.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");c=t[_-2]==="="?2:t[_-1]==="="?1:0,g=new $U(3*_/4-c),o=c>0?_-4:_;var w=0;for(n=0,r=0;n<o;n+=4,r+=3)i=ts[t.charCodeAt(n)]<<18|ts[t.charCodeAt(n+1)]<<12|ts[t.charCodeAt(n+2)]<<6|ts[t.charCodeAt(n+3)],g[w++]=i>>16&255,g[w++]=i>>8&255,g[w++]=255&i;return c===2?(i=ts[t.charCodeAt(n)]<<2|ts[t.charCodeAt(n+1)]>>4,g[w++]=255&i):c===1&&(i=ts[t.charCodeAt(n)]<<10|ts[t.charCodeAt(n+1)]<<4|ts[t.charCodeAt(n+2)]>>2,g[w++]=i>>8&255,g[w++]=255&i),g}(function(t){if((t=function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}(t).replace(aF,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function Yb(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function mx(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}class _5{constructor(t){this.enabled=!0,t!=null&&t.debug&&nl.enable("Ecies:Layer"),t!=null&&t.privateKey?this.ecies=O0.PrivateKey.fromHex(t.privateKey):this.ecies=new O0.PrivateKey,Ve.Ecies("[ECIES constructor()] initialized secret: ",this.ecies.toHex()),Ve.Ecies("[ECIES constructor()] initialized public: ",this.ecies.publicKey.toHex()),Ve.Ecies("[ECIES constructor()] init with",this)}generateECIES(){this.ecies=new O0.PrivateKey}getPublicKey(){return this.ecies.publicKey.toHex()}encrypt(t,n){let r=t;if(this.enabled)try{Ve.Ecies("[ECIES: encrypt()] using otherPublicKey",n);const o=pt.from(t),i=O0.encrypt(n,o);r=pt.from(i).toString("base64")}catch(o){throw Ve.Ecies("[ECIES: encrypt()] error encrypt:",o),Ve.Ecies("[ECIES: encrypt()] private: ",this.ecies.toHex()),Ve.Ecies("[ECIES: encrypt()] data: ",t),Ve.Ecies("[ECIES: encrypt()] otherkey: ",n),o}return r}decrypt(t){let n=t;if(this.enabled)try{Ve.Ecies("[ECIES: decrypt()] using privateKey",this.ecies.toHex());const r=pt.from(t.toString(),"base64");n=O0.decrypt(this.ecies.toHex(),r).toString()}catch(r){throw Ve.Ecies("[ECIES: decrypt()] error decrypt",r),Ve.Ecies("[ECIES: decrypt()] private: ",this.ecies.toHex()),Ve.Ecies("[ECIES: decrypt()] encryptedData: ",t),r}return n}getKeyInfo(){return{private:this.ecies.toHex(),public:this.ecies.publicKey.toHex()}}toString(){Ve.Ecies("[ECIES: toString()]",this.getKeyInfo())}}var gh="0.28.2";const _d="https://metamask-sdk.api.cx.metamask.io/",uF=["websocket"],Cp=6048e5,lF={METAMASK_GETPROVIDERSTATE:"metamask_getProviderState",ETH_REQUESTACCOUNTS:"eth_requestAccounts"};function gx(e){const{context:t}=e;Ve.RemoteCommunication(`[RemoteCommunication: clean()] context=${t}`),e.channelConfig=void 0,e.ready=!1,e.originatorConnectStarted=!1}var Gb,sr;Ie.ConnectionStatus=void 0,Ie.EventType=void 0,Ie.MessageType=void 0,function(e){e.DISCONNECTED="disconnected",e.WAITING="waiting",e.TIMEOUT="timeout",e.LINKED="linked",e.PAUSED="paused",e.TERMINATED="terminated"}(Ie.ConnectionStatus||(Ie.ConnectionStatus={})),function(e){e.KEY_INFO="key_info",e.SERVICE_STATUS="service_status",e.PROVIDER_UPDATE="provider_update",e.RPC_UPDATE="rpc_update",e.KEYS_EXCHANGED="keys_exchanged",e.JOIN_CHANNEL="join_channel",e.PUBLIC_KEY="public_key",e.CHANNEL_CREATED="channel_created",e.CLIENTS_CONNECTED="clients_connected",e.CLIENTS_DISCONNECTED="clients_disconnected",e.CLIENTS_WAITING="clients_waiting",e.CLIENTS_READY="clients_ready",e.WALLET_INIT="wallet_init",e.CHANNEL_PERSISTENCE="channel_persistence",e.MESSAGE_ACK="ack",e.SOCKET_DISCONNECTED="socket_disconnected",e.SOCKET_RECONNECT="socket_reconnect",e.OTP="otp",e.SDK_RPC_CALL="sdk_rpc_call",e.AUTHORIZED="authorized",e.CONNECTION_STATUS="connection_status",e.MESSAGE="message",e.TERMINATE="terminate"}(Ie.EventType||(Ie.EventType={})),function(e){e.KEY_EXCHANGE="key_exchange"}(Gb||(Gb={})),function(e){e.KEY_HANDSHAKE_START="key_handshake_start",e.KEY_HANDSHAKE_CHECK="key_handshake_check",e.KEY_HANDSHAKE_SYN="key_handshake_SYN",e.KEY_HANDSHAKE_SYNACK="key_handshake_SYNACK",e.KEY_HANDSHAKE_ACK="key_handshake_ACK",e.KEY_HANDSHAKE_WALLET="key_handshake_wallet",e.KEY_HANDSHAKE_NONE="none"}(sr||(sr={}));class cF extends J8.EventEmitter2{constructor({communicationLayer:t,otherPublicKey:n,context:r,ecies:o,logging:i}){super(),this.keysExchanged=!1,this.step=sr.KEY_HANDSHAKE_NONE,this.debug=!1,this.context=r,this.communicationLayer=t,o!=null&&o.privateKey&&n&&(Ve.KeyExchange(`[KeyExchange: constructor()] otherPubKey=${n} set keysExchanged to true!`,o),this.keysExchanged=!0),this.myECIES=new _5(Object.assign(Object.assign({},o),{debug:i==null?void 0:i.eciesLayer})),this.communicationLayer.state.eciesInstance=this.myECIES,this.myPublicKey=this.myECIES.getPublicKey(),this.debug=(i==null?void 0:i.keyExchangeLayer)===!0,n&&this.setOtherPublicKey(n),this.communicationLayer.on(Gb.KEY_EXCHANGE,this.onKeyExchangeMessage.bind(this))}onKeyExchangeMessage(t){const{relayPersistence:n}=this.communicationLayer.remote.state;if(Ve.KeyExchange(`[KeyExchange: onKeyExchangeMessage()] context=${this.context} keysExchanged=${this.keysExchanged} relayPersistence=${n}`,t),n)return void Ve.KeyExchange("[KeyExchange: onKeyExchangeMessage()] Ignoring key exchange message because relay persistence is activated");const{message:r}=t;this.keysExchanged&&Ve.KeyExchange(`[KeyExchange: onKeyExchangeMessage()] context=${this.context} received handshake while already exchanged. step=${this.step} otherPubKey=${this.otherPublicKey}`),this.emit(Ie.EventType.KEY_INFO,r.type),r.type===sr.KEY_HANDSHAKE_SYN?(this.checkStep([sr.KEY_HANDSHAKE_NONE,sr.KEY_HANDSHAKE_ACK]),Ve.KeyExchange("[KeyExchange: onKeyExchangeMessage()] KEY_HANDSHAKE_SYN",r),r.pubkey&&this.setOtherPublicKey(r.pubkey),this.communicationLayer.sendMessage({type:sr.KEY_HANDSHAKE_SYNACK,pubkey:this.myPublicKey}),this.setStep(sr.KEY_HANDSHAKE_ACK)):r.type===sr.KEY_HANDSHAKE_SYNACK?(this.checkStep([sr.KEY_HANDSHAKE_SYNACK,sr.KEY_HANDSHAKE_ACK,sr.KEY_HANDSHAKE_NONE]),Ve.KeyExchange("[KeyExchange: onKeyExchangeMessage()] KEY_HANDSHAKE_SYNACK"),r.pubkey&&this.setOtherPublicKey(r.pubkey),this.communicationLayer.sendMessage({type:sr.KEY_HANDSHAKE_ACK}),this.keysExchanged=!0,this.setStep(sr.KEY_HANDSHAKE_ACK),this.emit(Ie.EventType.KEYS_EXCHANGED)):r.type===sr.KEY_HANDSHAKE_ACK&&(Ve.KeyExchange("[KeyExchange: onKeyExchangeMessage()] KEY_HANDSHAKE_ACK set keysExchanged to true!"),this.checkStep([sr.KEY_HANDSHAKE_ACK,sr.KEY_HANDSHAKE_NONE]),this.keysExchanged=!0,this.setStep(sr.KEY_HANDSHAKE_ACK),this.emit(Ie.EventType.KEYS_EXCHANGED))}resetKeys(t){this.clean(),this.myECIES=new _5(t)}clean(){Ve.KeyExchange(`[KeyExchange: clean()] context=${this.context} reset handshake state`),this.setStep(sr.KEY_HANDSHAKE_NONE),this.emit(Ie.EventType.KEY_INFO,this.step),this.keysExchanged=!1}start({isOriginator:t,force:n}){const{relayPersistence:r,protocolVersion:o}=this.communicationLayer.remote.state,i=o>=2;if(r)return Ve.KeyExchange("[KeyExchange: start()] Ignoring key exchange message because relay persistence is activated"),void console.log(`[KeyExchange: start()] relayPersistence=${r}`);Ve.KeyExchange(`[KeyExchange: start()] context=${this.context} protocolVersion=${o} isOriginator=${t} step=${this.step} force=${n} relayPersistence=${r} keysExchanged=${this.keysExchanged}`),t?!(this.keysExchanged||this.step!==sr.KEY_HANDSHAKE_NONE&&this.step!==sr.KEY_HANDSHAKE_SYNACK)||n?(Ve.KeyExchange(`[KeyExchange: start()] context=${this.context} -- start key exchange (force=${n}) -- step=${this.step}`,this.step),this.clean(),this.setStep(sr.KEY_HANDSHAKE_SYNACK),this.communicationLayer.sendMessage({type:sr.KEY_HANDSHAKE_SYN,pubkey:this.myPublicKey,v:2})):Ve.KeyExchange(`[KeyExchange: start()] context=${this.context} -- key exchange already ${this.keysExchanged?"done":"in progress"} -- aborted.`,this.step):this.keysExchanged&&n!==!0?Ve.KeyExchange("[KeyExchange: start()] don't send KEY_HANDSHAKE_START -- exchange already done."):i?this.communicationLayer.sendMessage({type:sr.KEY_HANDSHAKE_SYNACK,pubkey:this.myPublicKey,v:2}):(this.communicationLayer.sendMessage({type:sr.KEY_HANDSHAKE_START}),this.clean())}setStep(t){this.step=t,this.emit(Ie.EventType.KEY_INFO,t)}checkStep(t){t.length>0&&t.indexOf(this.step.toString())===-1&&console.warn(`[KeyExchange: checkStep()] Wrong Step "${this.step}" not within ${t}`)}setRelayPersistence({localKey:t,otherKey:n}){this.otherPublicKey=n,this.myECIES=new _5({privateKey:t,debug:this.debug}),this.keysExchanged=!0}setKeysExchanged(t){this.keysExchanged=t}areKeysExchanged(){return this.keysExchanged}getMyPublicKey(){return this.myPublicKey}getOtherPublicKey(){return this.otherPublicKey}setOtherPublicKey(t){Ve.KeyExchange("[KeyExchange: setOtherPubKey()]",t),this.otherPublicKey=t}encryptMessage(t){if(!this.otherPublicKey)throw new Error("encryptMessage: Keys not exchanged - missing otherPubKey");return this.myECIES.encrypt(t,this.otherPublicKey)}decryptMessage(t){if(!this.otherPublicKey)throw new Error("decryptMessage: Keys not exchanged - missing otherPubKey");return this.myECIES.decrypt(t)}getKeyInfo(){return{ecies:Object.assign(Object.assign({},this.myECIES.getKeyInfo()),{otherPubKey:this.otherPublicKey}),step:this.step,keysExchanged:this.areKeysExchanged()}}toString(){const t={keyInfo:this.getKeyInfo(),keysExchanged:this.keysExchanged,step:this.step};return JSON.stringify(t)}}(function(e){e.TERMINATE="terminate",e.ANSWER="answer",e.OFFER="offer",e.CANDIDATE="candidate",e.JSONRPC="jsonrpc",e.WALLET_INFO="wallet_info",e.WALLET_INIT="wallet_init",e.ORIGINATOR_INFO="originator_info",e.PAUSE="pause",e.OTP="otp",e.AUTHORIZED="authorized",e.PING="ping",e.READY="ready"})(Ie.MessageType||(Ie.MessageType={}));const Zb=(e,t,n)=>tr(void 0,void 0,void 0,function*(){var r,o,i,c,g;const{remote:_,state:w}=e,{channelId:S,isOriginator:E}=w;if(t==="error_terminated")return Ve.SocketService(`handleJoinChannelResults: Channel ${S} terminated`),void e.emit(Ie.EventType.TERMINATE);if(!n)return void Ve.SocketService(`handleJoinChannelResults: No result for channel ${S}`);const{persistence:T,walletKey:I}=n;if(Ve.SocketService(`handleJoinChannelResults: Channel ${S} persistence=${T} walletKey=${I}`),I&&!(!((r=_.state.channelConfig)===null||r===void 0)&&r.otherKey)){e.getKeyExchange().setOtherPublicKey(I),(o=e.state.keyExchange)===null||o===void 0||o.setKeysExchanged(!0),_.state.ready=!0,_.state.authorized=!0,_.emit(Ie.EventType.AUTHORIZED);const{communicationLayer:j,storageManager:H}=_.state,V=Object.assign(Object.assign({},_.state.channelConfig),{channelId:(i=_.state.channelId)!==null&&i!==void 0?i:"",validUntil:Date.now()+Cp,localKey:j==null?void 0:j.getKeyInfo().ecies.private,otherKey:I});e.sendMessage({type:sr.KEY_HANDSHAKE_ACK}),(c=e.state.socket)===null||c===void 0||c.emit(Ie.MessageType.PING,{id:S,clientType:E?"dapp":"wallet",context:"on_channel_reconnect",message:""}),yield H==null?void 0:H.persistChannelConfig(V),_.emitServiceStatusEvent(),_.setConnectionStatus(Ie.ConnectionStatus.LINKED)}T&&(e.emit(Ie.EventType.CHANNEL_PERSISTENCE),(g=e.state.keyExchange)===null||g===void 0||g.setKeysExchanged(!0),_.state.ready=!0,_.state.authorized=!0,_.emit(Ie.EventType.AUTHORIZED))}),xp=e=>new Promise(t=>{setTimeout(t,e)}),vx=(e,t,n=200)=>tr(void 0,void 0,void 0,function*(){let r;const o=Date.now();let i=!1;for(;!i;){if(i=Date.now()-o>3e5,r=t[e],r.elapsedTime!==void 0)return r;yield xp(n)}throw new Error(`RPC ${e} timed out`)}),S5=e=>tr(void 0,void 0,void 0,function*(){const{state:t}=e,{socket:n,channelId:r,context:o,isOriginator:i,isReconnecting:c}=t;if(c)return Ve.SocketService("[SocketService: reconnectSocket()] Reconnection already in progress, skipping",e),!1;if(!n)return Ve.SocketService("[SocketService: reconnectSocket()] socket is not defined",e),!1;if(!r)return!1;const{connected:g}=n;t.isReconnecting=!0,t.reconnectionAttempts=0,Ve.SocketService(`[SocketService: reconnectSocket()] connected=${g} trying to reconnect after socketio disconnection`,e);try{for(;t.reconnectionAttempts<3;){if(Ve.SocketService(`[SocketService: reconnectSocket()] Attempt ${t.reconnectionAttempts+1} of 3`,e),yield xp(200),n.connected)return Ve.SocketService("Socket already connected --- ping to retrieve messages"),n.emit(Ie.MessageType.PING,{id:r,clientType:i?"dapp":"wallet",context:"on_channel_config",message:""}),!0;t.resumed=!0,n.connect(),e.emit(Ie.EventType.SOCKET_RECONNECT);try{if(yield new Promise((_,w)=>{n.emit(Ie.EventType.JOIN_CHANNEL,{channelId:r,context:`${o}connect_again`,clientType:i?"dapp":"wallet"},(S,E)=>tr(void 0,void 0,void 0,function*(){try{yield Zb(e,S,E),_()}catch(T){w(T)}}))}),yield xp(100),n.connected)return Ve.SocketService(`Reconnection successful on attempt ${t.reconnectionAttempts+1}`),!0}catch(_){Ve.SocketService(`Error during reconnection attempt ${t.reconnectionAttempts+1}:`,_)}t.reconnectionAttempts+=1,t.reconnectionAttempts<3&&(yield xp(200))}return Ve.SocketService("Failed to reconnect after 3 attempts"),!1}finally{t.isReconnecting=!1,t.reconnectionAttempts=0}});var ci;(function(e){e.REQUEST="sdk_connect_request_started",e.REQUEST_MOBILE="sdk_connect_request_started_mobile",e.RECONNECT="sdk_reconnect_request_started",e.CONNECTED="sdk_connection_established",e.CONNECTED_MOBILE="sdk_connection_established_mobile",e.AUTHORIZED="sdk_connection_authorized",e.REJECTED="sdk_connection_rejected",e.TERMINATED="sdk_connection_terminated",e.DISCONNECTED="sdk_disconnected",e.SDK_USE_EXTENSION="sdk_use_extension",e.SDK_RPC_REQUEST="sdk_rpc_request",e.SDK_RPC_REQUEST_RECEIVED="sdk_rpc_request_received",e.SDK_RPC_REQUEST_DONE="sdk_rpc_request_done",e.SDK_EXTENSION_UTILIZED="sdk_extension_utilized",e.SDK_USE_INAPP_BROWSER="sdk_use_inapp_browser"})(ci||(ci={}));var Ap;(function(e){e.RPC_CHECK="rpcCheck",e.SKIPPED_RPC="skippedRpc"})(Ap||(Ap={}));const bx=["eth_sendTransaction","eth_signTypedData","eth_signTransaction","personal_sign","wallet_requestPermissions","wallet_switchEthereumChain","eth_signTypedData_v3","eth_signTypedData_v4","metamask_connectSign","metamask_connectWith","metamask_batch"].map(e=>e.toLowerCase());function dF(e,t){var n,r,o,i;if(!e.state.channelId)throw Ve.SocketService("handleSendMessage: no channelId - Create a channel first"),new Error("Create a channel first");Ve.SocketService(`[SocketService: handleSendMessage()] context=${e.state.context} areKeysExchanged=${(n=e.state.keyExchange)===null||n===void 0?void 0:n.areKeysExchanged()}`,t),!((r=t==null?void 0:t.type)===null||r===void 0)&&r.startsWith("key_handshake")?function(c,g){var _;Ve.SocketService(`[SocketService: handleKeyHandshake()] context=${c.state.context}`,g),(_=c.state.socket)===null||_===void 0||_.emit(Ie.EventType.MESSAGE,{id:c.state.channelId,context:c.state.context,clientType:c.state.isOriginator?"dapp":"wallet",message:g})}(e,t):(function(c,g){var _;if(!(!((_=c.state.keyExchange)===null||_===void 0)&&_.areKeysExchanged())&&!c.remote.state.relayPersistence)throw Ve.SocketService(`[SocketService: validateKeyExchange()] context=${c.state.context} ERROR keys not exchanged`,g),console.error("[SocketService: validateKeyExchange()] ERROR keys not exchanged",g),new Error("Keys not exchanged BBB")}(e,t),function(c,g){var _;const w=(_=g==null?void 0:g.method)!==null&&_!==void 0?_:"",S=g==null?void 0:g.id;c.state.isOriginator&&S&&(c.state.rpcMethodTracker[S]={id:S,timestamp:Date.now(),method:w},c.emit(Ie.EventType.RPC_UPDATE,c.state.rpcMethodTracker[S]))}(e,t),function(c,g){var _,w;const S=(_=c.state.keyExchange)===null||_===void 0?void 0:_.encryptMessage(JSON.stringify(g)),E={id:c.state.channelId,context:c.state.context,clientType:c.state.isOriginator?"dapp":"wallet",message:S,plaintext:c.state.hasPlaintext?JSON.stringify(g):void 0};Ve.SocketService(`[SocketService: encryptAndSendMessage()] context=${c.state.context}`,E),g.type===Ie.MessageType.TERMINATE&&(c.state.manualDisconnect=!0),(w=c.state.socket)===null||w===void 0||w.emit(Ie.EventType.MESSAGE,E)}(e,t),e.remote.state.analytics&&e.remote.state.isOriginator&&t.method&&bx.includes(t.method.toLowerCase())&&Mp({id:(o=e.remote.state.channelId)!==null&&o!==void 0?o:"",event:ci.SDK_RPC_REQUEST,sdkVersion:e.remote.state.sdkVersion,commLayerVersion:gh,walletVersion:(i=e.remote.state.walletInfo)===null||i===void 0?void 0:i.version,params:{method:t.method,from:"mobile"}},e.remote.state.communicationServerUrl).catch(c=>{console.error("Cannot send analytics",c)}),function(c,g){var _;return tr(this,void 0,void 0,function*(){const w=g==null?void 0:g.id,S=(_=g==null?void 0:g.method)!==null&&_!==void 0?_:"";if(c.state.isOriginator&&w)try{const E=vx(w,c.state.rpcMethodTracker,200).then(j=>({type:Ap.RPC_CHECK,result:j})),T=tr(this,void 0,void 0,function*(){const j=yield(({rpcId:V,instance:ee})=>tr(void 0,void 0,void 0,function*(){for(;ee.state.lastRpcId===V||ee.state.lastRpcId===void 0;)yield xp(200);return ee.state.lastRpcId}))({instance:c,rpcId:w}),H=yield vx(j,c.state.rpcMethodTracker,200);return{type:Ap.SKIPPED_RPC,result:H}}),I=yield Promise.race([E,T]);if(I.type===Ap.RPC_CHECK){const j=I.result;Ve.SocketService(`[SocketService:handleRpcReplies()] id=${g.id} ${S} ( ${j.elapsedTime} ms)`,j.result)}else{if(I.type!==Ap.SKIPPED_RPC)throw new Error(`Error handling RPC replies for ${w}`);{const{result:j}=I;console.warn(`[SocketService handleRpcReplies()] RPC METHOD HAS BEEN SKIPPED rpcid=${w} method=${S}`,j);const H=Object.assign(Object.assign({},c.state.rpcMethodTracker[w]),{error:new Error("SDK_CONNECTION_ISSUE")});c.emit(Ie.EventType.RPC_UPDATE,H);const V={data:Object.assign(Object.assign({},H),{jsonrpc:"2.0"}),name:"metamask-provider"};c.emit(Ie.EventType.MESSAGE,{message:V})}}}catch(E){throw console.warn(`[SocketService handleRpcReplies()] Error rpcId=${g.id} ${S}`,E),E}})}(e,t).catch(c=>{console.warn("Error handleRpcReplies",c)}))}const fF=[{event:"clients_connected",handler:function(e,t){return n=>tr(this,void 0,void 0,function*(){var r,o,i,c,g,_,w,S,E,T,I;const j=(o=(r=e.remote.state.channelConfig)===null||r===void 0?void 0:r.relayPersistence)!==null&&o!==void 0&&o;if(Ve.SocketService(`[SocketService: handleClientsConnected()] context=${e.state.context} on 'clients_connected-${t}' relayPersistence=${j} resumed=${e.state.resumed} clientsPaused=${e.state.clientsPaused} keysExchanged=${(i=e.state.keyExchange)===null||i===void 0?void 0:i.areKeysExchanged()} isOriginator=${e.state.isOriginator}`),e.emit(Ie.EventType.CLIENTS_CONNECTED,{isOriginator:e.state.isOriginator,keysExchanged:(c=e.state.keyExchange)===null||c===void 0?void 0:c.areKeysExchanged(),context:e.state.context}),e.state.resumed)e.state.isOriginator||(Ve.SocketService(`[SocketService: handleClientsConnected()] context=${e.state.context} 'clients_connected' / keysExchanged=${(g=e.state.keyExchange)===null||g===void 0?void 0:g.areKeysExchanged()} -- backward compatibility`),(_=e.state.keyExchange)===null||_===void 0||_.start({isOriginator:(w=e.state.isOriginator)!==null&&w!==void 0&&w})),e.state.resumed=!1;else if(e.state.clientsPaused)Ve.SocketService("[SocketService: handleClientsConnected()] 'clients_connected' skip sending originatorInfo on pause");else if(!e.state.isOriginator){const H=!j;Ve.SocketService(`[SocketService: handleClientsConnected()] context=${e.state.context} on 'clients_connected' / keysExchanged=${(S=e.state.keyExchange)===null||S===void 0?void 0:S.areKeysExchanged()} -- force=${H} -- backward compatibility`),Ve.SocketService(`[SocketService: handleClientsConnected()] context=${e.state.context} on 'clients_connected' / keysExchanged=${(E=e.state.keyExchange)===null||E===void 0?void 0:E.areKeysExchanged()} -- force=${H} -- backward compatibility`),(T=e.state.keyExchange)===null||T===void 0||T.start({isOriginator:(I=e.state.isOriginator)!==null&&I!==void 0&&I,force:H})}e.state.clientsConnected=!0,e.state.clientsPaused=!1})}},{event:"channel_created",handler:function(e,t){return n=>{Ve.SocketService(`[SocketService: handleChannelCreated()] context=${e.state.context} on 'channel_created-${t}'`,n),e.emit(Ie.EventType.CHANNEL_CREATED,n)}}},{event:"clients_disconnected",handler:function(e,t){return()=>{var n;e.state.clientsConnected=!1,Ve.SocketService(`[SocketService: handlesClientsDisconnected()] context=${e.state.context} on 'clients_disconnected-${t}'`),e.remote.state.relayPersistence?Ve.SocketService(`[SocketService: handlesClientsDisconnected()] context=${e.state.context} on 'clients_disconnected-${t}' - relayPersistence enabled, skipping key exchange cleanup.`):(e.state.isOriginator&&!e.state.clientsPaused&&((n=e.state.keyExchange)===null||n===void 0||n.clean()),e.emit(Ie.EventType.CLIENTS_DISCONNECTED,t))}}},{event:"config",handler:function(e,t){return n=>tr(this,void 0,void 0,function*(){var r,o,i;Ve.SocketService(`[SocketService: handleChannelConfig()] update relayPersistence on 'config-${t}'`,n);const{persistence:c,walletKey:g}=n;e.state.isOriginator&&e.remote.state.channelConfig?(n.walletKey&&!e.remote.state.channelConfig.otherKey&&(Ve.SocketService(`Setting wallet key ${g}`),e.remote.state.channelConfig.otherKey=g,e.getKeyExchange().setOtherPublicKey(n.walletKey),(r=e.state.keyExchange)===null||r===void 0||r.setKeysExchanged(!0),yield e.remote.sendMessage({type:sr.KEY_HANDSHAKE_ACK}),yield e.remote.sendMessage({type:Ie.MessageType.PING}),yield(o=e.remote.state.storageManager)===null||o===void 0?void 0:o.persistChannelConfig(e.remote.state.channelConfig)),c!==!0||e.remote.state.channelConfig.relayPersistence||(Ve.SocketService(`Setting relay persistence ${c}`),e.remote.state.channelConfig.relayPersistence=c,e.remote.state.relayPersistence=!0,e.remote.emit(Ie.EventType.CHANNEL_PERSISTENCE),e.remote.state.authorized=!0,e.remote.state.ready=!0,e.remote.emit(Ie.EventType.AUTHORIZED),yield(i=e.remote.state.storageManager)===null||i===void 0?void 0:i.persistChannelConfig(e.remote.state.channelConfig))):e.state.isOriginator||n.persistence&&(e.remote.state.relayPersistence=!0,e.remote.emit(Ie.EventType.CHANNEL_PERSISTENCE))})}},{event:"message",handler:function(e,t){return n=>{var r,o,i,c,g,_,w,S,E,T,I,j,H,V,ee,X,ue,le;const{id:pe,ackId:Me,message:ye,error:Te}=n,y=(r=e.remote.state.relayPersistence)!==null&&r!==void 0&&r;if(Ve.SocketService(`[SocketService handleMessage()] relayPersistence=${y} context=${e.state.context} on 'message' ${t} keysExchanged=${(o=e.state.keyExchange)===null||o===void 0?void 0:o.areKeysExchanged()}`,n),Te)throw Ve.SocketService(`
16
+ [SocketService handleMessage()] context=${e.state.context}::on 'message' error=${Te}`),new Error(Te);try{(function(h,f){if(f!==h.channelId)throw h.debug&&console.error(`Wrong id ${f} - should be ${h.channelId}`),new Error("Wrong id")})(e.state,pe)}catch{return void console.error("ignore message --- wrong id ",ye)}const x=typeof ye=="string";if(!x&&(ye==null?void 0:ye.type)===sr.KEY_HANDSHAKE_START)return y?void console.warn("[SocketService handleMessage()] Ignoring key exchange message because relay persistence is activated",ye):(Ve.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on 'message' received HANDSHAKE_START isOriginator=${e.state.isOriginator}`,ye),void((i=e.state.keyExchange)===null||i===void 0||i.start({isOriginator:(c=e.state.isOriginator)!==null&&c!==void 0&&c,force:!0})));if(!x&&(!((g=ye==null?void 0:ye.type)===null||g===void 0)&&g.startsWith("key_handshake")))return y?void console.warn("[SocketService handleMessage()] Ignoring key exchange message because relay persistence is activated",ye):(Ve.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on 'message' emit KEY_EXCHANGE`,ye),void e.emit(Gb.KEY_EXCHANGE,{message:ye,context:e.state.context}));if(x&&!(!((_=e.state.keyExchange)===null||_===void 0)&&_.areKeysExchanged())){let h=!1;try{Ve.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on 'message' trying to decrypt message`),(w=e.state.keyExchange)===null||w===void 0||w.decryptMessage(ye),h=!0}catch(f){Ve.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on 'message' error`,f)}if(!h)return e.state.isOriginator?(E=e.state.keyExchange)===null||E===void 0||E.start({isOriginator:(T=e.state.isOriginator)!==null&&T!==void 0&&T}):e.sendMessage({type:sr.KEY_HANDSHAKE_START}),void Ve.SocketService(`Message ignored because invalid key exchange status. step=${(I=e.state.keyExchange)===null||I===void 0?void 0:I.getKeyInfo().step}`,(j=e.state.keyExchange)===null||j===void 0?void 0:j.getKeyInfo(),ye);Ve.SocketService("Invalid key exchange status detected --- updating it."),(S=e.state.keyExchange)===null||S===void 0||S.setKeysExchanged(!0)}else if(!x&&(ye!=null&&ye.type))return console.warn("[SocketService handleMessage() ::on 'message' received non encrypted unkwown message"),void e.emit(Ie.EventType.MESSAGE,ye);if(!x)return console.warn("[SocketService handleMessage() ::on 'message' received unkwown message",ye),void e.emit(Ie.EventType.MESSAGE,ye);const d=(H=e.state.keyExchange)===null||H===void 0?void 0:H.decryptMessage(ye),p=JSON.parse(d??"{}");if(Me&&(Me==null?void 0:Me.length)>0&&(Ve.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on 'message' ackid=${Me} channelId=${pe}`),(V=e.state.socket)===null||V===void 0||V.emit(Ie.EventType.MESSAGE_ACK,{ackId:Me,channelId:pe,clientType:e.state.isOriginator?"dapp":"wallet"})),(p==null?void 0:p.type)===Ie.MessageType.PAUSE?e.state.clientsPaused=!0:e.state.clientsPaused=!1,e.state.isOriginator&&p.data){const h=p.data,f=e.state.rpcMethodTracker[h.id];if(f){const l=Date.now()-f.timestamp;Ve.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on 'message' received answer for id=${h.id} method=${f.method} responseTime=${l}`,p),e.remote.state.analytics&&bx.includes(f.method.toLowerCase())&&Mp({id:(ee=e.remote.state.channelId)!==null&&ee!==void 0?ee:"",event:ci.SDK_RPC_REQUEST_DONE,sdkVersion:e.remote.state.sdkVersion,commLayerVersion:gh,walletVersion:(X=e.remote.state.walletInfo)===null||X===void 0?void 0:X.version,params:{method:f.method,from:"mobile"}},e.remote.state.communicationServerUrl).catch(C=>{console.error("Cannot send analytics",C)});const b=Object.assign(Object.assign({},f),{result:h.result,error:h.error?{code:(ue=h.error)===null||ue===void 0?void 0:ue.code,message:(le=h.error)===null||le===void 0?void 0:le.message}:void 0,elapsedTime:l});e.state.rpcMethodTracker[h.id]=b,e.emit(Ie.EventType.RPC_UPDATE,b)}}e.emit(Ie.EventType.MESSAGE,{message:p})}}},{event:"clients_waiting_to_join",handler:function(e,t){return n=>{Ve.SocketService(`[SocketService: handleClientsWaitingToJoin()] context=${e.state.context} on 'clients_waiting_to_join-${t}'`,n),e.emit(Ie.EventType.CLIENTS_WAITING,n)}}}],hF=[{event:Ie.EventType.KEY_INFO,handler:function(e){return t=>{Ve.SocketService("[SocketService: handleKeyInfo()] on 'KEY_INFO'",t),e.emit(Ie.EventType.KEY_INFO,t)}}},{event:Ie.EventType.KEYS_EXCHANGED,handler:function(e){return()=>{var t,n,r;Ve.SocketService(`[SocketService: handleKeysExchanged()] on 'keys_exchanged' keyschanged=${(t=e.state.keyExchange)===null||t===void 0?void 0:t.areKeysExchanged()}`);const{channelConfig:o}=e.remote.state;if(o){const c=e.getKeyExchange().getKeyInfo().ecies;o.localKey=c.private,o.otherKey=c.otherPubKey,e.remote.state.channelConfig=o,(n=e.remote.state.storageManager)===null||n===void 0||n.persistChannelConfig(o).catch(g=>{console.error("Error persisting channel config",g)})}e.emit(Ie.EventType.KEYS_EXCHANGED,{keysExchanged:(r=e.state.keyExchange)===null||r===void 0?void 0:r.areKeysExchanged(),isOriginator:e.state.isOriginator});const i={keyInfo:e.getKeyInfo()};e.emit(Ie.EventType.SERVICE_STATUS,i)}}}];function yx(e,t){Ve.SocketService(`[SocketService: setupChannelListener()] context=${e.state.context} setting socket listeners for channel ${t}...`);const{socket:n}=e.state,{keyExchange:r}=e.state;n&&e.state.isOriginator&&(e.state.debug&&(n==null||n.io.on("error",o=>{Ve.SocketService(`[SocketService: setupChannelListener()] context=${e.state.context} socket event=error`,o)}),n==null||n.io.on("reconnect",o=>{Ve.SocketService(`[SocketService: setupChannelListener()] context=${e.state.context} socket event=reconnect`,o),S5(e).catch(i=>{})}),n==null||n.io.on("reconnect_error",o=>{Ve.SocketService(`[SocketService: setupChannelListener()] context=${e.state.context} socket event=reconnect_error`,o)}),n==null||n.io.on("reconnect_failed",()=>{Ve.SocketService(`[SocketService: setupChannelListener()] context=${e.state.context} socket event=reconnect_failed`)}),n==null||n.io.on("ping",()=>{Ve.SocketService(`[SocketService: setupChannelListener()] context=${e.state.context} socket`)})),n==null||n.on("disconnect",o=>(Ve.SocketService(`[SocketService: setupChannelListener()] on 'disconnect' -- MetaMaskSDK socket disconnected '${o}' begin recovery...`),function(i){return c=>{Ve.SocketService(`[SocketService: handleDisconnect()] on 'disconnect' manualDisconnect=${i.state.manualDisconnect}`,c),i.state.manualDisconnect||(i.emit(Ie.EventType.SOCKET_DISCONNECTED),S5(i).catch(g=>{console.error("SocketService::handleDisconnect Error reconnecting socket",g)}))}}(e)(o)))),fF.forEach(({event:o,handler:i})=>{const c=`${o}-${t}`;n==null||n.on(c,i(e,t))}),hF.forEach(({event:o,handler:i})=>{r==null||r.on(o,i(e))}),e.state.setupChannelListeners=!0}class pF extends J8.EventEmitter2{constructor(t){super(),this.state={clientsConnected:!1,clientsPaused:!1,manualDisconnect:!1,lastRpcId:void 0,rpcMethodTracker:{},hasPlaintext:!1,communicationServerUrl:"",focusListenerAdded:!1,removeFocusListener:void 0,isReconnecting:!1,reconnectionAttempts:0},this.options=t;const{reconnect:n,communicationLayerPreference:r,communicationServerUrl:o,context:i,remote:c,logging:g}=t;this.state.resumed=n,this.state.context=i,this.state.isOriginator=c.state.isOriginator,this.state.communicationLayerPreference=r,this.state.debug=(g==null?void 0:g.serviceLayer)===!0,this.remote=c,(g==null?void 0:g.serviceLayer)===!0&&nl.enable("SocketService:Layer"),this.state.communicationServerUrl=o,this.state.hasPlaintext=this.state.communicationServerUrl!==_d&&(g==null?void 0:g.plaintext)===!0,Ve.SocketService(`[SocketService: constructor()] Socket IO url: ${this.state.communicationServerUrl}`),this.initSocket()}initSocket(){var t;const{otherPublicKey:n,ecies:r,logging:o}=this.options,i={autoConnect:!1,transports:uF,withCredentials:!0},c=this.state.communicationServerUrl;Ve.SocketService(`[SocketService: initSocket()] Socket IO url: ${c}`),this.state.socket=Ub(c,i),function(_){if(typeof window<"u"&&typeof document<"u"&&(Ve.SocketService(`[SocketService: setupSocketFocusListener()] hasFocus=${document.hasFocus()}`,_),!_.state.focusListenerAdded)){const w=()=>{Ve.SocketService("Document has focus --- reconnecting socket"),S5(_).catch(S=>{console.error("setupSocketFocusListeners Error reconnecting socket",S)})};window.addEventListener("focus",w),_.state.focusListenerAdded=!0,_.state.removeFocusListener=()=>{window.removeEventListener("focus",w),_.state.focusListenerAdded=!1}}}(this);const g={communicationLayer:this,otherPublicKey:n,sendPublicKey:!1,context:(t=this.state.context)!==null&&t!==void 0?t:"",ecies:r,logging:o};this.state.keyExchange=new cF(g)}resetKeys(){return Ve.SocketService("[SocketService: resetKeys()] Resetting keys."),void((t=this.state.keyExchange)===null||t===void 0||t.resetKeys());var t}createChannel(){return tr(this,void 0,void 0,function*(){return function(t){var n,r,o;return tr(this,void 0,void 0,function*(){if(Ve.SocketService(`[SocketService: createChannel()] context=${t.state.context}`),t.state.socket||t.initSocket(),(n=t.state.socket)===null||n===void 0?void 0:n.connected)throw console.error("[SocketService: createChannel()] socket already connected"),new Error("socket already connected");(r=t.state.socket)===null||r===void 0||r.connect(),t.state.manualDisconnect=!1,t.state.isOriginator=!0;const i=wC();t.state.channelId=i,yx(t,i),yield new Promise((g,_)=>{var w;(w=t.state.socket)===null||w===void 0||w.emit(Ie.EventType.JOIN_CHANNEL,{channelId:i,context:`${t.state.context}createChannel`,clientType:"dapp"},(S,E)=>tr(this,void 0,void 0,function*(){try{yield Zb(t,S,E),g()}catch(T){_(T)}}))});const c=(o=t.state.keyExchange)===null||o===void 0?void 0:o.getKeyInfo();return{channelId:i,pubKey:(c==null?void 0:c.ecies.public)||"",privKey:(c==null?void 0:c.ecies.private)||""}})}(this)})}connectToChannel({channelId:t,withKeyExchange:n=!1,authorized:r}){return function({options:o,instance:i}){return tr(this,void 0,void 0,function*(){const{channelId:c,authorized:g,withKeyExchange:_}=o,{state:w,remote:S}=i,{isOriginator:E=!1,socket:T,keyExchange:I}=w,{channelConfig:j}=S.state;if(T!=null&&T.connected)throw console.error("[SocketService: connectToChannel()] socket already connected"),new Error("socket already connected");if(E&&(j!=null&&j.relayPersistence)){const{localKey:H,otherKey:V}=j;H&&V?I==null||I.setRelayPersistence({localKey:H,otherKey:V}):console.warn("Missing keys in relay persistence",j)}return Object.assign(w,{manualDisconnect:!1,withKeyExchange:_,isOriginator:E,channelId:c}),T==null||T.connect(),yx(i,c),!E&&g&&(I==null||I.setKeysExchanged(!0),Object.assign(S.state,{ready:!0,authorized:!0})),new Promise(H=>{var V;const ee=(V=I==null?void 0:I.getKeyInfo())===null||V===void 0?void 0:V.ecies.public,X=g&&!E?ee:void 0;T==null||T.emit(Ie.EventType.JOIN_CHANNEL,{channelId:c,context:`${w.context}_connectToChannel`,clientType:E?"dapp":"wallet",publicKey:X},(ue,le)=>tr(this,void 0,void 0,function*(){yield Zb(i,ue,le),H()}))})})}({options:{channelId:t,withKeyExchange:n,authorized:r},instance:this})}getKeyInfo(){return this.state.keyExchange.getKeyInfo()}keyCheck(){var t,n;(n=(t=this).state.socket)===null||n===void 0||n.emit(Ie.EventType.MESSAGE,{id:t.state.channelId,context:t.state.context,message:{type:sr.KEY_HANDSHAKE_CHECK,pubkey:t.getKeyInfo().ecies.otherPubKey}})}getKeyExchange(){return this.state.keyExchange}sendMessage(t){return dF(this,t)}ping(){return t=this,Ve.SocketService(`[SocketService: ping()] context=${t.state.context} originator=${t.state.isOriginator} keysExchanged=${(n=t.state.keyExchange)===null||n===void 0?void 0:n.areKeysExchanged()}`),t.state.isOriginator&&(!((r=t.state.keyExchange)===null||r===void 0)&&r.areKeysExchanged()?(console.warn(`[SocketService:ping()] context=${t.state.context} sending READY message`),t.sendMessage({type:Ie.MessageType.READY})):(console.warn(`[SocketService: ping()] context=${t.state.context} starting key exchange`),(o=t.state.keyExchange)===null||o===void 0||o.start({isOriginator:(i=t.state.isOriginator)!==null&&i!==void 0&&i}))),void((c=t.state.socket)===null||c===void 0||c.emit(Ie.EventType.MESSAGE,{id:t.state.channelId,context:t.state.context,clientType:t.remote.state.isOriginator?"dapp":"wallet",message:{type:Ie.MessageType.PING}}));var t,n,r,o,i,c}pause(){return t=this,Ve.SocketService(`[SocketService: pause()] context=${t.state.context}`),t.state.manualDisconnect=!0,!((n=t.state.keyExchange)===null||n===void 0)&&n.areKeysExchanged()&&t.sendMessage({type:Ie.MessageType.PAUSE}),void((r=t.state.socket)===null||r===void 0||r.disconnect());var t,n,r}isConnected(){var t;return(t=this.state.socket)===null||t===void 0?void 0:t.connected}resume(){return function(t){const{state:n,remote:r}=t,{socket:o,channelId:i,context:c,keyExchange:g,isOriginator:_}=n,{isOriginator:w}=r.state;if(Ve.SocketService(`[SocketService: resume()] channelId=${i} context=${c} connected=${o==null?void 0:o.connected} manualDisconnect=${n.manualDisconnect} resumed=${n.resumed} keysExchanged=${g==null?void 0:g.areKeysExchanged()}`),!i)throw Ve.SocketService("[SocketService: resume()] channelId is not defined"),new Error("ChannelId is not defined");o!=null&&o.connected?(Ve.SocketService("[SocketService: resume()] already connected."),o.emit(Ie.MessageType.PING,{id:i,clientType:w?"dapp":"wallet",context:"on_channel_config",message:""}),r.hasRelayPersistence()||g!=null&&g.areKeysExchanged()||(_?t.sendMessage({type:Ie.MessageType.READY}):g==null||g.start({isOriginator:!1}))):(o==null||o.connect(),Ve.SocketService(`[SocketService: resume()] after connecting socket --> connected=${o==null?void 0:o.connected}`),o==null||o.emit(Ie.EventType.JOIN_CHANNEL,{channelId:i,context:`${c}_resume`,clientType:w?"dapp":"wallet"},(S,E)=>tr(this,void 0,void 0,function*(){try{yield Zb(t,S,E)}catch(T){console.warn("Error reconnecting to channel",T)}}))),n.manualDisconnect=!1,n.resumed=!0}(this)}getRPCMethodTracker(){return this.state.rpcMethodTracker}disconnect(t){return function(n,r){var o,i,c,g,_;Ve.SocketService(`[SocketService: disconnect()] context=${n.state.context}`,r),r!=null&&r.terminate&&((i=(o=n.state).removeFocusListener)===null||i===void 0||i.call(o),n.state.channelId=r.channelId,(c=n.state.socket)===null||c===void 0||c.removeAllListeners(),(g=n.state.keyExchange)===null||g===void 0||g.clean(),n.remote.state.ready=!1,n.state.socket=void 0,n.state.rpcMethodTracker={}),n.state.manualDisconnect=!0,(_=n.state.socket)===null||_===void 0||_.disconnect()}(this,t)}}var wx;function mF(e){return()=>tr(this,void 0,void 0,function*(){var t,n,r;const{state:o}=e;if(o.authorized)return;yield tr(this,void 0,void 0,function*(){for(;!o.walletInfo;)yield xp(500)});const i="7.3".localeCompare(((t=o.walletInfo)===null||t===void 0?void 0:t.version)||"");if(Ve.RemoteCommunication(`[RemoteCommunication: handleAuthorizedEvent()] HACK 'authorized' version=${(n=o.walletInfo)===null||n===void 0?void 0:n.version} compareValue=${i}`),i!==1)return;const c=o.platformType===Ie.PlatformType.MobileWeb||o.platformType===Ie.PlatformType.ReactNative||o.platformType===Ie.PlatformType.MetaMaskMobileWebview;Ve.RemoteCommunication(`[RemoteCommunication: handleAuthorizedEvent()] HACK 'authorized' platform=${o.platformType} secure=${c} channel=${o.channelId} walletVersion=${(r=o.walletInfo)===null||r===void 0?void 0:r.version}`),c&&(o.authorized=!0,e.emit(Ie.EventType.AUTHORIZED))})}function gF(e){return t=>{const{state:n}=e;Ve.RemoteCommunication(`[RemoteCommunication: handleChannelCreatedEvent()] context=${n.context} on 'channel_created' channelId=${t}`),e.emit(Ie.EventType.CHANNEL_CREATED,t)}}function vF(e,t){return()=>{var n,r,o,i;const{state:c}=e;if(Ve.RemoteCommunication(`[RemoteCommunication: handleClientsConnectedEvent()] on 'clients_connected' channel=${c.channelId} keysExchanged=${(r=(n=c.communicationLayer)===null||n===void 0?void 0:n.getKeyInfo())===null||r===void 0?void 0:r.keysExchanged}`),c.analytics){const g=c.isOriginator?ci.REQUEST:ci.REQUEST_MOBILE;Mp(Object.assign(Object.assign({id:(o=c.channelId)!==null&&o!==void 0?o:"",event:c.reconnection?ci.RECONNECT:g},c.originatorInfo),{commLayer:t,sdkVersion:c.sdkVersion,walletVersion:(i=c.walletInfo)===null||i===void 0?void 0:i.version,commLayerVersion:gh}),c.communicationServerUrl).catch(_=>{console.error("Cannot send analytics",_)})}c.clientsConnected=!0,c.originatorInfoSent=!1,e.emit(Ie.EventType.CLIENTS_CONNECTED)}}function bF(e,t){return n=>{var r;const{state:o}=e;Ve.RemoteCommunication(`[RemoteCommunication: handleClientsDisconnectedEvent()] context=${o.context} on 'clients_disconnected' channelId=${n}`),o.relayPersistence||(o.clientsConnected=!1,o.ready=!1,o.authorized=!1),e.emit(Ie.EventType.CLIENTS_DISCONNECTED,o.channelId),e.setConnectionStatus(Ie.ConnectionStatus.DISCONNECTED),o.analytics&&o.channelId&&Mp({id:o.channelId,event:ci.DISCONNECTED,sdkVersion:o.sdkVersion,commLayer:t,commLayerVersion:gh,walletVersion:(r=o.walletInfo)===null||r===void 0?void 0:r.version},o.communicationServerUrl).catch(i=>{console.error("Cannot send analytics",i)})}}function yF(e){return t=>{var n;const{state:r}=e;if(Ve.RemoteCommunication(`[RemoteCommunication: handleClientsWaitingEvent()] context=${r.context} on 'clients_waiting' numberUsers=${t} ready=${r.ready} autoStarted=${r.originatorConnectStarted}`),e.setConnectionStatus(Ie.ConnectionStatus.WAITING),e.emit(Ie.EventType.CLIENTS_WAITING,t),r.originatorConnectStarted){Ve.RemoteCommunication(`[RemoteCommunication: handleClientsWaitingEvent()] on 'clients_waiting' watch autoStarted=${r.originatorConnectStarted} timeout`,r.autoConnectOptions);const o=((n=r.autoConnectOptions)===null||n===void 0?void 0:n.timeout)||3e3,i=setTimeout(()=>{Ve.RemoteCommunication(`[RemoteCommunication: handleClientsWaitingEvent()] setTimeout(${o}) terminate channelConfig`,r.autoConnectOptions),r.originatorConnectStarted=!1,r.ready||e.setConnectionStatus(Ie.ConnectionStatus.TIMEOUT),clearTimeout(i)},o)}}}function wF(e,t){return n=>{var r,o,i,c,g,_,w,S;const{state:E}=e;if(Ve.RemoteCommunication(`[RemoteCommunication: handleKeysExchangedEvent()] context=${E.context} on commLayer.'keys_exchanged' channel=${E.channelId}`,n),(o=(r=E.communicationLayer)===null||r===void 0?void 0:r.getKeyInfo())===null||o===void 0?void 0:o.keysExchanged){const T=Object.assign(Object.assign({},E.channelConfig),{channelId:(i=E.channelId)!==null&&i!==void 0?i:"",validUntil:((c=E.channelConfig)===null||c===void 0?void 0:c.validUntil)||Cp,localKey:E.communicationLayer.getKeyInfo().ecies.private,otherKey:E.communicationLayer.getKeyInfo().ecies.otherPubKey});(g=E.storageManager)===null||g===void 0||g.persistChannelConfig(T).catch(I=>{console.error("Error persisting channel config",I)}),e.setConnectionStatus(Ie.ConnectionStatus.LINKED)}(function(T,I){var j,H,V,ee,X,ue,le,pe;const{state:Me}=T;Ve.RemoteCommunication(`[RemoteCommunication: setLastActiveDate()] channel=${Me.channelId}`,I);const ye=Object.assign(Object.assign({},Me.channelConfig),{channelId:(j=Me.channelId)!==null&&j!==void 0?j:"",validUntil:(V=(H=Me.channelConfig)===null||H===void 0?void 0:H.validUntil)!==null&&V!==void 0?V:0,relayPersistence:Me.relayPersistence,localKey:(X=(ee=Me.communicationLayer)===null||ee===void 0?void 0:ee.state.keyExchange)===null||X===void 0?void 0:X.getKeyInfo().ecies.private,otherKey:(le=(ue=Me.communicationLayer)===null||ue===void 0?void 0:ue.state.keyExchange)===null||le===void 0?void 0:le.getKeyInfo().ecies.otherPubKey,lastActive:I.getTime()});(pe=Me.storageManager)===null||pe===void 0||pe.persistChannelConfig(ye)})(e,new Date),E.analytics&&E.channelId&&Mp({id:E.channelId,event:n.isOriginator?ci.CONNECTED:ci.CONNECTED_MOBILE,sdkVersion:E.sdkVersion,commLayer:t,commLayerVersion:gh,walletVersion:(_=E.walletInfo)===null||_===void 0?void 0:_.version},E.communicationServerUrl).catch(T=>{console.error("Cannot send analytics",T)}),E.isOriginator=n.isOriginator,n.isOriginator||((w=E.communicationLayer)===null||w===void 0||w.sendMessage({type:Ie.MessageType.READY}),E.ready=!0,E.paused=!1),n.isOriginator&&!E.originatorInfoSent&&((S=E.communicationLayer)===null||S===void 0||S.sendMessage({type:Ie.MessageType.ORIGINATOR_INFO,originatorInfo:E.originatorInfo,originator:E.originatorInfo}),E.originatorInfoSent=!0)}}function _F(e){return t=>{let n=t;t.message&&(n=n.message),function(r,o){const{state:i}=o;if(Ve.RemoteCommunication(`[RemoteCommunication: onCommunicationLayerMessage()] context=${i.context} on 'message' typeof=${typeof r}`,r),o.state.ready=!0,i.isOriginator||r.type!==Ie.MessageType.ORIGINATOR_INFO)if(i.isOriginator&&r.type===Ie.MessageType.WALLET_INFO)(function(c,g){const{state:_}=c;_.walletInfo=g.walletInfo,_.paused=!1})(o,r);else{if(i.isOriginator&&r.type===Ie.MessageType.WALLET_INIT)(function(c,g){var _,w,S;return tr(this,void 0,void 0,function*(){const{state:E}=c;if(E.isOriginator){const T=g.data||{};if(typeof T=="object"&&"accounts"in T&&"chainId"in T&&"walletKey"in T)try{const{channelConfig:I}=c.state;if(Ve.RemoteCommunication("WALLET_INIT: channelConfig",JSON.stringify(I,null,2)),I){const j=T.accounts,H=T.chainId,V=T.walletKey;yield(_=c.state.storageManager)===null||_===void 0?void 0:_.persistChannelConfig(Object.assign(Object.assign({},I),{otherKey:V,relayPersistence:!0})),yield(w=c.state.storageManager)===null||w===void 0?void 0:w.persistAccounts(j),yield(S=c.state.storageManager)===null||S===void 0?void 0:S.persistChainId(H)}c.emit(Ie.EventType.WALLET_INIT,{accounts:T.accounts,chainId:T.chainId})}catch(I){console.error('RemoteCommunication::on "wallet_init" -- error',I)}else console.error('RemoteCommunication::on "wallet_init" -- invalid data format',T)}})})(o,r).catch(c=>{Ve.RemoteCommunication(`[RemoteCommunication: onCommunicationLayerMessage()] error=${c}`)});else if(r.type===Ie.MessageType.TERMINATE)(function(c){const{state:g}=c;g.isOriginator&&(_x({options:{terminate:!0,sendMessage:!1},instance:c}),console.debug(),c.emit(Ie.EventType.TERMINATE))})(o);else if(r.type===Ie.MessageType.PAUSE)(function(c){const{state:g}=c;g.paused=!0,c.setConnectionStatus(Ie.ConnectionStatus.PAUSED)})(o);else if(r.type===Ie.MessageType.READY&&i.isOriginator)(function(c){const{state:g}=c;c.setConnectionStatus(Ie.ConnectionStatus.LINKED);const _=g.paused;g.paused=!1,c.emit(Ie.EventType.CLIENTS_READY,{isOriginator:g.isOriginator,walletInfo:g.walletInfo}),_&&(g.authorized=!0,c.emit(Ie.EventType.AUTHORIZED))})(o);else{if(r.type===Ie.MessageType.OTP&&i.isOriginator)return void function(c,g){var _;const{state:w}=c;c.emit(Ie.EventType.OTP,g.otpAnswer),"6.6".localeCompare(((_=w.walletInfo)===null||_===void 0?void 0:_.version)||"")===1&&(console.warn("RemoteCommunication::on 'otp' -- backward compatibility <6.6 -- triger eth_requestAccounts"),c.emit(Ie.EventType.SDK_RPC_CALL,{method:lF.ETH_REQUESTACCOUNTS,params:[]}))}(o,r);r.type===Ie.MessageType.AUTHORIZED&&i.isOriginator&&function(c){const{state:g}=c;g.authorized=!0,c.emit(Ie.EventType.AUTHORIZED)}(o)}o.emit(Ie.EventType.MESSAGE,r)}else(function(c,g){var _;const{state:w}=c;(_=w.communicationLayer)===null||_===void 0||_.sendMessage({type:Ie.MessageType.WALLET_INFO,walletInfo:w.walletInfo}),w.originatorInfo=g.originatorInfo||g.originator,c.emit(Ie.EventType.CLIENTS_READY,{isOriginator:w.isOriginator,originatorInfo:w.originatorInfo}),w.paused=!1})(o,r)}(n,e)}}function SF(e){return()=>{const{state:t}=e;Ve.RemoteCommunication("[RemoteCommunication: handleSocketReconnectEvent()] on 'socket_reconnect' -- reset key exchange status / set ready to false"),t.ready=!1,t.authorized=!1,gx(t),e.emitServiceStatusEvent({context:"socket_reconnect"})}}function EF(e){return()=>{const{state:t}=e;Ve.RemoteCommunication("[RemoteCommunication: handleSocketDisconnectedEvent()] on 'socket_Disconnected' set ready to false"),t.ready=!1}}function kF(e){return()=>tr(this,void 0,void 0,function*(){var t,n,r,o,i,c,g;const{state:_}=e;Ve.RemoteCommunication(`[RemoteCommunication: handleFullPersistenceEvent()] context=${_.context}`),e.state.ready=!0,e.state.clientsConnected=!0,e.state.authorized=!0,e.state.relayPersistence=!0,(t=e.state.communicationLayer)===null||t===void 0||t.getKeyExchange().setKeysExchanged(!0),e.emit(Ie.EventType.KEYS_EXCHANGED,{keysExchanged:!0,isOriginator:!0}),e.emit(Ie.EventType.AUTHORIZED),e.emit(Ie.EventType.CLIENTS_READY),e.emit(Ie.EventType.CHANNEL_PERSISTENCE);try{_.channelConfig=Object.assign(Object.assign({},_.channelConfig),{localKey:(n=_.communicationLayer)===null||n===void 0?void 0:n.getKeyExchange().getKeyInfo().ecies.private,otherKey:(r=_.communicationLayer)===null||r===void 0?void 0:r.getKeyExchange().getOtherPublicKey(),channelId:(o=_.channelId)!==null&&o!==void 0?o:"",validUntil:(c=(i=_.channelConfig)===null||i===void 0?void 0:i.validUntil)!==null&&c!==void 0?c:Cp,relayPersistence:!0}),yield(g=_.storageManager)===null||g===void 0?void 0:g.persistChannelConfig(_.channelConfig)}catch(w){console.error("Error persisting channel config",w)}})}function _x({options:e,instance:t}){var n,r,o,i,c,g;const{state:_}=t;Ve.RemoteCommunication(`[RemoteCommunication: disconnect()] channel=${_.channelId}`,e),_.ready=!1,_.paused=!1,e!=null&&e.terminate?((n=_.storageManager)===null||n===void 0||n.terminate((r=_.channelId)!==null&&r!==void 0?r:""),t.state.terminated=!0,e.sendMessage&&(!((o=_.communicationLayer)===null||o===void 0)&&o.getKeyInfo().keysExchanged)&&((i=_.communicationLayer)===null||i===void 0||i.sendMessage({type:Ie.MessageType.TERMINATE})),_.authorized=!1,_.relayPersistence=!1,_.channelId=wC(),e.channelId=_.channelId,_.channelConfig=void 0,_.originatorConnectStarted=!1,(c=_.communicationLayer)===null||c===void 0||c.disconnect(e),t.setConnectionStatus(Ie.ConnectionStatus.TERMINATED)):((g=_.communicationLayer)===null||g===void 0||g.disconnect(e),t.setConnectionStatus(Ie.ConnectionStatus.DISCONNECTED))}Ie.CommunicationLayerPreference=void 0,Ie.PlatformType=void 0,function(e){e.SOCKET="socket"}(Ie.CommunicationLayerPreference||(Ie.CommunicationLayerPreference={})),function(e){e.NonBrowser="nodejs",e.MetaMaskMobileWebview="in-app-browser",e.DesktopWeb="web-desktop",e.MobileWeb="web-mobile",e.ReactNative="react-native"}(Ie.PlatformType||(Ie.PlatformType={}));class MF extends J8.EventEmitter2{constructor({platformType:t,communicationLayerPreference:n,otherPublicKey:r,reconnect:o,walletInfo:i,dappMetadata:c,protocolVersion:g,transports:_,context:w,relayPersistence:S,ecies:E,analytics:T=!1,storage:I,sdkVersion:j,communicationServerUrl:H=_d,logging:V,autoConnect:ee={timeout:3e3}}){super(),this.state={ready:!1,authorized:!1,isOriginator:!1,terminated:!1,protocolVersion:1,paused:!1,platformType:"metamask-mobile",analytics:!1,reconnection:!1,originatorInfoSent:!1,communicationServerUrl:_d,context:"",persist:!1,clientsConnected:!1,sessionDuration:Cp,originatorConnectStarted:!1,debug:!1,_connectionStatus:Ie.ConnectionStatus.DISCONNECTED},this.state.otherPublicKey=r,this.state.dappMetadata=c,this.state.walletInfo=i,this.state.transports=_,this.state.platformType=t,this.state.analytics=T,this.state.protocolVersion=g??1,this.state.isOriginator=!r,this.state.relayPersistence=S,this.state.communicationServerUrl=H,this.state.context=w,this.state.terminated=!1,this.state.sdkVersion=j,this.setMaxListeners(50),this.setConnectionStatus(Ie.ConnectionStatus.DISCONNECTED),I!=null&&I.duration&&(this.state.sessionDuration=Cp),this.state.storageOptions=I,this.state.autoConnectOptions=ee,this.state.debug=(V==null?void 0:V.remoteLayer)===!0,(V==null?void 0:V.remoteLayer)===!0&&nl.enable("RemoteCommunication:Layer"),(V==null?void 0:V.serviceLayer)===!0&&nl.enable("SocketService:Layer"),(V==null?void 0:V.eciesLayer)===!0&&nl.enable("ECIES:Layer"),(V==null?void 0:V.keyExchangeLayer)===!0&&nl.enable("KeyExchange:Layer"),this.state.logging=V,I!=null&&I.storageManager&&(this.state.storageManager=I.storageManager),Ve.RemoteCommunication(`[RemoteCommunication: constructor()] protocolVersion=${g} relayPersistence=${S} isOriginator=${this.state.isOriginator} communicationLayerPreference=${n} otherPublicKey=${r} reconnect=${o}`),this.initCommunicationLayer({communicationLayerPreference:n,otherPublicKey:r,reconnect:o,ecies:E,communicationServerUrl:H}),this.emitServiceStatusEvent({context:"constructor"})}initCommunicationLayer({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,ecies:o,communicationServerUrl:i=_d}){return function({communicationLayerPreference:c,otherPublicKey:g,reconnect:_,ecies:w,communicationServerUrl:S=_d,instance:E}){var T,I,j,H,V,ee,X,ue,le,pe,Me;const{state:ye}=E;if(Ve.RemoteCommunication("[initCommunicationLayer()] ",JSON.stringify(ye,null,2)),c!==Ie.CommunicationLayerPreference.SOCKET)throw new Error("Invalid communication protocol");ye.communicationLayer=new pF({communicationLayerPreference:c,otherPublicKey:g,reconnect:_,transports:ye.transports,communicationServerUrl:S,context:ye.context,ecies:w,logging:ye.logging,remote:E});let Te=typeof document<"u"&&document.URL||"",y=typeof document<"u"&&document.title||"";!((T=ye.dappMetadata)===null||T===void 0)&&T.url&&(Te=ye.dappMetadata.url),!((I=ye.dappMetadata)===null||I===void 0)&&I.name&&(y=ye.dappMetadata.name);const x=(ee=(H=(j=ye.dappMetadata)===null||j===void 0?void 0:j.name)!==null&&H!==void 0?H:(V=ye.dappMetadata)===null||V===void 0?void 0:V.url)!==null&&ee!==void 0?ee:"N/A",d=typeof window<"u"&&window.location!==void 0&&(X=window.location.hostname)!==null&&X!==void 0?X:x,p={url:Te,title:y,source:(ue=ye.dappMetadata)===null||ue===void 0?void 0:ue.source,dappId:d,icon:((le=ye.dappMetadata)===null||le===void 0?void 0:le.iconUrl)||((pe=ye.dappMetadata)===null||pe===void 0?void 0:pe.base64Icon),platform:ye.platformType,apiVersion:gh,connector:(Me=ye.dappMetadata)===null||Me===void 0?void 0:Me.connector};ye.originatorInfo=p;const h={[Ie.EventType.AUTHORIZED]:mF(E),[Ie.EventType.MESSAGE]:_F(E),[Ie.EventType.CHANNEL_PERSISTENCE]:kF(E),[Ie.EventType.CLIENTS_CONNECTED]:vF(E,c),[Ie.EventType.KEYS_EXCHANGED]:wF(E,c),[Ie.EventType.SOCKET_DISCONNECTED]:EF(E),[Ie.EventType.SOCKET_RECONNECT]:SF(E),[Ie.EventType.CLIENTS_DISCONNECTED]:bF(E,c),[Ie.EventType.KEY_INFO]:()=>{},[Ie.EventType.CHANNEL_CREATED]:gF(E),[Ie.EventType.CLIENTS_WAITING]:yF(E),[Ie.EventType.RPC_UPDATE]:f=>{E.emit(Ie.EventType.RPC_UPDATE,f)}};for(const[f,l]of Object.entries(h))try{ye.communicationLayer.on(f,l)}catch(b){console.error(`Error registering handler for ${f}:`,b)}}({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,ecies:o,communicationServerUrl:i,instance:this})}initFromDappStorage(){return tr(this,void 0,void 0,function*(){if(this.state.storageManager){const t=yield this.state.storageManager.getPersistedChannelConfig({});t&&(this.state.channelConfig=t,this.state.channelId=t.channelId,t.relayPersistence&&(this.state.authorized=!0,this.state.ready=!0,this.setConnectionStatus(Ie.ConnectionStatus.LINKED),yield this.connectToChannel({channelId:t.channelId})))}})}originatorSessionConnect(){return tr(this,void 0,void 0,function*(){return yield function(t){var n;return tr(this,void 0,void 0,function*(){const{state:r}=t;if(!r.storageManager)return void Ve.RemoteCommunication("[RemoteCommunication: originatorSessionConnect()] no storage manager defined - skip");const o=yield r.storageManager.getPersistedChannelConfig({});if(Ve.RemoteCommunication(`[RemoteCommunication: originatorSessionConnect()] autoStarted=${r.originatorConnectStarted} channelConfig`,o),(n=r.communicationLayer)===null||n===void 0?void 0:n.isConnected())return Ve.RemoteCommunication("[RemoteCommunication: originatorSessionConnect()] socket already connected - skip"),o;if(o){if(o.validUntil>Date.now())return r.channelConfig=o,r.originatorConnectStarted=!0,r.channelId=o==null?void 0:o.channelId,r.reconnection=!0,o;Ve.RemoteCommunication("[RemoteCommunication: autoConnect()] Session has expired")}r.originatorConnectStarted=!1})}(this)})}generateChannelIdConnect(){return tr(this,void 0,void 0,function*(){return function(t){var n,r,o,i,c,g;return tr(this,void 0,void 0,function*(){if(!t.communicationLayer)throw new Error("communication layer not initialized");if(t.ready)throw new Error("Channel already connected");if(t.channelId&&(!((n=t.communicationLayer)===null||n===void 0)&&n.isConnected()))return t.channelConfig=Object.assign(Object.assign({},t.channelConfig),{channelId:t.channelId,validUntil:Date.now()+t.sessionDuration}),(r=t.storageManager)===null||r===void 0||r.persistChannelConfig(t.channelConfig),{channelId:t.channelId,privKey:(i=(o=t.communicationLayer)===null||o===void 0?void 0:o.getKeyInfo())===null||i===void 0?void 0:i.ecies.private,pubKey:(g=(c=t.communicationLayer)===null||c===void 0?void 0:c.getKeyInfo())===null||g===void 0?void 0:g.ecies.public};Ve.RemoteCommunication("[RemoteCommunication: generateChannelId()]");const _=yield t.communicationLayer.createChannel();Ve.RemoteCommunication("[RemoteCommunication: generateChannelId()] channel created",_);const w=Object.assign(Object.assign({},t.channelConfig),{channelId:_.channelId,localKey:_.privKey,validUntil:Date.now()+t.sessionDuration});return t.channelId=_.channelId,t.channelConfig=w,{channelId:t.channelId,pubKey:_.pubKey,privKey:_.privKey}})}(this.state)})}clean(){return gx(this.state)}connectToChannel({channelId:t,withKeyExchange:n,authorized:r}){return function({channelId:o,withKeyExchange:i,authorized:c,state:g}){var _,w,S;return tr(this,void 0,void 0,function*(){if(!yC(o))throw Ve.RemoteCommunication(`[RemoteCommunication: connectToChannel()] context=${g.context} invalid channel channelId=${o}`),new Error(`Invalid channel ${o}`);if(Ve.RemoteCommunication(`[RemoteCommunication: connectToChannel()] context=${g.context} channelId=${o} withKeyExchange=${i}`),(_=g.communicationLayer)===null||_===void 0?void 0:_.isConnected())return void Ve.RemoteCommunication(`[RemoteCommunication: connectToChannel()] context=${g.context} already connected - interrupt connection.`);g.channelId=o,yield(w=g.communicationLayer)===null||w===void 0?void 0:w.connectToChannel({channelId:o,authorized:c,withKeyExchange:i});const E=Object.assign(Object.assign({},g.channelConfig),{channelId:o,validUntil:Date.now()+g.sessionDuration});g.channelConfig=E,(S=g.storageManager)===null||S===void 0||S.persistChannelConfig(E)})}({channelId:t,authorized:r,withKeyExchange:n,state:this.state})}sendMessage(t){return function(n,r){var o,i;return tr(this,void 0,void 0,function*(){const{state:c}=n;Ve.RemoteCommunication(`[RemoteCommunication: sendMessage()] context=${c.context} paused=${c.paused} ready=${c.ready} relayPersistence=${c.relayPersistence} authorized=${c.authorized} socket=${(o=c.communicationLayer)===null||o===void 0?void 0:o.isConnected()} clientsConnected=${c.clientsConnected} status=${c._connectionStatus}`,r),c.relayPersistence||c.ready&&(!((i=c.communicationLayer)===null||i===void 0)&&i.isConnected())&&c.clientsConnected||(Ve.RemoteCommunication(`[RemoteCommunication: sendMessage()] context=${c.context} SKIP message waiting for MM mobile readiness.`),yield new Promise(g=>{n.once(Ie.EventType.CLIENTS_READY,g)}),Ve.RemoteCommunication(`[RemoteCommunication: sendMessage()] context=${c.context} AFTER SKIP / READY -- sending pending message`));try{yield function(g,_){return tr(this,void 0,void 0,function*(){return new Promise(w=>{var S;const{state:E}=g;Ve.RemoteCommunication(`[RemoteCommunication: handleAuthorization()] context=${E.context} ready=${E.ready} authorized=${E.authorized} method=${_.method}`),!E.isOriginator||E.authorized||E.relayPersistence?((S=E.communicationLayer)===null||S===void 0||S.sendMessage(_),w()):g.once(Ie.EventType.AUTHORIZED,()=>{var T;Ve.RemoteCommunication(`[RemoteCommunication: handleAuthorization()] context=${E.context} AFTER SKIP / AUTHORIZED -- sending pending message`),(T=E.communicationLayer)===null||T===void 0||T.sendMessage(_),w()})})})}(n,r)}catch(g){throw console.error(`[RemoteCommunication: sendMessage()] context=${c.context} ERROR`,g),g}})}(this,t)}testStorage(){return tr(this,void 0,void 0,function*(){return function(t){var n;return tr(this,void 0,void 0,function*(){const r=yield(n=t.storageManager)===null||n===void 0?void 0:n.getPersistedChannelConfig();Ve.RemoteCommunication("[RemoteCommunication: testStorage()] res",r)})}(this.state)})}getChannelConfig(){return this.state.channelConfig}isReady(){return this.state.ready}isConnected(){var t;return(t=this.state.communicationLayer)===null||t===void 0?void 0:t.isConnected()}isAuthorized(){return this.state.authorized}isPaused(){return this.state.paused}getCommunicationLayer(){return this.state.communicationLayer}ping(){var t;Ve.RemoteCommunication(`[RemoteCommunication: ping()] channel=${this.state.channelId}`),(t=this.state.communicationLayer)===null||t===void 0||t.ping()}testLogger(){Ve.RemoteCommunication(`testLogger() channel=${this.state.channelId}`),Ve.SocketService(`testLogger() channel=${this.state.channelId}`),Ve.Ecies(`testLogger() channel=${this.state.channelId}`),Ve.KeyExchange(`testLogger() channel=${this.state.channelId}`)}keyCheck(){var t;Ve.RemoteCommunication(`[RemoteCommunication: keyCheck()] channel=${this.state.channelId}`),(t=this.state.communicationLayer)===null||t===void 0||t.keyCheck()}setConnectionStatus(t){this.state._connectionStatus!==t&&(this.state._connectionStatus=t,this.emit(Ie.EventType.CONNECTION_STATUS,t),this.emitServiceStatusEvent({context:"setConnectionStatus"}))}emitServiceStatusEvent(t={}){this.emit(Ie.EventType.SERVICE_STATUS,this.getServiceStatus())}getConnectionStatus(){return this.state._connectionStatus}getServiceStatus(){return{originatorInfo:this.state.originatorInfo,keyInfo:this.getKeyInfo(),connectionStatus:this.state._connectionStatus,channelConfig:this.state.channelConfig,channelId:this.state.channelId}}getKeyInfo(){var t;return(t=this.state.communicationLayer)===null||t===void 0?void 0:t.getKeyInfo()}resetKeys(){var t;(t=this.state.communicationLayer)===null||t===void 0||t.resetKeys()}setOtherPublicKey(t){var n;const r=(n=this.state.communicationLayer)===null||n===void 0?void 0:n.getKeyExchange();if(!r)throw new Error("KeyExchange is not initialized.");r.getOtherPublicKey()!==t&&r.setOtherPublicKey(t)}pause(){var t;Ve.RemoteCommunication(`[RemoteCommunication: pause()] channel=${this.state.channelId}`),(t=this.state.communicationLayer)===null||t===void 0||t.pause(),this.setConnectionStatus(Ie.ConnectionStatus.PAUSED)}getVersion(){return gh}hasRelayPersistence(){var t;return(t=this.state.relayPersistence)!==null&&t!==void 0&&t}resume(){return function(t){var n;const{state:r}=t;Ve.RemoteCommunication(`[RemoteCommunication: resume()] channel=${r.channelId}`),(n=r.communicationLayer)===null||n===void 0||n.resume(),t.setConnectionStatus(Ie.ConnectionStatus.LINKED)}(this)}encrypt(t){var n,r,o;const i=(n=this.state.communicationLayer)===null||n===void 0?void 0:n.getKeyExchange(),c=i==null?void 0:i.getOtherPublicKey();if(!c)throw new Error("KeyExchange not completed");return(o=(r=this.state.communicationLayer)===null||r===void 0?void 0:r.state.eciesInstance)===null||o===void 0?void 0:o.encrypt(t,c)}decrypt(t){var n,r,o;if(!(!((n=this.state.communicationLayer)===null||n===void 0)&&n.state.eciesInstance))throw new Error("ECIES instance is not initialized");return(o=(r=this.state.communicationLayer)===null||r===void 0?void 0:r.state.eciesInstance)===null||o===void 0?void 0:o.decrypt(t)}getChannelId(){return this.state.channelId}getRPCMethodTracker(){var t;return(t=this.state.communicationLayer)===null||t===void 0?void 0:t.getRPCMethodTracker()}disconnect(t){return _x({options:t,instance:this})}}function Zt(e,t,n,r){return new(n||(n=Promise))(function(o,i){function c(w){try{_(r.next(w))}catch(S){i(S)}}function g(w){try{_(r.throw(w))}catch(S){i(S)}}function _(w){w.done?o(w.value):function(S){return S instanceof n?S:new n(function(E){E(S)})}(w.value).then(c,g)}_((r=r.apply(e,[])).next())})}function E5(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function k5(e,t,n,r,o){if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}(function(e){e.RENEW="renew",e.LINK="link"})(wx||(wx={})),typeof SuppressedError=="function"&&SuppressedError;var CF="ERC721",xF="ERC1155",AF={errors:{disconnected:()=>"MetaMask: Disconnected from chain. Attempting to connect.",permanentlyDisconnected:()=>"MetaMask: Disconnected from MetaMask background. Page reload required.",sendSiteMetadata:()=>"MetaMask: Failed to send site metadata. This is an internal error, please report this bug.",unsupportedSync:e=>`MetaMask: The MetaMask Ethereum provider does not support synchronous methods like ${e} without a callback parameter.`,invalidDuplexStream:()=>"Must provide a Node.js-style duplex stream.",invalidNetworkParams:()=>"MetaMask: Received invalid network parameters. Please report this bug.",invalidRequestArgs:()=>"Expected a single, non-array, object argument.",invalidRequestMethod:()=>"'args.method' must be a non-empty string.",invalidRequestParams:()=>"'args.params' must be an object or array if provided.",invalidLoggerObject:()=>"'args.logger' must be an object if provided.",invalidLoggerMethod:e=>`'args.logger' must include required method '${e}'.`},info:{connected:e=>`MetaMask: Connected to chain with ID "${e}".`},warnings:{chainIdDeprecation:`MetaMask: 'ethereum.chainId' is deprecated and may be removed in the future. Please use the 'eth_chainId' RPC method instead.
17
+ For more information, see: https://github.com/MetaMask/metamask-improvement-proposals/discussions/23`,networkVersionDeprecation:`MetaMask: 'ethereum.networkVersion' is deprecated and may be removed in the future. Please use the 'net_version' RPC method instead.
18
+ For more information, see: https://github.com/MetaMask/metamask-improvement-proposals/discussions/23`,selectedAddressDeprecation:`MetaMask: 'ethereum.selectedAddress' is deprecated and may be removed in the future. Please use the 'eth_accounts' RPC method instead.
19
+ For more information, see: https://github.com/MetaMask/metamask-improvement-proposals/discussions/23`,enableDeprecation:`MetaMask: 'ethereum.enable()' is deprecated and may be removed in the future. Please use the 'eth_requestAccounts' RPC method instead.
20
+ For more information, see: https://eips.ethereum.org/EIPS/eip-1102`,sendDeprecation:`MetaMask: 'ethereum.send(...)' is deprecated and may be removed in the future. Please use 'ethereum.sendAsync(...)' or 'ethereum.request(...)' instead.
21
+ For more information, see: https://eips.ethereum.org/EIPS/eip-1193`,events:{close:`MetaMask: The event 'close' is deprecated and may be removed in the future. Please use 'disconnect' instead.
22
+ For more information, see: https://eips.ethereum.org/EIPS/eip-1193#disconnect`,data:`MetaMask: The event 'data' is deprecated and will be removed in the future. Use 'message' instead.
23
+ For more information, see: https://eips.ethereum.org/EIPS/eip-1193#message`,networkChanged:`MetaMask: The event 'networkChanged' is deprecated and may be removed in the future. Use 'chainChanged' instead.
24
+ For more information, see: https://eips.ethereum.org/EIPS/eip-1193#chainchanged`,notification:`MetaMask: The event 'notification' is deprecated and may be removed in the future. Use 'message' instead.
25
+ For more information, see: https://eips.ethereum.org/EIPS/eip-1193#message`},rpc:{ethDecryptDeprecation:`MetaMask: The RPC method 'eth_decrypt' is deprecated and may be removed in the future.
26
+ For more information, see: https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686`,ethGetEncryptionPublicKeyDeprecation:`MetaMask: The RPC method 'eth_getEncryptionPublicKey' is deprecated and may be removed in the future.
27
+ For more information, see: https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686`,walletWatchAssetNFTExperimental:`MetaMask: The RPC method 'wallet_watchAsset' is experimental for ERC721/ERC1155 assets and may change in the future.
28
+ For more information, see: https://github.com/MetaMask/metamask-improvement-proposals/blob/main/MIPs/mip-1.md and https://github.com/MetaMask/metamask-improvement-proposals/blob/main/PROCESS-GUIDE.md#proposal-lifecycle`},experimentalMethods:"MetaMask: 'ethereum._metamask' exposes non-standard, experimental methods. They may be removed or changed without warning."}},Zr=AF;function RF(e){const t={ethDecryptDeprecation:!1,ethGetEncryptionPublicKeyDeprecation:!1,walletWatchAssetNFTExperimental:!1};return(n,r,o)=>{var i;t.ethDecryptDeprecation||n.method!=="eth_decrypt"?t.ethGetEncryptionPublicKeyDeprecation||n.method!=="eth_getEncryptionPublicKey"?!t.walletWatchAssetNFTExperimental&&n.method==="wallet_watchAsset"&&[CF,xF].includes(((i=n.params)==null?void 0:i.type)||"")&&(e.warn(Zr.warnings.rpc.walletWatchAssetNFTExperimental),t.walletWatchAssetNFTExperimental=!0):(e.warn(Zr.warnings.rpc.ethGetEncryptionPublicKeyDeprecation),t.ethGetEncryptionPublicKeyDeprecation=!0):(e.warn(Zr.warnings.rpc.ethDecryptDeprecation),t.ethDecryptDeprecation=!0),o()}}var Sx=4294967295,Ex=Math.floor(Math.random()*Sx);function TF(){return(e,t,n,r)=>{const o=e.id,i=Ex=(Ex+1)%Sx;e.id=i,t.id=i,n(c=>{e.id=o,t.id=o,c()})}}var M5=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Sd=(e,t,n)=>(M5(e,t,"read from private field"),n?n.call(e):t.get(e)),qs=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Qb=(e,t,n,r)=>(M5(e,t,"write to private field"),t.set(e,n),n),Mo=(e,t,n)=>(M5(e,t,"access private method"),n),Ed={invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},kx={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};function Mx(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}var Xb=(e,t)=>Object.hasOwnProperty.call(e,t);class PF extends TypeError{constructor(t,n){let r;const{message:o,explanation:i,...c}=t,{path:g}=t,_=g.length===0?o:`At path: ${g.join(".")} -- ${o}`;super(i??_),i!=null&&(this.cause=_),Object.assign(this,c),this.name=this.constructor.name,this.failures=()=>r??(r=[t,...n()])}}function oc(e){return typeof e=="object"&&e!=null}function ol(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function LF(e,t,n,r){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});const{path:o,branch:i}=t,{type:c}=n,{refinement:g,message:_=`Expected a value of type \`${c}\`${g?` with refinement \`${g}\``:""}, but received: \`${ol(r)}\``}=e;return{value:r,type:c,refinement:g,key:o[o.length-1],path:o,branch:i,...e,message:_}}function*Cx(e,t,n,r){(function(o){return oc(o)&&typeof o[Symbol.iterator]=="function"})(e)||(e=[e]);for(const o of e){const i=LF(o,t,n,r);i&&(yield i)}}function*C5(e,t,n={}){const{path:r=[],branch:o=[e],coerce:i=!1,mask:c=!1}=n,g={path:r,branch:o};if(i&&(e=t.coercer(e,g),c&&t.type!=="type"&&oc(t.schema)&&oc(e)&&!Array.isArray(e)))for(const w in e)t.schema[w]===void 0&&delete e[w];let _="valid";for(const w of t.validator(e,g))w.explanation=n.message,_="not_valid",yield[w,void 0];for(let[w,S,E]of t.entries(e,g)){const T=C5(S,E,{path:w===void 0?r:[...r,w],branch:w===void 0?o:[...o,S],coerce:i,mask:c,message:n.message});for(const I of T)I[0]?(_=I[0].refinement!=null?"not_refined":"not_valid",yield[I[0],void 0]):i&&(S=I[1],w===void 0?e=S:e instanceof Map?e.set(w,S):e instanceof Set?e.add(S):oc(e)&&(S!==void 0||w in e)&&(e[w]=S))}if(_!=="not_valid")for(const w of t.refiner(e,g))w.explanation=n.message,_="not_refined",yield[w,void 0];_==="valid"&&(yield[void 0,e])}class Hs{constructor(t){const{type:n,schema:r,validator:o,refiner:i,coercer:c=_=>_,entries:g=function*(){}}=t;this.type=n,this.schema=r,this.entries=g,this.coercer=c,this.validator=o?(_,w)=>Cx(o(_,w),w,this,_):()=>[],this.refiner=i?(_,w)=>Cx(i(_,w),w,this,_):()=>[]}assert(t,n){return xx(t,this,n)}create(t,n){return Ax(t,this,n)}is(t){return Rp(t,this)}mask(t,n){return function(r,o,i){const c=eg(r,o,{coerce:!0,mask:!0,message:i});if(c[0])throw c[0];return c[1]}(t,this,n)}validate(t,n={}){return eg(t,this,n)}}function xx(e,t,n){const r=eg(e,t,{message:n});if(r[0])throw r[0]}function Ax(e,t,n){const r=eg(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function Rp(e,t){return!eg(e,t)[0]}function eg(e,t,n={}){const r=C5(e,t,n),o=function(i){const{done:c,value:g}=i.next();return c?void 0:g}(r);return o[0]?[new PF(o[0],function*(){for(const i of r)i[0]&&(yield i[0])}),void 0]:[void 0,o[1]]}function kd(e,t){return new Hs({type:e,schema:null,validator:t})}function Rx(e){let t;return new Hs({type:"lazy",schema:null,*entries(n,r){t??(t=e()),yield*t.entries(n,r)},validator:(n,r)=>(t??(t=e()),t.validator(n,r)),coercer:(n,r)=>(t??(t=e()),t.coercer(n,r)),refiner:(n,r)=>(t??(t=e()),t.refiner(n,r))})}function Tx(e){return new Hs({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[n,r]of t.entries())yield[n,r,e]},coercer:t=>Array.isArray(t)?t.slice():t,validator:t=>Array.isArray(t)||`Expected an array value, but received: ${ol(t)}`})}function Px(e){const t=ol(e),n=typeof e;return new Hs({type:"literal",schema:n==="string"||n==="number"||n==="boolean"?e:null,validator:r=>r===e||`Expected the literal \`${t}\`, but received: ${ol(r)}`})}function Lx(){return kd("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${ol(e)}`)}function Ix(e){const t=e?Object.keys(e):[],n=kd("never",()=>!1);return new Hs({type:"object",schema:e||null,*entries(r){if(e&&oc(r)){const o=new Set(Object.keys(r));for(const i of t)o.delete(i),yield[i,r[i],e[i]];for(const i of o)yield[i,r[i],n]}},validator:r=>oc(r)||`Expected an object, but received: ${ol(r)}`,coercer:r=>oc(r)?{...r}:r})}function Ox(e){return new Hs({...e,validator:(t,n)=>t===void 0||e.validator(t,n),refiner:(t,n)=>t===void 0||e.refiner(t,n)})}function Nx(e,t){return new Hs({type:"record",schema:null,*entries(n){if(oc(n))for(const r in n){const o=n[r];yield[r,r,e],yield[r,o,t]}},validator:n=>oc(n)||`Expected an object, but received: ${ol(n)}`})}function Md(){return kd("string",e=>typeof e=="string"||`Expected a string, but received: ${ol(e)}`)}function Jb(e){const t=e.map(n=>n.type).join(" | ");return new Hs({type:"union",schema:null,coercer(n){for(const r of e){const[o,i]=r.validate(n,{coerce:!0});if(!o)return i}return n},validator(n,r){const o=[];for(const i of e){const[...c]=C5(n,i,r),[g]=c;if(!g[0])return[];for(const[_]of c)_&&o.push(_)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${ol(n)}`,...o]}})}function IF(e){return function(t){return function(n){return typeof n=="object"&&n!==null&&"message"in n}(t)&&typeof t.message=="string"?t.message:function(n){return n==null}(t)?"":String(t)}(e).replace(/\.$/u,"")}function OF(e,t){var r,o;return n=e,typeof((o=(r=n==null?void 0:n.prototype)==null?void 0:r.constructor)==null?void 0:o.name)=="string"?new e({message:t}):e({message:t});var n}var NF=class extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}},tg=e=>Ix(e);function Dx({path:e,branch:t}){const n=e[e.length-1];return Xb(t[t.length-2],n)}function ey(e){return new Hs({...e,type:`optional ${e.type}`,validator:(t,n)=>!Dx(n)||e.validator(t,n),refiner:(t,n)=>!Dx(n)||e.refiner(t,n)})}var ty,Bx,jx,ny=Jb([Px(null),kd("boolean",e=>typeof e=="boolean"),kd("finite number",e=>Rp(e,Lx())&&Number.isFinite(e)),Md(),Tx(Rx(()=>ny)),Nx(Md(),Rx(()=>ny))]),ng=(ty=ny,Bx=kd("any",()=>!0),jx=e=>(function(t,n,r="Assertion failed",o=NF){try{xx(t,n)}catch(i){throw OF(o,`${r}: ${IF(i)}.`)}}(e,ny),JSON.parse(JSON.stringify(e,(t,n)=>{if(t!=="__proto__"&&t!=="constructor")return n}))),new Hs({...ty,coercer:(e,t)=>Rp(e,Bx)?ty.coercer(jx(e,t),t):ty.coercer(e,t)}));function x5(e){try{return function(t){Ax(t,ng)}(e),!0}catch{return!1}}var rg=Px("2.0"),ry=function(e){return new Hs({...e,validator:(t,n)=>t===null||e.validator(t,n),refiner:(t,n)=>t===null||e.refiner(t,n)})}(Jb([Lx(),Md()])),A5=tg({code:kd("integer",e=>typeof e=="number"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${ol(e)}`),message:Md(),data:ey(ng),stack:ey(Md())}),zx=Jb([Nx(Md(),ng),Tx(ng)]),DF=tg({id:ry,jsonrpc:rg,method:Md(),params:ey(zx)}),BF=tg({jsonrpc:rg,method:Md(),params:ey(zx)});function Ux(e){return Rp(e,DF)}function Fx(e){return Rp(e,A5)}Ix({id:ry,jsonrpc:rg,result:Ox(kd("unknown",()=>!0)),error:Ox(A5)}),Jb([tg({id:ry,jsonrpc:rg,result:ng}),tg({id:ry,jsonrpc:rg,error:A5})]);var Kx,qx,R5={exports:{}};function jF(){if(qx)return Kx;qx=1;var e=1e3,t=60*e,n=60*t,r=24*n,o=7*r,i=365.25*r;function c(g,_,w,S){var E=_>=1.5*w;return Math.round(g/w)+" "+S+(E?"s":"")}return Kx=function(g,_){_=_||{};var w=typeof g;if(w==="string"&&g.length>0)return function(S){if(!((S=String(S)).length>100)){var E=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(S);if(E){var T=parseFloat(E[1]);switch((E[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return T*i;case"weeks":case"week":case"w":return T*o;case"days":case"day":case"d":return T*r;case"hours":case"hour":case"hrs":case"hr":case"h":return T*n;case"minutes":case"minute":case"mins":case"min":case"m":return T*t;case"seconds":case"second":case"secs":case"sec":case"s":return T*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return T;default:return}}}}(g);if(w==="number"&&isFinite(g))return _.long?function(S){var E=Math.abs(S);return E>=r?c(S,E,r,"day"):E>=n?c(S,E,n,"hour"):E>=t?c(S,E,t,"minute"):E>=e?c(S,E,e,"second"):S+" ms"}(g):function(S){var E=Math.abs(S);return E>=r?Math.round(S/r)+"d":E>=n?Math.round(S/n)+"h":E>=t?Math.round(S/t)+"m":E>=e?Math.round(S/e)+"s":S+"ms"}(g);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(g))}}var zF=function(e){function t(o){let i,c,g,_=null;function w(...S){if(!w.enabled)return;const E=w,T=Number(new Date),I=T-(i||T);E.diff=I,E.prev=i,E.curr=T,i=T,S[0]=t.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let j=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(H,V)=>{if(H==="%%")return"%";j++;const ee=t.formatters[V];if(typeof ee=="function"){const X=S[j];H=ee.call(E,X),S.splice(j,1),j--}return H}),t.formatArgs.call(E,S),(E.log||t.log).apply(E,S)}return w.namespace=o,w.useColors=t.useColors(),w.color=t.selectColor(o),w.extend=n,w.destroy=t.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>_!==null?_:(c!==t.namespaces&&(c=t.namespaces,g=t.enabled(o)),g),set:S=>{_=S}}),typeof t.init=="function"&&t.init(w),w}function n(o,i){const c=t(this.namespace+(i===void 0?":":i)+o);return c.log=this.log,c}function r(o){return o.toString().substring(2,o.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(o){return o instanceof Error?o.stack||o.message:o},t.disable=function(){const o=[...t.names.map(r),...t.skips.map(r).map(i=>"-"+i)].join(",");return t.enable(""),o},t.enable=function(o){let i;t.save(o),t.namespaces=o,t.names=[],t.skips=[];const c=(typeof o=="string"?o:"").split(/[\s,]+/),g=c.length;for(i=0;i<g;i++)c[i]&&((o=c[i].replace(/\*/g,".*?"))[0]==="-"?t.skips.push(new RegExp("^"+o.slice(1)+"$")):t.names.push(new RegExp("^"+o+"$")))},t.enabled=function(o){if(o[o.length-1]==="*")return!0;let i,c;for(i=0,c=t.skips.length;i<c;i++)if(t.skips[i].test(o))return!1;for(i=0,c=t.names.length;i<c;i++)if(t.names[i].test(o))return!0;return!1},t.humanize=jF(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(o=>{t[o]=e[o]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(o){let i=0;for(let c=0;c<o.length;c++)i=(i<<5)-i+o.charCodeAt(c),i|=0;return t.colors[Math.abs(i)%t.colors.length]},t.enable(t.load()),t};(function(e,t){t.formatArgs=function(r){if(r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const o="color: "+this.color;r.splice(1,0,o,"color: inherit");let i=0,c=0;r[0].replace(/%[a-zA-Z%]/g,g=>{g!=="%%"&&(i++,g==="%c"&&(c=i))}),r.splice(c,0,o)},t.save=function(r){try{r?t.storage.setItem("debug",r):t.storage.removeItem("debug")}catch{}},t.load=function(){let r;try{r=t.storage.getItem("debug")}catch{}return!r&&vr!==void 0&&"env"in vr&&(r=vr.env.DEBUG),r},t.useColors=function(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch{}}(),t.destroy=(()=>{let r=!1;return()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=zF(t);const{formatters:n}=e.exports;n.j=function(r){try{return JSON.stringify(r)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}}})(R5,R5.exports);var iy=td(R5.exports),Hx=Ed.internal,UF="Unspecified error message. This is a bug, please report it.",FF={code:Hx,message:Wx(Hx)},KF="Unspecified server error.";function Wx(e,t=UF){if(function(n){return Number.isInteger(n)}(e)){const n=e.toString();if(Xb(kx,n))return kx[n].message;if(function(r){return r>=-32099&&r<=-32e3}(e))return KF}return t}function $x(e,{fallbackError:t=FF,shouldIncludeStack:n=!0}={}){if(!Fx(t))throw new Error("Must provide fallback error with integer number code and string message.");const r=function(o,i){if(o&&typeof o=="object"&&"serialize"in o&&typeof o.serialize=="function")return o.serialize();if(Fx(o))return o;const c=Vx(o);return{...i,data:{cause:c}}}(e,t);return n||delete r.stack,r}function Vx(e){return Array.isArray(e)?e.map(t=>x5(t)?t:Mx(t)?Yx(t):null):Mx(e)?Yx(e):x5(e)?e:null}function Yx(e){return Object.getOwnPropertyNames(e).reduce((t,n)=>{const r=e[n];return x5(r)&&(t[n]=r),t},{})}var Gx=ig;ig.default=ig,ig.stable=Xx,ig.stableStringify=Xx;var oy="[...]",Zx="[Circular]",vh=[],bh=[];function Qx(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function ig(e,t,n,r){var o;r===void 0&&(r=Qx()),T5(e,"",0,[],void 0,0,r);try{o=bh.length===0?JSON.stringify(e,t,n):JSON.stringify(e,Jx(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;vh.length!==0;){var i=vh.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return o}function Tp(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);o.get!==void 0?o.configurable?(Object.defineProperty(r,n,{value:e}),vh.push([r,n,t,o])):bh.push([t,n,e]):(r[n]=e,vh.push([r,n,t]))}function T5(e,t,n,r,o,i,c){var g;if(i+=1,typeof e=="object"&&e!==null){for(g=0;g<r.length;g++)if(r[g]===e)return void Tp(Zx,e,t,o);if(c.depthLimit!==void 0&&i>c.depthLimit||c.edgesLimit!==void 0&&n+1>c.edgesLimit)return void Tp(oy,e,t,o);if(r.push(e),Array.isArray(e))for(g=0;g<e.length;g++)T5(e[g],g,g,r,e,i,c);else{var _=Object.keys(e);for(g=0;g<_.length;g++){var w=_[g];T5(e[w],w,g,r,e,i,c)}}r.pop()}}function qF(e,t){return e<t?-1:e>t?1:0}function Xx(e,t,n,r){r===void 0&&(r=Qx());var o,i=P5(e,"",0,[],void 0,0,r)||e;try{o=bh.length===0?JSON.stringify(i,t,n):JSON.stringify(i,Jx(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;vh.length!==0;){var c=vh.pop();c.length===4?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return o}function P5(e,t,n,r,o,i,c){var g;if(i+=1,typeof e=="object"&&e!==null){for(g=0;g<r.length;g++)if(r[g]===e)return void Tp(Zx,e,t,o);try{if(typeof e.toJSON=="function")return}catch{return}if(c.depthLimit!==void 0&&i>c.depthLimit||c.edgesLimit!==void 0&&n+1>c.edgesLimit)return void Tp(oy,e,t,o);if(r.push(e),Array.isArray(e))for(g=0;g<e.length;g++)P5(e[g],g,g,r,e,i,c);else{var _={},w=Object.keys(e).sort(qF);for(g=0;g<w.length;g++){var S=w[g];P5(e[S],S,g,r,e,i,c),_[S]=e[S]}if(o===void 0)return _;vh.push([o,t,e]),o[t]=_}r.pop()}}function Jx(e){return e=e!==void 0?e:function(t,n){return n},function(t,n){if(bh.length>0)for(var r=0;r<bh.length;r++){var o=bh[r];if(o[1]===t&&o[0]===n){n=o[2],bh.splice(r,1);break}}return e.call(this,t,n)}}var HF=td(Gx),ac=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||typeof t!="string")throw new Error('"message" must be a non-empty string.');super(t),this.code=e,n!==void 0&&(this.data=n)}serialize(){const e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data,function(t){if(typeof t!="object"||t===null)return!1;try{let n=t;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(t)===n}catch{return!1}}(this.data)&&(e.data.cause=Vx(this.data.cause))),this.stack&&(e.stack=this.stack),e}toString(){return HF(this.serialize(),WF,2)}};function WF(e,t){if(t!=="[Circular]")return t}var og=e=>$F(Ed.invalidRequest,e);function $F(e,t){const[n,r]=function(o){if(o){if(typeof o=="string")return[o];if(typeof o=="object"&&!Array.isArray(o)){const{message:i,data:c}=o;if(i&&typeof i!="string")throw new Error("Must specify string message.");return[i??void 0,c]}}return[]}(t);return new ac(e,n??Wx(e),r)}var eA={};Object.defineProperty(eA,"__esModule",{value:!0});const VF=t4;function tA(e,t,n){try{Reflect.apply(e,t,n)}catch(r){setTimeout(()=>{throw r})}}let YF=class extends VF.EventEmitter{emit(e,...t){let n=e==="error";const r=this._events;if(r!==void 0)n=n&&r.error===void 0;else if(!n)return!1;if(n){let i;if(t.length>0&&([i]=t),i instanceof Error)throw i;const c=new Error("Unhandled error."+(i?` (${i.message})`:""));throw c.context=i,c}const o=r[e];if(o===void 0)return!1;if(typeof o=="function")tA(o,this,t);else{const i=o.length,c=function(g){const _=g.length,w=new Array(_);for(let S=0;S<_;S+=1)w[S]=g[S];return w}(o);for(let g=0;g<i;g+=1)tA(c[g],this,t)}return!0}};var ay,Cd,Pp,ag,sy,uy,L5,ly,I5,O5,nA,cy,N5,D5,rA,sg,dy,B5,iA,oA=eA.default=YF,Ws=class K6 extends oA{constructor({notificationHandler:t}={}){super(),qs(this,ag),qs(this,uy),qs(this,ly),qs(this,ay,!1),qs(this,Cd,void 0),qs(this,Pp,void 0),Qb(this,Cd,[]),Qb(this,Pp,t)}destroy(){Sd(this,Cd).forEach(t=>{"destroy"in t&&typeof t.destroy=="function"&&t.destroy()}),Qb(this,Cd,[]),Qb(this,ay,!0)}push(t){Mo(this,ag,sy).call(this),Sd(this,Cd).push(t)}handle(t,n){if(Mo(this,ag,sy).call(this),n&&typeof n!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(t)?n?Mo(this,uy,L5).call(this,t,n):Mo(this,uy,L5).call(this,t):n?Mo(this,ly,I5).call(this,t,n):this._promiseHandle(t)}asMiddleware(){return Mo(this,ag,sy).call(this),async(t,n,r,o)=>{var i,c;try{const[g,_,w]=await Mo(i=K6,cy,N5).call(i,t,n,Sd(this,Cd));return _?(await Mo(c=K6,sg,dy).call(c,w),o(g)):r(async S=>{var E;try{await Mo(E=K6,sg,dy).call(E,w)}catch(T){return S(T)}return S()})}catch(g){return o(g)}}}async _promiseHandle(t){return new Promise((n,r)=>{Mo(this,ly,I5).call(this,t,(o,i)=>{o&&i===void 0?r(o):n(i)}).catch(r)})}};ay=new WeakMap,Cd=new WeakMap,Pp=new WeakMap,ag=new WeakSet,sy=function(){if(Sd(this,ay))throw new Error("This engine is destroyed and can no longer be used.")},uy=new WeakSet,L5=async function(e,t){try{if(e.length===0){const r=[{id:null,jsonrpc:"2.0",error:new ac(Ed.invalidRequest,"Request batch must contain plain objects. Received an empty array")}];return t?t(null,r):r}const n=(await Promise.all(e.map(this._promiseHandle.bind(this)))).filter(r=>r!==void 0);return t?t(null,n):n}catch(n){if(t)return t(n);throw n}},ly=new WeakSet,I5=async function(e,t){var n;if(!e||Array.isArray(e)||typeof e!="object"){const c=new ac(Ed.invalidRequest,"Requests must be plain objects. Received: "+typeof e,{request:e});return t(c,{id:null,jsonrpc:"2.0",error:c})}if(typeof e.method!="string"){const c=new ac(Ed.invalidRequest,"Must specify a string method. Received: "+typeof e.method,{request:e});return Sd(this,Pp)&&!Ux(e)?t(null):t(c,{id:e.id??null,jsonrpc:"2.0",error:c})}if(Sd(this,Pp)&&function(c){return Rp(c,BF)}(e)&&!Ux(e)){try{await Sd(this,Pp).call(this,e)}catch(c){return t(c)}return t(null)}let r=null;const o={...e},i={id:o.id,jsonrpc:o.jsonrpc};try{await Mo(n=Ws,O5,nA).call(n,o,i,Sd(this,Cd))}catch(c){r=c}return r&&(delete i.result,i.error||(i.error=$x(r))),t(r,i)},O5=new WeakSet,nA=async function(e,t,n){var r,o,i;const[c,g,_]=await Mo(r=Ws,cy,N5).call(r,e,t,n);if(Mo(o=Ws,B5,iA).call(o,e,t,g),await Mo(i=Ws,sg,dy).call(i,_),c)throw c},cy=new WeakSet,N5=async function(e,t,n){var r;const o=[];let i=null,c=!1;for(const g of n)if([i,c]=await Mo(r=Ws,D5,rA).call(r,e,t,g,o),c)break;return[i,c,o.reverse()]},D5=new WeakSet,rA=async function(e,t,n,r){return new Promise(o=>{const i=g=>{const _=g||t.error;_&&(t.error=$x(_)),o([_,!0])},c=g=>{t.error?i(t.error):(g&&(typeof g!="function"&&i(new ac(Ed.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof g}" for request:
29
+ ${j5(e)}`,{request:e})),r.push(g)),o([null,!1]))};try{n(e,t,c,i)}catch(g){i(g)}})},sg=new WeakSet,dy=async function(e){for(const t of e)await new Promise((n,r)=>{t(o=>o?r(o):n())})},B5=new WeakSet,iA=function(e,t,n){if(!Xb(t,"result")&&!Xb(t,"error"))throw new ac(Ed.internal,`JsonRpcEngine: Response has no error or result for request:
30
+ ${j5(e)}`,{request:e});if(!n)throw new ac(Ed.internal,`JsonRpcEngine: Nothing ended request:
31
+ ${j5(e)}`,{request:e})},qs(Ws,O5),qs(Ws,cy),qs(Ws,D5),qs(Ws,sg),qs(Ws,B5);var GF=Ws;function j5(e){return JSON.stringify(e,null,2)}var aA=Object.freeze(["eth_subscription"]),ZF=(e=console)=>[TF(),QF(e),RF(e)];function QF(e){return(t,n,r)=>{typeof t.method=="string"&&t.method||(n.error=og({message:"The request 'method' must be a non-empty string.",data:t})),r(o=>{const{error:i}=n;return i&&e.error(`MetaMask - RPC Error: ${i.message}`,i),o()})}}var fy=(e,t,n=!0)=>(r,o)=>{r||o.error?t(r||o.error):!n||Array.isArray(o)?e(o):e(o.result)},sA=e=>!!e&&typeof e=="string"&&e.startsWith("0x"),uA=()=>{};async function lA(e,t){try{const n=await async function(){return{name:XF(window),icon:await JF(window)}}();e.handle({jsonrpc:"2.0",id:1,method:"metamask_sendDomainMetadata",params:n},uA)}catch(n){t.error({message:Zr.errors.sendSiteMetadata(),originalError:n})}}function XF(e){const{document:t}=e,n=t.querySelector('head > meta[property="og:site_name"]');if(n)return n.content;const r=t.querySelector('head > meta[name="title"]');return r?r.content:t.title&&t.title.length>0?t.title:window.location.hostname}async function JF(e){const{document:t}=e,n=t.querySelectorAll('head > link[rel~="icon"]');for(const r of Array.from(n))if(r&&await eK(r.href))return r.href;return null}async function eK(e){return new Promise((t,n)=>{try{const r=document.createElement("img");r.onload=()=>t(!0),r.onerror=()=>t(!1),r.src=e}catch(r){n(r)}})}var cA=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},al=(e,t,n)=>(cA(e,t,"read from private field"),n?n.call(e):t.get(e)),z5=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},sc=(e,t,n,r)=>(cA(e,t,"write to private field"),t.set(e,n),n);function dA(e,t,n){try{Reflect.apply(e,t,n)}catch(r){setTimeout(()=>{throw r})}}class tK extends Nn{emit(t,...n){let r=t==="error";const o=this._events;if(o!==void 0)r=r&&o.error===void 0;else if(!r)return!1;if(r){let c;if(n.length>0&&([c]=n),c instanceof Error)throw c;const g=new Error("Unhandled error."+(c?` (${c.message})`:""));throw g.context=c,g}const i=o[t];if(i===void 0)return!1;if(typeof i=="function")dA(i,this,n);else{const c=i.length,g=function(_){const w=_.length,S=new Array(w);for(let E=0;E<w;E+=1)S[E]=_[E];return S}(i);for(let _=0;_<c;_+=1)dA(g[_],this,n)}return!0}}var xd,yh,nK=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;o--!=0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;o--!=0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!=0;){var c=i[o];if(!e(t[c],n[c]))return!1}return!0}return t!=t&&n!=n},rK=td(nK),fA=class TL extends tK{constructor({logger:t=console,maxEventListeners:n=100,rpcMiddleware:r=[]}={}){super(),z5(this,xd,void 0),z5(this,yh,void 0),this._log=t,this.setMaxListeners(n),this._state={...TL._defaultState},sc(this,yh,null),sc(this,xd,null),this._handleAccountsChanged=this._handleAccountsChanged.bind(this),this._handleConnect=this._handleConnect.bind(this),this._handleChainChanged=this._handleChainChanged.bind(this),this._handleDisconnect=this._handleDisconnect.bind(this),this._handleUnlockStateChanged=this._handleUnlockStateChanged.bind(this),this._rpcRequest=this._rpcRequest.bind(this),this.request=this.request.bind(this);const o=new GF;r.forEach(i=>o.push(i)),this._rpcEngine=o}get chainId(){return al(this,xd)}get selectedAddress(){return al(this,yh)}isConnected(){return this._state.isConnected}async request(t){if(!t||typeof t!="object"||Array.isArray(t))throw og({message:Zr.errors.invalidRequestArgs(),data:t});const{method:n,params:r}=t;if(typeof n!="string"||n.length===0)throw og({message:Zr.errors.invalidRequestMethod(),data:t});if(r!==void 0&&!Array.isArray(r)&&(typeof r!="object"||r===null))throw og({message:Zr.errors.invalidRequestParams(),data:t});const o=r==null?{method:n}:{method:n,params:r};return new Promise((i,c)=>{this._rpcRequest(o,fy(i,c))})}_initializeState(t){if(this._state.initialized)throw new Error("Provider already initialized.");if(t){const{accounts:n,chainId:r,isUnlocked:o,networkVersion:i}=t;this._handleConnect(r),this._handleChainChanged({chainId:r,networkVersion:i}),this._handleUnlockStateChanged({accounts:n,isUnlocked:o}),this._handleAccountsChanged(n)}this._state.initialized=!0,this.emit("_initialized")}_rpcRequest(t,n){let r=n;return Array.isArray(t)||(t.jsonrpc||(t.jsonrpc="2.0"),t.method!=="eth_accounts"&&t.method!=="eth_requestAccounts"||(r=(o,i)=>{this._handleAccountsChanged(i.result??[],t.method==="eth_accounts"),n(o,i)})),this._rpcEngine.handle(t,r)}_handleConnect(t){this._state.isConnected||(this._state.isConnected=!0,this.emit("connect",{chainId:t}),this._log.debug(Zr.info.connected(t)))}_handleDisconnect(t,n){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!t){let r;this._state.isConnected=!1,t?(r=new ac(1013,n??Zr.errors.disconnected()),this._log.debug(r)):(r=new ac(1011,n??Zr.errors.permanentlyDisconnected()),this._log.error(r),sc(this,xd,null),this._state.accounts=null,sc(this,yh,null),this._state.isUnlocked=!1,this._state.isPermanentlyDisconnected=!0),this.emit("disconnect",r)}}_handleChainChanged({chainId:t}={}){sA(t)?(this._handleConnect(t),t!==al(this,xd)&&(sc(this,xd,t),this._state.initialized&&this.emit("chainChanged",al(this,xd)))):this._log.error(Zr.errors.invalidNetworkParams(),{chainId:t})}_handleAccountsChanged(t,n=!1){let r=t;Array.isArray(t)||(this._log.error("MetaMask: Received invalid accounts parameter. Please report this bug.",t),r=[]);for(const o of t)if(typeof o!="string"){this._log.error("MetaMask: Received non-string account. Please report this bug.",t),r=[];break}if(!rK(this._state.accounts,r)&&(n&&this._state.accounts!==null&&this._log.error("MetaMask: 'eth_accounts' unexpectedly updated accounts. Please report this bug.",r),this._state.accounts=r,al(this,yh)!==r[0]&&sc(this,yh,r[0]||null),this._state.initialized)){const o=[...r];this.emit("accountsChanged",o)}}_handleUnlockStateChanged({accounts:t,isUnlocked:n}={}){typeof n=="boolean"?n!==this._state.isUnlocked&&(this._state.isUnlocked=n,this._handleAccountsChanged(t??[])):this._log.error("MetaMask: Received invalid isUnlocked parameter. Please report this bug.")}};xd=new WeakMap,yh=new WeakMap,fA._defaultState={accounts:null,isConnected:!1,isUnlocked:!1,initialized:!1,isPermanentlyDisconnected:!1};var iK=fA;function oK(e={}){const t={},n=new ad.Duplex({objectMode:!0,read:()=>{},write:function(i,c,g){let _=null;try{i.id?function(w){const{id:S}=w;if(S===null)return;const E=t[S];if(!E)return void console.warn(`StreamMiddleware - Unknown response id "${S}"`);delete t[S],Object.assign(E.res,w),setTimeout(E.end)}(i):function(w){e!=null&&e.retryOnMessage&&w.method===e.retryOnMessage&&Object.values(t).forEach(({req:S,retryCount:E=0})=>{if(!S.id)return;if(E>=3)throw new Error(`StreamMiddleware - Retry limit exceeded for request id "${S.id}"`);const T=t[S.id];T&&(T.retryCount=E+1),o(S)}),r.emit("notification",w)}(i)}catch(w){_=w}g(_)}}),r=new oA;return{events:r,middleware:(i,c,g,_)=>{t[i.id]={req:i,res:c,next:g,end:_},o(i)},stream:n};function o(i){n.push(i)}}var hy={},U5={exports:{}},aK=function e(t,n){if(t&&n)return e(t)(n);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(o){r[o]=t[o]}),r;function r(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];var c=t.apply(this,o),g=o[o.length-1];return typeof c=="function"&&c!==g&&Object.keys(g).forEach(function(_){c[_]=g[_]}),c}},hA=aK;function py(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function pA(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}U5.exports=hA(py),U5.exports.strict=hA(pA),py.proto=py(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return py(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return pA(this)},configurable:!0})});var sK=U5.exports,my={};Object.defineProperty(my,"__esModule",{value:!0}),my.Substream=void 0;const uK=ad;class lK extends uK.Duplex{constructor({parent:t,name:n}){super({objectMode:!0}),this._parent=t,this._name=n}_read(){}_write(t,n,r){this._parent.push({name:this._name,data:t}),r()}}my.Substream=lK;var cK=En&&En.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hy,"__esModule",{value:!0}),hy.ObjectMultiplex=void 0;const F5=ad,dK=cK(sK),fK=my,mA=Symbol("IGNORE_SUBSTREAM");let hK=class extends F5.Duplex{constructor(e={}){super(Object.assign(Object.assign({},e),{objectMode:!0})),this._substreams={}}createStream(e){if(this.destroyed)throw new Error(`ObjectMultiplex - parent stream for name "${e}" already destroyed`);if(this._readableState.ended||this._writableState.ended)throw new Error(`ObjectMultiplex - parent stream for name "${e}" already ended`);if(!e)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw new Error(`ObjectMultiplex - Substream for name "${e}" already exists`);const t=new fK.Substream({parent:this,name:e});return this._substreams[e]=t,function(n,r){const o=(0,dK.default)(r);(0,F5.finished)(n,{readable:!1},o),(0,F5.finished)(n,{writable:!1},o)}(this,n=>t.destroy(n||void 0)),t}ignoreStream(e){if(!e)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw new Error(`ObjectMultiplex - Substream for name "${e}" already exists`);this._substreams[e]=mA}_read(){}_write(e,t,n){const{name:r,data:o}=e;if(!r)return console.warn(`ObjectMultiplex - malformed chunk without name "${e}"`),n();const i=this._substreams[r];return i?(i!==mA&&i.push(o),n()):(console.warn(`ObjectMultiplex - orphaned data for stream "${r}"`),n())}};hy.ObjectMultiplex=hK;var pK=td(hy.ObjectMultiplex);const sl=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";sl.writable=e=>sl(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object",sl.readable=e=>sl(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object",sl.duplex=e=>sl.writable(e)&&sl.readable(e),sl.transform=e=>sl.duplex(e)&&typeof e._transform=="function";var ul,mK=sl,gK=class extends iK{constructor(e,{jsonRpcStreamName:t,logger:n=console,maxEventListeners:r=100,rpcMiddleware:o=[]}){if(super({logger:n,maxEventListeners:r,rpcMiddleware:o}),!mK.duplex(e))throw new Error(Zr.errors.invalidDuplexStream());this._handleStreamDisconnect=this._handleStreamDisconnect.bind(this);const i=new pK;ad.pipeline(e,i,e,this._handleStreamDisconnect.bind(this,"MetaMask")),this._jsonRpcConnection=oK({retryOnMessage:"METAMASK_EXTENSION_CONNECT_CAN_RETRY"}),ad.pipeline(this._jsonRpcConnection.stream,i.createStream(t),this._jsonRpcConnection.stream,this._handleStreamDisconnect.bind(this,"MetaMask RpcProvider")),this._rpcEngine.push(this._jsonRpcConnection.middleware),this._jsonRpcConnection.events.on("notification",c=>{const{method:g,params:_}=c;g==="metamask_accountsChanged"?this._handleAccountsChanged(_):g==="metamask_unlockStateChanged"?this._handleUnlockStateChanged(_):g==="metamask_chainChanged"?this._handleChainChanged(_):aA.includes(g)?this.emit("message",{type:g,data:_}):g==="METAMASK_STREAM_FAILURE"&&e.destroy(new Error(Zr.errors.permanentlyDisconnected()))})}async _initializeStateAsync(){let e;try{e=await this.request({method:"metamask_getProviderState"})}catch(t){this._log.error("MetaMask: Failed to get initial state. Please report this bug.",t)}this._initializeState(e)}_handleStreamDisconnect(e,t){let n=`MetaMask: Lost connection to "${e}".`;t!=null&&t.stack&&(n+=`
32
+ ${t.stack}`),this._log.warn(n),this.listenerCount("error")>0&&this.emit("error",n),this._handleDisconnect(!1,t?t.message:void 0)}_handleChainChanged({chainId:e,networkVersion:t}={}){sA(e)&&(n=>!!n&&typeof n=="string")(t)?t==="loading"?this._handleDisconnect(!0):super._handleChainChanged({chainId:e}):this._log.error(Zr.errors.invalidNetworkParams(),{chainId:e,networkVersion:t})}},vK=class extends gK{constructor(e,{jsonRpcStreamName:t="metamask-provider",logger:n=console,maxEventListeners:r=100,shouldSendMetadata:o}={}){if(super(e,{jsonRpcStreamName:t,logger:n,maxEventListeners:r,rpcMiddleware:ZF(n)}),this._sentWarnings={chainId:!1,networkVersion:!1,selectedAddress:!1,enable:!1,experimentalMethods:!1,send:!1,events:{close:!1,data:!1,networkChanged:!1,notification:!1}},z5(this,ul,void 0),this._initializeStateAsync(),sc(this,ul,null),this.isMetaMask=!0,this._sendSync=this._sendSync.bind(this),this.enable=this.enable.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this._warnOfDeprecation=this._warnOfDeprecation.bind(this),this._metamask=this._getExperimentalApi(),this._jsonRpcConnection.events.on("notification",i=>{const{method:c}=i;aA.includes(c)&&(this.emit("data",i),this.emit("notification",i.params.result))}),o)if(document.readyState==="complete")lA(this._rpcEngine,this._log);else{const i=()=>{lA(this._rpcEngine,this._log),window.removeEventListener("DOMContentLoaded",i)};window.addEventListener("DOMContentLoaded",i)}}get chainId(){return this._sentWarnings.chainId||(this._log.warn(Zr.warnings.chainIdDeprecation),this._sentWarnings.chainId=!0),super.chainId}get networkVersion(){return this._sentWarnings.networkVersion||(this._log.warn(Zr.warnings.networkVersionDeprecation),this._sentWarnings.networkVersion=!0),al(this,ul)}get selectedAddress(){return this._sentWarnings.selectedAddress||(this._log.warn(Zr.warnings.selectedAddressDeprecation),this._sentWarnings.selectedAddress=!0),super.selectedAddress}sendAsync(e,t){this._rpcRequest(e,t)}addListener(e,t){return this._warnOfDeprecation(e),super.addListener(e,t)}on(e,t){return this._warnOfDeprecation(e),super.on(e,t)}once(e,t){return this._warnOfDeprecation(e),super.once(e,t)}prependListener(e,t){return this._warnOfDeprecation(e),super.prependListener(e,t)}prependOnceListener(e,t){return this._warnOfDeprecation(e),super.prependOnceListener(e,t)}_handleDisconnect(e,t){super._handleDisconnect(e,t),al(this,ul)&&!e&&sc(this,ul,null)}_warnOfDeprecation(e){var t;((t=this._sentWarnings)==null?void 0:t.events[e])===!1&&(this._log.warn(Zr.warnings.events[e]),this._sentWarnings.events[e]=!0)}async enable(){return this._sentWarnings.enable||(this._log.warn(Zr.warnings.enableDeprecation),this._sentWarnings.enable=!0),new Promise((e,t)=>{try{this._rpcRequest({method:"eth_requestAccounts",params:[]},fy(e,t))}catch(n){t(n)}})}send(e,t){return this._sentWarnings.send||(this._log.warn(Zr.warnings.sendDeprecation),this._sentWarnings.send=!0),typeof e!="string"||t&&!Array.isArray(t)?e&&typeof e=="object"&&typeof t=="function"?this._rpcRequest(e,t):this._sendSync(e):new Promise((n,r)=>{try{this._rpcRequest({method:e,params:t},fy(n,r,!1))}catch(o){r(o)}})}_sendSync(e){let t;switch(e.method){case"eth_accounts":t=this.selectedAddress?[this.selectedAddress]:[];break;case"eth_coinbase":t=this.selectedAddress??null;break;case"eth_uninstallFilter":this._rpcRequest(e,uA),t=!0;break;case"net_version":t=al(this,ul)??null;break;default:throw new Error(Zr.errors.unsupportedSync(e.method))}return{id:e.id,jsonrpc:e.jsonrpc,result:t}}_getExperimentalApi(){return new Proxy({isUnlocked:async()=>(this._state.initialized||await new Promise(e=>{this.on("_initialized",()=>e())}),this._state.isUnlocked),requestBatch:async e=>{if(!Array.isArray(e))throw og({message:"Batch requests must be made with an array of request objects.",data:e});return new Promise((t,n)=>{this._rpcRequest(e,fy(t,n))})}},{get:(e,t,...n)=>(this._sentWarnings.experimentalMethods||(this._log.warn(Zr.warnings.experimentalMethods),this._sentWarnings.experimentalMethods=!0),Reflect.get(e,t,...n))})}_handleChainChanged({chainId:e,networkVersion:t}={}){super._handleChainChanged({chainId:e,networkVersion:t}),this._state.isConnected&&t!==al(this,ul)&&(sc(this,ul,t),this._state.initialized&&this.emit("networkChanged",al(this,ul)))}};ul=new WeakMap;const Ze=iy("MM_SDK");Ze.color="#FFAC1C";var gA={},Ad={};Object.defineProperty(Ad,"__esModule",{value:!0}),Ad.EthereumProviderError=Ad.EthereumRpcError=void 0;const bK=Gx;class vA extends Error{constructor(t,n,r){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!n||typeof n!="string")throw new Error('"message" must be a nonempty string.');super(n),this.code=t,r!==void 0&&(this.data=r)}serialize(){const t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return bK.default(this.serialize(),yK,2)}}Ad.EthereumRpcError=vA;function yK(e,t){if(t!=="[Circular]")return t}Ad.EthereumProviderError=class extends vA{constructor(e,t,n){if(!function(r){return Number.isInteger(r)&&r>=1e3&&r<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};var K5={},Rd={};Object.defineProperty(Rd,"__esModule",{value:!0}),Rd.errorValues=Rd.errorCodes=void 0,Rd.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},Rd.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=Rd,n=Ad,r=t.errorCodes.rpc.internal,o="Unspecified error message. This is a bug, please report it.",i={code:r,message:c(r)};function c(E,T=o){if(Number.isInteger(E)){const I=E.toString();if(S(t.errorValues,I))return t.errorValues[I].message;if(_(E))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return T}function g(E){if(!Number.isInteger(E))return!1;const T=E.toString();return!!t.errorValues[T]||!!_(E)}function _(E){return E>=-32099&&E<=-32e3}function w(E){return E&&typeof E=="object"&&!Array.isArray(E)?Object.assign({},E):E}function S(E,T){return Object.prototype.hasOwnProperty.call(E,T)}e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",e.getMessageFromCode=c,e.isValidCode=g,e.serializeError=function(E,{fallbackError:T=i,shouldIncludeStack:I=!1}={}){var j,H;if(!T||!Number.isInteger(T.code)||typeof T.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(E instanceof n.EthereumRpcError)return E.serialize();const V={};if(E&&typeof E=="object"&&!Array.isArray(E)&&S(E,"code")&&g(E.code)){const X=E;V.code=X.code,X.message&&typeof X.message=="string"?(V.message=X.message,S(X,"data")&&(V.data=X.data)):(V.message=c(V.code),V.data={originalError:w(E)})}else{V.code=T.code;const X=(j=E)===null||j===void 0?void 0:j.message;V.message=X&&typeof X=="string"?X:T.message,V.data={originalError:w(E)}}const ee=(H=E)===null||H===void 0?void 0:H.stack;return I&&E&&ee&&typeof ee=="string"&&(V.stack=ee),V}}(K5);var gy={};Object.defineProperty(gy,"__esModule",{value:!0}),gy.ethErrors=void 0;const q5=Ad,bA=K5,fo=Rd;function ns(e,t){const[n,r]=yA(t);return new q5.EthereumRpcError(e,n||bA.getMessageFromCode(e),r)}function ug(e,t){const[n,r]=yA(t);return new q5.EthereumProviderError(e,n||bA.getMessageFromCode(e),r)}function yA(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:n}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t||void 0,n]}}return[]}gy.ethErrors={rpc:{parse:e=>ns(fo.errorCodes.rpc.parse,e),invalidRequest:e=>ns(fo.errorCodes.rpc.invalidRequest,e),invalidParams:e=>ns(fo.errorCodes.rpc.invalidParams,e),methodNotFound:e=>ns(fo.errorCodes.rpc.methodNotFound,e),internal:e=>ns(fo.errorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return ns(t,e)},invalidInput:e=>ns(fo.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>ns(fo.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>ns(fo.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>ns(fo.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>ns(fo.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>ns(fo.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>ug(fo.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>ug(fo.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>ug(fo.errorCodes.provider.unsupportedMethod,e),disconnected:e=>ug(fo.errorCodes.provider.disconnected,e),chainDisconnected:e=>ug(fo.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:n,data:r}=e;if(!n||typeof n!="string")throw new Error('"message" must be a nonempty string');return new q5.EthereumProviderError(t,n,r)}}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const t=Ad;Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return t.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return t.EthereumProviderError}});const n=K5;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return n.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return n.getMessageFromCode}});const r=gy;Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return r.ethErrors}});const o=Rd;Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return o.errorCodes}})}(gA);const vn={METAMASK_GETPROVIDERSTATE:"metamask_getProviderState",METAMASK_CONNECTSIGN:"metamask_connectSign",METAMASK_CONNECTWITH:"metamask_connectWith",METAMASK_OPEN:"metamask_open",METAMASK_BATCH:"metamask_batch",PERSONAL_SIGN:"personal_sign",WALLET_REQUESTPERMISSIONS:"wallet_requestPermissions",WALLET_REVOKEPERMISSIONS:"wallet_revokePermissions",WALLET_GETPERMISSIONS:"wallet_getPermissions",WALLET_WATCHASSET:"wallet_watchAsset",WALLET_ADDETHEREUMCHAIN:"wallet_addEthereumChain",WALLET_SWITCHETHETHEREUMCHAIN:"wallet_switchEthereumChain",ETH_REQUESTACCOUNTS:"eth_requestAccounts",ETH_ACCOUNTS:"eth_accounts",ETH_CHAINID:"eth_chainId",ETH_SENDTRANSACTION:"eth_sendTransaction",ETH_SIGNTYPEDDATA:"eth_signTypedData",ETH_SIGNTYPEDDATA_V3:"eth_signTypedData_v3",ETH_SIGNTYPEDDATA_V4:"eth_signTypedData_v4",ETH_SIGNTRANSACTION:"eth_signTransaction",ETH_SIGN:"eth_sign",PERSONAL_EC_RECOVER:"personal_ecRecover"},vy={[vn.ETH_REQUESTACCOUNTS]:!0,[vn.ETH_SENDTRANSACTION]:!0,[vn.ETH_SIGNTRANSACTION]:!0,[vn.ETH_SIGN]:!0,[vn.ETH_ACCOUNTS]:!1,[vn.ETH_CHAINID]:!1,[vn.PERSONAL_SIGN]:!0,[vn.ETH_SIGNTYPEDDATA]:!0,[vn.ETH_SIGNTYPEDDATA_V3]:!0,[vn.ETH_SIGNTYPEDDATA_V4]:!0,[vn.WALLET_REQUESTPERMISSIONS]:!0,[vn.WALLET_GETPERMISSIONS]:!0,[vn.WALLET_WATCHASSET]:!0,[vn.WALLET_ADDETHEREUMCHAIN]:!0,[vn.WALLET_SWITCHETHETHEREUMCHAIN]:!0,[vn.METAMASK_CONNECTSIGN]:!0,[vn.METAMASK_CONNECTWITH]:!0,[vn.PERSONAL_EC_RECOVER]:!0,[vn.METAMASK_BATCH]:!0,[vn.METAMASK_OPEN]:!0},wK=Object.keys(vy).map(e=>e.toLowerCase()),wA=["eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sign"].map(e=>e.toLowerCase()),H5=".sdk-comm",by="providerType",W5=".MMSDK_cached_address",$5=".MMSDK_cached_chainId",ll={CHAIN_CHANGED:"chainChanged",ACCOUNTS_CHANGED:"accountsChanged",DISCONNECT:"disconnect",CONNECT:"connect",CONNECTED:"connected"};class _K{constructor({enabled:t}={enabled:!1}){this.enabled=!1,this.enabled=t}persistChannelConfig(t){return Zt(this,void 0,void 0,function*(){const n=JSON.stringify(t);Ze(`[StorageManagerWeb: persistChannelConfig()] enabled=${this.enabled}`,t),localStorage.setItem(H5,n)})}getPersistedChannelConfig(){return Zt(this,void 0,void 0,function*(){let t;try{if(Ze(`[StorageManagerWeb: getPersistedChannelConfig()] enabled=${this.enabled}`),t=localStorage.getItem(H5),Ze("[StorageManagerWeb: getPersistedChannelConfig()]",t),!t)return;const n=JSON.parse(t);return Ze("[StorageManagerWeb: getPersistedChannelConfig()] channelConfig",n),n}catch(n){return void console.error("[StorageManagerWeb: getPersistedChannelConfig()] Can't find existing channel config",n)}})}persistAccounts(t){return Zt(this,void 0,void 0,function*(){Ze(`[StorageManagerWeb: persistAccounts()] enabled=${this.enabled}`,t);const n=JSON.stringify(t);localStorage.setItem(W5,n)})}getCachedAccounts(){return Zt(this,void 0,void 0,function*(){try{const t=localStorage.getItem(W5);return t?JSON.parse(t):[]}catch(t){throw console.error("[StorageManagerWeb: getCachedAccounts()] Error reading cached accounts",t),t}})}persistChainId(t){return Zt(this,void 0,void 0,function*(){Ze(`[StorageManagerWeb: persistChainId()] enabled=${this.enabled}`,t),localStorage.setItem($5,t)})}getCachedChainId(){return Zt(this,void 0,void 0,function*(){try{const t=localStorage.getItem($5);return t??void 0}catch(t){throw console.error("[StorageManagerWeb: getCachedChainId()] Error reading cached chainId",t),t}})}terminate(){return Zt(this,void 0,void 0,function*(){Ze(`[StorageManagerWeb: terminate()] enabled=${this.enabled}`),localStorage.removeItem(H5)})}}const _A=e=>new _K(e);class SA extends vK{constructor({connectionStream:t,shouldSendMetadata:n,autoRequestAccounts:r=!1}){super(t,{logger:console,maxEventListeners:100,shouldSendMetadata:n}),this.state={autoRequestAccounts:!1,providerStateRequested:!1,chainId:"",networkVersion:""},Ze(`[SDKProvider: constructor()] autoRequestAccounts=${r}`),this.state.autoRequestAccounts=r}forceInitializeState(){return Zt(this,void 0,void 0,function*(){return Ze(`[SDKProvider: forceInitializeState()] autoRequestAccounts=${this.state.autoRequestAccounts}`),this._initializeStateAsync()})}_setConnected(){Ze("[SDKProvider: _setConnected()] Setting connected state"),this._state.isConnected=!0}getState(){return this._state}getSDKProviderState(){return this.state}getSelectedAddress(){var t;const{accounts:n}=this._state;return n&&n.length!==0?((t=n[0])===null||t===void 0?void 0:t.toLowerCase())||"":(Ze("[SDKProvider: getSelectedAddress] No accounts found"),null)}getChainId(){return this.state.chainId}getNetworkVersion(){return this.state.networkVersion}setSDKProviderState(t){this.state=Object.assign(Object.assign({},this.state),t)}handleDisconnect({terminate:t=!1}){(function({terminate:n=!1,instance:r}){const{state:o}=r;r.isConnected()?(Ze(`[SDKProvider: handleDisconnect()] cleaning up provider state terminate=${n}`,r),n&&(r._state.accounts=null,r._state.isUnlocked=!1,r._state.isPermanentlyDisconnected=!0,r._state.initialized=!1),r._handleAccountsChanged([]),r._state.isConnected=!1,r.emit("disconnect",gA.ethErrors.provider.disconnected()),o.providerStateRequested=!1):Ze("[SDKProvider: handleDisconnect()] not connected --- interrupt disconnection")})({terminate:t,instance:this})}_initializeStateAsync(){return Zt(this,void 0,void 0,function*(){return function(t){var n,r;return Zt(this,void 0,void 0,function*(){t.state===void 0&&(t.state={autoRequestAccounts:!1,providerStateRequested:!1,chainId:""});const{state:o}=t;let i;if(o.providerStateRequested)Ze("[SDKProvider: initializeStateAsync()] initialization already in progress");else{let c;o.providerStateRequested=!0;let g=null,_=!1,w=!1;const S=_A({enabled:!0});if(S){const E=yield S.getPersistedChannelConfig({});_=(n=E==null?void 0:E.relayPersistence)!==null&&n!==void 0&&n,c=yield S.getCachedChainId();const T=yield S.getCachedAccounts();T.length>0&&(g=T[0])}if(Ze(`[SDKProvider: initializeStateAsync()] relayPersistence=${_}`,{relayPersistence:_,cachedChainId:c,cachedSelectedAddress:g}),_)if(c&&g)i={accounts:[g],chainId:c,isUnlocked:!1},w=!0;else try{i=yield t.request({method:"metamask_getProviderState"})}catch(E){return t._log.error("MetaMask: Failed to get initial state. Please report this bug.",E),void(o.providerStateRequested=!1)}if(((r=i==null?void 0:i.accounts)===null||r===void 0?void 0:r.length)===0)if(t.getSelectedAddress())i.accounts=[t.getSelectedAddress()];else{Ze("[SDKProvider: initializeStateAsync()] Fetch accounts remotely.");const E=yield t.request({method:"eth_requestAccounts",params:[]});i.accounts=E}t._initializeState(i),o.providerStateRequested=!1,w&&(t._state.isConnected=!0,t.emit("connect",{chainId:i==null?void 0:i.chainId}))}})}(this)})}_initializeState(t){return Ze("[SDKProvider: _initializeState()]",t),function(n,r,o){return Ze("[SDKProvider: initializeState()] set state._initialized to false"),n._state.initialized=!1,r(o)}(this,super._initializeState.bind(this),t)}_handleChainChanged({chainId:t,networkVersion:n}={}){this.state.chainId=t,this.state.networkVersion=n,function({instance:r,chainId:o,networkVersion:i,superHandleChainChanged:c}){Ze(`[SDKProvider: handleChainChanged()] chainId=${o} networkVersion=${i}`);let g=i;i||(Ze("[SDKProvider: handleChainChanged()] forced network version to prevent provider error"),g="1"),r._state.isConnected=!0,r.emit("connect",{chainId:o}),c({chainId:o,networkVersion:g})}({instance:this,chainId:t,networkVersion:n,superHandleChainChanged:super._handleChainChanged.bind(this)})}}var EA={exports:{}};(function(e,t){(function(n){var r=Object.hasOwnProperty,o=Array.isArray?Array.isArray:function(l){return Object.prototype.toString.call(l)==="[object Array]"},i=typeof vr=="object"&&!0,c=typeof Symbol=="function",g=typeof Reflect=="object",_=typeof setImmediate=="function"?setImmediate:setTimeout,w=c?g&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(l){var b=Object.getOwnPropertyNames(l);return b.push.apply(b,Object.getOwnPropertySymbols(l)),b}:Object.keys;function S(){this._events={},this._conf&&E.call(this,this._conf)}function E(l){l&&(this._conf=l,l.delimiter&&(this.delimiter=l.delimiter),l.maxListeners!==n&&(this._maxListeners=l.maxListeners),l.wildcard&&(this.wildcard=l.wildcard),l.newListener&&(this._newListener=l.newListener),l.removeListener&&(this._removeListener=l.removeListener),l.verboseMemoryLeak&&(this.verboseMemoryLeak=l.verboseMemoryLeak),l.ignoreErrors&&(this.ignoreErrors=l.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function T(l,b){var C="(node) warning: possible EventEmitter memory leak detected. "+l+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(C+=" Event name: "+b+"."),vr!==void 0&&vr.emitWarning){var R=new Error(C);R.name="MaxListenersExceededWarning",R.emitter=this,R.count=l,vr.emitWarning(R)}else console.error(C),console.trace&&console.trace()}var I=function(l,b,C){var R=arguments.length;switch(R){case 0:return[];case 1:return[l];case 2:return[l,b];case 3:return[l,b,C];default:for(var L=new Array(R);R--;)L[R]=arguments[R];return L}};function j(l,b){for(var C={},R=l.length,L=0,B=0;B<R;B++)C[l[B]]=B<L?b[B]:n;return C}function H(l,b,C){var R,L;if(this._emitter=l,this._target=b,this._listeners={},this._listenersCount=0,(C.on||C.off)&&(R=C.on,L=C.off),b.addEventListener?(R=b.addEventListener,L=b.removeEventListener):b.addListener?(R=b.addListener,L=b.removeListener):b.on&&(R=b.on,L=b.off),!R&&!L)throw Error("target does not implement any known event API");if(typeof R!="function")throw TypeError("on method must be a function");if(typeof L!="function")throw TypeError("off method must be a function");this._on=R,this._off=L;var B=l._observers;B?B.push(this):l._observers=[this]}function V(l,b,C,R){var L=Object.assign({},b);if(!l)return L;if(typeof l!="object")throw TypeError("options must be an object");var B,K,z,O=Object.keys(l),D=O.length;function q(Q){throw Error('Invalid "'+B+'" option value'+(Q?". Reason: "+Q:""))}for(var Y=0;Y<D;Y++){if(B=O[Y],!r.call(b,B))throw Error('Unknown "'+B+'" option');(K=l[B])!==n&&(z=C[B],L[B]=z?z(K,q):K)}return L}function ee(l,b){return typeof l=="function"&&l.hasOwnProperty("prototype")||b("value must be a constructor"),l}function X(l){var b="value must be type of "+l.join("|"),C=l.length,R=l[0],L=l[1];return C===1?function(B,K){if(typeof B===R)return B;K(b)}:C===2?function(B,K){var z=typeof B;if(z===R||z===L)return B;K(b)}:function(B,K){for(var z=typeof B,O=C;O-- >0;)if(z===l[O])return B;K(b)}}Object.assign(H.prototype,{subscribe:function(l,b,C){var R=this,L=this._target,B=this._emitter,K=this._listeners,z=function(){var O=I.apply(null,arguments),D={data:O,name:b,original:l};C?C.call(L,D)!==!1&&B.emit.apply(B,[D.name].concat(O)):B.emit.apply(B,[b].concat(O))};if(K[l])throw Error("Event '"+l+"' is already listening");this._listenersCount++,B._newListener&&B._removeListener&&!R._onNewListener?(this._onNewListener=function(O){O===b&&K[l]===null&&(K[l]=z,R._on.call(L,l,z))},B.on("newListener",this._onNewListener),this._onRemoveListener=function(O){O===b&&!B.hasListeners(O)&&K[l]&&(K[l]=null,R._off.call(L,l,z))},K[l]=null,B.on("removeListener",this._onRemoveListener)):(K[l]=z,R._on.call(L,l,z))},unsubscribe:function(l){var b,C,R,L=this,B=this._listeners,K=this._emitter,z=this._off,O=this._target;if(l&&typeof l!="string")throw TypeError("event must be a string");function D(){L._onNewListener&&(K.off("newListener",L._onNewListener),K.off("removeListener",L._onRemoveListener),L._onNewListener=null,L._onRemoveListener=null);var q=Me.call(K,L);K._observers.splice(q,1)}if(l){if(!(b=B[l]))return;z.call(O,l,b),delete B[l],--this._listenersCount||D()}else{for(R=(C=w(B)).length;R-- >0;)l=C[R],z.call(O,l,B[l]);this._listeners={},this._listenersCount=0,D()}}});var ue=X(["function"]),le=X(["object","function"]);function pe(l,b,C){var R,L,B,K=0,z=new l(function(O,D,q){function Y(){L&&(L=null),K&&(clearTimeout(K),K=0)}C=V(C,{timeout:0,overload:!1},{timeout:function(re,we){return(typeof(re*=1)!="number"||re<0||!Number.isFinite(re))&&we("timeout must be a positive number"),re}}),R=!C.overload&&typeof l.prototype.cancel=="function"&&typeof q=="function";var Q=function(re){Y(),O(re)},ae=function(re){Y(),D(re)};R?b(Q,ae,q):(L=[function(re){ae(re||Error("canceled"))}],b(Q,ae,function(re){if(B)throw Error("Unable to subscribe on cancel event asynchronously");if(typeof re!="function")throw TypeError("onCancel callback must be a function");L.push(re)}),B=!0),C.timeout>0&&(K=setTimeout(function(){var re=Error("timeout");re.code="ETIMEDOUT",K=0,z.cancel(re),D(re)},C.timeout))});return R||(z.cancel=function(O){if(L){for(var D=L.length,q=1;q<D;q++)L[q](O);L[0](O),L=null}}),z}function Me(l){var b=this._observers;if(!b)return-1;for(var C=b.length,R=0;R<C;R++)if(b[R]._target===l)return R;return-1}function ye(l,b,C,R,L){if(!C)return null;if(R===0){var B=typeof b;if(B==="string"){var K,z,O=0,D=0,q=this.delimiter,Y=q.length;if((z=b.indexOf(q))!==-1){K=new Array(5);do K[O++]=b.slice(D,z),D=z+Y;while((z=b.indexOf(q,D))!==-1);K[O++]=b.slice(D),b=K,L=O}else b=[b],L=1}else B==="object"?L=b.length:(b=[b],L=1)}var Q,ae,re,we,de,ie,oe,fe=null,me=b[R],Le=b[R+1];if(R===L)C._listeners&&(typeof C._listeners=="function"?(l&&l.push(C._listeners),fe=[C]):(l&&l.push.apply(l,C._listeners),fe=[C]));else{if(me==="*"){for(z=(ie=w(C)).length;z-- >0;)(Q=ie[z])!=="_listeners"&&(oe=ye(l,b,C[Q],R+1,L))&&(fe?fe.push.apply(fe,oe):fe=oe);return fe}if(me==="**"){for((de=R+1===L||R+2===L&&Le==="*")&&C._listeners&&(fe=ye(l,b,C,L,L)),z=(ie=w(C)).length;z-- >0;)(Q=ie[z])!=="_listeners"&&(Q==="*"||Q==="**"?(C[Q]._listeners&&!de&&(oe=ye(l,b,C[Q],L,L))&&(fe?fe.push.apply(fe,oe):fe=oe),oe=ye(l,b,C[Q],R,L)):oe=ye(l,b,C[Q],Q===Le?R+2:R,L),oe&&(fe?fe.push.apply(fe,oe):fe=oe));return fe}C[me]&&(fe=ye(l,b,C[me],R+1,L))}if((ae=C["*"])&&ye(l,b,ae,R+1,L),re=C["**"])if(R<L)for(re._listeners&&ye(l,b,re,L,L),z=(ie=w(re)).length;z-- >0;)(Q=ie[z])!=="_listeners"&&(Q===Le?ye(l,b,re[Q],R+2,L):Q===me?ye(l,b,re[Q],R+1,L):((we={})[Q]=re[Q],ye(l,b,{"**":we},R+1,L)));else re._listeners?ye(l,b,re,L,L):re["*"]&&re["*"]._listeners&&ye(l,b,re["*"],L,L);return fe}function Te(l,b,C){var R,L,B=0,K=0,z=this.delimiter,O=z.length;if(typeof l=="string")if((R=l.indexOf(z))!==-1){L=new Array(5);do L[B++]=l.slice(K,R),K=R+O;while((R=l.indexOf(z,K))!==-1);L[B++]=l.slice(K)}else L=[l],B=1;else L=l,B=l.length;if(B>1){for(R=0;R+1<B;R++)if(L[R]==="**"&&L[R+1]==="**")return}var D,q=this.listenerTree;for(R=0;R<B;R++)if(q=q[D=L[R]]||(q[D]={}),R===B-1)return q._listeners?(typeof q._listeners=="function"&&(q._listeners=[q._listeners]),C?q._listeners.unshift(b):q._listeners.push(b),!q._listeners.warned&&this._maxListeners>0&&q._listeners.length>this._maxListeners&&(q._listeners.warned=!0,T.call(this,q._listeners.length,D))):q._listeners=b,!0;return!0}function y(l,b,C,R){for(var L,B,K,z,O=w(l),D=O.length,q=l._listeners;D-- >0;)L=l[B=O[D]],K=B==="_listeners"?C:C?C.concat(B):[B],z=R||typeof B=="symbol",q&&b.push(z?K:K.join(this.delimiter)),typeof L=="object"&&y.call(this,L,b,K,z);return b}function x(l){for(var b,C,R,L=w(l),B=L.length;B-- >0;)(b=l[C=L[B]])&&(R=!0,C==="_listeners"||x(b)||delete l[C]);return R}function d(l,b,C){this.emitter=l,this.event=b,this.listener=C}function p(l,b,C){if(C===!0)L=!0;else if(C===!1)R=!0;else{if(!C||typeof C!="object")throw TypeError("options should be an object or true");var R=C.async,L=C.promisify,B=C.nextTick,K=C.objectify}if(R||B||L){var z=b,O=b._origin||b;if(B&&!i)throw Error("process.nextTick is not supported");L===n&&(L=b.constructor.name==="AsyncFunction"),b=function(){var D=arguments,q=this,Y=this.event;return L?B?Promise.resolve():new Promise(function(Q){_(Q)}).then(function(){return q.event=Y,z.apply(q,D)}):(B?xn:_)(function(){q.event=Y,z.apply(q,D)})},b._async=!0,b._origin=O}return[b,K?new d(this,l,b):this]}function h(l){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,E.call(this,l)}d.prototype.off=function(){return this.emitter.off(this.event,this.listener),this},h.EventEmitter2=h,h.prototype.listenTo=function(l,b,C){if(typeof l!="object")throw TypeError("target musts be an object");var R=this;function L(B){if(typeof B!="object")throw TypeError("events must be an object");var K,z=C.reducers,O=Me.call(R,l);K=O===-1?new H(R,l,C):R._observers[O];for(var D,q=w(B),Y=q.length,Q=typeof z=="function",ae=0;ae<Y;ae++)D=q[ae],K.subscribe(D,B[D]||D,Q?z:z&&z[D])}return C=V(C,{on:n,off:n,reducers:n},{on:ue,off:ue,reducers:le}),o(b)?L(j(b)):L(typeof b=="string"?j(b.split(/\s+/)):b),this},h.prototype.stopListeningTo=function(l,b){var C=this._observers;if(!C)return!1;var R,L=C.length,B=!1;if(l&&typeof l!="object")throw TypeError("target should be an object");for(;L-- >0;)R=C[L],l&&R._target!==l||(R.unsubscribe(b),B=!0);return B},h.prototype.delimiter=".",h.prototype.setMaxListeners=function(l){l!==n&&(this._maxListeners=l,this._conf||(this._conf={}),this._conf.maxListeners=l)},h.prototype.getMaxListeners=function(){return this._maxListeners},h.prototype.event="",h.prototype.once=function(l,b,C){return this._once(l,b,!1,C)},h.prototype.prependOnceListener=function(l,b,C){return this._once(l,b,!0,C)},h.prototype._once=function(l,b,C,R){return this._many(l,1,b,C,R)},h.prototype.many=function(l,b,C,R){return this._many(l,b,C,!1,R)},h.prototype.prependMany=function(l,b,C,R){return this._many(l,b,C,!0,R)},h.prototype._many=function(l,b,C,R,L){var B=this;if(typeof C!="function")throw new Error("many only accepts instances of Function");function K(){return--b==0&&B.off(l,K),C.apply(this,arguments)}return K._origin=C,this._on(l,K,R,L)},h.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||S.call(this);var l,b,C,R,L,B,K=arguments[0],z=this.wildcard;if(K==="newListener"&&!this._newListener&&!this._events.newListener)return!1;if(z&&(l=K,K!=="newListener"&&K!=="removeListener"&&typeof K=="object")){if(C=K.length,c){for(R=0;R<C;R++)if(typeof K[R]=="symbol"){B=!0;break}}B||(K=K.join(this.delimiter))}var O,D=arguments.length;if(this._all&&this._all.length)for(R=0,C=(O=this._all.slice()).length;R<C;R++)switch(this.event=K,D){case 1:O[R].call(this,K);break;case 2:O[R].call(this,K,arguments[1]);break;case 3:O[R].call(this,K,arguments[1],arguments[2]);break;default:O[R].apply(this,arguments)}if(z)O=[],ye.call(this,O,l,this.listenerTree,0,C);else{if(typeof(O=this._events[K])=="function"){switch(this.event=K,D){case 1:O.call(this);break;case 2:O.call(this,arguments[1]);break;case 3:O.call(this,arguments[1],arguments[2]);break;default:for(b=new Array(D-1),L=1;L<D;L++)b[L-1]=arguments[L];O.apply(this,b)}return!0}O&&(O=O.slice())}if(O&&O.length){if(D>3)for(b=new Array(D-1),L=1;L<D;L++)b[L-1]=arguments[L];for(R=0,C=O.length;R<C;R++)switch(this.event=K,D){case 1:O[R].call(this);break;case 2:O[R].call(this,arguments[1]);break;case 3:O[R].call(this,arguments[1],arguments[2]);break;default:O[R].apply(this,b)}return!0}if(!this.ignoreErrors&&!this._all&&K==="error")throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},h.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||S.call(this);var l,b,C,R,L,B,K=arguments[0],z=this.wildcard;if(K==="newListener"&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(z&&(l=K,K!=="newListener"&&K!=="removeListener"&&typeof K=="object")){if(R=K.length,c){for(L=0;L<R;L++)if(typeof K[L]=="symbol"){b=!0;break}}b||(K=K.join(this.delimiter))}var O,D=[],q=arguments.length;if(this._all)for(L=0,R=this._all.length;L<R;L++)switch(this.event=K,q){case 1:D.push(this._all[L].call(this,K));break;case 2:D.push(this._all[L].call(this,K,arguments[1]));break;case 3:D.push(this._all[L].call(this,K,arguments[1],arguments[2]));break;default:D.push(this._all[L].apply(this,arguments))}if(z?(O=[],ye.call(this,O,l,this.listenerTree,0)):O=this._events[K],typeof O=="function")switch(this.event=K,q){case 1:D.push(O.call(this));break;case 2:D.push(O.call(this,arguments[1]));break;case 3:D.push(O.call(this,arguments[1],arguments[2]));break;default:for(C=new Array(q-1),B=1;B<q;B++)C[B-1]=arguments[B];D.push(O.apply(this,C))}else if(O&&O.length){if(O=O.slice(),q>3)for(C=new Array(q-1),B=1;B<q;B++)C[B-1]=arguments[B];for(L=0,R=O.length;L<R;L++)switch(this.event=K,q){case 1:D.push(O[L].call(this));break;case 2:D.push(O[L].call(this,arguments[1]));break;case 3:D.push(O[L].call(this,arguments[1],arguments[2]));break;default:D.push(O[L].apply(this,C))}}else if(!this.ignoreErrors&&!this._all&&K==="error")return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(D)},h.prototype.on=function(l,b,C){return this._on(l,b,!1,C)},h.prototype.prependListener=function(l,b,C){return this._on(l,b,!0,C)},h.prototype.onAny=function(l){return this._onAny(l,!1)},h.prototype.prependAny=function(l){return this._onAny(l,!0)},h.prototype.addListener=h.prototype.on,h.prototype._onAny=function(l,b){if(typeof l!="function")throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),b?this._all.unshift(l):this._all.push(l),this},h.prototype._on=function(l,b,C,R){if(typeof l=="function")return this._onAny(l,b),this;if(typeof b!="function")throw new Error("on only accepts instances of Function");this._events||S.call(this);var L,B=this;return R!==n&&(b=(L=p.call(this,l,b,R))[0],B=L[1]),this._newListener&&this.emit("newListener",l,b),this.wildcard?(Te.call(this,l,b,C),B):(this._events[l]?(typeof this._events[l]=="function"&&(this._events[l]=[this._events[l]]),C?this._events[l].unshift(b):this._events[l].push(b),!this._events[l].warned&&this._maxListeners>0&&this._events[l].length>this._maxListeners&&(this._events[l].warned=!0,T.call(this,this._events[l].length,l))):this._events[l]=b,B)},h.prototype.off=function(l,b){if(typeof b!="function")throw new Error("removeListener only takes instances of Function");var C,R=[];if(this.wildcard){var L=typeof l=="string"?l.split(this.delimiter):l.slice();if(!(R=ye.call(this,null,L,this.listenerTree,0)))return this}else{if(!this._events[l])return this;C=this._events[l],R.push({_listeners:C})}for(var B=0;B<R.length;B++){var K=R[B];if(C=K._listeners,o(C)){for(var z=-1,O=0,D=C.length;O<D;O++)if(C[O]===b||C[O].listener&&C[O].listener===b||C[O]._origin&&C[O]._origin===b){z=O;break}if(z<0)continue;return this.wildcard?K._listeners.splice(z,1):this._events[l].splice(z,1),C.length===0&&(this.wildcard?delete K._listeners:delete this._events[l]),this._removeListener&&this.emit("removeListener",l,b),this}(C===b||C.listener&&C.listener===b||C._origin&&C._origin===b)&&(this.wildcard?delete K._listeners:delete this._events[l],this._removeListener&&this.emit("removeListener",l,b))}return this.listenerTree&&x(this.listenerTree),this},h.prototype.offAny=function(l){var b,C=0,R=0;if(l&&this._all&&this._all.length>0){for(C=0,R=(b=this._all).length;C<R;C++)if(l===b[C])return b.splice(C,1),this._removeListener&&this.emit("removeListenerAny",l),this}else{if(b=this._all,this._removeListener)for(C=0,R=b.length;C<R;C++)this.emit("removeListenerAny",b[C]);this._all=[]}return this},h.prototype.removeListener=h.prototype.off,h.prototype.removeAllListeners=function(l){if(l===n)return!this._events||S.call(this),this;if(this.wildcard){var b,C=ye.call(this,null,l,this.listenerTree,0);if(!C)return this;for(b=0;b<C.length;b++)C[b]._listeners=null;this.listenerTree&&x(this.listenerTree)}else this._events&&(this._events[l]=null);return this},h.prototype.listeners=function(l){var b,C,R,L,B,K=this._events;if(l===n){if(this.wildcard)throw Error("event name required for wildcard emitter");if(!K)return[];for(L=(b=w(K)).length,R=[];L-- >0;)typeof(C=K[b[L]])=="function"?R.push(C):R.push.apply(R,C);return R}if(this.wildcard){if(!(B=this.listenerTree))return[];var z=[],O=typeof l=="string"?l.split(this.delimiter):l.slice();return ye.call(this,z,O,B,0),z}return K&&(C=K[l])?typeof C=="function"?[C]:C:[]},h.prototype.eventNames=function(l){var b=this._events;return this.wildcard?y.call(this,this.listenerTree,[],null,l):b?w(b):[]},h.prototype.listenerCount=function(l){return this.listeners(l).length},h.prototype.hasListeners=function(l){if(this.wildcard){var b=[],C=typeof l=="string"?l.split(this.delimiter):l.slice();return ye.call(this,b,C,this.listenerTree,0),b.length>0}var R=this._events,L=this._all;return!!(L&&L.length||R&&(l===n?w(R).length:R[l]))},h.prototype.listenersAny=function(){return this._all?this._all:[]},h.prototype.waitFor=function(l,b){var C=this,R=typeof b;return R==="number"?b={timeout:b}:R==="function"&&(b={filter:b}),pe((b=V(b,{timeout:0,filter:n,handleError:!1,Promise,overload:!1},{filter:ue,Promise:ee})).Promise,function(L,B,K){function z(){var O=b.filter;if(!O||O.apply(C,arguments))if(C.off(l,z),b.handleError){var D=arguments[0];D?B(D):L(I.apply(null,arguments).slice(1))}else L(I.apply(null,arguments))}K(function(){C.off(l,z)}),C._on(l,z,!1)},{timeout:b.timeout,overload:b.overload})};var f=h.prototype;Object.defineProperties(h,{defaultMaxListeners:{get:function(){return f._maxListeners},set:function(l){if(typeof l!="number"||l<0||Number.isNaN(l))throw TypeError("n must be a non-negative number");f._maxListeners=l},enumerable:!0},once:{value:function(l,b,C){return pe((C=V(C,{Promise,timeout:0,overload:!1},{Promise:ee})).Promise,function(R,L,B){var K;if(typeof l.addEventListener=="function")return K=function(){R(I.apply(null,arguments))},B(function(){l.removeEventListener(b,K)}),void l.addEventListener(b,K,{once:!0});var z,O=function(){z&&l.removeListener("error",z),R(I.apply(null,arguments))};b!=="error"&&(z=function(D){l.removeListener(b,O),L(D)},l.once("error",z)),B(function(){z&&l.removeListener("error",z),l.removeListener(b,O)}),l.once(b,O)},{timeout:C.timeout,overload:C.overload})},writable:!0,configurable:!0}}),Object.defineProperties(f,{_maxListeners:{value:10,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),e.exports=h})()})(EA);var SK=td(EA.exports);const EK={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class yy{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||EK,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new yy(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new yy(this.logger,t)}}var cl=new yy;class wy{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){this.observers[t]&&(n?this.observers[t].delete(n):delete this.observers[t])}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[c,g]=i;for(let _=0;_<g;_++)c(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[c,g]=i;for(let _=0;_<g;_++)c.apply(c,[t,...r])})}}function lg(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function kA(e){return e==null?"":""+e}const kK=/###/g;function cg(e,t,n){function r(g){return g&&g.indexOf("###")>-1?g.replace(kK,"."):g}function o(){return!e||typeof e=="string"}const i=typeof t!="string"?t:t.split(".");let c=0;for(;c<i.length-1;){if(o())return{};const g=r(i[c]);!e[g]&&n&&(e[g]=new n),e=Object.prototype.hasOwnProperty.call(e,g)?e[g]:{},++c}return o()?{}:{obj:e,k:r(i[c])}}function MA(e,t,n){const{obj:r,k:o}=cg(e,t,Object);if(r!==void 0||t.length===1)return void(r[o]=n);let i=t[t.length-1],c=t.slice(0,t.length-1),g=cg(e,c,Object);for(;g.obj===void 0&&c.length;)i=`${c[c.length-1]}.${i}`,c=c.slice(0,c.length-1),g=cg(e,c,Object),g&&g.obj&&g.obj[`${g.k}.${i}`]!==void 0&&(g.obj=void 0);g.obj[`${g.k}.${i}`]=n}function _y(e,t){const{obj:n,k:r}=cg(e,t);if(n)return n[r]}function CA(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):CA(e[r],t[r],n):e[r]=t[r]);return e}function Lp(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var MK={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function CK(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>MK[t]):e}const xK=[" ",",","?","!",";"],AK=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20);function V5(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||typeof o!="object")return;let c,g="";for(let _=i;_<r.length;++_)if(_!==i&&(g+=n),g+=r[_],c=o[g],c!==void 0){if(["string","number","boolean"].indexOf(typeof c)>-1&&_<r.length-1)continue;i+=_-i+1;break}o=c}return o}function Sy(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class xA extends wy{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let g;t.indexOf(".")>-1?g=t.split("."):(g=[t,n],r&&(Array.isArray(r)?g.push(...r):typeof r=="string"&&i?g.push(...r.split(i)):g.push(r)));const _=_y(this.data,g);return!_&&!n&&!r&&t.indexOf(".")>-1&&(t=g[0],n=g[1],r=g.slice(2).join(".")),_||!c||typeof r!="string"?_:V5(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const c=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let g=[t,n];r&&(g=g.concat(c?r.split(c):r)),t.indexOf(".")>-1&&(g=t.split("."),o=n,n=g[1]),this.addNamespaces(n),MA(this.data,g,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i){let c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},g=[t,n];t.indexOf(".")>-1&&(g=t.split("."),o=r,r=n,n=g[1]),this.addNamespaces(n);let _=_y(this.data,g)||{};c.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?CA(_,r,i):_={..._,...r},MA(this.data,g,_),c.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var AA={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,o))}),t}};const RA={};class Ey extends wy{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),function(r,o,i){r.forEach(c=>{o[c]&&(i[c]=o[c])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=cl.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const c=r&&t.indexOf(r)>-1,g=!(this.options.userDefinedKeySeparator||n.keySeparator||this.options.userDefinedNsSeparator||n.nsSeparator||function(_,w,S){w=w||"",S=S||"";const E=xK.filter(j=>w.indexOf(j)<0&&S.indexOf(j)<0);if(E.length===0)return!0;const T=AK.getRegExp(`(${E.map(j=>j==="?"?"\\?":j).join("|")})`);let I=!T.test(_);if(!I){const j=_.indexOf(S);j>0&&!T.test(_.substring(0,j))&&(I=!0)}return I}(t,r,o));if(c&&!g){const _=t.match(this.interpolator.nestingRegexp);if(_&&_.length>0)return{key:t,namespaces:i};const w=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(w[0])>-1)&&(i=w.shift()),t=w.join(o)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:c,namespaces:g}=this.extractFromKey(t[t.length-1],n),_=g[g.length-1],w=n.lng||this.language,S=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(w&&w.toLowerCase()==="cimode"){if(S){const X=n.nsSeparator||this.options.nsSeparator;return o?{res:`${_}${X}${c}`,usedKey:c,exactUsedKey:c,usedLng:w,usedNS:_,usedParams:this.getUsedParamsDetails(n)}:`${_}${X}${c}`}return o?{res:c,usedKey:c,exactUsedKey:c,usedLng:w,usedNS:_,usedParams:this.getUsedParamsDetails(n)}:c}const E=this.resolve(t,n);let T=E&&E.res;const I=E&&E.usedKey||c,j=E&&E.exactUsedKey||c,H=Object.prototype.toString.apply(T),V=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,ee=!this.i18nFormat||this.i18nFormat.handleAsObject;if(ee&&T&&typeof T!="string"&&typeof T!="boolean"&&typeof T!="number"&&["[object Number]","[object Function]","[object RegExp]"].indexOf(H)<0&&(typeof V!="string"||!Array.isArray(T))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const X=this.options.returnedObjectHandler?this.options.returnedObjectHandler(I,T,{...n,ns:g}):`key '${c} (${this.language})' returned an object instead of string.`;return o?(E.res=X,E.usedParams=this.getUsedParamsDetails(n),E):X}if(i){const X=Array.isArray(T),ue=X?[]:{},le=X?j:I;for(const pe in T)if(Object.prototype.hasOwnProperty.call(T,pe)){const Me=`${le}${i}${pe}`;ue[pe]=this.translate(Me,{...n,joinArrays:!1,ns:g}),ue[pe]===Me&&(ue[pe]=T[pe])}T=ue}}else if(ee&&typeof V=="string"&&Array.isArray(T))T=T.join(V),T&&(T=this.extendTranslation(T,t,n,r));else{let X=!1,ue=!1;const le=n.count!==void 0&&typeof n.count!="string",pe=Ey.hasDefaultValue(n),Me=le?this.pluralResolver.getSuffix(w,n.count,n):"",ye=n.ordinal&&le?this.pluralResolver.getSuffix(w,n.count,{ordinal:!1}):"",Te=le&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),y=Te&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${Me}`]||n[`defaultValue${ye}`]||n.defaultValue;!this.isValidLookup(T)&&pe&&(X=!0,T=y),this.isValidLookup(T)||(ue=!0,T=c);const x=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ue?void 0:T,d=pe&&y!==T&&this.options.updateMissing;if(ue||X||d){if(this.logger.log(d?"updateKey":"missingKey",w,_,c,d?y:T),i){const l=this.resolve(c,{...n,keySeparator:!1});l&&l.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let p=[];const h=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&h&&h[0])for(let l=0;l<h.length;l++)p.push(h[l]);else this.options.saveMissingTo==="all"?p=this.languageUtils.toResolveHierarchy(n.lng||this.language):p.push(n.lng||this.language);const f=(l,b,C)=>{const R=pe&&C!==T?C:x;this.options.missingKeyHandler?this.options.missingKeyHandler(l,_,b,R,d,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(l,_,b,R,d,n),this.emit("missingKey",l,_,b,T)};this.options.saveMissing&&(this.options.saveMissingPlurals&&le?p.forEach(l=>{const b=this.pluralResolver.getSuffixes(l,n);Te&&n[`defaultValue${this.options.pluralSeparator}zero`]&&b.indexOf(`${this.options.pluralSeparator}zero`)<0&&b.push(`${this.options.pluralSeparator}zero`),b.forEach(C=>{f([l],c+C,n[`defaultValue${C}`]||y)})}):f(p,c,y))}T=this.extendTranslation(T,t,n,E,r),ue&&T===c&&this.options.appendNamespaceToMissingKey&&(T=`${_}:${c}`),(ue||X)&&this.options.parseMissingKeyHandler&&(T=this.options.compatibilityAPI!=="v1"?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${_}:${c}`:c,X?T:void 0):this.options.parseMissingKeyHandler(T))}return o?(E.res=T,E.usedParams=this.getUsedParamsDetails(n),E):T}extendTranslation(t,n,r,o,i){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const w=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let S;if(w){const T=t.match(this.interpolator.nestingRegexp);S=T&&T.length}let E=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(E={...this.options.interpolation.defaultVariables,...E}),t=this.interpolator.interpolate(t,E,r.lng||this.language,r),w){const T=t.match(this.interpolator.nestingRegexp);S<(T&&T.length)&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var T=arguments.length,I=new Array(T),j=0;j<T;j++)I[j]=arguments[j];return i&&i[0]===I[0]&&!r.context?(c.logger.warn(`It seems you are nesting recursively key: ${I[0]} in key: ${n[0]}`),null):c.translate(...I,n)},r)),r.interpolation&&this.interpolator.reset()}const g=r.postProcess||this.options.postProcess,_=typeof g=="string"?[g]:g;return t!=null&&_&&_.length&&r.applyPostProcessor!==!1&&(t=AA.handle(_,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n,r,o,i,c,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof t=="string"&&(t=[t]),t.forEach(_=>{if(this.isValidLookup(n))return;const w=this.extractFromKey(_,g),S=w.key;r=S;let E=w.namespaces;this.options.fallbackNS&&(E=E.concat(this.options.fallbackNS));const T=g.count!==void 0&&typeof g.count!="string",I=T&&!g.ordinal&&g.count===0&&this.pluralResolver.shouldUseIntlApi(),j=g.context!==void 0&&(typeof g.context=="string"||typeof g.context=="number")&&g.context!=="",H=g.lngs?g.lngs:this.languageUtils.toResolveHierarchy(g.lng||this.language,g.fallbackLng);E.forEach(V=>{this.isValidLookup(n)||(c=V,!RA[`${H[0]}-${V}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(c)&&(RA[`${H[0]}-${V}`]=!0,this.logger.warn(`key "${r}" for languages "${H.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),H.forEach(ee=>{if(this.isValidLookup(n))return;i=ee;const X=[S];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(X,S,ee,V,g);else{let le;T&&(le=this.pluralResolver.getSuffix(ee,g.count,g));const pe=`${this.options.pluralSeparator}zero`,Me=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(T&&(X.push(S+le),g.ordinal&&le.indexOf(Me)===0&&X.push(S+le.replace(Me,this.options.pluralSeparator)),I&&X.push(S+pe)),j){const ye=`${S}${this.options.contextSeparator}${g.context}`;X.push(ye),T&&(X.push(ye+le),g.ordinal&&le.indexOf(Me)===0&&X.push(ye+le.replace(Me,this.options.pluralSeparator)),I&&X.push(ye+pe))}}let ue;for(;ue=X.pop();)this.isValidLookup(n)||(o=ue,n=this.getResource(ee,V,ue,g))}))})}),{res:n,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:c}}isValidLookup(t){return!(t===void 0||!this.options.returnNull&&t===null||!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let o=r?t.replace:t;if(r&&t.count!==void 0&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,12)&&t[r]!==void 0)return!0;return!1}}function Y5(e){return e.charAt(0).toUpperCase()+e.slice(1)}class TA{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=cl.create("languageUtils")}getScriptPartFromCode(t){if(!(t=Sy(t))||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}getLanguagePartFromCode(t){if(!(t=Sy(t))||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Y5(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Y5(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Y5(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);this.options.supportedLngs&&!this.isSupportedCode(o)||(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(i=>i===o?i:i.indexOf("-")<0&&o.indexOf("-")<0?void 0:i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1?i:void 0)}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],i=c=>{c&&(this.isSupportedCode(c)?o.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),r.forEach(c=>{o.indexOf(c)<0&&i(this.formatLanguageCode(c))}),o}}let RK=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],TK={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const PK=["v1","v2","v3"],LK=["v4"],PA={zero:0,one:1,two:2,few:3,many:4,other:5};class IK{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=cl.create("pluralResolver"),this.options.compatibilityJSON&&!LK.includes(this.options.compatibilityJSON)||typeof Intl<"u"&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const r={};return RK.forEach(o=>{o.lngs.forEach(i=>{r[i]={numbers:o.nr,plurals:TK[o.fc]}})}),r}()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Sy(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,i)=>PA[o]-PA[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!PK.includes(this.options.compatibilityJSON)}}function LA(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],i=function(c,g,_){const w=_y(c,_);return w!==void 0?w:_y(g,_)}(e,t,n);return!i&&o&&typeof n=="string"&&(i=V5(e,n,r),i===void 0&&(i=V5(t,n,r))),i}class OK{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=cl.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:i,prefixEscaped:c,suffix:g,suffixEscaped:_,formatSeparator:w,unescapeSuffix:S,unescapePrefix:E,nestingPrefix:T,nestingPrefixEscaped:I,nestingSuffix:j,nestingSuffixEscaped:H,nestingOptionsSeparator:V,maxReplaces:ee,alwaysFormat:X}=t.interpolation;this.escape=n!==void 0?n:CK,this.escapeValue=r===void 0||r,this.useRawValueToEscape=o!==void 0&&o,this.prefix=i?Lp(i):c||"{{",this.suffix=g?Lp(g):_||"}}",this.formatSeparator=w||",",this.unescapePrefix=S?"":E||"-",this.unescapeSuffix=this.unescapePrefix?"":S||"",this.nestingPrefix=T?Lp(T):I||Lp("$t("),this.nestingSuffix=j?Lp(j):H||Lp(")"),this.nestingOptionsSeparator=V||",",this.maxReplaces=ee||1e3,this.alwaysFormat=X!==void 0&&X,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let i,c,g;const _=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function w(I){return I.replace(/\$/g,"$$$$")}const S=I=>{if(I.indexOf(this.formatSeparator)<0){const ee=LA(n,_,I,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(ee,void 0,r,{...o,...n,interpolationkey:I}):ee}const j=I.split(this.formatSeparator),H=j.shift().trim(),V=j.join(this.formatSeparator).trim();return this.format(LA(n,_,H,this.options.keySeparator,this.options.ignoreJSONStructure),V,r,{...o,...n,interpolationkey:H})};this.resetRegExp();const E=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,T=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:I=>w(I)},{regex:this.regexp,safeValue:I=>this.escapeValue?w(this.escape(I)):w(I)}].forEach(I=>{for(g=0;i=I.regex.exec(t);){const j=i[1].trim();if(c=S(j),c===void 0)if(typeof E=="function"){const V=E(t,i,o);c=typeof V=="string"?V:""}else if(o&&Object.prototype.hasOwnProperty.call(o,j))c="";else{if(T){c=i[0];continue}this.logger.warn(`missed to pass in variable ${j} for interpolating ${t}`),c=""}else typeof c=="string"||this.useRawValueToEscape||(c=kA(c));const H=I.safeValue(c);if(t=t.replace(i[0],H),T?(I.regex.lastIndex+=c.length,I.regex.lastIndex-=i[0].length):I.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),t}nest(t,n){let r,o,i,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};function g(_,w){const S=this.nestingOptionsSeparator;if(_.indexOf(S)<0)return _;const E=_.split(new RegExp(`${S}[ ]*{`));let T=`{${E[1]}`;_=E[0],T=this.interpolate(T,i);const I=T.match(/'/g),j=T.match(/"/g);(I&&I.length%2==0&&!j||j.length%2!=0)&&(T=T.replace(/'/g,'"'));try{i=JSON.parse(T),w&&(i={...w,...i})}catch(H){return this.logger.warn(`failed parsing options string in nesting for key ${_}`,H),`${_}${S}${T}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,_}for(;r=this.nestingRegexp.exec(t);){let _=[];i={...c},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let w=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const S=r[1].split(this.formatSeparator).map(E=>E.trim());r[1]=S.shift(),_=S,w=!0}if(o=n(g.call(this,r[1].trim(),i),i),o&&r[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=kA(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),o=""),w&&(o=_.reduce((S,E)=>this.format(S,E,c.lng,{...c,interpolationkey:r[1].trim()}),o.trim())),t=t.replace(r[0],o),this.regexp.lastIndex=0}return t}}function Ip(e){const t={};return function(n,r,o){const i=r+JSON.stringify(o);let c=t[i];return c||(c=e(Sy(r),o),t[i]=c),c(n)}}class NK{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=cl.create("formatter"),this.options=t,this.formats={number:Ip((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return i=>o.format(i)}),currency:Ip((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>o.format(i)}),datetime:Ip((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return i=>o.format(i)}),relativetime:Ip((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return i=>o.format(i,r.range||"day")}),list:Ip((n,r)=>{const o=new Intl.ListFormat(n,{...r});return i=>o.format(i)})},this.init(t)}init(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Ip(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((c,g)=>{const{formatName:_,formatOptions:w}=function(S){let E=S.toLowerCase().trim();const T={};if(S.indexOf("(")>-1){const I=S.split("(");E=I[0].toLowerCase().trim();const j=I[1].substring(0,I[1].length-1);E==="currency"&&j.indexOf(":")<0?T.currency||(T.currency=j.trim()):E==="relativetime"&&j.indexOf(":")<0?T.range||(T.range=j.trim()):j.split(";").forEach(H=>{if(H){const[V,...ee]=H.split(":"),X=ee.join(":").trim().replace(/^'+|'+$/g,""),ue=V.trim();T[ue]||(T[ue]=X),X==="false"&&(T[ue]=!1),X==="true"&&(T[ue]=!0),isNaN(X)||(T[ue]=parseInt(X,10))}})}return{formatName:E,formatOptions:T}}(g);if(this.formats[_]){let S=c;try{const E=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},T=E.locale||E.lng||o.locale||o.lng||r;S=this.formats[_](c,T,{...w,...o,...E})}catch(E){this.logger.warn(E)}return S}return this.logger.warn(`there was no format function for ${_}`),c},t)}}class DK extends wy{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=cl.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const i={},c={},g={},_={};return t.forEach(w=>{let S=!0;n.forEach(E=>{const T=`${w}|${E}`;!r.reload&&this.store.hasResourceBundle(w,E)?this.state[T]=2:this.state[T]<0||(this.state[T]===1?c[T]===void 0&&(c[T]=!0):(this.state[T]=1,S=!1,c[T]===void 0&&(c[T]=!0),i[T]===void 0&&(i[T]=!0),_[E]===void 0&&(_[E]=!0)))}),S||(g[w]=!0)}),(Object.keys(i).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(c),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(_)}}loaded(t,n,r){const o=t.split("|"),i=o[0],c=o[1];n&&this.emit("failedLoading",i,c,n),r&&this.store.addResourceBundle(i,c,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const g={};this.queue.forEach(_=>{(function(w,S,E,T){const{obj:I,k:j}=cg(w,S,Object);I[j]=I[j]||[],I[j].push(E)})(_.loaded,[i],c),function(w,S){w.pending[S]!==void 0&&(delete w.pending[S],w.pendingCount--)}(_,t),n&&_.errors.push(n),_.pendingCount!==0||_.done||(Object.keys(_.loaded).forEach(w=>{g[w]||(g[w]={});const S=_.loaded[w];S.length&&S.forEach(E=>{g[w][E]===void 0&&(g[w][E]=!0)})}),_.done=!0,_.errors.length?_.callback(_.errors):_.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(_=>!_.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!t.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:i,callback:c});this.readingCalls++;const g=(w,S)=>{if(this.readingCalls--,this.waitingReads.length>0){const E=this.waitingReads.shift();this.read(E.lng,E.ns,E.fcName,E.tried,E.wait,E.callback)}w&&S&&o<this.maxRetries?setTimeout(()=>{this.read.call(this,t,n,r,o+1,2*i,c)},i):c(w,S)},_=this.backend[r].bind(this.backend);if(_.length!==2)return _(t,n,g);try{const w=_(t,n);w&&typeof w.then=="function"?w.then(S=>g(null,S)).catch(g):g(null,w)}catch(w){g(w)}}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(c=>{this.loadOne(c)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(c,g)=>{c&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,c),!c&&g&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,g),this.loaded(t,c,g)})}saveMissing(t,n,r,o,i){let c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},g=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n))this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(r!=null&&r!==""){if(this.backend&&this.backend.create){const _={...c,isUpdate:i},w=this.backend.create.bind(this.backend);if(w.length<6)try{let S;S=w.length===5?w(t,n,r,o,_):w(t,n,r,o),S&&typeof S.then=="function"?S.then(E=>g(null,E)).catch(g):g(null,S)}catch(S){g(S)}else w(t,n,r,o,g,_)}t&&t[0]&&this.store.addResource(t[0],n,r,o)}}}function IA(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function OA(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ky(){}class dg extends wy{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;var r;if(super(),this.options=OA(t),this.services={},this.logger=cl,this.modules={external:[]},r=this,Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(o=>{typeof r[o]=="function"&&(r[o]=r[o].bind(r))}),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=IA();function i(_){return _?typeof _=="function"?new _:_:null}if(this.options={...o,...this.options,...OA(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator),!this.options.isClone){let _;this.modules.logger?cl.init(i(this.modules.logger),this.options):cl.init(null,this.options),this.modules.formatter?_=this.modules.formatter:typeof Intl<"u"&&(_=NK);const w=new TA(this.options);this.store=new xA(this.options.resources,this.options);const S=this.services;S.logger=cl,S.resourceStore=this.store,S.languageUtils=w,S.pluralResolver=new IK(w,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!_||this.options.interpolation.format&&this.options.interpolation.format!==o.interpolation.format||(S.formatter=i(_),S.formatter.init(S,this.options),this.options.interpolation.format=S.formatter.format.bind(S.formatter)),S.interpolator=new OK(this.options),S.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},S.backendConnector=new DK(i(this.modules.backend),S.resourceStore,S,this.options),S.backendConnector.on("*",function(E){for(var T=arguments.length,I=new Array(T>1?T-1:0),j=1;j<T;j++)I[j-1]=arguments[j];t.emit(E,...I)}),this.modules.languageDetector&&(S.languageDetector=i(this.modules.languageDetector),S.languageDetector.init&&S.languageDetector.init(S,this.options.detection,this.options)),this.modules.i18nFormat&&(S.i18nFormat=i(this.modules.i18nFormat),S.i18nFormat.init&&S.i18nFormat.init(this)),this.translator=new Ey(this.services,this.options),this.translator.on("*",function(E){for(var T=arguments.length,I=new Array(T>1?T-1:0),j=1;j<T;j++)I[j-1]=arguments[j];t.emit(E,...I)}),this.modules.external.forEach(E=>{E.init&&E.init(this)})}if(this.format=this.options.interpolation.format,r||(r=ky),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const _=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);_.length>0&&_[0]!=="dev"&&(this.options.lng=_[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(_=>{this[_]=function(){return t.store[_](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(_=>{this[_]=function(){return t.store[_](...arguments),t}});const c=lg(),g=()=>{const _=(w,S)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(S),r(w,S)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return _(null,this.t.bind(this));this.changeLanguage(this.options.lng,_)};return this.options.resources||!this.options.initImmediate?g():setTimeout(g,0),c}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ky;const r=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const o=[],i=c=>{c&&c!=="cimode"&&this.services.languageUtils.toResolveHierarchy(c).forEach(g=>{g!=="cimode"&&o.indexOf(g)<0&&o.push(g)})};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(c=>i(c)),this.services.backendConnector.load(o,this.options.ns,c=>{c||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(c)})}else n(null)}reloadResources(t,n,r){const o=lg();return t||(t=this.languages),n||(n=this.options.ns),r||(r=ky),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&AA.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=lg();this.emit("languageChanging",t);const i=_=>{this.language=_,this.languages=this.services.languageUtils.toResolveHierarchy(_),this.resolvedLanguage=void 0,this.setResolvedLanguage(_)},c=(_,w)=>{w?(i(w),this.translator.changeLanguage(w),this.isLanguageChangingTo=void 0,this.emit("languageChanged",w),this.logger.log("languageChanged",w)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(_,function(){return r.t(...arguments)})},g=_=>{t||_||!this.services.languageDetector||(_=[]);const w=typeof _=="string"?_:this.services.languageUtils.getBestMatchFromCodes(_);w&&(this.language||i(w),this.translator.language||this.translator.changeLanguage(w),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(w)),this.loadResources(w,S=>{c(S,w)})};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(g):this.services.languageDetector.detect(g):g(t):g(this.services.languageDetector.detect()),o}getFixedT(t,n,r){var o=this;const i=function(c,g){let _;if(typeof g!="object"){for(var w=arguments.length,S=new Array(w>2?w-2:0),E=2;E<w;E++)S[E-2]=arguments[E];_=o.options.overloadTranslationOptionHandler([c,g].concat(S))}else _={...g};_.lng=_.lng||i.lng,_.lngs=_.lngs||i.lngs,_.ns=_.ns||i.ns,_.keyPrefix=_.keyPrefix||r||i.keyPrefix;const T=o.options.keySeparator||".";let I;return I=_.keyPrefix&&Array.isArray(c)?c.map(j=>`${_.keyPrefix}${T}${j}`):_.keyPrefix?`${_.keyPrefix}${T}${c}`:c,o.t(I,_)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const c=(g,_)=>{const w=this.services.backendConnector.state[`${g}|${_}`];return w===-1||w===2};if(n.precheck){const g=n.precheck(this,c);if(g!==void 0)return g}return!!this.hasResourceBundle(r,t)||!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!c(r,t)||o&&!c(i,t))}loadNamespaces(t,n){const r=lg();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=lg();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],i=t.filter(c=>o.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return i.length?(this.options.preload=o.concat(i),this.loadResources(c=>{r.resolve(),n&&n(c)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=this.services&&this.services.languageUtils||new TA(IA());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new dg(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ky;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new dg(o);return t.debug===void 0&&t.prefix===void 0||(i.logger=i.logger.clone(t)),["store","services","language"].forEach(c=>{i[c]=this[c]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new xA(this.store.data,o),i.services.resourceStore=i.store),i.translator=new Ey(i.services,o),i.translator.on("*",function(c){for(var g=arguments.length,_=new Array(g>1?g-1:0),w=1;w<g;w++)_[w-1]=arguments[w];i.emit(c,..._)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Co=dg.createInstance();Co.createInstance=dg.createInstance;const BK=Co.createInstance;Co.dir,Co.init,Co.loadResources,Co.reloadResources,Co.use,Co.changeLanguage,Co.getFixedT,Co.t,Co.exists,Co.setDefaultNamespace,Co.hasLoadedNamespace,Co.loadNamespaces,Co.loadLanguages;var fg,wh={name:"@metamask/sdk",version:"0.28.2",description:"",homepage:"https://github.com/MetaMask/metamask-sdk#readme",bugs:{url:"https://github.com/MetaMask/metamask-sdk/issues"},repository:{type:"git",url:"https://github.com/MetaMask/metamask-sdk",directory:"packages/sdk"},main:"dist/node/cjs/metamask-sdk.js",unpkg:"dist/browser/umd/metamask-sdk.js",module:"dist/node/es/metamask-sdk.js",browser:"dist/browser/umd/metamask-sdk.js","react-native":"dist/react-native/es/metamask-sdk.js",types:"dist/browser/es/src/index.d.ts",sideEffects:!1,files:["/dist"],scripts:{build:"rm -rf dist && rollup -c --bundleConfigAsCjs","build:dev":"rimraf dist && NODE_ENV=dev rollup -c --bundleConfigAsCjs","build:post-tsc":"echo 'N/A'","build:pre-tsc":"echo 'N/A'",clean:"rimraf ./dist",size:"node bundle-size && size-limit",lint:"yarn lint:eslint && yarn lint:misc --check","lint:changelog":"../../scripts/validate-changelog.sh @metamask/sdk","lint:eslint":"eslint . --cache --ext js,ts","lint:fix":"yarn lint:eslint --fix && yarn lint:misc --write","lint:misc":"prettier '**/*.json' '**/*.md' '!CHANGELOG.md' --ignore-path ../../.gitignore",prepack:"../../scripts/prepack.sh","publish:preview":"yarn npm publish --tag preview",reset:"yarn clean && rimraf ./node_modules/",test:'jest --testPathIgnorePatterns "/e2e/"',"test:coverage":'jest --coverage --testPathIgnorePatterns "/e2e/"',"test:e2e":'jest --testPathPattern "/e2e/"',"test:ci":'jest --coverage --passWithNoTests --setupFilesAfterEnv ./jest-preload.js --testPathIgnorePatterns "/e2e/"',"test:dev":'jest -c ./jest.config.ts --detectOpenHandles --testPathIgnorePatterns "/e2e/"',watch:"rollup -c -w"},dependencies:{"@metamask/onboarding":"^1.0.1","@metamask/providers":"16.1.0","@metamask/sdk-communication-layer":"workspace:*","@metamask/sdk-install-modal-web":"workspace:*","@types/dom-screen-wake-lock":"^1.0.0","@types/uuid":"^10.0.0",bowser:"^2.9.0","cross-fetch":"^4.0.0",debug:"^4.3.4",eciesjs:"^0.3.15","eth-rpc-errors":"^4.0.3",eventemitter2:"^6.4.7",i18next:"23.11.5","i18next-browser-languagedetector":"7.1.0","obj-multiplex":"^1.0.0",pump:"^3.0.0","qrcode-terminal-nooctal":"^0.12.1","react-native-webview":"^11.26.0","readable-stream":"^3.6.2","rollup-plugin-visualizer":"^5.9.2","socket.io-client":"^4.5.1",util:"^0.12.4",uuid:"^8.3.2"},devDependencies:{"@jest/globals":"^29.3.1","@lavamoat/allow-scripts":"^2.3.1","@metamask/auto-changelog":"3.1.0","@metamask/eslint-config":"^6.0.0","@metamask/eslint-config-nodejs":"^6.0.0","@metamask/eslint-config-typescript":"^6.0.0","@react-native-async-storage/async-storage":"^1.19.6","@rollup/plugin-commonjs":"^25.0.7","@rollup/plugin-json":"^6.0.0","@rollup/plugin-node-resolve":"^15.0.2","@rollup/plugin-terser":"^0.4.1","@size-limit/preset-big-lib":"^11.0.2","@types/dom-screen-wake-lock":"^1.0.2","@types/node":"^20.1.3","@types/pump":"^1.1.1","@types/qrcode-terminal":"^0.12.0","@typescript-eslint/eslint-plugin":"^4.26.0","@typescript-eslint/parser":"^4.26.0",eslint:"^7.30.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^24.4.0","eslint-plugin-jsdoc":"^36.1.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.4.0",jest:"^29.3.1","jest-environment-jsdom":"^29.3.1",prettier:"^2.3.0",react:"^18.2.0","react-dom":"18.2.0",rimraf:"^4.4.0",rollup:"^3.21.7","rollup-plugin-jscc":"^2.0.0","rollup-plugin-natives":"^0.7.5","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-polyfill-node":"^0.11.0","rollup-plugin-sizes":"^1.0.6","rollup-plugin-typescript2":"^0.31.2","size-limit":"^11.0.2","ts-jest":"^29.0.3","ts-node":"^10.9.1",tslib:"latest",typescript:"^4.3.2"},peerDependencies:{react:"^18.2.0","react-dom":"^18.2.0"},peerDependenciesMeta:{react:{optional:!0},"react-dom":{optional:!0}},publishConfig:{access:"public",registry:"https://registry.npmjs.org/"},lavamoat:{allowScripts:{"eciesjs>secp256k1":!1,"socket.io-client>engine.io-client>ws>bufferutil":!1,"socket.io-client>engine.io-client>ws>utf-8-validate":!1,"@metamask/sdk-communication-layer>bufferutil":!1,"@metamask/sdk-communication-layer>eciesjs>secp256k1":!1,"@metamask/sdk-communication-layer>utf-8-validate":!1}}};(function(e){e.INPAGE="metamask-inpage",e.CONTENT_SCRIPT="metamask-contentscript",e.PROVIDER="metamask-provider"})(fg||(fg={}));const NA="direct",hg="https://metamask.app.link/connect",pg="metamask://connect",DA={NAME:"MetaMask",RDNS:"io.metamask"},jK=/(?:^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u;var G5;Ie.PROVIDER_UPDATE_TYPE=void 0,(G5=Ie.PROVIDER_UPDATE_TYPE||(Ie.PROVIDER_UPDATE_TYPE={})).TERMINATE="terminate",G5.EXTENSION="extension",G5.INITIALIZED="initialized";const zK=typeof window<"u"&&window.localStorage;function BA(e){var t,n;return Zt(this,void 0,void 0,function*(){Ze("[MetaMaskSDK: connectWithExtensionProvider()] ",e),e.sdkProvider=e.activeProvider,e.activeProvider=window.extension,window.ethereum=window.extension;try{const r=yield(t=window.extension)===null||t===void 0?void 0:t.request({method:"eth_requestAccounts"});Ze(`[MetaMaskSDK: connectWithExtensionProvider()] accounts=${r}`)}catch(r){return void console.warn("[MetaMaskSDK: connectWithExtensionProvider()] can't request accounts error",r)}localStorage.setItem(by,"extension"),e.extensionActive=!0,e.emit(Ie.EventType.PROVIDER_UPDATE,Ie.PROVIDER_UPDATE_TYPE.EXTENSION),e.options.enableAnalytics&&((n=e.analytics)===null||n===void 0||n.send({event:ci.SDK_USE_EXTENSION}))})}function My(e){let t;if(typeof Ho.Buffer<"u")t=Ho.Buffer.from(e,"utf8").toString("base64");else if(typeof btoa=="function")t=btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/gu,(n,r)=>String.fromCharCode(parseInt(r,16))));else{if(typeof Ho.commonjsGlobal!="object"||!("Buffer"in Ho.commonjsGlobal))throw new Error("Unable to base64 encode: No available method.");t=Ho.commonjsGlobal.Buffer.from(e,"utf8").toString("base64")}return t}class $s{constructor({shouldSetOnWindow:t,connectionStream:n,shouldSendMetadata:r=!1,shouldShimWeb3:o}){const i=new SA({connectionStream:n,shouldSendMetadata:r,shouldSetOnWindow:t,shouldShimWeb3:o,autoRequestAccounts:!1}),c=new Proxy(i,{deleteProperty:()=>!0});var g;this.provider=c,t&&typeof window<"u"&&(g=i,window.ethereum=g,window.dispatchEvent(new Event("ethereum#initialized"))),o&&typeof window<"u"&&function(_,w=console){let S=!1,E=!1;if(!window.web3){const T="__isMetaMaskShim__";let I={currentProvider:_};Object.defineProperty(I,T,{value:!0,enumerable:!0,configurable:!1,writable:!1}),I=new Proxy(I,{get:(j,H,...V)=>(H!=="currentProvider"||S?H==="currentProvider"||H===T||E||(E=!0,w.error("MetaMask no longer injects web3. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3"),_.request({method:"metamask_logWeb3ShimUsage"}).catch(ee=>{w.debug("MetaMask: Failed to log web3 shim usage.",ee)})):(S=!0,w.warn("You are accessing the MetaMask window.web3.currentProvider shim. This property is deprecated; use window.ethereum instead. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3")),Reflect.get(j,H,...V)),set:(...j)=>(w.warn("You are accessing the MetaMask window.web3 shim. This object is deprecated; use window.ethereum instead. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3"),Reflect.set(...j))}),Object.defineProperty(window,"web3",{value:I,enumerable:!1,configurable:!0,writable:!0})}}(this.provider),this.provider.on("_initialized",()=>{const _={chainId:this.provider.getChainId(),isConnected:this.provider.isConnected(),isMetaNask:this.provider.isMetaMask,selectedAddress:this.provider.getSelectedAddress(),networkVersion:this.provider.getNetworkVersion()};Ze("[Ethereum: constructor()] provider initialized",_)})}static init(t){var n;return Ze("[Ethereum: init()] Initializing Ethereum service"),this.instance=new $s(t),(n=this.instance)===null||n===void 0?void 0:n.provider}static destroy(){}static getInstance(){var t;if(!(!((t=this.instance)===null||t===void 0)&&t.provider))throw new Error("Ethereum instance not intiialized - call Ethereum.factory first.");return this.instance}static getProvider(){var t;if(!(!((t=this.instance)===null||t===void 0)&&t.provider))throw new Error("Ethereum instance not intiialized - call Ethereum.factory first.");return this.instance.provider}}function UK(e,t,n,r){var o,i,c,g,_,w,S,E,T,I,j,H,V,ee,X,ue,le,pe;return Zt(this,void 0,void 0,function*(){const Me=(o=e.state.remote)===null||o===void 0?void 0:o.isReady(),ye=(i=e.state.remote)===null||i===void 0?void 0:i.isConnected(),Te=(c=e.state.remote)===null||c===void 0?void 0:c.isPaused(),y=$s.getProvider(),x=(g=e.state.remote)===null||g===void 0?void 0:g.getChannelId(),d=(_=e.state.remote)===null||_===void 0?void 0:_.isAuthorized(),{deeplinkProtocol:p}=e.state,{method:h,data:f,triggeredInstaller:l}=(L=>{var B,K,z,O;let D;ze.isBuffer(L)?(D=L.toJSON(),D._isBuffer=!0):D=L;const q=(B=D==null?void 0:D.data)===null||B===void 0?void 0:B.method;let Y=!1;return typeof((K=D==null?void 0:D.data)===null||K===void 0?void 0:K.params)=="object"&&((O=(z=D==null?void 0:D.data)===null||z===void 0?void 0:z.params)===null||O===void 0?void 0:O.__triggeredInstaller)===!0&&(Y=!0,D.data.params=D.data.params.wrappedParams),{method:q,data:D,triggeredInstaller:Y}})(t);if(Ze(`[RCPMS: write()] method='${h}' isRemoteReady=${Me} channelId=${x} isSocketConnected=${ye} isRemotePaused=${Te} providerConnected=${y.isConnected()}`,t),!x)return h!==vn.METAMASK_GETPROVIDERSTATE&&Ze(`[RCPMS: write()] ${h} --> channelId is undefined`),r(new Error("disconnected"));Ze(`[RCPMS: write()] remote.isPaused()=${(w=e.state.remote)===null||w===void 0?void 0:w.isPaused()} authorized=${d} ready=${Me} socketConnected=${ye}`,t);const b=(S=e.state.platformManager)===null||S===void 0?void 0:S.isSecure(),C=(T=(E=e.state.platformManager)===null||E===void 0?void 0:E.isMobileWeb())!==null&&T!==void 0&&T,R=p&&C&&d;try{if((!R||l)&&((I=e.state.remote)===null||I===void 0||I.sendMessage(f==null?void 0:f.data).then(()=>{Ze(`[RCPMS: _write()] ${h} sent successfully`)}).catch(K=>{Ze("[RCPMS: _write()] error sending message",K)}),!b))return Ze(`[RCPMS: _write()] unsecure platform for method ${h} -- return callback`),r();if(l)return Ze("[RCPMS: _write()] prevent deeplink -- installation completed separately."),r();const L=(V=(H=(j=e.state.remote)===null||j===void 0?void 0:j.getKeyInfo())===null||H===void 0?void 0:H.ecies.public)!==null&&V!==void 0?V:"";let B=encodeURI(`channelId=${x}&pubkey=${L}&comm=socket&t=d&v=2`);if(R){const K=JSON.stringify(f==null?void 0:f.data),z=(ee=e.state.remote)===null||ee===void 0?void 0:ee.encrypt(K);if(!z)return Ze("[RCPMS: _write()] error encrypting message"),r(new Error("RemoteCommunicationPostMessageStream - disconnected"));B+=`&scheme=${p}&rpc=${My(z)}`}if(!(!((X=e.state.platformManager)===null||X===void 0)&&X.isMetaMaskInstalled()))return Ze("[RCPMS: _write()] prevent deeplink until installation is completed."),r();vy[h]?(Ze(`[RCPMS: _write()] redirect link for '${h}' socketConnected=${ye} connect?${B}`),(ue=e.state.platformManager)===null||ue===void 0||ue.openDeeplink(`${hg}?${B}`,`${pg}?${B}`,"_self")):!((le=e.state.remote)===null||le===void 0)&&le.isPaused()?(Ze(`[RCPMS: _write()] MM is PAUSED! deeplink with connect! targetMethod=${h}`),(pe=e.state.platformManager)===null||pe===void 0||pe.openDeeplink(`${hg}?redirect=true&${B}`,`${pg}?redirect=true&${B}`,"_self")):Ze(`[RCPMS: _write()] method ${h} doesn't need redirect.`)}catch(L){return Ze("[RCPMS: _write()] error sending message",L),r(new Error("RemoteCommunicationPostMessageStream - disconnected"))}return r()})}class FK extends ad.Duplex{constructor({name:t,remote:n,deeplinkProtocol:r,platformManager:o}){super({objectMode:!0}),this.state={_name:null,remote:null,deeplinkProtocol:!1,platformManager:null},this.state._name=t,this.state.remote=n,this.state.deeplinkProtocol=r,this.state.platformManager=o,this._onMessage=this._onMessage.bind(this),this.state.remote.on(Ie.EventType.MESSAGE,this._onMessage)}_write(t,n,r){return Zt(this,void 0,void 0,function*(){return UK(this,t,0,r)})}_read(){}_onMessage(t){return function(n,r){try{if(Ze("[RCPMS: onMessage()] message",r),!r||typeof r!="object"||typeof(r==null?void 0:r.data)!="object")return;if(!(r!=null&&r.name))return void Ze("[RCPMS: onMessage()] ignore message without name",r);if((r==null?void 0:r.name)!==fg.PROVIDER)return void Ze(`[RCPMS: onMessage()] ignore message with wrong name message=${r}`);if(ze.isBuffer(r)){const o=ze.from(r);n.push(o)}else n.push(r)}catch(o){Ze(`[RCPMS: onMessage()] ignore message error err=${o}`)}}(this,t)}start(){}}var Z5={exports:{}};(function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||En!==void 0&&En,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(c){var g=i!==void 0&&i||typeof self<"u"&&self||g!==void 0&&g,_="URLSearchParams"in g,w="Symbol"in g&&"iterator"in Symbol,S="FileReader"in g&&"Blob"in g&&function(){try{return new Blob,!0}catch{return!1}}(),E="FormData"in g,T="ArrayBuffer"in g;if(T)var I=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],j=ArrayBuffer.isView||function(f){return f&&I.indexOf(Object.prototype.toString.call(f))>-1};function H(f){if(typeof f!="string"&&(f=String(f)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(f)||f==="")throw new TypeError('Invalid character in header field name: "'+f+'"');return f.toLowerCase()}function V(f){return typeof f!="string"&&(f=String(f)),f}function ee(f){var l={next:function(){var b=f.shift();return{done:b===void 0,value:b}}};return w&&(l[Symbol.iterator]=function(){return l}),l}function X(f){this.map={},f instanceof X?f.forEach(function(l,b){this.append(b,l)},this):Array.isArray(f)?f.forEach(function(l){this.append(l[0],l[1])},this):f&&Object.getOwnPropertyNames(f).forEach(function(l){this.append(l,f[l])},this)}function ue(f){if(f.bodyUsed)return Promise.reject(new TypeError("Already read"));f.bodyUsed=!0}function le(f){return new Promise(function(l,b){f.onload=function(){l(f.result)},f.onerror=function(){b(f.error)}})}function pe(f){var l=new FileReader,b=le(l);return l.readAsArrayBuffer(f),b}function Me(f){if(f.slice)return f.slice(0);var l=new Uint8Array(f.byteLength);return l.set(new Uint8Array(f)),l.buffer}function ye(){return this.bodyUsed=!1,this._initBody=function(f){var l;this.bodyUsed=this.bodyUsed,this._bodyInit=f,f?typeof f=="string"?this._bodyText=f:S&&Blob.prototype.isPrototypeOf(f)?this._bodyBlob=f:E&&FormData.prototype.isPrototypeOf(f)?this._bodyFormData=f:_&&URLSearchParams.prototype.isPrototypeOf(f)?this._bodyText=f.toString():T&&S&&(l=f)&&DataView.prototype.isPrototypeOf(l)?(this._bodyArrayBuffer=Me(f.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):T&&(ArrayBuffer.prototype.isPrototypeOf(f)||j(f))?this._bodyArrayBuffer=Me(f):this._bodyText=f=Object.prototype.toString.call(f):this._bodyText="",this.headers.get("content-type")||(typeof f=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):_&&URLSearchParams.prototype.isPrototypeOf(f)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},S&&(this.blob=function(){var f=ue(this);if(f)return f;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var f=ue(this);return f||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(pe)}),this.text=function(){var f,l,b,C=ue(this);if(C)return C;if(this._bodyBlob)return f=this._bodyBlob,l=new FileReader,b=le(l),l.readAsText(f),b;if(this._bodyArrayBuffer)return Promise.resolve(function(R){for(var L=new Uint8Array(R),B=new Array(L.length),K=0;K<L.length;K++)B[K]=String.fromCharCode(L[K]);return B.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},E&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}X.prototype.append=function(f,l){f=H(f),l=V(l);var b=this.map[f];this.map[f]=b?b+", "+l:l},X.prototype.delete=function(f){delete this.map[H(f)]},X.prototype.get=function(f){return f=H(f),this.has(f)?this.map[f]:null},X.prototype.has=function(f){return this.map.hasOwnProperty(H(f))},X.prototype.set=function(f,l){this.map[H(f)]=V(l)},X.prototype.forEach=function(f,l){for(var b in this.map)this.map.hasOwnProperty(b)&&f.call(l,this.map[b],b,this)},X.prototype.keys=function(){var f=[];return this.forEach(function(l,b){f.push(b)}),ee(f)},X.prototype.values=function(){var f=[];return this.forEach(function(l){f.push(l)}),ee(f)},X.prototype.entries=function(){var f=[];return this.forEach(function(l,b){f.push([b,l])}),ee(f)},w&&(X.prototype[Symbol.iterator]=X.prototype.entries);var Te=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(f,l){if(!(this instanceof y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var b=(l=l||{}).body;if(f instanceof y){if(f.bodyUsed)throw new TypeError("Already read");this.url=f.url,this.credentials=f.credentials,l.headers||(this.headers=new X(f.headers)),this.method=f.method,this.mode=f.mode,this.signal=f.signal,b||f._bodyInit==null||(b=f._bodyInit,f.bodyUsed=!0)}else this.url=String(f);if(this.credentials=l.credentials||this.credentials||"same-origin",!l.headers&&this.headers||(this.headers=new X(l.headers)),this.method=function(R){var L=R.toUpperCase();return Te.indexOf(L)>-1?L:R}(l.method||this.method||"GET"),this.mode=l.mode||this.mode||null,this.signal=l.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&b)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(b),!(this.method!=="GET"&&this.method!=="HEAD"||l.cache!=="no-store"&&l.cache!=="no-cache")){var C=/([?&])_=[^&]*/;C.test(this.url)?this.url=this.url.replace(C,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function x(f){var l=new FormData;return f.trim().split("&").forEach(function(b){if(b){var C=b.split("="),R=C.shift().replace(/\+/g," "),L=C.join("=").replace(/\+/g," ");l.append(decodeURIComponent(R),decodeURIComponent(L))}}),l}function d(f,l){if(!(this instanceof d))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');l||(l={}),this.type="default",this.status=l.status===void 0?200:l.status,this.ok=this.status>=200&&this.status<300,this.statusText=l.statusText===void 0?"":""+l.statusText,this.headers=new X(l.headers),this.url=l.url||"",this._initBody(f)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},ye.call(y.prototype),ye.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new X(this.headers),url:this.url})},d.error=function(){var f=new d(null,{status:0,statusText:""});return f.type="error",f};var p=[301,302,303,307,308];d.redirect=function(f,l){if(p.indexOf(l)===-1)throw new RangeError("Invalid status code");return new d(null,{status:l,headers:{location:f}})},c.DOMException=g.DOMException;try{new c.DOMException}catch{c.DOMException=function(l,b){this.message=l,this.name=b;var C=Error(l);this.stack=C.stack},c.DOMException.prototype=Object.create(Error.prototype),c.DOMException.prototype.constructor=c.DOMException}function h(f,l){return new Promise(function(b,C){var R=new y(f,l);if(R.signal&&R.signal.aborted)return C(new c.DOMException("Aborted","AbortError"));var L=new XMLHttpRequest;function B(){L.abort()}L.onload=function(){var K,z,O={status:L.status,statusText:L.statusText,headers:(K=L.getAllResponseHeaders()||"",z=new X,K.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(q){return q.indexOf(`
33
+ `)===0?q.substr(1,q.length):q}).forEach(function(q){var Y=q.split(":"),Q=Y.shift().trim();if(Q){var ae=Y.join(":").trim();z.append(Q,ae)}}),z)};O.url="responseURL"in L?L.responseURL:O.headers.get("X-Request-URL");var D="response"in L?L.response:L.responseText;setTimeout(function(){b(new d(D,O))},0)},L.onerror=function(){setTimeout(function(){C(new TypeError("Network request failed"))},0)},L.ontimeout=function(){setTimeout(function(){C(new TypeError("Network request failed"))},0)},L.onabort=function(){setTimeout(function(){C(new c.DOMException("Aborted","AbortError"))},0)},L.open(R.method,function(K){try{return K===""&&g.location.href?g.location.href:K}catch{return K}}(R.url),!0),R.credentials==="include"?L.withCredentials=!0:R.credentials==="omit"&&(L.withCredentials=!1),"responseType"in L&&(S?L.responseType="blob":T&&R.headers.get("Content-Type")&&R.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(L.responseType="arraybuffer")),!l||typeof l.headers!="object"||l.headers instanceof X?R.headers.forEach(function(K,z){L.setRequestHeader(z,K)}):Object.getOwnPropertyNames(l.headers).forEach(function(K){L.setRequestHeader(K,V(l.headers[K]))}),R.signal&&(R.signal.addEventListener("abort",B),L.onreadystatechange=function(){L.readyState===4&&R.signal.removeEventListener("abort",B)}),L.send(R._bodyInit===void 0?null:R._bodyInit)})}h.polyfill=!0,g.fetch||(g.fetch=h,g.Headers=X,g.Request=y,g.Response=d),c.Headers=X,c.Request=y,c.Response=d,c.fetch=h})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=n.fetch?n:r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t})(Z5,Z5.exports);var KK=td(Z5.exports);let jA=1;const zA=e=>new Promise(t=>{setTimeout(()=>{t(!0)},e)}),qK=({checkInstallationOnAllCalls:e=!1,communicationLayerPreference:t,injectProvider:n,shouldShimWeb3:r,platformManager:o,installer:i,sdk:c,remoteConnection:g,debug:_})=>Zt(void 0,void 0,void 0,function*(){var w,S;const E=(({name:x,remoteConnection:d})=>{if(!d||!(d!=null&&d.getConnector()))throw new Error("Missing remote connection parameter");return new FK({name:x,remote:d==null?void 0:d.getConnector(),deeplinkProtocol:d==null?void 0:d.state.deeplinkProtocol,platformManager:d==null?void 0:d.getPlatformManager()})})({name:fg.INPAGE,target:fg.CONTENT_SCRIPT,platformManager:o,communicationLayerPreference:t,remoteConnection:g}),T=o.getPlatformType(),I=c.options.dappMetadata,j=`Sdk/Javascript SdkVersion/${wh.version} Platform/${T} dApp/${(w=I.url)!==null&&w!==void 0?w:I.name} dAppTitle/${I.name}`;let H=null,V=null;const ee=(S=c.options.storage)===null||S===void 0?void 0:S.storageManager;if(ee){try{const x=yield ee.getCachedAccounts();x.length>0&&(H=x[0])}catch(x){console.error(`[initializeMobileProvider] failed to get cached addresses: ${x}`)}try{const x=yield ee.getCachedChainId();x&&(V=x)}catch(x){console.error(`[initializeMobileProvider] failed to parse cached chainId: ${x}`)}}Ze(`[initializeMobileProvider] cachedAccountAddress: ${H}, cachedChainId: ${V}`);const X=!(!n||T===Ie.PlatformType.NonBrowser||T===Ie.PlatformType.ReactNative),ue=$s.init({shouldSetOnWindow:X,connectionStream:E,shouldShimWeb3:r});let le=!1;const pe=x=>{le=x},Me=()=>le,ye=(x,d,p,h)=>Zt(void 0,void 0,void 0,function*(){var f,l,b,C,R,L,B,K;if(le){g==null||g.showActiveModal();let we=Me();for(;we;){const de=Me(),ie=g==null?void 0:g.isAuthorized();we=de&&!ie,Ze(`[initializeMobileProvider: sendRequest()] waiting for initialization to complete - initializing: ${de} authorized: ${ie}`),yield zA(1e3)}return Ze("[initializeMobileProvider: sendRequest()] initial method completed -- prevent installation and call provider"),p(...d)}const z=o.isMetaMaskInstalled(),O=g==null?void 0:g.isConnected(),D=$s.getProvider();let q=null,Y=null;if(q=(f=D.getSelectedAddress())!==null&&f!==void 0?f:H,Y=D.getChainId()||V,q&&ee&&q!==H&&ee.persistAccounts([q]).catch(we=>{console.error(`[initializeMobileProvider] failed to persist account: ${we}`)}),Y&&(V=Y,ee&&ee.persistChainId(Y).catch(we=>{console.error(`[initializeMobileProvider] failed to persist chainId: ${we}`)})),Ze("[initializeMobileProvider: sendRequest()]",{selectedAddress:q,chainId:Y}),h&&Ze(`[initializeMobileProvider: sendRequest()] method=${x} ongoing=${le} selectedAddress=${q} isInstalled=${z} checkInstallationOnAllCalls=${e} socketConnected=${O}`),q&&x.toLowerCase()===vn.ETH_ACCOUNTS.toLowerCase())return[q];if(Y&&x.toLowerCase()===vn.ETH_CHAINID.toLowerCase())return Y;const Q=[vn.ETH_REQUESTACCOUNTS,vn.WALLET_REQUESTPERMISSIONS,vn.METAMASK_CONNECTSIGN,vn.METAMASK_CONNECTWITH],ae=!vy[x],re=(l=c.options.readonlyRPCMap)===null||l===void 0?void 0:l[Y];if(re&&ae)try{const we=(b=d==null?void 0:d[0])===null||b===void 0?void 0:b.params,de=yield(({rpcEndpoint:ie,method:oe,sdkInfo:fe,params:me})=>Zt(void 0,void 0,void 0,function*(){const Le=JSON.stringify({jsonrpc:"2.0",method:oe,params:me,id:(jA+=1,jA)}),De={Accept:"application/json","Content-Type":"application/json"};let Ce;ie.includes("infura")&&(De["Metamask-Sdk-Info"]=fe);try{Ce=yield KK(ie,{method:"POST",headers:De,body:Le})}catch(Qe){throw Qe instanceof Error?new Error(`Failed to fetch from RPC: ${Qe.message}`):new Error(`Failed to fetch from RPC: ${Qe}`)}if(!Ce.ok)throw new Error(`Server responded with a status of ${Ce.status}`);return(yield Ce.json()).result}))({rpcEndpoint:re,sdkInfo:j,method:x,params:we||[]});return h&&Ze(`initializeProvider::ReadOnlyRPCResponse ${de}`),de}catch(we){console.warn(`[initializeMobileProvider: sendRequest()] method=${x} readOnlyRPCRequest failed:`,we)}if((!z||z&&!O)&&x!==vn.METAMASK_GETPROVIDERSTATE){const we=((C=d==null?void 0:d[0])===null||C===void 0?void 0:C.params)||[];if(Q.indexOf(x)!==-1||e){pe(!0);const de=x===vn.METAMASK_CONNECTWITH,ie=`${Date.now()}`;try{yield i.start({wait:!1,connectWith:de?{method:x,id:ie,params:we}:void 0}),yield new Promise((oe,fe)=>{g!=null&&g.isAuthorized()&&(Ze("[initializeMobileProvider: sendRequest()] already authorized"),oe(!0)),g==null||g.getConnector().once(Ie.EventType.AUTHORIZED,()=>{oe(!0)}),c.once(Ie.EventType.PROVIDER_UPDATE,me=>{Ze(`[initializeMobileProvider: sendRequest()] PROVIDER_UPDATE --- remote provider request interupted type=${me}`),me===Ie.PROVIDER_UPDATE_TYPE.EXTENSION?fe(Ie.EventType.PROVIDER_UPDATE):fe(new Error("Connection Terminated"))})}),pe(!1)}catch(oe){if(pe(!1),Ie.PROVIDER_UPDATE_TYPE.EXTENSION===oe){if(Ze(`[initializeMobileProvider: sendRequest()] extension provider detect: re-create ${x} on the active provider`),x.toLowerCase()===vn.METAMASK_CONNECTSIGN.toLowerCase()){const fe=yield(R=c.getProvider())===null||R===void 0?void 0:R.request({method:vn.ETH_REQUESTACCOUNTS,params:[]});if(!fe.length)throw new Error("SDK state invalid -- undefined accounts");return yield(L=c.getProvider())===null||L===void 0?void 0:L.request({method:vn.PERSONAL_SIGN,params:[we[0],fe[0]]})}if(x.toLowerCase()===vn.METAMASK_CONNECTWITH.toLowerCase()){const[fe]=we;return yield(({method:me,sdk:Le,params:De})=>Zt(void 0,void 0,void 0,function*(){var Ce,Qe,tt,Fe;if(!Le.isExtensionActive())throw new Error("SDK state invalid -- extension is not active");Ze("[MetaMaskProvider: extensionConnectWithOverwrite()] Overwriting request method",me,De);const Mt=yield(Ce=Le.getProvider())===null||Ce===void 0?void 0:Ce.request({method:vn.ETH_REQUESTACCOUNTS,params:[]});if(!Mt.length)throw new Error("SDK state invalid -- undefined accounts");if((me==null?void 0:me.toLowerCase())===vn.PERSONAL_SIGN.toLowerCase()){const rt={method:me,params:[De[0],Mt[0]]};return yield(Qe=Le.getProvider())===null||Qe===void 0?void 0:Qe.request(rt)}if((me==null?void 0:me.toLowerCase())===vn.ETH_SENDTRANSACTION.toLowerCase()){const rt={method:me,params:[Object.assign(Object.assign({},De[0]),{from:Mt[0]})]};return yield(tt=Le.getProvider())===null||tt===void 0?void 0:tt.request(rt)}return wA.includes(me.toLowerCase())?(console.warn(`MetaMaskSDK connectWith method=${me} -- not handled by the extension -- call separately`),Mt):yield(Fe=Le.getProvider())===null||Fe===void 0?void 0:Fe.request({method:me,params:De})}))({method:fe.method,sdk:c,params:fe.params})}return Ze(`[initializeMobileProvider: sendRequest()] sending '${x}' on active provider`,we),yield(B=c.getProvider())===null||B===void 0?void 0:B.request({method:x,params:we})}throw Ze(`[initializeMobileProvider: sendRequest()] failed to start installer: ${oe}`),oe}if(x===vn.ETH_REQUESTACCOUNTS)return q=yield new Promise(oe=>{const fe=setInterval(()=>{const me=D.getSelectedAddress();me&&(clearInterval(fe),oe(me))},100)}),Ze(`[initializeMobileProvider: sendRequest()] selectedAddress: ${q} --- SKIP rpc call`),[q];if(x===vn.METAMASK_CONNECTWITH)try{return yield new Promise((oe,fe)=>{const me=g==null?void 0:g.getConnector().getRPCMethodTracker();Ze(`TRACKER: method ${ie}`,me),me!=null&&me[ie].result?oe(me==null?void 0:me[ie].result):me!=null&&me[ie].error&&fe(me==null?void 0:me[ie].error),g==null||g.getConnector().once(Ie.EventType.RPC_UPDATE,Le=>{Ze(`TRACKER: update method ${ie}`,Le),Le.result?oe(Le.result):fe(Le.error)})})}catch(oe){throw Ze("[initializeMobileProvider: sendRequest()] error:",oe),oe}return d[0]&&typeof d[0]=="object"&&(d[0].params={__triggeredInstaller:!0,wrappedParams:d[0].params}),p(...d)}if(o.isSecure()&&vy[x])return p(...d);if(c.isExtensionActive())return Ze(`[initializeMobileProvider: sendRequest()] EXTENSION active - redirect request '${x}' to it`,d,we),yield(K=c.getProvider())===null||K===void 0?void 0:K.request({method:x,params:we});throw Ze(`[initializeMobileProvider: sendRequest()] method=${x} --- skip --- not connected/installed`),new Error("MetaMask is not connected/installed, please call eth_requestAccounts to connect first.")}try{const we=yield p(...d);return Ze(`[initializeMobileProvider: sendRequest()] method=${x} rpcResponse: ${we}`),we}catch(we){throw console.error("[initializeMobileProvider: sendRequest()] error:",we),we}}),{request:Te}=ue;ue.request=(...x)=>Zt(void 0,void 0,void 0,function*(){return ye(x==null?void 0:x[0].method,x,Te,_)});const{send:y}=ue;return ue.send=(...x)=>Zt(void 0,void 0,void 0,function*(){return ye(x==null?void 0:x[0],x,y,_)}),Ze("[initializeMobileProvider: sendRequest()] metamaskStream.start()"),E.start(),ue});function HK(e){var t,n,r,o;return Zt(this,void 0,void 0,function*(){const{options:i}=e,c={communicationLayerPreference:(t=i.communicationLayerPreference)!==null&&t!==void 0?t:Ie.CommunicationLayerPreference.SOCKET,platformManager:e.platformManager,sdk:e,checkInstallationOnAllCalls:i.checkInstallationOnAllCalls,injectProvider:(n=i.injectProvider)===null||n===void 0||n,shouldShimWeb3:(r=i.shouldShimWeb3)===null||r===void 0||r,extensionOnly:(o=i.extensionOnly)===null||o===void 0||o,installer:e.installer,remoteConnection:e.remoteConnection,debug:e.debug},g=yield qK(c);e.activeProvider=g,function(_){var w,S,E,T;(S=(w=_.remoteConnection)===null||w===void 0?void 0:w.getConnector())===null||S===void 0||S.on(Ie.EventType.CONNECTION_STATUS,I=>{_.emit(Ie.EventType.CONNECTION_STATUS,I)}),(T=(E=_.remoteConnection)===null||E===void 0?void 0:E.getConnector())===null||T===void 0||T.on(Ie.EventType.SERVICE_STATUS,I=>{_.emit(Ie.EventType.SERVICE_STATUS,I)})}(e)})}var Cy,xy,Ay;const WK="sdk";class $K{constructor({serverUrl:t,enabled:n,originatorInfo:r}){Cy.set(this,_d),xy.set(this,void 0),Ay.set(this,void 0),k5(this,Cy,t),k5(this,Ay,r),k5(this,xy,n==null||n)}send({event:t,params:n}){if(!E5(this,xy))return;const r={id:WK,event:t,sdkVersion:wh.version,originationInfo:E5(this,Ay),params:n};Ze(`[Analytics: send()] event: ${t}`,r),Mp(r,E5(this,Cy)).catch(o=>{Ze(`[Analytics: send()] error: ${o}`)})}}Cy=new WeakMap,xy=new WeakMap,Ay=new WeakMap;const VK=()=>{if(typeof document>"u")return;let e;const t=document.getElementsByTagName("link");for(let n=0;n<t.length;n++)t[n].getAttribute("rel")!=="icon"&&t[n].getAttribute("rel")!=="shortcut icon"||(e=t[n].getAttribute("href"));return e},YK=163400;var Q5,GK=new Uint8Array(16);function ZK(){if(!Q5&&!(Q5=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Q5(GK)}for(var QK=/^(?:[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,qi=[],X5=0;X5<256;++X5)qi.push((X5+256).toString(16).substr(1));function XK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(qi[e[t+0]]+qi[e[t+1]]+qi[e[t+2]]+qi[e[t+3]]+"-"+qi[e[t+4]]+qi[e[t+5]]+"-"+qi[e[t+6]]+qi[e[t+7]]+"-"+qi[e[t+8]]+qi[e[t+9]]+"-"+qi[e[t+10]]+qi[e[t+11]]+qi[e[t+12]]+qi[e[t+13]]+qi[e[t+14]]+qi[e[t+15]]).toLowerCase();if(!function(r){return typeof r=="string"&&QK.test(r)}(n))throw TypeError("Stringified UUID is invalid");return n}function JK(e,t,n){var r=(e=e||{}).random||(e.rng||ZK)();return r[6]=15&r[6]|64,r[8]=63&r[8]|128,XK(r)}function UA(e){var t,n,r;const{dappMetadata:o}=e,i=function({url:S,name:E}){var T;const I=S+E,j=My(I);if(!localStorage)return"";let H=(T=localStorage.getItem(j))!==null&&T!==void 0?T:"";if(!H){H=JK();try{localStorage.setItem(j,H)}catch{return""}}return H}({url:(t=o==null?void 0:o.url)!==null&&t!==void 0?t:"no_url",name:(n=o==null?void 0:o.name)!==null&&n!==void 0?n:"no_name"}),c=(r=e.platformManager)===null||r===void 0?void 0:r.getPlatformType(),g=c===Ie.PlatformType.DesktopWeb,_=c===Ie.PlatformType.MetaMaskMobileWebview;let w="N/A";return g?w="extension":_&&(w="mobile"),{id:i,from:w}}const Ry=({provider:e,sdkInstance:t})=>{if("state"in e)throw new Error("INVALID EXTENSION PROVIDER");return new Proxy(e,{get:(n,r)=>r==="request"?function(o){var i,c;return Zt(this,void 0,void 0,function*(){Ze("[wrapExtensionProvider()] Overwriting request method",o);const{method:g,params:_}=o,w=wK.includes(g.toLowerCase()),{id:S,from:E}=UA(t);if(w&&((i=t.analytics)===null||i===void 0||i.send({event:ci.SDK_RPC_REQUEST,params:{method:g,from:E,id:S}})),g===vn.METAMASK_BATCH&&Array.isArray(_))return(({params:I,target:j,args:H,trackEvent:V,provider:ee,sdkInstance:X})=>Zt(void 0,void 0,void 0,function*(){var ue;for(const ye of I)yield ee==null?void 0:ee.request({method:ye.method,params:ye.params});const le=yield j.request(H),{id:pe,from:Me}=UA(X);return V&&((ue=X.analytics)===null||ue===void 0||ue.send({event:ci.SDK_RPC_REQUEST_DONE,params:{method:H.method,from:Me,id:pe}})),le}))({params:_,target:n,args:o,trackEvent:w,sdkInstance:t,provider:e});if(g.toLowerCase()===vn.METAMASK_CONNECTSIGN.toLowerCase()&&Array.isArray(_))return(({target:I,params:j})=>Zt(void 0,void 0,void 0,function*(){const H=yield I.request({method:vn.ETH_REQUESTACCOUNTS,params:[]});if(!H.length)throw new Error("SDK state invalid -- undefined accounts");return yield I.request({method:vn.PERSONAL_SIGN,params:[j[0],H[0]]})}))({target:n,params:_});if(g.toLowerCase()===vn.METAMASK_CONNECTWITH.toLowerCase()&&Array.isArray(_))return(({target:I,params:j})=>Zt(void 0,void 0,void 0,function*(){const[H]=j,V=H.method,ee=H.params,X=yield I.request({method:vn.ETH_REQUESTACCOUNTS,params:[]});if(!X.length)throw new Error("SDK state invalid -- undefined accounts");return(V==null?void 0:V.toLowerCase())===vn.PERSONAL_SIGN.toLowerCase()?yield I.request({method:V,params:[ee[0],X[0]]}):(V==null?void 0:V.toLowerCase())===vn.ETH_SENDTRANSACTION.toLowerCase()?yield I.request({method:V,params:[Object.assign(Object.assign({},ee[0]),{from:X[0]})]}):wA.includes(V.toLowerCase())?(console.warn(`MetaMaskSDK connectWith method=${V} -- not handled by the extension -- call separately`),X):yield I.request({method:V,params:ee})}))({target:n,params:_});let T;try{return T=yield n.request(o),T}finally{w&&((c=t.analytics)===null||c===void 0||c.send({event:ci.SDK_RPC_REQUEST_DONE,params:{method:g,from:E,id:S}}))}})}:r==="getChainId"?function(){return e.chainId}:r==="getNetworkVersion"?function(){return e.networkVersion}:r==="getSelectedAddress"?function(){return e.selectedAddress}:r==="isConnected"?function(){return e._state.isConnected}:n[r]})};var Ty;function eq({mustBeMetaMask:e,sdkInstance:t}){return Zt(this,void 0,void 0,function*(){if(typeof window>"u")throw new Error("window not available");let n;try{return n=yield new Promise((r,o)=>{const i=setTimeout(()=>{o(new Error("eip6963RequestProvider timed out"))},500);window.addEventListener(Ty.Announce,c=>{const g=c,{detail:{info:_,provider:w}={}}=g,{name:S,rdns:E,uuid:T}=_??{};jK.test(T)&&S.startsWith(DA.NAME)&&E===DA.RDNS&&(clearTimeout(i),r(w))}),window.dispatchEvent(new Event(Ty.Request))}),Ry({provider:n,sdkInstance:t})}catch{const{ethereum:o}=window;if(!o)throw new Error("Ethereum not found in window object");if("providers"in o){if(Array.isArray(o.providers)){const i=e?o.providers.find(c=>c.isMetaMask):o.providers[0];if(!i)throw new Error("No suitable provider found");return Ry({provider:i,sdkInstance:t})}}else if(e&&!o.isMetaMask)throw new Error("MetaMask provider not found in Ethereum");return Ry({provider:o,sdkInstance:t})}})}(function(e){e.Announce="eip6963:announceProvider",e.Request="eip6963:requestProvider"})(Ty||(Ty={}));var FA={exports:{}};(function(e,t){e.exports=function(n){var r={};function o(i){if(r[i])return r[i].exports;var c=r[i]={i,l:!1,exports:{}};return n[i].call(c.exports,c,c.exports,o),c.l=!0,c.exports}return o.m=n,o.c=r,o.d=function(i,c,g){o.o(i,c)||Object.defineProperty(i,c,{enumerable:!0,get:g})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,c){if(1&c&&(i=o(i)),8&c||4&c&&typeof i=="object"&&i&&i.__esModule)return i;var g=Object.create(null);if(o.r(g),Object.defineProperty(g,"default",{enumerable:!0,value:i}),2&c&&typeof i!="string")for(var _ in i)o.d(g,_,(function(w){return i[w]}).bind(null,_));return g},o.n=function(i){var c=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(c,"a",c),c},o.o=function(i,c){return Object.prototype.hasOwnProperty.call(i,c)},o.p="",o(o.s=90)}({17:function(n,r,o){r.__esModule=!0,r.default=void 0;var i=o(18),c=function(){function g(){}return g.getFirstMatch=function(_,w){var S=w.match(_);return S&&S.length>0&&S[1]||""},g.getSecondMatch=function(_,w){var S=w.match(_);return S&&S.length>1&&S[2]||""},g.matchAndReturnConst=function(_,w,S){if(_.test(w))return S},g.getWindowsVersionName=function(_){switch(_){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},g.getMacOSVersionName=function(_){var w=_.split(".").splice(0,2).map(function(S){return parseInt(S,10)||0});if(w.push(0),w[0]===10)switch(w[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},g.getAndroidVersionName=function(_){var w=_.split(".").splice(0,2).map(function(S){return parseInt(S,10)||0});if(w.push(0),!(w[0]===1&&w[1]<5))return w[0]===1&&w[1]<6?"Cupcake":w[0]===1&&w[1]>=6?"Donut":w[0]===2&&w[1]<2?"Eclair":w[0]===2&&w[1]===2?"Froyo":w[0]===2&&w[1]>2?"Gingerbread":w[0]===3?"Honeycomb":w[0]===4&&w[1]<1?"Ice Cream Sandwich":w[0]===4&&w[1]<4?"Jelly Bean":w[0]===4&&w[1]>=4?"KitKat":w[0]===5?"Lollipop":w[0]===6?"Marshmallow":w[0]===7?"Nougat":w[0]===8?"Oreo":w[0]===9?"Pie":void 0},g.getVersionPrecision=function(_){return _.split(".").length},g.compareVersions=function(_,w,S){S===void 0&&(S=!1);var E=g.getVersionPrecision(_),T=g.getVersionPrecision(w),I=Math.max(E,T),j=0,H=g.map([_,w],function(V){var ee=I-g.getVersionPrecision(V),X=V+new Array(ee+1).join(".0");return g.map(X.split("."),function(ue){return new Array(20-ue.length).join("0")+ue}).reverse()});for(S&&(j=I-Math.min(E,T)),I-=1;I>=j;){if(H[0][I]>H[1][I])return 1;if(H[0][I]===H[1][I]){if(I===j)return 0;I-=1}else if(H[0][I]<H[1][I])return-1}},g.map=function(_,w){var S,E=[];if(Array.prototype.map)return Array.prototype.map.call(_,w);for(S=0;S<_.length;S+=1)E.push(w(_[S]));return E},g.find=function(_,w){var S,E;if(Array.prototype.find)return Array.prototype.find.call(_,w);for(S=0,E=_.length;S<E;S+=1){var T=_[S];if(w(T,S))return T}},g.assign=function(_){for(var w,S,E=_,T=arguments.length,I=new Array(T>1?T-1:0),j=1;j<T;j++)I[j-1]=arguments[j];if(Object.assign)return Object.assign.apply(Object,[_].concat(I));var H=function(){var V=I[w];typeof V=="object"&&V!==null&&Object.keys(V).forEach(function(ee){E[ee]=V[ee]})};for(w=0,S=I.length;w<S;w+=1)H();return _},g.getBrowserAlias=function(_){return i.BROWSER_ALIASES_MAP[_]},g.getBrowserTypeByAlias=function(_){return i.BROWSER_MAP[_]||""},g}();r.default=c,n.exports=r.default},18:function(n,r,o){r.__esModule=!0,r.ENGINE_MAP=r.OS_MAP=r.PLATFORMS_MAP=r.BROWSER_MAP=r.BROWSER_ALIASES_MAP=void 0,r.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},r.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},r.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},r.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},r.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(n,r,o){r.__esModule=!0,r.default=void 0;var i,c=(i=o(91))&&i.__esModule?i:{default:i},g=o(18);function _(S,E){for(var T=0;T<E.length;T++){var I=E[T];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(S,I.key,I)}}var w=function(){function S(){}var E,T,I;return S.getParser=function(j,H){if(H===void 0&&(H=!1),typeof j!="string")throw new Error("UserAgent should be a string");return new c.default(j,H)},S.parse=function(j){return new c.default(j).getResult()},E=S,I=[{key:"BROWSER_MAP",get:function(){return g.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return g.ENGINE_MAP}},{key:"OS_MAP",get:function(){return g.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return g.PLATFORMS_MAP}}],(T=null)&&_(E.prototype,T),I&&_(E,I),S}();r.default=w,n.exports=r.default},91:function(n,r,o){r.__esModule=!0,r.default=void 0;var i=S(o(92)),c=S(o(93)),g=S(o(94)),_=S(o(95)),w=S(o(17));function S(T){return T&&T.__esModule?T:{default:T}}var E=function(){function T(j,H){if(H===void 0&&(H=!1),j==null||j==="")throw new Error("UserAgent parameter can't be empty");this._ua=j,this.parsedResult={},H!==!0&&this.parse()}var I=T.prototype;return I.getUA=function(){return this._ua},I.test=function(j){return j.test(this._ua)},I.parseBrowser=function(){var j=this;this.parsedResult.browser={};var H=w.default.find(i.default,function(V){if(typeof V.test=="function")return V.test(j);if(V.test instanceof Array)return V.test.some(function(ee){return j.test(ee)});throw new Error("Browser's test function is not valid")});return H&&(this.parsedResult.browser=H.describe(this.getUA())),this.parsedResult.browser},I.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},I.getBrowserName=function(j){return j?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},I.getBrowserVersion=function(){return this.getBrowser().version},I.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},I.parseOS=function(){var j=this;this.parsedResult.os={};var H=w.default.find(c.default,function(V){if(typeof V.test=="function")return V.test(j);if(V.test instanceof Array)return V.test.some(function(ee){return j.test(ee)});throw new Error("Browser's test function is not valid")});return H&&(this.parsedResult.os=H.describe(this.getUA())),this.parsedResult.os},I.getOSName=function(j){var H=this.getOS().name;return j?String(H).toLowerCase()||"":H||""},I.getOSVersion=function(){return this.getOS().version},I.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},I.getPlatformType=function(j){j===void 0&&(j=!1);var H=this.getPlatform().type;return j?String(H).toLowerCase()||"":H||""},I.parsePlatform=function(){var j=this;this.parsedResult.platform={};var H=w.default.find(g.default,function(V){if(typeof V.test=="function")return V.test(j);if(V.test instanceof Array)return V.test.some(function(ee){return j.test(ee)});throw new Error("Browser's test function is not valid")});return H&&(this.parsedResult.platform=H.describe(this.getUA())),this.parsedResult.platform},I.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},I.getEngineName=function(j){return j?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},I.parseEngine=function(){var j=this;this.parsedResult.engine={};var H=w.default.find(_.default,function(V){if(typeof V.test=="function")return V.test(j);if(V.test instanceof Array)return V.test.some(function(ee){return j.test(ee)});throw new Error("Browser's test function is not valid")});return H&&(this.parsedResult.engine=H.describe(this.getUA())),this.parsedResult.engine},I.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},I.getResult=function(){return w.default.assign({},this.parsedResult)},I.satisfies=function(j){var H=this,V={},ee=0,X={},ue=0;if(Object.keys(j).forEach(function(d){var p=j[d];typeof p=="string"?(X[d]=p,ue+=1):typeof p=="object"&&(V[d]=p,ee+=1)}),ee>0){var le=Object.keys(V),pe=w.default.find(le,function(d){return H.isOS(d)});if(pe){var Me=this.satisfies(V[pe]);if(Me!==void 0)return Me}var ye=w.default.find(le,function(d){return H.isPlatform(d)});if(ye){var Te=this.satisfies(V[ye]);if(Te!==void 0)return Te}}if(ue>0){var y=Object.keys(X),x=w.default.find(y,function(d){return H.isBrowser(d,!0)});if(x!==void 0)return this.compareVersion(X[x])}},I.isBrowser=function(j,H){H===void 0&&(H=!1);var V=this.getBrowserName().toLowerCase(),ee=j.toLowerCase(),X=w.default.getBrowserTypeByAlias(ee);return H&&X&&(ee=X.toLowerCase()),ee===V},I.compareVersion=function(j){var H=[0],V=j,ee=!1,X=this.getBrowserVersion();if(typeof X=="string")return j[0]===">"||j[0]==="<"?(V=j.substr(1),j[1]==="="?(ee=!0,V=j.substr(2)):H=[],j[0]===">"?H.push(1):H.push(-1)):j[0]==="="?V=j.substr(1):j[0]==="~"&&(ee=!0,V=j.substr(1)),H.indexOf(w.default.compareVersions(X,V,ee))>-1},I.isOS=function(j){return this.getOSName(!0)===String(j).toLowerCase()},I.isPlatform=function(j){return this.getPlatformType(!0)===String(j).toLowerCase()},I.isEngine=function(j){return this.getEngineName(!0)===String(j).toLowerCase()},I.is=function(j,H){return H===void 0&&(H=!1),this.isBrowser(j,H)||this.isOS(j)||this.isPlatform(j)},I.some=function(j){var H=this;return j===void 0&&(j=[]),j.some(function(V){return H.is(V)})},T}();r.default=E,n.exports=r.default},92:function(n,r,o){r.__esModule=!0,r.default=void 0;var i,c=(i=o(17))&&i.__esModule?i:{default:i},g=/version\/(\d+(\.?_?\d+)+)/i,_=[{test:[/googlebot/i],describe:function(w){var S={name:"Googlebot"},E=c.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,w)||c.default.getFirstMatch(g,w);return E&&(S.version=E),S}},{test:[/opera/i],describe:function(w){var S={name:"Opera"},E=c.default.getFirstMatch(g,w)||c.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/opr\/|opios/i],describe:function(w){var S={name:"Opera"},E=c.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,w)||c.default.getFirstMatch(g,w);return E&&(S.version=E),S}},{test:[/SamsungBrowser/i],describe:function(w){var S={name:"Samsung Internet for Android"},E=c.default.getFirstMatch(g,w)||c.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/Whale/i],describe:function(w){var S={name:"NAVER Whale Browser"},E=c.default.getFirstMatch(g,w)||c.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/MZBrowser/i],describe:function(w){var S={name:"MZ Browser"},E=c.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,w)||c.default.getFirstMatch(g,w);return E&&(S.version=E),S}},{test:[/focus/i],describe:function(w){var S={name:"Focus"},E=c.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,w)||c.default.getFirstMatch(g,w);return E&&(S.version=E),S}},{test:[/swing/i],describe:function(w){var S={name:"Swing"},E=c.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,w)||c.default.getFirstMatch(g,w);return E&&(S.version=E),S}},{test:[/coast/i],describe:function(w){var S={name:"Opera Coast"},E=c.default.getFirstMatch(g,w)||c.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(w){var S={name:"Opera Touch"},E=c.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,w)||c.default.getFirstMatch(g,w);return E&&(S.version=E),S}},{test:[/yabrowser/i],describe:function(w){var S={name:"Yandex Browser"},E=c.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,w)||c.default.getFirstMatch(g,w);return E&&(S.version=E),S}},{test:[/ucbrowser/i],describe:function(w){var S={name:"UC Browser"},E=c.default.getFirstMatch(g,w)||c.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/Maxthon|mxios/i],describe:function(w){var S={name:"Maxthon"},E=c.default.getFirstMatch(g,w)||c.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/epiphany/i],describe:function(w){var S={name:"Epiphany"},E=c.default.getFirstMatch(g,w)||c.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/puffin/i],describe:function(w){var S={name:"Puffin"},E=c.default.getFirstMatch(g,w)||c.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/sleipnir/i],describe:function(w){var S={name:"Sleipnir"},E=c.default.getFirstMatch(g,w)||c.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/k-meleon/i],describe:function(w){var S={name:"K-Meleon"},E=c.default.getFirstMatch(g,w)||c.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/micromessenger/i],describe:function(w){var S={name:"WeChat"},E=c.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,w)||c.default.getFirstMatch(g,w);return E&&(S.version=E),S}},{test:[/qqbrowser/i],describe:function(w){var S={name:/qqbrowserlite/i.test(w)?"QQ Browser Lite":"QQ Browser"},E=c.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,w)||c.default.getFirstMatch(g,w);return E&&(S.version=E),S}},{test:[/msie|trident/i],describe:function(w){var S={name:"Internet Explorer"},E=c.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/\sedg\//i],describe:function(w){var S={name:"Microsoft Edge"},E=c.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/edg([ea]|ios)/i],describe:function(w){var S={name:"Microsoft Edge"},E=c.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/vivaldi/i],describe:function(w){var S={name:"Vivaldi"},E=c.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/seamonkey/i],describe:function(w){var S={name:"SeaMonkey"},E=c.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/sailfish/i],describe:function(w){var S={name:"Sailfish"},E=c.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,w);return E&&(S.version=E),S}},{test:[/silk/i],describe:function(w){var S={name:"Amazon Silk"},E=c.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/phantom/i],describe:function(w){var S={name:"PhantomJS"},E=c.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/slimerjs/i],describe:function(w){var S={name:"SlimerJS"},E=c.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(w){var S={name:"BlackBerry"},E=c.default.getFirstMatch(g,w)||c.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/(web|hpw)[o0]s/i],describe:function(w){var S={name:"WebOS Browser"},E=c.default.getFirstMatch(g,w)||c.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/bada/i],describe:function(w){var S={name:"Bada"},E=c.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/tizen/i],describe:function(w){var S={name:"Tizen"},E=c.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,w)||c.default.getFirstMatch(g,w);return E&&(S.version=E),S}},{test:[/qupzilla/i],describe:function(w){var S={name:"QupZilla"},E=c.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,w)||c.default.getFirstMatch(g,w);return E&&(S.version=E),S}},{test:[/firefox|iceweasel|fxios/i],describe:function(w){var S={name:"Firefox"},E=c.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/electron/i],describe:function(w){var S={name:"Electron"},E=c.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/MiuiBrowser/i],describe:function(w){var S={name:"Miui"},E=c.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/chromium/i],describe:function(w){var S={name:"Chromium"},E=c.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,w)||c.default.getFirstMatch(g,w);return E&&(S.version=E),S}},{test:[/chrome|crios|crmo/i],describe:function(w){var S={name:"Chrome"},E=c.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/GSA/i],describe:function(w){var S={name:"Google Search"},E=c.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:function(w){var S=!w.test(/like android/i),E=w.test(/android/i);return S&&E},describe:function(w){var S={name:"Android Browser"},E=c.default.getFirstMatch(g,w);return E&&(S.version=E),S}},{test:[/playstation 4/i],describe:function(w){var S={name:"PlayStation 4"},E=c.default.getFirstMatch(g,w);return E&&(S.version=E),S}},{test:[/safari|applewebkit/i],describe:function(w){var S={name:"Safari"},E=c.default.getFirstMatch(g,w);return E&&(S.version=E),S}},{test:[/.*/i],describe:function(w){var S=w.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:c.default.getFirstMatch(S,w),version:c.default.getSecondMatch(S,w)}}}];r.default=_,n.exports=r.default},93:function(n,r,o){r.__esModule=!0,r.default=void 0;var i,c=(i=o(17))&&i.__esModule?i:{default:i},g=o(18),_=[{test:[/Roku\/DVP/],describe:function(w){var S=c.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,w);return{name:g.OS_MAP.Roku,version:S}}},{test:[/windows phone/i],describe:function(w){var S=c.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,w);return{name:g.OS_MAP.WindowsPhone,version:S}}},{test:[/windows /i],describe:function(w){var S=c.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,w),E=c.default.getWindowsVersionName(S);return{name:g.OS_MAP.Windows,version:S,versionName:E}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(w){var S={name:g.OS_MAP.iOS},E=c.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,w);return E&&(S.version=E),S}},{test:[/macintosh/i],describe:function(w){var S=c.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,w).replace(/[_\s]/g,"."),E=c.default.getMacOSVersionName(S),T={name:g.OS_MAP.MacOS,version:S};return E&&(T.versionName=E),T}},{test:[/(ipod|iphone|ipad)/i],describe:function(w){var S=c.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,w).replace(/[_\s]/g,".");return{name:g.OS_MAP.iOS,version:S}}},{test:function(w){var S=!w.test(/like android/i),E=w.test(/android/i);return S&&E},describe:function(w){var S=c.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,w),E=c.default.getAndroidVersionName(S),T={name:g.OS_MAP.Android,version:S};return E&&(T.versionName=E),T}},{test:[/(web|hpw)[o0]s/i],describe:function(w){var S=c.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,w),E={name:g.OS_MAP.WebOS};return S&&S.length&&(E.version=S),E}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(w){var S=c.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,w)||c.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,w)||c.default.getFirstMatch(/\bbb(\d+)/i,w);return{name:g.OS_MAP.BlackBerry,version:S}}},{test:[/bada/i],describe:function(w){var S=c.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,w);return{name:g.OS_MAP.Bada,version:S}}},{test:[/tizen/i],describe:function(w){var S=c.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,w);return{name:g.OS_MAP.Tizen,version:S}}},{test:[/linux/i],describe:function(){return{name:g.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:g.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(w){var S=c.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,w);return{name:g.OS_MAP.PlayStation4,version:S}}}];r.default=_,n.exports=r.default},94:function(n,r,o){r.__esModule=!0,r.default=void 0;var i,c=(i=o(17))&&i.__esModule?i:{default:i},g=o(18),_=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(w){var S=c.default.getFirstMatch(/(can-l01)/i,w)&&"Nova",E={type:g.PLATFORMS_MAP.mobile,vendor:"Huawei"};return S&&(E.model=S),E}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:g.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:g.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:g.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:g.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:g.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:g.PLATFORMS_MAP.tablet}}},{test:function(w){var S=w.test(/ipod|iphone/i),E=w.test(/like (ipod|iphone)/i);return S&&!E},describe:function(w){var S=c.default.getFirstMatch(/(ipod|iphone)/i,w);return{type:g.PLATFORMS_MAP.mobile,vendor:"Apple",model:S}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:g.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:g.PLATFORMS_MAP.mobile}}},{test:function(w){return w.getBrowserName(!0)==="blackberry"},describe:function(){return{type:g.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(w){return w.getBrowserName(!0)==="bada"},describe:function(){return{type:g.PLATFORMS_MAP.mobile}}},{test:function(w){return w.getBrowserName()==="windows phone"},describe:function(){return{type:g.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(w){var S=Number(String(w.getOSVersion()).split(".")[0]);return w.getOSName(!0)==="android"&&S>=3},describe:function(){return{type:g.PLATFORMS_MAP.tablet}}},{test:function(w){return w.getOSName(!0)==="android"},describe:function(){return{type:g.PLATFORMS_MAP.mobile}}},{test:function(w){return w.getOSName(!0)==="macos"},describe:function(){return{type:g.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(w){return w.getOSName(!0)==="windows"},describe:function(){return{type:g.PLATFORMS_MAP.desktop}}},{test:function(w){return w.getOSName(!0)==="linux"},describe:function(){return{type:g.PLATFORMS_MAP.desktop}}},{test:function(w){return w.getOSName(!0)==="playstation 4"},describe:function(){return{type:g.PLATFORMS_MAP.tv}}},{test:function(w){return w.getOSName(!0)==="roku"},describe:function(){return{type:g.PLATFORMS_MAP.tv}}}];r.default=_,n.exports=r.default},95:function(n,r,o){r.__esModule=!0,r.default=void 0;var i,c=(i=o(17))&&i.__esModule?i:{default:i},g=o(18),_=[{test:function(w){return w.getBrowserName(!0)==="microsoft edge"},describe:function(w){if(/\sedg\//i.test(w))return{name:g.ENGINE_MAP.Blink};var S=c.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,w);return{name:g.ENGINE_MAP.EdgeHTML,version:S}}},{test:[/trident/i],describe:function(w){var S={name:g.ENGINE_MAP.Trident},E=c.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:function(w){return w.test(/presto/i)},describe:function(w){var S={name:g.ENGINE_MAP.Presto},E=c.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:function(w){var S=w.test(/gecko/i),E=w.test(/like gecko/i);return S&&!E},describe:function(w){var S={name:g.ENGINE_MAP.Gecko},E=c.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:g.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(w){var S={name:g.ENGINE_MAP.WebKit},E=c.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,w);return E&&(S.version=E),S}}];r.default=_,n.exports=r.default}})})(FA);var KA=td(FA.exports);class tq{constructor({useDeepLink:t,preferredOpenLink:n,debug:r=!1}){this.state={platformType:void 0,useDeeplink:!1,preferredOpenLink:void 0,debug:!1},this.state.platformType=this.getPlatformType(),this.state.useDeeplink=t,this.state.preferredOpenLink=n,this.state.debug=r}openDeeplink(t,n,r){return function(o,i,c,g){const{state:_}=o;Ze(`[PlatfformManager: openDeeplink()] universalLink --> ${i}`),Ze(`[PlatfformManager: openDeeplink()] deepLink --> ${c}`);try{if(_.preferredOpenLink)return void _.preferredOpenLink(_.useDeeplink?c:i,g);if(Ze(`[PlatfformManager: openDeeplink()] open link now useDeepLink=${_.useDeeplink} link=${_.useDeeplink?c:i}`),_.useDeeplink)typeof window<"u"&&(window.location.href=c);else if(typeof document<"u"){const w=document.createElement("a");w.href=i,w.target="_self",w.rel="noreferrer noopener",w.click()}}catch(w){console.log("[PlatfformManager: openDeeplink()] can't open link",w)}}(this,t,n,r)}isReactNative(){var t;return this.isNotBrowser()&&typeof window<"u"&&(window==null?void 0:window.navigator)&&((t=window.navigator)===null||t===void 0?void 0:t.product)==="ReactNative"}isMetaMaskInstalled(){return function(){const t=$s.getProvider()||(window==null?void 0:window.ethereum);return Ze(`[PlatfformManager: isMetaMaskInstalled()] isMetaMask=${t==null?void 0:t.isMetaMask} isConnected=${t==null?void 0:t.isConnected()}`),(t==null?void 0:t.isMetaMask)&&(t==null?void 0:t.isConnected())}()}isDesktopWeb(){return this.isBrowser()&&!this.isMobileWeb()}isMobile(){var t,n;const r=KA.parse(window.navigator.userAgent);return((t=r==null?void 0:r.platform)===null||t===void 0?void 0:t.type)==="mobile"||((n=r==null?void 0:r.platform)===null||n===void 0?void 0:n.type)==="tablet"}isSecure(){return this.isReactNative()||this.isMobileWeb()}isMetaMaskMobileWebView(){return typeof window<"u"&&!!window.ReactNativeWebView&&!!navigator.userAgent.endsWith("MetaMaskMobile")}isMobileWeb(){return this.state.platformType===Ie.PlatformType.MobileWeb}isNotBrowser(){var t;return typeof window>"u"||!(window!=null&&window.navigator)||typeof Ho.commonjsGlobal<"u"&&((t=Ho.commonjsGlobal===null||Ho.commonjsGlobal===void 0?void 0:Ho.commonjsGlobal.navigator)===null||t===void 0?void 0:t.product)==="ReactNative"||(navigator==null?void 0:navigator.product)==="ReactNative"}isNodeJS(){return this.isNotBrowser()&&!this.isReactNative()}isBrowser(){return!this.isNotBrowser()}isUseDeepLink(){return this.state.useDeeplink}getPlatformType(){return function(t){const{state:n}=t;return n.platformType?n.platformType:t.isReactNative()?Ie.PlatformType.ReactNative:t.isNotBrowser()?Ie.PlatformType.NonBrowser:t.isMetaMaskMobileWebView()?Ie.PlatformType.MetaMaskMobileWebview:t.isMobile()?Ie.PlatformType.MobileWeb:Ie.PlatformType.DesktopWeb}(this)}}/*! *****************************************************************************
34
+ Copyright (c) Microsoft Corporation.
35
+
36
+ Permission to use, copy, modify, and/or distribute this software for any
37
+ purpose with or without fee is hereby granted.
38
+
39
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
40
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
41
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
42
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
43
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
44
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
45
+ PERFORMANCE OF THIS SOFTWARE.
46
+ ***************************************************************************** */function nq(e,t,n,r){return new(n||(n=Promise))(function(o,i){function c(w){try{_(r.next(w))}catch(S){i(S)}}function g(w){try{_(r.throw(w))}catch(S){i(S)}}function _(w){w.done?o(w.value):function(S){return S instanceof n?S:new n(function(E){E(S)})}(w.value).then(c,g)}_((r=r.apply(e,[])).next())})}function rq(e,t){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function g(_){return function(w){return function(S){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&S[0]?r.return:S[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,S[1])).done)return o;switch(r=0,o&&(S=[2&S[0],o.value]),S[0]){case 0:case 1:o=S;break;case 4:return c.label++,{value:S[1],done:!1};case 5:c.label++,r=S[1],S=[0];continue;case 7:S=c.ops.pop(),c.trys.pop();continue;default:if(o=c.trys,!((o=o.length>0&&o[o.length-1])||S[0]!==6&&S[0]!==2)){c=0;continue}if(S[0]===3&&(!o||S[1]>o[0]&&S[1]<o[3])){c.label=S[1];break}if(S[0]===6&&c.label<o[1]){c.label=o[1],o=S;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(S);break}o[2]&&c.ops.pop(),c.trys.pop();continue}S=t.call(e,c)}catch(E){S=[6,E],r=0}finally{n=o=0}if(5&S[0])throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}([_,w])}}}var qA="INSTALLED",HA="NOT_INSTALLED",WA="REGISTERED",$A="REGISTERING",VA="RELOADING",YA={CHROME:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",FIREFOX:"https://addons.mozilla.org/firefox/addon/ether-metamask/",DEFAULT:"https://metamask.io"},Py="REGISTRATION_IN_PROGRESS",GA="FORWARDER_ID",iq=function(){function e(t){var n=t===void 0?{}:t,r=n.forwarderOrigin,o=r===void 0?"https://fwd.metamask.io":r,i=n.forwarderMode,c=i===void 0?e.FORWARDER_MODE.INJECT:i;this.forwarderOrigin=o,this.forwarderMode=c,this.state=e.isMetaMaskInstalled()?qA:HA;var g=e._detectBrowser();this.downloadUrl=g?YA[g]:YA.DEFAULT,this._onMessage=this._onMessage.bind(this),this._onMessageFromForwarder=this._onMessageFromForwarder.bind(this),this._openForwarder=this._openForwarder.bind(this),this._openDownloadPage=this._openDownloadPage.bind(this),this.startOnboarding=this.startOnboarding.bind(this),this.stopOnboarding=this.stopOnboarding.bind(this),window.addEventListener("message",this._onMessage),c===e.FORWARDER_MODE.INJECT&&sessionStorage.getItem(Py)==="true"&&e._injectForwarder(this.forwarderOrigin)}return e.prototype._onMessage=function(t){if(t.origin===this.forwarderOrigin)return t.data.type==="metamask:reload"?this._onMessageFromForwarder(t):void console.debug("Unknown message from '"+t.origin+"' with data "+JSON.stringify(t.data))},e.prototype._onMessageUnknownStateError=function(t){throw new Error("Unknown state: '"+t+"'")},e.prototype._onMessageFromForwarder=function(t){return nq(this,void 0,void 0,function(){return rq(this,function(n){switch(n.label){case 0:switch(this.state){case VA:return[3,1];case HA:return[3,2];case qA:return[3,3];case $A:return[3,5];case WA:return[3,6]}return[3,7];case 1:return console.debug("Ignoring message while reloading"),[3,8];case 2:return console.debug("Reloading now to register with MetaMask"),this.state=VA,location.reload(),[3,8];case 3:return console.debug("Registering with MetaMask"),this.state=$A,[4,e._register()];case 4:return n.sent(),this.state=WA,t.source.postMessage({type:"metamask:registrationCompleted"},t.origin),this.stopOnboarding(),[3,8];case 5:return console.debug("Already registering - ignoring reload message"),[3,8];case 6:return console.debug("Already registered - ignoring reload message"),[3,8];case 7:this._onMessageUnknownStateError(this.state),n.label=8;case 8:return[2]}})})},e.prototype.startOnboarding=function(){sessionStorage.setItem(Py,"true"),this._openDownloadPage(),this._openForwarder()},e.prototype.stopOnboarding=function(){sessionStorage.getItem(Py)==="true"&&(this.forwarderMode===e.FORWARDER_MODE.INJECT&&(console.debug("Removing forwarder"),e._removeForwarder()),sessionStorage.setItem(Py,"false"))},e.prototype._openForwarder=function(){this.forwarderMode===e.FORWARDER_MODE.OPEN_TAB?window.open(this.forwarderOrigin,"_blank"):e._injectForwarder(this.forwarderOrigin)},e.prototype._openDownloadPage=function(){window.open(this.downloadUrl,"_blank")},e.isMetaMaskInstalled=function(){return!!(window.ethereum&&window.ethereum.isMetaMask)},e._register=function(){return window.ethereum.request({method:"wallet_registerOnboarding"})},e._injectForwarder=function(t){var n=document.body,r=document.createElement("iframe");r.setAttribute("height","0"),r.setAttribute("width","0"),r.setAttribute("style","display: none;"),r.setAttribute("src",t),r.setAttribute("id",GA),n.insertBefore(r,n.children[0])},e._removeForwarder=function(){var t;(t=document.getElementById(GA))===null||t===void 0||t.remove()},e._detectBrowser=function(){var t=KA.parse(window.navigator.userAgent);return t.browser.name==="Firefox"?"FIREFOX":["Chrome","Chromium"].includes(t.browser.name||"")?"CHROME":null},e.FORWARDER_MODE={INJECT:"INJECT",OPEN_TAB:"OPEN_TAB"},e}();function oq(e,{wait:t=!1}){return Zt(this,void 0,void 0,function*(){return Ze(`[MetamaskInstaller: startInstaller()] wait=${t}`),t&&(yield zA(1e3)),yield e.checkInstallation()})}class aq{constructor({remote:t,preferDesktop:n,platformManager:r,debug:o=!1}){this.state={isInstalling:!1,hasInstalled:!1,resendRequest:null,preferDesktop:!1,platformManager:null,remote:null,debug:!1,connectWith:void 0},this.state.remote=t,this.state.preferDesktop=n,this.state.platformManager=r,this.state.debug=o}startDesktopOnboarding(){return function(){return Zt(this,void 0,void 0,function*(){Ze("[MetamaskInstaller: startDesktopOnboarding() starting desktop onboarding"),delete window.ethereum,new iq().startOnboarding()})}()}redirectToProperInstall(){return Zt(this,void 0,void 0,function*(){return function(t){var n,r;return Zt(this,void 0,void 0,function*(){const{state:o}=t,i=(n=o.platformManager)===null||n===void 0?void 0:n.getPlatformType();if(Ze(`[MetamaskInstaller: redirectToProperInstall()] platform=${i}`),i===Ie.PlatformType.MetaMaskMobileWebview)return!1;o.isInstalling=!0;try{yield(r=o.remote)===null||r===void 0?void 0:r.startConnection({connectWith:o.connectWith}),o.isInstalling=!1,o.hasInstalled=!0}catch(c){throw o.isInstalling=!1,c}return!0})}(this)})}checkInstallation(){return Zt(this,void 0,void 0,function*(){return function(t){var n;return Zt(this,void 0,void 0,function*(){const{state:r}=t,o=(n=r.platformManager)===null||n===void 0?void 0:n.isMetaMaskInstalled();return Ze(`[MetamaskInstaller: checkInstallation()] isInstalled=${o}`),!!o||(yield t.redirectToProperInstall())})}(this)})}start({wait:t=!1,connectWith:n}){return Zt(this,void 0,void 0,function*(){this.state.connectWith=n,Ze(`[MetaMaskInstaller: start()] wait=${t}`,n),yield oq(this,{wait:t})})}}var ZA,QA={exports:{}},J5={exports:{}},Dn={};function sq(){if(ZA)return Dn;ZA=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),w=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),E=Symbol.iterator,T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,j={};function H(C,R,L){this.props=C,this.context=R,this.refs=j,this.updater=L||T}function V(){}function ee(C,R,L){this.props=C,this.context=R,this.refs=j,this.updater=L||T}H.prototype.isReactComponent={},H.prototype.setState=function(C,R){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,R,"setState")},H.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")},V.prototype=H.prototype;var X=ee.prototype=new V;X.constructor=ee,I(X,H.prototype),X.isPureReactComponent=!0;var ue=Array.isArray,le=Object.prototype.hasOwnProperty,pe={current:null},Me={key:!0,ref:!0,__self:!0,__source:!0};function ye(C,R,L){var B,K={},z=null,O=null;if(R!=null)for(B in R.ref!==void 0&&(O=R.ref),R.key!==void 0&&(z=""+R.key),R)le.call(R,B)&&!Me.hasOwnProperty(B)&&(K[B]=R[B]);var D=arguments.length-2;if(D===1)K.children=L;else if(1<D){for(var q=Array(D),Y=0;Y<D;Y++)q[Y]=arguments[Y+2];K.children=q}if(C&&C.defaultProps)for(B in D=C.defaultProps)K[B]===void 0&&(K[B]=D[B]);return{$$typeof:e,type:C,key:z,ref:O,props:K,_owner:pe.current}}function Te(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}var y=/\/+/g;function x(C,R){return typeof C=="object"&&C!==null&&C.key!=null?function(L){var B={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(K){return B[K]})}(""+C.key):R.toString(36)}function d(C,R,L,B,K){var z=typeof C;z!=="undefined"&&z!=="boolean"||(C=null);var O=!1;if(C===null)O=!0;else switch(z){case"string":case"number":O=!0;break;case"object":switch(C.$$typeof){case e:case t:O=!0}}if(O)return K=K(O=C),C=B===""?"."+x(O,0):B,ue(K)?(L="",C!=null&&(L=C.replace(y,"$&/")+"/"),d(K,R,L,"",function(Y){return Y})):K!=null&&(Te(K)&&(K=function(Y,Q){return{$$typeof:e,type:Y.type,key:Q,ref:Y.ref,props:Y.props,_owner:Y._owner}}(K,L+(!K.key||O&&O.key===K.key?"":(""+K.key).replace(y,"$&/")+"/")+C)),R.push(K)),1;if(O=0,B=B===""?".":B+":",ue(C))for(var D=0;D<C.length;D++){var q=B+x(z=C[D],D);O+=d(z,R,L,q,K)}else if(q=function(Y){return Y===null||typeof Y!="object"?null:typeof(Y=E&&Y[E]||Y["@@iterator"])=="function"?Y:null}(C),typeof q=="function")for(C=q.call(C),D=0;!(z=C.next()).done;)O+=d(z=z.value,R,L,q=B+x(z,D++),K);else if(z==="object")throw R=String(C),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.");return O}function p(C,R,L){if(C==null)return C;var B=[],K=0;return d(C,B,"","",function(z){return R.call(L,z,K++)}),B}function h(C){if(C._status===-1){var R=C._result;(R=R()).then(function(L){C._status!==0&&C._status!==-1||(C._status=1,C._result=L)},function(L){C._status!==0&&C._status!==-1||(C._status=2,C._result=L)}),C._status===-1&&(C._status=0,C._result=R)}if(C._status===1)return C._result.default;throw C._result}var f={current:null},l={transition:null},b={ReactCurrentDispatcher:f,ReactCurrentBatchConfig:l,ReactCurrentOwner:pe};return Dn.Children={map:p,forEach:function(C,R,L){p(C,function(){R.apply(this,arguments)},L)},count:function(C){var R=0;return p(C,function(){R++}),R},toArray:function(C){return p(C,function(R){return R})||[]},only:function(C){if(!Te(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},Dn.Component=H,Dn.Fragment=n,Dn.Profiler=o,Dn.PureComponent=ee,Dn.StrictMode=r,Dn.Suspense=_,Dn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b,Dn.cloneElement=function(C,R,L){if(C==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+C+".");var B=I({},C.props),K=C.key,z=C.ref,O=C._owner;if(R!=null){if(R.ref!==void 0&&(z=R.ref,O=pe.current),R.key!==void 0&&(K=""+R.key),C.type&&C.type.defaultProps)var D=C.type.defaultProps;for(q in R)le.call(R,q)&&!Me.hasOwnProperty(q)&&(B[q]=R[q]===void 0&&D!==void 0?D[q]:R[q])}var q=arguments.length-2;if(q===1)B.children=L;else if(1<q){D=Array(q);for(var Y=0;Y<q;Y++)D[Y]=arguments[Y+2];B.children=D}return{$$typeof:e,type:C.type,key:K,ref:z,props:B,_owner:O}},Dn.createContext=function(C){return(C={$$typeof:c,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:C},C.Consumer=C},Dn.createElement=ye,Dn.createFactory=function(C){var R=ye.bind(null,C);return R.type=C,R},Dn.createRef=function(){return{current:null}},Dn.forwardRef=function(C){return{$$typeof:g,render:C}},Dn.isValidElement=Te,Dn.lazy=function(C){return{$$typeof:S,_payload:{_status:-1,_result:C},_init:h}},Dn.memo=function(C,R){return{$$typeof:w,type:C,compare:R===void 0?null:R}},Dn.startTransition=function(C){var R=l.transition;l.transition={};try{C()}finally{l.transition=R}},Dn.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Dn.useCallback=function(C,R){return f.current.useCallback(C,R)},Dn.useContext=function(C){return f.current.useContext(C)},Dn.useDebugValue=function(){},Dn.useDeferredValue=function(C){return f.current.useDeferredValue(C)},Dn.useEffect=function(C,R){return f.current.useEffect(C,R)},Dn.useId=function(){return f.current.useId()},Dn.useImperativeHandle=function(C,R,L){return f.current.useImperativeHandle(C,R,L)},Dn.useInsertionEffect=function(C,R){return f.current.useInsertionEffect(C,R)},Dn.useLayoutEffect=function(C,R){return f.current.useLayoutEffect(C,R)},Dn.useMemo=function(C,R){return f.current.useMemo(C,R)},Dn.useReducer=function(C,R,L){return f.current.useReducer(C,R,L)},Dn.useRef=function(C){return f.current.useRef(C)},Dn.useState=function(C){return f.current.useState(C)},Dn.useSyncExternalStore=function(C,R,L){return f.current.useSyncExternalStore(C,R,L)},Dn.useTransition=function(){return f.current.useTransition()},Dn.version="18.2.0",Dn}var XA,JA,Ly={exports:{}};function uq(){return XA||(XA=1,function(e,t){vr.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),_=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),H=Symbol.iterator,V="@@iterator";function ee(ne){if(ne===null||typeof ne!="object")return null;var Re=H&&ne[H]||ne[V];return typeof Re=="function"?Re:null}var X={current:null},ue={transition:null},le={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},pe={current:null},Me={},ye=null;function Te(ne){ye=ne}Me.setExtraStackFrame=function(ne){ye=ne},Me.getCurrentStack=null,Me.getStackAddendum=function(){var ne="";ye&&(ne+=ye);var Re=Me.getCurrentStack;return Re&&(ne+=Re()||""),ne};var y=!1,x=!1,d=!1,p=!1,h=!1,f={ReactCurrentDispatcher:X,ReactCurrentBatchConfig:ue,ReactCurrentOwner:pe};function l(ne){for(var Re=arguments.length,We=new Array(Re>1?Re-1:0),it=1;it<Re;it++)We[it-1]=arguments[it];C("warn",ne,We)}function b(ne){for(var Re=arguments.length,We=new Array(Re>1?Re-1:0),it=1;it<Re;it++)We[it-1]=arguments[it];C("error",ne,We)}function C(ne,Re,We){var it=f.ReactDebugCurrentFrame.getStackAddendum();it!==""&&(Re+="%s",We=We.concat([it]));var ot=We.map(function(nn){return String(nn)});ot.unshift("Warning: "+Re),Function.prototype.apply.call(console[ne],console,ot)}f.ReactDebugCurrentFrame=Me,f.ReactCurrentActQueue=le;var R={};function L(ne,Re){var We=ne.constructor,it=We&&(We.displayName||We.name)||"ReactClass",ot=it+"."+Re;R[ot]||(b("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",Re,it),R[ot]=!0)}var B={isMounted:function(ne){return!1},enqueueForceUpdate:function(ne,Re,We){L(ne,"forceUpdate")},enqueueReplaceState:function(ne,Re,We,it){L(ne,"replaceState")},enqueueSetState:function(ne,Re,We,it){L(ne,"setState")}},K=Object.assign,z={};function O(ne,Re,We){this.props=ne,this.context=Re,this.refs=z,this.updater=We||B}Object.freeze(z),O.prototype.isReactComponent={},O.prototype.setState=function(ne,Re){if(typeof ne!="object"&&typeof ne!="function"&&ne!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,ne,Re,"setState")},O.prototype.forceUpdate=function(ne){this.updater.enqueueForceUpdate(this,ne,"forceUpdate")};var D={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},q=function(ne,Re){Object.defineProperty(O.prototype,ne,{get:function(){l("%s(...) is deprecated in plain JavaScript React classes. %s",Re[0],Re[1])}})};for(var Y in D)D.hasOwnProperty(Y)&&q(Y,D[Y]);function Q(){}function ae(ne,Re,We){this.props=ne,this.context=Re,this.refs=z,this.updater=We||B}Q.prototype=O.prototype;var re=ae.prototype=new Q;re.constructor=ae,K(re,O.prototype),re.isPureReactComponent=!0;var we=Array.isArray;function de(ne){return we(ne)}function ie(ne){return""+ne}function oe(ne){if(function(Re){try{return ie(Re),!1}catch{return!0}}(ne))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(Re){return typeof Symbol=="function"&&Symbol.toStringTag&&Re[Symbol.toStringTag]||Re.constructor.name||"Object"}(ne)),ie(ne)}function fe(ne){return ne.displayName||"Context"}function me(ne){if(ne==null)return null;if(typeof ne.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof ne=="function")return ne.displayName||ne.name||null;if(typeof ne=="string")return ne;switch(ne){case o:return"Fragment";case r:return"Portal";case c:return"Profiler";case i:return"StrictMode";case S:return"Suspense";case E:return"SuspenseList"}if(typeof ne=="object")switch(ne.$$typeof){case _:return fe(ne)+".Consumer";case g:return fe(ne._context)+".Provider";case w:return function(nn,It,qt){var An=nn.displayName;if(An)return An;var hn=It.displayName||It.name||"";return hn!==""?qt+"("+hn+")":qt}(ne,ne.render,"ForwardRef");case T:var Re=ne.displayName||null;return Re!==null?Re:me(ne.type)||"Memo";case I:var We=ne,it=We._payload,ot=We._init;try{return me(ot(it))}catch{return null}}return null}var Le,De,Ce,Qe=Object.prototype.hasOwnProperty,tt={key:!0,ref:!0,__self:!0,__source:!0};function Fe(ne){if(Qe.call(ne,"ref")){var Re=Object.getOwnPropertyDescriptor(ne,"ref").get;if(Re&&Re.isReactWarning)return!1}return ne.ref!==void 0}function Mt(ne){if(Qe.call(ne,"key")){var Re=Object.getOwnPropertyDescriptor(ne,"key").get;if(Re&&Re.isReactWarning)return!1}return ne.key!==void 0}Ce={};var rt=function(ne,Re,We,it,ot,nn,It){var qt={$$typeof:n,type:ne,key:Re,ref:We,props:It,_owner:nn,_store:{}};return Object.defineProperty(qt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(qt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:it}),Object.defineProperty(qt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ot}),Object.freeze&&(Object.freeze(qt.props),Object.freeze(qt)),qt};function He(ne,Re,We){var it,ot={},nn=null,It=null,qt=null,An=null;if(Re!=null)for(it in Fe(Re)&&(It=Re.ref,function(pn){if(typeof pn.ref=="string"&&pe.current&&pn.__self&&pe.current.stateNode!==pn.__self){var zr=me(pe.current.type);Ce[zr]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',zr,pn.ref),Ce[zr]=!0)}}(Re)),Mt(Re)&&(oe(Re.key),nn=""+Re.key),qt=Re.__self===void 0?null:Re.__self,An=Re.__source===void 0?null:Re.__source,Re)Qe.call(Re,it)&&!tt.hasOwnProperty(it)&&(ot[it]=Re[it]);var hn=arguments.length-2;if(hn===1)ot.children=We;else if(hn>1){for(var on=Array(hn),dn=0;dn<hn;dn++)on[dn]=arguments[dn+2];Object.freeze&&Object.freeze(on),ot.children=on}if(ne&&ne.defaultProps){var Qn=ne.defaultProps;for(it in Qn)ot[it]===void 0&&(ot[it]=Qn[it])}if(nn||It){var nr=typeof ne=="function"?ne.displayName||ne.name||"Unknown":ne;nn&&function(pn,zr){var fi=function(){Le||(Le=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",zr))};fi.isReactWarning=!0,Object.defineProperty(pn,"key",{get:fi,configurable:!0})}(ot,nr),It&&function(pn,zr){var fi=function(){De||(De=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",zr))};fi.isReactWarning=!0,Object.defineProperty(pn,"ref",{get:fi,configurable:!0})}(ot,nr)}return rt(ne,nn,It,qt,An,pe.current,ot)}function lt(ne,Re,We){if(ne==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+ne+".");var it,ot,nn=K({},ne.props),It=ne.key,qt=ne.ref,An=ne._self,hn=ne._source,on=ne._owner;if(Re!=null)for(it in Fe(Re)&&(qt=Re.ref,on=pe.current),Mt(Re)&&(oe(Re.key),It=""+Re.key),ne.type&&ne.type.defaultProps&&(ot=ne.type.defaultProps),Re)Qe.call(Re,it)&&!tt.hasOwnProperty(it)&&(Re[it]===void 0&&ot!==void 0?nn[it]=ot[it]:nn[it]=Re[it]);var dn=arguments.length-2;if(dn===1)nn.children=We;else if(dn>1){for(var Qn=Array(dn),nr=0;nr<dn;nr++)Qn[nr]=arguments[nr+2];nn.children=Qn}return rt(ne.type,It,qt,An,hn,on,nn)}function mt(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===n}var ct=".",Rt=":",_t=!1,ut=/\/+/g;function xt(ne){return ne.replace(ut,"$&/")}function Tt(ne,Re){return typeof ne=="object"&&ne!==null&&ne.key!=null?(oe(ne.key),function(We){var it={"=":"=0",":":"=2"};return"$"+We.replace(/[=:]/g,function(ot){return it[ot]})}(""+ne.key)):Re.toString(36)}function at(ne,Re,We,it,ot){var nn=typeof ne;nn!=="undefined"&&nn!=="boolean"||(ne=null);var It,qt,An,hn=!1;if(ne===null)hn=!0;else switch(nn){case"string":case"number":hn=!0;break;case"object":switch(ne.$$typeof){case n:case r:hn=!0}}if(hn){var on=ne,dn=ot(on),Qn=it===""?ct+Tt(on,0):it;if(de(dn)){var nr="";Qn!=null&&(nr=xt(Qn)+"/"),at(dn,Re,nr,"",function(hl){return hl})}else dn!=null&&(mt(dn)&&(!dn.key||on&&on.key===dn.key||oe(dn.key),It=dn,qt=We+(!dn.key||on&&on.key===dn.key?"":xt(""+dn.key)+"/")+Qn,dn=rt(It.type,qt,It.ref,It._self,It._source,It._owner,It.props)),Re.push(dn));return 1}var pn=0,zr=it===""?ct:it+Rt;if(de(ne))for(var fi=0;fi<ne.length;fi++)pn+=at(An=ne[fi],Re,We,zr+Tt(An,fi),ot);else{var ta=ee(ne);if(typeof ta=="function"){var na=ne;ta===na.entries&&(_t||l("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),_t=!0);for(var _h,Sh=ta.call(na),fl=0;!(_h=Sh.next()).done;)pn+=at(An=_h.value,Re,We,zr+Tt(An,fl++),ot)}else if(nn==="object"){var Pd=String(ne);throw new Error("Objects are not valid as a React child (found: "+(Pd==="[object Object]"?"object with keys {"+Object.keys(ne).join(", ")+"}":Pd)+"). If you meant to render a collection of children, use an array instead.")}}return pn}function Ct(ne,Re,We){if(ne==null)return ne;var it=[],ot=0;return at(ne,it,"","",function(nn){return Re.call(We,nn,ot++)}),it}var At,ht=-1,Qt=0,Kt=1,vt=2;function sn(ne){if(ne._status===ht){var Re=(0,ne._result)();if(Re.then(function(ot){if(ne._status===Qt||ne._status===ht){var nn=ne;nn._status=Kt,nn._result=ot}},function(ot){if(ne._status===Qt||ne._status===ht){var nn=ne;nn._status=vt,nn._result=ot}}),ne._status===ht){var We=ne;We._status=Qt,We._result=Re}}if(ne._status===Kt){var it=ne._result;return it===void 0&&b(`lazy: Expected the result of a dynamic import() call. Instead received: %s
47
+
48
+ Your code should look like:
49
+ const MyComponent = lazy(() => import('./MyComponent'))
50
+
51
+ Did you accidentally put curly braces around the import?`,it),"default"in it||b(`lazy: Expected the result of a dynamic import() call. Instead received: %s
52
+
53
+ Your code should look like:
54
+ const MyComponent = lazy(() => import('./MyComponent'))`,it),it.default}throw ne._result}function $t(ne){return typeof ne=="string"||typeof ne=="function"||!!(ne===o||ne===c||h||ne===i||ne===S||ne===E||p||ne===j||y||x||d)||typeof ne=="object"&&ne!==null&&(ne.$$typeof===I||ne.$$typeof===T||ne.$$typeof===g||ne.$$typeof===_||ne.$$typeof===w||ne.$$typeof===At||ne.getModuleId!==void 0)}function ft(){var ne=X.current;return ne===null&&b(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
55
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
56
+ 2. You might be breaking the Rules of Hooks
57
+ 3. You might have more than one copy of React in the same app
58
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),ne}At=Symbol.for("react.module.reference");var Vt,Ut,gt,Gt,Ft,kt,en,rn=0;function bt(){}bt.__reactDisabledLog=!0;var Xt,Jt=f.ReactCurrentDispatcher;function wt(ne,Re,We){if(Xt===void 0)try{throw Error()}catch(ot){var it=ot.stack.trim().match(/\n( *(at )?)/);Xt=it&&it[1]||""}return`
59
+ `+Xt+ne}var jt,cn=!1,St=typeof WeakMap=="function"?WeakMap:Map;function fn(ne,Re){if(!ne||cn)return"";var We,it=jt.get(ne);if(it!==void 0)return it;cn=!0;var ot,nn=Error.prepareStackTrace;Error.prepareStackTrace=void 0,ot=Jt.current,Jt.current=null,function(){if(rn===0){Vt=console.log,Ut=console.info,gt=console.warn,Gt=console.error,Ft=console.group,kt=console.groupCollapsed,en=console.groupEnd;var pn={configurable:!0,enumerable:!0,value:bt,writable:!0};Object.defineProperties(console,{info:pn,log:pn,warn:pn,error:pn,group:pn,groupCollapsed:pn,groupEnd:pn})}rn++}();try{if(Re){var It=function(){throw Error()};if(Object.defineProperty(It.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(It,[])}catch(pn){We=pn}Reflect.construct(ne,[],It)}else{try{It.call()}catch(pn){We=pn}ne.call(It.prototype)}}else{try{throw Error()}catch(pn){We=pn}ne()}}catch(pn){if(pn&&We&&typeof pn.stack=="string"){for(var qt=pn.stack.split(`
60
+ `),An=We.stack.split(`
61
+ `),hn=qt.length-1,on=An.length-1;hn>=1&&on>=0&&qt[hn]!==An[on];)on--;for(;hn>=1&&on>=0;hn--,on--)if(qt[hn]!==An[on]){if(hn!==1||on!==1)do if(hn--,--on<0||qt[hn]!==An[on]){var dn=`
62
+ `+qt[hn].replace(" at new "," at ");return ne.displayName&&dn.includes("<anonymous>")&&(dn=dn.replace("<anonymous>",ne.displayName)),typeof ne=="function"&&jt.set(ne,dn),dn}while(hn>=1&&on>=0);break}}}finally{cn=!1,Jt.current=ot,function(){if(--rn==0){var pn={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:K({},pn,{value:Vt}),info:K({},pn,{value:Ut}),warn:K({},pn,{value:gt}),error:K({},pn,{value:Gt}),group:K({},pn,{value:Ft}),groupCollapsed:K({},pn,{value:kt}),groupEnd:K({},pn,{value:en})})}rn<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=nn}var Qn=ne?ne.displayName||ne.name:"",nr=Qn?wt(Qn):"";return typeof ne=="function"&&jt.set(ne,nr),nr}function Yt(ne,Re,We){if(ne==null)return"";if(typeof ne=="function")return fn(ne,function(It){var qt=It.prototype;return!(!qt||!qt.isReactComponent)}(ne));if(typeof ne=="string")return wt(ne);switch(ne){case S:return wt("Suspense");case E:return wt("SuspenseList")}if(typeof ne=="object")switch(ne.$$typeof){case w:return fn(ne.render,!1);case T:return Yt(ne.type,Re,We);case I:var it=ne,ot=it._payload,nn=it._init;try{return Yt(nn(ot),Re,We)}catch{}}return""}jt=new St;var tn,Nr={},Dr=f.ReactDebugCurrentFrame;function xr(ne){if(ne){var Re=ne._owner,We=Yt(ne.type,ne._source,Re?Re.type:null);Dr.setExtraStackFrame(We)}else Dr.setExtraStackFrame(null)}function yr(ne){if(ne){var Re=ne._owner;Te(Yt(ne.type,ne._source,Re?Re.type:null))}else Te(null)}function Kr(){if(pe.current){var ne=me(pe.current.type);if(ne)return`
63
+
64
+ Check the render method of \``+ne+"`."}return""}tn=!1;var Cn={};function un(ne,Re){if(ne._store&&!ne._store.validated&&ne.key==null){ne._store.validated=!0;var We=function(ot){var nn=Kr();if(!nn){var It=typeof ot=="string"?ot:ot.displayName||ot.name;It&&(nn=`
65
+
66
+ Check the top-level render call using <`+It+">.")}return nn}(Re);if(!Cn[We]){Cn[We]=!0;var it="";ne&&ne._owner&&ne._owner!==pe.current&&(it=" It was passed a child from "+me(ne._owner.type)+"."),yr(ne),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',We,it),yr(null)}}}function wr(ne,Re){if(typeof ne=="object"){if(de(ne))for(var We=0;We<ne.length;We++){var it=ne[We];mt(it)&&un(it,Re)}else if(mt(ne))ne._store&&(ne._store.validated=!0);else if(ne){var ot=ee(ne);if(typeof ot=="function"&&ot!==ne.entries)for(var nn,It=ot.call(ne);!(nn=It.next()).done;)mt(nn.value)&&un(nn.value,Re)}}}function Br(ne){var Re,We=ne.type;if(We!=null&&typeof We!="string"){if(typeof We=="function")Re=We.propTypes;else{if(typeof We!="object"||We.$$typeof!==w&&We.$$typeof!==T)return;Re=We.propTypes}if(Re){var it=me(We);(function(ot,nn,It,qt,An){var hn=Function.call.bind(Qe);for(var on in ot)if(hn(ot,on)){var dn=void 0;try{if(typeof ot[on]!="function"){var Qn=Error((qt||"React class")+": "+It+" type `"+on+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof ot[on]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Qn.name="Invariant Violation",Qn}dn=ot[on](nn,on,qt,It,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(nr){dn=nr}!dn||dn instanceof Error||(xr(An),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",qt||"React class",It,on,typeof dn),xr(null)),dn instanceof Error&&!(dn.message in Nr)&&(Nr[dn.message]=!0,xr(An),b("Failed %s type: %s",It,dn.message),xr(null))}})(Re,ne.props,"prop",it,ne)}else We.PropTypes!==void 0&&!tn&&(tn=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",me(We)||"Unknown"));typeof We.getDefaultProps!="function"||We.getDefaultProps.isReactClassApproved||b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ar(ne,Re,We){var it,ot,nn=$t(ne);if(!nn){var It="";(ne===void 0||typeof ne=="object"&&ne!==null&&Object.keys(ne).length===0)&&(It+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var qt,An=(it=Re)!=null&&(ot=it.__source)!==void 0?`
67
+
68
+ Check your code at `+ot.fileName.replace(/^.*[\\\/]/,"")+":"+ot.lineNumber+".":"";It+=An||Kr(),ne===null?qt="null":de(ne)?qt="array":ne!==void 0&&ne.$$typeof===n?(qt="<"+(me(ne.type)||"Unknown")+" />",It=" Did you accidentally export a JSX literal instead of a component?"):qt=typeof ne,b("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",qt,It)}var hn=He.apply(this,arguments);if(hn==null)return hn;if(nn)for(var on=2;on<arguments.length;on++)wr(arguments[on],ne);return ne===o?function(dn){for(var Qn=Object.keys(dn.props),nr=0;nr<Qn.length;nr++){var pn=Qn[nr];if(pn!=="children"&&pn!=="key"){yr(dn),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",pn),yr(null);break}}dn.ref!==null&&(yr(dn),b("Invalid attribute `ref` supplied to `React.Fragment`."),yr(null))}(hn):Br(hn),hn}var jr=!1,ur=!1,lr=null,Bn=0,Zn=!1;function Rr(ne){ne!==Bn-1&&b("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Bn=ne}function Ir(ne,Re,We){var it=le.current;if(it!==null)try{Hi(it),function(ot){if(lr===null)try{var nn=("require"+Math.random()).slice(0,7),It=e&&e[nn];lr=It.call(e,"timers").setImmediate}catch{lr=function(An){ur===!1&&(ur=!0,typeof MessageChannel>"u"&&b("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var hn=new MessageChannel;hn.port1.onmessage=An,hn.port2.postMessage(void 0)}}lr(ot)}(function(){it.length===0?(le.current=null,Re(ne)):Ir(ne,Re,We)})}catch(ot){We(ot)}else Re(ne)}var di=!1;function Hi(ne){if(!di){di=!0;var Re=0;try{for(;Re<ne.length;Re++){var We=ne[Re];do We=We(!0);while(We!==null)}ne.length=0}catch(it){throw ne=ne.slice(Re+1),it}finally{di=!1}}}var dl=Ar,uc=function(ne,Re,We){for(var it=lt.apply(this,arguments),ot=2;ot<arguments.length;ot++)wr(arguments[ot],it.type);return Br(it),it},cr=function(ne){var Re=Ar.bind(null,ne);return Re.type=ne,jr||(jr=!0,l("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(Re,"type",{enumerable:!1,get:function(){return l("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:ne}),ne}}),Re},Td={map:Ct,forEach:function(ne,Re,We){Ct(ne,function(){Re.apply(this,arguments)},We)},count:function(ne){var Re=0;return Ct(ne,function(){Re++}),Re},toArray:function(ne){return Ct(ne,function(Re){return Re})||[]},only:function(ne){if(!mt(ne))throw new Error("React.Children.only expected to receive a single React element child.");return ne}};t.Children=Td,t.Component=O,t.Fragment=o,t.Profiler=c,t.PureComponent=ae,t.StrictMode=i,t.Suspense=S,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f,t.cloneElement=uc,t.createContext=function(ne){var Re={$$typeof:_,_currentValue:ne,_currentValue2:ne,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};Re.Provider={$$typeof:g,_context:Re};var We=!1,it=!1,ot=!1,nn={$$typeof:_,_context:Re};return Object.defineProperties(nn,{Provider:{get:function(){return it||(it=!0,b("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),Re.Provider},set:function(It){Re.Provider=It}},_currentValue:{get:function(){return Re._currentValue},set:function(It){Re._currentValue=It}},_currentValue2:{get:function(){return Re._currentValue2},set:function(It){Re._currentValue2=It}},_threadCount:{get:function(){return Re._threadCount},set:function(It){Re._threadCount=It}},Consumer:{get:function(){return We||(We=!0,b("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),Re.Consumer}},displayName:{get:function(){return Re.displayName},set:function(It){ot||(l("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",It),ot=!0)}}}),Re.Consumer=nn,Re._currentRenderer=null,Re._currentRenderer2=null,Re},t.createElement=dl,t.createFactory=cr,t.createRef=function(){var ne={current:null};return Object.seal(ne),ne},t.forwardRef=function(ne){ne!=null&&ne.$$typeof===T?b("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof ne!="function"?b("forwardRef requires a render function but was given %s.",ne===null?"null":typeof ne):ne.length!==0&&ne.length!==2&&b("forwardRef render functions accept exactly two parameters: props and ref. %s",ne.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),ne!=null&&(ne.defaultProps==null&&ne.propTypes==null||b("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var Re,We={$$typeof:w,render:ne};return Object.defineProperty(We,"displayName",{enumerable:!1,configurable:!0,get:function(){return Re},set:function(it){Re=it,ne.name||ne.displayName||(ne.displayName=it)}}),We},t.isValidElement=mt,t.lazy=function(ne){var Re,We,it={$$typeof:I,_payload:{_status:ht,_result:ne},_init:sn};return Object.defineProperties(it,{defaultProps:{configurable:!0,get:function(){return Re},set:function(ot){b("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Re=ot,Object.defineProperty(it,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return We},set:function(ot){b("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),We=ot,Object.defineProperty(it,"propTypes",{enumerable:!0})}}}),it},t.memo=function(ne,Re){$t(ne)||b("memo: The first argument must be a component. Instead received: %s",ne===null?"null":typeof ne);var We,it={$$typeof:T,type:ne,compare:Re===void 0?null:Re};return Object.defineProperty(it,"displayName",{enumerable:!1,configurable:!0,get:function(){return We},set:function(ot){We=ot,ne.name||ne.displayName||(ne.displayName=ot)}}),it},t.startTransition=function(ne,Re){var We=ue.transition;ue.transition={};var it=ue.transition;ue.transition._updatedFibers=new Set;try{ne()}finally{ue.transition=We,We===null&&it._updatedFibers&&(it._updatedFibers.size>10&&l("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),it._updatedFibers.clear())}},t.unstable_act=function(ne){var Re=Bn;Bn++,le.current===null&&(le.current=[]);var We,it=le.isBatchingLegacy;try{if(le.isBatchingLegacy=!0,We=ne(),!it&&le.didScheduleLegacyUpdate){var ot=le.current;ot!==null&&(le.didScheduleLegacyUpdate=!1,Hi(ot))}}catch(on){throw Rr(Re),on}finally{le.isBatchingLegacy=it}if(We!==null&&typeof We=="object"&&typeof We.then=="function"){var nn=We,It=!1,qt={then:function(on,dn){It=!0,nn.then(function(Qn){Rr(Re),Bn===0?Ir(Qn,on,dn):on(Qn)},function(Qn){Rr(Re),dn(Qn)})}};return Zn||typeof Promise>"u"||Promise.resolve().then(function(){}).then(function(){It||(Zn=!0,b("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),qt}var An=We;if(Rr(Re),Bn===0){var hn=le.current;return hn!==null&&(Hi(hn),le.current=null),{then:function(on,dn){le.current===null?(le.current=[],Ir(An,on,dn)):on(An)}}}return{then:function(on,dn){on(An)}}},t.useCallback=function(ne,Re){return ft().useCallback(ne,Re)},t.useContext=function(ne){var Re=ft();if(ne._context!==void 0){var We=ne._context;We.Consumer===ne?b("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):We.Provider===ne&&b("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return Re.useContext(ne)},t.useDebugValue=function(ne,Re){return ft().useDebugValue(ne,Re)},t.useDeferredValue=function(ne){return ft().useDeferredValue(ne)},t.useEffect=function(ne,Re){return ft().useEffect(ne,Re)},t.useId=function(){return ft().useId()},t.useImperativeHandle=function(ne,Re,We){return ft().useImperativeHandle(ne,Re,We)},t.useInsertionEffect=function(ne,Re){return ft().useInsertionEffect(ne,Re)},t.useLayoutEffect=function(ne,Re){return ft().useLayoutEffect(ne,Re)},t.useMemo=function(ne,Re){return ft().useMemo(ne,Re)},t.useReducer=function(ne,Re,We){return ft().useReducer(ne,Re,We)},t.useRef=function(ne){return ft().useRef(ne)},t.useState=function(ne){return ft().useState(ne)},t.useSyncExternalStore=function(ne,Re,We){return ft().useSyncExternalStore(ne,Re,We)},t.useTransition=function(){return ft().useTransition()},t.version="18.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Ly,Ly.exports)),Ly.exports}function e7(){return JA||(JA=1,vr.env.NODE_ENV==="production"?J5.exports=sq():J5.exports=uq()),J5.exports}Ly.exports;var eR,Op={},t7={exports:{}},ea={},n7={exports:{}},tR={},nR,rR,iR,oR={};function lq(){return nR||(nR=1,function(e){vr.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=!1,n=!1;function r(z,O){var D=z.length;z.push(O),function(q,Y,Q){for(var ae=Q;ae>0;){var re=ae-1>>>1,we=q[re];if(!(c(we,Y)>0))return;q[re]=Y,q[ae]=we,ae=re}}(z,O,D)}function o(z){return z.length===0?null:z[0]}function i(z){if(z.length===0)return null;var O=z[0],D=z.pop();return D!==O&&(z[0]=D,function(q,Y,Q){for(var ae=Q,re=q.length,we=re>>>1;ae<we;){var de=2*(ae+1)-1,ie=q[de],oe=de+1,fe=q[oe];if(c(ie,Y)<0)oe<re&&c(fe,ie)<0?(q[ae]=fe,q[oe]=Y,ae=oe):(q[ae]=ie,q[de]=Y,ae=de);else{if(!(oe<re&&c(fe,Y)<0))return;q[ae]=fe,q[oe]=Y,ae=oe}}}(z,D,0)),O}function c(z,O){var D=z.sortIndex-O.sortIndex;return D!==0?D:z.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var g=performance;e.unstable_now=function(){return g.now()}}else{var _=Date,w=_.now();e.unstable_now=function(){return _.now()-w}}var S=[],E=[],T=1,I=null,j=3,H=!1,V=!1,ee=!1,X=typeof setTimeout=="function"?setTimeout:null,ue=typeof clearTimeout=="function"?clearTimeout:null,le=typeof setImmediate<"u"?setImmediate:null;function pe(z){for(var O=o(E);O!==null;){if(O.callback===null)i(E);else{if(!(O.startTime<=z))return;i(E),O.sortIndex=O.expirationTime,r(S,O)}O=o(E)}}function Me(z){if(ee=!1,pe(z),!V)if(o(S)!==null)V=!0,R(ye);else{var O=o(E);O!==null&&L(Me,O.startTime-z)}}function ye(z,O){V=!1,ee&&(ee=!1,B()),H=!0;var D=j;try{if(!n)return function(q,Y){var Q=Y;for(pe(Q),I=o(S);I!==null&&!t&&(!(I.expirationTime>Q)||q&&!h());){var ae=I.callback;if(typeof ae=="function"){I.callback=null,j=I.priorityLevel;var re=ae(I.expirationTime<=Q);Q=e.unstable_now(),typeof re=="function"?I.callback=re:I===o(S)&&i(S),pe(Q)}else i(S);I=o(S)}if(I!==null)return!0;var we=o(E);return we!==null&&L(Me,we.startTime-Q),!1}(z,O)}finally{I=null,j=D,H=!1}}typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var Te=!1,y=null,x=-1,d=5,p=-1;function h(){return!(e.unstable_now()-p<d)}var f,l=function(){if(y!==null){var z=e.unstable_now();p=z;var O=!0;try{O=y(!0,z)}finally{O?f():(Te=!1,y=null)}}else Te=!1};if(typeof le=="function")f=function(){le(l)};else if(typeof MessageChannel<"u"){var b=new MessageChannel,C=b.port2;b.port1.onmessage=l,f=function(){C.postMessage(null)}}else f=function(){X(l,0)};function R(z){y=z,Te||(Te=!0,f())}function L(z,O){x=X(function(){z(e.unstable_now())},O)}function B(){ue(x),x=-1}var K=function(){};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){V||H||(V=!0,R(ye))},e.unstable_forceFrameRate=function(z){z<0||z>125?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):d=z>0?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return j},e.unstable_getFirstCallbackNode=function(){return o(S)},e.unstable_next=function(z){var O;switch(j){case 1:case 2:case 3:O=3;break;default:O=j}var D=j;j=O;try{return z()}finally{j=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=K,e.unstable_runWithPriority=function(z,O){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var D=j;j=z;try{return O()}finally{j=D}},e.unstable_scheduleCallback=function(z,O,D){var q,Y,Q=e.unstable_now();if(typeof D=="object"&&D!==null){var ae=D.delay;q=typeof ae=="number"&&ae>0?Q+ae:Q}else q=Q;switch(z){case 1:Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}var re=q+Y,we={id:T++,callback:O,priorityLevel:z,startTime:q,expirationTime:re,sortIndex:-1};return q>Q?(we.sortIndex=q,r(E,we),o(S)===null&&we===o(E)&&(ee?B():ee=!0,L(Me,q-Q))):(we.sortIndex=re,r(S,we),V||H||(V=!0,R(ye))),we},e.unstable_shouldYield=h,e.unstable_wrapCallback=function(z){var O=j;return function(){var D=j;j=O;try{return z.apply(this,arguments)}finally{j=D}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(oR)),oR}function aR(){return rR||(rR=1,vr.env.NODE_ENV==="production"?n7.exports=(eR||(eR=1,function(e){function t(R,L){var B=R.length;R.push(L);e:for(;0<B;){var K=B-1>>>1,z=R[K];if(!(0<o(z,L)))break e;R[K]=L,R[B]=z,B=K}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var L=R[0],B=R.pop();if(B!==L){R[0]=B;e:for(var K=0,z=R.length,O=z>>>1;K<O;){var D=2*(K+1)-1,q=R[D],Y=D+1,Q=R[Y];if(0>o(q,B))Y<z&&0>o(Q,q)?(R[K]=Q,R[Y]=B,K=Y):(R[K]=q,R[D]=B,K=D);else{if(!(Y<z&&0>o(Q,B)))break e;R[K]=Q,R[Y]=B,K=Y}}}return L}function o(R,L){var B=R.sortIndex-L.sortIndex;return B!==0?B:R.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var c=Date,g=c.now();e.unstable_now=function(){return c.now()-g}}var _=[],w=[],S=1,E=null,T=3,I=!1,j=!1,H=!1,V=typeof setTimeout=="function"?setTimeout:null,ee=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function ue(R){for(var L=n(w);L!==null;){if(L.callback===null)r(w);else{if(!(L.startTime<=R))break;r(w),L.sortIndex=L.expirationTime,t(_,L)}L=n(w)}}function le(R){if(H=!1,ue(R),!j)if(n(_)!==null)j=!0,b(pe);else{var L=n(w);L!==null&&C(le,L.startTime-R)}}function pe(R,L){j=!1,H&&(H=!1,ee(y),y=-1),I=!0;var B=T;try{for(ue(L),E=n(_);E!==null&&(!(E.expirationTime>L)||R&&!p());){var K=E.callback;if(typeof K=="function"){E.callback=null,T=E.priorityLevel;var z=K(E.expirationTime<=L);L=e.unstable_now(),typeof z=="function"?E.callback=z:E===n(_)&&r(_),ue(L)}else r(_);E=n(_)}if(E!==null)var O=!0;else{var D=n(w);D!==null&&C(le,D.startTime-L),O=!1}return O}finally{E=null,T=B,I=!1}}typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var Me,ye=!1,Te=null,y=-1,x=5,d=-1;function p(){return!(e.unstable_now()-d<x)}function h(){if(Te!==null){var R=e.unstable_now();d=R;var L=!0;try{L=Te(!0,R)}finally{L?Me():(ye=!1,Te=null)}}else ye=!1}if(typeof X=="function")Me=function(){X(h)};else if(typeof MessageChannel<"u"){var f=new MessageChannel,l=f.port2;f.port1.onmessage=h,Me=function(){l.postMessage(null)}}else Me=function(){V(h,0)};function b(R){Te=R,ye||(ye=!0,Me())}function C(R,L){y=V(function(){R(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_continueExecution=function(){j||I||(j=!0,b(pe))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return T},e.unstable_getFirstCallbackNode=function(){return n(_)},e.unstable_next=function(R){switch(T){case 1:case 2:case 3:var L=3;break;default:L=T}var B=T;T=L;try{return R()}finally{T=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,L){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var B=T;T=R;try{return L()}finally{T=B}},e.unstable_scheduleCallback=function(R,L,B){var K=e.unstable_now();switch(B=typeof B=="object"&&B!==null&&typeof(B=B.delay)=="number"&&0<B?K+B:K,R){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return R={id:S++,callback:L,priorityLevel:R,startTime:B,expirationTime:z=B+z,sortIndex:-1},B>K?(R.sortIndex=B,t(w,R),n(_)===null&&R===n(w)&&(H?(ee(y),y=-1):H=!0,C(le,B-K))):(R.sortIndex=z,t(_,R),j||I||(j=!0,b(pe))),R},e.unstable_shouldYield=p,e.unstable_wrapCallback=function(R){var L=T;return function(){var B=T;T=L;try{return R.apply(this,arguments)}finally{T=B}}}}(tR)),tR):n7.exports=lq()),n7.exports}/**
69
+ * @license React
70
+ * react-dom.production.min.js
71
+ *
72
+ * Copyright (c) Facebook, Inc. and its affiliates.
73
+ *
74
+ * This source code is licensed under the MIT license found in the
75
+ * LICENSE file in the root directory of this source tree.
76
+ */function cq(){if(iR)return ea;iR=1;var e=e7(),t=aR();function n(u){for(var m="https://reactjs.org/docs/error-decoder.html?invariant="+u,k=1;k<arguments.length;k++)m+="&args[]="+encodeURIComponent(arguments[k]);return"Minified React error #"+u+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function i(u,m){c(u,m),c(u+"Capture",m)}function c(u,m){for(o[u]=m,u=0;u<m.length;u++)r.add(m[u])}var g=!(typeof window>"u"||window.document===void 0||window.document.createElement===void 0),_=Object.prototype.hasOwnProperty,w=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,S={},E={};function T(u,m,k,P,U,W,J){this.acceptsBooleans=m===2||m===3||m===4,this.attributeName=P,this.attributeNamespace=U,this.mustUseProperty=k,this.propertyName=u,this.type=m,this.sanitizeURL=W,this.removeEmptyString=J}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(u){I[u]=new T(u,0,!1,u,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(u){var m=u[0];I[m]=new T(m,1,!1,u[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(u){I[u]=new T(u,2,!1,u.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(u){I[u]=new T(u,2,!1,u,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(u){I[u]=new T(u,3,!1,u.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(u){I[u]=new T(u,3,!0,u,null,!1,!1)}),["capture","download"].forEach(function(u){I[u]=new T(u,4,!1,u,null,!1,!1)}),["cols","rows","size","span"].forEach(function(u){I[u]=new T(u,6,!1,u,null,!1,!1)}),["rowSpan","start"].forEach(function(u){I[u]=new T(u,5,!1,u.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function H(u){return u[1].toUpperCase()}function V(u,m,k,P){var U=I.hasOwnProperty(m)?I[m]:null;(U!==null?U.type!==0:P||!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(function(W,J,be,ke){if(J==null||function(Pe,Be,$e,Ke){if($e!==null&&$e.type===0)return!1;switch(typeof Be){case"function":case"symbol":return!0;case"boolean":return!Ke&&($e!==null?!$e.acceptsBooleans:(Pe=Pe.toLowerCase().slice(0,5))!=="data-"&&Pe!=="aria-");default:return!1}}(W,J,be,ke))return!0;if(ke)return!1;if(be!==null)switch(be.type){case 3:return!J;case 4:return J===!1;case 5:return isNaN(J);case 6:return isNaN(J)||1>J}return!1}(m,k,U,P)&&(k=null),P||U===null?function(W){return!!_.call(E,W)||!_.call(S,W)&&(w.test(W)?E[W]=!0:(S[W]=!0,!1))}(m)&&(k===null?u.removeAttribute(m):u.setAttribute(m,""+k)):U.mustUseProperty?u[U.propertyName]=k===null?U.type!==3&&"":k:(m=U.attributeName,P=U.attributeNamespace,k===null?u.removeAttribute(m):(k=(U=U.type)===3||U===4&&k===!0?"":""+k,P?u.setAttributeNS(P,m,k):u.setAttribute(m,k))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(u){var m=u.replace(j,H);I[m]=new T(m,1,!1,u,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(u){var m=u.replace(j,H);I[m]=new T(m,1,!1,u,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(u){var m=u.replace(j,H);I[m]=new T(m,1,!1,u,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(u){I[u]=new T(u,1,!1,u.toLowerCase(),null,!1,!1)}),I.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(u){I[u]=new T(u,1,!1,u.toLowerCase(),null,!0,!0)});var ee=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,X=Symbol.for("react.element"),ue=Symbol.for("react.portal"),le=Symbol.for("react.fragment"),pe=Symbol.for("react.strict_mode"),Me=Symbol.for("react.profiler"),ye=Symbol.for("react.provider"),Te=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),l=Symbol.iterator;function b(u){return u===null||typeof u!="object"?null:typeof(u=l&&u[l]||u["@@iterator"])=="function"?u:null}var C,R=Object.assign;function L(u){if(C===void 0)try{throw Error()}catch(k){var m=k.stack.trim().match(/\n( *(at )?)/);C=m&&m[1]||""}return`
77
+ `+C+u}var B=!1;function K(u,m){if(!u||B)return"";B=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(m)if(m=function(){throw Error()},Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(Pe){var P=Pe}Reflect.construct(u,[],m)}else{try{m.call()}catch(Pe){P=Pe}u.call(m.prototype)}else{try{throw Error()}catch(Pe){P=Pe}u()}}catch(Pe){if(Pe&&P&&typeof Pe.stack=="string"){for(var U=Pe.stack.split(`
78
+ `),W=P.stack.split(`
79
+ `),J=U.length-1,be=W.length-1;1<=J&&0<=be&&U[J]!==W[be];)be--;for(;1<=J&&0<=be;J--,be--)if(U[J]!==W[be]){if(J!==1||be!==1)do if(J--,0>--be||U[J]!==W[be]){var ke=`
80
+ `+U[J].replace(" at new "," at ");return u.displayName&&ke.includes("<anonymous>")&&(ke=ke.replace("<anonymous>",u.displayName)),ke}while(1<=J&&0<=be);break}}}finally{B=!1,Error.prepareStackTrace=k}return(u=u?u.displayName||u.name:"")?L(u):""}function z(u){switch(u.tag){case 5:return L(u.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return u=K(u.type,!1);case 11:return u=K(u.type.render,!1);case 1:return u=K(u.type,!0);default:return""}}function O(u){if(u==null)return null;if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case le:return"Fragment";case ue:return"Portal";case Me:return"Profiler";case pe:return"StrictMode";case x:return"Suspense";case d:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case Te:return(u.displayName||"Context")+".Consumer";case ye:return(u._context.displayName||"Context")+".Provider";case y:var m=u.render;return(u=u.displayName)||(u=(u=m.displayName||m.name||"")!==""?"ForwardRef("+u+")":"ForwardRef"),u;case p:return(m=u.displayName||null)!==null?m:O(u.type)||"Memo";case h:m=u._payload,u=u._init;try{return O(u(m))}catch{}}return null}function D(u){var m=u.type;switch(u.tag){case 24:return"Cache";case 9:return(m.displayName||"Context")+".Consumer";case 10:return(m._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return u=(u=m.render).displayName||u.name||"",m.displayName||(u!==""?"ForwardRef("+u+")":"ForwardRef");case 7:return"Fragment";case 5:return m;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return O(m);case 8:return m===pe?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m}return null}function q(u){switch(typeof u){case"boolean":case"number":case"string":case"undefined":case"object":return u;default:return""}}function Y(u){var m=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function Q(u){u._valueTracker||(u._valueTracker=function(m){var k=Y(m)?"checked":"value",P=Object.getOwnPropertyDescriptor(m.constructor.prototype,k),U=""+m[k];if(!m.hasOwnProperty(k)&&P!==void 0&&typeof P.get=="function"&&typeof P.set=="function"){var W=P.get,J=P.set;return Object.defineProperty(m,k,{configurable:!0,get:function(){return W.call(this)},set:function(be){U=""+be,J.call(this,be)}}),Object.defineProperty(m,k,{enumerable:P.enumerable}),{getValue:function(){return U},setValue:function(be){U=""+be},stopTracking:function(){m._valueTracker=null,delete m[k]}}}}(u))}function ae(u){if(!u)return!1;var m=u._valueTracker;if(!m)return!0;var k=m.getValue(),P="";return u&&(P=Y(u)?u.checked?"true":"false":u.value),(u=P)!==k&&(m.setValue(u),!0)}function re(u){if((u=u||(typeof document<"u"?document:void 0))===void 0)return null;try{return u.activeElement||u.body}catch{return u.body}}function we(u,m){var k=m.checked;return R({},m,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:k??u._wrapperState.initialChecked})}function de(u,m){var k=m.defaultValue==null?"":m.defaultValue,P=m.checked!=null?m.checked:m.defaultChecked;k=q(m.value!=null?m.value:k),u._wrapperState={initialChecked:P,initialValue:k,controlled:m.type==="checkbox"||m.type==="radio"?m.checked!=null:m.value!=null}}function ie(u,m){(m=m.checked)!=null&&V(u,"checked",m,!1)}function oe(u,m){ie(u,m);var k=q(m.value),P=m.type;if(k!=null)P==="number"?(k===0&&u.value===""||u.value!=k)&&(u.value=""+k):u.value!==""+k&&(u.value=""+k);else if(P==="submit"||P==="reset")return void u.removeAttribute("value");m.hasOwnProperty("value")?me(u,m.type,k):m.hasOwnProperty("defaultValue")&&me(u,m.type,q(m.defaultValue)),m.checked==null&&m.defaultChecked!=null&&(u.defaultChecked=!!m.defaultChecked)}function fe(u,m,k){if(m.hasOwnProperty("value")||m.hasOwnProperty("defaultValue")){var P=m.type;if(!(P!=="submit"&&P!=="reset"||m.value!==void 0&&m.value!==null))return;m=""+u._wrapperState.initialValue,k||m===u.value||(u.value=m),u.defaultValue=m}(k=u.name)!==""&&(u.name=""),u.defaultChecked=!!u._wrapperState.initialChecked,k!==""&&(u.name=k)}function me(u,m,k){m==="number"&&re(u.ownerDocument)===u||(k==null?u.defaultValue=""+u._wrapperState.initialValue:u.defaultValue!==""+k&&(u.defaultValue=""+k))}var Le=Array.isArray;function De(u,m,k,P){if(u=u.options,m){m={};for(var U=0;U<k.length;U++)m["$"+k[U]]=!0;for(k=0;k<u.length;k++)U=m.hasOwnProperty("$"+u[k].value),u[k].selected!==U&&(u[k].selected=U),U&&P&&(u[k].defaultSelected=!0)}else{for(k=""+q(k),m=null,U=0;U<u.length;U++){if(u[U].value===k)return u[U].selected=!0,void(P&&(u[U].defaultSelected=!0));m!==null||u[U].disabled||(m=u[U])}m!==null&&(m.selected=!0)}}function Ce(u,m){if(m.dangerouslySetInnerHTML!=null)throw Error(n(91));return R({},m,{value:void 0,defaultValue:void 0,children:""+u._wrapperState.initialValue})}function Qe(u,m){var k=m.value;if(k==null){if(k=m.children,m=m.defaultValue,k!=null){if(m!=null)throw Error(n(92));if(Le(k)){if(1<k.length)throw Error(n(93));k=k[0]}m=k}m==null&&(m=""),k=m}u._wrapperState={initialValue:q(k)}}function tt(u,m){var k=q(m.value),P=q(m.defaultValue);k!=null&&((k=""+k)!==u.value&&(u.value=k),m.defaultValue==null&&u.defaultValue!==k&&(u.defaultValue=k)),P!=null&&(u.defaultValue=""+P)}function Fe(u){var m=u.textContent;m===u._wrapperState.initialValue&&m!==""&&m!==null&&(u.value=m)}function Mt(u){switch(u){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function rt(u,m){return u==null||u==="http://www.w3.org/1999/xhtml"?Mt(m):u==="http://www.w3.org/2000/svg"&&m==="foreignObject"?"http://www.w3.org/1999/xhtml":u}var He,lt,mt=(lt=function(u,m){if(u.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in u)u.innerHTML=m;else{for((He=He||document.createElement("div")).innerHTML="<svg>"+m.valueOf().toString()+"</svg>",m=He.firstChild;u.firstChild;)u.removeChild(u.firstChild);for(;m.firstChild;)u.appendChild(m.firstChild)}},typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(u,m,k,P){MSApp.execUnsafeLocalFunction(function(){return lt(u,m)})}:lt);function ct(u,m){if(m){var k=u.firstChild;if(k&&k===u.lastChild&&k.nodeType===3)return void(k.nodeValue=m)}u.textContent=m}var Rt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_t=["Webkit","ms","Moz","O"];function ut(u,m,k){return m==null||typeof m=="boolean"||m===""?"":k||typeof m!="number"||m===0||Rt.hasOwnProperty(u)&&Rt[u]?(""+m).trim():m+"px"}function xt(u,m){for(var k in u=u.style,m)if(m.hasOwnProperty(k)){var P=k.indexOf("--")===0,U=ut(k,m[k],P);k==="float"&&(k="cssFloat"),P?u.setProperty(k,U):u[k]=U}}Object.keys(Rt).forEach(function(u){_t.forEach(function(m){m=m+u.charAt(0).toUpperCase()+u.substring(1),Rt[m]=Rt[u]})});var Tt=R({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function at(u,m){if(m){if(Tt[u]&&(m.children!=null||m.dangerouslySetInnerHTML!=null))throw Error(n(137,u));if(m.dangerouslySetInnerHTML!=null){if(m.children!=null)throw Error(n(60));if(typeof m.dangerouslySetInnerHTML!="object"||!("__html"in m.dangerouslySetInnerHTML))throw Error(n(61))}if(m.style!=null&&typeof m.style!="object")throw Error(n(62))}}function Ct(u,m){if(u.indexOf("-")===-1)return typeof m.is=="string";switch(u){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var At=null;function ht(u){return(u=u.target||u.srcElement||window).correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var Qt=null,Kt=null,vt=null;function sn(u){if(u=Oh(u)){if(typeof Qt!="function")throw Error(n(280));var m=u.stateNode;m&&(m=Nh(m),Qt(u.stateNode,u.type,m))}}function $t(u){Kt?vt?vt.push(u):vt=[u]:Kt=u}function ft(){if(Kt){var u=Kt,m=vt;if(vt=Kt=null,sn(u),m)for(u=0;u<m.length;u++)sn(m[u])}}function Vt(u,m){return u(m)}function Ut(){}var gt=!1;function Gt(u,m,k){if(gt)return u(m,k);gt=!0;try{return Vt(u,m,k)}finally{gt=!1,(Kt!==null||vt!==null)&&(Ut(),ft())}}function Ft(u,m){var k=u.stateNode;if(k===null)return null;var P=Nh(k);if(P===null)return null;k=P[m];e:switch(m){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(P=!P.disabled)||(P=!((u=u.type)==="button"||u==="input"||u==="select"||u==="textarea")),u=!P;break e;default:u=!1}if(u)return null;if(k&&typeof k!="function")throw Error(n(231,m,typeof k));return k}var kt=!1;if(g)try{var en={};Object.defineProperty(en,"passive",{get:function(){kt=!0}}),window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch{kt=!1}function rn(u,m,k,P,U,W,J,be,ke){var Pe=Array.prototype.slice.call(arguments,3);try{m.apply(k,Pe)}catch(Be){this.onError(Be)}}var bt=!1,Xt=null,Jt=!1,wt=null,jt={onError:function(u){bt=!0,Xt=u}};function cn(u,m,k,P,U,W,J,be,ke){bt=!1,Xt=null,rn.apply(jt,arguments)}function St(u){var m=u,k=u;if(u.alternate)for(;m.return;)m=m.return;else{u=m;do 4098&(m=u).flags&&(k=m.return),u=m.return;while(u)}return m.tag===3?k:null}function fn(u){if(u.tag===13){var m=u.memoizedState;if(m===null&&(u=u.alternate)!==null&&(m=u.memoizedState),m!==null)return m.dehydrated}return null}function Yt(u){if(St(u)!==u)throw Error(n(188))}function tn(u){return u=function(m){var k=m.alternate;if(!k){if((k=St(m))===null)throw Error(n(188));return k!==m?null:m}for(var P=m,U=k;;){var W=P.return;if(W===null)break;var J=W.alternate;if(J===null){if((U=W.return)!==null){P=U;continue}break}if(W.child===J.child){for(J=W.child;J;){if(J===P)return Yt(W),m;if(J===U)return Yt(W),k;J=J.sibling}throw Error(n(188))}if(P.return!==U.return)P=W,U=J;else{for(var be=!1,ke=W.child;ke;){if(ke===P){be=!0,P=W,U=J;break}if(ke===U){be=!0,U=W,P=J;break}ke=ke.sibling}if(!be){for(ke=J.child;ke;){if(ke===P){be=!0,P=J,U=W;break}if(ke===U){be=!0,U=J,P=W;break}ke=ke.sibling}if(!be)throw Error(n(189))}}if(P.alternate!==U)throw Error(n(190))}if(P.tag!==3)throw Error(n(188));return P.stateNode.current===P?m:k}(u),u!==null?Nr(u):null}function Nr(u){if(u.tag===5||u.tag===6)return u;for(u=u.child;u!==null;){var m=Nr(u);if(m!==null)return m;u=u.sibling}return null}var Dr=t.unstable_scheduleCallback,xr=t.unstable_cancelCallback,yr=t.unstable_shouldYield,Kr=t.unstable_requestPaint,Cn=t.unstable_now,un=t.unstable_getCurrentPriorityLevel,wr=t.unstable_ImmediatePriority,Br=t.unstable_UserBlockingPriority,Ar=t.unstable_NormalPriority,jr=t.unstable_LowPriority,ur=t.unstable_IdlePriority,lr=null,Bn=null,Zn=Math.clz32?Math.clz32:function(u){return u>>>=0,u===0?32:31-(Rr(u)/Ir|0)|0},Rr=Math.log,Ir=Math.LN2,di=64,Hi=4194304;function dl(u){switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&u;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&u;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function uc(u,m){var k=u.pendingLanes;if(k===0)return 0;var P=0,U=u.suspendedLanes,W=u.pingedLanes,J=268435455&k;if(J!==0){var be=J&~U;be!==0?P=dl(be):(W&=J)!==0&&(P=dl(W))}else(J=k&~U)!==0?P=dl(J):W!==0&&(P=dl(W));if(P===0)return 0;if(m!==0&&m!==P&&!(m&U)&&((U=P&-P)>=(W=m&-m)||U===16&&4194240&W))return m;if(4&P&&(P|=16&k),(m=u.entangledLanes)!==0)for(u=u.entanglements,m&=P;0<m;)U=1<<(k=31-Zn(m)),P|=u[k],m&=~U;return P}function cr(u,m){switch(u){case 1:case 2:case 4:return m+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return m+5e3;default:return-1}}function Td(u){return(u=-1073741825&u.pendingLanes)!==0?u:1073741824&u?1073741824:0}function ne(){var u=di;return!(4194240&(di<<=1))&&(di=64),u}function Re(u){for(var m=[],k=0;31>k;k++)m.push(u);return m}function We(u,m,k){u.pendingLanes|=m,m!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),(u=u.eventTimes)[m=31-Zn(m)]=k}function it(u,m){var k=u.entangledLanes|=m;for(u=u.entanglements;k;){var P=31-Zn(k),U=1<<P;U&m|u[P]&m&&(u[P]|=m),k&=~U}}var ot=0;function nn(u){return 1<(u&=-u)?4<u?268435455&u?16:536870912:4:1}var It,qt,An,hn,on,dn=!1,Qn=[],nr=null,pn=null,zr=null,fi=new Map,ta=new Map,na=[],_h="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sh(u,m){switch(u){case"focusin":case"focusout":nr=null;break;case"dragenter":case"dragleave":pn=null;break;case"mouseover":case"mouseout":zr=null;break;case"pointerover":case"pointerout":fi.delete(m.pointerId);break;case"gotpointercapture":case"lostpointercapture":ta.delete(m.pointerId)}}function fl(u,m,k,P,U,W){return u===null||u.nativeEvent!==W?(u={blockedOn:m,domEventName:k,eventSystemFlags:P,nativeEvent:W,targetContainers:[U]},m!==null&&(m=Oh(m))!==null&&qt(m),u):(u.eventSystemFlags|=P,m=u.targetContainers,U!==null&&m.indexOf(U)===-1&&m.push(U),u)}function Pd(u){var m=Yi(u.target);if(m!==null){var k=St(m);if(k!==null){if((m=k.tag)===13){if((m=fn(k))!==null)return u.blockedOn=m,void on(u.priority,function(){An(k)})}else if(m===3&&k.stateNode.current.memoizedState.isDehydrated)return void(u.blockedOn=k.tag===3?k.stateNode.containerInfo:null)}}u.blockedOn=null}function hl(u){if(u.blockedOn!==null)return!1;for(var m=u.targetContainers;0<m.length;){var k=kh(u.domEventName,u.eventSystemFlags,m[0],u.nativeEvent);if(k!==null)return(m=Oh(k))!==null&&qt(m),u.blockedOn=k,!1;var P=new(k=u.nativeEvent).constructor(k.type,k);At=P,k.target.dispatchEvent(P),At=null,m.shift()}return!0}function bg(u,m,k){hl(u)&&k.delete(m)}function Iy(){dn=!1,nr!==null&&hl(nr)&&(nr=null),pn!==null&&hl(pn)&&(pn=null),zr!==null&&hl(zr)&&(zr=null),fi.forEach(bg),ta.forEach(bg)}function lc(u,m){u.blockedOn===m&&(u.blockedOn=null,dn||(dn=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Iy)))}function Ld(u){function m(U){return lc(U,u)}if(0<Qn.length){lc(Qn[0],u);for(var k=1;k<Qn.length;k++){var P=Qn[k];P.blockedOn===u&&(P.blockedOn=null)}}for(nr!==null&&lc(nr,u),pn!==null&&lc(pn,u),zr!==null&&lc(zr,u),fi.forEach(m),ta.forEach(m),k=0;k<na.length;k++)(P=na[k]).blockedOn===u&&(P.blockedOn=null);for(;0<na.length&&(k=na[0]).blockedOn===null;)Pd(k),k.blockedOn===null&&na.shift()}var Id=ee.ReactCurrentBatchConfig,Od=!0;function Oy(u,m,k,P){var U=ot,W=Id.transition;Id.transition=null;try{ot=1,Np(u,m,k,P)}finally{ot=U,Id.transition=W}}function Ny(u,m,k,P){var U=ot,W=Id.transition;Id.transition=null;try{ot=4,Np(u,m,k,P)}finally{ot=U,Id.transition=W}}function Np(u,m,k,P){if(Od){var U=kh(u,m,k,P);if(U===null)Ur(u,m,P,Eh,k),Sh(u,P);else if(function(J,be,ke,Pe,Be){switch(be){case"focusin":return nr=fl(nr,J,be,ke,Pe,Be),!0;case"dragenter":return pn=fl(pn,J,be,ke,Pe,Be),!0;case"mouseover":return zr=fl(zr,J,be,ke,Pe,Be),!0;case"pointerover":var $e=Be.pointerId;return fi.set($e,fl(fi.get($e)||null,J,be,ke,Pe,Be)),!0;case"gotpointercapture":return $e=Be.pointerId,ta.set($e,fl(ta.get($e)||null,J,be,ke,Pe,Be)),!0}return!1}(U,u,m,k,P))P.stopPropagation();else if(Sh(u,P),4&m&&-1<_h.indexOf(u)){for(;U!==null;){var W=Oh(U);if(W!==null&&It(W),(W=kh(u,m,k,P))===null&&Ur(u,m,P,Eh,k),W===U)break;U=W}U!==null&&P.stopPropagation()}else Ur(u,m,P,null,k)}}var Eh=null;function kh(u,m,k,P){if(Eh=null,(u=Yi(u=ht(P)))!==null)if((m=St(u))===null)u=null;else if((k=m.tag)===13){if((u=fn(m))!==null)return u;u=null}else if(k===3){if(m.stateNode.current.memoizedState.isDehydrated)return m.tag===3?m.stateNode.containerInfo:null;u=null}else m!==u&&(u=null);return Eh=u,null}function Dy(u){switch(u){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(un()){case wr:return 1;case Br:return 4;case Ar:case jr:return 16;case ur:return 536870912;default:return 16}default:return 16}}var qr=null,Dp=null,Mh=null;function cc(){if(Mh)return Mh;var u,m,k=Dp,P=k.length,U="value"in qr?qr.value:qr.textContent,W=U.length;for(u=0;u<P&&k[u]===U[u];u++);var J=P-u;for(m=1;m<=J&&k[P-m]===U[W-m];m++);return Mh=U.slice(u,1<m?1-m:void 0)}function Nd(u){var m=u.keyCode;return"charCode"in u?(u=u.charCode)===0&&m===13&&(u=13):u=m,u===10&&(u=13),32<=u||u===13?u:0}function Ch(){return!0}function yg(){return!1}function Wi(u){function m(k,P,U,W,J){for(var be in this._reactName=k,this._targetInst=U,this.type=P,this.nativeEvent=W,this.target=J,this.currentTarget=null,u)u.hasOwnProperty(be)&&(k=u[be],this[be]=k?k(W):W[be]);return this.isDefaultPrevented=(W.defaultPrevented!=null?W.defaultPrevented:W.returnValue===!1)?Ch:yg,this.isPropagationStopped=yg,this}return R(m.prototype,{preventDefault:function(){this.defaultPrevented=!0;var k=this.nativeEvent;k&&(k.preventDefault?k.preventDefault():typeof k.returnValue!="unknown"&&(k.returnValue=!1),this.isDefaultPrevented=Ch)},stopPropagation:function(){var k=this.nativeEvent;k&&(k.stopPropagation?k.stopPropagation():typeof k.cancelBubble!="unknown"&&(k.cancelBubble=!0),this.isPropagationStopped=Ch)},persist:function(){},isPersistent:Ch}),m}var Bp,jp,Dd,ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(u){return u.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wg=Wi(ho),dc=R({},ho,{view:0,detail:0}),_g=Wi(dc),Bd=R({},dc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kg,button:0,buttons:0,relatedTarget:function(u){return u.relatedTarget===void 0?u.fromElement===u.srcElement?u.toElement:u.fromElement:u.relatedTarget},movementX:function(u){return"movementX"in u?u.movementX:(u!==Dd&&(Dd&&u.type==="mousemove"?(Bp=u.screenX-Dd.screenX,jp=u.screenY-Dd.screenY):jp=Bp=0,Dd=u),Bp)},movementY:function(u){return"movementY"in u?u.movementY:jp}}),zp=Wi(Bd),Sg=Wi(R({},Bd,{dataTransfer:0})),Up=Wi(R({},dc,{relatedTarget:0})),po=Wi(R({},ho,{animationName:0,elapsedTime:0,pseudoElement:0})),Vs=R({},ho,{clipboardData:function(u){return"clipboardData"in u?u.clipboardData:window.clipboardData}}),Qr=Wi(Vs),rs=Wi(R({},ho,{data:0})),Eg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fp={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},i7={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xh(u){var m=this.nativeEvent;return m.getModifierState?m.getModifierState(u):!!(u=i7[u])&&!!m[u]}function kg(){return xh}var Mg=R({},dc,{key:function(u){if(u.key){var m=Eg[u.key]||u.key;if(m!=="Unidentified")return m}return u.type==="keypress"?(u=Nd(u))===13?"Enter":String.fromCharCode(u):u.type==="keydown"||u.type==="keyup"?Fp[u.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kg,charCode:function(u){return u.type==="keypress"?Nd(u):0},keyCode:function(u){return u.type==="keydown"||u.type==="keyup"?u.keyCode:0},which:function(u){return u.type==="keypress"?Nd(u):u.type==="keydown"||u.type==="keyup"?u.keyCode:0}}),o7=Wi(Mg),By=Wi(R({},Bd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),a7=Wi(R({},dc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kg})),jy=Wi(R({},ho,{propertyName:0,elapsedTime:0,pseudoElement:0})),s7=R({},Bd,{deltaX:function(u){return"deltaX"in u?u.deltaX:"wheelDeltaX"in u?-u.wheelDeltaX:0},deltaY:function(u){return"deltaY"in u?u.deltaY:"wheelDeltaY"in u?-u.wheelDeltaY:"wheelDelta"in u?-u.wheelDelta:0},deltaZ:0,deltaMode:0}),u7=Wi(s7),l7=[9,13,27,32],Kp=g&&"CompositionEvent"in window,is=null;g&&"documentMode"in document&&(is=document.documentMode);var Cg=g&&"TextEvent"in window&&!is,xg=g&&(!Kp||is&&8<is&&11>=is),Ag=" ",zy=!1;function Uy(u,m){switch(u){case"keyup":return l7.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fy(u){return typeof(u=u.detail)=="object"&&"data"in u?u.data:null}var fc=!1,c7={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Rg(u){var m=u&&u.nodeName&&u.nodeName.toLowerCase();return m==="input"?!!c7[u.type]:m==="textarea"}function Ky(u,m,k,P){$t(P),0<(m=ss(m,"onChange")).length&&(k=new wg("onChange","change",null,k,P),u.push({event:k,listeners:m}))}var qp=null,hc=null;function pc(u){Gy(u,0)}function mc(u){if(ae(ra(u)))return u}function qy(u,m){if(u==="change")return m}var gc=!1;if(g){var Tg;if(g){var Pg="oninput"in document;if(!Pg){var Hy=document.createElement("div");Hy.setAttribute("oninput","return;"),Pg=typeof Hy.oninput=="function"}Tg=Pg}else Tg=!1;gc=Tg&&(!document.documentMode||9<document.documentMode)}function Wy(){qp&&(qp.detachEvent("onpropertychange",Lg),hc=qp=null)}function Lg(u){if(u.propertyName==="value"&&mc(hc)){var m=[];Ky(m,hc,u,ht(u)),Gt(pc,m)}}function $y(u,m,k){u==="focusin"?(Wy(),hc=k,(qp=m).attachEvent("onpropertychange",Lg)):u==="focusout"&&Wy()}function $i(u){if(u==="selectionchange"||u==="keyup"||u==="keydown")return mc(hc)}function Vy(u,m){if(u==="click")return mc(m)}function d7(u,m){if(u==="input"||u==="change")return mc(m)}var ka=typeof Object.is=="function"?Object.is:function(u,m){return u===m&&(u!==0||1/u==1/m)||u!=u&&m!=m};function Ah(u,m){if(ka(u,m))return!0;if(typeof u!="object"||u===null||typeof m!="object"||m===null)return!1;var k=Object.keys(u),P=Object.keys(m);if(k.length!==P.length)return!1;for(P=0;P<k.length;P++){var U=k[P];if(!_.call(m,U)||!ka(u[U],m[U]))return!1}return!0}function Yy(u){for(;u&&u.firstChild;)u=u.firstChild;return u}function Ig(u,m){var k,P=Yy(u);for(u=0;P;){if(P.nodeType===3){if(k=u+P.textContent.length,u<=m&&k>=m)return{node:P,offset:m-u};u=k}e:{for(;P;){if(P.nextSibling){P=P.nextSibling;break e}P=P.parentNode}P=void 0}P=Yy(P)}}function Hp(u,m){return!(!u||!m)&&(u===m||(!u||u.nodeType!==3)&&(m&&m.nodeType===3?Hp(u,m.parentNode):"contains"in u?u.contains(m):!!u.compareDocumentPosition&&!!(16&u.compareDocumentPosition(m))))}function jd(){for(var u=window,m=re();m instanceof u.HTMLIFrameElement;){try{var k=typeof m.contentWindow.location.href=="string"}catch{k=!1}if(!k)break;m=re((u=m.contentWindow).document)}return m}function Og(u){var m=u&&u.nodeName&&u.nodeName.toLowerCase();return m&&(m==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||m==="textarea"||u.contentEditable==="true")}function Rh(u){var m=jd(),k=u.focusedElem,P=u.selectionRange;if(m!==k&&k&&k.ownerDocument&&Hp(k.ownerDocument.documentElement,k)){if(P!==null&&Og(k)){if(m=P.start,(u=P.end)===void 0&&(u=m),"selectionStart"in k)k.selectionStart=m,k.selectionEnd=Math.min(u,k.value.length);else if((u=(m=k.ownerDocument||document)&&m.defaultView||window).getSelection){u=u.getSelection();var U=k.textContent.length,W=Math.min(P.start,U);P=P.end===void 0?W:Math.min(P.end,U),!u.extend&&W>P&&(U=P,P=W,W=U),U=Ig(k,W);var J=Ig(k,P);U&&J&&(u.rangeCount!==1||u.anchorNode!==U.node||u.anchorOffset!==U.offset||u.focusNode!==J.node||u.focusOffset!==J.offset)&&((m=m.createRange()).setStart(U.node,U.offset),u.removeAllRanges(),W>P?(u.addRange(m),u.extend(J.node,J.offset)):(m.setEnd(J.node,J.offset),u.addRange(m)))}}for(m=[],u=k;u=u.parentNode;)u.nodeType===1&&m.push({element:u,left:u.scrollLeft,top:u.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<m.length;k++)(u=m[k]).element.scrollLeft=u.left,u.element.scrollTop=u.top}}var Ng=g&&"documentMode"in document&&11>=document.documentMode,pl=null,ml=null,os=null,Wp=!1;function Dg(u,m,k){var P=k.window===k?k.document:k.nodeType===9?k:k.ownerDocument;Wp||pl==null||pl!==re(P)||("selectionStart"in(P=pl)&&Og(P)?P={start:P.selectionStart,end:P.selectionEnd}:P={anchorNode:(P=(P.ownerDocument&&P.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:P.anchorOffset,focusNode:P.focusNode,focusOffset:P.focusOffset},os&&Ah(os,P)||(os=P,0<(P=ss(ml,"onSelect")).length&&(m=new wg("onSelect","select",null,m,k),u.push({event:m,listeners:P}),m.target=pl)))}function Th(u,m){var k={};return k[u.toLowerCase()]=m.toLowerCase(),k["Webkit"+u]="webkit"+m,k["Moz"+u]="moz"+m,k}var vc={animationend:Th("Animation","AnimationEnd"),animationiteration:Th("Animation","AnimationIteration"),animationstart:Th("Animation","AnimationStart"),transitionend:Th("Transition","TransitionEnd")},$p={},Vp={};function Yp(u){if($p[u])return $p[u];if(!vc[u])return u;var m,k=vc[u];for(m in k)if(k.hasOwnProperty(m)&&m in Vp)return $p[u]=k[m];return u}g&&(Vp=document.createElement("div").style,"AnimationEvent"in window||(delete vc.animationend.animation,delete vc.animationiteration.animation,delete vc.animationstart.animation),"TransitionEvent"in window||delete vc.transitionend.transition);var Bg=Yp("animationend"),zd=Yp("animationiteration"),Gp=Yp("animationstart"),Ud=Yp("transitionend"),jg=new Map,zg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function as(u,m){jg.set(u,m),i(m,[u])}for(var Ug=0;Ug<zg.length;Ug++){var gl=zg[Ug];as(gl.toLowerCase(),"on"+(gl[0].toUpperCase()+gl.slice(1)))}as(Bg,"onAnimationEnd"),as(zd,"onAnimationIteration"),as(Gp,"onAnimationStart"),as("dblclick","onDoubleClick"),as("focusin","onFocus"),as("focusout","onBlur"),as(Ud,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Zp=new Set("cancel close invalid load scroll toggle".split(" ").concat(vl));function Qp(u,m,k){var P=u.type||"unknown-event";u.currentTarget=k,function(U,W,J,be,ke,Pe,Be,$e,Ke){if(cn.apply(this,arguments),bt){if(!bt)throw Error(n(198));var Ye=Xt;bt=!1,Xt=null,Jt||(Jt=!0,wt=Ye)}}(P,m,void 0,u),u.currentTarget=null}function Gy(u,m){m=(4&m)!=0;for(var k=0;k<u.length;k++){var P=u[k],U=P.event;P=P.listeners;e:{var W=void 0;if(m)for(var J=P.length-1;0<=J;J--){var be=P[J],ke=be.instance,Pe=be.currentTarget;if(be=be.listener,ke!==W&&U.isPropagationStopped())break e;Qp(U,be,Pe),W=ke}else for(J=0;J<P.length;J++){if(ke=(be=P[J]).instance,Pe=be.currentTarget,be=be.listener,ke!==W&&U.isPropagationStopped())break e;Qp(U,be,Pe),W=ke}}}if(Jt)throw u=wt,Jt=!1,wt=null,u}function hr(u,m){var k=m[Lh];k===void 0&&(k=m[Lh]=new Set);var P=u+"__bubble";k.has(P)||(bc(m,u,2,!1),k.add(P))}function Ph(u,m,k){var P=0;m&&(P|=4),bc(k,u,P,m)}var Ys="_reactListening"+Math.random().toString(36).slice(2);function an(u){if(!u[Ys]){u[Ys]=!0,r.forEach(function(k){k!=="selectionchange"&&(Zp.has(k)||Ph(k,!1,u),Ph(k,!0,u))});var m=u.nodeType===9?u:u.ownerDocument;m===null||m[Ys]||(m[Ys]=!0,Ph("selectionchange",!1,m))}}function bc(u,m,k,P){switch(Dy(m)){case 1:var U=Oy;break;case 4:U=Ny;break;default:U=Np}k=U.bind(null,m,k,u),U=void 0,!kt||m!=="touchstart"&&m!=="touchmove"&&m!=="wheel"||(U=!0),P?U!==void 0?u.addEventListener(m,k,{capture:!0,passive:U}):u.addEventListener(m,k,!0):U!==void 0?u.addEventListener(m,k,{passive:U}):u.addEventListener(m,k,!1)}function Ur(u,m,k,P,U){var W=P;if(!(1&m)&&!(2&m)&&P!==null)e:for(;;){if(P===null)return;var J=P.tag;if(J===3||J===4){var be=P.stateNode.containerInfo;if(be===U||be.nodeType===8&&be.parentNode===U)break;if(J===4)for(J=P.return;J!==null;){var ke=J.tag;if((ke===3||ke===4)&&((ke=J.stateNode.containerInfo)===U||ke.nodeType===8&&ke.parentNode===U))return;J=J.return}for(;be!==null;){if((J=Yi(be))===null)return;if((ke=J.tag)===5||ke===6){P=W=J;continue e}be=be.parentNode}}P=P.return}Gt(function(){var Pe=W,Be=ht(k),$e=[];e:{var Ke=jg.get(u);if(Ke!==void 0){var Ye=wg,dt=u;switch(u){case"keypress":if(Nd(k)===0)break e;case"keydown":case"keyup":Ye=o7;break;case"focusin":dt="focus",Ye=Up;break;case"focusout":dt="blur",Ye=Up;break;case"beforeblur":case"afterblur":Ye=Up;break;case"click":if(k.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ye=zp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ye=Sg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ye=a7;break;case Bg:case zd:case Gp:Ye=po;break;case Ud:Ye=jy;break;case"scroll":Ye=_g;break;case"wheel":Ye=u7;break;case"copy":case"cut":case"paste":Ye=Qr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ye=By}var yt=(4&m)!=0,qe=!yt&&u==="scroll",Ae=yt?Ke!==null?Ke+"Capture":null:Ke;yt=[];for(var Ue,et=Pe;et!==null;){var Nt=(Ue=et).stateNode;if(Ue.tag===5&&Nt!==null&&(Ue=Nt,Ae!==null&&(Nt=Ft(et,Ae))!=null&&yt.push(Rn(et,Nt,Ue))),qe)break;et=et.return}0<yt.length&&(Ke=new Ye(Ke,dt,null,k,Be),$e.push({event:Ke,listeners:yt}))}}if(!(7&m)){if(Ye=u==="mouseout"||u==="pointerout",(!(Ke=u==="mouseover"||u==="pointerover")||k===At||!(dt=k.relatedTarget||k.fromElement)||!Yi(dt)&&!dt[Ca])&&(Ye||Ke)&&(Ke=Be.window===Be?Be:(Ke=Be.ownerDocument)?Ke.defaultView||Ke.parentWindow:window,Ye?(Ye=Pe,(dt=(dt=k.relatedTarget||k.toElement)?Yi(dt):null)!==null&&(dt!==(qe=St(dt))||dt.tag!==5&&dt.tag!==6)&&(dt=null)):(Ye=null,dt=Pe),Ye!==dt)){if(yt=zp,Nt="onMouseLeave",Ae="onMouseEnter",et="mouse",u!=="pointerout"&&u!=="pointerover"||(yt=By,Nt="onPointerLeave",Ae="onPointerEnter",et="pointer"),qe=Ye==null?Ke:ra(Ye),Ue=dt==null?Ke:ra(dt),(Ke=new yt(Nt,et+"leave",Ye,k,Be)).target=qe,Ke.relatedTarget=Ue,Nt=null,Yi(Be)===Pe&&((yt=new yt(Ae,et+"enter",dt,k,Be)).target=Ue,yt.relatedTarget=qe,Nt=yt),qe=Nt,Ye&&dt)e:{for(Ae=dt,et=0,Ue=yt=Ye;Ue;Ue=us(Ue))et++;for(Ue=0,Nt=Ae;Nt;Nt=us(Nt))Ue++;for(;0<et-Ue;)yt=us(yt),et--;for(;0<Ue-et;)Ae=us(Ae),Ue--;for(;et--;){if(yt===Ae||Ae!==null&&yt===Ae.alternate)break e;yt=us(yt),Ae=us(Ae)}yt=null}else yt=null;Ye!==null&&Xp($e,Ke,Ye,yt,!1),dt!==null&&qe!==null&&Xp($e,qe,dt,yt,!0)}if((Ye=(Ke=Pe?ra(Pe):window).nodeName&&Ke.nodeName.toLowerCase())==="select"||Ye==="input"&&Ke.type==="file")var Mn=qy;else if(Rg(Ke))if(gc)Mn=d7;else{Mn=$i;var Ot=$y}else(Ye=Ke.nodeName)&&Ye.toLowerCase()==="input"&&(Ke.type==="checkbox"||Ke.type==="radio")&&(Mn=Vy);switch(Mn&&(Mn=Mn(u,Pe))?Ky($e,Mn,k,Be):(Ot&&Ot(u,Ke,Pe),u==="focusout"&&(Ot=Ke._wrapperState)&&Ot.controlled&&Ke.type==="number"&&me(Ke,"number",Ke.value)),Ot=Pe?ra(Pe):window,u){case"focusin":(Rg(Ot)||Ot.contentEditable==="true")&&(pl=Ot,ml=Pe,os=null);break;case"focusout":os=ml=pl=null;break;case"mousedown":Wp=!0;break;case"contextmenu":case"mouseup":case"dragend":Wp=!1,Dg($e,k,Be);break;case"selectionchange":if(Ng)break;case"keydown":case"keyup":Dg($e,k,Be)}var kn;if(Kp)e:{switch(u){case"compositionstart":var wn="onCompositionStart";break e;case"compositionend":wn="onCompositionEnd";break e;case"compositionupdate":wn="onCompositionUpdate";break e}wn=void 0}else fc?Uy(u,k)&&(wn="onCompositionEnd"):u==="keydown"&&k.keyCode===229&&(wn="onCompositionStart");wn&&(xg&&k.locale!=="ko"&&(fc||wn!=="onCompositionStart"?wn==="onCompositionEnd"&&fc&&(kn=cc()):(Dp="value"in(qr=Be)?qr.value:qr.textContent,fc=!0)),0<(Ot=ss(Pe,wn)).length&&(wn=new rs(wn,u,null,k,Be),$e.push({event:wn,listeners:Ot}),(kn||(kn=Fy(k))!==null)&&(wn.data=kn))),(kn=Cg?function(_n,Yn){switch(_n){case"compositionend":return Fy(Yn);case"keypress":return Yn.which!==32?null:(zy=!0,Ag);case"textInput":return(_n=Yn.data)===Ag&&zy?null:_n;default:return null}}(u,k):function(_n,Yn){if(fc)return _n==="compositionend"||!Kp&&Uy(_n,Yn)?(_n=cc(),Mh=Dp=qr=null,fc=!1,_n):null;switch(_n){case"paste":default:return null;case"keypress":if(!(Yn.ctrlKey||Yn.altKey||Yn.metaKey)||Yn.ctrlKey&&Yn.altKey){if(Yn.char&&1<Yn.char.length)return Yn.char;if(Yn.which)return String.fromCharCode(Yn.which)}return null;case"compositionend":return xg&&Yn.locale!=="ko"?null:Yn.data}}(u,k))&&0<(Pe=ss(Pe,"onBeforeInput")).length&&(Be=new rs("onBeforeInput","beforeinput",null,k,Be),$e.push({event:Be,listeners:Pe}),Be.data=kn)}Gy($e,m)})}function Rn(u,m,k){return{instance:u,listener:m,currentTarget:k}}function ss(u,m){for(var k=m+"Capture",P=[];u!==null;){var U=u,W=U.stateNode;U.tag===5&&W!==null&&(U=W,(W=Ft(u,k))!=null&&P.unshift(Rn(u,W,U)),(W=Ft(u,m))!=null&&P.push(Rn(u,W,U))),u=u.return}return P}function us(u){if(u===null)return null;do u=u.return;while(u&&u.tag!==5);return u||null}function Xp(u,m,k,P,U){for(var W=m._reactName,J=[];k!==null&&k!==P;){var be=k,ke=be.alternate,Pe=be.stateNode;if(ke!==null&&ke===P)break;be.tag===5&&Pe!==null&&(be=Pe,U?(ke=Ft(k,W))!=null&&J.unshift(Rn(k,ke,be)):U||(ke=Ft(k,W))!=null&&J.push(Rn(k,ke,be))),k=k.return}J.length!==0&&u.push({event:m,listeners:J})}var qn=/\r\n?/g,Gs=/\u0000|\uFFFD/g;function Zs(u){return(typeof u=="string"?u:""+u).replace(qn,`
81
+ `).replace(Gs,"")}function ls(u,m,k){if(m=Zs(m),Zs(u)!==m&&k)throw Error(n(425))}function mo(){}var Ma=null,Qs=null;function Fd(u,m){return u==="textarea"||u==="noscript"||typeof m.children=="string"||typeof m.children=="number"||typeof m.dangerouslySetInnerHTML=="object"&&m.dangerouslySetInnerHTML!==null&&m.dangerouslySetInnerHTML.__html!=null}var Fg=typeof setTimeout=="function"?setTimeout:void 0,f7=typeof clearTimeout=="function"?clearTimeout:void 0,Kd=typeof Promise=="function"?Promise:void 0,Vi=typeof queueMicrotask=="function"?queueMicrotask:Kd!==void 0?function(u){return Kd.resolve(null).then(u).catch(Kg)}:Fg;function Kg(u){setTimeout(function(){throw u})}function Jp(u,m){var k=m,P=0;do{var U=k.nextSibling;if(u.removeChild(k),U&&U.nodeType===8)if((k=U.data)==="/$"){if(P===0)return u.removeChild(U),void Ld(m);P--}else k!=="$"&&k!=="$?"&&k!=="$!"||P++;k=U}while(k);Ld(m)}function cs(u){for(;u!=null;u=u.nextSibling){var m=u.nodeType;if(m===1||m===3)break;if(m===8){if((m=u.data)==="$"||m==="$!"||m==="$?")break;if(m==="/$")return null}}return u}function bl(u){u=u.previousSibling;for(var m=0;u;){if(u.nodeType===8){var k=u.data;if(k==="$"||k==="$!"||k==="$?"){if(m===0)return u;m--}else k==="/$"&&m++}u=u.previousSibling}return null}var yl=Math.random().toString(36).slice(2),ii="__reactFiber$"+yl,wl="__reactProps$"+yl,Ca="__reactContainer$"+yl,Lh="__reactEvents$"+yl,Ih="__reactListeners$"+yl,qd="__reactHandles$"+yl;function Yi(u){var m=u[ii];if(m)return m;for(var k=u.parentNode;k;){if(m=k[Ca]||k[ii]){if(k=m.alternate,m.child!==null||k!==null&&k.child!==null)for(u=bl(u);u!==null;){if(k=u[ii])return k;u=bl(u)}return m}k=(u=k).parentNode}return null}function Oh(u){return!(u=u[ii]||u[Ca])||u.tag!==5&&u.tag!==6&&u.tag!==13&&u.tag!==3?null:u}function ra(u){if(u.tag===5||u.tag===6)return u.stateNode;throw Error(n(33))}function Nh(u){return u[wl]||null}var e1=[],yc=-1;function Xs(u){return{current:u}}function _r(u){0>yc||(u.current=e1[yc],e1[yc]=null,yc--)}function pr(u,m){yc++,e1[yc]=u.current,u.current=m}var _l={},hi=Xs(_l),Gi=Xs(!1),wc=_l;function Hd(u,m){var k=u.type.contextTypes;if(!k)return _l;var P=u.stateNode;if(P&&P.__reactInternalMemoizedUnmaskedChildContext===m)return P.__reactInternalMemoizedMaskedChildContext;var U,W={};for(U in k)W[U]=m[U];return P&&((u=u.stateNode).__reactInternalMemoizedUnmaskedChildContext=m,u.__reactInternalMemoizedMaskedChildContext=W),W}function xo(u){return(u=u.childContextTypes)!=null}function Xr(){_r(Gi),_r(hi)}function Zy(u,m,k){if(hi.current!==_l)throw Error(n(168));pr(hi,m),pr(Gi,k)}function Dh(u,m,k){var P=u.stateNode;if(m=m.childContextTypes,typeof P.getChildContext!="function")return k;for(var U in P=P.getChildContext())if(!(U in m))throw Error(n(108,D(u)||"Unknown",U));return R({},k,P)}function Wd(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||_l,wc=hi.current,pr(hi,u),pr(Gi,Gi.current),!0}function Sl(u,m,k){var P=u.stateNode;if(!P)throw Error(n(169));k?(u=Dh(u,m,wc),P.__reactInternalMemoizedMergedChildContext=u,_r(Gi),_r(hi),pr(hi,u)):_r(Gi),pr(Gi,k)}var Js=null,$d=!1,qg=!1;function Qy(u){Js===null?Js=[u]:Js.push(u)}function Ao(){if(!qg&&Js!==null){qg=!0;var u=0,m=ot;try{var k=Js;for(ot=1;u<k.length;u++){var P=k[u];do P=P(!0);while(P!==null)}Js=null,$d=!1}catch(U){throw Js!==null&&(Js=Js.slice(u+1)),Dr(wr,Ao),U}finally{ot=m,qg=!1}}return null}var Hr=[],Pt=0,Ro=null,go=0,rr=[],ia=0,_c=null,xa=1,To="";function oa(u,m){Hr[Pt++]=go,Hr[Pt++]=Ro,Ro=u,go=m}function Xy(u,m,k){rr[ia++]=xa,rr[ia++]=To,rr[ia++]=_c,_c=u;var P=xa;u=To;var U=32-Zn(P)-1;P&=~(1<<U),k+=1;var W=32-Zn(m)+U;if(30<W){var J=U-U%5;W=(P&(1<<J)-1).toString(32),P>>=J,U-=J,xa=1<<32-Zn(m)+U|k<<U|P,To=W+u}else xa=1<<W|k<<U|P,To=u}function t1(u){u.return!==null&&(oa(u,1),Xy(u,1,0))}function n1(u){for(;u===Ro;)Ro=Hr[--Pt],Hr[Pt]=null,go=Hr[--Pt],Hr[Pt]=null;for(;u===_c;)_c=rr[--ia],rr[ia]=null,To=rr[--ia],rr[ia]=null,xa=rr[--ia],rr[ia]=null}var Po=null,Lo=null,Sr=!1,aa=null;function r1(u,m){var k=jo(5,null,null,0);k.elementType="DELETED",k.stateNode=m,k.return=u,(m=u.deletions)===null?(u.deletions=[k],u.flags|=16):m.push(k)}function mn(u,m){switch(u.tag){case 5:var k=u.type;return(m=m.nodeType!==1||k.toLowerCase()!==m.nodeName.toLowerCase()?null:m)!==null&&(u.stateNode=m,Po=u,Lo=cs(m.firstChild),!0);case 6:return(m=u.pendingProps===""||m.nodeType!==3?null:m)!==null&&(u.stateNode=m,Po=u,Lo=null,!0);case 13:return(m=m.nodeType!==8?null:m)!==null&&(k=_c!==null?{id:xa,overflow:To}:null,u.memoizedState={dehydrated:m,treeContext:k,retryLane:1073741824},(k=jo(18,null,null,0)).stateNode=m,k.return=u,u.child=k,Po=u,Lo=null,!0);default:return!1}}function Ln(u){return(1&u.mode)!=0&&(128&u.flags)==0}function Wn(u){if(Sr){var m=Lo;if(m){var k=m;if(!mn(u,m)){if(Ln(u))throw Error(n(418));m=cs(k.nextSibling);var P=Po;m&&mn(u,m)?r1(P,k):(u.flags=-4097&u.flags|2,Sr=!1,Po=u)}}else{if(Ln(u))throw Error(n(418));u.flags=-4097&u.flags|2,Sr=!1,Po=u}}}function Wr(u){for(u=u.return;u!==null&&u.tag!==5&&u.tag!==3&&u.tag!==13;)u=u.return;Po=u}function Io(u){if(u!==Po)return!1;if(!Sr)return Wr(u),Sr=!0,!1;var m;if((m=u.tag!==3)&&!(m=u.tag!==5)&&(m=(m=u.type)!=="head"&&m!=="body"&&!Fd(u.type,u.memoizedProps)),m&&(m=Lo)){if(Ln(u))throw Hg(),Error(n(418));for(;m;)r1(u,m),m=cs(m.nextSibling)}if(Wr(u),u.tag===13){if(!(u=(u=u.memoizedState)!==null?u.dehydrated:null))throw Error(n(317));e:{for(u=u.nextSibling,m=0;u;){if(u.nodeType===8){var k=u.data;if(k==="/$"){if(m===0){Lo=cs(u.nextSibling);break e}m--}else k!=="$"&&k!=="$!"&&k!=="$?"||m++}u=u.nextSibling}Lo=null}}else Lo=Po?cs(u.stateNode.nextSibling):null;return!0}function Hg(){for(var u=Lo;u;)u=cs(u.nextSibling)}function Vd(){Lo=Po=null,Sr=!1}function Wg(u){aa===null?aa=[u]:aa.push(u)}var $g=ee.ReactCurrentBatchConfig;function st(u,m){if(u&&u.defaultProps){for(var k in m=R({},m),u=u.defaultProps)m[k]===void 0&&(m[k]=u[k]);return m}return m}var $r=Xs(null),gn=null,Aa=null,Ra=null;function eu(){Ra=Aa=gn=null}function sa(u){var m=$r.current;_r($r),u._currentValue=m}function Sc(u,m,k){for(;u!==null;){var P=u.alternate;if((u.childLanes&m)!==m?(u.childLanes|=m,P!==null&&(P.childLanes|=m)):P!==null&&(P.childLanes&m)!==m&&(P.childLanes|=m),u===k)break;u=u.return}}function Ta(u,m){gn=u,Ra=Aa=null,(u=u.dependencies)!==null&&u.firstContext!==null&&(u.lanes&m&&(Zi=!0),u.firstContext=null)}function Pi(u){var m=u._currentValue;if(Ra!==u)if(u={context:u,memoizedValue:m,next:null},Aa===null){if(gn===null)throw Error(n(308));Aa=u,gn.dependencies={lanes:0,firstContext:u}}else Aa=Aa.next=u;return m}var tu=null;function Bh(u){tu===null?tu=[u]:tu.push(u)}function i1(u,m,k,P){var U=m.interleaved;return U===null?(k.next=k,Bh(m)):(k.next=U.next,U.next=k),m.interleaved=k,Pa(u,P)}function Pa(u,m){u.lanes|=m;var k=u.alternate;for(k!==null&&(k.lanes|=m),k=u,u=u.return;u!==null;)u.childLanes|=m,(k=u.alternate)!==null&&(k.childLanes|=m),k=u,u=u.return;return k.tag===3?k.stateNode:null}var ds=!1;function jh(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function o1(u,m){u=u.updateQueue,m.updateQueue===u&&(m.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects})}function La(u,m){return{eventTime:u,lane:m,tag:0,payload:null,callback:null,next:null}}function fs(u,m,k){var P=u.updateQueue;if(P===null)return null;if(P=P.shared,(2&Vn)!=0){var U=P.pending;return U===null?m.next=m:(m.next=U.next,U.next=m),P.pending=m,Pa(u,k)}return(U=P.interleaved)===null?(m.next=m,Bh(P)):(m.next=U.next,U.next=m),P.interleaved=m,Pa(u,k)}function Yd(u,m,k){if((m=m.updateQueue)!==null&&(m=m.shared,(4194240&k)!=0)){var P=m.lanes;k|=P&=u.pendingLanes,m.lanes=k,it(u,k)}}function a1(u,m){var k=u.updateQueue,P=u.alternate;if(P!==null&&k===(P=P.updateQueue)){var U=null,W=null;if((k=k.firstBaseUpdate)!==null){do{var J={eventTime:k.eventTime,lane:k.lane,tag:k.tag,payload:k.payload,callback:k.callback,next:null};W===null?U=W=J:W=W.next=J,k=k.next}while(k!==null);W===null?U=W=m:W=W.next=m}else U=W=m;return k={baseState:P.baseState,firstBaseUpdate:U,lastBaseUpdate:W,shared:P.shared,effects:P.effects},void(u.updateQueue=k)}(u=k.lastBaseUpdate)===null?k.firstBaseUpdate=m:u.next=m,k.lastBaseUpdate=m}function Gd(u,m,k,P){var U=u.updateQueue;ds=!1;var W=U.firstBaseUpdate,J=U.lastBaseUpdate,be=U.shared.pending;if(be!==null){U.shared.pending=null;var ke=be,Pe=ke.next;ke.next=null,J===null?W=Pe:J.next=Pe,J=ke;var Be=u.alternate;Be!==null&&(be=(Be=Be.updateQueue).lastBaseUpdate)!==J&&(be===null?Be.firstBaseUpdate=Pe:be.next=Pe,Be.lastBaseUpdate=ke)}if(W!==null){var $e=U.baseState;for(J=0,Be=Pe=ke=null,be=W;;){var Ke=be.lane,Ye=be.eventTime;if((P&Ke)===Ke){Be!==null&&(Be=Be.next={eventTime:Ye,lane:0,tag:be.tag,payload:be.payload,callback:be.callback,next:null});e:{var dt=u,yt=be;switch(Ke=m,Ye=k,yt.tag){case 1:if(typeof(dt=yt.payload)=="function"){$e=dt.call(Ye,$e,Ke);break e}$e=dt;break e;case 3:dt.flags=-65537&dt.flags|128;case 0:if((Ke=typeof(dt=yt.payload)=="function"?dt.call(Ye,$e,Ke):dt)==null)break e;$e=R({},$e,Ke);break e;case 2:ds=!0}}be.callback!==null&&be.lane!==0&&(u.flags|=64,(Ke=U.effects)===null?U.effects=[be]:Ke.push(be))}else Ye={eventTime:Ye,lane:Ke,tag:be.tag,payload:be.payload,callback:be.callback,next:null},Be===null?(Pe=Be=Ye,ke=$e):Be=Be.next=Ye,J|=Ke;if((be=be.next)===null){if((be=U.shared.pending)===null)break;be=(Ke=be).next,Ke.next=null,U.lastBaseUpdate=Ke,U.shared.pending=null}}if(Be===null&&(ke=$e),U.baseState=ke,U.firstBaseUpdate=Pe,U.lastBaseUpdate=Be,(m=U.shared.interleaved)!==null){U=m;do J|=U.lane,U=U.next;while(U!==m)}else W===null&&(U.shared.lanes=0);Al|=J,u.lanes=J,u.memoizedState=$e}}function s1(u,m,k){if(u=m.effects,m.effects=null,u!==null)for(m=0;m<u.length;m++){var P=u[m],U=P.callback;if(U!==null){if(P.callback=null,P=k,typeof U!="function")throw Error(n(191,U));U.call(P)}}}var u1=new e.Component().refs;function zh(u,m,k,P){k=(k=k(P,m=u.memoizedState))==null?m:R({},m,k),u.memoizedState=k,u.lanes===0&&(u.updateQueue.baseState=k)}var Ec={isMounted:function(u){return!!(u=u._reactInternals)&&St(u)===u},enqueueSetState:function(u,m,k){u=u._reactInternals;var P=Oi(),U=mu(u),W=La(P,U);W.payload=m,k!=null&&(W.callback=k),(m=fs(u,W,U))!==null&&(ca(m,u,U,P),Yd(m,u,U))},enqueueReplaceState:function(u,m,k){u=u._reactInternals;var P=Oi(),U=mu(u),W=La(P,U);W.tag=1,W.payload=m,k!=null&&(W.callback=k),(m=fs(u,W,U))!==null&&(ca(m,u,U,P),Yd(m,u,U))},enqueueForceUpdate:function(u,m){u=u._reactInternals;var k=Oi(),P=mu(u),U=La(k,P);U.tag=2,m!=null&&(U.callback=m),(m=fs(u,U,P))!==null&&(ca(m,u,P,k),Yd(m,u,P))}};function kc(u,m,k,P,U,W,J){return typeof(u=u.stateNode).shouldComponentUpdate=="function"?u.shouldComponentUpdate(P,W,J):!m.prototype||!m.prototype.isPureReactComponent||!Ah(k,P)||!Ah(U,W)}function l1(u,m,k){var P=!1,U=_l,W=m.contextType;return typeof W=="object"&&W!==null?W=Pi(W):(U=xo(m)?wc:hi.current,W=(P=(P=m.contextTypes)!=null)?Hd(u,U):_l),m=new m(k,W),u.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Ec,u.stateNode=m,m._reactInternals=u,P&&((u=u.stateNode).__reactInternalMemoizedUnmaskedChildContext=U,u.__reactInternalMemoizedMaskedChildContext=W),m}function c1(u,m,k,P){u=m.state,typeof m.componentWillReceiveProps=="function"&&m.componentWillReceiveProps(k,P),typeof m.UNSAFE_componentWillReceiveProps=="function"&&m.UNSAFE_componentWillReceiveProps(k,P),m.state!==u&&Ec.enqueueReplaceState(m,m.state,null)}function Uh(u,m,k,P){var U=u.stateNode;U.props=k,U.state=u.memoizedState,U.refs=u1,jh(u);var W=m.contextType;typeof W=="object"&&W!==null?U.context=Pi(W):(W=xo(m)?wc:hi.current,U.context=Hd(u,W)),U.state=u.memoizedState,typeof(W=m.getDerivedStateFromProps)=="function"&&(zh(u,m,W,k),U.state=u.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof U.getSnapshotBeforeUpdate=="function"||typeof U.UNSAFE_componentWillMount!="function"&&typeof U.componentWillMount!="function"||(m=U.state,typeof U.componentWillMount=="function"&&U.componentWillMount(),typeof U.UNSAFE_componentWillMount=="function"&&U.UNSAFE_componentWillMount(),m!==U.state&&Ec.enqueueReplaceState(U,U.state,null),Gd(u,k,U,P),U.state=u.memoizedState),typeof U.componentDidMount=="function"&&(u.flags|=4194308)}function Mc(u,m,k){if((u=k.ref)!==null&&typeof u!="function"&&typeof u!="object"){if(k._owner){if(k=k._owner){if(k.tag!==1)throw Error(n(309));var P=k.stateNode}if(!P)throw Error(n(147,u));var U=P,W=""+u;return m!==null&&m.ref!==null&&typeof m.ref=="function"&&m.ref._stringRef===W?m.ref:(m=function(J){var be=U.refs;be===u1&&(be=U.refs={}),J===null?delete be[W]:be[W]=J},m._stringRef=W,m)}if(typeof u!="string")throw Error(n(284));if(!k._owner)throw Error(n(290,u))}return u}function Fh(u,m){throw u=Object.prototype.toString.call(m),Error(n(31,u==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":u))}function Zd(u){return(0,u._init)(u._payload)}function Vg(u){function m(qe,Ae){if(u){var Ue=qe.deletions;Ue===null?(qe.deletions=[Ae],qe.flags|=16):Ue.push(Ae)}}function k(qe,Ae){if(!u)return null;for(;Ae!==null;)m(qe,Ae),Ae=Ae.sibling;return null}function P(qe,Ae){for(qe=new Map;Ae!==null;)Ae.key!==null?qe.set(Ae.key,Ae):qe.set(Ae.index,Ae),Ae=Ae.sibling;return qe}function U(qe,Ae){return(qe=da(qe,Ae)).index=0,qe.sibling=null,qe}function W(qe,Ae,Ue){return qe.index=Ue,u?(Ue=qe.alternate)!==null?(Ue=Ue.index)<Ae?(qe.flags|=2,Ae):Ue:(qe.flags|=2,Ae):(qe.flags|=1048576,Ae)}function J(qe){return u&&qe.alternate===null&&(qe.flags|=2),qe}function be(qe,Ae,Ue,et){return Ae===null||Ae.tag!==6?((Ae=bu(Ue,qe.mode,et)).return=qe,Ae):((Ae=U(Ae,Ue)).return=qe,Ae)}function ke(qe,Ae,Ue,et){var Nt=Ue.type;return Nt===le?Be(qe,Ae,Ue.props.children,et,Ue.key):Ae!==null&&(Ae.elementType===Nt||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===h&&Zd(Nt)===Ae.type)?((et=U(Ae,Ue.props)).ref=Mc(qe,Ae,Ue),et.return=qe,et):((et=Uc(Ue.type,Ue.key,Ue.props,null,qe.mode,et)).ref=Mc(qe,Ae,Ue),et.return=qe,et)}function Pe(qe,Ae,Ue,et){return Ae===null||Ae.tag!==4||Ae.stateNode.containerInfo!==Ue.containerInfo||Ae.stateNode.implementation!==Ue.implementation?((Ae=yu(Ue,qe.mode,et)).return=qe,Ae):((Ae=U(Ae,Ue.children||[])).return=qe,Ae)}function Be(qe,Ae,Ue,et,Nt){return Ae===null||Ae.tag!==7?((Ae=bo(Ue,qe.mode,et,Nt)).return=qe,Ae):((Ae=U(Ae,Ue)).return=qe,Ae)}function $e(qe,Ae,Ue){if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number")return(Ae=bu(""+Ae,qe.mode,Ue)).return=qe,Ae;if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case X:return(Ue=Uc(Ae.type,Ae.key,Ae.props,null,qe.mode,Ue)).ref=Mc(qe,null,Ae),Ue.return=qe,Ue;case ue:return(Ae=yu(Ae,qe.mode,Ue)).return=qe,Ae;case h:return $e(qe,(0,Ae._init)(Ae._payload),Ue)}if(Le(Ae)||b(Ae))return(Ae=bo(Ae,qe.mode,Ue,null)).return=qe,Ae;Fh(qe,Ae)}return null}function Ke(qe,Ae,Ue,et){var Nt=Ae!==null?Ae.key:null;if(typeof Ue=="string"&&Ue!==""||typeof Ue=="number")return Nt!==null?null:be(qe,Ae,""+Ue,et);if(typeof Ue=="object"&&Ue!==null){switch(Ue.$$typeof){case X:return Ue.key===Nt?ke(qe,Ae,Ue,et):null;case ue:return Ue.key===Nt?Pe(qe,Ae,Ue,et):null;case h:return Ke(qe,Ae,(Nt=Ue._init)(Ue._payload),et)}if(Le(Ue)||b(Ue))return Nt!==null?null:Be(qe,Ae,Ue,et,null);Fh(qe,Ue)}return null}function Ye(qe,Ae,Ue,et,Nt){if(typeof et=="string"&&et!==""||typeof et=="number")return be(Ae,qe=qe.get(Ue)||null,""+et,Nt);if(typeof et=="object"&&et!==null){switch(et.$$typeof){case X:return ke(Ae,qe=qe.get(et.key===null?Ue:et.key)||null,et,Nt);case ue:return Pe(Ae,qe=qe.get(et.key===null?Ue:et.key)||null,et,Nt);case h:return Ye(qe,Ae,Ue,(0,et._init)(et._payload),Nt)}if(Le(et)||b(et))return Be(Ae,qe=qe.get(Ue)||null,et,Nt,null);Fh(Ae,et)}return null}function dt(qe,Ae,Ue,et){for(var Nt=null,Mn=null,Ot=Ae,kn=Ae=0,wn=null;Ot!==null&&kn<Ue.length;kn++){Ot.index>kn?(wn=Ot,Ot=null):wn=Ot.sibling;var _n=Ke(qe,Ot,Ue[kn],et);if(_n===null){Ot===null&&(Ot=wn);break}u&&Ot&&_n.alternate===null&&m(qe,Ot),Ae=W(_n,Ae,kn),Mn===null?Nt=_n:Mn.sibling=_n,Mn=_n,Ot=wn}if(kn===Ue.length)return k(qe,Ot),Sr&&oa(qe,kn),Nt;if(Ot===null){for(;kn<Ue.length;kn++)(Ot=$e(qe,Ue[kn],et))!==null&&(Ae=W(Ot,Ae,kn),Mn===null?Nt=Ot:Mn.sibling=Ot,Mn=Ot);return Sr&&oa(qe,kn),Nt}for(Ot=P(qe,Ot);kn<Ue.length;kn++)(wn=Ye(Ot,qe,kn,Ue[kn],et))!==null&&(u&&wn.alternate!==null&&Ot.delete(wn.key===null?kn:wn.key),Ae=W(wn,Ae,kn),Mn===null?Nt=wn:Mn.sibling=wn,Mn=wn);return u&&Ot.forEach(function(Yn){return m(qe,Yn)}),Sr&&oa(qe,kn),Nt}function yt(qe,Ae,Ue,et){var Nt=b(Ue);if(typeof Nt!="function")throw Error(n(150));if((Ue=Nt.call(Ue))==null)throw Error(n(151));for(var Mn=Nt=null,Ot=Ae,kn=Ae=0,wn=null,_n=Ue.next();Ot!==null&&!_n.done;kn++,_n=Ue.next()){Ot.index>kn?(wn=Ot,Ot=null):wn=Ot.sibling;var Yn=Ke(qe,Ot,_n.value,et);if(Yn===null){Ot===null&&(Ot=wn);break}u&&Ot&&Yn.alternate===null&&m(qe,Ot),Ae=W(Yn,Ae,kn),Mn===null?Nt=Yn:Mn.sibling=Yn,Mn=Yn,Ot=wn}if(_n.done)return k(qe,Ot),Sr&&oa(qe,kn),Nt;if(Ot===null){for(;!_n.done;kn++,_n=Ue.next())(_n=$e(qe,_n.value,et))!==null&&(Ae=W(_n,Ae,kn),Mn===null?Nt=_n:Mn.sibling=_n,Mn=_n);return Sr&&oa(qe,kn),Nt}for(Ot=P(qe,Ot);!_n.done;kn++,_n=Ue.next())(_n=Ye(Ot,qe,kn,_n.value,et))!==null&&(u&&_n.alternate!==null&&Ot.delete(_n.key===null?kn:_n.key),Ae=W(_n,Ae,kn),Mn===null?Nt=_n:Mn.sibling=_n,Mn=_n);return u&&Ot.forEach(function(Kc){return m(qe,Kc)}),Sr&&oa(qe,kn),Nt}return function qe(Ae,Ue,et,Nt){if(typeof et=="object"&&et!==null&&et.type===le&&et.key===null&&(et=et.props.children),typeof et=="object"&&et!==null){switch(et.$$typeof){case X:e:{for(var Mn=et.key,Ot=Ue;Ot!==null;){if(Ot.key===Mn){if((Mn=et.type)===le){if(Ot.tag===7){k(Ae,Ot.sibling),(Ue=U(Ot,et.props.children)).return=Ae,Ae=Ue;break e}}else if(Ot.elementType===Mn||typeof Mn=="object"&&Mn!==null&&Mn.$$typeof===h&&Zd(Mn)===Ot.type){k(Ae,Ot.sibling),(Ue=U(Ot,et.props)).ref=Mc(Ae,Ot,et),Ue.return=Ae,Ae=Ue;break e}k(Ae,Ot);break}m(Ae,Ot),Ot=Ot.sibling}et.type===le?((Ue=bo(et.props.children,Ae.mode,Nt,et.key)).return=Ae,Ae=Ue):((Nt=Uc(et.type,et.key,et.props,null,Ae.mode,Nt)).ref=Mc(Ae,Ue,et),Nt.return=Ae,Ae=Nt)}return J(Ae);case ue:e:{for(Ot=et.key;Ue!==null;){if(Ue.key===Ot){if(Ue.tag===4&&Ue.stateNode.containerInfo===et.containerInfo&&Ue.stateNode.implementation===et.implementation){k(Ae,Ue.sibling),(Ue=U(Ue,et.children||[])).return=Ae,Ae=Ue;break e}k(Ae,Ue);break}m(Ae,Ue),Ue=Ue.sibling}(Ue=yu(et,Ae.mode,Nt)).return=Ae,Ae=Ue}return J(Ae);case h:return qe(Ae,Ue,(Ot=et._init)(et._payload),Nt)}if(Le(et))return dt(Ae,Ue,et,Nt);if(b(et))return yt(Ae,Ue,et,Nt);Fh(Ae,et)}return typeof et=="string"&&et!==""||typeof et=="number"?(et=""+et,Ue!==null&&Ue.tag===6?(k(Ae,Ue.sibling),(Ue=U(Ue,et)).return=Ae,Ae=Ue):(k(Ae,Ue),(Ue=bu(et,Ae.mode,Nt)).return=Ae,Ae=Ue),J(Ae)):k(Ae,Ue)}}var hs=Vg(!0),El=Vg(!1),pi={},ps=Xs(pi),ir=Xs(pi),Cc=Xs(pi);function nu(u){if(u===pi)throw Error(n(174));return u}function xc(u,m){switch(pr(Cc,m),pr(ir,u),pr(ps,pi),u=m.nodeType){case 9:case 11:m=(m=m.documentElement)?m.namespaceURI:rt(null,"");break;default:m=rt(m=(u=u===8?m.parentNode:m).namespaceURI||null,u=u.tagName)}_r(ps),pr(ps,m)}function ru(){_r(ps),_r(ir),_r(Cc)}function Jy(u){nu(Cc.current);var m=nu(ps.current),k=rt(m,u.type);m!==k&&(pr(ir,u),pr(ps,k))}function Kh(u){ir.current===u&&(_r(ps),_r(ir))}var Tr=Xs(0);function qh(u){for(var m=u;m!==null;){if(m.tag===13){var k=m.memoizedState;if(k!==null&&((k=k.dehydrated)===null||k.data==="$?"||k.data==="$!"))return m}else if(m.tag===19&&m.memoizedProps.revealOrder!==void 0){if(128&m.flags)return m}else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===u)break;for(;m.sibling===null;){if(m.return===null||m.return===u)return null;m=m.return}m.sibling.return=m.return,m=m.sibling}return null}var Qd=[];function d1(){for(var u=0;u<Qd.length;u++)Qd[u]._workInProgressVersionPrimary=null;Qd.length=0}var Hh=ee.ReactCurrentDispatcher,iu=ee.ReactCurrentBatchConfig,Ia=0,or=null,Jr=null,Xn=null,ou=!1,yn=!1,kl=0,e3=0;function oi(){throw Error(n(321))}function Ac(u,m){if(m===null)return!1;for(var k=0;k<m.length&&k<u.length;k++)if(!ka(u[k],m[k]))return!1;return!0}function f1(u,m,k,P,U,W){if(Ia=W,or=m,m.memoizedState=null,m.updateQueue=null,m.lanes=0,Hh.current=u===null||u.memoizedState===null?rf:Qg,u=k(P,U),yn){W=0;do{if(yn=!1,kl=0,25<=W)throw Error(n(301));W+=1,Xn=Jr=null,m.updateQueue=null,Hh.current=a3,u=k(P,U)}while(yn)}if(Hh.current=Ml,m=Jr!==null&&Jr.next!==null,Ia=0,Xn=Jr=or=null,ou=!1,m)throw Error(n(300));return u}function Wh(){var u=kl!==0;return kl=0,u}function Oa(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xn===null?or.memoizedState=Xn=u:Xn=Xn.next=u,Xn}function Oo(){if(Jr===null){var u=or.alternate;u=u!==null?u.memoizedState:null}else u=Jr.next;var m=Xn===null?or.memoizedState:Xn.next;if(m!==null)Xn=m,Jr=u;else{if(u===null)throw Error(n(310));u={memoizedState:(Jr=u).memoizedState,baseState:Jr.baseState,baseQueue:Jr.baseQueue,queue:Jr.queue,next:null},Xn===null?or.memoizedState=Xn=u:Xn=Xn.next=u}return Xn}function Xd(u,m){return typeof m=="function"?m(u):m}function $h(u){var m=Oo(),k=m.queue;if(k===null)throw Error(n(311));k.lastRenderedReducer=u;var P=Jr,U=P.baseQueue,W=k.pending;if(W!==null){if(U!==null){var J=U.next;U.next=W.next,W.next=J}P.baseQueue=U=W,k.pending=null}if(U!==null){W=U.next,P=P.baseState;var be=J=null,ke=null,Pe=W;do{var Be=Pe.lane;if((Ia&Be)===Be)ke!==null&&(ke=ke.next={lane:0,action:Pe.action,hasEagerState:Pe.hasEagerState,eagerState:Pe.eagerState,next:null}),P=Pe.hasEagerState?Pe.eagerState:u(P,Pe.action);else{var $e={lane:Be,action:Pe.action,hasEagerState:Pe.hasEagerState,eagerState:Pe.eagerState,next:null};ke===null?(be=ke=$e,J=P):ke=ke.next=$e,or.lanes|=Be,Al|=Be}Pe=Pe.next}while(Pe!==null&&Pe!==W);ke===null?J=P:ke.next=be,ka(P,m.memoizedState)||(Zi=!0),m.memoizedState=P,m.baseState=J,m.baseQueue=ke,k.lastRenderedState=P}if((u=k.interleaved)!==null){U=u;do W=U.lane,or.lanes|=W,Al|=W,U=U.next;while(U!==u)}else U===null&&(k.lanes=0);return[m.memoizedState,k.dispatch]}function h1(u){var m=Oo(),k=m.queue;if(k===null)throw Error(n(311));k.lastRenderedReducer=u;var P=k.dispatch,U=k.pending,W=m.memoizedState;if(U!==null){k.pending=null;var J=U=U.next;do W=u(W,J.action),J=J.next;while(J!==U);ka(W,m.memoizedState)||(Zi=!0),m.memoizedState=W,m.baseQueue===null&&(m.baseState=W),k.lastRenderedState=W}return[W,P]}function Yg(){}function Gg(u,m){var k=or,P=Oo(),U=m(),W=!ka(P.memoizedState,U);if(W&&(P.memoizedState=U,Zi=!0),P=P.queue,Gh(au.bind(null,k,P,u),[u]),P.getSnapshot!==m||W||Xn!==null&&1&Xn.memoizedState.tag){if(k.flags|=2048,ei(9,ms.bind(null,k,P,U,m),void 0,null),Jn===null)throw Error(n(349));30&Ia||No(k,m,U)}return U}function No(u,m,k){u.flags|=16384,u={getSnapshot:m,value:k},(m=or.updateQueue)===null?(m={lastEffect:null,stores:null},or.updateQueue=m,m.stores=[u]):(k=m.stores)===null?m.stores=[u]:k.push(u)}function ms(u,m,k,P){m.value=k,m.getSnapshot=P,Vh(m)&&Jd(u)}function au(u,m,k){return k(function(){Vh(m)&&Jd(u)})}function Vh(u){var m=u.getSnapshot;u=u.value;try{var k=m();return!ka(u,k)}catch{return!0}}function Jd(u){var m=Pa(u,1);m!==null&&ca(m,u,1,-1)}function Na(u){var m=Oa();return typeof u=="function"&&(u=u()),m.memoizedState=m.baseState=u,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xd,lastRenderedState:u},m.queue=u,u=u.dispatch=m1.bind(null,or,u),[m.memoizedState,u]}function ei(u,m,k,P){return u={tag:u,create:m,destroy:k,deps:P,next:null},(m=or.updateQueue)===null?(m={lastEffect:null,stores:null},or.updateQueue=m,m.lastEffect=u.next=u):(k=m.lastEffect)===null?m.lastEffect=u.next=u:(P=k.next,k.next=u,u.next=P,m.lastEffect=u),u}function p1(){return Oo().memoizedState}function Yh(u,m,k,P){var U=Oa();or.flags|=u,U.memoizedState=ei(1|m,k,void 0,P===void 0?null:P)}function Rc(u,m,k,P){var U=Oo();P=P===void 0?null:P;var W=void 0;if(Jr!==null){var J=Jr.memoizedState;if(W=J.destroy,P!==null&&Ac(P,J.deps))return void(U.memoizedState=ei(m,k,W,P))}or.flags|=u,U.memoizedState=ei(1|m,k,W,P)}function t3(u,m){return Yh(8390656,8,u,m)}function Gh(u,m){return Rc(2048,8,u,m)}function Zh(u,m){return Rc(4,2,u,m)}function su(u,m){return Rc(4,4,u,m)}function uu(u,m){return typeof m=="function"?(u=u(),m(u),function(){m(null)}):m!=null?(u=u(),m.current=u,function(){m.current=null}):void 0}function lu(u,m,k){return k=k!=null?k.concat([u]):null,Rc(4,4,uu.bind(null,m,u),k)}function Tc(){}function ef(u,m){var k=Oo();m=m===void 0?null:m;var P=k.memoizedState;return P!==null&&m!==null&&Ac(m,P[1])?P[0]:(k.memoizedState=[u,m],u)}function cu(u,m){var k=Oo();m=m===void 0?null:m;var P=k.memoizedState;return P!==null&&m!==null&&Ac(m,P[1])?P[0]:(u=u(),k.memoizedState=[u,m],u)}function n3(u,m,k){return 21&Ia?(ka(k,m)||(k=ne(),or.lanes|=k,Al|=k,u.baseState=!0),m):(u.baseState&&(u.baseState=!1,Zi=!0),u.memoizedState=k)}function r3(u,m){var k=ot;ot=k!==0&&4>k?k:4,u(!0);var P=iu.transition;iu.transition={};try{u(!1),m()}finally{ot=k,iu.transition=P}}function tf(){return Oo().memoizedState}function i3(u,m,k){var P=mu(u);k={lane:P,action:k,hasEagerState:!1,eagerState:null,next:null},Zg(u)?o3(m,k):(k=i1(u,m,k,P))!==null&&(ca(k,u,P,Oi()),nf(k,m,P))}function m1(u,m,k){var P=mu(u),U={lane:P,action:k,hasEagerState:!1,eagerState:null,next:null};if(Zg(u))o3(m,U);else{var W=u.alternate;if(u.lanes===0&&(W===null||W.lanes===0)&&(W=m.lastRenderedReducer)!==null)try{var J=m.lastRenderedState,be=W(J,k);if(U.hasEagerState=!0,U.eagerState=be,ka(be,J)){var ke=m.interleaved;return ke===null?(U.next=U,Bh(m)):(U.next=ke.next,ke.next=U),void(m.interleaved=U)}}catch{}(k=i1(u,m,U,P))!==null&&(ca(k,u,P,U=Oi()),nf(k,m,P))}}function Zg(u){var m=u.alternate;return u===or||m!==null&&m===or}function o3(u,m){yn=ou=!0;var k=u.pending;k===null?m.next=m:(m.next=k.next,k.next=m),u.pending=m}function nf(u,m,k){if(4194240&k){var P=m.lanes;k|=P&=u.pendingLanes,m.lanes=k,it(u,k)}}var Ml={readContext:Pi,useCallback:oi,useContext:oi,useEffect:oi,useImperativeHandle:oi,useInsertionEffect:oi,useLayoutEffect:oi,useMemo:oi,useReducer:oi,useRef:oi,useState:oi,useDebugValue:oi,useDeferredValue:oi,useTransition:oi,useMutableSource:oi,useSyncExternalStore:oi,useId:oi,unstable_isNewReconciler:!1},rf={readContext:Pi,useCallback:function(u,m){return Oa().memoizedState=[u,m===void 0?null:m],u},useContext:Pi,useEffect:t3,useImperativeHandle:function(u,m,k){return k=k!=null?k.concat([u]):null,Yh(4194308,4,uu.bind(null,m,u),k)},useLayoutEffect:function(u,m){return Yh(4194308,4,u,m)},useInsertionEffect:function(u,m){return Yh(4,2,u,m)},useMemo:function(u,m){var k=Oa();return m=m===void 0?null:m,u=u(),k.memoizedState=[u,m],u},useReducer:function(u,m,k){var P=Oa();return m=k!==void 0?k(m):m,P.memoizedState=P.baseState=m,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:m},P.queue=u,u=u.dispatch=i3.bind(null,or,u),[P.memoizedState,u]},useRef:function(u){return u={current:u},Oa().memoizedState=u},useState:Na,useDebugValue:Tc,useDeferredValue:function(u){return Oa().memoizedState=u},useTransition:function(){var u=Na(!1),m=u[0];return u=r3.bind(null,u[1]),Oa().memoizedState=u,[m,u]},useMutableSource:function(){},useSyncExternalStore:function(u,m,k){var P=or,U=Oa();if(Sr){if(k===void 0)throw Error(n(407));k=k()}else{if(k=m(),Jn===null)throw Error(n(349));30&Ia||No(P,m,k)}U.memoizedState=k;var W={value:k,getSnapshot:m};return U.queue=W,t3(au.bind(null,P,W,u),[u]),P.flags|=2048,ei(9,ms.bind(null,P,W,k,m),void 0,null),k},useId:function(){var u=Oa(),m=Jn.identifierPrefix;if(Sr){var k=To;m=":"+m+"R"+(k=(xa&~(1<<32-Zn(xa)-1)).toString(32)+k),0<(k=kl++)&&(m+="H"+k.toString(32)),m+=":"}else m=":"+m+"r"+(k=e3++).toString(32)+":";return u.memoizedState=m},unstable_isNewReconciler:!1},Qg={readContext:Pi,useCallback:ef,useContext:Pi,useEffect:Gh,useImperativeHandle:lu,useInsertionEffect:Zh,useLayoutEffect:su,useMemo:cu,useReducer:$h,useRef:p1,useState:function(){return $h(Xd)},useDebugValue:Tc,useDeferredValue:function(u){return n3(Oo(),Jr.memoizedState,u)},useTransition:function(){return[$h(Xd)[0],Oo().memoizedState]},useMutableSource:Yg,useSyncExternalStore:Gg,useId:tf,unstable_isNewReconciler:!1},a3={readContext:Pi,useCallback:ef,useContext:Pi,useEffect:Gh,useImperativeHandle:lu,useInsertionEffect:Zh,useLayoutEffect:su,useMemo:cu,useReducer:h1,useRef:p1,useState:function(){return h1(Xd)},useDebugValue:Tc,useDeferredValue:function(u){var m=Oo();return Jr===null?m.memoizedState=u:n3(m,Jr.memoizedState,u)},useTransition:function(){return[h1(Xd)[0],Oo().memoizedState]},useMutableSource:Yg,useSyncExternalStore:Gg,useId:tf,unstable_isNewReconciler:!1};function of(u,m){try{var k="",P=m;do k+=z(P),P=P.return;while(P);var U=k}catch(W){U=`
82
+ Error generating stack: `+W.message+`
83
+ `+W.stack}return{value:u,source:m,stack:U,digest:null}}function Xg(u,m,k){return{value:u,source:null,stack:k??null,digest:m??null}}function Qh(u,m){try{console.error(m.value)}catch(k){setTimeout(function(){throw k})}}var g1=typeof WeakMap=="function"?WeakMap:Map;function v1(u,m,k){(k=La(-1,k)).tag=3,k.payload={element:null};var P=m.value;return k.callback=function(){hu||(hu=!0,i0=P),Qh(0,m)},k}function Jg(u,m,k){(k=La(-1,k)).tag=3;var P=u.type.getDerivedStateFromError;if(typeof P=="function"){var U=m.value;k.payload=function(){return P(U)},k.callback=function(){Qh(0,m)}}var W=u.stateNode;return W!==null&&typeof W.componentDidCatch=="function"&&(k.callback=function(){Qh(0,m),typeof P!="function"&&(la===null?la=new Set([this]):la.add(this));var J=m.stack;this.componentDidCatch(m.value,{componentStack:J!==null?J:""})}),k}function af(u,m,k){var P=u.pingCache;if(P===null){P=u.pingCache=new g1;var U=new Set;P.set(m,U)}else(U=P.get(m))===void 0&&(U=new Set,P.set(m,U));U.has(k)||(U.add(k),u=S2.bind(null,u,m,k),m.then(u,u))}function b1(u){do{var m;if((m=u.tag===13)&&(m=(m=u.memoizedState)===null||m.dehydrated!==null),m)return u;u=u.return}while(u!==null);return null}function Xh(u,m,k,P,U){return 1&u.mode?(u.flags|=65536,u.lanes=U,u):(u===m?u.flags|=65536:(u.flags|=128,k.flags|=131072,k.flags&=-52805,k.tag===1&&(k.alternate===null?k.tag=17:((m=La(-1,1)).tag=2,fs(k,m,1))),k.lanes|=1),u)}var s3=ee.ReactCurrentOwner,Zi=!1;function mi(u,m,k,P){m.child=u===null?El(m,null,k,P):hs(m,u.child,k,P)}function Jh(u,m,k,P,U){k=k.render;var W=m.ref;return Ta(m,U),P=f1(u,m,k,P,W,U),k=Wh(),u===null||Zi?(Sr&&k&&t1(m),m.flags|=1,mi(u,m,P,U),m.child):(m.updateQueue=u.updateQueue,m.flags&=-2053,u.lanes&=~U,du(u,m,U))}function e2(u,m,k,P,U){if(u===null){var W=k.type;return typeof W!="function"||Ni(W)||W.defaultProps!==void 0||k.compare!==null||k.defaultProps!==void 0?((u=Uc(k.type,null,P,m,m.mode,U)).ref=m.ref,u.return=m,m.child=u):(m.tag=15,m.type=W,vo(u,m,W,P,U))}if(W=u.child,(u.lanes&U)==0){var J=W.memoizedProps;if((k=(k=k.compare)!==null?k:Ah)(J,P)&&u.ref===m.ref)return du(u,m,U)}return m.flags|=1,(u=da(W,P)).ref=m.ref,u.return=m,m.child=u}function vo(u,m,k,P,U){if(u!==null){var W=u.memoizedProps;if(Ah(W,P)&&u.ref===m.ref){if(Zi=!1,m.pendingProps=P=W,(u.lanes&U)==0)return m.lanes=u.lanes,du(u,m,U);131072&u.flags&&(Zi=!0)}}return Pc(u,m,k,P,U)}function y1(u,m,k){var P=m.pendingProps,U=P.children,W=u!==null?u.memoizedState:null;if(P.mode==="hidden")if(!(1&m.mode))m.memoizedState={baseLanes:0,cachePool:null,transitions:null},pr(Ic,Bo),Bo|=k;else{if(!(1073741824&k))return u=W!==null?W.baseLanes|k:k,m.lanes=m.childLanes=1073741824,m.memoizedState={baseLanes:u,cachePool:null,transitions:null},m.updateQueue=null,pr(Ic,Bo),Bo|=u,null;m.memoizedState={baseLanes:0,cachePool:null,transitions:null},P=W!==null?W.baseLanes:k,pr(Ic,Bo),Bo|=P}else W!==null?(P=W.baseLanes|k,m.memoizedState=null):P=k,pr(Ic,Bo),Bo|=P;return mi(u,m,U,k),m.child}function w1(u,m){var k=m.ref;(u===null&&k!==null||u!==null&&u.ref!==k)&&(m.flags|=512,m.flags|=2097152)}function Pc(u,m,k,P,U){var W=xo(k)?wc:hi.current;return W=Hd(m,W),Ta(m,U),k=f1(u,m,k,P,W,U),P=Wh(),u===null||Zi?(Sr&&P&&t1(m),m.flags|=1,mi(u,m,k,U),m.child):(m.updateQueue=u.updateQueue,m.flags&=-2053,u.lanes&=~U,du(u,m,U))}function Lc(u,m,k,P,U){if(xo(k)){var W=!0;Wd(m)}else W=!1;if(Ta(m,U),m.stateNode===null)uf(u,m),l1(m,k,P),Uh(m,k,P,U),P=!0;else if(u===null){var J=m.stateNode,be=m.memoizedProps;J.props=be;var ke=J.context,Pe=k.contextType;typeof Pe=="object"&&Pe!==null?Pe=Pi(Pe):Pe=Hd(m,Pe=xo(k)?wc:hi.current);var Be=k.getDerivedStateFromProps,$e=typeof Be=="function"||typeof J.getSnapshotBeforeUpdate=="function";$e||typeof J.UNSAFE_componentWillReceiveProps!="function"&&typeof J.componentWillReceiveProps!="function"||(be!==P||ke!==Pe)&&c1(m,J,P,Pe),ds=!1;var Ke=m.memoizedState;J.state=Ke,Gd(m,P,J,U),ke=m.memoizedState,be!==P||Ke!==ke||Gi.current||ds?(typeof Be=="function"&&(zh(m,k,Be,P),ke=m.memoizedState),(be=ds||kc(m,k,be,P,Ke,ke,Pe))?($e||typeof J.UNSAFE_componentWillMount!="function"&&typeof J.componentWillMount!="function"||(typeof J.componentWillMount=="function"&&J.componentWillMount(),typeof J.UNSAFE_componentWillMount=="function"&&J.UNSAFE_componentWillMount()),typeof J.componentDidMount=="function"&&(m.flags|=4194308)):(typeof J.componentDidMount=="function"&&(m.flags|=4194308),m.memoizedProps=P,m.memoizedState=ke),J.props=P,J.state=ke,J.context=Pe,P=be):(typeof J.componentDidMount=="function"&&(m.flags|=4194308),P=!1)}else{J=m.stateNode,o1(u,m),be=m.memoizedProps,Pe=m.type===m.elementType?be:st(m.type,be),J.props=Pe,$e=m.pendingProps,Ke=J.context,typeof(ke=k.contextType)=="object"&&ke!==null?ke=Pi(ke):ke=Hd(m,ke=xo(k)?wc:hi.current);var Ye=k.getDerivedStateFromProps;(Be=typeof Ye=="function"||typeof J.getSnapshotBeforeUpdate=="function")||typeof J.UNSAFE_componentWillReceiveProps!="function"&&typeof J.componentWillReceiveProps!="function"||(be!==$e||Ke!==ke)&&c1(m,J,P,ke),ds=!1,Ke=m.memoizedState,J.state=Ke,Gd(m,P,J,U);var dt=m.memoizedState;be!==$e||Ke!==dt||Gi.current||ds?(typeof Ye=="function"&&(zh(m,k,Ye,P),dt=m.memoizedState),(Pe=ds||kc(m,k,Pe,P,Ke,dt,ke)||!1)?(Be||typeof J.UNSAFE_componentWillUpdate!="function"&&typeof J.componentWillUpdate!="function"||(typeof J.componentWillUpdate=="function"&&J.componentWillUpdate(P,dt,ke),typeof J.UNSAFE_componentWillUpdate=="function"&&J.UNSAFE_componentWillUpdate(P,dt,ke)),typeof J.componentDidUpdate=="function"&&(m.flags|=4),typeof J.getSnapshotBeforeUpdate=="function"&&(m.flags|=1024)):(typeof J.componentDidUpdate!="function"||be===u.memoizedProps&&Ke===u.memoizedState||(m.flags|=4),typeof J.getSnapshotBeforeUpdate!="function"||be===u.memoizedProps&&Ke===u.memoizedState||(m.flags|=1024),m.memoizedProps=P,m.memoizedState=dt),J.props=P,J.state=dt,J.context=ke,P=Pe):(typeof J.componentDidUpdate!="function"||be===u.memoizedProps&&Ke===u.memoizedState||(m.flags|=4),typeof J.getSnapshotBeforeUpdate!="function"||be===u.memoizedProps&&Ke===u.memoizedState||(m.flags|=1024),P=!1)}return e0(u,m,k,P,W,U)}function e0(u,m,k,P,U,W){w1(u,m);var J=(128&m.flags)!=0;if(!P&&!J)return U&&Sl(m,k,!1),du(u,m,W);P=m.stateNode,s3.current=m;var be=J&&typeof k.getDerivedStateFromError!="function"?null:P.render();return m.flags|=1,u!==null&&J?(m.child=hs(m,u.child,null,W),m.child=hs(m,null,be,W)):mi(u,m,be,W),m.memoizedState=P.state,U&&Sl(m,k,!0),m.child}function sf(u){var m=u.stateNode;m.pendingContext?Zy(0,m.pendingContext,m.pendingContext!==m.context):m.context&&Zy(0,m.context,!1),xc(u,m.containerInfo)}function u3(u,m,k,P,U){return Vd(),Wg(U),m.flags|=256,mi(u,m,k,P),m.child}var t0,_1,l3,S1,t2={dehydrated:null,treeContext:null,retryLane:0};function n2(u){return{baseLanes:u,cachePool:null,transitions:null}}function r2(u,m,k){var P,U=m.pendingProps,W=Tr.current,J=!1,be=(128&m.flags)!=0;if((P=be)||(P=(u===null||u.memoizedState!==null)&&(2&W)!=0),P?(J=!0,m.flags&=-129):u!==null&&u.memoizedState===null||(W|=1),pr(Tr,1&W),u===null)return Wn(m),(u=m.memoizedState)!==null&&(u=u.dehydrated)!==null?(1&m.mode?u.data==="$!"?m.lanes=8:m.lanes=1073741824:m.lanes=1,null):(be=U.children,u=U.fallback,J?(U=m.mode,J=m.child,be={mode:"hidden",children:be},!(1&U)&&J!==null?(J.childLanes=0,J.pendingProps=be):J=f0(be,U,0,null),u=bo(u,U,k,null),J.return=m,u.return=m,J.sibling=u,m.child=J,m.child.memoizedState=n2(k),m.memoizedState=t2,u):i2(m,be));if((W=u.memoizedState)!==null&&(P=W.dehydrated)!==null)return function(Pe,Be,$e,Ke,Ye,dt,yt){if($e)return 256&Be.flags?(Be.flags&=-257,E1(Pe,Be,yt,Ke=Xg(Error(n(422))))):Be.memoizedState!==null?(Be.child=Pe.child,Be.flags|=128,null):(dt=Ke.fallback,Ye=Be.mode,Ke=f0({mode:"visible",children:Ke.children},Ye,0,null),(dt=bo(dt,Ye,yt,null)).flags|=2,Ke.return=Be,dt.return=Be,Ke.sibling=dt,Be.child=Ke,1&Be.mode&&hs(Be,Pe.child,null,yt),Be.child.memoizedState=n2(yt),Be.memoizedState=t2,dt);if(!(1&Be.mode))return E1(Pe,Be,yt,null);if(Ye.data==="$!"){if(Ke=Ye.nextSibling&&Ye.nextSibling.dataset)var qe=Ke.dgst;return Ke=qe,E1(Pe,Be,yt,Ke=Xg(dt=Error(n(419)),Ke,void 0))}if(qe=(yt&Pe.childLanes)!=0,Zi||qe){if((Ke=Jn)!==null){switch(yt&-yt){case 4:Ye=2;break;case 16:Ye=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:Ye=32;break;case 536870912:Ye=268435456;break;default:Ye=0}(Ye=Ye&(Ke.suspendedLanes|yt)?0:Ye)!==0&&Ye!==dt.retryLane&&(dt.retryLane=Ye,Pa(Pe,Ye),ca(Ke,Pe,Ye,-1))}return s0(),E1(Pe,Be,yt,Ke=Xg(Error(n(421))))}return Ye.data==="$?"?(Be.flags|=128,Be.child=Pe.child,Be=c0.bind(null,Pe),Ye._reactRetry=Be,null):(Pe=dt.treeContext,Lo=cs(Ye.nextSibling),Po=Be,Sr=!0,aa=null,Pe!==null&&(rr[ia++]=xa,rr[ia++]=To,rr[ia++]=_c,xa=Pe.id,To=Pe.overflow,_c=Be),Be=i2(Be,Ke.children),Be.flags|=4096,Be)}(u,m,be,U,P,W,k);if(J){J=U.fallback,be=m.mode,P=(W=u.child).sibling;var ke={mode:"hidden",children:U.children};return!(1&be)&&m.child!==W?((U=m.child).childLanes=0,U.pendingProps=ke,m.deletions=null):(U=da(W,ke)).subtreeFlags=14680064&W.subtreeFlags,P!==null?J=da(P,J):(J=bo(J,be,k,null)).flags|=2,J.return=m,U.return=m,U.sibling=J,m.child=U,U=J,J=m.child,be=(be=u.child.memoizedState)===null?n2(k):{baseLanes:be.baseLanes|k,cachePool:null,transitions:be.transitions},J.memoizedState=be,J.childLanes=u.childLanes&~k,m.memoizedState=t2,U}return u=(J=u.child).sibling,U=da(J,{mode:"visible",children:U.children}),!(1&m.mode)&&(U.lanes=k),U.return=m,U.sibling=null,u!==null&&((k=m.deletions)===null?(m.deletions=[u],m.flags|=16):k.push(u)),m.child=U,m.memoizedState=null,U}function i2(u,m){return(m=f0({mode:"visible",children:m},u.mode,0,null)).return=u,u.child=m}function E1(u,m,k,P){return P!==null&&Wg(P),hs(m,u.child,null,k),(u=i2(m,m.pendingProps.children)).flags|=2,m.memoizedState=null,u}function c3(u,m,k){u.lanes|=m;var P=u.alternate;P!==null&&(P.lanes|=m),Sc(u.return,m,k)}function o2(u,m,k,P,U){var W=u.memoizedState;W===null?u.memoizedState={isBackwards:m,rendering:null,renderingStartTime:0,last:P,tail:k,tailMode:U}:(W.isBackwards=m,W.rendering=null,W.renderingStartTime=0,W.last=P,W.tail=k,W.tailMode=U)}function d3(u,m,k){var P=m.pendingProps,U=P.revealOrder,W=P.tail;if(mi(u,m,P.children,k),(2&(P=Tr.current))!=0)P=1&P|2,m.flags|=128;else{if(u!==null&&128&u.flags)e:for(u=m.child;u!==null;){if(u.tag===13)u.memoizedState!==null&&c3(u,k,m);else if(u.tag===19)c3(u,k,m);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===m)break e;for(;u.sibling===null;){if(u.return===null||u.return===m)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}P&=1}if(pr(Tr,P),(1&m.mode)==0)m.memoizedState=null;else switch(U){case"forwards":for(k=m.child,U=null;k!==null;)(u=k.alternate)!==null&&qh(u)===null&&(U=k),k=k.sibling;(k=U)===null?(U=m.child,m.child=null):(U=k.sibling,k.sibling=null),o2(m,!1,U,k,W);break;case"backwards":for(k=null,U=m.child,m.child=null;U!==null;){if((u=U.alternate)!==null&&qh(u)===null){m.child=U;break}u=U.sibling,U.sibling=k,k=U,U=u}o2(m,!0,k,null,W);break;case"together":o2(m,!1,null,null,void 0);break;default:m.memoizedState=null}return m.child}function uf(u,m){!(1&m.mode)&&u!==null&&(u.alternate=null,m.alternate=null,m.flags|=2)}function du(u,m,k){if(u!==null&&(m.dependencies=u.dependencies),Al|=m.lanes,(k&m.childLanes)==0)return null;if(u!==null&&m.child!==u.child)throw Error(n(153));if(m.child!==null){for(k=da(u=m.child,u.pendingProps),m.child=k,k.return=m;u.sibling!==null;)u=u.sibling,(k=k.sibling=da(u,u.pendingProps)).return=m;k.sibling=null}return m.child}function n0(u,m){if(!Sr)switch(u.tailMode){case"hidden":m=u.tail;for(var k=null;m!==null;)m.alternate!==null&&(k=m),m=m.sibling;k===null?u.tail=null:k.sibling=null;break;case"collapsed":k=u.tail;for(var P=null;k!==null;)k.alternate!==null&&(P=k),k=k.sibling;P===null?m||u.tail===null?u.tail=null:u.tail.sibling=null:P.sibling=null}}function Li(u){var m=u.alternate!==null&&u.alternate.child===u.child,k=0,P=0;if(m)for(var U=u.child;U!==null;)k|=U.lanes|U.childLanes,P|=14680064&U.subtreeFlags,P|=14680064&U.flags,U.return=u,U=U.sibling;else for(U=u.child;U!==null;)k|=U.lanes|U.childLanes,P|=U.subtreeFlags,P|=U.flags,U.return=u,U=U.sibling;return u.subtreeFlags|=P,u.childLanes=k,m}function h7(u,m,k){var P=m.pendingProps;switch(n1(m),m.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Li(m),null;case 1:case 17:return xo(m.type)&&Xr(),Li(m),null;case 3:return P=m.stateNode,ru(),_r(Gi),_r(hi),d1(),P.pendingContext&&(P.context=P.pendingContext,P.pendingContext=null),u!==null&&u.child!==null||(Io(m)?m.flags|=4:u===null||u.memoizedState.isDehydrated&&!(256&m.flags)||(m.flags|=1024,aa!==null&&(ys(aa),aa=null))),_1(u,m),Li(m),null;case 5:Kh(m);var U=nu(Cc.current);if(k=m.type,u!==null&&m.stateNode!=null)l3(u,m,k,P,U),u.ref!==m.ref&&(m.flags|=512,m.flags|=2097152);else{if(!P){if(m.stateNode===null)throw Error(n(166));return Li(m),null}if(u=nu(ps.current),Io(m)){P=m.stateNode,k=m.type;var W=m.memoizedProps;switch(P[ii]=m,P[wl]=W,u=(1&m.mode)!=0,k){case"dialog":hr("cancel",P),hr("close",P);break;case"iframe":case"object":case"embed":hr("load",P);break;case"video":case"audio":for(U=0;U<vl.length;U++)hr(vl[U],P);break;case"source":hr("error",P);break;case"img":case"image":case"link":hr("error",P),hr("load",P);break;case"details":hr("toggle",P);break;case"input":de(P,W),hr("invalid",P);break;case"select":P._wrapperState={wasMultiple:!!W.multiple},hr("invalid",P);break;case"textarea":Qe(P,W),hr("invalid",P)}for(var J in at(k,W),U=null,W)if(W.hasOwnProperty(J)){var be=W[J];J==="children"?typeof be=="string"?P.textContent!==be&&(W.suppressHydrationWarning!==!0&&ls(P.textContent,be,u),U=["children",be]):typeof be=="number"&&P.textContent!==""+be&&(W.suppressHydrationWarning!==!0&&ls(P.textContent,be,u),U=["children",""+be]):o.hasOwnProperty(J)&&be!=null&&J==="onScroll"&&hr("scroll",P)}switch(k){case"input":Q(P),fe(P,W,!0);break;case"textarea":Q(P),Fe(P);break;case"select":case"option":break;default:typeof W.onClick=="function"&&(P.onclick=mo)}P=U,m.updateQueue=P,P!==null&&(m.flags|=4)}else{J=U.nodeType===9?U:U.ownerDocument,u==="http://www.w3.org/1999/xhtml"&&(u=Mt(k)),u==="http://www.w3.org/1999/xhtml"?k==="script"?((u=J.createElement("div")).innerHTML="<script><\/script>",u=u.removeChild(u.firstChild)):typeof P.is=="string"?u=J.createElement(k,{is:P.is}):(u=J.createElement(k),k==="select"&&(J=u,P.multiple?J.multiple=!0:P.size&&(J.size=P.size))):u=J.createElementNS(u,k),u[ii]=m,u[wl]=P,t0(u,m,!1,!1),m.stateNode=u;e:{switch(J=Ct(k,P),k){case"dialog":hr("cancel",u),hr("close",u),U=P;break;case"iframe":case"object":case"embed":hr("load",u),U=P;break;case"video":case"audio":for(U=0;U<vl.length;U++)hr(vl[U],u);U=P;break;case"source":hr("error",u),U=P;break;case"img":case"image":case"link":hr("error",u),hr("load",u),U=P;break;case"details":hr("toggle",u),U=P;break;case"input":de(u,P),U=we(u,P),hr("invalid",u);break;case"option":default:U=P;break;case"select":u._wrapperState={wasMultiple:!!P.multiple},U=R({},P,{value:void 0}),hr("invalid",u);break;case"textarea":Qe(u,P),U=Ce(u,P),hr("invalid",u)}for(W in at(k,U),be=U)if(be.hasOwnProperty(W)){var ke=be[W];W==="style"?xt(u,ke):W==="dangerouslySetInnerHTML"?(ke=ke?ke.__html:void 0)!=null&&mt(u,ke):W==="children"?typeof ke=="string"?(k!=="textarea"||ke!=="")&&ct(u,ke):typeof ke=="number"&&ct(u,""+ke):W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&W!=="autoFocus"&&(o.hasOwnProperty(W)?ke!=null&&W==="onScroll"&&hr("scroll",u):ke!=null&&V(u,W,ke,J))}switch(k){case"input":Q(u),fe(u,P,!1);break;case"textarea":Q(u),Fe(u);break;case"option":P.value!=null&&u.setAttribute("value",""+q(P.value));break;case"select":u.multiple=!!P.multiple,(W=P.value)!=null?De(u,!!P.multiple,W,!1):P.defaultValue!=null&&De(u,!!P.multiple,P.defaultValue,!0);break;default:typeof U.onClick=="function"&&(u.onclick=mo)}switch(k){case"button":case"input":case"select":case"textarea":P=!!P.autoFocus;break e;case"img":P=!0;break e;default:P=!1}}P&&(m.flags|=4)}m.ref!==null&&(m.flags|=512,m.flags|=2097152)}return Li(m),null;case 6:if(u&&m.stateNode!=null)S1(u,m,u.memoizedProps,P);else{if(typeof P!="string"&&m.stateNode===null)throw Error(n(166));if(k=nu(Cc.current),nu(ps.current),Io(m)){if(P=m.stateNode,k=m.memoizedProps,P[ii]=m,(W=P.nodeValue!==k)&&(u=Po)!==null)switch(u.tag){case 3:ls(P.nodeValue,k,(1&u.mode)!=0);break;case 5:u.memoizedProps.suppressHydrationWarning!==!0&&ls(P.nodeValue,k,(1&u.mode)!=0)}W&&(m.flags|=4)}else(P=(k.nodeType===9?k:k.ownerDocument).createTextNode(P))[ii]=m,m.stateNode=P}return Li(m),null;case 13:if(_r(Tr),P=m.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(Sr&&Lo!==null&&1&m.mode&&!(128&m.flags))Hg(),Vd(),m.flags|=98560,W=!1;else if(W=Io(m),P!==null&&P.dehydrated!==null){if(u===null){if(!W)throw Error(n(318));if(!(W=(W=m.memoizedState)!==null?W.dehydrated:null))throw Error(n(317));W[ii]=m}else Vd(),!(128&m.flags)&&(m.memoizedState=null),m.flags|=4;Li(m),W=!1}else aa!==null&&(ys(aa),aa=null),W=!0;if(!W)return 65536&m.flags?m:null}return 128&m.flags?(m.lanes=k,m):((P=P!==null)!=(u!==null&&u.memoizedState!==null)&&P&&(m.child.flags|=8192,1&m.mode&&(u===null||1&Tr.current?ti===0&&(ti=3):s0())),m.updateQueue!==null&&(m.flags|=4),Li(m),null);case 4:return ru(),_1(u,m),u===null&&an(m.stateNode.containerInfo),Li(m),null;case 10:return sa(m.type._context),Li(m),null;case 19:if(_r(Tr),(W=m.memoizedState)===null)return Li(m),null;if(P=(128&m.flags)!=0,(J=W.rendering)===null)if(P)n0(W,!1);else{if(ti!==0||u!==null&&128&u.flags)for(u=m.child;u!==null;){if((J=qh(u))!==null){for(m.flags|=128,n0(W,!1),(P=J.updateQueue)!==null&&(m.updateQueue=P,m.flags|=4),m.subtreeFlags=0,P=k,k=m.child;k!==null;)u=P,(W=k).flags&=14680066,(J=W.alternate)===null?(W.childLanes=0,W.lanes=u,W.child=null,W.subtreeFlags=0,W.memoizedProps=null,W.memoizedState=null,W.updateQueue=null,W.dependencies=null,W.stateNode=null):(W.childLanes=J.childLanes,W.lanes=J.lanes,W.child=J.child,W.subtreeFlags=0,W.deletions=null,W.memoizedProps=J.memoizedProps,W.memoizedState=J.memoizedState,W.updateQueue=J.updateQueue,W.type=J.type,u=J.dependencies,W.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),k=k.sibling;return pr(Tr,1&Tr.current|2),m.child}u=u.sibling}W.tail!==null&&Cn()>hf&&(m.flags|=128,P=!0,n0(W,!1),m.lanes=4194304)}else{if(!P)if((u=qh(J))!==null){if(m.flags|=128,P=!0,(k=u.updateQueue)!==null&&(m.updateQueue=k,m.flags|=4),n0(W,!0),W.tail===null&&W.tailMode==="hidden"&&!J.alternate&&!Sr)return Li(m),null}else 2*Cn()-W.renderingStartTime>hf&&k!==1073741824&&(m.flags|=128,P=!0,n0(W,!1),m.lanes=4194304);W.isBackwards?(J.sibling=m.child,m.child=J):((k=W.last)!==null?k.sibling=J:m.child=J,W.last=J)}return W.tail!==null?(m=W.tail,W.rendering=m,W.tail=m.sibling,W.renderingStartTime=Cn(),m.sibling=null,k=Tr.current,pr(Tr,P?1&k|2:1&k),m):(Li(m),null);case 22:case 23:return T1(),P=m.memoizedState!==null,u!==null&&u.memoizedState!==null!==P&&(m.flags|=8192),P&&1&m.mode?1073741824&Bo&&(Li(m),6&m.subtreeFlags&&(m.flags|=8192)):Li(m),null;case 24:case 25:return null}throw Error(n(156,m.tag))}function p7(u,m){switch(n1(m),m.tag){case 1:return xo(m.type)&&Xr(),65536&(u=m.flags)?(m.flags=-65537&u|128,m):null;case 3:return ru(),_r(Gi),_r(hi),d1(),65536&(u=m.flags)&&!(128&u)?(m.flags=-65537&u|128,m):null;case 5:return Kh(m),null;case 13:if(_r(Tr),(u=m.memoizedState)!==null&&u.dehydrated!==null){if(m.alternate===null)throw Error(n(340));Vd()}return 65536&(u=m.flags)?(m.flags=-65537&u|128,m):null;case 19:return _r(Tr),null;case 4:return ru(),null;case 10:return sa(m.type._context),null;case 22:case 23:return T1(),null;default:return null}}t0=function(u,m){for(var k=m.child;k!==null;){if(k.tag===5||k.tag===6)u.appendChild(k.stateNode);else if(k.tag!==4&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===m)break;for(;k.sibling===null;){if(k.return===null||k.return===m)return;k=k.return}k.sibling.return=k.return,k=k.sibling}},_1=function(){},l3=function(u,m,k,P){var U=u.memoizedProps;if(U!==P){u=m.stateNode,nu(ps.current);var W,J=null;switch(k){case"input":U=we(u,U),P=we(u,P),J=[];break;case"select":U=R({},U,{value:void 0}),P=R({},P,{value:void 0}),J=[];break;case"textarea":U=Ce(u,U),P=Ce(u,P),J=[];break;default:typeof U.onClick!="function"&&typeof P.onClick=="function"&&(u.onclick=mo)}for(Pe in at(k,P),k=null,U)if(!P.hasOwnProperty(Pe)&&U.hasOwnProperty(Pe)&&U[Pe]!=null)if(Pe==="style"){var be=U[Pe];for(W in be)be.hasOwnProperty(W)&&(k||(k={}),k[W]="")}else Pe!=="dangerouslySetInnerHTML"&&Pe!=="children"&&Pe!=="suppressContentEditableWarning"&&Pe!=="suppressHydrationWarning"&&Pe!=="autoFocus"&&(o.hasOwnProperty(Pe)?J||(J=[]):(J=J||[]).push(Pe,null));for(Pe in P){var ke=P[Pe];if(be=U!=null?U[Pe]:void 0,P.hasOwnProperty(Pe)&&ke!==be&&(ke!=null||be!=null))if(Pe==="style")if(be){for(W in be)!be.hasOwnProperty(W)||ke&&ke.hasOwnProperty(W)||(k||(k={}),k[W]="");for(W in ke)ke.hasOwnProperty(W)&&be[W]!==ke[W]&&(k||(k={}),k[W]=ke[W])}else k||(J||(J=[]),J.push(Pe,k)),k=ke;else Pe==="dangerouslySetInnerHTML"?(ke=ke?ke.__html:void 0,be=be?be.__html:void 0,ke!=null&&be!==ke&&(J=J||[]).push(Pe,ke)):Pe==="children"?typeof ke!="string"&&typeof ke!="number"||(J=J||[]).push(Pe,""+ke):Pe!=="suppressContentEditableWarning"&&Pe!=="suppressHydrationWarning"&&(o.hasOwnProperty(Pe)?(ke!=null&&Pe==="onScroll"&&hr("scroll",u),J||be===ke||(J=[])):(J=J||[]).push(Pe,ke))}k&&(J=J||[]).push("style",k);var Pe=J;(m.updateQueue=Pe)&&(m.flags|=4)}},S1=function(u,m,k,P){k!==P&&(m.flags|=4)};var k1=!1,Ii=!1,f3=typeof WeakSet=="function"?WeakSet:Set,zt=null;function gs(u,m){var k=u.ref;if(k!==null)if(typeof k=="function")try{k(null)}catch(P){Or(u,m,P)}else k.current=null}function h3(u,m,k){try{k()}catch(P){Or(u,m,P)}}var a2=!1;function lf(u,m,k){var P=m.updateQueue;if((P=P!==null?P.lastEffect:null)!==null){var U=P=P.next;do{if((U.tag&u)===u){var W=U.destroy;U.destroy=void 0,W!==void 0&&h3(m,k,W)}U=U.next}while(U!==P)}}function r0(u,m){if((m=(m=m.updateQueue)!==null?m.lastEffect:null)!==null){var k=m=m.next;do{if((k.tag&u)===u){var P=k.create;k.destroy=P()}k=k.next}while(k!==m)}}function M1(u){var m=u.ref;if(m!==null){var k=u.stateNode;u.tag,u=k,typeof m=="function"?m(u):m.current=u}}function s2(u){var m=u.alternate;m!==null&&(u.alternate=null,s2(m)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(m=u.stateNode)!==null&&(delete m[ii],delete m[wl],delete m[Lh],delete m[Ih],delete m[qd]),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function u2(u){return u.tag===5||u.tag===3||u.tag===4}function l2(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||u2(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(2&u.flags||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(2&u.flags))return u.stateNode}}function Cl(u,m,k){var P=u.tag;if(P===5||P===6)u=u.stateNode,m?k.nodeType===8?k.parentNode.insertBefore(u,m):k.insertBefore(u,m):(k.nodeType===8?(m=k.parentNode).insertBefore(u,k):(m=k).appendChild(u),(k=k._reactRootContainer)!=null||m.onclick!==null||(m.onclick=mo));else if(P!==4&&(u=u.child)!==null)for(Cl(u,m,k),u=u.sibling;u!==null;)Cl(u,m,k),u=u.sibling}function c2(u,m,k){var P=u.tag;if(P===5||P===6)u=u.stateNode,m?k.insertBefore(u,m):k.appendChild(u);else if(P!==4&&(u=u.child)!==null)for(c2(u,m,k),u=u.sibling;u!==null;)c2(u,m,k),u=u.sibling}var Qi=null,vs=!1;function xl(u,m,k){for(k=k.child;k!==null;)d2(u,m,k),k=k.sibling}function d2(u,m,k){if(Bn&&typeof Bn.onCommitFiberUnmount=="function")try{Bn.onCommitFiberUnmount(lr,k)}catch{}switch(k.tag){case 5:Ii||gs(k,m);case 6:var P=Qi,U=vs;Qi=null,xl(u,m,k),vs=U,(Qi=P)!==null&&(vs?(u=Qi,k=k.stateNode,u.nodeType===8?u.parentNode.removeChild(k):u.removeChild(k)):Qi.removeChild(k.stateNode));break;case 18:Qi!==null&&(vs?(u=Qi,k=k.stateNode,u.nodeType===8?Jp(u.parentNode,k):u.nodeType===1&&Jp(u,k),Ld(u)):Jp(Qi,k.stateNode));break;case 4:P=Qi,U=vs,Qi=k.stateNode.containerInfo,vs=!0,xl(u,m,k),Qi=P,vs=U;break;case 0:case 11:case 14:case 15:if(!Ii&&(P=k.updateQueue)!==null&&(P=P.lastEffect)!==null){U=P=P.next;do{var W=U,J=W.destroy;W=W.tag,J!==void 0&&(2&W||4&W)&&h3(k,m,J),U=U.next}while(U!==P)}xl(u,m,k);break;case 1:if(!Ii&&(gs(k,m),typeof(P=k.stateNode).componentWillUnmount=="function"))try{P.props=k.memoizedProps,P.state=k.memoizedState,P.componentWillUnmount()}catch(be){Or(k,m,be)}xl(u,m,k);break;case 21:xl(u,m,k);break;case 22:1&k.mode?(Ii=(P=Ii)||k.memoizedState!==null,xl(u,m,k),Ii=P):xl(u,m,k);break;default:xl(u,m,k)}}function f2(u){var m=u.updateQueue;if(m!==null){u.updateQueue=null;var k=u.stateNode;k===null&&(k=u.stateNode=new f3),m.forEach(function(P){var U=b3.bind(null,u,P);k.has(P)||(k.add(P),P.then(U,U))})}}function Do(u,m){var k=m.deletions;if(k!==null)for(var P=0;P<k.length;P++){var U=k[P];try{var W=u,J=m,be=J;e:for(;be!==null;){switch(be.tag){case 5:Qi=be.stateNode,vs=!1;break e;case 3:case 4:Qi=be.stateNode.containerInfo,vs=!0;break e}be=be.return}if(Qi===null)throw Error(n(160));d2(W,J,U),Qi=null,vs=!1;var ke=U.alternate;ke!==null&&(ke.return=null),U.return=null}catch(Pe){Or(U,m,Pe)}}if(12854&m.subtreeFlags)for(m=m.child;m!==null;)cf(m,u),m=m.sibling}function cf(u,m){var k=u.alternate,P=u.flags;switch(u.tag){case 0:case 11:case 14:case 15:if(Do(m,u),fu(u),4&P){try{lf(3,u,u.return),r0(3,u)}catch(yt){Or(u,u.return,yt)}try{lf(5,u,u.return)}catch(yt){Or(u,u.return,yt)}}break;case 1:Do(m,u),fu(u),512&P&&k!==null&&gs(k,k.return);break;case 5:if(Do(m,u),fu(u),512&P&&k!==null&&gs(k,k.return),32&u.flags){var U=u.stateNode;try{ct(U,"")}catch(yt){Or(u,u.return,yt)}}if(4&P&&(U=u.stateNode)!=null){var W=u.memoizedProps,J=k!==null?k.memoizedProps:W,be=u.type,ke=u.updateQueue;if(u.updateQueue=null,ke!==null)try{be==="input"&&W.type==="radio"&&W.name!=null&&ie(U,W),Ct(be,J);var Pe=Ct(be,W);for(J=0;J<ke.length;J+=2){var Be=ke[J],$e=ke[J+1];Be==="style"?xt(U,$e):Be==="dangerouslySetInnerHTML"?mt(U,$e):Be==="children"?ct(U,$e):V(U,Be,$e,Pe)}switch(be){case"input":oe(U,W);break;case"textarea":tt(U,W);break;case"select":var Ke=U._wrapperState.wasMultiple;U._wrapperState.wasMultiple=!!W.multiple;var Ye=W.value;Ye!=null?De(U,!!W.multiple,Ye,!1):Ke!==!!W.multiple&&(W.defaultValue!=null?De(U,!!W.multiple,W.defaultValue,!0):De(U,!!W.multiple,W.multiple?[]:"",!1))}U[wl]=W}catch(yt){Or(u,u.return,yt)}}break;case 6:if(Do(m,u),fu(u),4&P){if(u.stateNode===null)throw Error(n(162));U=u.stateNode,W=u.memoizedProps;try{U.nodeValue=W}catch(yt){Or(u,u.return,yt)}}break;case 3:if(Do(m,u),fu(u),4&P&&k!==null&&k.memoizedState.isDehydrated)try{Ld(m.containerInfo)}catch(yt){Or(u,u.return,yt)}break;case 4:default:Do(m,u),fu(u);break;case 13:Do(m,u),fu(u),8192&(U=u.child).flags&&(W=U.memoizedState!==null,U.stateNode.isHidden=W,!W||U.alternate!==null&&U.alternate.memoizedState!==null||(b2=Cn())),4&P&&f2(u);break;case 22:if(Be=k!==null&&k.memoizedState!==null,1&u.mode?(Ii=(Pe=Ii)||Be,Do(m,u),Ii=Pe):Do(m,u),fu(u),8192&P){if(Pe=u.memoizedState!==null,(u.stateNode.isHidden=Pe)&&!Be&&(1&u.mode)!=0)for(zt=u,Be=u.child;Be!==null;){for($e=zt=Be;zt!==null;){switch(Ye=(Ke=zt).child,Ke.tag){case 0:case 11:case 14:case 15:lf(4,Ke,Ke.return);break;case 1:gs(Ke,Ke.return);var dt=Ke.stateNode;if(typeof dt.componentWillUnmount=="function"){P=Ke,k=Ke.return;try{m=P,dt.props=m.memoizedProps,dt.state=m.memoizedState,dt.componentWillUnmount()}catch(yt){Or(P,k,yt)}}break;case 5:gs(Ke,Ke.return);break;case 22:if(Ke.memoizedState!==null){p2($e);continue}}Ye!==null?(Ye.return=Ke,zt=Ye):p2($e)}Be=Be.sibling}e:for(Be=null,$e=u;;){if($e.tag===5){if(Be===null){Be=$e;try{U=$e.stateNode,Pe?typeof(W=U.style).setProperty=="function"?W.setProperty("display","none","important"):W.display="none":(be=$e.stateNode,J=(ke=$e.memoizedProps.style)!=null&&ke.hasOwnProperty("display")?ke.display:null,be.style.display=ut("display",J))}catch(yt){Or(u,u.return,yt)}}}else if($e.tag===6){if(Be===null)try{$e.stateNode.nodeValue=Pe?"":$e.memoizedProps}catch(yt){Or(u,u.return,yt)}}else if(($e.tag!==22&&$e.tag!==23||$e.memoizedState===null||$e===u)&&$e.child!==null){$e.child.return=$e,$e=$e.child;continue}if($e===u)break e;for(;$e.sibling===null;){if($e.return===null||$e.return===u)break e;Be===$e&&(Be=null),$e=$e.return}Be===$e&&(Be=null),$e.sibling.return=$e.return,$e=$e.sibling}}break;case 19:Do(m,u),fu(u),4&P&&f2(u);case 21:}}function fu(u){var m=u.flags;if(2&m){try{e:{for(var k=u.return;k!==null;){if(u2(k)){var P=k;break e}k=k.return}throw Error(n(160))}switch(P.tag){case 5:var U=P.stateNode;32&P.flags&&(ct(U,""),P.flags&=-33),c2(u,l2(u),U);break;case 3:case 4:var W=P.stateNode.containerInfo;Cl(u,l2(u),W);break;default:throw Error(n(161))}}catch(J){Or(u,u.return,J)}u.flags&=-3}4096&m&&(u.flags&=-4097)}function C1(u,m,k){zt=u,p3(u)}function p3(u,m,k){for(var P=(1&u.mode)!=0;zt!==null;){var U=zt,W=U.child;if(U.tag===22&&P){var J=U.memoizedState!==null||k1;if(!J){var be=U.alternate,ke=be!==null&&be.memoizedState!==null||Ii;be=k1;var Pe=Ii;if(k1=J,(Ii=ke)&&!Pe)for(zt=U;zt!==null;)ke=(J=zt).child,J.tag===22&&J.memoizedState!==null?m2(U):ke!==null?(ke.return=J,zt=ke):m2(U);for(;W!==null;)zt=W,p3(W),W=W.sibling;zt=U,k1=be,Ii=Pe}h2(u)}else 8772&U.subtreeFlags&&W!==null?(W.return=U,zt=W):h2(u)}}function h2(u){for(;zt!==null;){var m=zt;if(8772&m.flags){var k=m.alternate;try{if(8772&m.flags)switch(m.tag){case 0:case 11:case 15:Ii||r0(5,m);break;case 1:var P=m.stateNode;if(4&m.flags&&!Ii)if(k===null)P.componentDidMount();else{var U=m.elementType===m.type?k.memoizedProps:st(m.type,k.memoizedProps);P.componentDidUpdate(U,k.memoizedState,P.__reactInternalSnapshotBeforeUpdate)}var W=m.updateQueue;W!==null&&s1(m,W,P);break;case 3:var J=m.updateQueue;if(J!==null){if(k=null,m.child!==null)switch(m.child.tag){case 5:case 1:k=m.child.stateNode}s1(m,J,k)}break;case 5:var be=m.stateNode;if(k===null&&4&m.flags){k=be;var ke=m.memoizedProps;switch(m.type){case"button":case"input":case"select":case"textarea":ke.autoFocus&&k.focus();break;case"img":ke.src&&(k.src=ke.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(m.memoizedState===null){var Pe=m.alternate;if(Pe!==null){var Be=Pe.memoizedState;if(Be!==null){var $e=Be.dehydrated;$e!==null&&Ld($e)}}}break;default:throw Error(n(163))}Ii||512&m.flags&&M1(m)}catch(Ke){Or(m,m.return,Ke)}}if(m===u){zt=null;break}if((k=m.sibling)!==null){k.return=m.return,zt=k;break}zt=m.return}}function p2(u){for(;zt!==null;){var m=zt;if(m===u){zt=null;break}var k=m.sibling;if(k!==null){k.return=m.return,zt=k;break}zt=m.return}}function m2(u){for(;zt!==null;){var m=zt;try{switch(m.tag){case 0:case 11:case 15:var k=m.return;try{r0(4,m)}catch(ke){Or(m,k,ke)}break;case 1:var P=m.stateNode;if(typeof P.componentDidMount=="function"){var U=m.return;try{P.componentDidMount()}catch(ke){Or(m,U,ke)}}var W=m.return;try{M1(m)}catch(ke){Or(m,W,ke)}break;case 5:var J=m.return;try{M1(m)}catch(ke){Or(m,J,ke)}}}catch(ke){Or(m,m.return,ke)}if(m===u){zt=null;break}var be=m.sibling;if(be!==null){be.return=m.return,zt=be;break}zt=m.return}}var m3,m7=Math.ceil,x1=ee.ReactCurrentDispatcher,g2=ee.ReactCurrentOwner,ua=ee.ReactCurrentBatchConfig,Vn=0,Jn=null,Pr=null,ai=0,Bo=0,Ic=Xs(0),ti=0,df=null,Al=0,A1=0,v2=0,ff=null,Xi=null,b2=0,hf=1/0,Rl=null,hu=!1,i0=null,la=null,pf=!1,pu=null,Oc=0,bs=0,o0=null,a0=-1,Nc=0;function Oi(){return 6&Vn?Cn():a0!==-1?a0:a0=Cn()}function mu(u){return 1&u.mode?2&Vn&&ai!==0?ai&-ai:$g.transition!==null?(Nc===0&&(Nc=ne()),Nc):(u=ot)!==0?u:u=(u=window.event)===void 0?16:Dy(u.type):1}function ca(u,m,k,P){if(50<bs)throw bs=0,o0=null,Error(n(185));We(u,k,P),2&Vn&&u===Jn||(u===Jn&&(!(2&Vn)&&(A1|=k),ti===4&&Tl(u,ai)),Ji(u,P),k===1&&Vn===0&&!(1&m.mode)&&(hf=Cn()+500,$d&&Ao()))}function Ji(u,m){var k=u.callbackNode;(function(U,W){for(var J=U.suspendedLanes,be=U.pingedLanes,ke=U.expirationTimes,Pe=U.pendingLanes;0<Pe;){var Be=31-Zn(Pe),$e=1<<Be,Ke=ke[Be];Ke===-1?$e&J&&!($e&be)||(ke[Be]=cr($e,W)):Ke<=W&&(U.expiredLanes|=$e),Pe&=~$e}})(u,m);var P=uc(u,u===Jn?ai:0);if(P===0)k!==null&&xr(k),u.callbackNode=null,u.callbackPriority=0;else if(m=P&-P,u.callbackPriority!==m){if(k!=null&&xr(k),m===1)u.tag===0?function(U){$d=!0,Qy(U)}(g3.bind(null,u)):Qy(g3.bind(null,u)),Vi(function(){!(6&Vn)&&Ao()}),k=null;else{switch(nn(P)){case 1:k=wr;break;case 4:k=Br;break;case 16:default:k=Ar;break;case 536870912:k=ur}k=d0(k,y2.bind(null,u))}u.callbackPriority=m,u.callbackNode=k}}function y2(u,m){if(a0=-1,Nc=0,(6&Vn)!=0)throw Error(n(327));var k=u.callbackNode;if(vu()&&u.callbackNode!==k)return null;var P=uc(u,u===Jn?ai:0);if(P===0)return null;if(30&P||P&u.expiredLanes||m)m=jc(u,P);else{m=P;var U=Vn;Vn|=2;var W=gr();for(Jn===u&&ai===m||(Rl=null,hf=Cn()+500,Bc(u,m));;)try{v3();break}catch(be){w2(u,be)}eu(),x1.current=W,Vn=U,Pr!==null?m=0:(Jn=null,ai=0,m=ti)}if(m!==0){if(m===2&&(U=Td(u))!==0&&(P=U,m=R1(u,U)),m===1)throw k=df,Bc(u,0),Tl(u,P),Ji(u,Cn()),k;if(m===6)Tl(u,P);else{if(U=u.current.alternate,(30&P)==0&&!function(be){for(var ke=be;;){if(16384&ke.flags){var Pe=ke.updateQueue;if(Pe!==null&&(Pe=Pe.stores)!==null)for(var Be=0;Be<Pe.length;Be++){var $e=Pe[Be],Ke=$e.getSnapshot;$e=$e.value;try{if(!ka(Ke(),$e))return!1}catch{return!1}}}if(Pe=ke.child,16384&ke.subtreeFlags&&Pe!==null)Pe.return=ke,ke=Pe;else{if(ke===be)break;for(;ke.sibling===null;){if(ke.return===null||ke.return===be)return!0;ke=ke.return}ke.sibling.return=ke.return,ke=ke.sibling}}return!0}(U)&&((m=jc(u,P))===2&&(W=Td(u))!==0&&(P=W,m=R1(u,W)),m===1))throw k=df,Bc(u,0),Tl(u,P),Ji(u,Cn()),k;switch(u.finishedWork=U,u.finishedLanes=P,m){case 0:case 1:throw Error(n(345));case 2:case 5:ws(u,Xi,Rl);break;case 3:if(Tl(u,P),(130023424&P)===P&&10<(m=b2+500-Cn())){if(uc(u,0)!==0)break;if(((U=u.suspendedLanes)&P)!==P){Oi(),u.pingedLanes|=u.suspendedLanes&U;break}u.timeoutHandle=Fg(ws.bind(null,u,Xi,Rl),m);break}ws(u,Xi,Rl);break;case 4:if(Tl(u,P),(4194240&P)===P)break;for(m=u.eventTimes,U=-1;0<P;){var J=31-Zn(P);W=1<<J,(J=m[J])>U&&(U=J),P&=~W}if(P=U,10<(P=(120>(P=Cn()-P)?120:480>P?480:1080>P?1080:1920>P?1920:3e3>P?3e3:4320>P?4320:1960*m7(P/1960))-P)){u.timeoutHandle=Fg(ws.bind(null,u,Xi,Rl),P);break}ws(u,Xi,Rl);break;default:throw Error(n(329))}}}return Ji(u,Cn()),u.callbackNode===k?y2.bind(null,u):null}function R1(u,m){var k=ff;return u.current.memoizedState.isDehydrated&&(Bc(u,m).flags|=256),(u=jc(u,m))!==2&&(m=Xi,Xi=k,m!==null&&ys(m)),u}function ys(u){Xi===null?Xi=u:Xi.push.apply(Xi,u)}function Tl(u,m){for(m&=~v2,m&=~A1,u.suspendedLanes|=m,u.pingedLanes&=~m,u=u.expirationTimes;0<m;){var k=31-Zn(m),P=1<<k;u[k]=-1,m&=~P}}function g3(u){if(6&Vn)throw Error(n(327));vu();var m=uc(u,0);if(!(1&m))return Ji(u,Cn()),null;var k=jc(u,m);if(u.tag!==0&&k===2){var P=Td(u);P!==0&&(m=P,k=R1(u,P))}if(k===1)throw k=df,Bc(u,0),Tl(u,m),Ji(u,Cn()),k;if(k===6)throw Error(n(345));return u.finishedWork=u.current.alternate,u.finishedLanes=m,ws(u,Xi,Rl),Ji(u,Cn()),null}function Dc(u,m){var k=Vn;Vn|=1;try{return u(m)}finally{(Vn=k)===0&&(hf=Cn()+500,$d&&Ao())}}function gu(u){pu!==null&&pu.tag===0&&!(6&Vn)&&vu();var m=Vn;Vn|=1;var k=ua.transition,P=ot;try{if(ua.transition=null,ot=1,u)return u()}finally{ot=P,ua.transition=k,!(6&(Vn=m))&&Ao()}}function T1(){Bo=Ic.current,_r(Ic)}function Bc(u,m){u.finishedWork=null,u.finishedLanes=0;var k=u.timeoutHandle;if(k!==-1&&(u.timeoutHandle=-1,f7(k)),Pr!==null)for(k=Pr.return;k!==null;){var P=k;switch(n1(P),P.tag){case 1:(P=P.type.childContextTypes)!=null&&Xr();break;case 3:ru(),_r(Gi),_r(hi),d1();break;case 5:Kh(P);break;case 4:ru();break;case 13:case 19:_r(Tr);break;case 10:sa(P.type._context);break;case 22:case 23:T1()}k=k.return}if(Jn=u,Pr=u=da(u.current,null),ai=Bo=m,ti=0,df=null,v2=A1=Al=0,Xi=ff=null,tu!==null){for(m=0;m<tu.length;m++)if((P=(k=tu[m]).interleaved)!==null){k.interleaved=null;var U=P.next,W=k.pending;if(W!==null){var J=W.next;W.next=U,P.next=J}k.pending=P}tu=null}return u}function w2(u,m){for(;;){var k=Pr;try{if(eu(),Hh.current=Ml,ou){for(var P=or.memoizedState;P!==null;){var U=P.queue;U!==null&&(U.pending=null),P=P.next}ou=!1}if(Ia=0,Xn=Jr=or=null,yn=!1,kl=0,g2.current=null,k===null||k.return===null){ti=1,df=m,Pr=null;break}e:{var W=u,J=k.return,be=k,ke=m;if(m=ai,be.flags|=32768,ke!==null&&typeof ke=="object"&&typeof ke.then=="function"){var Pe=ke,Be=be,$e=Be.tag;if(!(1&Be.mode)&&($e===0||$e===11||$e===15)){var Ke=Be.alternate;Ke?(Be.updateQueue=Ke.updateQueue,Be.memoizedState=Ke.memoizedState,Be.lanes=Ke.lanes):(Be.updateQueue=null,Be.memoizedState=null)}var Ye=b1(J);if(Ye!==null){Ye.flags&=-257,Xh(Ye,J,be,0,m),1&Ye.mode&&af(W,Pe,m),ke=Pe;var dt=(m=Ye).updateQueue;if(dt===null){var yt=new Set;yt.add(ke),m.updateQueue=yt}else dt.add(ke);break e}if(!(1&m)){af(W,Pe,m),s0();break e}ke=Error(n(426))}else if(Sr&&1&be.mode){var qe=b1(J);if(qe!==null){!(65536&qe.flags)&&(qe.flags|=256),Xh(qe,J,be,0,m),Wg(of(ke,be));break e}}W=ke=of(ke,be),ti!==4&&(ti=2),ff===null?ff=[W]:ff.push(W),W=J;do{switch(W.tag){case 3:W.flags|=65536,m&=-m,W.lanes|=m,a1(W,v1(0,ke,m));break e;case 1:be=ke;var Ae=W.type,Ue=W.stateNode;if(!(128&W.flags)&&(typeof Ae.getDerivedStateFromError=="function"||Ue!==null&&typeof Ue.componentDidCatch=="function"&&(la===null||!la.has(Ue)))){W.flags|=65536,m&=-m,W.lanes|=m,a1(W,Jg(W,be,m));break e}}W=W.return}while(W!==null)}P1(k)}catch(et){m=et,Pr===k&&k!==null&&(Pr=k=k.return);continue}break}}function gr(){var u=x1.current;return x1.current=Ml,u===null?Ml:u}function s0(){ti!==0&&ti!==3&&ti!==2||(ti=4),Jn===null||!(268435455&Al)&&!(268435455&A1)||Tl(Jn,ai)}function jc(u,m){var k=Vn;Vn|=2;var P=gr();for(Jn===u&&ai===m||(Rl=null,Bc(u,m));;)try{u0();break}catch(U){w2(u,U)}if(eu(),Vn=k,x1.current=P,Pr!==null)throw Error(n(261));return Jn=null,ai=0,ti}function u0(){for(;Pr!==null;)_2(Pr)}function v3(){for(;Pr!==null&&!yr();)_2(Pr)}function _2(u){var m=m3(u.alternate,u,Bo);u.memoizedProps=u.pendingProps,m===null?P1(u):Pr=m,g2.current=null}function P1(u){var m=u;do{var k=m.alternate;if(u=m.return,(32768&m.flags)==0){if((k=h7(k,m,Bo))!==null)return void(Pr=k)}else{if((k=p7(k,m))!==null)return k.flags&=32767,void(Pr=k);if(u===null)return ti=6,void(Pr=null);u.flags|=32768,u.subtreeFlags=0,u.deletions=null}if((m=m.sibling)!==null)return void(Pr=m);Pr=m=u}while(m!==null);ti===0&&(ti=5)}function ws(u,m,k){var P=ot,U=ua.transition;try{ua.transition=null,ot=1,function(W,J,be,ke){do vu();while(pu!==null);if(6&Vn)throw Error(n(327));be=W.finishedWork;var Pe=W.finishedLanes;if(be===null)return null;if(W.finishedWork=null,W.finishedLanes=0,be===W.current)throw Error(n(177));W.callbackNode=null,W.callbackPriority=0;var Be=be.lanes|be.childLanes;if(function(Ye,dt){var yt=Ye.pendingLanes&~dt;Ye.pendingLanes=dt,Ye.suspendedLanes=0,Ye.pingedLanes=0,Ye.expiredLanes&=dt,Ye.mutableReadLanes&=dt,Ye.entangledLanes&=dt,dt=Ye.entanglements;var qe=Ye.eventTimes;for(Ye=Ye.expirationTimes;0<yt;){var Ae=31-Zn(yt),Ue=1<<Ae;dt[Ae]=0,qe[Ae]=-1,Ye[Ae]=-1,yt&=~Ue}}(W,Be),W===Jn&&(Pr=Jn=null,ai=0),!(2064&be.subtreeFlags)&&!(2064&be.flags)||pf||(pf=!0,d0(Ar,function(){return vu(),null})),Be=(15990&be.flags)!=0,(15990&be.subtreeFlags)!=0||Be){Be=ua.transition,ua.transition=null;var $e=ot;ot=1;var Ke=Vn;Vn|=4,g2.current=null,function(Ye,dt){if(Ma=Od,Og(Ye=jd())){if("selectionStart"in Ye)var yt={start:Ye.selectionStart,end:Ye.selectionEnd};else e:{var qe=(yt=(yt=Ye.ownerDocument)&&yt.defaultView||window).getSelection&&yt.getSelection();if(qe&&qe.rangeCount!==0){yt=qe.anchorNode;var Ae=qe.anchorOffset,Ue=qe.focusNode;qe=qe.focusOffset;try{yt.nodeType,Ue.nodeType}catch{yt=null;break e}var et=0,Nt=-1,Mn=-1,Ot=0,kn=0,wn=Ye,_n=null;t:for(;;){for(var Yn;wn!==yt||Ae!==0&&wn.nodeType!==3||(Nt=et+Ae),wn!==Ue||qe!==0&&wn.nodeType!==3||(Mn=et+qe),wn.nodeType===3&&(et+=wn.nodeValue.length),(Yn=wn.firstChild)!==null;)_n=wn,wn=Yn;for(;;){if(wn===Ye)break t;if(_n===yt&&++Ot===Ae&&(Nt=et),_n===Ue&&++kn===qe&&(Mn=et),(Yn=wn.nextSibling)!==null)break;_n=(wn=_n).parentNode}wn=Yn}yt=Nt===-1||Mn===-1?null:{start:Nt,end:Mn}}else yt=null}yt=yt||{start:0,end:0}}else yt=null;for(Qs={focusedElem:Ye,selectionRange:yt},Od=!1,zt=dt;zt!==null;)if(Ye=(dt=zt).child,(1028&dt.subtreeFlags)!=0&&Ye!==null)Ye.return=dt,zt=Ye;else for(;zt!==null;){dt=zt;try{var Kc=dt.alternate;if(1024&dt.flags)switch(dt.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(Kc!==null){var N1=Kc.memoizedProps,D1=Kc.memoizedState,bf=dt.stateNode,v7=bf.getSnapshotBeforeUpdate(dt.elementType===dt.type?N1:st(dt.type,N1),D1);bf.__reactInternalSnapshotBeforeUpdate=v7}break;case 3:var qc=dt.stateNode.containerInfo;qc.nodeType===1?qc.textContent="":qc.nodeType===9&&qc.documentElement&&qc.removeChild(qc.documentElement);break;default:throw Error(n(163))}}catch(Hc){Or(dt,dt.return,Hc)}if((Ye=dt.sibling)!==null){Ye.return=dt.return,zt=Ye;break}zt=dt.return}Kc=a2,a2=!1}(W,be),cf(be,W),Rh(Qs),Od=!!Ma,Qs=Ma=null,W.current=be,C1(be),Kr(),Vn=Ke,ot=$e,ua.transition=Be}else W.current=be;if(pf&&(pf=!1,pu=W,Oc=Pe),Be=W.pendingLanes,Be===0&&(la=null),function(Ye){if(Bn&&typeof Bn.onCommitFiberRoot=="function")try{Bn.onCommitFiberRoot(lr,Ye,void 0,(128&Ye.current.flags)==128)}catch{}}(be.stateNode),Ji(W,Cn()),J!==null)for(ke=W.onRecoverableError,be=0;be<J.length;be++)Pe=J[be],ke(Pe.value,{componentStack:Pe.stack,digest:Pe.digest});if(hu)throw hu=!1,W=i0,i0=null,W;1&Oc&&W.tag!==0&&vu(),Be=W.pendingLanes,1&Be?W===o0?bs++:(bs=0,o0=W):bs=0,Ao()}(u,m,k,P)}finally{ua.transition=U,ot=P}return null}function vu(){if(pu!==null){var u=nn(Oc),m=ua.transition,k=ot;try{if(ua.transition=null,ot=16>u?16:u,pu===null)var P=!1;else{if(u=pu,pu=null,Oc=0,(6&Vn)!=0)throw Error(n(331));var U=Vn;for(Vn|=4,zt=u.current;zt!==null;){var W=zt,J=W.child;if(16&zt.flags){var be=W.deletions;if(be!==null){for(var ke=0;ke<be.length;ke++){var Pe=be[ke];for(zt=Pe;zt!==null;){var Be=zt;switch(Be.tag){case 0:case 11:case 15:lf(8,Be,W)}var $e=Be.child;if($e!==null)$e.return=Be,zt=$e;else for(;zt!==null;){var Ke=(Be=zt).sibling,Ye=Be.return;if(s2(Be),Be===Pe){zt=null;break}if(Ke!==null){Ke.return=Ye,zt=Ke;break}zt=Ye}}}var dt=W.alternate;if(dt!==null){var yt=dt.child;if(yt!==null){dt.child=null;do{var qe=yt.sibling;yt.sibling=null,yt=qe}while(yt!==null)}}zt=W}}if(2064&W.subtreeFlags&&J!==null)J.return=W,zt=J;else e:for(;zt!==null;){if(2048&(W=zt).flags)switch(W.tag){case 0:case 11:case 15:lf(9,W,W.return)}var Ae=W.sibling;if(Ae!==null){Ae.return=W.return,zt=Ae;break e}zt=W.return}}var Ue=u.current;for(zt=Ue;zt!==null;){var et=(J=zt).child;if(2064&J.subtreeFlags&&et!==null)et.return=J,zt=et;else e:for(J=Ue;zt!==null;){if(2048&(be=zt).flags)try{switch(be.tag){case 0:case 11:case 15:r0(9,be)}}catch(Mn){Or(be,be.return,Mn)}if(be===J){zt=null;break e}var Nt=be.sibling;if(Nt!==null){Nt.return=be.return,zt=Nt;break e}zt=be.return}}if(Vn=U,Ao(),Bn&&typeof Bn.onPostCommitFiberRoot=="function")try{Bn.onPostCommitFiberRoot(lr,u)}catch{}P=!0}return P}finally{ot=k,ua.transition=m}}return!1}function zc(u,m,k){u=fs(u,m=v1(0,m=of(k,m),1),1),m=Oi(),u!==null&&(We(u,1,m),Ji(u,m))}function Or(u,m,k){if(u.tag===3)zc(u,u,k);else for(;m!==null;){if(m.tag===3){zc(m,u,k);break}if(m.tag===1){var P=m.stateNode;if(typeof m.type.getDerivedStateFromError=="function"||typeof P.componentDidCatch=="function"&&(la===null||!la.has(P))){m=fs(m,u=Jg(m,u=of(k,u),1),1),u=Oi(),m!==null&&(We(m,1,u),Ji(m,u));break}}m=m.return}}function S2(u,m,k){var P=u.pingCache;P!==null&&P.delete(m),m=Oi(),u.pingedLanes|=u.suspendedLanes&k,Jn===u&&(ai&k)===k&&(ti===4||ti===3&&(130023424&ai)===ai&&500>Cn()-b2?Bc(u,0):v2|=k),Ji(u,m)}function l0(u,m){m===0&&(1&u.mode?(m=Hi,!(130023424&(Hi<<=1))&&(Hi=4194304)):m=1);var k=Oi();(u=Pa(u,m))!==null&&(We(u,m,k),Ji(u,k))}function c0(u){var m=u.memoizedState,k=0;m!==null&&(k=m.retryLane),l0(u,k)}function b3(u,m){var k=0;switch(u.tag){case 13:var P=u.stateNode,U=u.memoizedState;U!==null&&(k=U.retryLane);break;case 19:P=u.stateNode;break;default:throw Error(n(314))}P!==null&&P.delete(m),l0(u,k)}function d0(u,m){return Dr(u,m)}function y3(u,m,k,P){this.tag=u,this.key=k,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=m,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=P,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jo(u,m,k,P){return new y3(u,m,k,P)}function Ni(u){return!(!(u=u.prototype)||!u.isReactComponent)}function da(u,m){var k=u.alternate;return k===null?((k=jo(u.tag,m,u.key,u.mode)).elementType=u.elementType,k.type=u.type,k.stateNode=u.stateNode,k.alternate=u,u.alternate=k):(k.pendingProps=m,k.type=u.type,k.flags=0,k.subtreeFlags=0,k.deletions=null),k.flags=14680064&u.flags,k.childLanes=u.childLanes,k.lanes=u.lanes,k.child=u.child,k.memoizedProps=u.memoizedProps,k.memoizedState=u.memoizedState,k.updateQueue=u.updateQueue,m=u.dependencies,k.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},k.sibling=u.sibling,k.index=u.index,k.ref=u.ref,k}function Uc(u,m,k,P,U,W){var J=2;if(P=u,typeof u=="function")Ni(u)&&(J=1);else if(typeof u=="string")J=5;else e:switch(u){case le:return bo(k.children,U,W,m);case pe:J=8,U|=8;break;case Me:return(u=jo(12,k,m,2|U)).elementType=Me,u.lanes=W,u;case x:return(u=jo(13,k,m,U)).elementType=x,u.lanes=W,u;case d:return(u=jo(19,k,m,U)).elementType=d,u.lanes=W,u;case f:return f0(k,U,W,m);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case ye:J=10;break e;case Te:J=9;break e;case y:J=11;break e;case p:J=14;break e;case h:J=16,P=null;break e}throw Error(n(130,u==null?u:typeof u,""))}return(m=jo(J,k,m,U)).elementType=u,m.type=P,m.lanes=W,m}function bo(u,m,k,P){return(u=jo(7,u,P,m)).lanes=k,u}function f0(u,m,k,P){return(u=jo(22,u,P,m)).elementType=f,u.lanes=k,u.stateNode={isHidden:!1},u}function bu(u,m,k){return(u=jo(6,u,null,m)).lanes=k,u}function yu(u,m,k){return(m=jo(4,u.children!==null?u.children:[],u.key,m)).lanes=k,m.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},m}function L1(u,m,k,P,U){this.tag=m,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Re(0),this.expirationTimes=Re(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Re(0),this.identifierPrefix=P,this.onRecoverableError=U,this.mutableSourceEagerHydrationData=null}function E2(u,m,k,P,U,W,J,be,ke){return u=new L1(u,m,k,be,ke),m===1?(m=1,W===!0&&(m|=8)):m=0,W=jo(3,null,null,m),u.current=W,W.stateNode=u,W.memoizedState={element:P,isDehydrated:k,cache:null,transitions:null,pendingSuspenseBoundaries:null},jh(W),u}function w3(u){if(!u)return _l;e:{if(St(u=u._reactInternals)!==u||u.tag!==1)throw Error(n(170));var m=u;do{switch(m.tag){case 3:m=m.stateNode.context;break e;case 1:if(xo(m.type)){m=m.stateNode.__reactInternalMemoizedMergedChildContext;break e}}m=m.return}while(m!==null);throw Error(n(171))}if(u.tag===1){var k=u.type;if(xo(k))return Dh(u,k,m)}return m}function h0(u,m,k,P,U,W,J,be,ke){return(u=E2(k,P,!0,u,0,W,0,be,ke)).context=w3(null),k=u.current,(W=La(P=Oi(),U=mu(k))).callback=m??null,fs(k,W,U),u.current.lanes=U,We(u,U,P),Ji(u,P),u}function Fc(u,m,k,P){var U=m.current,W=Oi(),J=mu(U);return k=w3(k),m.context===null?m.context=k:m.pendingContext=k,(m=La(W,J)).payload={element:u},(P=P===void 0?null:P)!==null&&(m.callback=P),(u=fs(U,m,J))!==null&&(ca(u,U,J,W),Yd(u,U,J)),J}function p0(u){return(u=u.current).child?(u.child.tag,u.child.stateNode):null}function _3(u,m){if((u=u.memoizedState)!==null&&u.dehydrated!==null){var k=u.retryLane;u.retryLane=k!==0&&k<m?k:m}}function mf(u,m){_3(u,m),(u=u.alternate)&&_3(u,m)}m3=function(u,m,k){if(u!==null)if(u.memoizedProps!==m.pendingProps||Gi.current)Zi=!0;else{if(!(u.lanes&k)&&!(128&m.flags))return Zi=!1,function($e,Ke,Ye){switch(Ke.tag){case 3:sf(Ke),Vd();break;case 5:Jy(Ke);break;case 1:xo(Ke.type)&&Wd(Ke);break;case 4:xc(Ke,Ke.stateNode.containerInfo);break;case 10:var dt=Ke.type._context,yt=Ke.memoizedProps.value;pr($r,dt._currentValue),dt._currentValue=yt;break;case 13:if((dt=Ke.memoizedState)!==null)return dt.dehydrated!==null?(pr(Tr,1&Tr.current),Ke.flags|=128,null):Ye&Ke.child.childLanes?r2($e,Ke,Ye):(pr(Tr,1&Tr.current),($e=du($e,Ke,Ye))!==null?$e.sibling:null);pr(Tr,1&Tr.current);break;case 19:if(dt=(Ye&Ke.childLanes)!=0,(128&$e.flags)!=0){if(dt)return d3($e,Ke,Ye);Ke.flags|=128}if((yt=Ke.memoizedState)!==null&&(yt.rendering=null,yt.tail=null,yt.lastEffect=null),pr(Tr,Tr.current),dt)break;return null;case 22:case 23:return Ke.lanes=0,y1($e,Ke,Ye)}return du($e,Ke,Ye)}(u,m,k);Zi=(131072&u.flags)!=0}else Zi=!1,Sr&&1048576&m.flags&&Xy(m,go,m.index);switch(m.lanes=0,m.tag){case 2:var P=m.type;uf(u,m),u=m.pendingProps;var U=Hd(m,hi.current);Ta(m,k),U=f1(null,m,P,u,U,k);var W=Wh();return m.flags|=1,typeof U=="object"&&U!==null&&typeof U.render=="function"&&U.$$typeof===void 0?(m.tag=1,m.memoizedState=null,m.updateQueue=null,xo(P)?(W=!0,Wd(m)):W=!1,m.memoizedState=U.state!==null&&U.state!==void 0?U.state:null,jh(m),U.updater=Ec,m.stateNode=U,U._reactInternals=m,Uh(m,P,u,k),m=e0(null,m,P,!0,W,k)):(m.tag=0,Sr&&W&&t1(m),mi(null,m,U,k),m=m.child),m;case 16:P=m.elementType;e:{switch(uf(u,m),u=m.pendingProps,P=(U=P._init)(P._payload),m.type=P,U=m.tag=function($e){if(typeof $e=="function")return Ni($e)?1:0;if($e!=null){if(($e=$e.$$typeof)===y)return 11;if($e===p)return 14}return 2}(P),u=st(P,u),U){case 0:m=Pc(null,m,P,u,k);break e;case 1:m=Lc(null,m,P,u,k);break e;case 11:m=Jh(null,m,P,u,k);break e;case 14:m=e2(null,m,P,st(P.type,u),k);break e}throw Error(n(306,P,""))}return m;case 0:return P=m.type,U=m.pendingProps,Pc(u,m,P,U=m.elementType===P?U:st(P,U),k);case 1:return P=m.type,U=m.pendingProps,Lc(u,m,P,U=m.elementType===P?U:st(P,U),k);case 3:e:{if(sf(m),u===null)throw Error(n(387));P=m.pendingProps,U=(W=m.memoizedState).element,o1(u,m),Gd(m,P,null,k);var J=m.memoizedState;if(P=J.element,W.isDehydrated){if(W={element:P,isDehydrated:!1,cache:J.cache,pendingSuspenseBoundaries:J.pendingSuspenseBoundaries,transitions:J.transitions},m.updateQueue.baseState=W,m.memoizedState=W,256&m.flags){m=u3(u,m,P,k,U=of(Error(n(423)),m));break e}if(P!==U){m=u3(u,m,P,k,U=of(Error(n(424)),m));break e}for(Lo=cs(m.stateNode.containerInfo.firstChild),Po=m,Sr=!0,aa=null,k=El(m,null,P,k),m.child=k;k;)k.flags=-3&k.flags|4096,k=k.sibling}else{if(Vd(),P===U){m=du(u,m,k);break e}mi(u,m,P,k)}m=m.child}return m;case 5:return Jy(m),u===null&&Wn(m),P=m.type,U=m.pendingProps,W=u!==null?u.memoizedProps:null,J=U.children,Fd(P,U)?J=null:W!==null&&Fd(P,W)&&(m.flags|=32),w1(u,m),mi(u,m,J,k),m.child;case 6:return u===null&&Wn(m),null;case 13:return r2(u,m,k);case 4:return xc(m,m.stateNode.containerInfo),P=m.pendingProps,u===null?m.child=hs(m,null,P,k):mi(u,m,P,k),m.child;case 11:return P=m.type,U=m.pendingProps,Jh(u,m,P,U=m.elementType===P?U:st(P,U),k);case 7:return mi(u,m,m.pendingProps,k),m.child;case 8:case 12:return mi(u,m,m.pendingProps.children,k),m.child;case 10:e:{if(P=m.type._context,U=m.pendingProps,W=m.memoizedProps,J=U.value,pr($r,P._currentValue),P._currentValue=J,W!==null)if(ka(W.value,J)){if(W.children===U.children&&!Gi.current){m=du(u,m,k);break e}}else for((W=m.child)!==null&&(W.return=m);W!==null;){var be=W.dependencies;if(be!==null){J=W.child;for(var ke=be.firstContext;ke!==null;){if(ke.context===P){if(W.tag===1){(ke=La(-1,k&-k)).tag=2;var Pe=W.updateQueue;if(Pe!==null){var Be=(Pe=Pe.shared).pending;Be===null?ke.next=ke:(ke.next=Be.next,Be.next=ke),Pe.pending=ke}}W.lanes|=k,(ke=W.alternate)!==null&&(ke.lanes|=k),Sc(W.return,k,m),be.lanes|=k;break}ke=ke.next}}else if(W.tag===10)J=W.type===m.type?null:W.child;else if(W.tag===18){if((J=W.return)===null)throw Error(n(341));J.lanes|=k,(be=J.alternate)!==null&&(be.lanes|=k),Sc(J,k,m),J=W.sibling}else J=W.child;if(J!==null)J.return=W;else for(J=W;J!==null;){if(J===m){J=null;break}if((W=J.sibling)!==null){W.return=J.return,J=W;break}J=J.return}W=J}mi(u,m,U.children,k),m=m.child}return m;case 9:return U=m.type,P=m.pendingProps.children,Ta(m,k),P=P(U=Pi(U)),m.flags|=1,mi(u,m,P,k),m.child;case 14:return U=st(P=m.type,m.pendingProps),e2(u,m,P,U=st(P.type,U),k);case 15:return vo(u,m,m.type,m.pendingProps,k);case 17:return P=m.type,U=m.pendingProps,U=m.elementType===P?U:st(P,U),uf(u,m),m.tag=1,xo(P)?(u=!0,Wd(m)):u=!1,Ta(m,k),l1(m,P,U),Uh(m,P,U,k),e0(null,m,P,!0,u,k);case 19:return d3(u,m,k);case 22:return y1(u,m,k)}throw Error(n(156,m.tag))};var S3=typeof reportError=="function"?reportError:function(u){console.error(u)};function k2(u){this._internalRoot=u}function I1(u){this._internalRoot=u}function m0(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function gf(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11&&(u.nodeType!==8||u.nodeValue!==" react-mount-point-unstable "))}function O1(){}function vf(u,m,k,P,U){var W=k._reactRootContainer;if(W){var J=W;if(typeof U=="function"){var be=U;U=function(){var ke=p0(J);be.call(ke)}}Fc(m,J,u,U)}else J=function(ke,Pe,Be,$e,Ke){if(Ke){if(typeof $e=="function"){var Ye=$e;$e=function(){var Ae=p0(dt);Ye.call(Ae)}}var dt=h0(Pe,$e,ke,0,null,!1,0,"",O1);return ke._reactRootContainer=dt,ke[Ca]=dt.current,an(ke.nodeType===8?ke.parentNode:ke),gu(),dt}for(;Ke=ke.lastChild;)ke.removeChild(Ke);if(typeof $e=="function"){var yt=$e;$e=function(){var Ae=p0(qe);yt.call(Ae)}}var qe=E2(ke,0,!1,null,0,!1,0,"",O1);return ke._reactRootContainer=qe,ke[Ca]=qe.current,an(ke.nodeType===8?ke.parentNode:ke),gu(function(){Fc(Pe,qe,Be,$e)}),qe}(k,m,u,U,P);return p0(J)}I1.prototype.render=k2.prototype.render=function(u){var m=this._internalRoot;if(m===null)throw Error(n(409));Fc(u,m,null,null)},I1.prototype.unmount=k2.prototype.unmount=function(){var u=this._internalRoot;if(u!==null){this._internalRoot=null;var m=u.containerInfo;gu(function(){Fc(null,u,null,null)}),m[Ca]=null}},I1.prototype.unstable_scheduleHydration=function(u){if(u){var m=hn();u={blockedOn:null,target:u,priority:m};for(var k=0;k<na.length&&m!==0&&m<na[k].priority;k++);na.splice(k,0,u),k===0&&Pd(u)}},It=function(u){switch(u.tag){case 3:var m=u.stateNode;if(m.current.memoizedState.isDehydrated){var k=dl(m.pendingLanes);k!==0&&(it(m,1|k),Ji(m,Cn()),!(6&Vn)&&(hf=Cn()+500,Ao()))}break;case 13:gu(function(){var P=Pa(u,1);if(P!==null){var U=Oi();ca(P,u,1,U)}}),mf(u,1)}},qt=function(u){if(u.tag===13){var m=Pa(u,134217728);m!==null&&ca(m,u,134217728,Oi()),mf(u,134217728)}},An=function(u){if(u.tag===13){var m=mu(u),k=Pa(u,m);k!==null&&ca(k,u,m,Oi()),mf(u,m)}},hn=function(){return ot},on=function(u,m){var k=ot;try{return ot=u,m()}finally{ot=k}},Qt=function(u,m,k){switch(m){case"input":if(oe(u,k),m=k.name,k.type==="radio"&&m!=null){for(k=u;k.parentNode;)k=k.parentNode;for(k=k.querySelectorAll("input[name="+JSON.stringify(""+m)+'][type="radio"]'),m=0;m<k.length;m++){var P=k[m];if(P!==u&&P.form===u.form){var U=Nh(P);if(!U)throw Error(n(90));ae(P),oe(P,U)}}}break;case"textarea":tt(u,k);break;case"select":(m=k.value)!=null&&De(u,!!k.multiple,m,!1)}},Vt=Dc,Ut=gu;var g0={usingClientEntryPoint:!1,Events:[Oh,ra,Nh,$t,ft,Dc]},wu={findFiberByHostInstance:Yi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},g7={bundleType:wu.bundleType,version:wu.version,rendererPackageName:wu.rendererPackageName,rendererConfig:wu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ee.ReactCurrentDispatcher,findHostInstanceByFiber:function(u){return(u=tn(u))===null?null:u.stateNode},findFiberByHostInstance:wu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var v0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!v0.isDisabled&&v0.supportsFiber)try{lr=v0.inject(g7),Bn=v0}catch{}}return ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=g0,ea.createPortal=function(u,m){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m0(m))throw Error(n(200));return function(P,U,W){var J=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ue,key:J==null?null:""+J,children:P,containerInfo:U,implementation:W}}(u,m,null,k)},ea.createRoot=function(u,m){if(!m0(u))throw Error(n(299));var k=!1,P="",U=S3;return m!=null&&(m.unstable_strictMode===!0&&(k=!0),m.identifierPrefix!==void 0&&(P=m.identifierPrefix),m.onRecoverableError!==void 0&&(U=m.onRecoverableError)),m=E2(u,1,!1,null,0,k,0,P,U),u[Ca]=m.current,an(u.nodeType===8?u.parentNode:u),new k2(m)},ea.findDOMNode=function(u){if(u==null)return null;if(u.nodeType===1)return u;var m=u._reactInternals;if(m===void 0)throw typeof u.render=="function"?Error(n(188)):(u=Object.keys(u).join(","),Error(n(268,u)));return u=(u=tn(m))===null?null:u.stateNode},ea.flushSync=function(u){return gu(u)},ea.hydrate=function(u,m,k){if(!gf(m))throw Error(n(200));return vf(null,u,m,!0,k)},ea.hydrateRoot=function(u,m,k){if(!m0(u))throw Error(n(405));var P=k!=null&&k.hydratedSources||null,U=!1,W="",J=S3;if(k!=null&&(k.unstable_strictMode===!0&&(U=!0),k.identifierPrefix!==void 0&&(W=k.identifierPrefix),k.onRecoverableError!==void 0&&(J=k.onRecoverableError)),m=h0(m,null,u,1,k??null,U,0,W,J),u[Ca]=m.current,an(u),P)for(u=0;u<P.length;u++)U=(U=(k=P[u])._getVersion)(k._source),m.mutableSourceEagerHydrationData==null?m.mutableSourceEagerHydrationData=[k,U]:m.mutableSourceEagerHydrationData.push(k,U);return new I1(m)},ea.render=function(u,m,k){if(!gf(m))throw Error(n(200));return vf(null,u,m,!1,k)},ea.unmountComponentAtNode=function(u){if(!gf(u))throw Error(n(40));return!!u._reactRootContainer&&(gu(function(){vf(null,null,u,!1,function(){u._reactRootContainer=null,u[Ca]=null})}),!0)},ea.unstable_batchedUpdates=Dc,ea.unstable_renderSubtreeIntoContainer=function(u,m,k,P){if(!gf(k))throw Error(n(200));if(u==null||u._reactInternals===void 0)throw Error(n(38));return vf(u,m,k,!1,P)},ea.version="18.2.0-next-9e3b772b8-20220608",ea}var sR,uR,lR,Ea={};function dq(){return sR||(sR=1,vr.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=e7(),t=aR(),n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,r=!1;function o(a){if(!r){for(var s=arguments.length,v=new Array(s>1?s-1:0),M=1;M<s;M++)v[M-1]=arguments[M];c("warn",a,v)}}function i(a){if(!r){for(var s=arguments.length,v=new Array(s>1?s-1:0),M=1;M<s;M++)v[M-1]=arguments[M];c("error",a,v)}}function c(a,s,v){var M=n.ReactDebugCurrentFrame.getStackAddendum();M!==""&&(s+="%s",v=v.concat([M]));var A=v.map(function(N){return String(N)});A.unshift("Warning: "+s),Function.prototype.apply.call(console[a],console,A)}var g=0,_=1,w=2,S=3,E=4,T=5,I=6,j=7,H=8,V=9,ee=10,X=11,ue=12,le=13,pe=14,Me=15,ye=16,Te=17,y=18,x=19,d=21,p=22,h=23,f=24,l=25,b=!0,C=!1,R=!1,L=!1,B=!1,K=!0,z=!1,O=!1,D=!0,q=!0,Y=!0,Q=new Set,ae={},re={};function we(a,s){de(a,s),de(a+"Capture",s)}function de(a,s){ae[a]&&i("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",a),ae[a]=s;var v=a.toLowerCase();re[v]=a,a==="onDoubleClick"&&(re.ondblclick=a);for(var M=0;M<s.length;M++)Q.add(s[M])}var ie=!(typeof window>"u"||window.document===void 0||window.document.createElement===void 0),oe=Object.prototype.hasOwnProperty;function fe(a){return typeof Symbol=="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object"}function me(a){try{return Le(a),!1}catch{return!0}}function Le(a){return""+a}function De(a,s){if(me(a))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",s,fe(a)),Le(a)}function Ce(a){if(me(a))return i("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",fe(a)),Le(a)}var Qe=0,tt=3,Fe=4,Mt=5,rt=6,He=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",lt=He+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",mt=new RegExp("^["+He+"]["+lt+"]*$"),ct={},Rt={};function _t(a){return!!oe.call(Rt,a)||!oe.call(ct,a)&&(mt.test(a)?(Rt[a]=!0,!0):(ct[a]=!0,i("Invalid attribute name: `%s`",a),!1))}function ut(a,s,v){return s!==null?s.type===Qe:!v&&a.length>2&&(a[0]==="o"||a[0]==="O")&&(a[1]==="n"||a[1]==="N")}function xt(a,s,v,M){if(v!==null&&v.type===Qe)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":if(M)return!1;if(v!==null)return!v.acceptsBooleans;var A=a.toLowerCase().slice(0,5);return A!=="data-"&&A!=="aria-";default:return!1}}function Tt(a,s,v,M){if(s==null||xt(a,s,v,M))return!0;if(M)return!1;if(v!==null)switch(v.type){case tt:return!s;case Fe:return s===!1;case Mt:return isNaN(s);case rt:return isNaN(s)||s<1}return!1}function at(a){return At.hasOwnProperty(a)?At[a]:null}function Ct(a,s,v,M,A,N,F){this.acceptsBooleans=s===2||s===tt||s===Fe,this.attributeName=M,this.attributeNamespace=A,this.mustUseProperty=v,this.propertyName=a,this.type=s,this.sanitizeURL=N,this.removeEmptyString=F}var At={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(function(a){At[a]=new Ct(a,Qe,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var s=a[0],v=a[1];At[s]=new Ct(s,1,!1,v,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){At[a]=new Ct(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){At[a]=new Ct(a,2,!1,a,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(a){At[a]=new Ct(a,tt,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){At[a]=new Ct(a,tt,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){At[a]=new Ct(a,Fe,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){At[a]=new Ct(a,rt,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){At[a]=new Ct(a,Mt,!1,a.toLowerCase(),null,!1,!1)});var ht=/[\-\:]([a-z])/g,Qt=function(a){return a[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(a){var s=a.replace(ht,Qt);At[s]=new Ct(s,1,!1,a,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(a){var s=a.replace(ht,Qt);At[s]=new Ct(s,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var s=a.replace(ht,Qt);At[s]=new Ct(s,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){At[a]=new Ct(a,1,!1,a.toLowerCase(),null,!1,!1)}),At.xlinkHref=new Ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){At[a]=new Ct(a,1,!1,a.toLowerCase(),null,!0,!0)});var Kt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,vt=!1;function sn(a){!vt&&Kt.test(a)&&(vt=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(a)))}function $t(a,s,v,M){if(M.mustUseProperty)return a[M.propertyName];De(v,s),M.sanitizeURL&&sn(""+v);var A=M.attributeName,N=null;if(M.type===Fe){if(a.hasAttribute(A)){var F=a.getAttribute(A);return F===""||(Tt(s,v,M,!1)?F:F===""+v?v:F)}}else if(a.hasAttribute(A)){if(Tt(s,v,M,!1))return a.getAttribute(A);if(M.type===tt)return v;N=a.getAttribute(A)}return Tt(s,v,M,!1)?N===null?v:N:N===""+v?v:N}function ft(a,s,v,M){if(_t(s)){if(!a.hasAttribute(s))return v===void 0?void 0:null;var A=a.getAttribute(s);return De(v,s),A===""+v?v:A}}function Vt(a,s,v,M){var A=at(s);if(!ut(s,A,M))if(Tt(s,v,A,M)&&(v=null),M||A===null){if(_t(s)){var N=s;v===null?a.removeAttribute(N):(De(v,s),a.setAttribute(N,""+v))}}else if(A.mustUseProperty){var F=A.propertyName;if(v===null){var $=A.type;a[F]=$!==tt&&""}else a[F]=v}else{var G=A.attributeName,Z=A.attributeNamespace;if(v===null)a.removeAttribute(G);else{var ce,Se=A.type;Se===tt||Se===Fe&&v===!0?ce="":(De(v,G),ce=""+v,A.sanitizeURL&&sn(ce.toString())),Z?a.setAttributeNS(Z,G,ce):a.setAttribute(G,ce)}}}var Ut=Symbol.for("react.element"),gt=Symbol.for("react.portal"),Gt=Symbol.for("react.fragment"),Ft=Symbol.for("react.strict_mode"),kt=Symbol.for("react.profiler"),en=Symbol.for("react.provider"),rn=Symbol.for("react.context"),bt=Symbol.for("react.forward_ref"),Xt=Symbol.for("react.suspense"),Jt=Symbol.for("react.suspense_list"),wt=Symbol.for("react.memo"),jt=Symbol.for("react.lazy"),cn=Symbol.for("react.offscreen"),St=Symbol.iterator,fn="@@iterator";function Yt(a){if(a===null||typeof a!="object")return null;var s=St&&a[St]||a[fn];return typeof s=="function"?s:null}var tn,Nr,Dr,xr,yr,Kr,Cn,un=Object.assign,wr=0;function Br(){}Br.__reactDisabledLog=!0;var Ar,jr=n.ReactCurrentDispatcher;function ur(a,s,v){if(Ar===void 0)try{throw Error()}catch(A){var M=A.stack.trim().match(/\n( *(at )?)/);Ar=M&&M[1]||""}return`
84
+ `+Ar+a}var lr,Bn=!1,Zn=typeof WeakMap=="function"?WeakMap:Map;function Rr(a,s){if(!a||Bn)return"";var v,M=lr.get(a);if(M!==void 0)return M;Bn=!0;var A,N=Error.prepareStackTrace;Error.prepareStackTrace=void 0,A=jr.current,jr.current=null,function(){if(wr===0){tn=console.log,Nr=console.info,Dr=console.warn,xr=console.error,yr=console.group,Kr=console.groupCollapsed,Cn=console.groupEnd;var he={configurable:!0,enumerable:!0,value:Br,writable:!0};Object.defineProperties(console,{info:he,log:he,warn:he,error:he,group:he,groupCollapsed:he,groupEnd:he})}wr++}();try{if(s){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(he){v=he}Reflect.construct(a,[],F)}else{try{F.call()}catch(he){v=he}a.call(F.prototype)}}else{try{throw Error()}catch(he){v=he}a()}}catch(he){if(he&&v&&typeof he.stack=="string"){for(var $=he.stack.split(`
85
+ `),G=v.stack.split(`
86
+ `),Z=$.length-1,ce=G.length-1;Z>=1&&ce>=0&&$[Z]!==G[ce];)ce--;for(;Z>=1&&ce>=0;Z--,ce--)if($[Z]!==G[ce]){if(Z!==1||ce!==1)do if(Z--,--ce<0||$[Z]!==G[ce]){var Se=`
87
+ `+$[Z].replace(" at new "," at ");return a.displayName&&Se.includes("<anonymous>")&&(Se=Se.replace("<anonymous>",a.displayName)),typeof a=="function"&&lr.set(a,Se),Se}while(Z>=1&&ce>=0);break}}}finally{Bn=!1,jr.current=A,function(){if(--wr==0){var he={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:un({},he,{value:tn}),info:un({},he,{value:Nr}),warn:un({},he,{value:Dr}),error:un({},he,{value:xr}),group:un({},he,{value:yr}),groupCollapsed:un({},he,{value:Kr}),groupEnd:un({},he,{value:Cn})})}wr<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=N}var Ee=a?a.displayName||a.name:"",ve=Ee?ur(Ee):"";return typeof a=="function"&&lr.set(a,ve),ve}function Ir(a,s,v){return Rr(a,!1)}function di(a,s,v){if(a==null)return"";if(typeof a=="function")return Rr(a,!(!(M=a.prototype)||!M.isReactComponent));var M;if(typeof a=="string")return ur(a);switch(a){case Xt:return ur("Suspense");case Jt:return ur("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case bt:return Ir(a.render);case wt:return di(a.type,s,v);case jt:var A=a,N=A._payload,F=A._init;try{return di(F(N),s,v)}catch{}}return""}function Hi(a){switch(a._debugOwner&&a._debugOwner.type,a._debugSource,a.tag){case T:return ur(a.type);case ye:return ur("Lazy");case le:return ur("Suspense");case x:return ur("SuspenseList");case g:case w:case Me:return Ir(a.type);case X:return Ir(a.type.render);case _:return Rr(a.type,!0);default:return""}}function dl(a){try{var s="",v=a;do s+=Hi(v),v=v.return;while(v);return s}catch(M){return`
88
+ Error generating stack: `+M.message+`
89
+ `+M.stack}}function uc(a){return a.displayName||"Context"}function cr(a){if(a==null)return null;if(typeof a.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case Gt:return"Fragment";case gt:return"Portal";case kt:return"Profiler";case Ft:return"StrictMode";case Xt:return"Suspense";case Jt:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case rn:return uc(a)+".Consumer";case en:return uc(a._context)+".Provider";case bt:return function(N,F,$){var G=N.displayName;if(G)return G;var Z=F.displayName||F.name||"";return Z!==""?$+"("+Z+")":$}(a,a.render,"ForwardRef");case wt:var s=a.displayName||null;return s!==null?s:cr(a.type)||"Memo";case jt:var v=a,M=v._payload,A=v._init;try{return cr(A(M))}catch{return null}}return null}function Td(a){return a.displayName||"Context"}function ne(a){var s,v,M,A,N=a.tag,F=a.type;switch(N){case f:return"Cache";case V:return Td(F)+".Consumer";case ee:return Td(F._context)+".Provider";case y:return"DehydratedFragment";case X:return s=F,v=F.render,M="ForwardRef",A=v.displayName||v.name||"",s.displayName||(A!==""?M+"("+A+")":M);case j:return"Fragment";case T:return F;case E:return"Portal";case S:return"Root";case I:return"Text";case ye:return cr(F);case H:return F===Ft?"StrictMode":"Mode";case p:return"Offscreen";case ue:return"Profiler";case d:return"Scope";case le:return"Suspense";case x:return"SuspenseList";case l:return"TracingMarker";case _:case g:case Te:case w:case pe:case Me:if(typeof F=="function")return F.displayName||F.name||null;if(typeof F=="string")return F}return null}lr=new Zn;var Re=n.ReactDebugCurrentFrame,We=null,it=!1;function ot(){if(We===null)return null;var a=We._debugOwner;return a!=null?ne(a):null}function nn(){return We===null?"":dl(We)}function It(){Re.getCurrentStack=null,We=null,it=!1}function qt(a){Re.getCurrentStack=a===null?null:nn,We=a,it=!1}function An(a){it=a}function hn(a){return""+a}function on(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return Ce(a),a;default:return""}}var dn={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Qn(a,s){dn[s.type]||s.onChange||s.onInput||s.readOnly||s.disabled||s.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),s.onChange||s.readOnly||s.disabled||s.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function nr(a){var s=a.type,v=a.nodeName;return v&&v.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function pn(a){return a._valueTracker}function zr(a){pn(a)||(a._valueTracker=function(s){var v=nr(s)?"checked":"value",M=Object.getOwnPropertyDescriptor(s.constructor.prototype,v);Ce(s[v]);var A=""+s[v];if(!s.hasOwnProperty(v)&&M!==void 0&&typeof M.get=="function"&&typeof M.set=="function"){var N=M.get,F=M.set;Object.defineProperty(s,v,{configurable:!0,get:function(){return N.call(this)},set:function(G){Ce(G),A=""+G,F.call(this,G)}}),Object.defineProperty(s,v,{enumerable:M.enumerable});var $={getValue:function(){return A},setValue:function(G){Ce(G),A=""+G},stopTracking:function(){(function(G){G._valueTracker=null})(s),delete s[v]}};return $}}(a))}function fi(a){if(!a)return!1;var s=pn(a);if(!s)return!0;var v=s.getValue(),M=function(A){var N="";return A?N=nr(A)?A.checked?"true":"false":A.value:N}(a);return M!==v&&(s.setValue(M),!0)}function ta(a){if((a=a||(typeof document<"u"?document:void 0))===void 0)return null;try{return a.activeElement||a.body}catch{return a.body}}var na=!1,_h=!1,Sh=!1,fl=!1;function Pd(a){return a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}function hl(a,s){var v=a,M=s.checked;return un({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:M??v._wrapperState.initialChecked})}function bg(a,s){Qn(0,s),s.checked===void 0||s.defaultChecked===void 0||_h||(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ot()||"A component",s.type),_h=!0),s.value===void 0||s.defaultValue===void 0||na||(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ot()||"A component",s.type),na=!0);var v=a,M=s.defaultValue==null?"":s.defaultValue;v._wrapperState={initialChecked:s.checked!=null?s.checked:s.defaultChecked,initialValue:on(s.value!=null?s.value:M),controlled:Pd(s)}}function Iy(a,s){var v=a,M=s.checked;M!=null&&Vt(v,"checked",M,!1)}function lc(a,s){var v=a,M=Pd(s);v._wrapperState.controlled||!M||fl||(i("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),fl=!0),!v._wrapperState.controlled||M||Sh||(i("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Sh=!0),Iy(a,s);var A=on(s.value),N=s.type;if(A!=null)N==="number"?(A===0&&v.value===""||v.value!=A)&&(v.value=hn(A)):v.value!==hn(A)&&(v.value=hn(A));else if(N==="submit"||N==="reset")return void v.removeAttribute("value");s.hasOwnProperty("value")?Od(v,s.type,A):s.hasOwnProperty("defaultValue")&&Od(v,s.type,on(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(v.defaultChecked=!!s.defaultChecked)}function Ld(a,s,v){var M=a;if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var A=s.type;if((A==="submit"||A==="reset")&&(s.value===void 0||s.value===null))return;var N=hn(M._wrapperState.initialValue);v||N!==M.value&&(M.value=N),M.defaultValue=N}var F=M.name;F!==""&&(M.name=""),M.defaultChecked=!M.defaultChecked,M.defaultChecked=!!M._wrapperState.initialChecked,F!==""&&(M.name=F)}function Id(a,s){var v=a;lc(v,s),function(M,A){var N=A.name;if(A.type==="radio"&&N!=null){for(var F=M;F.parentNode;)F=F.parentNode;De(N,"name");for(var $=F.querySelectorAll("input[name="+JSON.stringify(""+N)+'][type="radio"]'),G=0;G<$.length;G++){var Z=$[G];if(Z!==M&&Z.form===M.form){var ce=k3(Z);if(!ce)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");fi(Z),lc(Z,ce)}}}}(v,s)}function Od(a,s,v){s==="number"&&ta(a.ownerDocument)===a||(v==null?a.defaultValue=hn(a._wrapperState.initialValue):a.defaultValue!==hn(v)&&(a.defaultValue=hn(v)))}var Oy=!1,Ny=!1,Np=!1;function Eh(a,s){s.value==null&&(typeof s.children=="object"&&s.children!==null?e.Children.forEach(s.children,function(v){v!=null&&typeof v!="string"&&typeof v!="number"&&(Ny||(Ny=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):s.dangerouslySetInnerHTML!=null&&(Np||(Np=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),s.selected==null||Oy||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Oy=!0)}var kh,Dy=Array.isArray;function qr(a){return Dy(a)}function Dp(){var a=ot();return a?`
90
+
91
+ Check the render method of \``+a+"`.":""}kh=!1;var Mh=["value","defaultValue"];function cc(a,s,v,M){var A=a.options;if(s){for(var N=v,F={},$=0;$<N.length;$++)F["$"+N[$]]=!0;for(var G=0;G<A.length;G++){var Z=F.hasOwnProperty("$"+A[G].value);A[G].selected!==Z&&(A[G].selected=Z),Z&&M&&(A[G].defaultSelected=!0)}}else{for(var ce=hn(on(v)),Se=null,Ee=0;Ee<A.length;Ee++){if(A[Ee].value===ce)return A[Ee].selected=!0,void(M&&(A[Ee].defaultSelected=!0));Se!==null||A[Ee].disabled||(Se=A[Ee])}Se!==null&&(Se.selected=!0)}}function Nd(a,s){return un({},s,{value:void 0})}function Ch(a,s){var v=a;(function(M){Qn(0,M);for(var A=0;A<Mh.length;A++){var N=Mh[A];if(M[N]!=null){var F=qr(M[N]);M.multiple&&!F?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",N,Dp()):!M.multiple&&F&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",N,Dp())}}})(s),v._wrapperState={wasMultiple:!!s.multiple},s.value===void 0||s.defaultValue===void 0||kh||(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),kh=!0)}var yg=!1;function Wi(a,s){var v=a;if(s.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");return un({},s,{value:void 0,defaultValue:void 0,children:hn(v._wrapperState.initialValue)})}function Bp(a,s){var v=a;Qn(0,s),s.value===void 0||s.defaultValue===void 0||yg||(i("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",ot()||"A component"),yg=!0);var M=s.value;if(M==null){var A=s.children,N=s.defaultValue;if(A!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),N!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(qr(A)){if(A.length>1)throw new Error("<textarea> can only have at most one child.");A=A[0]}N=A}N==null&&(N=""),M=N}v._wrapperState={initialValue:on(M)}}function jp(a,s){var v=a,M=on(s.value),A=on(s.defaultValue);if(M!=null){var N=hn(M);N!==v.value&&(v.value=N),s.defaultValue==null&&v.defaultValue!==N&&(v.defaultValue=N)}A!=null&&(v.defaultValue=hn(A))}function Dd(a,s){var v=a,M=v.textContent;M===v._wrapperState.initialValue&&M!==""&&M!==null&&(v.value=M)}var ho="http://www.w3.org/1999/xhtml",wg="http://www.w3.org/1998/Math/MathML",dc="http://www.w3.org/2000/svg";function _g(a){switch(a){case"svg":return dc;case"math":return wg;default:return ho}}function Bd(a,s){return a==null||a===ho?_g(s):a===dc&&s==="foreignObject"?ho:a}var zp,Sg,Up=(Sg=function(a,s){if(a.namespaceURI!==dc||"innerHTML"in a)a.innerHTML=s;else{(zp=zp||document.createElement("div")).innerHTML="<svg>"+s.valueOf().toString()+"</svg>";for(var v=zp.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;v.firstChild;)a.appendChild(v.firstChild)}},typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,s,v,M){MSApp.execUnsafeLocalFunction(function(){return Sg(a,s,v,M)})}:Sg),po=1,Vs=3,Qr=8,rs=9,Eg=11,Fp=function(a,s){if(s){var v=a.firstChild;if(v&&v===a.lastChild&&v.nodeType===Vs)return void(v.nodeValue=s)}a.textContent=s},i7={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},xh={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kg=["Webkit","ms","Moz","O"];function Mg(a,s,v){return s==null||typeof s=="boolean"||s===""?"":v||typeof s!="number"||s===0||xh.hasOwnProperty(a)&&xh[a]?(function(M,A){me(M)&&i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",A,fe(M))}(s,a),(""+s).trim()):s+"px"}Object.keys(xh).forEach(function(a){kg.forEach(function(s){xh[function(v,M){return v+M.charAt(0).toUpperCase()+M.substring(1)}(s,a)]=xh[a]})});var o7=/([A-Z])/g,By=/^ms-/;function a7(a){return a.replace(o7,"-$1").toLowerCase().replace(By,"-ms-")}var jy,s7=/^(?:webkit|moz|o)[A-Z]/,u7=/^-ms-/,l7=/-(.)/g,Kp=/;\s*$/,is={},Cg={},xg=!1,Ag=!1,zy=function(a){is.hasOwnProperty(a)&&is[a]||(is[a]=!0,i("Unsupported style property %s. Did you mean %s?",a,function(s){return s.replace(l7,function(v,M){return M.toUpperCase()})}(a.replace(u7,"ms-"))))};jy=function(a,s){a.indexOf("-")>-1?zy(a):s7.test(a)?function(v){is.hasOwnProperty(v)&&is[v]||(is[v]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",v,v.charAt(0).toUpperCase()+v.slice(1)))}(a):Kp.test(s)&&function(v,M){Cg.hasOwnProperty(M)&&Cg[M]||(Cg[M]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,v,M.replace(Kp,"")))}(a,s),typeof s=="number"&&(isNaN(s)?function(v,M){xg||(xg=!0,i("`NaN` is an invalid value for the `%s` css style property.",v))}(a):isFinite(s)||function(v,M){Ag||(Ag=!0,i("`Infinity` is an invalid value for the `%s` css style property.",v))}(a))};var Uy=jy;function Fy(a){var s="",v="";for(var M in a)if(a.hasOwnProperty(M)){var A=a[M];if(A!=null){var N=M.indexOf("--")===0;s+=v+(N?M:a7(M))+":",s+=Mg(M,A,N),v=";"}}return s||null}function fc(a,s){var v=a.style;for(var M in s)if(s.hasOwnProperty(M)){var A=M.indexOf("--")===0;A||Uy(M,s[M]);var N=Mg(M,s[M],A);M==="float"&&(M="cssFloat"),A?v.setProperty(M,N):v[M]=N}}function c7(a){return a==null||typeof a=="boolean"||a===""}function Rg(a){var s={};for(var v in a)for(var M=i7[v]||[v],A=0;A<M.length;A++)s[M[A]]=v;return s}var Ky=un({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),qp="__html";function hc(a,s){if(s){if(Ky[a]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw new Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof s.dangerouslySetInnerHTML!="object"||!(qp in s.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!s.suppressContentEditableWarning&&s.contentEditable&&s.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),s.style!=null&&typeof s.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function pc(a,s){if(a.indexOf("-")===-1)return typeof s.is=="string";switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mc={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},qy={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},gc={},Tg=new RegExp("^(aria)-["+lt+"]*$"),Pg=new RegExp("^(aria)[A-Z]["+lt+"]*$");function Hy(a,s){if(oe.call(gc,s)&&gc[s])return!0;if(Pg.test(s)){var v="aria-"+s.slice(4).toLowerCase(),M=qy.hasOwnProperty(v)?v:null;if(M==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",s),gc[s]=!0,!0;if(s!==M)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",s,M),gc[s]=!0,!0}if(Tg.test(s)){var A=s.toLowerCase(),N=qy.hasOwnProperty(A)?A:null;if(N==null)return gc[s]=!0,!1;if(s!==N)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",s,N),gc[s]=!0,!0}return!0}function Wy(a,s){pc(a,s)||function(v,M){var A=[];for(var N in M)Hy(0,N)||A.push(N);var F=A.map(function($){return"`"+$+"`"}).join(", ");A.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",F,v):A.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",F,v)}(a,s)}var Lg=!1,$y,$i={},Vy=/^on./,d7=/^on[^A-Z]/,ka=new RegExp("^(aria)-["+lt+"]*$"),Ah=new RegExp("^(aria)[A-Z]["+lt+"]*$");$y=function(a,s,v,M){if(oe.call($i,s)&&$i[s])return!0;var A=s.toLowerCase();if(A==="onfocusin"||A==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),$i[s]=!0,!0;if(M!=null){var N=M.registrationNameDependencies,F=M.possibleRegistrationNames;if(N.hasOwnProperty(s))return!0;var $=F.hasOwnProperty(A)?F[A]:null;if($!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",s,$),$i[s]=!0,!0;if(Vy.test(s))return i("Unknown event handler property `%s`. It will be ignored.",s),$i[s]=!0,!0}else if(Vy.test(s))return d7.test(s)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",s),$i[s]=!0,!0;if(ka.test(s)||Ah.test(s))return!0;if(A==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),$i[s]=!0,!0;if(A==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),$i[s]=!0,!0;if(A==="is"&&v!=null&&typeof v!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof v),$i[s]=!0,!0;if(typeof v=="number"&&isNaN(v))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",s),$i[s]=!0,!0;var G=at(s),Z=G!==null&&G.type===Qe;if(mc.hasOwnProperty(A)){var ce=mc[A];if(ce!==s)return i("Invalid DOM property `%s`. Did you mean `%s`?",s,ce),$i[s]=!0,!0}else if(!Z&&s!==A)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",s,A),$i[s]=!0,!0;return typeof v=="boolean"&&xt(s,v,G,!1)?(v?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',v,s,s,v,s):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',v,s,s,v,s,s,s),$i[s]=!0,!0):!!Z||(xt(s,v,G,!1)?($i[s]=!0,!1):(v!=="false"&&v!=="true"||G===null||G.type!==tt||(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",v,s,v==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',s,v),$i[s]=!0),!0))};function Yy(a,s,v){pc(a,s)||function(M,A,N){var F=[];for(var $ in A)$y(0,$,A[$],N)||F.push($);var G=F.map(function(Z){return"`"+Z+"`"}).join(", ");F.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",G,M):F.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",G,M)}(a,s,v)}var Ig=1,Hp=2,jd=4,Og=Ig|Hp|jd,Rh=null;function Ng(a){var s=a.target||a.srcElement||window;return s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===Vs?s.parentNode:s}var pl=null,ml=null,os=null;function Wp(a){var s=yf(a);if(s){if(typeof pl!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var v=s.stateNode;if(v){var M=k3(v);pl(s.stateNode,s.type,M)}}}function Dg(a){ml?os?os.push(a):os=[a]:ml=a}function Th(){if(ml){var a=ml,s=os;if(ml=null,os=null,Wp(a),s)for(var v=0;v<s.length;v++)Wp(s[v])}}var vc=function(a,s){return a(s)},$p=function(){},Vp=!1;function Yp(){(ml!==null||os!==null)&&($p(),Th())}function Bg(a,s,v){if(Vp)return a(s,v);Vp=!0;try{return vc(a,s,v)}finally{Vp=!1,Yp()}}function zd(a,s){var v=a.stateNode;if(v===null)return null;var M=k3(v);if(M===null)return null;var A=M[s];if(function(N,F,$){switch(N){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!(!$.disabled||(G=F,G!=="button"&&G!=="input"&&G!=="select"&&G!=="textarea"));default:return!1}var G}(s,a.type,M))return null;if(A&&typeof A!="function")throw new Error("Expected `"+s+"` listener to be a function, instead got a value of `"+typeof A+"` type.");return A}var Gp=!1;if(ie)try{var Ud={};Object.defineProperty(Ud,"passive",{get:function(){Gp=!0}}),window.addEventListener("test",Ud,Ud),window.removeEventListener("test",Ud,Ud)}catch{Gp=!1}function jg(a,s,v,M,A,N,F,$,G){var Z=Array.prototype.slice.call(arguments,3);try{s.apply(v,Z)}catch(ce){this.onError(ce)}}var zg=jg;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var as=document.createElement("react");zg=function(a,s,v,M,A,N,F,$,G){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var Z=document.createEvent("Event"),ce=!1,Se=!0,Ee=window.event,ve=Object.getOwnPropertyDescriptor(window,"event");function he(){as.removeEventListener(Ne,ge,!1),window.event!==void 0&&window.hasOwnProperty("event")&&(window.event=Ee)}var se,te=Array.prototype.slice.call(arguments,3);function ge(){ce=!0,he(),s.apply(v,te),Se=!1}var _e=!1,xe=!1;function Oe(je){if(se=je.error,_e=!0,se===null&&je.colno===0&&je.lineno===0&&(xe=!0),je.defaultPrevented&&se!=null&&typeof se=="object")try{se._suppressLogging=!0}catch{}}var Ne="react-"+(a||"invokeguardedcallback");if(window.addEventListener("error",Oe),as.addEventListener(Ne,ge,!1),Z.initEvent(Ne,!1,!1),as.dispatchEvent(Z),ve&&Object.defineProperty(window,"event",ve),ce&&Se&&(_e?xe&&(se=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):se=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(se)),window.removeEventListener("error",Oe),!ce)return he(),jg.apply(this,arguments)}}var Ug=zg,gl=!1,vl=null,Zp=!1,Qp=null,Gy={onError:function(a){gl=!0,vl=a}};function hr(a,s,v,M,A,N,F,$,G){gl=!1,vl=null,Ug.apply(Gy,arguments)}function Ph(){if(gl){var a=vl;return gl=!1,vl=null,a}throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function Ys(a){return a._reactInternals}var an=0,bc=1,Ur=2,Rn=4,ss=16,us=32,Xp=64,qn=128,Gs=256,Zs=512,ls=1024,mo=2048,Ma=4096,Qs=8192,Fd=16384,Fg=mo|Rn|Xp|Zs|ls|Fd,f7=32767,Kd=32768,Vi=65536,Kg=131072,Jp=1048576,cs=2097152,bl=4194304,yl=8388608,ii=16777216,wl=33554432,Ca=Rn|ls|0,Lh=Ur|Rn|ss|us|Zs|Ma|Qs,Ih=Rn|Xp|Zs|Qs,qd=mo|ss,Yi=bl|yl|cs,Oh=n.ReactCurrentOwner;function ra(a){var s=a,v=a;if(a.alternate)for(;s.return;)s=s.return;else{var M=s;do((s=M).flags&(Ur|Ma))!==an&&(v=s.return),M=s.return;while(M)}return s.tag===S?v:null}function Nh(a){if(a.tag===le){var s=a.memoizedState;if(s===null){var v=a.alternate;v!==null&&(s=v.memoizedState)}if(s!==null)return s.dehydrated}return null}function e1(a){return a.tag===S?a.stateNode.containerInfo:null}function yc(a){if(ra(a)!==a)throw new Error("Unable to find node on an unmounted component.")}function Xs(a){var s=a.alternate;if(!s){var v=ra(a);if(v===null)throw new Error("Unable to find node on an unmounted component.");return v!==a?null:a}for(var M=a,A=s;;){var N=M.return;if(N===null)break;var F=N.alternate;if(F===null){var $=N.return;if($!==null){M=A=$;continue}break}if(N.child===F.child){for(var G=N.child;G;){if(G===M)return yc(N),a;if(G===A)return yc(N),s;G=G.sibling}throw new Error("Unable to find node on an unmounted component.")}if(M.return!==A.return)M=N,A=F;else{for(var Z=!1,ce=N.child;ce;){if(ce===M){Z=!0,M=N,A=F;break}if(ce===A){Z=!0,A=N,M=F;break}ce=ce.sibling}if(!Z){for(ce=F.child;ce;){if(ce===M){Z=!0,M=F,A=N;break}if(ce===A){Z=!0,A=F,M=N;break}ce=ce.sibling}if(!Z)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(M.alternate!==A)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(M.tag!==S)throw new Error("Unable to find node on an unmounted component.");return M.stateNode.current===M?a:s}function _r(a){var s=Xs(a);return s!==null?pr(s):null}function pr(a){if(a.tag===T||a.tag===I)return a;for(var s=a.child;s!==null;){var v=pr(s);if(v!==null)return v;s=s.sibling}return null}function _l(a){var s=Xs(a);return s!==null?hi(s):null}function hi(a){if(a.tag===T||a.tag===I)return a;for(var s=a.child;s!==null;){if(s.tag!==E){var v=hi(s);if(v!==null)return v}s=s.sibling}return null}var Gi=t.unstable_scheduleCallback,wc=t.unstable_cancelCallback,Hd=t.unstable_shouldYield,xo=t.unstable_requestPaint,Xr=t.unstable_now,Zy=t.unstable_getCurrentPriorityLevel,Dh=t.unstable_ImmediatePriority,Wd=t.unstable_UserBlockingPriority,Sl=t.unstable_NormalPriority,Js=t.unstable_LowPriority,$d=t.unstable_IdlePriority,qg=t.unstable_yieldValue,Qy=t.unstable_setDisableYieldValue,Ao=null,Hr=null,Pt=null,Ro=!1,go=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function rr(a){if(typeof qg=="function"&&(Qy(a),r=a),Hr&&typeof Hr.setStrictMode=="function")try{Hr.setStrictMode(Ao,a)}catch(s){Ro||(Ro=!0,i("React instrumentation encountered an error: %s",s))}}function ia(a){Pt=a}function _c(){for(var a=new Map,s=1,v=0;v<$g;v++){var M=ps(s);a.set(s,M),s*=2}return a}function xa(){Pt!==null&&typeof Pt.markCommitStopped=="function"&&Pt.markCommitStopped()}function To(a){Pt!==null&&typeof Pt.markComponentRenderStarted=="function"&&Pt.markComponentRenderStarted(a)}function oa(){Pt!==null&&typeof Pt.markComponentRenderStopped=="function"&&Pt.markComponentRenderStopped()}function Xy(a){Pt!==null&&typeof Pt.markComponentLayoutEffectMountStarted=="function"&&Pt.markComponentLayoutEffectMountStarted(a)}function t1(a){Pt!==null&&typeof Pt.markComponentLayoutEffectUnmountStarted=="function"&&Pt.markComponentLayoutEffectUnmountStarted(a)}function n1(){Pt!==null&&typeof Pt.markComponentLayoutEffectUnmountStopped=="function"&&Pt.markComponentLayoutEffectUnmountStopped()}function Po(a,s,v){Pt!==null&&typeof Pt.markComponentErrored=="function"&&Pt.markComponentErrored(a,s,v)}function Lo(a,s,v){Pt!==null&&typeof Pt.markComponentSuspended=="function"&&Pt.markComponentSuspended(a,s,v)}function Sr(a){Pt!==null&&typeof Pt.markRenderStarted=="function"&&Pt.markRenderStarted(a)}function aa(){Pt!==null&&typeof Pt.markRenderStopped=="function"&&Pt.markRenderStopped()}function r1(a,s){Pt!==null&&typeof Pt.markStateUpdateScheduled=="function"&&Pt.markStateUpdateScheduled(a,s)}var mn=0,Ln=1,Wn=2,Wr=8,Io=16,Hg=Math.clz32?Math.clz32:function(a){var s=a>>>0;return s===0?32:31-(Vd(s)/Wg|0)|0},Vd=Math.log,Wg=Math.LN2,$g=31,st=0,$r=0,gn=1,Aa=2,Ra=4,eu=8,sa=16,Sc=32,Ta=4194240,Pi=64,tu=128,Bh=256,i1=512,Pa=1024,ds=2048,jh=4096,o1=8192,La=16384,fs=32768,Yd=65536,a1=131072,Gd=262144,s1=524288,u1=1048576,zh=2097152,Ec=130023424,kc=4194304,l1=8388608,c1=16777216,Uh=33554432,Mc=67108864,Fh=kc,Zd=134217728,Vg=268435455,hs=268435456,El=536870912,pi=1073741824;function ps(a){return a&gn?"Sync":a&Aa?"InputContinuousHydration":a&Ra?"InputContinuous":a&eu?"DefaultHydration":a&sa?"Default":a&Sc?"TransitionHydration":a&Ta?"Transition":a&Ec?"Retry":a&Zd?"SelectiveHydration":a&hs?"IdleHydration":a&El?"Idle":a&pi?"Offscreen":void 0}var ir=-1,Cc=Pi,nu=kc;function xc(a){switch(iu(a)){case gn:return gn;case Aa:return Aa;case Ra:return Ra;case eu:return eu;case sa:return sa;case Sc:return Sc;case Pi:case tu:case Bh:case i1:case Pa:case ds:case jh:case o1:case La:case fs:case Yd:case a1:case Gd:case s1:case u1:case zh:return a&Ta;case kc:case l1:case c1:case Uh:case Mc:return a&Ec;case Zd:return Zd;case hs:return hs;case El:return El;case pi:return pi;default:return i("Should have found matching lanes. This is a bug in React."),a}}function ru(a,s){var v=a.pendingLanes;if(v===st)return st;var M=st,A=a.suspendedLanes,N=a.pingedLanes,F=v&Vg;if(F!==st){var $=F&~A;if($!==st)M=xc($);else{var G=F&N;G!==st&&(M=xc(G))}}else{var Z=v&~A;Z!==st?M=xc(Z):N!==st&&(M=xc(N))}if(M===st)return st;if(s!==st&&s!==M&&(s&A)===st){var ce=iu(M),Se=iu(s);if(ce>=Se||ce===sa&&(Se&Ta)!==st)return s}(M&Ra)!==st&&(M|=v&sa);var Ee=a.entangledLanes;if(Ee!==st)for(var ve=a.entanglements,he=M&Ee;he>0;){var se=or(he),te=1<<se;M|=ve[se],he&=~te}return M}function Jy(a,s){switch(a){case gn:case Aa:case Ra:return s+250;case eu:case sa:case Sc:case Pi:case tu:case Bh:case i1:case Pa:case ds:case jh:case o1:case La:case fs:case Yd:case a1:case Gd:case s1:case u1:case zh:return s+5e3;case kc:case l1:case c1:case Uh:case Mc:case Zd:case hs:case El:case pi:return ir;default:return i("Should have found matching lanes. This is a bug in React."),ir}}function Kh(a){var s=a.pendingLanes&~pi;return s!==st?s:s&pi?pi:st}function Tr(a){return(a&Vg)!==st}function qh(a){return(a&Ec)===a}function Qd(a,s){return(s&(Aa|Ra|eu|sa))!==st}function d1(a){return(a&Ta)!==st}function Hh(){var a=Cc;return((Cc<<=1)&Ta)===st&&(Cc=Pi),a}function iu(a){return a&-a}function Ia(a){return iu(a)}function or(a){return 31-Hg(a)}function Jr(a){return or(a)}function Xn(a,s){return(a&s)!==st}function ou(a,s){return(a&s)===s}function yn(a,s){return a|s}function kl(a,s){return a&~s}function e3(a,s){return a&s}function oi(a){for(var s=[],v=0;v<$g;v++)s.push(a);return s}function Ac(a,s,v){a.pendingLanes|=s,s!==El&&(a.suspendedLanes=st,a.pingedLanes=st),a.eventTimes[Jr(s)]=v}function f1(a,s,v){a.pingedLanes|=a.suspendedLanes&s}function Wh(a,s){for(var v=a.entangledLanes|=s,M=a.entanglements,A=v;A;){var N=or(A),F=1<<N;F&s|M[N]&s&&(M[N]|=s),A&=~F}}function Oa(a,s,v){if(go)for(var M=a.pendingUpdatersLaneMap;v>0;){var A=Jr(v),N=1<<A;M[A].add(s),v&=~N}}function Oo(a,s){if(go)for(var v=a.pendingUpdatersLaneMap,M=a.memoizedUpdaters;s>0;){var A=Jr(s),N=1<<A,F=v[A];F.size>0&&(F.forEach(function($){var G=$.alternate;G!==null&&M.has(G)||M.add($)}),F.clear()),s&=~N}}var Xd,$h,h1,Yg,Gg,No=gn,ms=Ra,au=sa,Vh=El,Jd=$r;function Na(){return Jd}function ei(a){Jd=a}function p1(a,s){return a!==0&&a<s}function Yh(a){var s=iu(a);return p1(No,s)?p1(ms,s)?Tr(s)?au:Vh:ms:No}function Rc(a){return a.current.memoizedState.isDehydrated}function t3(a){Xd(a)}var Gh=!1,Zh=[],su=null,uu=null,lu=null,Tc=new Map,ef=new Map,cu=[],n3=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function r3(a,s){switch(a){case"focusin":case"focusout":su=null;break;case"dragenter":case"dragleave":uu=null;break;case"mouseover":case"mouseout":lu=null;break;case"pointerover":case"pointerout":var v=s.pointerId;Tc.delete(v);break;case"gotpointercapture":case"lostpointercapture":var M=s.pointerId;ef.delete(M)}}function tf(a,s,v,M,A,N){if(a===null||a.nativeEvent!==N){var F=function(Z,ce,Se,Ee,ve){return{blockedOn:Z,domEventName:ce,eventSystemFlags:Se,nativeEvent:ve,targetContainers:[Ee]}}(s,v,M,A,N);if(s!==null){var $=yf(s);$!==null&&$h($)}return F}a.eventSystemFlags|=M;var G=a.targetContainers;return A!==null&&G.indexOf(A)===-1&&G.push(A),a}function i3(a){var s=b0(a.target);if(s!==null){var v=ra(s);if(v!==null){var M=v.tag;if(M===le){var A=Nh(v);if(A!==null)return a.blockedOn=A,void Gg(a.priority,function(){h1(v)})}else if(M===S&&Rc(v.stateNode))return void(a.blockedOn=e1(v))}}a.blockedOn=null}function m1(a){if(a.blockedOn!==null)return!1;for(var s,v=a.targetContainers;v.length>0;){var M=v[0],A=v1(a.domEventName,a.eventSystemFlags,M,a.nativeEvent);if(A!==null){var N=yf(A);return N!==null&&$h(N),a.blockedOn=A,!1}var F=a.nativeEvent,$=new F.constructor(F.type,F);s=$,Rh!==null&&i("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Rh=s,F.target.dispatchEvent($),Rh===null&&i("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Rh=null,v.shift()}return!0}function Zg(a,s,v){m1(a)&&v.delete(s)}function o3(){Gh=!1,su!==null&&m1(su)&&(su=null),uu!==null&&m1(uu)&&(uu=null),lu!==null&&m1(lu)&&(lu=null),Tc.forEach(Zg),ef.forEach(Zg)}function nf(a,s){a.blockedOn===s&&(a.blockedOn=null,Gh||(Gh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,o3)))}function Ml(a){if(Zh.length>0){nf(Zh[0],a);for(var s=1;s<Zh.length;s++){var v=Zh[s];v.blockedOn===a&&(v.blockedOn=null)}}su!==null&&nf(su,a),uu!==null&&nf(uu,a),lu!==null&&nf(lu,a);var M=function($){return nf($,a)};Tc.forEach(M),ef.forEach(M);for(var A=0;A<cu.length;A++){var N=cu[A];N.blockedOn===a&&(N.blockedOn=null)}for(;cu.length>0;){var F=cu[0];if(F.blockedOn!==null)break;i3(F),F.blockedOn===null&&cu.shift()}}var rf=n.ReactCurrentBatchConfig,Qg=!0;function a3(a){Qg=!!a}function of(a,s,v,M){var A=Na(),N=rf.transition;rf.transition=null;try{ei(No),Qh(a,s,v,M)}finally{ei(A),rf.transition=N}}function Xg(a,s,v,M){var A=Na(),N=rf.transition;rf.transition=null;try{ei(ms),Qh(a,s,v,M)}finally{ei(A),rf.transition=N}}function Qh(a,s,v,M){Qg&&function(A,N,F,$){var G=v1(A,N,F,$);if(G===null)return P1(A,N,$,g1,F),void r3(A,$);if(function(Se,Ee,ve,he,se){switch(Ee){case"focusin":return su=tf(su,Se,Ee,ve,he,se),!0;case"dragenter":return uu=tf(uu,Se,Ee,ve,he,se),!0;case"mouseover":return lu=tf(lu,Se,Ee,ve,he,se),!0;case"pointerover":var te=se,ge=te.pointerId;return Tc.set(ge,tf(Tc.get(ge)||null,Se,Ee,ve,he,te)),!0;case"gotpointercapture":var _e=se,xe=_e.pointerId;return ef.set(xe,tf(ef.get(xe)||null,Se,Ee,ve,he,_e)),!0}return!1}(G,A,N,F,$))return void $.stopPropagation();if(r3(A,$),N&jd&&function(Se){return n3.indexOf(Se)>-1}(A)){for(;G!==null;){var Z=yf(G);Z!==null&&t3(Z);var ce=v1(A,N,F,$);if(ce===null&&P1(A,N,$,g1,F),ce===G)break;G=ce}return void(G!==null&&$.stopPropagation())}P1(A,N,$,null,F)}(a,s,v,M)}var g1=null;function v1(a,s,v,M){g1=null;var A=b0(Ng(M));if(A!==null){var N=ra(A);if(N===null)A=null;else{var F=N.tag;if(F===le){var $=Nh(N);if($!==null)return $;A=null}else if(F===S){if(Rc(N.stateNode))return e1(N);A=null}else N!==A&&(A=null)}}return g1=A,null}function Jg(a){switch(a){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return No;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return ms;case"message":switch(Zy()){case Dh:return No;case Wd:return ms;case Sl:case Js:return au;case $d:return Vh;default:return au}default:return au}}var af=null,b1=null,Xh=null;function s3(){if(Xh)return Xh;var a,s,v=b1,M=v.length,A=Zi(),N=A.length;for(a=0;a<M&&v[a]===A[a];a++);var F=M-a;for(s=1;s<=F&&v[M-s]===A[N-s];s++);var $=s>1?1-s:void 0;return Xh=A.slice(a,$)}function Zi(){return"value"in af?af.value:af.textContent}function mi(a){var s,v=a.keyCode;return"charCode"in a?(s=a.charCode)===0&&v===13&&(s=13):s=v,s===10&&(s=13),s>=32||s===13?s:0}function Jh(){return!0}function e2(){return!1}function vo(a){function s(v,M,A,N,F){for(var $ in this._reactName=v,this._targetInst=A,this.type=M,this.nativeEvent=N,this.target=F,this.currentTarget=null,a)if(a.hasOwnProperty($)){var G=a[$];this[$]=G?G(N):N[$]}var Z=N.defaultPrevented!=null?N.defaultPrevented:N.returnValue===!1;return this.isDefaultPrevented=Z?Jh:e2,this.isPropagationStopped=e2,this}return un(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=Jh)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=Jh)},persist:function(){},isPersistent:Jh}),s}var y1,w1,Pc,Lc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},e0=vo(Lc),sf=un({},Lc,{view:0,detail:0}),u3=vo(sf),t0=un({},sf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uf,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(function(s){s!==Pc&&(Pc&&s.type==="mousemove"?(y1=s.screenX-Pc.screenX,w1=s.screenY-Pc.screenY):(y1=0,w1=0),Pc=s)}(a),y1)},movementY:function(a){return"movementY"in a?a.movementY:w1}}),_1=vo(t0),l3=vo(un({},t0,{dataTransfer:0})),S1=vo(un({},sf,{relatedTarget:0})),t2=vo(un({},Lc,{animationName:0,elapsedTime:0,pseudoElement:0})),n2=vo(un({},Lc,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}})),r2=vo(un({},Lc,{data:0})),i2=r2,E1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},c3={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},o2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function d3(a){var s=this.nativeEvent;if(s.getModifierState)return s.getModifierState(a);var v=o2[a];return!!v&&!!s[v]}function uf(a){return d3}var du=un({},sf,{key:function(a){if(a.key){var s=E1[a.key]||a.key;if(s!=="Unidentified")return s}if(a.type==="keypress"){var v=mi(a);return v===13?"Enter":String.fromCharCode(v)}return a.type==="keydown"||a.type==="keyup"?c3[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uf,charCode:function(a){return a.type==="keypress"?mi(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?mi(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),n0=vo(du),Li=vo(un({},t0,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),h7=vo(un({},sf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uf})),p7=vo(un({},Lc,{propertyName:0,elapsedTime:0,pseudoElement:0})),k1=vo(un({},t0,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0})),Ii=[9,13,27,32],f3=229,zt=ie&&"CompositionEvent"in window,gs=null;ie&&"documentMode"in document&&(gs=document.documentMode);var h3=ie&&"TextEvent"in window&&!gs,a2=ie&&(!zt||gs&&gs>8&&gs<=11),lf=32,r0=String.fromCharCode(lf),M1=!1;function s2(a,s){switch(a){case"keyup":return Ii.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==f3;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function u2(a){var s=a.detail;return typeof s=="object"&&"data"in s?s.data:null}function l2(a){return a.locale==="ko"}var Cl=!1;function c2(a,s,v,M,A){var N,F;if(zt?N=function(ce){switch(ce){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}(s):Cl?s2(s,M)&&(N="onCompositionEnd"):function(ce,Se){return ce==="keydown"&&Se.keyCode===f3}(s,M)&&(N="onCompositionStart"),!N)return null;a2&&!l2(M)&&(Cl||N!=="onCompositionStart"?N==="onCompositionEnd"&&Cl&&(F=s3()):Cl=function(ce){return af=ce,b1=Zi(),!0}(A));var $=vu(v,N);if($.length>0){var G=new r2(N,s,null,M,A);if(a.push({event:G,listeners:$}),F)G.data=F;else{var Z=u2(M);Z!==null&&(G.data=Z)}}}function Qi(a,s){if(Cl){if(a==="compositionend"||!zt&&s2(a,s)){var v=s3();return af=null,b1=null,Xh=null,Cl=!1,v}return null}switch(a){case"paste":default:return null;case"keypress":if(!function(M){return(M.ctrlKey||M.altKey||M.metaKey)&&!(M.ctrlKey&&M.altKey)}(s)){if(s.char&&s.char.length>1)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return a2&&!l2(s)?null:s.data}}function vs(a,s,v,M,A){var N;if(!(N=h3?function(G,Z){switch(G){case"compositionend":return u2(Z);case"keypress":return Z.which!==lf?null:(M1=!0,r0);case"textInput":var ce=Z.data;return ce===r0&&M1?null:ce;default:return null}}(s,M):Qi(s,M)))return null;var F=vu(v,"onBeforeInput");if(F.length>0){var $=new i2("onBeforeInput","beforeinput",null,M,A);a.push({event:$,listeners:F}),$.data=N}}var xl={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function d2(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s==="input"?!!xl[a.type]:s==="textarea"}/**
92
+ * Checks if an event is supported in the current execution environment.
93
+ *
94
+ * NOTE: This will not work correctly for non-generic events such as `change`,
95
+ * `reset`, `load`, `error`, and `select`.
96
+ *
97
+ * Borrows from Modernizr.
98
+ *
99
+ * @param {string} eventNameSuffix Event name, e.g. "click".
100
+ * @return {boolean} True if the event is supported.
101
+ * @internal
102
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
103
+ */function f2(a,s,v,M){Dg(M);var A=vu(s,"onChange");if(A.length>0){var N=new e0("onChange","change",null,v,M);a.push({event:N,listeners:A})}}var Do=null,cf=null;function fu(a){w2(a,0)}function C1(a){if(fi(j1(a)))return a}function p3(a,s){if(a==="change")return s}var h2=!1;function p2(){Do&&(Do.detachEvent("onpropertychange",m2),Do=null,cf=null)}function m2(a){a.propertyName==="value"&&C1(cf)&&function(s){var v=[];f2(v,cf,s,Ng(s)),Bg(fu,v)}(a)}function m3(a,s,v){a==="focusin"?(p2(),function(M,A){cf=A,(Do=M).attachEvent("onpropertychange",m2)}(s,v)):a==="focusout"&&p2()}function m7(a,s){if(a==="selectionchange"||a==="keyup"||a==="keydown")return C1(cf)}function x1(a,s){if(a==="click")return C1(s)}function g2(a,s){if(a==="input"||a==="change")return C1(s)}function ua(a,s,v,M,A,N,F){var $,G,Z,ce,Se=v?j1(v):window;if((ce=(Z=Se).nodeName&&Z.nodeName.toLowerCase())==="select"||ce==="input"&&Z.type==="file"?$=p3:d2(Se)?h2?$=g2:($=m7,G=m3):function(ve){var he=ve.nodeName;return he&&he.toLowerCase()==="input"&&(ve.type==="checkbox"||ve.type==="radio")}(Se)&&($=x1),$){var Ee=$(s,v);if(Ee)return void f2(a,Ee,M,A)}G&&G(s,Se,v),s==="focusout"&&function(ve){var he=ve._wrapperState;he&&he.controlled&&ve.type==="number"&&Od(ve,"number",ve.value)}(Se)}function Vn(a,s,v,M,A,N,F){var $=s==="mouseover"||s==="pointerover",G=s==="mouseout"||s==="pointerout";if($&&M!==Rh){var Z=M.relatedTarget||M.fromElement;if(Z&&(b0(Z)||x2(Z)))return}if(G||$){var ce,Se,Ee;if(A.window===A)ce=A;else{var ve=A.ownerDocument;ce=ve?ve.defaultView||ve.parentWindow:window}if(G){var he=M.relatedTarget||M.toElement;Se=v,(Ee=he?b0(he):null)!==null&&(Ee!==ra(Ee)||Ee.tag!==T&&Ee.tag!==I)&&(Ee=null)}else Se=null,Ee=v;if(Se!==Ee){var se=_1,te="onMouseLeave",ge="onMouseEnter",_e="mouse";s!=="pointerout"&&s!=="pointerover"||(se=Li,te="onPointerLeave",ge="onPointerEnter",_e="pointer");var xe=Se==null?ce:j1(Se),Oe=Ee==null?ce:j1(Ee),Ne=new se(te,_e+"leave",Se,M,A);Ne.target=xe,Ne.relatedTarget=Oe;var je=null;if(b0(A)===v){var Ge=new se(ge,_e+"enter",Ee,M,A);Ge.target=Oe,Ge.relatedTarget=xe,je=Ge}(function(Je,Xe,Et,Dt,Wt){var ln=Dt&&Wt?function(Tn,bn){for(var jn=Tn,ar=bn,Lr=0,qo=jn;qo;qo=zc(qo))Lr++;for(var Gn=0,kr=ar;kr;kr=zc(kr))Gn++;for(;Lr-Gn>0;)jn=zc(jn),Lr--;for(;Gn-Lr>0;)ar=zc(ar),Gn--;for(var ui=Lr;ui--;){if(jn===ar||ar!==null&&jn===ar.alternate)return jn;jn=zc(jn),ar=zc(ar)}return null}(Dt,Wt):null;Dt!==null&&Or(Je,Xe,Dt,ln,!1),Wt!==null&&Et!==null&&Or(Je,Et,Wt,ln,!0)})(a,Ne,je,Se,Ee)}}}ie&&(h2=function(a){if(!ie)return!1;var s="on"+a,v=s in document;if(!v){var M=document.createElement("div");M.setAttribute(s,"return;"),v=typeof M[s]=="function"}return v}("input")&&(!document.documentMode||document.documentMode>9));var Jn=typeof Object.is=="function"?Object.is:function(a,s){return a===s&&(a!==0||1/a==1/s)||a!=a&&s!=s};function Pr(a,s){if(Jn(a,s))return!0;if(typeof a!="object"||a===null||typeof s!="object"||s===null)return!1;var v=Object.keys(a),M=Object.keys(s);if(v.length!==M.length)return!1;for(var A=0;A<v.length;A++){var N=v[A];if(!oe.call(s,N)||!Jn(a[N],s[N]))return!1}return!0}function ai(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Bo(a){for(;a;){if(a.nextSibling)return a.nextSibling;a=a.parentNode}}function Ic(a,s){for(var v=ai(a),M=0,A=0;v;){if(v.nodeType===Vs){if(A=M+v.textContent.length,M<=s&&A>=s)return{node:v,offset:s-M};M=A}v=ai(Bo(v))}}function ti(a){var s=a.ownerDocument,v=s&&s.defaultView||window,M=v.getSelection&&v.getSelection();if(!M||M.rangeCount===0)return null;var A=M.anchorNode,N=M.anchorOffset,F=M.focusNode,$=M.focusOffset;try{A.nodeType,F.nodeType}catch{return null}return function(G,Z,ce,Se,Ee){var ve=0,he=-1,se=-1,te=0,ge=0,_e=G,xe=null;e:for(;;){for(var Oe=null;_e!==Z||ce!==0&&_e.nodeType!==Vs||(he=ve+ce),_e!==Se||Ee!==0&&_e.nodeType!==Vs||(se=ve+Ee),_e.nodeType===Vs&&(ve+=_e.nodeValue.length),(Oe=_e.firstChild)!==null;)xe=_e,_e=Oe;for(;;){if(_e===G)break e;if(xe===Z&&++te===ce&&(he=ve),xe===Se&&++ge===Ee&&(se=ve),(Oe=_e.nextSibling)!==null)break;xe=(_e=xe).parentNode}_e=Oe}return he===-1||se===-1?null:{start:he,end:se}}(a,A,N,F,$)}function df(a){return a&&a.nodeType===Vs}function Al(a,s){return!(!a||!s)&&(a===s||!df(a)&&(df(s)?Al(a,s.parentNode):"contains"in a?a.contains(s):!!a.compareDocumentPosition&&!!(16&a.compareDocumentPosition(s))))}function A1(a){return a&&a.ownerDocument&&Al(a.ownerDocument.documentElement,a)}function v2(a){try{return typeof a.contentWindow.location.href=="string"}catch{return!1}}function ff(){for(var a=window,s=ta();s instanceof a.HTMLIFrameElement;){if(!v2(s))return s;s=ta((a=s.contentWindow).document)}return s}function Xi(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}function b2(a){var s=ff(),v=a.focusedElem,M=a.selectionRange;if(s!==v&&A1(v)){M!==null&&Xi(v)&&function(G,Z){var ce=Z.start,Se=Z.end;Se===void 0&&(Se=ce),"selectionStart"in G?(G.selectionStart=ce,G.selectionEnd=Math.min(Se,G.value.length)):function(Ee,ve){var he=Ee.ownerDocument||document,se=he&&he.defaultView||window;if(se.getSelection){var te=se.getSelection(),ge=Ee.textContent.length,_e=Math.min(ve.start,ge),xe=ve.end===void 0?_e:Math.min(ve.end,ge);if(!te.extend&&_e>xe){var Oe=xe;xe=_e,_e=Oe}var Ne=Ic(Ee,_e),je=Ic(Ee,xe);if(Ne&&je){if(te.rangeCount===1&&te.anchorNode===Ne.node&&te.anchorOffset===Ne.offset&&te.focusNode===je.node&&te.focusOffset===je.offset)return;var Ge=he.createRange();Ge.setStart(Ne.node,Ne.offset),te.removeAllRanges(),_e>xe?(te.addRange(Ge),te.extend(je.node,je.offset)):(Ge.setEnd(je.node,je.offset),te.addRange(Ge))}}}(G,Z)}(v,M);for(var A=[],N=v;N=N.parentNode;)N.nodeType===po&&A.push({element:N,left:N.scrollLeft,top:N.scrollTop});typeof v.focus=="function"&&v.focus();for(var F=0;F<A.length;F++){var $=A[F];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}}function hf(a){return("selectionStart"in a?{start:a.selectionStart,end:a.selectionEnd}:ti(a))||{start:0,end:0}}var Rl=ie&&"documentMode"in document&&document.documentMode<=11,hu=null,i0=null,la=null,pf=!1;function pu(a,s,v){var M,A=(M=v).window===M?M.document:M.nodeType===rs?M:M.ownerDocument;if(!pf&&hu!=null&&hu===ta(A)){var N=function(G){if("selectionStart"in G&&Xi(G))return{start:G.selectionStart,end:G.selectionEnd};var Z=(G.ownerDocument&&G.ownerDocument.defaultView||window).getSelection();return{anchorNode:Z.anchorNode,anchorOffset:Z.anchorOffset,focusNode:Z.focusNode,focusOffset:Z.focusOffset}}(hu);if(!la||!Pr(la,N)){la=N;var F=vu(i0,"onSelect");if(F.length>0){var $=new e0("onSelect","select",null,s,v);a.push({event:$,listeners:F}),$.target=hu}}}}function Oc(a,s){var v={};return v[a.toLowerCase()]=s.toLowerCase(),v["Webkit"+a]="webkit"+s,v["Moz"+a]="moz"+s,v}var bs={animationend:Oc("Animation","AnimationEnd"),animationiteration:Oc("Animation","AnimationIteration"),animationstart:Oc("Animation","AnimationStart"),transitionend:Oc("Transition","TransitionEnd")},o0={},a0={};function Nc(a){if(o0[a])return o0[a];if(!bs[a])return a;var s=bs[a];for(var v in s)if(s.hasOwnProperty(v)&&v in a0)return o0[a]=s[v];return a}ie&&(a0=document.createElement("div").style,"AnimationEvent"in window||(delete bs.animationend.animation,delete bs.animationiteration.animation,delete bs.animationstart.animation),"TransitionEvent"in window||delete bs.transitionend.transition);var Oi=Nc("animationend"),mu=Nc("animationiteration"),ca=Nc("animationstart"),Ji=Nc("transitionend"),y2=new Map,R1=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function ys(a,s){y2.set(a,s),we(s,[a])}function Tl(a,s,v,M,A,N,F){var $=y2.get(s);if($!==void 0){var G=e0,Z=s;switch(s){case"keypress":if(mi(M)===0)return;case"keydown":case"keyup":G=n0;break;case"focusin":Z="focus",G=S1;break;case"focusout":Z="blur",G=S1;break;case"beforeblur":case"afterblur":G=S1;break;case"click":if(M.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=_1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=l3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=h7;break;case Oi:case mu:case ca:G=t2;break;case Ji:G=p7;break;case"scroll":G=u3;break;case"wheel":G=k1;break;case"copy":case"cut":case"paste":G=n2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Li}var ce=(N&jd)!=0,Se=!ce&&s==="scroll",Ee=function(he,se,te,ge,_e,xe){for(var Oe=se!==null?se+"Capture":null,Ne=ge?Oe:se,je=[],Ge=he,Je=null;Ge!==null;){var Xe=Ge,Et=Xe.stateNode;if(Xe.tag===T&&Et!==null&&(Je=Et,Ne!==null)){var Dt=zd(Ge,Ne);Dt!=null&&je.push(ws(Ge,Dt,Je))}if(_e)break;Ge=Ge.return}return je}(v,$,M.type,ce,Se);if(Ee.length>0){var ve=new G($,Z,null,M,A);a.push({event:ve,listeners:Ee})}}}function g3(a,s,v,M,A,N,F){Tl(a,s,v,M,A,N),!(N&Og)&&(Vn(a,s,v,M,A),ua(a,s,v,M,A),function($,G,Z,ce,Se,Ee,ve){var he=Z?j1(Z):window;switch(G){case"focusin":(d2(he)||he.contentEditable==="true")&&(hu=he,i0=Z,la=null);break;case"focusout":hu=null,i0=null,la=null;break;case"mousedown":pf=!0;break;case"contextmenu":case"mouseup":case"dragend":pf=!1,pu($,ce,Se);break;case"selectionchange":if(Rl)break;case"keydown":case"keyup":pu($,ce,Se)}}(a,s,v,M,A),function($,G,Z,ce,Se,Ee,ve){c2($,G,Z,ce,Se),vs($,G,Z,ce,Se)}(a,s,v,M,A))}(function(){for(var a=0;a<R1.length;a++){var s=R1[a];ys(s.toLowerCase(),"on"+(s[0].toUpperCase()+s.slice(1)))}ys(Oi,"onAnimationEnd"),ys(mu,"onAnimationIteration"),ys(ca,"onAnimationStart"),ys("dblclick","onDoubleClick"),ys("focusin","onFocus"),ys("focusout","onBlur"),ys(Ji,"onTransitionEnd")})(),de("onMouseEnter",["mouseout","mouseover"]),de("onMouseLeave",["mouseout","mouseover"]),de("onPointerEnter",["pointerout","pointerover"]),de("onPointerLeave",["pointerout","pointerover"]),we("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"]),we("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"]),we("onBeforeInput",["compositionend","keypress","textInput","paste"]),we("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),we("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),we("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"]);var Dc=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],gu=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Dc));function T1(a,s,v){var M=a.type||"unknown-event";a.currentTarget=v,function(A,N,F,$,G,Z,ce,Se,Ee){if(hr.apply(this,arguments),gl){var ve=Ph();Zp||(Zp=!0,Qp=ve)}}(M,s,void 0,a),a.currentTarget=null}function Bc(a,s,v){var M;if(v)for(var A=s.length-1;A>=0;A--){var N=s[A],F=N.instance,$=N.currentTarget,G=N.listener;if(F!==M&&a.isPropagationStopped())return;T1(a,G,$),M=F}else for(var Z=0;Z<s.length;Z++){var ce=s[Z],Se=ce.instance,Ee=ce.currentTarget,ve=ce.listener;if(Se!==M&&a.isPropagationStopped())return;T1(a,ve,Ee),M=Se}}function w2(a,s){for(var v=(s&jd)!=0,M=0;M<a.length;M++){var A=a[M];Bc(A.event,A.listeners,v)}(function(){if(Zp){var N=Qp;throw Zp=!1,Qp=null,N}})()}function gr(a,s){gu.has(a)||i('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',a);var v=function(A){var N=A[y7];return N===void 0&&(N=A[y7]=new Set),N}(s),M=function(A,N){return A+"__bubble"}(a);v.has(M)||(v3(s,a,Hp,!1),v.add(M))}function s0(a,s,v){gu.has(a)&&!s&&i('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',a);var M=0;s&&(M|=jd),v3(v,a,M,s)}var jc="_reactListening"+Math.random().toString(36).slice(2);function u0(a){if(!a[jc]){a[jc]=!0,Q.forEach(function(v){v!=="selectionchange"&&(gu.has(v)||s0(v,!1,a),s0(v,!0,a))});var s=a.nodeType===rs?a:a.ownerDocument;s!==null&&(s[jc]||(s[jc]=!0,s0("selectionchange",!1,s)))}}function v3(a,s,v,M,A){var N=function($,G,Z){var ce;switch(Jg(G)){case No:ce=of;break;case ms:ce=Xg;break;default:ce=Qh}return ce.bind(null,G,Z,$)}(a,s,v),F=void 0;Gp&&(s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(F=!0)),M?F!==void 0?function($,G,Z,ce){$.addEventListener(G,Z,{capture:!0,passive:ce})}(a,s,N,F):function($,G,Z){$.addEventListener(G,Z,!0)}(a,s,N):F!==void 0?function($,G,Z,ce){$.addEventListener(G,Z,{passive:ce})}(a,s,N,F):function($,G,Z){$.addEventListener(G,Z,!1)}(a,s,N)}function _2(a,s){return a===s||a.nodeType===Qr&&a.parentNode===s}function P1(a,s,v,M,A){var N=M;if(!(s&Ig)&&!(s&Hp)){var F=A;if(M!==null){var $=M;e:for(;;){if($===null)return;var G=$.tag;if(G===S||G===E){var Z=$.stateNode.containerInfo;if(_2(Z,F))break;if(G===E)for(var ce=$.return;ce!==null;){var Se=ce.tag;if((Se===S||Se===E)&&_2(ce.stateNode.containerInfo,F))return;ce=ce.return}for(;Z!==null;){var Ee=b0(Z);if(Ee===null)return;var ve=Ee.tag;if(ve===T||ve===I){$=N=Ee;continue e}Z=Z.parentNode}}$=$.return}}}Bg(function(){return function(he,se,te,ge,_e){var xe=[];g3(xe,he,ge,te,Ng(te),se),w2(xe,se)}(a,s,v,N)})}function ws(a,s,v){return{instance:a,listener:s,currentTarget:v}}function vu(a,s){for(var v=s+"Capture",M=[],A=a;A!==null;){var N=A,F=N.stateNode;if(N.tag===T&&F!==null){var $=F,G=zd(A,v);G!=null&&M.unshift(ws(A,G,$));var Z=zd(A,s);Z!=null&&M.push(ws(A,Z,$))}A=A.return}return M}function zc(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==T);return a||null}function Or(a,s,v,M,A){for(var N=s._reactName,F=[],$=v;$!==null&&$!==M;){var G=$,Z=G.alternate,ce=G.stateNode,Se=G.tag;if(Z!==null&&Z===M)break;if(Se===T&&ce!==null){var Ee=ce;if(A){var ve=zd($,N);ve!=null&&F.unshift(ws($,ve,Ee))}else if(!A){var he=zd($,N);he!=null&&F.push(ws($,he,Ee))}}$=$.return}F.length!==0&&a.push({event:s,listeners:F})}var S2,l0,c0,b3,d0,y3,jo,Ni=!1,da="dangerouslySetInnerHTML",Uc="suppressContentEditableWarning",bo="suppressHydrationWarning",f0="autoFocus",bu="children",yu="style",L1="__html";S2={dialog:!0,webview:!0},l0=function(a,s){Wy(a,s),function(v,M){v!=="input"&&v!=="textarea"&&v!=="select"||M==null||M.value!==null||Lg||(Lg=!0,v==="select"&&M.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",v):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",v))}(a,s),Yy(a,s,{registrationNameDependencies:ae,possibleRegistrationNames:re})},y3=ie&&!document.documentMode,c0=function(a,s,v){if(!Ni){var M=h0(v),A=h0(s);A!==M&&(Ni=!0,i("Prop `%s` did not match. Server: %s Client: %s",a,JSON.stringify(A),JSON.stringify(M)))}},b3=function(a){if(!Ni){Ni=!0;var s=[];a.forEach(function(v){s.push(v)}),i("Extra attributes from the server: %s",s)}},d0=function(a,s){s===!1?i("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",a,a,a):i("Expected `%s` listener to be a function, instead got a value of `%s` type.",a,typeof s)},jo=function(a,s){var v=a.namespaceURI===ho?a.ownerDocument.createElement(a.tagName):a.ownerDocument.createElementNS(a.namespaceURI,a.tagName);return v.innerHTML=s,v.innerHTML};var E2=/\r\n?/g,w3=/\u0000|\uFFFD/g;function h0(a){return function(s){me(s)&&i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",fe(s))}(a),(typeof a=="string"?a:""+a).replace(E2,`
104
+ `).replace(w3,"")}function Fc(a,s,v,M){var A=h0(s),N=h0(a);if(N!==A&&(M&&(Ni||(Ni=!0,i('Text content did not match. Server: "%s" Client: "%s"',N,A))),v&&b))throw new Error("Text content does not match server-rendered HTML.")}function p0(a){return a.nodeType===rs?a:a.ownerDocument}function _3(){}function mf(a){a.onclick=_3}function S3(a,s,v,M){var A,N=pc(s,v);switch(l0(s,v),s){case"dialog":gr("cancel",a),gr("close",a),A=v;break;case"iframe":case"object":case"embed":gr("load",a),A=v;break;case"video":case"audio":for(var F=0;F<Dc.length;F++)gr(Dc[F],a);A=v;break;case"source":gr("error",a),A=v;break;case"img":case"image":case"link":gr("error",a),gr("load",a),A=v;break;case"details":gr("toggle",a),A=v;break;case"input":bg(a,v),A=hl(a,v),gr("invalid",a);break;case"option":Eh(0,v),A=v;break;case"select":Ch(a,v),A=Nd(0,v),gr("invalid",a);break;case"textarea":Bp(a,v),A=Wi(a,v),gr("invalid",a);break;default:A=v}switch(hc(s,A),function($,G,Z,ce,Se){for(var Ee in ce)if(ce.hasOwnProperty(Ee)){var ve=ce[Ee];if(Ee===yu)ve&&Object.freeze(ve),fc(G,ve);else if(Ee===da){var he=ve?ve[L1]:void 0;he!=null&&Up(G,he)}else Ee===bu?typeof ve=="string"?($!=="textarea"||ve!=="")&&Fp(G,ve):typeof ve=="number"&&Fp(G,""+ve):Ee===Uc||Ee===bo||Ee===f0||(ae.hasOwnProperty(Ee)?ve!=null&&(typeof ve!="function"&&d0(Ee,ve),Ee==="onScroll"&&gr("scroll",G)):ve!=null&&Vt(G,Ee,ve,Se))}}(s,a,0,A,N),s){case"input":zr(a),Ld(a,v,!1);break;case"textarea":zr(a),Dd(a);break;case"option":(function($,G){G.value!=null&&$.setAttribute("value",hn(on(G.value)))})(a,v);break;case"select":(function($,G){var Z=$;Z.multiple=!!G.multiple;var ce=G.value;ce!=null?cc(Z,!!G.multiple,ce,!1):G.defaultValue!=null&&cc(Z,!!G.multiple,G.defaultValue,!0)})(a,v);break;default:typeof A.onClick=="function"&&mf(a)}}function k2(a,s,v,M,A){l0(s,M);var N,F,$,G,Z=null;switch(s){case"input":N=hl(a,v),F=hl(a,M),Z=[];break;case"select":N=Nd(0,v),F=Nd(0,M),Z=[];break;case"textarea":N=Wi(a,v),F=Wi(a,M),Z=[];break;default:F=M,typeof(N=v).onClick!="function"&&typeof F.onClick=="function"&&mf(a)}hc(s,F);var ce=null;for($ in N)if(!F.hasOwnProperty($)&&N.hasOwnProperty($)&&N[$]!=null)if($===yu){var Se=N[$];for(G in Se)Se.hasOwnProperty(G)&&(ce||(ce={}),ce[G]="")}else $===da||$===bu||$===Uc||$===bo||$===f0||(ae.hasOwnProperty($)?Z||(Z=[]):(Z=Z||[]).push($,null));for($ in F){var Ee=F[$],ve=N!=null?N[$]:void 0;if(F.hasOwnProperty($)&&Ee!==ve&&(Ee!=null||ve!=null))if($===yu)if(Ee&&Object.freeze(Ee),ve){for(G in ve)!ve.hasOwnProperty(G)||Ee&&Ee.hasOwnProperty(G)||(ce||(ce={}),ce[G]="");for(G in Ee)Ee.hasOwnProperty(G)&&ve[G]!==Ee[G]&&(ce||(ce={}),ce[G]=Ee[G])}else ce||(Z||(Z=[]),Z.push($,ce)),ce=Ee;else if($===da){var he=Ee?Ee[L1]:void 0,se=ve?ve[L1]:void 0;he!=null&&se!==he&&(Z=Z||[]).push($,he)}else $===bu?typeof Ee!="string"&&typeof Ee!="number"||(Z=Z||[]).push($,""+Ee):$===Uc||$===bo||(ae.hasOwnProperty($)?(Ee!=null&&(typeof Ee!="function"&&d0($,Ee),$==="onScroll"&&gr("scroll",a)),Z||ve===Ee||(Z=[])):(Z=Z||[]).push($,Ee))}return ce&&(function(te,ge){if(ge){var _e=Rg(te),xe=Rg(ge),Oe={};for(var Ne in _e){var je=_e[Ne],Ge=xe[Ne];if(Ge&&je!==Ge){var Je=je+","+Ge;if(Oe[Je])continue;Oe[Je]=!0,i("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",c7(te[je])?"Removing":"Updating",je,Ge)}}}}(ce,F[yu]),(Z=Z||[]).push(yu,ce)),Z}function I1(a,s,v,M,A){switch(v==="input"&&A.type==="radio"&&A.name!=null&&Iy(a,A),pc(v,M),function(N,F,$,G){for(var Z=0;Z<F.length;Z+=2){var ce=F[Z],Se=F[Z+1];ce===yu?fc(N,Se):ce===da?Up(N,Se):ce===bu?Fp(N,Se):Vt(N,ce,Se,G)}}(a,s,0,pc(v,A)),v){case"input":lc(a,A);break;case"textarea":jp(a,A);break;case"select":(function(N,F){var $=N,G=$._wrapperState.wasMultiple;$._wrapperState.wasMultiple=!!F.multiple;var Z=F.value;Z!=null?cc($,!!F.multiple,Z,!1):G!==!!F.multiple&&(F.defaultValue!=null?cc($,!!F.multiple,F.defaultValue,!0):cc($,!!F.multiple,F.multiple?[]:"",!1))})(a,A)}}function m0(a,s){Ni||(Ni=!0,i("Did not expect server HTML to contain a <%s> in <%s>.",s.nodeName.toLowerCase(),a.nodeName.toLowerCase()))}function gf(a,s){Ni||(Ni=!0,i('Did not expect server HTML to contain the text node "%s" in <%s>.',s.nodeValue,a.nodeName.toLowerCase()))}function O1(a,s,v){Ni||(Ni=!0,i("Expected server HTML to contain a matching <%s> in <%s>.",s,a.nodeName.toLowerCase()))}function vf(a,s){s!==""&&(Ni||(Ni=!0,i('Expected server HTML to contain a matching text node for "%s" in <%s>.',s,a.nodeName.toLowerCase())))}var g0=function(){},wu=function(){},g7=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],v0=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],u=v0.concat(["button"]),m=["dd","dt","li","option","optgroup","p","rp","rt"],k={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};wu=function(a,s){var v=un({},a||k),M={tag:s};return v0.indexOf(s)!==-1&&(v.aTagInScope=null,v.buttonTagInScope=null,v.nobrTagInScope=null),u.indexOf(s)!==-1&&(v.pTagInButtonScope=null),g7.indexOf(s)!==-1&&s!=="address"&&s!=="div"&&s!=="p"&&(v.listItemTagAutoclosing=null,v.dlItemTagAutoclosing=null),v.current=M,s==="form"&&(v.formTag=M),s==="a"&&(v.aTagInScope=M),s==="button"&&(v.buttonTagInScope=M),s==="nobr"&&(v.nobrTagInScope=M),s==="p"&&(v.pTagInButtonScope=M),s==="li"&&(v.listItemTagAutoclosing=M),s!=="dd"&&s!=="dt"||(v.dlItemTagAutoclosing=M),v};var P={};g0=function(a,s,v){var M=(v=v||k).current,A=M&&M.tag;s!=null&&(a!=null&&i("validateDOMNesting: when childText is passed, childTag should be null"),a="#text");var N=function(ve,he){switch(he){case"select":return ve==="option"||ve==="optgroup"||ve==="#text";case"optgroup":return ve==="option"||ve==="#text";case"option":return ve==="#text";case"tr":return ve==="th"||ve==="td"||ve==="style"||ve==="script"||ve==="template";case"tbody":case"thead":case"tfoot":return ve==="tr"||ve==="style"||ve==="script"||ve==="template";case"colgroup":return ve==="col"||ve==="template";case"table":return ve==="caption"||ve==="colgroup"||ve==="tbody"||ve==="tfoot"||ve==="thead"||ve==="style"||ve==="script"||ve==="template";case"head":return ve==="base"||ve==="basefont"||ve==="bgsound"||ve==="link"||ve==="meta"||ve==="title"||ve==="noscript"||ve==="noframes"||ve==="style"||ve==="script"||ve==="template";case"html":return ve==="head"||ve==="body"||ve==="frameset";case"frameset":return ve==="frame";case"#document":return ve==="html"}switch(ve){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return he!=="h1"&&he!=="h2"&&he!=="h3"&&he!=="h4"&&he!=="h5"&&he!=="h6";case"rp":case"rt":return m.indexOf(he)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return he==null}return!0}(a,A)?null:M,F=N?null:function(ve,he){switch(ve){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return he.pTagInButtonScope;case"form":return he.formTag||he.pTagInButtonScope;case"li":return he.listItemTagAutoclosing;case"dd":case"dt":return he.dlItemTagAutoclosing;case"button":return he.buttonTagInScope;case"a":return he.aTagInScope;case"nobr":return he.nobrTagInScope}return null}(a,v),$=N||F;if($){var G=$.tag,Z=!!N+"|"+a+"|"+G;if(!P[Z]){P[Z]=!0;var ce=a,Se="";if(a==="#text"?/\S/.test(s)?ce="Text nodes":(ce="Whitespace text nodes",Se=" Make sure you don't have any extra whitespace between tags on each line of your source code."):ce="<"+a+">",N){var Ee="";G==="table"&&a==="tr"&&(Ee+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),i("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",ce,G,Se,Ee)}else i("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",ce,G)}}};var U="suppressHydrationWarning",W="$",J="/$",be="$?",ke="$!",Pe="style",Be=null,$e=null;function Ke(a){var s;return Be=Qg,s=ff(),$e={focusedElem:s,selectionRange:Xi(s)?hf(s):null},a3(!1),null}function Ye(a,s,v,M,A){var N=M;if(g0(a,null,N.ancestorInfo),typeof s.children=="string"||typeof s.children=="number"){var F=""+s.children,$=wu(N.ancestorInfo,a);g0(null,F,$)}var G=function(Z,ce,Se,Ee){var ve,he,se=p0(Se),te=Ee;if(te===ho&&(te=_g(Z)),te===ho){if((ve=pc(Z,ce))||Z===Z.toLowerCase()||i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",Z),Z==="script"){var ge=se.createElement("div");ge.innerHTML="<script><\/script>";var _e=ge.firstChild;he=ge.removeChild(_e)}else if(typeof ce.is=="string")he=se.createElement(Z,{is:ce.is});else if(he=se.createElement(Z),Z==="select"){var xe=he;ce.multiple?xe.multiple=!0:ce.size&&(xe.size=ce.size)}}else he=se.createElementNS(te,Z);return te===ho&&(ve||Object.prototype.toString.call(he)!=="[object HTMLUnknownElement]"||oe.call(S2,Z)||(S2[Z]=!0,i("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",Z))),he}(a,s,v,N.namespace);return C2(A,G),w7(G,s),G}function dt(a,s){return a==="textarea"||a==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}function yt(a,s,v,M){g0(null,a,v.ancestorInfo);var A=function(N,F){return p0(F).createTextNode(N)}(a,s);return C2(M,A),A}var qe=typeof setTimeout=="function"?setTimeout:void 0,Ae=typeof clearTimeout=="function"?clearTimeout:void 0,Ue=-1,et=typeof Promise=="function"?Promise:void 0,Nt=typeof queueMicrotask=="function"?queueMicrotask:et!==void 0?function(a){return et.resolve(null).then(a).catch(Mn)}:qe;function Mn(a){setTimeout(function(){throw a})}function Ot(a){Fp(a,"")}function kn(a,s){var v=s,M=0;do{var A=v.nextSibling;if(a.removeChild(v),A&&A.nodeType===Qr){var N=A.data;if(N===J){if(M===0)return a.removeChild(A),void Ml(s);M--}else N!==W&&N!==be&&N!==ke||M++}v=A}while(v);Ml(s)}function wn(a){var s=a.style;typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"}function _n(a,s){var v=s[Pe],M=v!=null&&v.hasOwnProperty("display")?v.display:null;a.style.display=Mg("display",M)}function Yn(a,s){a.nodeValue=s}function Kc(a){return a.data===be}function N1(a){return a.data===ke}function D1(a){for(;a!=null;a=a.nextSibling){var s=a.nodeType;if(s===po||s===Vs)break;if(s===Qr){var v=a.data;if(v===W||v===ke||v===be)break;if(v===J)return null}}return a}function bf(a){return D1(a.nextSibling)}function v7(a,s,v,M,A,N,F){return C2(N,a),w7(a,v),function($,G,Z,ce,Se,Ee,ve){var he,se;switch(he=pc(G,Z),l0(G,Z),G){case"dialog":gr("cancel",$),gr("close",$);break;case"iframe":case"object":case"embed":gr("load",$);break;case"video":case"audio":for(var te=0;te<Dc.length;te++)gr(Dc[te],$);break;case"source":gr("error",$);break;case"img":case"image":case"link":gr("error",$),gr("load",$);break;case"details":gr("toggle",$);break;case"input":bg($,Z),gr("invalid",$);break;case"option":Eh(0,Z);break;case"select":Ch($,Z),gr("invalid",$);break;case"textarea":Bp($,Z),gr("invalid",$)}hc(G,Z),se=new Set;for(var ge=$.attributes,_e=0;_e<ge.length;_e++)switch(ge[_e].name.toLowerCase()){case"value":case"checked":case"selected":break;default:se.add(ge[_e].name)}var xe,Oe=null;for(var Ne in Z)if(Z.hasOwnProperty(Ne)){var je=Z[Ne];if(Ne===bu)typeof je=="string"?$.textContent!==je&&(Z[bo]!==!0&&Fc($.textContent,je,Ee,ve),Oe=[bu,je]):typeof je=="number"&&$.textContent!==""+je&&(Z[bo]!==!0&&Fc($.textContent,je,Ee,ve),Oe=[bu,""+je]);else if(ae.hasOwnProperty(Ne))je!=null&&(typeof je!="function"&&d0(Ne,je),Ne==="onScroll"&&gr("scroll",$));else if(ve&&typeof he=="boolean"){var Ge=void 0,Je=he&&z?null:at(Ne);if(Z[bo]!==!0){if(!(Ne===Uc||Ne===bo||Ne==="value"||Ne==="checked"||Ne==="selected")){if(Ne===da){var Xe=$.innerHTML,Et=je?je[L1]:void 0;if(Et!=null){var Dt=jo($,Et);Dt!==Xe&&c0(Ne,Xe,Dt)}}else if(Ne===yu){if(se.delete(Ne),y3){var Wt=Fy(je);Wt!==(Ge=$.getAttribute("style"))&&c0(Ne,Ge,Wt)}}else if(he&&!z)se.delete(Ne.toLowerCase()),je!==(Ge=ft($,Ne,je))&&c0(Ne,Ge,je);else if(!ut(Ne,Je,he)&&!Tt(Ne,je,Je,he)){var ln=!1;if(Je!==null)se.delete(Je.attributeName),Ge=$t($,Ne,je,Je);else{var Tn=ce;if(Tn===ho&&(Tn=_g(G)),Tn===ho)se.delete(Ne.toLowerCase());else{var bn=(xe=void 0,xe=Ne.toLowerCase(),mc.hasOwnProperty(xe)&&mc[xe]||null);bn!==null&&bn!==Ne&&(ln=!0,se.delete(bn)),se.delete(Ne)}Ge=ft($,Ne,je)}je===Ge||ln||c0(Ne,Ge,je)}}}}}switch(ve&&se.size>0&&Z[bo]!==!0&&b3(se),G){case"input":zr($),Ld($,Z,!0);break;case"textarea":zr($),Dd($);break;case"select":case"option":break;default:typeof Z.onClick=="function"&&mf($)}return Oe}(a,s,v,A.namespace,0,(N.mode&Ln)!==mn,F)}function qc(a){for(var s=a.previousSibling,v=0;s;){if(s.nodeType===Qr){var M=s.data;if(M===W||M===ke||M===be){if(v===0)return s;v--}else M===J&&v++}s=s.previousSibling}return null}var Hc=Math.random().toString(36).slice(2),B1="__reactFiber$"+Hc,b7="__reactProps$"+Hc,M2="__reactContainer$"+Hc,y7="__reactEvents$"+Hc,Fq="__reactListeners$"+Hc,Kq="__reactHandles$"+Hc;function C2(a,s){s[B1]=a}function E3(a,s){s[M2]=a}function ER(a){a[M2]=null}function x2(a){return!!a[M2]}function b0(a){var s=a[B1];if(s)return s;for(var v=a.parentNode;v;){if(s=v[M2]||v[B1]){var M=s.alternate;if(s.child!==null||M!==null&&M.child!==null)for(var A=qc(a);A!==null;){var N=A[B1];if(N)return N;A=qc(A)}return s}v=(a=v).parentNode}return null}function yf(a){var s=a[B1]||a[M2];return s&&(s.tag===T||s.tag===I||s.tag===le||s.tag===S)?s:null}function j1(a){if(a.tag===T||a.tag===I)return a.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function k3(a){return a[b7]||null}function w7(a,s){a[b7]=s}var kR={},MR=n.ReactDebugCurrentFrame;function M3(a){if(a){var s=a._owner,v=di(a.type,a._source,s?s.type:null);MR.setExtraStackFrame(v)}else MR.setExtraStackFrame(null)}function _u(a,s,v,M,A){var N=Function.call.bind(oe);for(var F in a)if(N(a,F)){var $=void 0;try{if(typeof a[F]!="function"){var G=Error((M||"React class")+": "+v+" type `"+F+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[F]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw G.name="Invariant Violation",G}$=a[F](s,F,M,v,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Z){$=Z}!$||$ instanceof Error||(M3(A),i("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",M||"React class",v,F,typeof $),M3(null)),$ instanceof Error&&!($.message in kR)&&(kR[$.message]=!0,M3(A),i("Failed %s type: %s",v,$.message),M3(null))}}var C3,_7=[];C3=[];var S7,Wc=-1;function wf(a){return{current:a}}function yo(a,s){Wc<0?i("Unexpected pop."):(s!==C3[Wc]&&i("Unexpected Fiber popped."),a.current=_7[Wc],_7[Wc]=null,C3[Wc]=null,Wc--)}function wo(a,s,v){Wc++,_7[Wc]=a.current,C3[Wc]=v,a.current=s}S7={};var Da={};Object.freeze(Da);var $c=wf(Da),Pl=wf(!1),E7=Da;function z1(a,s,v){return v&&Ll(s)?E7:$c.current}function CR(a,s,v){var M=a.stateNode;M.__reactInternalMemoizedUnmaskedChildContext=s,M.__reactInternalMemoizedMaskedChildContext=v}function U1(a,s){var v=a.type.contextTypes;if(!v)return Da;var M=a.stateNode;if(M&&M.__reactInternalMemoizedUnmaskedChildContext===s)return M.__reactInternalMemoizedMaskedChildContext;var A={};for(var N in v)A[N]=s[N];return _u(v,A,"context",ne(a)||"Unknown"),M&&CR(a,s,A),A}function x3(){return Pl.current}function Ll(a){var s=a.childContextTypes;return s!=null}function A3(a){yo(Pl,a),yo($c,a)}function k7(a){yo(Pl,a),yo($c,a)}function xR(a,s,v){if($c.current!==Da)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");wo($c,s,a),wo(Pl,v,a)}function AR(a,s,v){var M=a.stateNode,A=s.childContextTypes;if(typeof M.getChildContext!="function"){var N=ne(a)||"Unknown";return S7[N]||(S7[N]=!0,i("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",N,N)),v}var F=M.getChildContext();for(var $ in F)if(!($ in A))throw new Error((ne(a)||"Unknown")+'.getChildContext(): key "'+$+'" is not defined in childContextTypes.');return _u(A,F,"child context",ne(a)||"Unknown"),un({},v,F)}function R3(a){var s=a.stateNode,v=s&&s.__reactInternalMemoizedMergedChildContext||Da;return E7=$c.current,wo($c,v,a),wo(Pl,Pl.current,a),!0}function RR(a,s,v){var M=a.stateNode;if(!M)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(v){var A=AR(a,s,E7);M.__reactInternalMemoizedMergedChildContext=A,yo(Pl,a),yo($c,a),wo($c,A,a),wo(Pl,v,a)}else yo(Pl,a),wo(Pl,v,a)}function qq(a){if(!function(v){return ra(v)===v}(a)||a.tag!==_)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var s=a;do{switch(s.tag){case S:return s.stateNode.context;case _:if(Ll(s.type))return s.stateNode.__reactInternalMemoizedMergedChildContext}s=s.return}while(s!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}var _f=0,T3=1,Vc=null,M7=!1,C7=!1;function TR(a){Vc===null?Vc=[a]:Vc.push(a)}function PR(){M7&&Sf()}function Sf(){if(!C7&&Vc!==null){C7=!0;var a=0,s=Na();try{var v=Vc;for(ei(No);a<v.length;a++){var M=v[a];do M=M(!0);while(M!==null)}Vc=null,M7=!1}catch(A){throw Vc!==null&&(Vc=Vc.slice(a+1)),Gi(Dh,Sf),A}finally{ei(s),C7=!1}}return null}var F1=[],K1=0,P3=null,L3=0,_s=[],Ss=0,y0=null,Il=1,Yc="";function Hq(){var a=Yc;return(Il&~function(s){return 1<<I3(s)-1}(Il)).toString(32)+a}function w0(a,s){_0(),F1[K1++]=L3,F1[K1++]=P3,P3=a,L3=s}function LR(a,s,v){_0(),_s[Ss++]=Il,_s[Ss++]=Yc,_s[Ss++]=y0,y0=a;var M=Il,A=Yc,N=I3(M)-1,F=M&~(1<<N),$=v+1,G=I3(s)+N;if(G>30){var Z=N-N%5,ce=(F&(1<<Z)-1).toString(32),Se=F>>Z,Ee=N-Z,ve=I3(s)+Ee;Il=1<<ve|($<<Ee|Se),Yc=ce+A}else Il=1<<G|($<<N|F),Yc=A}function x7(a){_0(),a.return!==null&&(w0(a,1),LR(a,1,0))}function I3(a){return 32-Hg(a)}function A7(a){for(;a===P3;)P3=F1[--K1],F1[K1]=null,L3=F1[--K1],F1[K1]=null;for(;a===y0;)y0=_s[--Ss],_s[Ss]=null,Yc=_s[--Ss],_s[Ss]=null,Il=_s[--Ss],_s[Ss]=null}function _0(){to()||i("Expected to be hydrating. This is a bug in React. Please file an issue.")}var eo=null,Su=null,Eu=!1,S0=!1,Ef=null;function Wq(){Eu&&i("We should not be hydrating here. This is a bug in React. Please file a bug.")}function IR(){S0=!0}function $q(a){var s=a.stateNode.containerInfo;return Su=D1(s.firstChild),eo=a,Eu=!0,Ef=null,S0=!1,!0}function Vq(a,s,v){return Su=D1(s.nextSibling),eo=a,Eu=!0,Ef=null,S0=!1,v!==null&&function(M,A){_0(),_s[Ss++]=Il,_s[Ss++]=Yc,_s[Ss++]=y0,Il=A.id,Yc=A.overflow,y0=M}(a,v),!0}function OR(a,s){switch(a.tag){case S:(function(A,N){N.nodeType===po?m0(A,N):N.nodeType===Qr||gf(A,N)})(a.stateNode.containerInfo,s);break;case T:var v=(a.mode&Ln)!==mn;(function(A,N,F,$,G){(G||N[U]!==!0)&&($.nodeType===po?m0(F,$):$.nodeType===Qr||gf(F,$))})(a.type,a.memoizedProps,a.stateNode,s,v);break;case le:var M=a.memoizedState;M.dehydrated!==null&&function(A,N){var F=A.parentNode;F!==null&&(N.nodeType===po?m0(F,N):N.nodeType===Qr||gf(F,N))}(M.dehydrated,s)}}function NR(a,s){OR(a,s);var v,M=((v=Ba(T,null,null,mn)).elementType="DELETED",v);M.stateNode=s,M.return=a;var A=a.deletions;A===null?(a.deletions=[M],a.flags|=ss):A.push(M)}function R7(a,s){if(!S0)switch(a.tag){case S:var v=a.stateNode.containerInfo;switch(s.tag){case T:var M=s.type;s.pendingProps,function(Z,ce,Se){O1(Z,ce)}(v,M);break;case I:(function(Z,ce){vf(Z,ce)})(v,s.pendingProps)}break;case T:a.type;var A=a.memoizedProps,N=a.stateNode;switch(s.tag){case T:var F=s.type;s.pendingProps,function(Z,ce,Se,Ee,ve,he){(he||ce[U]!==!0)&&O1(Se,Ee)}(0,A,N,F,0,(a.mode&Ln)!==mn);break;case I:(function(Z,ce,Se,Ee,ve){(ve||ce[U]!==!0)&&vf(Se,Ee)})(0,A,N,s.pendingProps,(a.mode&Ln)!==mn)}break;case le:var $=a.memoizedState.dehydrated;if($!==null)switch(s.tag){case T:var G=s.type;s.pendingProps,function(Z,ce,Se){var Ee=Z.parentNode;Ee!==null&&O1(Ee,ce)}($,G);break;case I:(function(Z,ce){var Se=Z.parentNode;Se!==null&&vf(Se,ce)})($,s.pendingProps)}break;default:return}}function DR(a,s){s.flags=s.flags&~Ma|Ur,R7(a,s)}function BR(a,s){switch(a.tag){case T:var v=a.type;a.pendingProps;var M=function(G,Z,ce){return G.nodeType!==po||Z.toLowerCase()!==G.nodeName.toLowerCase()?null:G}(s,v);return M!==null&&(a.stateNode=M,eo=a,Su=D1(M.firstChild),!0);case I:var A=function(G,Z){return Z===""||G.nodeType!==Vs?null:G}(s,a.pendingProps);return A!==null&&(a.stateNode=A,eo=a,Su=null,!0);case le:var N=function(G){return G.nodeType!==Qr?null:G}(s);if(N!==null){var F={dehydrated:N,treeContext:(_0(),y0!==null?{id:Il,overflow:Yc}:null),retryLane:pi};a.memoizedState=F;var $=function(G){var Z=Ba(y,null,null,mn);return Z.stateNode=G,Z}(N);return $.return=a,a.child=$,eo=a,Su=null,!0}return!1;default:return!1}}function T7(a){return(a.mode&Ln)!==mn&&(a.flags&qn)===an}function P7(a){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function L7(a){if(Eu){var s=Su;if(!s)return T7(a)&&(R7(eo,a),P7()),DR(eo,a),Eu=!1,void(eo=a);var v=s;if(!BR(a,s)){T7(a)&&(R7(eo,a),P7()),s=bf(v);var M=eo;if(!s||!BR(a,s))return DR(eo,a),Eu=!1,void(eo=a);NR(M,v)}}}function Yq(a){var s=a.stateNode,v=a.memoizedProps,M=function(F,$,G,Z){return C2(G,F),G.mode,function(ce,Se,Ee){return ce.nodeValue!==Se}(F,$)}(s,v,a);if(M){var A=eo;if(A!==null)switch(A.tag){case S:A.stateNode.containerInfo,function(F,$,G,Z){Fc($.nodeValue,G,Z,!0)}(0,s,v,(A.mode&Ln)!==mn);break;case T:A.type;var N=A.memoizedProps;A.stateNode,function(F,$,G,Z,ce,Se){$[U]!==!0&&Fc(Z.nodeValue,ce,Se,!0)}(0,N,0,s,v,(A.mode&Ln)!==mn)}}return M}function Gq(a){var s=a.memoizedState,v=s!==null?s.dehydrated:null;if(!v)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");(function(M,A){C2(A,M)})(v,a)}function Zq(a){var s=a.memoizedState,v=s!==null?s.dehydrated:null;if(!v)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return function(M){for(var A=M.nextSibling,N=0;A;){if(A.nodeType===Qr){var F=A.data;if(F===J){if(N===0)return bf(A);N--}else F!==W&&F!==ke&&F!==be||N++}A=A.nextSibling}return null}(v)}function jR(a){for(var s=a.return;s!==null&&s.tag!==T&&s.tag!==S&&s.tag!==le;)s=s.return;eo=s}function O3(a){if(a!==eo)return!1;if(!Eu)return jR(a),Eu=!0,!1;if(a.tag!==S&&(a.tag!==T||(v=a.type)!=="head"&&v!=="body"&&!dt(a.type,a.memoizedProps))){var s=Su;if(s)if(T7(a))zR(a),P7();else for(;s;)NR(a,s),s=bf(s)}var v;return jR(a),Su=a.tag===le?Zq(a):eo?bf(a.stateNode):null,!0}function zR(a){for(var s=Su;s;)OR(a,s),s=bf(s)}function q1(){eo=null,Su=null,Eu=!1,S0=!1}function UR(){Ef!==null&&(IP(Ef),Ef=null)}function to(){return Eu}function I7(a){Ef===null?Ef=[a]:Ef.push(a)}var Qq=n.ReactCurrentBatchConfig,Xq=null,ku={recordUnsafeLifecycleWarnings:function(a,s){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(a,s){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},E0=function(a){var s=[];return a.forEach(function(v){s.push(v)}),s.sort().join(", ")},A2=[],R2=[],T2=[],P2=[],L2=[],I2=[],k0=new Set;ku.recordUnsafeLifecycleWarnings=function(a,s){k0.has(a.type)||(typeof s.componentWillMount=="function"&&s.componentWillMount.__suppressDeprecationWarning!==!0&&A2.push(a),a.mode&Wr&&typeof s.UNSAFE_componentWillMount=="function"&&R2.push(a),typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&T2.push(a),a.mode&Wr&&typeof s.UNSAFE_componentWillReceiveProps=="function"&&P2.push(a),typeof s.componentWillUpdate=="function"&&s.componentWillUpdate.__suppressDeprecationWarning!==!0&&L2.push(a),a.mode&Wr&&typeof s.UNSAFE_componentWillUpdate=="function"&&I2.push(a))},ku.flushPendingUnsafeLifecycleWarnings=function(){var a=new Set;A2.length>0&&(A2.forEach(function(F){a.add(ne(F)||"Component"),k0.add(F.type)}),A2=[]);var s=new Set;R2.length>0&&(R2.forEach(function(F){s.add(ne(F)||"Component"),k0.add(F.type)}),R2=[]);var v=new Set;T2.length>0&&(T2.forEach(function(F){v.add(ne(F)||"Component"),k0.add(F.type)}),T2=[]);var M=new Set;P2.length>0&&(P2.forEach(function(F){M.add(ne(F)||"Component"),k0.add(F.type)}),P2=[]);var A=new Set;L2.length>0&&(L2.forEach(function(F){A.add(ne(F)||"Component"),k0.add(F.type)}),L2=[]);var N=new Set;I2.length>0&&(I2.forEach(function(F){N.add(ne(F)||"Component"),k0.add(F.type)}),I2=[]),s.size>0&&i(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
105
+
106
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
107
+
108
+ Please update the following components: %s`,E0(s)),M.size>0&&i(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
109
+
110
+ * Move data fetching code or side effects to componentDidUpdate.
111
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
112
+
113
+ Please update the following components: %s`,E0(M)),N.size>0&&i(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
114
+
115
+ * Move data fetching code or side effects to componentDidUpdate.
116
+
117
+ Please update the following components: %s`,E0(N)),a.size>0&&o(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
118
+
119
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
120
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
121
+
122
+ Please update the following components: %s`,E0(a)),v.size>0&&o(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
123
+
124
+ * Move data fetching code or side effects to componentDidUpdate.
125
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
126
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
127
+
128
+ Please update the following components: %s`,E0(v)),A.size>0&&o(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
129
+
130
+ * Move data fetching code or side effects to componentDidUpdate.
131
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
132
+
133
+ Please update the following components: %s`,E0(A))};var N3=new Map,FR=new Set;function Mu(a,s){if(a&&a.defaultProps){var v=un({},s),M=a.defaultProps;for(var A in M)v[A]===void 0&&(v[A]=M[A]);return v}return s}ku.recordLegacyContextWarning=function(a,s){var v=function(A){for(var N=null,F=A;F!==null;)F.mode&Wr&&(N=F),F=F.return;return N}(a);if(v!==null){if(!FR.has(a.type)){var M=N3.get(v);(a.type.contextTypes!=null||a.type.childContextTypes!=null||s!==null&&typeof s.getChildContext=="function")&&(M===void 0&&(M=[],N3.set(v,M)),M.push(a))}}else i("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.")},ku.flushLegacyContextWarning=function(){N3.forEach(function(a,s){if(a.length!==0){var v=a[0],M=new Set;a.forEach(function(N){M.add(ne(N)||"Component"),FR.add(N.type)});var A=E0(M);try{qt(v),i(`Legacy context API has been detected within a strict-mode tree.
134
+
135
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
136
+
137
+ Please update the following components: %s
138
+
139
+ Learn more about this warning here: https://reactjs.org/link/legacy-context`,A)}finally{It()}}})},ku.discardPendingWarnings=function(){A2=[],R2=[],T2=[],P2=[],L2=[],I2=[],N3=new Map};var O7,N7=wf(null);O7={};var D3=null,H1=null,D7=null,B3=!1;function j3(){D3=null,H1=null,D7=null,B3=!1}function KR(){B3=!0}function qR(){B3=!1}function HR(a,s,v){wo(N7,s._currentValue,a),s._currentValue=v,s._currentRenderer!==void 0&&s._currentRenderer!==null&&s._currentRenderer!==O7&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),s._currentRenderer=O7}function B7(a,s){var v=N7.current;yo(N7,s),a._currentValue=v}function j7(a,s,v){for(var M=a;M!==null;){var A=M.alternate;if(ou(M.childLanes,s)?A===null||ou(A.childLanes,s)||(A.childLanes=yn(A.childLanes,s)):(M.childLanes=yn(M.childLanes,s),A!==null&&(A.childLanes=yn(A.childLanes,s))),M===v)break;M=M.return}M!==v&&i("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Jq(a,s,v){(function(M,A,N){var F=M.child;for(F!==null&&(F.return=M);F!==null;){var $=void 0,G=F.dependencies;if(G!==null){$=F.child;for(var Z=G.firstContext;Z!==null;){if(Z.context===A){if(F.tag===_){var ce=Ia(N),Se=Gc(ir,ce);Se.tag=F3;var Ee=F.updateQueue;if(Ee!==null){var ve=Ee.shared,he=ve.pending;he===null?Se.next=Se:(Se.next=he.next,he.next=Se),ve.pending=Se}}F.lanes=yn(F.lanes,N);var se=F.alternate;se!==null&&(se.lanes=yn(se.lanes,N)),j7(F.return,N,M),G.lanes=yn(G.lanes,N);break}Z=Z.next}}else if(F.tag===ee)$=F.type===M.type?null:F.child;else if(F.tag===y){var te=F.return;if(te===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");te.lanes=yn(te.lanes,N);var ge=te.alternate;ge!==null&&(ge.lanes=yn(ge.lanes,N)),j7(te,N,M),$=F.sibling}else $=F.child;if($!==null)$.return=F;else for($=F;$!==null;){if($===M){$=null;break}var _e=$.sibling;if(_e!==null){_e.return=$.return,$=_e;break}$=$.return}F=$}})(a,s,v)}function W1(a,s){D3=a,H1=null,D7=null;var v=a.dependencies;v!==null&&v.firstContext!==null&&(Xn(v.lanes,s)&&Y2(),v.firstContext=null)}function si(a){B3&&i("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var s=a._currentValue;if(D7!==a){var v={context:a,memoizedValue:s,next:null};if(H1===null){if(D3===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");H1=v,D3.dependencies={lanes:st,firstContext:v}}else H1=H1.next=v}return s}var M0=null;function z7(a){M0===null?M0=[a]:M0.push(a)}function WR(a,s,v,M){var A=s.interleaved;return A===null?(v.next=v,z7(s)):(v.next=A.next,A.next=v),s.interleaved=v,z3(a,M)}function fa(a,s){return z3(a,s)}var eH=z3;function z3(a,s){a.lanes=yn(a.lanes,s);var v=a.alternate;v!==null&&(v.lanes=yn(v.lanes,s)),v===null&&(a.flags&(Ur|Ma))!==an&&WP(a);for(var M=a,A=a.return;A!==null;)A.childLanes=yn(A.childLanes,s),(v=A.alternate)!==null?v.childLanes=yn(v.childLanes,s):(A.flags&(Ur|Ma))!==an&&WP(a),M=A,A=A.return;return M.tag===S?M.stateNode:null}var U7,U3,$R=0,VR=1,F3=2,F7=3,K3=!1;function K7(a){var s={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:st},effects:null};a.updateQueue=s}function YR(a,s){var v=s.updateQueue,M=a.updateQueue;if(v===M){var A={baseState:M.baseState,firstBaseUpdate:M.firstBaseUpdate,lastBaseUpdate:M.lastBaseUpdate,shared:M.shared,effects:M.effects};s.updateQueue=A}}function Gc(a,s){return{eventTime:a,lane:s,tag:$R,payload:null,callback:null,next:null}}function kf(a,s,v){var M=a.updateQueue;if(M===null)return null;var A=M.shared;if(U3!==A||U7||(i("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),U7=!0),($n&io)!==ji){var N=A.pending;return N===null?s.next=s:(s.next=N.next,N.next=s),A.pending=s,eH(a,v)}return function(F,$,G,Z){var ce=$.interleaved;return ce===null?(G.next=G,z7($)):(G.next=ce.next,ce.next=G),$.interleaved=G,z3(F,Z)}(a,A,s,v)}function q3(a,s,v){var M=s.updateQueue;if(M!==null){var A=M.shared;if(d1(v)){var N=A.lanes,F=yn(N=e3(N,a.pendingLanes),v);A.lanes=F,Wh(a,F)}}}function q7(a,s){var v=a.updateQueue,M=a.alternate;if(M!==null){var A=M.updateQueue;if(v===A){var N=null,F=null,$=v.firstBaseUpdate;if($!==null){var G=$;do{var Z={eventTime:G.eventTime,lane:G.lane,tag:G.tag,payload:G.payload,callback:G.callback,next:null};F===null?N=F=Z:(F.next=Z,F=Z),G=G.next}while(G!==null);F===null?N=F=s:(F.next=s,F=s)}else N=F=s;return v={baseState:A.baseState,firstBaseUpdate:N,lastBaseUpdate:F,shared:A.shared,effects:A.effects},void(a.updateQueue=v)}}var ce=v.lastBaseUpdate;ce===null?v.firstBaseUpdate=s:ce.next=s,v.lastBaseUpdate=s}function tH(a,s,v,M,A,N){switch(v.tag){case VR:var F=v.payload;if(typeof F=="function"){KR();var $=F.call(N,M,A);if(a.mode&Wr){rr(!0);try{F.call(N,M,A)}finally{rr(!1)}}return qR(),$}return F;case F7:a.flags=a.flags&~Vi|qn;case $R:var G,Z=v.payload;if(typeof Z=="function"){if(KR(),G=Z.call(N,M,A),a.mode&Wr){rr(!0);try{Z.call(N,M,A)}finally{rr(!1)}}qR()}else G=Z;return G==null?M:un({},M,G);case F3:return K3=!0,M}return M}function H3(a,s,v,M){var A=a.updateQueue;K3=!1,U3=A.shared;var N=A.firstBaseUpdate,F=A.lastBaseUpdate,$=A.shared.pending;if($!==null){A.shared.pending=null;var G=$,Z=G.next;G.next=null,F===null?N=Z:F.next=Z,F=G;var ce=a.alternate;if(ce!==null){var Se=ce.updateQueue,Ee=Se.lastBaseUpdate;Ee!==F&&(Ee===null?Se.firstBaseUpdate=Z:Ee.next=Z,Se.lastBaseUpdate=G)}}if(N!==null){for(var ve=A.baseState,he=st,se=null,te=null,ge=null,_e=N;;){var xe=_e.lane,Oe=_e.eventTime;if(ou(M,xe)){if(ge!==null){var Ne={eventTime:Oe,lane:$r,tag:_e.tag,payload:_e.payload,callback:_e.callback,next:null};ge=ge.next=Ne}if(ve=tH(a,0,_e,ve,s,v),_e.callback!==null&&_e.lane!==$r){a.flags|=Xp;var je=A.effects;je===null?A.effects=[_e]:je.push(_e)}}else{var Ge={eventTime:Oe,lane:xe,tag:_e.tag,payload:_e.payload,callback:_e.callback,next:null};ge===null?(te=ge=Ge,se=ve):ge=ge.next=Ge,he=yn(he,xe)}if((_e=_e.next)===null){if(($=A.shared.pending)===null)break;var Je=$,Xe=Je.next;Je.next=null,_e=Xe,A.lastBaseUpdate=Je,A.shared.pending=null}}ge===null&&(se=ve),A.baseState=se,A.firstBaseUpdate=te,A.lastBaseUpdate=ge;var Et=A.shared.interleaved;if(Et!==null){var Dt=Et;do he=yn(he,Dt.lane),Dt=Dt.next;while(Dt!==Et)}else N===null&&(A.shared.lanes=st);iv(he),a.lanes=he,a.memoizedState=ve}U3=null}function nH(a,s){if(typeof a!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead received: "+a);a.call(s)}function GR(){K3=!1}function W3(){return K3}function ZR(a,s,v){var M=s.effects;if(s.effects=null,M!==null)for(var A=0;A<M.length;A++){var N=M[A],F=N.callback;F!==null&&(N.callback=null,nH(F,v))}}U7=!1,U3=null;var H7,W7,$7,V7,Y7,QR,$3,G7,Z7,Q7,X7={},XR=new e.Component().refs;H7=new Set,W7=new Set,$7=new Set,V7=new Set,G7=new Set,Y7=new Set,Z7=new Set,Q7=new Set;var JR=new Set;function J7(a,s,v,M){var A=a.memoizedState,N=v(M,A);if(a.mode&Wr){rr(!0);try{N=v(M,A)}finally{rr(!1)}}QR(s,N);var F=N==null?A:un({},A,N);a.memoizedState=F,a.lanes===st&&(a.updateQueue.baseState=F)}$3=function(a,s){if(a!==null&&typeof a!="function"){var v=s+"_"+a;JR.has(v)||(JR.add(v),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",s,a))}},QR=function(a,s){if(s===void 0){var v=cr(a)||"Component";Y7.has(v)||(Y7.add(v),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",v))}},Object.defineProperty(X7,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(X7);var e9,t9,n9,r9,i9,o9={isMounted:function(a){var s=Oh.current;if(s!==null&&s.tag===_){var v=s,M=v.stateNode;M._warnedAboutRefsInRender||i("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",ne(v)||"A component"),M._warnedAboutRefsInRender=!0}var A=Ys(a);return!!A&&ra(A)===A},enqueueSetState:function(a,s,v){var M=Ys(a),A=Ko(),N=Lf(M),F=Gc(A,N);F.payload=s,v!=null&&($3(v,"setState"),F.callback=v);var $=kf(M,F,N);$!==null&&(wi($,M,N,A),q3($,M,N)),r1(M,N)},enqueueReplaceState:function(a,s,v){var M=Ys(a),A=Ko(),N=Lf(M),F=Gc(A,N);F.tag=VR,F.payload=s,v!=null&&($3(v,"replaceState"),F.callback=v);var $=kf(M,F,N);$!==null&&(wi($,M,N,A),q3($,M,N)),r1(M,N)},enqueueForceUpdate:function(a,s){var v=Ys(a),M=Ko(),A=Lf(v),N=Gc(M,A);N.tag=F3,s!=null&&($3(s,"forceUpdate"),N.callback=s);var F=kf(v,N,A);F!==null&&(wi(F,v,A,M),q3(F,v,A)),function($,G){Pt!==null&&typeof Pt.markForceUpdateScheduled=="function"&&Pt.markForceUpdateScheduled($,G)}(v,A)}};function eT(a,s,v,M,A,N,F){var $=a.stateNode;if(typeof $.shouldComponentUpdate=="function"){var G=$.shouldComponentUpdate(M,N,F);if(a.mode&Wr){rr(!0);try{G=$.shouldComponentUpdate(M,N,F)}finally{rr(!1)}}return G===void 0&&i("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",cr(s)||"Component"),G}return!s.prototype||!s.prototype.isPureReactComponent||!Pr(v,M)||!Pr(A,N)}function tT(a,s){s.updater=o9,a.stateNode=s,function(v,M){v._reactInternals=M}(s,a),s._reactInternalInstance=X7}function nT(a,s,v){var M=!1,A=Da,N=Da,F=s.contextType;if("contextType"in s&&!(F===null||F!==void 0&&F.$$typeof===rn&&F._context===void 0)&&!Q7.has(s)){Q7.add(s);var $="";$=F===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof F!="object"?" However, it is set to a "+typeof F+".":F.$$typeof===en?" Did you accidentally pass the Context.Provider instead?":F._context!==void 0?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(F).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",cr(s)||"Component",$)}if(typeof F=="object"&&F!==null)N=si(F);else{A=z1(0,s,!0);var G=s.contextTypes;N=(M=G!=null)?U1(a,A):Da}var Z=new s(v,N);if(a.mode&Wr){rr(!0);try{Z=new s(v,N)}finally{rr(!1)}}var ce=a.memoizedState=Z.state!==null&&Z.state!==void 0?Z.state:null;if(tT(a,Z),typeof s.getDerivedStateFromProps=="function"&&ce===null){var Se=cr(s)||"Component";W7.has(Se)||(W7.add(Se),i("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",Se,Z.state===null?"null":"undefined",Se))}if(typeof s.getDerivedStateFromProps=="function"||typeof Z.getSnapshotBeforeUpdate=="function"){var Ee=null,ve=null,he=null;if(typeof Z.componentWillMount=="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0?Ee="componentWillMount":typeof Z.UNSAFE_componentWillMount=="function"&&(Ee="UNSAFE_componentWillMount"),typeof Z.componentWillReceiveProps=="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ve="componentWillReceiveProps":typeof Z.UNSAFE_componentWillReceiveProps=="function"&&(ve="UNSAFE_componentWillReceiveProps"),typeof Z.componentWillUpdate=="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0?he="componentWillUpdate":typeof Z.UNSAFE_componentWillUpdate=="function"&&(he="UNSAFE_componentWillUpdate"),Ee!==null||ve!==null||he!==null){var se=cr(s)||"Component",te=typeof s.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";V7.has(se)||(V7.add(se),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
140
+
141
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
142
+
143
+ The above lifecycles should be removed. Learn more about this warning here:
144
+ https://reactjs.org/link/unsafe-component-lifecycles`,se,te,Ee!==null?`
145
+ `+Ee:"",ve!==null?`
146
+ `+ve:"",he!==null?`
147
+ `+he:""))}}return M&&CR(a,A,N),Z}function rT(a,s,v,M){var A=s.state;if(typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(v,M),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(v,M),s.state!==A){var N=ne(a)||"Component";H7.has(N)||(H7.add(N),i("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",N)),o9.enqueueReplaceState(s,s.state,null)}}function a9(a,s,v,M){(function(ce,Se,Ee){var ve=ce.stateNode,he=cr(Se)||"Component";ve.render||(Se.prototype&&typeof Se.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",he):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",he)),!ve.getInitialState||ve.getInitialState.isReactClassApproved||ve.state||i("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",he),ve.getDefaultProps&&!ve.getDefaultProps.isReactClassApproved&&i("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",he),ve.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",he),ve.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",he),ve.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",he),Se.contextType&&Se.contextTypes&&!Z7.has(Se)&&(Z7.add(Se),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",he)),typeof ve.componentShouldUpdate=="function"&&i("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",he),Se.prototype&&Se.prototype.isPureReactComponent&&ve.shouldComponentUpdate!==void 0&&i("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",cr(Se)||"A pure component"),typeof ve.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",he),typeof ve.componentDidReceiveProps=="function"&&i("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",he),typeof ve.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",he),typeof ve.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",he);var se=ve.props!==Ee;ve.props!==void 0&&se&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",he,he),ve.defaultProps&&i("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",he,he),typeof ve.getSnapshotBeforeUpdate!="function"||typeof ve.componentDidUpdate=="function"||$7.has(Se)||($7.add(Se),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",cr(Se))),typeof ve.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",he),typeof ve.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",he),typeof Se.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",he);var te=ve.state;te&&(typeof te!="object"||qr(te))&&i("%s.state: must be set to an object or null",he),typeof ve.getChildContext=="function"&&typeof Se.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",he)})(a,s,v);var A=a.stateNode;A.props=v,A.state=a.memoizedState,A.refs=XR,K7(a);var N=s.contextType;if(typeof N=="object"&&N!==null)A.context=si(N);else{var F=z1(0,s,!0);A.context=U1(a,F)}if(A.state===v){var $=cr(s)||"Component";G7.has($)||(G7.add($),i("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",$))}a.mode&Wr&&ku.recordLegacyContextWarning(a,A),ku.recordUnsafeLifecycleWarnings(a,A),A.state=a.memoizedState;var G=s.getDerivedStateFromProps;if(typeof G=="function"&&(J7(a,s,G,v),A.state=a.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(function(ce,Se){var Ee=Se.state;typeof Se.componentWillMount=="function"&&Se.componentWillMount(),typeof Se.UNSAFE_componentWillMount=="function"&&Se.UNSAFE_componentWillMount(),Ee!==Se.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ne(ce)||"Component"),o9.enqueueReplaceState(Se,Se.state,null))}(a,A),H3(a,v,A,M),A.state=a.memoizedState),typeof A.componentDidMount=="function"){var Z=Rn;Z|=bl,(a.mode&Io)!==mn&&(Z|=ii),a.flags|=Z}}var iT;function O2(a,s,v){var M=v.ref;if(M!==null&&typeof M!="function"&&typeof M!="object"){if((a.mode&Wr||O)&&(!v._owner||!v._self||v._owner.stateNode===v._self)){var A=ne(a)||"Component";n9[A]||(i('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',M),n9[A]=!0)}if(v._owner){var N,F=v._owner;if(F){var $=F;if($.tag!==_)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");N=$.stateNode}if(!N)throw new Error("Missing owner for string ref "+M+". This error is likely caused by a bug in React. Please file an issue.");var G=N;(function(Se,Ee){me(Se)&&i("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",Ee,fe(Se))})(M,"ref");var Z=""+M;if(s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===Z)return s.ref;var ce=function(Se){var Ee=G.refs;Ee===XR&&(Ee=G.refs={}),Se===null?delete Ee[Z]:Ee[Z]=Se};return ce._stringRef=Z,ce}if(typeof M!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!v._owner)throw new Error("Element ref was specified as a string ("+M+`) but no owner was set. This could happen for one of the following reasons:
148
+ 1. You may be adding a ref to a function component
149
+ 2. You may be adding a ref to a component that was not created inside a component's render method
150
+ 3. You have multiple copies of React loaded
151
+ See https://reactjs.org/link/refs-must-have-owner for more information.`)}return M}function V3(a,s){var v=Object.prototype.toString.call(s);throw new Error("Objects are not valid as a React child (found: "+(v==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":v)+"). If you meant to render a collection of children, use an array instead.")}function Y3(a){var s=ne(a)||"Component";i9[s]||(i9[s]=!0,i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it."))}function oT(a){var s=a._payload;return(0,a._init)(s)}function aT(a){function s(se,te){if(a){var ge=se.deletions;ge===null?(se.deletions=[te],se.flags|=ss):ge.push(te)}}function v(se,te){if(!a)return null;for(var ge=te;ge!==null;)s(se,ge),ge=ge.sibling;return null}function M(se,te){for(var ge=new Map,_e=te;_e!==null;)_e.key!==null?ge.set(_e.key,_e):ge.set(_e.index,_e),_e=_e.sibling;return ge}function A(se,te){var ge=I0(se,te);return ge.index=0,ge.sibling=null,ge}function N(se,te,ge){if(se.index=ge,!a)return se.flags|=Jp,te;var _e=se.alternate;if(_e!==null){var xe=_e.index;return xe<te?(se.flags|=Ur,te):xe}return se.flags|=Ur,te}function F(se){return a&&se.alternate===null&&(se.flags|=Ur),se}function $(se,te,ge,_e){if(te===null||te.tag!==I){var xe=Iw(ge,se.mode,_e);return xe.return=se,xe}var Oe=A(te,ge);return Oe.return=se,Oe}function G(se,te,ge,_e){var xe=ge.type;if(xe===Gt)return ce(se,te,ge.props.children,_e,ge.key);if(te!==null&&(te.elementType===xe||GP(te,ge)||typeof xe=="object"&&xe!==null&&xe.$$typeof===jt&&oT(xe)===te.type)){var Oe=A(te,ge.props);return Oe.ref=O2(se,te,ge),Oe.return=se,Oe._debugSource=ge._source,Oe._debugOwner=ge._owner,Oe}var Ne=Lw(ge,se.mode,_e);return Ne.ref=O2(se,te,ge),Ne.return=se,Ne}function Z(se,te,ge,_e){if(te===null||te.tag!==E||te.stateNode.containerInfo!==ge.containerInfo||te.stateNode.implementation!==ge.implementation){var xe=Ow(ge,se.mode,_e);return xe.return=se,xe}var Oe=A(te,ge.children||[]);return Oe.return=se,Oe}function ce(se,te,ge,_e,xe){if(te===null||te.tag!==j){var Oe=Of(ge,se.mode,_e,xe);return Oe.return=se,Oe}var Ne=A(te,ge);return Ne.return=se,Ne}function Se(se,te,ge){if(typeof te=="string"&&te!==""||typeof te=="number"){var _e=Iw(""+te,se.mode,ge);return _e.return=se,_e}if(typeof te=="object"&&te!==null){switch(te.$$typeof){case Ut:var xe=Lw(te,se.mode,ge);return xe.ref=O2(se,null,te),xe.return=se,xe;case gt:var Oe=Ow(te,se.mode,ge);return Oe.return=se,Oe;case jt:var Ne=te._payload;return Se(se,(0,te._init)(Ne),ge)}if(qr(te)||Yt(te)){var je=Of(te,se.mode,ge,null);return je.return=se,je}V3(0,te)}return typeof te=="function"&&Y3(se),null}function Ee(se,te,ge,_e){var xe=te!==null?te.key:null;if(typeof ge=="string"&&ge!==""||typeof ge=="number")return xe!==null?null:$(se,te,""+ge,_e);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case Ut:return ge.key===xe?G(se,te,ge,_e):null;case gt:return ge.key===xe?Z(se,te,ge,_e):null;case jt:var Oe=ge._payload;return Ee(se,te,(0,ge._init)(Oe),_e)}if(qr(ge)||Yt(ge))return xe!==null?null:ce(se,te,ge,_e,null);V3(0,ge)}return typeof ge=="function"&&Y3(se),null}function ve(se,te,ge,_e,xe){if(typeof _e=="string"&&_e!==""||typeof _e=="number")return $(te,se.get(ge)||null,""+_e,xe);if(typeof _e=="object"&&_e!==null){switch(_e.$$typeof){case Ut:return G(te,se.get(_e.key===null?ge:_e.key)||null,_e,xe);case gt:return Z(te,se.get(_e.key===null?ge:_e.key)||null,_e,xe);case jt:var Oe=_e._payload;return ve(se,te,ge,(0,_e._init)(Oe),xe)}if(qr(_e)||Yt(_e))return ce(te,se.get(ge)||null,_e,xe,null);V3(0,_e)}return typeof _e=="function"&&Y3(te),null}function he(se,te,ge){if(typeof se!="object"||se===null)return te;switch(se.$$typeof){case Ut:case gt:iT(se,ge);var _e=se.key;if(typeof _e!="string")break;if(te===null){(te=new Set).add(_e);break}if(!te.has(_e)){te.add(_e);break}i("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",_e);break;case jt:var xe=se._payload;he((0,se._init)(xe),te,ge)}return te}return function se(te,ge,_e,xe){if(typeof _e=="object"&&_e!==null&&_e.type===Gt&&_e.key===null&&(_e=_e.props.children),typeof _e=="object"&&_e!==null){switch(_e.$$typeof){case Ut:return F(function(Ne,je,Ge,Je){for(var Xe=Ge.key,Et=je;Et!==null;){if(Et.key===Xe){var Dt=Ge.type;if(Dt===Gt){if(Et.tag===j){v(Ne,Et.sibling);var Wt=A(Et,Ge.props.children);return Wt.return=Ne,Wt._debugSource=Ge._source,Wt._debugOwner=Ge._owner,Wt}}else if(Et.elementType===Dt||GP(Et,Ge)||typeof Dt=="object"&&Dt!==null&&Dt.$$typeof===jt&&oT(Dt)===Et.type){v(Ne,Et.sibling);var ln=A(Et,Ge.props);return ln.ref=O2(Ne,Et,Ge),ln.return=Ne,ln._debugSource=Ge._source,ln._debugOwner=Ge._owner,ln}v(Ne,Et);break}s(Ne,Et),Et=Et.sibling}if(Ge.type===Gt){var Tn=Of(Ge.props.children,Ne.mode,Je,Ge.key);return Tn.return=Ne,Tn}var bn=Lw(Ge,Ne.mode,Je);return bn.ref=O2(Ne,je,Ge),bn.return=Ne,bn}(te,ge,_e,xe));case gt:return F(function(Ne,je,Ge,Je){for(var Xe=Ge.key,Et=je;Et!==null;){if(Et.key===Xe){if(Et.tag===E&&Et.stateNode.containerInfo===Ge.containerInfo&&Et.stateNode.implementation===Ge.implementation){v(Ne,Et.sibling);var Dt=A(Et,Ge.children||[]);return Dt.return=Ne,Dt}v(Ne,Et);break}s(Ne,Et),Et=Et.sibling}var Wt=Ow(Ge,Ne.mode,Je);return Wt.return=Ne,Wt}(te,ge,_e,xe));case jt:var Oe=_e._payload;return se(te,ge,(0,_e._init)(Oe),xe)}if(qr(_e))return function(Ne,je,Ge,Je){for(var Xe=null,Et=0;Et<Ge.length;Et++)Xe=he(Ge[Et],Xe,Ne);for(var Dt=null,Wt=null,ln=je,Tn=0,bn=0,jn=null;ln!==null&&bn<Ge.length;bn++){ln.index>bn?(jn=ln,ln=null):jn=ln.sibling;var ar=Ee(Ne,ln,Ge[bn],Je);if(ar===null){ln===null&&(ln=jn);break}a&&ln&&ar.alternate===null&&s(Ne,ln),Tn=N(ar,Tn,bn),Wt===null?Dt=ar:Wt.sibling=ar,Wt=ar,ln=jn}if(bn===Ge.length)return v(Ne,ln),to()&&w0(Ne,bn),Dt;if(ln===null){for(;bn<Ge.length;bn++){var Lr=Se(Ne,Ge[bn],Je);Lr!==null&&(Tn=N(Lr,Tn,bn),Wt===null?Dt=Lr:Wt.sibling=Lr,Wt=Lr)}return to()&&w0(Ne,bn),Dt}for(var qo=M(0,ln);bn<Ge.length;bn++){var Gn=ve(qo,Ne,bn,Ge[bn],Je);Gn!==null&&(a&&Gn.alternate!==null&&qo.delete(Gn.key===null?bn:Gn.key),Tn=N(Gn,Tn,bn),Wt===null?Dt=Gn:Wt.sibling=Gn,Wt=Gn)}return a&&qo.forEach(function(kr){return s(Ne,kr)}),to()&&w0(Ne,bn),Dt}(te,ge,_e,xe);if(Yt(_e))return function(Ne,je,Ge,Je){var Xe=Yt(Ge);if(typeof Xe!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");typeof Symbol=="function"&&Ge[Symbol.toStringTag]==="Generator"&&(t9||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),t9=!0),Ge.entries===Xe&&(e9||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),e9=!0);var Et=Xe.call(Ge);if(Et)for(var Dt=null,Wt=Et.next();!Wt.done;Wt=Et.next())Dt=he(Wt.value,Dt,Ne);var ln=Xe.call(Ge);if(ln==null)throw new Error("An iterable object provided no iterator.");for(var Tn=null,bn=null,jn=je,ar=0,Lr=0,qo=null,Gn=ln.next();jn!==null&&!Gn.done;Lr++,Gn=ln.next()){jn.index>Lr?(qo=jn,jn=null):qo=jn.sibling;var kr=Ee(Ne,jn,Gn.value,Je);if(kr===null){jn===null&&(jn=qo);break}a&&jn&&kr.alternate===null&&s(Ne,jn),ar=N(kr,ar,Lr),bn===null?Tn=kr:bn.sibling=kr,bn=kr,jn=qo}if(Gn.done)return v(Ne,jn),to()&&w0(Ne,Lr),Tn;if(jn===null){for(;!Gn.done;Lr++,Gn=ln.next()){var ui=Se(Ne,Gn.value,Je);ui!==null&&(ar=N(ui,ar,Lr),bn===null?Tn=ui:bn.sibling=ui,bn=ui)}return to()&&w0(Ne,Lr),Tn}for(var Nf=M(0,jn);!Gn.done;Lr++,Gn=ln.next()){var Eo=ve(Nf,Ne,Lr,Gn.value,Je);Eo!==null&&(a&&Eo.alternate!==null&&Nf.delete(Eo.key===null?Lr:Eo.key),ar=N(Eo,ar,Lr),bn===null?Tn=Eo:bn.sibling=Eo,bn=Eo)}return a&&Nf.forEach(function(U6){return s(Ne,U6)}),to()&&w0(Ne,Lr),Tn}(te,ge,_e,xe);V3(0,_e)}return typeof _e=="string"&&_e!==""||typeof _e=="number"?F(function(Ne,je,Ge,Je){if(je!==null&&je.tag===I){v(Ne,je.sibling);var Xe=A(je,Ge);return Xe.return=Ne,Xe}v(Ne,je);var Et=Iw(Ge,Ne.mode,Je);return Et.return=Ne,Et}(te,ge,""+_e,xe)):(typeof _e=="function"&&Y3(te),v(te,ge))}}e9=!1,t9=!1,n9={},r9={},i9={},iT=function(a,s){if(a!==null&&typeof a=="object"&&a._store&&!a._store.validated&&a.key==null){if(typeof a._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=!0;var v=ne(s)||"Component";r9[v]||(r9[v]=!0,i('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};var $1=aT(!0),sT=aT(!1);function rH(a,s){for(var v=a.child;v!==null;)sW(v,s),v=v.sibling}var N2={},Mf=wf(N2),D2=wf(N2),G3=wf(N2);function Z3(a){if(a===N2)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return a}function uT(){return Z3(G3.current)}function s9(a,s){wo(G3,s,a),wo(D2,a,a),wo(Mf,N2,a);var v=function(M){var A,N,F=M.nodeType;switch(F){case rs:case Eg:A=F===rs?"#document":"#fragment";var $=M.documentElement;N=$?$.namespaceURI:Bd(null,"");break;default:var G=F===Qr?M.parentNode:M;N=Bd(G.namespaceURI||null,A=G.tagName)}var Z=A.toLowerCase();return{namespace:N,ancestorInfo:wu(null,Z)}}(s);yo(Mf,a),wo(Mf,v,a)}function V1(a){yo(Mf,a),yo(D2,a),yo(G3,a)}function u9(){return Z3(Mf.current)}function lT(a){Z3(G3.current);var s,v,M,A=Z3(Mf.current),N=(s=A,v=a.type,{namespace:Bd((M=s).namespace,v),ancestorInfo:wu(M.ancestorInfo,v)});A!==N&&(wo(D2,a,a),wo(Mf,N,a))}function l9(a){D2.current===a&&(yo(Mf,a),yo(D2,a))}var cT=1,dT=1,B2=2,Cu=wf(0);function c9(a,s){return(a&s)!=0}function Y1(a){return a&cT}function d9(a,s){return a&cT|s}function Cf(a,s){wo(Cu,s,a)}function j2(a){yo(Cu,a)}function iH(a,s){var v=a.memoizedState;return v!==null?v.dehydrated!==null:(a.memoizedProps,!0)}function Q3(a){for(var s=a;s!==null;){if(s.tag===le){var v=s.memoizedState;if(v!==null){var M=v.dehydrated;if(M===null||Kc(M)||N1(M))return s}}else if(s.tag===x&&s.memoizedProps.revealOrder!==void 0){if((s.flags&qn)!==an)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)return null;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var ha=0,gi=1,Ol=2,vi=4,no=8,f9=[];function h9(){for(var a=0;a<f9.length;a++)f9[a]._workInProgressVersionPrimary=null;f9.length=0}function oH(a,s){var v=(0,s._getVersion)(s._source);a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[s,v]:a.mutableSourceEagerHydrationData.push(s,v)}var p9,G1,Bt=n.ReactCurrentDispatcher,z2=n.ReactCurrentBatchConfig;p9=new Set;var C0=st,dr=null,Di=null,Bi=null,X3=!1,U2=!1,F2=0,aH=0,sH=25,nt=null,Es=null,xf=-1,m9=!1;function er(){var a=nt;Es===null?Es=[a]:Es.push(a)}function Lt(){var a=nt;Es!==null&&(xf++,Es[xf]!==a&&function(s){var v=ne(dr);if(!p9.has(v)&&(p9.add(v),Es!==null)){for(var M="",A=30,N=0;N<=xf;N++){for(var F=Es[N],$=N===xf?s:F,G=N+1+". "+F;G.length<A;)G+=" ";M+=G+=$+`
152
+ `}i(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
153
+
154
+ Previous render Next render
155
+ ------------------------------------------------------
156
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
157
+ `,v,M)}}(a))}function Z1(a){a==null||qr(a)||i("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",nt,typeof a)}function _o(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
158
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
159
+ 2. You might be breaking the Rules of Hooks
160
+ 3. You might have more than one copy of React in the same app
161
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function g9(a,s){if(m9)return!1;if(s===null)return i("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",nt),!1;a.length!==s.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
162
+
163
+ Previous: %s
164
+ Incoming: %s`,nt,"["+s.join(", ")+"]","["+a.join(", ")+"]");for(var v=0;v<s.length&&v<a.length;v++)if(!Jn(a[v],s[v]))return!1;return!0}function Q1(a,s,v,M,A,N){C0=N,dr=s,Es=a!==null?a._debugHookTypes:null,xf=-1,m9=a!==null&&a.type!==s.type,s.memoizedState=null,s.updateQueue=null,s.lanes=st,a!==null&&a.memoizedState!==null?Bt.current=LT:Bt.current=Es!==null?PT:TT;var F=v(M,A);if(U2){var $=0;do{if(U2=!1,F2=0,$>=sH)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");$+=1,m9=!1,Di=null,Bi=null,s.updateQueue=null,xf=-1,Bt.current=IT,F=v(M,A)}while(U2)}Bt.current=d6,s._debugHookTypes=Es;var G=Di!==null&&Di.next!==null;if(C0=st,dr=null,Di=null,Bi=null,nt=null,Es=null,xf=-1,a!==null&&(a.flags&Yi)!=(s.flags&Yi)&&(a.mode&Ln)!==mn&&i("Internal React error: Expected static flag was missing. Please notify the React team."),X3=!1,G)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return F}function X1(){var a=F2!==0;return F2=0,a}function fT(a,s,v){s.updateQueue=a.updateQueue,(s.mode&Io)!==mn?s.flags&=~(wl|ii|mo|Rn):s.flags&=~(mo|Rn),a.lanes=kl(a.lanes,v)}function hT(){if(Bt.current=d6,X3){for(var a=dr.memoizedState;a!==null;){var s=a.queue;s!==null&&(s.pending=null),a=a.next}X3=!1}C0=st,dr=null,Di=null,Bi=null,Es=null,xf=-1,nt=null,MT=!1,U2=!1,F2=0}function Nl(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bi===null?dr.memoizedState=Bi=a:Bi=Bi.next=a,Bi}function ks(){var a,s;if(Di===null){var v=dr.alternate;a=v!==null?v.memoizedState:null}else a=Di.next;if((s=Bi===null?dr.memoizedState:Bi.next)!==null)s=(Bi=s).next,Di=a;else{if(a===null)throw new Error("Rendered more hooks than during the previous render.");var M={memoizedState:(Di=a).memoizedState,baseState:Di.baseState,baseQueue:Di.baseQueue,queue:Di.queue,next:null};Bi===null?dr.memoizedState=Bi=M:Bi=Bi.next=M}return Bi}function v9(a,s){return typeof s=="function"?s(a):s}function b9(a,s,v){var M,A=Nl();M=v!==void 0?v(s):s,A.memoizedState=A.baseState=M;var N={pending:null,interleaved:null,lanes:st,dispatch:null,lastRenderedReducer:a,lastRenderedState:M};A.queue=N;var F=N.dispatch=cH.bind(null,dr,N);return[A.memoizedState,F]}function y9(a,s,v){var M=ks(),A=M.queue;if(A===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");A.lastRenderedReducer=a;var N=Di,F=N.baseQueue,$=A.pending;if($!==null){if(F!==null){var G=F.next,Z=$.next;F.next=Z,$.next=G}N.baseQueue!==F&&i("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),N.baseQueue=F=$,A.pending=null}if(F!==null){var ce=F.next,Se=N.baseState,Ee=null,ve=null,he=null,se=ce;do{var te=se.lane;if(ou(C0,te)){if(he!==null){var ge={lane:$r,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null};he=he.next=ge}se.hasEagerState?Se=se.eagerState:Se=a(Se,se.action)}else{var _e={lane:te,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null};he===null?(ve=he=_e,Ee=Se):he=he.next=_e,dr.lanes=yn(dr.lanes,te),iv(te)}se=se.next}while(se!==null&&se!==ce);he===null?Ee=Se:he.next=ve,Jn(Se,M.memoizedState)||Y2(),M.memoizedState=Se,M.baseState=Ee,M.baseQueue=he,A.lastRenderedState=Se}var xe=A.interleaved;if(xe!==null){var Oe=xe;do{var Ne=Oe.lane;dr.lanes=yn(dr.lanes,Ne),iv(Ne),Oe=Oe.next}while(Oe!==xe)}else F===null&&(A.lanes=st);var je=A.dispatch;return[M.memoizedState,je]}function w9(a,s,v){var M=ks(),A=M.queue;if(A===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");A.lastRenderedReducer=a;var N=A.dispatch,F=A.pending,$=M.memoizedState;if(F!==null){A.pending=null;var G=F.next,Z=G;do $=a($,Z.action),Z=Z.next;while(Z!==G);Jn($,M.memoizedState)||Y2(),M.memoizedState=$,M.baseQueue===null&&(M.baseState=$),A.lastRenderedState=$}return[$,N]}function _9(a,s,v){var M,A=dr,N=Nl();if(to()){if(v===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");M=v(),G1||M!==v()&&(i("The result of getServerSnapshot should be cached to avoid an infinite loop"),G1=!0)}else{if(M=s(),!G1){var F=s();Jn(M,F)||(i("The result of getSnapshot should be cached to avoid an infinite loop"),G1=!0)}var $=P6();if($===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Qd(0,C0)||pT(A,s,M)}N.memoizedState=M;var G={value:M,getSnapshot:s};return N.queue=G,r6(gT.bind(null,A,G,a),[a]),A.flags|=mo,K2(gi|no,mT.bind(null,A,G,M,s),void 0,null),M}function J3(a,s,v){var M=dr,A=ks(),N=s();if(!G1){var F=s();Jn(N,F)||(i("The result of getSnapshot should be cached to avoid an infinite loop"),G1=!0)}var $=A.memoizedState,G=!Jn($,N);G&&(A.memoizedState=N,Y2());var Z=A.queue;if(H2(gT.bind(null,M,Z,a),[a]),Z.getSnapshot!==s||G||Bi!==null&&Bi.memoizedState.tag&gi){M.flags|=mo,K2(gi|no,mT.bind(null,M,Z,N,s),void 0,null);var ce=P6();if(ce===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Qd(0,C0)||pT(M,s,N)}return N}function pT(a,s,v){a.flags|=Fd;var M={getSnapshot:s,value:v},A=dr.updateQueue;if(A===null)A={lastEffect:null,stores:null},dr.updateQueue=A,A.stores=[M];else{var N=A.stores;N===null?A.stores=[M]:N.push(M)}}function mT(a,s,v,M){s.value=v,s.getSnapshot=M,vT(s)&&bT(a)}function gT(a,s,v){return v(function(){vT(s)&&bT(a)})}function vT(a){var s=a.getSnapshot,v=a.value;try{var M=s();return!Jn(v,M)}catch{return!0}}function bT(a){var s=fa(a,gn);s!==null&&wi(s,a,gn,ir)}function e6(a){var s=Nl();typeof a=="function"&&(a=a()),s.memoizedState=s.baseState=a;var v={pending:null,interleaved:null,lanes:st,dispatch:null,lastRenderedReducer:v9,lastRenderedState:a};s.queue=v;var M=v.dispatch=dH.bind(null,dr,v);return[s.memoizedState,M]}function S9(a){return y9(v9)}function E9(a){return w9(v9)}function K2(a,s,v,M){var A={tag:a,create:s,destroy:v,deps:M,next:null},N=dr.updateQueue;if(N===null)N={lastEffect:null,stores:null},dr.updateQueue=N,N.lastEffect=A.next=A;else{var F=N.lastEffect;if(F===null)N.lastEffect=A.next=A;else{var $=F.next;F.next=A,A.next=$,N.lastEffect=A}}return A}function k9(a){var s={current:a};return Nl().memoizedState=s,s}function t6(a){return ks().memoizedState}function q2(a,s,v,M){var A=Nl(),N=M===void 0?null:M;dr.flags|=a,A.memoizedState=K2(gi|s,v,void 0,N)}function n6(a,s,v,M){var A=ks(),N=M===void 0?null:M,F=void 0;if(Di!==null){var $=Di.memoizedState;if(F=$.destroy,N!==null&&g9(N,$.deps))return void(A.memoizedState=K2(s,v,F,N))}dr.flags|=a,A.memoizedState=K2(gi|s,v,F,N)}function r6(a,s){return(dr.mode&Io)!==mn?q2(wl|mo|yl,no,a,s):q2(mo|yl,no,a,s)}function H2(a,s){return n6(mo,no,a,s)}function M9(a,s){return q2(Rn,Ol,a,s)}function i6(a,s){return n6(Rn,Ol,a,s)}function C9(a,s){var v=Rn;return v|=bl,(dr.mode&Io)!==mn&&(v|=ii),q2(v,vi,a,s)}function o6(a,s){return n6(Rn,vi,a,s)}function yT(a,s){if(typeof s=="function"){var v=s,M=a();return v(M),function(){v(null)}}if(s!=null){var A=s;A.hasOwnProperty("current")||i("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(A).join(", ")+"}");var N=a();return A.current=N,function(){A.current=null}}}function x9(a,s,v){typeof s!="function"&&i("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",s!==null?typeof s:"null");var M=v!=null?v.concat([a]):null,A=Rn;return A|=bl,(dr.mode&Io)!==mn&&(A|=ii),q2(A,vi,yT.bind(null,s,a),M)}function a6(a,s,v){typeof s!="function"&&i("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",s!==null?typeof s:"null");var M=v!=null?v.concat([a]):null;return n6(Rn,vi,yT.bind(null,s,a),M)}function uH(a,s){}var s6=uH;function A9(a,s){var v=s===void 0?null:s;return Nl().memoizedState=[a,v],a}function u6(a,s){var v=ks(),M=s===void 0?null:s,A=v.memoizedState;return A!==null&&M!==null&&g9(M,A[1])?A[0]:(v.memoizedState=[a,M],a)}function R9(a,s){var v=Nl(),M=s===void 0?null:s,A=a();return v.memoizedState=[A,M],A}function l6(a,s){var v=ks(),M=s===void 0?null:s,A=v.memoizedState;if(A!==null&&M!==null&&g9(M,A[1]))return A[0];var N=a();return v.memoizedState=[N,M],N}function T9(a){return Nl().memoizedState=a,a}function wT(a){return ST(ks(),Di.memoizedState,a)}function _T(a){var s=ks();return Di===null?(s.memoizedState=a,a):ST(s,Di.memoizedState,a)}function ST(a,s,v){if((C0&(gn|Ra|sa))!==st){if(!Jn(v,s)){var M=Hh();dr.lanes=yn(dr.lanes,M),iv(M),a.baseState=!0}return s}return a.baseState&&(a.baseState=!1,Y2()),a.memoizedState=v,v}function lH(a,s,v){var M=Na();ei(function(F,$){return F!==0&&F<$?F:$}(M,ms)),a(!0);var A=z2.transition;z2.transition={};var N=z2.transition;z2.transition._updatedFibers=new Set;try{a(!1),s()}finally{ei(M),z2.transition=A,A===null&&N._updatedFibers&&(N._updatedFibers.size>10&&o("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),N._updatedFibers.clear())}}function P9(){var a=e6(!1),s=a[0],v=a[1],M=lH.bind(null,v);return Nl().memoizedState=M,[s,M]}function ET(){return[S9()[0],ks().memoizedState]}function kT(){return[E9()[0],ks().memoizedState]}var MT=!1;function L9(){var a,s=Nl(),v=P6().identifierPrefix;if(to()){a=":"+v+"R"+Hq();var M=F2++;M>0&&(a+="H"+M.toString(32)),a+=":"}else a=":"+v+"r"+(aH++).toString(32)+":";return s.memoizedState=a,a}function c6(){return ks().memoizedState}function cH(a,s,v){typeof arguments[3]=="function"&&i("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var M=Lf(a),A={lane:M,action:v,hasEagerState:!1,eagerState:null,next:null};if(CT(a))xT(s,A);else{var N=WR(a,s,A,M);N!==null&&(wi(N,a,M,Ko()),AT(N,s,M))}RT(a,M)}function dH(a,s,v){typeof arguments[3]=="function"&&i("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var M=Lf(a),A={lane:M,action:v,hasEagerState:!1,eagerState:null,next:null};if(CT(a))xT(s,A);else{var N=a.alternate;if(a.lanes===st&&(N===null||N.lanes===st)){var F=s.lastRenderedReducer;if(F!==null){var $;$=Bt.current,Bt.current=xu;try{var G=s.lastRenderedState,Z=F(G,v);if(A.hasEagerState=!0,A.eagerState=Z,Jn(Z,G))return void function(Se,Ee,ve,he){var se=Ee.interleaved;se===null?(ve.next=ve,z7(Ee)):(ve.next=se.next,se.next=ve),Ee.interleaved=ve}(0,s,A)}catch{}finally{Bt.current=$}}}var ce=WR(a,s,A,M);ce!==null&&(wi(ce,a,M,Ko()),AT(ce,s,M))}RT(a,M)}function CT(a){var s=a.alternate;return a===dr||s!==null&&s===dr}function xT(a,s){U2=X3=!0;var v=a.pending;v===null?s.next=s:(s.next=v.next,v.next=s),a.pending=s}function AT(a,s,v){if(d1(v)){var M=s.lanes,A=yn(M=e3(M,a.pendingLanes),v);s.lanes=A,Wh(a,A)}}function RT(a,s,v){r1(a,s)}var d6={readContext:si,useCallback:_o,useContext:_o,useEffect:_o,useImperativeHandle:_o,useInsertionEffect:_o,useLayoutEffect:_o,useMemo:_o,useReducer:_o,useRef:_o,useState:_o,useDebugValue:_o,useDeferredValue:_o,useTransition:_o,useMutableSource:_o,useSyncExternalStore:_o,useId:_o,unstable_isNewReconciler:C},TT=null,PT=null,LT=null,IT=null,Dl=null,xu=null,f6=null,I9=function(){i("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Sn=function(){i("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};TT={readContext:function(a){return si(a)},useCallback:function(a,s){return nt="useCallback",er(),Z1(s),A9(a,s)},useContext:function(a){return nt="useContext",er(),si(a)},useEffect:function(a,s){return nt="useEffect",er(),Z1(s),r6(a,s)},useImperativeHandle:function(a,s,v){return nt="useImperativeHandle",er(),Z1(v),x9(a,s,v)},useInsertionEffect:function(a,s){return nt="useInsertionEffect",er(),Z1(s),M9(a,s)},useLayoutEffect:function(a,s){return nt="useLayoutEffect",er(),Z1(s),C9(a,s)},useMemo:function(a,s){nt="useMemo",er(),Z1(s);var v=Bt.current;Bt.current=Dl;try{return R9(a,s)}finally{Bt.current=v}},useReducer:function(a,s,v){nt="useReducer",er();var M=Bt.current;Bt.current=Dl;try{return b9(a,s,v)}finally{Bt.current=M}},useRef:function(a){return nt="useRef",er(),k9(a)},useState:function(a){nt="useState",er();var s=Bt.current;Bt.current=Dl;try{return e6(a)}finally{Bt.current=s}},useDebugValue:function(a,s){nt="useDebugValue",er()},useDeferredValue:function(a){return nt="useDeferredValue",er(),T9(a)},useTransition:function(){return nt="useTransition",er(),P9()},useMutableSource:function(a,s,v){nt="useMutableSource",er()},useSyncExternalStore:function(a,s,v){return nt="useSyncExternalStore",er(),_9(a,s,v)},useId:function(){return nt="useId",er(),L9()},unstable_isNewReconciler:C},PT={readContext:function(a){return si(a)},useCallback:function(a,s){return nt="useCallback",Lt(),A9(a,s)},useContext:function(a){return nt="useContext",Lt(),si(a)},useEffect:function(a,s){return nt="useEffect",Lt(),r6(a,s)},useImperativeHandle:function(a,s,v){return nt="useImperativeHandle",Lt(),x9(a,s,v)},useInsertionEffect:function(a,s){return nt="useInsertionEffect",Lt(),M9(a,s)},useLayoutEffect:function(a,s){return nt="useLayoutEffect",Lt(),C9(a,s)},useMemo:function(a,s){nt="useMemo",Lt();var v=Bt.current;Bt.current=Dl;try{return R9(a,s)}finally{Bt.current=v}},useReducer:function(a,s,v){nt="useReducer",Lt();var M=Bt.current;Bt.current=Dl;try{return b9(a,s,v)}finally{Bt.current=M}},useRef:function(a){return nt="useRef",Lt(),k9(a)},useState:function(a){nt="useState",Lt();var s=Bt.current;Bt.current=Dl;try{return e6(a)}finally{Bt.current=s}},useDebugValue:function(a,s){nt="useDebugValue",Lt()},useDeferredValue:function(a){return nt="useDeferredValue",Lt(),T9(a)},useTransition:function(){return nt="useTransition",Lt(),P9()},useMutableSource:function(a,s,v){nt="useMutableSource",Lt()},useSyncExternalStore:function(a,s,v){return nt="useSyncExternalStore",Lt(),_9(a,s,v)},useId:function(){return nt="useId",Lt(),L9()},unstable_isNewReconciler:C},LT={readContext:function(a){return si(a)},useCallback:function(a,s){return nt="useCallback",Lt(),u6(a,s)},useContext:function(a){return nt="useContext",Lt(),si(a)},useEffect:function(a,s){return nt="useEffect",Lt(),H2(a,s)},useImperativeHandle:function(a,s,v){return nt="useImperativeHandle",Lt(),a6(a,s,v)},useInsertionEffect:function(a,s){return nt="useInsertionEffect",Lt(),i6(a,s)},useLayoutEffect:function(a,s){return nt="useLayoutEffect",Lt(),o6(a,s)},useMemo:function(a,s){nt="useMemo",Lt();var v=Bt.current;Bt.current=xu;try{return l6(a,s)}finally{Bt.current=v}},useReducer:function(a,s,v){nt="useReducer",Lt();var M=Bt.current;Bt.current=xu;try{return y9(a)}finally{Bt.current=M}},useRef:function(a){return nt="useRef",Lt(),t6()},useState:function(a){nt="useState",Lt();var s=Bt.current;Bt.current=xu;try{return S9()}finally{Bt.current=s}},useDebugValue:function(a,s){return nt="useDebugValue",Lt(),s6()},useDeferredValue:function(a){return nt="useDeferredValue",Lt(),wT(a)},useTransition:function(){return nt="useTransition",Lt(),ET()},useMutableSource:function(a,s,v){nt="useMutableSource",Lt()},useSyncExternalStore:function(a,s,v){return nt="useSyncExternalStore",Lt(),J3(a,s)},useId:function(){return nt="useId",Lt(),c6()},unstable_isNewReconciler:C},IT={readContext:function(a){return si(a)},useCallback:function(a,s){return nt="useCallback",Lt(),u6(a,s)},useContext:function(a){return nt="useContext",Lt(),si(a)},useEffect:function(a,s){return nt="useEffect",Lt(),H2(a,s)},useImperativeHandle:function(a,s,v){return nt="useImperativeHandle",Lt(),a6(a,s,v)},useInsertionEffect:function(a,s){return nt="useInsertionEffect",Lt(),i6(a,s)},useLayoutEffect:function(a,s){return nt="useLayoutEffect",Lt(),o6(a,s)},useMemo:function(a,s){nt="useMemo",Lt();var v=Bt.current;Bt.current=f6;try{return l6(a,s)}finally{Bt.current=v}},useReducer:function(a,s,v){nt="useReducer",Lt();var M=Bt.current;Bt.current=f6;try{return w9(a)}finally{Bt.current=M}},useRef:function(a){return nt="useRef",Lt(),t6()},useState:function(a){nt="useState",Lt();var s=Bt.current;Bt.current=f6;try{return E9()}finally{Bt.current=s}},useDebugValue:function(a,s){return nt="useDebugValue",Lt(),s6()},useDeferredValue:function(a){return nt="useDeferredValue",Lt(),_T(a)},useTransition:function(){return nt="useTransition",Lt(),kT()},useMutableSource:function(a,s,v){nt="useMutableSource",Lt()},useSyncExternalStore:function(a,s,v){return nt="useSyncExternalStore",Lt(),J3(a,s)},useId:function(){return nt="useId",Lt(),c6()},unstable_isNewReconciler:C},Dl={readContext:function(a){return I9(),si(a)},useCallback:function(a,s){return nt="useCallback",Sn(),er(),A9(a,s)},useContext:function(a){return nt="useContext",Sn(),er(),si(a)},useEffect:function(a,s){return nt="useEffect",Sn(),er(),r6(a,s)},useImperativeHandle:function(a,s,v){return nt="useImperativeHandle",Sn(),er(),x9(a,s,v)},useInsertionEffect:function(a,s){return nt="useInsertionEffect",Sn(),er(),M9(a,s)},useLayoutEffect:function(a,s){return nt="useLayoutEffect",Sn(),er(),C9(a,s)},useMemo:function(a,s){nt="useMemo",Sn(),er();var v=Bt.current;Bt.current=Dl;try{return R9(a,s)}finally{Bt.current=v}},useReducer:function(a,s,v){nt="useReducer",Sn(),er();var M=Bt.current;Bt.current=Dl;try{return b9(a,s,v)}finally{Bt.current=M}},useRef:function(a){return nt="useRef",Sn(),er(),k9(a)},useState:function(a){nt="useState",Sn(),er();var s=Bt.current;Bt.current=Dl;try{return e6(a)}finally{Bt.current=s}},useDebugValue:function(a,s){nt="useDebugValue",Sn(),er()},useDeferredValue:function(a){return nt="useDeferredValue",Sn(),er(),T9(a)},useTransition:function(){return nt="useTransition",Sn(),er(),P9()},useMutableSource:function(a,s,v){nt="useMutableSource",Sn(),er()},useSyncExternalStore:function(a,s,v){return nt="useSyncExternalStore",Sn(),er(),_9(a,s,v)},useId:function(){return nt="useId",Sn(),er(),L9()},unstable_isNewReconciler:C},xu={readContext:function(a){return I9(),si(a)},useCallback:function(a,s){return nt="useCallback",Sn(),Lt(),u6(a,s)},useContext:function(a){return nt="useContext",Sn(),Lt(),si(a)},useEffect:function(a,s){return nt="useEffect",Sn(),Lt(),H2(a,s)},useImperativeHandle:function(a,s,v){return nt="useImperativeHandle",Sn(),Lt(),a6(a,s,v)},useInsertionEffect:function(a,s){return nt="useInsertionEffect",Sn(),Lt(),i6(a,s)},useLayoutEffect:function(a,s){return nt="useLayoutEffect",Sn(),Lt(),o6(a,s)},useMemo:function(a,s){nt="useMemo",Sn(),Lt();var v=Bt.current;Bt.current=xu;try{return l6(a,s)}finally{Bt.current=v}},useReducer:function(a,s,v){nt="useReducer",Sn(),Lt();var M=Bt.current;Bt.current=xu;try{return y9(a)}finally{Bt.current=M}},useRef:function(a){return nt="useRef",Sn(),Lt(),t6()},useState:function(a){nt="useState",Sn(),Lt();var s=Bt.current;Bt.current=xu;try{return S9()}finally{Bt.current=s}},useDebugValue:function(a,s){return nt="useDebugValue",Sn(),Lt(),s6()},useDeferredValue:function(a){return nt="useDeferredValue",Sn(),Lt(),wT(a)},useTransition:function(){return nt="useTransition",Sn(),Lt(),ET()},useMutableSource:function(a,s,v){nt="useMutableSource",Sn(),Lt()},useSyncExternalStore:function(a,s,v){return nt="useSyncExternalStore",Sn(),Lt(),J3(a,s)},useId:function(){return nt="useId",Sn(),Lt(),c6()},unstable_isNewReconciler:C},f6={readContext:function(a){return I9(),si(a)},useCallback:function(a,s){return nt="useCallback",Sn(),Lt(),u6(a,s)},useContext:function(a){return nt="useContext",Sn(),Lt(),si(a)},useEffect:function(a,s){return nt="useEffect",Sn(),Lt(),H2(a,s)},useImperativeHandle:function(a,s,v){return nt="useImperativeHandle",Sn(),Lt(),a6(a,s,v)},useInsertionEffect:function(a,s){return nt="useInsertionEffect",Sn(),Lt(),i6(a,s)},useLayoutEffect:function(a,s){return nt="useLayoutEffect",Sn(),Lt(),o6(a,s)},useMemo:function(a,s){nt="useMemo",Sn(),Lt();var v=Bt.current;Bt.current=xu;try{return l6(a,s)}finally{Bt.current=v}},useReducer:function(a,s,v){nt="useReducer",Sn(),Lt();var M=Bt.current;Bt.current=xu;try{return w9(a)}finally{Bt.current=M}},useRef:function(a){return nt="useRef",Sn(),Lt(),t6()},useState:function(a){nt="useState",Sn(),Lt();var s=Bt.current;Bt.current=xu;try{return E9()}finally{Bt.current=s}},useDebugValue:function(a,s){return nt="useDebugValue",Sn(),Lt(),s6()},useDeferredValue:function(a){return nt="useDeferredValue",Sn(),Lt(),_T(a)},useTransition:function(){return nt="useTransition",Sn(),Lt(),kT()},useMutableSource:function(a,s,v){nt="useMutableSource",Sn(),Lt()},useSyncExternalStore:function(a,s,v){return nt="useSyncExternalStore",Sn(),Lt(),J3(a,s)},useId:function(){return nt="useId",Sn(),Lt(),c6()},unstable_isNewReconciler:C};var Af=t.unstable_now,OT=0,h6=-1,W2=-1,p6=-1,O9=!1,m6=!1;function NT(){return O9}function DT(){return OT}function BT(){OT=Af()}function N9(a){W2=Af(),a.actualStartTime<0&&(a.actualStartTime=Af())}function jT(a){W2=-1}function g6(a,s){if(W2>=0){var v=Af()-W2;a.actualDuration+=v,s&&(a.selfBaseDuration=v),W2=-1}}function Bl(a){if(h6>=0){var s=Af()-h6;h6=-1;for(var v=a.return;v!==null;){switch(v.tag){case S:return void(v.stateNode.effectDuration+=s);case ue:return void(v.stateNode.effectDuration+=s)}v=v.return}}}function D9(a){if(p6>=0){var s=Af()-p6;p6=-1;for(var v=a.return;v!==null;){switch(v.tag){case S:var M=v.stateNode;return void(M!==null&&(M.passiveEffectDuration+=s));case ue:var A=v.stateNode;return void(A!==null&&(A.passiveEffectDuration+=s))}v=v.return}}}function jl(){h6=Af()}function B9(){p6=Af()}function j9(a){for(var s=a.child;s;)a.actualDuration+=s.actualDuration,s=s.sibling}function x0(a,s){return{value:a,source:s,stack:dl(s),digest:null}}function z9(a,s,v){return{value:a,source:null,stack:v??null,digest:s??null}}function U9(a,s){try{var v=s.value,M=s.source,A=s.stack,N=A!==null?A:"";if(v!=null&&v._suppressLogging){if(a.tag===_)return;console.error(v)}var F=M?ne(M):null,$=(F?"The above error occurred in the <"+F+"> component:":"The above error occurred in one of your React components:")+`
165
+ `+N+`
166
+
167
+ `+(a.tag===S?`Consider adding an error boundary to your tree to customize error handling behavior.
168
+ Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`:"React will try to recreate this component tree from scratch using the error boundary you provided, "+(ne(a)||"Anonymous")+".");console.error($)}catch(G){setTimeout(function(){throw G})}}var fH=typeof WeakMap=="function"?WeakMap:Map;function zT(a,s,v){var M=Gc(ir,v);M.tag=F7,M.payload={element:null};var A=s.value;return M.callback=function(){XH(A),U9(a,s)},M}function F9(a,s,v){var M=Gc(ir,v);M.tag=F7;var A=a.type.getDerivedStateFromError;if(typeof A=="function"){var N=s.value;M.payload=function(){return A(N)},M.callback=function(){ZP(a),U9(a,s)}}var F=a.stateNode;return F!==null&&typeof F.componentDidCatch=="function"&&(M.callback=function(){ZP(a),U9(a,s),typeof A!="function"&&function(Z){rm===null?rm=new Set([Z]):rm.add(Z)}(this);var $=s.value,G=s.stack;this.componentDidCatch($,{componentStack:G!==null?G:""}),typeof A!="function"&&(Xn(a.lanes,gn)||i("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",ne(a)||"Unknown"))}),M}function UT(a,s,v){var M,A=a.pingCache;if(A===null?(A=a.pingCache=new fH,M=new Set,A.set(s,M)):(M=A.get(s))===void 0&&(M=new Set,A.set(s,M)),!M.has(v)){M.add(v);var N=JH.bind(null,a,s,v);go&&ov(a,v),s.then(N,N)}}function FT(a){var s=a;do{if(s.tag===le&&iH(s))return s;s=s.return}while(s!==null);return null}function KT(a,s,v,M,A){if((a.mode&Ln)===mn){if(a===s)a.flags|=Vi;else{if(a.flags|=qn,v.flags|=Kg,v.flags&=~(Fg|Kd),v.tag===_)if(v.alternate===null)v.tag=Te;else{var N=Gc(ir,gn);N.tag=F3,kf(v,N,gn)}v.lanes=yn(v.lanes,gn)}return a}return a.flags|=Vi,a.lanes=A,a}function hH(a,s,v,M,A){if(v.flags|=Kd,go&&ov(a,A),M!==null&&typeof M=="object"&&typeof M.then=="function"){var N=M;(function(se,te){var ge=se.tag;if((se.mode&Ln)===mn&&(ge===g||ge===X||ge===Me)){var _e=se.alternate;_e?(se.updateQueue=_e.updateQueue,se.memoizedState=_e.memoizedState,se.lanes=_e.lanes):(se.updateQueue=null,se.memoizedState=null)}})(v),to()&&v.mode&Ln&&IR();var F=FT(s);if(F!==null)return F.flags&=~Gs,KT(F,s,v,0,A),F.mode&Ln&&UT(a,N,A),void function(se,te,ge,_e){var xe=se.updateQueue;if(xe===null){var Oe=new Set;Oe.add(ge),se.updateQueue=Oe}else xe.add(ge)}(F,0,N);if((A&gn)===st)return UT(a,N,A),void ww();M=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.")}else if(to()&&v.mode&Ln){IR();var $=FT(s);if($!==null)return($.flags&Vi)===an&&($.flags|=Gs),KT($,s,v,0,A),void I7(x0(M,v))}(function(se){yi!==X2&&(yi=R0),tv===null?tv=[se]:tv.push(se)})(M=x0(M,v));var G=s;do{switch(G.tag){case S:var Z=M;G.flags|=Vi;var ce=Ia(A);return G.lanes=yn(G.lanes,ce),void q7(G,zT(G,Z,ce));case _:var Se=M,Ee=G.type,ve=G.stateNode;if((G.flags&qn)===an&&(typeof Ee.getDerivedStateFromError=="function"||ve!==null&&typeof ve.componentDidCatch=="function"&&!FP(ve))){G.flags|=Vi;var he=Ia(A);return G.lanes=yn(G.lanes,he),void q7(G,F9(G,Se,he))}}G=G.return}while(G!==null)}var K9,$2,q9,H9,W9,A0,$9,v6,V2=n.ReactCurrentOwner,zl=!1;function zo(a,s,v,M){s.child=a===null?sT(s,null,v,M):$1(s,a.child,v,M)}function qT(a,s,v,M,A){if(s.type!==s.elementType){var N=v.propTypes;N&&_u(N,M,"prop",cr(v))}var F,$,G=v.render,Z=s.ref;if(W1(s,A),To(s),V2.current=s,An(!0),F=Q1(a,s,G,M,Z,A),$=X1(),s.mode&Wr){rr(!0);try{F=Q1(a,s,G,M,Z,A),$=X1()}finally{rr(!1)}}return An(!1),oa(),a===null||zl?(to()&&$&&x7(s),s.flags|=bc,zo(a,s,F,A),s.child):(fT(a,s,A),Zc(a,s,A))}function HT(a,s,v,M,A){if(a===null){var N=v.type;if(function(se){return typeof se=="function"&&!Tw(se)&&se.defaultProps===void 0}(N)&&v.compare===null&&v.defaultProps===void 0){var F;return F=am(N),s.tag=Me,s.type=F,G9(s,N),WT(a,s,F,M,A)}var $=N.propTypes;$&&_u($,M,"prop",cr(N));var G=Pw(v.type,null,M,s,s.mode,A);return G.ref=s.ref,G.return=s,s.child=G,G}var Z=v.type,ce=Z.propTypes;ce&&_u(ce,M,"prop",cr(Z));var Se=a.child;if(!nw(a,A)){var Ee=Se.memoizedProps,ve=v.compare;if((ve=ve!==null?ve:Pr)(Ee,M)&&a.ref===s.ref)return Zc(a,s,A)}s.flags|=bc;var he=I0(Se,M);return he.ref=s.ref,he.return=s,s.child=he,he}function WT(a,s,v,M,A){if(s.type!==s.elementType){var N=s.elementType;if(N.$$typeof===jt){var F=N,$=F._payload,G=F._init;try{N=G($)}catch{N=null}var Z=N&&N.propTypes;Z&&_u(Z,M,"prop",cr(N))}}if(a!==null){var ce=a.memoizedProps;if(Pr(ce,M)&&a.ref===s.ref&&s.type===a.type){if(zl=!1,s.pendingProps=M=ce,!nw(a,A))return s.lanes=a.lanes,Zc(a,s,A);(a.flags&Kg)!==an&&(zl=!0)}}return V9(a,s,v,M,A)}function $T(a,s,v){var M,A=s.pendingProps,N=A.children,F=a!==null?a.memoizedState:null;if(A.mode==="hidden"||L)if((s.mode&Ln)===mn){var $={baseLanes:st,cachePool:null,transitions:null};s.memoizedState=$,L6(s,v)}else{if(!Xn(v,pi)){var G;F!==null?G=yn(F.baseLanes,v):G=v,s.lanes=s.childLanes=pi;var Z={baseLanes:G,cachePool:null,transitions:null};return s.memoizedState=Z,s.updateQueue=null,L6(s,G),null}var ce={baseLanes:st,cachePool:null,transitions:null};s.memoizedState=ce,L6(s,F!==null?F.baseLanes:v)}else F!==null?(M=yn(F.baseLanes,v),s.memoizedState=null):M=v,L6(s,M);return zo(a,s,N,v),s.child}function VT(a,s){var v=s.ref;(a===null&&v!==null||a!==null&&a.ref!==v)&&(s.flags|=Zs,s.flags|=cs)}function V9(a,s,v,M,A){if(s.type!==s.elementType){var N=v.propTypes;N&&_u(N,M,"prop",cr(v))}var F,$,G;if(F=U1(s,z1(0,v,!0)),W1(s,A),To(s),V2.current=s,An(!0),$=Q1(a,s,v,M,F,A),G=X1(),s.mode&Wr){rr(!0);try{$=Q1(a,s,v,M,F,A),G=X1()}finally{rr(!1)}}return An(!1),oa(),a===null||zl?(to()&&G&&x7(s),s.flags|=bc,zo(a,s,$,A),s.child):(fT(a,s,A),Zc(a,s,A))}function YT(a,s,v,M,A){switch(aL(s)){case!1:var N=s.stateNode,F=new s.type(s.memoizedProps,N.context).state;N.updater.enqueueSetState(N,F,null);break;case!0:s.flags|=qn,s.flags|=Vi;var $=new Error("Simulated error coming from DevTools"),G=Ia(A);s.lanes=yn(s.lanes,G),q7(s,F9(s,x0($,s),G))}if(s.type!==s.elementType){var Z=v.propTypes;Z&&_u(Z,M,"prop",cr(v))}var ce,Se;Ll(v)?(ce=!0,R3(s)):ce=!1,W1(s,A),s.stateNode===null?(y6(a,s),nT(s,v,M),a9(s,v,M,A),Se=!0):Se=a===null?function(he,se,te,ge){var _e=he.stateNode,xe=he.memoizedProps;_e.props=xe;var Oe=_e.context,Ne=se.contextType,je=Da;je=typeof Ne=="object"&&Ne!==null?si(Ne):U1(he,z1(0,se,!0));var Ge=se.getDerivedStateFromProps,Je=typeof Ge=="function"||typeof _e.getSnapshotBeforeUpdate=="function";Je||typeof _e.UNSAFE_componentWillReceiveProps!="function"&&typeof _e.componentWillReceiveProps!="function"||xe===te&&Oe===je||rT(he,_e,te,je),GR();var Xe=he.memoizedState,Et=_e.state=Xe;if(H3(he,te,_e,ge),Et=he.memoizedState,xe===te&&Xe===Et&&!x3()&&!W3()){if(typeof _e.componentDidMount=="function"){var Dt=Rn;Dt|=bl,(he.mode&Io)!==mn&&(Dt|=ii),he.flags|=Dt}return!1}typeof Ge=="function"&&(J7(he,se,Ge,te),Et=he.memoizedState);var Wt=W3()||eT(he,se,xe,te,Xe,Et,je);if(Wt){if(Je||typeof _e.UNSAFE_componentWillMount!="function"&&typeof _e.componentWillMount!="function"||(typeof _e.componentWillMount=="function"&&_e.componentWillMount(),typeof _e.UNSAFE_componentWillMount=="function"&&_e.UNSAFE_componentWillMount()),typeof _e.componentDidMount=="function"){var ln=Rn;ln|=bl,(he.mode&Io)!==mn&&(ln|=ii),he.flags|=ln}}else{if(typeof _e.componentDidMount=="function"){var Tn=Rn;Tn|=bl,(he.mode&Io)!==mn&&(Tn|=ii),he.flags|=Tn}he.memoizedProps=te,he.memoizedState=Et}return _e.props=te,_e.state=Et,_e.context=je,Wt}(s,v,M,A):function(he,se,te,ge,_e){var xe=se.stateNode;YR(he,se);var Oe=se.memoizedProps,Ne=se.type===se.elementType?Oe:Mu(se.type,Oe);xe.props=Ne;var je=se.pendingProps,Ge=xe.context,Je=te.contextType,Xe=Da;Xe=typeof Je=="object"&&Je!==null?si(Je):U1(se,z1(0,te,!0));var Et=te.getDerivedStateFromProps,Dt=typeof Et=="function"||typeof xe.getSnapshotBeforeUpdate=="function";Dt||typeof xe.UNSAFE_componentWillReceiveProps!="function"&&typeof xe.componentWillReceiveProps!="function"||Oe===je&&Ge===Xe||rT(se,xe,ge,Xe),GR();var Wt=se.memoizedState,ln=xe.state=Wt;if(H3(se,ge,xe,_e),ln=se.memoizedState,Oe===je&&Wt===ln&&!x3()&&!W3()&&!R)return typeof xe.componentDidUpdate=="function"&&(Oe===he.memoizedProps&&Wt===he.memoizedState||(se.flags|=Rn)),typeof xe.getSnapshotBeforeUpdate=="function"&&(Oe===he.memoizedProps&&Wt===he.memoizedState||(se.flags|=ls)),!1;typeof Et=="function"&&(J7(se,te,Et,ge),ln=se.memoizedState);var Tn=W3()||eT(se,te,Ne,ge,Wt,ln,Xe)||R;return Tn?(Dt||typeof xe.UNSAFE_componentWillUpdate!="function"&&typeof xe.componentWillUpdate!="function"||(typeof xe.componentWillUpdate=="function"&&xe.componentWillUpdate(ge,ln,Xe),typeof xe.UNSAFE_componentWillUpdate=="function"&&xe.UNSAFE_componentWillUpdate(ge,ln,Xe)),typeof xe.componentDidUpdate=="function"&&(se.flags|=Rn),typeof xe.getSnapshotBeforeUpdate=="function"&&(se.flags|=ls)):(typeof xe.componentDidUpdate=="function"&&(Oe===he.memoizedProps&&Wt===he.memoizedState||(se.flags|=Rn)),typeof xe.getSnapshotBeforeUpdate=="function"&&(Oe===he.memoizedProps&&Wt===he.memoizedState||(se.flags|=ls)),se.memoizedProps=ge,se.memoizedState=ln),xe.props=ge,xe.state=ln,xe.context=Xe,Tn}(a,s,v,M,A);var Ee=Y9(a,s,v,Se,ce,A),ve=s.stateNode;return Se&&ve.props!==M&&(A0||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ne(s)||"a component"),A0=!0),Ee}function Y9(a,s,v,M,A,N){VT(a,s);var F=(s.flags&qn)!==an;if(!M&&!F)return A&&RR(s,v,!1),Zc(a,s,N);var $,G=s.stateNode;if(V2.current=s,F&&typeof v.getDerivedStateFromError!="function")$=null,jT();else{if(To(s),An(!0),$=G.render(),s.mode&Wr){rr(!0);try{G.render()}finally{rr(!1)}}An(!1),oa()}return s.flags|=bc,a!==null&&F?function(Z,ce,Se,Ee){ce.child=$1(ce,Z.child,null,Ee),ce.child=$1(ce,null,Se,Ee)}(a,s,$,N):zo(a,s,$,N),s.memoizedState=G.state,A&&RR(s,v,!0),s.child}function GT(a){var s=a.stateNode;s.pendingContext?xR(a,s.pendingContext,s.pendingContext!==s.context):s.context&&xR(a,s.context,!1),s9(a,s.containerInfo)}function ZT(a,s,v,M,A){return q1(),I7(A),s.flags|=Gs,zo(a,s,v,M),s.child}function pH(a,s,v,M){y6(a,s);var A=s.pendingProps,N=v,F=N._payload,$=(0,N._init)(F);s.type=$;var G=s.tag=function(Ee){if(typeof Ee=="function")return Tw(Ee)?_:g;if(Ee!=null){var ve=Ee.$$typeof;if(ve===bt)return X;if(ve===wt)return pe}return w}($),Z=Mu($,A);switch(G){case g:return G9(s,$),s.type=$=am($),V9(null,s,$,Z,M);case _:return s.type=$=Mw($),YT(null,s,$,Z,M);case X:return s.type=$=Cw($),qT(null,s,$,Z,M);case pe:if(s.type!==s.elementType){var ce=$.propTypes;ce&&_u(ce,Z,"prop",cr($))}return HT(null,s,$,Mu($.type,Z),M)}var Se="";throw $!==null&&typeof $=="object"&&$.$$typeof===jt&&(Se=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+$+". Lazy element type must resolve to a class or function."+Se)}function G9(a,s){if(s&&s.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",s.displayName||s.name||"Component"),a.ref!==null){var v="",M=ot();M&&(v+=`
169
+
170
+ Check the render method of \``+M+"`.");var A=M||"",N=a._debugSource;N&&(A=N.fileName+":"+N.lineNumber),W9[A]||(W9[A]=!0,i("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",v))}if(typeof s.getDerivedStateFromProps=="function"){var F=cr(s)||"Unknown";H9[F]||(i("%s: Function components do not support getDerivedStateFromProps.",F),H9[F]=!0)}if(typeof s.contextType=="object"&&s.contextType!==null){var $=cr(s)||"Unknown";q9[$]||(i("%s: Function components do not support contextType.",$),q9[$]=!0)}}K9={},$2={},q9={},H9={},W9={},A0=!1,$9={},v6={};var Z9={dehydrated:null,treeContext:null,retryLane:$r};function Q9(a){return{baseLanes:a,cachePool:null,transitions:null}}function QT(a,s,v){var M=s.pendingProps;sL(s)&&(s.flags|=qn);var A=Cu.current,N=!1,F=(s.flags&qn)!==an;if(F||function(xe,Oe,Ne,je){return(Oe===null||Oe.memoizedState!==null)&&c9(xe,B2)}(A,a)?(N=!0,s.flags&=~qn):a!==null&&a.memoizedState===null||(A=A|dT),Cf(s,A=Y1(A)),a===null){L7(s);var $=s.memoizedState;if($!==null){var G=$.dehydrated;if(G!==null)return function(xe,Oe,Ne){return(xe.mode&Ln)===mn?(i("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),xe.lanes=gn):N1(Oe)?xe.lanes=eu:xe.lanes=pi,null}(s,G)}var Z=M.children,ce=M.fallback;if(N){var Se=function(xe,Oe,Ne,je){var Ge,Je,Xe=xe.mode,Et=xe.child,Dt={mode:"hidden",children:Oe};return(Xe&Ln)===mn&&Et!==null?((Ge=Et).childLanes=st,Ge.pendingProps=Dt,xe.mode&Wn&&(Ge.actualDuration=0,Ge.actualStartTime=-1,Ge.selfBaseDuration=0,Ge.treeBaseDuration=0),Je=Of(Ne,Xe,je,null)):(Ge=J9(Dt,Xe),Je=Of(Ne,Xe,je,null)),Ge.return=xe,Je.return=xe,Ge.sibling=Je,xe.child=Ge,Je}(s,Z,ce,v);return s.child.memoizedState=Q9(v),s.memoizedState=Z9,Se}return X9(s,Z)}var Ee=a.memoizedState;if(Ee!==null){var ve=Ee.dehydrated;if(ve!==null)return function(xe,Oe,Ne,je,Ge,Je,Xe){if(Ne){if(Oe.flags&Gs)return Oe.flags&=~Gs,b6(xe,Oe,Xe,z9(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")));if(Oe.memoizedState!==null)return Oe.child=xe.child,Oe.flags|=qn,null;var Et=function(Gn,kr,ui,Nf,Eo){var U6=kr.mode,mW={mode:"visible",children:ui},qw=J9(mW,U6),F6=Of(Nf,U6,Eo,null);return F6.flags|=Ur,qw.return=kr,F6.return=kr,qw.sibling=F6,kr.child=qw,(kr.mode&Ln)!==mn&&$1(kr,Gn.child,null,Eo),F6}(xe,Oe,je.children,je.fallback,Xe);return Oe.child.memoizedState=Q9(Xe),Oe.memoizedState=Z9,Et}if(Wq(),(Oe.mode&Ln)===mn)return b6(xe,Oe,Xe,null);if(N1(Ge)){var Dt,Wt,ln,Tn=function(Gn){var kr,ui,Nf,Eo=Gn.nextSibling&&Gn.nextSibling.dataset;return Eo&&(kr=Eo.dgst,ui=Eo.msg,Nf=Eo.stck),{message:ui,digest:kr,stack:Nf}}(Ge);return Dt=Tn.digest,Wt=Tn.message,ln=Tn.stack,b6(xe,Oe,Xe,z9(Wt?new Error(Wt):new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),Dt,ln))}var bn=Xn(Xe,xe.childLanes);if(zl||bn){var jn=P6();if(jn!==null){var ar=function(Gn,kr){var ui;switch(iu(kr)){case Ra:ui=Aa;break;case sa:ui=eu;break;case Pi:case tu:case Bh:case i1:case Pa:case ds:case jh:case o1:case La:case fs:case Yd:case a1:case Gd:case s1:case u1:case zh:case kc:case l1:case c1:case Uh:case Mc:ui=Sc;break;case El:ui=hs;break;default:ui=$r}return(ui&(Gn.suspendedLanes|kr))!==$r?$r:ui}(jn,Xe);if(ar!==$r&&ar!==Je.retryLane){Je.retryLane=ar;var Lr=ir;fa(xe,ar),wi(jn,xe,ar,Lr)}}return ww(),b6(xe,Oe,Xe,z9(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")))}if(Kc(Ge))return Oe.flags|=qn,Oe.child=xe.child,function(Gn,kr){Gn._reactRetry=kr}(Ge,eW.bind(null,xe)),null;Vq(Oe,Ge,Je.treeContext);var qo=X9(Oe,je.children);return qo.flags|=Ma,qo}(a,s,F,M,ve,Ee,v)}if(N){var he=M.fallback,se=function(xe,Oe,Ne,je,Ge){var Je,Xe,Et=Oe.mode,Dt=xe.child,Wt=Dt.sibling,ln={mode:"hidden",children:Ne};return(Et&Ln)===mn&&Oe.child!==Dt?((Je=Oe.child).childLanes=st,Je.pendingProps=ln,Oe.mode&Wn&&(Je.actualDuration=0,Je.actualStartTime=-1,Je.selfBaseDuration=Dt.selfBaseDuration,Je.treeBaseDuration=Dt.treeBaseDuration),Oe.deletions=null):(Je=XT(Dt,ln)).subtreeFlags=Dt.subtreeFlags&Yi,Wt!==null?Xe=I0(Wt,je):(Xe=Of(je,Et,Ge,null)).flags|=Ur,Xe.return=Oe,Je.return=Oe,Je.sibling=Xe,Oe.child=Je,Xe}(a,s,M.children,he,v),te=s.child,ge=a.child.memoizedState;return te.memoizedState=ge===null?Q9(v):function(xe,Oe){return{baseLanes:yn(xe.baseLanes,Oe),cachePool:null,transitions:xe.transitions}}(ge,v),te.childLanes=function(xe,Oe){return kl(xe.childLanes,Oe)}(a,v),s.memoizedState=Z9,se}var _e=function(xe,Oe,Ne,je){var Ge=xe.child,Je=Ge.sibling,Xe=XT(Ge,{mode:"visible",children:Ne});if((Oe.mode&Ln)===mn&&(Xe.lanes=je),Xe.return=Oe,Xe.sibling=null,Je!==null){var Et=Oe.deletions;Et===null?(Oe.deletions=[Je],Oe.flags|=ss):Et.push(Je)}return Oe.child=Xe,Xe}(a,s,M.children,v);return s.memoizedState=null,_e}function X9(a,s,v){var M=J9({mode:"visible",children:s},a.mode);return M.return=a,a.child=M,M}function J9(a,s,v){return XP(a,s,st,null)}function XT(a,s){return I0(a,s)}function b6(a,s,v,M){M!==null&&I7(M),$1(s,a.child,null,v);var A=X9(s,s.pendingProps.children);return A.flags|=Ur,s.memoizedState=null,A}function JT(a,s,v){a.lanes=yn(a.lanes,s);var M=a.alternate;M!==null&&(M.lanes=yn(M.lanes,s)),j7(a.return,s,v)}function eP(a,s){var v=qr(a),M=!v&&typeof Yt(a)=="function";if(v||M){var A=v?"array":"iterable";return i("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",A,s,A),!1}return!0}function ew(a,s,v,M,A){var N=a.memoizedState;N===null?a.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:M,tail:v,tailMode:A}:(N.isBackwards=s,N.rendering=null,N.renderingStartTime=0,N.last=M,N.tail=v,N.tailMode=A)}function tP(a,s,v){var M=s.pendingProps,A=M.revealOrder,N=M.tail,F=M.children;(function(he){if(he!==void 0&&he!=="forwards"&&he!=="backwards"&&he!=="together"&&!$9[he])if($9[he]=!0,typeof he=="string")switch(he.toLowerCase()){case"together":case"forwards":case"backwards":i('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',he,he.toLowerCase());break;case"forward":case"backward":i('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',he,he.toLowerCase());break;default:i('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',he)}else i('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',he)})(A),function(he,se){he===void 0||v6[he]||(he!=="collapsed"&&he!=="hidden"?(v6[he]=!0,i('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',he)):se!=="forwards"&&se!=="backwards"&&(v6[he]=!0,i('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',he)))}(N,A),function(he,se){if((se==="forwards"||se==="backwards")&&he!=null&&he!==!1)if(qr(he)){for(var te=0;te<he.length;te++)if(!eP(he[te],te))return}else{var ge=Yt(he);if(typeof ge=="function"){var _e=ge.call(he);if(_e)for(var xe=_e.next(),Oe=0;!xe.done;xe=_e.next()){if(!eP(xe.value,Oe))return;Oe++}}else i('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',se)}}(F,A),zo(a,s,F,v);var $=Cu.current;if(c9($,B2)?($=d9($,B2),s.flags|=qn):(a!==null&&(a.flags&qn)!==an&&function(he,se,te){for(var ge=se;ge!==null;){if(ge.tag===le)ge.memoizedState!==null&&JT(ge,te,he);else if(ge.tag===x)JT(ge,te,he);else if(ge.child!==null){ge.child.return=ge,ge=ge.child;continue}if(ge===he)return;for(;ge.sibling===null;){if(ge.return===null||ge.return===he)return;ge=ge.return}ge.sibling.return=ge.return,ge=ge.sibling}}(s,s.child,v),$=Y1($)),Cf(s,$),(s.mode&Ln)===mn)s.memoizedState=null;else switch(A){case"forwards":var G,Z=function(he){for(var se=he,te=null;se!==null;){var ge=se.alternate;ge!==null&&Q3(ge)===null&&(te=se),se=se.sibling}return te}(s.child);Z===null?(G=s.child,s.child=null):(G=Z.sibling,Z.sibling=null),ew(s,!1,G,Z,N);break;case"backwards":var ce=null,Se=s.child;for(s.child=null;Se!==null;){var Ee=Se.alternate;if(Ee!==null&&Q3(Ee)===null){s.child=Se;break}var ve=Se.sibling;Se.sibling=ce,ce=Se,Se=ve}ew(s,!0,ce,null,N);break;case"together":ew(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}var nP=!1,rP,tw,iP,oP,aP=!1;function Y2(){zl=!0}function y6(a,s){(s.mode&Ln)===mn&&a!==null&&(a.alternate=null,s.alternate=null,s.flags|=Ur)}function Zc(a,s,v){return a!==null&&(s.dependencies=a.dependencies),jT(),iv(s.lanes),Xn(v,s.childLanes)?(function(M,A){if(M!==null&&A.child!==M.child)throw new Error("Resuming work not yet implemented.");if(A.child!==null){var N=A.child,F=I0(N,N.pendingProps);for(A.child=F,F.return=A;N.sibling!==null;)N=N.sibling,(F=F.sibling=I0(N,N.pendingProps)).return=A;F.sibling=null}}(a,s),s.child):null}function nw(a,s){return!!Xn(a.lanes,s)}function sP(a,s,v){if(s._debugNeedsRemount&&a!==null)return function(se,te,ge){var _e=te.return;if(_e===null)throw new Error("Cannot swap the root fiber.");if(se.alternate=null,te.alternate=null,ge.index=te.index,ge.sibling=te.sibling,ge.return=te.return,ge.ref=te.ref,te===_e.child)_e.child=ge;else{var xe=_e.child;if(xe===null)throw new Error("Expected parent to have a child.");for(;xe.sibling!==te;)if((xe=xe.sibling)===null)throw new Error("Expected to find the previous sibling.");xe.sibling=ge}var Oe=_e.deletions;return Oe===null?(_e.deletions=[se],_e.flags|=ss):Oe.push(se),ge.flags|=Ur,ge}(a,s,Pw(s.type,s.key,s.pendingProps,s._debugOwner||null,s.mode,s.lanes));if(a!==null)if(a.memoizedProps!==s.pendingProps||x3()||s.type!==a.type)zl=!0;else{if(!nw(a,v)&&(s.flags&qn)===an)return zl=!1,function(se,te,ge){switch(te.tag){case S:GT(te),te.stateNode,q1();break;case T:lT(te);break;case _:Ll(te.type)&&R3(te);break;case E:s9(te,te.stateNode.containerInfo);break;case ee:var _e=te.memoizedProps.value;HR(te,te.type._context,_e);break;case ue:Xn(ge,te.childLanes)&&(te.flags|=Rn);var xe=te.stateNode;xe.effectDuration=0,xe.passiveEffectDuration=0;break;case le:var Oe=te.memoizedState;if(Oe!==null){if(Oe.dehydrated!==null)return Cf(te,Y1(Cu.current)),te.flags|=qn,null;if(Xn(ge,te.child.childLanes))return QT(se,te,ge);Cf(te,Y1(Cu.current));var Ne=Zc(se,te,ge);return Ne!==null?Ne.sibling:null}Cf(te,Y1(Cu.current));break;case x:var je=(se.flags&qn)!==an,Ge=Xn(ge,te.childLanes);if(je){if(Ge)return tP(se,te,ge);te.flags|=qn}var Je=te.memoizedState;if(Je!==null&&(Je.rendering=null,Je.tail=null,Je.lastEffect=null),Cf(te,Cu.current),Ge)break;return null;case p:case h:return te.lanes=st,$T(se,te,ge)}return Zc(se,te,ge)}(a,s,v);zl=(a.flags&Kg)!==an}else if(zl=!1,to()&&function(se){return _0(),(se.flags&Jp)!==an}(s)){var M=s.index;LR(s,(_0(),L3),M)}switch(s.lanes=st,s.tag){case w:return function(se,te,ge,_e){y6(se,te);var xe,Oe,Ne,je=te.pendingProps;if(xe=U1(te,z1(0,ge,!1)),W1(te,_e),To(te),ge.prototype&&typeof ge.prototype.render=="function"){var Ge=cr(ge)||"Unknown";K9[Ge]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",Ge,Ge),K9[Ge]=!0)}if(te.mode&Wr&&ku.recordLegacyContextWarning(te,null),An(!0),V2.current=te,Oe=Q1(null,te,ge,je,xe,_e),Ne=X1(),An(!1),oa(),te.flags|=bc,typeof Oe=="object"&&Oe!==null&&typeof Oe.render=="function"&&Oe.$$typeof===void 0){var Je=cr(ge)||"Unknown";$2[Je]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Je,Je,Je),$2[Je]=!0)}if(typeof Oe=="object"&&Oe!==null&&typeof Oe.render=="function"&&Oe.$$typeof===void 0){var Xe=cr(ge)||"Unknown";$2[Xe]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Xe,Xe,Xe),$2[Xe]=!0),te.tag=_,te.memoizedState=null,te.updateQueue=null;var Et=!1;return Ll(ge)?(Et=!0,R3(te)):Et=!1,te.memoizedState=Oe.state!==null&&Oe.state!==void 0?Oe.state:null,K7(te),tT(te,Oe),a9(te,ge,je,_e),Y9(null,te,ge,!0,Et,_e)}if(te.tag=g,te.mode&Wr){rr(!0);try{Oe=Q1(null,te,ge,je,xe,_e),Ne=X1()}finally{rr(!1)}}return to()&&Ne&&x7(te),zo(null,te,Oe,_e),G9(te,ge),te.child}(a,s,s.type,v);case ye:return pH(a,s,s.elementType,v);case g:var A=s.type,N=s.pendingProps;return V9(a,s,A,s.elementType===A?N:Mu(A,N),v);case _:var F=s.type,$=s.pendingProps;return YT(a,s,F,s.elementType===F?$:Mu(F,$),v);case S:return function(se,te,ge){if(GT(te),se===null)throw new Error("Should have a current fiber. This is a bug in React.");var _e=te.pendingProps,xe=te.memoizedState,Oe=xe.element;YR(se,te),H3(te,_e,null,ge);var Ne=te.memoizedState;te.stateNode;var je=Ne.element;if(xe.isDehydrated){var Ge={element:je,isDehydrated:!1,cache:Ne.cache,pendingSuspenseBoundaries:Ne.pendingSuspenseBoundaries,transitions:Ne.transitions};if(te.updateQueue.baseState=Ge,te.memoizedState=Ge,te.flags&Gs)return ZT(se,te,je,ge,x0(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),te));if(je!==Oe)return ZT(se,te,je,ge,x0(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),te));$q(te);var Je=sT(te,null,je,ge);te.child=Je;for(var Xe=Je;Xe;)Xe.flags=Xe.flags&~Ur|Ma,Xe=Xe.sibling}else{if(q1(),je===Oe)return Zc(se,te,ge);zo(se,te,je,ge)}return te.child}(a,s,v);case T:return function(se,te,ge){lT(te),se===null&&L7(te);var _e=te.type,xe=te.pendingProps,Oe=se!==null?se.memoizedProps:null,Ne=xe.children;return dt(_e,xe)?Ne=null:Oe!==null&&dt(_e,Oe)&&(te.flags|=us),VT(se,te),zo(se,te,Ne,ge),te.child}(a,s,v);case I:return function(se,te){return se===null&&L7(te),null}(a,s);case le:return QT(a,s,v);case E:return function(se,te,ge){s9(te,te.stateNode.containerInfo);var _e=te.pendingProps;return se===null?te.child=$1(te,null,_e,ge):zo(se,te,_e,ge),te.child}(a,s,v);case X:var G=s.type,Z=s.pendingProps;return qT(a,s,G,s.elementType===G?Z:Mu(G,Z),v);case j:return function(se,te,ge){return zo(se,te,te.pendingProps,ge),te.child}(a,s,v);case H:return function(se,te,ge){return zo(se,te,te.pendingProps.children,ge),te.child}(a,s,v);case ue:return function(se,te,ge){te.flags|=Rn;var _e=te.stateNode;return _e.effectDuration=0,_e.passiveEffectDuration=0,zo(se,te,te.pendingProps.children,ge),te.child}(a,s,v);case ee:return function(se,te,ge){var _e=te.type._context,xe=te.pendingProps,Oe=te.memoizedProps,Ne=xe.value;"value"in xe||nP||(nP=!0,i("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var je=te.type.propTypes;if(je&&_u(je,xe,"prop","Context.Provider"),HR(te,_e,Ne),Oe!==null){var Ge=Oe.value;if(Jn(Ge,Ne)){if(Oe.children===xe.children&&!x3())return Zc(se,te,ge)}else Jq(te,_e,ge)}return zo(se,te,xe.children,ge),te.child}(a,s,v);case V:return function(se,te,ge){var _e=te.type;_e._context===void 0?_e!==_e.Consumer&&(aP||(aP=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):_e=_e._context;var xe=te.pendingProps.children;typeof xe!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),W1(te,ge);var Oe,Ne=si(_e);return To(te),V2.current=te,An(!0),Oe=xe(Ne),An(!1),oa(),te.flags|=bc,zo(se,te,Oe,ge),te.child}(a,s,v);case pe:var ce=s.type,Se=Mu(ce,s.pendingProps);if(s.type!==s.elementType){var Ee=ce.propTypes;Ee&&_u(Ee,Se,"prop",cr(ce))}return HT(a,s,ce,Se=Mu(ce.type,Se),v);case Me:return WT(a,s,s.type,s.pendingProps,v);case Te:var ve=s.type,he=s.pendingProps;return function(se,te,ge,_e,xe){var Oe;return y6(se,te),te.tag=_,Ll(ge)?(Oe=!0,R3(te)):Oe=!1,W1(te,xe),nT(te,ge,_e),a9(te,ge,_e,xe),Y9(null,te,ge,!0,Oe,xe)}(a,s,ve,s.elementType===ve?he:Mu(ve,he),v);case x:return tP(a,s,v);case d:break;case p:return $T(a,s,v)}throw new Error("Unknown unit of work tag ("+s.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function J1(a){a.flags|=Rn}function uP(a){a.flags|=Zs,a.flags|=cs}function G2(a,s){if(!to())switch(a.tailMode){case"hidden":for(var v=a.tail,M=null;v!==null;)v.alternate!==null&&(M=v),v=v.sibling;M===null?a.tail=null:M.sibling=null;break;case"collapsed":for(var A=a.tail,N=null;A!==null;)A.alternate!==null&&(N=A),A=A.sibling;N===null?s||a.tail===null?a.tail=null:a.tail.sibling=null:N.sibling=null}}function ro(a){var s=a.alternate!==null&&a.alternate.child===a.child,v=st,M=an;if(s){if((a.mode&Wn)!==mn){for(var A=a.selfBaseDuration,N=a.child;N!==null;)v=yn(v,yn(N.lanes,N.childLanes)),M|=N.subtreeFlags&Yi,M|=N.flags&Yi,A+=N.treeBaseDuration,N=N.sibling;a.treeBaseDuration=A}else for(var F=a.child;F!==null;)v=yn(v,yn(F.lanes,F.childLanes)),M|=F.subtreeFlags&Yi,M|=F.flags&Yi,F.return=a,F=F.sibling;a.subtreeFlags|=M}else{if((a.mode&Wn)!==mn){for(var $=a.actualDuration,G=a.selfBaseDuration,Z=a.child;Z!==null;)v=yn(v,yn(Z.lanes,Z.childLanes)),M|=Z.subtreeFlags,M|=Z.flags,$+=Z.actualDuration,G+=Z.treeBaseDuration,Z=Z.sibling;a.actualDuration=$,a.treeBaseDuration=G}else for(var ce=a.child;ce!==null;)v=yn(v,yn(ce.lanes,ce.childLanes)),M|=ce.subtreeFlags,M|=ce.flags,ce.return=a,ce=ce.sibling;a.subtreeFlags|=M}return a.childLanes=v,s}function mH(a,s,v){if(Eu&&Su!==null&&(s.mode&Ln)!==mn&&(s.flags&qn)===an)return zR(s),q1(),s.flags|=Gs|Kd|Vi,!1;var M=O3(s);if(v!==null&&v.dehydrated!==null){if(a===null){if(!M)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(Gq(s),ro(s),(s.mode&Wn)!==mn&&v!==null){var A=s.child;A!==null&&(s.treeBaseDuration-=A.treeBaseDuration)}return!1}if(q1(),(s.flags&qn)===an&&(s.memoizedState=null),s.flags|=Rn,ro(s),(s.mode&Wn)!==mn&&v!==null){var N=s.child;N!==null&&(s.treeBaseDuration-=N.treeBaseDuration)}return!1}return UR(),!0}function lP(a,s,v){var M=s.pendingProps;switch(A7(s),s.tag){case w:case ye:case Me:case g:case X:case j:case H:case ue:case V:case pe:return ro(s),null;case _:return Ll(s.type)&&A3(s),ro(s),null;case S:var A=s.stateNode;return V1(s),k7(s),h9(),A.pendingContext&&(A.context=A.pendingContext,A.pendingContext=null),(a===null||a.child===null)&&(O3(s)?J1(s):a!==null&&(a.memoizedState.isDehydrated&&(s.flags&Gs)===an||(s.flags|=ls,UR()))),tw(a,s),ro(s),null;case T:l9(s);var N=uT(),F=s.type;if(a!==null&&s.stateNode!=null)iP(a,s,F,M,N),a.ref!==s.ref&&uP(s);else{if(!M){if(s.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ro(s),null}var $=u9();if(O3(s))(function(Wt,ln,Tn){var bn=Wt.stateNode,jn=!S0,ar=v7(bn,Wt.type,Wt.memoizedProps,0,Tn,Wt,jn);return Wt.updateQueue=ar,ar!==null})(s,0,$)&&J1(s);else{var G=Ye(F,M,N,$,s);rP(G,s,!1,!1),s.stateNode=G,function(Wt,ln,Tn,bn,jn){switch(S3(Wt,ln,Tn),ln){case"button":case"input":case"select":case"textarea":return!!Tn.autoFocus;case"img":return!0;default:return!1}}(G,F,M)&&J1(s)}s.ref!==null&&uP(s)}return ro(s),null;case I:var Z=M;if(a&&s.stateNode!=null){var ce=a.memoizedProps;oP(a,s,ce,Z)}else{if(typeof Z!="string"&&s.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Se=uT(),Ee=u9();O3(s)?Yq(s)&&J1(s):s.stateNode=yt(Z,Se,Ee,s)}return ro(s),null;case le:j2(s);var ve=s.memoizedState;if((a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null)&&!mH(a,s,ve))return s.flags&Vi?s:null;if((s.flags&qn)!==an)return s.lanes=v,(s.mode&Wn)!==mn&&j9(s),s;var he=ve!==null;if(he!==(a!==null&&a.memoizedState!==null)&&he&&(s.child.flags|=Qs,(s.mode&Ln)!==mn&&(a===null&&(s.memoizedProps.unstable_avoidThisFallback!==!0||!B)||c9(Cu.current,dT)?yi===Qc&&(yi=S6):ww())),s.updateQueue!==null&&(s.flags|=Rn),ro(s),(s.mode&Wn)!==mn&&he){var se=s.child;se!==null&&(s.treeBaseDuration-=se.treeBaseDuration)}return null;case E:return V1(s),tw(a,s),a===null&&u0(s.stateNode.containerInfo),ro(s),null;case ee:return B7(s.type._context,s),ro(s),null;case Te:return Ll(s.type)&&A3(s),ro(s),null;case x:j2(s);var te=s.memoizedState;if(te===null)return ro(s),null;var ge=(s.flags&qn)!==an,_e=te.rendering;if(_e===null)if(ge)G2(te,!1);else{if(!(yi===Qc&&(a===null||(a.flags&qn)===an)))for(var xe=s.child;xe!==null;){var Oe=Q3(xe);if(Oe!==null){ge=!0,s.flags|=qn,G2(te,!1);var Ne=Oe.updateQueue;return Ne!==null&&(s.updateQueue=Ne,s.flags|=Rn),s.subtreeFlags=an,rH(s,v),Cf(s,d9(Cu.current,B2)),s.child}xe=xe.sibling}te.tail!==null&&Xr()>TP()&&(s.flags|=qn,ge=!0,G2(te,!1),s.lanes=Fh)}else{if(!ge){var je=Q3(_e);if(je!==null){s.flags|=qn,ge=!0;var Ge=je.updateQueue;if(Ge!==null&&(s.updateQueue=Ge,s.flags|=Rn),G2(te,!0),te.tail===null&&te.tailMode==="hidden"&&!_e.alternate&&!to())return ro(s),null}else 2*Xr()-te.renderingStartTime>TP()&&v!==pi&&(s.flags|=qn,ge=!0,G2(te,!1),s.lanes=Fh)}if(te.isBackwards)_e.sibling=s.child,s.child=_e;else{var Je=te.last;Je!==null?Je.sibling=_e:s.child=_e,te.last=_e}}if(te.tail!==null){var Xe=te.tail;te.rendering=Xe,te.tail=Xe.sibling,te.renderingStartTime=Xr(),Xe.sibling=null;var Et=Cu.current;return Cf(s,Et=ge?d9(Et,B2):Y1(Et)),Xe}return ro(s),null;case d:break;case p:case h:yw(s);var Dt=s.memoizedState!==null;return a!==null&&(a.memoizedState!==null===Dt||L||(s.flags|=Qs)),Dt&&(s.mode&Ln)!==mn?Xn(Kl,pi)&&(ro(s),s.subtreeFlags&(Ur|Rn)&&(s.flags|=Qs)):ro(s),null;case f:case l:return null}throw new Error("Unknown unit of work tag ("+s.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function gH(a,s,v){switch(A7(s),s.tag){case _:Ll(s.type)&&A3(s);var M=s.flags;return M&Vi?(s.flags=M&~Vi|qn,(s.mode&Wn)!==mn&&j9(s),s):null;case S:s.stateNode,V1(s),k7(s),h9();var A=s.flags;return(A&Vi)!==an&&(A&qn)===an?(s.flags=A&~Vi|qn,s):null;case T:return l9(s),null;case le:j2(s);var N=s.memoizedState;if(N!==null&&N.dehydrated!==null){if(s.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");q1()}var F=s.flags;return F&Vi?(s.flags=F&~Vi|qn,(s.mode&Wn)!==mn&&j9(s),s):null;case x:return j2(s),null;case E:return V1(s),null;case ee:return B7(s.type._context,s),null;case p:case h:return yw(s),null;default:return null}}function cP(a,s,v){switch(A7(s),s.tag){case _:var M=s.type.childContextTypes;M!=null&&A3(s);break;case S:s.stateNode,V1(s),k7(s),h9();break;case T:l9(s);break;case E:V1(s);break;case le:case x:j2(s);break;case ee:B7(s.type._context,s);break;case p:case h:yw(s)}}rP=function(a,s,v,M){for(var A,N,F=s.child;F!==null;){if(F.tag===T||F.tag===I)A=a,N=F.stateNode,A.appendChild(N);else if(F.tag!==E){if(F.child!==null){F.child.return=F,F=F.child;continue}}if(F===s)return;for(;F.sibling===null;){if(F.return===null||F.return===s)return;F=F.return}F.sibling.return=F.return,F=F.sibling}},tw=function(a,s){},iP=function(a,s,v,M,A){var N=a.memoizedProps;if(N!==M){var F=function($,G,Z,ce,Se,Ee){var ve=Ee;if(typeof ce.children!=typeof Z.children&&(typeof ce.children=="string"||typeof ce.children=="number")){var he=""+ce.children,se=wu(ve.ancestorInfo,G);g0(null,he,se)}return k2($,G,Z,ce)}(s.stateNode,v,N,M,0,u9());s.updateQueue=F,F&&J1(s)}},oP=function(a,s,v,M){v!==M&&J1(s)};var dP=null;dP=new Set;var w6=!1,So=!1,vH=typeof WeakSet=="function"?WeakSet:Set,Ht=null,em=null,tm=null,bH=function(a,s){if(s.props=a.memoizedProps,s.state=a.memoizedState,a.mode&Wn)try{jl(),s.componentWillUnmount()}finally{Bl(a)}else s.componentWillUnmount()};function fP(a,s){try{Rf(vi,a)}catch(v){Er(a,s,v)}}function rw(a,s,v){try{bH(a,v)}catch(M){Er(a,s,M)}}function hP(a,s){try{mP(a)}catch(v){Er(a,s,v)}}function nm(a,s){var v=a.ref;if(v!==null)if(typeof v=="function"){var M;try{if(q&&Y&&a.mode&Wn)try{jl(),M=v(null)}finally{Bl(a)}else M=v(null)}catch(A){Er(a,s,A)}typeof M=="function"&&i("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",ne(a))}else v.current=null}function _6(a,s,v){try{v()}catch(M){Er(a,s,M)}}var pP=!1;function yH(a,s){Ke(a.containerInfo),Ht=s,function(){for(;Ht!==null;){var M=Ht,A=M.child;(M.subtreeFlags&Ca)!==an&&A!==null?(A.return=M,Ht=A):wH()}}();var v=pP;return pP=!1,v}function wH(){for(;Ht!==null;){var a=Ht;qt(a);try{_H(a)}catch(v){Er(a,a.return,v)}It();var s=a.sibling;if(s!==null)return s.return=a.return,void(Ht=s);Ht=a.return}}function _H(a){var s,v=a.alternate;if((a.flags&ls)!==an){switch(qt(a),a.tag){case g:case X:case Me:break;case _:if(v!==null){var M=v.memoizedProps,A=v.memoizedState,N=a.stateNode;a.type!==a.elementType||A0||(N.props!==a.memoizedProps&&i("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ne(a)||"instance"),N.state!==a.memoizedState&&i("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ne(a)||"instance"));var F=N.getSnapshotBeforeUpdate(a.elementType===a.type?M:Mu(a.type,M),A),$=dP;F!==void 0||$.has(a.type)||($.add(a.type),i("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ne(a))),N.__reactInternalSnapshotBeforeUpdate=F}break;case S:var G=a.stateNode;(s=G.containerInfo).nodeType===po?s.textContent="":s.nodeType===rs&&s.documentElement&&s.removeChild(s.documentElement);break;case T:case I:case E:case Te:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}It()}}function Au(a,s,v){var M,A=s.updateQueue,N=A!==null?A.lastEffect:null;if(N!==null){var F=N.next,$=F;do{if(($.tag&a)===a){var G=$.destroy;$.destroy=void 0,G!==void 0&&((a&no)!==ha?(M=s,Pt!==null&&typeof Pt.markComponentPassiveEffectUnmountStarted=="function"&&Pt.markComponentPassiveEffectUnmountStarted(M)):(a&vi)!==ha&&t1(s),(a&Ol)!==ha&&av(!0),_6(s,v,G),(a&Ol)!==ha&&av(!1),(a&no)!==ha?Pt!==null&&typeof Pt.markComponentPassiveEffectUnmountStopped=="function"&&Pt.markComponentPassiveEffectUnmountStopped():(a&vi)!==ha&&n1())}$=$.next}while($!==F)}}function Rf(a,s){var v,M=s.updateQueue,A=M!==null?M.lastEffect:null;if(A!==null){var N=A.next,F=N;do{if((F.tag&a)===a){(a&no)!==ha?(v=s,Pt!==null&&typeof Pt.markComponentPassiveEffectMountStarted=="function"&&Pt.markComponentPassiveEffectMountStarted(v)):(a&vi)!==ha&&Xy(s);var $=F.create;(a&Ol)!==ha&&av(!0),F.destroy=$(),(a&Ol)!==ha&&av(!1),(a&no)!==ha?Pt!==null&&typeof Pt.markComponentPassiveEffectMountStopped=="function"&&Pt.markComponentPassiveEffectMountStopped():(a&vi)!==ha&&Pt!==null&&typeof Pt.markComponentLayoutEffectMountStopped=="function"&&Pt.markComponentLayoutEffectMountStopped();var G=F.destroy;if(G!==void 0&&typeof G!="function"){var Z=void 0;i("%s must not return anything besides a function, which is used for clean-up.%s",Z=(F.tag&vi)!==an?"useLayoutEffect":(F.tag&Ol)!==an?"useInsertionEffect":"useEffect",G===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof G.then=="function"?`
171
+
172
+ It looks like you wrote `+Z+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
173
+
174
+ `+Z+`(() => {
175
+ async function fetchData() {
176
+ // You can await here
177
+ const response = await MyAPI.getData(someId);
178
+ // ...
179
+ }
180
+ fetchData();
181
+ }, [someId]); // Or [] if effect doesn't need props or state
182
+
183
+ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:" You returned: "+G)}}F=F.next}while(F!==N)}}function SH(a,s){if((s.flags&Rn)!==an&&s.tag===ue){var v=s.stateNode.passiveEffectDuration,M=s.memoizedProps,A=M.id,N=M.onPostCommit,F=DT(),$=s.alternate===null?"mount":"update";NT()&&($="nested-update"),typeof N=="function"&&N(A,$,v,F);var G=s.return;e:for(;G!==null;){switch(G.tag){case S:G.stateNode.passiveEffectDuration+=v;break e;case ue:G.stateNode.passiveEffectDuration+=v;break e}G=G.return}}}function EH(a,s,v,M){if((v.flags&Ih)!==an)switch(v.tag){case g:case X:case Me:if(!So)if(v.mode&Wn)try{jl(),Rf(vi|gi,v)}finally{Bl(v)}else Rf(vi|gi,v);break;case _:var A=v.stateNode;if(v.flags&Rn&&!So)if(s===null)if(v.type!==v.elementType||A0||(A.props!==v.memoizedProps&&i("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ne(v)||"instance"),A.state!==v.memoizedState&&i("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ne(v)||"instance")),v.mode&Wn)try{jl(),A.componentDidMount()}finally{Bl(v)}else A.componentDidMount();else{var N=v.elementType===v.type?s.memoizedProps:Mu(v.type,s.memoizedProps),F=s.memoizedState;if(v.type!==v.elementType||A0||(A.props!==v.memoizedProps&&i("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ne(v)||"instance"),A.state!==v.memoizedState&&i("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ne(v)||"instance")),v.mode&Wn)try{jl(),A.componentDidUpdate(N,F,A.__reactInternalSnapshotBeforeUpdate)}finally{Bl(v)}else A.componentDidUpdate(N,F,A.__reactInternalSnapshotBeforeUpdate)}var $=v.updateQueue;$!==null&&(v.type!==v.elementType||A0||(A.props!==v.memoizedProps&&i("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ne(v)||"instance"),A.state!==v.memoizedState&&i("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ne(v)||"instance")),ZR(0,$,A));break;case S:var G=v.updateQueue;if(G!==null){var Z=null;if(v.child!==null)switch(v.child.tag){case T:case _:Z=v.child.stateNode}ZR(0,G,Z)}break;case T:var ce=v.stateNode;s===null&&v.flags&Rn&&function(xe,Oe,Ne,je){switch(Oe){case"button":case"input":case"select":case"textarea":return void(Ne.autoFocus&&xe.focus());case"img":Ne.src&&(xe.src=Ne.src)}}(ce,v.type,v.memoizedProps);break;case I:case E:break;case ue:var Se=v.memoizedProps,Ee=Se.onCommit,ve=Se.onRender,he=v.stateNode.effectDuration,se=DT(),te=s===null?"mount":"update";NT()&&(te="nested-update"),typeof ve=="function"&&ve(v.memoizedProps.id,te,v.actualDuration,v.treeBaseDuration,v.actualStartTime,se),typeof Ee=="function"&&Ee(v.memoizedProps.id,te,he,se),_e=v,hw.push(_e),T0||(T0=!0,kw(Sl,function(){return ed(),null}));var ge=v.return;e:for(;ge!==null;){switch(ge.tag){case S:ge.stateNode.effectDuration+=he;break e;case ue:ge.stateNode.effectDuration+=he;break e}ge=ge.return}break;case le:(function(xe,Oe){var Ne=Oe.memoizedState;if(Ne===null){var je=Oe.alternate;if(je!==null){var Ge=je.memoizedState;if(Ge!==null){var Je=Ge.dehydrated;Je!==null&&function(Xe){Ml(Xe)}(Je)}}}})(0,v);break;case x:case Te:case d:case p:case h:case l:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}var _e;So||v.flags&Zs&&mP(v)}function kH(a){switch(a.tag){case g:case X:case Me:if(a.mode&Wn)try{jl(),fP(a,a.return)}finally{Bl(a)}else fP(a,a.return);break;case _:var s=a.stateNode;typeof s.componentDidMount=="function"&&function(v,M,A){try{A.componentDidMount()}catch(N){Er(v,M,N)}}(a,a.return,s),hP(a,a.return);break;case T:hP(a,a.return)}}function mP(a){var s=a.ref;if(s!==null){var v,M=a.stateNode;if(a.tag,v=M,typeof s=="function"){var A;if(a.mode&Wn)try{jl(),A=s(v)}finally{Bl(a)}else A=s(v);typeof A=="function"&&i("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",ne(a))}else s.hasOwnProperty("current")||i("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ne(a)),s.current=v}}function gP(a){var s=a.alternate;if(s!==null&&(a.alternate=null,gP(s)),a.child=null,a.deletions=null,a.sibling=null,a.tag===T){var v=a.stateNode;v!==null&&function(M){delete M[B1],delete M[b7],delete M[y7],delete M[Fq],delete M[Kq]}(v)}a.stateNode=null,a._debugOwner=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function vP(a){return a.tag===T||a.tag===S||a.tag===E}function bP(a){var s=a;e:for(;;){for(;s.sibling===null;){if(s.return===null||vP(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==T&&s.tag!==I&&s.tag!==y;){if(s.flags&Ur||s.child===null||s.tag===E)continue e;s.child.return=s,s=s.child}if(!(s.flags&Ur))return s.stateNode}}function MH(a){var s=function(A){for(var N=A.return;N!==null;){if(vP(N))return N;N=N.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}(a);switch(s.tag){case T:var v=s.stateNode;s.flags&us&&(Ot(v),s.flags&=~us),ow(a,bP(a),v);break;case S:case E:var M=s.stateNode.containerInfo;iw(a,bP(a),M);break;default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function iw(a,s,v){var M=a.tag;if(M===T||M===I){var A=a.stateNode;s?function($,G,Z){$.nodeType===Qr?$.parentNode.insertBefore(G,Z):$.insertBefore(G,Z)}(v,A,s):function($,G){var Z;$.nodeType===Qr?(Z=$.parentNode).insertBefore(G,$):(Z=$).appendChild(G),$._reactRootContainer==null&&Z.onclick===null&&mf(Z)}(v,A)}else if(M!==E){var N=a.child;if(N!==null){iw(N,s,v);for(var F=N.sibling;F!==null;)iw(F,s,v),F=F.sibling}}}function ow(a,s,v){var M=a.tag;if(M===T||M===I){var A=a.stateNode;s?function($,G,Z){$.insertBefore(G,Z)}(v,A,s):function($,G){$.appendChild(G)}(v,A)}else if(M!==E){var N=a.child;if(N!==null){ow(N,s,v);for(var F=N.sibling;F!==null;)ow(F,s,v),F=F.sibling}}}var Uo=null,Ul=!1;function CH(a,s,v){var M,A,N=s;e:for(;N!==null;){switch(N.tag){case T:Uo=N.stateNode,Ul=!1;break e;case S:case E:Uo=N.stateNode.containerInfo,Ul=!0;break e}N=N.return}if(Uo===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");yP(a,s,v),Uo=null,Ul=!1,(A=(M=v).alternate)!==null&&(A.return=null),M.return=null}function Tf(a,s,v){for(var M=v.child;M!==null;)yP(a,s,M),M=M.sibling}function yP(a,s,v){switch(function(_e){if(Hr&&typeof Hr.onCommitFiberUnmount=="function")try{Hr.onCommitFiberUnmount(Ao,_e)}catch(xe){Ro||(Ro=!0,i("React instrumentation encountered an error: %s",xe))}}(v),v.tag){case T:So||nm(v,s);case I:var M=Uo,A=Ul;return Uo=null,Tf(a,s,v),Ul=A,void((Uo=M)!==null&&(Ul?(te=Uo,ge=v.stateNode,te.nodeType===Qr?te.parentNode.removeChild(ge):te.removeChild(ge)):function(_e,xe){_e.removeChild(xe)}(Uo,v.stateNode)));case y:return void(Uo!==null&&(Ul?function(_e,xe){_e.nodeType===Qr?kn(_e.parentNode,xe):_e.nodeType===po&&kn(_e,xe),Ml(_e)}(Uo,v.stateNode):kn(Uo,v.stateNode)));case E:var N=Uo,F=Ul;return Uo=v.stateNode.containerInfo,Ul=!0,Tf(a,s,v),Uo=N,void(Ul=F);case g:case X:case pe:case Me:if(!So){var $=v.updateQueue;if($!==null){var G=$.lastEffect;if(G!==null){var Z=G.next,ce=Z;do{var Se=ce,Ee=Se.destroy,ve=Se.tag;Ee!==void 0&&((ve&Ol)!==ha?_6(v,s,Ee):(ve&vi)!==ha&&(t1(v),v.mode&Wn?(jl(),_6(v,s,Ee),Bl(v)):_6(v,s,Ee),n1())),ce=ce.next}while(ce!==Z)}}}return void Tf(a,s,v);case _:if(!So){nm(v,s);var he=v.stateNode;typeof he.componentWillUnmount=="function"&&rw(v,s,he)}return void Tf(a,s,v);case d:return void Tf(a,s,v);case p:if(v.mode&Ln){var se=So;So=se||v.memoizedState!==null,Tf(a,s,v),So=se}else Tf(a,s,v);break;default:return void Tf(a,s,v)}var te,ge}function wP(a){var s=a.updateQueue;if(s!==null){a.updateQueue=null;var v=a.stateNode;v===null&&(v=a.stateNode=new vH),s.forEach(function(M){var A=tW.bind(null,a,M);if(!v.has(M)){if(v.add(M),go){if(em===null||tm===null)throw Error("Expected finished root and lanes to be set. This is a bug in React.");ov(tm,em)}M.then(A,A)}})}}function Ru(a,s,v){var M=s.deletions;if(M!==null)for(var A=0;A<M.length;A++){var N=M[A];try{CH(a,s,N)}catch(G){Er(N,s,G)}}var F=We;if(s.subtreeFlags&Lh)for(var $=s.child;$!==null;)qt($),_P($,a),$=$.sibling;qt(F)}function _P(a,s,v){var M=a.alternate,A=a.flags;switch(a.tag){case g:case X:case pe:case Me:if(Ru(s,a),Fl(a),A&Rn){try{Au(Ol|gi,a,a.return),Rf(Ol|gi,a)}catch(je){Er(a,a.return,je)}if(a.mode&Wn){try{jl(),Au(vi|gi,a,a.return)}catch(je){Er(a,a.return,je)}Bl(a)}else try{Au(vi|gi,a,a.return)}catch(je){Er(a,a.return,je)}}return;case _:return Ru(s,a),Fl(a),void(A&Zs&&M!==null&&nm(M,M.return));case T:if(Ru(s,a),Fl(a),A&Zs&&M!==null&&nm(M,M.return),a.flags&us){var N=a.stateNode;try{Ot(N)}catch(je){Er(a,a.return,je)}}if(A&Rn){var F=a.stateNode;if(F!=null){var $=a.memoizedProps,G=M!==null?M.memoizedProps:$,Z=a.type,ce=a.updateQueue;if(a.updateQueue=null,ce!==null)try{(function(je,Ge,Je,Xe,Et,Dt){I1(je,Ge,Je,Xe,Et),w7(je,Et)})(F,ce,Z,G,$)}catch(je){Er(a,a.return,je)}}}return;case I:if(Ru(s,a),Fl(a),A&Rn){if(a.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var Se=a.stateNode,Ee=a.memoizedProps;M!==null&&M.memoizedProps;try{(function(je,Ge,Je){je.nodeValue=Je})(Se,0,Ee)}catch(je){Er(a,a.return,je)}}return;case S:if(Ru(s,a),Fl(a),A&Rn&&M!==null&&M.memoizedState.isDehydrated)try{Ml(s.containerInfo)}catch(je){Er(a,a.return,je)}return;case E:return Ru(s,a),void Fl(a);case le:Ru(s,a),Fl(a);var ve=a.child;if(ve.flags&Qs){var he=ve.stateNode,se=ve.memoizedState!==null;he.isHidden=se,se&&(ve.alternate!==null&&ve.alternate.memoizedState!==null||(dw=Xr()))}if(A&Rn){try{(function(je){je.memoizedState})(a)}catch(je){Er(a,a.return,je)}wP(a)}return;case p:var te=M!==null&&M.memoizedState!==null;if(a.mode&Ln){var ge=So;So=ge||te,Ru(s,a),So=ge}else Ru(s,a);if(Fl(a),A&Qs){var _e=a.stateNode,xe=a.memoizedState!==null,Oe=a;if(_e.isHidden=xe,xe&&!te&&(Oe.mode&Ln)!==mn){Ht=Oe;for(var Ne=Oe.child;Ne!==null;)Ht=Ne,AH(Ne),Ne=Ne.sibling}(function(je,Ge){for(var Je=null,Xe=je;;){if(Xe.tag===T){if(Je===null){Je=Xe;try{var Et=Xe.stateNode;Ge?wn(Et):_n(Xe.stateNode,Xe.memoizedProps)}catch(Wt){Er(je,je.return,Wt)}}}else if(Xe.tag===I){if(Je===null)try{var Dt=Xe.stateNode;Ge?Dt.nodeValue="":Yn(Dt,Xe.memoizedProps)}catch(Wt){Er(je,je.return,Wt)}}else if((Xe.tag!==p&&Xe.tag!==h||Xe.memoizedState===null||Xe===je)&&Xe.child!==null){Xe.child.return=Xe,Xe=Xe.child;continue}if(Xe===je)return;for(;Xe.sibling===null;){if(Xe.return===null||Xe.return===je)return;Je===Xe&&(Je=null),Xe=Xe.return}Je===Xe&&(Je=null),Xe.sibling.return=Xe.return,Xe=Xe.sibling}})(Oe,xe)}return;case x:return Ru(s,a),Fl(a),void(A&Rn&&wP(a));case d:return;default:return Ru(s,a),void Fl(a)}}function Fl(a){var s=a.flags;if(s&Ur){try{MH(a)}catch(v){Er(a,a.return,v)}a.flags&=~Ur}s&Ma&&(a.flags&=~Ma)}function xH(a,s,v){em=v,tm=s,Ht=a,SP(a),em=null,tm=null}function SP(a,s,v){for(var M=(a.mode&Ln)!==mn;Ht!==null;){var A=Ht,N=A.child;if(A.tag===p&&M){var F=A.memoizedState!==null||w6;if(F){aw(a);continue}var $=A.alternate,G=$!==null&&$.memoizedState!==null,Z=w6,ce=So;w6=F,(So=G||So)&&!ce&&(Ht=A,RH(A));for(var Se=N;Se!==null;)Ht=Se,SP(Se),Se=Se.sibling;Ht=A,w6=Z,So=ce,aw(a)}else(A.subtreeFlags&Ih)!==an&&N!==null?(N.return=A,Ht=N):aw(a)}}function aw(a,s,v){for(;Ht!==null;){var M=Ht;if((M.flags&Ih)!==an){var A=M.alternate;qt(M);try{EH(0,A,M)}catch(F){Er(M,M.return,F)}It()}if(M===a)return void(Ht=null);var N=M.sibling;if(N!==null)return N.return=M.return,void(Ht=N);Ht=M.return}}function AH(a){for(;Ht!==null;){var s=Ht,v=s.child;switch(s.tag){case g:case X:case pe:case Me:if(s.mode&Wn)try{jl(),Au(vi,s,s.return)}finally{Bl(s)}else Au(vi,s,s.return);break;case _:nm(s,s.return);var M=s.stateNode;typeof M.componentWillUnmount=="function"&&rw(s,s.return,M);break;case T:nm(s,s.return);break;case p:if(s.memoizedState!==null){EP(a);continue}}v!==null?(v.return=s,Ht=v):EP(a)}}function EP(a){for(;Ht!==null;){var s=Ht;if(s===a)return void(Ht=null);var v=s.sibling;if(v!==null)return v.return=s.return,void(Ht=v);Ht=s.return}}function RH(a){for(;Ht!==null;){var s=Ht,v=s.child;if(s.tag===p&&s.memoizedState!==null){kP(a);continue}v!==null?(v.return=s,Ht=v):kP(a)}}function kP(a){for(;Ht!==null;){var s=Ht;qt(s);try{kH(s)}catch(M){Er(s,s.return,M)}if(It(),s===a)return void(Ht=null);var v=s.sibling;if(v!==null)return v.return=s.return,void(Ht=v);Ht=s.return}}function TH(a,s,v,M){Ht=s,function(A,N,F,$){for(;Ht!==null;){var G=Ht,Z=G.child;(G.subtreeFlags&qd)!==an&&Z!==null?(Z.return=G,Ht=Z):PH(A,N,F,$)}}(s,a,v,M)}function PH(a,s,v,M){for(;Ht!==null;){var A=Ht;if((A.flags&mo)!==an){qt(A);try{LH(s,A,v,M)}catch(F){Er(A,A.return,F)}It()}if(A===a)return void(Ht=null);var N=A.sibling;if(N!==null)return N.return=A.return,void(Ht=N);Ht=A.return}}function LH(a,s,v,M){switch(s.tag){case g:case X:case Me:if(s.mode&Wn){B9();try{Rf(no|gi,s)}finally{D9(s)}}else Rf(no|gi,s)}}function IH(a){Ht=a,function(){for(;Ht!==null;){var s=Ht,v=s.child;if((Ht.flags&ss)!==an){var M=s.deletions;if(M!==null){for(var A=0;A<M.length;A++){var N=M[A];Ht=N,DH(N,s)}var F=s.alternate;if(F!==null){var $=F.child;if($!==null){F.child=null;do{var G=$.sibling;$.sibling=null,$=G}while($!==null)}}Ht=s}}(s.subtreeFlags&qd)!==an&&v!==null?(v.return=s,Ht=v):OH()}}()}function OH(){for(;Ht!==null;){var a=Ht;(a.flags&mo)!==an&&(qt(a),NH(a),It());var s=a.sibling;if(s!==null)return s.return=a.return,void(Ht=s);Ht=a.return}}function NH(a){switch(a.tag){case g:case X:case Me:a.mode&Wn?(B9(),Au(no|gi,a,a.return),D9(a)):Au(no|gi,a,a.return)}}function DH(a,s){for(;Ht!==null;){var v=Ht;qt(v),jH(v,s),It();var M=v.child;M!==null?(M.return=v,Ht=M):BH(a)}}function BH(a){for(;Ht!==null;){var s=Ht,v=s.sibling,M=s.return;if(gP(s),s===a)return void(Ht=null);if(v!==null)return v.return=M,void(Ht=v);Ht=M}}function jH(a,s){switch(a.tag){case g:case X:case Me:a.mode&Wn?(B9(),Au(no,a,s),D9(a)):Au(no,a,s)}}function zH(a){switch(a.tag){case g:case X:case Me:try{Rf(vi|gi,a)}catch(v){Er(a,a.return,v)}break;case _:var s=a.stateNode;try{s.componentDidMount()}catch(v){Er(a,a.return,v)}}}function UH(a){switch(a.tag){case g:case X:case Me:try{Rf(no|gi,a)}catch(s){Er(a,a.return,s)}}}function FH(a){switch(a.tag){case g:case X:case Me:try{Au(vi|gi,a,a.return)}catch(v){Er(a,a.return,v)}break;case _:var s=a.stateNode;typeof s.componentWillUnmount=="function"&&rw(a,a.return,s)}}function KH(a){switch(a.tag){case g:case X:case Me:try{Au(no|gi,a,a.return)}catch(s){Er(a,a.return,s)}}}if(typeof Symbol=="function"&&Symbol.for){var Z2=Symbol.for;Z2("selector.component"),Z2("selector.has_pseudo_class"),Z2("selector.role"),Z2("selector.test_id"),Z2("selector.text")}var qH=[],HH=n.ReactCurrentActQueue;function MP(){var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return a||HH.current===null||i("The current testing environment is not configured to support act(...)"),a}var WH=Math.ceil,sw=n.ReactCurrentDispatcher,uw=n.ReactCurrentOwner,pa=n.ReactCurrentBatchConfig,Tu=n.ReactCurrentActQueue,ji=0,CP=1,io=2,Ms=4,Qc=0,Q2=1,R0=2,S6=3,X2=4,xP=5,lw=6,$n=ji,Fo=null,Vr=null,bi=st,Kl=st,cw=wf(st),yi=Qc,J2=null,E6=st,ev=st,k6=st,tv=null,ma=null,dw=0,AP=500,RP=1/0,$H=500,Xc=null;function M6(){RP=Xr()+$H}function TP(){return RP}var C6=!1,fw=null,rm=null,T0=!1,Pf=null,nv=st,hw=[],pw=null,VH=50,rv=0,mw=null,gw=!1,x6=!1,YH=50,im=0,A6=null,R6=ir,T6=st,PP=!1;function P6(){return Fo}function Ko(){return($n&(io|Ms))!==ji?Xr():R6!==ir?R6:R6=Xr()}function Lf(a){if((a.mode&Ln)===mn)return gn;if(($n&io)!==ji&&bi!==st)return Ia(bi);if(Qq.transition!==Xq){if(pa.transition!==null){var s=pa.transition;s._updatedFibers||(s._updatedFibers=new Set),s._updatedFibers.add(a)}return T6===$r&&(T6=Hh()),T6}var v,M=Na();return M!==$r?M:(v=window.event)===void 0?au:Jg(v.type)}function GH(a){var s;return(a.mode&Ln)===mn?gn:(s=nu,((nu<<=1)&Ec)===st&&(nu=kc),s)}function wi(a,s,v,M){(function(){if(rv>VH)throw rv=0,mw=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");im>YH&&(im=0,A6=null,i("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))})(),PP&&i("useInsertionEffect must not schedule updates."),gw&&(x6=!0),Ac(a,v,M),($n&io)!==st&&a===Fo?function(A){if(it&&!MT)switch(A.tag){case g:case X:case Me:var N=Vr&&ne(Vr)||"Unknown",F=N;Sw.has(F)||(Sw.add(F),i("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",ne(A)||"Unknown",N,N));break;case _:$P||(i("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),$P=!0)}}(s):(go&&Oa(a,s,v),function(A){if(A.mode&Ln){if(!MP())return}else if(N=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,typeof jest>"u"||N===!1||$n!==ji||A.tag!==g&&A.tag!==X&&A.tag!==Me)return;var N;if(Tu.current===null){var F=We;try{qt(A),i(`An update to %s inside a test was not wrapped in act(...).
184
+
185
+ When testing, code that causes React state updates should be wrapped into act(...):
186
+
187
+ act(() => {
188
+ /* fire events that update state */
189
+ });
190
+ /* assert on the output */
191
+
192
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,ne(A))}finally{F?qt(A):It()}}}(s),a===Fo&&(($n&io)===ji&&(ev=yn(ev,v)),yi===X2&&If(a,bi)),ga(a,M),v!==gn||$n!==ji||(s.mode&Ln)!==mn||Tu.isBatchingLegacy||(M6(),PR()))}function ga(a,s){var v=a.callbackNode;(function(Z,ce){for(var Se=Z.pendingLanes,Ee=Z.suspendedLanes,ve=Z.pingedLanes,he=Z.expirationTimes,se=Se;se>0;){var te=or(se),ge=1<<te,_e=he[te];_e===ir?(ge&Ee)!==st&&(ge&ve)===st||(he[te]=Jy(ge,ce)):_e<=ce&&(Z.expiredLanes|=ge),se&=~ge}})(a,s);var M=ru(a,a===Fo?bi:st);if(M===st)return v!==null&&VP(v),a.callbackNode=null,void(a.callbackPriority=$r);var A=iu(M),N=a.callbackPriority;if(N!==A||Tu.current!==null&&v!==Ew){var F,$;if(v!=null&&VP(v),A===gn)a.tag===_f?(Tu.isBatchingLegacy!==null&&(Tu.didScheduleLegacyUpdate=!0),$=OP.bind(null,a),M7=!0,TR($)):TR(OP.bind(null,a)),Tu.current!==null?Tu.current.push(Sf):Nt(function(){($n&(io|Ms))===ji&&Sf()}),F=null;else{var G;switch(Yh(M)){case No:G=Dh;break;case ms:G=Wd;break;case au:G=Sl;break;case Vh:G=$d;break;default:G=Sl}F=kw(G,LP.bind(null,a))}a.callbackPriority=A,a.callbackNode=F}else v==null&&N!==gn&&i("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.")}function LP(a,s){if(O9=!1,m6=!1,R6=ir,T6=st,($n&(io|Ms))!==ji)throw new Error("Should not already be working.");var v=a.callbackNode;if(ed()&&a.callbackNode!==v)return null;var M=ru(a,a===Fo?bi:st);if(M===st)return null;var A=!Qd(0,M)&&!function(Ee,ve){return(ve&Ee.expiredLanes)!==st}(a,M)&&!s,N=A?function(Ee,ve){var he=$n;$n|=io;var se=BP();if(Fo!==Ee||bi!==ve){if(go){var te=Ee.memoizedUpdaters;te.size>0&&(ov(Ee,bi),te.clear()),Oo(Ee,ve)}Xc=null,M6(),P0(Ee,ve)}for(Sr(ve);;)try{QH();break}catch(ge){DP(Ee,ge)}return j3(),jP(se),$n=he,Vr!==null?(Pt!==null&&typeof Pt.markRenderYielded=="function"&&Pt.markRenderYielded(),Qc):(aa(),Fo=null,bi=st,yi)}(a,M):I6(a,M);if(N!==Qc){if(N===R0){var F=Kh(a);F!==st&&(M=F,N=vw(a,F))}if(N===Q2){var $=J2;throw P0(a,st),If(a,M),ga(a,Xr()),$}if(N===lw)If(a,M);else{var G=!Qd(0,M),Z=a.current.alternate;if(G&&!function(Ee){for(var ve=Ee;;){if(ve.flags&Fd){var he=ve.updateQueue;if(he!==null){var se=he.stores;if(se!==null)for(var te=0;te<se.length;te++){var ge=se[te],_e=ge.getSnapshot,xe=ge.value;try{if(!Jn(_e(),xe))return!1}catch{return!1}}}}var Oe=ve.child;if(ve.subtreeFlags&Fd&&Oe!==null)Oe.return=ve,ve=Oe;else{if(ve===Ee)return!0;for(;ve.sibling===null;){if(ve.return===null||ve.return===Ee)return!0;ve=ve.return}ve.sibling.return=ve.return,ve=ve.sibling}}return!0}(Z)){if((N=I6(a,M))===R0){var ce=Kh(a);ce!==st&&(M=ce,N=vw(a,ce))}if(N===Q2){var Se=J2;throw P0(a,st),If(a,M),ga(a,Xr()),Se}}a.finishedWork=Z,a.finishedLanes=M,function(Ee,ve,he){switch(ve){case Qc:case Q2:throw new Error("Root did not complete. This is a bug in React.");case R0:L0(Ee,ma,Xc);break;case S6:if(If(Ee,he),qh(he)&&!YP()){var se=dw+AP-Xr();if(se>10){if(ru(Ee,st)!==st)break;var te=Ee.suspendedLanes;if(!ou(te,he)){Ko(),f1(Ee,te);break}Ee.timeoutHandle=qe(L0.bind(null,Ee,ma,Xc),se);break}}L0(Ee,ma,Xc);break;case X2:if(If(Ee,he),function(je){return(je&Ta)===je}(he))break;if(!YP()){var ge=function(je,Ge){for(var Je=je.eventTimes,Xe=ir;Ge>0;){var Et=or(Ge),Dt=1<<Et,Wt=Je[Et];Wt>Xe&&(Xe=Wt),Ge&=~Dt}return Xe}(Ee,he),_e=ge,xe=Xr()-_e,Oe=((Ne=xe)<120?120:Ne<480?480:Ne<1080?1080:Ne<1920?1920:Ne<3e3?3e3:Ne<4320?4320:1960*WH(Ne/1960))-xe;if(Oe>10){Ee.timeoutHandle=qe(L0.bind(null,Ee,ma,Xc),Oe);break}}L0(Ee,ma,Xc);break;case xP:L0(Ee,ma,Xc);break;default:throw new Error("Unknown root exit status.")}var Ne}(a,N,M)}}return ga(a,Xr()),a.callbackNode===v?LP.bind(null,a):null}function vw(a,s){var v=tv;Rc(a)&&(P0(a,s).flags|=Gs,i("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",a.containerInfo.nodeName.toLowerCase()));var M=I6(a,s);if(M!==R0){var A=ma;ma=v,A!==null&&IP(A)}return M}function IP(a){ma===null?ma=a:ma.push.apply(ma,a)}function If(a,s){s=kl(s,k6),function(v,M){v.suspendedLanes|=M,v.pingedLanes&=~M;for(var A=v.expirationTimes,N=M;N>0;){var F=or(N),$=1<<F;A[F]=ir,N&=~$}}(a,s=kl(s,ev))}function OP(a){if(O9=m6,m6=!1,($n&(io|Ms))!==ji)throw new Error("Should not already be working.");ed();var s=ru(a,st);if(!Xn(s,gn))return ga(a,Xr()),null;var v=I6(a,s);if(a.tag!==_f&&v===R0){var M=Kh(a);M!==st&&(s=M,v=vw(a,M))}if(v===Q2){var A=J2;throw P0(a,st),If(a,s),ga(a,Xr()),A}if(v===lw)throw new Error("Root did not complete. This is a bug in React.");var N=a.current.alternate;return a.finishedWork=N,a.finishedLanes=s,L0(a,ma,Xc),ga(a,Xr()),null}function bw(a,s){var v=$n;$n|=CP;try{return a(s)}finally{($n=v)!==ji||Tu.isBatchingLegacy||(M6(),PR())}}function Jc(a){Pf!==null&&Pf.tag===_f&&($n&(io|Ms))===ji&&ed();var s=$n;$n|=CP;var v=pa.transition,M=Na();try{return pa.transition=null,ei(No),a?a():void 0}finally{ei(M),pa.transition=v,(($n=s)&(io|Ms))===ji&&Sf()}}function NP(){return($n&(io|Ms))!==ji}function L6(a,s){wo(cw,Kl,a),Kl=yn(Kl,s)}function yw(a){Kl=cw.current,yo(cw,a)}function P0(a,s){a.finishedWork=null,a.finishedLanes=st;var v=a.timeoutHandle;if(v!==Ue&&(a.timeoutHandle=Ue,Ae(v)),Vr!==null)for(var M=Vr.return;M!==null;)M.alternate,cP(0,M),M=M.return;Fo=a;var A=I0(a.current,null);return Vr=A,bi=Kl=s,yi=Qc,J2=null,E6=st,ev=st,k6=st,tv=null,ma=null,function(){if(M0!==null){for(var N=0;N<M0.length;N++){var F=M0[N],$=F.interleaved;if($!==null){F.interleaved=null;var G=$.next,Z=F.pending;if(Z!==null){var ce=Z.next;Z.next=G,$.next=ce}F.pending=$}}M0=null}}(),ku.discardPendingWarnings(),A}function DP(a,s){for(;;){var v=Vr;try{if(j3(),hT(),It(),uw.current=null,v===null||v.return===null)return yi=Q2,J2=s,void(Vr=null);q&&v.mode&Wn&&g6(v,!0),D&&(oa(),s!==null&&typeof s=="object"&&typeof s.then=="function"?Lo(v,s,bi):Po(v,s,bi)),hH(a,v.return,v,s,bi),UP(v)}catch(M){s=M,Vr===v&&v!==null?(v=v.return,Vr=v):v=Vr;continue}return}}function BP(){var a=sw.current;return sw.current=d6,a===null?d6:a}function jP(a){sw.current=a}function iv(a){E6=yn(a,E6)}function ww(){yi!==Qc&&yi!==S6&&yi!==R0||(yi=X2),Fo!==null&&(Tr(E6)||Tr(ev))&&If(Fo,bi)}function I6(a,s){var v=$n;$n|=io;var M=BP();if(Fo!==a||bi!==s){if(go){var A=a.memoizedUpdaters;A.size>0&&(ov(a,bi),A.clear()),Oo(a,s)}Xc=null,P0(a,s)}for(Sr(s);;)try{ZH();break}catch(N){DP(a,N)}if(j3(),$n=v,jP(M),Vr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return aa(),Fo=null,bi=st,yi}function ZH(){for(;Vr!==null;)zP(Vr)}function QH(){for(;Vr!==null&&!Hd();)zP(Vr)}function zP(a){var s,v=a.alternate;qt(a),(a.mode&Wn)!==mn?(N9(a),s=_w(v,a,Kl),g6(a,!0)):s=_w(v,a,Kl),It(),a.memoizedProps=a.pendingProps,s===null?UP(a):Vr=s,uw.current=null}function UP(a){var s=a;do{var v=s.alternate,M=s.return;if((s.flags&Kd)===an){qt(s);var A=void 0;if((s.mode&Wn)===mn?A=lP(v,s,Kl):(N9(s),A=lP(v,s,Kl),g6(s,!1)),It(),A!==null)return void(Vr=A)}else{var N=gH(0,s);if(N!==null)return N.flags&=f7,void(Vr=N);if((s.mode&Wn)!==mn){g6(s,!1);for(var F=s.actualDuration,$=s.child;$!==null;)F+=$.actualDuration,$=$.sibling;s.actualDuration=F}if(M===null)return yi=lw,void(Vr=null);M.flags|=Kd,M.subtreeFlags=an,M.deletions=null}var G=s.sibling;if(G!==null)return void(Vr=G);Vr=s=M}while(s!==null);yi===Qc&&(yi=xP)}function L0(a,s,v){var M=Na(),A=pa.transition;try{pa.transition=null,ei(No),function(N,F,$,G){do ed();while(Pf!==null);if(function(){ku.flushLegacyContextWarning(),ku.flushPendingUnsafeLifecycleWarnings()}(),($n&(io|Ms))!==ji)throw new Error("Should not already be working.");var Z=N.finishedWork,ce=N.finishedLanes;if(function(Je){Pt!==null&&typeof Pt.markCommitStarted=="function"&&Pt.markCommitStarted(Je)}(ce),Z===null)return xa(),null;if(ce===st&&i("root.finishedLanes should not be empty during a commit. This is a bug in React."),N.finishedWork=null,N.finishedLanes=st,Z===N.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");N.callbackNode=null,N.callbackPriority=$r;var Se=yn(Z.lanes,Z.childLanes);(function(Je,Xe){var Et=Je.pendingLanes&~Xe;Je.pendingLanes=Xe,Je.suspendedLanes=st,Je.pingedLanes=st,Je.expiredLanes&=Xe,Je.mutableReadLanes&=Xe,Je.entangledLanes&=Xe;for(var Dt=Je.entanglements,Wt=Je.eventTimes,ln=Je.expirationTimes,Tn=Et;Tn>0;){var bn=or(Tn),jn=1<<bn;Dt[bn]=st,Wt[bn]=ir,ln[bn]=ir,Tn&=~jn}})(N,Se),N===Fo&&(Fo=null,Vr=null,bi=st),(Z.subtreeFlags&qd)===an&&(Z.flags&qd)===an||T0||(T0=!0,pw=$,kw(Sl,function(){return ed(),null}));var Ee=(Z.subtreeFlags&(Ca|Lh|Ih|qd))!==an,ve=(Z.flags&(Ca|Lh|Ih|qd))!==an;if(Ee||ve){var he=pa.transition;pa.transition=null;var se=Na();ei(No);var te=$n;$n|=Ms,uw.current=null,yH(N,Z),BT(),function(Je,Xe,Et){em=Et,tm=Je,qt(Xe),_P(Xe,Je),qt(Xe),em=null,tm=null}(N,Z,ce),N.containerInfo,b2($e),a3(Be),Be=null,$e=null,N.current=Z,function(Je){Pt!==null&&typeof Pt.markLayoutEffectsStarted=="function"&&Pt.markLayoutEffectsStarted(Je)}(ce),xH(Z,N,ce),Pt!==null&&typeof Pt.markLayoutEffectsStopped=="function"&&Pt.markLayoutEffectsStopped(),xo(),$n=te,ei(se),pa.transition=he}else N.current=Z,BT();var ge=T0;if(T0?(T0=!1,Pf=N,nv=ce):(im=0,A6=null),Se=N.pendingLanes,Se===st&&(rm=null),ge||HP(N.current,!1),function(Je,Xe){if(Hr&&typeof Hr.onCommitFiberRoot=="function")try{var Et=(Je.current.flags&qn)===qn;if(q){var Dt;switch(Xe){case No:Dt=Dh;break;case ms:Dt=Wd;break;case au:Dt=Sl;break;case Vh:Dt=$d;break;default:Dt=Sl}Hr.onCommitFiberRoot(Ao,Je,Dt,Et)}}catch(Wt){Ro||(Ro=!0,i("React instrumentation encountered an error: %s",Wt))}}(Z.stateNode,G),go&&N.memoizedUpdaters.clear(),function(){qH.forEach(function(Je){return Je()})}(),ga(N,Xr()),F!==null)for(var _e=N.onRecoverableError,xe=0;xe<F.length;xe++){var Oe=F[xe],Ne=Oe.stack,je=Oe.digest;_e(Oe.value,{componentStack:Ne,digest:je})}if(C6){C6=!1;var Ge=fw;throw fw=null,Ge}Xn(nv,gn)&&N.tag!==_f&&ed(),Se=N.pendingLanes,Xn(Se,gn)?(m6=!0,N===mw?rv++:(rv=0,mw=N)):rv=0,Sf(),xa()}(a,s,v,M)}finally{pa.transition=A,ei(M)}return null}function ed(){if(Pf!==null){var a=Yh(nv),s=function(A,N){return A>N?A:N}(au,a),v=pa.transition,M=Na();try{return pa.transition=null,ei(s),function(){if(Pf===null)return!1;var A=pw;pw=null;var N=Pf,F=nv;if(Pf=null,nv=st,($n&(io|Ms))!==ji)throw new Error("Cannot flush passive effects while already rendering.");gw=!0,x6=!1,function(Se){Pt!==null&&typeof Pt.markPassiveEffectsStarted=="function"&&Pt.markPassiveEffectsStarted(Se)}(F);var $=$n;$n|=Ms,IH(N.current),TH(N,N.current,F,A);var G=hw;hw=[];for(var Z=0;Z<G.length;Z++)SH(0,G[Z]);Pt!==null&&typeof Pt.markPassiveEffectsStopped=="function"&&Pt.markPassiveEffectsStopped(),HP(N.current,!0),$n=$,Sf(),x6?N===A6?im++:(im=0,A6=N):im=0,gw=!1,x6=!1,function(Se){if(Hr&&typeof Hr.onPostCommitFiberRoot=="function")try{Hr.onPostCommitFiberRoot(Ao,Se)}catch(Ee){Ro||(Ro=!0,i("React instrumentation encountered an error: %s",Ee))}}(N);var ce=N.current.stateNode;return ce.effectDuration=0,ce.passiveEffectDuration=0,!0}()}finally{ei(M),pa.transition=v}}return!1}function FP(a){return rm!==null&&rm.has(a)}var XH=function(a){C6||(C6=!0,fw=a)};function KP(a,s,v){var M=kf(a,zT(a,x0(v,s),gn),gn),A=Ko();M!==null&&(Ac(M,gn,A),ga(M,A))}function Er(a,s,v){if(function(G){hr(null,function(){throw G}),Ph()}(v),av(!1),a.tag!==S){var M=null;for(M=s;M!==null;){if(M.tag===S)return void KP(M,a,v);if(M.tag===_){var A=M.type,N=M.stateNode;if(typeof A.getDerivedStateFromError=="function"||typeof N.componentDidCatch=="function"&&!FP(N)){var F=kf(M,F9(M,x0(v,a),gn),gn),$=Ko();return void(F!==null&&(Ac(F,gn,$),ga(F,$)))}}M=M.return}i(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
193
+
194
+ Error message:
195
+
196
+ %s`,v)}else KP(a,a,v)}function JH(a,s,v){var M=a.pingCache;M!==null&&M.delete(s);var A=Ko();f1(a,v),function(N){N.tag!==_f&&MP()&&Tu.current===null&&i(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
197
+
198
+ When testing, code that resolves suspended data should be wrapped into act(...):
199
+
200
+ act(() => {
201
+ /* finish loading suspended data */
202
+ });
203
+ /* assert on the output */
204
+
205
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}(a),Fo===a&&ou(bi,v)&&(yi===X2||yi===S6&&qh(bi)&&Xr()-dw<AP?P0(a,st):k6=yn(k6,v)),ga(a,A)}function qP(a,s){s===$r&&(s=GH(a));var v=Ko(),M=fa(a,s);M!==null&&(Ac(M,s,v),ga(M,v))}function eW(a){var s=a.memoizedState,v=$r;s!==null&&(v=s.retryLane),qP(a,v)}function tW(a,s){var v,M=$r;switch(a.tag){case le:v=a.stateNode;var A=a.memoizedState;A!==null&&(M=A.retryLane);break;case x:v=a.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}v!==null&&v.delete(s),qP(a,M)}function HP(a,s){qt(a),O6(a,ii,FH),s&&O6(a,wl,KH),O6(a,ii,zH),s&&O6(a,wl,UH),It()}function O6(a,s,v){for(var M=a,A=null;M!==null;){var N=M.subtreeFlags&s;M!==A&&M.child!==null&&N!==an?M=M.child:((M.flags&s)!==an&&v(M),M=M.sibling!==null?M.sibling:A=M.return)}}var _w,N6=null;function WP(a){if(($n&io)===ji&&a.mode&Ln){var s=a.tag;if(s===w||s===S||s===_||s===g||s===X||s===pe||s===Me){var v=ne(a)||"ReactComponent";if(N6!==null){if(N6.has(v))return;N6.add(v)}else N6=new Set([v]);var M=We;try{qt(a),i("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{M?qt(a):It()}}}}_w=function(a,s,v){var M=JP(null,s);try{return sP(a,s,v)}catch(N){if(S0||N!==null&&typeof N=="object"&&typeof N.then=="function")throw N;if(j3(),hT(),cP(0,s),JP(s,M),s.mode&Wn&&N9(s),hr(null,sP,null,a,s,v),gl){var A=Ph();typeof A=="object"&&A!==null&&A._suppressLogging&&typeof N=="object"&&N!==null&&!N._suppressLogging&&(N._suppressLogging=!0)}throw N}};var Sw,$P=!1;function ov(a,s){go&&a.memoizedUpdaters.forEach(function(v){Oa(a,v,s)})}Sw=new Set;var Ew={};function kw(a,s){var v=Tu.current;return v!==null?(v.push(s),Ew):Gi(a,s)}function VP(a){if(a!==Ew)return wc(a)}function YP(){return Tu.current!==null}function av(a){PP=a}var Cs=null,om=null,nW=function(a){Cs=a};function am(a){if(Cs===null)return a;var s=Cs(a);return s===void 0?a:s.current}function Mw(a){return am(a)}function Cw(a){if(Cs===null)return a;var s=Cs(a);if(s===void 0){if(a!=null&&typeof a.render=="function"){var v=am(a.render);if(a.render!==v){var M={$$typeof:bt,render:v};return a.displayName!==void 0&&(M.displayName=a.displayName),M}}return a}return s.current}function GP(a,s){if(Cs===null)return!1;var v=a.elementType,M=s.type,A=!1,N=typeof M=="object"&&M!==null?M.$$typeof:null;switch(a.tag){case _:typeof M=="function"&&(A=!0);break;case g:(typeof M=="function"||N===jt)&&(A=!0);break;case X:(N===bt||N===jt)&&(A=!0);break;case pe:case Me:(N===wt||N===jt)&&(A=!0);break;default:return!1}if(A){var F=Cs(v);if(F!==void 0&&F===Cs(M))return!0}return!1}function ZP(a){Cs!==null&&typeof WeakSet=="function"&&(om===null&&(om=new WeakSet),om.add(a))}var rW=function(a,s){if(Cs!==null){var v=s.staleFamilies,M=s.updatedFamilies;ed(),Jc(function(){xw(a.current,M,v)})}},iW=function(a,s){a.context===Da&&(ed(),Jc(function(){sv(s,a,null,null)}))};function xw(a,s,v){var M=a.alternate,A=a.child,N=a.sibling,F=a.tag,$=a.type,G=null;switch(F){case g:case Me:case _:G=$;break;case X:G=$.render}if(Cs===null)throw new Error("Expected resolveFamily to be set during hot reload.");var Z=!1,ce=!1;if(G!==null){var Se=Cs(G);Se!==void 0&&(v.has(Se)?ce=!0:s.has(Se)&&(F===_?ce=!0:Z=!0))}if(om!==null&&(om.has(a)||M!==null&&om.has(M))&&(ce=!0),ce&&(a._debugNeedsRemount=!0),ce||Z){var Ee=fa(a,gn);Ee!==null&&wi(Ee,a,gn,ir)}A===null||ce||xw(A,s,v),N!==null&&xw(N,s,v)}var Aw,oW=function(a,s){var v=new Set,M=new Set(s.map(function(A){return A.current}));return Rw(a.current,M,v),v};function Rw(a,s,v){var M=a.child,A=a.sibling,N=a.tag,F=a.type,$=null;switch(N){case g:case Me:case _:$=F;break;case X:$=F.render}var G=!1;$!==null&&s.has($)&&(G=!0),G?function(Z,ce){var Se=function(ve,he){for(var se=ve,te=!1;;){if(se.tag===T)te=!0,he.add(se.stateNode);else if(se.child!==null){se.child.return=se,se=se.child;continue}if(se===ve)return te;for(;se.sibling===null;){if(se.return===null||se.return===ve)return te;se=se.return}se.sibling.return=se.return,se=se.sibling}return!1}(Z,ce);if(!Se)for(var Ee=Z;;){switch(Ee.tag){case T:return void ce.add(Ee.stateNode);case E:case S:return void ce.add(Ee.stateNode.containerInfo)}if(Ee.return===null)throw new Error("Expected to reach root first.");Ee=Ee.return}}(a,v):M!==null&&Rw(M,s,v),A!==null&&Rw(A,s,v)}Aw=!1;try{var QP=Object.preventExtensions({})}catch{Aw=!0}function aW(a,s,v,M){this.tag=a,this.key=v,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=s,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=M,this.flags=an,this.subtreeFlags=an,this.deletions=null,this.lanes=st,this.childLanes=st,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Aw||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}var Ba=function(a,s,v,M){return new aW(a,s,v,M)};function Tw(a){var s=a.prototype;return!(!s||!s.isReactComponent)}function I0(a,s){var v=a.alternate;v===null?((v=Ba(a.tag,s,a.key,a.mode)).elementType=a.elementType,v.type=a.type,v.stateNode=a.stateNode,v._debugSource=a._debugSource,v._debugOwner=a._debugOwner,v._debugHookTypes=a._debugHookTypes,v.alternate=a,a.alternate=v):(v.pendingProps=s,v.type=a.type,v.flags=an,v.subtreeFlags=an,v.deletions=null,v.actualDuration=0,v.actualStartTime=-1),v.flags=a.flags&Yi,v.childLanes=a.childLanes,v.lanes=a.lanes,v.child=a.child,v.memoizedProps=a.memoizedProps,v.memoizedState=a.memoizedState,v.updateQueue=a.updateQueue;var M=a.dependencies;switch(v.dependencies=M===null?null:{lanes:M.lanes,firstContext:M.firstContext},v.sibling=a.sibling,v.index=a.index,v.ref=a.ref,v.selfBaseDuration=a.selfBaseDuration,v.treeBaseDuration=a.treeBaseDuration,v._debugNeedsRemount=a._debugNeedsRemount,v.tag){case w:case g:case Me:v.type=am(a.type);break;case _:v.type=Mw(a.type);break;case X:v.type=Cw(a.type)}return v}function sW(a,s){a.flags&=Yi|Ur;var v=a.alternate;if(v===null)a.childLanes=st,a.lanes=s,a.child=null,a.subtreeFlags=an,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null,a.selfBaseDuration=0,a.treeBaseDuration=0;else{a.childLanes=v.childLanes,a.lanes=v.lanes,a.child=v.child,a.subtreeFlags=an,a.deletions=null,a.memoizedProps=v.memoizedProps,a.memoizedState=v.memoizedState,a.updateQueue=v.updateQueue,a.type=v.type;var M=v.dependencies;a.dependencies=M===null?null:{lanes:M.lanes,firstContext:M.firstContext},a.selfBaseDuration=v.selfBaseDuration,a.treeBaseDuration=v.treeBaseDuration}return a}function Pw(a,s,v,M,A,N){var F=w,$=a;if(typeof a=="function")Tw(a)?(F=_,$=Mw($)):$=am($);else if(typeof a=="string")F=T;else e:switch(a){case Gt:return Of(v.children,A,N,s);case Ft:F=H,((A|=Wr)&Ln)!==mn&&(A|=Io);break;case kt:return function(Se,Ee,ve,he){typeof Se.id!="string"&&i('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof Se.id);var se=Ba(ue,Se,he,Ee|Wn);return se.elementType=kt,se.lanes=ve,se.stateNode={effectDuration:0,passiveEffectDuration:0},se}(v,A,N,s);case Xt:return function(Se,Ee,ve,he){var se=Ba(le,Se,he,Ee);return se.elementType=Xt,se.lanes=ve,se}(v,A,N,s);case Jt:return function(Se,Ee,ve,he){var se=Ba(x,Se,he,Ee);return se.elementType=Jt,se.lanes=ve,se}(v,A,N,s);case cn:return XP(v,A,N,s);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case en:F=ee;break e;case rn:F=V;break e;case bt:F=X,$=Cw($);break e;case wt:F=pe;break e;case jt:F=ye,$=null;break e}var G="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(G+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Z=M?ne(M):null;throw Z&&(G+=`
206
+
207
+ Check the render method of \``+Z+"`."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a==null?a:typeof a)+"."+G)}var ce=Ba(F,v,s,A);return ce.elementType=a,ce.type=$,ce.lanes=N,ce._debugOwner=M,ce}function Lw(a,s,v){var M;M=a._owner;var A=Pw(a.type,a.key,a.props,M,s,v);return A._debugSource=a._source,A._debugOwner=a._owner,A}function Of(a,s,v,M){var A=Ba(j,a,M,s);return A.lanes=v,A}function XP(a,s,v,M){var A=Ba(p,a,M,s);return A.elementType=cn,A.lanes=v,A.stateNode={isHidden:!1},A}function Iw(a,s,v){var M=Ba(I,a,null,s);return M.lanes=v,M}function Ow(a,s,v){var M=a.children!==null?a.children:[],A=Ba(E,M,a.key,s);return A.lanes=v,A.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},A}function JP(a,s){return a===null&&(a=Ba(w,null,null,mn)),a.tag=s.tag,a.key=s.key,a.elementType=s.elementType,a.type=s.type,a.stateNode=s.stateNode,a.return=s.return,a.child=s.child,a.sibling=s.sibling,a.index=s.index,a.ref=s.ref,a.pendingProps=s.pendingProps,a.memoizedProps=s.memoizedProps,a.updateQueue=s.updateQueue,a.memoizedState=s.memoizedState,a.dependencies=s.dependencies,a.mode=s.mode,a.flags=s.flags,a.subtreeFlags=s.subtreeFlags,a.deletions=s.deletions,a.lanes=s.lanes,a.childLanes=s.childLanes,a.alternate=s.alternate,a.actualDuration=s.actualDuration,a.actualStartTime=s.actualStartTime,a.selfBaseDuration=s.selfBaseDuration,a.treeBaseDuration=s.treeBaseDuration,a._debugSource=s._debugSource,a._debugOwner=s._debugOwner,a._debugNeedsRemount=s._debugNeedsRemount,a._debugHookTypes=s._debugHookTypes,a}function uW(a,s,v,M,A){this.tag=s,this.containerInfo=a,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Ue,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=$r,this.eventTimes=oi(st),this.expirationTimes=oi(ir),this.pendingLanes=st,this.suspendedLanes=st,this.pingedLanes=st,this.expiredLanes=st,this.mutableReadLanes=st,this.finishedLanes=st,this.entangledLanes=st,this.entanglements=oi(st),this.identifierPrefix=M,this.onRecoverableError=A,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0,this.memoizedUpdaters=new Set;for(var N=this.pendingUpdatersLaneMap=[],F=0;F<$g;F++)N.push(new Set);switch(s){case T3:this._debugRootType=v?"hydrateRoot()":"createRoot()";break;case _f:this._debugRootType=v?"hydrate()":"render()"}}function eL(a,s,v,M,A,N,F,$,G,Z){var ce=new uW(a,s,v,$,G),Se=function(ve,he,se){var te;return ve===T3?(te=Ln,he===!0&&(te|=Wr,te|=Io)):te=mn,go&&(te|=Wn),Ba(S,null,null,te)}(s,N);ce.current=Se,Se.stateNode=ce;var Ee={element:M,isDehydrated:v,cache:null,transitions:null,pendingSuspenseBoundaries:null};return Se.memoizedState=Ee,K7(Se),ce}var Nw,Dw,Bw="18.2.0";function lW(a,s,v){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return function(A){me(A)&&i("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",fe(A))}(M),{$$typeof:gt,key:M==null?null:""+M,children:a,containerInfo:s,implementation:v}}function tL(a){if(!a)return Da;var s=Ys(a),v=qq(s);if(s.tag===_){var M=s.type;if(Ll(M))return AR(s,M,v)}return v}function nL(a,s,v,M,A,N,F,$){return eL(a,s,!1,null,0,M,0,N,F)}function rL(a,s,v,M,A,N,F,$,G,Z){var ce=eL(v,M,!0,a,0,N,0,$,G);ce.context=tL(null);var Se=ce.current,Ee=Ko(),ve=Lf(Se),he=Gc(Ee,ve);return he.callback=s??null,kf(Se,he,ve),function(se,te,ge){se.current.lanes=te,Ac(se,te,ge),ga(se,ge)}(ce,ve,Ee),ce}function sv(a,s,v,M){(function(ce,Se){if(Hr&&typeof Hr.onScheduleFiberRoot=="function")try{Hr.onScheduleFiberRoot(Ao,ce,Se)}catch(Ee){Ro||(Ro=!0,i("React instrumentation encountered an error: %s",Ee))}})(s,a);var A=s.current,N=Ko(),F=Lf(A);(function(ce){Pt!==null&&typeof Pt.markRenderScheduled=="function"&&Pt.markRenderScheduled(ce)})(F);var $=tL(v);s.context===null?s.context=$:s.pendingContext=$,it&&We!==null&&!Nw&&(Nw=!0,i(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
208
+
209
+ Check the render method of %s.`,ne(We)||"Unknown"));var G=Gc(N,F);G.payload={element:a},(M=M===void 0?null:M)!==null&&(typeof M!="function"&&i("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",M),G.callback=M);var Z=kf(A,G,F);return Z!==null&&(wi(Z,A,F,N),q3(Z,A,F)),F}function D6(a){var s=a.current;return s.child?(s.child.tag,s.child.stateNode):null}function iL(a,s){var v=a.memoizedState;v!==null&&v.dehydrated!==null&&(v.retryLane=function(M,A){return M!==$r&&M<A?M:A}(v.retryLane,s))}function jw(a,s){iL(a,s);var v=a.alternate;v&&iL(v,s)}function oL(a){var s=_l(a);return s===null?null:s.stateNode}Nw=!1,Dw={};var aL=function(a){return null},sL=function(a){return!1},uL,lL,cL,dL,fL,hL,pL,mL,gL,vL=function(a,s,v){var M=s[v],A=qr(a)?a.slice():un({},a);return v+1===s.length?(qr(A)?A.splice(M,1):delete A[M],A):(A[M]=vL(a[M],s,v+1),A)},bL=function(a,s){return vL(a,s,0)},yL=function(a,s,v,M){var A=s[M],N=qr(a)?a.slice():un({},a);return M+1===s.length?(N[v[M]]=N[A],qr(N)?N.splice(A,1):delete N[A]):N[A]=yL(a[A],s,v,M+1),N},wL=function(a,s,v){if(s.length===v.length){for(var M=0;M<v.length-1;M++)if(s[M]!==v[M])return void o("copyWithRename() expects paths to be the same except for the deepest key");return yL(a,s,v,0)}o("copyWithRename() expects paths of the same length")},_L=function(a,s,v,M){if(v>=s.length)return M;var A=s[v],N=qr(a)?a.slice():un({},a);return N[A]=_L(a[A],s,v+1,M),N},SL=function(a,s,v){return _L(a,s,0,v)},zw=function(a,s){for(var v=a.memoizedState;v!==null&&s>0;)v=v.next,s--;return v};function cW(a){var s=_r(a);return s===null?null:s.stateNode}function dW(a){return null}function fW(){return We}uL=function(a,s,v,M){var A=zw(a,s);if(A!==null){var N=SL(A.memoizedState,v,M);A.memoizedState=N,A.baseState=N,a.memoizedProps=un({},a.memoizedProps);var F=fa(a,gn);F!==null&&wi(F,a,gn,ir)}},lL=function(a,s,v){var M=zw(a,s);if(M!==null){var A=bL(M.memoizedState,v);M.memoizedState=A,M.baseState=A,a.memoizedProps=un({},a.memoizedProps);var N=fa(a,gn);N!==null&&wi(N,a,gn,ir)}},cL=function(a,s,v,M){var A=zw(a,s);if(A!==null){var N=wL(A.memoizedState,v,M);A.memoizedState=N,A.baseState=N,a.memoizedProps=un({},a.memoizedProps);var F=fa(a,gn);F!==null&&wi(F,a,gn,ir)}},dL=function(a,s,v){a.pendingProps=SL(a.memoizedProps,s,v),a.alternate&&(a.alternate.pendingProps=a.pendingProps);var M=fa(a,gn);M!==null&&wi(M,a,gn,ir)},fL=function(a,s){a.pendingProps=bL(a.memoizedProps,s),a.alternate&&(a.alternate.pendingProps=a.pendingProps);var v=fa(a,gn);v!==null&&wi(v,a,gn,ir)},hL=function(a,s,v){a.pendingProps=wL(a.memoizedProps,s,v),a.alternate&&(a.alternate.pendingProps=a.pendingProps);var M=fa(a,gn);M!==null&&wi(M,a,gn,ir)},pL=function(a){var s=fa(a,gn);s!==null&&wi(s,a,gn,ir)},mL=function(a){aL=a},gL=function(a){sL=a};var EL=typeof reportError=="function"?reportError:function(a){console.error(a)};function Uw(a){this._internalRoot=a}function B6(a){this._internalRoot=a}function j6(a){return!(!a||a.nodeType!==po&&a.nodeType!==rs&&a.nodeType!==Eg&&K)}function uv(a){return!(!a||a.nodeType!==po&&a.nodeType!==rs&&a.nodeType!==Eg&&(a.nodeType!==Qr||a.nodeValue!==" react-mount-point-unstable "))}function kL(a){a.nodeType===po&&a.tagName&&a.tagName.toUpperCase()==="BODY"&&i("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),x2(a)&&(a._reactRootContainer?i("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):i("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}B6.prototype.render=Uw.prototype.render=function(a){var s=this._internalRoot;if(s===null)throw new Error("Cannot update an unmounted root.");typeof arguments[1]=="function"?i("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):j6(arguments[1])?i("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):arguments[1]!==void 0&&i("You passed a second argument to root.render(...) but it only accepts one argument.");var v=s.containerInfo;if(v.nodeType!==Qr){var M=oL(s.current);M&&M.parentNode!==v&&i("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}sv(a,s,null,null)},B6.prototype.unmount=Uw.prototype.unmount=function(){typeof arguments[0]=="function"&&i("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var a=this._internalRoot;if(a!==null){this._internalRoot=null;var s=a.containerInfo;NP()&&i("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Jc(function(){sv(null,a,null,null)}),ER(s)}},B6.prototype.unstable_scheduleHydration=function(a){a&&function(s){for(var v=Yg(),M={blockedOn:null,target:s,priority:v},A=0;A<cu.length&&p1(v,cu[A].priority);A++);cu.splice(A,0,M),A===0&&i3(M)}(a)};var ML,CL,xL,hW=n.ReactCurrentOwner;function Fw(a){return a?a.nodeType===rs?a.documentElement:a.firstChild:null}function AL(){}function z6(a,s,v,M,A){ML(v),function(G,Z){G!==null&&typeof G!="function"&&i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",Z,G)}(A===void 0?null:A,"render");var N,F=v._reactRootContainer;if(F){if(typeof A=="function"){var $=A;A=function(){var G=D6(N);$.call(G)}}sv(s,N=F,a,A)}else N=function(G,Z,ce,Se,Ee){if(Ee){if(typeof Se=="function"){var ve=Se;Se=function(){var _e=D6(he);ve.call(_e)}}var he=rL(Z,Se,G,_f,0,!1,0,"",AL);return G._reactRootContainer=he,E3(he.current,G),u0(G.nodeType===Qr?G.parentNode:G),Jc(),he}for(var se;se=G.lastChild;)G.removeChild(se);if(typeof Se=="function"){var te=Se;Se=function(){var _e=D6(ge);te.call(_e)}}var ge=nL(G,_f,0,!1,0,"",AL);return G._reactRootContainer=ge,E3(ge.current,G),u0(G.nodeType===Qr?G.parentNode:G),Jc(function(){sv(Z,ge,ce,Se)}),ge}(v,s,a,A,M);return D6(N)}ML=function(a){if(a._reactRootContainer&&a.nodeType!==Qr){var s=oL(a._reactRootContainer.current);s&&s.parentNode!==a&&i("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var v=!!a._reactRootContainer,M=Fw(a);!(!M||!yf(M))&&!v&&i("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),a.nodeType===po&&a.tagName&&a.tagName.toUpperCase()==="BODY"&&i("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")},CL=function(a){switch(a.tag){case S:var s=a.stateNode;if(Rc(s)){var v=function(M){return xc(M.pendingLanes)}(s);(function(M,A){A!==st&&(Wh(M,yn(A,gn)),ga(M,Xr()),($n&(io|Ms))===ji&&(M6(),Sf()))})(s,v)}break;case le:Jc(function(){var M=fa(a,gn);if(M!==null){var A=Ko();wi(M,a,gn,A)}}),jw(a,gn)}},Xd=CL,function(a){$h=a}(function(a){if(a.tag===le){var s=Zd,v=fa(a,s);v!==null&&wi(v,a,s,Ko()),jw(a,s)}}),function(a){h1=a}(function(a){if(a.tag===le){var s=Lf(a),v=fa(a,s);v!==null&&wi(v,a,s,Ko()),jw(a,s)}}),function(a){Yg=a}(Na),function(a){Gg=a}(function(a,s){var v=Jd;try{return Jd=a,s()}finally{Jd=v}}),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||i("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),xL=function(a,s,v){switch(s){case"input":return void Id(a,v);case"textarea":return void function(M,A){jp(M,A)}(a,v);case"select":return void function(M,A){var N=M,F=A.value;F!=null&&cc(N,!!A.multiple,F,!1)}(a,v)}},pl=xL,vc=bw,$p=Jc;var Kw={usingClientEntryPoint:!1,Events:[yf,j1,k3,Dg,Th,bw]},pW=function(a){var s=a.findFiberByHostInstance,v=n.ReactCurrentDispatcher;return function(M){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var A=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(A.isDisabled)return!0;if(!A.supportsFiber)return i("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{D&&(M=un({},M,{getLaneLabelMap:_c,injectProfilingHooks:ia})),Ao=A.inject(M),Hr=A}catch(N){i("React instrumentation encountered an error: %s.",N)}return!!A.checkDCE}({bundleType:a.bundleType,version:a.version,rendererPackageName:a.rendererPackageName,rendererConfig:a.rendererConfig,overrideHookState:uL,overrideHookStateDeletePath:lL,overrideHookStateRenamePath:cL,overrideProps:dL,overridePropsDeletePath:fL,overridePropsRenamePath:hL,setErrorHandler:mL,setSuspenseHandler:gL,scheduleUpdate:pL,currentDispatcherRef:v,findHostInstanceByFiber:cW,findFiberByHostInstance:s||dW,findHostInstancesForRefresh:oW,scheduleRefresh:rW,scheduleRoot:iW,setRefreshHandler:nW,getCurrentFiber:fW,reconcilerVersion:Bw})}({findFiberByHostInstance:b0,bundleType:1,version:Bw,rendererPackageName:"react-dom"});if(!pW&&ie&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var RL=window.location.protocol;/^(https?|file):$/.test(RL)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(RL==="file:"?`
210
+ You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kw,Ea.createPortal=function(a,s){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!j6(s))throw new Error("Target container is not a DOM element.");return lW(a,s,null,v)},Ea.createRoot=function(a,s){return Kw.usingClientEntryPoint||i('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(v,M){if(!j6(v))throw new Error("createRoot(...): Target container is not a DOM element.");kL(v);var A=!1,N="",F=EL;M!=null&&(M.hydrate?o("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof M=="object"&&M!==null&&M.$$typeof===Ut&&i(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
211
+
212
+ let root = createRoot(domContainer);
213
+ root.render(<App />);`),M.unstable_strictMode===!0&&(A=!0),M.identifierPrefix!==void 0&&(N=M.identifierPrefix),M.onRecoverableError!==void 0&&(F=M.onRecoverableError),M.transitionCallbacks!==void 0&&M.transitionCallbacks);var $=nL(v,T3,0,A,0,N,F);return E3($.current,v),u0(v.nodeType===Qr?v.parentNode:v),new Uw($)}(a,s)},Ea.findDOMNode=function(a){var s=hW.current;return s!==null&&s.stateNode!==null&&(s.stateNode._warnedAboutRefsInRender||i("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",cr(s.type)||"A component"),s.stateNode._warnedAboutRefsInRender=!0),a==null?null:a.nodeType===po?a:function(v,M){var A=Ys(v);if(A===void 0){if(typeof v.render=="function")throw new Error("Unable to find node on an unmounted component.");var N=Object.keys(v).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+N)}var F=_r(A);if(F===null)return null;if(F.mode&Wr){var $=ne(A)||"Component";if(!Dw[$]){Dw[$]=!0;var G=We;try{qt(F),A.mode&Wr?i("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",M,M,$):i("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",M,M,$)}finally{G?qt(G):It()}}}return F.stateNode}(a,"findDOMNode")},Ea.flushSync=function(a){return NP()&&i("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Jc(a)},Ea.hydrate=function(a,s,v){if(i("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!uv(s))throw new Error("Target container is not a DOM element.");return x2(s)&&s._reactRootContainer===void 0&&i("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?"),z6(null,a,s,!0,v)},Ea.hydrateRoot=function(a,s,v){return Kw.usingClientEntryPoint||i('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(M,A,N){if(!j6(M))throw new Error("hydrateRoot(...): Target container is not a DOM element.");kL(M),A===void 0&&i("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var F=N!=null&&N.hydratedSources||null,$=!1,G="",Z=EL;N!=null&&(N.unstable_strictMode===!0&&($=!0),N.identifierPrefix!==void 0&&(G=N.identifierPrefix),N.onRecoverableError!==void 0&&(Z=N.onRecoverableError));var ce=rL(A,null,M,T3,0,$,0,G,Z);if(E3(ce.current,M),u0(M),F)for(var Se=0;Se<F.length;Se++)oH(ce,F[Se]);return new B6(ce)}(a,s,v)},Ea.render=function(a,s,v){if(i("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!uv(s))throw new Error("Target container is not a DOM element.");return x2(s)&&s._reactRootContainer===void 0&&i("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?"),z6(null,a,s,!1,v)},Ea.unmountComponentAtNode=function(a){if(!uv(a))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");if(x2(a)&&a._reactRootContainer===void 0&&i("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?"),a._reactRootContainer){var s=Fw(a);return s&&!yf(s)&&i("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React."),Jc(function(){z6(null,null,a,!1,function(){a._reactRootContainer=null,ER(a)})}),!0}var v=Fw(a),M=!(!v||!yf(v)),A=a.nodeType===po&&uv(a.parentNode)&&!!a.parentNode._reactRootContainer;return M&&i("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",A?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component."),!1},Ea.unstable_batchedUpdates=bw,Ea.unstable_renderSubtreeIntoContainer=function(a,s,v,M){return function(A,N,F,$){if(i("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!uv(F))throw new Error("Target container is not a DOM element.");if(A==null||!function(G){return G._reactInternals!==void 0}(A))throw new Error("parentComponent must be a valid React Component");return z6(A,N,F,!1,$)}(a,s,v,M)},Ea.version=Bw,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ea}function fq(){if(lR)return Op;lR=1;var e=(uR||(uR=1,vr.env.NODE_ENV==="production"?(function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE=="function"){if(vr.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}}(),t7.exports=cq()):t7.exports=dq()),t7.exports);if(vr.env.NODE_ENV==="production")Op.createRoot=e.createRoot,Op.hydrateRoot=e.hydrateRoot;else{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Op.createRoot=function(n,r){t.usingClientEntryPoint=!0;try{return e.createRoot(n,r)}finally{t.usingClientEntryPoint=!1}},Op.hydrateRoot=function(n,r,o){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(n,r,o)}finally{t.usingClientEntryPoint=!1}}}return Op}var cR,dR={exports:{}};function fR(){return cR||(cR=1,function(e,t){e.exports=(()=>{var n={192:(i,c)=>{var g,_,w=function(){var S=function(h,f){var l=h,b=V[f],C=null,R=0,L=null,B=[],K={},z=function(de,ie){C=function(oe){for(var fe=new Array(oe),me=0;me<oe;me+=1){fe[me]=new Array(oe);for(var Le=0;Le<oe;Le+=1)fe[me][Le]=null}return fe}(R=4*l+17),O(0,0),O(R-7,0),O(0,R-7),q(),D(),Q(de,ie),l>=7&&Y(de),L==null&&(L=re(l,b,B)),ae(L,ie)},O=function(de,ie){for(var oe=-1;oe<=7;oe+=1)if(!(de+oe<=-1||R<=de+oe))for(var fe=-1;fe<=7;fe+=1)ie+fe<=-1||R<=ie+fe||(C[de+oe][ie+fe]=0<=oe&&oe<=6&&(fe==0||fe==6)||0<=fe&&fe<=6&&(oe==0||oe==6)||2<=oe&&oe<=4&&2<=fe&&fe<=4)},D=function(){for(var de=8;de<R-8;de+=1)C[de][6]==null&&(C[de][6]=de%2==0);for(var ie=8;ie<R-8;ie+=1)C[6][ie]==null&&(C[6][ie]=ie%2==0)},q=function(){for(var de=ee.getPatternPosition(l),ie=0;ie<de.length;ie+=1)for(var oe=0;oe<de.length;oe+=1){var fe=de[ie],me=de[oe];if(C[fe][me]==null)for(var Le=-2;Le<=2;Le+=1)for(var De=-2;De<=2;De+=1)C[fe+Le][me+De]=Le==-2||Le==2||De==-2||De==2||Le==0&&De==0}},Y=function(de){for(var ie=ee.getBCHTypeNumber(l),oe=0;oe<18;oe+=1){var fe=!de&&(ie>>oe&1)==1;C[Math.floor(oe/3)][oe%3+R-8-3]=fe}for(oe=0;oe<18;oe+=1)fe=!de&&(ie>>oe&1)==1,C[oe%3+R-8-3][Math.floor(oe/3)]=fe},Q=function(de,ie){for(var oe=b<<3|ie,fe=ee.getBCHTypeInfo(oe),me=0;me<15;me+=1){var Le=!de&&(fe>>me&1)==1;me<6?C[me][8]=Le:me<8?C[me+1][8]=Le:C[R-15+me][8]=Le}for(me=0;me<15;me+=1)Le=!de&&(fe>>me&1)==1,me<8?C[8][R-me-1]=Le:me<9?C[8][15-me-1+1]=Le:C[8][15-me-1]=Le;C[R-8][8]=!de},ae=function(de,ie){for(var oe=-1,fe=R-1,me=7,Le=0,De=ee.getMaskFunction(ie),Ce=R-1;Ce>0;Ce-=2)for(Ce==6&&(Ce-=1);;){for(var Qe=0;Qe<2;Qe+=1)if(C[fe][Ce-Qe]==null){var tt=!1;Le<de.length&&(tt=(de[Le]>>>me&1)==1),De(fe,Ce-Qe)&&(tt=!tt),C[fe][Ce-Qe]=tt,(me-=1)==-1&&(Le+=1,me=7)}if((fe+=oe)<0||R<=fe){fe-=oe,oe=-oe;break}}},re=function(de,ie,oe){for(var fe=le.getRSBlocks(de,ie),me=pe(),Le=0;Le<oe.length;Le+=1){var De=oe[Le];me.put(De.getMode(),4),me.put(De.getLength(),ee.getLengthInBits(De.getMode(),de)),De.write(me)}var Ce=0;for(Le=0;Le<fe.length;Le+=1)Ce+=fe[Le].dataCount;if(me.getLengthInBits()>8*Ce)throw"code length overflow. ("+me.getLengthInBits()+">"+8*Ce+")";for(me.getLengthInBits()+4<=8*Ce&&me.put(0,4);me.getLengthInBits()%8!=0;)me.putBit(!1);for(;!(me.getLengthInBits()>=8*Ce||(me.put(236,8),me.getLengthInBits()>=8*Ce));)me.put(17,8);return function(Qe,tt){for(var Fe=0,Mt=0,rt=0,He=new Array(tt.length),lt=new Array(tt.length),mt=0;mt<tt.length;mt+=1){var ct=tt[mt].dataCount,Rt=tt[mt].totalCount-ct;Mt=Math.max(Mt,ct),rt=Math.max(rt,Rt),He[mt]=new Array(ct);for(var _t=0;_t<He[mt].length;_t+=1)He[mt][_t]=255&Qe.getBuffer()[_t+Fe];Fe+=ct;var ut=ee.getErrorCorrectPolynomial(Rt),xt=ue(He[mt],ut.getLength()-1).mod(ut);for(lt[mt]=new Array(ut.getLength()-1),_t=0;_t<lt[mt].length;_t+=1){var Tt=_t+xt.getLength()-lt[mt].length;lt[mt][_t]=Tt>=0?xt.getAt(Tt):0}}var at=0;for(_t=0;_t<tt.length;_t+=1)at+=tt[_t].totalCount;var Ct=new Array(at),At=0;for(_t=0;_t<Mt;_t+=1)for(mt=0;mt<tt.length;mt+=1)_t<He[mt].length&&(Ct[At]=He[mt][_t],At+=1);for(_t=0;_t<rt;_t+=1)for(mt=0;mt<tt.length;mt+=1)_t<lt[mt].length&&(Ct[At]=lt[mt][_t],At+=1);return Ct}(me,fe)};K.addData=function(de,ie){var oe=null;switch(ie=ie||"Byte"){case"Numeric":oe=Me(de);break;case"Alphanumeric":oe=ye(de);break;case"Byte":oe=Te(de);break;case"Kanji":oe=y(de);break;default:throw"mode:"+ie}B.push(oe),L=null},K.isDark=function(de,ie){if(de<0||R<=de||ie<0||R<=ie)throw de+","+ie;return C[de][ie]},K.getModuleCount=function(){return R},K.make=function(){if(l<1){for(var de=1;de<40;de++){for(var ie=le.getRSBlocks(de,b),oe=pe(),fe=0;fe<B.length;fe++){var me=B[fe];oe.put(me.getMode(),4),oe.put(me.getLength(),ee.getLengthInBits(me.getMode(),de)),me.write(oe)}var Le=0;for(fe=0;fe<ie.length;fe++)Le+=ie[fe].dataCount;if(oe.getLengthInBits()<=8*Le)break}l=de}z(!1,function(){for(var De=0,Ce=0,Qe=0;Qe<8;Qe+=1){z(!0,Qe);var tt=ee.getLostPoint(K);(Qe==0||De>tt)&&(De=tt,Ce=Qe)}return Ce}())},K.createTableTag=function(de,ie){de=de||2;var oe="";oe+='<table style="',oe+=" border-width: 0px; border-style: none;",oe+=" border-collapse: collapse;",oe+=" padding: 0px; margin: "+(ie=ie===void 0?4*de:ie)+"px;",oe+='">',oe+="<tbody>";for(var fe=0;fe<K.getModuleCount();fe+=1){oe+="<tr>";for(var me=0;me<K.getModuleCount();me+=1)oe+='<td style="',oe+=" border-width: 0px; border-style: none;",oe+=" border-collapse: collapse;",oe+=" padding: 0px; margin: 0px;",oe+=" width: "+de+"px;",oe+=" height: "+de+"px;",oe+=" background-color: ",oe+=K.isDark(fe,me)?"#000000":"#ffffff",oe+=";",oe+='"/>';oe+="</tr>"}return(oe+="</tbody>")+"</table>"},K.createSvgTag=function(de,ie,oe,fe){var me={};typeof arguments[0]=="object"&&(de=(me=arguments[0]).cellSize,ie=me.margin,oe=me.alt,fe=me.title),de=de||2,ie=ie===void 0?4*de:ie,(oe=typeof oe=="string"?{text:oe}:oe||{}).text=oe.text||null,oe.id=oe.text?oe.id||"qrcode-description":null,(fe=typeof fe=="string"?{text:fe}:fe||{}).text=fe.text||null,fe.id=fe.text?fe.id||"qrcode-title":null;var Le,De,Ce,Qe,tt=K.getModuleCount()*de+2*ie,Fe="";for(Qe="l"+de+",0 0,"+de+" -"+de+",0 0,-"+de+"z ",Fe+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',Fe+=me.scalable?"":' width="'+tt+'px" height="'+tt+'px"',Fe+=' viewBox="0 0 '+tt+" "+tt+'" ',Fe+=' preserveAspectRatio="xMinYMin meet"',Fe+=fe.text||oe.text?' role="img" aria-labelledby="'+we([fe.id,oe.id].join(" ").trim())+'"':"",Fe+=">",Fe+=fe.text?'<title id="'+we(fe.id)+'">'+we(fe.text)+"</title>":"",Fe+=oe.text?'<description id="'+we(oe.id)+'">'+we(oe.text)+"</description>":"",Fe+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',Fe+='<path d="',De=0;De<K.getModuleCount();De+=1)for(Ce=De*de+ie,Le=0;Le<K.getModuleCount();Le+=1)K.isDark(De,Le)&&(Fe+="M"+(Le*de+ie)+","+Ce+Qe);return(Fe+='" stroke="transparent" fill="black"/>')+"</svg>"},K.createDataURL=function(de,ie){de=de||2,ie=ie===void 0?4*de:ie;var oe=K.getModuleCount()*de+2*ie,fe=ie,me=oe-ie;return p(oe,oe,function(Le,De){if(fe<=Le&&Le<me&&fe<=De&&De<me){var Ce=Math.floor((Le-fe)/de),Qe=Math.floor((De-fe)/de);return K.isDark(Qe,Ce)?0:1}return 1})},K.createImgTag=function(de,ie,oe){de=de||2,ie=ie===void 0?4*de:ie;var fe=K.getModuleCount()*de+2*ie,me="";return me+="<img",me+=' src="',me+=K.createDataURL(de,ie),me+='"',me+=' width="',me+=fe,me+='"',me+=' height="',me+=fe,me+='"',oe&&(me+=' alt="',me+=we(oe),me+='"'),me+"/>"};var we=function(de){for(var ie="",oe=0;oe<de.length;oe+=1){var fe=de.charAt(oe);switch(fe){case"<":ie+="&lt;";break;case">":ie+="&gt;";break;case"&":ie+="&amp;";break;case'"':ie+="&quot;";break;default:ie+=fe}}return ie};return K.createASCII=function(de,ie){if((de=de||1)<2)return function(He){He=He===void 0?2:He;var lt,mt,ct,Rt,_t,ut=1*K.getModuleCount()+2*He,xt=He,Tt=ut-He,at={"██":"█","█ ":"▀"," █":"▄"," ":" "},Ct={"██":"▀","█ ":"▀"," █":" "," ":" "},At="";for(lt=0;lt<ut;lt+=2){for(ct=Math.floor((lt-xt)/1),Rt=Math.floor((lt+1-xt)/1),mt=0;mt<ut;mt+=1)_t="█",xt<=mt&&mt<Tt&&xt<=lt&&lt<Tt&&K.isDark(ct,Math.floor((mt-xt)/1))&&(_t=" "),xt<=mt&&mt<Tt&&xt<=lt+1&&lt+1<Tt&&K.isDark(Rt,Math.floor((mt-xt)/1))?_t+=" ":_t+="█",At+=He<1&&lt+1>=Tt?Ct[_t]:at[_t];At+=`
214
+ `}return ut%2&&He>0?At.substring(0,At.length-ut-1)+Array(ut+1).join("▀"):At.substring(0,At.length-1)}(ie);de-=1,ie=ie===void 0?2*de:ie;var oe,fe,me,Le,De=K.getModuleCount()*de+2*ie,Ce=ie,Qe=De-ie,tt=Array(de+1).join("██"),Fe=Array(de+1).join(" "),Mt="",rt="";for(oe=0;oe<De;oe+=1){for(me=Math.floor((oe-Ce)/de),rt="",fe=0;fe<De;fe+=1)Le=1,Ce<=fe&&fe<Qe&&Ce<=oe&&oe<Qe&&K.isDark(me,Math.floor((fe-Ce)/de))&&(Le=0),rt+=Le?tt:Fe;for(me=0;me<de;me+=1)Mt+=rt+`
215
+ `}return Mt.substring(0,Mt.length-1)},K.renderTo2dContext=function(de,ie){ie=ie||2;for(var oe=K.getModuleCount(),fe=0;fe<oe;fe++)for(var me=0;me<oe;me++)de.fillStyle=K.isDark(fe,me)?"black":"white",de.fillRect(fe*ie,me*ie,ie,ie)},K};S.stringToBytes=(S.stringToBytesFuncs={default:function(h){for(var f=[],l=0;l<h.length;l+=1){var b=h.charCodeAt(l);f.push(255&b)}return f}}).default,S.createStringToBytes=function(h,f){var l=function(){for(var C=d(h),R=function(){var D=C.read();if(D==-1)throw"eof";return D},L=0,B={};;){var K=C.read();if(K==-1)break;var z=R(),O=R()<<8|R();B[String.fromCharCode(K<<8|z)]=O,L+=1}if(L!=f)throw L+" != "+f;return B}(),b=63;return function(C){for(var R=[],L=0;L<C.length;L+=1){var B=C.charCodeAt(L);if(B<128)R.push(B);else{var K=l[C.charAt(L)];typeof K=="number"?(255&K)==K?R.push(K):(R.push(K>>>8),R.push(255&K)):R.push(b)}}return R}};var E,T,I,j,H,V={L:1,M:0,Q:3,H:2},ee=(E=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],T=1335,I=7973,H=function(h){for(var f=0;h!=0;)f+=1,h>>>=1;return f},(j={}).getBCHTypeInfo=function(h){for(var f=h<<10;H(f)-H(T)>=0;)f^=T<<H(f)-H(T);return 21522^(h<<10|f)},j.getBCHTypeNumber=function(h){for(var f=h<<12;H(f)-H(I)>=0;)f^=I<<H(f)-H(I);return h<<12|f},j.getPatternPosition=function(h){return E[h-1]},j.getMaskFunction=function(h){switch(h){case 0:return function(f,l){return(f+l)%2==0};case 1:return function(f,l){return f%2==0};case 2:return function(f,l){return l%3==0};case 3:return function(f,l){return(f+l)%3==0};case 4:return function(f,l){return(Math.floor(f/2)+Math.floor(l/3))%2==0};case 5:return function(f,l){return f*l%2+f*l%3==0};case 6:return function(f,l){return(f*l%2+f*l%3)%2==0};case 7:return function(f,l){return(f*l%3+(f+l)%2)%2==0};default:throw"bad maskPattern:"+h}},j.getErrorCorrectPolynomial=function(h){for(var f=ue([1],0),l=0;l<h;l+=1)f=f.multiply(ue([1,X.gexp(l)],0));return f},j.getLengthInBits=function(h,f){if(1<=f&&f<10)switch(h){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+h}else if(f<27)switch(h){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+h}else{if(!(f<41))throw"type:"+f;switch(h){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+h}}},j.getLostPoint=function(h){for(var f=h.getModuleCount(),l=0,b=0;b<f;b+=1)for(var C=0;C<f;C+=1){for(var R=0,L=h.isDark(b,C),B=-1;B<=1;B+=1)if(!(b+B<0||f<=b+B))for(var K=-1;K<=1;K+=1)C+K<0||f<=C+K||B==0&&K==0||L==h.isDark(b+B,C+K)&&(R+=1);R>5&&(l+=3+R-5)}for(b=0;b<f-1;b+=1)for(C=0;C<f-1;C+=1){var z=0;h.isDark(b,C)&&(z+=1),h.isDark(b+1,C)&&(z+=1),h.isDark(b,C+1)&&(z+=1),h.isDark(b+1,C+1)&&(z+=1),z!=0&&z!=4||(l+=3)}for(b=0;b<f;b+=1)for(C=0;C<f-6;C+=1)h.isDark(b,C)&&!h.isDark(b,C+1)&&h.isDark(b,C+2)&&h.isDark(b,C+3)&&h.isDark(b,C+4)&&!h.isDark(b,C+5)&&h.isDark(b,C+6)&&(l+=40);for(C=0;C<f;C+=1)for(b=0;b<f-6;b+=1)h.isDark(b,C)&&!h.isDark(b+1,C)&&h.isDark(b+2,C)&&h.isDark(b+3,C)&&h.isDark(b+4,C)&&!h.isDark(b+5,C)&&h.isDark(b+6,C)&&(l+=40);var O=0;for(C=0;C<f;C+=1)for(b=0;b<f;b+=1)h.isDark(b,C)&&(O+=1);return l+Math.abs(100*O/f/f-50)/5*10},j),X=function(){for(var h=new Array(256),f=new Array(256),l=0;l<8;l+=1)h[l]=1<<l;for(l=8;l<256;l+=1)h[l]=h[l-4]^h[l-5]^h[l-6]^h[l-8];for(l=0;l<255;l+=1)f[h[l]]=l;return{glog:function(b){if(b<1)throw"glog("+b+")";return f[b]},gexp:function(b){for(;b<0;)b+=255;for(;b>=256;)b-=255;return h[b]}}}();function ue(h,f){if(h.length===void 0)throw h.length+"/"+f;var l=function(){for(var C=0;C<h.length&&h[C]==0;)C+=1;for(var R=new Array(h.length-C+f),L=0;L<h.length-C;L+=1)R[L]=h[L+C];return R}(),b={getAt:function(C){return l[C]},getLength:function(){return l.length},multiply:function(C){for(var R=new Array(b.getLength()+C.getLength()-1),L=0;L<b.getLength();L+=1)for(var B=0;B<C.getLength();B+=1)R[L+B]^=X.gexp(X.glog(b.getAt(L))+X.glog(C.getAt(B)));return ue(R,0)},mod:function(C){if(b.getLength()-C.getLength()<0)return b;for(var R=X.glog(b.getAt(0))-X.glog(C.getAt(0)),L=new Array(b.getLength()),B=0;B<b.getLength();B+=1)L[B]=b.getAt(B);for(B=0;B<C.getLength();B+=1)L[B]^=X.gexp(X.glog(C.getAt(B))+R);return ue(L,0).mod(C)}};return b}var le=function(){var h=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],f=function(b,C){var R={};return R.totalCount=b,R.dataCount=C,R},l={getRSBlocks:function(b,C){var R=function(Y,Q){switch(Q){case V.L:return h[4*(Y-1)+0];case V.M:return h[4*(Y-1)+1];case V.Q:return h[4*(Y-1)+2];case V.H:return h[4*(Y-1)+3];default:return}}(b,C);if(R===void 0)throw"bad rs block @ typeNumber:"+b+"/errorCorrectionLevel:"+C;for(var L=R.length/3,B=[],K=0;K<L;K+=1)for(var z=R[3*K+0],O=R[3*K+1],D=R[3*K+2],q=0;q<z;q+=1)B.push(f(O,D));return B}};return l}(),pe=function(){var h=[],f=0,l={getBuffer:function(){return h},getAt:function(b){var C=Math.floor(b/8);return(h[C]>>>7-b%8&1)==1},put:function(b,C){for(var R=0;R<C;R+=1)l.putBit((b>>>C-R-1&1)==1)},getLengthInBits:function(){return f},putBit:function(b){var C=Math.floor(f/8);h.length<=C&&h.push(0),b&&(h[C]|=128>>>f%8),f+=1}};return l},Me=function(h){var f=h,l={getMode:function(){return 1},getLength:function(R){return f.length},write:function(R){for(var L=f,B=0;B+2<L.length;)R.put(b(L.substring(B,B+3)),10),B+=3;B<L.length&&(L.length-B==1?R.put(b(L.substring(B,B+1)),4):L.length-B==2&&R.put(b(L.substring(B,B+2)),7))}},b=function(R){for(var L=0,B=0;B<R.length;B+=1)L=10*L+C(R.charAt(B));return L},C=function(R){if("0"<=R&&R<="9")return R.charCodeAt(0)-48;throw"illegal char :"+R};return l},ye=function(h){var f=h,l={getMode:function(){return 2},getLength:function(C){return f.length},write:function(C){for(var R=f,L=0;L+1<R.length;)C.put(45*b(R.charAt(L))+b(R.charAt(L+1)),11),L+=2;L<R.length&&C.put(b(R.charAt(L)),6)}},b=function(C){if("0"<=C&&C<="9")return C.charCodeAt(0)-48;if("A"<=C&&C<="Z")return C.charCodeAt(0)-65+10;switch(C){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+C}};return l},Te=function(h){var f=S.stringToBytes(h);return{getMode:function(){return 4},getLength:function(l){return f.length},write:function(l){for(var b=0;b<f.length;b+=1)l.put(f[b],8)}}},y=function(h){var f=S.stringToBytesFuncs.SJIS;if(!f)throw"sjis not supported.";(function(b,C){var R=f("友");if(R.length!=2||(R[0]<<8|R[1])!=38726)throw"sjis not supported."})();var l=f(h);return{getMode:function(){return 8},getLength:function(b){return~~(l.length/2)},write:function(b){for(var C=l,R=0;R+1<C.length;){var L=(255&C[R])<<8|255&C[R+1];if(33088<=L&&L<=40956)L-=33088;else{if(!(57408<=L&&L<=60351))throw"illegal char at "+(R+1)+"/"+L;L-=49472}L=192*(L>>>8&255)+(255&L),b.put(L,13),R+=2}if(R<C.length)throw"illegal char at "+(R+1)}}},x=function(){var h=[],f={writeByte:function(l){h.push(255&l)},writeShort:function(l){f.writeByte(l),f.writeByte(l>>>8)},writeBytes:function(l,b,C){b=b||0,C=C||l.length;for(var R=0;R<C;R+=1)f.writeByte(l[R+b])},writeString:function(l){for(var b=0;b<l.length;b+=1)f.writeByte(l.charCodeAt(b))},toByteArray:function(){return h},toString:function(){var l="";l+="[";for(var b=0;b<h.length;b+=1)b>0&&(l+=","),l+=h[b];return l+"]"}};return f},d=function(h){var f=h,l=0,b=0,C=0,R={read:function(){for(;C<8;){if(l>=f.length){if(C==0)return-1;throw"unexpected end of file./"+C}var B=f.charAt(l);if(l+=1,B=="=")return C=0,-1;B.match(/^\s$/)||(b=b<<6|L(B.charCodeAt(0)),C+=6)}var K=b>>>C-8&255;return C-=8,K}},L=function(B){if(65<=B&&B<=90)return B-65;if(97<=B&&B<=122)return B-97+26;if(48<=B&&B<=57)return B-48+52;if(B==43)return 62;if(B==47)return 63;throw"c:"+B};return R},p=function(h,f,l){for(var b=function(O,D){var q=O,Y=D,Q=new Array(O*D),ae={setPixel:function(de,ie,oe){Q[ie*q+de]=oe},write:function(de){de.writeString("GIF87a"),de.writeShort(q),de.writeShort(Y),de.writeByte(128),de.writeByte(0),de.writeByte(0),de.writeByte(0),de.writeByte(0),de.writeByte(0),de.writeByte(255),de.writeByte(255),de.writeByte(255),de.writeString(","),de.writeShort(0),de.writeShort(0),de.writeShort(q),de.writeShort(Y),de.writeByte(0);var ie=re(2);de.writeByte(2);for(var oe=0;ie.length-oe>255;)de.writeByte(255),de.writeBytes(ie,oe,255),oe+=255;de.writeByte(ie.length-oe),de.writeBytes(ie,oe,ie.length-oe),de.writeByte(0),de.writeString(";")}},re=function(de){for(var ie=1<<de,oe=1+(1<<de),fe=de+1,me=we(),Le=0;Le<ie;Le+=1)me.add(String.fromCharCode(Le));me.add(String.fromCharCode(ie)),me.add(String.fromCharCode(oe));var De,Ce,Qe,tt=x(),Fe=(De=tt,Ce=0,Qe=0,{write:function(lt,mt){if(lt>>>mt)throw"length over";for(;Ce+mt>=8;)De.writeByte(255&(lt<<Ce|Qe)),mt-=8-Ce,lt>>>=8-Ce,Qe=0,Ce=0;Qe|=lt<<Ce,Ce+=mt},flush:function(){Ce>0&&De.writeByte(Qe)}});Fe.write(ie,fe);var Mt=0,rt=String.fromCharCode(Q[Mt]);for(Mt+=1;Mt<Q.length;){var He=String.fromCharCode(Q[Mt]);Mt+=1,me.contains(rt+He)?rt+=He:(Fe.write(me.indexOf(rt),fe),me.size()<4095&&(me.size()==1<<fe&&(fe+=1),me.add(rt+He)),rt=He)}return Fe.write(me.indexOf(rt),fe),Fe.write(oe,fe),Fe.flush(),tt.toByteArray()},we=function(){var de={},ie=0,oe={add:function(fe){if(oe.contains(fe))throw"dup key:"+fe;de[fe]=ie,ie+=1},size:function(){return ie},indexOf:function(fe){return de[fe]},contains:function(fe){return de[fe]!==void 0}};return oe};return ae}(h,f),C=0;C<f;C+=1)for(var R=0;R<h;R+=1)b.setPixel(R,C,l(R,C));var L=x();b.write(L);for(var B=function(){var O=0,D=0,q=0,Y="",Q={},ae=function(we){Y+=String.fromCharCode(re(63&we))},re=function(we){if(!(we<0)){if(we<26)return 65+we;if(we<52)return we-26+97;if(we<62)return we-52+48;if(we==62)return 43;if(we==63)return 47}throw"n:"+we};return Q.writeByte=function(we){for(O=O<<8|255&we,D+=8,q+=1;D>=6;)ae(O>>>D-6),D-=6},Q.flush=function(){if(D>0&&(ae(O<<6-D),O=0,D=0),q%3!=0)for(var we=3-q%3,de=0;de<we;de+=1)Y+="="},Q.toString=function(){return Y},Q}(),K=L.toByteArray(),z=0;z<K.length;z+=1)B.writeByte(K[z]);return B.flush(),"data:image/gif;base64,"+B};return S}();w.stringToBytesFuncs["UTF-8"]=function(S){return function(E){for(var T=[],I=0;I<E.length;I++){var j=E.charCodeAt(I);j<128?T.push(j):j<2048?T.push(192|j>>6,128|63&j):j<55296||j>=57344?T.push(224|j>>12,128|j>>6&63,128|63&j):(I++,j=65536+((1023&j)<<10|1023&E.charCodeAt(I)),T.push(240|j>>18,128|j>>12&63,128|j>>6&63,128|63&j))}return T}(S)},(_=typeof(g=function(){return w})=="function"?g.apply(c,[]):g)===void 0||(i.exports=_)},676:(i,c,g)=>{g.d(c,{default:()=>z});var _=function(){return(_=Object.assign||function(O){for(var D,q=1,Y=arguments.length;q<Y;q++)for(var Q in D=arguments[q])Object.prototype.hasOwnProperty.call(D,Q)&&(O[Q]=D[Q]);return O}).apply(this,arguments)},w=function(){for(var O=0,D=0,q=arguments.length;D<q;D++)O+=arguments[D].length;var Y=Array(O),Q=0;for(D=0;D<q;D++)for(var ae=arguments[D],re=0,we=ae.length;re<we;re++,Q++)Y[Q]=ae[re];return Y},S=function(O){return!!O&&typeof O=="object"&&!Array.isArray(O)};function E(O){for(var D=[],q=1;q<arguments.length;q++)D[q-1]=arguments[q];if(!D.length)return O;var Y=D.shift();return Y!==void 0&&S(O)&&S(Y)?(O=_({},O),Object.keys(Y).forEach(function(Q){var ae=O[Q],re=Y[Q];Array.isArray(ae)&&Array.isArray(re)?O[Q]=re:S(ae)&&S(re)?O[Q]=E(Object.assign({},ae),re):O[Q]=re}),E.apply(void 0,w([O],D))):O}function T(O,D){var q=document.createElement("a");q.download=D,q.href=O,document.body.appendChild(q),q.click(),document.body.removeChild(q)}function I(O){return D=this,q=void 0,Q=function(){return function(ae,re){var we,de,ie,oe,fe={label:0,sent:function(){if(1&ie[0])throw ie[1];return ie[1]},trys:[],ops:[]};return oe={next:me(0),throw:me(1),return:me(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function me(Le){return function(De){return function(Ce){if(we)throw new TypeError("Generator is already executing.");for(;fe;)try{if(we=1,de&&(ie=2&Ce[0]?de.return:Ce[0]?de.throw||((ie=de.return)&&ie.call(de),0):de.next)&&!(ie=ie.call(de,Ce[1])).done)return ie;switch(de=0,ie&&(Ce=[2&Ce[0],ie.value]),Ce[0]){case 0:case 1:ie=Ce;break;case 4:return fe.label++,{value:Ce[1],done:!1};case 5:fe.label++,de=Ce[1],Ce=[0];continue;case 7:Ce=fe.ops.pop(),fe.trys.pop();continue;default:if(!((ie=(ie=fe.trys).length>0&&ie[ie.length-1])||Ce[0]!==6&&Ce[0]!==2)){fe=0;continue}if(Ce[0]===3&&(!ie||Ce[1]>ie[0]&&Ce[1]<ie[3])){fe.label=Ce[1];break}if(Ce[0]===6&&fe.label<ie[1]){fe.label=ie[1],ie=Ce;break}if(ie&&fe.label<ie[2]){fe.label=ie[2],fe.ops.push(Ce);break}ie[2]&&fe.ops.pop(),fe.trys.pop();continue}Ce=re.call(ae,fe)}catch(Qe){Ce=[6,Qe],de=0}finally{we=ie=0}if(5&Ce[0])throw Ce[1];return{value:Ce[0]?Ce[1]:void 0,done:!0}}([Le,De])}}}(this,function(ae){return[2,new Promise(function(re){var we=new XMLHttpRequest;we.onload=function(){var de=new FileReader;de.onloadend=function(){re(de.result)},de.readAsDataURL(we.response)},we.open("GET",O),we.responseType="blob",we.send()})]})},new((Y=void 0)||(Y=Promise))(function(ae,re){function we(oe){try{ie(Q.next(oe))}catch(fe){re(fe)}}function de(oe){try{ie(Q.throw(oe))}catch(fe){re(fe)}}function ie(oe){var fe;oe.done?ae(oe.value):(fe=oe.value,fe instanceof Y?fe:new Y(function(me){me(fe)})).then(we,de)}ie((Q=Q.apply(D,q||[])).next())});var D,q,Y,Q}const j={L:.07,M:.15,Q:.25,H:.3};var H=function(){return(H=Object.assign||function(O){for(var D,q=1,Y=arguments.length;q<Y;q++)for(var Q in D=arguments[q])Object.prototype.hasOwnProperty.call(D,Q)&&(O[Q]=D[Q]);return O}).apply(this,arguments)};const V=function(){function O(D){var q=D.svg,Y=D.type;this._svg=q,this._type=Y}return O.prototype.draw=function(D,q,Y,Q){var ae;switch(this._type){case"dots":ae=this._drawDot;break;case"classy":ae=this._drawClassy;break;case"classy-rounded":ae=this._drawClassyRounded;break;case"rounded":ae=this._drawRounded;break;case"extra-rounded":ae=this._drawExtraRounded;break;default:ae=this._drawSquare}ae.call(this,{x:D,y:q,size:Y,getNeighbor:Q})},O.prototype._rotateFigure=function(D){var q,Y=D.x,Q=D.y,ae=D.size,re=D.rotation,we=re===void 0?0:re,de=Y+ae/2,ie=Q+ae/2;(0,D.draw)(),(q=this._element)===null||q===void 0||q.setAttribute("transform","rotate("+180*we/Math.PI+","+de+","+ie+")")},O.prototype._basicDot=function(D){var q=this,Y=D.size,Q=D.x,ae=D.y;this._rotateFigure(H(H({},D),{draw:function(){q._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),q._element.setAttribute("cx",String(Q+Y/2)),q._element.setAttribute("cy",String(ae+Y/2)),q._element.setAttribute("r",String(Y/2))}}))},O.prototype._basicSquare=function(D){var q=this,Y=D.size,Q=D.x,ae=D.y;this._rotateFigure(H(H({},D),{draw:function(){q._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),q._element.setAttribute("x",String(Q)),q._element.setAttribute("y",String(ae)),q._element.setAttribute("width",String(Y)),q._element.setAttribute("height",String(Y))}}))},O.prototype._basicSideRounded=function(D){var q=this,Y=D.size,Q=D.x,ae=D.y;this._rotateFigure(H(H({},D),{draw:function(){q._element=document.createElementNS("http://www.w3.org/2000/svg","path"),q._element.setAttribute("d","M "+Q+" "+ae+"v "+Y+"h "+Y/2+"a "+Y/2+" "+Y/2+", 0, 0, 0, 0 "+-Y)}}))},O.prototype._basicCornerRounded=function(D){var q=this,Y=D.size,Q=D.x,ae=D.y;this._rotateFigure(H(H({},D),{draw:function(){q._element=document.createElementNS("http://www.w3.org/2000/svg","path"),q._element.setAttribute("d","M "+Q+" "+ae+"v "+Y+"h "+Y+"v "+-Y/2+"a "+Y/2+" "+Y/2+", 0, 0, 0, "+-Y/2+" "+-Y/2)}}))},O.prototype._basicCornerExtraRounded=function(D){var q=this,Y=D.size,Q=D.x,ae=D.y;this._rotateFigure(H(H({},D),{draw:function(){q._element=document.createElementNS("http://www.w3.org/2000/svg","path"),q._element.setAttribute("d","M "+Q+" "+ae+"v "+Y+"h "+Y+"a "+Y+" "+Y+", 0, 0, 0, "+-Y+" "+-Y)}}))},O.prototype._basicCornersRounded=function(D){var q=this,Y=D.size,Q=D.x,ae=D.y;this._rotateFigure(H(H({},D),{draw:function(){q._element=document.createElementNS("http://www.w3.org/2000/svg","path"),q._element.setAttribute("d","M "+Q+" "+ae+"v "+Y/2+"a "+Y/2+" "+Y/2+", 0, 0, 0, "+Y/2+" "+Y/2+"h "+Y/2+"v "+-Y/2+"a "+Y/2+" "+Y/2+", 0, 0, 0, "+-Y/2+" "+-Y/2)}}))},O.prototype._drawDot=function(D){var q=D.x,Y=D.y,Q=D.size;this._basicDot({x:q,y:Y,size:Q,rotation:0})},O.prototype._drawSquare=function(D){var q=D.x,Y=D.y,Q=D.size;this._basicSquare({x:q,y:Y,size:Q,rotation:0})},O.prototype._drawRounded=function(D){var q=D.x,Y=D.y,Q=D.size,ae=D.getNeighbor,re=ae?+ae(-1,0):0,we=ae?+ae(1,0):0,de=ae?+ae(0,-1):0,ie=ae?+ae(0,1):0,oe=re+we+de+ie;if(oe!==0)if(oe>2||re&&we||de&&ie)this._basicSquare({x:q,y:Y,size:Q,rotation:0});else{if(oe===2){var fe=0;return re&&de?fe=Math.PI/2:de&&we?fe=Math.PI:we&&ie&&(fe=-Math.PI/2),void this._basicCornerRounded({x:q,y:Y,size:Q,rotation:fe})}if(oe===1)return fe=0,de?fe=Math.PI/2:we?fe=Math.PI:ie&&(fe=-Math.PI/2),void this._basicSideRounded({x:q,y:Y,size:Q,rotation:fe})}else this._basicDot({x:q,y:Y,size:Q,rotation:0})},O.prototype._drawExtraRounded=function(D){var q=D.x,Y=D.y,Q=D.size,ae=D.getNeighbor,re=ae?+ae(-1,0):0,we=ae?+ae(1,0):0,de=ae?+ae(0,-1):0,ie=ae?+ae(0,1):0,oe=re+we+de+ie;if(oe!==0)if(oe>2||re&&we||de&&ie)this._basicSquare({x:q,y:Y,size:Q,rotation:0});else{if(oe===2){var fe=0;return re&&de?fe=Math.PI/2:de&&we?fe=Math.PI:we&&ie&&(fe=-Math.PI/2),void this._basicCornerExtraRounded({x:q,y:Y,size:Q,rotation:fe})}if(oe===1)return fe=0,de?fe=Math.PI/2:we?fe=Math.PI:ie&&(fe=-Math.PI/2),void this._basicSideRounded({x:q,y:Y,size:Q,rotation:fe})}else this._basicDot({x:q,y:Y,size:Q,rotation:0})},O.prototype._drawClassy=function(D){var q=D.x,Y=D.y,Q=D.size,ae=D.getNeighbor,re=ae?+ae(-1,0):0,we=ae?+ae(1,0):0,de=ae?+ae(0,-1):0,ie=ae?+ae(0,1):0;re+we+de+ie!==0?re||de?we||ie?this._basicSquare({x:q,y:Y,size:Q,rotation:0}):this._basicCornerRounded({x:q,y:Y,size:Q,rotation:Math.PI/2}):this._basicCornerRounded({x:q,y:Y,size:Q,rotation:-Math.PI/2}):this._basicCornersRounded({x:q,y:Y,size:Q,rotation:Math.PI/2})},O.prototype._drawClassyRounded=function(D){var q=D.x,Y=D.y,Q=D.size,ae=D.getNeighbor,re=ae?+ae(-1,0):0,we=ae?+ae(1,0):0,de=ae?+ae(0,-1):0,ie=ae?+ae(0,1):0;re+we+de+ie!==0?re||de?we||ie?this._basicSquare({x:q,y:Y,size:Q,rotation:0}):this._basicCornerExtraRounded({x:q,y:Y,size:Q,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:q,y:Y,size:Q,rotation:-Math.PI/2}):this._basicCornersRounded({x:q,y:Y,size:Q,rotation:Math.PI/2})},O}();var ee=function(){return(ee=Object.assign||function(O){for(var D,q=1,Y=arguments.length;q<Y;q++)for(var Q in D=arguments[q])Object.prototype.hasOwnProperty.call(D,Q)&&(O[Q]=D[Q]);return O}).apply(this,arguments)};const X=function(){function O(D){var q=D.svg,Y=D.type;this._svg=q,this._type=Y}return O.prototype.draw=function(D,q,Y,Q){var ae;switch(this._type){case"square":ae=this._drawSquare;break;case"extra-rounded":ae=this._drawExtraRounded;break;default:ae=this._drawDot}ae.call(this,{x:D,y:q,size:Y,rotation:Q})},O.prototype._rotateFigure=function(D){var q,Y=D.x,Q=D.y,ae=D.size,re=D.rotation,we=re===void 0?0:re,de=Y+ae/2,ie=Q+ae/2;(0,D.draw)(),(q=this._element)===null||q===void 0||q.setAttribute("transform","rotate("+180*we/Math.PI+","+de+","+ie+")")},O.prototype._basicDot=function(D){var q=this,Y=D.size,Q=D.x,ae=D.y,re=Y/7;this._rotateFigure(ee(ee({},D),{draw:function(){q._element=document.createElementNS("http://www.w3.org/2000/svg","path"),q._element.setAttribute("clip-rule","evenodd"),q._element.setAttribute("d","M "+(Q+Y/2)+" "+ae+"a "+Y/2+" "+Y/2+" 0 1 0 0.1 0zm 0 "+re+"a "+(Y/2-re)+" "+(Y/2-re)+" 0 1 1 -0.1 0Z")}}))},O.prototype._basicSquare=function(D){var q=this,Y=D.size,Q=D.x,ae=D.y,re=Y/7;this._rotateFigure(ee(ee({},D),{draw:function(){q._element=document.createElementNS("http://www.w3.org/2000/svg","path"),q._element.setAttribute("clip-rule","evenodd"),q._element.setAttribute("d","M "+Q+" "+ae+"v "+Y+"h "+Y+"v "+-Y+"zM "+(Q+re)+" "+(ae+re)+"h "+(Y-2*re)+"v "+(Y-2*re)+"h "+(2*re-Y)+"z")}}))},O.prototype._basicExtraRounded=function(D){var q=this,Y=D.size,Q=D.x,ae=D.y,re=Y/7;this._rotateFigure(ee(ee({},D),{draw:function(){q._element=document.createElementNS("http://www.w3.org/2000/svg","path"),q._element.setAttribute("clip-rule","evenodd"),q._element.setAttribute("d","M "+Q+" "+(ae+2.5*re)+"v "+2*re+"a "+2.5*re+" "+2.5*re+", 0, 0, 0, "+2.5*re+" "+2.5*re+"h "+2*re+"a "+2.5*re+" "+2.5*re+", 0, 0, 0, "+2.5*re+" "+2.5*-re+"v "+-2*re+"a "+2.5*re+" "+2.5*re+", 0, 0, 0, "+2.5*-re+" "+2.5*-re+"h "+-2*re+"a "+2.5*re+" "+2.5*re+", 0, 0, 0, "+2.5*-re+" "+2.5*re+"M "+(Q+2.5*re)+" "+(ae+re)+"h "+2*re+"a "+1.5*re+" "+1.5*re+", 0, 0, 1, "+1.5*re+" "+1.5*re+"v "+2*re+"a "+1.5*re+" "+1.5*re+", 0, 0, 1, "+1.5*-re+" "+1.5*re+"h "+-2*re+"a "+1.5*re+" "+1.5*re+", 0, 0, 1, "+1.5*-re+" "+1.5*-re+"v "+-2*re+"a "+1.5*re+" "+1.5*re+", 0, 0, 1, "+1.5*re+" "+1.5*-re)}}))},O.prototype._drawDot=function(D){var q=D.x,Y=D.y,Q=D.size,ae=D.rotation;this._basicDot({x:q,y:Y,size:Q,rotation:ae})},O.prototype._drawSquare=function(D){var q=D.x,Y=D.y,Q=D.size,ae=D.rotation;this._basicSquare({x:q,y:Y,size:Q,rotation:ae})},O.prototype._drawExtraRounded=function(D){var q=D.x,Y=D.y,Q=D.size,ae=D.rotation;this._basicExtraRounded({x:q,y:Y,size:Q,rotation:ae})},O}();var ue=function(){return(ue=Object.assign||function(O){for(var D,q=1,Y=arguments.length;q<Y;q++)for(var Q in D=arguments[q])Object.prototype.hasOwnProperty.call(D,Q)&&(O[Q]=D[Q]);return O}).apply(this,arguments)};const le=function(){function O(D){var q=D.svg,Y=D.type;this._svg=q,this._type=Y}return O.prototype.draw=function(D,q,Y,Q){(this._type==="square"?this._drawSquare:this._drawDot).call(this,{x:D,y:q,size:Y,rotation:Q})},O.prototype._rotateFigure=function(D){var q,Y=D.x,Q=D.y,ae=D.size,re=D.rotation,we=re===void 0?0:re,de=Y+ae/2,ie=Q+ae/2;(0,D.draw)(),(q=this._element)===null||q===void 0||q.setAttribute("transform","rotate("+180*we/Math.PI+","+de+","+ie+")")},O.prototype._basicDot=function(D){var q=this,Y=D.size,Q=D.x,ae=D.y;this._rotateFigure(ue(ue({},D),{draw:function(){q._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),q._element.setAttribute("cx",String(Q+Y/2)),q._element.setAttribute("cy",String(ae+Y/2)),q._element.setAttribute("r",String(Y/2))}}))},O.prototype._basicSquare=function(D){var q=this,Y=D.size,Q=D.x,ae=D.y;this._rotateFigure(ue(ue({},D),{draw:function(){q._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),q._element.setAttribute("x",String(Q)),q._element.setAttribute("y",String(ae)),q._element.setAttribute("width",String(Y)),q._element.setAttribute("height",String(Y))}}))},O.prototype._drawDot=function(D){var q=D.x,Y=D.y,Q=D.size,ae=D.rotation;this._basicDot({x:q,y:Y,size:Q,rotation:ae})},O.prototype._drawSquare=function(D){var q=D.x,Y=D.y,Q=D.size,ae=D.rotation;this._basicSquare({x:q,y:Y,size:Q,rotation:ae})},O}(),pe="circle";var Me=function(O,D,q,Y){return new(q||(q=Promise))(function(Q,ae){function re(ie){try{de(Y.next(ie))}catch(oe){ae(oe)}}function we(ie){try{de(Y.throw(ie))}catch(oe){ae(oe)}}function de(ie){var oe;ie.done?Q(ie.value):(oe=ie.value,oe instanceof q?oe:new q(function(fe){fe(oe)})).then(re,we)}de((Y=Y.apply(O,[])).next())})},ye=function(O,D){var q,Y,Q,ae,re={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return ae={next:we(0),throw:we(1),return:we(2)},typeof Symbol=="function"&&(ae[Symbol.iterator]=function(){return this}),ae;function we(de){return function(ie){return function(oe){if(q)throw new TypeError("Generator is already executing.");for(;re;)try{if(q=1,Y&&(Q=2&oe[0]?Y.return:oe[0]?Y.throw||((Q=Y.return)&&Q.call(Y),0):Y.next)&&!(Q=Q.call(Y,oe[1])).done)return Q;switch(Y=0,Q&&(oe=[2&oe[0],Q.value]),oe[0]){case 0:case 1:Q=oe;break;case 4:return re.label++,{value:oe[1],done:!1};case 5:re.label++,Y=oe[1],oe=[0];continue;case 7:oe=re.ops.pop(),re.trys.pop();continue;default:if(!((Q=(Q=re.trys).length>0&&Q[Q.length-1])||oe[0]!==6&&oe[0]!==2)){re=0;continue}if(oe[0]===3&&(!Q||oe[1]>Q[0]&&oe[1]<Q[3])){re.label=oe[1];break}if(oe[0]===6&&re.label<Q[1]){re.label=Q[1],Q=oe;break}if(Q&&re.label<Q[2]){re.label=Q[2],re.ops.push(oe);break}Q[2]&&re.ops.pop(),re.trys.pop();continue}oe=D.call(O,re)}catch(fe){oe=[6,fe],Y=0}finally{q=Q=0}if(5&oe[0])throw oe[1];return{value:oe[0]?oe[1]:void 0,done:!0}}([de,ie])}}},Te=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],y=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const x=function(){function O(D){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(D.width)),this._element.setAttribute("height",String(D.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=D}return Object.defineProperty(O.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),O.prototype.getElement=function(){return this._element},O.prototype.drawQR=function(D){return Me(this,void 0,void 0,function(){var q,Y,Q,ae,re,we,de,ie,oe,fe,me=this;return ye(this,function(Le){switch(Le.label){case 0:return q=D.getModuleCount(),Y=Math.min(this._options.width,this._options.height)-2*this._options.margin,Q=this._options.shape===pe?Y/Math.sqrt(2):Y,ae=Math.floor(Q/q),re={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=D,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Le.sent(),!this._image)return[2];we=this._options,de=we.imageOptions,ie=we.qrOptions,oe=de.imageSize*j[ie.errorCorrectionLevel],fe=Math.floor(oe*q*q),re=function(De){var Ce=De.originalHeight,Qe=De.originalWidth,tt=De.maxHiddenDots,Fe=De.maxHiddenAxisDots,Mt=De.dotSize,rt={x:0,y:0},He={x:0,y:0};if(Ce<=0||Qe<=0||tt<=0||Mt<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var lt=Ce/Qe;return rt.x=Math.floor(Math.sqrt(tt/lt)),rt.x<=0&&(rt.x=1),Fe&&Fe<rt.x&&(rt.x=Fe),rt.x%2==0&&rt.x--,He.x=rt.x*Mt,rt.y=1+2*Math.ceil((rt.x*lt-1)/2),He.y=Math.round(He.x*lt),(rt.y*rt.x>tt||Fe&&Fe<rt.y)&&(Fe&&Fe<rt.y?(rt.y=Fe,rt.y%2==0&&rt.x--):rt.y-=2,He.y=rt.y*Mt,rt.x=1+2*Math.ceil((rt.y/lt-1)/2),He.x=Math.round(He.y/lt)),{height:He.y,width:He.x,hideYDots:rt.y,hideXDots:rt.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:fe,maxHiddenAxisDots:q-14,dotSize:ae}),Le.label=2;case 2:return this.drawBackground(),this.drawDots(function(De,Ce){var Qe,tt,Fe,Mt,rt,He;return!(me._options.imageOptions.hideBackgroundDots&&De>=(q-re.hideXDots)/2&&De<(q+re.hideXDots)/2&&Ce>=(q-re.hideYDots)/2&&Ce<(q+re.hideYDots)/2||!((Qe=Te[De])===null||Qe===void 0)&&Qe[Ce]||!((tt=Te[De-q+7])===null||tt===void 0)&&tt[Ce]||!((Fe=Te[De])===null||Fe===void 0)&&Fe[Ce-q+7]||!((Mt=y[De])===null||Mt===void 0)&&Mt[Ce]||!((rt=y[De-q+7])===null||rt===void 0)&&rt[Ce]||!((He=y[De])===null||He===void 0)&&He[Ce-q+7])}),this.drawCorners(),this._options.image?[4,this.drawImage({width:re.width,height:re.height,count:q,dotSize:ae})]:[3,4];case 3:Le.sent(),Le.label=4;case 4:return[2]}})})},O.prototype.drawBackground=function(){var D,q,Y,Q=this._element,ae=this._options;if(Q){var re=(D=ae.backgroundOptions)===null||D===void 0?void 0:D.gradient,we=(q=ae.backgroundOptions)===null||q===void 0?void 0:q.color;if((re||we)&&this._createColor({options:re,color:we,additionalRotation:0,x:0,y:0,height:ae.height,width:ae.width,name:"background-color"}),(Y=ae.backgroundOptions)===null||Y===void 0?void 0:Y.round){var de=Math.min(ae.width,ae.height),ie=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),ie.setAttribute("x",String((ae.width-de)/2)),ie.setAttribute("y",String((ae.height-de)/2)),ie.setAttribute("width",String(de)),ie.setAttribute("height",String(de)),ie.setAttribute("rx",String(de/2*ae.backgroundOptions.round)),this._backgroundClipPath.appendChild(ie)}}},O.prototype.drawDots=function(D){var q,Y,Q=this;if(!this._qr)throw"QR code is not defined";var ae=this._options,re=this._qr.getModuleCount();if(re>ae.width||re>ae.height)throw"The canvas is too small.";var we=Math.min(ae.width,ae.height)-2*ae.margin,de=ae.shape===pe?we/Math.sqrt(2):we,ie=Math.floor(de/re),oe=Math.floor((ae.width-re*ie)/2),fe=Math.floor((ae.height-re*ie)/2),me=new V({svg:this._element,type:ae.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(q=ae.dotsOptions)===null||q===void 0?void 0:q.gradient,color:ae.dotsOptions.color,additionalRotation:0,x:0,y:0,height:ae.height,width:ae.width,name:"dot-color"});for(var Le=function(Rt){for(var _t=function(xt){return D&&!D(Rt,xt)?"continue":!((Y=De._qr)===null||Y===void 0)&&Y.isDark(Rt,xt)?(me.draw(oe+Rt*ie,fe+xt*ie,ie,function(Tt,at){return!(Rt+Tt<0||xt+at<0||Rt+Tt>=re||xt+at>=re)&&!(D&&!D(Rt+Tt,xt+at))&&!!Q._qr&&Q._qr.isDark(Rt+Tt,xt+at)}),void(me._element&&De._dotsClipPath&&De._dotsClipPath.appendChild(me._element))):"continue"},ut=0;ut<re;ut++)_t(ut)},De=this,Ce=0;Ce<re;Ce++)Le(Ce);if(ae.shape===pe){var Qe=Math.floor((we/ie-re)/2),tt=re+2*Qe,Fe=oe-Qe*ie,Mt=fe-Qe*ie,rt=[],He=Math.floor(tt/2);for(Ce=0;Ce<tt;Ce++){rt[Ce]=[];for(var lt=0;lt<tt;lt++)Ce>=Qe-1&&Ce<=tt-Qe&&lt>=Qe-1&&lt<=tt-Qe||Math.sqrt((Ce-He)*(Ce-He)+(lt-He)*(lt-He))>He?rt[Ce][lt]=0:rt[Ce][lt]=this._qr.isDark(lt-2*Qe<0?lt:lt>=re?lt-2*Qe:lt-Qe,Ce-2*Qe<0?Ce:Ce>=re?Ce-2*Qe:Ce-Qe)?1:0}var mt=function(Rt){for(var _t=function(xt){if(!rt[Rt][xt])return"continue";me.draw(Fe+Rt*ie,Mt+xt*ie,ie,function(Tt,at){var Ct;return!!(!((Ct=rt[Rt+Tt])===null||Ct===void 0)&&Ct[xt+at])}),me._element&&ct._dotsClipPath&&ct._dotsClipPath.appendChild(me._element)},ut=0;ut<tt;ut++)_t(ut)},ct=this;for(Ce=0;Ce<tt;Ce++)mt(Ce)}},O.prototype.drawCorners=function(){var D=this;if(!this._qr)throw"QR code is not defined";var q=this._element,Y=this._options;if(!q)throw"Element code is not defined";var Q=this._qr.getModuleCount(),ae=Math.min(Y.width,Y.height)-2*Y.margin,re=Y.shape===pe?ae/Math.sqrt(2):ae,we=Math.floor(re/Q),de=7*we,ie=3*we,oe=Math.floor((Y.width-Q*we)/2),fe=Math.floor((Y.height-Q*we)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(me){var Le,De,Ce,Qe,tt,Fe,Mt,rt,He,lt,mt,ct,Rt=me[0],_t=me[1],ut=me[2],xt=oe+Rt*we*(Q-7),Tt=fe+_t*we*(Q-7),at=D._dotsClipPath,Ct=D._dotsClipPath;if((!((Le=Y.cornersSquareOptions)===null||Le===void 0)&&Le.gradient||!((De=Y.cornersSquareOptions)===null||De===void 0)&&De.color)&&((at=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Rt+"-"+_t),D._defs.appendChild(at),D._cornersSquareClipPath=D._cornersDotClipPath=Ct=at,D._createColor({options:(Ce=Y.cornersSquareOptions)===null||Ce===void 0?void 0:Ce.gradient,color:(Qe=Y.cornersSquareOptions)===null||Qe===void 0?void 0:Qe.color,additionalRotation:ut,x:xt,y:Tt,height:de,width:de,name:"corners-square-color-"+Rt+"-"+_t})),(tt=Y.cornersSquareOptions)===null||tt===void 0?void 0:tt.type){var At=new X({svg:D._element,type:Y.cornersSquareOptions.type});At.draw(xt,Tt,de,ut),At._element&&at&&at.appendChild(At._element)}else for(var ht=new V({svg:D._element,type:Y.dotsOptions.type}),Qt=function($t){for(var ft=function(Ut){if(!(!((Fe=Te[$t])===null||Fe===void 0)&&Fe[Ut]))return"continue";ht.draw(xt+$t*we,Tt+Ut*we,we,function(gt,Gt){var Ft;return!!(!((Ft=Te[$t+gt])===null||Ft===void 0)&&Ft[Ut+Gt])}),ht._element&&at&&at.appendChild(ht._element)},Vt=0;Vt<Te[$t].length;Vt++)ft(Vt)},Kt=0;Kt<Te.length;Kt++)Qt(Kt);if((!((Mt=Y.cornersDotOptions)===null||Mt===void 0)&&Mt.gradient||!((rt=Y.cornersDotOptions)===null||rt===void 0)&&rt.color)&&((Ct=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Rt+"-"+_t),D._defs.appendChild(Ct),D._cornersDotClipPath=Ct,D._createColor({options:(He=Y.cornersDotOptions)===null||He===void 0?void 0:He.gradient,color:(lt=Y.cornersDotOptions)===null||lt===void 0?void 0:lt.color,additionalRotation:ut,x:xt+2*we,y:Tt+2*we,height:ie,width:ie,name:"corners-dot-color-"+Rt+"-"+_t})),(mt=Y.cornersDotOptions)===null||mt===void 0?void 0:mt.type){var vt=new le({svg:D._element,type:Y.cornersDotOptions.type});vt.draw(xt+2*we,Tt+2*we,ie,ut),vt._element&&Ct&&Ct.appendChild(vt._element)}else{ht=new V({svg:D._element,type:Y.dotsOptions.type});var sn=function($t){for(var ft=function(Ut){if(!(!((ct=y[$t])===null||ct===void 0)&&ct[Ut]))return"continue";ht.draw(xt+$t*we,Tt+Ut*we,we,function(gt,Gt){var Ft;return!!(!((Ft=y[$t+gt])===null||Ft===void 0)&&Ft[Ut+Gt])}),ht._element&&Ct&&Ct.appendChild(ht._element)},Vt=0;Vt<y[$t].length;Vt++)ft(Vt)};for(Kt=0;Kt<y.length;Kt++)sn(Kt)}})},O.prototype.loadImage=function(){var D=this;return new Promise(function(q,Y){var Q=D._options,ae=new Image;if(!Q.image)return Y("Image is not defined");typeof Q.imageOptions.crossOrigin=="string"&&(ae.crossOrigin=Q.imageOptions.crossOrigin),D._image=ae,ae.onload=function(){q()},ae.src=Q.image})},O.prototype.drawImage=function(D){var q=D.width,Y=D.height,Q=D.count,ae=D.dotSize;return Me(this,void 0,void 0,function(){var re,we,de,ie,oe,fe,me,Le,De;return ye(this,function(Ce){switch(Ce.label){case 0:return re=this._options,we=Math.floor((re.width-Q*ae)/2),de=Math.floor((re.height-Q*ae)/2),ie=we+re.imageOptions.margin+(Q*ae-q)/2,oe=de+re.imageOptions.margin+(Q*ae-Y)/2,fe=q-2*re.imageOptions.margin,me=Y-2*re.imageOptions.margin,(Le=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(ie)),Le.setAttribute("y",String(oe)),Le.setAttribute("width",fe+"px"),Le.setAttribute("height",me+"px"),[4,I(re.image||"")];case 1:return De=Ce.sent(),Le.setAttribute("href",De||""),this._element.appendChild(Le),[2]}})})},O.prototype._createColor=function(D){var q=D.options,Y=D.color,Q=D.additionalRotation,ae=D.x,re=D.y,we=D.height,de=D.width,ie=D.name,oe=de>we?de:we,fe=document.createElementNS("http://www.w3.org/2000/svg","rect");if(fe.setAttribute("x",String(ae)),fe.setAttribute("y",String(re)),fe.setAttribute("height",String(we)),fe.setAttribute("width",String(de)),fe.setAttribute("clip-path","url('#clip-path-"+ie+"')"),q){var me;if(q.type==="radial")(me=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",ie),me.setAttribute("gradientUnits","userSpaceOnUse"),me.setAttribute("fx",String(ae+de/2)),me.setAttribute("fy",String(re+we/2)),me.setAttribute("cx",String(ae+de/2)),me.setAttribute("cy",String(re+we/2)),me.setAttribute("r",String(oe/2));else{var Le=((q.rotation||0)+Q)%(2*Math.PI),De=(Le+2*Math.PI)%(2*Math.PI),Ce=ae+de/2,Qe=re+we/2,tt=ae+de/2,Fe=re+we/2;De>=0&&De<=.25*Math.PI||De>1.75*Math.PI&&De<=2*Math.PI?(Ce-=de/2,Qe-=we/2*Math.tan(Le),tt+=de/2,Fe+=we/2*Math.tan(Le)):De>.25*Math.PI&&De<=.75*Math.PI?(Qe-=we/2,Ce-=de/2/Math.tan(Le),Fe+=we/2,tt+=de/2/Math.tan(Le)):De>.75*Math.PI&&De<=1.25*Math.PI?(Ce+=de/2,Qe+=we/2*Math.tan(Le),tt-=de/2,Fe-=we/2*Math.tan(Le)):De>1.25*Math.PI&&De<=1.75*Math.PI&&(Qe+=we/2,Ce+=de/2/Math.tan(Le),Fe-=we/2,tt-=de/2/Math.tan(Le)),(me=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",ie),me.setAttribute("gradientUnits","userSpaceOnUse"),me.setAttribute("x1",String(Math.round(Ce))),me.setAttribute("y1",String(Math.round(Qe))),me.setAttribute("x2",String(Math.round(tt))),me.setAttribute("y2",String(Math.round(Fe)))}q.colorStops.forEach(function(Mt){var rt=Mt.offset,He=Mt.color,lt=document.createElementNS("http://www.w3.org/2000/svg","stop");lt.setAttribute("offset",100*rt+"%"),lt.setAttribute("stop-color",He),me.appendChild(lt)}),fe.setAttribute("fill","url('#"+ie+"')"),this._defs.appendChild(me)}else Y&&fe.setAttribute("fill",Y);this._element.appendChild(fe)},O}(),d="canvas";for(var p={},h=0;h<=40;h++)p[h]=h;const f={type:d,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:p[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var l=function(){return(l=Object.assign||function(O){for(var D,q=1,Y=arguments.length;q<Y;q++)for(var Q in D=arguments[q])Object.prototype.hasOwnProperty.call(D,Q)&&(O[Q]=D[Q]);return O}).apply(this,arguments)};function b(O){var D=l({},O);if(!D.colorStops||!D.colorStops.length)throw"Field 'colorStops' is required in gradient";return D.rotation?D.rotation=Number(D.rotation):D.rotation=0,D.colorStops=D.colorStops.map(function(q){return l(l({},q),{offset:Number(q.offset)})}),D}function C(O){var D=l({},O);return D.width=Number(D.width),D.height=Number(D.height),D.margin=Number(D.margin),D.imageOptions=l(l({},D.imageOptions),{hideBackgroundDots:!!D.imageOptions.hideBackgroundDots,imageSize:Number(D.imageOptions.imageSize),margin:Number(D.imageOptions.margin)}),D.margin>Math.min(D.width,D.height)&&(D.margin=Math.min(D.width,D.height)),D.dotsOptions=l({},D.dotsOptions),D.dotsOptions.gradient&&(D.dotsOptions.gradient=b(D.dotsOptions.gradient)),D.cornersSquareOptions&&(D.cornersSquareOptions=l({},D.cornersSquareOptions),D.cornersSquareOptions.gradient&&(D.cornersSquareOptions.gradient=b(D.cornersSquareOptions.gradient))),D.cornersDotOptions&&(D.cornersDotOptions=l({},D.cornersDotOptions),D.cornersDotOptions.gradient&&(D.cornersDotOptions.gradient=b(D.cornersDotOptions.gradient))),D.backgroundOptions&&(D.backgroundOptions=l({},D.backgroundOptions),D.backgroundOptions.gradient&&(D.backgroundOptions.gradient=b(D.backgroundOptions.gradient))),D}var R=g(192),L=g.n(R),B=function(O,D,q,Y){return new(q||(q=Promise))(function(Q,ae){function re(ie){try{de(Y.next(ie))}catch(oe){ae(oe)}}function we(ie){try{de(Y.throw(ie))}catch(oe){ae(oe)}}function de(ie){var oe;ie.done?Q(ie.value):(oe=ie.value,oe instanceof q?oe:new q(function(fe){fe(oe)})).then(re,we)}de((Y=Y.apply(O,[])).next())})},K=function(O,D){var q,Y,Q,ae,re={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return ae={next:we(0),throw:we(1),return:we(2)},typeof Symbol=="function"&&(ae[Symbol.iterator]=function(){return this}),ae;function we(de){return function(ie){return function(oe){if(q)throw new TypeError("Generator is already executing.");for(;re;)try{if(q=1,Y&&(Q=2&oe[0]?Y.return:oe[0]?Y.throw||((Q=Y.return)&&Q.call(Y),0):Y.next)&&!(Q=Q.call(Y,oe[1])).done)return Q;switch(Y=0,Q&&(oe=[2&oe[0],Q.value]),oe[0]){case 0:case 1:Q=oe;break;case 4:return re.label++,{value:oe[1],done:!1};case 5:re.label++,Y=oe[1],oe=[0];continue;case 7:oe=re.ops.pop(),re.trys.pop();continue;default:if(!((Q=(Q=re.trys).length>0&&Q[Q.length-1])||oe[0]!==6&&oe[0]!==2)){re=0;continue}if(oe[0]===3&&(!Q||oe[1]>Q[0]&&oe[1]<Q[3])){re.label=oe[1];break}if(oe[0]===6&&re.label<Q[1]){re.label=Q[1],Q=oe;break}if(Q&&re.label<Q[2]){re.label=Q[2],re.ops.push(oe);break}Q[2]&&re.ops.pop(),re.trys.pop();continue}oe=D.call(O,re)}catch(fe){oe=[6,fe],Y=0}finally{q=Q=0}if(5&oe[0])throw oe[1];return{value:oe[0]?oe[1]:void 0,done:!0}}([de,ie])}}};const z=function(){function O(D){this._options=D?C(E(f,D)):f,this.update()}return O._clearContainer=function(D){D&&(D.innerHTML="")},O.prototype._setupSvg=function(){var D=this;if(this._qr){var q=new x(this._options);this._svg=q.getElement(),this._svgDrawingPromise=q.drawQR(this._qr).then(function(){var Y;D._svg&&((Y=D._extension)===null||Y===void 0||Y.call(D,q.getElement(),D._options))})}},O.prototype._setupCanvas=function(){var D,q=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=(D=this._svgDrawingPromise)===null||D===void 0?void 0:D.then(function(){if(q._svg){var Y=q._svg,Q=new XMLSerializer().serializeToString(Y),ae="data:image/svg+xml;base64,"+btoa(Q),re=new Image;return new Promise(function(we){re.onload=function(){var de,ie;(ie=(de=q._canvas)===null||de===void 0?void 0:de.getContext("2d"))===null||ie===void 0||ie.drawImage(re,0,0),we()},re.src=ae})}}))},O.prototype._getElement=function(D){return D===void 0&&(D="png"),B(this,void 0,void 0,function(){return K(this,function(q){switch(q.label){case 0:if(!this._qr)throw"QR code is empty";return D.toLowerCase()!=="svg"?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return q.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return q.sent(),[2,this._canvas]}})})},O.prototype.update=function(D){O._clearContainer(this._container),this._options=D?C(E(this._options,D)):this._options,this._options.data&&(this._qr=L()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(q){switch(!0){case/^[0-9]*$/.test(q):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(q):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===d?this._setupCanvas():this._setupSvg(),this.append(this._container))},O.prototype.append=function(D){if(D){if(typeof D.appendChild!="function")throw"Container should be a single DOM node";this._options.type===d?this._canvas&&D.appendChild(this._canvas):this._svg&&D.appendChild(this._svg),this._container=D}},O.prototype.applyExtension=function(D){if(!D)throw"Extension function should be defined.";this._extension=D,this.update()},O.prototype.deleteExtension=function(){this._extension=void 0,this.update()},O.prototype.getRawData=function(D){return D===void 0&&(D="png"),B(this,void 0,void 0,function(){var q,Y,Q;return K(this,function(ae){switch(ae.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(D)];case 1:return(q=ae.sent())?D.toLowerCase()==="svg"?(Y=new XMLSerializer,Q=Y.serializeToString(q),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
216
+ `+Q],{type:"image/svg+xml"})]):[2,new Promise(function(re){return q.toBlob(re,"image/"+D,1)})]:[2,null]}})})},O.prototype.download=function(D){return B(this,void 0,void 0,function(){var q,Y,Q,ae,re;return K(this,function(we){switch(we.label){case 0:if(!this._qr)throw"QR code is empty";return q="png",Y="qr",typeof D=="string"?(q=D,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof D=="object"&&D!==null&&(D.name&&(Y=D.name),D.extension&&(q=D.extension)),[4,this._getElement(q)];case 1:return(Q=we.sent())?(q.toLowerCase()==="svg"?(ae=new XMLSerializer,re=`<?xml version="1.0" standalone="no"?>\r
217
+ `+(re=ae.serializeToString(Q)),T("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(re),Y+".svg")):T(Q.toDataURL("image/"+q),Y+"."+q),[2]):[2]}})})},O}()}},r={};function o(i){if(r[i])return r[i].exports;var c=r[i]={exports:{}};return n[i](c,c.exports,o),c.exports}return o.n=i=>{var c=i&&i.__esModule?()=>i.default:()=>i;return o.d(c,{a:c}),c},o.d=(i,c)=>{for(var g in c)o.o(c,g)&&!o.o(i,g)&&Object.defineProperty(i,g,{enumerable:!0,get:c[g]})},o.o=(i,c)=>Object.prototype.hasOwnProperty.call(i,c),o(676)})().default}(dR)),dR.exports}(function(e,t){(function(n,r,o){var i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA2CAYAAACbZ/oUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAb1SURBVHgB3Vrdcds4EN4FJVo/fnAqOKWCOBVEqcBKBbbeLvLNWFeBnQpiz+SUe4tTwckVWK4gTgVRB9ZD9BNaBG4XJGiIon4oUYrtb0YiCIIEFvuD3QUQLPxslI8cUG98wJvdVv8SnihUc29v5HknVKyAKz8Uz0dd8wxNYfhnoaKE+GG916WHHRDya/HTqAOPHJrI8WgflHOqlKqaekTsFP/pv43uTYG5K0B9CasvENSB4hkK0JVKXTg7qm3P1mPA8K9CVUmnpkAdEjF7XMdEEtE9Ktb0vStfmnEL86KDcGgal1r9Jkj5Vin4Gj6uCMSPyhM/hsfla54cnlH4TeC+h43S6eC49E1JcU01JyGxPVDqb+boL9etR+1/Yc2UNYdtcUbAetHS32GjcETzcmpxO/gIfZxmq70tkWci+96o5qBzaItsBMTvUnlHu637W1PFzOG2tlhrgm1xttkfvUgTIlGcYSgFCaD2eIWuf561yCeJ7DTwQktl4rssAQDE8Rcvznu9gMNmJgAui61BfVbng+NiExSewsyOA5XwSRVc8G591+nBqvDEoQRo4ry+eKKFrM+SsDuSih3P+6HHS6Je+jw8R1ucSWfflT8P2jAH3B4c50uiWG0VeFF082dIXJvXiqT3XLCOh2KN/felGonqfzxbxN2XsCT6jdIZvXMKW8YirsYRF2uRR+zyDenId0iBcmtwhlK+1APYGvCi4Lqv0xjJoK3qUrHHOizcVp+tGokF/gEpUfx3pKWCLPYH2CB4UlHIt2yYFolwHFoFASsk0tp663U4vNm/W3Ft3TC322m5aoNWl319VeqGr5pgsqpanN1fXhVWxAa43XMEvCu1Bu/ScjUG7XQIITv6GtT5mt3E6SqsiSy4zRaV/IHXO5/mrxhLQcArvoxyhQeRdiQFCRrqADIAc3tEYijJyEA6RK5hFg4M6y8qYJG+fRFKiTADDC1Z5S4jH5k72GUjQ8ZmKW6Ta8hcZecAMoIvnKr+NBFs6qLgQSnUSp337muQIdjYKKvDObjO2i3FyDkKaGNEBFM4qAfFCQDICCxS7LZCaDjmQqkmR0CQIcih0rQ45OaaugeCnYBg4kYVMsDPRn6fXNbrNC4o9X3GEzRs8tq5HrxGmXW3Qr+ea0VQEcGhFWPFrqzb4ahRPBGQ/waxkHIZ8ARR3H3t0YTBGvBAGyvjY0SICNahU/jQDpjTIAzMv5B1XtfwVMY0YeuIOAUMmgYV+hgP9RaMA0KEv4KU0Prqed9ILI8gI7CID47LH1dcObT+ksR07MrcZBt2QAR3xLNTX/RFkzjjAF3ODdDXABkzimlrP98XL1wcd2x9nAXW3zEoPRaxIyfao30TBsx3XM7B/eukj3O45fu47whxQP7p/kaInANOLTmUTR1ThsVx/U7SUjZ4T4kKysElhbwTHGY9HjSKXY4uxipXBbi/ZQPmk047JOaUgagpCXsCtahMztaWwBPM42AdJeMGg0ZJp5OlgKtSzu2w343EDB5fUsg7NWZKCFyGuatuWFWBpwQ2vCR5uhymdezHIt5eOPIyLFbgqRHLMMQSkPLo8cdTBDtyjcTb40IvSb+nCDYL9jPAHhvYeOU0h2fnnp8ceLmM100QrFO2vz39miXUFPMmPa0wfnxGmBLrCYKzEmfec9KBP/3SvKcdBcodI8h6VglBKUU11kcA28taA20acN1OupltnGVeXnYjLyW6JcvbijicSaaDkvojGE26mugvlcUM3MAHYsPRdRWsjYot1rmHb6v1CSZHn9y9JkU45O3ADQq/DWPeGlniVVo3ORgZjL2qkHBg3FjIAKFYd7isRTojcX60sPeH9dyvk4B/CmAbYrI4RtgyzVQ+RkhPHPE13FvKLlP5WEErQJAQ4D8J4gqeOUwyPthqYWv63EHZEb5EjgdlDthKbzVdsy3YVjpahykjcoWbjZR64S8JFdgglJSRyj4QjLKDIDZDMG2UFfP56qx9XvscxiaQo2ynKUc+0L1b2Jge0zrYnrepbZ3DyBzssiZutYQ7Dx3YACi/2V3cClMdqkmBjn0z4eWacxBZg1aB7qI2ZEM2kkuTZJvs+4m8NJ+DIF1Ks5+j96N4omjmDmeFcSjFSb9Rqs77EIZbI4nPSPJ0H4hv0mZkvB23Q2uQ3c8kFi5PSAs4bZ5zJFSgHUejm2EAwuc1M3ZTJ89R6ogq8P1rtCHwZl6sHD8rHQw/BnNUz6riA5ltH+RNmQzbohM1GZ7Q41M89UUHW/Q5LAFVBYLPp1TBYlY8oRDUJXxACadJi1dXkjnfXWLzKnkQtBm+4vqqjWfer69yBIKXOJPW4RNFU9+GDWIFbvMpng9ZHmyJY+P7YdqpUOIjrU1z3VbkM58rcjUN/geU/3c0eMPNdAAAAABJRU5ErkJggg==",c=function(){return c=Object.assign||function(Te){for(var y,x=1,d=arguments.length;x<d;x++)for(var p in y=arguments[x])Object.prototype.hasOwnProperty.call(y,p)&&(Te[p]=y[p]);return Te},c.apply(this,arguments)};typeof SuppressedError=="function"&&SuppressedError;var g={fontFamily:"Roboto, sans-serif"},_=function(Te){var y=Te.children,x=Te.className;return r.createElement("div",{style:g,className:x},y)},w={flexContainer:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row"},flexItem:{flex:1,justifyContent:"center",alignItems:"center"},flexItem11:{flex:11,justifyContent:"center",alignItems:"center"},flexItem1:{flex:1,justifyContent:"center",alignItems:"center"},tab:{padding:8,cursor:"pointer",backgroundColor:"#F2F4F6",fontSize:12,textAlign:"center",color:"#24292E"},tabcontainer:{padding:"4px",backgroundColor:"#F2F4F6",borderRadius:"8px",marginBottom:30,marginTop:30},tabactive:{backgroundColor:"white",WebkitTransition:"background-color 300ms linear",msTransition:"background-color 300ms linear",transition:"background-color 300ms linear",borderRadius:"8px"},item:{fontSize:"12px",marginBottom:16,borderRadius:"8px",padding:"10px",border:"2px #F2F4F6 solid",color:"#24292E"},extensionLabel:{fontsStyle:"normal",fontWeight:"bold",fontSize:14,textAlign:"center",color:"#24272A"},notice:{fontSize:12,marginLeft:10,marginRight:10,color:"grey"},button:{marginTop:"41.5px",marginBottom:"20px",width:"100%",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",padding:"12px 20px",background:"#037DD6",borderRadius:"32px",color:"white",border:"0",fontSize:"14px",cursor:"pointer"},backdrop:{visibility:"visible",position:"fixed",top:"0",left:"0",right:"0",bottom:"0",width:"100%",zIndex:99998,background:"rgba(0, 0, 0, 0.87)",opacity:.3},modal:{visibility:"visible",position:"fixed",left:"50%",transform:"translate(-50%, -50%)",zIndex:99999,background:"#fff",padding:"20px",borderRadius:"8px",top:"50%",maxWidth:"100%",width:460,minWidth:300,boxShadow:"rgba(0, 0, 0, 0.2) 0px 11px 15px -7px, rgba(0, 0, 0, 0.14) 0px 24px 38px 3px, rgba(0, 0, 0, 0.12) 0px 9px 46px 8px",WebkitFontSmoothing:"antialiased"},closeButton:{color:"#BBC0C5",cursor:"pointer"},closeButtonContainer:{},logoContainer:{marginHorizontal:24,marginTop:24,display:"flex",alignItems:"center",justifyContent:"center"},connectMobileText:{fontSize:14,color:"black",marginTop:28,marginBottom:28,lineHeight:2},blue:{color:"#037DD6",fontWeight:700},installExtensionText:{marginLeft:10},center:{display:"flex",alignItems:"center",justifyContent:"center"},right:{display:"flex",alignItems:"center",justifyContent:"right"}},S=function(Te){var y=Te.Icon,x=Te.text;return r.createElement("div",{style:c(c({padding:6},w.flexContainer),{flexDirection:"row"})},r.createElement("div",{style:w.flexItem1},r.createElement(y,null)),r.createElement("div",{style:w.flexItem11},r.createElement("span",{style:{lineHeight:"2",color:"black"}},x)))},E=function(){return r.createElement("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("rect",{width:"16",height:"16",fill:"white"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.40554 2.40554C2.94627 1.86482 3.82296 1.86482 4.36369 2.40554L8 6.04186L11.6363 2.40554C12.177 1.86482 13.0537 1.86482 13.5945 2.40554C14.1352 2.94627 14.1352 3.82296 13.5945 4.36369L9.95814 8L13.5945 11.6363C14.1352 12.177 14.1352 13.0537 13.5945 13.5945C13.0537 14.1352 12.177 14.1352 11.6363 13.5945L8 9.95814L4.36369 13.5945C3.82296 14.1352 2.94627 14.1352 2.40554 13.5945C1.86482 13.0537 1.86482 12.177 2.40554 11.6363L6.04186 8L2.40554 4.36369C1.86482 3.82296 1.86482 2.94627 2.40554 2.40554Z",fill:"#BBC0C5"}))},T=function(){return r.createElement("svg",{width:"20",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M14.44 0.0999756C12.63 0.0999756 11.01 0.979976 10 2.32998C8.99 0.979976 7.37 0.0999756 5.56 0.0999756C2.49 0.0999756 0 2.59998 0 5.68998C0 6.87998 0.19 7.97998 0.52 8.99998C2.1 14 6.97 16.99 9.38 17.81C9.72 17.93 10.28 17.93 10.62 17.81C13.03 16.99 17.9 14 19.48 8.99998C19.81 7.97998 20 6.87998 20 5.68998C20 2.59998 17.51 0.0999756 14.44 0.0999756Z",fill:"#037DD6"}))},I=function(){return r.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M16.4405 8.8999C20.0405 9.2099 21.5105 11.0599 21.5105 15.1099V15.2399C21.5105 19.7099 19.7205 21.4999 15.2505 21.4999H8.74047C4.27047 21.4999 2.48047 19.7099 2.48047 15.2399V15.1099C2.48047 11.0899 3.93047 9.2399 7.47047 8.9099",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M12 2V14.88",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M15.3504 12.6499L12.0004 15.9999L8.65039 12.6499",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))},j=function(){return r.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M16.28 7.53V6.28C16.28 3.58 15.63 0 10 0C4.37 0 3.72 3.58 3.72 6.28V7.53C0.92 7.88 0 9.3 0 12.79V14.65C0 18.75 1.25 20 5.35 20H14.65C18.75 20 20 18.75 20 14.65V12.79C20 9.3 19.08 7.88 16.28 7.53ZM10 16.74C8.33 16.74 6.98 15.38 6.98 13.72C6.98 12.05 8.34 10.7 10 10.7C11.66 10.7 13.02 12.06 13.02 13.72C13.02 15.39 11.67 16.74 10 16.74ZM5.35 7.44C5.27 7.44 5.2 7.44 5.12 7.44V6.28C5.12 3.35 5.95 1.4 10 1.4C14.05 1.4 14.88 3.35 14.88 6.28V7.45C14.8 7.45 14.73 7.45 14.65 7.45H5.35V7.44Z",fill:"#037DD6"}))},H=function(){return r.createElement("svg",{width:"273",height:"51",viewBox:"0 0 273 51",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M240.882 25.9263C239.472 24.997 237.916 24.3361 236.443 23.5101C235.489 22.9731 234.473 22.4982 233.643 21.8167C232.233 20.6602 232.524 18.3885 233.996 17.3973C236.112 15.993 239.617 16.7777 239.99 19.6483C239.99 19.7102 240.052 19.7515 240.114 19.7515H243.308C243.391 19.7515 243.454 19.6896 243.433 19.607C243.267 17.6244 242.5 15.9723 241.089 14.9191C239.741 13.9072 238.206 13.3702 236.568 13.3702C228.127 13.3702 227.359 22.271 231.901 25.0796C232.42 25.41 236.879 27.6404 238.455 28.611C240.032 29.5816 240.529 31.3576 239.845 32.7619C239.223 34.0423 237.605 34.9303 235.987 34.8271C234.224 34.7238 232.855 33.7738 232.378 32.2869C232.295 32.0185 232.254 31.5022 232.254 31.275C232.254 31.2131 232.192 31.1511 232.129 31.1511H228.666C228.604 31.1511 228.541 31.2131 228.541 31.275C228.541 33.7738 229.164 35.1575 230.864 36.4172C232.461 37.615 234.203 38.1106 236.008 38.1106C240.737 38.1106 243.184 35.4466 243.682 32.6793C244.117 29.974 243.308 27.5371 240.882 25.9263Z",fill:"#24292E"}),r.createElement("path",{d:"M90.4943 13.8246H88.9595H87.2795C87.2173 13.8246 87.1758 13.8659 87.1551 13.9072L84.3137 23.2416C84.2722 23.3655 84.1063 23.3655 84.0648 23.2416L81.2234 13.9072C81.2026 13.8452 81.1612 13.8246 81.0989 13.8246H79.419H77.8842H75.8102C75.748 13.8246 75.6857 13.8865 75.6857 13.9485V37.7802C75.6857 37.8422 75.748 37.9041 75.8102 37.9041H79.2738C79.336 37.9041 79.3982 37.8422 79.3982 37.7802V19.6689C79.3982 19.5244 79.6056 19.5037 79.6471 19.6276L82.5093 29.024L82.7167 29.6849C82.7374 29.7468 82.7789 29.7675 82.8411 29.7675H85.4959C85.5581 29.7675 85.5996 29.7262 85.6203 29.6849L85.8277 29.024L88.6899 19.6276C88.7313 19.4831 88.9387 19.5244 88.9387 19.6689V37.7802C88.9387 37.8422 89.001 37.9041 89.0632 37.9041H92.5268C92.589 37.9041 92.6513 37.8422 92.6513 37.7802V13.9485C92.6513 13.8865 92.589 13.8246 92.5268 13.8246H90.4943Z",fill:"#24292E"}),r.createElement("path",{d:"M187.849 13.8246C187.787 13.8246 187.745 13.8659 187.725 13.9072L184.883 23.2416C184.842 23.3655 184.676 23.3655 184.634 23.2416L181.793 13.9072C181.772 13.8452 181.731 13.8246 181.668 13.8246H176.4C176.338 13.8246 176.276 13.8865 176.276 13.9485V37.7802C176.276 37.8422 176.338 37.9041 176.4 37.9041H179.864C179.926 37.9041 179.988 37.8422 179.988 37.7802V19.6689C179.988 19.5244 180.196 19.5037 180.237 19.6276L183.099 29.024L183.307 29.6849C183.328 29.7468 183.369 29.7675 183.431 29.7675H186.086C186.148 29.7675 186.19 29.7262 186.211 29.6849L186.418 29.024L189.28 19.6276C189.322 19.4831 189.529 19.5244 189.529 19.6689V37.7802C189.529 37.8422 189.591 37.9041 189.653 37.9041H193.117C193.179 37.9041 193.241 37.8422 193.241 37.7802V13.9485C193.241 13.8865 193.179 13.8246 193.117 13.8246H187.849Z",fill:"#24292E"}),r.createElement("path",{d:"M143.174 13.8246H136.724H133.261H126.81C126.748 13.8246 126.686 13.8865 126.686 13.9485V16.9223C126.686 16.9843 126.748 17.0462 126.81 17.0462H133.136V37.7802C133.136 37.8422 133.198 37.9041 133.261 37.9041H136.724C136.786 37.9041 136.849 37.8422 136.849 37.7802V17.0462H143.174C143.237 17.0462 143.299 16.9843 143.299 16.9223V13.9485C143.299 13.8865 143.257 13.8246 143.174 13.8246Z",fill:"#24292E"}),r.createElement("path",{d:"M163.604 37.9041H166.756C166.839 37.9041 166.901 37.8215 166.881 37.7389L160.368 13.8245C160.347 13.7626 160.306 13.7419 160.244 13.7419H159.041H156.925H155.722C155.66 13.7419 155.619 13.7832 155.598 13.8245L149.085 37.7389C149.065 37.8215 149.127 37.9041 149.21 37.9041H152.362C152.425 37.9041 152.466 37.8628 152.487 37.8215L154.374 30.862C154.395 30.8 154.436 30.7794 154.499 30.7794H161.467C161.53 30.7794 161.571 30.8207 161.592 30.862L163.479 37.8215C163.5 37.8628 163.562 37.9041 163.604 37.9041ZM155.328 27.3719L157.859 18.0581C157.9 17.9342 158.066 17.9342 158.107 18.0581L160.638 27.3719C160.659 27.4545 160.596 27.5371 160.513 27.5371H155.453C155.37 27.5371 155.308 27.4545 155.328 27.3719Z",fill:"#24292E"}),r.createElement("path",{d:"M217.362 37.9041H220.515C220.598 37.9041 220.66 37.8215 220.639 37.7389L214.127 13.8245C214.106 13.7626 214.065 13.7419 214.002 13.7419H212.8H210.684H209.481C209.419 13.7419 209.377 13.7832 209.357 13.8245L202.844 37.7389C202.823 37.8215 202.886 37.9041 202.969 37.9041H206.121C206.183 37.9041 206.225 37.8628 206.246 37.8215L208.133 30.862C208.154 30.8 208.195 30.7794 208.257 30.7794H215.226C215.288 30.7794 215.33 30.8207 215.351 30.862L217.238 37.8215C217.259 37.8628 217.3 37.9041 217.362 37.9041ZM209.087 27.3719L211.617 18.0581C211.659 17.9342 211.825 17.9342 211.866 18.0581L214.397 27.3719C214.417 27.4545 214.355 27.5371 214.272 27.5371H209.211C209.129 27.5371 209.066 27.4545 209.087 27.3719Z",fill:"#24292E"}),r.createElement("path",{d:"M106.713 34.3727V26.9795C106.713 26.9176 106.775 26.8556 106.837 26.8556H116.067C116.129 26.8556 116.191 26.7936 116.191 26.7317V23.7579C116.191 23.6959 116.129 23.634 116.067 23.634H106.837C106.775 23.634 106.713 23.572 106.713 23.5101V17.1907C106.713 17.1288 106.775 17.0668 106.837 17.0668H117.332C117.394 17.0668 117.457 17.0049 117.457 16.9429V13.9691C117.457 13.9072 117.394 13.8452 117.332 13.8452H106.713H103.125C103.063 13.8452 103.001 13.9072 103.001 13.9691V17.0668V23.6546V26.8763V34.5173V37.7802C103.001 37.8422 103.063 37.9041 103.125 37.9041H106.713H117.768C117.83 37.9041 117.892 37.8422 117.892 37.7802V34.6412C117.892 34.5792 117.83 34.5173 117.768 34.5173H106.817C106.755 34.4966 106.713 34.4553 106.713 34.3727Z",fill:"#24292E"}),r.createElement("path",{d:"M272.532 37.6976L260.544 25.3687C260.502 25.3274 260.502 25.2448 260.544 25.2035L271.329 14.0517C271.412 13.9691 271.349 13.8452 271.246 13.8452H266.828C266.787 13.8452 266.766 13.8659 266.745 13.8865L257.599 23.3449C257.516 23.4275 257.391 23.3655 257.391 23.2623V13.9691C257.391 13.9072 257.329 13.8452 257.267 13.8452H253.803C253.741 13.8452 253.679 13.9072 253.679 13.9691V37.8009C253.679 37.8628 253.741 37.9248 253.803 37.9248H257.267C257.329 37.9248 257.391 37.8628 257.391 37.8009V27.3099C257.391 27.2067 257.536 27.1447 257.599 27.2273L267.969 37.8835C267.989 37.9041 268.031 37.9248 268.052 37.9248H272.469C272.552 37.9041 272.615 37.7596 272.532 37.6976Z",fill:"#24292E"}),r.createElement("path",{d:"M52.021 1L31.0526 16.4886L34.9517 7.36063L52.021 1Z",fill:"#E17726",stroke:"#E17726",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M3.65491 1L24.4366 16.6331L20.7241 7.36063L3.65491 1Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M44.4716 36.9127L38.8925 45.4211L50.8389 48.7047L54.261 37.0986L44.4716 36.9127Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M1.43555 37.0986L4.83695 48.7047L16.7626 45.4211L11.2042 36.9127L1.43555 37.0986Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M16.1197 22.5395L12.8013 27.5371L24.6232 28.074L24.2292 15.3734L16.1197 22.5395Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M39.5561 22.5394L31.3222 15.2288L31.0526 28.0739L42.8746 27.537L39.5561 22.5394Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M16.7626 45.4212L23.918 41.9724L17.7582 37.1813L16.7626 45.4212Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M31.7578 41.9724L38.8925 45.4212L37.9177 37.1813L31.7578 41.9724Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M38.8923 45.4212L31.7577 41.9724L32.3384 46.5983L32.2762 48.5602L38.8923 45.4212Z",fill:"#D5BFB2",stroke:"#D5BFB2",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M16.7625 45.4212L23.3994 48.5602L23.3579 46.5983L23.9179 41.9724L16.7625 45.4212Z",fill:"#D5BFB2",stroke:"#D5BFB2",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M23.5239 34.1249L17.5922 32.3902L21.7818 30.4696L23.5239 34.1249Z",fill:"#233447",stroke:"#233447",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M32.1517 34.1249L33.8939 30.4696L38.1042 32.3902L32.1517 34.1249Z",fill:"#233447",stroke:"#233447",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M16.7626 45.4212L17.7996 36.9128L11.2042 37.0987L16.7626 45.4212Z",fill:"#CC6228",stroke:"#CC6228",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M37.8761 36.9128L38.8924 45.4212L44.4715 37.0987L37.8761 36.9128Z",fill:"#CC6228",stroke:"#CC6228",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M42.8745 27.5371L31.0526 28.074L32.1518 34.1249L33.894 30.4696L38.1042 32.3902L42.8745 27.5371Z",fill:"#CC6228",stroke:"#CC6228",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M17.5922 32.3902L21.7817 30.4696L23.5239 34.1249L24.6232 28.074L12.8012 27.5371L17.5922 32.3902Z",fill:"#CC6228",stroke:"#CC6228",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M12.8013 27.5371L17.7582 37.1813L17.5923 32.3902L12.8013 27.5371Z",fill:"#E27525",stroke:"#E27525",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M38.1044 32.3902L37.9177 37.1813L42.8746 27.5371L38.1044 32.3902Z",fill:"#E27525",stroke:"#E27525",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M24.6232 28.0741L23.524 34.125L24.9136 41.2703L25.2247 31.8533L24.6232 28.0741Z",fill:"#E27525",stroke:"#E27525",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M31.0526 28.0741L30.4719 31.8327L30.7623 41.2703L32.1519 34.125L31.0526 28.0741Z",fill:"#E27525",stroke:"#E27525",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M32.1519 34.1249L30.7623 41.2702L31.7578 41.9724L37.9177 37.1813L38.1043 32.3901L32.1519 34.1249Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M17.5922 32.3901L17.7581 37.1813L23.918 41.9724L24.9135 41.2702L23.5239 34.1249L17.5922 32.3901Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M32.2763 48.5602L32.3385 46.5983L31.7993 46.1439H23.8765L23.358 46.5983L23.3995 48.5602L16.7626 45.4211L19.0855 47.3211L23.7935 50.5633H31.8615L36.5903 47.3211L38.8924 45.4211L32.2763 48.5602Z",fill:"#C0AC9D",stroke:"#C0AC9D",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M31.7578 41.9724L30.7622 41.2703H24.9135L23.918 41.9724L23.358 46.5983L23.8765 46.144H31.7993L32.3385 46.5983L31.7578 41.9724Z",fill:"#24292E",stroke:"#24292E",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M52.9128 17.5005L54.6757 8.95079L52.021 1L31.7578 15.9723L39.5561 22.5394L50.5692 25.7404L52.9958 22.9111L51.938 22.147L53.618 20.6188L52.3321 19.6276L54.0121 18.3472L52.9128 17.5005Z",fill:"#763E1A",stroke:"#763E1A",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M1 8.95079L2.78366 17.5005L1.64295 18.3472L3.34365 19.6276L2.05775 20.6188L3.73771 22.147L2.67996 22.9111L5.10657 25.7404L16.1196 22.5394L23.918 15.9723L3.65475 1L1 8.95079Z",fill:"#763E1A",stroke:"#763E1A",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M50.5692 25.7404L39.5561 22.5394L42.8746 27.5371L37.9177 37.1813L44.4716 37.0987H54.261L50.5692 25.7404Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M16.1196 22.5394L5.10651 25.7404L1.43549 37.0987H11.2041L17.7581 37.1813L12.8011 27.5371L16.1196 22.5394Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M31.0526 28.0741L31.7578 15.9724L34.9518 7.36072H20.7239L23.9179 15.9724L24.6231 28.0741L24.8927 31.8739L24.9135 41.2703H30.7622L30.783 31.8739L31.0526 28.0741Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}))},V=function(){return r.createElement("svg",{width:"20",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M20.0002 7.9702V10.0302C20.0002 10.5802 19.5602 11.0302 19.0002 11.0502H17.0402C15.9602 11.0502 14.9702 10.2602 14.8802 9.1802C14.8202 8.5502 15.0602 7.9602 15.4802 7.5502C15.8502 7.1702 16.3602 6.9502 16.9202 6.9502H19.0002C19.5602 6.9702 20.0002 7.4202 20.0002 7.9702Z",fill:"#037DD6"}),r.createElement("path",{d:"M18.47 12.55H17.04C15.14 12.55 13.54 11.12 13.38 9.3C13.29 8.26 13.67 7.22 14.43 6.48C15.07 5.82 15.96 5.45 16.92 5.45H18.47C18.76 5.45 19 5.21 18.97 4.92C18.75 2.49 17.14 0.83 14.75 0.55C14.51 0.51 14.26 0.5 14 0.5H5C4.72 0.5 4.45 0.52 4.19 0.56C1.64 0.88 0 2.78 0 5.5V12.5C0 15.26 2.24 17.5 5 17.5H14C16.8 17.5 18.73 15.75 18.97 13.08C19 12.79 18.76 12.55 18.47 12.55ZM11 6.75H5C4.59 6.75 4.25 6.41 4.25 6C4.25 5.59 4.59 5.25 5 5.25H11C11.41 5.25 11.75 5.59 11.75 6C11.75 6.41 11.41 6.75 11 6.75Z",fill:"#037DD6"}))};function ee(Te){var y=Te.version;return r.createElement("div",{style:{textAlign:"center",color:"#BBC0C5",fontSize:12}},"SDK Version ",y?"v".concat(y):"unknown")}var X=function(Te){var y=r.useState(Te.preferDesktop?1:2),x=y[0],d=y[1],p=r.useRef(null),h=Te.sdkVersion,f=Te.i18nInstance.t;return r.useEffect(function(){p.current&&new(fR())({width:270,height:270,type:"svg",data:Te.link,image:i,dotsOptions:{color:"black",type:"rounded"},imageOptions:{margin:5},cornersDotOptions:{color:"#f66a07"},qrOptions:{errorCorrectionLevel:"M"}}).append(p.current)},[p]),r.createElement(_,{className:"install-model"},r.createElement("div",{style:w.backdrop,onClick:Te.onClose}),r.createElement("div",{style:w.modal},r.createElement("div",{style:w.closeButtonContainer},r.createElement("div",{style:w.right},r.createElement("span",{style:w.closeButton,onClick:Te.onClose},r.createElement(E,null)))),r.createElement("div",{style:w.logoContainer},r.createElement(H,null)),r.createElement("div",null,r.createElement("div",{style:w.tabcontainer},r.createElement("div",{style:w.flexContainer},r.createElement("div",{onClick:function(){return d(1)},style:c(c(c({},w.tab),x===1?w.tabactive:{}),w.flexItem)},f("DESKTOP")),r.createElement("div",{onClick:function(){return d(2)},style:c(c(c({},w.tab),x===2?w.tabactive:{}),w.flexItem)},f("MOBILE")))),r.createElement("div",{style:{display:x===1?"none":"block"}},r.createElement("div",{style:w.flexContainer},r.createElement("div",{style:c({textAlign:"center",marginTop:4},w.flexItem)},r.createElement("div",{ref:p,style:w.center}),r.createElement("div",{style:w.connectMobileText},f("SCAN_TO_CONNECT")," ",r.createElement("br",null),r.createElement("span",{style:w.blue},r.createElement("b",null,f("META_MASK_MOBILE_APP"))))))),r.createElement("div",{style:{display:x===2?"none":"block"}},r.createElement("div",{style:w.item},r.createElement(S,{Icon:T,text:f("INSTALL_MODAL.TRUSTED_BY_USERS")})),r.createElement("div",{style:w.item},r.createElement(S,{Icon:j,text:f("INSTALL_MODAL.LEADING_CRYPTO_WALLET")})),r.createElement("div",{style:w.item},r.createElement(S,{Icon:V,text:f("INSTALL_MODAL.CONTROL_DIGITAL_INTERACTIONS")})),r.createElement("button",{style:w.button,onClick:Te.metaMaskInstaller.startDesktopOnboarding},r.createElement(I,null),r.createElement("span",{style:w.installExtensionText},f("INSTALL_MODAL.INSTALL_META_MASK_EXTENSION"))))),r.createElement(ee,{version:h})))},ue=function(Te){var y,x=(y=Te.displayOTP)===null||y===void 0||y,d=Te.sdkVersion,p=Te.i18nInstance.t;return r.createElement(_,{className:"pending-modal"},r.createElement("div",{style:w.backdrop,onClick:Te.onClose}),r.createElement("div",{style:w.modal},r.createElement("div",{style:w.closeButtonContainer},r.createElement("div",{style:w.right},r.createElement("span",{style:w.closeButton,onClick:Te.onClose},r.createElement(E,null)))),r.createElement("div",{style:w.logoContainer},r.createElement(H,null)),r.createElement("div",null,r.createElement("div",{style:c(c({},w.flexContainer),{flexDirection:"column",color:"black"})},r.createElement("div",{style:c(c({textAlign:"center",marginTop:"30px",marginBottom:"30px"},w.flexItem),{fontSize:16})},p(x?"PENDING_MODAL.OPEN_META_MASK_SELECT_CODE":"PENDING_MODAL.OPEN_META_MASK_CONTINUE")),r.createElement("div",{id:"sdk-mm-otp-value",style:{padding:10,fontSize:32,display:"none"}}),x&&r.createElement("div",{style:c({},w.notice)},"* ",p("PENDING_MODAL.NUMBER_AFTER_OPEN_NOTICE"))),r.createElement("div",{style:{marginTop:"20px"}},r.createElement("button",{style:c(c(c({},w.button),w.blue),{marginTop:"5px",color:"#0376C9",borderColor:"#0376C9",borderWidth:"1px",borderStyle:"solid",backgroundColor:"white"}),onClick:Te.onDisconnect},p("PENDING_MODAL.DISCONNECT")))),r.createElement(ee,{version:d})))},le=function(){return r.createElement("svg",{width:"21",height:"15",viewBox:"0 0 21 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M14.1364 14.9851C13.5909 14.9851 13.2273 14.5851 13.2273 13.9851C13.2273 13.3851 13.5909 12.9851 14.1364 12.9851C16.6818 12.9851 18.6818 10.7851 18.6818 7.98508C18.6818 5.18508 16.6818 2.98508 14.1364 2.98508C11.5909 2.98508 9.59091 5.18508 9.59091 7.98508C9.59091 8.58508 9.22727 8.98508 8.68182 8.98508C8.13636 8.98508 7.77273 8.58508 7.77273 7.98508C7.77273 4.08508 10.5909 0.985077 14.1364 0.985077C17.6818 0.985077 20.5 4.08508 20.5 7.98508C20.5 11.8851 17.6818 14.9851 14.1364 14.9851ZM6.68182 14.7851C3.22727 14.7851 0.5 11.6851 0.5 7.98508C0.5 4.28508 3.22727 1.18508 6.68182 1.18508C7.22727 1.18508 7.59091 1.58508 7.59091 2.18508C7.59091 2.78508 7.22727 3.18508 6.68182 3.18508C4.22727 3.18508 2.31818 5.38508 2.31818 7.98508C2.31818 10.5851 4.22727 12.7851 6.68182 12.7851C9.13636 12.7851 11.0455 10.6851 11.0455 7.98508C11.0455 7.38508 11.4091 6.98508 11.9545 6.98508C12.5 6.98508 12.8636 7.38508 12.8636 7.98508C12.7727 11.6851 10.0455 14.7851 6.68182 14.7851Z",fill:"white"}))},pe=function(){return r.createElement("svg",{width:"400",height:"300",viewBox:"0 0 467 300",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M312.387 280.629C312.549 280.583 312.247 280.735 312.387 280.629L339.678 260.425C340.088 260.118 340.132 259.156 340.07 258.647C340.008 258.138 339.573 258.257 339.106 258.084L311.712 247.455C311.292 247.301 311.308 247.402 310.939 247.673C310.569 247.944 310.356 248.21 310.356 248.672L310.459 279.504C310.461 280.025 311.163 280.619 311.614 280.847C311.913 280.996 312.072 280.718 312.387 280.629ZM336.204 259.736L312.979 276.292L313.439 251.139L336.204 259.736Z",fill:"url(#paint0_linear_1356_14057)"}),r.createElement("path",{d:"M324.639 260.342C324.358 259.547 323.485 258.91 322.707 259.215C319.6 260.432 318.17 262.313 317.287 264.066C316.482 265.665 316.197 267.482 314.188 268.269C312.178 269.055 310.763 268.663 309.162 268.007C307.406 267.287 305.504 266.182 302.397 267.399C299.289 268.616 297.859 270.497 296.976 272.25C296.171 273.849 295.697 274.886 293.685 275.673C291.675 276.459 290.261 276.067 288.659 275.411C286.903 274.691 284.999 273.587 281.894 274.803C278.789 276.019 277.549 278.681 276.666 280.434C275.861 282.034 275.386 283.07 273.374 283.857C272.596 284.161 271.931 285.055 272.211 285.849C272.492 286.644 273.365 287.281 274.143 286.977C277.25 285.76 278.68 283.879 279.563 282.125C280.368 280.526 280.65 278.71 282.662 277.923C284.672 277.136 286.087 277.528 287.688 278.184C289.444 278.904 291.348 280.009 294.453 278.793C297.561 277.576 298.991 275.695 299.874 273.941C300.679 272.342 301.153 271.306 303.165 270.519C305.175 269.732 306.589 270.124 308.191 270.78C309.947 271.5 311.849 272.605 314.956 271.388C318.063 270.172 319.301 267.511 320.184 265.757C320.989 264.158 321.466 263.121 323.476 262.335C324.254 262.032 324.919 261.137 324.639 260.342Z",fill:"url(#paint1_linear_1356_14057)"}),r.createElement("path",{d:"M389.034 111.124C388.968 112.406 387.342 113.113 386.324 113.549C384.297 114.419 382.089 114.493 379.942 114.5C376.607 114.509 373.215 114.163 369.89 113.976C366.712 113.798 363.156 113.311 360.03 114.232C357.705 114.919 355.667 116.762 353.452 117.739C351.129 118.765 348.957 119.198 346.489 119.687C335.569 121.85 323.587 120.825 312.656 119.977C311.92 119.92 312.539 118.997 313.237 118.981C313.207 118.815 313.001 118.394 313.045 118.201C313.086 118.029 312.781 117.586 312.853 117.421C312.67 117.198 313.316 117.427 313.626 117.204C315.912 115.557 318.721 114.79 321.363 115.041C324.677 115.355 327.293 116.04 330.641 115.781C334.392 115.491 338.125 114.787 341.857 114.312C345.142 113.892 349.09 113.941 352.106 112.28C352.916 111.834 353.137 111.262 353.269 110.287C353.331 109.828 353.672 108.969 353.658 108.511C353.629 107.529 354.191 107.886 355.013 107.298C356.857 105.981 358.274 105.516 360.428 105.784C362.841 106.083 365.264 107.273 367.578 107.953C370.761 108.888 374.328 108.646 377.631 108.477C380.517 108.329 383.141 107.901 385.944 108.653C387.013 108.941 389.104 109.745 389.034 111.124Z",fill:"url(#paint2_linear_1356_14057)"}),r.createElement("path",{d:"M278.118 85.4414C280.313 83.8186 283.302 83.9 285.853 83.2728C290.501 82.127 295.644 78.4476 300.549 79.1524C301.299 79.2595 300.904 81.0355 300.159 80.9295C300.131 80.9256 300.187 80.9333 300.159 80.9295C300.089 81.0185 299.516 81.1051 299.385 81.1463C294.999 82.515 292.895 87.5083 289.126 89.8598C287.799 90.688 286.771 90.8351 285.258 90.9441C283.515 91.0691 280.964 90.5775 279.269 90.1219C277.15 89.5532 275.965 87.034 278.118 85.4414Z",fill:"url(#paint3_linear_1356_14057)"}),r.createElement("path",{d:"M122.567 166.093C113.597 172.832 104.535 179.836 99.517 190.092C98.5342 192.099 97.519 195.019 97.9533 197.204C98.9699 202.316 105.76 203.049 110.691 201.96C113.468 201.347 116.325 199.231 115.921 196.319C115.576 193.81 113.158 192.986 112.072 190.73C110.779 188.04 112.35 184.97 114.218 182.62C128.134 165.099 150.074 157.394 171.093 151.607C175.385 150.425 180.897 147.69 180.581 143.099C180.372 140.072 177.118 137.683 174.221 137.383C171.324 137.082 168.481 138.773 165.715 139.776C158.416 142.419 151.17 143.799 143.489 143.526C136.865 143.29 130.976 143.316 129.562 150.781C128.138 158.276 129.53 160.863 122.567 166.093Z",fill:"url(#paint4_linear_1356_14057)"}),r.createElement("path",{d:"M79.1056 153.531C60.3932 164.378 43.7478 178.354 32.8214 197.415C30.3313 201.76 27.9216 206.554 27.1821 211.512C26.4448 216.47 27.7591 222.525 30.8133 226.337C34.908 231.446 41.6938 232.915 48.1811 233.125C50.7248 233.208 53.0035 233.066 55.3316 231.947C57.6602 230.83 59.7548 228.359 59.5978 225.742C59.3303 221.315 54.5491 219.665 50.9271 217.34C42.6566 212.037 40.4958 199.493 44.2381 190.032C47.9803 180.57 55.8228 173.173 63.2316 166.338C67.229 162.651 71.5194 158.372 76.777 157.522C79.9167 157.015 83.4706 157.589 86.6295 157.252C93.9004 156.479 99.64 151.404 105.588 146.912C115.048 139.765 126.045 134.283 137.501 132.093C141.913 131.248 146.293 130.493 149.682 127.831C151.37 126.507 150.803 123.567 148.726 123.93C138.542 125.713 128.652 131.135 119.142 134.758C105.627 139.914 91.7133 146.223 79.1056 153.531Z",fill:"url(#paint5_linear_1356_14057)"}),r.createElement("path",{d:"M96.3677 117.321C96.0315 116.64 95.2914 116.612 94.6293 116.975C91.9858 118.417 91.5452 120.509 90.9466 122.178C90.4004 123.702 89.3647 124.67 87.6542 125.604C85.9437 126.538 85.0983 126.316 83.5956 125.91C81.9481 125.465 79.8603 125.424 77.2168 126.866C74.5734 128.309 74.1348 130.401 73.5341 132.07C72.9879 133.593 71.9522 134.562 70.2417 135.496C68.5313 136.43 67.6859 136.208 66.1832 135.801C64.5357 135.357 62.2569 134.538 59.6128 135.978C56.9694 137.42 56.5308 139.512 55.9301 141.181C55.3839 142.705 54.5398 144.454 52.8293 145.388C52.1667 145.748 52.1006 146.485 52.439 147.165C52.7752 147.845 53.5153 147.874 54.1773 147.511C56.8208 146.069 57.2594 143.977 57.86 142.307C58.4062 140.784 59.4419 139.815 61.1524 138.881C62.8629 137.948 63.7083 138.17 65.211 138.576C66.8585 139.021 68.9458 139.059 71.5898 137.619C74.2333 136.177 74.6718 134.085 75.2725 132.416C75.8187 130.892 76.8544 129.924 78.5649 128.99C80.2754 128.056 81.1207 128.278 82.6235 128.684C84.2709 129.129 86.5503 129.95 89.1938 128.507C91.8373 127.065 92.2779 124.973 92.8765 123.304C93.4227 121.78 94.2663 120.03 95.9773 119.098C96.6378 118.738 96.7039 118.001 96.3677 117.321Z",fill:"#FBC49D"}),r.createElement("path",{d:"M391.827 164.699C392.04 164.639 392.39 164.573 392.6 164.481C393.87 163.921 395.363 162.429 395.893 161.051C396.421 159.673 396.237 158.321 395.712 156.931C394.629 154.061 391.777 152.62 389.155 153.775C386.531 154.931 384.962 158.455 386.042 161.325C387.038 163.963 389.369 165.392 391.827 164.699ZM394.166 157.367C394.529 158.332 394.52 159.751 394.156 160.706C393.792 161.662 393.1 162.534 392.218 162.921C390.398 163.723 388.338 162.878 387.589 160.889C387.226 159.925 387.234 158.506 387.599 157.55C387.963 156.594 388.654 155.723 389.536 155.336C391.356 154.534 393.416 155.376 394.166 157.367Z",fill:"#86E29B"}),r.createElement("path",{d:"M62.7198 108.691C64.4912 108.191 66.6152 106.609 67.5596 104.824C68.4273 103.187 68.465 101.455 67.9609 99.7066C67.4547 97.9586 66.0792 96.5141 64.4963 95.6786C62.9135 94.843 61.2077 94.8578 59.4756 95.4255C57.7435 95.9933 56.2768 97.4364 55.409 99.074C53.6185 102.456 55.2032 106.494 58.4723 108.22C60.0142 109.035 61.1315 109.138 62.7198 108.691ZM60.6304 96.7682C61.819 96.4332 63.0232 96.8871 64.1048 97.4571C65.2463 98.0603 66.0495 98.8796 66.4145 100.142C66.7791 101.403 66.4488 103.299 65.8224 104.48C64.5299 106.919 61.2212 107.686 58.8638 106.441C56.5063 105.197 55.8538 101.858 57.1462 99.4185C57.7726 98.2375 58.6059 97.3957 59.8573 96.9862C59.9214 96.9635 60.5631 96.7872 60.6304 96.7682Z",fill:"#FFB0EB"}),r.createElement("path",{d:"M77.0217 242.979C75.9542 243.28 75.1664 242.151 74.9029 241.074C74.6394 239.996 75 239.378 76.0676 239.077C77.1351 238.776 78.5053 238.907 78.7688 239.984C79.0323 241.061 78.0893 242.678 77.0217 242.979Z",fill:"url(#paint6_linear_1356_14057)"}),r.createElement("path",{d:"M380.506 184.577C379.439 184.878 378.651 183.749 378.387 182.672C378.124 181.594 378.484 180.976 379.552 180.675C380.619 180.374 381.99 180.505 382.253 181.582C382.517 182.659 381.574 184.276 380.506 184.577Z",fill:"url(#paint7_linear_1356_14057)"}),r.createElement("path",{d:"M348.82 246.969C347.752 247.27 346.382 247.14 346.119 246.063C345.855 244.985 346.798 243.369 347.866 243.068C348.933 242.767 349.721 243.896 349.985 244.973C350.248 246.05 349.888 246.669 348.82 246.969Z",fill:"url(#paint8_linear_1356_14057)"}),r.createElement("path",{d:"M140.419 282.412C139.351 282.713 138.754 282.365 138.491 281.288C138.227 280.21 138.397 278.812 139.464 278.511C140.532 278.21 142.093 279.121 142.357 280.198C142.62 281.275 141.486 282.111 140.419 282.412Z",fill:"url(#paint9_linear_1356_14057)"}),r.createElement("path",{d:"M121.462 101.679C120.395 101.979 119.798 101.631 119.534 100.554C119.271 99.4764 119.44 98.0779 120.508 97.777C121.575 97.4761 123.136 98.3868 123.4 99.4642C123.663 100.542 122.53 101.378 121.462 101.679Z",fill:"url(#paint10_linear_1356_14057)"}),r.createElement("path",{d:"M370.749 159.005C369.682 159.306 368.311 159.175 368.048 158.098C367.784 157.021 368.727 155.404 369.795 155.103C370.863 154.802 371.65 155.931 371.914 157.008C372.177 158.086 371.817 158.704 370.749 159.005Z",fill:"url(#paint11_linear_1356_14057)"}),r.createElement("path",{d:"M384.211 245.345C383.143 245.646 381.773 245.515 381.51 244.438C381.246 243.361 382.189 241.744 383.257 241.443C384.324 241.142 385.112 242.271 385.376 243.348C385.639 244.426 385.278 245.044 384.211 245.345Z",fill:"url(#paint12_linear_1356_14057)"}),r.createElement("path",{d:"M364.771 41.3873C363.063 41.8687 361.337 40.8616 360.915 39.1378C360.493 37.414 361.536 35.6263 363.244 35.1449C364.953 34.6634 366.679 35.6706 367.101 37.3944C367.522 39.1182 366.479 40.9059 364.771 41.3873Z",fill:"url(#paint13_linear_1356_14057)"}),r.createElement("path",{d:"M404.311 77.905C404.602 77.8231 404.875 77.9236 405.084 77.6871C405.437 77.2908 404.814 76.6385 404.703 76.1265L401.277 58.7418C401.149 58.163 400.687 57.5371 400.123 57.3991C399.558 57.2611 398.969 57.3812 398.576 57.835L385.784 73.1179C385.395 73.564 385.199 74.3453 385.393 74.8964C385.585 75.4481 385.978 76.1646 386.548 76.2391L403.538 78.123C403.744 78.1479 404.114 77.9607 404.311 77.905ZM398.948 62.7348L401.811 74.4394L389.841 72.8085L398.948 62.7348Z",fill:"#FFB0EB"}),r.createElement("path",{d:"M97.5393 295.311C97.7108 295.263 97.4284 295.461 97.5393 295.311L108.785 280.464C108.975 280.211 108.718 279.972 108.594 279.684C108.47 279.396 108.124 279.917 107.821 279.902L88.5106 278.672C88.2101 278.659 87.895 278.62 87.7374 278.89C87.5798 279.159 87.7755 279.402 87.9283 279.67L96.5753 294.749C96.7102 294.99 97.2696 295.297 97.5393 295.311C97.6283 295.319 97.4556 295.335 97.5393 295.311ZM106.465 281.118L96.9667 292.97L90.6295 280.577L106.465 281.118Z",fill:"#86E29B"}),r.createElement("path",{d:"M393.699 108.848C389.518 104.446 414.629 114.366 413.945 120.659C413.259 126.952 401.355 129.102 403.894 123.491C406.042 118.747 400.376 115.876 393.699 108.848Z",fill:"#FBC49D"}),r.createElement("path",{d:"M139.414 115.959C139.434 115.953 139.392 115.965 139.414 115.959C141.963 115.2 143.436 111.976 142.717 109.189C142.37 107.839 141.526 107.199 140.408 106.504C139.289 105.808 138.171 105.449 136.933 105.815C135.698 106.182 134.85 107.033 134.222 108.247C133.595 109.461 133.282 111.234 133.63 112.585C133.978 113.935 134.821 114.574 135.94 115.27C137.04 115.952 138.199 116.301 139.414 115.959ZM137.315 107.375C138.222 107.12 139.005 106.994 139.825 107.502C140.661 108.02 140.912 108.618 141.171 109.625C141.708 111.704 140.935 113.834 139.032 114.398C138.11 114.675 137.356 114.791 136.522 114.272C135.686 113.753 135.436 113.155 135.176 112.149C134.917 111.142 134.718 109.714 135.186 108.81C135.654 107.905 136.394 107.649 137.315 107.375C137.329 107.371 137.299 107.38 137.315 107.375Z",fill:"#75C4FD"}),r.createElement("path",{d:"M308.981 78.7519C310.052 78.4043 311.158 78.7096 312.265 78.6613C313.655 78.6006 314.936 78.517 316.323 78.3531C319.497 77.9795 322.798 77.4906 325.984 77.3012C329.309 77.1025 332.514 76.8551 335.836 77.0295C338.809 77.1842 342.163 77.3405 345.105 77.7558C352.129 78.7468 359.331 79.0578 366.347 80.1158C372.252 81.008 377.93 82.1319 383.722 83.5644C385.925 84.0054 388.267 85.0754 389.126 85.3792C389.421 85.4833 389.37 85.8347 389.317 86.1595C389.306 86.2271 389.353 86.1146 389.317 86.1595C388.269 87.414 386.564 86.8124 385.259 86.4677C384.406 86.241 381.488 85.9494 381.011 85.9957C380.14 86.0815 379.277 86.014 379.656 87.2114C380.122 88.6824 382.391 89.7375 383.704 90.2419C385.883 91.0803 388.771 91.2561 390.845 92.4015C392.968 92.821 395.425 93.5002 397.022 93.9986C402.83 95.8103 407.806 98.8678 413.033 102.002C415.503 103.482 417.829 104.764 419.973 106.72C421.647 108.248 423.771 109.882 424.595 112.091C425.113 113.482 424.451 115.471 422.848 115.085C420.353 114.488 419.638 111.665 418.227 109.714C415.003 105.251 410.067 102.067 405.118 100.06C402.64 99.0556 399.803 98.729 397.204 98.1176C394.411 97.4613 391.597 97.0442 388.707 97.1736C385.646 97.3097 382.846 97.5534 379.819 98.0078C377.027 98.4264 374.252 98.4441 371.514 97.8441C368.766 97.2421 366.276 96.7553 363.6 95.9021C361.662 95.2848 359.013 94.5583 357.232 93.5247C355.699 92.6339 355.631 91.2381 357.241 90.186C359.87 88.4656 362.778 89.8021 365.546 90.3497C365.561 90.3527 365.532 90.3468 365.546 90.3497C367.858 90.804 369.649 90.098 371.923 89.3884C372.489 89.2128 373.255 89.0482 373.47 88.953C374.383 88.5432 375.895 87.8227 375.407 86.7394C374.868 85.5457 372.659 84.8846 371.55 84.4891C369.74 83.8428 368.053 82.9215 366.147 82.6743C365.654 82.6095 365.109 83.1606 364.6 83.1097C363.36 83.1121 361.769 83.348 360.543 83.418C357.43 83.5916 354.583 83.6228 351.464 83.4719C348.714 83.3377 346.432 82.8542 343.741 82.3102C340.773 81.7101 337.52 81.5879 334.471 81.5839C331.393 81.5811 328.6 81.7214 325.583 82.4181C322.758 83.0702 319.757 83.6198 316.887 84.0326C314.698 84.3481 312.467 84.6054 310.319 84.2137C309.079 83.9871 306.994 83.3394 306.461 81.9635C305.846 80.3659 307.736 79.1556 308.981 78.7519Z",fill:"url(#paint14_linear_1356_14057)"}),r.createElement("path",{d:"M242.269 242.95C242.295 242.947 242.244 242.955 242.269 242.95C244.934 242.606 247.53 241.858 250.2 241.574C253.133 241.264 256.006 240.56 258.906 239.982C263.26 239.117 268.026 238.52 272.254 237.097C274.429 236.365 276.067 235.298 278.251 234.592C280.361 233.909 283.058 233.12 285.216 232.652C289.317 231.764 293.049 231.66 297.016 230.198C301.109 228.69 305.088 226.673 308.819 224.409C312.645 222.086 316.282 219.769 320.622 218.62C322.381 218.154 323.919 218.219 325.65 218.886C327.016 219.413 327.739 220.337 327.196 221.79C326.557 223.504 324.659 224.7 323.131 225.423C320.854 226.5 319.53 227.184 317.134 227.927C314.619 228.707 311.888 229.24 309.395 230.083C308.226 230.947 307.17 232.522 306.105 233.501C303.996 235.441 301.666 237.03 298.945 237.996C292.934 240.129 286.354 238.602 280.183 239.056C279.661 239.095 279.162 239.442 278.635 239.487C275.592 240.135 272.2 240.63 269.156 241.294C264.546 242.299 260.456 243.409 255.808 244.179C251.971 244.814 243.815 245.854 243.815 245.854L242.074 245.505C240.575 245.281 240.751 243.152 242.269 242.95Z",fill:"url(#paint15_linear_1356_14057)"}),r.createElement("path",{d:"M432.985 171.626C438.212 165.465 445.109 153.64 442.906 144.649C442.162 137.999 433.671 132.912 424.963 135.518C420.16 136.957 416.435 142.146 419.724 144.498C420.656 145.164 422.187 145.591 423.391 145.969C434.204 149.375 434.925 162.538 425.069 169.683C421.087 172.569 416.347 174.292 411.914 176.719C400.151 183.162 399.887 196.847 387.7 202.712C382.326 205.298 375.761 206.838 370.297 209.275C359.98 213.88 352.555 221.733 342.241 226.341C337.225 228.584 330.266 231.632 323.483 234.12C321.475 234.855 321.999 237.058 324.056 236.46C324.098 236.449 324.017 236.474 324.056 236.46C329.079 234.971 334.437 233.161 339.331 231.33C352.278 226.48 365.28 220.971 377.43 214.775C401.78 202.367 416.881 190.609 432.985 171.626Z",fill:"url(#paint16_linear_1356_14057)"}),r.createElement("path",{d:"M343.644 241.104C348.002 234.144 357.126 232.455 364.343 231.134C368.176 230.431 372.406 229.878 376.137 228.662C380.691 227.175 384.558 224.095 388.327 221.077C389.452 220.177 391.204 218.466 392.393 217.436C393.185 216.748 393.644 216.026 394.33 215.225C396 213.275 399.599 209.812 401.687 208.16C403.263 206.914 407.779 204.758 408.259 207.986C408.611 210.359 406.379 213.087 404.961 214.747C402.224 217.953 398.998 221.079 395.475 223.243C391.749 225.531 387.701 227.439 383.674 229.051C381.672 229.853 379.519 230.073 377.486 230.785C376.001 231.307 374.486 232.236 373.037 232.866C371.034 233.738 368.99 234.28 367.041 235.38C364.436 236.849 361.782 238.783 359.108 240.105C356.331 241.477 353.823 242.691 350.791 243.27C348.6 243.687 345.501 243.641 343.836 241.884C343.526 241.554 343.389 241.51 343.644 241.104Z",fill:"url(#paint17_linear_1356_14057)"}),r.createElement("path",{d:"M190.163 273.219C222.905 268.849 232.64 262.943 213.962 259.057C195.285 255.172 187.5 262.08 188.434 266.2C189.366 270.32 180.381 271.326 169.286 272.39C158.193 273.454 157.141 276.354 190.163 273.219Z",fill:"url(#paint18_linear_1356_14057)"}),r.createElement("path",{d:"M295.952 95.4242L241.395 135.226L251.54 111.77L295.952 95.4242Z",fill:"#E17726",stroke:"#E17726",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M170.111 95.4242L224.181 135.598L214.522 111.77L170.111 95.4242Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M276.309 187.712L261.793 209.576L292.876 218.014L301.78 188.189L276.309 187.712Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M164.336 188.189L173.186 218.014L204.215 209.576L189.753 187.712L164.336 188.189Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M202.542 150.776L193.908 163.618L224.667 164.998L223.642 132.36L202.542 150.776Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M263.52 150.775L242.097 131.989L241.395 164.998L272.154 163.618L263.52 150.775Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M204.215 209.576L222.832 200.714L206.805 188.402L204.215 209.576Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M243.23 200.714L261.793 209.576L259.257 188.402L243.23 200.714Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M261.793 209.576L243.23 200.714L244.741 212.601L244.579 217.643L261.793 209.576Z",fill:"#D5BFB2",stroke:"#D5BFB2",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M204.215 209.576L221.483 217.643L221.375 212.601L222.832 200.714L204.215 209.576Z",fill:"#D5BFB2",stroke:"#D5BFB2",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M221.807 180.547L206.373 176.09L217.274 171.154L221.807 180.547Z",fill:"#233447",stroke:"#233447",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M244.255 180.547L248.788 171.154L259.742 176.09L244.255 180.547Z",fill:"#233447",stroke:"#233447",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M204.215 209.576L206.913 187.712L189.753 188.189L204.215 209.576Z",fill:"#CC6228",stroke:"#CC6228",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M259.149 187.712L261.793 209.576L276.309 188.189L259.149 187.712Z",fill:"#CC6228",stroke:"#CC6228",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M272.154 163.618L241.395 164.998L244.255 180.547L248.788 171.154L259.742 176.09L272.154 163.618Z",fill:"#CC6228",stroke:"#CC6228",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M206.373 176.09L217.274 171.154L221.807 180.547L224.667 164.998L193.908 163.618L206.373 176.09Z",fill:"#CC6228",stroke:"#CC6228",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M193.908 163.618L206.805 188.402L206.373 176.09L193.908 163.618Z",fill:"#E27525",stroke:"#E27525",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M259.743 176.09L259.257 188.402L272.154 163.618L259.743 176.09Z",fill:"#E27525",stroke:"#E27525",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M224.667 164.998L221.807 180.548L225.422 198.909L226.232 174.71L224.667 164.998Z",fill:"#E27525",stroke:"#E27525",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M241.395 164.998L239.884 174.657L240.64 198.909L244.255 180.548L241.395 164.998Z",fill:"#E27525",stroke:"#E27525",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M244.255 180.547L240.64 198.909L243.23 200.714L259.257 188.402L259.743 176.09L244.255 180.547Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M206.373 176.09L206.805 188.402L222.832 200.714L225.422 198.909L221.807 180.547L206.373 176.09Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M244.579 217.643L244.741 212.601L243.338 211.434H222.724L221.375 212.601L221.483 217.643L204.215 209.576L210.259 214.459L222.508 222.791H243.5L255.803 214.459L261.793 209.576L244.579 217.643Z",fill:"#C0AC9D",stroke:"#C0AC9D",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M243.23 200.714L240.64 198.909H225.422L222.832 200.714L221.375 212.601L222.724 211.434H243.338L244.741 212.601L243.23 200.714Z",fill:"#161616",stroke:"#161616",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M298.272 137.827L302.859 115.856L295.952 95.4242L243.23 133.899L263.52 150.775L292.174 159.001L298.488 151.731L295.736 149.767L300.107 145.84L296.761 143.293L301.132 140.002L298.272 137.827Z",fill:"#763E1A",stroke:"#763E1A",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M163.203 115.856L167.844 137.827L164.876 140.002L169.301 143.293L165.955 145.84L170.326 149.767L167.574 151.731L173.888 159.001L202.542 150.775L222.832 133.899L170.11 95.4242L163.203 115.856Z",fill:"#763E1A",stroke:"#763E1A",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M292.175 159.001L263.52 150.775L272.154 163.618L259.257 188.402L276.309 188.189H301.78L292.175 159.001Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M202.542 150.775L173.888 159.001L164.336 188.189H189.753L206.805 188.402L193.908 163.618L202.542 150.775Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M241.395 164.998L243.23 133.9L251.54 111.77H214.522L222.832 133.9L224.667 164.998L225.368 174.763L225.422 198.909H240.64L240.694 174.763L241.395 164.998Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_1356_14057",x1:"335.991",y1:"250.487",x2:"303.873",y2:"266.801",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE466"}),r.createElement("stop",{offset:"1",stopColor:"#FFAFEA"})),r.createElement("linearGradient",{id:"paint1_linear_1356_14057",x1:"276.993",y1:"303.722",x2:"205.254",y2:"401.574",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#75C3FC"}),r.createElement("stop",{offset:"0.0929",stopColor:"#81C2F6"}),r.createElement("stop",{offset:"1",stopColor:"#F0B8BD"})),r.createElement("linearGradient",{id:"paint2_linear_1356_14057",x1:"271.074",y1:"119.924",x2:"553.077",y2:"104.53",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE466"}),r.createElement("stop",{offset:"1",stopColor:"#FFAFEA"})),r.createElement("linearGradient",{id:"paint3_linear_1356_14057",x1:"264.209",y1:"91.0943",x2:"357.834",y2:"72.8792",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE466"}),r.createElement("stop",{offset:"1",stopColor:"#FFAFEA"})),r.createElement("linearGradient",{id:"paint4_linear_1356_14057",x1:"212.46",y1:"121.997",x2:"92.6119",y2:"183.406",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE466"}),r.createElement("stop",{offset:"1",stopColor:"#FFAFEA"})),r.createElement("linearGradient",{id:"paint5_linear_1356_14057",x1:"23.0498",y1:"204.411",x2:"161.86",y2:"163.003",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#75C3FC"}),r.createElement("stop",{offset:"0.0929",stopColor:"#81C2F6"}),r.createElement("stop",{offset:"1",stopColor:"#F0B8BD"})),r.createElement("linearGradient",{id:"paint6_linear_1356_14057",x1:"78.8647",y1:"240.375",x2:"74.9655",y2:"241.328",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#75C3FC"}),r.createElement("stop",{offset:"1",stopColor:"#75C3FC"})),r.createElement("linearGradient",{id:"paint7_linear_1356_14057",x1:"382.349",y1:"181.971",x2:"378.45",y2:"182.925",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#75C3FC"}),r.createElement("stop",{offset:"1",stopColor:"#75C3FC"})),r.createElement("linearGradient",{id:"paint8_linear_1356_14057",x1:"349.889",y1:"244.583",x2:"345.99",y2:"245.537",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#75C3FC"}),r.createElement("stop",{offset:"1",stopColor:"#75C3FC"})),r.createElement("linearGradient",{id:"paint9_linear_1356_14057",x1:"142.262",y1:"279.808",x2:"138.362",y2:"280.762",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#75C3FC"}),r.createElement("stop",{offset:"1",stopColor:"#75C3FC"})),r.createElement("linearGradient",{id:"paint10_linear_1356_14057",x1:"123.305",y1:"99.0746",x2:"119.406",y2:"100.028",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#75C3FC"}),r.createElement("stop",{offset:"1",stopColor:"#75C3FC"})),r.createElement("linearGradient",{id:"paint11_linear_1356_14057",x1:"371.818",y1:"156.617",x2:"367.919",y2:"157.571",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#75C3FC"}),r.createElement("stop",{offset:"1",stopColor:"#75C3FC"})),r.createElement("linearGradient",{id:"paint12_linear_1356_14057",x1:"385.281",y1:"242.958",x2:"381.382",y2:"243.911",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#75C3FC"}),r.createElement("stop",{offset:"1",stopColor:"#75C3FC"})),r.createElement("linearGradient",{id:"paint13_linear_1356_14057",x1:"367.125",y1:"37.5052",x2:"360.843",y2:"38.8076",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#75C3FC"}),r.createElement("stop",{offset:"1",stopColor:"#75C3FC"})),r.createElement("linearGradient",{id:"paint14_linear_1356_14057",x1:"300.182",y1:"91.321",x2:"479.464",y2:"104.041",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE466"}),r.createElement("stop",{offset:"1",stopColor:"#FFAFEA"})),r.createElement("linearGradient",{id:"paint15_linear_1356_14057",x1:"363.434",y1:"201.232",x2:"102.977",y2:"302.269",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE466"}),r.createElement("stop",{offset:"1",stopColor:"#FFAFEA"})),r.createElement("linearGradient",{id:"paint16_linear_1356_14057",x1:"447.962",y1:"165.159",x2:"313.049",y2:"197.95",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#75C3FC"}),r.createElement("stop",{offset:"0.0929",stopColor:"#81C2F6"}),r.createElement("stop",{offset:"1",stopColor:"#F0B8BD"})),r.createElement("linearGradient",{id:"paint17_linear_1356_14057",x1:"410.211",y1:"215.859",x2:"341.378",y2:"232.788",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#75C3FC"}),r.createElement("stop",{offset:"0.0929",stopColor:"#81C2F6"}),r.createElement("stop",{offset:"1",stopColor:"#F0B8BD"})),r.createElement("linearGradient",{id:"paint18_linear_1356_14057",x1:"222.282",y1:"258.986",x2:"162.257",y2:"273.774",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE466"}),r.createElement("stop",{offset:"1",stopColor:"#FFAFEA"}))))},Me=function(Te){var y=r.useState(2),x=y[0],d=y[1],p=Te.sdkVersion,h=Te.i18nInstance.t;return r.createElement(_,{className:"select-modal"},r.createElement("div",{style:w.backdrop,onClick:function(){return Te.onClose(!0)}}),r.createElement("div",{style:w.modal},r.createElement("div",{style:w.closeButtonContainer},r.createElement("div",{style:w.right},r.createElement("span",{style:w.closeButton,onClick:function(){return Te.onClose(!0)}},r.createElement(E,null)))),r.createElement("div",{style:w.logoContainer},r.createElement(H,null)),r.createElement("div",null,r.createElement("div",{style:w.tabcontainer},r.createElement("div",{style:w.flexContainer},r.createElement("div",{onClick:function(){return d(1)},style:c(c(c({},w.tab),x===1?w.tabactive:{}),w.flexItem)},h("DESKTOP")),r.createElement("div",{onClick:function(){return d(2)},style:c(c(c({},w.tab),x===2?w.tabactive:{}),w.flexItem)},h("MOBILE")))),r.createElement("div",{style:{display:x===1?"none":"block"}},r.createElement("div",{style:w.flexContainer},r.createElement("div",{style:c({textAlign:"center",marginTop:4},w.flexItem)},r.createElement("div",{id:"sdk-qrcode-container",style:w.center}),r.createElement("div",{style:w.connectMobileText},h("SCAN_TO_CONNECT"),r.createElement("br",null),r.createElement("span",{style:w.blue},r.createElement("b",null,h("META_MASK_MOBILE_APP"))))))),r.createElement("div",{style:{display:x===2?"none":"block"}},r.createElement("div",{style:{display:"flex",justifyContent:"center",height:300,marginTop:-20}},r.createElement(pe,null)),r.createElement("div",{style:w.extensionLabel},h("SELECT_MODAL.CRYPTO_TAKE_CONTROL_TEXT")),r.createElement("button",{style:w.button,onClick:Te.connectWithExtension},r.createElement(le,null),r.createElement("span",{style:w.installExtensionText},h("CONNECT_WITH_EXTENSION"))))),r.createElement(ee,{version:p})))},ye=function(){function Te(y){var x=y.debug,d=y.sdkVersion,p=this;this.debug=!1,this.updateOTPValue=function(h){p.debug&&console.debug("ModalLoader: updateOTPValue",h),setTimeout(function(){var f;p.debug&&console.debug("ModalLoader: updateOTPValue: delayed otp update"),f=document.getElementById("sdk-mm-otp-value"),p.debug&&console.debug("ModalLoader: updateOTPValue: otpNode",f),f&&(f.textContent=h,f.style.display="block")},800)},this.updateQRCode=function(h){p.debug&&console.debug("ModalLoader: updateQRCode",h);var f=document.getElementById("sdk-qrcode-container");f&&(f.innerHTML="",new(fR())({width:270,height:270,type:"svg",data:h,image:i,dotsOptions:{color:"black",type:"rounded"},imageOptions:{margin:5},cornersDotOptions:{color:"#f66a07"},qrOptions:{errorCorrectionLevel:"M"}}).append(f))},this.debug=x!=null&&x,this.sdkVersion=d}return Te.prototype.renderInstallModal=function(y){this.debug&&console.debug("ModalLoader: renderInstallModal",y),this.installContainer=y.parentElement,o.createRoot(y.parentElement).render(r.createElement(X,{link:y.link,preferDesktop:y.preferDesktop,onClose:y.onClose,sdkVersion:this.sdkVersion,metaMaskInstaller:y.metaMaskInstaller,i18nInstance:y.i18nInstance}))},Te.prototype.renderSelectModal=function(y){var x=this;this.debug&&console.debug("ModalLoader: renderSelectModal",y),this.selectContainer=y.parentElement,o.createRoot(y.parentElement).render(r.createElement(Me,{link:y.link,sdkVersion:this.sdkVersion,onClose:y.onClose,connectWithExtension:y.connectWithExtension,i18nInstance:y.i18nInstance})),setTimeout(function(){x.updateQRCode(y.link)},100)},Te.prototype.renderPendingModal=function(y){this.debug&&console.debug("ModalLoader: renderPendingModal",y),this.pendingContainer=y.parentElement,o.createRoot(y.parentElement).render(r.createElement(ue,{onClose:y.onClose,onDisconnect:y.onDisconnect,sdkVersion:this.sdkVersion,updateOTPValue:y.updateOTPValue,displayOTP:y.displayOTP,i18nInstance:y.i18nInstance}))},Te.prototype.unmount=function(){var y,x,d,p,h,f;(x=(y=this.pendingContainer)===null||y===void 0?void 0:y.parentNode)===null||x===void 0||x.removeChild(this.pendingContainer),this.pendingContainer=void 0,(p=(d=this.installContainer)===null||d===void 0?void 0:d.parentNode)===null||p===void 0||p.removeChild(this.installContainer),this.installContainer=void 0,(f=(h=this.selectContainer)===null||h===void 0?void 0:h.parentNode)===null||f===void 0||f.removeChild(this.selectContainer),this.selectContainer=void 0},Te}();n.ModalLoader=ye})(t,e7(),fq())})(0,QA.exports);var hR=QA.exports;const hq=({link:e,debug:t,installer:n,terminate:r,connectWithExtension:o,preferDesktop:i,i18nInstance:c})=>{let g=null,_=null;Ze("[UI: InstallModal-web: sdkWebInstallModal()] ################## Installing Modal #################"),Ze(`[UI: InstallModal-web: sdkWebInstallModal()] link=${e}`),Ze(`[UI: InstallModal-web: sdkWebInstallModal()] npx uri-scheme open "${e}" --ios`),Ze(`[UI: InstallModal-web: sdkWebInstallModal()] npx uri-scheme open "${e}" --android`),Ze(`[UI: InstallModal-web: sdkWebInstallModal()] adb shell am start -a android.intent.action.VIEW -d "${e}"`);const w=S=>{var E;Ze("[UI: InstallModal-web: sdkWebInstallModal()] installModal-web unmounting install modal -- shouldTerminate:",S,_),_!=null&&_.parentNode&&((E=_.parentNode)===null||E===void 0||E.removeChild(_)),_=null,g=null,S===!0&&(r==null||r())};return{mount:S=>{if(Ze("[UI: InstallModal-web: sdkWebInstallModal()] installModal-web mounting install modal",_),_)return _.style.display="block",void(g==null||g.updateQRCode(S));g=new hR.ModalLoader({debug:t,sdkVersion:wh.version}),_=document.createElement("div"),document.body.appendChild(_),window.extension?g.renderSelectModal({i18nInstance:c,parentElement:_,connectWithExtension:()=>{w(),o==null||o()},onClose:w,link:e}):g.renderInstallModal({i18nInstance:c,parentElement:_,preferDesktop:i!=null&&i,link:e,metaMaskInstaller:n,onClose:w})},unmount:w}},pq=({onDisconnect:e,i18nInstance:t,debug:n})=>{let r=null,o=null;const i=()=>{Ze("[UI: pendingModal-web: sdkWebPendingModal()] pendingModal-web unmount",r),r!=null&&r.parentNode&&r.parentNode.removeChild(r),r=null,o=null},c=_=>{Ze("[UI: pendingModal-web: sdkWebPendingModal()] pendingModal-web updateOTPValue",_),o&&o.updateOTPValue(_)},g=({displayOTP:_}={displayOTP:!0})=>{Ze("[UI: pendingModal-web: sdkWebPendingModal()] pendingModal-web mount",r),r?r.style.display="block":(o=new hR.ModalLoader({debug:n,sdkVersion:wh.version}),r=document.createElement("div"),document.body.appendChild(r),o.renderPendingModal({i18nInstance:t,parentElement:r,onClose:i,onDisconnect:e,updateOTPValue:c,displayOTP:_}))};return g(),{mount:g,unmount:i,updateOTPValue:c}};function pR(e,t){var n,r,o,i;e.connector||(Ze("[RemoteConnection: initializeConnector()] initialize connector"),e.connector=new MF({platformType:t.platformManager.getPlatformType(),communicationLayerPreference:t.communicationLayerPreference,transports:t.transports,dappMetadata:Object.assign(Object.assign({},t.dappMetadata),{source:t._source}),analytics:t.enableAnalytics,communicationServerUrl:t.communicationServerUrl,sdkVersion:wh.version,context:"dapp",ecies:t.ecies,storage:t.storage,logging:t.logging}),t.timer&&(Ze("[RemoteConnection: initializeConnector()] reset background timer",t.timer),(r=(n=t.timer)===null||n===void 0?void 0:n.stopBackgroundTimer)===null||r===void 0||r.call(n),(i=(o=t.timer)===null||o===void 0?void 0:o.runBackgroundTimer)===null||i===void 0||i.call(o,()=>!1,1e4)))}function r7(e){e.listeners.forEach(({event:t,handler:n})=>{var r;(r=e.connector)===null||r===void 0||r.off(t,n)}),e.listeners=[]}function mq(e,t,n){return Zt(this,void 0,void 0,function*(){return new Promise((r,o)=>{if(!e.connector)return void o(new Error("No connector available"));Ze("[RemoteConnection: connectWithModalInstaller()]",{state:e,options:t,linkParams:n});const i=`${e.useDeeplink?pg:hg}?${n}`;(function(c,g,_){var w,S,E,T;c.installModal=(S=(w=g.modals).install)===null||S===void 0?void 0:S.call(w,{i18nInstance:g.sdk.i18nInstance,link:_,preferDesktop:c.preferDesktop,installer:g.getMetaMaskInstaller(),terminate:()=>{Ze("[RemoteConnection: showInstallModal() => terminate()] terminate connection"),g.sdk.terminate().catch(I=>{console.warn("[MMSDK] failed to terminate connection",I)})},debug:c.developerMode,connectWithExtension:()=>{var I;return(I=g.connectWithExtensionProvider)===null||I===void 0||I.call(g),!1}}),(T=(E=c.installModal)===null||E===void 0?void 0:E.mount)===null||T===void 0||T.call(E,_)})(e,t,i),t.sdk.once(Ie.EventType.PROVIDER_UPDATE,c=>Zt(this,void 0,void 0,function*(){Ze("[RemoteConnection: connectWithModalInstaller()] once provider_update -- resolving startConnection promise"),c!==Ie.PROVIDER_UPDATE_TYPE.TERMINATE?o(c):o({code:4001,message:"User rejected the request."})})),e.connector.once(Ie.EventType.AUTHORIZED,()=>{r()}),e.connector.once(Ie.EventType.CLIENTS_READY,()=>Zt(this,void 0,void 0,function*(){Ze("[RemoteConnection: connectWithModalInstaller()] once clients_ready -- resolving startConnection promise"),r()}))})})}function mR(e,t){function n(r,o){var i;(i=e.connector)===null||i===void 0||i.on(r,o),e.listeners.push({event:r,handler:o})}e.connector&&(r7(e),n(Ie.EventType.WALLET_INIT,({accounts:r,chainId:o})=>Zt(this,void 0,void 0,function*(){Ze(`[RemoteConnection: setupListeners() => EventType.WALLET_INIT] 'wallet_init' accounts=${r} chainId=${o}`);const i=$s.getProvider();i._setConnected();const c={accounts:r,chainId:o,isUnlocked:!1};i._initializeState(c),i.emit("chainChanged",o),i.emit("accountsChanged",r)})),n(Ie.EventType.AUTHORIZED,()=>Zt(this,void 0,void 0,function*(){var r,o,i,c,g;try{Ze("[RemoteConnection: setupListeners() => EventType.AUTHORIZED] 'authorized' closing modals",e.pendingModal,e.installModal),t.enableAnalytics&&((r=e.analytics)===null||r===void 0||r.send({event:ci.AUTHORIZED}));const _=$s.getProvider();_._setConnected(),(i=(o=e.pendingModal)===null||o===void 0?void 0:o.unmount)===null||i===void 0||i.call(o),(g=(c=e.installModal)===null||c===void 0?void 0:c.unmount)===null||g===void 0||g.call(c,!1),e.otpAnswer=void 0,e.authorized=!0,Ze("[RemoteConnection: setupListeners() => EventType.AUTHORIZED] 'authorized' provider.state",_.getState()),yield _.forceInitializeState()}catch{}})),n(Ie.EventType.TERMINATE,()=>{var r,o,i,c,g,_,w,S;!((r=e.connector)===null||r===void 0)&&r.isAuthorized()||t.enableAnalytics&&((o=e.analytics)===null||o===void 0||o.send({event:ci.REJECTED})),!((i=e.platformManager)===null||i===void 0)&&i.isBrowser()?alert("SDK Connection has been terminated from MetaMask."):console.info("SDK Connection has been terminated"),(g=(c=e.pendingModal)===null||c===void 0?void 0:c.unmount)===null||g===void 0||g.call(c),(w=(_=e.installModal)===null||_===void 0?void 0:_.unmount)===null||w===void 0||w.call(_,!0),e.pendingModal=void 0,e.installModal=void 0,e.otpAnswer=void 0,(S=e.connector)===null||S===void 0||S.disconnect({terminate:!0}),e.authorized=!1,$s.getProvider().handleDisconnect({terminate:!0}),r7(e),Ze("[RemoteConnection: setupListeners()] All listeners cleaned up")}))}function gq(e,t,{initialCheck:n,connectWith:r}={}){var o,i,c,g,_,w,S,E,T,I,j,H,V,ee,X,ue,le,pe,Me;return Zt(this,void 0,void 0,function*(){try{if(pR(e,t),!e.connector)throw new Error("no connector defined");mR(e,t);const ye=$s.getProvider();e.authorized=!1,ye.emit("connecting");const Te=yield(o=e.connector)===null||o===void 0?void 0:o.originatorSessionConnect();Ze(`[RemoteConnection: startConnection()] after originatorSessionConnect initialCheck=${n}`,Te);let y=(i=Te==null?void 0:Te.channelId)!==null&&i!==void 0?i:"",x=(g=(c=e.connector.getKeyInfo())===null||c===void 0?void 0:c.ecies.public)!==null&&g!==void 0?g:"",d=(w=(_=e.connector.getKeyInfo())===null||_===void 0?void 0:_.ecies.private)!==null&&w!==void 0?w:"";if(n&&!Te)return Promise.resolve();if(!Te&&!n){const q=yield e.connector.generateChannelIdConnect();y=(S=q.channelId)!==null&&S!==void 0?S:"",x=(E=q.pubKey)!==null&&E!==void 0?E:"",d=(T=q.privKey)!==null&&T!==void 0?T:"";const Y=Date.now();(I=e.connector.state.storageManager)===null||I===void 0||I.persistChannelConfig({channelId:y,localKey:d,lastActive:Y,validUntil:Y+Cp})}if(n&&(Te!=null&&Te.channelId))return!((j=e.connector)===null||j===void 0)&&j.isConnected()||(Ze(`[RemoteConnection: startConnection()] reconnecting to channel initialCheck=${n}`,Te),yield(H=e.connector)===null||H===void 0?void 0:H.connectToChannel({channelId:y})),Promise.resolve();Te&&!(!((V=e.connector)===null||V===void 0)&&V.isConnected())&&(Ze("[RemoteConnection: startConnection()] reconnecting to channel",Te),yield(ee=e.connector)===null||ee===void 0?void 0:ee.connectToChannel({channelId:y}));const p=!((X=e.platformManager)===null||X===void 0)&&X.isSecure()?"":"&t=q",h=wh.version,{iconUrl:f,name:l,url:b,scheme:C}=t.dappMetadata||{},R=(ue=e.platformManager)===null||ue===void 0?void 0:ue.getPlatformType();let L="N/A";typeof window<"u"&&window.location&&window.location.hostname?L=window.location.hostname:l!==void 0?L=l:b!==void 0&&(L=b);const B={url:b??"",title:l??"",icon:f,scheme:C??"",apiVersion:h,dappId:L,platform:R??"",source:(le=t._source)!==null&&le!==void 0?le:""},K=My(JSON.stringify(B));let z=`channelId=${y}&v=2&comm=${(pe=e.communicationLayerPreference)!==null&&pe!==void 0?pe:""}&pubkey=${x}${p}&originatorInfo=${K}`;if(r){z+=`&rpc=${My(JSON.stringify(r))}`;const q=e.connector.getRPCMethodTracker();q&&(q[`${r.id}`]=Object.assign(Object.assign({},r),{id:`${r.id}`,timestamp:Date.now()}))}const O=encodeURI(z),D=`${e.useDeeplink?pg:hg}?${z}`;return e.qrcodeLink=D,e.developerMode&&Ze(`[RemoteConnection: startConnection()] qrcodeLink=${O}`),ye.emit("display_uri",O),!((Me=e.platformManager)===null||Me===void 0)&&Me.isSecure()?(yield function(q,Y){var Q,ae;return Zt(this,void 0,void 0,function*(){const re=`${hg}?${Y}`,we=`${pg}?${Y}`;(ae=(Q=q.platformManager)===null||Q===void 0?void 0:Q.openDeeplink)===null||ae===void 0||ae.call(Q,re,we,"_self")})}(e,O),new Promise(q=>{var Y,Q;!((Y=e.connector)===null||Y===void 0)&&Y.isAuthorized()?q():(Q=e.connector)===null||Q===void 0||Q.once(Ie.EventType.AUTHORIZED,()=>{q()})})):mq(e,t,O)}catch(ye){throw console.error("[startConnection] error",ye),ye}})}class vq{constructor(t){var n,r,o,i;this.state={connector:void 0,qrcodeLink:void 0,analytics:void 0,developerMode:!1,authorized:!1,reconnection:!1,preferDesktop:!1,deeplinkProtocol:!1,listeners:[],communicationLayerPreference:void 0,platformManager:void 0,pendingModal:void 0,installModal:void 0,otpAnswer:void 0},this.options=t;const c=((n=t.logging)===null||n===void 0?void 0:n.developerMode)===!0||((r=t.logging)===null||r===void 0?void 0:r.sdk)===!0;this.state.developerMode=c,this.state.analytics=t.analytics,this.state.preferDesktop=(o=t.preferDesktop)!==null&&o!==void 0&&o,this.state.useDeeplink=t.sdk.options.useDeeplink,this.state.communicationLayerPreference=t.communicationLayerPreference,this.state.platformManager=t.platformManager,this.state.deeplinkProtocol=(i=t.sdk.options._experimentalDeeplinkProtocol)!==null&&i!==void 0&&i,t.modals.install||(t.modals.install=hq),t.modals.otp||(t.modals.otp=pq)}startConnection(t){return Zt(this,void 0,void 0,function*(){return gq(this.state,this.options,t)})}initRemoteCommunication({sdkInstance:t}){var n,r,o;return Zt(this,void 0,void 0,function*(){const i=yield(r=(n=t.options.storage)===null||n===void 0?void 0:n.storageManager)===null||r===void 0?void 0:r.getPersistedChannelConfig();if(!this.options.ecies){const c={privateKey:i==null?void 0:i.localKey};this.options.ecies=c}return pR(this.state,this.options),mR(this.state,this.options),(o=this.getConnector())===null||o===void 0?void 0:o.initFromDappStorage()})}showActiveModal(){return function(t){var n,r,o,i;t.authorized?Ze("[RemoteConnection: showActiveModal()] already authorized"):t.pendingModal?(r=(n=t.pendingModal).mount)===null||r===void 0||r.call(n):t.installModal&&((i=(o=t.installModal).mount)===null||i===void 0||i.call(o,t.qrcodeLink||""))}(this.state)}getUniversalLink(){if(!this.state.qrcodeLink)throw new Error("connection not started. run startConnection() first.");return this.state.qrcodeLink}getChannelConfig(){var t;return(t=this.state.connector)===null||t===void 0?void 0:t.getChannelConfig()}getKeyInfo(){var t;return(t=this.state.connector)===null||t===void 0?void 0:t.getKeyInfo()}getConnector(){if(!this.state.connector)throw new Error("invalid remote connector");return this.state.connector}getPlatformManager(){if(!this.state.platformManager)throw new Error("PlatformManager not available");return this.state.platformManager}isConnected(){var t;return((t=this.state.connector)===null||t===void 0?void 0:t.isReady())||!1}isAuthorized(){var t;return((t=this.state.connector)===null||t===void 0?void 0:t.isAuthorized())||!1}isPaused(){var t;return(t=this.state.connector)===null||t===void 0?void 0:t.isPaused()}disconnect(t){var n,r,o;Ze("[RemoteConnection: disconnect()]",t),t!=null&&t.terminate&&($s.getProvider().handleDisconnect({terminate:!0}),(r=(n=this.state.pendingModal)===null||n===void 0?void 0:n.unmount)===null||r===void 0||r.call(n),this.state.otpAnswer=void 0),(o=this.state.connector)===null||o===void 0||o.disconnect(t),function(i){Ze("[RemoteConnection: cleanupConnector()] cleaning up connector"),i.connector&&(r7(i),i.connector.disconnect({terminate:!0}))}(this.state)}}const bq=e=>Zt(void 0,void 0,void 0,function*(){const{options:t}=e,{infuraAPIKey:n}=t;if(!n)return;const r={"0x1":`https://mainnet.infura.io/v3/${n}`,"0x5":`https://goerli.infura.io/v3/${n}`,"0x2a":`https://sepolia.infura.io/v3/${n}`,"0xe708":`https://linea-mainnet.infura.io/v3/${n}`,"0xe704":`https://linea-goerli.infura.io/v3/${n}`,"0x89":`https://polygon-mainnet.infura.io/v3/${n}`,"0x13881":`https://polygon-mumbai.infura.io/v3/${n}`,"0x45":`https://optimism-mainnet.infura.io/v3/${n}`,"0x1a4":`https://optimism-goerli.infura.io/v3/${n}`,"0xa4b1":`https://arbitrum-mainnet.infura.io/v3/${n}`,"0x66eed":`https://arbitrum-goerli.infura.io/v3/${n}`,"0x2a15c308d":`https://palm-mainnet.infura.io/v3/${n}`,"0x2a15c3083":`https://palm-testnet.infura.io/v3/${n}`,"0xa86a":`https://avalanche-mainnet.infura.io/v3/${n}`,"0xa869":`https://avalanche-fuji.infura.io/v3/${n}`,"0x4e454152":`https://aurora-mainnet.infura.io/v3/${n}`,"0x4e454153":`https://aurora-testnet.infura.io/v3/${n}`,"0x534e5f4d41494e":`https://starknet-mainnet.infura.io/v3/${n}`,"0x534e5f474f45524c49":`https://starknet-goerli.infura.io/v3/${n}`,"0x534e5f474f45524c4932":`https://starknet-goerli2.infura.io/v3/${n}`,"0xa4ec":`https://celo-mainnet.infura.io/v3/${n}`,"0xaef3":`https://celo-alfajores.infura.io/v3/${n}`};e.options.readonlyRPCMap?e.options.readonlyRPCMap=Object.assign(Object.assign({},e.options.readonlyRPCMap),r):e.options.readonlyRPCMap=r}),yq=e=>Zt(void 0,void 0,void 0,function*(){const{options:t}=e,{readonlyRPCMap:n}=t;if(n)try{Ze("[MetaMaskSDK: setupReadOnlyRPCProviders()] Setting up Readonly RPC Providers",n),e.setReadOnlyRPCCalls(!0)}catch{throw new Error("Invalid Infura Settings")}});function mg(e){return mg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mg(e)}function wq(e){var t=function(n,r){if(mg(n)!=="object"||n===null)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r);if(mg(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(e,"string");return mg(t)==="symbol"?t:String(t)}function _q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wq(r.key),r)}}var gR=[],Sq=gR.forEach,Eq=gR.slice,vR=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,kq=function(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*n*1e3)),r&&(o.domain=r),document.cookie=function(i,c,g){var _=g||{};_.path=_.path||"/";var w=encodeURIComponent(c),S="".concat(i,"=").concat(w);if(_.maxAge>0){var E=_.maxAge-0;if(Number.isNaN(E))throw new Error("maxAge should be a Number");S+="; Max-Age=".concat(Math.floor(E))}if(_.domain){if(!vR.test(_.domain))throw new TypeError("option domain is invalid");S+="; Domain=".concat(_.domain)}if(_.path){if(!vR.test(_.path))throw new TypeError("option path is invalid");S+="; Path=".concat(_.path)}if(_.expires){if(typeof _.expires.toUTCString!="function")throw new TypeError("option expires is invalid");S+="; Expires=".concat(_.expires.toUTCString())}if(_.httpOnly&&(S+="; HttpOnly"),_.secure&&(S+="; Secure"),_.sameSite)switch(typeof _.sameSite=="string"?_.sameSite.toLowerCase():_.sameSite){case!0:S+="; SameSite=Strict";break;case"lax":S+="; SameSite=Lax";break;case"strict":S+="; SameSite=Strict";break;case"none":S+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return S}(e,encodeURIComponent(t),o)},Mq=function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},Cq={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&typeof document<"u"){var n=Mq(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&typeof document<"u"&&kq(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},xq={name:"querystring",lookup:function(e){var t;if(typeof window<"u"){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1).split("&"),o=0;o<r.length;o++){var i=r[o].indexOf("=");i>0&&r[o].substring(0,i)===e.lookupQuerystring&&(t=r[o].substring(i+1))}}return t}},gg=null,bR=function(){if(gg!==null)return gg;try{gg=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{gg=!1}return gg},Aq={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&bR()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&bR()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},vg=null,yR=function(){if(vg!==null)return vg;try{vg=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{vg=!1}return vg},Rq={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&yR()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&yR()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},Tq={name:"navigator",lookup:function(e){var t=[];if(typeof navigator<"u"){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},Pq={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(t=n.getAttribute("lang")),t}},Lq={name:"path",lookup:function(e){var t;if(typeof window<"u"){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof n[e.lookupFromPathIndex]!="string")return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},Iq={name:"subdomain",lookup:function(e){var t=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,n=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[t]}},wR=function(){function e(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(function(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")})(this,e),this.type="languageDetector",this.detectors={},this.init(r,o)}var t,n;return t=e,n=[{key:"init",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=r||{languageUtils:{}},this.options=function(c){return Sq.call(Eq.call(arguments,1),function(g){if(g)for(var _ in g)c[_]===void 0&&(c[_]=g[_])}),c}(o,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(c){return c}}),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(c){return c.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(Cq),this.addDetector(xq),this.addDetector(Aq),this.addDetector(Rq),this.addDetector(Tq),this.addDetector(Pq),this.addDetector(Lq),this.addDetector(Iq)}},{key:"addDetector",value:function(r){this.detectors[r.name]=r}},{key:"detect",value:function(r){var o=this;r||(r=this.options.order);var i=[];return r.forEach(function(c){if(o.detectors[c]){var g=o.detectors[c].lookup(o.options);g&&typeof g=="string"&&(g=[g]),g&&(i=i.concat(g))}}),i=i.map(function(c){return o.options.convertDetectedLanguage(c)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(r,o){var i=this;o||(o=this.options.caches),o&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(r)>-1||o.forEach(function(c){i.detectors[c]&&i.detectors[c].cacheUserLanguage(r,i.options)}))}}],n&&_q(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();wR.type="languageDetector";var _R={DESKTOP:"Desktop",MOBILE:"Mobile",META_MASK_MOBILE_APP:"MetaMask mobile app",SCAN_TO_CONNECT:"Scan to connect and sign with",CONNECT_WITH_EXTENSION:"Connect With MetaMask Extension",INSTALL_MODAL:{TRUSTED_BY_USERS:"Trusted by over 30 million users to buy, store, send and swap crypto securely",LEADING_CRYPTO_WALLET:"The leading crypto wallet & gateway to blockchain apps built on Ethereum Mainnet, Polygon, Optimism, and many other networks",CONTROL_DIGITAL_INTERACTIONS:"Puts you in control of your digital interactions by making power of cryptography more accessible",INSTALL_META_MASK_EXTENSION:"Install MetaMask Extension"},PENDING_MODAL:{OPEN_META_MASK_SELECT_CODE:"Please open the MetaMask wallet app and select the code on the screen OR disconnect",OPEN_META_MASK_CONTINUE:"Open the MetaMask app to continue with your session.",NUMBER_AFTER_OPEN_NOTICE:"If a number doesn't appear after opening MetaMask, please click disconnect and re-scan the QRCode.",DISCONNECT:"Disconnect"},SELECT_MODAL:{CRYPTO_TAKE_CONTROL_TEXT:"Take control of your crypto and explore the blockchain with the wallet trusted by over 30 million people worldwide"},META_MASK_MODAL:{ADDRESS_COPIED:"Address copied to clipboard!",DISCONNECT:"Disconnect",ACTIVE_NETWORK:"Active Network"}},Oq={DESKTOP:"Escritorio",MOBILE:"Móvil",META_MASK_MOBILE_APP:"Aplicación móvil de MetaMask",SCAN_TO_CONNECT:"Escanear para conectar y firmar con",CONNECT_WITH_EXTENSION:"Conectar con la Extensión de MetaMask",INSTALL_MODAL:{TRUSTED_BY_USERS:"Confiado por más de 30 millones de usuarios para comprar, almacenar, enviar e intercambiar cripto de manera segura",LEADING_CRYPTO_WALLET:"La principal billetera de criptomonedas y pasarela hacia aplicaciones blockchain construidas en Ethereum Mainnet, Polygon, Optimism y muchas otras redes",CONTROL_DIGITAL_INTERACTIONS:"Te da el control de tus interacciones digitales al hacer que el poder de la criptografía sea más accesible",INSTALL_META_MASK_EXTENSION:"Instalar la Extensión de MetaMask"},PENDING_MODAL:{OPEN_META_MASK_SELECT_CODE:"Por favor, abre la aplicación de billetera MetaMask y selecciona el código en la pantalla O desconecta",OPEN_META_MASK_CONTINUE:"Abre la aplicación de MetaMask para continuar con tu sesión.",NUMBER_AFTER_OPEN_NOTICE:"Si no aparece un número después de abrir MetaMask, por favor haz clic en desconectar y vuelve a escanear el código QR.",DISCONNECT:"Desconectar"},SELECT_MODAL:{CRYPTO_TAKE_CONTROL_TEXT:"Toma el control de tu cripto y explora la blockchain con la billetera en la que confían más de 30 millones de personas en todo el mundo"},META_MASK_MODAL:{ADDRESS_COPIED:"¡Dirección copiada al portapapeles!",DISCONNECT:"Desconectar",ACTIVE_NETWORK:"Red activa"}},Nq={DESKTOP:"Bureau",MOBILE:"Mobile",META_MASK_MOBILE_APP:"Application mobile MetaMask",SCAN_TO_CONNECT:"Scannez pour vous connecter et signer avec",CONNECT_WITH_EXTENSION:"Connectez-vous avec l'extension MetaMask",INSTALL_MODAL:{TRUSTED_BY_USERS:"Fait confiance à plus de 30 millions d'utilisateurs pour acheter, stocker, envoyer et échanger des crypto en toute sécurité",LEADING_CRYPTO_WALLET:"Le portefeuille crypto leader et la passerelle vers des applications blockchain basées sur Ethereum Mainnet, Polygon, Optimism, et de nombreux autres réseaux",CONTROL_DIGITAL_INTERACTIONS:"Vous donne le contrôle de vos interactions numériques en rendant la puissance de la cryptographie plus accessible",INSTALL_META_MASK_EXTENSION:"Installez l'extension MetaMask"},PENDING_MODAL:{OPEN_META_MASK_SELECT_CODE:"Veuillez ouvrir l'application MetaMask et sélectionnez le code à l'écran OU déconnectez-vous",OPEN_META_MASK_CONTINUE:"Ouvrez l'application MetaMask pour continuer votre session.",NUMBER_AFTER_OPEN_NOTICE:"Si un numéro n'apparaît pas après avoir ouvert MetaMask, veuillez cliquer sur déconnecter et rescanner le QRCode.",DISCONNECT:"Déconnecter"},SELECT_MODAL:{CRYPTO_TAKE_CONTROL_TEXT:"Prenez le contrôle de votre crypto et explorez la blockchain avec le portefeuille fait confiance par plus de 30 millions de personnes à travers le monde"},META_MASK_MODAL:{ADDRESS_COPIED:"Adresse copiée dans le presse-papiers!",DISCONNECT:"Déconnecter",ACTIVE_NETWORK:"Réseau actif"}},Dq={DESKTOP:"שולחן עבודה",MOBILE:"נייד",META_MASK_MOBILE_APP:"אפליקציית מטא מאסק לנייד",SCAN_TO_CONNECT:"סרוק כדי להתחבר ולחתום עם",CONNECT_WITH_EXTENSION:"התחבר עם התוסף של מטא מאסק",INSTALL_MODAL:{TRUSTED_BY_USERS:"מהימנים על ידי למעלה מ-30 מיליון משתמשים לקנות, לאחסן, לשלוח ולהחליף מטבע קריפטוגרפי בבטחה",LEADING_CRYPTO_WALLET:"ארנק הקריפטו המוביל והשער ליישומי בלוקצ'יין המתוכנתים על אתריום, פוליגון, ורשתות רבות נוספות",CONTROL_DIGITAL_INTERACTIONS:"מכניס אותך לשליטה על האינטראקציות הדיגיטליות שלך על ידי הפיכת כוח הקריפטוגרפיה לנגיש יותר",INSTALL_META_MASK_EXTENSION:"התקן את ההרחבה של מטא מאסק"},PENDING_MODAL:{OPEN_META_MASK_SELECT_CODE:"אנא פתח את אפליקציית ארנק מטא מאסק ובחר את הקוד שמופיע על המסך או התנתק",OPEN_META_MASK_CONTINUE:"פתח את האפליקציה של מטא מאסק כדי להמשיך בפעולה שלך.",NUMBER_AFTER_OPEN_NOTICE:"אם מספר אינו מופיע לאחר פתיחת מטא מאסק, אנא לחץ על התנתקות וסרוק מחדש את ה-QRCode.",DISCONNECT:"התנתק"},SELECT_MODAL:{CRYPTO_TAKE_CONTROL_TEXT:"קח שליטה על הקריפטו שלך וחקור את הבלוקצ'יין עם הארנק האמין שבשימוש על ידי למעלה מ-30 מיליון אנשים ברחבי העולם"},META_MASK_MODAL:{ADDRESS_COPIED:"הכתובת הועתקה ללוח!",DISCONNECT:"התנתק",ACTIVE_NETWORK:"רשת פעילה"}},Bq={DESKTOP:"Desktop",MOBILE:"Mobile",META_MASK_MOBILE_APP:"App mobile MetaMask",SCAN_TO_CONNECT:"Scansiona per connetterti e firmare con",CONNECT_WITH_EXTENSION:"Connettiti con l'estensione MetaMask",INSTALL_MODAL:{TRUSTED_BY_USERS:"Ritenuto affidabile da oltre 30 milioni di utenti per acquistare, conservare, inviare e scambiare cripto in modo sicuro",LEADING_CRYPTO_WALLET:"Il principale portafoglio cripto e gateway per applicazioni blockchain funzionanti su Ethereum Mainnet, Polygon, Optimism e molte altre reti",CONTROL_DIGITAL_INTERACTIONS:"Ti da il controllo delle tue interazioni digitali rendendo piu' accessibile il potere della crittografia",INSTALL_META_MASK_EXTENSION:"Installa l'estensione MetaMask"},PENDING_MODAL:{OPEN_META_MASK_SELECT_CODE:"Si prega di aprire l'app mobile MetaMask Wallet e selezionare il codice sullo schermo OPPURE scollegarsi",OPEN_META_MASK_CONTINUE:"Apri l'app mobile MetaMask per continuare con la tua sessione.",NUMBER_AFTER_OPEN_NOTICE:"Se, dopo aver aperto MetaMask, non appare alcun numero, si prega di fare clic su disconnetti e ris canzionare il QRCode.",DISCONNECT:"Disconnetti"},SELECT_MODAL:{CRYPTO_TAKE_CONTROL_TEXT:"Prendi il controllo delle tue cripto e esplora la blockchain con il portafoglio ritenuto affidabile da oltre 30 milioni di persone in tutto il mondo"},META_MASK_MODAL:{ADDRESS_COPIED:"Indirizzo copiato negli appunti!",DISCONNECT:"Disconnetti",ACTIVE_NETWORK:"Rete attiva"}},jq={DESKTOP:"Desktop",MOBILE:"Móvel",META_MASK_MOBILE_APP:"Aplicativo móvel MetaMask",SCAN_TO_CONNECT:"Escanear para conectar e assinar com",CONNECT_WITH_EXTENSION:"Conectar com a extensão MetaMask",INSTALL_MODAL:{TRUSTED_BY_USERS:"Confiado por mais de 30 milhões de usuários para comprar, armazenar, enviar e trocar cripto com segurança",LEADING_CRYPTO_WALLET:"A principal carteira de cripto & portal para aplicativos blockchain construídos em Ethereum Mainnet, Polygon, Optimism, e muitas outras redes",CONTROL_DIGITAL_INTERACTIONS:"Coloca você no controle de suas interações digitais, tornando o poder da criptografia mais acessível",INSTALL_META_MASK_EXTENSION:"Instalar a extensão MetaMask"},PENDING_MODAL:{OPEN_META_MASK_SELECT_CODE:"Por favor, abra o aplicativo MetaMask e selecione o código na tela OU desconecte",OPEN_META_MASK_CONTINUE:"Abra o aplicativo MetaMask para continuar sua sessão.",NUMBER_AFTER_OPEN_NOTICE:"Se um número não aparecer após abrir o MetaMask, por favor clique em desconectar e re-escaneie o QRCode.",DISCONNECT:"Desconectar"},SELECT_MODAL:{CRYPTO_TAKE_CONTROL_TEXT:"Assuma o controle de sua cripto e explore a blockchain com a carteira confiada por mais de 30 milhões de pessoas em todo o mundo"},META_MASK_MODAL:{ADDRESS_COPIED:"Endereço copiado para a área de transferência!",DISCONNECT:"Desconectar",ACTIVE_NETWORK:"Rede ativa"}},zq={DESKTOP:"Masaüstü",MOBILE:"Mobil",META_MASK_MOBILE_APP:"MetaMask mobil uygulama",SCAN_TO_CONNECT:"Bağlanmak ve imzalamak için tarayın",CONNECT_WITH_EXTENSION:"MetaMask Eklentisi ile Bağlan",INSTALL_MODAL:{TRUSTED_BY_USERS:"Kriptoyu güvenle satın almak, saklamak, göndermek ve değiştirmek için 30 milyondan fazla kullanıcı tarafından güvenilir",LEADING_CRYPTO_WALLET:"Ethereum Ana Ağı, Polygon, Optimism ve birçok diğer ağda kurulu blockchain uygulamalarına erişim sağlayan öncü kripto cüzdanı",CONTROL_DIGITAL_INTERACTIONS:"Kriptografinin gücünü daha erişilebilir kılarak dijital etkileşimlerinizin kontrolünü size verir",INSTALL_META_MASK_EXTENSION:"MetaMask Eklentisini Yükleyin"},PENDING_MODAL:{OPEN_META_MASK_SELECT_CODE:"Lütfen MetaMask cüzdan uygulamasını açın ve ekrandaki kodu seçin YA DA bağlantıyı kesin",OPEN_META_MASK_CONTINUE:"Oturumunuzla devam etmek için MetaMask uygulamasını açın.",NUMBER_AFTER_OPEN_NOTICE:"MetaMask'ı açtıktan sonra bir numara görünmezse, lütfen bağlantıyı kesin ve QR Kodunu tekrar tarayın.",DISCONNECT:"Bağlantıyı Kes"},SELECT_MODAL:{CRYPTO_TAKE_CONTROL_TEXT:"Kriptonuzu kontrol edin ve dünya genelinde 30 milyondan fazla kişi tarafından güvenilen cüzdanla blockchain'i keşfedin"},META_MASK_MODAL:{ADDRESS_COPIED:"Adres panoya kopyalandı!",DISCONNECT:"Bağlantıyı Kes",ACTIVE_NETWORK:"Aktif Ağ"}};function Uq(e){var t,n,r,o,i,c,g,_,w,S,E,T;return Zt(this,void 0,void 0,function*(){const{options:I}=e;I.logging=(t=I.logging)!==null&&t!==void 0?t:{},I.communicationLayerPreference=(n=I.communicationLayerPreference)!==null&&n!==void 0?n:Ie.CommunicationLayerPreference.SOCKET,I.enableDebug!==void 0&&(iy.enable("MM_SDK"),console.warn("enableDebug is removed. Please use enableAnalytics instead.")),I.enableAnalytics=(r=I.enableAnalytics)===null||r===void 0||r,I.injectProvider=(o=I.injectProvider)===null||o===void 0||o,I.shouldShimWeb3=(i=I.shouldShimWeb3)===null||i===void 0||i,I.extensionOnly=(c=I.extensionOnly)===null||c===void 0||c,I.useDeeplink=(g=I.useDeeplink)!==null&&g!==void 0&&g,I._experimentalDeeplinkProtocol=(_=I._experimentalDeeplinkProtocol)!==null&&_!==void 0&&_,I.storage=(w=I.storage)!==null&&w!==void 0?w:{enabled:!0};const j=((S=I.logging)===null||S===void 0?void 0:S.developerMode)===!0;e.debug=((E=I.logging)===null||E===void 0?void 0:E.sdk)||j,Ze("[MetaMaskSDK: performSDKInitialization()] options",e.options);const H=Object.assign({},I.logging);j&&(H.sdk=!0,H.eciesLayer=!0,H.keyExchangeLayer=!0,H.remoteLayer=!0,H.serviceLayer=!0,H.plaintext=!0),yield function(ue){var le,pe,Me;return Zt(this,void 0,void 0,function*(){const ye=(le=ue.options.i18nOptions)!==null&&le!==void 0?le:{},Te=ye.enabled;yield ue.i18nInstance.use(wR).init({debug:(pe=ye.debug)!==null&&pe!==void 0&&pe,compatibilityJSON:"v3",fallbackLng:"en",interpolation:{escapeValue:!1},resources:Te?{en:{translation:_R},es:{translation:Oq},it:{translation:Bq},fr:{translation:Nq},pt:{translation:jq},tr:{translation:zq},he:{translation:Dq}}:{en:{translation:_R}},detection:{order:["localStorage","navigator"],lookupLocalStorage:"MetaMaskSDKLng",caches:["localStorage"]}}),ue.availableLanguages=Object.keys((Me=ue.i18nInstance.services.resourceStore.data)!==null&&Me!==void 0?Me:{})})}(e),yield function(ue){var le;return Zt(this,void 0,void 0,function*(){const{options:pe}=ue;ue.platformManager=new tq({useDeepLink:(le=pe.useDeeplink)!==null&&le!==void 0&&le,preferredOpenLink:pe.openDeeplink,debug:ue.debug})})}(e),yield function(ue){var le,pe,Me,ye,Te,y,x,d,p;return Zt(this,void 0,void 0,function*(){const{options:h}=ue,f=(le=ue.platformManager)===null||le===void 0?void 0:le.getPlatformType();ue.analytics=new $K({serverUrl:(pe=h.communicationServerUrl)!==null&&pe!==void 0?pe:_d,enabled:h.enableAnalytics,originatorInfo:{url:(Me=h.dappMetadata.url)!==null&&Me!==void 0?Me:"",title:(ye=h.dappMetadata.name)!==null&&ye!==void 0?ye:"",dappId:typeof window>"u"||window.location===void 0?(d=(y=(Te=h.dappMetadata)===null||Te===void 0?void 0:Te.name)!==null&&y!==void 0?y:(x=h.dappMetadata)===null||x===void 0?void 0:x.url)!==null&&d!==void 0?d:"N/A":window.location.hostname,platform:f??"",source:(p=h._source)!==null&&p!==void 0?p:""}})})}(e),yield function(ue){var le;return Zt(this,void 0,void 0,function*(){const{options:pe}=ue;((le=pe.storage)===null||le===void 0?void 0:le.enabled)!==!0||pe.storage.storageManager||(pe.storage.storageManager=_A(pe.storage))})}(e),yield function(ue){return Zt(this,void 0,void 0,function*(){const{options:le}=ue,pe=/^(http|https):\/\/[^\s]*$/;if(le.dappMetadata){le.dappMetadata.iconUrl&&!pe.test(le.dappMetadata.iconUrl)&&(console.warn("Invalid dappMetadata.iconUrl: URL must start with http:// or https://"),le.dappMetadata.iconUrl=void 0),le.dappMetadata.base64Icon&&le.dappMetadata.base64Icon.length>YK&&(console.warn("Invalid dappMetadata.base64Icon: Base64-encoded icon string length must be less than 163400 characters"),le.dappMetadata.base64Icon=void 0),le.dappMetadata.url&&!pe.test(le.dappMetadata.url)&&console.warn("Invalid dappMetadata.url: URL must start with http:// or https://");const Me=VK();if(Me&&!le.dappMetadata.iconUrl&&!le.dappMetadata.base64Icon){const ye=`${window.location.protocol}//${window.location.host}${Me}`;le.dappMetadata.iconUrl=ye}}ue.dappMetadata=le.dappMetadata})}(e),yield bq(e),yield yq(e);const{metamaskBrowserExtension:V,preferExtension:ee,shouldReturn:X}=yield function(ue){var le,pe,Me,ye;return Zt(this,void 0,void 0,function*(){const{options:Te}=ue;let y,x=!1,d=!1;if(typeof window<"u"&&window.ethereum&&!(!((le=ue.platformManager)===null||le===void 0)&&le.isMetaMaskMobileWebView())){x=localStorage.getItem(by)==="extension";try{y=yield eq({mustBeMetaMask:!0,sdkInstance:ue}),window.extension=y,y.on(ll.CHAIN_CHANGED,p=>{Ze(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE chainChanged chainId=${p}`),ue.sdkProvider&&ue.getMobileProvider().emit(ll.CHAIN_CHANGED,p)}),y.on(ll.ACCOUNTS_CHANGED,p=>{Ze(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE accountsChanged accounts=${p}`);const h=!!ue.sdkProvider,f=!!ue.extensionActive;h&&ue.getMobileProvider().emit(ll.ACCOUNTS_CHANGED,p),f&&(p==null?void 0:p.length)===0&&ue.terminate().catch(l=>{Ze("[MetaMaskSDK: setupExtensionPreferences()] Error terminating",l)})}),y.on(ll.DISCONNECT,p=>{Ze(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE disconnect error=${p}`),ue.sdkProvider&&ue.getMobileProvider().emit(ll.DISCONNECT,p)}),y.on(ll.CONNECT,p=>{Ze(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE connect args=${p}`),ue.sdkProvider&&ue.getMobileProvider().emit(ll.CONNECT,p)}),y.on(ll.CONNECTED,p=>{Ze("[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE connected",p),ue.sdkProvider&&ue.getMobileProvider().emit(ll.CONNECTED,p)})}catch{window.extension=void 0}}else!((pe=ue.platformManager)===null||pe===void 0)&&pe.isMetaMaskMobileWebView()&&((Me=ue.analytics)===null||Me===void 0||Me.send({event:ci.SDK_USE_INAPP_BROWSER}),ue.activeProvider=Ry({provider:window.ethereum,sdkInstance:ue}),ue._initialized=!0,d=!0);return y&&Te.extensionOnly&&(Ze("[MetaMaskSDK: setupExtensionPreferences()] EXTENSION ONLY --- prevent sdk initialization"),(ye=ue.analytics)===null||ye===void 0||ye.send({event:ci.SDK_USE_EXTENSION}),ue.activeProvider=y,ue.extensionActive=!0,ue.extension=y,ue._initialized=!0,d=!0),{preferExtension:x,shouldReturn:d,metamaskBrowserExtension:y}})}(e);if(X)Ze("[MetaMaskSDK: performSDKInitialization()] shouldReturn=true --- prevent sdk initialization");else{yield function(ue,le){var pe,Me,ye,Te,y;return Zt(this,void 0,void 0,function*(){const{options:x}=ue,d=Object.assign({},x.logging);ue.remoteConnection=new vq({i18nInstance:ue.i18nInstance,preferDesktop:(pe=x.preferDesktop)!==null&&pe!==void 0&&pe,communicationLayerPreference:(Me=x.communicationLayerPreference)!==null&&Me!==void 0?Me:Ie.CommunicationLayerPreference.SOCKET,analytics:ue.analytics,dappMetadata:x.dappMetadata,_source:x._source,enableAnalytics:(ye=x.enableAnalytics)===null||ye===void 0||ye,timer:x.timer,sdk:ue,platformManager:ue.platformManager,transports:x.transports,communicationServerUrl:x.communicationServerUrl,storage:(Te=x.storage)!==null&&Te!==void 0?Te:{enabled:!0},getMetaMaskInstaller:()=>{if(!ue.installer)throw new Error("Invalid SDK status -- installer not initialized");return ue.installer},logging:d,connectWithExtensionProvider:le===void 0?void 0:()=>BA(ue),modals:Object.assign(Object.assign({},x.modals),{onPendingModalDisconnect:ue.terminate.bind(ue)})}),yield ue.remoteConnection.initRemoteCommunication({sdkInstance:ue}),ue.installer=new aq({remote:ue.remoteConnection,preferDesktop:(y=x.preferDesktop)!==null&&y!==void 0&&y,platformManager:ue.platformManager,debug:ue.debug})})}(e,V),yield HK(e),yield function(ue,le){var pe,Me;return Zt(this,void 0,void 0,function*(){const{options:ye}=ue;le?(Ze("[MetaMaskSDK: handleAutoAndExtensionConnections()] preferExtension is detected -- connect with it."),(pe=ue.analytics)===null||pe===void 0||pe.send({event:ci.SDK_EXTENSION_UTILIZED}),BA(ue).catch(Te=>{console.warn("Can't connect with MetaMask extension...",Te),localStorage.removeItem(by)})):ye.checkInstallationImmediately&&(!((Me=ue.platformManager)===null||Me===void 0)&&Me.isDesktopWeb()?(Ze("[MetaMaskSDK: handleAutoAndExtensionConnections()] checkInstallationImmediately"),ue.connect().catch(Te=>{Ze(`[MetaMaskSDK: handleAutoAndExtensionConnections()] checkInstallationImmediately --- IGNORED --- error on autoconnect _err=${Te}`)})):console.warn("[handleAutoAndExtensionConnections()] checkInstallationImmediately --- IGNORED --- only for web desktop")),ue._initialized=!0})}(e,ee);try{yield(T=e.remoteConnection)===null||T===void 0?void 0:T.startConnection({initialCheck:!0})}catch(ue){console.error("[MetaMaskSDK: setupRemoteConnectionAndInstaller()] Error while checking installation",ue)}e.emit(Ie.EventType.PROVIDER_UPDATE,Ie.PROVIDER_UPDATE_TYPE.INITIALIZED)}})}class SR extends SK{constructor(t={storage:{enabled:!0},injectProvider:!0,forceInjectProvider:!1,enableAnalytics:!0,shouldShimWeb3:!0,useDeeplink:!0,extensionOnly:!0,dappMetadata:{name:"",url:"",iconUrl:""},_source:NA,i18nOptions:{enabled:!1}}){var n,r,o,i;super(),this.extensionActive=!1,this._initialized=!1,this.sdkInitPromise=void 0,this.debug=!1,this.readonlyRPCCalls=!1,this.i18nInstance=BK(),this.availableLanguages=["en"],iy.disable();const c=((n=t.logging)===null||n===void 0?void 0:n.developerMode)===!0;if((!((r=t.logging)===null||r===void 0)&&r.sdk||c)&&iy.enable("MM_SDK"),Ze("[MetaMaskSDK: constructor()]: begin."),this.setMaxListeners(50),!(!((o=t.dappMetadata)===null||o===void 0)&&o.name)&&!(!((i=t.dappMetadata)===null||i===void 0)&&i.url)){if(typeof window>"u"||typeof document>"u")throw new Error("You must provide dAppMetadata option (name and/or url)");t.dappMetadata={url:window.location.href,name:document.title}}this.options=t,this.options._source||(t._source=NA),this.init().then(()=>{Ze("[MetaMaskSDK: constructor()]: initialized successfully."),typeof window<"u"&&(window.mmsdk=this)}).catch(g=>{console.error("[MetaMaskSDK: constructor()] error during initialization",g)})}init(){return Zt(this,void 0,void 0,function*(){return function(t){var n;return Zt(this,void 0,void 0,function*(){if(typeof window<"u"&&(!((n=window.mmsdk)===null||n===void 0)&&n.isInitialized()))return Ze("[MetaMaskSDK: initializeMetaMaskSDK()] already initialized"),Promise.resolve(window.mmsdk);if(t._initialized)return Ze("[MetaMaskSDK: initializeMetaMaskSDK()] already initialized"),t.sdkInitPromise;if(t.sdkInitPromise)return Ze("[MetaMaskSDK: initializeMetaMaskSDK()] already initializing"),t.sdkInitPromise;try{t.sdkInitPromise=Uq(t),yield t.sdkInitPromise}catch(r){throw console.error(r),r}return t.sdkInitPromise})}(this)})}isExtensionActive(){return this.extensionActive}connect(){return Zt(this,void 0,void 0,function*(){return function(t){return Zt(this,void 0,void 0,function*(){if(t._initialized||(Ze("[MetaMaskSDK: connect()] provider not ready -- wait for init()"),yield t.init()),Ze(`[MetaMaskSDK: connect()] isExtensionActive=${t.isExtensionActive()} activeProvider`,t.activeProvider),!t.activeProvider)throw new Error("SDK state invalid -- undefined provider");return t.activeProvider.request({method:vn.ETH_REQUESTACCOUNTS,params:[]})})}(this)})}connectAndSign({msg:t}){return Zt(this,void 0,void 0,function*(){return function({instance:n,msg:r}){return Zt(this,void 0,void 0,function*(){if(n._initialized||(Ze("[MetaMaskSDK: connectAndSign()] provider not ready -- wait for init()"),yield n.init()),Ze(`[MetaMaskSDK: connectAndSign()] activeProvider=${n.activeProvider}`),!n.activeProvider)throw new Error("SDK state invalid -- undefined provider");return n.activeProvider.request({method:vn.METAMASK_CONNECTWITH,params:[{method:vn.PERSONAL_SIGN,params:[r]}]})})}({instance:this,msg:t})})}connectWith(t){return Zt(this,void 0,void 0,function*(){return function({instance:n,rpc:r}){return Zt(this,void 0,void 0,function*(){if(n._initialized||(Ze("[MetaMaskSDK: connectWith()] provider not ready -- wait for init()"),yield n.init()),Ze(`[MetaMaskSDK: connectWith()] method: ${r.method} rpc=${r}`),!n.activeProvider)throw new Error("SDK state invalid -- undefined provider");return n.activeProvider.request({method:vn.METAMASK_CONNECTWITH,params:[r]})})}({instance:this,rpc:t})})}resume(){return function(t){var n,r,o;return Zt(this,void 0,void 0,function*(){if(!(!((r=(n=t.remoteConnection)===null||n===void 0?void 0:n.getConnector())===null||r===void 0)&&r.isReady()))return Ze("[MetaMaskSDK: resume()] channel is not ready -- starting connection"),void((o=t.remoteConnection)===null||o===void 0||o.startConnection());Ze("[MetaMaskSDK: resume()] channel is ready")})}(this)}disconnect(){return console.warn("MetaMaskSDK.disconnect() is deprecated, use terminate()"),this.terminate()}isAuthorized(){var t;(t=this.remoteConnection)===null||t===void 0||t.isAuthorized()}terminate(){return function(t){var n,r,o;return Zt(this,void 0,void 0,function*(){if(!(!((n=t.platformManager)===null||n===void 0)&&n.isMetaMaskMobileWebView())){if(zK&&(window.localStorage.removeItem(by),window.localStorage.removeItem($5),window.localStorage.removeItem(W5)),t.extensionActive){try{yield(r=t.activeProvider)===null||r===void 0?void 0:r.request({method:vn.WALLET_REVOKEPERMISSIONS,params:[{eth_accounts:{}}]})}catch(i){Ze("[MetaMaskSDK: terminate()] error revoking permissions",i)}return t.options.extensionOnly?void Ze("[MetaMaskSDK: terminate()] extensionOnly --- prevent switching providers"):(t.activeProvider=t.sdkProvider,window.ethereum=t.activeProvider,t.extensionActive=!1,void t.emit(Ie.EventType.PROVIDER_UPDATE,Ie.PROVIDER_UPDATE_TYPE.TERMINATE))}t.emit(Ie.EventType.PROVIDER_UPDATE,Ie.PROVIDER_UPDATE_TYPE.TERMINATE),Ze(`[MetaMaskSDK: terminate()] remoteConnection=${t.remoteConnection}`),(o=t.remoteConnection)===null||o===void 0||o.disconnect({terminate:!0,sendMessage:!0})}})}(this)}isInitialized(){return this._initialized}setReadOnlyRPCCalls(t){this.readonlyRPCCalls=t}hasReadOnlyRPCCalls(){return this.readonlyRPCCalls}getProvider(){if(this.activeProvider)return this.activeProvider;console.warn("MetaMaskSDK: No active provider found")}getMobileProvider(){if(!this.sdkProvider)throw new Error("SDK state invalid -- undefined mobile provider");return this.sdkProvider}getUniversalLink(){var t;const n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getUniversalLink();if(!n)throw new Error("No Universal Link available, please call eth_requestAccounts first.");return n}getChannelId(){var t,n;return(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getChannelConfig())===null||n===void 0?void 0:n.channelId}getRPCHistory(){var t,n;return(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0?void 0:n.getRPCMethodTracker()}getVersion(){return wh.version}getWalletStatus(){var t,n;return(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0?void 0:n.getConnectionStatus()}_getChannelConfig(){var t;return(t=this.remoteConnection)===null||t===void 0?void 0:t.getChannelConfig()}_ping(){var t,n;(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0||n.ping()}_keyCheck(){var t,n;(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0||n.keyCheck()}_getServiceStatus(){var t,n;return(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0?void 0:n.getServiceStatus()}_getRemoteConnection(){return this.remoteConnection}_getDappMetadata(){return this.dappMetadata}_getKeyInfo(){var t;return(t=this.remoteConnection)===null||t===void 0?void 0:t.getKeyInfo()}_resetKeys(){var t,n;(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0||n.resetKeys()}_getConnection(){return this.remoteConnection}}Ie.DEFAULT_SERVER_URL=_d,Ie.MetaMaskSDK=SR,Ie.SDKProvider=SA,Ie.default=SR,Object.defineProperty(Ie,"__esModule",{value:!0})})})(Hw,Hw.exports);var gW=Hw.exports;const vW=Ho.getDefaultExportFromCjs(gW),bW=Object.freeze(Object.defineProperty({__proto__:null,default:vW},Symbol.toStringTag,{value:"Module"}));exports.metamaskSdk=bW;